
:root{
  --gold:#f5b400;
  --gold2:#ffcc28;
  --ink:#090a0c;
  --panel:#12151a;
  --panel2:#1a1e24;
  --white:#f7f7f5;
  --muted:#a9afb8;
  --line:rgba(255,255,255,.10);
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:#090a0c;color:var(--white);font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
body{padding-bottom:78px}
button,input{font:inherit}
.field-bg{
  position:fixed;inset:0;z-index:-2;
  background:
   radial-gradient(circle at 50% -10%,rgba(255,255,255,.18),transparent 34%),
   linear-gradient(rgba(4,6,8,.88),rgba(4,6,8,.96)),
   repeating-linear-gradient(90deg,transparent 0 10%,rgba(255,255,255,.028) 10% 10.3%),
   linear-gradient(180deg,#19221c,#0b0d0f 45%);
}
.field-bg:after{
  content:"";position:absolute;inset:28% 0 0;
  background:repeating-linear-gradient(0deg,transparent 0 52px,rgba(255,255,255,.035) 53px 55px);
  transform:perspective(500px) rotateX(50deg);transform-origin:top;opacity:.45
}
.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:10px 14px;background:rgba(7,8,10,.88);backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}
.brand{display:flex;gap:10px;align-items:center;background:none;border:0;color:white;padding:0;text-align:left}
.brand img{width:48px;height:38px;object-fit:contain;filter:drop-shadow(0 0 8px rgba(245,180,0,.24))}
.brand span{display:flex;flex-direction:column;line-height:.92}
.brand b{font-size:17px;letter-spacing:.11em}
.brand small{font-size:11px;color:var(--gold);font-weight:800;letter-spacing:.22em;margin-top:4px}
.menu-btn{background:var(--panel2);border:1px solid var(--line);color:white;border-radius:12px;width:42px;height:42px}
.drawer{position:fixed;top:65px;right:12px;z-index:30;display:none;min-width:210px;padding:8px;background:#111419;border:1px solid var(--line);border-radius:18px;box-shadow:0 22px 60px #0008}
.drawer.open{display:grid}
.drawer button{border:0;background:transparent;color:white;text-align:left;padding:12px 14px;border-radius:10px}
.drawer button:hover{background:#ffffff0c}
main{width:min(1050px,100%);margin:0 auto;padding:18px 14px 38px}
.hero{position:relative;overflow:hidden;min-height:410px;border:1px solid var(--line);border-radius:28px;padding:34px 24px;background:
linear-gradient(180deg,rgba(10,12,14,.2),rgba(10,12,14,.88)),
radial-gradient(circle at 50% 30%,rgba(245,180,0,.18),transparent 32%),
linear-gradient(145deg,#20252b,#0a0c0e 68%);box-shadow:0 22px 55px #0008}
.hero:before{content:"";position:absolute;left:-20%;right:-20%;bottom:-38%;height:62%;border:2px solid rgba(255,255,255,.09);border-radius:50%;box-shadow:inset 0 0 0 68px rgba(255,255,255,.015)}
.hero-logo{width:170px;display:block;margin:0 auto 10px;filter:drop-shadow(0 10px 25px #000)}
.kicker{text-align:center;color:var(--gold);font-size:12px;font-weight:900;letter-spacing:.34em}
.hero h1{margin:6px 0 0;text-align:center;font-size:clamp(38px,10vw,72px);line-height:.82;letter-spacing:-.04em}
.hero h1 span{display:block;color:var(--gold);font-size:.56em;letter-spacing:.12em;margin-top:12px}
.next-card{position:relative;margin-top:28px;padding:18px;border-radius:20px;background:rgba(11,13,16,.84);border:1px solid rgba(255,255,255,.10)}
.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.18em;color:var(--muted);font-weight:800}
.matchup{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin-top:10px}
.teamname{font-size:25px;font-weight:900;letter-spacing:-.02em}
.teamname.right{text-align:right}
.vs{color:var(--gold);font-weight:1000;font-size:13px;border:1px solid #f5b40055;border-radius:999px;padding:8px}
.game-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;color:#d8dbe0;font-size:13px}
.chip{padding:7px 10px;background:#ffffff0a;border:1px solid var(--line);border-radius:999px}
.actions{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:16px}
.btn{border:0;border-radius:14px;padding:12px 14px;font-weight:850;background:var(--gold);color:#08090a}
.btn.secondary{background:#ffffff0b;color:white;border:1px solid var(--line)}
.section-title{display:flex;align-items:flex-end;justify-content:space-between;margin:14px 2px 16px}
.section-title h2{margin:0;font-size:28px;letter-spacing:-.03em}
.section-title p{margin:4px 0 0;color:var(--muted);font-size:13px}
.quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:14px}
.quick{min-height:120px;padding:18px;border-radius:20px;background:linear-gradient(145deg,#171b20,#0f1216);border:1px solid var(--line);color:white;text-align:left}
.quick b{display:block;font-size:22px;margin-top:8px}.quick small{color:var(--muted)}
.toolbar{display:flex;gap:8px;overflow:auto;padding-bottom:8px;margin-bottom:10px}
.filter{white-space:nowrap;border:1px solid var(--line);background:#14181d;color:#d8dbe0;border-radius:999px;padding:9px 13px;font-weight:750}
.filter.active{background:var(--gold);color:#08090a;border-color:transparent}
.search{width:100%;padding:13px 15px;border-radius:14px;border:1px solid var(--line);background:#0f1216;color:white;margin-bottom:12px;outline:none}
.roster{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:10px}
.player{display:grid;grid-template-columns:66px 1fr auto;gap:12px;align-items:center;padding:12px;border-radius:16px;background:rgba(18,21,26,.94);border:1px solid var(--line);cursor:pointer}
.num{display:grid;place-items:center;width:66px;height:66px;border-radius:14px;background:linear-gradient(145deg,var(--gold2),#d39300);color:#070809;font-size:28px;font-weight:1000}
.player h3{margin:0 0 4px;font-size:18px}.player p{margin:0;color:var(--muted);font-size:13px}
.chev{color:#666}
.modal{position:fixed;inset:0;z-index:60;background:#000b;display:grid;place-items:end center;padding:12px}
.sheet{width:min(560px,100%);border:1px solid var(--line);border-radius:26px 26px 18px 18px;background:#12151a;padding:20px;box-shadow:0 -20px 60px #000}
.sheet-head{display:flex;gap:14px;align-items:center}.sheet .num{width:82px;height:82px;font-size:35px}
.sheet h2{margin:0}.sheet p{color:var(--muted)}
.close{float:right;border:0;background:#ffffff12;color:white;border-radius:999px;width:36px;height:36px}
.schedule-switch{display:grid;grid-template-columns:1fr 1fr;background:#111419;padding:4px;border-radius:14px;margin-bottom:12px;border:1px solid var(--line)}
.schedule-switch button{padding:10px;border:0;border-radius:10px;background:transparent;color:#bbb;font-weight:800}
.schedule-switch button.active{background:var(--gold);color:#070809}
.games{display:grid;gap:10px}
.game{display:grid;grid-template-columns:82px 1fr auto;gap:12px;align-items:center;padding:14px;border-radius:17px;background:#12151ae8;border:1px solid var(--line)}
.game.next{border-color:#f5b40088;box-shadow:0 0 0 1px #f5b40022 inset}
.game-date{font-weight:900}.game .opp{font-weight:900;font-size:17px}.game small{color:var(--muted)}
.result.win{color:#7ee59a}.result.loss{color:#ff7e7e}.result{font-weight:900}
.coaches{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
.coach{overflow:hidden;border-radius:20px;background:#12151ae8;border:1px solid var(--line)}
.coach.featured img{width:100%;height:220px;object-fit:cover;object-position:center 39%}
.coach .pad{padding:16px}.coach h3{margin:0}.coach p{margin:5px 0 0;color:var(--muted)}
.placeholder{padding:28px;border:1px dashed #ffffff26;border-radius:20px;text-align:center;color:var(--muted);background:#11141988}
.program-img{width:100%;border-radius:20px;border:1px solid var(--line);margin-top:14px}
.standing-card{padding:18px;border-radius:18px;background:#12151ae8;border:1px solid var(--line)}
.bottom-nav{position:fixed;z-index:40;bottom:0;left:0;right:0;height:68px;display:grid;grid-template-columns:repeat(4,1fr);padding:6px max(8px,env(safe-area-inset-left));background:rgba(8,9,11,.94);backdrop-filter:blur(16px);border-top:1px solid var(--line)}
.bottom-nav button{border:0;background:transparent;color:#aaa;font-weight:900;font-size:18px}
.bottom-nav span{display:block;font-size:10px;margin-top:2px}
.bottom-nav button.active{color:var(--gold)}
@media(min-width:800px){body{padding-bottom:0}.bottom-nav{display:none}.topbar{padding-inline:24px}.hero{min-height:480px;padding:44px}.quick-grid{grid-template-columns:repeat(4,1fr)}}


/* Program-cover splash */
.splash-screen{
  position:fixed;inset:0;z-index:9999;background:#000;
  display:flex;align-items:center;justify-content:center;
  transition:opacity .55s ease, visibility .55s ease;
}
.splash-screen img{
  width:100%;height:100%;object-fit:cover;
}
.splash-screen.hide{opacity:0;visibility:hidden;pointer-events:none}
.band-hero,.cheer-hero{
  width:100%;border-radius:22px;border:1px solid var(--line);
  display:block;margin:0 0 16px;box-shadow:0 16px 40px #0007;
}
.people-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}
.person-line{padding:12px 14px;border-radius:14px;background:#12151ae8;border:1px solid var(--line);font-weight:750}
.band-section{margin-top:18px}
.band-section h3{margin:0 0 9px;color:var(--gold);font-size:17px;letter-spacing:.02em}
.leadership-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;margin-bottom:18px}
.leader{padding:14px;border-radius:16px;background:#12151ae8;border:1px solid var(--line)}
.leader small{color:var(--muted);display:block;margin-bottom:3px}


.player-photo{
  width:100%;
  margin-top:18px;
  border-radius:18px;
  border:1px solid var(--line);
  display:block;
  background:#0e1015;
  box-shadow:0 18px 40px #0008;
}
.source-note{
  color:var(--muted);
  margin:10px 0 0;
  font-size:13px;
}


/* V4 logo treatment */
.brand img,.hero-logo{
  background:transparent !important;
  filter:
    drop-shadow(0 0 2px rgba(255,255,255,.95))
    drop-shadow(0 0 8px rgba(255,255,255,.72))
    drop-shadow(0 0 18px rgba(255,255,255,.28));
}

/* Weather / directions */
.weather-box{
  display:flex;align-items:center;gap:12px;
  margin-top:14px;padding:13px 14px;border-radius:15px;
  background:rgba(255,255,255,.06);border:1px solid var(--line);
}
.weather-icon{font-size:30px}
.weather-box b{display:block}
.weather-box small{display:block;color:var(--muted);margin-top:3px;line-height:1.3}
.actions{grid-template-columns:repeat(2,minmax(0,1fr))}
.actions a:last-child{grid-column:1/-1}

/* Cheer profiles */
.cheer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.cheer-card{
  overflow:hidden;border-radius:18px;background:#12151ae8;border:1px solid var(--line);
  cursor:pointer;transition:transform .15s ease,border-color .15s ease
}
.cheer-card:active{transform:scale(.985)}
.cheer-card img{width:100%;aspect-ratio:4/5;object-fit:cover;object-position:center top;display:block}
.cheer-card-copy{padding:12px}
.cheer-card-copy b{display:block;font-size:15px}
.cheer-card-copy small{display:block;color:var(--gold);margin-top:3px;font-weight:800}
.cheer-profile-photo{width:100%;max-height:58vh;object-fit:cover;object-position:center top;border-radius:18px;border:1px solid var(--line)}
.profile-center{text-align:center;margin-top:14px}
.profile-center h2{margin:6px 0 2px}
.profile-center p{margin:0;color:var(--gold);font-weight:800}

.drawer-admin{
  display:block;text-decoration:none;color:var(--gold);font-weight:800;
  padding:12px 14px;border-top:1px solid var(--line);margin-top:4px
}


.coach-photo{
  width:100%;
  height:220px;
  object-fit:cover;
  object-position:center top;
  display:block;
}
.game-actions{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:7px;
}
.mini-directions{
  border:1px solid var(--line);
  background:#ffffff0b;
  color:white;
  border-radius:10px;
  padding:7px 9px;
  font-size:11px;
  font-weight:800;
}


.member-card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:10px;
}
.member-card{
  padding:12px 14px;
  border-radius:14px;
  background:#12151ae8;
  border:1px solid var(--line);
  font-weight:750;
}
.coach-photo{
  width:100%;
  height:auto;
  aspect-ratio:3 / 4;
  object-fit:cover;
  object-position:center top;
  display:block;
  background:#0d1014;
}
.coach.featured .coach-photo{
  aspect-ratio:4 / 5;
}


/* =========================================================
   V4.5 HOME / MENU POLISH
   ========================================================= */
.home-shell{display:grid;gap:18px}
.hero-polished{
  min-height:auto;
  padding:26px 18px 18px;
  background:
    radial-gradient(circle at 50% 0%,rgba(255,255,255,.12),transparent 28%),
    radial-gradient(circle at 50% 26%,rgba(245,180,0,.13),transparent 34%),
    linear-gradient(180deg,rgba(20,24,28,.96),rgba(7,9,11,.985));
}
.hero-polished:before{
  inset:auto -12% -24% -12%;
  height:47%;
  opacity:.55;
}
.hero-lights{
  position:absolute;inset:0;pointer-events:none;
  background:
    radial-gradient(circle at 7% 3%,rgba(255,255,255,.20),transparent 8%),
    radial-gradient(circle at 93% 3%,rgba(255,255,255,.20),transparent 8%);
  mix-blend-mode:screen;
}
.hero-brand-lockup{position:relative;text-align:center}
.hero-polished .kicker{font-size:10px;letter-spacing:.28em;color:#d6d9de}
.hero-polished .hero-logo{
  width:min(210px,55vw);
  height:128px;
  object-fit:contain;
  margin:10px auto 4px;
}
.hero-wordmark h1{
  margin:0;
  font-size:clamp(34px,10vw,58px);
  line-height:.88;
  letter-spacing:.02em;
  font-weight:950;
}
.panthers-word{
  margin-top:7px;
  color:var(--gold);
  font-size:clamp(24px,7vw,40px);
  line-height:1;
  font-weight:950;
  letter-spacing:.18em;
  padding-left:.18em;
}
.next-card-polished{
  margin-top:24px;
  background:
    linear-gradient(180deg,rgba(22,25,30,.94),rgba(10,12,15,.97));
  border-color:rgba(245,180,0,.28);
  box-shadow:
    0 20px 50px #0009,
    inset 0 1px 0 rgba(255,255,255,.05);
}
.next-topline{display:flex;align-items:center;justify-content:space-between;gap:10px}
.region-pill,.season-chip{
  padding:6px 9px;border-radius:999px;
  background:rgba(245,180,0,.12);
  color:var(--gold);
  border:1px solid rgba(245,180,0,.26);
  font-size:10px;font-weight:900;letter-spacing:.12em;
}
.matchup-polished{margin-top:16px;gap:10px}
.match-team{display:flex;flex-direction:column;gap:4px}
.match-team.right{text-align:right}
.team-label{font-size:clamp(18px,5.2vw,28px);font-weight:950;line-height:1}
.team-record{font-size:11px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.10em}
.vs-circle{
  width:44px;height:44px;border-radius:50%;
  display:grid;place-items:center;
  color:#08090a;background:var(--gold);
  font-size:12px;font-weight:1000;
  box-shadow:0 0 0 4px rgba(245,180,0,.08),0 0 22px rgba(245,180,0,.22);
}
.game-detail-row{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;margin-top:16px;
}
.game-detail{
  min-width:0;padding:10px 9px;border-radius:13px;
  display:flex;align-items:center;gap:8px;
  background:#ffffff07;border:1px solid var(--line);
}
.detail-icon{font-size:17px;flex:none}
.game-detail div{min-width:0}
.game-detail small{
  display:block;font-size:8px;font-weight:900;letter-spacing:.12em;color:#8e949d;margin-bottom:2px
}
.game-detail b{
  display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.weather-box-polished{
  background:linear-gradient(90deg,rgba(245,180,0,.09),rgba(255,255,255,.04));
  border-color:rgba(245,180,0,.18);
}
.game-actions-main{
  display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:13px
}
.game-actions-main a{text-align:center;text-decoration:none}
.action-primary{
  grid-column:1/-1;
  background:linear-gradient(180deg,#ffd348,#f5b400);
  box-shadow:0 9px 24px rgba(245,180,0,.18);
}
.action-secondary{
  background:#ffffff08;color:white;border:1px solid var(--line)
}
.home-section{
  padding:18px 2px 4px;
}
.home-section-head{
  display:flex;align-items:flex-end;justify-content:space-between;
  margin:0 2px 13px;
}
.home-section-head h2{
  margin:4px 0 0;
  font-size:27px;
  letter-spacing:-.03em;
}
.menu-grid{display:grid;gap:10px}
.menu-tile{
  width:100%;
  display:grid;
  grid-template-columns:48px 1fr 24px;
  align-items:center;gap:12px;
  padding:13px 14px;
  min-height:78px;
  border-radius:18px;
  text-align:left;
  color:white;
  background:
    linear-gradient(145deg,rgba(24,28,34,.96),rgba(12,14,18,.96));
  border:1px solid var(--line);
  box-shadow:0 8px 20px #0005;
}
.menu-tile.featured-tile{
  border-color:rgba(245,180,0,.28);
  background:
    radial-gradient(circle at 0% 50%,rgba(245,180,0,.12),transparent 38%),
    linear-gradient(145deg,rgba(24,28,34,.98),rgba(12,14,18,.98));
}
.menu-icon{
  width:48px;height:48px;border-radius:14px;
  display:grid;place-items:center;
  background:rgba(245,180,0,.10);
  border:1px solid rgba(245,180,0,.20);
  color:var(--gold);
  font-size:22px;font-weight:950;
}
.menu-tile small{
  display:block;
  color:#8e949d;
  font-size:9px;
  font-weight:900;
  letter-spacing:.12em;
  margin-bottom:2px;
}
.menu-tile b{
  display:block;font-size:17px;line-height:1.1
}
.menu-tile span{
  display:block;color:var(--muted);font-size:11px;margin-top:3px
}
.menu-arrow{
  color:#5d626a;
  font-size:28px;
  line-height:1;
  text-align:right;
}
.menu-tile:active{transform:scale(.992)}
@media(min-width:760px){
  .hero-polished{padding:34px 30px 24px}
  .hero-polished .hero-logo{height:150px}
  .menu-grid{grid-template-columns:repeat(2,1fr)}
  .game-detail b{font-size:12px}
}


/* V4.6 mobile polish and internal admin */
.splash-screen{
  padding:14px;
  background:
    radial-gradient(circle at 50% 8%, rgba(255,255,255,.10), transparent 25%),
    linear-gradient(180deg,#090a0c,#000);
}
.splash-screen img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center center;
  border-radius:20px;
}

.coaches{
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
}
.coach{
  border-radius:20px;
  overflow:hidden;
}
.coach-photo{
  width:100%;
  aspect-ratio:3 / 4;
  height:auto;
  object-fit:cover;
  object-position:center top;
  display:block;
  background:#0d1014;
  border-radius:0;
}
.coach.featured .coach-photo{
  aspect-ratio:3 / 4;
}
.coach .pad{
  padding:13px 14px 15px;
}
.coach p{
  line-height:1.3;
}

.band-hero,.cheer-hero,.program-img{
  border-radius:22px;
  overflow:hidden;
}

.drawer-admin-btn{
  width:100%;
  text-align:left;
  background:transparent;
  border:0;
  cursor:pointer;
}

.login-panel,.admin-panel{
  background:#12151ae8;
  border:1px solid var(--line);
  border-radius:22px;
  padding:18px;
}
.login-panel{
  text-align:center;
}
.login-logo{
  width:min(170px,48vw);
  height:96px;
  object-fit:contain;
  margin:6px auto 8px;
  display:block;
}
.login-title{
  font-size:24px;
  font-weight:950;
  margin-bottom:14px;
}
.login-grid,.admin-form-grid{
  display:grid;
  gap:10px;
}
.field{
  display:grid;
  gap:5px;
}
.field span{
  font-size:12px;
  color:#d2d6db;
  font-weight:800;
}
.field input,.field select{
  width:100%;
  padding:12px 13px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#0d1014;
  color:#fff;
}
.admin-panel-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
  margin-bottom:12px;
}
.admin-panel h3{
  margin:4px 0 0;
  font-size:24px;
}
.admin-form-grid .full{
  grid-column:1 / -1;
}
.admin-button-grid{
  display:grid;
  gap:9px;
  margin-top:14px;
}
.admin-status{
  margin-top:12px;
  padding:11px 12px;
  border-radius:14px;
  background:#ffffff08;
  color:var(--muted);
  font-size:13px;
  line-height:1.4;
}
.admin-status.error{
  display:none;
  background:#4f1212;
  color:#ffd6d6;
}
@media(min-width:700px){
  .admin-form-grid{
    grid-template-columns:1fr 1fr;
  }
  .admin-button-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:430px){
  .topbar{
    padding-inline:14px;
  }
  .hero-polished{
    padding:20px 14px 16px;
  }
  .hero-polished .hero-logo{
    width:min(170px,52vw);
    height:104px;
  }
  .hero-wordmark h1{
    font-size:32px;
  }
  .panthers-word{
    font-size:22px;
  }
  .next-card-polished{
    margin-top:18px;
    padding:14px;
  }
  .game-detail-row{
    grid-template-columns:1fr;
    gap:7px;
  }
  .game-actions-main{
    grid-template-columns:1fr;
  }
  .action-primary{
    grid-column:auto;
  }
  .menu-tile{
    grid-template-columns:42px 1fr 18px;
    min-height:74px;
    padding:12px 12px;
    gap:10px;
  }
  .menu-icon{
    width:42px;
    height:42px;
    border-radius:12px;
    font-size:18px;
  }
  .menu-tile b{
    font-size:15px;
  }
  .menu-tile span{
    font-size:10px;
  }
  .game{
    grid-template-columns:78px 1fr;
    align-items:start;
  }
  .game-actions{
    grid-column:1 / -1;
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
    padding-top:4px;
  }
}


/* V4.7 coach, band, and schedule-admin polish */
.staff-group-photo,.band-hero,.cheer-hero{
  border-radius:22px !important;
  border:0 !important;
  box-shadow:0 16px 40px #0007;
  overflow:hidden;
}

.coaches{
  grid-template-columns:repeat(auto-fit,minmax(155px,1fr));
  gap:12px;
}
.coach{
  border:0;
  background:#12151a;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 10px 24px #0005;
}
.coach-photo-wrap{
  width:100%;
  aspect-ratio:3 / 4;
  overflow:hidden;
  background:#0e1014;
  border-radius:20px 20px 0 0;
}
.coach-photo{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
  display:block;
  border:0 !important;
  border-radius:0 !important;
}
.coach .pad{
  padding:12px 13px 14px;
}
.coach .pad h3{
  font-size:16px;
}
.coach .pad p{
  font-size:12px;
}

.schedule-edit-list{
  display:grid;
  gap:12px;
}
.schedule-edit-card{
  padding:14px;
  border-radius:18px;
  background:#0d1014;
  border:1px solid var(--line);
}
.schedule-edit-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  margin-bottom:10px;
}
.schedule-edit-head b{
  font-size:15px;
}
.schedule-edit-head span{
  color:var(--gold);
  font-size:11px;
  font-weight:900;
}
.schedule-edit-grid{
  grid-template-columns:1fr;
}
.admin-save-panel{
  position:sticky;
  bottom:76px;
  z-index:6;
  box-shadow:0 -12px 32px #0009;
}
@media(min-width:700px){
  .schedule-edit-grid{
    grid-template-columns:1fr 1fr;
  }
}


/* V5.0 opponent branding */
.title-with-logo{
  display:flex;
  align-items:center;
  gap:12px;
}
.title-team-logo{
  width:46px;
  height:46px;
  object-fit:contain;
  border-radius:12px;
  background:#fff;
  padding:4px;
  flex:none;
}
.schedule-team-line{
  display:flex;
  align-items:center;
  gap:9px;
}
.schedule-logo{
  width:34px;
  height:34px;
  object-fit:contain;
  border-radius:9px;
  background:#fff;
  padding:3px;
  flex:none;
}
.match-logo{
  width:54px;
  height:54px;
  object-fit:contain;
  border-radius:14px;
  background:#fff;
  padding:4px;
  margin-left:auto;
  margin-bottom:6px;
}
.match-logo.small{
  width:42px;
  height:42px;
  margin:0 0 0 auto;
}
.opponent-name-logo{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}
.opponent-match-team{
  align-items:flex-end;
}
@media(max-width:430px){
  .schedule-logo{
    width:30px;
    height:30px;
  }
  .match-logo{
    width:44px;
    height:44px;
  }
  .team-label{
    font-size:16px;
  }
}


/* V5.1 live data status */
.status-row{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex-wrap:wrap;
}
.live-status{
  padding:6px 9px;
  border-radius:999px;
  background:rgba(71,201,111,.12);
  color:#8cf0a9;
  border:1px solid rgba(71,201,111,.24);
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
  white-space:nowrap;
}
.live-status.offline{
  background:rgba(255,255,255,.06);
  color:#aeb3bb;
  border-color:var(--line);
}
@media(max-width:430px){
  .next-topline{
    align-items:flex-start;
  }
  .status-row{
    max-width:60%;
  }
  .live-status,.region-pill{
    font-size:8px;
    padding:5px 7px;
  }
}


/* ==========================================================
   V5.3 SCHEDULE / STANDINGS / MOBILE POLISH
   ========================================================== */
.brand small{
  letter-spacing:.12em;
}

.wicksburg-team-logo{
  background:#fff !important;
  padding:5px;
  border-radius:14px;
  filter:none !important;
  object-fit:contain;
}
.home-team{
  align-items:flex-start;
}
.home-team .match-logo{
  margin-left:0;
  margin-right:auto;
}

.menu-svg svg{
  width:27px;
  height:27px;
  display:block;
}
.menu-svg{
  font-size:0;
}

.schedule-record-bar{
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 13px;
  margin:-5px 0 12px;
  border-radius:16px;
  background:#12151ae8;
  border:1px solid var(--line);
}
.record-label{
  margin-right:auto;
  color:var(--muted);
  font-size:10px;
  font-weight:900;
  letter-spacing:.11em;
}
.record-win,.record-loss{
  font-size:13px;
  font-weight:900;
  padding:6px 9px;
  border-radius:999px;
}
.record-win{
  color:#8cf0a9;
  background:rgba(71,201,111,.10);
  border:1px solid rgba(71,201,111,.22);
}
.record-loss{
  color:#ff8d8d;
  background:rgba(255,86,86,.10);
  border:1px solid rgba(255,86,86,.22);
}
.schedule-subline{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
}
.opponent-record{
  color:#d6d9df;
  font-weight:800;
}
.region-game{
  border-color:rgba(245,180,0,.25);
}
.region-game-badge,.region-chip{
  display:inline-flex;
  align-items:center;
  padding:3px 6px;
  border-radius:999px;
  color:var(--gold);
  background:rgba(245,180,0,.10);
  border:1px solid rgba(245,180,0,.25);
  font-size:9px;
  font-weight:950;
  letter-spacing:.08em;
}
.featured-team{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.featured-team.right{
  align-items:flex-end;
}
.featured-team small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:10px;
  font-weight:800;
}
.featured-team .match-logo.small{
  margin:0 0 7px 0;
}

/* Standings */
.wicksburg-standing-hero{
  display:flex;
  align-items:center;
  gap:16px;
  padding:17px;
  border-radius:22px;
  background:
    radial-gradient(circle at 0 50%,rgba(245,180,0,.15),transparent 45%),
    linear-gradient(145deg,#171b20,#0d1014);
  border:1px solid rgba(245,180,0,.28);
  box-shadow:0 15px 35px #0006;
  margin-bottom:14px;
}
.standing-wicks-logo{
  width:82px;
  height:82px;
  object-fit:contain;
  background:#fff;
  padding:7px;
  border-radius:18px;
  flex:none;
}
.standing-hero-copy{
  min-width:0;
  flex:1;
}
.standing-hero-copy h3{
  margin:4px 0 10px;
  font-size:22px;
}
.standing-hero-records{
  display:flex;
  gap:9px;
}
.standing-hero-records span{
  display:flex;
  flex-direction:column;
  padding:8px 11px;
  border-radius:12px;
  background:#ffffff08;
  border:1px solid var(--line);
}
.standing-hero-records small{
  color:var(--muted);
  font-size:8px;
  font-weight:900;
  letter-spacing:.1em;
}
.standing-hero-records b{
  font-size:17px;
  margin-top:2px;
}
.standings-table-wrap{
  overflow-x:auto;
  border-radius:18px;
  border:1px solid var(--line);
  background:#12151ae8;
}
.standings-table{
  width:100%;
  border-collapse:collapse;
  min-width:360px;
}
.standings-table th,
.standings-table td{
  padding:11px 10px;
  border-bottom:1px solid var(--line);
  text-align:center;
  font-size:12px;
}
.standings-table th:first-child,
.standings-table td:first-child{
  text-align:left;
}
.standings-table th{
  color:#aeb3bb;
  font-size:9px;
  letter-spacing:.1em;
}
.standings-table tr:last-child td{
  border-bottom:0;
}
.wicks-row{
  background:rgba(245,180,0,.08);
}
.standing-team-cell{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:850;
}
.standing-row-logo{
  width:30px;
  height:30px;
  object-fit:contain;
  border-radius:8px;
  background:#fff;
  padding:2px;
  flex:none;
}
.standings-source{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  margin-top:10px;
  color:var(--muted);
  font-size:11px;
}
.standings-source a{
  color:var(--gold);
  font-weight:850;
  text-decoration:none;
}

/* Admin standings */
.admin-source-link{
  text-decoration:none;
  white-space:nowrap;
}
.standing-edit-list{
  display:grid;
  gap:8px;
  margin-top:12px;
}
.standing-edit-row{
  display:grid;
  grid-template-columns:minmax(150px,1.5fr) 1fr 1fr;
  gap:8px;
  align-items:end;
  padding:10px;
  border-radius:15px;
  background:#0d1014;
  border:1px solid var(--line);
}
.standing-edit-team{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:46px;
}
.admin-team-logo{
  width:34px;
  height:34px;
  object-fit:contain;
  background:#fff;
  border-radius:8px;
  padding:2px;
}
.admin-help{
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
  margin:10px 0 0;
}

/* Larger, fuller Team Hub on phones */
@media(max-width:430px){
  main{
    padding-left:10px;
    padding-right:10px;
  }
  .home-section{
    width:100%;
    padding-left:0;
    padding-right:0;
  }
  .home-section-head h2{
    font-size:30px;
  }
  .menu-grid{
    width:100%;
    gap:11px;
  }
  .menu-tile{
    width:100%;
    grid-template-columns:50px minmax(0,1fr) 20px;
    min-height:86px;
    padding:15px 14px;
  }
  .menu-icon{
    width:50px;
    height:50px;
  }
  .menu-tile b{
    font-size:19px;
  }
  .menu-tile span{
    font-size:12px;
    line-height:1.25;
  }
  .menu-tile small{
    font-size:9px;
  }
  .match-logo{
    width:48px;
    height:48px;
  }
  .featured-matchup{
    gap:8px;
  }
  .featured-team{
    font-size:18px;
  }
  .standing-edit-row{
    grid-template-columns:1fr 1fr;
  }
  .standing-edit-team{
    grid-column:1/-1;
  }
  .standings-source{
    align-items:flex-start;
    flex-direction:column;
  }
}


/* V5.4 Varsity / JV Cheer tabs */
.cheer-switch{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4px;
  background:#111419;
  padding:4px;
  border-radius:14px;
  margin-bottom:13px;
  border:1px solid var(--line);
}
.cheer-switch button{
  padding:11px 12px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#aeb3bb;
  font-weight:900;
  font-size:14px;
}
.cheer-switch button.active{
  background:var(--gold);
  color:#070809;
}
.cheer-subhead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin:2px 2px 12px;
}
.cheer-subhead h3{
  margin:4px 0 0;
  font-size:23px;
}
.cheer-subhead > small{
  color:var(--muted);
  text-align:right;
  line-height:1.35;
  max-width:48%;
}
.cheer-hero{
  border:0 !important;
  border-radius:22px !important;
  overflow:hidden;
  object-fit:cover;
}
@media(max-width:430px){
  .cheer-subhead{
    align-items:flex-start;
    flex-direction:column;
    gap:5px;
  }
  .cheer-subhead > small{
    max-width:100%;
    text-align:left;
  }
  .cheer-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .cheer-card-copy{
    padding:10px;
  }
  .cheer-card-copy b{
    font-size:14px;
  }
}


/* ==========================================================
   V5.5 THEME TOGGLE / INSTALL APP / LIVE AUDIO
   ========================================================== */
.topbar-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.theme-btn{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:12px;
  border:1px solid var(--line);
  background:var(--panel2);
  color:var(--gold);
  font-size:20px;
  font-weight:900;
  cursor:pointer;
}
.drawer-link,
.drawer-install-btn{
  width:100%;
  min-height:44px;
  display:flex;
  align-items:center;
  gap:10px;
  border:0;
  background:transparent;
  color:var(--white);
  text-align:left;
  padding:12px 14px;
  border-radius:10px;
  text-decoration:none;
  font:inherit;
  cursor:pointer;
}
.drawer-link:hover,
.drawer-install-btn:hover{
  background:#ffffff0c;
}
.drawer-link-icon,
.drawer-install-icon{
  width:21px;
  height:21px;
  display:grid;
  place-items:center;
  flex:none;
}
.drawer-link-icon svg{
  width:20px;
  height:20px;
  display:block;
}
.red-icon{
  color:#ff4242;
}
.listen-drawer-link{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  font-weight:850;
}
.drawer-install-btn{
  color:var(--gold);
  font-weight:850;
}

.media-action{
  display:flex !important;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.media-action-icon{
  width:19px;
  height:19px;
  display:inline-grid;
  place-items:center;
  flex:none;
}
.media-action-icon svg{
  width:19px;
  height:19px;
  display:block;
}
.play-icon{
  color:var(--gold);
}
.listen-live-btn{
  background:#180c0d;
  color:#fff;
  border:1px solid rgba(255,66,66,.52);
}
.listen-live-btn .headphone-icon{
  color:#ff4242;
}
.listen-live-btn:active{
  background:#261011;
}
.game-actions-main{
  grid-template-columns:1fr 1fr;
}
.game-actions-main .action-primary{
  grid-column:1 / -1;
}

.install-sheet{
  text-align:center;
  max-width:470px;
}
.install-app-icon{
  width:112px;
  height:112px;
  border-radius:24px;
  display:block;
  margin:8px auto 16px;
  box-shadow:0 16px 36px #0008;
}
.install-sheet h2{
  margin:5px 0 8px;
}
.install-sheet > p{
  color:var(--muted);
  line-height:1.45;
}
.install-steps{
  margin:18px 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:9px;
  text-align:left;
  counter-reset:install-step;
}
.install-steps li{
  counter-increment:install-step;
  position:relative;
  padding:12px 12px 12px 46px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#ffffff08;
  line-height:1.4;
}
.install-steps li:before{
  content:counter(install-step);
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--gold);
  color:#08090a;
  font-size:12px;
  font-weight:950;
}
.share-symbol{
  display:inline-block;
  color:var(--gold);
  font-size:19px;
  font-weight:950;
  line-height:1;
}
.install-note{
  font-size:12px;
}
.install-status-icon{
  width:72px;
  height:72px;
  margin:8px auto 15px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(80,200,110,.12);
  border:1px solid rgba(80,200,110,.35);
  color:#78e396;
  font-size:34px;
  font-weight:950;
}

/* Light mode. Dark remains the default. */
html[data-theme="light"]{
  --ink:#f6f3eb;
  --panel:#ffffff;
  --panel2:#ece9e1;
  --white:#17191c;
  --muted:#656b73;
  --line:rgba(13,17,22,.13);
}
html[data-theme="light"],
html[data-theme="light"] body{
  background:#f6f3eb;
  color:var(--white);
}
html[data-theme="light"] .field-bg{
  background:
    radial-gradient(circle at 50% -10%,rgba(255,255,255,.95),transparent 35%),
    linear-gradient(rgba(246,243,235,.90),rgba(239,236,227,.96)),
    repeating-linear-gradient(90deg,transparent 0 10%,rgba(14,17,20,.025) 10% 10.3%),
    linear-gradient(180deg,#e8ece5,#f6f3eb 46%);
}
html[data-theme="light"] .field-bg:after{
  background:repeating-linear-gradient(0deg,transparent 0 52px,rgba(11,15,18,.035) 53px 55px);
}
html[data-theme="light"] .topbar{
  background:rgba(255,255,255,.90);
  border-bottom-color:var(--line);
}
html[data-theme="light"] .brand{
  color:#17191c;
}
html[data-theme="light"] .menu-btn,
html[data-theme="light"] .theme-btn{
  background:#f0ede6;
  color:#17191c;
}
html[data-theme="light"] .theme-btn{
  color:#a46e00;
}
html[data-theme="light"] .drawer{
  background:#fff;
  box-shadow:0 22px 60px #0002;
}
html[data-theme="light"] .drawer button,
html[data-theme="light"] .drawer-link{
  color:#17191c;
}
html[data-theme="light"] .drawer button:hover,
html[data-theme="light"] .drawer-link:hover,
html[data-theme="light"] .drawer-install-btn:hover{
  background:#00000007;
}
html[data-theme="light"] .drawer-install-btn{
  color:#8e6400;
}
html[data-theme="light"] .hero-polished{
  background:
    radial-gradient(circle at 50% 0%,rgba(255,255,255,.95),transparent 28%),
    radial-gradient(circle at 50% 26%,rgba(245,180,0,.15),transparent 36%),
    linear-gradient(180deg,rgba(253,252,248,.98),rgba(239,236,228,.99));
  box-shadow:0 18px 42px #0001;
}
html[data-theme="light"] .hero-polished .kicker{
  color:#60656c;
}
html[data-theme="light"] .next-card-polished{
  background:linear-gradient(180deg,#fff,#f7f4ed);
  box-shadow:0 18px 38px #0002,inset 0 1px 0 #fff;
}
html[data-theme="light"] .game-detail,
html[data-theme="light"] .weather-box,
html[data-theme="light"] .admin-status,
html[data-theme="light"] .install-steps li{
  background:#00000004;
}
html[data-theme="light"] .action-secondary{
  background:#fff;
  color:#17191c;
}
html[data-theme="light"] .listen-live-btn{
  background:#fff7f7;
  color:#17191c;
}
html[data-theme="light"] .menu-tile,
html[data-theme="light"] .menu-tile.featured-tile{
  color:#17191c;
  background:
    radial-gradient(circle at 0 50%,rgba(245,180,0,.07),transparent 40%),
    linear-gradient(145deg,#fff,#f5f2eb);
  box-shadow:0 8px 20px #0001;
}
html[data-theme="light"] .menu-tile small{
  color:#70757d;
}
html[data-theme="light"] .menu-arrow{
  color:#a1a4a9;
}
html[data-theme="light"] .search,
html[data-theme="light"] .filter,
html[data-theme="light"] .player,
html[data-theme="light"] .game,
html[data-theme="light"] .coach,
html[data-theme="light"] .cheer-card,
html[data-theme="light"] .leader,
html[data-theme="light"] .member-card,
html[data-theme="light"] .person-line,
html[data-theme="light"] .standing-card,
html[data-theme="light"] .login-panel,
html[data-theme="light"] .admin-panel,
html[data-theme="light"] .standings-table-wrap,
html[data-theme="light"] .standing-edit-row,
html[data-theme="light"] .schedule-record-bar,
html[data-theme="light"] .schedule-switch,
html[data-theme="light"] .cheer-switch{
  background:#fff;
  color:#17191c;
  box-shadow:none;
}
html[data-theme="light"] .filter{
  color:#40454c;
}
html[data-theme="light"] .filter.active,
html[data-theme="light"] .schedule-switch button.active,
html[data-theme="light"] .cheer-switch button.active{
  color:#08090a;
}
html[data-theme="light"] .schedule-switch button,
html[data-theme="light"] .cheer-switch button{
  color:#656b73;
}
html[data-theme="light"] .field span{
  color:#444950;
}
html[data-theme="light"] .field input,
html[data-theme="light"] .field select{
  background:#fff;
  color:#17191c;
}
html[data-theme="light"] .sheet{
  background:#fff;
  color:#17191c;
  box-shadow:0 -20px 60px #0003;
}
html[data-theme="light"] .close{
  background:#00000009;
  color:#17191c;
}
html[data-theme="light"] .bottom-nav{
  background:rgba(255,255,255,.94);
}
html[data-theme="light"] .bottom-nav button{
  color:#777c84;
}
html[data-theme="light"] .bottom-nav button.active{
  color:#9a6b00;
}
html[data-theme="light"] .wicksburg-standing-hero{
  background:
    radial-gradient(circle at 0 50%,rgba(245,180,0,.13),transparent 45%),
    linear-gradient(145deg,#fff,#f3f0e8);
  box-shadow:0 15px 35px #0001;
}
html[data-theme="light"] .wicks-row{
  background:rgba(245,180,0,.08);
}
html[data-theme="light"] .admin-status.error{
  background:#fff0f0;
  color:#9e2424;
}
html[data-theme="light"] .splash-screen{
  background:#050608;
}

@media(max-width:430px){
  .topbar-actions{
    gap:6px;
  }
  .theme-btn,.menu-btn{
    width:40px;
    height:40px;
  }
  .game-actions-main{
    grid-template-columns:1fr 1fr;
  }
  .game-actions-main .action-primary{
    grid-column:1 / -1;
  }
  .game-actions-main #directionsBtn{
    grid-column:1 / -1;
  }
  .watch-game-btn,
  .listen-live-btn{
    min-height:48px;
    padding:11px 8px;
    font-size:13px;
  }
}


/* ==========================================================
   V5.6 IOS SAFARI FIXED HEADER + MENU ORDER
   ========================================================== */
:root{
  --app-topbar-height:64px;
  --app-safe-top:env(safe-area-inset-top, 0px);
  --app-safe-bottom:env(safe-area-inset-bottom, 0px);
}

/*
 iOS Safari can scroll a sticky element away during browser-chrome
 expansion/collapse. Use a true fixed header and reserve its height
 in the document instead.
*/
body{
  padding-top:calc(var(--app-topbar-height) + var(--app-safe-top));
}

.topbar{
  position:fixed !important;
  top:0 !important;
  left:0;
  right:0;
  width:100%;
  z-index:1000;
  min-height:calc(var(--app-topbar-height) + var(--app-safe-top));
  padding:
    calc(8px + var(--app-safe-top))
    max(14px, env(safe-area-inset-right, 0px))
    8px
    max(14px, env(safe-area-inset-left, 0px));
  box-sizing:border-box;
  -webkit-transform:translateZ(0);
  transform:translateZ(0);
  -webkit-backface-visibility:hidden;
  backface-visibility:hidden;
}

.topbar-actions{
  position:relative;
  z-index:1002;
  flex:none;
}

.menu-btn,
.theme-btn{
  position:relative;
  z-index:1003;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}

.drawer{
  position:fixed !important;
  top:calc(var(--app-topbar-height) + var(--app-safe-top) + 6px) !important;
  right:max(12px, env(safe-area-inset-right, 0px));
  z-index:1100;
  max-height:calc(100dvh - var(--app-topbar-height) - var(--app-safe-top) - var(--app-safe-bottom) - 18px);
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}

/* Older iOS versions that do not fully support dvh. */
@supports not (height: 100dvh){
  .drawer{
    max-height:calc(100vh - var(--app-topbar-height) - var(--app-safe-top) - var(--app-safe-bottom) - 18px);
  }
}

/* In installed Home Screen mode, keep the same safe-area treatment. */
@media (display-mode: standalone){
  body{
    padding-top:calc(var(--app-topbar-height) + var(--app-safe-top));
  }
}

/* Keep the first content area from feeling cramped below the fixed bar. */
main{
  scroll-margin-top:calc(var(--app-topbar-height) + var(--app-safe-top) + 8px);
}
