:root {
  color-scheme: light;
  --bg: #f4f7ff;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --panel-2: #f2f6ff;
  --line: #d7e2fb;
  --text: #1d2b45;
  --muted: #5f7397;
  --accent: #4f83f3;
  --accent-soft: #79a4ff;
  --success: #37b37e;
  --danger: #ff7b83;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 12%, rgba(110, 168, 255, 0.12), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(143, 192, 255, 0.1), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
}

.brand {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-shell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  background: linear-gradient(155deg, #1d5de0, #46a6ff);
  color: #fff;
  box-shadow: 0 7px 16px rgba(35, 91, 196, 0.3);
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.brand-watermark {
  color: #6f83a8;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}

/* desktop baseline: tetap simple seperti semula */
@media (min-width: 761px) {
  body:not(.watch-page) .brand-shell .brand-mark,
  body:not(.watch-page) .brand-shell .brand-watermark,
  body.watch-page .brand-shell .brand-mark,
  body.watch-page .brand-shell .brand-watermark {
    display: none;
  }

  body:not(.watch-page) .brand-shell .brand::before,
  body.watch-page .brand-shell .brand::before {
    content: "⚽ ";
  }
}

.menu a {
  color: #3a5179;
  text-decoration: none;
  margin-left: 14px;
  font-size: 0.95rem;
}

.menu a:hover {
  color: #1b2c4d;
}

.theme-toggle {
  margin-left: 14px;
  cursor: pointer;
  border: 1px solid #c6d8ff;
  background: #f0f5ff;
  color: #2b446e;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
}

.menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.hero-variant-switch {
  margin-left: 10px;
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid #c8d9ff;
  background: #edf3ff;
}

.variant-btn {
  border: 0;
  background: transparent;
  color: #4a638d;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.variant-btn.is-active {
  background: #4f83f3;
  color: #fff;
}

main {
  max-width: 1220px;
  margin: 24px auto 44px;
  padding: 0 16px;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid #cddcfb;
  padding: 30px 28px 20px;
  margin-bottom: 20px;
  background:
    linear-gradient(120deg, rgba(74, 122, 231, 0.95), rgba(94, 148, 255, 0.94)),
    radial-gradient(circle at 84% 14%, rgba(255, 255, 255, 0.35), transparent 32%);
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -80px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 192, 255, 0.24), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: stretch;
}

.hero h1 {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  line-height: 1.08;
  max-width: 760px;
}

.badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
}

.hero-stats {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat {
  min-width: 120px;
  display: grid;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.18);
}

.stat strong {
  font-size: 1.32rem;
}

.stat span {
  color: #eaf2ff;
  font-size: 0.82rem;
}

.hero-side {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(11, 19, 40, 0.28), rgba(7, 14, 30, 0.38));
  padding: 14px;
  display: grid;
  gap: 12px;
  align-content: start;
  backdrop-filter: blur(2px);
}

.hero-side-title {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #d7e8ff;
}

.hero-side-live {
  margin: 0;
  display: grid;
  gap: 3px;
}

.hero-side-live span {
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 800;
}

.hero-side-live small {
  color: #d8e8ff;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  font-weight: 700;
}

.hero-side-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-side-chips button,
.hero-side-chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.14);
  color: #ecf4ff;
  font-size: 0.74rem;
  cursor: pointer;
  text-decoration: none;
}

.hero-quick-filter:hover {
  transform: translateY(-1px);
}

.hero-countdown {
  border: 1px solid rgba(215, 236, 255, 0.35);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.hero-countdown-label {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e4f2ff;
}

.hero-countdown strong {
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: 0.06em;
}

.hero-countdown small {
  color: #e3f0ff;
  font-size: 0.76rem;
}

body[data-header-variant="sporty"] .hero-layout::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  right: 332px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(205, 233, 255, 0.6), transparent);
  pointer-events: none;
}

.hero-ticker {
  margin-top: 16px;
  margin-right: 220px;
  overflow: hidden;
  color: #e8f2ff;
  font-size: 0.83rem;
  opacity: 0.95;
}

.ticker-track {
  display: inline-flex;
  gap: 26px;
  white-space: nowrap;
  animation: tickerSlide 40s linear infinite;
  will-change: transform;
}

.hero-ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ticker-item b {
  font-weight: 800;
  letter-spacing: 0.05em;
}

.ticker-item.is-live b {
  color: #ffd9d9;
}

.ticker-item.is-ft {
  opacity: 0.85;
}

.hero-ball-wrap {
  position: absolute;
  right: 20px;
  bottom: 8px;
  width: 180px;
  height: 180px;
  pointer-events: none;
}

.hero-ball {
  position: absolute;
  right: 4px;
  bottom: 4px;
  font-size: 6rem;
  opacity: 0.2;
}

.hero-ring {
  position: absolute;
  right: 16px;
  bottom: 18px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.34);
}

.hero-ring.second {
  right: 0;
  bottom: 0;
  width: 150px;
  height: 150px;
  border-color: rgba(255, 255, 255, 0.2);
}

body[data-header-variant="minimal"] .hero {
  background:
    linear-gradient(120deg, rgba(80, 126, 223, 0.92), rgba(108, 157, 255, 0.88)),
    radial-gradient(circle at 84% 14%, rgba(255, 255, 255, 0.22), transparent 34%);
  padding: 26px 26px 20px;
}

body[data-header-variant="minimal"] .hero-layout {
  grid-template-columns: minmax(0, 1fr);
}

body[data-header-variant="minimal"] .hero h1 {
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  max-width: 700px;
}

body[data-header-variant="minimal"] .hero-side {
  display: none;
}

body[data-header-variant="minimal"] .hero-ticker {
  margin-top: 12px;
  margin-right: 0;
  font-size: 0.78rem;
  opacity: 0.82;
}

body[data-header-variant="minimal"] .hero-ball-wrap {
  width: 120px;
  height: 120px;
  right: 12px;
  bottom: 8px;
}

body[data-header-variant="minimal"] .hero-ball {
  font-size: 4.7rem;
  opacity: 0.16;
}

body[data-header-variant="minimal"] .hero-ring {
  display: none;
}

body[data-header-variant="sporty"] .hero {
  background:
    linear-gradient(118deg, rgba(36, 76, 182, 0.98), rgba(40, 131, 255, 0.96) 58%, rgba(54, 194, 255, 0.94)),
    radial-gradient(circle at 20% 5%, rgba(255, 255, 255, 0.24), transparent 32%);
  padding: 32px 28px 22px;
  border-color: rgba(99, 164, 255, 0.6);
  box-shadow: 0 22px 40px rgba(24, 57, 134, 0.35);
}

body[data-header-variant="sporty"] .hero-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

body[data-header-variant="sporty"] .hero-side {
  display: grid;
  border-color: rgba(206, 232, 255, 0.45);
  background:
    linear-gradient(155deg, rgba(7, 18, 45, 0.45), rgba(6, 15, 34, 0.6)),
    radial-gradient(circle at 90% 15%, rgba(112, 199, 255, 0.28), transparent 40%);
  box-shadow: inset 0 0 0 1px rgba(194, 226, 255, 0.18);
  transform: translateY(3px);
}

body[data-header-variant="sporty"] .hero-ticker {
  margin-top: 18px;
  margin-right: 230px;
  font-size: 0.84rem;
  opacity: 1;
  border: 1px solid rgba(208, 235, 255, 0.4);
  border-radius: 999px;
  background: rgba(10, 28, 67, 0.28);
  padding: 8px 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

body[data-header-variant="sporty"] .hero-ball-wrap {
  width: 180px;
  height: 180px;
  animation: ballFloat 4.2s ease-in-out infinite;
}

body[data-header-variant="sporty"] .hero-ring {
  display: block;
  animation: ringSpin 12s linear infinite;
}

body[data-header-variant="sporty"] .hero-ring.second {
  animation-duration: 18s;
  animation-direction: reverse;
}

body[data-header-variant="sporty"] .badge {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(227, 242, 255, 0.58);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

body[data-header-variant="sporty"] .hero h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  max-width: 760px;
  letter-spacing: 0.01em;
  text-shadow: 0 6px 16px rgba(10, 26, 62, 0.35);
}

body[data-header-variant="sporty"] .hero .muted {
  color: #ebf4ff;
  font-size: 1.02rem;
}

body[data-header-variant="sporty"] .hero-stats .stat {
  border-color: rgba(215, 237, 255, 0.4);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(200, 226, 255, 0.15));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

body[data-header-variant="sporty"] .hero-side-live span {
  font-size: 2.45rem;
}

body[data-header-variant="sporty"] .hero-side-live small {
  color: #f0f8ff;
}

body[data-header-variant="sporty"] .hero-side-chips span {
  border-color: rgba(220, 240, 255, 0.44);
  background: rgba(255, 255, 255, 0.18);
  color: #f1f8ff;
}

body[data-header-variant="sporty"] .hero-side-chips button {
  border-color: rgba(220, 240, 255, 0.44);
  background: rgba(255, 255, 255, 0.18);
  color: #f1f8ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body[data-header-variant="sporty"] .hero-countdown {
  border-color: rgba(215, 236, 255, 0.5);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(164, 213, 255, 0.12));
}

body[data-header-variant="sporty"] .hero::before {
  content: "";
  position: absolute;
  inset: auto -20% -55% -20%;
  height: 58%;
  background:
    repeating-linear-gradient(
      -18deg,
      rgba(255, 255, 255, 0.06) 0 3px,
      transparent 3px 20px
    );
  pointer-events: none;
}

body[data-header-variant="sporty"] .hero::after {
  width: 260px;
  height: 260px;
  right: -100px;
  top: -110px;
  background: radial-gradient(circle, rgba(180, 226, 255, 0.32), transparent 70%);
}

body[data-header-variant="sporty"] .hero-ball {
  opacity: 0.28;
  filter: drop-shadow(0 10px 24px rgba(15, 40, 92, 0.45));
}

.panel {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.panel-title-wrap {
  display: grid;
  gap: 6px;
}

.panel-title-wrap h2 {
  margin: 0;
}

.panel-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.mode-banner {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid #cfe0ff;
  background: linear-gradient(180deg, #f8fbff, #edf5ff);
  overflow: hidden;
}

.mode-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff3f63;
  box-shadow: 0 0 0 0 rgba(255, 63, 99, 0.45);
  animation: livePulse 1.7s ease-in-out infinite;
}

.mode-ticker {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.mode-ticker-track {
  display: inline-flex;
  gap: 22px;
  white-space: nowrap;
  animation: modeTickerSlide 24s linear infinite;
  color: #35527f;
  font-size: 0.74rem;
  font-weight: 700;
}

.mode-ticker-track b {
  color: #1d3764;
  font-weight: 800;
}

.mode-banner:hover .mode-ticker-track {
  animation-play-state: paused;
}

.competition-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.competition-select-icon {
  position: absolute;
  left: 12px;
  z-index: 1;
  pointer-events: none;
  font-size: 0.86rem;
  opacity: 0.9;
}

.tabs {
  display: inline-flex;
  background: #edf3ff;
  border: 1px solid #c9daff;
  border-radius: 999px;
  padding: 4px;
}

.tab-btn {
  border: 0;
  background: transparent;
  color: #506991;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  cursor: pointer;
}

.tab-btn.is-active {
  background: #4f83f3;
  color: #fff;
}

.muted {
  color: var(--muted);
}

input,
select,
button {
  border: 1px solid #c6d8ff;
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--text);
  background: var(--panel-2);
}

select {
  min-width: 230px;
}

.active-date-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #c6d8ff;
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
  color: #35527f;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

#competitionFilter {
  min-width: 280px;
  padding: 9px 42px 9px 32px;
  border-radius: 999px;
  border: 1px solid #9ec0ff;
  background:
    linear-gradient(180deg, #f8fbff, #edf4ff),
    linear-gradient(90deg, rgba(79, 131, 243, 0.1), rgba(121, 164, 255, 0.08));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    0 8px 18px rgba(79, 131, 243, 0.12);
  font-weight: 700;
  color: #28406b;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #3f67b0 50%),
    linear-gradient(135deg, #3f67b0 50%, transparent 50%),
    linear-gradient(180deg, #f8fbff, #edf4ff);
  background-position:
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px),
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat: no-repeat;
}

#competitionFilter:hover {
  border-color: #7ba8fa;
}

#competitionFilter:focus {
  outline: 0;
  border-color: #4f83f3;
  box-shadow:
    0 0 0 3px rgba(79, 131, 243, 0.2),
    0 8px 18px rgba(79, 131, 243, 0.18);
}

.btn {
  cursor: pointer;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  color: #0a162f;
  font-weight: 700;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.matches-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
}

.matches-grid.matches-enter .match-card {
  animation: cardEnter 260ms ease both;
}

.skeleton-card {
  pointer-events: none;
}

.skeleton-line,
.skeleton-dot,
.skeleton-vs,
.skeleton-btn {
  position: relative;
  overflow: hidden;
  background: #e6efff;
  border-radius: 999px;
}

.skeleton-line::after,
.skeleton-dot::after,
.skeleton-vs::after,
.skeleton-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  animation: skeletonShimmer 1.15s ease infinite;
}

.skeleton-line {
  height: 10px;
  margin-bottom: 10px;
}

.skeleton-line.w-40 {
  width: 40%;
}

.skeleton-line.w-55 {
  width: 55%;
  margin-bottom: 0;
}

.skeleton-line.w-35 {
  width: 35%;
}

.skeleton-teams {
  display: grid;
  grid-template-columns: 28px 1fr 30px 1fr 28px;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.skeleton-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.skeleton-vs {
  width: 30px;
  height: 24px;
  border-radius: 9px;
}

.skeleton-btn {
  width: 100%;
  height: 36px;
}

@keyframes skeletonShimmer {
  100% {
    transform: translateX(100%);
  }
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.match-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #d5e1fb;
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(160deg, #ffffff, #f5f8ff);
}

.match-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -65% auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 192, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.match-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.league-chip {
  display: flex;
  align-items: center;
  gap: 8px;
}

.league-logo {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: contain;
}

.match-meta {
  margin: 0;
  color: #6f83a8;
  font-size: 0.84rem;
}

.teams-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.team-box {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.team-box strong {
  font-size: 0.95rem;
  line-height: 1.24;
}

.team-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid #cfe0ff;
  object-fit: contain;
  padding: 6px;
  background: #f9fbff;
}

.team-logo-fallback {
  display: grid;
  place-items: center;
  font-weight: 700;
}

.versus {
  border: 1px solid #c8daff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #44618f;
  background: #edf3ff;
}

.kickoff-text {
  margin-top: 12px;
  font-size: 0.82rem;
}

.match-actions {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.btn-live {
  border: none;
  border-radius: 10px;
  padding: 9px 13px;
  cursor: pointer;
  font-weight: 700;
  background: linear-gradient(90deg, var(--success), #8aebbe);
  color: #062618;
  box-shadow: 0 0 0 3px rgba(55, 179, 126, 0.2);
}

.btn-live:not(:disabled) {
  animation: livePulse 1.8s ease-in-out infinite;
}

.btn-live:disabled {
  background: #bcc9e5;
  color: #4f648d;
}

.live-score {
  margin: 12px 0 0;
  text-align: center;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #1f4d8f;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.status-badge.is-live {
  color: #ff9a9a;
  border: 1px solid rgba(255, 128, 128, 0.42);
  background: rgba(255, 80, 80, 0.2);
}

.status-badge.is-finished {
  color: #62779f;
  border: 1px solid #d0dcf4;
  background: #eff4ff;
}

.status-badge.is-upcoming {
  color: #3e6fb7;
  border: 1px solid #bfd4ff;
  background: #e8f1ff;
}

.player-frame {
  position: relative;
  width: 100%;
  height: 66vh;
  min-height: 340px;
  border: 1px solid #c7d9ff;
  border-radius: 14px;
  overflow: hidden;
  background: #02050d;
}

.player-frame iframe,
.player-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: none;
  background: #000;
}

.empty-player {
  height: 100%;
  display: grid;
  place-items: center;
  color: #6681b3;
  text-align: center;
  padding: 14px;
}

.admin-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  align-items: end;
}

.admin-controls label {
  display: grid;
  gap: 6px;
}

.table-wrap {
  margin-top: 16px;
  overflow: auto;
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid #d7e3fa;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.danger {
  color: var(--danger);
}

.footer {
  text-align: center;
  color: var(--muted);
  padding: 20px;
}

.mobile-bottom-nav {
  display: none;
}

.watch-main {
  max-width: 1280px;
  margin: 20px auto 30px;
  padding: 0 16px;
}

.watch-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.watch-title h1 {
  margin: 0 0 4px;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
}

.watch-title p {
  margin: 0;
}

.watch-score {
  display: flex;
  align-items: center;
  gap: 10px;
}

.watch-score strong {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.watch-frame {
  height: calc(100vh - 220px);
  min-height: 420px;
}

.viewer-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 8px;
  border-radius: 999px;
  background: rgba(8, 13, 26, 0.68);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.brand-logo {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
}

.brand-name {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.brand-name b {
  background: linear-gradient(90deg, #6ea8ff, #46e8a0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.viewer-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(8, 13, 26, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
}

.viewer-eye {
  width: 17px;
  height: 17px;
  color: #7fd4ff;
}

.viewer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5252;
  animation: viewerPulse 1.6s ease-in-out infinite;
}

.unmute-hint {
  position: absolute;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(8, 13, 26, 0.82);
  backdrop-filter: blur(10px);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  animation: hintBounce 2s ease-in-out infinite;
}

@keyframes hintBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@media (max-width: 760px) {
  .brand-logo {
    width: 24px;
    height: 24px;
  }

  .brand-name {
    font-size: 0.86rem;
  }

  .viewer-pill {
    font-size: 0.76rem;
  }
}

@keyframes viewerPulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.5);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 5px rgba(255, 77, 77, 0);
  }
}

.watch-channels {
  margin-top: 16px;
}

.watch-channels h2,
.watch-other-live h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.channel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #c6d8ff;
  background: var(--panel-2);
  color: var(--text);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.channel-btn:hover {
  transform: translateY(-1px);
}

.channel-btn.is-active {
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(79, 131, 243, 0.25);
}

.channel-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.channel-icon {
  font-size: 0.95rem;
}

.channel-latency {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(55, 179, 126, 0.16);
  color: #2a9166;
}

.channel-latency.is-offline {
  background: rgba(255, 123, 131, 0.16);
  color: #d14b55;
}

.channel-btn.is-active .channel-latency {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.channel-fastest {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd34d, #ffb347);
  color: #553c00;
  letter-spacing: 0.02em;
}

.watch-other-live {
  margin-top: 16px;
}

body[data-theme="dark"] .channel-btn {
  border-color: #375182;
}

body[data-theme="dark"] .channel-btn.is-active {
  color: #0b1630;
}

@keyframes livePulse {
  0% {
    transform: translateY(0);
    box-shadow: 0 0 0 0 rgba(55, 179, 126, 0.35);
  }
  70% {
    transform: translateY(-1px);
    box-shadow: 0 0 0 8px rgba(55, 179, 126, 0);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 0 0 0 rgba(55, 179, 126, 0);
  }
}

@keyframes tickerSlide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes modeTickerSlide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes navRipple {
  0% {
    transform: scale(0);
    opacity: 0.45;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

@keyframes ringSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes ballFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

body[data-theme="dark"] {
  --bg: #0b1020;
  --bg-soft: #111a31;
  --panel: #151f3a;
  --panel-2: #1b284a;
  --line: #2e416d;
  --text: #ebf1ff;
  --muted: #9eb0d6;
  --accent: #6ea8ff;
  --accent-soft: #8fc0ff;
  --success: #64d9a1;
}

body[data-theme="dark"] {
  background:
    radial-gradient(circle at 8% 12%, rgba(110, 168, 255, 0.13), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(143, 192, 255, 0.11), transparent 30%),
    linear-gradient(180deg, #090e1b 0%, var(--bg) 100%);
}

body[data-theme="dark"] .topbar {
  border-bottom: 1px solid rgba(126, 160, 230, 0.28);
  background: rgba(8, 12, 24, 0.78);
}

body[data-theme="dark"] .menu a {
  color: #d7e4ff;
}

body[data-theme="dark"] .menu a:hover {
  color: #fff;
}

body[data-theme="dark"] .brand-watermark {
  color: #9eb4dc;
}

body[data-theme="dark"] .brand-mark {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

body[data-theme="dark"] .theme-toggle {
  border-color: #375182;
  background: #152746;
  color: #dbe8ff;
}

body[data-theme="dark"] .hero-variant-switch {
  border-color: #375182;
  background: #1b2b4c;
}

body[data-theme="dark"] .variant-btn {
  color: #b7cdf4;
}

body[data-theme="dark"] .variant-btn.is-active {
  background: #6ea8ff;
  color: #0b1630;
}

body[data-theme="dark"] .hero {
  border: 1px solid rgba(126, 160, 230, 0.35);
}

body[data-theme="dark"] .hero-side {
  background: linear-gradient(160deg, rgba(9, 15, 30, 0.42), rgba(10, 18, 35, 0.52));
}

body[data-theme="dark"][data-header-variant="sporty"] .hero {
  box-shadow: 0 24px 44px rgba(5, 12, 30, 0.5);
}

body[data-theme="dark"][data-header-variant="sporty"] .hero-ticker {
  background: rgba(8, 20, 50, 0.45);
  border-color: rgba(146, 196, 255, 0.4);
}

body[data-theme="dark"][data-header-variant="sporty"] .hero-side {
  background:
    linear-gradient(155deg, rgba(9, 18, 36, 0.65), rgba(9, 17, 34, 0.72)),
    radial-gradient(circle at 90% 15%, rgba(100, 177, 255, 0.28), transparent 40%);
}

body[data-theme="dark"][data-header-variant="sporty"] .hero-countdown {
  background: linear-gradient(160deg, rgba(185, 225, 255, 0.12), rgba(73, 139, 232, 0.12));
}

body[data-theme="dark"] .panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 31, 58, 0.94), rgba(16, 24, 44, 0.94));
}

body[data-theme="dark"] input,
body[data-theme="dark"] select,
body[data-theme="dark"] button {
  border-color: #375182;
  background: var(--panel-2);
  color: var(--text);
}

body[data-theme="dark"] .active-date-badge {
  border-color: #4a6799;
  background: linear-gradient(180deg, #1d2c4d, #17243f);
  color: #d7e7ff;
}

body[data-theme="dark"] .mode-banner {
  border-color: #46679c;
  background: linear-gradient(180deg, #1f3154, #1a2a49);
}

body[data-theme="dark"] .mode-ticker-track {
  color: #d3e2ff;
}

body[data-theme="dark"] .mode-ticker-track b {
  color: #f0f6ff;
}

body[data-theme="dark"] #competitionFilter {
  border-color: #4d71aa;
  background:
    linear-gradient(180deg, #1d2c4d, #17243f),
    linear-gradient(90deg, rgba(110, 168, 255, 0.1), rgba(87, 144, 255, 0.1));
  color: #d7e7ff;
  box-shadow:
    inset 0 0 0 1px rgba(161, 197, 255, 0.12),
    0 10px 24px rgba(5, 12, 30, 0.35);
  background-image:
    linear-gradient(45deg, transparent 50%, #b8d5ff 50%),
    linear-gradient(135deg, #b8d5ff 50%, transparent 50%),
    linear-gradient(180deg, #1d2c4d, #17243f);
}

body[data-theme="dark"] .tabs {
  background: #1a2846;
  border-color: #395583;
}

body[data-theme="dark"] .tab-btn {
  color: #b7cdf4;
}

body[data-theme="dark"] .tab-btn.is-active {
  background: #6ea8ff;
  color: #0b1630;
}

body[data-theme="dark"] .match-card {
  border: 1px solid rgba(122, 160, 232, 0.35);
  background: linear-gradient(160deg, #18284a, #14203b);
}

body[data-theme="dark"] .match-meta {
  color: #adbfdf;
}

body[data-theme="dark"] .team-logo {
  border-color: rgba(173, 203, 255, 0.45);
  background: rgba(9, 15, 30, 0.85);
}

body[data-theme="dark"] .versus {
  border-color: rgba(165, 195, 247, 0.4);
  color: #d9e7ff;
  background: rgba(11, 18, 35, 0.72);
}

body[data-theme="dark"] .live-score {
  color: #9bc0ff;
}

body[data-theme="dark"] .btn-live:disabled {
  background: #4a5f8c;
  color: #d7ddf0;
}

body[data-theme="dark"] .status-badge.is-finished {
  color: #c8d4ed;
  border: 1px solid rgba(160, 181, 220, 0.35);
  background: rgba(123, 141, 176, 0.2);
}

body[data-theme="dark"] .status-badge.is-upcoming {
  color: #bad6ff;
  border: 1px solid rgba(130, 176, 255, 0.35);
  background: rgba(90, 142, 255, 0.2);
}

body[data-theme="dark"] .player-frame {
  border-color: #3b578a;
}

body[data-theme="dark"] .empty-player {
  color: #9bb0d8;
}

body[data-theme="dark"] th,
body[data-theme="dark"] td {
  border-bottom-color: #2a426f;
}

@media (max-width: 760px) {
  body {
    padding-bottom: 88px;
  }

  main {
    margin: 14px auto 24px;
    padding: 0 12px;
  }

  .topbar {
    padding: 10px 12px;
    border-radius: 0 0 16px 16px;
  }

  .brand {
    font-size: 0.96rem;
  }

  .menu a {
    margin: 0;
  }

  body:not(.watch-page) .menu {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(198, 216, 255, 0.95);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 28px rgba(32, 63, 125, 0.22);
    backdrop-filter: blur(12px);
  }

  body:not(.watch-page) .menu a,
  body:not(.watch-page) .menu .theme-toggle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    margin: 0;
    padding: 0 8px;
    border-radius: 11px;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
  }

  body:not(.watch-page) .menu a {
    background: #eef4ff;
    border: 1px solid #d5e4ff;
    color: #35527f;
  }

  body:not(.watch-page) .menu .theme-toggle {
    border-color: #b8d1ff;
    background: #e6efff;
  }

  body[data-theme="dark"]:not(.watch-page) .menu {
    border-color: rgba(73, 106, 165, 0.9);
    background: rgba(14, 23, 45, 0.92);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
  }

  body[data-theme="dark"]:not(.watch-page) .menu a {
    border: 1px solid #3a5789;
    background: #1c2d50;
    color: #d7e7ff;
  }

  body[data-theme="dark"]:not(.watch-page) .menu .theme-toggle {
    border-color: #4a6ea9;
    background: #223867;
    color: #dbe8ff;
  }

  .hero {
    padding: 18px 14px 14px;
    border-radius: 18px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body[data-header-variant="sporty"] .hero-layout {
    grid-template-columns: 1fr;
  }

  body[data-header-variant="sporty"] .hero-layout::before {
    display: none;
  }

  .hero-side {
    max-width: 100%;
    border-radius: 14px;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 8px;
    padding: 10px;
  }

  .hero-side-title {
    grid-column: 1 / -1;
  }

  .hero-ticker {
    margin-right: 0;
    margin-top: 10px;
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  body[data-header-variant="sporty"] .hero-ticker {
    margin-right: 0;
  }

  .hero-ball-wrap {
    width: 88px;
    height: 88px;
    right: 6px;
    bottom: 6px;
    opacity: 0.9;
  }

  .hero-ball {
    font-size: 3.2rem;
  }

  .menu {
    gap: 6px;
  }

  .hero-variant-switch {
    margin-left: 0;
  }

  .teams-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .versus {
    justify-self: center;
  }

  /* === mobile: halaman player === */
  .watch-main {
    margin: 10px auto 18px;
    padding: 0 10px;
  }

  .watch-head {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--panel);
  }

  .watch-score strong {
    font-size: 1.35rem;
  }

  .watch-frame {
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 210px;
    border-radius: 16px;
  }

  .viewer-overlay {
    top: 7px;
    right: 7px;
    gap: 5px;
  }

  .channel-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .channel-btn {
    width: 100%;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.76rem;
  }

  .unmute-hint {
    bottom: 54px;
    font-size: 0.8rem;
    padding: 8px 14px;
  }

  .panel {
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(18, 35, 75, 0.14);
  }

  .panel-filters {
    width: 100%;
    gap: 8px;
  }

  .panel-filters select,
  .panel-filters input {
    flex: 1 1 100%;
    min-width: 0;
  }

  .active-date-badge {
    justify-self: start;
  }

  #competitionFilter {
    min-width: 0;
  }

  .tabs {
    width: 100%;
    justify-content: center;
  }

  .tab-btn {
    flex: 1;
    min-height: 38px;
  }

  .matches-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .match-card {
    border-radius: 14px;
    padding: 12px;
  }

  body.watch-page {
    padding-bottom: 20px;
  }

  body.watch-page .topbar {
    justify-content: center;
  }

  body.watch-page .brand-shell,
  body:not(.watch-page) .brand-shell {
    gap: 8px;
    justify-content: center;
  }

  body.watch-page .brand-mark,
  body:not(.watch-page) .brand-mark {
    display: grid;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 0.9rem;
  }

  body.watch-page .brand-watermark,
  body:not(.watch-page) .brand-watermark {
    display: block;
    font-size: 0.56rem;
    letter-spacing: 0.13em;
  }

  body.watch-page .brand-shell .brand::before,
  body:not(.watch-page) .brand-shell .brand::before {
    content: "";
  }

  body.watch-page .watch-main {
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }

  body.watch-page .watch-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 75;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 46px;
    align-items: center;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(185, 210, 250, 0.95);
    border-radius: 20px 20px 0 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -8px 26px rgba(20, 45, 98, 0.18);
    backdrop-filter: blur(16px);
  }

  body.watch-page .watch-bottom-nav .mobile-nav-btn {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 13px;
    height: 46px;
    min-height: 46px;
    max-height: 46px;
    padding: 6px 4px 5px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 2px;
    color: #4a628f;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  }

  body.watch-page .watch-bottom-nav .mobile-nav-btn .mobile-nav-svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
  }

  body.watch-page .watch-bottom-nav .mobile-nav-btn .mobile-nav-text {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  body.watch-page .watch-bottom-nav .mobile-nav-btn.is-pressed {
    transform: none;
  }

  body.watch-page .watch-bottom-nav .mobile-nav-btn.is-active {
    height: 46px;
    min-height: 46px;
    max-height: 46px;
    padding: 6px 4px 5px;
    background: linear-gradient(180deg, #eef5ff, #dfeeff);
    border-color: #b7d0ff;
    color: #2857a1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }

  body.watch-page .watch-other-live .teams-row {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
  }

  body.watch-page .watch-other-live .team-box {
    gap: 5px;
  }

  body.watch-page .watch-other-live .team-box strong {
    font-size: 0.82rem;
  }

  body.watch-page .watch-other-live .team-logo {
    width: 42px;
    height: 42px;
    padding: 5px;
  }

  body.watch-page .watch-other-live .versus {
    width: 36px;
    height: 36px;
    font-size: 0.72rem;
  }

  body.watch-page .watch-other-live .btn-live {
    width: 100%;
    min-height: 40px;
    border-radius: 12px;
    font-size: 0.83rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(80, 147, 255, 0.25);
    color: #fff;
    background: linear-gradient(135deg, #2f66ff, #3f8cff 52%, #42b3ff);
    box-shadow:
      0 0 0 3px rgba(79, 131, 243, 0.22),
      0 9px 16px rgba(28, 73, 156, 0.28);
  }

  body.watch-page .watch-other-live .btn-live::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid rgba(255, 255, 255, 0.95);
    transform: translateX(1px);
  }

  body.watch-page .watch-other-live .btn-live:disabled {
    color: #d6e0f6;
    border: 1px solid #9db2d8;
    background: linear-gradient(180deg, #8ea6ce, #7a94c0);
    box-shadow: none;
  }

  body.watch-page .watch-other-live .btn-live:disabled::before {
    border-left-color: rgba(215, 227, 247, 0.95);
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 1.45rem;
  }

  .hero .muted {
    font-size: 0.88rem;
  }

  .hero-stats {
    gap: 8px;
  }

  .stat {
    min-width: calc(33.33% - 6px);
    padding: 8px 10px;
  }

  .stat strong {
    font-size: 1.1rem;
  }

  .hero-side {
    grid-template-columns: 1fr;
  }

  .hero-countdown strong {
    font-size: 1.3rem;
  }

  .watch-title h1 {
    font-size: 1.02rem;
  }

  .watch-score strong {
    font-size: 1.12rem;
  }

  .channel-list {
    grid-template-columns: 1fr;
  }

  body:not(.watch-page) .menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.watch-page) .menu .theme-toggle {
    grid-column: 1 / -1;
  }
}

/* ===== Native-app mobile override (homepage fokus jadwal/live) ===== */
@media (max-width: 760px) {
  body:not(.watch-page) {
    background:
      radial-gradient(circle at 15% 0%, rgba(86, 148, 255, 0.18), transparent 35%),
      linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    padding-bottom: 0;
  }

  body:not(.watch-page) .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    padding: 12px 14px;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid rgba(183, 206, 248, 0.8);
    background: rgba(248, 252, 255, 0.96);
    backdrop-filter: blur(14px);
    justify-content: space-between;
  }

  body:not(.watch-page) .brand {
    font-size: 1.02rem;
    letter-spacing: 0.02em;
  }

  body:not(.watch-page) .menu,
  body.watch-page .menu {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: auto;
    grid-template-columns: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
  }

  body:not(.watch-page) .menu a,
  body.watch-page .menu a {
    display: none;
  }

  body:not(.watch-page) .menu .theme-toggle,
  body.watch-page .menu .theme-toggle {
    display: inline-flex;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    margin: 0;
    border-color: #b8d1ff;
    background: #e6efff;
  }

  body:not(.watch-page) main {
    margin: 0;
    padding: 66px 10px calc(88px + env(safe-area-inset-bottom, 0px));
    max-width: 100%;
  }

  /* Hero desktop disembunyikan agar fokus jadwal/live seperti app */
  body:not(.watch-page) #home {
    display: none;
  }

  body:not(.watch-page) #jadwal.panel {
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
  }

  body:not(.watch-page) #jadwal .panel-head {
    position: sticky;
    top: 62px;
    z-index: 30;
    margin: 0 -2px;
    padding: 12px 8px 10px;
    border-radius: 14px;
    border: 1px solid rgba(189, 213, 252, 0.85);
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 18px rgba(20, 45, 98, 0.12);
  }

  body:not(.watch-page) #jadwal .panel-title-wrap {
    gap: 5px;
  }

  body:not(.watch-page) #jadwal .panel-title-wrap h2 {
    font-size: 1.08rem;
    line-height: 1.2;
  }

  body:not(.watch-page) #jadwal .active-date-badge {
    font-size: 0.76rem;
    padding: 5px 10px;
    border-radius: 999px;
    border-color: #bed4ff;
    background: #edf4ff;
    color: #35527f;
  }

  body:not(.watch-page) #jadwal .panel-filters {
    width: 100%;
    gap: 8px;
  }

  body:not(.watch-page) .mode-banner {
    display: flex;
    width: 100%;
    border-radius: 11px;
    padding: 7px 9px;
    background: #edf4ff;
  }

  body:not(.watch-page) #jadwal .tabs {
    display: none;
  }

  body:not(.watch-page) .mode-live-dot {
    width: 8px;
    height: 8px;
  }

  body:not(.watch-page) .mode-ticker-track {
    font-size: 0.7rem;
    gap: 18px;
  }

  body:not(.watch-page) .competition-select-wrap {
    width: 100%;
  }

  body:not(.watch-page) .competition-select-icon {
    left: 10px;
    font-size: 0.78rem;
  }

  body:not(.watch-page) #competitionFilter {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    border-radius: 13px;
    font-size: 0.8rem;
    padding-left: 30px;
    border-color: #b7d1ff;
    background:
      linear-gradient(180deg, #f8fbff, #eef5ff),
      linear-gradient(90deg, rgba(79, 131, 243, 0.11), rgba(121, 164, 255, 0.1));
  }

  body:not(.watch-page) #statusText {
    margin: 10px 2px 6px;
    font-size: 0.78rem;
    color: #6682b3;
    min-height: 1em;
  }

  body:not(.watch-page) .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    border-radius: 22px 22px 0 0;
    border: 0;
    border-top: 1px solid rgba(185, 210, 250, 0.95);
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
      0 -8px 26px rgba(20, 45, 98, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
  }

  body:not(.watch-page) .mobile-nav-btn {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 13px;
    min-height: 46px;
    padding: 6px 4px 5px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 2px;
    color: #4a628f;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  }

  body:not(.watch-page) .mobile-nav-icon {
    line-height: 1;
  }

  body:not(.watch-page) .mobile-nav-svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
  }

  body:not(.watch-page) .mobile-nav-text {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  body:not(.watch-page) .mobile-nav-btn.is-active {
    background: linear-gradient(180deg, #eef5ff, #dfeeff);
    border-color: #b7d0ff;
    color: #2857a1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }

  body:not(.watch-page) .mobile-nav-btn.is-pressed {
    transform: none;
  }

  body:not(.watch-page) .nav-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(79, 131, 243, 0.22);
    transform: scale(0);
    animation: navRipple 460ms ease-out forwards;
    pointer-events: none;
  }

  body:not(.watch-page) .mobile-nav-btn-live {
    transform: translateY(-3px);
    min-height: 58px;
    border-radius: 18px;
    background: linear-gradient(160deg, #ff3f63, #ff5b78);
    color: #fff;
    border-color: rgba(255, 96, 123, 0.45);
    box-shadow:
      0 14px 22px rgba(255, 64, 101, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }

  body:not(.watch-page) .mobile-nav-btn-live .mobile-nav-svg {
    width: 20px;
    height: 20px;
  }

  body:not(.watch-page) .mobile-nav-btn-live .mobile-nav-text {
    font-size: 0.68rem;
    font-weight: 800;
  }

  body:not(.watch-page) .mobile-nav-btn-live.is-active {
    background: linear-gradient(160deg, #ff2f59, #ff4f72);
    border-color: rgba(255, 109, 133, 0.5);
    color: #fff;
    box-shadow:
      0 14px 24px rgba(255, 47, 89, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.36);
  }

  body:not(.watch-page) #matchesList.matches-grid {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body:not(.watch-page) .match-card {
    border: 1px solid #d5e4ff;
    border-radius: 16px;
    padding: 12px 12px 10px;
    background: linear-gradient(170deg, #ffffff, #f4f8ff);
    box-shadow: 0 8px 18px rgba(17, 44, 97, 0.12);
  }

  body:not(.watch-page) .match-head {
    align-items: center;
  }

  body:not(.watch-page) .league-chip {
    gap: 7px;
  }

  body:not(.watch-page) .league-logo {
    width: 16px;
    height: 16px;
  }

  body:not(.watch-page) .match-meta {
    font-size: 0.75rem;
  }

  body:not(.watch-page) .teams-row {
    margin-top: 9px;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
  }

  body:not(.watch-page) .team-box {
    gap: 5px;
  }

  body:not(.watch-page) .team-box strong {
    font-size: 0.82rem;
  }

  body:not(.watch-page) .team-logo {
    width: 42px;
    height: 42px;
    padding: 5px;
  }

  body:not(.watch-page) .versus {
    width: 36px;
    height: 36px;
    font-size: 0.72rem;
  }

  body:not(.watch-page) .live-score {
    margin: 9px 0 3px;
    font-size: 1rem;
  }

  body:not(.watch-page) .kickoff-text {
    margin-top: 4px;
    font-size: 0.74rem;
  }

  body:not(.watch-page) .match-actions {
    margin-top: 10px;
  }

  body:not(.watch-page) .btn-live {
    width: 100%;
    min-height: 40px;
    border-radius: 12px;
    font-size: 0.83rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    position: relative;
    border: 1px solid rgba(80, 147, 255, 0.25);
    color: #fff;
    background: linear-gradient(135deg, #2f66ff, #3f8cff 52%, #42b3ff);
    box-shadow:
      0 0 0 3px rgba(79, 131, 243, 0.22),
      0 9px 16px rgba(28, 73, 156, 0.28);
    text-align: center;
  }

  body:not(.watch-page) .btn-live::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid rgba(255, 255, 255, 0.95);
    transform: translateY(-50%);
    flex-shrink: 0;
  }

  body:not(.watch-page) .btn-live:not(:disabled):hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
  }

  body:not(.watch-page) .btn-live:disabled {
    color: #d6e0f6;
    border: 1px solid #9db2d8;
    background: linear-gradient(180deg, #8ea6ce, #7a94c0);
    box-shadow: none;
  }

  body:not(.watch-page) .btn-live:disabled::before {
    border-left-color: rgba(215, 227, 247, 0.95);
  }

  body:not(.watch-page) .footer {
    display: none;
  }

  body[data-theme="dark"]:not(.watch-page) {
    background:
      radial-gradient(circle at 15% 0%, rgba(95, 155, 255, 0.22), transparent 34%),
      linear-gradient(180deg, #0b1325 0%, #0c1528 100%);
  }

  body[data-theme="dark"]:not(.watch-page) .topbar {
    background: rgba(10, 18, 35, 0.95);
    border-bottom-color: rgba(75, 109, 171, 0.65);
  }

  body[data-theme="dark"]:not(.watch-page) #jadwal .panel-head {
    border-color: rgba(73, 106, 165, 0.75);
    background: rgba(17, 28, 52, 0.92);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
  }

  body[data-theme="dark"]:not(.watch-page) #jadwal .active-date-badge {
    border-color: #46679c;
    background: #213456;
    color: #d7e7ff;
  }

  body[data-theme="dark"]:not(.watch-page) .mode-banner {
    background: #203457;
    border-color: #47689d;
  }

  body[data-theme="dark"]:not(.watch-page) #statusText {
    color: #a7c0e8;
  }

  body[data-theme="dark"]:not(.watch-page) .match-card {
    border-color: rgba(86, 121, 186, 0.55);
    background: linear-gradient(165deg, #182a4a, #12223e);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  }

  body[data-theme="dark"]:not(.watch-page) .mobile-bottom-nav {
    border-top-color: rgba(73, 106, 165, 0.85);
    background: rgba(14, 23, 45, 0.94);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.4);
  }

  body[data-theme="dark"]:not(.watch-page) .mobile-nav-btn {
    color: #bcd3f8;
  }

  body[data-theme="dark"]:not(.watch-page) .mobile-nav-btn.is-active {
    background: #223b67;
    border-color: #4f74b2;
    color: #e4efff;
  }

  body[data-theme="dark"]:not(.watch-page) #competitionFilter {
    border-color: #4f71ac;
    background:
      linear-gradient(180deg, #1d2c4d, #17243f),
      linear-gradient(90deg, rgba(110, 168, 255, 0.13), rgba(87, 144, 255, 0.13));
  }

  body[data-theme="dark"]:not(.watch-page) .mobile-nav-btn-live,
  body[data-theme="dark"]:not(.watch-page) .mobile-nav-btn-live.is-active {
    background: linear-gradient(160deg, #ff365f, #ff5376);
    color: #fff;
    border-color: rgba(255, 110, 136, 0.58);
  }

  body[data-theme="dark"].watch-page .watch-bottom-nav {
    border-top-color: rgba(73, 106, 165, 0.85);
    background: rgba(14, 23, 45, 0.94);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.4);
  }

  body[data-theme="dark"].watch-page .watch-bottom-nav .mobile-nav-btn {
    color: #bcd3f8;
    box-shadow: none;
  }

  body[data-theme="dark"].watch-page .watch-bottom-nav .mobile-nav-btn.is-active {
    background: #223b67;
    border-color: #4f74b2;
    color: #e4efff;
  }

  body[data-theme="dark"]:not(.watch-page) .menu .theme-toggle,
  body[data-theme="dark"].watch-page .menu .theme-toggle {
    border-color: #4a6ea9;
    background: #223867;
    color: #dbe8ff;
  }

  body[data-theme="dark"].watch-page .watch-other-live .btn-live {
    border-color: rgba(123, 170, 255, 0.34);
    background: linear-gradient(135deg, #3a6fff, #4a93ff 52%, #46bcff);
    box-shadow:
      0 0 0 3px rgba(83, 135, 243, 0.26),
      0 9px 18px rgba(9, 20, 45, 0.42);
  }

  body[data-theme="dark"].watch-page .watch-other-live .btn-live:disabled {
    border-color: #5d77ab;
    background: linear-gradient(180deg, #4a5f8c, #435579);
    color: #d7ddf0;
  }

  body[data-theme="dark"].watch-page .watch-other-live .btn-live:disabled::before {
    border-left-color: rgba(215, 221, 240, 0.95);
  }

  body[data-theme="dark"]:not(.watch-page) .btn-live {
    border-color: rgba(123, 170, 255, 0.34);
    background: linear-gradient(135deg, #3a6fff, #4a93ff 52%, #46bcff);
    box-shadow:
      0 0 0 3px rgba(83, 135, 243, 0.26),
      0 9px 18px rgba(9, 20, 45, 0.42);
  }

  body[data-theme="dark"]:not(.watch-page) .btn-live:disabled {
    border-color: #5d77ab;
    background: linear-gradient(180deg, #4a5f8c, #435579);
    color: #d7ddf0;
  }

  body[data-theme="dark"]:not(.watch-page) .btn-live:disabled::before {
    border-left-color: rgba(215, 221, 240, 0.95);
  }

  body.watch-page .watch-head {
    border-color: rgba(79, 131, 243, 0.25);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 255, 0.96));
  }

  body.watch-page .channel-btn {
    border-color: rgba(99, 145, 236, 0.32);
    background: linear-gradient(180deg, #f8fbff, #edf4ff);
    box-shadow: 0 4px 11px rgba(33, 71, 146, 0.1);
  }

  body.watch-page .channel-btn.is-active {
    background: linear-gradient(130deg, #2f66ff, #42b3ff);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(79, 131, 243, 0.22);
  }

  body[data-theme="dark"].watch-page .watch-head {
    border-color: rgba(84, 125, 196, 0.45);
    background:
      linear-gradient(180deg, rgba(25, 38, 67, 0.95), rgba(18, 30, 55, 0.95));
  }

  body[data-theme="dark"].watch-page .channel-btn {
    border-color: #3f5e95;
    background: linear-gradient(180deg, #1d2f53, #1a2948);
    box-shadow: none;
  }
}
