:root {
  --bg: #0c110e;
  --bg-deep: #090d0b;
  --panel: #151d18;
  --panel-hi: #1b261f;
  --border: #29372e;
  --text: #edf4ef;
  --muted: #9aa99f;
  --accent: #39d477;
  --accent-dark: #1da85b;
  --gold: #f4c95d;
  --red: #ff4b3e;
  --red-dark: #c81e1e;
}

* { box-sizing: border-box; margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  min-height: 100dvh;
  padding: clamp(16px, 4vw, 40px) clamp(12px, 3vw, 24px);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(ellipse 120% 45% at 50% 0%, #1a3324 0%, var(--bg) 45%, var(--bg-deep) 100%) no-repeat;
  background-color: var(--bg-deep);
}

.page {
  width: min(100%, 880px);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

/* ---------- Topbar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(57, 212, 119, 0.12);
}

.lang-pick {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding-inline: 11px 9px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  transition: border-color 0.2s;
}

.lang-pick svg { width: 16px; height: 16px; flex: none; }

.lang-pick::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-inline-start: 1px;
  border-inline-end: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  flex: none;
}

.lang-pick:focus-within { border-color: var(--accent); }

.lang-pick select {
  max-width: 150px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  outline: none;
  appearance: none;
}

.lang-pick option { background: var(--panel); color: var(--text); }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(26px, 5vw, 44px) clamp(18px, 4vw, 32px) clamp(24px, 4vw, 34px);
  text-align: center;
  border: 1px solid rgba(57, 212, 119, 0.16);
  border-radius: 24px;
  background: linear-gradient(160deg, var(--panel-hi), var(--panel));
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(237, 244, 239, 0.04);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  border: 1px solid rgba(244, 201, 93, 0.3);
  border-radius: 999px;
  background: rgba(244, 201, 93, 0.08);
}

.badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.8s ease-in-out infinite;
}

.hero h1 {
  margin: 18px 0 10px;
  font-size: clamp(1.55rem, 5vw, 2.3rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 48ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.hint {
  margin-top: 15px;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.5;
  opacity: 0.85;
}

/* ---------- Tombol situs ---------- */

.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.site {
  --brand: var(--accent);
  --brand-soft: rgba(57, 212, 119, 0.14);
  --brand-glow: rgba(57, 212, 119, 0.35);
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--panel-hi), var(--panel));
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.site--nontonbola {
  --brand: var(--red);
  --brand-soft: rgba(255, 75, 62, 0.14);
  --brand-glow: rgba(255, 75, 62, 0.32);
}

.site-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--brand);
  background: var(--brand-soft);
}

.site-icon svg { width: 20px; height: 20px; }

.site-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: start;
}

.site-body strong { font-size: 1rem; letter-spacing: 0.02em; }

.site-body small {
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 500;
  line-height: 1.35;
}

.site .go {
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 0.2s, color 0.2s;
}

.site .go svg { width: 18px; height: 18px; }

.site:hover,
.site:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 12px 30px -12px var(--brand-glow);
  transform: translateY(-2px);
  outline: none;
}

.site:hover .go,
.site:focus-visible .go { color: var(--brand); transform: translateX(4px); }

.site:active { transform: translateY(0); }

/* ---------- Panel ---------- */

.panel {
  padding: clamp(18px, 3.5vw, 26px) clamp(16px, 3.5vw, 28px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(27, 38, 31, 0.92), rgba(21, 29, 24, 0.92));
}

.panel h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.panel h2::before {
  content: "";
  flex: none;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.panel p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.panel p + p { margin-top: 12px; }

.panel-note {
  margin: -2px 0 14px !important;
  font-size: 0.79rem !important;
  color: var(--muted);
  opacity: 0.9;
}

.subhead {
  margin: 0 0 8px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Fitur ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
}

.features li {
  position: relative;
  padding: 12px 15px 12px 39px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(9, 13, 11, 0.45);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.features li::before {
  content: "";
  position: absolute;
  inset-inline-start: 16px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(57, 212, 119, 0.12);
}

.features strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 0.89rem;
}

/* ---------- Laga panas ---------- */

.hot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.hot {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(9, 13, 11, 0.45);
}

.hot-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.hot-time { color: var(--accent); font-weight: 700; }

.hot-teams { font-size: 0.9rem; line-height: 1.35; }

.hot-meta { font-size: 0.75rem !important; line-height: 1.4 !important; }

.hot-cta {
  margin-top: auto;
  padding-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 700;
  text-decoration: none;
}

.hot-cta:hover,
.hot-cta:focus-visible { color: var(--text); outline: none; }

/* ---------- Jadwal per hari ---------- */

.days { display: grid; gap: 8px; }

.day {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(9, 13, 11, 0.35);
}

.day summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.day summary::-webkit-details-marker { display: none; }

.day summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.day summary::after {
  content: "+";
  flex: none;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
}

.day[open] summary::after { content: "\2013"; }

.day-count {
  margin-inline-start: auto;
  padding: 1px 9px;
  border: 1px solid rgba(57, 212, 119, 0.28);
  border-radius: 999px;
  background: rgba(57, 212, 119, 0.08);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
}

.day[open] .table-wrap { border-top: 1px solid var(--border); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.sched {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.79rem;
}

.sched th {
  padding: 8px 12px;
  text-align: start;
  white-space: nowrap;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.22);
}

.sched td {
  padding: 8px 12px;
  border-top: 1px solid rgba(41, 55, 46, 0.6);
  color: var(--muted);
  vertical-align: top;
}

.sched tbody tr:hover { background: rgba(57, 212, 119, 0.04); }

.c-time {
  width: 88px;
  white-space: nowrap;
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.c-match a { color: var(--text); font-weight: 600; text-decoration: none; }
.c-match a:hover,
.c-match a:focus-visible { color: var(--accent); outline: none; }

.c-comp { width: 30%; }

.c-tv { white-space: nowrap; }

tr.is-hot .c-time::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-inline-end: 5px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: middle;
}

.source {
  margin-top: 12px !important;
  font-size: 0.71rem !important;
  line-height: 1.5 !important;
  opacity: 0.8;
}

.source a { color: var(--muted); text-decoration: underline; }
.source a:hover { color: var(--accent); }

/* ---------- Kata kunci ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(9, 13, 11, 0.4);
  color: var(--muted);
  font-size: 0.77rem;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.chip:hover,
.chip:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(57, 212, 119, 0.08);
  outline: none;
}

/* ---------- FAQ ---------- */

.faq details { border-top: 1px solid var(--border); }
.faq details:first-child { border-top: 0; }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

.faq details p {
  padding-bottom: 15px;
  font-size: 0.87rem;
  line-height: 1.7;
}

/* ---------- Footer ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  padding: 4px 0 2px;
  color: var(--muted);
  font-size: 0.77rem;
  text-align: center;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.footer a:hover,
.footer a:focus-visible { color: var(--accent); border-color: var(--accent); outline: none; }

/* ---------- Lain-lain ---------- */

@keyframes pulse {
  50% { opacity: 0.35; transform: scale(0.8); }
}

@media (max-width: 600px) {
  .lang-pick select { max-width: 110px; }
  .hero h1 { letter-spacing: -0.01em; }

  /* Tabel jadwal jadi daftar bertumpuk agar tidak terpotong di ponsel */
  .sched { min-width: 0; }
  .sched thead { display: none; }
  .sched tbody { display: grid; }
  .sched tr {
    display: grid;
    grid-template-columns: 54px 1fr;
    column-gap: 10px;
    padding: 9px 13px;
    border-top: 1px solid rgba(41, 55, 46, 0.6);
  }
  .sched tbody tr:first-child { border-top: 0; }
  .sched td { padding: 0; border: 0; }
  .c-time { grid-row: 1 / span 3; align-self: start; width: auto; padding-top: 1px; }
  .c-match { grid-column: 2; }
  .c-comp { grid-column: 2; width: auto; font-size: 0.72rem; }
  .c-tv { grid-column: 2; font-size: 0.72rem; white-space: normal; }
  .c-tv:not(:empty)::before { content: "TV · "; opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}