@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@400;500&display=swap');

:root {
  --navy:#0a1628;--navy-mid:#112240;--navy-light:#1a3460;
  --blue:#1565c0;--blue-bright:#1e88e5;
  --white:#f5f5f5;--cookie:#a0785a;--cookie-light:#c9a07a;
  --black:#0d0d0d;--gray:#8a9bb0;--card-bg:#112240;
  --border:rgba(255,255,255,0.06);
  --font-display:'Bebas Neue',sans-serif;
  --font-body:'DM Sans',sans-serif;
  --transition:0.18s ease;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{font-family:var(--font-body);background:var(--navy);color:var(--white);min-height:100vh;font-size:15px;line-height:1.6;}
img{display:block;max-width:100%;}
a{color:inherit;text-decoration:none;}
button{cursor:pointer;font-family:var(--font-body);}

/* NAV */
nav{background:var(--black);border-bottom:2px solid var(--cookie);position:sticky;top:0;z-index:1000;height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 32px;}
.nav-logo{display:flex;align-items:center;gap:12px;font-family:var(--font-display);font-size:22px;letter-spacing:1.5px;color:var(--white);text-decoration:none;}
.nav-logo img{width:36px;height:36px;object-fit:contain;}
.nav-logo:hover{color:var(--cookie-light);}
.nav-links{display:flex;align-items:center;gap:4px;list-style:none;}
.nav-link{padding:7px 14px;font-size:13px;font-weight:500;color:var(--gray);background:none;border:none;border-radius:6px;text-decoration:none;display:inline-flex;align-items:center;gap:4px;transition:color var(--transition),background var(--transition);}
.nav-link:hover{color:var(--white);background:rgba(255,255,255,0.06);}
.nav-link.active{color:var(--cookie-light);background:rgba(160,120,90,0.15);}
.nav-dropdown{position:relative;}
.dropdown-arrow{font-size:10px;opacity:0.6;transition:transform 0.2s;display:inline-block;}
.nav-dropdown.open .dropdown-arrow{transform:rotate(180deg);}
.dropdown-menu{display:none;position:absolute;top:calc(100% + 6px);left:0;background:#0d0d0d;border:1px solid rgba(160,120,90,0.25);border-radius:8px;overflow:hidden;min-width:190px;box-shadow:0 8px 24px rgba(0,0,0,0.5);}
.nav-dropdown.open .dropdown-menu{display:block;}
.dropdown-divider{height:1px;background:rgba(255,255,255,0.08);margin:4px 0;}
.dropdown-item{display:block;width:100%;padding:10px 16px;font-size:13px;font-weight:500;color:var(--gray);background:none;border:none;text-align:left;text-decoration:none;transition:background var(--transition),color var(--transition);white-space:nowrap;}
.dropdown-item:hover{background:rgba(255,255,255,0.06);color:var(--white);}
.dropdown-item.active{color:var(--cookie-light);}
.nav-hamburger{display:none;flex-direction:column;gap:5px;background:none;border:none;padding:4px;}
.nav-hamburger span{display:block;width:24px;height:2px;background:var(--white);border-radius:2px;}

/* PAGES */
.page{display:none;animation:fadeUp 0.25s ease;}
.page.active{display:block;}
@keyframes fadeUp{from{opacity:0;transform:translateY(8px);}to{opacity:1;transform:translateY(0);}}

/* HERO */
.hero{padding:72px 48px 60px;position:relative;overflow:hidden;border-bottom:1px solid rgba(160,120,90,0.25);}
.hero::before{content:'';position:absolute;top:-60px;right:-60px;width:400px;height:400px;border-radius:50%;border:60px solid rgba(160,120,90,0.06);pointer-events:none;}
.hero-tag{font-size:11px;font-weight:500;color:var(--cookie-light);letter-spacing:3px;text-transform:uppercase;margin-bottom:14px;}
.hero h1{font-family:var(--font-display);font-size:80px;line-height:0.95;letter-spacing:3px;color:var(--white);margin-bottom:20px;}
.hero h1 span{color:var(--cookie-light);}
.hero p{font-size:15px;color:var(--gray);max-width:460px;line-height:1.75;margin-bottom:32px;}
.hero-btns{display:flex;gap:12px;flex-wrap:wrap;}

/* BUTTONS */
.btn-primary{padding:12px 28px;background:var(--cookie);color:var(--black);font-weight:500;font-size:14px;border:none;border-radius:7px;transition:background var(--transition),transform var(--transition);text-decoration:none;display:inline-block;}
.btn-primary:hover{background:var(--cookie-light);transform:translateY(-1px);}
.btn-outline{padding:12px 28px;background:transparent;color:var(--white);font-weight:500;font-size:14px;border:1px solid rgba(255,255,255,0.2);border-radius:7px;transition:border-color var(--transition),color var(--transition),transform var(--transition);text-decoration:none;display:inline-block;}
.btn-outline:hover{border-color:var(--cookie-light);color:var(--cookie-light);transform:translateY(-1px);}
.btn-sm{padding:7px 14px;font-size:12px;}
.btn-cancel{padding:10px 20px;background:transparent;color:var(--gray);font-size:13px;font-weight:500;border:1px solid rgba(255,255,255,0.1);border-radius:6px;cursor:pointer;font-family:var(--font-body);transition:all 0.15s;}
.btn-cancel:hover{color:var(--white);border-color:rgba(255,255,255,0.2);}

/* HOME GRID */
.home-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding:32px 48px 0;}
.home-card{background:var(--card-bg);border-radius:12px;border:1px solid var(--border);padding:22px;}
.home-card h3{font-family:var(--font-display);font-size:15px;letter-spacing:1.5px;color:var(--cookie-light);margin-bottom:14px;text-transform:uppercase;}
.news-item{padding:9px 0;border-bottom:1px solid var(--border);font-size:13px;}
.news-item:last-child{border-bottom:none;}
.news-item .title{color:var(--white);font-weight:500;margin-bottom:2px;}
.news-item .date{color:var(--gray);font-size:11px;}
.stat-row{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid rgba(255,255,255,0.04);font-size:13px;}
.stat-row:last-child{border-bottom:none;}
.stat-label{color:var(--gray);}
.stat-val{color:var(--white);font-weight:500;}
.stat-val.blue{color:var(--blue-bright);}
.record-display{text-align:center;padding:10px 0 16px;}
.record-num{font-family:var(--font-display);font-size:52px;letter-spacing:4px;color:var(--white);}
.record-num span{color:var(--cookie-light);}
.record-sub{font-size:11px;color:var(--gray);letter-spacing:2px;text-transform:uppercase;margin-top:4px;}
.home-footer-note{padding:24px 48px 40px;margin-top:8px;text-align:center;font-size:12px;color:var(--gray);}
.home-footer-note a{color:var(--blue-bright);}
.home-footer-note a:hover{text-decoration:underline;}

/* PAGE HEADER */
.page-header{padding:40px 48px 24px;border-bottom:1px solid var(--border);}
.page-header h2{font-family:var(--font-display);font-size:44px;letter-spacing:2px;color:var(--white);}
.page-header p{font-size:13px;color:var(--gray);margin-top:6px;}

/* NEWS */
.news-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;padding:28px 48px;}
.news-card{background:var(--card-bg);border-radius:12px;border:1px solid var(--border);overflow:hidden;transition:border-color var(--transition),transform var(--transition);}
.news-card:hover{border-color:rgba(160,120,90,0.3);transform:translateY(-2px);}
.news-img{height:100px;background:linear-gradient(135deg,var(--navy-light),var(--blue));display:flex;align-items:center;justify-content:center;font-family:var(--font-display);font-size:14px;letter-spacing:3px;color:rgba(255,255,255,0.35);}
.news-body{padding:18px;}
.news-tag{font-size:10px;font-weight:500;text-transform:uppercase;letter-spacing:2px;color:var(--cookie-light);margin-bottom:8px;}
.news-card h3{font-size:15px;font-weight:500;margin-bottom:8px;}
.news-card p{font-size:13px;color:var(--gray);line-height:1.65;}
.news-date{font-size:11px;color:var(--gray);margin-top:10px;}

/* STATS — core table */
.stats-content{padding:28px 48px;}
.stats-section-label{font-family:var(--font-display);font-size:13px;letter-spacing:2px;color:var(--cookie-light);text-transform:uppercase;margin:24px 0 10px;padding-bottom:6px;border-bottom:1px solid rgba(160,120,90,0.2);}
.stats-section-label:first-child{margin-top:0;}
.stats-table-wrap{overflow-x:auto;margin-bottom:4px;}
.stats-table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap;}
.stats-table th{text-align:left;padding:8px 10px;color:var(--cookie-light);font-size:10px;font-weight:500;letter-spacing:1px;text-transform:uppercase;border-bottom:1px solid rgba(255,255,255,0.08);cursor:pointer;user-select:none;}
.stats-table th:hover{color:var(--white);}
.stats-table td{padding:9px 10px;border-bottom:1px solid rgba(255,255,255,0.04);color:var(--white);}
.stats-table tbody tr:last-child td{border-bottom:none;}
.stats-table tbody tr:hover td{background:rgba(255,255,255,0.025);}
.stats-table .num{color:var(--gray);font-size:11px;}
.stats-table .name{font-weight:500;cursor:pointer;color:var(--cookie-light);}
.stats-table .name:hover{text-decoration:underline;}
.stats-table .hi{color:var(--blue-bright);font-weight:500;}
.stats-empty{text-align:center;font-size:12px;color:var(--gray);padding:16px 0 4px;font-style:italic;}

/* RECAPS */
.recaps-list{display:flex;flex-direction:column;gap:14px;padding:28px 48px;}
.recap-card{background:var(--card-bg);border-radius:12px;border:1px solid var(--border);padding:22px 26px;display:flex;align-items:center;gap:24px;transition:border-color var(--transition);}
.recap-card:hover{border-color:rgba(160,120,90,0.35);}
.recap-year{font-family:var(--font-display);font-size:46px;letter-spacing:2px;color:var(--cookie);min-width:90px;}
.recap-info h3{font-size:15px;font-weight:500;margin-bottom:5px;}
.recap-info p{font-size:13px;color:var(--gray);line-height:1.6;}
.recap-badge{margin-left:auto;padding:6px 14px;border-radius:20px;font-size:12px;font-weight:500;white-space:nowrap;flex-shrink:0;}
.badge-champ{background:rgba(160,120,90,0.2);color:var(--cookie-light);border:1px solid rgba(160,120,90,0.4);}
.badge-run{background:rgba(21,101,192,0.2);color:#64b5f6;border:1px solid rgba(21,101,192,0.4);}
.badge-reg{background:rgba(255,255,255,0.05);color:var(--gray);border:1px solid rgba(255,255,255,0.1);}

/* ROSTER */
.roster-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding:28px 48px;}
.player-card{background:var(--card-bg);border-radius:12px;border:1px solid var(--border);padding:20px;display:flex;align-items:center;gap:16px;cursor:pointer;transition:border-color var(--transition),transform var(--transition);}
.player-card:hover{border-color:rgba(160,120,90,0.4);transform:translateY(-2px);}
.player-card.featured{border-color:rgba(160,120,90,0.35);}
.player-avatar{width:52px;height:52px;border-radius:50%;background:var(--navy-light);border:2px solid var(--cookie);display:flex;align-items:center;justify-content:center;font-family:var(--font-display);font-size:20px;color:var(--cookie-light);flex-shrink:0;}
.player-info{flex:1;min-width:0;}
.player-name-card{font-size:14px;font-weight:500;margin-bottom:6px;}
.player-meta{display:flex;gap:6px;flex-wrap:wrap;}
.player-badge{font-size:10px;padding:2px 8px;border-radius:10px;font-weight:500;}
.pb-year{background:rgba(160,120,90,0.15);color:var(--cookie-light);}
.pb-rook{background:rgba(21,101,192,0.2);color:#64b5f6;}
.pb-vet{background:rgba(30,136,229,0.15);color:#90caf9;}
.pb-hand{background:rgba(255,255,255,0.06);color:var(--gray);}
.player-arrow{color:var(--cookie-light);font-size:16px;margin-left:auto;opacity:0;transition:opacity 0.15s;flex-shrink:0;}
.player-card:hover .player-arrow{opacity:1;}

/* PLAYER PROFILE */
.player-profile-back{padding:20px 48px 0;}
.back-link{font-size:13px;color:var(--cookie-light);text-decoration:none;font-weight:500;}
.back-link:hover{text-decoration:underline;}
.player-profile-hero{display:flex;align-items:center;gap:28px;padding:28px 48px 32px;border-bottom:1px solid var(--border);}
.profile-number{font-family:var(--font-display);font-size:88px;line-height:1;color:var(--cookie);letter-spacing:2px;min-width:130px;text-align:center;}
.profile-header-info h2{font-family:var(--font-display);font-size:40px;letter-spacing:2px;color:var(--white);margin-bottom:10px;}
.profile-badges{display:flex;gap:8px;flex-wrap:wrap;}
.profile-content{padding:28px 48px 48px;}
.profile-info-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:32px;}
.profile-info-card{background:var(--card-bg);border-radius:10px;border:1px solid var(--border);padding:16px;text-align:center;}
.profile-info-val{font-family:var(--font-display);font-size:22px;letter-spacing:1px;color:var(--white);margin-bottom:4px;}
.profile-info-label{font-size:11px;color:var(--gray);text-transform:uppercase;letter-spacing:1px;}
.profile-section{margin-bottom:28px;}
.profile-section-title{font-family:var(--font-display);font-size:13px;letter-spacing:2px;color:var(--cookie-light);text-transform:uppercase;margin-bottom:10px;padding-bottom:6px;border-bottom:1px solid rgba(160,120,90,0.2);}

/* ABOUT */
.about-hero{background:var(--card-bg);margin:28px 48px 0;border-radius:12px;border:1px solid var(--border);padding:28px 32px;}
.about-hero h3{font-family:var(--font-display);font-size:26px;letter-spacing:1.5px;color:var(--white);margin-bottom:10px;}
.about-hero p{font-size:14px;color:var(--gray);line-height:1.8;}
.roster-section-label{padding:28px 48px 10px;font-family:var(--font-display);font-size:15px;letter-spacing:2px;color:var(--cookie-light);text-transform:uppercase;}

/* IMPORT UI */
.import-box{background:var(--card-bg);border-radius:12px;border:1px solid var(--border);padding:32px;max-width:760px;}
.import-header h3{font-family:var(--font-display);font-size:24px;letter-spacing:1px;color:var(--white);margin-bottom:8px;}
.import-header p{font-size:13px;color:var(--gray);line-height:1.6;}
.import-section{margin-top:24px;}
.import-label{font-size:11px;font-weight:500;color:var(--cookie-light);letter-spacing:1.5px;text-transform:uppercase;margin-bottom:10px;}
.import-type-tabs{display:flex;gap:6px;}
.import-type-btn{padding:7px 18px;font-size:13px;font-weight:500;border-radius:6px;border:1px solid rgba(255,255,255,0.1);background:transparent;color:var(--gray);cursor:pointer;transition:all 0.15s;font-family:var(--font-body);}
.import-type-btn:hover{color:var(--white);border-color:rgba(255,255,255,0.2);}
.import-type-btn.active{background:var(--blue);border-color:var(--blue);color:var(--white);}
.import-format{background:rgba(0,0,0,0.3);border-radius:6px;padding:12px 16px;border:1px solid rgba(255,255,255,0.06);margin-bottom:10px;}
.import-format code{font-size:12px;color:var(--cookie-light);font-family:monospace;}
.import-hint{font-size:11px;color:var(--gray);margin-top:6px;}
.file-drop-zone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:2px dashed rgba(160,120,90,0.3);border-radius:10px;padding:36px 24px;cursor:pointer;transition:border-color 0.15s,background 0.15s;}
.file-drop-zone:hover{border-color:var(--cookie);background:rgba(160,120,90,0.05);}
.drop-icon{font-size:28px;}
.drop-text{font-size:14px;font-weight:500;color:var(--white);}
.drop-sub{font-size:12px;color:var(--gray);}
.import-preview-wrap{overflow-x:auto;margin-bottom:16px;}
.import-actions{display:flex;gap:10px;align-items:center;}
.import-success{margin-top:16px;padding:12px 16px;background:rgba(29,158,117,0.15);border:1px solid rgba(29,158,117,0.3);border-radius:8px;font-size:13px;color:#5dcaa5;}
.import-success a{color:#5dcaa5;text-decoration:underline;}
.import-error{margin-top:16px;padding:12px 16px;background:rgba(226,75,74,0.12);border:1px solid rgba(226,75,74,0.3);border-radius:8px;font-size:13px;color:#f09595;}

/* FOOTER */
footer{background:var(--black);border-top:1px solid rgba(160,120,90,0.2);padding:24px 48px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;}
.footer-left{font-size:12px;color:var(--gray);}
.footer-social{display:flex;gap:10px;}
.social-btn{padding:7px 16px;font-size:12px;font-weight:500;border-radius:6px;border:1px solid;background:transparent;transition:background var(--transition),color var(--transition);}
.social-btn.ig{border-color:#e1306c;color:#e1306c;}
.social-btn.ig:hover{background:#e1306c;color:white;}
.social-btn.yt{border-color:#ff0000;color:#ff0000;}
.social-btn.yt:hover{background:#ff0000;color:white;}
.footer-links{display:flex;gap:16px;align-items:center;}
.footer-link{font-size:12px;color:var(--gray);transition:color var(--transition);}
.footer-link:hover{color:var(--cookie-light);}
.footer-twbl{font-size:12px;color:var(--blue-bright);}
.footer-twbl:hover{text-decoration:underline;}

/* RESPONSIVE */
@media(max-width:900px){
  .hero{padding:48px 24px 40px;}
  .hero h1{font-size:56px;}
  .home-grid{grid-template-columns:1fr;padding:24px;}
  .page-header{padding:28px 24px 16px;}
  .news-grid{grid-template-columns:1fr;padding:20px 24px;}
  .stats-content{padding:20px 24px;}
  .recaps-list{padding:20px 24px;}
  .about-hero{margin:20px 24px 0;}
  .roster-section-label{padding:20px 24px 10px;}
  .roster-grid{grid-template-columns:1fr 1fr;padding:0 24px 32px;}
  footer{padding:20px 24px;flex-direction:column;text-align:center;}
  .home-footer-note{padding:20px 24px 32px;}
  .player-profile-back{padding:16px 24px 0;}
  .player-profile-hero{padding:20px 24px 24px;gap:16px;}
  .profile-number{font-size:60px;min-width:80px;}
  .profile-header-info h2{font-size:28px;}
  .profile-content{padding:20px 24px 36px;}
  .profile-info-grid{grid-template-columns:repeat(2,1fr);}
  .import-box{padding:20px;}
}
@media(max-width:600px){
  nav{padding:0 20px;}
  .nav-links{display:none;}
  .nav-links.open{display:flex;flex-direction:column;position:absolute;top:58px;left:0;right:0;background:var(--black);padding:12px;border-bottom:1px solid var(--border);z-index:999;}
  .nav-hamburger{display:flex;}
  /* Mobile dropdowns — expand inline instead of floating */
  .nav-links.open .dropdown-menu {
    position:static;
    box-shadow:none;
    border:none;
    border-left:2px solid rgba(160,120,90,0.3);
    border-radius:0;
    background:transparent;
    padding:0 0 4px 12px;
    margin-top:4px;
    display:none;
  }
  .nav-links.open .nav-dropdown.open .dropdown-menu { display:block; }
  .nav-links.open .nav-link { width:100%; justify-content:space-between; }
  .nav-links.open .dropdown-item { padding:8px 12px; font-size:13px; }
  .hero h1{font-size:44px;}
  .roster-grid{grid-template-columns:1fr;}
  .recap-card{flex-wrap:wrap;}
  .recap-badge{margin-left:0;}
  .profile-info-grid{grid-template-columns:1fr 1fr;}
}

/* ─── LEADERBOARD ─────────────────────────────────────────── */
.leaderboard-section {
  padding: 32px 48px 8px;
}
.leaderboard-title {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--cookie-light);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.leader-card {
  background: var(--card-bg);
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 16px 18px;
  position: relative;
  transition: border-color var(--transition);
}
.leader-card:hover { border-color: rgba(160,120,90,0.35); }
.leader-stat-name {
  font-size: 10px;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.leader-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.leader-val {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 1px;
  color: var(--cookie-light);
  line-height: 1;
}
.leaderboard-note {
  font-size: 11px;
  color: var(--gray);
  margin-top: 12px;
  font-style: italic;
}

/* ─── MEDIA PAGE ──────────────────────────────────────────── */
.media-section-label {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--cookie-light);
  text-transform: uppercase;
  padding: 28px 48px 14px;
  border-bottom: 1px solid rgba(160,120,90,0.2);
  margin-bottom: 0;
}

/* YouTube section */
.youtube-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  padding: 20px 48px 0;
  max-width: 1100px;
}
.yt-feature {
  max-width: 720px;
}
.yt-feature iframe {
  max-width: 100%;
  max-height: 405px;
}
.yt-embed-placeholder {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.yt-play-icon {
  width: 56px;
  height: 56px;
  background: #ff0000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  padding-left: 4px;
}
.yt-placeholder-text {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--white);
}
.yt-placeholder-sub {
  font-size: 12px;
  color: var(--gray);
}
.yt-placeholder-sub a { color: #ff6666; }
.yt-placeholder-sub a:hover { text-decoration: underline; }

.yt-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.yt-thumb-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  cursor: pointer;
  transition: border-color var(--transition);
}
.yt-thumb-card:hover { border-color: rgba(255,0,0,0.3); }
.yt-thumb-img {
  width: 72px;
  height: 44px;
  background: var(--navy-light);
  border-radius: 5px;
  flex-shrink: 0;
}
.yt-thumb-label { font-size: 12px; font-weight: 500; color: var(--white); }

/* Gallery */
.gallery-instructions {
  padding: 14px 48px;
  font-size: 12px;
  color: var(--gray);
  line-height: 1.7;
}
.gallery-instructions code {
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--cookie-light);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0 48px 0;
}
.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
  border: 1px solid var(--border);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item.placeholder {
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: default;
  border: 2px dashed rgba(255,255,255,0.08);
}
.gallery-placeholder-icon { font-size: 28px; opacity: 0.4; }
.gallery-placeholder-text { font-size: 12px; color: var(--gray); }

/* Lightbox */
.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9998;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: 8px; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 28px;
  font-size: 28px;
  color: var(--white);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  color: var(--white);
  cursor: pointer;
  background: rgba(0,0,0,0.4);
  border: none;
  padding: 12px 16px;
  border-radius: 6px;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Instagram CTA */
.media-ig-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px 48px;
  margin-top: 28px;
  border-top: 1px solid var(--border);
}
.ig-cta-text { font-size: 14px; color: var(--gray); }

/* ─── NEWS PAGE upgrades ──────────────────────────────────── */
.news-filter-bar {
  display: flex;
  gap: 8px;
  padding: 0 48px 20px;
  flex-wrap: wrap;
}
.news-filter-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: var(--gray);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.15s;
}
.news-filter-btn:hover { color: var(--white); border-color: rgba(255,255,255,0.25); }
.news-filter-btn.active { background: var(--cookie); border-color: var(--cookie); color: var(--black); }

/* ─── Responsive additions ────────────────────────────────── */
@media(max-width:900px){
  .leaderboard-grid { grid-template-columns: repeat(2,1fr); }
  .leaderboard-section { padding: 24px 24px 8px; }
  .youtube-section { grid-template-columns: 1fr; padding: 16px 24px 0; }
  .yt-thumbnails { flex-direction: row; }
  .yt-thumb-card { flex: 1; flex-direction: column; padding: 8px; }
  .yt-thumb-img { width: 100%; height: 60px; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); padding: 0 24px; }
  .media-section-label { padding: 20px 24px 12px; }
  .gallery-instructions { padding: 12px 24px; }
  .media-ig-cta { padding: 20px 24px 36px; flex-direction: column; gap: 14px; text-align: center; }
  .news-filter-bar { padding: 0 24px 16px; }
}
@media(max-width:600px){
  .leaderboard-grid { grid-template-columns: repeat(2,1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
  .yt-thumbnails { flex-direction: column; }
}

/* ─── SORTABLE TABLE HEADERS ──────────────────────────────── */
.stats-table th { cursor: pointer; transition: color var(--transition); }
.stats-table th:hover { color: var(--white); }
.stats-table th.sort-desc::after { content: ' ▼'; font-size: 9px; }
.stats-table th.sort-asc::after  { content: ' ▲'; font-size: 9px; }

/* ─── CAREER SPLIT ROWS ───────────────────────────────────── */
.split-year-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  background: rgba(160,120,90,0.15);
  color: var(--cookie-light);
}
.split-year-badge.twbl {
  background: rgba(21,101,192,0.2);
  color: #64b5f6;
}
.split-year-badge.career {
  background: rgba(255,255,255,0.06);
  color: var(--gray);
}
.split-row-career td { border-top: 1px solid rgba(255,255,255,0.1); font-weight: 500; }

/* ─── RESULTS PAGE ────────────────────────────────────────── */
.results-summary {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  padding: 28px 48px 0;
}
.results-stat-card {
  background: var(--card-bg);
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 18px;
  text-align: center;
}
.results-stat-val {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 2px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.results-stat-label {
  font-size: 11px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.result-badge {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 500;
  line-height: 28px;
  text-align: center;
}
.result-badge.win  { background: rgba(29,158,117,0.2);  color: #5dcaa5; border: 1px solid rgba(29,158,117,0.4); }
.result-badge.loss { background: rgba(226,75,74,0.15);  color: #f09595; border: 1px solid rgba(226,75,74,0.3); }
.result-badge.tie  { background: rgba(255,255,255,0.06); color: var(--gray); border: 1px solid var(--border); }
.score-win  { color: #5dcaa5; font-weight: 500; }
.score-loss { color: #f09595; font-weight: 500; }

/* ─── ADMIN PANEL ─────────────────────────────────────────── */
.admin-trigger-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.2);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.15s;
  position: absolute;
  right: 48px;
}
.admin-trigger-btn:hover { color: var(--cookie-light); }
footer { position: relative; }

.admin-panel {
  background: #0d1f35;
  border: 1px solid rgba(160,120,90,0.25);
  border-radius: 14px;
  width: 100%;
  max-width: 780px;
  margin: auto;
  overflow: hidden;
}
.admin-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--white);
}
.admin-section {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.admin-section:last-child { border-bottom: none; }
.admin-section-title {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--cookie-light);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.admin-field { display: flex; flex-direction: column; gap: 5px; }
.admin-field label {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.admin-field input,
.admin-field select,
.admin-field textarea {
  background: #0a1628;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 9px 12px;
  outline: none;
  transition: border-color 0.15s;
  resize: vertical;
}
.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus { border-color: rgba(160,120,90,0.5); }
.admin-field select option { background: #0d1f35; }
.admin-submit-btn {
  padding: 10px 22px;
  background: var(--cookie);
  color: var(--black);
  font-weight: 500;
  font-size: 13px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s;
}
.admin-submit-btn:hover { background: var(--cookie-light); }

/* ─── Responsive additions ────────────────────────────────── */
@media(max-width:900px){
  .results-summary { grid-template-columns: repeat(3,1fr); padding: 20px 24px 0; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-panel { margin: 0 12px; }
}
@media(max-width:600px){
  .results-summary { grid-template-columns: repeat(2,1fr); }
}

/* ─── HERO SPLIT LAYOUT ───────────────────────────────────── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: center;
  padding: 56px 48px 52px;
}
.hero-split::before { display: none; }
.hero-content { }
.hero-split h1 { font-size: 68px; }

/* ─── SLIDESHOW ───────────────────────────────────────────── */
.hero-slideshow {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 480px;
  background: var(--card-bg);
  border: 1px solid var(--border);
}
.slideshow-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  overflow: hidden;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.slide-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide-placeholder-inner { text-align: center; }
.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: var(--white);
  font-size: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s;
}
.hero-slideshow:hover .slideshow-nav { opacity: 1; }
.slideshow-nav:hover { background: rgba(0,0,0,0.75); }
.slideshow-nav.prev { left: 10px; }
.slideshow-nav.next { right: 10px; }
.slideshow-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.slideshow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}
.slideshow-dot.active { background: var(--cookie-light); }

/* ─── INSTAGRAM SECTION ───────────────────────────────────── */
.instagram-section {
  padding: 20px 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ig-embed-note {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.ig-icon { font-size: 28px; }
.ig-embed-note p { font-size: 14px; color: var(--gray); line-height: 1.7; }
.ig-embed-note a { color: #e1306c; }
.ig-embed-note a:hover { text-decoration: underline; }
.ig-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ig-post-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--gray);
  font-size: 13px;
  padding: 24px;
  background: var(--card-bg);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 10px;
}

/* ─── Responsive additions ────────────────────────────────── */
@media(max-width:1000px){
  .hero-split { grid-template-columns: 1fr; gap: 28px; }
  .hero-split h1 { font-size: 56px; }
  .hero-slideshow { height: 320px; }
}
@media(max-width:600px){
  .ig-posts-grid { grid-template-columns: 1fr; }
  .instagram-section { padding: 16px 24px 32px; }
}

/* Physique badge (height/weight on profile) */
.pb-physique { background: rgba(255,255,255,0.06); color: var(--white); font-weight: 500; }

/* ─── LIGHT MODE ──────────────────────────────────────────── */
body.light {
  --navy:         #f4f6f9;
  --navy-mid:     #eaecf2;
  --navy-light:   #dde1ea;
  --white:        #1c2333;
  --gray:         #6b7a95;
  --card-bg:      #ffffff;
  --border:       rgba(0,0,0,0.07);
  --black:        #f4f6f9;
  background: #f4f6f9;
  color: #1c2333;
}

/* Nav */
body.light nav                { background: #ffffff; border-bottom: 2px solid var(--cookie); box-shadow: 0 1px 12px rgba(0,0,0,0.07); }
body.light .nav-logo          { color: #1c2333; }
body.light .nav-logo img      { filter: none !important; }
body.light .nav-link          { color: #6b7a95; }
body.light .nav-link:hover    { background: rgba(0,0,0,0.04); color: #1c2333; }
body.light .nav-link.active   { color: var(--cookie); background: rgba(160,120,90,0.08); }
body.light .dropdown-menu     { background: #ffffff; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
body.light .dropdown-item     { color: #6b7a95; }
body.light .dropdown-item:hover { background: rgba(0,0,0,0.04); color: #1c2333; }
body.light .theme-toggle      { border-color: rgba(0,0,0,0.15); color: #1c2333; }
body.light .nav-hamburger span { background: #1c2333; }

/* Cards & surfaces */
body.light .home-card,
body.light .news-card,
body.light .recap-card,
body.light .player-card,
body.light .leader-card,
body.light .profile-info-card,
body.light .results-stat-card,
body.light .last-game-card,
body.light .yt-thumb-card,
body.light .yt-embed-placeholder,
body.light .ig-embed-note,
body.light .import-box,
body.light .about-hero,
body.light .admin-panel { background: #ffffff; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }

body.light .import-format     { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.07); }
body.light .admin-panel-header { background: rgba(0,0,0,0.03); }
body.light .admin-field input,
body.light .admin-field select,
body.light .admin-field textarea { background: #f8f9fb; color: #1c2333; border-color: rgba(0,0,0,0.12); }
body.light .admin-field label  { color: #6b7a95; }

/* Text & headers */
body.light h1, body.light h2, body.light h3 { color: #1c2333; }
body.light .hero-tag           { color: var(--cookie); }
body.light .record-num         { color: #1c2333; }
body.light .profile-number     { color: var(--cookie); }
body.light .profile-header-info h2 { color: #1c2333; }
body.light .page-header h2     { color: #1c2333; }
body.light .page-header p      { color: #6b7a95; }
body.light .leaderboard-title  { color: var(--cookie); }
body.light .stats-section-label { color: var(--cookie); }
body.light .profile-section-title { color: var(--cookie); }
body.light .media-section-label { color: var(--cookie); }
body.light .roster-section-label { color: var(--cookie); }
body.light .admin-section-title { color: var(--cookie); }

/* Tables */
body.light .stats-table th     { color: var(--cookie); border-bottom-color: rgba(0,0,0,0.08); }
body.light .stats-table td     { color: #1c2333; border-bottom-color: rgba(0,0,0,0.05); }
body.light .stats-table tbody tr:hover td { background: rgba(0,0,0,0.025); }
body.light .stats-table .name  { color: var(--cookie); }
body.light .stats-table .num   { color: #6b7a95; }

/* Footer */
body.light footer              { background: #ffffff; border-top-color: rgba(160,120,90,0.2); box-shadow: 0 -1px 8px rgba(0,0,0,0.05); }
body.light .footer-left        { color: #6b7a95; }
body.light .footer-link        { color: #6b7a95; }
body.light .footer-link:hover  { color: var(--cookie); }
body.light .admin-trigger-btn  { color: rgba(0,0,0,0.2); }
body.light .admin-trigger-btn:hover { color: var(--cookie); }

/* Hero slideshow */
body.light .hero-slideshow     { border-color: rgba(0,0,0,0.1); background: #eaecf2; }
body.light .slide-placeholder  { background: #eaecf2; }

/* Misc */
body.light .file-drop-zone     { border-color: rgba(0,0,0,0.15); }
body.light .file-drop-zone:hover { background: rgba(0,0,0,0.03); border-color: var(--cookie); }
body.light .gallery-item.placeholder { background: #eaecf2; border-color: rgba(0,0,0,0.1); }
body.light .ig-post-placeholder { background: #eaecf2; border-color: rgba(0,0,0,0.1); }
body.light .yt-thumb-img       { background: #dde1ea; }
body.light .split-row-career td { border-top-color: rgba(0,0,0,0.08); }
body.light .results-summary    { }
body.light .last-game-section  { }
body.light .news-img           { background: linear-gradient(135deg, #dde1ea, #c8cfde); color: rgba(0,0,0,0.3); }

/* ─── THEME TOGGLE BUTTON ─────────────────────────────────── */
.theme-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  color: var(--white);
  font-size: 15px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}
.theme-toggle:hover { border-color: var(--cookie-light); }
body.light .theme-toggle { border-color: rgba(0,0,0,0.15); color: #1a1a2e; }

/* ─── LAST GAME SPOTLIGHT ─────────────────────────────────── */
.last-game-section {
  padding: 0 48px 8px;
}
.last-game-label {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--cookie-light);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.last-game-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.last-game-result { flex-shrink: 0; }
.last-game-score {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 2px;
  color: var(--white);
  line-height: 1;
}
.last-game-opp {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  margin-top: 4px;
}
.last-game-meta { font-size: 12px; color: var(--gray); margin-top: 2px; }
.last-game-notes {
  font-size: 13px;
  color: var(--gray);
  margin-left: auto;
  text-align: right;
  max-width: 300px;
  font-style: italic;
}

/* ─── SHARE PROFILE BUTTON ────────────────────────────────── */
.player-profile-back {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.share-profile-btn {
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  border: 1px solid rgba(160,120,90,0.4);
  border-radius: 6px;
  color: var(--cookie-light);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.15s;
}
.share-profile-btn:hover { background: rgba(160,120,90,0.1); }

/* ─── PLAYER SHARE CARD ───────────────────────────────────── */
.share-card {
  width: 380px;
  background: #0a1628;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 2px solid var(--cookie);
  font-family: var(--font-body);
}
.share-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1628 0%, #112240 50%, #1a3460 100%);
  opacity: 0.9;
}
.share-card-number {
  position: relative;
  font-family: var(--font-display);
  font-size: 100px;
  line-height: 1;
  color: rgba(160,120,90,0.15);
  padding: 16px 20px 0;
  letter-spacing: 4px;
}
.share-card-info {
  position: relative;
  padding: 0 20px 12px;
}
.share-card-name {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 2px;
  color: #f5f5f5;
  line-height: 1.1;
}
.share-card-pos {
  font-size: 12px;
  color: var(--cookie-light);
  margin-top: 4px;
}
.share-card-physical {
  font-size: 12px;
  color: #8a9bb0;
  margin-top: 2px;
}
.share-card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.share-card-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-top: 1px solid rgba(160,120,90,0.2);
  margin-top: 4px;
}
.sc-stat {
  background: #0a1628;
  padding: 10px 8px;
  text-align: center;
}
.sc-stat-val {
  font-family: var(--font-display);
  font-size: 20px;
  color: #f5f5f5;
  letter-spacing: 1px;
}
.sc-stat-label {
  font-size: 9px;
  color: #8a9bb0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}
.share-card-footer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(160,120,90,0.2);
  font-size: 11px;
  color: #8a9bb0;
  letter-spacing: 1px;
}
.share-card-logo { width: 22px; height: 22px; object-fit: contain; }

/* Responsive */
@media(max-width:900px){
  .last-game-section { padding: 0 24px 8px; }
  .last-game-notes { display: none; }
  .share-card { width: 320px; }
  .share-card-number { font-size: 72px; }
  .share-card-name { font-size: 22px; }
}

/* ─── LOGO — always full color, always visible ────────────── */
.nav-logo img {
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.15)) !important;
  -webkit-filter: drop-shadow(0 0 1px rgba(0,0,0,0.15)) !important;
  mix-blend-mode: normal !important;
}
/* In light mode, add a slightly stronger shadow so white parts stay visible */
body.light .nav-logo img {
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.25)) drop-shadow(0 0 1px rgba(0,0,0,0.2)) !important;
  -webkit-filter: drop-shadow(0 0 2px rgba(0,0,0,0.25)) drop-shadow(0 0 1px rgba(0,0,0,0.2)) !important;
}

/* ═══════════════════════════════════════════════════════════
   VISUAL POLISH UPDATE
   ═══════════════════════════════════════════════════════════ */

/* ─── HERO PATTERN BACKGROUND ─────────────────────────────── */
.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image:
    radial-gradient(circle at 20% 50%, #c9a07a 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, #c9a07a 1px, transparent 1px),
    radial-gradient(circle at 50% 80%, #c9a07a 1px, transparent 1px),
    radial-gradient(circle at 10% 10%, #c9a07a 1px, transparent 1px),
    radial-gradient(circle at 90% 90%, #c9a07a 1px, transparent 1px);
  background-size: 120px 120px;
  /* Animated wiffleball holes drifting slowly */
  animation: patternDrift 40s linear infinite;
}
@keyframes patternDrift {
  from { background-position: 0 0; }
  to   { background-position: 120px 120px; }
}
body.light .hero-pattern { opacity: 0.06; }

/* ─── PAGE TRANSITIONS ─────────────────────────────────────── */
.page {
  animation: pageEnter 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── PLAYER CARDS — accent bar + number watermark ────────── */
.player-card {
  position: relative;
  overflow: hidden;
}
.player-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--cookie);
  border-radius: 3px 0 0 3px;
  opacity: 0;
  transition: opacity 0.2s;
}
.player-card:hover::before { opacity: 1; }
.player-card::after {
  content: attr(data-number);
  position: absolute;
  right: -6px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 56px;
  color: rgba(160,120,90,0.06);
  letter-spacing: 2px;
  pointer-events: none;
  line-height: 1;
}

/* ─── LEADERBOARD — gold accent + crown ───────────────────── */
.leader-card.gold {
  border-color: rgba(212,175,55,0.15);
  position: relative;
  overflow: hidden;
}
.leader-card.gold::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.leader-card.gold:hover::before { opacity: 1; }
.leader-crown {
  font-size: 12px;
  position: absolute;
  top: 8px; right: 10px;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.leader-card.gold:hover .leader-crown { opacity: 1; }
/* Gold accent on val when populated */
.leader-card.gold .leader-val:not(:empty):not([textContent="—"]) {
  color: #d4af37;
}

/* ─── ZEBRA STRIPING ON STATS TABLES ──────────────────────── */
.stats-table tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.02);
}
.stats-table tbody tr:hover td {
  background: rgba(160,120,90,0.08) !important;
}
body.light .stats-table tbody tr:nth-child(even) td {
  background: rgba(0,0,0,0.025);
}
body.light .stats-table tbody tr:hover td {
  background: rgba(160,120,90,0.06) !important;
}

/* ─── COUNT-UP ANIMATION TARGET ───────────────────────────── */
.countup { transition: all 0.1s; }

/* ─── RESULTS PAGE — animated stat cards ──────────────────── */
.results-stat-card {
  transition: transform 0.2s, border-color 0.2s;
}
.results-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(160,120,90,0.3);
}
.results-stat-val { transition: color 0.3s; }
#res-wins   .results-stat-val { color: #5dcaa5; }
#res-losses .results-stat-val { color: #f09595; }
#res-pct    .results-stat-val { color: var(--cookie-light); }
#res-streak .results-stat-val { color: var(--blue-bright); }

/* ─── WIN RESULT BADGE — gold tint ────────────────────────── */
.result-badge.win {
  background: rgba(212,175,55,0.15);
  color: #d4af37;
  border-color: rgba(212,175,55,0.4);
}

/* ─── GOLD ACCENT COLOR VAR ───────────────────────────────── */
:root { --gold: #d4af37; --gold-dim: rgba(212,175,55,0.15); }

/* ─── LIGHT MODE additions ─────────────────────────────────── */
body.light .leader-card.gold { background: #ffffff; }
body.light #res-wins   .results-stat-val { color: #1a9e6e; }
body.light #res-losses .results-stat-val { color: #c0392b; }






/* ─── GALLERY IMAGES ──────────────────────────────────────── */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* ─── HOME MIDDLE ROW ─────────────────────────────────────── */
.home-middle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 8px 48px 0;
}

/* ─── NEXT GAME COUNTDOWN ─────────────────────────────────── */
.next-game-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
}
.next-game-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cookie-light));
}
.next-game-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--blue-bright);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.next-game-opponent {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 4px;
}
.next-game-meta {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 20px;
}
.countdown-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.countdown-unit {
  text-align: center;
  min-width: 52px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 8px 6px;
  border: 1px solid var(--border);
}
.countdown-val {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 2px;
  color: var(--cookie-light);
  line-height: 1;
}
.countdown-label {
  font-size: 9px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 3px;
}
.countdown-sep {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gray);
  line-height: 1;
  margin-top: -8px;
}
.next-game-location {
  font-size: 12px;
  color: var(--gray);
  margin-top: 12px;
  font-style: italic;
}

/* ─── PLAYER OF THE GAME ──────────────────────────────────── */
.potg-card {
  background: var(--card-bg);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 12px;
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
}
.potg-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--cookie-light));
}
.potg-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.potg-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}
.potg-number {
  font-family: var(--font-display);
  font-size: 64px;
  color: rgba(212,175,55,0.2);
  letter-spacing: 2px;
  line-height: 1;
  min-width: 80px;
  text-align: center;
}
.potg-name {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 4px;
}
.potg-game {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 10px;
}
.potg-stats {
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.5px;
}

/* ─── Light mode additions ────────────────────────────────── */
body.light .next-game-card,
body.light .potg-card { background: #ffffff; }
body.light .countdown-unit { background: rgba(0,0,0,0.03); }
body.light .next-game-opponent,
body.light .potg-name { color: #1c2333; }
body.light .potg-number { color: rgba(212,175,55,0.15); }

/* ─── Responsive ──────────────────────────────────────────── */
@media(max-width:900px){
  .home-middle-row { grid-template-columns: 1fr; padding: 8px 24px 0; }
  .countdown-val { font-size: 26px; }
}
/* ─── NEWS CARD INTERACTIVE ───────────────────────────────── */
.news-card { cursor: pointer; }
.news-card:hover { border-color: rgba(160,120,90,0.4); transform: translateY(-3px); }
.news-read-more {
  font-size: 12px;
  font-weight: 500;
  color: var(--cookie-light);
  margin-top: 10px;
  letter-spacing: 0.5px;
  transition: color 0.15s;
}
.news-card:hover .news-read-more { color: var(--white); }

/* ─── ARTICLE OVERLAY ─────────────────────────────────────── */
.article-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 32px 80px;
  position: relative;
  min-height: 100vh;
}
.article-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s;
  z-index: 10;
}
.article-close:hover { background: rgba(255,255,255,0.15); }
.article-tag {
  font-size: 10px;
  font-weight: 500;
  color: var(--cookie-light);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.article-title {
  font-family: var(--font-display);
  font-size: 42px;
  letter-spacing: 2px;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 14px;
}
.article-meta {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.article-hero {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 32px;
}
.article-body {
  font-size: 15px;
  color: rgba(245,245,245,0.85);
  line-height: 1.85;
}
.article-body p { margin-bottom: 18px; }
.article-body h4 {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--cookie-light);
  margin: 28px 0 10px;
}
.article-social-row {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

@media(max-width:600px){
  .article-page { padding: 24px 20px 60px; }
  .article-title { font-size: 28px; }
  .article-hero { height: 180px; }
  .article-close { top: 12px; right: 12px; font-size: 12px; padding: 6px 12px; }
}
