@import url('https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400&family=Zilla+Slab:wght@500;600;700&display=swap');

/* ============================================================
   THEME — matches the 2026 battleatthevillages.com redesign.
   Deep green #00492c, orange #cd6636 (bright #d87138 on green),
   cream panels #eee5d1 / #f3f0e5, square corners (radius 0,
   0.5rem on CTA buttons only), Rockwell display / PT Sans body.
   ============================================================ */
.batv-shell{
  --court:   #ffffff;   /* page background */
  --stage:   #eee5d1;   /* cream panel */
  --stage-2: #f3f0e5;   /* cream-light card fill */
  --line:    rgba(0,73,44,0.2);
  --green:   #00492c;
  --orange:  #cd6636;
  --orange-bright: #d87138;
  --ink:     #161a1e;
  --dim:     #4a4f45;

  --radius: 0;
  --radius-cta: 0.5rem;
  --shadow-card: 0 0 6px 1px rgba(0,0,0,0.2);

  --display: Rockwell, "Rockwell Nova", "Zilla Slab", Georgia, serif;
  --body: "PT Sans", "Open Sans", Arial, sans-serif;
}

/* All rules are scoped under .batv-shell so the player can be embedded
   directly in a page (no iframe) without leaking styles. */
.batv-shell,.batv-shell *,.batv-shell *::before,.batv-shell *::after{box-sizing:border-box;-webkit-font-smoothing:antialiased}
.batv-shell{
  margin:0;
  background:var(--court);
  color:var(--ink);
  font-family:var(--body);
  font-size:17px;
  line-height:1.5;
}
.batv-shell img{display:block;max-width:100%}
.batv-shell button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
.batv-shell h1,.batv-shell h2{font-family:var(--display);color:var(--green);line-height:normal;margin:0}
.batv-shell a{color:var(--orange);text-decoration:none;transition:color .15s ease}
.batv-shell a:hover{color:var(--green)}
.batv-shell :focus-visible{outline:2px solid var(--green);outline-offset:2px}
.batv-shell ::selection{background:var(--green);color:#fff}

.batv-shell{max-width:100%;margin:0 auto}

/* ---------- masthead — slim utility bar ---------- */
.batv-masthead{
  display:flex;align-items:center;justify-content:space-between;
  gap:16px;flex-wrap:wrap;
  margin-bottom:20px;
}
.batv-masthead h1{
  font-weight:700;font-size:clamp(24px,3.4vw,34px);line-height:1;
}
.batv-masthead h1 em{font-style:normal;color:var(--orange)}
.batv-yt-link,.batv-shell .batv-yt-link{  font-family:var(--display);font-weight:700;font-size:15px;
  letter-spacing:.06em;text-transform:uppercase;
  background:var(--orange);color:#fff;
  border-radius:var(--radius-cta);
  padding:12px 22px 10px;display:inline-flex;align-items:center;justify-content:center;
  white-space:nowrap;
  transition:background .15s ease,color .15s ease,transform .15s ease;
}
.batv-yt-link:hover,.batv-shell .batv-yt-link:hover{background:var(--ink);color:#fff;transform:translateY(-2px)}

/* ---------- single column: player, then schedule ---------- */
.batv-grid{display:flex;flex-direction:column;gap:36px}

/* ---------- stage ---------- */
.batv-stage{
  position:relative;aspect-ratio:16/9;width:100%;
  background:#000;border:2px solid var(--green);border-radius:6px;
  box-shadow:var(--shadow-card);
  overflow:hidden;
}
.batv-stage iframe{width:100%;height:100%;border:0;display:block}
.batv-stage-fallback{
  position:absolute;inset:0;display:grid;place-content:center;gap:10px;
  text-align:center;padding:24px;color:#c7d6cc;
  font-family:var(--display);letter-spacing:.06em;font-size:15px;text-transform:uppercase;
}
.batv-stage-fallback[hidden]{display:none}
.batv-stage-fallback a{color:#fff;text-decoration:underline}

.batv-now{margin:18px 0 0}
.batv-now-title{
  font-family:var(--display);color:var(--green);
  font-weight:700;font-size:clamp(21px,2.4vw,28px);line-height:1.08;
  min-height:1.08em;
}
.batv-now-flag{
  display:inline-flex;align-items:center;gap:8px;
  font-family:var(--display);font-weight:700;font-size:13px;
  letter-spacing:.16em;text-transform:uppercase;color:var(--orange);
  margin-bottom:6px;
}
.batv-pip{width:8px;height:8px;border-radius:50%;background:var(--orange);flex:none}
.batv-is-playing .batv-pip{animation:batv-pulse 1.8s ease-in-out infinite}
@keyframes batv-pulse{0%,100%{opacity:1}50%{opacity:.25}}

/* ---------- transport ---------- */
.batv-transport{
  display:flex;align-items:center;gap:16px;
  margin-top:18px;padding:14px 18px;
  background:var(--stage);border:1px solid var(--line);
}
.batv-tbtn{
  display:inline-flex;align-items:center;gap:9px;
  font-family:var(--display);font-weight:700;font-size:15px;
  letter-spacing:.04em;text-transform:uppercase;color:#fff;
  padding:12px 20px 10px;border-radius:var(--radius-cta);
  background:var(--orange);
  transition:background .15s ease,transform .15s ease;
}
.batv-tbtn:hover:not(:disabled){background:var(--ink);transform:translateY(-2px)}
.batv-tbtn:disabled{opacity:.32;cursor:default}
.batv-tbtn svg{width:13px;height:13px;fill:currentColor;flex:none}
.batv-tbtn-next{margin-left:auto}

.batv-pos{
  display:flex;align-items:baseline;gap:5px;
  font-family:var(--display);font-weight:700;line-height:1;margin:0;
  user-select:none;
}
.batv-pos-now{font-size:34px;color:var(--green);font-variant-numeric:tabular-nums}
.batv-pos-sep{font-size:20px;color:var(--line)}
.batv-pos-total{font-size:20px;color:var(--dim);font-variant-numeric:tabular-nums}
.batv-pos-label{
  font-family:var(--display);font-weight:700;font-size:11px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--dim);align-self:center;margin-left:2px;
}
@media (max-width:560px){
  .batv-transport{flex-wrap:wrap;justify-content:center}
  .batv-tbtn{flex:1 1 auto;justify-content:center}
  .batv-tbtn-next{margin-left:0}
  .batv-pos{order:-1;width:100%;justify-content:center;padding-bottom:4px}
}

/* ---------- schedule — full-width card grid below the player ---------- */
.batv-list-panel{display:flex;flex-direction:column}
.batv-list-head{
  display:flex;align-items:baseline;gap:20px;flex-wrap:wrap;
  padding-bottom:12px;margin-bottom:20px;
  border-bottom:2px solid var(--green);
}
.batv-list-head h2{
  font-weight:700;font-size:26px;line-height:1;
}
.batv-list-head h2 span{
  font-family:var(--display);color:var(--orange);font-size:14px;
  letter-spacing:.14em;text-transform:uppercase;margin-left:10px;
}
.batv-search{
  margin-left:auto;
  width:min(320px,100%);padding:9px 13px;
  background:var(--court);color:var(--ink);
  border:1px solid var(--line);border-radius:var(--radius);
  font-family:var(--body);font-size:16px;
}
.batv-search::placeholder{color:var(--dim)}
.batv-search:focus{outline:none;border-color:var(--green)}
@media (max-width:560px){.batv-search{margin-left:0}}

.batv-games{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:18px;
}

.batv-game{margin:0}
.batv-game-btn,.batv-shell .batv-game-btn{  position:relative;width:100%;height:100%;text-align:left;
  display:flex;flex-direction:column;gap:9px;
  padding:10px 10px 14px;
  background:var(--stage-2);border:2px solid var(--green);border-radius:6px;
  transition:transform .15s ease,box-shadow .15s ease;
}
.batv-game-btn:hover{transform:translateY(-3px);box-shadow:var(--shadow-card)}
.batv-game .game-num{
  font-family:var(--display);font-weight:700;font-size:13px;
  letter-spacing:.1em;text-transform:uppercase;
  color:var(--orange);font-variant-numeric:tabular-nums;
}
.batv-game .game-thumb{
  position:relative;display:block;width:100%;aspect-ratio:16/9;background:#000;
  overflow:hidden;border:1px solid var(--line);
  order:-1;
}
.batv-game .game-thumb img{width:100%;height:100%;object-fit:cover}
.batv-game .game-title{
  font-family:var(--body);font-size:15px;line-height:1.3;font-weight:400;color:var(--ink);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.batv-game.batv-is-live .batv-game-btn{background:var(--green)}
.batv-game.batv-is-live .game-num{color:var(--orange-bright)}
.batv-game.batv-is-live .game-title{color:#fff;font-weight:700}
.batv-game[hidden]{display:none}

.batv-list-empty{padding:20px 0;color:var(--dim);font-size:15px}

/* ---------- skeleton ---------- */
.batv-skeleton .game-title{
  color:transparent;background:var(--line);
  animation:batv-breathe 1.6s ease-in-out infinite;
}
@keyframes batv-breathe{0%,100%{opacity:.7}50%{opacity:.35}}

.batv-foot{
  margin-top:32px;padding-top:14px;border-top:1px solid var(--line);
  font-family:var(--display);font-weight:700;font-size:12px;letter-spacing:.08em;
  text-transform:uppercase;color:var(--dim);
  display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;
}
.batv-kbd{border:1px solid var(--line);padding:1px 6px;color:var(--green)}

@media (prefers-reduced-motion:reduce){
  *{animation-duration:.001ms !important;transition-duration:.001ms !important}
}
