/* ============================================================
   SUPHANNIKAR GAMES 49th — white & blue, clean
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f7ff;
  --bg-tint: #eaf0ff;
  --line: #dde6fb;
  --line-strong: #c6d4f5;
  --ink: #0b1f4d;
  --ink-2: #3c4f7a;
  --muted: #7586a8;
  --blue: #1e4fd8;
  --blue-2: #3b6cf5;
  --blue-soft: #dce7ff;
  --navy: #0b1f4d;
  --gold: #f5b700;
  --silver: #a7b3c6;
  --bronze: #cd8a4a;
  --live: #e5484d;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 31, 77, .04), 0 8px 24px -12px rgba(11, 31, 77, .14);
  --shadow-lg: 0 2px 4px rgba(11, 31, 77, .04), 0 24px 48px -20px rgba(30, 79, 216, .28);
  --f-head: 'Kanit', 'Noto Sans Thai', system-ui, sans-serif;
  --f-body: 'Noto Sans Thai', 'Kanit', system-ui, sans-serif;
  --f-num: 'Rajdhani', 'Kanit', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.2; margin: 0; color: var(--ink); font-weight: 600; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.eyebrow { font-family: var(--f-num); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); font-weight: 700; margin: 0; }
.muted { color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); margin-right: 6px; vertical-align: middle; }
.dot.is-on, .pill-live .dot, .live-banner .dot { animation: pulse 1.4s infinite; }
.nav-live .dot:not(.is-on) { background: var(--line-strong); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .55); } 70% { box-shadow: 0 0 0 8px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.topbar.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(11, 31, 77, .35); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.brand-mark { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-txt b { font-family: var(--f-num); font-size: 19px; letter-spacing: .04em; font-weight: 700; }
.brand-txt small { font-family: var(--f-num); font-size: 11px; letter-spacing: .12em; color: var(--blue); font-weight: 700; }
.nav { display: flex; gap: 2px; }
.nav a { color: var(--ink-2); font-family: var(--f-head); font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: background .15s, color .15s; white-space: nowrap; }
.nav a:hover { background: var(--bg-soft); color: var(--blue); }
.nav a.on { background: var(--blue-soft); color: var(--blue); }
.nav-btn { display: none; background: none; border: 0; width: 42px; height: 42px; border-radius: 10px; cursor: pointer; padding: 10px; }
.nav-btn span { display: block; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons / pills ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-head); font-weight: 500; font-size: 15.5px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(30, 79, 216, .6); }
.btn-primary:hover { background: var(--blue-2); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.pill { display: inline-flex; align-items: center; font-family: var(--f-num); font-weight: 700; font-size: 12px; letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill-up { background: var(--bg-tint); color: var(--blue); }
.pill-live { background: #fdecec; color: var(--live); }
.pill-done { background: #eef1f6; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f2f6ff 0%, #ffffff 100%); padding: 72px 0 64px; }
.hero::before { content: ''; position: absolute; width: 760px; height: 760px; right: -220px; top: -300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(59, 108, 245, .16), rgba(59, 108, 245, 0)); }
.hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(30, 79, 216, .10) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 80%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 80%); pointer-events: none; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.hero-in > * { min-width: 0; }
.hero-th { overflow-wrap: anywhere; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); padding: 6px 14px 6px 8px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2); box-shadow: var(--shadow); margin-bottom: 22px; }
.hero-tag b { background: var(--blue); color: #fff; font-family: var(--f-num); letter-spacing: .08em; font-size: 12px; padding: 2px 9px; border-radius: 999px; }
.hero h1 { font-family: var(--f-num); font-weight: 700; font-size: clamp(40px, 6.4vw, 76px); line-height: .95; letter-spacing: .01em; color: var(--navy); }
.hero h1 span { display: block; background: linear-gradient(90deg, var(--blue), #4f8bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-th { font-family: var(--f-head); font-size: clamp(17px, 2vw, 21px); color: var(--ink-2); margin: 18px 0 6px; font-weight: 500; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-2); font-size: 15px; margin: 18px 0 28px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--blue); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-logo { width: min(400px, 100%); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 24px 40px rgba(30, 79, 216, .18)); }
svg.hero-logo { animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.countdown { display: flex; gap: 10px; margin-top: 30px; }
.cd-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 0 8px; width: 74px; text-align: center; box-shadow: var(--shadow); }
.cd-box b { display: block; font-family: var(--f-num); font-size: 30px; line-height: 1; color: var(--navy); }
.cd-box small { font-size: 12px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 4px; }
.sec-link { font-family: var(--f-head); font-size: 15px; white-space: nowrap; }
.page-head { background: linear-gradient(180deg, #f2f6ff, #fff); padding: 48px 0 28px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); margin-top: 6px; }
.page-head p { color: var(--ink-2); margin: 8px 0 0; }
.empty { text-align: center; color: var(--muted); padding: 48px 20px; background: var(--bg-soft); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* ---------- Live banner ---------- */
.live-banner { background: var(--navy); color: #fff; }
.live-banner .wrap { display: flex; align-items: center; gap: 18px; padding-top: 14px; padding-bottom: 14px; overflow-x: auto; }
.live-banner .lb-tag { font-family: var(--f-num); font-weight: 700; letter-spacing: .12em; font-size: 14px; white-space: nowrap; }
.lb-match { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); padding: 6px 8px 6px 12px; border-radius: 999px; color: #fff; white-space: nowrap; font-size: 14px; }
.lb-match:hover { background: rgba(255, 255, 255, .14); }
.lb-match .lb-score { font-family: var(--f-num); font-size: 18px; font-weight: 700; }
.lb-match .lb-go { background: var(--live); padding: 3px 10px; border-radius: 999px; font-size: 12.5px; }

/* ---------- House badge ---------- */
.hbadge { --hc: var(--blue); --hc2: var(--navy); display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: linear-gradient(140deg, var(--hc), var(--hc2)); color: #fff; font-family: 'Rajdhani', 'Noto Sans Thai Looped', sans-serif; font-weight: 700; line-height: 1; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.hbadge.has-logo { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.hbadge img { width: 82%; height: 82%; object-fit: contain; }
.hbadge-sm { width: 24px; height: 24px; font-size: 12px; }
.hbadge-md { width: 34px; height: 34px; font-size: 15px; }
.hbadge-lg { width: 64px; height: 64px; font-size: 26px; }
.hbadge-xl { width: 96px; height: 96px; font-size: 40px; }
.hbadge-tba { background: var(--bg-tint); color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }

/* ---------- Standings (points board) ---------- */
.board { display: grid; gap: 10px; }
.brow { --hc: var(--blue); --hc2: var(--navy); display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px 12px 12px; position: relative; overflow: hidden; box-shadow: var(--shadow); color: var(--ink); }
.brow::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--hc); }
.brow .rank { font-family: var(--f-num); font-weight: 700; font-size: 26px; text-align: center; color: var(--muted); }
.brow.r1 .rank { color: var(--gold); }
.brow .bname { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brow .bname b { font-family: var(--f-head); font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow .bbar { position: relative; height: 6px; border-radius: 6px; background: var(--bg-tint); margin-top: 6px; overflow: hidden; }
.brow .bbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--hc), var(--hc2)); border-radius: 6px; }
.medals { display: flex; gap: 6px; }
.medal { display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-num); font-weight: 700; font-size: 16px; min-width: 40px; justify-content: center; padding: 2px 8px; border-radius: 999px; background: var(--bg-soft); }
.medal i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.m-g i { background: var(--gold); } .m-s i { background: var(--silver); } .m-b i { background: var(--bronze); }
.bpts { text-align: right; font-family: var(--f-num); font-weight: 700; font-size: 28px; line-height: 1; min-width: 56px; }
.bpts small { display: block; font-size: 11px; letter-spacing: .1em; color: var(--muted); }

/* ---------- Match card ---------- */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.mcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.mcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.mcard-live { border-color: #f6c4c5; box-shadow: 0 0 0 3px rgba(229, 72, 77, .08), var(--shadow); }
.mc-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 0; }
.mc-meta { flex: 1; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-body { padding: 10px 14px 12px; display: grid; gap: 8px; }
.mc-side { --hc: transparent; display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 12px; background: var(--bg-soft); position: relative; }
.mc-side.is-winner { background: color-mix(in srgb, var(--hc) 10%, #fff); box-shadow: inset 3px 0 0 var(--hc); }
.mc-side.is-loser { opacity: .55; }
.mc-name { flex: 1; font-family: var(--f-head); font-weight: 500; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-score { font-family: var(--f-num); font-size: 24px; line-height: 1; min-width: 22px; text-align: right; }
.mc-foot { margin-top: auto; display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); background: #fbfcff; }
.mc-link { font-weight: 600; white-space: nowrap; }
.glogo { width: 28px; height: 28px; border-radius: 8px; object-fit: contain; flex-shrink: 0; }
.glogo-sm { width: 22px; height: 22px; border-radius: 6px; }
.glogo-txt { display: inline-grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-family: var(--f-num); font-weight: 700; font-size: 11px; }
.glogo-sm.glogo-txt { font-size: 9px; }

/* ---------- Games ---------- */
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gcard { display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.gcard:hover { transform: translateY(-3px); border-color: var(--blue); }
.gcard .glogo { width: 56px; height: 56px; border-radius: 14px; }
.gcard .glogo-txt { font-size: 18px; }
.gcard h3 { font-size: 19px; }
.gcard p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.gcard .gwin { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- Houses ---------- */
.hgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.hcard { --hc: var(--blue); --hc2: var(--navy); position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 26px 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.hcard::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 64px; background: linear-gradient(135deg, var(--hc), var(--hc2)); opacity: .13; }
.hcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.hcard > * { position: relative; }
.hcard h3 { font-size: 17px; }
.hcard .hen { font-family: var(--f-num); font-weight: 700; letter-spacing: .1em; font-size: 12px; color: var(--hc2); text-transform: uppercase; }
.hcard .hstat { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.hcard .hstat b { color: var(--ink); font-family: var(--f-num); font-size: 17px; }

.house-hero { --hc: var(--blue); --hc2: var(--navy); background: linear-gradient(135deg, var(--hc), var(--hc2)); color: #fff; padding: 52px 0 40px; position: relative; overflow: hidden; }
.house-hero::after { content: ''; position: absolute; right: -120px; top: -160px; width: 480px; height: 480px; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.house-hero .wrap { position: relative; z-index: 1; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.house-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 42px); }
.house-hero .eyebrow { color: rgba(255, 255, 255, .85); }
.house-hero .hbadge { box-shadow: 0 0 0 4px rgba(255,255,255,.35); }
.house-hero .hh-stats { margin-left: auto; display: flex; gap: 10px; }
.hh-stat { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); border-radius: 14px; padding: 10px 16px; text-align: center; min-width: 84px; }
.hh-stat b { display: block; font-family: var(--f-num); font-size: 26px; line-height: 1.05; }
.hh-stat small { font-size: 12px; opacity: .85; }
.back-link { display: inline-flex; color: rgba(255,255,255,.85); font-size: 14px; margin-bottom: 14px; }

/* ---------- Roster ---------- */
.roster { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 18px; }
.roster-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fbfcff; }
.roster-head h3 { font-size: 18px; flex: 1; }
.roster-head span { font-size: 13px; color: var(--muted); }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: grid; grid-template-columns: 36px 1.2fr 1.4fr .7fr .9fr; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.plist li:last-child { border-bottom: 0; }
.pinit { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--hc) 14%, #fff); color: var(--hc2); font-family: var(--f-num); font-weight: 700; font-size: 16px; }
.pign { font-family: var(--f-head); font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.pign span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cap { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--gold); color: #3d2b00; font-family: var(--f-num); font-size: 12px; font-weight: 700; flex-shrink: 0; }
.preal { color: var(--ink-2); font-size: 14.5px; }
.pclass { color: var(--muted); font-size: 14px; }
.prole { justify-self: start; font-size: 12.5px; background: var(--bg-tint); color: var(--blue); padding: 2px 10px; border-radius: 999px; }

/* ---------- Tabs / filters ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 22px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink-2); font-family: var(--f-head); font-size: 14.5px; white-space: nowrap; }
.tab:hover { border-color: var(--blue); color: var(--blue); }
.tab.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.tab .glogo { width: 20px; height: 20px; border-radius: 5px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filters select { appearance: none; -webkit-appearance: none; font: inherit; font-size: 14.5px; padding: 9px 36px 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237586a8' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--ink); cursor: pointer; }
.day-group { margin-bottom: 34px; }
.day-title { display: flex; align-items: center; gap: 12px; font-size: 18px; margin-bottom: 14px; }
.day-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- Bracket ---------- */
.bracket-scroll { overflow-x: auto; padding: 4px 2px 18px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.bracket { display: flex; gap: 40px; min-width: max-content; }
.bcol { display: flex; flex-direction: column; width: 250px; }
.bcol-title { font-family: var(--f-head); font-size: 14px; color: var(--muted); text-align: center; margin-bottom: 14px; padding: 6px; background: var(--bg-soft); border-radius: 999px; }
.bcol-body { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 22px; }
.bm { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); position: relative; }
.bcol:not(:last-child) .bm::after { content: ''; position: absolute; right: -41px; top: 50%; width: 40px; height: 2px; background: var(--line-strong); }
.bm.is-live { border-color: #f6c4c5; }
.bm-row { --hc: transparent; display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-family: var(--f-head); font-size: 14.5px; }
.bm-row + .bm-row { border-top: 1px solid var(--line); }
.bm-row .n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-row .n.tba { color: var(--muted); font-family: var(--f-body); font-size: 13.5px; }
.bm-row .s { font-family: var(--f-num); font-weight: 700; font-size: 18px; min-width: 18px; text-align: right; color: var(--muted); }
.bm-row.w { box-shadow: inset 3px 0 0 var(--hc); }
.bm-row.w .s { color: var(--ink); }
.bm-row.l { opacity: .5; }
.bm-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 5px 10px; border-top: 1px solid var(--line); background: #fbfcff; border-radius: 0 0 12px 12px; }
.bm-meta .live-t { color: var(--live); font-weight: 700; }
.bm-label { font-family: var(--f-head); font-size: 13px; color: var(--muted); margin: 0 0 6px 4px; }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { font-family: var(--f-head); font-weight: 500; font-size: 13px; color: var(--muted); text-align: center; padding: 12px 14px; background: #fbfcff; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 14px; text-align: center; border-bottom: 1px solid var(--line); font-family: var(--f-num); font-weight: 600; font-size: 17px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th:nth-child(2), .tbl td:nth-child(2) { text-align: left; }
.tbl .tn { display: flex; align-items: center; gap: 10px; font-family: var(--f-head); font-weight: 500; font-size: 15px; white-space: nowrap; }
.tbl .pts { color: var(--blue); font-weight: 700; }

/* ---------- Podium ---------- */
.podiums { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.podium { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.podium-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.podium-head h3 { font-size: 17px; }
.pod-list { display: grid; gap: 8px; }
.pod-item { --hc: var(--blue); display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--bg-soft); font-family: var(--f-head); }
.pod-item .pl { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-num); font-weight: 700; font-size: 14px; color: #fff; background: var(--muted); }
.pod-item.p1 .pl { background: var(--gold); color: #3d2b00; } .pod-item.p2 .pl { background: var(--silver); } .pod-item.p3 .pl { background: var(--bronze); }
.pod-item.tba { color: var(--muted); font-family: var(--f-body); font-size: 14px; }

/* ---------- Live ---------- */
.live-layout > * { min-width: 0; }
.live-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.player { position: relative; aspect-ratio: 16 / 9; background: var(--navy); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: rgba(255, 255, 255, .8); padding: 20px; background: radial-gradient(circle at 70% 20%, #24479f, var(--navy)); }
.player-empty img { width: 90px; height: 90px; object-fit: contain; margin: 0 auto 14px; }
.player-empty svg { width: 90px; height: 90px; margin: 0 auto 14px; opacity: .9; }
.now-bar { margin-top: 16px; }
.side-list { display: grid; gap: 12px; }
.side-title { font-size: 16px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.side-block + .side-block { margin-top: 28px; }
.mini { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--ink); font-size: 14px; }
.mini .mv { flex: 1; min-width: 0; }
.mini .mv b { display: block; font-family: var(--f-head); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .mv small { color: var(--muted); }
.mini .hbs { display: flex; }
.mini .hbs .hbadge + .hbadge { margin-left: -8px; }
.mini .play { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }

/* ---------- Sponsors / footer ---------- */
.sponsors { padding: 56px 0 40px; border-top: 1px solid var(--line); background: #fff; text-align: center; }
.sp-tier + .sp-tier { margin-top: 34px; }
.sp-tier .eyebrow { color: var(--muted); margin-bottom: 18px; }
.sp-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 40px; }
.sp-logo { display: grid; place-items: center; color: var(--ink-2); font-family: var(--f-head); }
.sp-logo img { object-fit: contain; filter: grayscale(.15); transition: filter .2s, transform .2s; }
.sp-logo:hover img { filter: none; transform: scale(1.04); }
.sp-tier-1 .sp-logo img { height: 84px; max-width: 240px; }
.sp-tier-2 .sp-logo img { height: 56px; max-width: 170px; }
.sp-tier-3 .sp-logo img { height: 40px; max-width: 130px; }
.foot { background: var(--navy); color: rgba(255, 255, 255, .78); padding: 44px 0 0; font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding-bottom: 30px; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-mark { width: 64px; height: 64px; object-fit: contain; }
.foot-brand b { display: block; color: #fff; font-family: var(--f-num); font-size: 22px; letter-spacing: .03em; line-height: 1.1; }
.foot-brand span { display: block; font-family: var(--f-num); letter-spacing: .14em; font-size: 12px; color: #8fb0ff; font-weight: 700; }
.foot-brand small { display: block; margin-top: 4px; }
.foot-org .eyebrow { color: rgba(255, 255, 255, .55); display: block; margin-bottom: 10px; }
.org-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.org-logo { background: #fff; border-radius: 12px; padding: 6px 10px; display: grid; place-items: center; color: var(--ink); }
.org-logo img { height: 40px; max-width: 120px; object-fit: contain; }
.foot-bottom { display: flex; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; padding-bottom: 20px; font-size: 13px; }
.foot-bottom a { color: #8fb0ff; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hgrid { grid-template-columns: repeat(3, 1fr); }
  .live-layout { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .nav-btn { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: 0 20px 30px -20px rgba(11, 31, 77, .3); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 12px; }
  .hero { padding: 40px 0 48px; }
  .hero-in { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { order: -1; }
  .hero-logo { width: 220px; }
  .house-hero .hh-stats { margin-left: 0; width: 100%; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .bracket-scroll { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  body { font-size: 15px; }
  .section { padding: 44px 0; }
  .hgrid { grid-template-columns: repeat(2, 1fr); }
  .mgrid, .podiums { grid-template-columns: 1fr; }
  .brand-txt b { font-size: 16px; }
  .brand-txt small { font-size: 10px; }
  .brow { grid-template-columns: 30px minmax(0, 1fr) auto; padding: 12px 14px 12px 10px; gap: 10px; }
  .brow .medals { grid-column: 2 / 4; grid-row: 2; }
  .brow .rank { font-size: 22px; }
  .countdown { gap: 8px; }
  .cd-box { width: 64px; }
  .plist li { grid-template-columns: 36px 1fr auto; row-gap: 2px; }
  .plist .preal { grid-column: 2 / 4; grid-row: 2; font-size: 13.5px; }
  .plist .pclass { grid-column: 3; grid-row: 1; }
  .plist .prole-cell { grid-column: 2 / 4; grid-row: 3; }
  .plist .prole-cell:empty { display: none; }
  .hh-stat { flex: 1; min-width: 0; }
}

/* ---------- v2: editions / battle royale ---------- */
.past-bar { background: #fff7df; border-bottom: 1px solid #f3dd9b; color: #7a5800; font-size: 14px; }
.past-bar .wrap { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.past-bar a { color: #7a5800; font-weight: 600; text-decoration: underline; }
.h-sub { font-size: 22px; margin-bottom: 14px; }
.note { font-size: 13px; color: var(--muted); margin: 10px 2px 0; }
.mc-side.is-tba .mc-name { color: var(--muted); font-family: var(--f-body); font-weight: 400; font-size: 14.5px; }
.gdate { font-size: 13px; color: var(--blue); margin: -6px 0 0; font-weight: 600; }

.mcard-info { background: var(--bg-soft); box-shadow: none; border-style: dashed; }
.mcard-info:hover { transform: none; box-shadow: none; }
.br-info { padding: 8px 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.br-info b { font-family: var(--f-num); font-size: 20px; color: var(--ink); }
.br-info span { font-size: 14px; color: var(--ink-2); }
.br-body { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.br-map-label { font-size: 12px; color: var(--muted); }
.br-map { font-family: var(--f-head); font-weight: 600; font-size: 22px; line-height: 1.25; }
.br-teams { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.br-dots { display: inline-flex; }
.br-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; margin-left: -4px; }
.br-dots i:first-child { margin-left: 0; }
.br-top { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; counter-reset: t; }
.br-top li { display: flex; align-items: center; gap: 8px; font-size: 14px; counter-increment: t; }
.br-top li::before { content: counter(t); width: 16px; font-family: var(--f-num); font-weight: 700; color: var(--muted); }
.br-top li > span:not(.hbadge) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-top li b { font-family: var(--f-num); font-size: 17px; }

.br-layout > * { min-width: 0; }
.br-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.tbl-br td { font-size: 16px; }
.tbl-br tbody tr td:first-child { box-shadow: inset 4px 0 0 var(--hc, transparent); }
.tbl .tn small.slot, .tbl-br .slot { display: block; font-family: var(--f-body); font-size: 12px; color: var(--muted); font-weight: 400; line-height: 1.2; }
.tbl .tn > span { line-height: 1.25; }
.cell-r { line-height: 1.1; white-space: nowrap; }
.cell-r small { display: block; font-family: var(--f-body); font-weight: 400; font-size: 11px; color: var(--muted); }
.board-sm .brow { grid-template-columns: 30px minmax(0, 1fr) auto; padding: 10px 14px 10px 10px; gap: 10px; }
.board-sm .brow .rank { font-size: 20px; }
.board-sm .bpts { font-size: 22px; }

.timeline { position: relative; display: grid; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 20px; box-shadow: var(--shadow); }
.tl-item { display: grid; grid-template-columns: 120px 20px 1fr; align-items: center; gap: 12px; padding: 12px 0; position: relative; }
.tl-item + .tl-item { border-top: 1px solid var(--line); }
.tl-time { font-family: var(--f-num); font-weight: 700; font-size: 17px; color: var(--ink); }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); justify-self: center; }
.tl-info .tl-dot { background: var(--line-strong); box-shadow: 0 0 0 4px var(--bg-soft); }
.tl-info .tl-body b { font-weight: 400; color: var(--ink-2); }
.tl-live .tl-dot { background: var(--live); box-shadow: 0 0 0 4px #fdecec; }
.tl-done .tl-dot { background: var(--muted); box-shadow: 0 0 0 4px var(--bg-tint); }
.tl-body { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.tl-body b { font-family: var(--f-head); font-weight: 600; }
.tl-map { color: var(--blue); font-weight: 600; }

.slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.slot-card { --hc: var(--blue); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 18px 10px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--hc); border-radius: var(--radius); box-shadow: var(--shadow); }
.slot-card b { font-family: var(--f-head); font-size: 16px; }
.slot-card span { font-size: 13.5px; color: var(--ink-2); }

.rules { margin-top: 36px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.rules h3 { font-size: 16px; margin-bottom: 8px; }
.rules ol { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 14.5px; }
.rules li + li { margin-top: 4px; }

.foot-eds { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding-bottom: 18px; font-size: 13px; }
.foot-eds span { color: rgba(255,255,255,.5); }
.foot-eds a { color: rgba(255,255,255,.85); }
.edgrid { display: grid; gap: 14px; }
.edcard { display: grid; grid-template-columns: 72px 1fr auto; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.edcard:hover { transform: translateY(-2px); border-color: var(--blue); }
.edcard.is-cur { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft), var(--shadow); }
.ed-mark { width: 72px; height: 72px; object-fit: contain; }
.ed-main h3 { font-family: var(--f-num); font-size: 22px; margin: 2px 0; }
.ed-main p { margin: 0; color: var(--muted); font-size: 14px; }
.ed-champ { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 110px; }
.ed-champ small { color: var(--muted); font-size: 12px; }
.ed-champ b { font-family: var(--f-head); font-size: 14px; }

@media (max-width: 1040px) { .br-layout { grid-template-columns: minmax(0, 1fr); } .slots { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .slots { grid-template-columns: repeat(2, 1fr); }
  .tl-item { grid-template-columns: 92px 14px 1fr; gap: 8px; }
  .tl-time { font-size: 15px; }
  .edcard { grid-template-columns: 56px 1fr; }
  .ed-mark { width: 56px; height: 56px; }
  .ed-champ { grid-column: 1 / 3; flex-direction: row; justify-content: flex-start; }
}

/* roster: BR team groups */
.plist-team { padding: 9px 18px; background: color-mix(in srgb, var(--hc) 8%, #fff); border-bottom: 1px solid var(--line); font-family: var(--f-head); font-weight: 600; font-size: 14.5px; color: var(--hc2); }
.plist-team span { font-family: var(--f-body); font-weight: 400; font-size: 12.5px; color: var(--muted); margin-left: 6px; }
.plist + .plist-team { border-top: 1px solid var(--line); }
.slot-card ul { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; color: var(--ink); width: 100%; }
.slot-card li { padding: 3px 0; border-top: 1px dashed var(--line); }
.slot-card .sc-team { font-size: 12px; color: var(--muted); margin-top: 8px; font-family: var(--f-head); }
