/* ============================================================
   ChelClub — Design System
   Premium Sports Broadcast Aesthetic
   ============================================================ */

/* === 1. Reset & Custom Properties === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0a0e1a;
    --bg-surface: #111827;
    --bg-card: #1a2235;
    --bg-card-hover: #1f2a40;
    --bg-input: #0d1220;
    --border: #1e2a3f;
    --border-light: #2a3a55;
    --text: #eaf0ff;
    --text-secondary: #94a3c0;
    --text-muted: #5e6e8a;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --green: #22c55e;
    --green-bg: rgba(34, 197, 94, 0.12);
    --red: #ef4444;
    --red-bg: rgba(239, 68, 68, 0.12);
    --yellow: #eab308;
    --yellow-bg: rgba(234, 179, 8, 0.12);
    --blue: #3b82f6;
    --blue-bg: rgba(59, 130, 246, 0.12);
    --orange: #f97316;
    --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', monospace;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.2);
    --shadow-lg: 0 4px 6px rgba(0,0,0,0.3), 0 10px 30px rgba(0,0,0,0.25);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === 2. Base Typography & Elements === */
html { font-size: 15px; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #60a5fa; }

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.2; }

/* === 3. Navigation === */
nav {
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-gradient-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5) 30%, rgba(96, 165, 250, 0.6) 50%, rgba(59, 130, 246, 0.5) 70%, transparent);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    font-family: 'Russo One', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.nav-brand:hover { color: #60a5fa; }
.nav-brand:hover .nav-logo { filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.5)); }

.nav-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.3));
    transition: filter var(--transition);
}

.nav-links { display: flex; gap: 0.25rem; }
.nav-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-xs);
    transition: all var(--transition);
    position: relative;
    letter-spacing: 0.01em;
}
.nav-links a:hover {
    color: var(--text);
    background: rgba(255,255,255,0.04);
}
.nav-links a.active {
    color: var(--accent);
    background: var(--accent-glow);
    box-shadow: inset 0 0 12px rgba(59, 130, 246, 0.08);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 10;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.nav-hamburger:hover span { background: var(--text); }
/* Hamburger → X animation */
nav.nav-open .nav-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
nav.nav-open .nav-hamburger span:nth-child(2) {
    opacity: 0;
}
nav.nav-open .nav-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-xs);
    transition: all var(--transition);
    letter-spacing: 0.01em;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.nav-dropdown-toggle:hover {
    color: var(--text);
    background: rgba(255,255,255,0.04);
}
.nav-dropdown-toggle.active {
    color: var(--accent);
    background: var(--accent-glow);
    box-shadow: inset 0 0 12px rgba(59, 130, 246, 0.08);
}
.nav-dropdown-arrow {
    transition: transform var(--transition);
}
.nav-dropdown-open .nav-dropdown-arrow {
    transform: rotate(180deg);
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    min-width: 160px;
    background: rgba(17, 24, 39, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 0.35rem;
    z-index: 200;
}
.nav-dropdown-open .nav-dropdown-menu { display: block; }
@media (min-width: 769px) {
    .nav-dropdown:hover .nav-dropdown-menu { display: block; }
    .nav-dropdown:hover .nav-dropdown-arrow { transform: rotate(180deg); }
}
.nav-dropdown-menu a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-xs);
    transition: all var(--transition);
}
.nav-dropdown-menu a:hover {
    color: var(--text);
    background: rgba(255,255,255,0.06);
}

/* === 4. Layout (Main, Footer) === */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
    flex: 1;
}

section { margin-bottom: 2.5rem; }

footer {
    text-align: center;
    padding: 0;
    color: var(--text-muted);
    font-size: 0.72rem;
    margin-top: auto;
    letter-spacing: 0.02em;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.75rem 1.5rem;
}
.footer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light) 30%, var(--border-light) 70%, transparent);
    margin-bottom: 1.75rem;
}

/* === 5. Shared Components === */

/* Hero */
.hero {
    text-align: center;
    padding: 2rem 0 1rem;
}
.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #fff 0%, #94a3c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Club Meta Badges */
.club-meta {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
.badge {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    transition: all var(--transition);
}
.badge-accent {
    background: var(--accent-glow);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--accent);
}

/* Record Bar */
.record-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1.25rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 1.5rem 0;
    transition: border-color var(--transition);
}
.record-bar:hover { border-color: var(--border-light); }
.record-item { text-align: center; }
.record-value {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--mono);
    line-height: 1;
}
.record-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.35rem;
    font-weight: 600;
}
.record-divider {
    width: 1px;
    height: 32px;
    background: linear-gradient(180deg, transparent, var(--border-light), transparent);
}
.record-value.win { color: var(--green); }
.record-value.loss { color: var(--red); }
.record-value.otl { color: var(--blue); }

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1rem;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.stat-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background var(--transition);
}
.stat-card.accent-green::before { background: var(--green); }
.stat-card.accent-red::before { background: var(--red); }
.stat-card.accent-yellow::before { background: var(--yellow); }
.stat-card.accent-blue::before { background: var(--blue); }

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: var(--mono);
    line-height: 1;
}
.stat-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.5rem;
    font-weight: 600;
}
.stat-note { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.5rem; }

.stat-card.accent-green .stat-value { color: var(--green); }
.stat-card.accent-red .stat-value { color: var(--red); }
.stat-card.accent-yellow .stat-value { color: var(--yellow); }
.stat-card.accent-blue .stat-value { color: var(--blue); }

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.section-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    background: linear-gradient(135deg, #fff 0%, #94a3c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.link-more {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    transition: all var(--transition);
    letter-spacing: 0.01em;
}
.link-more:hover {
    color: var(--text);
    border-color: var(--border-light);
    background: var(--bg-card);
    transform: translateX(2px);
}

/* Page Title */
.page-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #94a3c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-xs);
    border: 1px solid transparent;
    transition: all var(--transition);
    font-weight: 500;
}
.back-link:hover {
    color: var(--text);
    background: var(--bg-card);
    border-color: var(--border);
}

/* Empty State */
.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 4rem 1rem;
    font-size: 0.95rem;
    background: var(--bg-card);
    border: 1px dashed var(--border-light);
    border-radius: var(--radius);
}

/* Club Crests */
.club-crest {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 0.4rem;
}
.club-crest-lg {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}
.club-crest-sm {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 0.25rem;
}

/* === 6. Tables === */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    white-space: nowrap;
}
thead {
    background: var(--bg-surface);
    position: sticky;
    top: 0;
}
th {
    padding: 0.75rem 0.75rem;
    text-align: left;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border);
}
th.num { text-align: right; }
th[title] { cursor: help; }
td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}
td.num {
    text-align: right;
    font-family: var(--mono);
    font-size: 0.82rem;
}
td.highlight { color: var(--text); font-weight: 600; }
td a { font-weight: 500; }
tbody tr { transition: background var(--transition); }
tbody tr:hover { background: var(--bg-card-hover); }
tbody tr:last-child td { border-bottom: none; }
tbody tr.our-player { background: rgba(59, 130, 246, 0.06); }
tbody tr.our-player:hover { background: rgba(59, 130, 246, 0.1); }
tbody tr.our-player td { color: var(--text); }

/* === 7. Match List === */
.matches-list { display: flex; flex-direction: column; gap: 0.4rem; }

.match-row {
    display: grid;
    grid-template-columns: 40px 1fr auto auto;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    color: var(--text);
    text-decoration: none;
    position: relative;
}
.match-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    background: transparent;
    transition: background var(--transition);
}
.match-row:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateX(2px);
    color: var(--text);
}
.result-W .match-row::before, .match-row.result-W::before { background: var(--green); }
.result-L .match-row::before, .match-row.result-L::before { background: var(--red); }
.result-OTL .match-row::before, .match-row.result-OTL::before { background: var(--blue); }

.match-result {
    font-weight: 800;
    font-family: var(--mono);
    font-size: 0.78rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
    flex-shrink: 0;
    letter-spacing: 0.02em;
}
.result-W .match-result { background: var(--green-bg); color: var(--green); }
.result-L .match-result { background: var(--red-bg); color: var(--red); }
.result-OTL .match-result { background: var(--blue-bg); color: var(--blue); }

.match-teams {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    min-width: 0;
}
.match-teams .team-name {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.match-teams .score {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.15rem 0.5rem;
    background: var(--bg-input);
    border-radius: var(--radius-xs);
    white-space: nowrap;
    flex-shrink: 0;
}

.match-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.match-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.match-date { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; }

/* === 8. Match Detail === */
.match-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}
.match-header .team { text-align: center; }
.match-header .team .club-crest-lg {
    display: block;
    margin: 0 auto 0.5rem;
}
.match-header .team h2 {
    font-size: 1.15rem;
    font-weight: 700;
}
.match-header .team.our-team h2 { color: var(--accent); }

.score-center { text-align: center; }
.big-score {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--mono);
    display: block;
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, #94a3c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.match-result-badge {
    display: inline-block;
    padding: 0.25rem 0.85rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--mono);
    margin-top: 0.75rem;
    letter-spacing: 0.04em;
}
.match-result-badge.result-W { background: var(--green-bg); color: var(--green); }
.match-result-badge.result-L { background: var(--red-bg); color: var(--red); }
.match-result-badge.result-OTL { background: var(--blue-bg); color: var(--blue); }

.match-team-stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 480px;
    margin: 0 auto 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.team-stat {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0.65rem 1.25rem;
    background: var(--bg-surface);
    font-family: var(--mono);
    font-size: 0.88rem;
}
.team-stat:nth-child(even) { background: var(--bg-card); }
.team-stat .val-left { text-align: right; font-weight: 600; }
.team-stat .val-right { text-align: left; font-weight: 600; }
.team-stat .stat-name {
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.72rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0 1rem;
    font-weight: 600;
}

/* === 9. Three Stars === */
.three-stars {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.star-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem 1.15rem;
    min-width: 180px;
    transition: all 0.3s ease;
}
.star-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.star-card.first {
    border-color: rgba(255, 215, 0, 0.35);
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.1), inset 0 0 16px rgba(255, 215, 0, 0.03);
    min-width: 210px;
}
.star-card.first:hover {
    box-shadow: 0 0 24px rgba(255, 215, 0, 0.15), 0 4px 20px rgba(0,0,0,0.3);
}
.star-card.second {
    border-color: rgba(192, 192, 192, 0.3);
    box-shadow: 0 0 12px rgba(192, 192, 192, 0.06);
}
.star-card.third {
    border-color: rgba(205, 127, 50, 0.3);
    box-shadow: 0 0 12px rgba(205, 127, 50, 0.06);
}

.star-rank {
    position: relative;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}
.star-card.first .star-rank {
    width: 42px;
    height: 42px;
}
.star-svg { width: 100%; height: 100%; }
.star-card.first .star-svg { filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5)); }
.star-card.second .star-svg { filter: drop-shadow(0 0 4px rgba(192, 192, 192, 0.35)); }
.star-card.third .star-svg { filter: drop-shadow(0 0 4px rgba(205, 127, 50, 0.35)); }

.star-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 900;
    font-family: var(--mono);
    color: #1a1a2e;
    line-height: 1;
}
.star-card.first .star-num { font-size: 0.8rem; }

.star-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.star-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.star-card.first .star-name { font-size: 0.95rem; }
.star-name:hover { color: var(--accent); }
.star-pos {
    font-size: 0.62rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}
.star-stats {
    font-size: 0.75rem;
    font-family: var(--mono);
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

/* === 10. Player Header === */
.player-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.player-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #94a3c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === 11. Streak & Last N Record === */
.streak {
    display: flex;
    gap: 3px;
    justify-content: center;
    margin-top: 0.75rem;
}
.streak-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-light);
    transition: transform 0.2s ease;
}
.streak-dot.w { background: var(--green); box-shadow: 0 0 6px rgba(34,197,94,0.5); }
.streak-dot.l { background: var(--red); box-shadow: 0 0 6px rgba(239,68,68,0.5); }
.streak-dot.otl { background: var(--blue); }

.last-n-record {
    text-align: center;
    margin: 1rem auto 1.5rem;
    padding: 0.85rem 1.5rem;
    max-width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Hot streak glow */
.last-n-record.streak-hot {
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.1), inset 0 0 15px rgba(249, 115, 22, 0.03);
}
.last-n-record.streak-hot.streak-intense {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.15), 0 0 40px rgba(249, 115, 22, 0.08), inset 0 0 20px rgba(249, 115, 22, 0.05);
}

/* Cold streak glow */
.last-n-record.streak-cold {
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.08), inset 0 0 15px rgba(56, 189, 248, 0.03);
}
.last-n-record.streak-cold.streak-intense {
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.15), 0 0 40px rgba(56, 189, 248, 0.08), inset 0 0 20px rgba(56, 189, 248, 0.05);
}

/* Streak indicator (icon + badge) */
.streak-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}
.streak-icon {
    width: 22px;
    height: 22px;
}
.streak-intense .streak-icon {
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 0 4px currentColor);
}
.streak-hot .streak-icon { filter: drop-shadow(0 0 4px rgba(249, 115, 22, 0.5)); }
.streak-hot.streak-intense .streak-icon { filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.6)); animation: flame-pulse 1.5s ease-in-out infinite; }
.streak-cold .streak-icon { filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.4)); }
.streak-cold.streak-intense .streak-icon { filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.5)); animation: frost-pulse 2s ease-in-out infinite; }

.streak-badge {
    font-size: 0.7rem;
    font-weight: 800;
    font-family: var(--font);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
}
.streak-hot .streak-badge {
    color: #ff8c00;
    background: rgba(249, 115, 22, 0.12);
}
.streak-hot.streak-intense .streak-badge {
    color: #ff4500;
    background: rgba(239, 68, 68, 0.15);
}
.streak-cold .streak-badge {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.12);
}
.streak-cold.streak-intense .streak-badge {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
}

.last-n-label {
    font-size: 0.62rem;
    font-family: var(--font);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
    font-weight: 600;
}
.last-n-splits {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}
.last-n-splits .split {
    font-size: 1.25rem;
    font-weight: 800;
    font-family: var(--mono);
    line-height: 1;
}
.last-n-splits .split.win { color: var(--green); }
.last-n-splits .split.loss { color: var(--red); }
.last-n-splits .split.otl { color: var(--blue); }
.last-n-splits .split-sep {
    width: 1px;
    height: 18px;
    background: var(--border-light);
}
.last-n-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 0.5rem;
}
.last-n-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-light);
}
.last-n-dots .dot.w { background: var(--green); }
.last-n-dots .dot.l { background: var(--red); }
.last-n-dots .dot.otl { background: var(--blue); }

/* === 12. Overview Cards === */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.overview-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition);
}
.overview-card:hover {
    border-color: var(--border-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}
.overview-card .icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    font-family: var(--mono);
    flex-shrink: 0;
}
.overview-card .icon.goals-for { background: var(--green-bg); color: var(--green); }
.overview-card .icon.goals-against { background: var(--red-bg); color: var(--red); }
.overview-card .icon.division { background: var(--blue-bg); color: var(--blue); }
.overview-card .icon.star { background: var(--yellow-bg); color: var(--yellow); }
.overview-card .info { min-width: 0; }
.overview-card .info .value {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--mono);
    line-height: 1;
}
.overview-card .info .label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.3rem;
    font-weight: 600;
}

/* === 13. Scout Feature === */
.section-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    margin-top: -0.75rem;
}

.scout-form { margin-bottom: 1.5rem; }

.scout-input-group {
    display: flex;
    gap: 0.5rem;
    max-width: 560px;
    margin: 0 auto;
}

.scout-input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
    padding: 0.65rem 1rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.scout-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow), 0 0 16px rgba(59, 130, 246, 0.1);
}
.scout-input::placeholder { color: var(--text-muted); }

.scout-btn {
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.65rem 1.25rem;
    transition: all var(--transition);
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.scout-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.scout-btn:active { transform: none; }

/* Home hero */
.home-hero {
    position: relative;
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2rem;
    padding-top: 3rem;
    padding-bottom: 1rem;
}
.home-hero-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    width: 220px;
    height: 220px;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}
.home-hero-watermark svg {
    width: 100%;
    height: 100%;
}
.home-hero-title {
    position: relative;
    z-index: 1;
    font-family: 'Russo One', sans-serif;
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}
.home-hero .section-subtitle {
    position: relative;
    z-index: 1;
}
.home-hero .scout-form {
    position: relative;
    z-index: 1;
}

/* Home feature cards */
.home-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
}
.home-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.home-feature-card:hover {
    border-color: #60a5fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(96, 165, 250, 0.1);
}
.home-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(96, 165, 250, 0.08);
    color: #60a5fa;
    margin-bottom: 1rem;
}
.home-feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}
.home-feature-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Home recent searches */
.home-recent {
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}
.home-recent-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}
.home-recent-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.home-recent-card {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 500;
    transition: border-color 0.2s, background 0.2s;
}
.home-recent-card:hover {
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.06);
}
.home-recent-crest {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: contain;
}

/* Player search info banner */
.ps-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.75rem auto 0;
    max-width: 520px;
    padding: 0.6rem 0.85rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.ps-info-banner svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 0.1rem;
}
.ps-info-banner a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Player search tips */
.ps-tips {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}
.ps-tip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
}
.ps-tip svg {
    flex-shrink: 0;
}

/* Responsive: feature cards stack on mobile */
@media (max-width: 640px) {
    .home-features {
        grid-template-columns: 1fr;
    }
    .home-hero-title {
        font-size: 2rem;
    }
    .home-hero-watermark {
        width: 160px;
        height: 160px;
    }
    .ps-tips {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

/* Team top bar */
.team-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.scout-form-inline { margin-bottom: 0; flex: 1; max-width: 360px; }
.scout-form-inline .scout-input-group { gap: 0.5rem; }
.scout-form-inline .scout-input { font-size: 0.82rem; padding: 0.5rem 0.85rem; }
.scout-form-inline .scout-btn { padding: 0.5rem 0.85rem; font-size: 0.78rem; }

/* Save as home team button */
.sr-save-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font);
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all var(--transition);
    margin-left: auto;
    white-space: nowrap;
}
.sr-save-btn:hover {
    color: var(--text);
    background: rgba(255,255,255,0.08);
    border-color: var(--border-light);
}
.sr-save-btn-saved {
    color: var(--green);
    border-color: rgba(34, 197, 94, 0.4);
    background: var(--green-bg);
}
.sr-save-btn-saved:hover {
    color: var(--red);
    border-color: rgba(239, 68, 68, 0.4);
    background: var(--red-bg);
}

/* Favorite star button (hero area) */
.fav-star-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 1rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}
.fav-star-btn:hover {
    color: var(--yellow);
    background: var(--yellow-bg);
    border-color: rgba(234, 179, 8, 0.4);
}
.fav-star-btn.fav-star-active {
    color: var(--yellow);
    background: var(--yellow-bg);
    border-color: rgba(234, 179, 8, 0.4);
}
.fav-star-btn.fav-star-active:hover {
    color: var(--red);
    background: var(--red-bg);
    border-color: rgba(239, 68, 68, 0.4);
}

/* Favorites section */
.fav-section {
    margin-bottom: 2rem;
}
.fav-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.fav-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.fav-title svg {
    vertical-align: -1px;
    margin-right: 0.25rem;
    color: var(--yellow);
}
.fav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}
.fav-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}
.fav-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transform: translateY(-1px);
    color: inherit;
}
.fav-crest {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}
.fav-info {
    flex: 1;
    min-width: 0;
}
.fav-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fav-record {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.15rem;
}
.fav-record .record-chip {
    font-size: 0.65rem;
    padding: 0.1rem 0.35rem;
    line-height: 1.3;
}
.fav-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 0.65rem;
    cursor: pointer;
    opacity: 0;
    transition: all var(--transition);
    line-height: 1;
    padding: 0;
}
.fav-card:hover .fav-remove {
    opacity: 1;
}
.fav-remove:hover {
    color: var(--red);
    border-color: rgba(239, 68, 68, 0.4);
    background: var(--red-bg);
}

.scout-error {
    background: var(--red-bg);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    color: var(--red);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    padding: 0.85rem 1rem;
}

.scout-results {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-width: 760px;
}

/* Search results picker modal */
.search-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: modalFadeIn 0.2s ease-out;
}
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.search-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    width: 100%;
    max-width: 560px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.2s ease-out;
}
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}
.search-modal-header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}
.search-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.25rem;
    line-height: 1;
    transition: color var(--transition);
}
.search-modal-close:hover {
    color: var(--text);
}
.search-modal-body {
    overflow-y: auto;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.search-modal-body .scout-result-row {
    border-radius: var(--radius-sm);
}
.search-modal-body .scout-result-row:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.search-modal-body .scout-result-row:hover .record-chip {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.scout-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 0.85rem 1rem;
    text-decoration: none;
    transition: all var(--transition);
}
.scout-result-row:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    color: var(--text);
    transform: translateX(2px);
}

.scout-result-name {
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.scout-result-record {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.record-chip {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-xs);
    background: var(--bg-input);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.record-chip.win { background: var(--green-bg); color: var(--green); border-color: transparent; }
.record-chip.loss { background: var(--red-bg); color: var(--red); border-color: transparent; }
.record-chip.otl { background: var(--blue-bg); color: var(--blue); border-color: transparent; }

.scout-match-row {
    display: grid;
    grid-template-columns: 40px 1fr auto auto;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.scout-match-row:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

/* === 14. Player Lookup Cards === */
.player-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.player-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: all var(--transition);
}
.player-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.player-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.player-card-name {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.player-gt {
    font-weight: 700;
    font-size: 1.1rem;
}

.player-ingame {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.player-card .stats-grid {
    margin-bottom: 0.75rem;
}

.pos-breakdown {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.goalie-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.goalie-stat {
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* === 15. Dashboard (dash-*) === */

/* Dashboard Hero */
.dash-hero {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
}
.dash-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.dash-hero-pattern {
    width: 100%;
    height: 100%;
    opacity: 1;
}
.dash-hero-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1;
}

/* Streak embedded in hero */
.dash-streak {
    margin-left: auto;
    text-align: center;
    padding: 0.75rem 1.25rem;
    background: rgba(10, 14, 26, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    min-width: 120px;
    flex-shrink: 0;
    transition: border-color 0.3s, box-shadow 0.3s;
}
/* Hot streak glow on the embedded card */
.dash-hero.streak-hot .dash-streak {
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.1), inset 0 0 15px rgba(249, 115, 22, 0.03);
}
.dash-hero.streak-hot.streak-intense .dash-streak {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.15), 0 0 40px rgba(249, 115, 22, 0.08), inset 0 0 20px rgba(249, 115, 22, 0.05);
}
/* Cold streak glow on the embedded card */
.dash-hero.streak-cold .dash-streak {
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.08), inset 0 0 15px rgba(56, 189, 248, 0.03);
}
.dash-hero.streak-cold.streak-intense .dash-streak {
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.15), 0 0 40px rgba(56, 189, 248, 0.08), inset 0 0 20px rgba(56, 189, 248, 0.05);
}
.dash-streak .streak-indicator {
    margin-bottom: 0.35rem;
}
.dash-streak .last-n-label {
    margin-bottom: 0.3rem;
}
.dash-streak .last-n-splits .split {
    font-size: 1rem;
}
.dash-streak .last-n-splits .split-sep {
    height: 14px;
}
.dash-crest {
    width: 72px;
    height: 72px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.2));
}
.dash-identity { min-width: 0; }
.dash-identity .club-meta {
    justify-content: flex-start;
    margin-top: 0.6rem;
}
.dash-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #94a3c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dashboard Record Ring Gauges */
.dash-record {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.dash-record-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.dash-record-stat:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.dash-record-ring {
    position: relative;
    width: 72px;
    height: 72px;
}
.dash-record-ring svg {
    width: 100%;
    height: 100%;
}
.dash-record-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.35rem;
    font-weight: 800;
    font-family: var(--mono);
    line-height: 1;
    color: var(--text);
}
.dash-record-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    cursor: help;
}

/* Dashboard Player of the Week */
.dash-pow {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #eab308, #fcd34d, #eab308) 1;
    border-image-slice: 1 0 0 0;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
}
.dash-pow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.06) 0%, transparent 100%);
    pointer-events: none;
}
.dash-pow-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    position: relative;
}
.dash-pow-trophy {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(234, 179, 8, 0.4));
}
.dash-pow-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--yellow);
}
.dash-pow-player {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #94a3c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all var(--transition);
    width: fit-content;
}
.dash-pow-player:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
}
.dash-pow-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.dash-pow-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.6rem 0.85rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-width: 60px;
    transition: all var(--transition);
}
.dash-pow-chip:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
}
.dash-pow-chip-val {
    font-size: 1.2rem;
    font-weight: 800;
    font-family: var(--mono);
    line-height: 1;
    color: var(--text);
}
.dash-pow-chip-lbl {
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.dash-pow-positive { color: var(--green); }
.dash-pow-negative { color: var(--red); }
.dash-pow-rating-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    flex-shrink: 0;
}
.dash-pow-ring {
    position: relative;
    width: 80px;
    height: 80px;
}
.dash-pow-ring svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.3));
}
.dash-pow-ring-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.3rem;
    font-weight: 900;
    font-family: var(--mono);
    line-height: 1;
    text-shadow: 0 0 12px currentColor;
    letter-spacing: -0.02em;
}
.dash-pow-ring-lbl {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: help;
}
.dash-pow-note {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    font-style: italic;
}

/* Matches Page */
.matches-page-head {
    margin-bottom: 1.5rem;
}

/* Match Detail Hero */
.md-hero {
    position: relative;
    overflow: hidden;
}
.md-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.md-hero-pattern {
    width: 100%;
    height: 100%;
}
.md-hero .team,
.md-hero .score-center {
    position: relative;
    z-index: 1;
}

/* Scout Report Hero */
.sr-hero {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
}
.sr-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.sr-hero-pattern {
    width: 100%;
    height: 100%;
}
.sr-hero-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1;
}
.sr-crest {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.2));
}
.sr-identity { min-width: 0; }
.sr-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #94a3c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === 16. Players Leaderboard (pl-*) === */

.pl-medal {
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.3));
}
.pl-rank-cell {
    text-align: center;
    width: 36px;
}
.pl-rank-num {
    font-family: var(--mono);
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.pl-top-1 { background: rgba(255, 215, 0, 0.04); }
.pl-top-2 { background: rgba(192, 192, 192, 0.03); }
.pl-top-3 { background: rgba(205, 127, 50, 0.03); }

/* === 17. Player Detail (pd-*) === */

/* Player Detail Hero */
.pd-hero {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
}
.pd-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.pd-hero-pattern {
    width: 100%;
    height: 100%;
}
.pd-hero-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1;
}

/* Shield Badge */
.pd-position-badge {
    position: relative;
    width: 72px;
    height: 83px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.25));
}
.pd-badge-svg { width: 100%; height: 100%; }
.pd-badge-text {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.3rem;
    font-weight: 900;
    font-family: var(--mono);
    color: #60a5fa;
    text-shadow: 0 0 12px rgba(96, 165, 250, 0.4);
    letter-spacing: -0.02em;
}

/* Identity */
.pd-identity { min-width: 0; }
.pd-gamertag {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #94a3c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pd-career-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    padding: 0.25rem 0.6rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-xs);
    transition: all var(--transition);
}
.pd-career-link:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
    transform: translateX(2px);
}

/* Primary Stat Ring Gauges */
.pd-primary-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.pd-big-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    transition: all var(--transition);
}
.pd-big-stat:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.pd-big-stat-ring {
    position: relative;
    width: 72px;
    height: 72px;
}
.pd-big-stat-ring svg { width: 100%; height: 100%; }
.pd-big-stat-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.35rem;
    font-weight: 800;
    font-family: var(--mono);
    line-height: 1;
    color: var(--text);
}
.pd-big-stat-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    cursor: help;
}

/* Detail Stat Cards */
.pd-details-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.pd-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--transition);
}
.pd-detail-card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
}
.pd-detail-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-xs);
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}
.pd-detail-icon svg { width: 18px; height: 18px; }
.pd-detail-icon.pd-icon-red { background: var(--red-bg); color: var(--red); }
.pd-detail-icon.pd-icon-orange { background: var(--yellow-bg); color: var(--orange); }
.pd-detail-icon.pd-icon-blue { background: var(--blue-bg); color: var(--accent); }
.pd-detail-icon.pd-icon-green { background: var(--green-bg); color: var(--green); }
.pd-detail-info { min-width: 0; }
.pd-detail-val {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    font-family: var(--mono);
    line-height: 1;
}
.pd-detail-lbl {
    display: block;
    font-size: 0.62rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.3rem;
    white-space: nowrap;
    cursor: help;
}

/* === 18. Player Career Profile (cp-*) === */

/* Hero banner */
.cp-hero {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
}
.cp-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.cp-hero-pattern {
    width: 100%;
    height: 100%;
    opacity: 1;
}
.cp-hero-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1;
}

/* Shield badge */
.cp-position-badge {
    position: relative;
    width: 72px;
    height: 83px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.25));
}
.cp-badge-svg { width: 100%; height: 100%; }
.cp-badge-text {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.3rem;
    font-weight: 900;
    font-family: var(--mono);
    color: #60a5fa;
    text-shadow: 0 0 12px rgba(96, 165, 250, 0.4);
    letter-spacing: -0.02em;
}

/* Identity */
.cp-identity { min-width: 0; }
.cp-gamertag {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #94a3c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cp-ingame {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    font-style: italic;
}

/* Primary stat cards with ring gauges */
.cp-primary-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.cp-big-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.cp-big-stat:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.cp-big-stat-ring {
    position: relative;
    width: 72px;
    height: 72px;
}
.cp-big-stat-ring svg {
    width: 100%;
    height: 100%;
}
.cp-big-stat-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.35rem;
    font-weight: 800;
    font-family: var(--mono);
    line-height: 1;
    color: var(--text);
}
.cp-big-stat-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    cursor: help;
}

/* Detail stat cards */
.cp-details-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.cp-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--transition);
}
.cp-detail-card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
}
.cp-detail-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-xs);
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}
.cp-detail-icon svg { width: 18px; height: 18px; }
.cp-detail-icon.cp-icon-red { background: var(--red-bg); color: var(--red); }
.cp-detail-icon.cp-icon-orange { background: var(--yellow-bg); color: var(--orange); }
.cp-detail-icon.cp-icon-blue { background: var(--blue-bg); color: var(--accent); }
.cp-detail-icon.cp-icon-green { background: var(--green-bg); color: var(--green); }
.cp-detail-info { min-width: 0; }
.cp-detail-val {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    font-family: var(--mono);
    line-height: 1;
}
.cp-detail-lbl {
    display: block;
    font-size: 0.62rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.3rem;
    white-space: nowrap;
}

/* Section card (positions, goalie) */
.cp-section-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.cp-section-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}
.cp-section-head h2 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.cp-section-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

/* Position bars */
.cp-pos-bars {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.cp-pos-item {}
.cp-pos-head {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.cp-pos-abbr {
    font-size: 0.85rem;
    font-weight: 800;
    font-family: var(--mono);
    color: var(--text);
    width: 26px;
}
.cp-pos-fullname {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex: 1;
}
.cp-pos-gp {
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--mono);
    color: var(--text-secondary);
}
.cp-pos-track {
    height: 28px;
    background: var(--bg-surface);
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}
.cp-pos-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.4), rgba(59, 130, 246, 0.15));
    border-radius: var(--radius-xs);
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.5rem;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.cp-pos-fill.cp-pos-primary {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.6), rgba(96, 165, 250, 0.25));
}
.cp-pos-pct {
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--mono);
    color: var(--text);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Goalie section */
.cp-goalie-section {
    border-color: rgba(34, 197, 94, 0.2);
}
.cp-goalie-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr 1fr 1fr;
    gap: 0.75rem;
    align-items: end;
}
.cp-goalie-card {
    text-align: center;
    padding: 1rem 0.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.cp-goalie-val {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--mono);
    line-height: 1;
    color: var(--text);
}
.cp-goalie-lbl {
    display: block;
    font-size: 0.62rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.4rem;
    cursor: help;
}

/* Featured goalie ring (SV%) */
.cp-goalie-featured {
    border-color: rgba(34, 197, 94, 0.2);
    padding: 1.25rem 0.5rem;
}
.cp-goalie-ring {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 0.4rem;
}
.cp-goalie-ring svg {
    width: 100%;
    height: 100%;
}
.cp-goalie-ring-val {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.1rem;
    font-weight: 800;
    font-family: var(--mono);
    color: var(--green);
}

/* Goalie deep-dive sub-sections */
.cp-goalie-sub-title {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}
.cp-goalie-record {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.cp-goalie-record-stat {
    text-align: center;
}
.cp-goalie-record-ring {
    position: relative;
    width: 56px;
    height: 56px;
}
.cp-goalie-record-ring svg {
    width: 100%;
    height: 100%;
}
.cp-goalie-record-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.95rem;
    font-weight: 800;
    font-family: var(--mono);
    line-height: 1;
}
.cp-goalie-record-label {
    display: block;
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.2rem;
}
.cp-goalie-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.cp-goalie-bk-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    text-align: center;
}
.cp-goalie-bk-val {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    font-family: var(--mono);
    line-height: 1.2;
}
.cp-goalie-bk-sub {
    display: block;
    font-size: 0.58rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}
.cp-goalie-bk-lbl {
    display: block;
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    margin-top: 0.3rem;
    cursor: help;
}

/* === Position Versatility Radar (cp-vr-*) === */
.cp-vr-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.cp-vr-chart {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}
.cp-vr-chart svg {
    width: 100%;
    height: 100%;
}
.cp-vr-info {
    flex: 1;
    min-width: 0;
}
.cp-vr-label-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 99px;
    padding: 0.2rem 0.6rem;
    margin-bottom: 0.6rem;
}
.cp-vr-index {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}
.cp-vr-index-num {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--mono);
    line-height: 1;
}
.cp-vr-index-lbl {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.cp-vr-bars {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.cp-vr-bar-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.cp-vr-bar-name {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-muted);
    width: 22px;
    text-align: right;
    flex-shrink: 0;
}
.cp-vr-bar-track {
    flex: 1;
    height: 6px;
    background: var(--bg-surface);
    border-radius: 3px;
    overflow: hidden;
}
.cp-vr-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    opacity: 0.7;
    transition: width 0.3s ease;
}
.cp-vr-bar-val {
    font-size: 0.58rem;
    font-family: var(--mono);
    color: var(--text-muted);
    width: 28px;
    text-align: right;
    flex-shrink: 0;
}
@media (max-width: 480px) {
    .cp-vr-section {
        flex-direction: column;
        text-align: center;
    }
    .cp-vr-chart { width: 120px; height: 120px; }
    .cp-vr-index { justify-content: center; }
    .cp-vr-label-badge { margin-bottom: 0.5rem; }
}

/* === Clutch Performance (cp-cl-*) === */
.cp-cl-section {
    border-color: rgba(234, 179, 8, 0.2);
}
.cp-cl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}
.cp-cl-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    text-align: center;
}
.cp-cl-val {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    font-family: var(--mono);
    line-height: 1;
}
.cp-cl-bar-track {
    height: 4px;
    background: var(--bg-card);
    border-radius: 2px;
    margin: 0.4rem 0;
    overflow: hidden;
}
.cp-cl-bar-fill {
    height: 100%;
    border-radius: 2px;
    opacity: 0.6;
}
.cp-cl-sub {
    display: block;
    font-size: 0.58rem;
    font-family: var(--mono);
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}
.cp-cl-lbl {
    display: block;
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.2rem;
    cursor: help;
}

/* === Money Stats / Advanced Analytics (cp-ms-*) === */
.cp-ms-section {
    border-color: rgba(96, 165, 250, 0.2);
}
.cp-ms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0;
}
.cp-ms-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--border);
    cursor: help;
}
.cp-ms-row:last-child {
    border-bottom: none;
}
.cp-ms-row:hover {
    background: var(--bg-surface);
}
.cp-ms-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.cp-ms-value {
    font-size: 0.82rem;
    font-weight: 800;
    font-family: var(--mono);
}
.cp-ms-good {
    color: var(--green);
}
.cp-ms-neutral {
    color: var(--text-muted);
}

/* === Win Impact (cp-wi-*) === */
.cp-wi-section {
    border-color: rgba(234, 179, 8, 0.2);
}
.cp-wi-records {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
.cp-wi-record-stat {
    text-align: center;
}
.cp-wi-record-ring {
    position: relative;
    width: 56px;
    height: 56px;
}
.cp-wi-record-ring svg {
    width: 100%;
    height: 100%;
}
.cp-wi-record-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 800;
    font-family: var(--mono);
    line-height: 1;
}
.cp-wi-record-label {
    display: block;
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.2rem;
}
.cp-wi-record-sub {
    display: block;
    font-size: 0.58rem;
    font-family: var(--mono);
    color: var(--text-muted);
    opacity: 0.7;
    margin-top: 0.15rem;
}
.cp-wi-chips {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}
.cp-wi-chip {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
    text-align: center;
    min-width: 80px;
    cursor: help;
}
.cp-wi-chip-val {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    font-family: var(--mono);
    line-height: 1.2;
}
.cp-wi-chip-lbl {
    display: block;
    font-size: 0.58rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    margin-top: 0.25rem;
}
.cp-wi-chip-impact {
    border-color: rgba(234, 179, 8, 0.25);
}
.cp-wi-positive { color: var(--green); }
.cp-wi-negative { color: var(--red); }
.cp-wi-verdict {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    padding: 0.3rem 0.75rem;
    border-radius: 99px;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: help;
    text-align: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.cp-wi-verdict-earned {
    color: var(--green);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
}
.cp-wi-verdict-lucky {
    color: var(--orange);
    background: rgba(251, 146, 60, 0.1);
    border: 1px solid rgba(251, 146, 60, 0.25);
}

/* === Scouting Insights (si-*) === */
.si-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.si-section-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.si-section-head h2 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.si-section-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}
.si-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.si-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--border);
    transition: all var(--transition);
}
.si-card:hover {
    border-color: var(--border-light);
    transform: translateX(2px);
}
.si-card-green { border-left-color: var(--green); }
.si-card-red { border-left-color: var(--red); }
.si-card-orange { border-left-color: var(--orange); }
.si-card-yellow { border-left-color: var(--yellow); }
.si-card-accent { border-left-color: var(--accent); }
.si-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}
.si-content { flex: 1; min-width: 0; }
.si-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.15rem;
}
.si-detail {
    font-size: 0.68rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .cp-goalie-breakdown { grid-template-columns: repeat(2, 1fr); }
}

/* Hero position chips */
.cp-hero-positions {
    margin-left: auto;
    text-align: center;
    flex-shrink: 0;
}
.cp-hero-pos-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}
.cp-hero-pos-chips {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: center;
}
.cp-hero-pos-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--mono);
    color: var(--text-secondary);
    background: rgba(10, 14, 26, 0.5);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.25rem 0.6rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.cp-hero-pos-chip.cp-hero-pos-primary {
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.1);
}
.cp-hero-pos-gp {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* OVR Ratings */
.cp-ovr-group {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
    margin-left: 1rem;
}
.cp-ovr {
    text-align: center;
}
.cp-ovr-ring {
    position: relative;
    width: 80px;
    height: 80px;
}
.cp-ovr-ring svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.15));
}
.cp-ovr-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.6rem;
    font-weight: 900;
    font-family: var(--mono);
    line-height: 1;
    letter-spacing: -0.04em;
}
.cp-ovr-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.3rem;
    cursor: help;
}

/* Stat sheet */
.cp-stat-sheet {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.cp-sheet-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
}
.cp-sheet-title {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.cp-sheet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1rem;
}
.cp-sheet-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4rem;
}
.cp-sheet-val {
    font-size: 1.05rem;
    font-weight: 800;
    font-family: var(--mono);
    line-height: 1;
    color: var(--text);
}
.cp-sheet-lbl {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    white-space: nowrap;
    cursor: help;
}

/* === Player Modifier Badges === */
.pd-modifiers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.pd-modifiers-compact {
    justify-content: flex-start;
    margin-top: 0.75rem;
    margin-bottom: 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}
.pd-modifier-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    cursor: help;
    transition: all var(--transition);
}
.pd-modifier-badge:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}
.pd-mod-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
/* Color variants */
.pd-mod-green {
    border-color: rgba(34, 197, 94, 0.3);
    background: var(--green-bg);
    color: var(--green);
}
.pd-mod-red {
    border-color: rgba(239, 68, 68, 0.3);
    background: var(--red-bg);
    color: var(--red);
}
.pd-mod-blue {
    border-color: rgba(59, 130, 246, 0.3);
    background: var(--blue-bg);
    color: var(--accent);
}
.pd-mod-yellow {
    border-color: rgba(234, 179, 8, 0.3);
    background: var(--yellow-bg);
    color: var(--yellow);
}
.pd-mod-orange {
    border-color: rgba(249, 115, 22, 0.3);
    background: rgba(249, 115, 22, 0.12);
    color: var(--orange);
}
.pd-mod-accent {
    border-color: rgba(59, 130, 246, 0.3);
    background: var(--accent-glow);
    color: var(--accent);
}

/* === Heatmap Section (hm-*) === */
.hm-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.hm-section-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}
.hm-section-head h2 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.hm-section-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}
.hm-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.hm-panel {
    flex: 1;
    min-width: 260px;
}
.hm-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}
.hm-goalie-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.hm-rink, .hm-net {
    width: 100%;
    max-width: 400px;
}
.hm-rink svg, .hm-net svg {
    width: 100%;
    height: auto;
    display: block;
}
.hm-zone {
    transition: opacity var(--transition);
    cursor: pointer;
}
.hm-zone:hover {
    opacity: 0.85;
    filter: brightness(1.2);
}
.hm-zone-label {
    font-size: 9px;
    font-weight: 700;
    fill: #fff;
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.hm-zone-sub {
    font-size: 7px;
    font-weight: 600;
    fill: rgba(255,255,255,0.7);
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none;
}
.hm-legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.6rem;
    color: var(--text-muted);
}
.hm-legend-bar {
    height: 8px;
    flex: 1;
    max-width: 120px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(59,130,246,0.08), rgba(234,179,8,0.5), rgba(239,68,68,0.85));
}

@media (max-width: 768px) {
    .hm-container { flex-direction: column; }
    .hm-panel { min-width: 0; }
    .hm-rink, .hm-net { max-width: 100%; }
}

/* === Scout Player Card Body (stats left, OVR right) === */
.sp-card-body {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.sp-card-body > .sp-stats-row {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

/* === Scout Player OVR Section (verdict + rings) === */
.sp-ovr-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    padding-left: 1rem;
    border-left: 1px solid var(--border);
}

/* Verdict indicator */
.sp-verdict {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}
.sp-verdict-icon {
    width: 36px;
    height: 36px;
}
.sp-verdict-text {
    font-size: 0.55rem;
    font-weight: 800;
    font-family: var(--mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.sp-verdict-play .sp-verdict-icon { filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.4)); }
.sp-verdict-play .sp-verdict-text { color: var(--green); }
.sp-verdict-maybe .sp-verdict-icon { filter: drop-shadow(0 0 6px rgba(234, 179, 8, 0.4)); }
.sp-verdict-maybe .sp-verdict-text { color: var(--yellow); }
.sp-verdict-pass .sp-verdict-icon { filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.4)); }
.sp-verdict-pass .sp-verdict-text { color: var(--red); }

/* Reliability badge on search cards */
.sp-rel-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 900;
    font-family: var(--mono);
    border: 1.5px solid;
    background: var(--bg-card);
    cursor: help;
    letter-spacing: -0.02em;
}

/* OVR Rating Rings */
.sp-ovr-rings {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}
.sp-ovr-ring-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}
.sp-ovr-ring {
    position: relative;
    width: 68px;
    height: 68px;
}
.sp-ovr-ring svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.3));
}
.sp-ovr-ring-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.35rem;
    font-weight: 800;
    font-family: var(--mono);
    line-height: 1;
    text-shadow: 0 0 12px currentColor;
}
.sp-ovr-ring-label {
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: help;
}

/* === Scout Player Ring Stats (sp-*) === */

.sp-stats-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.sp-ring-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}
.sp-ring {
    position: relative;
    width: 56px;
    height: 56px;
}
.sp-ring svg { width: 100%; height: 100%; }
.sp-ring-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    font-weight: 800;
    font-family: var(--mono);
    line-height: 1;
    color: var(--text);
}
.sp-ring-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    cursor: help;
}

/* === 17. Error Page === */
.error-container {
    position: relative;
    text-align: center;
    padding: 0;
    margin: -2rem -1.5rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.error-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.error-pattern {
    width: 100%;
    height: 100%;
}
.error-content {
    position: relative;
    z-index: 1;
    padding: 3rem 1.5rem;
}
.error-icon {
    width: 80px;
    height: 92px;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 0 16px rgba(239, 68, 68, 0.25));
    animation: error-float 3s ease-in-out infinite;
}
.error-icon svg { width: 100%; height: 100%; }
.error-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #fff 0%, #94a3c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}
.error-message {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
.error-back {
    display: inline-flex;
}
.error-code {
    font-family: var(--mono);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.8;
}

/* === 18. Responsive === */

/* Three Stars mobile */
@media (max-width: 640px) {
    .three-stars { flex-direction: column; align-items: center; }
    .star-card { min-width: 260px; }
    .star-card.first { min-width: 280px; }
}

/* Tablet */
@media (max-width: 768px) {
    .fav-grid { grid-template-columns: repeat(2, 1fr); }
    .fav-record { display: none; }
    .hero h1 { font-size: 1.8rem; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .overview-grid { grid-template-columns: 1fr; }
    .match-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
    .match-row {
        grid-template-columns: 36px 1fr;
        gap: 0.75rem;
    }
    .match-meta, .match-date { display: none; }
    .record-bar { gap: 1rem; padding: 1rem; }
    .record-value { font-size: 1.2rem; }
    main { padding: 1.5rem 1rem; }

    /* Dashboard responsive */
    .dash-hero { padding: 1.75rem 1.25rem; }
    .dash-title { font-size: 1.5rem; }
    .dash-crest { width: 56px; height: 56px; }
    .dash-record { grid-template-columns: repeat(2, 1fr); }
    .dash-streak { padding: 0.6rem 1rem; min-width: 100px; }
    .dash-streak .last-n-splits .split { font-size: 0.85rem; }
    .dash-pow { padding: 1.25rem; }
    .dash-pow-player { font-size: 1.25rem; }
    .dash-pow-ring { width: 68px; height: 68px; }
    .dash-pow-ring-num { font-size: 1.1rem; }

    /* Scout report responsive */
    .sr-hero { padding: 1.75rem 1.25rem; }
    .sr-title { font-size: 1.5rem; }

    /* Player detail responsive */
    .pd-hero { padding: 1.75rem 1.25rem; }
    .pd-gamertag { font-size: 1.5rem; }
    .pd-position-badge { width: 56px; height: 65px; }
    .pd-badge-text { font-size: 1rem; }
    .pd-primary-stats { grid-template-columns: repeat(3, 1fr); }
    .pd-details-grid { grid-template-columns: repeat(3, 1fr); }

    /* Nav mobile */
    .nav-hamburger { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgb(10, 14, 26);
        flex-direction: column;
        padding: 0.75rem 1.5rem 1.25rem;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    }
    nav.nav-open .nav-links { display: flex; }
    .nav-links a {
        padding: 0.65rem 0.9rem;
        font-size: 0.9rem;
    }
    /* Mobile dropdown — static, not absolute */
    .nav-dropdown { position: static; }
    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 0.65rem 0.9rem;
        font-size: 0.9rem;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    .nav-dropdown-menu {
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0 0 0 1rem;
        min-width: 0;
    }
    .nav-dropdown-menu a {
        font-size: 0.85rem;
        padding: 0.5rem 0.9rem;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    .nav-dropdown:hover .nav-dropdown-menu { display: none; }
    .nav-dropdown-open .nav-dropdown-menu { display: block !important; }

    /* Team top bar mobile */
    .team-top-bar { flex-direction: column; align-items: flex-start; }
    .scout-form-inline { max-width: 100%; }

    /* Player Career responsive */
    .cp-primary-stats { grid-template-columns: repeat(3, 1fr); }
    .cp-details-grid { grid-template-columns: repeat(3, 1fr); }
    .cp-goalie-grid { grid-template-columns: repeat(3, 1fr); }
    .cp-stat-sheet { grid-template-columns: repeat(2, 1fr); }
    .cp-hero { padding: 1.75rem 1.25rem; }
    .cp-gamertag { font-size: 1.5rem; }
    .cp-position-badge { width: 56px; height: 65px; }
    .cp-badge-text { font-size: 1rem; }

    /* Error page */
    .error-container { margin: -1.5rem -1rem 0; }
}

/* Mobile */
@media (max-width: 480px) {
    .fav-grid { grid-template-columns: 1fr; }
    .fav-record { display: flex; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .record-bar { flex-wrap: wrap; gap: 0.75rem; }
    .record-divider { display: none; }

    /* Dashboard mobile */
    .dash-hero-content { flex-direction: column; text-align: center; }
    .dash-identity .club-meta { justify-content: center; }
    .dash-title { font-size: 1.3rem; }
    .dash-streak { margin-left: 0; width: 100%; }
    .dash-pow-stats { gap: 0.5rem; }
    .dash-pow-chip { min-width: 50px; padding: 0.5rem 0.6rem; }
    .dash-pow-chip-val { font-size: 1rem; }
    .dash-pow-rating-wrap { margin-left: 0; }
    .dash-pow-player { font-size: 1.15rem; }

    /* Scout report mobile */
    .sr-hero-content { flex-direction: column; text-align: center; }
    .sr-title { font-size: 1.3rem; }

    /* Player detail mobile */
    .pd-hero-content { flex-direction: column; text-align: center; }
    .pd-gamertag { font-size: 1.3rem; }
    .pd-primary-stats { grid-template-columns: repeat(2, 1fr); }
    .pd-details-grid { grid-template-columns: repeat(2, 1fr); }

    /* Player Career responsive */
    .cp-primary-stats { grid-template-columns: repeat(2, 1fr); }
    .cp-details-grid { grid-template-columns: repeat(2, 1fr); }
    .cp-goalie-grid { grid-template-columns: repeat(2, 1fr); }
    .cp-stat-sheet { grid-template-columns: 1fr; }
    .cp-hero-content { flex-direction: column; text-align: center; }
    .cp-hero-positions { margin-left: 0; }
    .cp-ovr-group { margin-left: 0; }
    .cp-gamertag { font-size: 1.3rem; }
}

/* Scout mobile */
@media (max-width: 560px) {
    .scout-input-group { flex-direction: column; }
    .scout-result-row { flex-direction: column; align-items: flex-start; }
    .scout-result-record { justify-content: flex-start; }
    .player-card-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .sp-card-body { flex-direction: column; }
    .sp-ovr-section { border-left: none; padding-left: 0; padding-top: 0.75rem; border-top: 1px solid var(--border); }
}

/* === Team Chemistry (tc-*) === */
.tc-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.tc-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.tc-header h2 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.tc-header svg { color: var(--accent); flex-shrink: 0; }
.tc-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.2rem;
    align-items: center;
}
.tc-card { padding: 0.75rem; }
.tc-balance { text-align: center; }
.tc-balance-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.4rem;
}
.tc-pos-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}
.tc-pos-bars { display: flex; flex-direction: column; gap: 0.35rem; }
.tc-pos-row { display: flex; align-items: center; gap: 0.5rem; }
.tc-pos-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    width: 1.8rem;
    text-align: right;
}
.tc-pos-bar {
    flex: 1;
    height: 0.5rem;
    background: var(--surface-2);
    border-radius: 0.25rem;
    overflow: hidden;
    min-width: 60px;
}
.tc-pos-fill {
    height: 100%;
    border-radius: 0.25rem;
    min-width: 4px;
    transition: width 0.4s ease;
}
.tc-pos-fill-c { background: var(--accent); }
.tc-pos-fill-lw { background: var(--green); }
.tc-pos-fill-rw { background: var(--green); }
.tc-pos-fill-d { background: var(--blue, #60a5fa); }
.tc-pos-fill-g { background: var(--orange); }
.tc-pos-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    width: 1.2rem;
}
.tc-style { text-align: center; }
.tc-style-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.9rem;
    border-radius: 0.3rem;
    color: var(--accent);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
}
.tc-style-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    max-width: 140px;
}
.tc-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
}
.tc-note {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    padding: 0.3rem 0.6rem;
    border-radius: 0.25rem;
}
.tc-note-good {
    color: var(--green);
    background: rgba(34, 197, 94, 0.08);
}
.tc-note-warn {
    color: var(--orange);
    background: rgba(251, 146, 60, 0.08);
}
@media (max-width: 700px) {
    .tc-grid {
        grid-template-columns: 1fr 1fr;
    }
    .tc-positions { grid-column: 1 / -1; }
    .tc-style-desc { max-width: none; }
}

/* === Player Archetype (cp-archetype-*) === */
.cp-archetype {
    text-align: center;
    margin-bottom: 0.8rem;
}
.cp-archetype-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 0.35rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.cp-archetype-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}
.cp-archetype-green {
    color: var(--green);
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.cp-archetype-red {
    color: var(--red, #ef4444);
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.cp-archetype-blue {
    color: var(--blue, #60a5fa);
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.3);
}
.cp-archetype-orange {
    color: var(--orange);
    background: rgba(251, 146, 60, 0.12);
    border: 1px solid rgba(251, 146, 60, 0.3);
}
.cp-archetype-yellow {
    color: var(--yellow, #fbbf24);
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
}
.cp-archetype-accent {
    color: var(--accent);
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* === Game Log on Career Page (cp-gl-*) === */
.cp-gl-section { margin-top: 1.5rem; }
.cp-gl-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.cp-gl-card {
    display: block;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
    position: relative;
}
.cp-gl-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateX(2px);
}

/* Header row: result, score, opponent, date, position */
.cp-gl-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.cp-gl-result {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 22px;
    border-radius: 4px;
    font-weight: 700;
    font-family: var(--mono);
    font-size: 0.7rem;
    flex-shrink: 0;
}
.cp-gl-result-W { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.cp-gl-result-L { background: rgba(239, 68, 68, 0.15); color: var(--red); }
.cp-gl-result-OTL { background: rgba(96, 165, 250, 0.15); color: var(--blue, #60a5fa); }
.cp-gl-score {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 0.9rem;
}
.cp-gl-vs {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.cp-gl-opp {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
}
.cp-gl-date {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.cp-gl-pos {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

/* Stat pills row */
.cp-gl-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.cp-gl-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 32px;
}
.cp-gl-stat-val {
    font-family: var(--mono);
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.2;
    color: var(--text-primary);
}
.cp-gl-stat-lbl {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
    margin-top: 3px;
}
.cp-gl-stat-hot .cp-gl-stat-val { color: var(--green); }
.cp-gl-stat-pts .cp-gl-stat-val { color: var(--yellow, #fbbf24); font-weight: 700; }
.cp-gl-divider {
    width: 1px;
    height: 24px;
    background: var(--border-light);
    flex-shrink: 0;
    margin: 0 0.15rem;
}

/* Badges row */
.cp-gl-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.cp-gl-badge {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    font-family: var(--mono);
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.cp-gl-badge-yellow { background: rgba(251, 191, 36, 0.15); color: var(--yellow, #fbbf24); }
.cp-gl-badge-green { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.cp-gl-badge-accent { background: rgba(59, 130, 246, 0.15); color: var(--accent); }
.cp-gl-badge-orange { background: rgba(251, 146, 60, 0.15); color: var(--orange); }
.cp-gl-badge-blue { background: rgba(96, 165, 250, 0.15); color: var(--blue, #60a5fa); }
.cp-gl-badge-red { background: rgba(239, 68, 68, 0.15); color: var(--red); }

.cp-gl-note {
    padding: 0.75rem 1.25rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
}

/* === 19. Tap-friendly Tooltips === */
.has-tip {
    position: relative;
    cursor: help;
}
.has-tip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.3rem 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text);
    font-size: 0.7rem;
    font-weight: 500;
    font-family: var(--font);
    white-space: nowrap;
    border-radius: var(--radius-xs);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 50;
    box-shadow: var(--shadow);
    line-height: 1.3;
}
.has-tip:hover::after,
.has-tip.active::after {
    opacity: 1;
}
/* Keep tooltips on-screen when near edges */
th:first-child .has-tip::after,
th:first-child.has-tip::after {
    left: 0;
    transform: none;
}
th:last-child .has-tip::after,
th:last-child.has-tip::after {
    left: auto;
    right: 0;
    transform: none;
}

/* === 20. Stats Glossary Panel (mobile only) === */
.glossary-fab {
    display: none;
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 90;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 100px;
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: background var(--transition), transform var(--transition);
}
.glossary-fab:hover { background: #2563eb; }
.glossary-fab:active { transform: scale(0.96); }
.glossary-fab svg { flex-shrink: 0; }

.glossary-panel {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 91;
    max-height: 70vh;
    overflow-y: auto;
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
    padding: 1rem 1.25rem 1.5rem;
}
.glossary-panel.open {
    display: block;
}
.glossary-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.glossary-panel-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}
.glossary-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.2rem;
    line-height: 1;
}
.glossary-close:hover { color: var(--text); }
.glossary-group {
    margin-bottom: 0.75rem;
}
.glossary-group-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 0.3rem;
}
.glossary-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
}
.glossary-item {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.glossary-item strong {
    color: var(--text);
    font-weight: 600;
    margin-right: 0.15rem;
}

@media (max-width: 768px) {
    .glossary-fab { display: flex; }
}

/* === 21. OVR Color Legend === */
.ovr-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.85rem;
    padding: 0.5rem 0;
    font-size: 0.68rem;
    color: var(--text-secondary);
}
.ovr-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}
.ovr-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .ovr-legend { font-size: 0.72rem; gap: 0.35rem 0.7rem; }
    .ovr-legend-dot { width: 9px; height: 9px; }
    .ovr-legend[data-mobile-only] { display: flex !important; }
}

/* === 22. Result Color Legend (mobile only) === */
.result-legend {
    display: none;
    align-items: center;
    gap: 0.85rem;
    padding: 0.4rem 0;
    margin-bottom: 0.5rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
}
.result-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.result-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .result-legend { display: flex; }
}

/* === 23. Animations === */
@keyframes flame-pulse {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(249, 115, 22, 0.5)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.7)); transform: scale(1.08); }
}
@keyframes frost-pulse {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.4)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.6)); transform: scale(1.05) rotate(15deg); }
}
@keyframes error-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
