/* =====================================================================
   live.css  -  Live Auction page (fully responsive)
   Loaded AFTER dash.css, so every rule here is written to beat the
   conflicting dash.css rules (.logo width, fixed 150px photos, floats,
   fixed heights, 35px/50px headings, etc.)
   ===================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body { max-width: 100%; overflow-x: hidden; }

img { max-width: 100%; }

body {
    font-family: montsemibold, Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, sans-serif;
    background-image: url("../images/28653240318133497280.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    color: #fff;
}

/* ---------- Top menu ---------- */
.topmenu { height: auto; min-height: 56px; padding: 8px 12px; }
.topmenu::after { content: ""; display: table; clear: both; }
.topmenu .logo { width: 40%; }
.topmenu .menu { margin-top: 12px; }
.topmenu .menu ul.open { margin: 0; padding: 0; }
.topmenu .menu ul.open li { font-weight: 700; }

/* ---------- Filter buttons (All / Available / Sold / Unsold) ---------- */
.filterbar { padding: 0 10px; }

.openopt { text-align: center; padding: 0 4px; }

.openopt button.but1 {
    width: auto;
    min-width: 84px;
    height: 38px;
    padding: 0 16px;
    margin: 4px 3px;
    font-size: 12px;
}

.openopt button.but1.btyp1,
.openopt button.but1.btyp2 {
    color: #cfe3ff;
    border-color: rgba(255, 255, 255, 0.28);
}

/* phones: all four buttons in ONE neat row */
@media (max-width: 575px) {
    .openopt { font-size: 0; }              /* removes whitespace gaps */
    .openopt button.but1 {
        width: calc(25% - 6px);
        min-width: 0;
        height: 40px;
        padding: 0 2px;
        margin: 3px;
        font-size: 11px;
        letter-spacing: 0.3px;
        white-space: nowrap;
    }
}

@media (max-width: 360px) {
    .openopt button.but1 { font-size: 10px; letter-spacing: 0; }
}

/* ---------- Page container ---------- */
.livemenu .mobcontainer { padding: 5px 10px 20px; }

/* ---------- Auction title strip ---------- */
.tn_flex {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px;
    border-radius: 12px;
}

.tn_logo {
    float: none;
    flex: 0 0 auto;
    width: clamp(56px, 18vw, 100px);
    margin: 0;
    display: block;
}

.tn_logo img { width: 100%; height: auto; }

.tn_name {
    float: none;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    display: block;
    font-size: clamp(15px, 4vw, 20px);
    line-height: 1.25;
}

.tn_name span { display: block; overflow-wrap: anywhere; }
.tn_title { margin: 0; }

/* =====================================================================
   PLAYER CARD
   ===================================================================== */
.player-card-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 15px 20px;
}

.player-cards {
    --frame: clamp(140px, 50vw, 200px);
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: cardEntry 0.6s ease-out;
}

.player-cards:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* badges */
.player-id,
.player-status {
    position: absolute;
    top: 20px;
    z-index: 3;
    font-weight: bold;
}

.player-id {
    left: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.player-status {
    right: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* photo */
.player-photo-section {
    position: relative;
    padding: 30px 30px 0;
    text-align: center;
}

.photo-frame {
    width: var(--frame);
    height: var(--frame);
    margin: 0 auto;
    position: relative;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.photo-frame-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

#player-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-frame:hover #player-photo { transform: scale(1.05); }

/* info */
.player-info-section { padding: 25px 30px; text-align: center; }

h1.player-name,
.player-name {
    font-size: clamp(22px, 6vw, 28px);
    font-weight: bold;
    margin: 0 0 10px;
    color: #fff;
    letter-spacing: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.player-type {
    font-size: clamp(15px, 4vw, 18px);
    color: #4fc3f7;
    margin-bottom: 8px;
    font-weight: 500;
}

.player-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px 30px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.player-stats .stat-item { text-align: center; }

.player-stats .stat-value {
    display: block;
    font-size: clamp(18px, 5vw, 24px);
    font-weight: bold;
    color: #64ffda;
    margin-bottom: 5px;
}

.player-stats .stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* skills (optional block, currently commented out in the blade) */
.player-skills { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }

.skill-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.skill-icon img { width: 24px; height: 24px; }

/* bid blocks (inline sizes in the blade are overridden here) */
.bid-display-section { padding: 0 20px 20px; }

#player-current-bid,
#player-final-bid {
    font-size: clamp(24px, 7vw, 32px) !important;
    transition: transform 0.3s ease, color 0.3s ease;
    overflow-wrap: anywhere;
}

.winning-team-card { margin: 0 20px 20px; }

/* SOLD / UNSOLD stamps */
.soldoutteamstamp,
#unsolddivs {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(280px, 85%);
    transform: translate(-50%, -50%) rotate(-15deg) !important;
    z-index: 10;
    pointer-events: none;
    animation: stampIn 0.6s ease-out;
}

.soldoutteamstamp img,
#unsolddivs img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

@keyframes cardEntry {
    from { opacity: 0; transform: translateY(30px) scale(0.9); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes stampIn {
    0%   { transform: translate(-50%, -50%) scale(3) rotate(-30deg); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1) rotate(-15deg); opacity: 1; }
}

/* =====================================================================
   SOLD / UNSOLD COUNTERS
   ===================================================================== */
#states {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

#states div.box {
    float: none;
    margin: 0;
    padding: 6px 14px;
    font-size: clamp(12px, 3.4vw, 15px);
}

/* =====================================================================
   TEAM SUMMARY CARDS
   ===================================================================== */
.summerybox { margin-top: 12px; }

.summerybox .media.oddclr {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.summerybox .media.oddclr:hover {
    background: rgba(45, 179, 255, 0.22);
    transform: translateY(-2px);
}

.summerybox .media-left {
    display: block;
    flex: 0 0 auto;
    padding: 0;
}

.summerybox .media-left img {
    width: clamp(64px, 18vw, 100px);
    height: clamp(64px, 18vw, 100px);
    object-fit: cover;
}

.summerybox .media-body {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.summeryteam {
    margin: 0 0 4px;
    font-size: clamp(16px, 4.5vw, 21px);
    overflow-wrap: anywhere;
}

/* the two "clear:both" rows become tidy flex rows */
.summerybox .media-body > div[style*="clear"] {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2px 12px;
}

.smplayer,
.smtotal,
.smmax,
.smresrve,
.smresrv {
    float: none;
    padding-right: 0;
    font-size: clamp(13px, 3.5vw, 20px);
}

.smresrv { display: block; text-align: right; }

/* =====================================================================
   TEAM DETAIL HEADER (after clicking a team)
   ===================================================================== */
div#auction-hed {
    height: auto;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 12px;
}

.auction-hed .detail-logo { flex: 0 0 auto; }

img#teamLogo {
    float: none;
    display: block;
    width: clamp(70px, 20vw, 130px);
    height: auto;
    margin: 0;
}

.auction-hed .detail-text { flex: 1 1 220px; min-width: 0; padding: 0; }
.auction-hed .detail-text::after { content: ""; display: table; clear: both; }

div#teamName {
    margin: 0;
    font-size: clamp(20px, 6vw, 35px);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.sctpnl { font-size: clamp(13px, 3.6vw, 16px); }

/* =====================================================================
   PLAYERS / TEAM PLAYERS LIST
   ===================================================================== */
#playerDetailsContainer {
    display: flex;
    flex-wrap: wrap;
    padding: 0 4px 24px;
}

#playerDetailsContainer > p { width: 100%; padding: 15px; text-align: center; }

.col-sm-6.col-md-4.plcolmn {
    float: none;
    padding-left: 8px;
    padding-right: 8px;
}

/* ----- card ----- */
.tema.avl {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(74, 110, 160, 0.45);
    background: linear-gradient(160deg, rgba(22, 39, 61, 0.88), rgba(10, 22, 34, 0.88));
}

/* ----- photo column: photo on top, gold code bar underneath ----- */
.tema.avl > .logo {
    float: none;
    flex: 0 0 96px;
    width: 96px;
    max-width: 96px;
    padding: 0;
}

.tema.avl .plogo {
    float: none;
    position: relative;
    width: 100%;
    margin: 0;
}

.tema.avl .logodiv {
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #2a4a6f;
    background: #0a1219;
}

.tema.avl .logodiv img.plimg {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.tema.avl .logodiv img.plimg:hover { transform: none; }

.tema.avl .team-code {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
    min-height: 26px;
    padding: 3px 6px;
    border-radius: 0;
    font-size: 14px;
    line-height: 1;
    background: linear-gradient(135deg, #96700e, #b38f2e);
}

.tema.avl .team-code > div { float: none !important; padding: 0; }
.tema.avl .pl_pcode { font-weight: 700; }

.tema.avl .team-code .iswkp {
    display: flex;
    align-items: center;
    gap: 3px;
}

.tema.avl .team-code .iswkp img {
    width: 20px;
    height: 20px;
    margin: 0;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
    background: transparent;
    transform: none;
}

/* SOLD / UNSOLD stamp sits in the middle of the photo */
.tema.avl .plogo img.imgs {
    position: absolute !important;
    left: 50% !important;
    top: 32% !important;
    bottom: auto !important;
    width: 90%;
    height: auto;
    transform: translateX(-50%) rotate(-12deg);
    pointer-events: none;
}

/* ----- text column ----- */
.tema.avl > .team-dis {
    display: block;
    flex: 1 1 0;
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 0;
}

.team-nm-all {
    float: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    font-size: clamp(16px, 4.4vw, 20px);
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.player-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    clear: none;
    font-size: clamp(13px, 3.6vw, 15px);
    line-height: 1.35;
}

.player-list .spf1 { flex: 0 0 100%; color: #4fc3f7; font-weight: 700; }
.player-list .spf3 { flex: 0 0 100%; color: #ffffc0; opacity: 0.9; }

.player-list .age,
.player-list .cat {
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 12px;
    line-height: 1.5;
    color: #fff;
}

.player-list .bid {
    flex: 0 0 100%;
    margin-top: 4px !important;
    color: #ffd54f !important;
}

/* =====================================================================
   RESPONSIVE BREAKPOINTS
   ===================================================================== */

/* big screens */
@media (min-width: 1200px) {
    .tema.avl > .logo { flex-basis: 130px; width: 130px; max-width: 130px; }
}

/* tablet and below: columns stack, card centred */
@media (max-width: 991px) {
    .player-cards { max-width: 420px; }
}

/* phones (large) */
@media (max-width: 767px) {
    .livemenu .mobcontainer { padding: 5px 6px 20px; }
    .player-card-container { padding: 0 10px 15px; }
    .player-photo-section { padding: 25px 20px 0; }
    .player-info-section { padding: 20px; }
    .summerybox { padding-left: 10px; padding-right: 10px; }
    #teamsContainer { margin-left: 0; margin-right: 0; }
    #states { padding: 0 10px; }
}

/* phones */
@media (max-width: 575px) {
    .player-cards { max-width: 100%; border-radius: 16px; }
    .player-photo-section { padding: 20px 15px 0; }
    .player-info-section { padding: 15px; }
    .player-stats { gap: 12px 20px; margin-top: 15px; padding-top: 15px; }

    .player-id,
    .player-status { top: 12px; padding: 4px 10px; font-size: 11px; }
    .player-id { left: 12px; }
    .player-status { right: 12px; }

    .bid-display-section { padding: 0 12px 15px; }
    .winning-team-card { margin: 0 12px 15px; }

    .tema.avl > .logo { flex-basis: 90px; width: 90px; max-width: 90px; }
    .topmenu .logo { display: none; }
    .topmenu .menu { float: none; text-align: center; margin-top: 8px; }
    .topmenu .menu ul.open { display: inline-block; }
}

/* very small phones */
@media (max-width: 360px) {
    .tn_flex { gap: 8px; padding: 8px; }
    .summerybox .media.oddclr { gap: 8px; padding: 8px; }
    .tema.avl > .logo { flex-basis: 76px; width: 76px; max-width: 76px; }
}

/* touch devices: no hover lift */
@media (hover: none) {
    .player-cards:hover,
    .summerybox .media.oddclr:hover { transform: none; }
    .photo-frame:hover #player-photo { transform: none; }
}

/* respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}