/* ── IPL Fantasy League — Frontend Styles ── */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }

/* Display / heading font shorthand */
.ifl-font-display {
    font-family: 'Rajdhani', 'Inter', system-ui, sans-serif;
}

/* ══════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════ */
.ifl-login-wrap {
    min-height: 100vh;
    background: #07090f;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    padding: 24px 16px;
}

/* animated orb blobs */
.ifl-login-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.ifl-login-orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: .35;
    animation: ifl-orb-drift 12s ease-in-out infinite alternate;
}
.ifl-login-orb1 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
    top: -120px; left: -100px;
    animation-duration: 14s;
}
.ifl-login-orb2 {
    width: 360px; height: 360px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
    bottom: -80px; right: -80px;
    animation-duration: 18s; animation-delay: -6s;
}
.ifl-login-orb3 {
    width: 260px; height: 260px;
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    top: 50%; left: 60%;
    animation-duration: 22s; animation-delay: -10s;
}
@keyframes ifl-orb-drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, 20px) scale(1.08); }
}

/* login card */
.ifl-login-card {
    position: relative; z-index: 1;
    background: rgba(17, 24, 39, .92);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    padding: 40px 32px 32px;
    width: 100%; max-width: 440px;
    backdrop-filter: blur(20px);
    box-shadow: 0 32px 80px rgba(0,0,0,.6);
}

/* logo / trophy area */
.ifl-login-logo { text-align: center; margin-bottom: 32px; }
.ifl-login-trophy-wrap {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 0 32px rgba(245,158,11,.4);
    animation: ifl-trophy-pulse 3s ease-in-out infinite;
}
@keyframes ifl-trophy-pulse {
    0%,100% { box-shadow: 0 0 32px rgba(245,158,11,.4); }
    50%      { box-shadow: 0 0 56px rgba(245,158,11,.7); }
}
.ifl-login-trophy { font-size: 34px; line-height: 1; }
.ifl-login-title {
    font-size: 28px; font-weight: 900; color: #f1f5f9;
    letter-spacing: -0.5px; margin: 0 0 4px;
}
.ifl-login-year {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 15px; font-weight: 800; letter-spacing: 1px;
    margin-bottom: 8px;
}
.ifl-login-sub { color: #64748b; font-size: 13px; margin: 0; }

/* error box */
.ifl-login-error {
    background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.35);
    color: #f87171; border-radius: 10px;
    padding: 10px 14px; font-size: 13px; font-weight: 600;
    margin-bottom: 16px; text-align: center;
}

/* ── Team dropdown ── */
.ifl-team-select { position: relative; margin-bottom: 20px; }

.ifl-ts-trigger {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 11px 14px; border-radius: 12px;
    border: 1.5px solid #1e2d3d; background: #0d1120;
    cursor: pointer; transition: border-color .15s;
    font-family: inherit;
}
.ifl-ts-trigger:hover, .ifl-ts-trigger[aria-expanded="true"] { border-color: #f59e0b; }
.ifl-ts-selected { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.ifl-ts-label { font-size: 13px; font-weight: 600; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ifl-ts-label.chosen { color: #e2e8f0; }
.ifl-ts-chevron { flex-shrink: 0; transition: transform .2s; }
.ifl-ts-trigger[aria-expanded="true"] .ifl-ts-chevron { transform: rotate(180deg); }

.ifl-ts-logo {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--tc, #334155), color-mix(in srgb, var(--tc, #334155) 60%, #000));
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    font-size: 9px; font-weight: 900; color: #fff;
}
.ifl-ts-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.ifl-ts-logo-placeholder { background: #1e2d3d; }

.ifl-ts-dropdown {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 200;
    background: #0d1120; border: 1.5px solid #1e2d3d; border-radius: 12px;
    overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,.6);
    max-height: 280px; overflow-y: auto;
}
.ifl-ts-option {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; cursor: pointer;
    transition: background .12s;
    border-bottom: 1px solid #111827;
}
.ifl-ts-option:last-child { border-bottom: none; }
.ifl-ts-option:hover { background: #111827; }
.ifl-ts-option.selected { background: #0f1a2e; }
.ifl-ts-opt-logo {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--tc, #3b82f6), color-mix(in srgb, var(--tc, #3b82f6) 60%, #000));
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    font-size: 9px; font-weight: 900; color: #fff;
}
.ifl-ts-opt-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.ifl-ts-opt-name { font-size: 13px; font-weight: 600; color: #e2e8f0; flex: 1; }
.ifl-ts-opt-check { color: #f59e0b; opacity: 0; flex-shrink: 0; }
.ifl-ts-option.selected .ifl-ts-opt-check { opacity: 1; }

/* password section */
.ifl-login-pw-section { margin-bottom: 20px; }
.ifl-login-pw-wrap {
    display: flex; align-items: center; gap: 0;
    background: #0d1120; border: 1.5px solid #1e2d3d;
    border-radius: 12px; overflow: hidden;
    transition: border-color .15s;
}
.ifl-login-pw-wrap:focus-within { border-color: #f59e0b; }
.ifl-login-pw-icon {
    padding: 0 12px; font-size: 16px; flex-shrink: 0;
    display: flex; align-items: center;
}
.ifl-login-pw-input {
    flex: 1; background: transparent; border: none; outline: none;
    color: #e2e8f0; font-size: 14px; font-weight: 600;
    padding: 13px 0; font-family: inherit;
}
.ifl-login-pw-input::placeholder { color: #475569; font-weight: 400; }
.ifl-login-pw-toggle {
    background: transparent; border: none; cursor: pointer;
    padding: 0 14px; font-size: 16px;
    display: flex; align-items: center; color: #64748b;
    transition: color .15s;
}
.ifl-login-pw-toggle:hover { color: #94a3b8; }

/* login button */
.ifl-login-btn {
    width: 100%; padding: 15px 24px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000; border: none; border-radius: 12px;
    font-size: 15px; font-weight: 800; cursor: pointer;
    font-family: inherit; letter-spacing: 0.3px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: filter .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(245,158,11,.3);
    margin-bottom: 20px;
}
.ifl-login-btn:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(245,158,11,.45); }
.ifl-login-btn:active { transform: translateY(0); filter: brightness(.95); }
.ifl-login-btn.loading { opacity: .7; cursor: not-allowed; pointer-events: none; }
.ifl-login-btn-icon { font-size: 16px; }

.ifl-login-footer { text-align: center; color: #475569; font-size: 12px; }


/* ══════════════════════════════════════════
   APP SHELL & TOP BAR
══════════════════════════════════════════ */
.ifl-app-shell {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: #07090f;
    color: #e2e8f0;
    min-height: 100vh;
    line-height: 1.5;
}

/* Rajdhani for display/heading text */
.ifl-topbar-title,
.ifl-mc-num,
.ifl-mc-vs,
.ifl-mc-status-pill,
.ifl-mc-countdown,
.ifl-mc-team-name,
.ifl-section-label,
.ifl-modal-title,
.ifl-hero-rule b,
.ifl-pts-big,
.ifl-total-pts,
.ifl-lb-podium-pts,
.ifl-pick-pts,
.ifl-pr-pts,
.ifl-sc-pts {
    font-family: 'Rajdhani', 'Inter', system-ui, sans-serif;
}

.ifl-topbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(9, 12, 21, .92);
    border-bottom: 1px solid rgba(255,255,255,.07);
    backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; height: 56px;
    gap: 16px;
}
.ifl-topbar-brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ifl-topbar-trophy { font-size: 20px; }
.ifl-topbar-title {
    font-size: 18px; font-weight: 700; color: #f1f5f9; letter-spacing: 0.2px;
    font-family: 'Rajdhani', 'Inter', system-ui, sans-serif;
    text-decoration: none;
}
.ifl-topbar-title em {
    font-style: normal;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ifl-topbar-nav { display: flex; align-items: center; gap: 12px; }
.ifl-topbar-link {
    color: #94a3b8; text-decoration: none;
    font-size: 13px; font-weight: 600;
    transition: color .15s;
}
.ifl-topbar-link:hover { color: #f59e0b; }
.ifl-topbar-team {
    display: flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,.06);
    border: 1px solid color-mix(in srgb, var(--tc, #f59e0b) 40%, transparent);
    border-radius: 20px; padding: 4px 12px 4px 5px;
    font-size: 12px;
}
.ifl-topbar-team-logo {
    width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--tc, #f59e0b), color-mix(in srgb, var(--tc, #f59e0b) 60%, #000));
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; font-size: 8px; font-weight: 900; color: #fff;
    font-family: 'Rajdhani', sans-serif;
}
.ifl-topbar-team-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.ifl-topbar-team-name { font-weight: 700; color: #e2e8f0; }
.ifl-topbar-logout {
    color: #64748b; text-decoration: none;
    font-size: 12px; font-weight: 600;
    transition: color .15s; white-space: nowrap;
}
.ifl-topbar-logout:hover { color: #f87171; }


/* ══════════════════════════════════════════
   HERO STRIP
══════════════════════════════════════════ */
.ifl-hero {
    background: linear-gradient(135deg, #0d0f1a 0%, #11162a 50%, #0d0f1a 100%);
    border-bottom: 1px solid rgba(255,255,255,.05);
    padding: 10px 20px;
}
.ifl-hero-inner { text-align: center; }
.ifl-hero-rule {
    font-size: 12px; font-weight: 600; color: #64748b;
    letter-spacing: 0.3px; margin: 0;
}
.ifl-hero-rule b { color: #f59e0b; }


/* ══════════════════════════════════════════
   MATCHES WRAP & SECTIONS
══════════════════════════════════════════ */
.ifl-matches-wrap { padding: 24px 20px 48px; }

.ifl-empty-state {
    text-align: center; padding: 80px 24px;
    color: #475569;
}
.ifl-empty-icon { font-size: 56px; margin-bottom: 16px; }
.ifl-empty-state p { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: #64748b; }
.ifl-empty-sub { font-size: 13px !important; color: #475569 !important; }

.ifl-match-section { margin-bottom: 32px; }
.ifl-section-label {
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px;
    color: #64748b; margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}
.ifl-section-label::after { content: ''; flex: 1; height: 1px; background: #1a2232; }
.ifl-section-live { color: #ef4444; }

.ifl-live-dot {
    display: inline-block; width: 7px; height: 7px;
    background: #ef4444; border-radius: 50%;
    animation: ifl-blink 1.2s ease-in-out infinite;
    flex-shrink: 0;
}

/* match card grid */
.ifl-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 14px;
}


/* ══════════════════════════════════════════
   MATCH CARD  (new structure)
══════════════════════════════════════════ */
.ifl-match-card {
    background: #0e1120;
    border: 1.5px solid #1a2232;
    border-radius: 18px;
    overflow: hidden;
    transition: border-color .2s, transform .2s, box-shadow .2s;
    display: flex; flex-direction: column;
}
.ifl-match-card:hover { border-color: #2a3a5a; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.4); }
.ifl-match-card.ifl-status-live {
    border-color: rgba(239,68,68,.5);
    animation: ifl-pulse-border 2s infinite;
}
.ifl-match-card.ifl-status-completed { opacity: .85; }

@keyframes ifl-pulse-border {
    0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.25); }
    50%      { box-shadow: 0 0 0 5px rgba(239,68,68,0); }
}

/* colour stripe at top */
.ifl-mc-stripe {
    height: 4px;
    background: linear-gradient(90deg, var(--tc1, #f59e0b) 0%, var(--tc2, #6366f1) 100%);
    flex-shrink: 0;
}

.ifl-mc-inner {
    padding: 16px 18px;
    display: flex; flex-direction: column; gap: 12px;
    flex: 1;
}

/* card header: match number + status pill */
.ifl-mc-header {
    display: flex; align-items: center; justify-content: space-between;
}
.ifl-mc-num {
    font-size: 11px; font-weight: 700; color: #475569;
    text-transform: uppercase; letter-spacing: 1px;
}
.ifl-mc-status-pill {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px;
    padding: 3px 9px; border-radius: 20px;
}
.ifl-mc-status-upcoming  { background: #0f2a4a; color: #60a5fa; }
.ifl-mc-status-live      { background: #3b0808; color: #f87171; }
.ifl-mc-status-completed { background: #052e16; color: #4ade80; }
.ifl-mc-status-cancelled { background: #1c1917; color: #78716c; }

/* teams row */
.ifl-mc-matchup {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.ifl-mc-team { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ifl-mc-team-right { align-items: center; }

/* circular team crest */
.ifl-team-crest {
    width: 80px; height: 80px; border-radius: 50%;
    background: transparent;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 900; color: #94a3b8;
    letter-spacing: 0.5px;
    flex-shrink: 0; overflow: hidden;
}
.ifl-team-crest img {
    width: 100%; height: 100%; object-fit: contain;
    padding: 4px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}
.ifl-mc-team-name {
    font-size: 11px; font-weight: 600; color: #94a3b8;
    text-align: center; line-height: 1.2;
}

/* VS column */
.ifl-mc-vs-col {
    flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.ifl-mc-vs {
    font-size: 10px; font-weight: 900; color: #334155;
    letter-spacing: 2px;
    background: #080b14; border-radius: 6px;
    padding: 4px 7px;
}
.ifl-mc-countdown {
    font-size: 11px; font-weight: 700; color: #f59e0b;
    letter-spacing: 0.3px; white-space: nowrap;
}
.ifl-mc-countdown.ifl-cd-soon { color: #ef4444; animation: ifl-blink 1s infinite; }

/* meta row */
.ifl-mc-meta {
    display: flex; flex-direction: column; gap: 3px;
    font-size: 11px; color: #475569;
}
.ifl-mc-meta span { display: flex; align-items: center; gap: 4px; }

/* winner banner */
.ifl-mc-winner-banner {
    background: rgba(74,222,128,.07);
    border: 1px solid rgba(74,222,128,.18);
    border-radius: 8px; padding: 6px 12px;
    font-size: 12px; font-weight: 700; color: #4ade80;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* actions row */
.ifl-mc-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }


/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.ifl-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 20px; border-radius: 8px;
    font-size: 13px; font-weight: 700; cursor: pointer; border: none;
    text-decoration: none; transition: all .2s; gap: 6px;
    font-family: inherit;
}
.ifl-btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 10px; }
.ifl-btn-primary { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; box-shadow: 0 2px 12px rgba(34,197,94,.25); }
.ifl-btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 4px 18px rgba(34,197,94,.35); }
.ifl-btn-primary:disabled { background: #1e2535; color: #4b5563; cursor: not-allowed; transform: none; filter: none; box-shadow: none; }
.ifl-btn-edit { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; box-shadow: 0 2px 12px rgba(59,130,246,.25); }
.ifl-btn-edit:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 4px 18px rgba(59,130,246,.35); }
.ifl-btn-outline { background: transparent; border: 1.5px solid #1e2d40; color: #64748b; }
.ifl-btn-outline:hover { border-color: #f59e0b; color: #f59e0b; background: rgba(245,158,11,.05); }
.ifl-btn-success { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; }
.ifl-btn-disabled { background: #080b14; color: #1e2d40; cursor: not-allowed; border: 1px solid #111827; }
.ifl-btn-pick { font-size: 12px; padding: 9px 16px; gap: 5px; }
.ifl-reveal-picks-btn { padding: 9px 11px; min-width: 36px; }

.ifl-pick-badge {
    font-size: 11px; font-weight: 700; border-radius: 20px; padding: 3px 10px;
}
.ifl-pick-saved  { color: #4ade80; background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.25); }
.ifl-pick-locked { color: #f87171; background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.25); }


/* ══════════════════════════════════════════
   MODAL OVERLAY + SHEET
══════════════════════════════════════════ */
body.ifl-modal-open { overflow: hidden; }

.ifl-modal-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,.75);
    display: flex; align-items: flex-end; justify-content: center;
    backdrop-filter: blur(3px);
}
.ifl-modal-sheet {
    background: #0e1120;
    border-radius: 22px 22px 0 0;
    width: 100%; max-width: 700px; max-height: 92vh;
    display: flex; flex-direction: column;
    box-shadow: 0 -12px 60px rgba(0,0,0,.7);
    animation: ifl-slide-up .25s ease;
    border-top: 1px solid rgba(255,255,255,.07);
}
@keyframes ifl-slide-up {
    from { transform: translateY(80px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.ifl-modal-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 20px 22px 14px;
    border-bottom: 1px solid #1a2232; flex-shrink: 0;
}
.ifl-modal-title { font-size: 22px; font-weight: 700; letter-spacing: 0.2px; line-height: 1.2; font-family: 'Rajdhani', 'Inter', system-ui, sans-serif; }
.ifl-modal-countdown { font-size: 12px; color: #64748b; margin-top: 4px; font-weight: 600; }
.ifl-modal-close {
    background: #141824; border: none; color: #94a3b8;
    width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
    font-size: 13px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background .15s, color .15s; margin-left: 12px;
}
.ifl-modal-close:hover { background: #1e2d3d; color: #e2e8f0; }

/* role tracker pills */
.ifl-modal-role-tracker {
    display: flex; gap: 8px; padding: 12px 22px;
    border-bottom: 1px solid #1a2232; flex-shrink: 0;
}
.ifl-rt-pill {
    flex: 1; text-align: center; padding: 7px 10px;
    background: #0a0e1a; border: 1.5px solid #1a2232;
    border-radius: 8px; font-size: 12px; font-weight: 700; color: #475569;
    transition: border-color .2s, color .2s;
}
.ifl-rt-pill.met { border-color: #22c55e; color: #4ade80; background: rgba(34,197,94,.06); }
.ifl-rt-n { font-size: 11px; }

/* modal body */
.ifl-modal-body {
    overflow-y: auto; flex: 1; padding: 0 0 8px;
    -webkit-overflow-scrolling: touch;
}
.ifl-modal-loading { padding: 48px; text-align: center; color: #64748b; font-size: 14px; }

/* spinner */
.ifl-spinner {
    width: 28px; height: 28px; border-radius: 50%;
    border: 3px solid #1a2232; border-top-color: #f59e0b;
    animation: ifl-spin .7s linear infinite;
    margin: 0 auto 12px;
}
@keyframes ifl-spin { to { transform: rotate(360deg); } }

/* section headers in modal */
.ifl-modal-section { padding: 16px 22px 4px; }
.ifl-modal-section-title {
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    color: #4a5568; margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
    font-family: 'Rajdhani', 'Inter', system-ui, sans-serif;
}
.ifl-modal-section-title::after { content: ''; flex: 1; height: 1px; background: #1a2232; }

/* player cards */
.ifl-modal-players { display: flex; flex-direction: column; gap: 7px; }
.ifl-player-card {
    display: flex; align-items: center; gap: 13px;
    background: #0a0e1a; border: 1.5px solid #1a2232;
    border-radius: 11px; padding: 11px 14px;
    cursor: pointer; transition: border-color .15s, background .15s;
    position: relative; user-select: none;
}
.ifl-player-card:hover { border-color: #2a3a5a; background: #0d1120; }
.ifl-player-card.selected {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #15120a, #1a160a);
}
.ifl-player-card.role-full:not(.selected) { opacity: .38; cursor: not-allowed; pointer-events: none; }

/* avatar circle */
.ifl-pc-avatar {
    width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--tc, #f59e0b), var(--tc2, #d97706));
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.ifl-pc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ifl-pc-initials { font-size: 15px; font-weight: 900; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); font-family: 'Rajdhani', sans-serif; }

/* team color dot (legacy) */
.ifl-pc-team-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

/* team tag */
.ifl-pc-team-tag {
    font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px;
    background: rgba(255,255,255,.08); border-radius: 4px;
    padding: 2px 7px; color: #64748b;
    font-family: 'Rajdhani', sans-serif;
}

/* player info */
.ifl-pc-info { flex: 1; min-width: 0; }
.ifl-pc-name {
    font-size: 15px; font-weight: 700; color: #f1f5f9;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-family: 'Rajdhani', 'Inter', system-ui, sans-serif;
    letter-spacing: 0.2px; line-height: 1.2;
}
.ifl-pc-meta { font-size: 11px; color: #475569; margin-top: 3px; display: flex; gap: 6px; flex-wrap: wrap; }

/* selected checkmark */
.ifl-pc-check {
    width: 20px; height: 20px; border-radius: 50%;
    background: #f59e0b; color: #000;
    display: none; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 900; flex-shrink: 0;
}
.ifl-player-card.selected .ifl-pc-check { display: flex; }

/* C / VC action buttons */
.ifl-pc-actions { display: none; gap: 6px; flex-shrink: 0; }
.ifl-player-card.selected .ifl-pc-actions { display: flex; }
.ifl-pc-btn {
    width: 30px; height: 30px; border-radius: 7px; border: 1.5px solid #2a3347;
    background: #0d1120; color: #64748b; font-size: 11px; font-weight: 800;
    cursor: pointer; transition: all .15s; display: flex; align-items: center; justify-content: center;
    font-family: inherit;
}
.ifl-pc-btn:hover { border-color: #4a5568; color: #e2e8f0; }
.ifl-pc-c.active-c   { background: #f59e0b; border-color: #f59e0b; color: #000; }
.ifl-pc-vc.active-vc { background: #8b5cf6; border-color: #8b5cf6; color: #fff; }

/* winner pick buttons */
.ifl-winner-btns { display: flex; gap: 10px; padding: 0 22px 4px; }
.ifl-winner-btn {
    flex: 1; padding: 16px 12px; border-radius: 14px;
    border: 2px solid #1a2232; background: #0a0e1a;
    cursor: pointer; text-align: center; font-family: inherit;
    transition: border-color .15s, background .15s, box-shadow .15s;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.ifl-winner-btn:hover { border-color: #2a3a5a; }
.ifl-winner-btn.selected {
    border-color: var(--tc, #22c55e);
    background: rgba(255,255,255,.03);
    box-shadow: 0 0 20px color-mix(in srgb, var(--tc, #22c55e) 25%, transparent);
}
.ifl-winner-btn-crest {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, var(--tc, #f59e0b), var(--tc2, #d97706));
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 900; color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.ifl-winner-btn-name { font-size: 11px; font-weight: 700; color: #94a3b8; }

/* modal footer */
.ifl-modal-footer {
    padding: 14px 22px 20px;
    border-top: 1px solid #1a2232; flex-shrink: 0;
    background: #090c15;
}
.ifl-modal-summary { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.ifl-ms-slot {
    flex: 1; min-width: 90px; padding: 7px 10px;
    background: #0a0e1a; border: 1.5px dashed #1e2d3d;
    border-radius: 8px; font-size: 11px; color: #334155; font-weight: 600;
    text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: border-color .2s, color .2s;
}
.ifl-ms-slot.filled { border-color: #f59e0b; border-style: solid; color: #e2e8f0; }

/* C / VC badges */
.ifl-badge-c  { display: inline-block; background: #f59e0b; color: #000; font-size: 9px; font-weight: 800; padding: 1px 4px; border-radius: 3px; vertical-align: middle; margin-left: 3px; }
.ifl-badge-vc { display: inline-block; background: #8b5cf6; color: #fff; font-size: 9px; font-weight: 800; padding: 1px 4px; border-radius: 3px; vertical-align: middle; margin-left: 3px; }


/* ══════════════════════════════════════════
   LEADERBOARD
══════════════════════════════════════════ */
.ifl-leaderboard-wrap { padding: 24px 16px; }
.ifl-lb-title { font-size: 24px; font-weight: 800; color: #f59e0b; text-align: center; margin-bottom: 6px; }
.ifl-lb-tabs { display: flex; gap: 0; justify-content: center; margin-bottom: 24px; border-bottom: 2px solid #1a2232; }
.ifl-lb-tab {
    padding: 10px 28px; cursor: pointer; font-weight: 600; color: #64748b;
    border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .15s;
}
.ifl-lb-tab.active { color: #f59e0b; border-bottom-color: #f59e0b; }
.ifl-lb-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ifl-lb-table thead th {
    padding: 10px 14px; text-align: left;
    color: #475569; font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
    border-bottom: 1px solid #1a2232; white-space: nowrap;
}
.ifl-lb-table tbody tr { border-bottom: 1px solid #0e1120; transition: background .15s; }
.ifl-lb-table tbody tr:hover { background: #0d1120; }
.ifl-lb-table tbody tr.is-me { background: #13100a !important; }
.ifl-lb-table td { padding: 12px 14px; vertical-align: middle; }
.ifl-rank-cell { font-weight: 800; font-size: 16px; }
.ifl-rank-num  { font-weight: 800; color: #94a3b8; }
.ifl-rank-1 { color: #f59e0b; }
.ifl-rank-2 { color: #94a3b8; }
.ifl-rank-3 { color: #b45309; }
.ifl-player-name { font-weight: 700; }
.ifl-pts-big { font-size: 16px; font-weight: 800; color: #f59e0b; }
.ifl-badge-c-sm  { background: #f59e0b; color: #000; font-size: 9px; font-weight: 800; padding: 1px 4px; border-radius: 3px; }
.ifl-badge-vc-sm { background: #8b5cf6; color: #fff; font-size: 9px; font-weight: 800; padding: 1px 4px; border-radius: 3px; }
.ifl-winner-correct { color: #4ade80; font-weight: 700; }
.ifl-lb-live-dot { width: 7px; height: 7px; background: #ef4444; border-radius: 50%; display: inline-block; animation: ifl-blink 1s infinite; margin-right: 5px; }
.ifl-lb-refresh { text-align: right; margin-bottom: 12px; color: #64748b; font-size: 12px; }
.ifl-lb-match-sel { display: flex; justify-content: center; margin-bottom: 20px; gap: 10px; align-items: center; }
.ifl-lb-match-sel select { background: #0e1120; border: 1px solid #1a2232; color: #e2e8f0; padding: 8px 12px; border-radius: 8px; font-size: 13px; }
.ifl-you-badge {
    background: rgba(96,165,250,.15); color: #60a5fa; font-size: 9px; font-weight: 800;
    padding: 2px 6px; border-radius: 5px; vertical-align: middle; margin-left: 4px;
    border: 1px solid rgba(96,165,250,.3); letter-spacing: 0.3px;
}


/* ══════════════════════════════════════════
   TOAST
══════════════════════════════════════════ */
.ifl-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
    background: #141824; border: 1px solid #1e2d3d; color: #e2e8f0;
    padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 600;
    z-index: 999999; transition: transform .3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,.5); white-space: nowrap;
}
.ifl-toast.show    { transform: translateX(-50%) translateY(0); }
.ifl-toast.success { border-color: #22c55e; color: #4ade80; }
.ifl-toast.error   { border-color: #ef4444; color: #f87171; }


/* ══════════════════════════════════════════
   PAGE NAV (legacy fallback)
══════════════════════════════════════════ */
.ifl-page-wrap { background: #07090f; min-height: 100vh; }
.ifl-page-nav {
    background: #090c15; border-bottom: 1px solid #1a2232;
    padding: 14px 32px;
    display: flex; align-items: center; justify-content: space-between;
}
.ifl-page-nav-logo { font-size: 18px; font-weight: 900; color: #f59e0b; letter-spacing: -0.5px; }
.ifl-page-nav-links { display: flex; gap: 20px; }
.ifl-page-nav-links a { color: #94a3b8; text-decoration: none; font-size: 13px; font-weight: 600; transition: color .15s; }
.ifl-page-nav-links a:hover { color: #f59e0b; }


/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes ifl-blink { 0%,100%{opacity:1} 50%{opacity:.15} }


/* ══════════════════════════════════════════
   NEXT MATCH CARD
══════════════════════════════════════════ */
.ifl-match-next {
    border-color: rgba(245,158,11,.45) !important;
    box-shadow: 0 0 0 1px rgba(245,158,11,.1), 0 12px 36px rgba(0,0,0,.5);
}
.ifl-match-next .ifl-mc-stripe { height: 5px; }
.ifl-next-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000; font-size: 8px; font-weight: 900;
    letter-spacing: 1px; border-radius: 4px;
    padding: 1px 5px; margin-right: 4px;
    vertical-align: middle;
}
.ifl-mc-countdown.ifl-cd-next {
    font-size: 14px; font-weight: 900;
    color: #f59e0b; letter-spacing: 0.5px;
    text-shadow: 0 0 12px rgba(245,158,11,.5);
    animation: ifl-countdown-pulse 1s ease-in-out infinite;
}
@keyframes ifl-countdown-pulse {
    0%,100% { opacity: 1; }
    50%      { opacity: .75; }
}

/* ══════════════════════════════════════════
   PICKS REVEAL PANEL (live/completed cards)
══════════════════════════════════════════ */
.ifl-picks-reveal {
    border-top: 1px solid rgba(255,255,255,.06);
    background: #080b14;
    border-radius: 0 0 18px 18px;
}
.ifl-picks-reveal-inner { padding: 16px; }
.ifl-picks-loading { text-align: center; color: #64748b; font-size: 13px; padding: 16px; }

.ifl-pr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.ifl-pr-card {
    background: #0e1120; border: 1.5px solid #1a2232;
    border-radius: 12px; padding: 10px 12px;
    display: flex; flex-direction: column; gap: 8px;
    transition: border-color .15s;
}
.ifl-pr-card:hover { border-color: #2a3a5a; }
.ifl-pr-card-me { border-color: rgba(96,165,250,.4); box-shadow: 0 0 0 1px rgba(96,165,250,.2); }
.ifl-pr-rank { font-size: 10px; font-weight: 800; color: #334155; text-align: right; }
.ifl-pr-header { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.ifl-pr-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ifl-pr-emoji { font-size: 14px; }
.ifl-pr-name { font-size: 12px; font-weight: 700; color: #e2e8f0; flex: 1; }
.ifl-pr-players { display: flex; flex-direction: column; gap: 3px; border-top: 1px solid #1a2232; padding-top: 7px; }
.ifl-pr-player { font-size: 11px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ifl-pr-footer {
    display: flex; align-items: center; justify-content: space-between;
    border-top: 1px solid #1a2232; padding-top: 7px;
}
.ifl-pr-pred { font-size: 10px; color: #64748b; }
.ifl-pred-correct { color: #4ade80; font-weight: 700; }
.ifl-pr-pts { font-size: 14px; font-weight: 900; color: #f59e0b; }

/* ══════════════════════════════════════════
   PLAYER SCORES PANEL
══════════════════════════════════════════ */
.ifl-scores-reveal {
    border-top: 1px solid rgba(255,255,255,.05);
    background: #060810;
    border-radius: 0 0 18px 18px;
}
.ifl-scores-reveal-inner { padding: 12px 14px; }
.ifl-scores-loading { text-align: center; color: #64748b; font-size: 13px; padding: 14px; }
.ifl-scores-empty  { text-align: center; color: #475569; font-size: 12px; padding: 14px; margin: 0; }

.ifl-scores-grid { display: flex; flex-direction: column; gap: 5px; }
.ifl-sc-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 8px;
    background: #0b0e1c;
    border-left: 3px solid var(--tc, #334155);
    transition: background .12s;
}
.ifl-sc-row:hover { background: #0e1222; }
.ifl-sc-role { font-size: 15px; flex-shrink: 0; line-height: 1; }
.ifl-sc-info { flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.ifl-sc-name { font-size: 12px; font-weight: 700; color: #e2e8f0; white-space: nowrap; }
.ifl-sc-team {
    font-size: 9px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
    background: rgba(255,255,255,.07); color: #64748b;
    padding: 1px 5px; border-radius: 3px; flex-shrink: 0;
}
.ifl-sc-stats { font-size: 10px; color: #475569; width: 100%; margin-top: 1px; }
.ifl-sc-pts {
    font-size: 17px; font-weight: 700; color: #f59e0b; flex-shrink: 0;
    letter-spacing: -0.3px;
}
.ifl-sc-pts-label { font-size: 9px; font-weight: 600; color: #78716c; letter-spacing: 0.3px; }

/* ══════════════════════════════════════════
   COMPLETED MATCHES TOGGLE
══════════════════════════════════════════ */
.ifl-past-toggle-wrap {
    margin-bottom: 12px;
}
.ifl-past-toggle-btn {
    display: flex; align-items: center; gap: 8px;
    background: #0a0e1a; border: 1.5px dashed #1e2d40;
    color: #64748b; font-size: 12px; font-weight: 700;
    padding: 10px 18px; border-radius: 10px; cursor: pointer;
    font-family: inherit; transition: border-color .15s, color .15s, background .15s;
    width: 100%;
}
.ifl-past-toggle-btn:hover { border-color: #334155; color: #94a3b8; background: #0c1020; }
.ifl-past-toggle-btn.open { border-style: solid; border-color: #1e2d40; color: #e2e8f0; }
.ifl-past-toggle-chevron { margin-left: auto; transition: transform .25s; }
.ifl-past-toggle-btn.open .ifl-past-toggle-chevron { transform: rotate(180deg); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 600px) {
    .ifl-matches-grid { grid-template-columns: 1fr; }
    .ifl-topbar { padding: 0 14px; gap: 8px; }
    .ifl-topbar-title { font-size: 14px; }
    .ifl-topbar-team-name { display: none; }
    .ifl-topbar-nav { gap: 8px; }
    .ifl-topbar-link { font-size: 12px; }
    .ifl-topbar-logout { font-size: 12px; }

    .ifl-modal-sheet { max-height: 96vh; border-radius: 18px 18px 0 0; }
    .ifl-modal-title { font-size: 17px; }
    .ifl-modal-header { padding: 16px 16px 12px; }
    .ifl-modal-role-tracker { padding: 10px 16px; gap: 6px; }
    .ifl-modal-section { padding: 14px 16px 4px; }
    .ifl-winner-btns { padding: 0 16px 4px; }
    .ifl-modal-footer { padding: 12px 16px 20px; }
    .ifl-ms-slot { min-width: 80px; font-size: 10px; padding: 6px 8px; }

    .ifl-login-card { padding: 32px 20px 24px; }
    .ifl-login-teams { grid-template-columns: 1fr 1fr; gap: 7px; }

    .ifl-lb-table { font-size: 12px; }
    .ifl-lb-table thead th:nth-child(n+5) { display: none; }
    .ifl-lb-table td:nth-child(n+5) { display: none; }

    .ifl-team-crest { width: 60px; height: 60px; font-size: 11px; }
}

@media (min-width: 601px) {
    .ifl-modal-overlay { align-items: center; }
    .ifl-modal-sheet { border-radius: 22px; margin: 16px; max-height: 88vh; }
}

/* ══════════════════════════════════════════
   LEADERBOARD PAGE
══════════════════════════════════════════ */
.ifl-lb-page {
    padding: 24px 16px 60px;
    background: #07090f; min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    color: #e2e8f0;
}

.ifl-lb-live-banner {
    display: flex; align-items: center; gap: 8px; justify-content: center;
    background: linear-gradient(90deg, rgba(239,68,68,.08), rgba(239,68,68,.14), rgba(239,68,68,.08));
    border: 1px solid rgba(239,68,68,.35);
    border-radius: 10px; padding: 10px 20px; margin-bottom: 24px;
    font-size: 12px; font-weight: 800; color: #f87171; letter-spacing: 1px;
    text-transform: uppercase;
}

/* Tabs */
.ifl-lb-tab-row {
    display: flex; gap: 4px; margin-bottom: 28px;
    background: #0b0e1c; border-radius: 14px; padding: 5px;
    border: 1px solid #1a2232;
}
.ifl-lb-tab-btn {
    flex: 1; padding: 10px 12px; border: none; border-radius: 10px;
    background: transparent; color: #475569; font-size: 12px; font-weight: 700;
    cursor: pointer; transition: all .2s; font-family: inherit;
    white-space: nowrap;
}
.ifl-lb-tab-btn.active {
    background: linear-gradient(135deg, #0e1120, #141b2e);
    color: #f1f5f9;
    box-shadow: 0 2px 12px rgba(0,0,0,.5), inset 0 0 0 1px rgba(245,158,11,.2);
}
.ifl-lb-tab-btn:hover:not(.active) { color: #94a3b8; background: rgba(255,255,255,.04); }

/* Podium */
.ifl-lb-podium {
    display: flex; align-items: flex-end; justify-content: center;
    gap: 10px; margin-bottom: 40px; padding: 0 8px;
}
.ifl-lb-podium-place {
    flex: 1; max-width: 200px; display: flex; flex-direction: column; align-items: center;
    text-align: center; position: relative;
}
.ifl-lb-podium-crown { font-size: 26px; margin-bottom: 6px; filter: drop-shadow(0 2px 8px rgba(245,158,11,.5)); }
.ifl-lb-podium-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, var(--pc, #64748b), color-mix(in srgb, var(--pc,#64748b) 55%, #000));
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 4px 20px color-mix(in srgb, var(--pc,#64748b) 45%, transparent), 0 0 0 3px rgba(255,255,255,.06);
}
.ifl-lb-podium-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.ifl-lb-podium-initials { font-size: 24px; font-weight: 900; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.ifl-pa-1 { width: 76px; height: 76px; box-shadow: 0 6px 28px color-mix(in srgb, var(--pc,#f59e0b) 55%, transparent), 0 0 0 3px rgba(245,158,11,.25) !important; }
.ifl-lb-podium-name { font-size: 12px; font-weight: 700; color: #e2e8f0; margin-bottom: 4px; line-height: 1.2; }
.ifl-lb-podium-pts { font-size: 16px; font-weight: 900; color: #f59e0b; margin-bottom: 6px; }
.ifl-pp-1 { font-size: 22px; color: #fbbf24 !important; text-shadow: 0 0 12px rgba(245,158,11,.4); }
.ifl-lb-podium-rank { font-size: 22px; margin-bottom: 0; }
.ifl-lb-podium-block {
    width: 100%; border-radius: 10px 10px 0 0; margin-top: 8px;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--pc,#64748b) 60%, #fff 20%),
        color-mix(in srgb, var(--pc,#64748b) 35%, #090c15));
    box-shadow: 0 -3px 16px color-mix(in srgb, var(--pc,#64748b) 25%, transparent);
}
.ifl-pb-1 { height: 90px; }
.ifl-pb-2 { height: 62px; }
.ifl-pb-3 { height: 44px; }

/* Fantasy team small avatar (logo or initials) */
.ifl-lb-av-sm {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--pc, #475569), color-mix(in srgb, var(--pc, #475569) 50%, #000));
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    font-size: 10px; font-weight: 900; color: #fff;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--pc, #475569) 30%, transparent);
}
.ifl-lb-av-sm img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.ifl-pick-card-av { width: 28px; height: 28px; font-size: 9px; flex-shrink: 0; }

/* Standings table */
.ifl-lb-standings-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid #161d2e; }
.ifl-lb-standings-table {
    width: 100%; border-collapse: collapse; font-size: 13px;
}
.ifl-lb-standings-table thead th {
    padding: 11px 12px; text-align: center;
    color: #4a5568; font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px;
    border-bottom: 1px solid #161d2e; white-space: nowrap;
    background: #0b0e1c;
    font-family: 'Rajdhani', 'Inter', system-ui, sans-serif; font-size: 11px;
}
.ifl-lb-standings-table thead th:nth-child(2) { text-align: left; }
.ifl-lb-standings-table tbody tr { border-bottom: 1px solid #0d1020; transition: background .15s; }
.ifl-lb-standings-table tbody tr:nth-child(odd)  { background: #07090f; }
.ifl-lb-standings-table tbody tr:nth-child(even) { background: #090c16; }
.ifl-lb-standings-table tbody tr:hover { background: #0e1425 !important; }
.ifl-lb-row-me { background: linear-gradient(90deg,#100d03,#0a0d18) !important; box-shadow: inset 3px 0 0 #f59e0b; }
.ifl-lb-standings-table td { padding: 11px 12px; vertical-align: middle; text-align: center; }
.ifl-lb-standings-table td:nth-child(2) { text-align: left; }

.ifl-col-rank { width: 48px; }
.ifl-col-num  { width: 72px; }
.ifl-col-match { width: 68px; font-variant-numeric: tabular-nums; }
.ifl-col-total { width: 80px; }

.ifl-lb-team-cell { display: flex; align-items: center; gap: 8px; min-width: 140px; }
.ifl-lb-team-name { font-weight: 700; color: #e2e8f0; }
.ifl-lb-rank-num { font-size: 15px; font-weight: 800; color: #64748b; }

.ifl-match-pts { font-weight: 700; color: #f59e0b; }
.ifl-auto-pts { color: #f97316; }
.ifl-no-pts   { color: #1e2d40; }
.ifl-total-pts { font-size: 17px; font-weight: 900; color: #fbbf24; }
.ifl-auto-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 14px; height: 14px; border-radius: 50%;
    background: #f97316; color: #fff; font-size: 8px; font-weight: 900;
    vertical-align: middle; margin-left: 2px;
}

/* Match breakdown */
.ifl-lb-match-block { margin-bottom: 36px; }
.ifl-lb-match-hdr {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; margin-bottom: 14px;
    padding: 14px 18px;
    background: #0b0e1c;
    border-radius: 14px; border: 1px solid #161d2e;
}
.ifl-lb-match-teams { display: flex; align-items: center; gap: 10px; }
.ifl-lb-match-team-chip {
    width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
    background: linear-gradient(135deg, var(--tc,#475569), color-mix(in srgb, var(--tc,#475569) 60%, #000));
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 900; color: #fff;
}
.ifl-lb-match-team-chip img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.ifl-lb-match-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ifl-lb-match-label { font-size: 11px; font-weight: 800; color: #64748b; text-transform: uppercase; letter-spacing: 1px; }
.ifl-lb-match-vs    { font-size: 10px; font-weight: 900; color: #334155; }
.ifl-lb-match-date  { font-size: 11px; color: #475569; }
.ifl-lb-status-live { display: flex; align-items: center; gap: 5px; color: #f87171; font-size: 12px; font-weight: 800; }
.ifl-lb-winner-chip {
    font-size: 12px; font-weight: 700;
    background: rgba(74,222,128,.1); color: #4ade80;
    border: 1px solid rgba(74,222,128,.25); border-radius: 20px;
    padding: 4px 12px;
}
.ifl-lb-empty-sm { color: #475569; font-size: 13px; padding: 16px 0; }

/* Pick cards grid */
.ifl-lb-pick-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.ifl-lb-pick-card {
    background: #0b0e1c; border: 1.5px solid #161d2e;
    border-radius: 14px; overflow: hidden;
    transition: border-color .2s, transform .2s, box-shadow .2s;
    display: flex; flex-direction: column;
    position: relative;
}
.ifl-lb-pick-card:hover {
    border-color: color-mix(in srgb, var(--pc, #f59e0b) 50%, #2a3a5a);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.ifl-pick-card-winner { border-color: rgba(245,158,11,.5) !important; background: linear-gradient(160deg,#110e03,#090c16); box-shadow: 0 0 20px rgba(245,158,11,.08); }
.ifl-pick-card-me { box-shadow: 0 0 0 2px rgba(96,165,250,.5) !important; }
.ifl-pick-card-rank {
    font-size: 10px; font-weight: 800; color: #2a3a5a;
    padding: 8px 12px 0; text-align: right; letter-spacing: 0.5px;
}
.ifl-pick-card-team {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 12px 10px; border-bottom: 1px solid #111826;
}
.ifl-pick-card-name { font-size: 12px; font-weight: 700; color: #e2e8f0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ifl-pick-card-players { padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.ifl-pick-player { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.ifl-pp-icon { font-size: 12px; flex-shrink: 0; }
.ifl-pp-name { flex: 1; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ifl-pp-cap  .ifl-pp-name { color: #e2e8f0; font-weight: 700; }
.ifl-pp-vc   .ifl-pp-name { color: #e2e8f0; font-weight: 600; }
.ifl-pick-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; border-top: 1px solid #161d2e;
    background: #080b18;
}
.ifl-pick-pred { font-size: 11px; color: #64748b; }
.ifl-pred-correct { color: #4ade80; font-weight: 700; margin-left: 3px; }
.ifl-pred-wrong   { color: #f87171; margin-left: 3px; }
.ifl-pick-pts { font-size: 18px; font-weight: 900; color: #f59e0b; }
.ifl-pts-label { font-size: 10px; font-weight: 600; color: #64748b; }
.ifl-auto-pick-badge {
    font-size: 9px; font-weight: 800; background: #f97316; color: #fff;
    border-radius: 4px; padding: 1px 5px; margin-left: 2px;
}

/* Match detail tab */
.ifl-lb-match-sel {
    display: flex; align-items: center; gap: 10px; margin-bottom: 16px; justify-content: center;
}
.ifl-lb-match-sel label { color: #94a3b8; font-size: 13px; }
.ifl-lb-match-sel select {
    background: #0a0e1a; border: 1px solid #1a2232; color: #e2e8f0;
    padding: 8px 12px; border-radius: 8px; font-size: 13px;
}
.ifl-lb-refresh { text-align: right; margin-bottom: 12px; color: #64748b; font-size: 12px; }

/* empty state */
.ifl-lb-empty { text-align: center; color: #475569; padding: 48px; font-size: 14px; }

/* Responsive */
@media (max-width: 600px) {
    .ifl-lb-page { padding: 16px 12px 48px; }
    .ifl-lb-podium { gap: 4px; }
    .ifl-lb-podium-avatar { width: 50px; height: 50px; }
    .ifl-pa-1 { width: 60px; height: 60px; }
    .ifl-lb-podium-name { font-size: 10px; }
    .ifl-lb-pick-cards { grid-template-columns: 1fr 1fr; }
    .ifl-lb-tab-btn { font-size: 11px; padding: 9px 6px; }
    .ifl-col-match { width: 52px; font-size: 11px; }
    .ifl-lb-standings-wrap { border-radius: 10px; }
    .ifl-lb-av-sm { width: 28px; height: 28px; font-size: 8px; }
}
