/* Zeen Sports: phone first. Team pages take the team's colour as --accent. */
:root {
  --bg: #f3f5f8; --card: #fff; --ink: #141a22; --muted: #637083; --line: #e1e6ee; --soft: #eef1f6;
  --accent: #1f5fbf; --accent-ink: #fff;
  --going: #1f8a4c; --going-bg: #e2f5ea; --notgoing: #c0392b; --notgoing-bg: #fbe7e5; --unsure: #b7791f; --unsure-bg: #fdf3dc; --none: #7a8494; --none-bg: #eef0f4;
  --ok: #1f8a4c; --ok-bg: #e2f5ea; --err: #c0392b; --err-bg: #fbe7e5;
  --radius: 14px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e1218; --card: #171d26; --ink: #e8edf3; --muted: #94a0b2; --line: #273140; --soft: #1e2632;
    --going-bg: #15321f; --notgoing-bg: #3a1b18; --unsure-bg: #3a2d12; --none-bg: #222a35; --ok-bg: #15321f; --err-bg: #3a1b18;
    --going: #5fd08d; --notgoing: #ff8a7a; --unsure: #f3c25b; --none: #9aa5b5; color-scheme: dark; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--sans); -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
a { color: var(--accent); }
p { margin: 0 0 .75em; }
img { max-width: 100%; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; } .block { display: block; } .grow { flex: 1; min-width: 0; }
.neg { color: var(--err); } .ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inline { display: inline; }
.pre { white-space: pre-wrap; font: inherit; background: var(--soft); padding: 12px; border-radius: 10px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }

main { max-width: 1100px; margin: 0 auto; padding: 16px 16px 96px; }

/* ---------- header and tabs ---------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--card); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; min-width: 0; }
.brand span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 800; flex: none; }
.mark.large { width: 56px; height: 56px; font-size: 1.5rem; border-radius: 14px; }
.mark.xl { width: 84px; height: 84px; font-size: 2.4rem; border-radius: 22px; }
.top-right { display: flex; align-items: center; gap: 12px; }
.who { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--soft); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .85rem; }
.tabs { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); overflow-x: auto; }
.tabs a { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; color: var(--muted); text-decoration: none; font-size: .68rem; font-weight: 600; }
.tabs a.on { color: var(--accent); }
.tabs .badge { position: absolute; top: 4px; right: calc(50% - 20px); }
@media (min-width: 800px) {
  .tabs { position: sticky; top: 57px; bottom: auto; justify-content: center; border-top: 0; border-bottom: 1px solid var(--line); padding: 0 16px; }
  .tabs a { flex: 0 0 auto; flex-direction: row; gap: 8px; font-size: .95rem; padding: 12px 16px; border-bottom: 3px solid transparent; }
  .tabs a.on { border-bottom-color: var(--accent); }
  .tabs .badge { position: static; }
  main { padding-bottom: 40px; }
}
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--err); color: #fff; font-size: .7rem; font-weight: 700; }

/* ---------- basics ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.card.narrow { max-width: 460px; margin: 24px auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn.big { min-height: 52px; font-size: 1.05rem; padding: 12px 22px; }
.btn.small { min-height: 34px; padding: 4px 12px; font-size: .88rem; }
.btn.tiny { min-height: 28px; padding: 2px 8px; font-size: .8rem; }
.btn.full { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
.file-btn { cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--accent); }
input[type=color] { padding: 4px; height: 44px; }
input[type=range] { padding: 0; border: 0; min-height: 0; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row.spread { justify-content: space-between; }
.row input { width: auto; flex: 1 1 160px; }
.row input[type=checkbox], .row input[type=radio] { flex: none; }
label.check input { flex: none; }
.center-row { justify-content: center; }
.grid2, .grid3 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: 1fr 1fr 1fr; } }
fieldset.mini { border: 1px dashed var(--line); border-radius: 12px; padding: 12px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 10px; }
.flash { padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; background: var(--soft); }
.flash.ok { background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.flash.err { background: var(--err-bg); color: var(--err); font-weight: 600; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 84px; transform: translateX(-50%); background: #141a22; color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.25); max-width: calc(100% - 32px); text-decoration: none; animation: up .2s ease-out; }
.toast.err { background: var(--err); }
@keyframes up { from { transform: translate(-50%, 20px); opacity: 0; } }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--soft); color: var(--muted); vertical-align: middle; }
.tag.warn { background: var(--unsure-bg); color: var(--unsure); }
.chip { display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: .8rem; font-weight: 600; margin: 2px 4px 2px 0; background: var(--soft); color: var(--ink); text-decoration: none; }
.chip.going { background: var(--going-bg); color: var(--going); } .chip.not_going { background: var(--notgoing-bg); color: var(--notgoing); }
.chip.unsure { background: var(--unsure-bg); color: var(--unsure); } .chip.no_response { background: var(--none-bg); color: var(--none); }
.eyebrow { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.page-head h1 { margin: 0; }
.list { list-style: none; padding: 0; margin: 0 0 12px; }
.list > li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.list > li > a { color: inherit; text-decoration: none; flex: 1; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.table select, .table input { min-height: 34px; padding: 4px 8px; width: auto; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; }
.copy-row { display: flex; gap: 6px; margin-top: 6px; }
.copy-row input { min-height: 34px; padding: 4px 8px; font-size: .85rem; }
.search { margin-bottom: 12px; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 16px; }
.stats .card { margin: 0; } .stats b { display: block; font-size: 1.5rem; }

/* ---------- player names: full name, guardians' first names smaller ---------- */
.pname { font-weight: 600; }
.pname .guard { font-weight: 400; font-size: .78em; color: var(--muted); }
.jersey { font-weight: 800; color: var(--accent); }
.jersey-big { font-weight: 800; font-size: 1.1rem; color: var(--accent); min-width: 2.4em; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar.ph { display: inline-grid; place-items: center; background: var(--soft); color: var(--muted); font-weight: 700; }
.avatar.sm { width: 34px; height: 34px; font-size: .8rem; }
.avatar.xl { width: 96px; height: 96px; font-size: 1.6rem; }
.avatar.xxl { width: 140px; height: 140px; font-size: 2.4rem; }

/* ---------- landing ---------- */
.hero { text-align: center; padding: 40px 0 24px; }
.hero .lead { font-size: 1.15rem; max-width: 640px; margin: 0 auto 20px; color: var(--muted); }
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.team-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 16px; }
.team-card { display: flex; gap: 14px; align-items: center; color: inherit; text-decoration: none; margin: 0; border-left: 5px solid var(--accent); }
.team-card img { width: 56px; height: 56px; object-fit: contain; }
.invite-logo { width: 120px; height: 120px; object-fit: contain; }

/* ---------- team home ---------- */
.hero-team { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000)); color: #fff; border-radius: 20px; padding: 24px; margin-bottom: 16px; }
.hero-team .muted { color: rgba(255,255,255,.8); }
.logo-wrap { position: relative; flex: none; }
.team-logo { width: 180px; height: 180px; object-fit: contain; border-radius: 24px; background: #fff; padding: 10px; display: block; }
.team-logo.ph { display: grid; place-items: center; font-size: 5rem; font-weight: 800; color: var(--accent); }
.logo-edit { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); background: #fff !important; }
.hero-text { flex: 1; min-width: 220px; }
.hero-text h1 { font-size: 2.2rem; margin-bottom: 4px; }
@media (max-width: 600px) { .hero-team { flex-direction: column; text-align: center; } .team-logo { width: 150px; height: 150px; } .record { justify-content: center; } }
.record { display: flex; gap: 12px; margin-top: 12px; }
.record > div { background: rgba(255,255,255,.16); border-radius: 14px; padding: 10px 16px; text-align: center; min-width: 78px; }
.record b { display: block; font-size: 2rem; line-height: 1; }
.record span { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.home-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .home-grid { grid-template-columns: 3fr 2fr; } }
.next-game { border-top: 5px solid var(--accent); }
.next-game h2 { font-size: 1.5rem; } .next-game h2 a { color: inherit; text-decoration: none; }
.when { font-weight: 650; font-size: 1.05rem; }
.arrive { font-size: .85em; color: var(--muted); font-weight: 500; }
.announcement { border-left: 5px solid var(--unsure); }
.results { list-style: none; padding: 0; margin: 0 0 8px; }
.results li a { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.res { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 7px; font-weight: 800; font-size: .8rem; color: #fff; background: var(--none); }
.res-W { background: var(--going); } .res-L { background: var(--notgoing); } .res-T { background: var(--unsure); }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.live-banner { display: flex; align-items: center; gap: 10px; background: #c62828; color: #fff; font-weight: 700; padding: 14px 16px; border-radius: 14px; margin-bottom: 16px; text-decoration: none; }
.live-banner .muted { color: rgba(255,255,255,.8); font-weight: 500; }
.live-banner.big { font-size: 1.1rem; padding: 18px; }
.dot-live { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #ff4b4b; box-shadow: 0 0 0 0 rgba(255,75,75,.7); animation: pulse 1.4s infinite; }
.live-banner .dot-live { background: #fff; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,75,75,0); } 100% { box-shadow: 0 0 0 0 rgba(255,75,75,0); } }

/* ---------- availability ---------- */
.rsvp-box { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.rsvp { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.rsvp-name em { font-style: normal; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.seg button { border: 0; background: var(--card); padding: 10px 14px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--ink); min-height: 44px; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.going.on { background: var(--going); color: #fff; } .seg button.not_going.on { background: var(--notgoing); color: #fff; }
.seg button.unsure.on { background: var(--unsure); color: #fff; } .seg button.no_response.on { background: var(--none); color: #fff; }
.av-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 16px; }
.av-col { border-radius: 12px; padding: 12px; background: var(--soft); }
.av-col h3 { display: flex; justify-content: space-between; }
.av-col.going { background: var(--going-bg); } .av-col.going h3 { color: var(--going); }
.av-col.not_going { background: var(--notgoing-bg); } .av-col.not_going h3 { color: var(--notgoing); }
.av-col.unsure { background: var(--unsure-bg); } .av-col.unsure h3 { color: var(--unsure); }
.av-col.no_response { background: var(--none-bg); } .av-col.no_response h3 { color: var(--none); }
.av-col ul { list-style: none; padding: 0; margin: 0; }
.av-col li { padding: 4px 0; }
.flash-update { animation: glow .8s ease-out; }
@keyframes glow { from { box-shadow: 0 0 0 3px var(--accent); border-radius: 12px; } }
.staff-rsvp { margin-top: 16px; } .staff-rsvp summary { cursor: pointer; font-weight: 600; color: var(--accent); }

/* ---------- schedule ---------- */
.events { list-style: none; padding: 0; margin: 0 0 16px; }
.ev { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; border-left: 5px solid var(--accent); }
.ev.practice { border-left-color: var(--going); } .ev.event { border-left-color: var(--unsure); }
.ev.canceled { opacity: .6; } .ev.canceled strong { text-decoration: line-through; }
.ev-main { display: flex; gap: 14px; color: inherit; text-decoration: none; }
.ev-date { display: flex; flex-direction: column; align-items: center; min-width: 52px; font-size: .75rem; text-transform: uppercase; color: var(--muted); }
.ev-date b { font-size: 1.6rem; color: var(--ink); line-height: 1.1; }
.past summary { cursor: pointer; font-weight: 600; margin-bottom: 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; } .cal-head h2 { margin: 0; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.cal-dow { background: var(--soft); text-align: center; font-size: .75rem; font-weight: 700; padding: 6px 0; color: var(--muted); }
.cal-cell { background: var(--card); min-height: 92px; padding: 4px; font-size: .72rem; overflow: hidden; }
.cal-cell.other { background: var(--soft); color: var(--muted); }
.cal-cell.today .cal-d { background: var(--accent); color: #fff; border-radius: 50%; }
.cal-d { display: inline-grid; place-items: center; width: 22px; height: 22px; font-weight: 700; }
.cal-ev { display: block; background: var(--accent); color: #fff; border-radius: 5px; padding: 2px 4px; margin-top: 2px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev.practice { background: var(--going); } .cal-ev.event { background: var(--unsure); } .cal-ev.canceled { text-decoration: line-through; opacity: .6; }
.event-head.canceled h1 { text-decoration: line-through; }
.kind-pick { align-self: flex-start; }
.kind-pick label { flex-direction: row; font-weight: 600; }
.kind-pick input { position: absolute; opacity: 0; }
.kind-pick span { padding: 10px 16px; cursor: pointer; }
.kind-pick label + label span { border-left: 1px solid var(--line); }
.kind-pick input:checked + span { background: var(--accent); color: #fff; }
.notes { background: var(--soft); padding: 10px 12px; border-radius: 10px; }
.scoreboard .sb { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; gap: 8px; }
.sb span { display: block; font-weight: 600; color: var(--muted); }
.sb b { font-size: 3rem; line-height: 1; }
.sb-vs { font-weight: 700; color: var(--muted); font-size: .85rem; }
.sb-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 8px; }
.sb-edit > div { display: flex; gap: 6px; }
.sb-edit button, .live-score button { width: 48px; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); font-size: 1.4rem; cursor: pointer; color: var(--ink); }
.sb-edit input { text-align: center; font-size: 1.3rem; font-weight: 700; }
.score-form { display: flex; flex-direction: column; gap: 10px; }
.duties li form { display: inline; }
.sheet .table { font-size: .9rem; }
@media print { .top, .tabs, .no-print, .flash { display: none !important; } main { padding: 0; } .card { border: 0; } body { background: #fff; color: #000; } }

/* ---------- roster ---------- */
.roster { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.roster a { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: inherit; text-decoration: none; }
.profile { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.big-meta { font-size: 1.1rem; }
.photo-pick { display: flex; align-items: center; gap: 16px; }
.logo-admin { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.logo-admin .team-logo { width: 120px; height: 120px; border: 1px solid var(--line); }

/* ---------- chat ---------- */
.chat-layout { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .chat-layout { grid-template-columns: 2fr 1fr; } .chat-layout aside { position: sticky; top: 120px; align-self: start; } }
.post header { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.post header form { display: inline; }
.post.pinned { border-color: var(--accent); }
.post-body { white-space: normal; word-wrap: break-word; }
.comments { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.comment { padding: 4px 0; font-size: .95rem; }
.comment-form { display: flex; gap: 6px; margin-top: 6px; }
.comment-form input { min-height: 36px; padding: 6px 10px; }
.convs li a { display: block; }
.dm { max-width: 720px; margin: 0 auto; }
.thread { height: calc(100vh - 340px); min-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 80%; padding: 10px 12px; border-radius: 16px; word-wrap: break-word; }
.bubble.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.bubble.me .muted, .bubble.me a { color: rgba(255,255,255,.85); }
.bubble.them { align-self: flex-start; background: var(--soft); border-bottom-left-radius: 4px; }
.bubble span { display: block; margin-top: 2px; font-size: .72rem; }
.dm-form { display: flex; gap: 8px; align-items: flex-end; }
.dm-form textarea { resize: none; }

/* ---------- photos ---------- */
.albums { margin-bottom: 12px; }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.gallery figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.gallery figcaption { padding: 6px 8px; font-size: .85rem; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: grid; place-items: center; }
.lightbox img { max-width: 96vw; max-height: 90vh; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lb-prev { left: 12px; top: 50%; } .lb-next { right: 12px; top: 50%; } .lb-close { right: 12px; top: 12px; }

/* ---------- live ---------- */
.video-wrap { position: relative; background: #000; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 12px; }
.video-wrap video, .video-wrap canvas { width: 100%; height: 100%; object-fit: contain; display: block; }
.overlay-top { position: absolute; top: 10px; left: 10px; display: flex; gap: 8px; }
.live-pill, .pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.6); color: #fff; padding: 4px 10px; border-radius: 99px; font-size: .8rem; font-weight: 700; }
.live-pill { background: #c62828; } .live-pill .dot-live { background: #fff; }
.video-msg { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; text-align: center; padding: 16px; background: rgba(0,0,0,.35); pointer-events: none; }
.video-msg button { pointer-events: auto; }
.video-msg:empty { display: none; }
.score-bug { position: absolute; right: 10px; top: 10px; display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,.7); color: #fff; padding: 4px 10px; border-radius: 10px; font-size: .85rem; font-weight: 600; }
.score-bug b { font-size: 1.1rem; background: #fff; color: #000; border-radius: 6px; padding: 0 6px; }
.cheers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cheers span { position: absolute; bottom: 0; font-size: 2rem; animation: rise 2.5s ease-out forwards; }
@keyframes rise { to { transform: translateY(-260px); opacity: 0; } }
.cheer { font-size: 1.3rem; min-width: 48px; }
.live-score { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.live-score > div { display: flex; align-items: center; gap: 8px; }
.live-score b { font-size: 1.6rem; min-width: 2ch; text-align: center; }
@media (orientation: landscape) and (max-height: 500px) { .broadcast .video-wrap { max-height: 70vh; } }
