/* ═══════════════════════════════════════════════════════════════
   STATS SPOTLIGHT — Broadcast-style rotating stat section
═══════════════════════════════════════════════════════════════ */

.stats-spotlight {
    background: linear-gradient(180deg, #0e0f13 0%, #131519 50%, #0e0f13 100%);
    padding: 2.5rem 1.5rem;
    position: relative;
    overflow: hidden;
    border-top: 3px solid #FFCD00;
    border-bottom: 1px solid rgba(255, 205, 0, 0.15);
}

/* Subtle diagonal texture */
.stats-spotlight::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 40px,
        rgba(255, 205, 0, 0.012) 40px,
        rgba(255, 205, 0, 0.012) 41px
    );
    pointer-events: none;
    z-index: 1;
}

/* Gold top rule — now the border-top handles this */
.stats-spotlight::after { display: none; }

.stats-spotlight-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ── Header Row ── */
.stats-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stats-header-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.stats-header-icon {
    font-family: 'Anton', sans-serif;
    font-size: 1.2rem;
    color: #000;
    background: #FFCD00;
    padding: 4px 10px;
    letter-spacing: 2px;
}

.stats-header-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #ffffff;
    letter-spacing: 0.03em;
    line-height: 1;
}

.stats-header-title span {
    color: #FFCD00;
}

/* Sport tabs */
.stats-tabs {
    display: flex;
    gap: 4px;
}

.stats-tab {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.55);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    padding: 5px 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
}

.stats-tab:hover {
    color: #ffffff;
    border-color: rgba(255, 205, 0, 0.5);
    background: rgba(255, 205, 0, 0.08);
}

.stats-tab.active {
    background: #FFCD00;
    border-color: #FFCD00;
    color: #000;
    font-weight: 700;
}

/* ── Sport Label Bar ── */
.stats-sport-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: rgba(255, 205, 0, 0.75);
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 205, 0, 0.15);
}

/* ── Stats Panel (one per sport) ── */
.stats-panel {
    display: none;
    animation: statsFadeIn 0.4s ease;
}

.stats-panel.active {
    display: block;
}

@keyframes statsFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Big Numbers Row ── */
.stats-big-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2px;
    margin-bottom: 1.5rem;
    background: rgba(255, 205, 0, 0.12);
    border-radius: 2px;
    overflow: hidden;
}

.stats-big-item {
    background: #1a1c22;
    padding: 1.5rem 1rem;
    text-align: center;
    position: relative;
    transition: background 0.2s;
}

.stats-big-item:hover {
    background: #1f2128;
}

/* Gold top accent per tile */
.stats-big-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: rgba(255, 205, 0, 0.3);
}

.stats-big-number {
    font-family: 'Anton', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: #FFCD00;
    text-shadow: 0 0 24px rgba(255, 205, 0, 0.4);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stats-big-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

/* ── Detail Stats Row ── */
.stats-detail-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    padding: 0.8rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-detail-item {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
}

.stats-detail-item strong {
    color: #FFCD00;
    font-weight: 700;
    margin-right: 0.3rem;
}

.stats-detail-sep {
    color: rgba(255, 255, 255, 0.2);
}

/* ── Count-up Animation ── */
.stats-big-number[data-counted="false"] {
    opacity: 0.4;
}

/* ── Auto-rotate indicator ── */
.stats-auto-indicator {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 1.2rem;
}

.stats-auto-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stats-auto-dot.active {
    background: #FFCD00;
    box-shadow: 0 0 8px rgba(255, 205, 0, 0.5);
    width: 18px;
    border-radius: 3px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .stats-spotlight {
        padding: 1.5rem 1rem;
    }

    .stats-big-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-detail-row {
        gap: 0.8rem;
    }
}


/* ═══════════════════════════════════════════════════════════════
   GAMEDAY INTEL — Cinematic Banner (Option 4)
═══════════════════════════════════════════════════════════════ */

.gameday-intel {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.gd4-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.gd4-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: saturate(0.7) contrast(1.1);
    opacity: 0.45;
    transition: opacity 0.6s ease;
}

.gd4-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(0,0,0,0.92) 0%,
        rgba(0,0,0,0.75) 35%,
        rgba(0,0,0,0.55) 55%,
        rgba(0,0,0,0.82) 100%
    );
    z-index: 1;
}

.gd4-edge {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: #FFCD00;
    z-index: 2;
}

.gd4-content {
    position: relative;
    z-index: 3;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 3rem 2.5rem 3.5rem;
    gap: 2rem;
}

/* Iowa block */
.gd4-iowa {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.gd4-eyebrow {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 5px;
    color: rgba(255,205,0,0.65);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.gd4-iowa-name {
    font-family: 'Anton', sans-serif;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.85;
    color: #FFCD00;
    letter-spacing: 0.02em;
    text-shadow:
        0 0 40px rgba(255,205,0,0.3),
        0 4px 20px rgba(0,0,0,0.8);
}

.gd4-iowa-sub {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
}

.gd4-iowa-record {
    font-family: 'Anton', sans-serif;
    font-size: 1.3rem;
    color: rgba(255,205,0,0.7);
    margin-top: 0.3rem;
}

/* Center divider */
.gd4-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.gd4-vs-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255,205,0,0.5), transparent);
}

.gd4-vs-text {
    font-family: 'Anton', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 4px;
    color: rgba(255,205,0,0.5);
}

/* Opponent block */
.gd4-opp {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 0.4rem;
}

.gd4-opp-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.7)) brightness(0.9);
    margin-bottom: 0.3rem;
}

.gd4-opp-name {
    font-family: 'Anton', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    line-height: 0.85;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.02em;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.gd4-opp-sub {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
}

.gd4-opp-record {
    font-family: 'Anton', sans-serif;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.4);
    margin-top: 0.3rem;
}

/* Bottom info bar */
.gd4-bar {
    position: relative;
    z-index: 3;
    background: rgba(0,0,0,0.85);
    border-top: 3px solid #FFCD00;
    padding: 0.75rem 3.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 100%;
}

.gd4-bar-sport {
    font-family: 'Anton', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: #FFCD00;
    text-transform: uppercase;
    flex-shrink: 0;
}

.gd4-bar-sep {
    width: 1px;
    height: 16px;
    background: rgba(255,205,0,0.25);
    flex-shrink: 0;
}

.gd4-bar-item {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
}

.gd4-bar-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.gd4-bar-item a:hover { color: rgba(255,205,0,0.8); }

.gd4-network {
    margin-left: auto;
    font-family: 'Anton', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: #000;
    background: #FFCD00;
    padding: 3px 12px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%);
    flex-shrink: 0;
}

@media (max-width: 700px) {
    .gd4-content {
        grid-template-columns: 1fr;
        padding: 1.5rem 1.5rem 1.5rem 2rem;
        gap: 1rem;
    }
    .gd4-opp { align-items: flex-start; text-align: left; }
    .gd4-divider { flex-direction: row; }
    .gd4-vs-line {
        width: 30px; height: 1px;
        background: linear-gradient(to right, transparent, rgba(255,205,0,0.5), transparent);
    }
    .gd4-bar { padding: 0.75rem 1.5rem; gap: 1rem; }
    .gd4-network { margin-left: 0; }
}


/* ═══════════════════════════════════════════════════════════════
   SEASON IN REVIEW — Off-season mode additions
═══════════════════════════════════════════════════════════════ */

.stats-leaders-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.8rem;
}

.stats-leaders-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: rgba(255, 205, 0, 0.12);
    border-radius: 2px;
    overflow: hidden;
}

.stats-leader-card {
    background: #1a1c22;
    padding: 0.9rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
    overflow: hidden;
    transition: background 0.2s;
}

.stats-leader-card:hover {
    background: #1f2128;
}

.stats-leader-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: rgba(255, 205, 0, 0.25);
    transition: background 0.2s;
}

.stats-leader-card:hover::before {
    background: #FFCD00;
}

.stats-leader-card--highlight {
    background: #1c1a10;
}

.stats-leader-card--highlight::before {
    background: #FFCD00;
}

.stats-leader-cat {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.52rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
}

.stats-leader-name {
    font-family: 'Anton', sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.stats-leader-name--sm {
    font-size: clamp(0.75rem, 1.5vw, 0.95rem);
    color: rgba(255, 255, 255, 0.9);
}

.stats-leader-val {
    font-family: 'Anton', sans-serif;
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    line-height: 1;
    color: #FFCD00;
    text-shadow: 0 0 16px rgba(255, 205, 0, 0.4);
}

.stats-leader-val span {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.45);
    vertical-align: middle;
    margin-left: 2px;
}

.stats-leader-val--sm {
    font-size: 0.65rem;
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    text-shadow: none;
}

/* Review footer */
.stats-review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-review-cta {
    font-family: 'Anton', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #000;
    background: #FFCD00;
    padding: 7px 14px;
    text-decoration: none;
    white-space: nowrap;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%);
    transition: background 0.2s, transform 0.15s;
    flex-shrink: 0;
}

.stats-review-cta:hover {
    background: #ffe033;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .stats-leaders-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-review-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .stats-leaders-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-leader-card {
        padding: 0.75rem 0.6rem;
    }
}
