/* ==========================================================================
   Lawan Tanding — Design System (lawantanding.com)
   Dibuat 20 Sep 2026. Menggantikan css/styles.css yang lama.

   Arah desain: terang & bersih, kerapatan informasi ala FotMob (tabel
   klasemen/peringkat, kartu pertandingan) dipadu rail kartu mendatar ala
   Vidio Sports, dengan aksen hijau Lawan Tanding.

   Isi berkas ini: token warna/jarak/radius, primitif (tombol, badge, kartu,
   tabel, tab, rail), kerangka halaman (nav, hero, footer), dan skeleton
   loading -- SEMUA halaman publik memakai berkas yang sama.
   ========================================================================== */

/* ---------- TOKEN ---------- */
:root {
  --brand:      #018A6C;
  --brand-600:  #017256;
  --brand-700:  #015A44;
  --brand-50:   #E8F5F1;
  --brand-100:  #CDEAE1;

  --ink:    #0B1220;
  --ink-2:  #475467;
  --ink-3:  #8A94A6;
  --ink-4:  #B4BCC9;

  --bg:      #F5F7F6;
  --surface: #FFFFFF;
  --surface-2:#FAFBFB;
  --line:    #E6EAE8;
  --line-2:  #F0F3F1;

  --win:  #0E9F6E;
  --draw: #98A2B3;
  --lose: #E5484D;
  --live: #E5484D;
  --gold: #E9A23B;

  --r-sm: 10px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(11,18,32,.05);
  --sh-2: 0 4px 16px rgba(11,18,32,.06);
  --sh-3: 0 12px 32px rgba(11,18,32,.10);

  --nav-h: 66px;
  --wrap: 1200px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Plus Jakarta Sans', 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
/* height:auto WAJIB sejak gambar sampul membawa atribut width/height (22 Sep
   2026). Atribut itu yang mencegah lompatan tata letak sebelum gambar terunduh;
   tanpa height:auto, max-width:100% cuma mengecilkan lebarnya dan gambar jadi
   gepeng memanjang. */
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.22; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0 0 12px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 32px); } }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.nav-brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.nav-brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.nav-brand b { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--r-pill); font-size: 14.5px; font-weight: 600;
  color: var(--ink-2); transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--line-2); color: var(--ink); }
.nav-links a.active { background: var(--brand-50); color: var(--brand-700); }
.nav-cta { flex: 0 0 auto; }
.nav-burger {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: var(--r-sm); width: 40px; height: 40px; cursor: pointer;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  display: block; width: 17px; height: 2px; background: var(--ink); border-radius: 2px;
  margin-inline: auto; position: relative; content: '';
}
.nav-burger span::before { position: absolute; top: -5px; }
.nav-burger span::after { position: absolute; top: 5px; }
@media (max-width: 900px) {
  .nav-burger { display: block; }
  .nav-links, .nav-cta { display: none; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 2px; position: absolute;
    top: var(--nav-h); left: 0; right: 0; background: var(--surface);
    border-bottom: 1px solid var(--line); padding: 10px 20px 16px; margin: 0;
    box-shadow: var(--sh-2);
  }
  .nav.open .nav-cta { display: block; position: absolute; top: calc(var(--nav-h) + 250px); left: 20px; right: 20px; }
}

/* ---------- TOMBOL ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 20px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-size: 14.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: background .16s, border-color .16s, color .16s, transform .16s, box-shadow .16s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(1,138,108,.24); }
.btn-primary:hover { background: var(--brand-600); box-shadow: 0 10px 24px rgba(1,138,108,.3); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-4); background: var(--surface-2); }
.btn-sm { padding: 8px 15px; font-size: 13.5px; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ---------- BADGE ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px;
  border-radius: var(--r-pill); font-size: 11.5px; font-weight: 700;
  letter-spacing: .01em; white-space: nowrap;
}
.badge-brand { background: var(--brand-50); color: var(--brand-700); }
.badge-muted { background: var(--line-2); color: var(--ink-2); }
.badge-live  { background: #FDECEC; color: var(--live); }
.badge-live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--live);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .3 } }
.badge-gold { background: #FDF3E3; color: #9A6614; }

/* Badge STATUS KOMPETISI — nilai persis dari panel admin (.badge-warning /
   .badge-success / .badge-muted di public_admin/kompetisi.html). Merah
   (.badge-live) sengaja TIDAK dipakai lagi untuk "Berlangsung": di admin
   warna itu tidak pernah berarti status berjalan. */
.st-akan    { background: #FFF3E0; color: #E65100; }
.st-jalan   { background: #E0F2F1; color: #00897B; }
.st-selesai { background: #F0F0F0; color: #757575; }
.st-jalan::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: #00897B;
  animation: pulse 1.6s ease-in-out infinite;
}

/* Warna tipe kompetisi -- SAMA dengan panel admin & app (aturan 16 Sep 2026) */
.tipe { color: #fff; }
.tipe-ku, .tipe-kelompok_umur { background: #1565C0; }
.tipe-pelajar     { background: #42A5F5; }
.tipe-undi        { background: #7B1FA2; }
.tipe-lokal       { background: #2E7D32; }
.tipe-semi_open   { background: #EF6C00; }
.tipe-open        { background: #C62828; }
.tipe-lt_zona     { background: #2E7D32; }
.tipe-lt_champions{ background: #212121; }

/* ---------- KARTU & SEKSI ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}
.section { padding: 46px 0; }
.section-sm { padding: 30px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.section-head h2 { font-size: 24px; }
.section-head .sub { color: var(--ink-2); font-size: 14px; margin: 5px 0 0; }
.link-more { color: var(--brand); font-weight: 700; font-size: 14px; display: inline-flex; gap: 5px; align-items: center; }
.link-more:hover { color: var(--brand-700); }

/* ---------- RAIL (gulir mendatar, pola Vidio) ---------- */
.rail { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.rail > * { scroll-snap-align: start; flex: 0 0 auto; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.rail::-webkit-scrollbar-track { background: transparent; }

/* ---------- LOGO TIM ---------- */
.crest {
  width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex: 0 0 auto;
  background: var(--line-2); border: 1px solid var(--line);
}
.crest-fb {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto;
  display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700);
  font-weight: 800; font-size: 13px; border: 1px solid var(--brand-100);
}
.crest-lg, .crest-fb.crest-lg { width: 54px; height: 54px; border-radius: 14px; font-size: 19px; }
.crest-sm, .crest-fb.crest-sm { width: 26px; height: 26px; border-radius: 7px; font-size: 11px; }

/* ---------- TABEL ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th {
  text-align: left; padding: 11px 12px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr.klik { cursor: pointer; transition: background .12s; }
.tbl tbody tr.klik:hover { background: var(--surface-2); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .mid { text-align: center; font-variant-numeric: tabular-nums; }
.tbl .kuat { font-weight: 700; }
.cell-tim { display: flex; align-items: center; gap: 11px; min-width: 0; }
.cell-tim .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-tim .sub { font-size: 12px; color: var(--ink-3); }

.rankno {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px;
  border-radius: 8px; background: var(--line-2); color: var(--ink-2);
  font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.rankno-1 { background: #FDF3E3; color: #9A6614; }
.rankno-2 { background: #F1F3F5; color: #5C6470; }
.rankno-3 { background: #FBEFE6; color: #A45B22; }

/* Kepala kelompok tanggal di halaman Jadwal & Hasil. */
.grup-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-2);
  font-size: 13px; font-weight: 700; color: var(--ink-2);
}
.grup-head .grup-komp {
  color: var(--brand); font-weight: 700; font-size: 12.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%;
}
.match .klik-tim { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; cursor: pointer; }
.match .kanan .klik-tim { flex-direction: row-reverse; }
.match .klik-tim:hover .nm { color: var(--brand); }

/* ---------- TAB / FILTER ---------- */
.tabs, .sheet-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.tabs button, .sheet-tabs button {
  padding: 9px 16px; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: .15s;
}
.tabs button:hover, .sheet-tabs button:hover { border-color: var(--ink-4); }
.tabs button[aria-selected="true"], .sheet-tabs button[aria-selected="true"] {
  background: var(--brand); border-color: var(--brand); color: #fff;
}

/* Chip wilayah (kabupaten/kecamatan) — sepadan dengan panel admin. */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: thin; }
.chips::-webkit-scrollbar { height: 6px; }
.chips::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.chips button {
  padding: 7px 14px; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13px;
  font-weight: 600; cursor: pointer; white-space: nowrap; transition: .15s; flex: 0 0 auto;
}
.chips button:hover { border-color: var(--ink-4); }
.chips button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.filter-wil { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-wil .field { flex: 1 1 180px; }

.field {
  padding: 10px 13px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); font: inherit; font-size: 14px; color: var(--ink); min-width: 0;
}
.field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search { position: relative; flex: 1 1 240px; }
.search .field { width: 100%; padding-left: 38px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }

/* ---------- SKELETON & KOSONG ---------- */
.skel { background: linear-gradient(90deg, var(--line-2) 25%, #E9EDEB 37%, var(--line-2) 63%);
  background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 50% } 100% { background-position: 0 50% } }
.skel-row { height: 46px; margin-bottom: 8px; border-radius: 10px; }
.kosong { padding: 40px 20px; text-align: center; color: var(--ink-3); font-size: 14.5px; }
.kosong b { display: block; color: var(--ink-2); font-weight: 700; margin-bottom: 4px; font-size: 15px; }

/* ---------- FOOTER ---------- */
.ft { background: var(--surface); border-top: 1px solid var(--line); padding: 44px 0 26px; margin-top: 40px; }
.ft-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .ft-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
@media (max-width: 520px) { .ft-grid { grid-template-columns: 1fr; } }
.ft h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 12px; }
.ft ul { list-style: none; margin: 0; padding: 0; }
.ft li { margin-bottom: 9px; }
.ft a { color: var(--ink-2); font-size: 14px; }
.ft a:hover { color: var(--brand); }
.ft-about p { color: var(--ink-2); font-size: 14px; max-width: 38ch; }
.ft-bot {
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line-2);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--ink-3); font-size: 13px;
}

/* ==========================================================================
   BAGIAN 2 — KOMPONEN KHUSUS HALAMAN
   ========================================================================== */

/* ---------- HERO BERANDA ---------- */
/* ---------- HERO BERANDA ---------- */
/* Latar hero adalah SATU foto yang sudah memuat pemain dan bingkai HP
   (22 Sep 2026). Dipasang sebagai <img> di dalam .hero-foto, bukan
   background-image, supaya srcset bekerja: HP mengunduh 1280px, desktop
   1920px, dan layar sempit dapat potongan 4:5 tersendiri. */
.hero {
  position: relative; overflow: hidden; padding: 64px 0 56px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4FAF8 46%, #EAF5F1 100%);
}
/* flex-direction KOLOM, bukan baris: hero punya dua anak yang harus
   BERTUMPUK (grid teks lalu deret kartu). Dengan arah baris keduanya berdiri
   bersebelahan dan kartu mendarat menimpa layar HP di foto. */
@media (min-width: 941px) {
  .hero { min-height: 620px; display: flex; flex-direction: column; justify-content: center; }
}

.hero-foto { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 68% center; display: block; }
/* Tirai putih di sisi kiri -- tanpa ini judul gelap duduk di atas dedaunan
   dan jadi sulit dibaca. Warnanya diambil dari --surface supaya menyatu. */
.hero-foto::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(255,255,255,.97) 0%, rgba(255,255,255,.94) 34%,
    rgba(255,255,255,.78) 46%, rgba(255,255,255,.34) 60%,
    rgba(255,255,255,.08) 70%, transparent 78%);
}
.hero-ruang { min-height: 420px; }


/* ---------- TIGA KARTU DATA HIDUP, MELAYANG DI ATAS FOTO ---------- */
/* Ukurannya sengaja KECIL: kartu ini pelengkap, bukan isi utama hero --
   pemain dan layar HP yang harus tetap jadi pusat perhatian. */
.hero-kartu-deret { position: relative; z-index: 2; display: grid; gap: 14px; margin-top: 28px; }
.hero-kartu-deret:empty { display: none; }

a.hero-kartu {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 9px 11px; box-shadow: 0 12px 30px rgba(11,18,32,.15);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
a.hero-kartu:hover {
  transform: translateY(-3px); border-color: var(--brand-100);
  box-shadow: 0 20px 44px rgba(11,18,32,.17);
}
a.hero-kartu:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.hero-kartu .hk-judul {
  display: flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 700;
  color: var(--brand); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 7px;
}
.hero-kartu .hk-judul .hk-panah { margin-left: auto; color: var(--ink-4); font-size: 9.5px; }
.hero-kartu .hk-duel { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 7px; align-items: center; }
.hero-kartu .hk-tim { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.hero-kartu .hk-tim .nm {
  font-size: 9.5px; font-weight: 600; color: var(--ink); text-align: center; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-kartu .hk-skor { font-size: 15px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.hero-kartu .hk-kaki { font-size: 9px; color: var(--ink-3); margin-top: 6px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-kartu .hk-baris { display: flex; align-items: center; gap: 7px; min-width: 0; }
.hero-kartu .hk-rank { font-size: 13px; font-weight: 800; color: var(--brand); }
.hero-kartu .hk-poin { margin-left: auto; font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.hero-kartu .hk-sub { font-size: 9px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-kartu .hk-nm2 {
  font-size: 10px; font-weight: 700; color: var(--ink); line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Melayang di atas foto, hanya pada layar lebar. Kotak pembungkusnya
   dibentangkan setinggi hero dan dibuat tembus klik, jadi cuma kartunya
   sendiri yang bisa diklik -- bukan seluruh area hero.
   WAJIB ditaruh SESUDAH aturan dasar .hero-kartu-deret di atas: pada
   specificity yang sama, aturan yang belakangan menang, dan aturan dasar
   (position: relative + margin-top) sempat membatalkan penempatan ini
   sehingga ketiga kartu menumpuk di pojok atas. */
@media (min-width: 941px) {
  /* SELEBAR LAYAR, bukan selebar .wrap (1200px): di contoh posisi dari user,
     kartu LT Ranking & Kompetisi menempel ke tepi kanan JENDELA, jauh di luar
     kolom konten. Kalau tetap terkurung .wrap, `right: 0` berhenti di 1552px
     pada layar 1920px -- masih di tengah foto. */
  .hero-deret-wrap {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    width: auto; max-width: none; margin-inline: 0; padding: 0;
  }
  .hero-kartu-deret { position: static; margin: 0; display: block; }
  a.hero-kartu { position: absolute; pointer-events: auto; }
  /* MIRING MENGIKUTI HP DI FOTO. Foto pengganti (22 Sep 2026) memakai HP
     yang TEGAK -- baris tab "Lokal ... NEWS" di dalam layarnya datar -- jadi
     sudutnya 0. Kalau nanti fotonya diganti lagi dengan HP yang miring,
     cukup ubah dua angka di bawah ini. */
  a.hero-kartu { transform: rotate(0deg); transform-origin: 50% 50%; }
  a.hero-kartu:hover { transform: rotate(0deg) translateY(-3px); }

  /* Kartu 1 diselipkan di sela paha pemain dan bingkai HP.
     Kartu 2 & 3 menempel ke TEPI foto: di lebar 1400px mustahil bebas sama
     sekali dari HP, jadi yang ditutupi dipilih bagian tepinya -- bukan
     daftar pertandingan di tengah layar. */
  /* +1cm (CSS 1cm = 37,8px) -- pergeseran ditulis dalam satuan panjang, bukan
     persen, supaya jaraknya tetap sama di layar 1400px maupun 1920px. */
  a.hero-kartu:nth-child(1) { left: calc(55% + 1cm); top: 53%; width: 206px; }
  /* Jarak dari tepi jendela ditulis di `right` kartunya, BUKAN sebagai
     padding pembungkus: elemen absolute berpatokan pada padding box induk,
     jadi padding tidak menggesernya sedikit pun dan kartunya terpotong. */
  a.hero-kartu:nth-child(2) { right: clamp(14px, 1.4vw, 30px); top: 38%; width: 194px; }
  a.hero-kartu:nth-child(3) { right: clamp(14px, 1.4vw, 30px); top: 68%; width: 194px; }
}


/* Layar sempit: foto TIDAK ditaruh di belakang teks (judul jadi tidak
   terbaca), melainkan jadi blok gambar sendiri di bawah teks. */
@media (max-width: 940px) {
  .hero { display: flex; flex-direction: column; gap: 26px; padding-bottom: 0; }
  .hero-foto { position: static; order: 2; width: 100%; }
  .hero-foto img { height: auto; aspect-ratio: 4 / 5; object-position: center; }
  .hero-foto::after { display: none; }
  .hero-ruang { display: none; }
  .hero-grid { order: 1; }
  /* Tanpa order eksplisit, deret kartu (order bawaan 0) melompat ke ATAS
     judul -- flex container ini mengurutkan anaknya, bukan urutan HTML. */
  .hero-deret-wrap { order: 3; padding-bottom: 26px; }
  .hero-kartu-deret { grid-template-columns: 1fr; }
}

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 34px; } }
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: 17.5px; color: var(--ink-2); margin: 16px 0 26px; max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 13px; color: var(--ink-3); margin-top: 14px; }
/* Enam angka (22 Sep 2026): grid, bukan flex -- dengan flex + wrap, baris
   kedua tidak segaris dengan baris pertama dan hero jadi terlihat miring.
   SATU BARIS penuh di layar lebar (permintaan user 22 Sep 2026), lalu
   melipat jadi 3 dan 2 kolom saat ruangnya tidak cukup. */
.hero-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 14px; margin-top: 34px; }
.hero-stats div { min-width: 0; }
@media (max-width: 1240px) { .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 24px; max-width: 460px; } }
@media (max-width: 520px)  { .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hero-stats .n { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.15; }
/* Label dibiarkan boleh pecah dua baris: "Pertandingan" tidak muat di kolom
   selebar ~92px kalau dipaksa satu baris, dan memotongnya jadi "Pertandi..."
   lebih buruk daripada dua baris. */
.hero-stats .l { font-size: 12px; color: var(--ink-3); font-weight: 600; line-height: 1.35; margin-top: 2px; }
@media (max-width: 1240px) { .hero-stats .n { font-size: 26px; } .hero-stats .l { font-size: 12.5px; } }

.phone {
  position: relative; width: 268px; margin-inline: auto; border-radius: 34px; padding: 9px;
  background: linear-gradient(160deg, #16211C, #0B1220); box-shadow: var(--sh-3);
}
.phone img { border-radius: 26px; width: 100%; }
.phone::after {
  content: ''; position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 20px; border-radius: 0 0 12px 12px; background: #0B1220;
}
.play-badge img { height: 52px; width: auto; }

/* ---------- KARTU PERTANDINGAN ---------- */
.match {
  /* minmax(0, ...) WAJIB: keterangan slot bagan seperti "Pemenang Hamba Keder /
     Dexanet Prestige FC" punya min-content lebar, dan `1fr` (= minmax(auto,1fr))
     akan melebarkan kolom melewati kartu sehingga teksnya terpotong keras
     tanpa elipsis. */
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line-2);
}
.match:last-child { border-bottom: 0; }
.match-side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.match-side.kanan { flex-direction: row-reverse; text-align: right; }
.match-side .nm { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-side.menang .nm { font-weight: 800; }
.match-mid { text-align: center; min-width: 76px; }
.skor {
  font-size: 18px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  background: var(--line-2); border-radius: 9px; padding: 3px 10px; display: inline-block;
}
.skor.belum { color: var(--ink-3); font-size: 13px; font-weight: 700; background: transparent; }
.match-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.match-heading { grid-column: 1 / -1; text-align: center; margin-top: 0; overflow-wrap: anywhere; }
.match-compact { position: relative; padding-top: 30px; gap: 8px; grid-template-columns: minmax(0, 1fr) minmax(76px, 40%) minmax(0, 1fr); }
.match-compact .match-date { position: absolute; top: 8px; right: 16px; margin: 0; }
.match-compact .match-mid { min-width: 0; overflow-wrap: anywhere; }

/* ---------- BARIS PERTANDINGAN BISA DIKLIK ---------- */
/* Seluruh baris jadi target klik/tap, bukan hanya nama atau skor. Dipakai di
   Hasil Terbaru (beranda), Jadwal & Hasil, detail kompetisi, dan detail tim. */
a.match, .match.klik { cursor: pointer; text-decoration: none; color: inherit; }
a.match:hover, .match.klik:hover { background: var(--surface-2); }
a.match:focus-visible, .match.klik:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.match-mid .pen {
  font-size: 11px; font-weight: 700; color: var(--ink-3); margin-top: 3px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* Slot bagan yang belum terisi: ditulis miring & redup supaya jelas ini
   keterangan sumber, bukan nama tim. */
.match-side .nm.slot { font-style: italic; font-weight: 600; color: var(--ink-3); }
@media (max-width: 560px) {
  .match { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 8px; padding: 13px 12px; }
  .match-side .nm { font-size: 13px; }
  .match-mid { min-width: 64px; }
}

/* Target sentuh di layar kecil minimal ~40px (chip & tab kalau tidak
   diberi tinggi minimum hanya setinggi ~32px). */
@media (max-width: 720px) {
  .chips button { min-height: 40px; padding: 8px 15px; }
  .tabs button, .sheet-tabs button { min-height: 42px; }
  .field { min-height: 42px; }
}

/* ---------- HALAMAN DETAIL PENUH ---------- */
/* Detail pertandingan & detail tim adalah HALAMAN tersendiri, bukan drawer
   atau modal setengah layar (keputusan 21 Sep 2026). Bar atasnya menempel
   supaya tombol Kembali selalu terjangkau saat menggulir. */
.detail-bar {
  position: sticky; top: 0; z-index: 30; background: var(--surface);
  border-bottom: 1px solid var(--line); padding: 10px 0;
}
.detail-bar .wrap { display: flex; align-items: center; gap: 12px; }
.btn-back {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px 9px 12px;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface);
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
  text-decoration: none; min-height: 42px; transition: .15s;
}
.btn-back:hover { border-color: var(--ink-4); background: var(--surface-2); }
.detail-bar .judul-kecil {
  font-size: 13.5px; font-weight: 700; color: var(--ink-3); min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Duel dua tim di kepala halaman detail pertandingan. */
.duel {
  display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center; gap: 16px; padding: 26px 20px;
}
.duel-tim { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; min-width: 0; }
.duel-tim .crest, .duel-tim .crest-fb {
  width: clamp(56px, 16vw, 92px); height: clamp(56px, 16vw, 92px);
  border-radius: 20px; font-size: clamp(20px, 6vw, 32px); object-fit: contain;
}
.duel-tim .nm { font-weight: 700; font-size: clamp(14px, 3.4vw, 17px); line-height: 1.3; }
.duel-tim .nm.slot { font-style: italic; font-weight: 600; color: var(--ink-3); }
.duel-tim a.nm { color: inherit; text-decoration: none; }
.duel-tim a.nm:hover { color: var(--brand); }
.duel-skor { text-align: center; min-width: 96px; }
.duel-skor .angka {
  font-size: clamp(30px, 8vw, 44px); font-weight: 800; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.duel-skor .belum {
  display: inline-block; font-size: 14px; font-weight: 700; color: var(--ink-3);
  background: var(--line-2); border-radius: var(--r-pill); padding: 6px 14px;
}
.duel-skor .pen-besar { font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-top: 6px; }
.pemenang-teks {
  text-align: center; padding: 0 20px 20px; font-size: 14px; font-weight: 700; color: var(--brand-700);
}

/* Kartu pada halaman detail penuh memakai jarak & kepala seksi yang sama
   dengan panel lama, tapi sekarang di alur halaman biasa. */
.detail-isi > .card { margin-bottom: 16px; }
.detail-isi > .card > h3 {
  font-size: 13px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-3); padding: 15px 16px 7px;
}
.detail-isi > .card > .match:first-of-type { border-top: 0; }

/* Kepala halaman detail tim. */
.tim-hero { display: flex; align-items: center; gap: 18px; padding: 24px 20px; flex-wrap: wrap; }
.tim-hero .crest, .tim-hero .crest-fb {
  width: clamp(64px, 18vw, 96px); height: clamp(64px, 18vw, 96px);
  border-radius: 22px; font-size: clamp(24px, 7vw, 34px); object-fit: contain;
}
.tim-hero h1 { font-size: clamp(21px, 4.6vw, 30px); line-height: 1.2; }
.tim-hero .wil { color: var(--ink-2); font-size: 14px; margin-top: 5px; }
.tim-hero .lencana { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tim-poin { margin-left: auto; text-align: right; }
.tim-poin .n { font-size: clamp(24px, 6vw, 34px); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.tim-poin .l { font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 560px) {
  .tim-poin { margin-left: 0; text-align: left; width: 100%; }
}

/* ---------- KARTU KOMPETISI (rail) ---------- */
.komp-card {
  width: 268px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  display: flex; flex-direction: column;
}
.komp-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--brand-100); }
/* Logo turnamen adalah elemen visual utama kartu (mengikuti kartu Turnamen di
   aplikasi). Areanya persegi, logo mengisi ~76% sisi terpendek dan memakai
   object-fit: contain supaya lambang yang tinggi atau lebar tidak pernah
   dipaksa gepeng. */
.komp-top {
  aspect-ratio: 5 / 4; display: grid; place-items: center; position: relative;
  background: linear-gradient(135deg, var(--brand-50), #F3F8F6);
  border-bottom: 1px solid var(--line); padding: 10px;
}
.komp-top .crest, .komp-top .crest-fb {
  width: 78%; height: 78%; max-width: 260px; max-height: 260px;
  border-radius: 18px; font-size: clamp(30px, 9vw, 52px);
  object-fit: contain; background: transparent; border: 0;
}
.komp-top .crest-fb { background: rgba(255,255,255,.72); border: 1px solid var(--brand-100); }
.komp-top .badge { position: absolute; top: 10px; left: 10px; }
.komp-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.komp-body h3 {
  font-size: 15.5px; line-height: 1.35; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.komp-body .meta { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 6px; flex-wrap: wrap; }
.komp-body .meta span::after { content: '·'; margin-left: 6px; color: var(--ink-4); }
.komp-body .meta span:last-child::after { content: ''; }

/* Grid kartu kompetisi: kolom melebar mengikuti layar, kartu mengisi penuh
   kolomnya (di rail beranda lebarnya tetap 268px lewat .rail > *). */
.grid-komp { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.grid-komp .komp-card { width: 100%; }
@media (max-width: 520px) { .grid-komp { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; } }

/* ---------- BERITA ---------- */
.hl { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 900px) { .hl { grid-template-columns: minmax(0, 1fr); } }
.hl-side { display: flex; flex-direction: column; gap: 14px; }

.artikel { display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1);
  transition: transform .18s, box-shadow .18s, border-color .18s; }
.artikel:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--brand-100); }
.artikel-img { position: relative; aspect-ratio: 16/9; background: var(--line-2); overflow: hidden; }
/* Sampul cadangan saat berita belum punya foto: garis diagonal tipis +
   monogram, jauh lebih enak dilihat daripada blok warna kosong. */
.sampul-kosong {
  width: 100%; height: 100%; display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(1,138,108,.06) 0 10px, transparent 10px 20px),
    linear-gradient(135deg, var(--brand-50), #EFF6F4);
}
.sampul-kosong span {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--brand-100); color: var(--brand);
  font-weight: 800; font-size: 19px; letter-spacing: -0.04em; box-shadow: var(--sh-1);
}
.artikel-mini .sampul-kosong span { width: 34px; height: 34px; border-radius: 11px; font-size: 13px; }
.artikel-utama .sampul-kosong span { width: 66px; height: 66px; border-radius: 19px; font-size: 23px; }
.artikel-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.artikel:hover .artikel-img img { transform: scale(1.04); }
.artikel-img .badge { position: absolute; top: 12px; left: 12px; }
.artikel-body { padding: 16px 18px 18px; }
.artikel-body h3 { font-size: 17px; line-height: 1.34; margin-bottom: 7px; }
.artikel-body p { color: var(--ink-2); font-size: 14px; margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.artikel-meta { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }

.artikel-utama .artikel-img { aspect-ratio: 16/10; }
.artikel-utama .artikel-body { padding: 20px 22px 22px; }
.artikel-utama .artikel-body h3 { font-size: 24px; letter-spacing: -0.025em; }
.artikel-utama .artikel-body p { font-size: 15px; -webkit-line-clamp: 3; }

.artikel-mini { display: grid; grid-template-columns: 116px 1fr; gap: 0; align-items: stretch; }
.artikel-mini .artikel-img { aspect-ratio: auto; height: 100%; }
.artikel-mini .artikel-body { padding: 12px 14px; }
.artikel-mini .artikel-body h3 { font-size: 14.5px; -webkit-line-clamp: 3;
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.artikel-mini .artikel-body p { display: none; }

.grid-artikel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-artikel { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .grid-artikel { grid-template-columns: 1fr; } }

/* ---------- ARTIKEL PENUH ---------- */
.baca { max-width: 760px; margin-inline: auto; }
.baca h1 { font-size: clamp(27px, 4.4vw, 40px); letter-spacing: -0.03em; margin-bottom: 14px; }
.baca .ringkas { font-size: 18px; color: var(--ink-2); margin-bottom: 18px; }
.baca-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  color: var(--ink-3); font-size: 13.5px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.baca-sampul { margin: 24px 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.baca-isi { font-size: 16.5px; line-height: 1.8; color: #27303F; }
.baca-isi p { margin: 0 0 18px; }
.baca-isi h2 { font-size: 22px; margin: 30px 0 12px; }
.baca-isi h3 { font-size: 18px; margin: 24px 0 10px; }
.baca-isi ul, .baca-isi ol { margin: 0 0 18px; padding-left: 24px; }
.baca-isi li { margin-bottom: 8px; }
.baca-isi img { border-radius: var(--r); margin: 20px 0; }
.baca-isi a { color: var(--brand); text-decoration: underline; }
.baca-isi blockquote {
  margin: 22px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--brand);
  color: var(--ink-2); font-style: italic;
}

/* ---------- PANEL DETAIL (tim & kompetisi) ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(11,18,32,.42); backdrop-filter: blur(3px);
}
.sheet.open { display: block; }
.sheet-in {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(760px, 100%);
  background: var(--bg); box-shadow: var(--sh-3); display: flex; flex-direction: column;
  border-radius: var(--r-lg) 0 0 var(--r-lg); overflow: hidden;
  animation: slideIn .24s cubic-bezier(.22,.61,.36,1);
}
@media (max-width: 760px) {
  /* Di layar sempit drawer samping terasa sempit; naik dari bawah lebih enak
     dijangkau jempol dan tidak menutupi seluruh layar. */
  .sheet-in { top: 6vh; left: 0; width: 100%; border-radius: var(--r-lg) var(--r-lg) 0 0;
    animation: slideUp .26s cubic-bezier(.22,.61,.36,1); }
  @keyframes slideUp { from { transform: translateY(24px); opacity: .5 } to { transform: none; opacity: 1 } }
}
@keyframes slideIn { from { transform: translateX(28px); opacity: .4 } to { transform: none; opacity: 1 } }
.sheet-head {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  background: var(--surface); border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.sheet-head h2 { font-size: 19px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-head .sheet-close { margin-left: auto; }
.sheet-head .sub { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.sheet-close {
  width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; display: grid; place-items: center; flex: 0 0 auto;
}
.sheet-close:hover { background: var(--line-2); }
.sheet-tabs { display: flex; gap: 6px; padding: 12px 20px; background: var(--surface);
  border-bottom: 1px solid var(--line); overflow-x: auto; flex: 0 0 auto; }
.sheet-body { flex: 1; overflow-y: auto; padding: 20px; }
.sheet-body > .card { padding: 4px 0; margin-bottom: 16px; }
.sheet-body > .card > h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-3); padding: 14px 16px 6px; }

.info-grid { display: grid; grid-template-columns: 150px 1fr; gap: 0; }
.info-grid dt { padding: 10px 16px; font-size: 13.5px; color: var(--ink-3); border-bottom: 1px solid var(--line-2); }
.info-grid dd { padding: 10px 16px; margin: 0; font-size: 14.5px; font-weight: 600; border-bottom: 1px solid var(--line-2); }
.info-grid dt:last-of-type, .info-grid dd:last-of-type { border-bottom: 0; }
@media (max-width: 520px) { .info-grid { grid-template-columns: 1fr; }
  .info-grid dt { border-bottom: 0; padding-bottom: 0; } }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px 16px; }
.stat-row > div { text-align: center; background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: var(--r); padding: 12px 6px; }
.stat-row .n { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat-row .l { font-size: 11px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- HALAMAN: HEADER SEKSI ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 34px 0 28px; }
.page-head h1 { font-size: clamp(26px, 3.6vw, 36px); }
.page-head p { color: var(--ink-2); margin: 8px 0 0; max-width: 62ch; }

/* ---------- GRID TIM ---------- */
.grid-tim { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.tim-card {
  display: flex; align-items: center; gap: 13px; padding: 14px 16px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  cursor: pointer; transition: .16s; width: 100%; font: inherit;
  color: inherit; text-decoration: none; min-height: 62px;
}
.tim-card:hover { border-color: var(--brand); box-shadow: var(--sh-2); transform: translateY(-2px); }
.tim-card .nm { font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tim-card .sub { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tim-card .poin { margin-left: auto; text-align: right; flex: 0 0 auto; }
.tim-card .poin .n { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.tim-card .poin .l { font-size: 10.5px; color: var(--ink-3); font-weight: 700; }

/* ---------- LIHAT LOGO UKURAN PENUH (BARU 22 Sep 2026) ----------
   Satu-satunya tempat situs publik memakai turunan 1024, dan filenya baru
   diunduh saat lambangnya diklik -- bukan ikut saat halaman dimuat. */
.crest-bisa-klik { cursor: zoom-in; }
.crest-bisa-klik:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.logo-penuh {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  padding: 24px; background: rgba(12, 28, 24, .82);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.logo-penuh[hidden] { display: none; }
.logo-penuh figure {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  max-width: min(520px, 90vw);
}
.logo-penuh img {
  width: 100%; height: auto; max-height: 72vh; object-fit: contain;
  border-radius: 24px; background: rgba(255, 255, 255, .06);
}
.logo-penuh figcaption {
  color: #fff; font-weight: 700; font-size: 15px; text-align: center;
}
.logo-penuh-tutup {
  position: absolute; top: 14px; right: 16px; width: 42px; height: 42px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16);
  color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.logo-penuh-tutup:hover { background: rgba(255, 255, 255, .28); }

/* ---------- WARNA SKOR DARI SUDUT PANDANG SATU TIM (22 Sep 2026) ----------
   Dipakai di Detail Tim, mengikuti kartu "5 Pertandingan Terakhir" di
   aplikasi: hijau menang, merah kalah, abu-abu imbang. Hanya aktif kalau
   pemanggil mengirim timId -- di Beranda, Jadwal, dan Detail Kompetisi tidak
   ada tim acuan sehingga skornya tetap netral seperti semula. */
.skor.menang { background: var(--win);  color: #fff; }
.skor.kalah  { background: var(--lose); color: #fff; }
.skor.imbang { background: var(--draw); color: #fff; }

/* ---------- TOMBOL "PAKAI LOKASI SAYA" (BARU 23 Sep 2026) ----------
   Lapis ketiga pemilihan wilayah: pengunjung menekan sendiri kalau deteksi
   otomatis ditolak/gagal, atau kalau dia sedang berpindah wilayah. */
.btn-lokasi {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink-2);
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: border-color .15s, color .15s, background .15s;
}
.btn-lokasi:hover { border-color: var(--brand); color: var(--brand-700); background: var(--brand-50); }
.btn-lokasi .btn-lokasi-ikon { font-size: 15px; line-height: 1; color: var(--brand); }
.btn-lokasi.sibuk { opacity: .7; cursor: progress; }
.btn-lokasi.sibuk .btn-lokasi-ikon { animation: pulse 1.1s ease-in-out infinite; }
@media (max-width: 640px) { .btn-lokasi { width: 100%; justify-content: center; } }

/* Jam di judul kartu jadwal, tepat di belakang tanggalnya (23 Sep 2026).
   Dibuat sedikit lebih redup supaya tanggal tetap yang pertama terbaca. */
.grup-head .grup-jam { color: var(--ink-3); font-weight: 600; margin-left: 7px; }

/* ===================== BERITA: jejak, relasi, bagikan (22 Sep 2026) =====================
   Ditambahkan untuk halaman baca artikel. Semua memakai token warna yang sudah
   ada (--brand, --ink-*, --line) supaya tidak ada palet kedua di situs ini. */
.jejak { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px;
  color: var(--ink-3); margin-bottom: 16px; }
.jejak a { color: var(--ink-3); }
.jejak a:hover { color: var(--brand); text-decoration: underline; }
.jejak i { color: var(--ink-4); font-style: normal; }
.jejak [aria-current] { color: var(--ink-2); font-weight: 600; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }

.baca-kat { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.baca-revisi { font-style: italic; }
.baca-sampul figcaption { padding: 9px 14px 11px; font-size: 12.5px; color: var(--ink-3);
  background: var(--surface-2, #FAFBFB); border-top: 1px solid var(--line); line-height: 1.5; }

/* Chip entitas: tautan internal dari artikel ke halaman tim/kompetisi/laga.
   Inilah yang membuat setiap berita menyumbang tautan ke halaman yang ingin
   diperingkat, bukan cuma jadi halaman buntu. */
.baca-rel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 30px 0 4px; padding-top: 20px; border-top: 1px solid var(--line); }
.baca-rel-judul { font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--ink-3); margin-right: 2px; }
.chip-rel { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--ink-1); background: var(--surface); min-height: 36px; }
.chip-rel:hover { border-color: var(--brand); color: var(--brand); }
.chip-rel.mati { color: var(--ink-3); font-weight: 500; }

.baca-bagi { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.baca-bagi > span { font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--ink-3); margin-right: 2px; }
.baca-bagi a, .baca-bagi button { display: inline-flex; align-items: center; min-height: 36px;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.baca-bagi a:hover, .baca-bagi button:hover { border-color: var(--brand); color: var(--brand); }

/* Sampul kartu berita sekarang punya width/height, jadi rasionya dijaga tanpa
   menunggu gambarnya terunduh -- tidak ada lagi lompatan tata letak (CLS). */
.artikel-img img { aspect-ratio: 16 / 9; }
.artikel-mini .artikel-img img { aspect-ratio: auto; }
/* Sampul artikel selalu 16:9, termasuk berita lama yang sampulnya 4:3 -- supaya
   tinggi halaman tidak berubah-ubah antar artikel. */
.baca-sampul img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Tab babak di panel Pertandingan halaman kompetisi (23 Sep 2026).
   Memakai komponen .tabs yang sudah ada; yang ditambahkan hanya jarak di
   dalam kartu dan angka jumlah pertandingan di tiap tab. */
.tabs-babak { padding: 0 16px 12px; margin-top: -4px; }
.tabs-babak button { white-space: nowrap; }
.tabs-babak .tab-jml {
  margin-left: 7px; padding: 1px 6px; border-radius: 999px; font-size: 11px;
  font-weight: 700; background: var(--line-2); color: var(--ink-3);
}
.tabs-babak button[aria-selected="true"] .tab-jml { background: rgba(255,255,255,.22); color: #fff; }

.baca-ringkasan{border-top:1px solid var(--line);margin-top:28px;padding-top:20px;color:var(--ink-2)}.baca-ringkasan h2{font-size:18px;margin-bottom:10px}.baca-ringkasan p{font-size:15px;line-height:1.7}.chip-rel .crest-sm,.chip-rel .crest-fb{width:28px;height:28px;flex:0 0 28px;object-fit:contain}.chip-rel{max-width:100%;white-space:normal}.chip-rel>span:last-child{overflow-wrap:anywhere}
