/* ===========================
   MOBILE-FIRST RESET & TOKENS
   =========================== */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #0c0c0c;
  color: #e0e0e0;
  font-family: 'Segoe UI', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, iframe { max-width: 100%; height: auto; }

:root{
  --cyan:#00ffff; --cyan-dim:#00e6e6;
  --bg-0:#000; --bg-1:#0c0c0c; --bg-2:#111; --bg-3:#121212;
  --bg-4:#1a1a1a; --bg-5:#1d1d1d; --bg-6:#222;
  --txt:#fff; --muted:#ccc;
}

/* ===========================
   GLOBAL ELEMENTS
   =========================== */
body{ background:var(--bg-1); color:#e0e0e0; }

input, select{
  background:#222; color:#fff; border:1px solid #555; border-radius:6px;
  padding:8px; margin:5px 0; box-shadow:0 0 5px rgba(0,255,255,.2);
}
input::placeholder{ color:#999; }

button{
  background-color:var(--black); color:#fff; font-weight:700;
  border:none; padding:10px 20px; border-radius:8px;
  box-shadow:0 0 10px var(--cyan); cursor:pointer; transition:.3s;
}
button:hover{ box-shadow:0 0 15px var(--cyan),0 0 25px var(--cyan); }

h2{ color:var(--cyan); text-shadow:0 0 10px var(--cyan); }

/* Tables */
table{ background:#121212; color:var(--cyan); border:1px solid var(--cyan); }
th{ background:#1f1f1f; text-shadow:0 0 5px var(--cyan); }
td{ padding:8px; border-top:1px solid #222; }

/* ===========================
   HEADER BAR & NAV
   =========================== */
header{
  text-align:center;
  background:#1d1d1d;
  padding:60px 0 10px;
  margin-top:60px;
}

.banner-container{
  width:100%; height:250px; overflow:hidden; display:flex; justify-content:center; align-items:center;
}
.shop-banner{ width:100%; height:auto; object-fit:cover; }

/* Nav is visible by default. On phones it collapses ONLY when .is-collapsed is present. */
nav{
  width:100%;
  background:#222;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:15px 0;
  z-index:1000;
  text-align:center;
  transition:max-height .3s ease, padding .3s ease;
  overflow:visible;
}
nav ul{
  display:flex; list-style:none; padding:0; margin:0;
  flex-direction:column; gap:10px;
}
nav ul li{ margin:0; }
nav ul li a{
  color:#fff; text-decoration:none; font-size:18px; display:block; padding:10px 12px;
  background:#1a1a1a; border-radius:10px;
}

/* Fancy link state — scoped to primary nav so it doesn't hit the mobile rail */
#primary-nav a{
  color:#fff; text-decoration:none; margin:0 15px; font-weight:600; font-size:16px;
  transition:color .3s,text-shadow .3s; position:relative;
}
#primary-nav a:hover{ color:var(--cyan); text-shadow:0 0 6px var(--cyan),0 0 12px var(--cyan); font-weight:700; }
#primary-nav a::after{
  content:""; display:block; width:0; height:2px; background:var(--cyan);
  transition:width .3s; margin:4px auto 0;
}
#primary-nav a:hover::after{ width:60%; }

/* Collapsible only on small screens via class */
@media (max-width:767px){
  #primary-nav.is-collapsed{
    max-height:0 !important;
    padding-top:0 !important;
    padding-bottom:0 !important;
    overflow:hidden !important;
  }
  #primary-nav:not(.is-collapsed){
    max-height:1200px; /* plenty to show all links */
  }
}

/* Tablet and up: horizontal nav */
@media (min-width:768px){
  nav ul{ flex-direction:row; flex-wrap:wrap; justify-content:center; gap:12px; }
  nav ul li a{ background:transparent; padding:8px 10px; }
}

/* ===========================
   HERO
   =========================== */
.hero-intro{
  display:flex; flex-direction:column; justify-content:center; align-items:center; gap:24px; min-height:60vh;
}
.hero-box{
  background:linear-gradient(145deg,#0c0c0c,#0c0c0c); border-radius:12px; padding:24px;
  box-shadow:0 0 20px rgba(0,255,255,.1); text-align:center; width:100%; max-width:600px;
  border:1px solid var(--cyan); margin:0 14px;
}
.hero-box h1{ font-size:clamp(1.6rem,5vw,2.5rem); color:#fff; margin-bottom:16px; }
.hero-box .glow{ color:#fff; text-shadow:0 0 8px var(--cyan); }
.hero-box .tagline{ font-size:clamp(1rem,3.4vw,1.1rem); color:#fff; margin-bottom:24px; }

.hero-button{
  background:linear-gradient(135deg,#1d1d1d,#1d1d1d); color:#fff; font-weight:700; font-size:1.05rem;
  padding:12px 22px; border-radius:8px; text-decoration:none; border:none; box-shadow:0 0 12px #00ffffd8;
  transition:.25s; position:relative; overflow:hidden;
}
.hero-button::before{
  content:""; position:absolute; top:-50%; left:-50%; width:200%; height:200%;
  background:radial-gradient(circle,#00ffff44 10%,transparent 50%); animation:pulseGlow 2.5s linear infinite; z-index:0;
}
.hero-button:hover{ transform:scale(1.06); box-shadow:0 0 20px var(--cyan); }
.hero-button span{ position:relative; z-index:1; }

/* ===========================
   FLOATING LOGO
   =========================== */
.shop-logo{
  width:150px; display:block; margin:0 auto; border-radius:50%; border:3px solid #26fdfd; padding:5px;
  box-shadow:0 0 15px var(--cyan-dim); filter:drop-shadow(0 0 10px var(--cyan-dim)); animation:float 3s ease-in-out infinite;
}
.floating-logo-container{ display:flex; justify-content:center; align-items:center; background:#111; padding:40px 0 24px; position:relative; z-index:999; }
.floating-logo{ animation:floatUpDown 3s ease-in-out infinite; }
@keyframes floatUpDown{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(-40px)} }

/* ===========================
   SCOREBOARD
   =========================== */
.matchup-grid{ display:flex; justify-content:space-between; color:var(--cyan); text-shadow:0 0 6px var(--cyan); margin-top:20px; }

.fake-scoreboard{
  background:#1e1e1e; padding:12px 16px; color:#fff; font-family:'Orbitron',sans-serif; display:flex;
  justify-content:center; align-items:center; border:1px solid #333; border-radius:8px; box-shadow:0 0 8px var(--cyan);
  min-width:260px; width:100%;
}
.fake-scoreboard .game{ display:flex; align-items:center; gap:16px; font-size:16px; flex-wrap:wrap; }
.fake-scoreboard .team{ display:flex; align-items:center; gap:8px; }
.fake-scoreboard .team img{ width:24px; height:24px; }
.fake-scoreboard .team strong{ font-size:20px; margin-left:4px; color:var(--cyan); }
.fake-scoreboard .vs{ color:#999; font-size:18px; }
.fake-scoreboard .status{ font-size:14px; color:#aaa; }

.team.winner{ border:1px solid var(--cyan); box-shadow:0 0 8px var(--cyan); border-radius:4px; padding:2px 6px; }

.scoreboard-row{
  display:flex; flex-wrap:wrap; gap:12px; justify-content:center; padding:10px 14px; max-width:1200px; margin:0 auto;
}

/* ===========================
   STATUS LABELS — neon blue
   =========================== */
.status-label{
  display:inline-block;
  padding:4px 10px;
  border-radius:6px;
  font-size:0.9rem;
  font-weight:700;
  color:#00ffff;
  text-shadow: 0 0 6px #00ffff, 0 0 12px #00e6e6, 0 0 20px #00cccc;
}

/* ===========================
   CAROUSEL / FEATURES — fixed container, consistent slides
   =========================== */

/* Tunables */
.carousel-container{
  --slide-h: 420px;
  --img-h:   calc(var(--slide-h) * 0.7);

  width: min(1100px, 95vw);
  height: var(--slide-h);
  margin: 0 auto 26px;
  position: relative;
  overflow: hidden;
}

/* Keep your original display logic */
.carousel-slide{ display: none; height: 100%; }
.carousel-slide.active{ display: block; height: 100%; }

/* Progress bar unchanged */
.carousel-progress-bar{
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px; width: 0%;
  background: var(--cyan);
  box-shadow: 0 0 15px #fff;
  transition: width .2s ease;
  z-index: 2;
}

/* Each slide fills the container with a consistent grid */
.feature-box{
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: var(--img-h) 1fr;
  background: #121212;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 10px var(--cyan);
}

/* Image band always the same size; crops if needed */
.feature-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text area scrolls if too long, keeping total height fixed */
.feature-content{
  padding: 16px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* .feature-content h2{ font-size: 2px; margin-bottom: -5px; } */
.feature-content p { font-size: 16px; color: #ccc; margin-bottom: 16px; }

/* Harden the Read button */
.feature-content .carousel-btn{
  display: inline-block;
  padding: 10px 16px;
  background: #222;
  color: #fff !important;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none !important;
  box-shadow: none;
  transition: background .3s ease, box-shadow .3s ease, transform .15s ease;
}
.feature-content .carousel-btn:hover{
  background: #00cccc;
  box-shadow: 0 0 15px #00e6e6;
  transform: translateY(-1px);
}

/* Optional: bump sizes on tablet+ */
@media (min-width: 768px){
  .carousel-container{ --slide-h: 440px; --img-h: 280px; }
}

/* ===========================
   PLAYER CARDS SCROLLER
   =========================== */
.products{ text-align:center; padding:48px 12px; }
.product-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:40px; padding:20px; }
.product{
  background:#222; padding:15px; border-radius:10px; text-align:center; box-shadow:0 0 10px rgba(255,255,255,.05);
  flex:0 0 auto; width:220px;
}
.product img{ width:100%; border-radius:5px; }
.product h3{ margin:10px 0; }
.price{ font-weight:700; margin-bottom:10px; }
.add-to-cart{ background:#171717; color:#fff; padding:8px 12px; border:none; cursor:pointer; }

.scroll-wrapper{ position:relative; overflow:hidden; padding:12px 0; }
.scroll-row{ display:flex; overflow-x:auto; scroll-behavior:smooth; gap:16px; padding:10px 42px; }
.scroll-row::-webkit-scrollbar{ display:none; }

.scroll-arrow{
  position:absolute; top:50%; transform:translateY(-50%); background:rgba(255,255,255,.1); color:#fff;
  padding:12px; border-radius:50%; cursor:pointer; font-size:28px; transition:background .2s; z-index:10;
}
.scroll-arrow:hover{ background:rgba(0,255,255,.2); box-shadow:0 0 15px rgba(0,255,255,.7); }
.left-arrow{ left:0; } .right-arrow{ right:0; }

/* Neon label that sits just above each chart wrapper */
.chart-name{
  position:absolute;           /* wrapper is already position:relative */
  top:-22px;                   /* sits above the court image */
  left:50%;
  transform:translateX(-50%);
  color:#00ffff;
  font-weight:700;
  text-shadow:0 0 8px #00ffff;
  letter-spacing:.4px;
}


/* ===========================
   SHOT CHARTS
   =========================== */
.shot-charts-wrapper{ display:flex; justify-content:center; gap:20px; margin-top:20px; flex-wrap:wrap; }
.shot-chart-wrapper{ position:relative; width:300px; margin-bottom:20px; }
.shot-chart-wrapper img{ width:100%; height:auto; }

.zone-label{
  position:absolute; transform:translate(-50%,-50%); color:var(--cyan); font-size:13px; font-weight:700; text-shadow:0 0 6px var(--cyan);
  pointer-events:auto; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.5);
  border-radius:50%; width:38px; height:38px; text-align:center;
}
.zone-label:hover::after{
  content:attr(data-zone); position:absolute; top:-24px; background:rgba(0,0,0,.7); color:#fff; font-size:10px; padding:2px 6px; border-radius:4px; white-space:nowrap;
}

/* ERA DISCLAIMER (glass+cloud look, compact & responsive) */
.era-note{
  --note-bg: rgba(12,12,16,.55);
  --note-border: rgba(0,255,255,.22);
  --note-glow: rgba(0,255,255,.12);

  position: relative;
  margin: 10px auto 14px;
  padding: 12px 16px 14px 16px;
  width: min(920px, 96%);
  color: #e8feff;
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  border-radius: 18px;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  box-shadow:
    0 10px 28px rgba(0,0,0,.35),
    inset 0 0 60px var(--note-glow);
  line-height: 1.45;
  font-size: clamp(12px, 1.2vw, 14px);
  animation: eraNoteIn .28s ease both;
  text-align: left;
}

/* soft “cloudy” halo */
.era-note::before{
  content:"";
  position:absolute; inset:-10px;
  pointer-events:none;
  background:
    radial-gradient(60% 60% at 28% 35%, rgba(255,255,255,.16), transparent 70%),
    radial-gradient(45% 45% at 72% 65%, rgba(0,255,255,.18), transparent 72%);
  filter: blur(14px);
  z-index:-1;
}

/* subtle outer glow ring */
.era-note::after{
  content:"";
  position:absolute; inset:0;
  border-radius:18px;
  pointer-events:none;
  box-shadow: 0 0 0 1px rgba(0,255,255,.06), 0 0 22px rgba(0,255,255,.06) inset;
}

/* header */
.era-note h4{
  margin: 0 34px 8px 0; /* leave room for close button */
  font-weight: 700;
  letter-spacing: .2px;
  color:#bff;
  font-size: clamp(13px, 1.35vw, 16px);
  display:flex; align-items:center; gap:8px;
}
.era-note h4::before{
  content:"ⓘ";
  opacity:.9;
  font-size: .95em;
}

/* two-column list on larger screens, single on mobile */
.era-note ul{
  list-style:none;
  padding:0; margin:0;
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 6px 18px;
}
.era-note li{
  position:relative;
  padding-left: 16px;
}
.era-note li::before{
  content:"";
  position:absolute; left:0; top:.6em;
  width:6px; height:6px; border-radius:50%;
  background: radial-gradient(circle, #cfffff 0%, #3fd6ff 65%, transparent 70%);
  box-shadow: 0 0 8px rgba(0,255,255,.45);
}

/* close “✕” button */
.era-note .close-note{
  position:absolute; top:8px; right:18px;
  width:28px; height:28px;
  display:grid; place-items:center;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:#eafcff;
  cursor:pointer;
  transition: transform .15s ease, background .2s ease, opacity .2s ease;
  outline-offset: 2px;
}
.era-note .close-note:hover{ transform: scale(1.06); background: rgba(255,255,255,.09); }
.era-note .close-note:active{ transform: scale(.96); }

/* enter + dismiss animations */
@keyframes eraNoteIn{
  from{ opacity:0; transform: translateY(-8px) scale(.98); filter: blur(6px); }
  to  { opacity:1; transform: none;                 filter: blur(0);    }
}
.era-note.dismiss{
  pointer-events:none;
  animation: eraNoteOut .28s ease forwards;
}
@keyframes eraNoteOut{
  to{ opacity:0; transform: translateY(-8px) scale(.96); filter: blur(10px); }
}

/* mobile tweaks */
@media (max-width: 700px){
  .era-note{
    padding: 12px 12px 12px 14px;
    border-radius: 14px;
    font-size: 13px;
  }
  .era-note h4{ font-size: 14px; margin-right: 38px; }
  .era-note ul{ grid-template-columns: 1fr; gap: 6px 12px; }
  .era-note .close-note{ width:32px; height:32px; top:6px; right:6px; }
}


/* ===========================
   SIDEBARS / WIDGETS
   =========================== */
.hero-wrapper{ display:flex; flex-direction:column; justify-content:center; align-items:center; gap:24px; flex-wrap:wrap; margin-top:24px; }
.hero-box{ flex:1 1 420px; max-width:600px; }

.leaderboard-widget{
  background:linear-gradient(145deg,#0a0a0a,#141414); padding:25px; border:1px solid var(--cyan); border-radius:15px;
  box-shadow:0 0 20px rgba(0,255,255,.3); color:#fff; width:100%; max-width:100%; font-family:'Orbitron',sans-serif; transition:transform .3s;
}
.leaderboard-widget:hover{ transform:translateY(-3px); box-shadow:0 0 24px rgba(0,255,255,.5); }
.leaderboard-widget h3{
  color:#fff; text-align:center; font-size:20px; margin-bottom:15px; border-bottom:1px solid cyan; padding-bottom:8px; letter-spacing:.5px;
}
.leaderboard-list{ list-style:none; padding:0; margin:0; }
.leaderboard-list li{
  display:flex; justify-content:space-between; padding:10px 12px; margin:6px 0; border-radius:8px; background:#1e1e1e;
  box-shadow:inset 0 0 5px #0ff20a33; transition:background .3s;
}
.leaderboard-list li:hover{ background:#222; }
.rank,.points{ color:var(--cyan); font-weight:700; }

.quick-links-sidebar{
  width:100%; background:rgba(0,0,0,.7); border:1px solid cyan; border-radius:10px; box-shadow:0 0 12px rgba(0,255,255,.4);
  padding:20px 15px; margin-bottom:20px; color:#fff; font-family:'Orbitron',sans-serif; transition:.3s;
}
.quick-links-sidebar h3{ font-size:1.1rem; color:#fff; margin-bottom:12px; border-bottom:1px solid cyan; padding-bottom:5px; }
.quick-links-sidebar ul{ list-style:none; padding:0; margin:0; }
.quick-links-sidebar li{ margin-bottom:10px; }
.quick-links-sidebar a{ text-decoration:none; color:#fff; transition:color .2s; }
.quick-links-sidebar a:hover{ color:cyan; font-weight:700; }

.left-sidebar-column{ display:flex; flex-direction:column; gap:16px; width:100%; margin:0 14px; }
.right-sidebar{ display:flex; flex-direction:column; gap:20px; width:100%; margin:0 14px; }

.headlines-widget{
  background:#0d0d0d; border:2px solid cyan; border-radius:10px; padding:20px; margin-bottom:30px; width:100%; box-shadow:0 0 12px cyan;
}
.headlines-header{ display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; border-bottom:1px solid cyan; padding-bottom:6px; }
.headlines-header h3{ color:#fff; font-size:20px; margin:0; font-weight:700; }
.headlines-header .see-more{ font-size:14px; color:cyan; text-decoration:none; transition:color .3s; }
.headlines-header .see-more:hover{ color:var(--cyan); }
.headlines-list{ list-style:none; padding:0; margin:0; }
.headlines-list li{ border-bottom:1px solid #1a1a1a; padding:8px 0; }
.headlines-list li:last-child{ border-bottom:none; }
.headlines-list a{ color:#dff; text-decoration:none; font-size:15px; display:block; transition:color .3s; }
.headlines-list a:hover{ color:cyan; text-decoration:underline; }

/* Hot Takes */
.hot-takes-widget{
  background:#0c0c0c; border:1px solid #00f7ff; border-radius:12px; padding:25px 20px; box-shadow:0 0 15px #00f7ff99;
  color:#eee; min-height:210px; display:flex; flex-direction:column; justify-content:space-between; font-family:'Orbitron',sans-serif;
  transition:transform .3s; width:100%; max-width:100%; position:relative;
}
.hot-takes-widget:hover{ transform:scale(1.01); }
.hot-takes-widget h3{ color:#fff; font-size:1.1rem; text-align:center; border-bottom:1px solid cyan; padding-bottom:8px; margin-bottom:15px; }
.take-container{ text-align:center; min-height:60px; }
.take{ opacity:0; transition:opacity .8s; position:absolute; width:100%; pointer-events:none; z-index:0; }
.take.active{ opacity:1; pointer-events:auto; position:relative; z-index:2; }
.fade-in{ animation:fadeIn .8s forwards; }
.fade-out{ animation:fadeOut .8s forwards; z-index:1; }
@keyframes fadeIn{ from{opacity:0} to{opacity:1} }
@keyframes fadeOut{ from{opacity:1} to{opacity:0} }
.nav-btns{ display:flex; justify-content:center; gap:10px; margin-top:10px; }
.nav-btns button{
  background:transparent; border:2px solid #00f7ff; color:#00f7ff; padding:6px 10px; border-radius:6px; font-size:1.1rem; cursor:pointer;
  transition:background-color .2s, transform .2s;
}
.nav-btns button:hover{ background-color:#00f7ff22; transform:scale(1.1); }

/* ===========================
   ABOUT / MUSIC / FOOTER
   =========================== */
.about-section,.contact-section{ text-align:center; padding:60px 20px; background:#1d1d1d; }

.music-button-container{ display:flex; justify-content:center; align-items:center; width:100%; margin:32px auto 60px; position:relative; z-index:10; }

/* Restored glowing text & legible pill */
#toggle-audio{
  background:#111; color:var(--cyan); border:1px solid var(--cyan); box-shadow:0 0 12px var(--cyan);
  text-shadow:0 0 6px var(--cyan); font-weight:800; letter-spacing:.3px;
}
#toggle-audio:hover{ background:#00ffff; color:#000; box-shadow:0 0 18px var(--cyan),0 0 28px var(--cyan); }

footer{ text-align:center; padding:20px; background:#000; }

/* ===========================
   MODAL
   =========================== */
/* ===========================
   MODAL - STATMATCH PRO EDITION
=========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  background: radial-gradient(circle at 50% 50%, rgba(0,255,255,0.08), rgba(0,0,0,0.95) 70%);
  backdrop-filter: blur(14px) saturate(160%);
  animation: fadeIn 0.3s ease-in-out;
}

/* MAIN MODAL PANEL */
.modal-content {
  background: linear-gradient(145deg, rgba(10,12,20,0.95), rgba(5,8,15,0.9));
  border: 1px solid rgba(0,255,255,0.25);
  border-radius: 20px;
  padding: 35px;
  color: #eafaff;
  text-align: center;
  width: 90%;
  max-width: 850px;
  position: relative;
  box-shadow: 
    0 0 35px rgba(0,255,255,0.3),
    inset 0 0 20px rgba(0,255,255,0.05),
    0 0 100px rgba(0,255,255,0.1);
  overflow: hidden;
  animation: popUp 0.4s ease-out;
  transform-origin: center;
}

/* Animated glowing border */
.modal-content::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: linear-gradient(120deg, 
    transparent, 
    rgba(0,255,255,0.4),
    rgba(0,120,255,0.6),
    rgba(0,255,255,0.4),
    transparent);
  background-size: 300% 300%;
  animation: borderFlow 6s linear infinite;
  z-index: 0;
  pointer-events: none;
}

/* Headline */
.modal-content h2 {
  font-size: 34px;
  color: #00fff7;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(0,255,255,0.6), 0 0 35px rgba(0,255,255,0.3);
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
}

/* Description paragraph */
.modal-content p {
  color: #eafaff;
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 25px;
  text-align: justify;
  text-shadow: 0 0 12px rgba(0,255,255,0.15);
  position: relative;
  z-index: 2;
}

/* Embedded video */
.modal-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  box-shadow: 0 0 30px rgba(0,255,255,0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  z-index: 2;
  position: relative;
}
.modal-content iframe:hover {
  transform: scale(1.02);
  box-shadow: 0 0 60px rgba(0,255,255,0.35);
}

/* Close button */
.close-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 30px;
  color: #00eaff;
  cursor: pointer;
  z-index: 3;
  text-shadow: 0 0 15px rgba(0,255,255,0.5);
  transition: 0.2s ease;
}
.close-btn:hover {
  transform: scale(1.2);
  color: #00fff7;
}

/* Animations */
@keyframes popUp {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes borderFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Responsive */
@media (max-width: 600px) {
  .modal-content {
    padding: 25px;
    border-radius: 14px;
  }
  .modal-content h2 {
    font-size: 26px;
  }
  .modal-content p {
    font-size: 15px;
  }
}

/* tighten spacing under the table */
.career-boxscore{ margin:6px 0 11px; }           /* was ~12–18px */


.career-boxscore .table-wrap{
  display:block;
  max-width:100%;
  overflow-x:auto;                    /* horizontal scroll */
  overflow-y:hidden;
  -webkit-overflow-scrolling: touch;  /* momentum on touch devices */
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  padding-bottom: 6px;                /* so scrollbar isn’t clipped by rounded corners */
}

/* keep the table wider than the container so scrolling is needed */
.career-boxscore table{
  width:100%;
  min-width: 980px;                   /* adjust to your columns; 900–1100 works well */
  border-collapse:separate; border-spacing:0;
}

/* show a thin, visible scrollbar on desktop */
.career-boxscore .table-wrap{
  scrollbar-width: thin;                          /* Firefox */
  scrollbar-color: rgba(0,255,255,.6) transparent;
}
.career-boxscore .table-wrap::-webkit-scrollbar{ height:6px; }      /* Chrome/Edge/Safari */
.career-boxscore .table-wrap::-webkit-scrollbar-thumb{
  background: rgb(0, 255, 255);
  border-radius: 8px;
}
.career-boxscore .table-wrap::-webkit-scrollbar-track{
  background: transparent;
}

/* make sure the modal doesn’t clip the scroller */
.modal-content{ overflow: visible; }


/* ===== Badge strip as a scrollable box ===== */
/* 1) Make the badge box respect the modal width */
.badge-strip{
  flex: 1;
  min-width: 0;          /* <-- critical for flex children on iOS */
  width: 100%;           /* never exceed modal width */
  box-sizing: border-box;
  border:1px solid rgba(0,255,255,.28);
  border-radius:12px;
  background:
    linear-gradient(180deg, rgba(10,16,22,.88), rgba(8,12,18,.92)),
    radial-gradient(600px 300px at 10% -20%, rgba(0,255,255,.10), transparent 60%);
  box-shadow:0 8px 24px rgba(0,0,0,.35), 0 0 28px rgba(0,255,255,.10);
  padding:6px;           /* keep, but doesn’t add width due to box-sizing */
}

/* 2) The scroller: same pattern as box score */
.badge-strip .scroll-wrap{
  display:flex;
  gap:12px;
  overflow-x:auto;
  overflow-y:hidden;
  max-width:100%;
  width:100%;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  padding:6px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,255,255,.6) transparent;
}
.badge-strip .scroll-wrap::-webkit-scrollbar{ height:10px; }
.badge-strip .scroll-wrap::-webkit-scrollbar-thumb{
  background: rgba(0,255,255,.6); border-radius:8px;
}
.badge-strip .scroll-wrap::-webkit-scrollbar-track{ background:transparent; }

/* 3) Badges: allow more to fit on phones */
.badge{
  flex:0 0 auto;
  width:96px;
  text-align:center;
  border:1px solid rgba(0,255,255,.22);
  border-radius:10px;
  background:linear-gradient(180deg, rgba(12,16,24,.9), rgba(8,12,18,.95));
  box-shadow:0 6px 16px rgba(0,0,0,.35), 0 0 16px rgba(0,255,255,.08);
  padding:8px 6px;
  scroll-snap-align: start;
}
.badge img{ width:28px; height:28px; display:block; margin:0 auto 4px; }
.badge .label{ display:block; font-size:11px; opacity:.8; color:#aeefff; }
.badge .count{ display:block; font-size:14px; font-weight:800; color:#eaffff; }

/* 4) Mobile adjustments so nothing overflows the modal */
@media (max-width: 640px){
  .player-meta-row{ flex-direction:column; gap:10px; }
  .badge-strip{ width:100%; min-width:0; }
  .badge-strip .scroll-wrap{ width:100%; max-width:100%; }
  .badge{ width:84px; padding:6px 5px; }   /* slightly smaller cards */
}

/* 5) Make sure the modal itself isn’t clipping the inner scrollers */
.modal-content{ overflow: visible; }



/* stack on small screens */
@media (max-width:640px){
  .player-meta-row{ flex-direction:column; }
}


/* bring meta + badges closer and reduce the space between them */
.player-meta-row{
  display:flex; align-items:flex-start;
  gap:10px;                                      /* was 16px */
  margin:4px 0 10px;                             /* was 10px 0 16px */
}
.player-meta-row .player-meta{ margin:0; }       /* kill any default p margins */
.badge-strip{ flex:1; min-width:0; }
.badge-strip .scroll-wrap{
  display:flex; gap:12px; padding-bottom:6px;
  overflow-x:auto; overflow-y:hidden; max-width:100%;
  -webkit-overflow-scrolling: touch;  /* iOS momentum */
  touch-action: pan-x;                 /* allow horizontal swipe */
  overscroll-behavior-x: contain;
}

/* Badge card */
.badge{
  flex:0 0 auto; width:88px; text-align:center;
  border:1px solid rgba(0,255,255,.28);
  border-radius:10px;
  background:linear-gradient(180deg, rgba(10,16,22,.88), rgba(8,12,18,.92));
  box-shadow:0 8px 20px rgba(0,0,0,.35), 0 0 20px rgba(0,255,255,.10);
  padding:8px 6px;
}
.badge img{ width:28px; height:28px; display:block; margin:0 auto 4px; }
.badge .label{ display:block; font-size:11px; opacity:.8; color:#aeefff; }
.badge .count{ display:block; font-size:14px; font-weight:800; color:#eaffff; }

/* Mobile: stack meta above badges */
@media (max-width: 640px){
  .player-meta-row{ flex-direction:column; }
}

/* Make sure the modal doesn't block the inner scroller */
.modal-content{ overflow:visible; }

/* ===== Advanced box score (scrollable like your main table) ===== */
.adv-boxscore{
  margin:8px 0 10px;
  border:1px solid rgba(0,255,255,.28);
  border-radius:12px;
  background:
    linear-gradient(180deg, rgba(10,16,22,.88), rgba(8,12,18,.92)),
    radial-gradient(600px 300px at 10% -20%, rgba(0,255,255,.10), transparent 60%);
  box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 35px rgba(0,255,255,.12);
  overflow: hidden;
}
/* ADVANCED row: make the scrollbar always render and never get clipped */
.adv-boxscore{ overflow: visible; } /* let the bar show outside the rounded edge */

.adv-boxscore .table-wrap{
  display:block;
  width:100%; max-width:100%;
  overflow-x: scroll;          /* force a visible horizontal scrollbar */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;

  /* ensure the bar has room inside the card */
  padding-bottom: 12px;
  scrollbar-gutter: stable both-edges;
}

/* visible scrollbar styling */
.adv-boxscore .table-wrap{
  scrollbar-width: thin;                            /* Firefox */
  scrollbar-color: rgba(0,255,255,.65) transparent;
}
.adv-boxscore .table-wrap::-webkit-scrollbar{ height:12px; } /* Chrome/Edge/Safari */
.adv-boxscore .table-wrap::-webkit-scrollbar-thumb{
  background: rgba(0,255,255,.65); border-radius:8px;
}
.adv-boxscore .table-wrap::-webkit-scrollbar-track{ background:transparent; }

/* make sure nothing upstream clips the scroller */
.modal-content{ overflow: visible; }
.adv-boxscore{ min-width: 0; }


.adv-boxscore table{
  width:100%;
  min-width: 1280px;                  /* wide → scrolls on small screens */
  border-collapse:separate; border-spacing:0;
  color:#eafaff; font-size:14px;
}
.adv-boxscore th, .adv-boxscore td{
  padding:10px 12px; text-align:center;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.015);
}
.adv-boxscore th{
  position:relative; font-weight:800; color:#8ffcff;
  background:linear-gradient(180deg, rgba(0,255,255,.12), rgba(0,255,255,.05));
  white-space:nowrap;
}
.adv-boxscore th > button{
  all:unset; cursor:pointer; display:inline-block;
  padding:2px 4px; border-radius:6px;
}
.adv-boxscore tr:last-child td{ border-bottom:none; }

/* Narrow/centered variant of the advanced table */
.adv-boxscore.adv-compact{
  width: clamp(500px, 72%, 80px);  /* shrink on desktop, never exceed modal */
  margin: 8px auto 12px;            /* center it */
  border-radius: 14px;
}

/* keep the same horizontal scroll behavior */
.adv-boxscore.adv-compact .table-wrap{
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  padding-bottom: 6px;              /* room for scrollbar */
}

/* keep the inner table wide so scrolling is needed */
.adv-boxscore table{
  min-width: 1280px;                /* your columns; adjust if you add/remove */
}

/* On phones, use the whole width so you don't waste space */
@media (max-width: 640px){
  .adv-boxscore.adv-compact{ width: 100%; margin: 8px 0 12px; }
}


/* desktop scrollbar */
.adv-boxscore .table-wrap{ scrollbar-width:thin; scrollbar-color:rgb(0, 255, 255) transparent; }
.adv-boxscore .table-wrap::-webkit-scrollbar{ height:6px; }
.adv-boxscore .table-wrap::-webkit-scrollbar-thumb{ background:rgb(0, 255, 255); border-radius:8px; }
.adv-boxscore .table-wrap::-webkit-scrollbar-track{ background:transparent; }

/* ===== tiny popover for stat explanations ===== */
.stat-pop{
  position:fixed; inset:0; display:none; place-items:center; z-index:10000;
  background:rgba(0,0,0,.35);
}
.stat-pop .card{
  max-width: min(620px, 92vw);
  color:#eafaff; background:rgba(12,18,26,.92);
  border:1px solid rgba(0,255,255,.28);
  border-radius:14px; padding:16px 18px;
  box-shadow:0 20px 60px rgba(0,0,0,.55), 0 0 40px rgba(0,255,255,.18);
}
.stat-pop .card h4{ margin:0 0 6px; color:#86faff; }
.stat-pop .card p{ margin:0; line-height:1.45; opacity:.95; }
.stat-pop .close-x{
  position:absolute; right:12px; top:8px; font-size:22px; cursor:pointer; color:#86faff;
}



/* ===========================
   STATMATCH BANNER
   =========================== */
.statmatch-banner{ width:100%; display:flex; justify-content:center; margin:24px 0 16px; }
.statmatch-banner img{ width:100%; max-width:450px; border-radius:8px; box-shadow:0 0 30px cyan; max-height:300px; }
.animated-banner{
  position:relative; animation:pingpong 6s ease-in-out infinite alternate; width:fit-content; padding:12px; border-radius:18px;
  backdrop-filter:blur(14px) brightness(1.05); background:rgba(0,255,255,.04);
  box-shadow:0 0 20px rgba(0,255,255,.25), inset 0 0 10px rgba(0,255,255,.1); transition:transform .3s, box-shadow .3s;
}
.animated-banner:hover{ transform:scale(1.02); box-shadow:0 0 24px rgba(0,255,255,.45), inset 0 0 12px rgba(0,255,255,.15); }
.animated-banner img{ max-width:320px; border-radius:14px; display:block; box-shadow:0 0 12px rgba(0,255,255,.3); }
@keyframes pingpong{ 0%{transform:translateY(0)} 100%{transform:translateY(-60px)} }

/* ===========================
   FORMS & RESULTS
   =========================== */
#playerName,#seasonSelect,#modeSelect{
  font-size:16px; background:#1d1d1d; color:#fff; border:1px solid #444; border-radius:5px; margin-bottom:10px;
}
button.shop-now-btn{ background:#00e6e6; border:none; padding:10px 20px; color:#111; font-weight:700; font-size:18px; cursor:pointer; border-radius:6px; transition:background .3s; }
button.shop-now-btn:hover{ background:#00cccc; }

#results table{ margin-top:30px; width:100%; border-collapse:collapse; background:#1a1a1a; }
#results th,#results td{ padding:10px; border:1px solid #444; color:#ddd; }
#results th{ background:#333; color:#00e6e6; font-weight:700; }

#toggleBtn{ background:var(--cyan); color:#000; font-weight:700; border:none; padding:10px 20px; margin:10px; border-radius:8px; cursor:pointer; }

/* ===========================
   DESKTOP REFINEMENTS
   =========================== */
@media (min-width:1024px){
  .hero-intro{ gap:48px; }
  .hero-wrapper{ flex-direction:row; align-items:flex-start; }
  .left-sidebar-column,.right-sidebar{ width:auto; max-width:360px; }
  .right-sidebar{ gap:30px; }
}

/* ===========================
   LEGACY HELPERS (kept)
   =========================== */
.scroll-container{ display:flex; overflow-x:auto; scroll-behavior:smooth; gap:20px; padding:10px 0; }
.shot-chart-container{ position:relative; display:inline-block; margin:20px; width:200px; height:auto; }
.shot-chart-container img{ width:100%; height:auto; border-radius:4px; }
.chalkboard-section{ background:#000; display:flex; justify-content:center; align-items:center; padding:50px 0; }
.glow-image{ width:350px; box-shadow:0 0 40px #00ffff99; border-radius:12px; }

/* (Old body padding for fixed nav not needed; omitted on purpose) */


/* =========================
   MOBILE HORIZONTAL NAV RAIL
   ========================= */

/* Container bar (mobile only) */
.nav-rail{
  display:none;
  position:sticky;
  top:0;                   /* sits under your header bar if placed after it */
  z-index:1200;
  background:#1d1d1d;
  border-top:1px solid #222;
  border-bottom:1px solid #222;
  padding:6px 0;
  overflow:hidden;
}

/* Fade edges for nicer look */
.nav-rail::before,
.nav-rail::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  width:24px;
  pointer-events:none;
  z-index:2;
}
.nav-rail::before{
  left:0;
  background:linear-gradient(90deg,#1d1d1d,transparent);
}
.nav-rail::after{
  right:0;
  background:linear-gradient(270deg,#1d1d1d,transparent);
}

/* Scroll row */
.nav-rail__scroll{
  display:flex;
  gap:8px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x proximity;
  padding:0 12px;
}
.nav-rail__scroll::-webkit-scrollbar{ display:none; }

/* Chips */
.nav-chip{
  scroll-snap-align:center;
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:36px;
  padding:0 14px;
  border-radius:18px;
  background:#242424;
  color:#fff;
  font-weight:700;
  text-decoration:none;
  border:1px solid #333;
  box-shadow:0 0 10px rgba(0,255,255,.12);
  transition:transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.nav-chip:focus-visible{ outline:2px solid var(--cyan); outline-offset:2px; }
.nav-chip:hover{
  background:#1b1b1b;
  border-color:#00cccc;
  box-shadow:0 0 14px rgba(0,255,255,.35);
  transform:translateY(-1px);
}
.nav-chip.is-active{
  border-color:var(--cyan);
  box-shadow:0 0 16px rgba(0,255,255,.55), inset 0 0 10px rgba(0,255,255,.15);
}

/* Only show the rail on small screens */
@media (max-width:767px){
  .nav-rail{ display:block !important; }
}

/* Keep primary nav styles from leaking into the rail */
@media (max-width:767px){
  .nav-rail a{ margin:0 !important; background:unset; }
}



/* ===== Mobile swipe nav rail fixes (append at end) ===== */

/* Show the rail on phones, full-width, sticky */
.nav-rail{
  display:block;
  position:sticky;
  top:0;
  z-index:1200;
  width:100%;
  background:#1d1d1d;
  border-top:1px solid #222;
  border-bottom:1px solid #222;
  padding:8px 0;
}

/* If you built the rail with a UL, neutralize global nav ul rules */
.nav-rail ul{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center;
  gap:10px;
  padding:0 12px;
  margin:0;
  list-style:none;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width:none;
}
.nav-rail ul::-webkit-scrollbar{ display:none; }

/* If you built the rail with a DIV scroller (my earlier example) */
.nav-rail__scroll{
  display:flex;
  flex-wrap:nowrap;                 /* keep a single row */
  align-items:center;
  gap:10px;
  padding:0 12px;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width:none;
}
.nav-rail__scroll > *{ flex:0 0 auto; } /* prevent flex grow */
.nav-rail__scroll::-webkit-scrollbar{ display:none; }

/* Chip look */
.nav-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:36px;
  padding:0 14px;
  border-radius:999px;
  background:#242424;
  color:#fff;
  font-weight:700;
  text-decoration:none;
  border:1px solid #333;
  box-shadow:0 0 10px rgba(0,255,255,.12);
  white-space:nowrap;               /* never break to two lines */
  flex:0 0 auto;                    /* don’t stretch */
  transition:transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.nav-chip:hover{
  background:#1b1b1b;
  border-color:#00cccc;
  box-shadow:0 0 14px rgba(0,255,255,.35);
  transform:translateY(-1px);
}
.nav-chip.is-active{
  border-color:var(--cyan);
  box-shadow:0 0 16px rgba(0,255,255,.55), inset 0 0 10px rgba(0,255,255,.15);
}

/* Kill any arrow buttons in the rail */
.nav-rail .nav-rail__btn,
.nav-rail .left-arrow,
.nav-rail .right-arrow{ display:none !important; }

/* Keep primary nav effects off the mobile rail chips */
.nav-rail a::after{ content:none !important; }

/* --- Make the existing #primary-nav horizontal + swipeable on phones --- */
@media (max-width: 767px){

  /* keep your nav visible; do not change its DOM position */
  #primary-nav{
    /* optional rail look; remove if you prefer your current background */
    background:#1d1d1d;
    border-bottom:1px solid #222;
    padding:8px 10px;
    overflow:visible;
  }

  /* override earlier "column" rules with higher specificity */
  #primary-nav ul{
    display:flex;
    flex-direction:row !important;   /* beats generic nav ul { flex-direction: column } */
    flex-wrap:nowrap;                 /* one line only */
    gap:10px;
    overflow-x:auto;                  /* swipe to scroll */
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch; /* smooth iOS scroll */
    scrollbar-width:none;             /* Firefox */
  }
  #primary-nav ul::-webkit-scrollbar{ display:none; } /* Safari/Chrome */

  /* each item stays its natural width; never stretches/wraps */
  #primary-nav li{
    flex:0 0 auto;
  }

  /* force links to be inline “chips” (overrides your global nav a {display:block}) */
  #primary-nav li > a{
    display:inline-flex !important;
    align-items:center; justify-content:center;
    white-space:nowrap;
    margin:0;                         /* neutralize global nav a { margin: 0 15px } */
    padding:10px 14px;
    border-radius:999px;
    background:#1a1a1a;
    text-decoration:none;
    color:#fff;
    box-shadow:0 0 10px rgba(0,255,255,.15);
    transition:color .2s, box-shadow .2s;
  }
  #primary-nav li > a:hover{
    color:#00ffff;
    box-shadow:0 0 12px #00e6e6;
  }

  /* if you collapse the nav on phones with .is-collapsed, keep that behavior */
  #primary-nav.is-collapsed{
    max-height:0 !important;
    padding-top:0 !important;
    padding-bottom:0 !important;
    overflow:hidden !important;
  }
}

@media (max-width: 767px){
  .scoreboard-row{
    display:flex;
    flex-wrap:nowrap;                 /* one row only */
    gap:12px;
    padding:10px 12px;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch; /* smooth iOS scroll */
    scrollbar-width:none;
    scroll-snap-type:x mandatory;     /* nice snap */
  }
  .scoreboard-row::-webkit-scrollbar{ display:none; }

  /* each card becomes a “chip” width on the rail */
  .scoreboard-row .fake-scoreboard{
    flex:0 0 88vw;                    /* ~full-screen card; tweak 80–92vw to taste */
    min-width:88vw;
    scroll-snap-align:center;
  }

  /* keep your neon style; improve fit on narrow screens */
  .fake-scoreboard .game{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;    /* spreads teams/scores nicely */
    gap:12px;
    flex-wrap:nowrap;
  }
  .fake-scoreboard .team{ gap:6px; }
  .fake-scoreboard .team img{ width:22px; height:22px; }
  .fake-scoreboard .team strong{ font-size:20px; }  /* your neon score stays bold/cyan */
  .fake-scoreboard .vs{ opacity:.6; }
  .fake-scoreboard .status{ white-space:nowrap; }
}





/*Space */
/* tighten space around the center logo and the cards */
.floating-logo-container{ padding: 50px 0 20px !important; line-height: 0; } /* was 80/40 */
.products{ padding-top: 1px !important; }                    /* was 80px */

header{
  padding: 12px 0 6px !important;  /* was 60px top */
  margin-top: 0 !important;        /* kill the later 60px margin-top */
}



/* GOAT calculator */
.goatcalc-controls{
  margin-top:18px; padding:14px;
  background:linear-gradient(180deg, rgba(10,10,10,.85), rgba(10,10,10,0));
  border:1px solid rgba(0,255,255,.15); border-radius:14px;
  backdrop-filter: blur(6px); box-shadow:0 0 20px rgba(0,255,255,.12) inset;
}
.goatcalc-row{
  display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:center; margin-bottom:10px;
}
.goatcalc-row input[type="search"],
.goatcalc-row select{
  background:#111; color:#fff; border:1px solid #00ffff66; border-radius:10px;
  padding:8px 10px; min-width:160px;
}
.goatcalc-row button{
  background:#0b0b0b; color:#fff; border:1px solid #00ffff66; border-radius:10px; padding:8px 12px; cursor:pointer;
}
.goatcalc-row button:hover{ box-shadow:0 0 10px rgba(0,255,255,.4); }
.gc-check{ display:flex; gap:8px; align-items:center; color:#ddd; font-size:14px; }

.goatcalc-weights{
  display:grid; grid-template-columns: repeat(7, 1fr); gap:12px; margin:8px 0 12px;
}
.gc-weight{
  background:#0f0f0f; border:1px solid rgba(0,255,255,.12); border-radius:12px; padding:10px;
}
.gc-weight label{ display:flex; justify-content:space-between; color:#cfe; font-size:14px; margin-bottom:6px; }
.gc-weight input[type="range"]{ width:100%; }

.goatcalc-era-tilt{
  display:flex; flex-direction:column; gap:6px; align-items:center; margin:10px 0;
}
.gc-era-legend{ width:100%; display:flex; justify-content:space-between; color:#9fd; opacity:.8; font-size:12px; }
#gc-era-tilt{ width:320px; max-width:100%; }

.goatcalc-actions{ display:flex; gap:10px; justify-content:center; margin-top:8px; }
.goatcalc-actions button{ background:#141414; border:1px solid #00ffff66; border-radius:10px; padding:8px 12px; color:#fff; }

.goatcalc-tablewrap{ margin-top:18px; overflow:auto; border-radius:12px; border:1px solid rgba(0,255,255,.12); }
.goatcalc-table{ width:100%; border-collapse:collapse; }
.goatcalc-table thead th{
  position:sticky; top:0; background:#0e0e0e; color:#9ff; font-weight:600; z-index:1;
  padding:10px; border-bottom:1px solid rgba(0,255,255,.2);
}
.goatcalc-table td{ padding:10px; border-bottom:1px solid rgba(255,255,255,.06); color:#eee; }
.goatcalc-table tbody tr:hover{ background:rgba(0,255,255,.06); }

.goatcalc-metrics{
  margin-top:12px; color:#cfe; border:1px dashed rgba(0,255,255,.2); padding:10px 12px; border-radius:10px;
}
.goatcalc-metrics summary{ cursor:pointer; color:#9ff; }

@media (max-width: 900px){
  .goatcalc-weights{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px){
  .goatcalc-row{ gap:8px; }
  .goatcalc-weights{ grid-template-columns: repeat(2, 1fr); }
}
