/* ================================================================
   OnePitchOneHand - Fantasy IPL 2026
   Premium Sports App UI — Apple Sports meets FanCode
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg:            #0a0a0a;
    --bg-card:       #141414;
    --bg-elevated:   #1a1a1a;
    --bg-surface:    #1e1e1e;
    --border:        rgba(255,255,255,0.06);
    --border-focus:  rgba(255,255,255,0.15);
    --text:          #fafafa;
    --text-sec:      #a1a1a1;
    --text-muted:    #5a5a5a;
    --accent:        #e8e8e8;
    --accent-dim:    rgba(255,255,255,0.08);
    --green:         #22c55e;
    --green-dim:     rgba(34,197,94,0.12);
    --red:           #ef4444;
    --red-dim:       rgba(239,68,68,0.12);
    --orange:        #f97316;
    --orange-dim:    rgba(249,115,22,0.12);
    --purple:        #a855f7;
    --purple-dim:    rgba(168,85,247,0.12);
    --yellow:        #eab308;
    --yellow-dim:    rgba(234,179,8,0.12);
    --shadow-sm:     0 1px 2px rgba(0,0,0,0.4);
    --shadow-md:     0 4px 12px rgba(0,0,0,0.5);
    --shadow-lg:     0 8px 30px rgba(0,0,0,0.6);
    --shadow-xl:     0 20px 60px rgba(0,0,0,0.7);
    --radius:        12px;
    --radius-sm:     8px;
    --radius-lg:     16px;
    --radius-xl:     20px;
    --radius-full:   9999px;
    --font-head:     'Space Grotesk', system-ui, -apple-system, sans-serif;
    --font-body:     'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:     'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
    --ease:          cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: opacity 0.2s var(--ease); }
a:hover { opacity: 0.8; }

/* Thin custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes countUp {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.fade-in { animation: fadeIn 0.4s var(--ease) both; }
.fade-in-up { animation: fadeInUp 0.5s var(--ease) both; }

/* Staggered children */
.stagger > *:nth-child(1) { animation-delay: 0s; }
.stagger > *:nth-child(2) { animation-delay: 0.04s; }
.stagger > *:nth-child(3) { animation-delay: 0.08s; }
.stagger > *:nth-child(4) { animation-delay: 0.12s; }
.stagger > *:nth-child(5) { animation-delay: 0.16s; }
.stagger > *:nth-child(6) { animation-delay: 0.2s; }
.stagger > *:nth-child(7) { animation-delay: 0.24s; }
.stagger > *:nth-child(8) { animation-delay: 0.28s; }
.stagger > *:nth-child(9) { animation-delay: 0.32s; }
.stagger > *:nth-child(10) { animation-delay: 0.36s; }
.stagger > *:nth-child(n+11) { animation-delay: 0.4s; }

/* ================================================================
   UTILITY
   ================================================================ */
.hidden { display: none !important; }
.mono { font-family: var(--font-mono); }
.text-muted { color: var(--text-muted); }
.text-sec { color: var(--text-sec); }

/* ================================================================
   OFFLINE BANNER
   ================================================================ */
.offline-banner {
    position: fixed; top: 0; left: 0; right: 0;
    background: var(--red);
    color: white; text-align: center; padding: 10px;
    font-size: 13px; font-weight: 600; z-index: 1000;
    transition: transform 0.4s var(--ease);
    letter-spacing: 0.3px;
}
.offline-banner.hidden { transform: translateY(-100%); }

/* ================================================================
   STALE DATA BANNER
   ================================================================ */
.stale-banner {
    position: fixed; top: 0; left: 0; right: 0;
    background: #d97706;
    color: white; text-align: center; padding: 10px;
    font-size: 13px; font-weight: 600; z-index: 999;
    transition: transform 0.4s var(--ease);
    letter-spacing: 0.3px;
}
.stale-banner.hidden { transform: translateY(-100%); }

/* ================================================================
   NAVBAR — Glass blur, minimal
   ================================================================ */
.navbar {
    background: rgba(10,10,10,0.75);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 0 28px;
    height: 56px;
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 100;
}
.nav-brand {
    font-family: var(--font-head);
    font-size: 16px; font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}
.nav-links { display: flex; gap: 0; align-items: center; }
.nav-links a {
    color: var(--text-muted);
    padding: 6px 14px; border-radius: var(--radius-full);
    font-size: 13px; font-weight: 500;
    transition: all 0.2s var(--ease);
    text-decoration: none;
}
.nav-links a:hover {
    color: var(--text-sec);
    opacity: 1;
}
.nav-links a.active {
    color: var(--text);
    background: rgba(255,255,255,0.08);
    font-weight: 600;
}
.nav-user {
    color: var(--text-sec); font-size: 12px;
    font-weight: 600; margin-right: 8px;
    font-family: var(--font-mono);
    letter-spacing: 0;
}
.nav-sep {
    width: 1px; height: 20px;
    background: var(--border);
    margin: 0 12px;
}

/* ================================================================
   LAYOUT
   ================================================================ */
.container { max-width: 1100px; margin: 0 auto; padding: 24px 20px 60px; }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 24px 20px 60px; }

/* ================================================================
   AUTH — Gate & Login
   ================================================================ */
.auth-container {
    display: flex; justify-content: center; align-items: center;
    min-height: 100vh; padding: 24px;
    background: var(--bg);
}
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    width: 100%; max-width: 380px;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.5s var(--ease) both;
}
.auth-card h1 {
    font-family: var(--font-head);
    font-size: 28px; font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -1px;
}
.auth-card .subtitle {
    color: var(--text-muted); margin-bottom: 36px;
    font-size: 14px; font-weight: 400;
}
.auth-toggle {
    text-align: center; margin-top: 24px;
    font-size: 13px; color: var(--text-muted);
}
.auth-toggle a {
    color: var(--text); font-weight: 600;
}

/* ================================================================
   FORMS — Dark, minimal, glow on focus
   ================================================================ */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block; font-size: 11px; font-weight: 600;
    color: var(--text-muted); margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: 0.8px;
}
.form-group input,
.form-group select {
    width: 100%; padding: 14px 16px;
    background: var(--bg);
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--text); font-size: 15px;
    font-family: var(--font-body);
    transition: all 0.2s var(--ease);
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
    background: var(--bg-elevated);
}
.form-group input::placeholder { color: var(--text-muted); }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 12px 24px;
    border: none; border-radius: var(--radius);
    font-size: 14px; font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer; text-decoration: none;
    transition: all 0.2s var(--ease);
    letter-spacing: -0.2px;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--text);
    color: var(--bg);
}
.btn-primary:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(255,255,255,0.1);
    transform: translateY(-1px);
}
.btn-primary:disabled {
    opacity: 0.25; cursor: not-allowed;
    transform: none; box-shadow: none;
}

.btn-accent {
    background: linear-gradient(135deg, #e8e8e8, #c0c0c0);
    color: #0a0a0a;
    font-weight: 700;
}
.btn-accent:hover {
    box-shadow: 0 4px 20px rgba(255,255,255,0.12);
    transform: translateY(-1px);
}

.btn-success { background: var(--green); color: #0a0a0a; font-weight: 700; }
.btn-danger  { background: var(--red); color: white; }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-sec);
}
.btn-outline:hover {
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.04);
    color: var(--text);
}

.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-full { width: 100%; }
.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: var(--radius); }

/* ================================================================
   CARDS — Subtle, no harsh borders
   ================================================================ */
.card {
    background: rgba(20,20,20,0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.25s var(--ease);
}
.card:hover {
    border-color: rgba(255,255,255,0.08);
}
.card-elevated {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-md);
}
.card-interactive {
    cursor: pointer;
    transition: all 0.25s var(--ease);
}
.card-interactive:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255,255,255,0.1);
}

/* ================================================================
   MESSAGES
   ================================================================ */
.message {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 500;
    margin-bottom: 16px;
}
.message.error { background: var(--red-dim); color: var(--red); border: 1px solid rgba(239,68,68,0.15); }
.message.success { background: var(--green-dim); color: var(--green); border: 1px solid rgba(34,197,94,0.15); }

/* ================================================================
   SPINNER
   ================================================================ */
.spinner {
    width: 28px; height: 28px;
    border: 2px solid rgba(255,255,255,0.06);
    border-top-color: var(--text-sec);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 60px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================
   PAGE HEADER
   ================================================================ */
.page-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.page-header h1 {
    font-family: var(--font-head);
    font-size: 28px; font-weight: 800;
    letter-spacing: -1px;
    color: var(--text);
}
.page-header p {
    color: var(--text-muted); font-size: 14px;
    margin-top: 4px;
}

/* ================================================================
   SECTION HEADER
   ================================================================ */
.section-header {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 16px;
}
.section-header h2 {
    font-family: var(--font-head);
    font-size: 18px; font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text);
}
.section-header a,
.section-header span {
    font-size: 13px; color: var(--text-muted);
}

/* ================================================================
   STATE BADGES
   ================================================================ */
.state-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: var(--radius-full);
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.state-badge.live {
    background: var(--red-dim); color: var(--red);
}
.state-badge.live::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--red);
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(239,68,68,0.5);
}
.state-badge.complete { background: var(--green-dim); color: var(--green); }
.state-badge.upcoming { background: var(--accent-dim); color: var(--text-sec); }
.state-badge.preview  { background: var(--orange-dim); color: var(--orange); }
.state-badge.abandoned { background: rgba(255,255,255,0.05); color: var(--text-muted); }
.state-badge.preshow { background: rgba(168,85,247,0.12); color: #c084fc; }
.state-badge.posttoss { background: rgba(59,130,246,0.12); color: #60a5fa; }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); display: inline-block; margin-right: 4px; animation: pulse 1.5s ease-in-out infinite; box-shadow: 0 0 6px rgba(239,68,68,0.5); }
.score-hero.is-preshow { border-color: rgba(168,85,247,0.3); }
.score-hero.is-posttoss { border-color: rgba(59,130,246,0.3); }

/* ================================================================
   ROLE BADGES
   ================================================================ */
.role-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.role-badge.wk-batter   { background: rgba(234,179,8,0.15); color: #eab308; }
.role-badge.batter       { background: rgba(59,130,246,0.15); color: #3b82f6; }
.role-badge.all-rounder  { background: rgba(34,197,94,0.15); color: #22c55e; }
.role-badge.bowler       { background: rgba(168,85,247,0.15); color: #a855f7; }

/* ================================================================
   LOCK & SUBMITTED BADGES
   ================================================================ */
.lock-badge {
    display: inline-block;
    padding: 3px 8px;
    background: var(--orange-dim);
    color: var(--orange);
    font-size: 10px; font-weight: 700;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}
.submitted-badge {
    display: inline-block;
    padding: 3px 8px;
    background: var(--green-dim);
    color: var(--green);
    font-size: 10px; font-weight: 700;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

/* ================================================================
   LIVE DOT (pulsing)
   ================================================================ */
.live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--red);
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(239,68,68,0.5);
    display: inline-block;
}

/* ================================================================
   SCORE DISPLAY — Big monospace numbers
   ================================================================ */
.score-big {
    font-family: var(--font-mono);
    font-size: 48px; font-weight: 700;
    letter-spacing: -2px;
    color: var(--text);
    line-height: 1;
}
.score-medium {
    font-family: var(--font-mono);
    font-size: 28px; font-weight: 700;
    letter-spacing: -1px;
    color: var(--text);
    line-height: 1;
}
.score-small {
    font-family: var(--font-mono);
    font-size: 16px; font-weight: 600;
    color: var(--text);
}
.overs-text {
    font-family: var(--font-mono);
    font-size: 14px; font-weight: 500;
    color: var(--text-muted);
}

/* ================================================================
   HERO MATCH CARD — The dominant element
   ================================================================ */
.hero-match {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 28px;
    overflow: hidden;
    animation: fadeInUp 0.5s var(--ease) both;
}
.hero-match::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, var(--team1-color-dim, transparent) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, var(--team2-color-dim, transparent) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0.4;
}
.hero-match > * { position: relative; z-index: 1; }

.hero-match.is-live {
    border-color: rgba(239,68,68,0.15);
}

.hero-match-info {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 24px;
    font-size: 13px; color: var(--text-muted);
}
.hero-match-info .match-num {
    font-family: var(--font-mono);
    font-weight: 600;
}

.hero-teams {
    display: flex; align-items: center; justify-content: center;
    gap: 0; margin-bottom: 16px;
}
.hero-team {
    flex: 1; text-align: center;
}
.hero-team-logo {
    width: 48px; height: 48px;
    object-fit: contain;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.hero-team-name {
    font-family: var(--font-head);
    font-size: 32px; font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
}
.hero-team-full {
    font-size: 12px; color: var(--text-muted);
    margin-top: 4px; font-weight: 500;
}
.hero-vs {
    font-size: 14px; color: var(--text-muted);
    font-weight: 500; padding: 0 20px;
    flex-shrink: 0;
}

.hero-scores {
    display: flex; align-items: center; justify-content: center;
    gap: 40px; margin-bottom: 16px;
}
.hero-score-block { text-align: center; }
.hero-score-team {
    font-size: 12px; color: var(--text-muted);
    font-weight: 600; margin-bottom: 4px;
    text-transform: uppercase; letter-spacing: 0.5px;
}

.hero-status {
    text-align: center;
    font-size: 14px; font-weight: 600;
    color: var(--green);
    margin-bottom: 20px;
    padding: 10px;
    background: var(--green-dim);
    border-radius: var(--radius-sm);
}

/* Live data row */
.hero-live-data {
    display: flex; flex-wrap: wrap; gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}
.stat-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius-full);
    font-size: 12px; color: var(--text-sec);
}
.stat-pill strong {
    font-family: var(--font-mono);
    color: var(--text); font-weight: 700;
}

/* Batsmen / Bowler compact */
.hero-players {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px; margin-bottom: 16px;
}
.hero-player-block {
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}
.hero-player-label {
    font-size: 10px; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.8px;
    margin-bottom: 8px;
}
.hero-player-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 4px 0;
}
.hero-player-name {
    font-size: 13px; font-weight: 600; color: var(--text);
}
.hero-player-name.striker { color: var(--green); }
.hero-player-stats {
    font-family: var(--font-mono);
    font-size: 13px; font-weight: 600;
    color: var(--text-sec);
}

/* Over dots */
.recent-overs-row {
    display: flex; flex-wrap: wrap; gap: 6px;
    justify-content: center;
    margin-top: 12px;
}
.over-dot {
    width: 26px; height: 26px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 700;
    transition: transform 0.15s var(--ease);
}
.over-dot:hover { transform: scale(1.15); }
.over-dot.four   { background: rgba(34,197,94,0.15); color: var(--green); }
.over-dot.six    { background: rgba(168,85,247,0.15); color: var(--purple); }
.over-dot.wicket { background: rgba(239,68,68,0.15); color: var(--red); }
.over-dot.dot    { background: rgba(255,255,255,0.04); color: var(--text-muted); }
.over-dot.run    { background: rgba(255,255,255,0.06); color: var(--text-sec); }
.over-dot.wide, .over-dot.noball { background: var(--yellow-dim); color: var(--yellow); }

.over-separator {
    font-size: 10px; color: var(--text-muted);
    font-weight: 600; padding: 0 4px;
    display: inline-flex; align-items: center;
}

/* ================================================================
   COUNTDOWN
   ================================================================ */
.countdown-block {
    text-align: center; padding: 24px;
}
.countdown-digits {
    font-family: var(--font-mono);
    font-size: 56px; font-weight: 700;
    letter-spacing: -3px;
    color: var(--text);
    line-height: 1;
    animation: countUp 0.5s var(--ease) both;
}
.countdown-label {
    font-size: 13px; color: var(--text-muted);
    margin-top: 8px; font-weight: 500;
}

/* ================================================================
   HERO ACTIONS
   ================================================================ */
.hero-actions {
    display: flex; gap: 12px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
    align-items: center;
}

/* ================================================================
   NEXT MATCHES — Horizontal scroll
   ================================================================ */
.next-matches-section { margin-bottom: 32px; }
.next-matches-scroll {
    display: flex; gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.next-matches-scroll::-webkit-scrollbar { height: 4px; }
.next-matches-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

.next-match-card {
    flex: 0 0 auto;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    scroll-snap-align: start;
    text-decoration: none; color: inherit;
    transition: all 0.25s var(--ease);
    cursor: pointer;
}
.next-match-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.1);
    box-shadow: var(--shadow-md);
    opacity: 1;
}
.next-match-teams {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 8px;
}
.next-match-team {
    font-family: var(--font-head);
    font-size: 16px; font-weight: 700;
    letter-spacing: -0.5px;
}
.next-match-vs {
    font-size: 11px; color: var(--text-muted);
}
.next-match-meta {
    font-size: 12px; color: var(--text-muted);
}
.next-match-meta .date {
    font-family: var(--font-mono);
    font-weight: 500;
}

/* ================================================================
   RECENT RESULTS (Dashboard)
   ================================================================ */
.results-section { margin-top: 8px; }

/* ================================================================
   FILTERS — Pill style
   ================================================================ */
.filters {
    display: flex; gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 7px 16px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 13px; font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s var(--ease);
}
.filter-btn:hover {
    border-color: rgba(255,255,255,0.12);
    color: var(--text-sec);
}
.filter-btn.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
    font-weight: 600;
}

/* ================================================================
   MATCH CARDS — Compact row style for fixtures
   ================================================================ */
.match-card-link {
    text-decoration: none; color: inherit; display: block;
}
.match-card {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 6px;
    transition: all 0.2s var(--ease);
    gap: 16px;
}
.match-card:hover {
    background: var(--bg-elevated);
    transform: translateX(4px);
    border-color: rgba(255,255,255,0.08);
}
.match-card.live { border-left-color: var(--red); }

.match-card-main {
    display: flex; align-items: center; gap: 14px;
    flex: 1; min-width: 0;
}
.match-card-num {
    font-family: var(--font-mono);
    font-size: 12px; color: var(--text-muted);
    font-weight: 600; flex-shrink: 0;
    min-width: 30px;
}
.match-card-teams {
    display: flex; align-items: center; gap: 6px;
    flex-wrap: wrap;
}
.match-card-logo {
    width: 24px; height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}
.match-card-team {
    font-family: var(--font-head);
    font-size: 15px; font-weight: 700;
    letter-spacing: -0.3px;
}
.match-card-vs {
    font-size: 11px; color: var(--text-muted); font-weight: 400;
}
.match-card-score {
    font-family: var(--font-mono);
    font-size: 13px; font-weight: 600;
    color: var(--green);
    margin-left: 8px;
}

.match-card-right {
    display: flex; align-items: center; gap: 14px;
    flex-shrink: 0;
}
.match-card-badges {
    display: flex; gap: 6px; align-items: center;
}
.match-card-date {
    font-family: var(--font-mono);
    font-size: 12px; color: var(--text-sec);
    font-weight: 500; white-space: nowrap;
}
.match-card-venue {
    font-size: 11px; color: var(--text-muted);
    white-space: nowrap; max-width: 180px;
    overflow: hidden; text-overflow: ellipsis;
}

/* ================================================================
   MATCH HUB — Score Header
   ================================================================ */
.match-hub-header {
    text-align: center;
    padding: 32px 20px;
    margin-bottom: 28px;
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.match-hub-header::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, var(--team1-color-dim, transparent) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, var(--team2-color-dim, transparent) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0.3;
}
.match-hub-header > * { position: relative; z-index: 1; }
.match-hub-header.is-live { border-color: rgba(239,68,68,0.15); }

.hub-teams-row {
    display: flex; align-items: center; justify-content: center;
    gap: 0; margin-bottom: 12px;
}
.hub-team-name {
    font-family: var(--font-head);
    font-size: 36px; font-weight: 800;
    letter-spacing: -1.5px;
}
.hub-vs {
    font-size: 14px; color: var(--text-muted);
    font-weight: 400; padding: 0 20px;
}
.hub-match-info {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; flex-wrap: wrap;
    font-size: 13px; color: var(--text-muted);
}

/* ================================================================
   SCORECARD SECTION
   ================================================================ */
.scorecard-section { margin-bottom: 28px; }

.live-stats-bar {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 16px;
    justify-content: center;
}

/* ================================================================
   SCORECARD TABLES — Clean, no borders
   ================================================================ */
.scorecard-table-wrap {
    margin-bottom: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.scorecard-table-wrap h4 {
    font-family: var(--font-head);
    font-size: 13px; font-weight: 700;
    color: var(--text-sec);
    padding: 14px 18px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.scorecard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.scorecard-table thead th {
    padding: 10px 18px;
    text-align: left;
    font-size: 11px; font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}
.scorecard-table thead th.num {
    text-align: right;
}
.scorecard-table tbody tr {
    transition: background 0.15s var(--ease);
}
.scorecard-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.015);
}
.scorecard-table tbody tr:hover {
    background: rgba(255,255,255,0.03);
}
.scorecard-table tbody td {
    padding: 10px 18px;
    vertical-align: middle;
}
.scorecard-table tbody td.num {
    text-align: right;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 13px;
}
.scorecard-table .batter-name {
    font-weight: 600; color: var(--text);
}
.scorecard-table .dismissal {
    display: block;
    font-size: 11px; color: var(--text-muted);
    font-weight: 400; margin-top: 2px;
}
.scorecard-table .highlight-runs {
    color: var(--green); font-weight: 700;
}
.scorecard-table .points {
    color: var(--green); font-weight: 700;
}

.innings-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 12px;
}
.innings-team-score {
    display: flex; align-items: baseline; gap: 12px;
}
.innings-team-score .team-name {
    font-family: var(--font-head);
    font-weight: 700; font-size: 15px;
}
.innings-team-score .score-val {
    font-family: var(--font-mono);
    font-size: 22px; font-weight: 700;
    color: var(--text);
}
.extras-total-row {
    padding: 8px 18px;
    font-size: 12px; color: var(--text-muted);
}
.extras-total-row.total {
    font-weight: 700; color: var(--text-sec);
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

/* ================================================================
   COMMENTARY
   ================================================================ */
.commentary-section { margin-bottom: 28px; }

.commentary-feed {
    max-height: 400px;
    overflow-y: auto;
}
.recent-overs-bar {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 12px;
}
.over-summary {
    padding: 6px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    font-size: 12px; color: var(--text-sec);
}
.comm-ball {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    transition: background 0.15s var(--ease);
}
.comm-ball:hover { background: rgba(255,255,255,0.02); }
.comm-over-num {
    font-family: var(--font-mono);
    font-size: 12px; font-weight: 600;
    color: var(--text-muted);
    min-width: 48px; flex-shrink: 0;
}
.comm-text {
    flex: 1; font-size: 13px; color: var(--text-sec);
    line-height: 1.5;
}
.comm-run {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    font-family: var(--font-mono);
    font-size: 12px; font-weight: 700;
    flex-shrink: 0;
}
.comm-run.run-0 { background: rgba(255,255,255,0.04); color: var(--text-muted); }
.comm-run.run-1, .comm-run.run-2, .comm-run.run-3 { background: rgba(255,255,255,0.06); color: var(--text-sec); }
.comm-run.run-4 { background: rgba(34,197,94,0.15); color: var(--green); }
.comm-run.run-6 { background: rgba(168,85,247,0.15); color: var(--purple); }
.comm-run.run-w { background: rgba(239,68,68,0.15); color: var(--red); }
.comm-over-separator {
    display: flex; justify-content: space-between;
    padding: 8px 14px;
    background: rgba(255,255,255,0.02);
    font-size: 12px; font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

/* ================================================================
   PICK YOUR TEAM — Three column
   ================================================================ */
.picker-section { margin-bottom: 32px; }

.draft-tabs {
    display: flex; gap: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.draft-tab {
    padding: 10px 20px;
    background: transparent;
    border: none; border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 13px; font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    position: relative;
}
.draft-tab:hover { color: var(--text-sec); }
.draft-tab.active {
    color: var(--text);
    border-bottom-color: var(--text);
}
.draft-tab .dot {
    display: inline-block;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green);
    margin-left: 6px;
    vertical-align: middle;
}

.three-col {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    align-items: start;
}
@media (max-width: 768px) {
    .three-col {
        grid-template-columns: 1fr;
    }
}

/* Squad team toggle tabs */
.squads-tabbed { min-width: 0; }
.squad-team-tabs {
    display: flex; gap: 0;
    margin-bottom: 0;
}
.squad-team-tab {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    font-size: 14px; font-weight: 700;
    font-family: var(--font-head);
    cursor: pointer;
    transition: all 0.2s;
}
.squad-team-tab:first-child { border-radius: var(--radius) 0 0 0; }
.squad-team-tab:last-child { border-radius: 0 var(--radius) 0 0; }
.squad-team-tab:hover { background: var(--bg-elevated); color: var(--text-sec); }
.squad-team-tab.active {
    color: var(--text);
    background: var(--bg-elevated);
}

/* Squad column */
.squad-col {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
}
.squad-title {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 16px;
    font-family: var(--font-head);
    font-size: 14px; font-weight: 700;
    border-bottom: 1px solid var(--border);
}
.team-dot {
    width: 10px; height: 10px; border-radius: 50%;
    flex-shrink: 0;
}
.squad-list {
    max-height: 600px;
    overflow-y: auto;
}
.squad-player {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.15s var(--ease);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.squad-player:hover {
    background: rgba(255,255,255,0.04);
}
.squad-player.selected {
    background: rgba(34,197,94,0.08);
    border-left: 3px solid var(--green);
}
.squad-player img {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-surface);
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.08);
}
.squad-player-info { flex: 1; min-width: 0; }
.squad-player-name {
    font-size: 14px; font-weight: 700;
    white-space: normal; word-wrap: break-word;
    line-height: 1.3;
}
.squad-player-meta {
    display: flex; align-items: center; gap: 6px;
    margin-top: 2px;
}
.squad-player-overseas {
    font-size: 9px; font-weight: 700;
    color: var(--orange); background: var(--orange-dim);
    padding: 1px 5px; border-radius: var(--radius-full);
    letter-spacing: 0.3px;
}
.squad-player-action {
    font-size: 16px; color: var(--text-muted);
    font-weight: 600; flex-shrink: 0;
    width: 24px; text-align: center;
    transition: color 0.15s;
}
.squad-player.selected .squad-player-action {
    color: var(--green);
}

/* Role filter bar */
.squad-role-filters {
    display: flex; gap: 4px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.01);
}
.role-filter-btn {
    flex: 1;
    padding: 6px 0;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.5px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s var(--ease);
}
.role-filter-btn:hover {
    border-color: var(--text-sec);
    color: var(--text-sec);
}
.role-filter-btn.active {
    background: var(--green);
    border-color: var(--green);
    color: #000;
}

/* Playing XI section labels */
.squad-section-label {
    padding: 8px 14px;
    font-size: 10px; font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.playing-xi-label {
    background: rgba(34,197,94,0.06);
    color: var(--green);
    display: flex; align-items: center; gap: 6px;
}
.playing-xi-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: pulseGreen 2s ease-in-out infinite;
}
.bench-label {
    background: rgba(255,255,255,0.02);
    color: var(--text-muted);
    margin-top: 4px;
}

/* Playing XI badge on player */
.xi-badge {
    font-size: 9px; font-weight: 800;
    color: var(--green);
    background: rgba(34,197,94,0.12);
    padding: 1px 5px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

/* Bench players dimmed */
.squad-player.bench {
    opacity: 0.45;
}
.squad-player.bench:hover {
    opacity: 0.7;
}
.squad-player.bench.selected {
    opacity: 1;
}

/* Playing XI highlight glow */
.squad-player.in-playing-xi {
    border-left: 2px solid var(--green);
}

/* Player card animations */
@keyframes playerFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGreen {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Enhanced player select animation */
.squad-player.selected {
    background: rgba(34,197,94,0.08);
    border-left: 2px solid var(--green);
}
.squad-player.selected img {
    box-shadow: 0 0 0 2px var(--green);
}

/* Action icon animation */
.action-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px;
    border-radius: 50%;
    font-size: 14px;
    transition: all 0.25s var(--ease);
}
.action-icon.plus {
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
}
.action-icon.check {
    color: #000;
    background: var(--green);
    transform: scale(1.1);
}

/* Bigger player images */
.squad-player img {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-surface);
    flex-shrink: 0;
    transition: box-shadow 0.2s var(--ease);
}

/* Center column — Your XI */
.center-col {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.your-xi-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}
.team-name-input {
    background: transparent;
    border: none; border-bottom: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-head);
    font-size: 15px; font-weight: 700;
    padding: 4px 0;
    width: 160px;
    transition: border-color 0.2s;
}
.team-name-input:focus {
    outline: none;
    border-bottom-color: rgba(255,255,255,0.2);
}
.xi-count {
    font-family: var(--font-mono);
    font-size: 14px; font-weight: 700;
    color: var(--text-sec);
}
.your-xi-list {
    max-height: 500px;
    overflow-y: auto;
}
.xi-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}
.xi-player {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    transition: background 0.15s;
    animation: slideIn 0.2s var(--ease) both;
}
.xi-player:hover { background: rgba(255,255,255,0.02); }
.xi-player.captain { background: rgba(234,179,8,0.04); }
.xi-player.vice-captain { background: rgba(168,85,247,0.04); }

.xi-player img {
    width: 30px; height: 30px;
    border-radius: 50%; object-fit: cover;
    background: var(--bg-surface); flex-shrink: 0;
}
.xi-player-info { flex: 1; min-width: 0; }
.xi-player-name {
    font-size: 13px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.xi-player-team {
    font-size: 11px; color: var(--text-muted);
    display: flex; align-items: center; gap: 4px;
    margin-top: 1px;
}
.xi-player-badges {
    display: flex; gap: 4px; align-items: center;
    flex-shrink: 0;
}
.badge-btn {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 10px; font-weight: 700;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.15s var(--ease);
    display: flex; align-items: center; justify-content: center;
}
.badge-btn:hover { border-color: rgba(255,255,255,0.15); color: var(--text); }
.badge-btn.active-c {
    background: #eab308; color: #0a0a0a;
    border-color: #eab308;
}
.badge-btn.active-vc {
    background: var(--purple); color: white;
    border-color: var(--purple);
}
.remove-btn {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex; align-items: center; justify-content: center;
}
.remove-btn:hover {
    background: var(--red-dim);
    color: var(--red);
}

/* Validation */
.xi-validation {
    display: flex; flex-wrap: wrap; gap: 8px;
    padding: 12px 16px;
    font-size: 11px; font-weight: 600;
    font-family: var(--font-mono);
    border-top: 1px solid var(--border);
}
.xi-validation .ok { color: var(--green); }
.xi-validation .warn { color: var(--orange); }

/* New validation pills */
.xi-pills {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}
.xi-pill {
    display: flex; align-items: center; gap: 4px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px; font-weight: 700;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
    transition: all 0.2s;
}
.xi-pill.ok {
    border-color: rgba(0,255,136,0.3);
    background: rgba(0,255,136,0.06);
}
.xi-pill.warn {
    border-color: rgba(255,149,0,0.3);
    background: rgba(255,149,0,0.06);
}
.xi-pill-icon { font-size: 12px; }
.xi-pill-label { color: var(--text-sec); letter-spacing: 0.3px; }
.xi-pill-val {
    font-family: var(--font-mono);
    font-weight: 800;
}
.xi-pill.ok .xi-pill-val { color: var(--green); }
.xi-pill.warn .xi-pill-val { color: var(--orange); }

/* Actions */
.xi-actions {
    display: flex; gap: 8px;
    padding: 14px 16px;
    border-top: 1px solid var(--border);
}
.xi-actions .btn { flex: 1; }

/* ================================================================
   LOCKED TEAM DISPLAY
   ================================================================ */
.locked-team-display { margin-top: 12px; }
.locked-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}
.locked-player-card {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: transform 0.15s var(--ease);
}
.locked-player-card:hover { transform: translateY(-1px); }
.locked-player-card.is-captain { border-color: rgba(234,179,8,0.3); }
.locked-player-card.is-vc { border-color: rgba(168,85,247,0.3); }
.locked-player-card img {
    width: 36px; height: 36px;
    border-radius: 50%; object-fit: cover;
    background: var(--bg-surface);
}
.locked-player-card .player-info { flex: 1; }
.locked-player-card .player-name {
    font-size: 13px; font-weight: 600;
}
.locked-player-card .player-meta {
    font-size: 11px; color: var(--text-muted);
    display: flex; align-items: center; gap: 4px;
    margin-top: 2px;
}

/* ================================================================
   FANTASY POINTS PANEL
   ================================================================ */
.fantasy-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.fantasy-total {
    padding: 16px 18px;
    font-size: 14px; color: var(--text-sec);
    border-bottom: 1px solid var(--border);
}
.fantasy-total strong {
    font-family: var(--font-mono);
    font-size: 24px; font-weight: 700;
    color: var(--green);
}

/* ================================================================
   LEAGUE SECTION
   ================================================================ */
.league-section { margin-bottom: 32px; }

.league-team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.league-team-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}
.league-team-name {
    font-family: var(--font-head);
    font-weight: 700; font-size: 14px;
}
.league-team-user {
    font-size: 12px; color: var(--text-muted);
}
.league-team-players {
    padding: 14px 18px;
    display: flex; flex-wrap: wrap; gap: 6px;
}
.league-player-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 10px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-full);
    font-size: 12px; font-weight: 500;
}
.league-player-chip.is-captain { background: rgba(234,179,8,0.1); color: #eab308; }
.league-player-chip.is-vc { background: rgba(168,85,247,0.1); color: var(--purple); }

/* ================================================================
   LEADERBOARD TABLES
   ================================================================ */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}
.leaderboard-table thead th {
    padding: 12px 18px;
    text-align: left;
    font-size: 11px; font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}
.leaderboard-table tbody tr {
    transition: background 0.15s;
}
.leaderboard-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.015);
}
.leaderboard-table tbody tr:hover {
    background: rgba(255,255,255,0.03);
}
.leaderboard-table tbody tr.is-me {
    background: rgba(34,197,94,0.04);
}
.leaderboard-table tbody tr.is-me:hover {
    background: rgba(34,197,94,0.06);
}
.leaderboard-table tbody td {
    padding: 12px 18px;
    font-size: 14px;
}
.leaderboard-table .points {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--green);
}
.leaderboard-table strong {
    font-weight: 600;
}

/* Rank circles */
.rank {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: 12px; font-weight: 700;
}
.rank.rank-1 { background: rgba(234,179,8,0.15); color: #eab308; }
.rank.rank-2 { background: rgba(192,192,192,0.15); color: #c0c0c0; }
.rank.rank-3 { background: rgba(205,127,50,0.15); color: #cd7f32; }
.rank.rank-default { background: rgba(255,255,255,0.04); color: var(--text-muted); }

/* ================================================================
   MATCH MINI — Compact upcoming list
   ================================================================ */
.match-list-compact {
    display: flex; flex-direction: column;
    gap: 2px;
}
.match-mini {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none; color: inherit;
    transition: all 0.2s var(--ease);
}
.match-mini:hover {
    background: var(--bg-elevated);
    transform: translateX(3px);
    opacity: 1;
}
.match-mini-teams {
    font-family: var(--font-head);
    font-size: 14px; font-weight: 700;
    letter-spacing: -0.3px;
}
.match-mini-info {
    text-align: right;
    font-family: var(--font-mono);
    font-size: 12px; color: var(--text-muted);
}

/* ================================================================
   LIVE SCORECARD (Dashboard hero)
   ================================================================ */
.live-scorecard {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s var(--ease) both;
}
.live-scorecard.is-live { border-color: rgba(239,68,68,0.15); }
.live-scorecard::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.02), transparent 60%);
    pointer-events: none;
}
.live-scorecard > * { position: relative; z-index: 1; }

.scorecard-match-info {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
}
.scorecard-match-num {
    font-size: 13px; color: var(--text-muted);
    font-family: var(--font-mono); font-weight: 500;
}
.scorecard-teams {
    display: flex; align-items: center; justify-content: center;
    gap: 0;
}
.scorecard-team { text-align: center; flex: 1; }
.scorecard-team-abbr {
    font-family: var(--font-head);
    font-size: 32px; font-weight: 800;
    letter-spacing: -1.5px;
}
.scorecard-team-score {
    font-family: var(--font-mono);
    font-size: 42px; font-weight: 700;
    letter-spacing: -2px;
    margin-top: 4px;
    line-height: 1;
}
.scorecard-team-overs {
    font-family: var(--font-mono);
    font-size: 14px; color: var(--text-muted);
    margin-top: 4px;
}
.scorecard-vs {
    font-size: 14px; color: var(--text-muted);
    font-weight: 400; padding: 0 20px;
    flex-shrink: 0;
}
.scorecard-status {
    text-align: center;
    font-size: 13px; color: var(--green);
    font-weight: 600;
    margin-top: 16px;
    padding: 10px;
    background: var(--green-dim);
    border-radius: var(--radius-sm);
}
.scorecard-meta {
    display: flex; justify-content: center; gap: 16px;
    margin-top: 16px;
    font-size: 13px; color: var(--text-muted);
}

.countdown-big { text-align: center; padding: 16px; }
.countdown-big .countdown-value {
    font-family: var(--font-mono);
    font-size: 48px; font-weight: 700;
    letter-spacing: -3px;
    color: var(--text);
    line-height: 1;
}
.countdown-big .countdown-label {
    font-size: 13px; color: var(--text-muted);
    margin-top: 8px;
}

/* ================================================================
   AVATAR FALLBACK
   ================================================================ */
.avatar-initials {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg-surface);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 12px; font-weight: 700;
    flex-shrink: 0;
}

/* ================================================================
   EMPTY STATE
   ================================================================ */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}
.empty-state h3 {
    font-family: var(--font-head);
    font-size: 18px; font-weight: 700;
    color: var(--text-sec);
    margin-bottom: 8px;
}
.empty-state p {
    font-size: 14px;
}

/* ================================================================
   TOAST
   ================================================================ */
.toast {
    position: fixed; bottom: 24px; right: 24px;
    padding: 14px 22px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px; font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    animation: fadeInUp 0.3s var(--ease) both;
}
.toast.success { border-color: rgba(34,197,94,0.2); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
    .three-col {
        grid-template-columns: 1fr;
    }
    .squad-col { order: 0; }
    .center-col { order: -1; }
    .hero-team-name { font-size: 24px; }
    .hub-team-name { font-size: 28px; }
    .score-big { font-size: 36px; }
    .scorecard-team-score { font-size: 32px; }
    .scorecard-team-abbr { font-size: 24px; }
    .countdown-big .countdown-value { font-size: 36px; }
    .hero-teams { flex-wrap: wrap; }
}
@media (max-width: 600px) {
    .container { padding: 16px 14px 48px; }
    .navbar { padding: 0 16px; }
    .hero-match { padding: 20px; }
    .match-hub-header { padding: 20px 16px; }
    .hero-scores { gap: 20px; }
    .match-card { flex-direction: column; align-items: flex-start; gap: 8px; }
    .match-card-right { width: 100%; justify-content: space-between; }
    .locked-team-grid { grid-template-columns: 1fr; }
    .hero-players { grid-template-columns: 1fr; }
    .nav-links a { padding: 6px 10px; font-size: 12px; }
    .hub-tabs { overflow-x: auto; }
}

/* ============================================================
   LIVE HUB TABS
   ============================================================ */
.hub-tabs {
    display: flex; gap: 0;
    border-bottom: 1px solid var(--border);
    margin: 0 0 20px 0;
    background: var(--bg-card);
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
}
.hub-tab {
    flex: 1;
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-head);
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    display: flex; align-items: center; justify-content: center; gap: 6px;
    border-bottom: 2px solid transparent;
}
.hub-tab:hover { color: var(--text-sec); background: rgba(255,255,255,0.02); }
.hub-tab.active {
    color: var(--green);
    border-bottom-color: var(--green);
    background: rgba(0,255,136,0.04);
}
.live-dot-sm {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--live);
    animation: pulseGreen 1.5s ease-in-out infinite;
}

/* ============================================================
   FANTASY LEADERBOARD
   ============================================================ */
.fantasy-lb-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.lb-row {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s var(--ease);
}
.lb-row:hover { background: rgba(255,255,255,0.02); }
.lb-row:last-child { border-bottom: none; }
.lb-row.is-me { background: rgba(0,255,136,0.04); }
.lb-rank {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: 13px; font-weight: 800;
    background: var(--bg-surface);
    color: var(--text-sec);
    flex-shrink: 0;
}
.lb-row.rank-1 .lb-rank { background: #ffd700; color: #000; }
.lb-row.rank-2 .lb-rank { background: #c0c0c0; color: #000; }
.lb-row.rank-3 .lb-rank { background: #cd7f32; color: #000; }
.lb-info { flex: 1; min-width: 0; }
.lb-name {
    font-size: 14px; font-weight: 700;
    display: flex; align-items: center; gap: 6px;
}
.lb-team-name { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.lb-points {
    font-family: var(--font-mono);
    font-size: 20px; font-weight: 800;
    color: var(--green);
    flex-shrink: 0;
}
.pts-label { font-size: 11px; color: var(--text-muted); margin-left: 2px; font-weight: 500; }
.you-badge {
    font-size: 9px; font-weight: 800;
    background: var(--green); color: #000;
    padding: 1px 5px; border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

/* Expandable player points */
.lb-expand {
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border);
}

/* Player points table */
.player-pts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.player-pts-table th {
    padding: 8px 10px;
    text-align: left;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.player-pts-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.player-pts-table td.num { text-align: right; font-family: var(--font-mono); }
.player-pts-table td.points { color: var(--green); font-weight: 700; }
.pts-player-cell {
    display: flex; align-items: center; gap: 8px;
}
.pts-player-cell img {
    width: 28px; height: 28px;
    border-radius: 50%; object-fit: cover;
    background: var(--bg-surface);
}
.pts-player-name { font-weight: 600; font-size: 12px; }
.pts-player-meta { font-size: 10px; color: var(--text-muted); }
.cap-badge {
    font-size: 9px; font-weight: 800;
    background: var(--orange); color: #000;
    padding: 1px 4px; border-radius: 3px;
}
.vc-badge {
    font-size: 9px; font-weight: 800;
    background: var(--blue); color: #fff;
    padding: 1px 4px; border-radius: 3px;
}
.multi-label {
    font-size: 9px; color: var(--text-muted);
    margin-left: 2px;
}

/* League team cards v2 */
.league-team-card-v2 {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}
.league-team-card-v2.is-me { border-color: rgba(0,255,136,0.2); }
.ltc-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}
.ltc-name { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.ltc-team-name { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.ltc-total {
    font-family: var(--font-mono);
    font-size: 22px; font-weight: 800;
    color: var(--green);
}

/* ================================================================
   POINTS CHANGE ANIMATIONS
   ================================================================ */
/* Points change animation */
@keyframes pointsFlash {
    0% { background: rgba(0, 255, 136, 0.3); transform: scale(1.05); }
    100% { background: transparent; transform: scale(1); }
}
.points-updated {
    animation: pointsFlash 0.8s ease-out;
}

/* Score increase - green flash */
@keyframes scoreUp {
    0% { color: #00ff88; text-shadow: 0 0 10px rgba(0, 255, 136, 0.5); }
    100% { color: inherit; text-shadow: none; }
}
.score-up {
    animation: scoreUp 1.2s ease-out;
}

/* Wicket - red flash */
@keyframes wicketFlash {
    0% { background: rgba(255, 51, 51, 0.3); }
    100% { background: transparent; }
}
.wicket-flash {
    animation: wicketFlash 1.5s ease-out;
}

/* ================================================================
   FIXTURES PAGE v2 — Full-width card grid
   ================================================================ */
.fixture-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0;
}

.fixture-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.fixture-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-focus);
}

.fixture-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}
.fixture-card-header .match-num {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-sec);
}
.fixture-card-header .venue-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fixture-card-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 4px 0;
}
.fixture-team {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}
.fixture-team.home {
    justify-content: flex-end;
    text-align: right;
}
.fixture-team.away {
    justify-content: flex-start;
    text-align: left;
}
.team-logo-lg {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.fixture-team-name {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}
.fixture-vs {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
}

.fixture-card-tz {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.tz-row {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-muted);
}
.tz-row .tz-lbl {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}
.tz-row .tz-val {
    font-weight: 500;
    color: var(--text-sec);
}

.fixture-card-score {
    text-align: center;
    font-size: 13px;
    color: var(--text-sec);
    font-weight: 500;
    line-height: 1.6;
}
.fixture-card-score .score-line {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--green);
}
.fixture-card-score .result-text {
    font-size: 12px;
    color: var(--text-sec);
    margin-top: 4px;
}

.fixture-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Live card glow */
.fixture-live {
    border-color: var(--red) !important;
    animation: fixtureLivePulse 2.5s ease-in-out infinite;
}
@keyframes fixtureLivePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
    50% { box-shadow: 0 0 24px 0 rgba(239,68,68,0.2), 0 0 8px 0 rgba(239,68,68,0.1); }
}

/* Responsive: single column on mobile */
@media (max-width: 768px) {
    .fixture-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .fixture-card {
        padding: 16px;
        gap: 12px;
    }
    .team-logo-lg {
        width: 60px;
        height: 60px;
    }
    .fixture-team-name {
        font-size: 18px;
    }
    .fixture-card-teams {
        gap: 10px;
    }
}

