:root {
  --bg: #08090c;
  --surface-1: #101319;
  --surface-2: #161b24;
  --surface-3: #1e2430;
  --border: rgba(223, 180, 78, 0.16);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --gold: #dfb44e;
  --gold-bright: #f5d682;
  --gold-deep: #9c741d;
  --gold-soft: rgba(223, 180, 78, 0.12);
  --text: #f3efe6;
  --text-muted: #a6a298;
  --text-dim: #6f6c64;
  --live: #e63946;
  --home-accent: #10b981;
  --away-accent: #f43f5e;
  --radius: 10px;
  --radius-sm: 6px;
  --font-display: 'Kanit', sans-serif;
  --font-num: 'Barlow Condensed', 'Kanit', sans-serif;
  --font-body: 'Noto Sans Thai', sans-serif;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); color: var(--text); max-width: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  background: radial-gradient(ellipse 80% 35% at 50% -10%, rgba(223, 180, 78, 0.09), transparent 70%), var(--bg);
  color: var(--text);
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: 1240px;
  min-width: 0;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==================== Masthead Header ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8, 9, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 8px 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color 0.18s ease, background 0.18s ease;
}
.main-nav a:hover,
.main-nav a.active,
.main-nav a[aria-current="page"] {
  color: var(--gold-bright);
  background: var(--gold-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mob-standings-pill {
  display: none;
}

.sound-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.sound-toggle-btn.is-on {
  border-color: rgba(223, 180, 78, 0.55);
  color: var(--gold-bright);
  background: rgba(223, 180, 78, 0.1);
}
.sound-toggle-btn.is-off {
  color: var(--text-dim);
}

/* ==================== Sports Ribbon (No-Scroll Wrapping Grid + Other Categories) ==================== */
.sports-ribbon {
  position: relative;
  z-index: 45;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border-subtle);
}
.sports-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 9px 0;
  overflow: visible;
}

.sport-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s var(--ease-expo);
}
.sport-pill:hover {
  border-color: rgba(223, 180, 78, 0.4);
  color: var(--text);
}
.sport-pill.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #0b0c0e;
  border-color: var(--gold-bright);
  font-weight: 700;
}
.sport-pill .cnt {
  font-family: var(--font-num);
  font-size: 11.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
}
.sport-pill-other.is-open {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: var(--gold-soft);
}
.sport-pill-other .pill-caret {
  font-size: 11px;
  transition: transform 0.18s ease;
}
.sport-pill-other.is-open .pill-caret {
  transform: rotate(180deg);
}

.other-sports-panel {
  margin: 2px 0 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid rgba(223, 180, 78, 0.28);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}
.other-sports-panel[hidden] { display: none; }
.osp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 13.5px;
  color: var(--gold-bright);
}
.osp-all-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(223, 180, 78, 0.32);
}
.osp-all-link:hover { background: var(--gold-soft); }
.osp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.osp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-display);
  font-size: 12.5px;
  color: var(--text);
  transition: border-color 0.16s ease, background 0.16s ease;
}
.osp-chip:hover, .osp-chip.active {
  border-color: var(--gold);
  background: rgba(223, 180, 78, 0.14);
  color: var(--gold-bright);
}
.osp-chip.is-secondary {
  color: var(--text-muted);
  font-size: 12px;
  padding: 5px 10px;
}
.osp-cnt {
  font-style: normal;
  font-family: var(--font-num);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold-bright);
}
.osp-subhead {
  margin: 10px 0 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
  font-size: 11.5px;
  color: var(--text-dim);
}

.other-subcat-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: var(--radius);
  background: rgba(223, 180, 78, 0.06);
  border: 1px solid rgba(223, 180, 78, 0.22);
}
.osb-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-bright);
  white-space: nowrap;
}
.wb-desk-only { display: inline; }

/* ==================== Hero Strip + Controls ==================== */
.broadcast-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 0 14px;
}
.broadcast-head > * {
  min-width: 0;
  max-width: 100%;
}
.broadcast-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}
.broadcast-title .gold { color: var(--gold); }
.broadcast-sub {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 13.5px;
}

.kpi-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.kpi-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  font-size: 12.5px;
  color: var(--text-muted);
}
.kpi-chip strong {
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.kpi-chip.live strong { color: var(--live); }

.control-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-btn {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface-2);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.16s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--border); }
.filter-btn.active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 340px;
  min-width: 200px;
  margin: 0;
}
.search-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(223, 180, 78, 0.42);
  background: #182030;
  color: #f8f6ef;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.search-input::placeholder {
  color: #9aa7bf;
  opacity: 1;
}
.search-input:hover {
  border-color: rgba(223, 180, 78, 0.65);
  background: #1b2436;
}
.search-input:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(223, 180, 78, 0.22);
  background: #1c2638;
}
.search-input:-webkit-autofill,
.search-input:-webkit-autofill:hover,
.search-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 100px #182030 inset !important;
  -webkit-text-fill-color: #f8f6ef !important;
  caret-color: #f8f6ef;
}

/* ==================== League & Match Rows ==================== */
.league-block {
  margin-bottom: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-1);
  content-visibility: auto;
  contain-intrinsic-size: auto 180px;
}
.league-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(223, 180, 78, 0.12), rgba(22, 27, 36, 0.9) 55%);
  border-bottom: 1px solid var(--border);
}
.league-id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.league-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  padding: 2px;
}
.league-name {
  margin: 0;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--gold-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.league-country {
  font-size: 12px;
  color: var(--text-dim);
}
.league-table-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(223, 180, 78, 0.35);
  white-space: nowrap;
  transition: background 0.18s;
}
.league-table-link:hover {
  background: var(--gold-soft);
}

.match-row {
  display: grid;
  grid-template-columns: 114px minmax(0, 1fr) 76px minmax(0, 1fr) 154px;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.15s ease;
}
.m-mobile-head,
.m-vs-strip {
  display: contents;
}
.match-row .m-status { grid-column: 1; grid-row: 1; }
.match-row .team-cell.home { grid-column: 2; grid-row: 1; }
.match-row .score-box { grid-column: 3; grid-row: 1; }
.match-row .team-cell.away { grid-column: 4; grid-row: 1; }
.match-row.is-single-event .single-event-cell { grid-column: 2 / 5; grid-row: 1; }
.match-row .m-cta { grid-column: 5; grid-row: 1; }
.match-row:last-child { border-bottom: none; }
.match-row:hover { background: rgba(223, 180, 78, 0.05); }
.match-row.is-live { background: rgba(230, 57, 70, 0.04); }
.match-row.is-live:hover { background: rgba(230, 57, 70, 0.09); }

.m-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.m-status-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.date-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.date-chip.tone-today {
  background: rgba(223, 180, 78, 0.13);
  color: var(--gold-bright);
  border-color: rgba(223, 180, 78, 0.28);
}
.date-chip.tone-tomorrow {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.28);
}
.kickoff-sub {
  font-size: 11px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.badge-live, .badge-ft, .badge-time, .badge-muted {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 13.5px;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.badge-live {
  background: rgba(230, 57, 70, 0.18);
  color: #ff6b77;
  border: 1px solid rgba(230, 57, 70, 0.45);
}
.badge-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4d5a;
  animation: livePulse 1.3s infinite;
}
.badge-ft {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}
.badge-time {
  background: rgba(223, 180, 78, 0.1);
  color: var(--gold-bright);
}
.badge-muted {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
}
.hot-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.team-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
}
.team-cell.home { justify-content: flex-end; text-align: right; }
.team-cell.away { justify-content: flex-start; text-align: left; }
.team-name {
  min-width: 0;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  padding: 2px;
}

.score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}
.score-main {
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
}
.score-main.vs {
  font-size: 15px;
  color: var(--text-dim);
}
.score-ht {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.m-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #0b0c0e;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.16s var(--ease-expo), filter 0.16s ease;
}
.watch-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.watch-btn.has-stream {
  background: linear-gradient(135deg, #e63946, #b51f2b);
  color: #fff;
}

/* ==================== Match Watch Page ==================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 14px 0 8px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.breadcrumb a:hover { color: var(--gold); }

.match-hero {
  background: linear-gradient(180deg, rgba(223, 180, 78, 0.08), var(--surface-1) 65%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.match-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.match-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.sb-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.sb-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  padding: 6px;
  border: 1px solid var(--border);
}
.sb-name {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 700;
  line-height: 1.2;
}
.sb-center {
  text-align: center;
  min-width: 120px;
}
.sb-digits {
  font-family: var(--font-num);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--gold-bright);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.sb-meta {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.sb-quick-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ==================== Player Stage + Watermark ==================== */
.watch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 22px;
  width: 100%;
  min-width: 0;
}
.player-shell {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #040507;
}
.player-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #040507;
  overflow: hidden;
}
.player-stage video,
.player-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #040507;
}
.player-standby {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, rgba(223, 180, 78, 0.12), #050608 72%);
}
.player-standby.is-prematch {
  background:
    radial-gradient(ellipse at 50% 35%, rgba(185, 28, 43, 0.16) 0%, rgba(223, 180, 78, 0.08) 42%, #07090d 78%);
}
.standby-pitch-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(223, 180, 78, 0.12);
  pointer-events: none;
}
.standby-pill {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(223, 180, 78, 0.14);
  border: 1px solid rgba(223, 180, 78, 0.4);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-top: 6px;
}
.player-standby h2 {
  position: relative;
  z-index: 2;
  margin: 10px 0 6px;
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--text);
}
.standby-live-accent {
  color: #f43f5e;
}
.player-standby p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--text-muted);
  max-width: 460px;
  font-size: 13.5px;
}
.standby-countdown {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(12, 16, 24, 0.88);
  border: 1px solid rgba(223, 180, 78, 0.35);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pch-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ch-copy-btn {
  border-color: rgba(223, 180, 78, 0.38);
  color: var(--gold-bright);
}
.ch-copy-btn:hover {
  background: rgba(223, 180, 78, 0.14);
  border-color: var(--gold);
}

.player-watermark {
  position: absolute;
  z-index: 25;
  pointer-events: auto;
  transition: opacity 0.2s;
}
.player-watermark.pos-top-left { top: 14px; left: 16px; }
.player-watermark.pos-top-right { top: 14px; right: 16px; }
.player-watermark.pos-bottom-left { bottom: 52px; left: 16px; }
.player-watermark.pos-bottom-right { bottom: 52px; right: 16px; }
.player-watermark img { height: auto; display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.7)); }

.player-channels {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 11px 14px;
  background: var(--surface-1);
  border-top: 1px solid var(--border-subtle);
}
.player-channels-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pch-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}
.pch-title strong {
  color: var(--gold-bright);
}
.ch-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 4px 10px;
  font-size: 12px;
}
.channel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.ch-btn {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface-2);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}
.ch-btn:hover {
  border-color: var(--border);
  color: var(--gold-bright);
}
.ch-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #090b0e;
  border-color: var(--gold-bright);
}
.ch-region,
.ch-rec-badge {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  line-height: 1.4;
}
.ch-region {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}
.ch-btn.active .ch-region {
  background: rgba(9, 11, 14, 0.16);
  color: #16181f;
}
.ch-rec-badge {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}
.ch-btn.active .ch-rec-badge {
  background: rgba(9, 11, 14, 0.22);
  color: #090b0e;
}
.server-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
}
.server-bar[hidden] {
  display: none !important;
}
.srv-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 2px;
}
.srv-btn {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.srv-btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}
.srv-btn.active {
  background: rgba(223, 180, 78, 0.18);
  border-color: var(--gold);
  color: var(--gold-bright);
}
.embed-bar .server-bar {
  padding-top: 0;
  border-top: none;
  margin-left: auto;
}
.player-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tool-btn {
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-bright);
  cursor: pointer;
}
.tool-btn:hover { background: var(--gold-soft); }

.marquee-bar {
  width: 100%;
  max-width: 100%;
  padding: 7px 14px;
  background: rgba(223, 180, 78, 0.08);
  border-top: 1px solid var(--border-subtle);
  color: var(--gold-bright);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
}
.marquee-inner {
  display: inline-block;
  padding-left: 100%;
  animation: marqueeScroll 28s linear infinite;
}

/* ==================== Live Chat Below Player (dooballsod7m style) ==================== */
.chat-panel {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  overflow: hidden;
}
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: linear-gradient(90deg, rgba(223, 180, 78, 0.14), var(--surface-2));
  border-bottom: 1px solid var(--border);
}
.chat-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-messages {
  height: 290px;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg);
}
.chat-msg {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  font-size: 13.5px;
  animation: fadeSlideUp 0.2s var(--ease-expo);
}
.chat-msg.side-home { border-left: 3px solid var(--home-accent); }
.chat-msg.side-away { border-left: 3px solid var(--away-accent); }
.chat-nick { font-weight: 700; color: var(--gold-bright); }
.chat-side-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
}
.chat-side-tag.home { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; }
.chat-side-tag.away { background: rgba(244, 63, 94, 0.18); color: #fda4af; }
.chat-time { margin-left: auto; font-size: 11px; color: var(--text-dim); }
.chat-text { color: var(--text); word-break: break-word; }

.chat-quick-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 14px;
  background: var(--surface-1);
  border-top: 1px solid var(--border-subtle);
}
.cheer-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-2);
  font-size: 12px;
  cursor: pointer;
}
.cheer-btn:hover { border-color: var(--gold); color: var(--gold-bright); }

.chat-form {
  display: grid;
  grid-template-columns: 145px 125px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-top: 1px solid var(--border-subtle);
}
.chat-input, .chat-select {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(223, 180, 78, 0.42);
  background: #182030;
  color: #f8f6ef;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.chat-input::placeholder {
  color: #9aa7bf;
  opacity: 1;
}
.chat-input:hover, .chat-select:hover {
  border-color: rgba(223, 180, 78, 0.65);
  background: #1b2436;
}
.chat-input:focus, .chat-select:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(223, 180, 78, 0.22);
  background: #1c2638;
}
.chat-select option {
  background: #161e2e;
  color: #f8f6ef;
}
.chat-input:-webkit-autofill,
.chat-input:-webkit-autofill:hover,
.chat-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 100px #182030 inset !important;
  -webkit-text-fill-color: #f8f6ef !important;
  caret-color: #f8f6ef;
}
.chat-send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #090b0e;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
}

/* ==================== Detail Tabs (Lineup / Stats / Events / H2H / Standings) ==================== */
.detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.dtab-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface-1);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}
.dtab-btn.active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold-bright);
}
.dtab-pane { display: none; }
.dtab-pane.active { display: block; }

.panel-box {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--surface-1);
  padding: 16px;
  margin-bottom: 16px;
}
.panel-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-bright);
}

/* Lineup two-column grid */
.lineup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.lineup-card {
  padding: 14px;
  border-top: 2px solid var(--border);
}
.lineup-card.is-home { border-top-color: var(--home-accent); }
.lineup-card.is-away { border-top-color: var(--away-accent); }
.lineup-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border-subtle);
}
.lu-team-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lu-side-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}
.lineup-card.is-home .lu-side-badge { color: var(--home-accent); }
.lineup-card.is-away .lu-side-badge { color: var(--away-accent); }
.lineup-sub-head {
  margin: 12px 0 4px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
}
.lineup-rows.is-subs { opacity: 0.86; }
.player-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.player-row:last-child { border-bottom: none; }
.jersey-num {
  min-width: 22px;
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.player-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-3);
  flex-shrink: 0;
}
.player-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pos-tag {
  margin-left: auto;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--surface-3);
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Stats comparison bars */
.stat-item { margin-bottom: 12px; }
.stat-nums {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 4px;
}
.stat-nums span {
  text-align: center;
  min-width: 0;
  overflow-wrap: anywhere;
}
.stat-nums strong { font-family: var(--font-num); font-size: 16px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.stat-bar-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  height: 7px;
}
.stat-half {
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
  display: flex;
}
.stat-half.home { justify-content: flex-end; }
.stat-fill-home { background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); height: 100%; border-radius: 999px; }
.stat-fill-away { background: linear-gradient(90deg, #e11d48, #fb7185); height: 100%; border-radius: 999px; }

/* Events timeline */
.ev-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13.5px;
}
.ev-desc {
  min-width: 0;
  overflow-wrap: anywhere;
}
.ev-min {
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 15px;
  color: var(--gold);
}

/* Standings Table */
.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.st-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.st-table th {
  text-align: left;
  padding: 9px 10px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.st-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.st-table tr.hl-team { background: rgba(223, 180, 78, 0.12); }
.st-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 14px;
}

/* H2H summary bar */
.h2h-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.h2h-box {
  text-align: center;
  padding: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
}
.h2h-box strong {
  display: block;
  font-family: var(--font-num);
  font-size: 28px;
  font-weight: 800;
  color: var(--gold-bright);
  line-height: 1.1;
}

/* ==================== Dual-Side GOAL ALERT POPUPS ==================== */
.goal-alert-stack {
  position: fixed;
  top: 76px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: min(370px, calc(100vw - 24px));
}
.goal-alert-stack.left { left: 16px; }
.goal-alert-stack.right { right: 16px; }

.goal-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: transform 0.45s var(--ease-expo), opacity 0.35s ease;
}
.goal-toast.side-home {
  background: linear-gradient(135deg, rgba(11, 46, 33, 0.96), rgba(20, 32, 24, 0.96));
  border: 1.5px solid #10b981;
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.25);
  transform: translateX(-115%);
}
.goal-toast.side-away {
  background: linear-gradient(135deg, rgba(54, 14, 24, 0.96), rgba(34, 16, 18, 0.96));
  border: 1.5px solid #f43f5e;
  box-shadow: 0 12px 32px rgba(244, 63, 94, 0.25);
  transform: translateX(115%);
}
.goal-toast.show {
  transform: translateX(0);
  opacity: 1;
}
.goal-badge {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 3px;
}
.goal-toast.side-home .goal-badge { background: #10b981; color: #041b12; }
.goal-toast.side-away .goal-badge { background: #f43f5e; color: #fff; }
.goal-score-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}
.goal-league-line {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

/* ==================== SEO Footer ==================== */
.seo-article {
  margin: 28px 0 18px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 13.5px;
}
.seo-article h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold);
}
.seo-article h3 {
  margin: 16px 0 6px;
  font-family: var(--font-display);
  font-size: 15.5px;
  color: var(--gold-bright);
}
.seo-article p {
  margin: 0 0 10px;
  line-height: 1.72;
}
.seo-article p:last-child {
  margin-bottom: 0;
}
.seo-article a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.seo-faq {
  margin: 18px 0 24px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
}
.seo-faq h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 17.5px;
  color: var(--gold);
}
.seo-faq-list {
  display: grid;
  gap: 8px;
}
.seo-faq-item {
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}
.seo-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.seo-faq-item summary::-webkit-details-marker {
  display: none;
}
.seo-faq-item summary::after {
  content: '+';
  color: var(--gold);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.seo-faq-item[open] summary::after {
  content: '−';
}
.seo-faq-item p {
  margin: 0;
  padding: 0 14px 13px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.65;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
}
.footer-seo-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.fsl-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 12.5px;
}
.fsl-label {
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 600;
}
.fsl-group a {
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.fsl-group a:hover {
  color: var(--gold-bright);
}
.site-footer {
  margin-top: 32px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text-dim);
  font-size: 12.5px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.ad-slot {
  width: 100%;
  max-width: 100%;
  margin: 14px auto;
  text-align: center;
}
.ad-slot-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ad-banner-item {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.ad-banner-item.ad-banner-html {
  border-radius: var(--radius);
  overflow: hidden;
}
.ad-banner-item picture {
  display: block;
  width: 100%;
}
.ad-banner-link {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(223, 180, 78, 0.22);
  background: var(--surface-1);
  transition: border-color 0.18s ease, transform 0.18s var(--ease-expo), box-shadow 0.18s ease;
}
a.ad-banner-link:hover {
  border-color: rgba(223, 180, 78, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.ad-banner-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.ad-banner-item iframe,
.ad-banner-item ins,
.ad-banner-item img {
  max-width: 100%;
  height: auto;
}

/* ==================== Animations ==================== */
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== Real SVG Icons, Live Gating & Multi-Sport Layouts ==================== */
.ico {
  display: inline-block;
  vertical-align: -0.18em;
  flex-shrink: 0;
}
.title-ico { color: var(--gold); margin-right: 4px; }
.ico-gold { color: var(--gold-bright); }
.ico-live { color: #ff4d5a; }
.ico-home { color: var(--home-accent); }
.ico-away { color: var(--away-accent); }
.ev-ico-gold { color: var(--gold-bright); }
.ev-ico-red { color: #f43f5e; }
.ev-ico-green { color: #10b981; }

.broadcast-title,
.panel-title,
.filter-btn,
.tool-btn,
.ch-btn,
.dtab-btn,
.cheer-btn,
.chat-send-btn,
.sound-toggle-btn,
.league-table-link,
.hot-tag,
.meta-inline,
.ev-badge-inline,
.goal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.panel-title { display: flex; }
.broadcast-title { display: flex; }
.meta-inline { font-size: 12.5px; color: var(--text-muted); }

.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  width: 100%;
}
.search-input-box .search-ico {
  position: absolute;
  left: 11px;
  color: var(--gold-bright);
  opacity: 0.9;
  pointer-events: none;
}
.search-input-box .search-input {
  padding-left: 36px;
  width: 100%;
}

.league-ico-wrap {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  color: var(--gold-bright);
  flex-shrink: 0;
}

/* Circular Athlete Profile Portraits (Tennis, Badminton, Fighting, Snooker, Lineups) */
.team-logo.is-player,
.sb-logo.is-player,
.event-thumb.is-player,
.player-avatar {
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 1.5px solid rgba(223, 180, 78, 0.55);
  background: var(--surface-2);
}
.sb-logo.is-player {
  border-width: 2px;
  box-shadow: 0 4px 16px rgba(223, 180, 78, 0.22);
}

/* Crisp Vector Fallback for Missing/404 Logos */
.entity-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(223, 180, 78, 0.08);
  border: 1px solid rgba(223, 180, 78, 0.28);
  color: var(--gold);
  flex-shrink: 0;
}
.entity-fallback.is-player {
  border-radius: 50%;
}

/* Single-Event Sport Row (Motorsport F1/MotoGP, Muay Thai / Fighting, Snooker, Padel) */
.match-row.is-single-event .single-event-cell {
  grid-column: 2 / 5;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.event-emblem {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(223, 180, 78, 0.18), rgba(223, 180, 78, 0.05));
  border: 1px solid rgba(223, 180, 78, 0.4);
  color: var(--gold-bright);
  flex-shrink: 0;
}
.event-emblem.lg {
  width: 68px;
  height: 68px;
  border-radius: 16px;
}
.event-thumb {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--surface-2);
  padding: 3px;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.single-event-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.single-event-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.single-event-sub {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.match-hero-single {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 26px 20px;
  text-align: left;
}
.single-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Live-Only Watch CTA Gating */
.watch-btn.is-live-cta {
  background: linear-gradient(135deg, #e63946, #b91c2b);
  color: #fff;
  border-color: rgba(255, 110, 122, 0.65);
  box-shadow: 0 0 18px rgba(230, 57, 70, 0.35);
}
.watch-btn.is-live-cta:hover {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(244, 63, 94, 0.45);
}
.watch-btn.is-live-stats {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(223, 180, 78, 0.34);
  color: var(--gold-bright);
  box-shadow: none;
}
.watch-btn.is-live-stats:hover {
  background: rgba(223, 180, 78, 0.14);
  border-color: var(--gold);
}
.watch-btn.is-upcoming {
  background: rgba(223, 180, 78, 0.08);
  border: 1px solid rgba(223, 180, 78, 0.36);
  color: var(--gold-bright);
  box-shadow: none;
}
.watch-btn.is-upcoming:hover {
  background: rgba(223, 180, 78, 0.18);
  border-color: var(--gold);
  color: #fff;
}
.watch-btn.is-ended {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  box-shadow: none;
}
.watch-btn.is-ended:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(223, 180, 78, 0.38);
  color: var(--text);
}
.watch-btn.is-disabled {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.72;
  box-shadow: none;
}
.watch-btn.is-disabled.is-ended {
  color: rgba(164, 174, 191, 0.62);
}
a.m-vs-strip {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
a.m-vs-strip:hover {
  background: rgba(223, 180, 78, 0.05);
}

.standby-lock-ring {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(223, 180, 78, 0.1);
  border: 1.5px solid rgba(223, 180, 78, 0.45);
  color: var(--gold-bright);
  margin-bottom: 6px;
}
.standby-lock-ring.is-prematch {
  box-shadow: 0 0 28px rgba(223, 180, 78, 0.18);
}
.goal-toast-emblem {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #f5d682;
  flex-shrink: 0;
}

.stream-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.36);
  color: #6ee7b7;
  letter-spacing: 0.01em;
}

.mobile-bottom-nav {
  display: none;
}

/* ==================== Studio Broadcast Video Player ==================== */
.bp-player {
  position: absolute;
  inset: 0;
  background: #040507;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.bp-player video.bp-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #040507;
  opacity: 0;
  transition: opacity 0.3s var(--ease-expo);
}
.bp-player video.bp-video.is-ready {
  opacity: 1;
}
.bp-live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: livePulse 1.4s infinite;
}
.bp-loader {
  position: absolute;
  inset: 0;
  z-index: 11;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(4, 5, 7, 0.42);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.bp-loader.is-visible {
  opacity: 1;
}
.bp-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(223, 180, 78, 0.22);
  border-top-color: var(--gold-bright);
  animation: bpSpin 0.8s linear infinite;
}
@keyframes bpSpin {
  to { transform: rotate(360deg); }
}
.bp-center-cta {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 16;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  max-width: calc(100% - 24px);
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(223, 180, 78, 0.72);
  background: rgba(11, 14, 20, 0.94);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.65);
  transition: transform 0.16s var(--ease-expo), background 0.16s ease;
}
.bp-center-cta:hover {
  background: rgba(24, 28, 38, 0.95);
  transform: translate(-50%, -50%) scale(1.03);
}
@media (max-width: 780px) {
  .bp-center-cta {
    min-height: 36px;
    padding: 7px 14px;
    gap: 6px;
    font-size: 12.5px;
  }
}
.bp-center-cta[hidden],
.bp-error[hidden],
.bp-q-wrap[hidden],
.bp-q-menu[hidden],
.bp-btn[hidden],
.bp-err-btn[hidden] {
  display: none !important;
}
.bp-error {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(5, 7, 10, 0.95);
}
.bp-error-box {
  max-width: 360px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bp-error-box strong {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--gold-bright);
}
.bp-error-box p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.bp-error-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.bp-err-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.bp-err-btn.primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #090b0e;
  border: none;
  font-weight: 700;
}
.bp-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 28px 12px 10px;
  background: linear-gradient(0deg, rgba(4, 5, 7, 0.94) 0%, rgba(4, 5, 7, 0.62) 60%, transparent 100%);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.22s var(--ease-expo), transform 0.22s var(--ease-expo);
}
.bp-player.is-ui-visible .bp-controls {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.bp-ctrl-left,
.bp-ctrl-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 38px;
  min-height: 38px;
  padding: 6px 8px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #f3efe6;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, transform 0.12s ease;
}
.bp-btn:hover {
  background: rgba(223, 180, 78, 0.2);
  color: var(--gold-bright);
}
.bp-btn:active {
  transform: scale(0.94);
}
.bp-vol-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bp-vol-slider {
  width: 68px;
  accent-color: var(--gold-bright);
  cursor: pointer;
}
.bp-sync-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.bp-sync-btn.is-at-live {
  background: rgba(230, 57, 70, 0.2);
  border-color: rgba(230, 57, 70, 0.55);
  color: #ff8b95;
}
.bp-sync-btn.is-at-live .bp-live-dot {
  background: #ff4d5a;
}
.bp-smooth-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.bp-smooth-btn.is-active {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.55);
  color: #6ee7b7;
}
.bp-q-wrap {
  position: relative;
}
.bp-q-btn {
  padding: 6px 10px;
  font-family: var(--font-num);
  font-size: 12.5px;
  font-weight: 700;
}
.bp-q-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  min-width: 146px;
  padding: 5px;
  border-radius: 10px;
  background: rgba(12, 16, 24, 0.98);
  border: 1px solid rgba(223, 180, 78, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bp-q-opt {
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 12.5px;
  cursor: pointer;
}
.bp-q-opt:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}
.bp-q-opt.active {
  background: rgba(223, 180, 78, 0.16);
  color: var(--gold-bright);
  font-weight: 700;
}

/* ==================== Responsive (Mobile Studio Architecture) ==================== */
@media (max-width: 820px) {
  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }
  .container {
    padding: 0 10px;
  }
  .site-header {
    background: rgba(8, 10, 14, 0.96);
  }
  .header-inner {
    min-height: 54px;
    padding: 6px 0;
    gap: 8px;
  }
  .brand-link {
    min-width: 0;
    flex: 1 1 auto;
    max-width: calc(100% - 196px);
  }
  .brand-logo {
    height: 30px;
    max-width: 100%;
    width: auto;
  }
  .main-nav { display: none; }

  .mob-standings-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(223, 180, 78, 0.36);
    background: rgba(223, 180, 78, 0.12);
    color: var(--gold-bright);
    font-family: var(--font-display);
    font-size: 11.8px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .mob-standings-pill.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: #090b0f;
    border-color: transparent;
  }

  .sound-toggle-btn {
    min-height: 34px;
    padding: 5px 10px;
    font-size: 11.8px;
    flex-shrink: 0;
  }

  /* Mobile uniform 2-column grid for sport pills; trailing odd pill spans full row */
  .sports-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin: 0;
    padding: 8px 0;
    max-width: 100%;
    overflow: visible;
    gap: 6px;
  }
  .sport-pill {
    width: 100%;
    min-height: 36px;
    min-width: 0;
    max-width: 100%;
    padding: 6px 10px;
    font-size: 12.2px;
    gap: 6px;
    justify-content: flex-start;
  }
  .sport-pill svg {
    flex-shrink: 0;
  }
  .sport-pill > span:not(.cnt):not(.pill-caret) {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sport-pill .cnt {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 10.5px;
    padding: 1px 6px;
  }
  .sports-track > .sport-pill:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .sports-track > .sport-pill:last-child:nth-child(odd) > span:not(.cnt):not(.pill-caret) {
    flex: 0 1 auto;
  }
  .sports-track > .sport-pill:last-child:nth-child(odd) .cnt {
    margin-left: 2px;
  }
  .other-sports-panel {
    padding: 10px;
    margin: 0 0 10px;
    max-width: 100%;
  }
  .osp-head strong {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .osp-chip {
    max-width: 100%;
  }
  .other-subcat-bar {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 8px 10px;
    gap: 6px;
  }
  .osb-label {
    width: 100%;
    font-size: 12px;
  }

  /* Hero & KPI grid */
  .broadcast-head {
    padding: 14px 0 10px;
    gap: 10px;
  }
  .broadcast-title {
    font-size: clamp(19px, 5vw, 24px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .broadcast-sub {
    font-size: 12.5px;
    line-height: 1.45;
  }
  .kpi-strip {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .kpi-chip {
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 4px;
    text-align: center;
    font-size: 11px;
    border-radius: 8px;
  }
  .kpi-chip strong {
    font-size: 19px;
    line-height: 1.05;
  }

  /* Filter tabs & iOS-safe high-contrast search bar */
  .control-bar {
    padding: 10px;
    gap: 9px;
    border-radius: 10px;
    margin-bottom: 14px;
    min-width: 0;
    max-width: 100%;
  }
  .filter-tabs {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-btn {
    flex-shrink: 0;
    min-height: 38px;
    padding: 7px 12px;
    font-size: 13px;
    white-space: nowrap;
  }
  .search-wrap {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .search-input-box {
    width: 100%;
    min-width: 0;
  }
  .search-input {
    min-height: 44px;
    font-size: 16px;
    border-radius: 8px;
  }

  /* Multi-banner Ad Stack & Match Cards */
  .ad-slot {
    margin: 10px auto;
  }
  .ad-slot-stack {
    gap: 8px;
  }
  .ad-banner-link {
    border-radius: 8px;
  }
  .wb-desk-only {
    display: none;
  }
  .league-block {
    margin-bottom: 11px;
    border-radius: 10px;
  }
  .league-head {
    padding: 8px 10px;
    gap: 8px;
  }
  .league-id {
    flex: 1;
    min-width: 0;
    gap: 7px;
  }
  .league-name {
    font-size: 13px;
    line-height: 1.25;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  .league-country {
    display: none;
  }
  .league-table-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    padding: 3px 9px;
    font-size: 11px;
  }
  .match-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    padding: 9px 10px;
    min-width: 0;
  }
  /* Reset desktop grid-column placements so .m-vs-strip owns exact 3-column grid */
  .match-row .m-status,
  .match-row .m-cta {
    grid-column: auto;
    grid-row: auto;
  }
  .match-row .m-vs-strip > .team-cell.home {
    grid-column: 1;
    grid-row: 1;
  }
  .match-row .m-vs-strip > .score-box {
    grid-column: 2;
    grid-row: 1;
  }
  .match-row .m-vs-strip > .team-cell.away {
    grid-column: 3;
    grid-row: 1;
  }
  .match-row.is-single-event .m-vs-strip > .single-event-cell {
    grid-column: 1;
    grid-row: 1;
  }
  .m-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
  }
  .m-status {
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 4px 5px;
    padding-bottom: 0;
    border-bottom: none;
  }
  .m-status-top {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
  }
  .badge-live, .badge-ft, .badge-time, .badge-muted {
    font-size: 12px;
    padding: 2px 7px;
    border-radius: 6px;
    max-width: 100%;
  }
  .date-chip {
    font-size: 10px;
    padding: 2px 5.5px;
    max-width: 100%;
  }
  .kickoff-sub {
    font-size: 10.5px;
    margin-left: 0;
  }
  .hot-tag {
    font-size: 9.5px;
    padding: 1px 5px;
    border-radius: 999px;
    background: rgba(223, 180, 78, 0.12);
    border: 1px solid rgba(223, 180, 78, 0.28);
  }
  .m-cta {
    flex-shrink: 0;
    justify-content: flex-end;
    padding-top: 0;
    border-top: none;
  }
  .m-cta .watch-btn {
    width: auto;
    min-height: 30px;
    padding: 4px 10px;
    justify-content: center;
    font-size: 11.5px;
    border-radius: 8px;
    gap: 4px;
    flex-shrink: 0;
  }
  .m-cta .watch-btn:active {
    transform: scale(0.97);
  }
  .m-cta .watch-btn.is-disabled {
    min-height: 28px;
    padding: 3px 9px;
    font-size: 11px;
    opacity: 0.72;
  }
  .m-vs-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
    row-gap: 4px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 7px 9px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.065);
  }
  .match-row.is-single-event .m-vs-strip {
    grid-template-columns: minmax(0, 1fr);
  }
  .team-cell.home,
  .team-cell.away {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  .team-cell.home {
    justify-content: flex-end;
    text-align: right;
  }
  .team-cell.away {
    justify-content: flex-start;
    text-align: left;
  }
  .team-logo,
  .team-cell .team-logo,
  .team-cell .entity-fallback {
    width: 20px !important;
    height: 20px !important;
    padding: 1px;
    flex-shrink: 0;
  }
  .team-cell .entity-fallback svg {
    width: 13px;
    height: 13px;
  }
  .team-name {
    display: block;
    min-width: 0;
    max-width: 100%;
    font-size: 12.5px;
    line-height: 1.25;
    white-space: normal;
    overflow: hidden;
    text-overflow: unset;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .team-cell.home .team-name { text-align: right; }
  .team-cell.away .team-name { text-align: left; }
  .score-box {
    width: auto;
    flex-shrink: 0;
    min-width: 54px;
    padding: 4px 8px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
    justify-self: center;
    overflow: hidden;
  }
  .match-row.is-live .score-box {
    background: rgba(230, 57, 70, 0.13);
    border-color: rgba(230, 57, 70, 0.45);
  }
  .score-main {
    font-size: 17px;
    line-height: 1.05;
    white-space: nowrap;
  }
  .score-main.vs {
    font-size: 11.5px;
    letter-spacing: 0.05em;
  }
  .score-ht {
    font-size: 9.5px;
    line-height: 1.1;
    margin-top: 2px;
    white-space: nowrap;
  }
  .match-row.is-single-event .single-event-cell {
    gap: 9px;
    min-width: 0;
    max-width: 100%;
  }
  .single-event-text {
    min-width: 0;
    max-width: 100%;
  }
  .single-event-title {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.28;
  }
  .single-event-sub {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .player-watermark.pos-top-left { top: 8px; left: 10px; }
  .player-watermark.pos-top-right { top: 8px; right: 10px; }
  .player-watermark.pos-bottom-left { bottom: 44px; left: 10px; }
  .player-watermark.pos-bottom-right { bottom: 44px; right: 10px; }
  .player-watermark img {
    max-width: min(104px, 26vw) !important;
    height: auto !important;
  }
  .bp-controls {
    padding: 18px 8px 8px;
  }
  .bp-vol-slider {
    display: none;
  }
  .bp-btn {
    min-width: 38px;
    min-height: 38px;
  }

  /* Match Watch Page Mobile Optimization */
  .breadcrumb {
    padding: 10px 0 6px;
    font-size: 12px;
    overflow-wrap: anywhere;
  }
  .match-hero {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px;
    margin-bottom: 12px;
  }
  .match-hero-top {
    margin-bottom: 10px;
    padding-bottom: 8px;
    gap: 8px;
  }
  .match-hero-top > div {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
  }
  .match-scoreboard {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: 8px;
    row-gap: 6px;
  }
  .sb-team {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  .sb-team .sb-logo,
  .sb-team .entity-fallback.sb-logo {
    width: 44px !important;
    height: 44px !important;
    padding: 4px;
    flex-shrink: 0;
  }
  .sb-name {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 13px;
    line-height: 1.28;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .sb-center {
    min-width: 64px;
    max-width: 124px;
    padding: 0 2px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
  }
  .sb-digits {
    font-size: 26px;
    white-space: nowrap;
  }
  .sb-meta {
    font-size: 11px;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .match-hero-single {
    flex-direction: column;
    text-align: center;
    padding: 14px 10px;
    gap: 10px;
  }
  .player-standby {
    padding: 14px;
  }
  .player-standby h2 {
    font-size: 16.5px;
    margin: 8px 0 4px;
  }
  .player-standby p {
    font-size: 12px;
  }
  .standby-pill {
    font-size: 11px;
    padding: 2px 10px;
  }
  .standby-countdown {
    margin-top: 8px;
    padding: 4px 11px;
    font-size: 12px;
  }
  .standby-lock-ring {
    width: 46px;
    height: 46px;
  }
  .player-channels {
    padding: 10px;
    gap: 9px;
    width: 100%;
    min-width: 0;
  }
  .player-channels-head {
    flex-wrap: wrap;
    gap: 8px;
  }
  .channel-list,
  .server-bar {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .channel-list::-webkit-scrollbar,
  .server-bar::-webkit-scrollbar { display: none; }
  .channel-list .meta-inline {
    white-space: normal;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.4;
  }
  .ch-btn {
    min-height: 40px;
    padding: 8px 13px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .srv-label,
  .srv-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .srv-btn {
    min-height: 36px;
    padding: 6px 12px;
  }
  .ch-refresh-btn {
    width: auto;
    flex-shrink: 0;
  }
  .player-tools {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .tool-btn {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
  }

  .detail-tabs {
    display: flex;
    max-width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 0 12px;
    padding: 0 0 8px;
  }
  .detail-tabs::-webkit-scrollbar { display: none; }
  .dtab-btn {
    flex-shrink: 0;
    min-height: 40px;
    white-space: nowrap;
    font-size: 13.5px;
    padding: 8px 14px;
  }
  .panel-box {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 12px;
  }
  .st-table th,
  .st-table td {
    padding: 7px;
    font-size: 12px;
  }
  .lineup-grid { grid-template-columns: minmax(0, 1fr); }
  .lineup-grid.lineup-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
    max-width: 100%;
  }
  .lineup-card {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 8px 6px;
    margin-bottom: 0;
    border-radius: 8px;
  }
  .lineup-card-head {
    flex-direction: column;
    gap: 1px;
    padding-bottom: 5px;
    margin-bottom: 3px;
  }
  .lu-team-name {
    font-size: 12px;
    line-height: 1.25;
    width: 100%;
  }
  .lu-side-badge {
    font-size: 9.5px;
  }
  .lineup-sub-head {
    margin: 7px 0 3px;
    padding-top: 5px;
    font-size: 10.5px;
  }
  .lineup-split .player-row {
    gap: 4px;
    padding: 4px 1px;
    min-width: 0;
  }
  .lineup-split .jersey-num {
    min-width: 15px;
    font-size: 11px;
  }
  .lineup-split .player-avatar {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
  }
  .lineup-split .player-avatar svg {
    width: 12px;
    height: 12px;
  }
  .lineup-split .player-name {
    font-size: 11px;
    line-height: 1.2;
  }
  .lineup-split .pos-tag {
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 3px;
  }

  .chat-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 11px 12px;
  }
  .chat-header h3 {
    max-width: 100%;
    font-size: 14.5px;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .chat-messages {
    height: 240px;
    padding: 10px;
  }
  .chat-msg {
    max-width: 100%;
    min-width: 0;
  }
  .chat-text {
    overflow-wrap: anywhere;
  }
  .chat-quick-bar {
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 10px;
  }
  .chat-quick-bar::-webkit-scrollbar { display: none; }
  .cheer-btn {
    flex-shrink: 0;
    min-height: 34px;
    white-space: nowrap;
  }
  .chat-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 10px;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }
  .chat-input, .chat-select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 42px;
    font-size: 16px;
  }
  .chat-form .chat-msg-input {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }
  .chat-form .chat-send-btn {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    font-size: 15px;
  }

  .seo-article,
  .seo-faq {
    margin: 18px 0 14px;
    padding: 14px;
    overflow-wrap: anywhere;
  }
  .seo-faq-item summary {
    padding: 11px 12px;
    font-size: 13.5px;
  }
  .seo-faq-item p {
    padding: 8px 12px 12px;
    font-size: 13px;
  }
  .site-footer {
    margin-top: 22px;
    padding: 18px 0;
  }

  .goal-alert-stack {
    top: 62px;
    max-width: calc(100vw - 20px);
  }
  .goal-alert-stack.left { left: 10px; }
  .goal-alert-stack.right { right: 10px; }

  /* Sticky Mobile Thumb Navigation Bar */
  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: rgba(11, 14, 20, 0.98);
    border-top: 1px solid rgba(223, 180, 78, 0.22);
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.5);
  }
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(8, 9, 12, 0.98);
  }
  .bp-smooth-btn {
    padding: 3px 7px;
    font-size: 10.5px;
    min-height: 28px;
  }
  .mbn-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 52px;
    min-width: 0;
    padding: 4px 2px;
    border-radius: 10px;
    font-family: var(--font-display);
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.16s ease, background 0.16s ease;
  }
  .mbn-item span {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mbn-item.active {
    color: var(--gold-bright);
    background: rgba(223, 180, 78, 0.11);
  }
  .mbn-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24%;
    right: 24%;
    height: 2.5px;
    border-radius: 999px;
    background: var(--gold-bright);
  }
  .mbn-item.mbn-live svg {
    color: #ff6b77;
  }
  .mbn-item.mbn-live.active {
    color: #ff8b95;
    background: rgba(230, 57, 70, 0.14);
  }
  .mbn-item.mbn-live.active::before {
    background: #ff4d5a;
  }
}

@media (max-width: 640px) {
  .ev-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 6px;
    font-size: 12.5px;
  }
  [data-dpane="h2h"] .ev-row {
    grid-template-columns: minmax(64px, auto) minmax(0, 1fr) !important;
    align-items: start;
  }
  [data-dpane="h2h"] .ev-row > * {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .h2h-summary {
    gap: 6px;
  }
  .h2h-box {
    padding: 9px 6px;
  }
  .h2h-box strong {
    font-size: 22px;
  }
  .h2h-box span {
    font-size: 11px !important;
    line-height: 1.3;
  }
}

@media (max-width: 560px) {
  .lineup-split .player-row {
    gap: 3px;
    padding: 3.5px 1px;
  }
  .lineup-split .player-avatar {
    width: 16px !important;
    height: 16px !important;
  }
  .lineup-split .player-name {
    font-size: 10.5px;
  }
  .lineup-split .pos-tag {
    font-size: 8.5px;
    padding: 1px 3px;
  }
  .player-shell {
    border-radius: 10px;
  }
  .player-watermark img {
    max-width: min(88px, 24vw) !important;
  }
  .sound-label,
  .sound-toggle-btn > span {
    display: none;
  }
  .sound-toggle-btn {
    padding: 6px 11px;
  }
  .sound-toggle-btn.is-on::after {
    content: 'เสียงเปิด';
    font-size: 12px;
  }
  .sound-toggle-btn.is-off::after {
    content: 'เสียงปิด';
    font-size: 12px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 390px) {
  .header-inner {
    gap: 8px;
  }
  .brand-link {
    max-width: calc(100% - 178px);
  }
  .brand-logo {
    height: 27px;
  }
  .header-actions {
    gap: 5px;
  }
  .mob-standings-pill,
  .sound-toggle-btn {
    min-height: 32px;
    padding: 4px 8px;
    font-size: 11px;
    gap: 4px;
  }
  .sound-toggle-btn.is-on::after,
  .sound-toggle-btn.is-off::after {
    font-size: 11px;
  }
  .sports-track {
    gap: 5px;
    padding: 7px 0;
  }
  .sport-pill {
    min-height: 35px;
    padding: 5px 9px;
    font-size: 11.8px;
    gap: 5px;
  }
  .kpi-chip {
    padding: 7px 3px;
    font-size: 10.5px;
  }
  .kpi-chip strong {
    font-size: 17px;
  }
  .match-row {
    padding: 8px;
    gap: 6px;
  }
  .m-mobile-head {
    gap: 5px;
  }
  .badge-live, .badge-ft, .badge-time, .badge-muted {
    font-size: 11.5px;
    padding: 2px 6px;
  }
  .date-chip {
    font-size: 9.5px;
    padding: 1.5px 5px;
  }
  .kickoff-sub {
    font-size: 10px;
  }
  .m-cta .watch-btn {
    padding: 4px 8px;
    font-size: 11px;
    min-height: 28px;
  }
  .m-vs-strip {
    padding: 6px 7px;
    column-gap: 8px;
  }
  .team-cell.home,
  .team-cell.away {
    gap: 5px;
  }
  .team-name {
    font-size: 12px;
    line-height: 1.22;
  }
  .score-box {
    min-width: 54px;
    padding: 4px 7px;
  }
  .score-main {
    font-size: 16px;
  }
  .score-ht {
    font-size: 9.5px;
  }
  .match-hero {
    padding: 10px;
  }
  .match-scoreboard {
    column-gap: 6px;
  }
  .sb-center {
    min-width: 56px;
    max-width: 106px;
  }
  .sb-digits {
    font-size: 22px;
  }
  .sb-name {
    font-size: 12px;
  }
}
