/* =====================================================================
   CENDERAWASIH CHAMPIONSHIP
   Stylesheet utama - mendukung tema gelap & terang
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. TOKEN WARNA
   Warna brand tetap sama di kedua tema; token semantik yang berubah.
   --------------------------------------------------------------------- */
:root {
  /* brand - diambil dari logo */
  --brand-gold:    #f5c451;
  --brand-gold-2:  #e0a020;
  --brand-gold-3:  #a86f08;
  --brand-cyan:    #4fd6f5;
  --brand-cyan-2:  #1fa6cc;
  --brand-cyan-3:  #0b6f8c;
  --brand-navy:    #101c38;
  --brand-violet:  #6d4bc4;
  --brand-red:     #e23b52;
  --brand-green:   #26a86f;

  --radius-xl:  22px;
  --radius:     15px;
  --radius-sm:  10px;
  --radius-xs:  7px;

  --font-head: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

  --ease:      cubic-bezier(.22, .68, .35, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --dur:       .22s;

  --nav-h: 74px;
}

/* ------------------------------- TEMA GELAP (default) */
:root,
[data-theme="dark"] {
  color-scheme: dark;

  --bg:          #070c18;
  --bg-2:        #0a1121;
  --surface:     #101a2f;
  --surface-2:   #16233d;
  --surface-3:   #1d2d4c;
  --surface-glass: rgba(16, 26, 47, .72);

  --line:        rgba(255, 255, 255, .09);
  --line-2:      rgba(255, 255, 255, .16);
  --line-accent: rgba(245, 196, 81, .38);

  --text:        #e9eefb;
  --text-muted:  #93a1bf;
  --text-dim:    #66738f;

  --accent:      var(--brand-gold);
  --accent-hover:#ffdb8a;
  --accent-soft: rgba(245, 196, 81, .13);
  --accent-line: rgba(245, 196, 81, .30);
  --accent-2:      var(--brand-cyan);
  --accent-2-soft: rgba(79, 214, 245, .13);
  --accent-2-line: rgba(79, 214, 245, .30);

  --ok:      #4fd99a;  --ok-soft:   rgba(38, 168, 111, .16);  --ok-line:   rgba(79, 217, 154, .3);
  --warn:    var(--brand-gold); --warn-soft: rgba(245, 196, 81, .15); --warn-line: rgba(245, 196, 81, .3);
  --bad:     #ff8494;  --bad-soft:  rgba(226, 59, 82, .16);   --bad-line:  rgba(255, 132, 148, .3);
  --info:    var(--brand-cyan); --info-soft: rgba(79, 214, 245, .14); --info-line: rgba(79, 214, 245, .3);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .4);
  --shadow:    0 18px 44px -24px rgba(0, 0, 0, .95);
  --shadow-lg: 0 34px 70px -30px rgba(0, 0, 0, 1);
  --glow-gold: 0 0 34px rgba(245, 196, 81, .30);
  --glow-cyan: 0 0 34px rgba(79, 214, 245, .28);

  --page-bg:
    radial-gradient(1200px 660px at 8% -10%,  rgba(245, 196, 81, .11), transparent 60%),
    radial-gradient(1000px 600px at 94% -4%,  rgba(79, 214, 245, .11), transparent 58%),
    radial-gradient(900px 620px at 50% 42%,   rgba(109, 75, 196, .10), transparent 62%),
    var(--bg);
  --grid-line: rgba(255, 255, 255, .028);
  --nav-bg:    rgba(7, 12, 24, .82);
  --shine:     rgba(255, 255, 255, .07);
}

/* ------------------------------- TEMA TERANG */
[data-theme="light"] {
  color-scheme: light;

  --bg:          #eef2fa;
  --bg-2:        #f7f9fe;
  --surface:     #ffffff;
  --surface-2:   #f4f7fd;
  --surface-3:   #e6edf9;
  --surface-glass: rgba(255, 255, 255, .78);

  --line:        rgba(16, 28, 56, .11);
  --line-2:      rgba(16, 28, 56, .20);
  --line-accent: rgba(168, 111, 8, .40);

  --text:        #101c38;
  --text-muted:  #55658a;
  --text-dim:    #7a88a6;

  --accent:      #9c6a06;
  --accent-hover:#7c5304;
  --accent-soft: rgba(245, 196, 81, .20);
  --accent-line: rgba(168, 111, 8, .32);
  --accent-2:      #0b6f8c;
  --accent-2-soft: rgba(79, 214, 245, .18);
  --accent-2-line: rgba(11, 111, 140, .30);

  --ok:      #147a4e;  --ok-soft:   rgba(38, 168, 111, .16);  --ok-line:   rgba(20, 122, 78, .28);
  --warn:    #8a5c00;  --warn-soft: rgba(245, 196, 81, .26);  --warn-line: rgba(138, 92, 0, .28);
  --bad:     #c22138;  --bad-soft:  rgba(226, 59, 82, .13);   --bad-line:  rgba(194, 33, 56, .26);
  --info:    #0b6f8c;  --info-soft: rgba(79, 214, 245, .18);  --info-line: rgba(11, 111, 140, .28);

  --shadow-sm: 0 1px 4px rgba(16, 28, 56, .08);
  --shadow:    0 16px 38px -26px rgba(16, 28, 56, .45);
  --shadow-lg: 0 30px 60px -32px rgba(16, 28, 56, .40);
  --glow-gold: 0 10px 30px -14px rgba(224, 160, 32, .55);
  --glow-cyan: 0 10px 30px -14px rgba(31, 166, 204, .5);

  --page-bg:
    radial-gradient(1200px 660px at 8% -12%, rgba(245, 196, 81, .28), transparent 58%),
    radial-gradient(1000px 600px at 96% -6%, rgba(79, 214, 245, .26), transparent 56%),
    radial-gradient(900px 620px at 50% 40%,  rgba(109, 75, 196, .10), transparent 60%),
    var(--bg);
  --grid-line: rgba(16, 28, 56, .035);
  --nav-bg:    rgba(255, 255, 255, .94);
  --shine:     rgba(16, 28, 56, .05);
}

/* ---------------------------------------------------------------------
   2. DASAR
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page-bg) fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

/* latar nebula atmosferik tanpa motif kotak-kotak */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: 
    radial-gradient(circle 800px at 85% 15%, rgba(79, 214, 245, .08), transparent 70%),
    radial-gradient(circle 900px at 15% 85%, rgba(245, 196, 81, .06), transparent 70%);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .3px;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--text);
}

a { color: var(--accent); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }
hr { border: none; border-top: 1px solid var(--line); margin: 26px 0; }

::selection { background: var(--accent-soft); color: var(--text); }

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

/* scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--text-dim); background-clip: content-box; }

/* ---------------------------------------------------------------------
   3. TATA LETAK
   --------------------------------------------------------------------- */
main { flex: 1 0 auto; }

.container        { width: min(1220px, 100% - 2.5rem); margin-inline: auto; }
.container-form   { width: min(1040px, 100% - 2.5rem); margin-inline: auto; }
.container-narrow { width: min(840px,  100% - 2.5rem); margin-inline: auto; }

.section     { padding: 68px 0; }
.section-sm  { padding: 38px 0; }
.section-tight { padding: 22px 0; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 30px; flex-wrap: wrap;
}
.section-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.05rem); }
.section-head p  { margin: .3rem 0 0; color: var(--text-muted); max-width: 60ch; }

.grid    { display: grid; gap: 20px; }
.grid.top { align-items: start; }
.grid-2  { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3  { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.grid-4  { grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); }
.grid-tight { gap: 12px; }

.split { display: grid; gap: 24px; align-items: start; }
.split-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.split-even { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
@media (max-width: 940px) { .split-main { grid-template-columns: 1fr; } }

.stack { display: grid; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.row-gap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* utilitas */
.text-muted { color: var(--text-muted); }
.text-dim   { color: var(--text-dim); }
.text-accent{ color: var(--accent); }
.text-cyan  { color: var(--accent-2); }
.text-center{ text-align: center; }
.text-right { text-align: right; }
.small      { font-size: .845rem; }
.tiny       { font-size: .76rem; }
.nowrap     { white-space: nowrap; }
.truncate   { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono       { font-family: var(--font-mono); }
.mt-0{margin-top:0}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2.2rem}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2.2rem}
.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;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-size: .76rem; font-weight: 700;
  letter-spacing: 2.4px; text-transform: uppercase; color: var(--accent);
  padding: 5px 13px; border: 1px solid var(--accent-line);
  border-radius: 999px; background: var(--accent-soft); margin-bottom: 15px;
}
.eyebrow::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand-gold); box-shadow: 0 0 8px var(--brand-gold);
}

.divider { height: 1px; background: var(--line); margin: 20px 0; }
.divider-glow {
  height: 1px; margin: 0; border: 0;
  background: linear-gradient(90deg, transparent, var(--accent-line), var(--accent-2-line), transparent);
}

/* ------------------------------------------------------------ IKON SVG */
.ic {
  display: inline-block; vertical-align: -.15em; flex-shrink: 0;
  stroke: currentColor; fill: none;
}
.ic-text { display: inline-flex; align-items: center; gap: 6px; }
.ic-text > .ic { opacity: .85; }
.ic-medal { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.ic-wrap { display: inline-flex; align-items: center; justify-content: center; width: 19px; flex-shrink: 0; }

/* status kecil di daftar / meta */
.meta-ic { display: inline-flex; align-items: center; gap: 5px; }
.meta-ic > .ic { opacity: .8; }

/* kotak ikon - dipakai di kartu statistik, langkah, kanal kontak */
.ic-box {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-line);
}
.ic-box.cyan { background: var(--accent-2-soft); color: var(--accent-2); border-color: var(--accent-2-line); }
.ic-box.ok   { background: var(--ok-soft);   color: var(--ok);   border-color: var(--ok-line); }
.ic-box.bad  { background: var(--bad-soft);  color: var(--bad);  border-color: var(--bad-line); }
.ic-box.plain{ background: var(--surface-2); color: var(--text-muted); border-color: var(--line); }
.ic-box.lg   { width: 52px; height: 52px; flex-basis: 52px; border-radius: 15px; }
.ic-box.sm   { width: 32px; height: 32px; flex-basis: 32px; border-radius: 9px; }

/* ---------------------------------------------------------------------
   4. NAVIGASI
   --------------------------------------------------------------------- */
.navbar {
  position: sticky; top: 0; z-index: 90;
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease), background-color .3s var(--ease);
}
.navbar.scrolled { box-shadow: 0 10px 30px -22px rgba(0, 0, 0, .8); }
.navbar-inner { display: flex; align-items: center; gap: 18px; height: var(--nav-h); }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
  user-select: none;
}
.brand-img,
.brand img {
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 12px rgba(79, 214, 245, .45)) drop-shadow(0 0 8px rgba(245, 196, 81, .25));
  transition: transform .35s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter .35s ease;
}
.brand:hover .brand-img,
.brand:hover img {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 6px 18px rgba(245, 196, 81, .6)) drop-shadow(0 0 14px rgba(79, 214, 245, .5));
}
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.brand-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1;
  margin-bottom: 3px;
}
.brand-acronym {
  font-family: 'Oxanium', 'Rajdhani', var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 30%, var(--brand-gold) 75%, var(--brand-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 16px rgba(245, 196, 81, 0.35);
}
[data-theme="light"] .brand-acronym {
  background: linear-gradient(135deg, #0d1527 20%, #d97706 80%, #0284c7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-badge {
  font-family: 'Oxanium', var(--font-head);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 1.5px 6px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-2));
  color: #1a1200;
  text-transform: uppercase;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(245, 196, 81, 0.4);
}
.brand-sub-1 {
  display: block;
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.15;
  white-space: nowrap;
}
.brand-sub-2 {
  display: block;
  font-family: var(--font-head);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1.15;
  margin-top: 1px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .brand-acronym { font-size: 1.15rem; letter-spacing: 1.4px; }
  .brand-sub-1 { font-size: .6rem; letter-spacing: 1.1px; }
  .brand-sub-2 { display: none; }
}
@media (max-width: 380px) {
  .brand-sub-1 { display: none; }
}

.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links > a {
  position: relative; color: var(--text-muted); padding: 8px 10px; border-radius: 9px;
  font-size: .86rem; font-weight: 500; transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
  white-space: nowrap;
}
.nav-links > a:hover { color: var(--text); background: var(--shine); }
.nav-links > a.active { color: var(--accent); }
.nav-links > a.active::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--brand-gold), var(--brand-cyan));
}

/* dropdown */
.nav-drop { position: relative; }
.nav-drop > button {
  display: flex; align-items: center; gap: 5px; background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 9px 12px; border-radius: 9px; font: inherit;
  font-size: .885rem; font-weight: 600; transition: var(--dur);
}
.nav-drop > button:hover, .nav-drop.open > button, .nav-drop.is-active > button { color: var(--text); background: var(--shine); }
.nav-drop > button .caret { font-size: .6rem; transition: transform var(--dur) var(--ease); }
.nav-drop.open > button .caret { transform: rotate(180deg); }

@media (min-width: 1141px) {
  .nav-drop:hover .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-drop:hover > button { color: var(--text); background: var(--shine); }
  .nav-drop:hover > button .caret { transform: rotate(180deg); }
}

.nav-drop-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25); padding: 7px; z-index: 95;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
[data-theme="dark"] .nav-drop-menu {
  background: rgba(14, 20, 36, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .65);
  border-color: var(--line-2);
}
[data-theme="light"] .nav-drop-menu {
  background: #ffffff;
  box-shadow: 0 18px 36px -4px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}
.nav-drop.open .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop-menu a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px;
  color: var(--text-muted); font-size: .875rem; font-weight: 500; transition: background .15s, color .15s;
}
.nav-drop-menu a:hover, .nav-drop-menu a.active { background: var(--surface-2); color: var(--text); }
[data-theme="light"] .nav-drop-menu a:hover, [data-theme="light"] .nav-drop-menu a.active {
  background: #f1f5f9;
}
.nav-drop-menu a .ic-wrap {
  width: 32px; height: 32px; border-radius: 8px; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; color: var(--brand-gold);
  flex-shrink: 0; transition: background .15s, transform .15s;
}
[data-theme="light"] .nav-drop-menu a .ic-wrap {
  background: #f8fafc;
  color: #b45309;
  border: 1px solid #e2e8f0;
}
.nav-drop-menu a:hover .ic-wrap, .nav-drop-menu a.active .ic-wrap {
  background: rgba(224, 160, 32, .2); color: var(--brand-gold-bright, #ffca28); transform: scale(1.06);
}
[data-theme="light"] .nav-drop-menu a:hover .ic-wrap, [data-theme="light"] .nav-drop-menu a.active .ic-wrap {
  background: #fef3c7;
  color: #d97706;
  border-color: #fde68a;
}
.nav-drop-text { display: flex; flex-direction: column; line-height: 1.25; }
.nav-drop-text strong { font-size: .845rem; font-weight: 600; color: var(--text); }
[data-theme="light"] .nav-drop-text strong { color: #0f172a; }
.nav-drop-text small { font-size: .71rem; color: var(--text-dim); font-weight: 400; margin-top: 1px; }
[data-theme="light"] .nav-drop-text small { color: #64748b; }
.nav-drop-menu a:hover .nav-drop-text strong { color: var(--brand-gold-bright, #ffca28); }
[data-theme="light"] .nav-drop-menu a:hover .nav-drop-text strong { color: #d97706; }

/* tombol tema */
.theme-toggle {
  position: relative; width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 11px; border: 1px solid var(--line-2); background: var(--shine);
  color: var(--text); cursor: pointer; display: grid; place-items: center;
  transition: var(--dur) var(--ease);
}
.theme-toggle:hover { border-color: var(--accent-line); color: var(--accent); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; transition: transform .45s var(--ease-out), opacity .25s; }
.theme-toggle .i-sun, .theme-toggle .i-moon { position: absolute; }
[data-theme="dark"]  .theme-toggle .i-sun  { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"]  .theme-toggle .i-moon { opacity: 0; transform: rotate(-90deg) scale(.4); }
[data-theme="light"] .theme-toggle .i-sun  { opacity: 0; transform: rotate(90deg) scale(.4); }
[data-theme="light"] .theme-toggle .i-moon { opacity: 1; transform: rotate(0) scale(1); }

.nav-toggle {
  display: none; background: var(--shine); border: 1px solid var(--line-2);
  color: var(--text); border-radius: 11px; width: 40px; height: 40px; cursor: pointer;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 17px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; transition: var(--dur) var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 17px; height: 2px; background: currentColor;
  border-radius: 2px; transition: var(--dur) var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1140px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 14px 20px 22px; max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links > a { padding: 12px 14px; font-size: .95rem; }
  .nav-links > a.active::after { display: none; }
  .nav-links .btn { width: 100%; justify-content: center; margin-top: 8px; }
  .nav-drop { width: 100%; }
  .nav-drop > button { width: 100%; justify-content: space-between; padding: 12px 14px; font-size: .95rem; }
  .nav-drop-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: var(--shine);
    max-height: 0; overflow: hidden; padding: 0 6px; transition: max-height .25s var(--ease), padding .25s;
  }
  .nav-drop.open .nav-drop-menu { max-height: 340px; padding: 6px; }
  .nav-actions { display: flex; gap: 8px; margin-top: 10px; }
  .nav-actions .btn { margin-top: 0; }
}

/* ---------------------------------------------------------------------
   5. TOMBOL
   --------------------------------------------------------------------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 21px; border-radius: 11px; border: 1px solid transparent;
  font-family: var(--font-head); font-size: .93rem; font-weight: 700; letter-spacing: .7px;
  text-transform: uppercase; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.35) 50%, transparent 62%);
  transform: translateX(-130%); transition: transform .65s var(--ease-out);
}
.btn:hover::after { transform: translateX(130%); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-gold-2) 100%);
  color: #241a02; box-shadow: 0 10px 26px -13px rgba(224, 160, 32, .85);
}
.btn-primary:hover { color: #241a02; transform: translateY(-2px); box-shadow: 0 16px 32px -13px rgba(224, 160, 32, .95); }
.btn-cyan {
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-cyan-2) 100%);
  color: #04222c; box-shadow: 0 10px 26px -13px rgba(31, 166, 204, .8);
}
.btn-cyan:hover { color: #04222c; transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-ghost { background: var(--shine); color: var(--text); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-danger { background: var(--brand-red); color: #fff; }
.btn-danger:hover { color: #fff; filter: brightness(1.1); transform: translateY(-2px); }
.btn-sm  { padding: 7px 14px; font-size: .78rem; border-radius: 9px; }
.btn-lg  { padding: 14px 30px; font-size: 1rem; border-radius: 13px; }
.btn-block { width: 100%; }
.btn:disabled, .btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-icon { padding: 9px; width: 38px; height: 38px; }

/* tautan dengan panah bergerak */
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; }
.link-arrow::after { content: '\2192'; transition: transform var(--dur) var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------------------------------------------------------------------
   6. BADGE, ALERT, CHIP
   --------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px;
  border-radius: 999px; font-size: .715rem; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; font-family: var(--font-head); white-space: nowrap; line-height: 1.7;
}
.badge-success { background: var(--ok-soft);   color: var(--ok);   border: 1px solid var(--ok-line); }
.badge-cyan { background: var(--brand-cyan-soft); color: var(--brand-cyan-2); border: 1px solid var(--brand-cyan-line); }

/* =====================================================================
   OCD-LEVEL PRECISION, SYMMETRY & ALIGNMENT ENHANCEMENTS
   ===================================================================== */
.roster-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.roster-list li {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--surface-2);
  font-size: .84rem;
  transition: all .2s ease;
}

.roster-list li:hover {
  background: var(--surface-3);
}

.rl-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  color: var(--text-dim);
  text-align: center;
}

.rl-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: var(--text);
}

.rl-role {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.tab-row {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  margin-bottom: 20px;
}

.chip {
  height: 36px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: .84rem;
  font-weight: 600;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: all .2s ease;
}

.chip:hover, .chip.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.badge-warning { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn-line); }
.badge-info    { background: var(--info-soft); color: var(--info); border: 1px solid var(--info-line); }
.badge-muted   { background: var(--shine); color: var(--text-muted); border: 1px solid var(--line); }
.badge-gold    { background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-2)); color: #241a02; }
.badge-cyan    { background: linear-gradient(135deg, var(--brand-cyan), var(--brand-cyan-2)); color: #04222c; }
.badge-live    { background: var(--brand-red); color: #fff; }
.badge-live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.75); } }

.alert {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 18px 13px 20px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
  font-size: .88rem;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}
.alert::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}
.alert > .ai {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  margin-top: 1px;
}
.alert-success { border-color: var(--accent-line); }
.alert-success::before { background: linear-gradient(180deg, var(--brand-gold), var(--brand-gold-2)); box-shadow: var(--glow-gold); }
.alert-success > .ai { background: var(--accent-soft); color: var(--accent); }

.alert-danger { border-color: rgba(255, 70, 85, 0.4); }
.alert-danger::before { background: linear-gradient(180deg, #ff4655, #e02434); box-shadow: 0 0 12px rgba(255, 70, 85, 0.6); }
.alert-danger > .ai { background: rgba(255, 70, 85, 0.15); color: #ff4655; }

.alert-warning { border-color: rgba(245, 158, 11, 0.4); }
.alert-warning::before { background: linear-gradient(180deg, #f59e0b, #d97706); box-shadow: 0 0 12px rgba(245, 158, 11, 0.6); }
.alert-warning > .ai { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

.alert-info { border-color: var(--accent-2-line); }
.alert-info::before { background: linear-gradient(180deg, var(--brand-cyan), var(--brand-cyan-2)); box-shadow: var(--glow-cyan); }
.alert-info > .ai { background: var(--accent-2-soft); color: var(--accent-2); }
.alert a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.alert strong { color: inherit; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text-muted);
  font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; cursor: pointer; transition: var(--dur) var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-2); background: var(--shine); }
.chip.active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* -------------------------------------------------- BARIS FILTER / TOOLBAR
   Dipakai di halaman klasemen, jadwal, tim, region, dan berita. */
.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px;
  padding: 12px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.toolbar .field { margin: 0; min-width: 0; }
.toolbar input, .toolbar select { min-width: 190px; }
.toolbar .search-box { flex: 1 1 240px; }
.toolbar .search-box input { min-width: 0; width: 100%; }
.toolbar .spacer { margin-left: auto; }
.toolbar > form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.toolbar > form.spacer { margin-left: auto; }
.toolbar > .spacer:not(form) { white-space: nowrap; color: var(--text-muted); font-size: .84rem; }
@media (max-width: 720px) {
  .toolbar { padding: 11px 12px; gap: 8px; }
  .toolbar .field { flex: 1 1 100%; }
  .toolbar input, .toolbar select { min-width: 0; width: 100%; }
  .toolbar .spacer { margin-left: 0; flex-basis: 100%; }
  .toolbar > form { width: 100%; }
}

/* gambar pratinjau yang disisipkan JS (upload logo / foto pemain) */
.thumb-img { display: block; }
.text-left { text-align: left; }

/* ---------------------------------------------------------------------
   7. KARTU
   --------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card-glass { background: var(--surface-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.card-body { padding: 24px; }
.card-head {
  padding: 17px 24px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--surface-2);
}
.card-head h3 { margin: 0; font-size: 1.08rem; }
.card-foot { padding: 15px 24px; border-top: 1px solid var(--line); background: var(--surface-2); }
.card-hover:hover { transform: translateY(-4px); border-color: var(--line-accent); box-shadow: var(--shadow-lg); }

/* kartu dengan garis aksen di atas */
.card-accent { position: relative; }
.card-accent::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-cyan));
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.card-accent:hover::before { opacity: 1; }

/* ---------------------------------------------------------------------
   8. HERO
   --------------------------------------------------------------------- */
.hero { 
  position: relative; 
  padding: 76px 0 66px; 
  overflow: hidden; 
  background: 
    radial-gradient(ellipse 900px 500px at 70% 30%, rgba(79, 214, 245, 0.14), transparent 70%),
    radial-gradient(ellipse 700px 450px at 20% 80%, rgba(245, 196, 81, 0.10), transparent 70%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/mlbb-heroes-bg.jpg') center right / cover no-repeat;
  opacity: 0.24;
  mask-image: radial-gradient(ellipse 90% 90% at 75% 45%, #000 20%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 75% 45%, #000 20%, transparent 82%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: ''; position: absolute; inset: auto 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), var(--accent-2-line), transparent);
  z-index: 1;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 940px) { 
  .hero { padding: 32px 0 28px; }
  .hero-grid { 
    grid-template-columns: 1fr; 
    text-align: center;
    gap: 16px;
    display: flex;
    flex-direction: column;
  } 
  .hero-logo {
    order: -1;
    margin: 0 auto;
  }
  .hero-logo img,
  .hero-logo-img {
    width: 190px !important;
    max-width: 190px !important;
    height: auto !important;
    max-height: 230px !important;
    object-fit: contain !important;
    margin: 0 auto 10px !important;
  }
  .hero h1 {
    font-size: 1.85rem !important;
    line-height: 1.15;
    margin-bottom: 8px;
  }
  .hero h1 .l1 {
    font-size: 1.85rem !important;
  }
  .hero h1 .l2 {
    font-size: 1.1rem !important;
    margin-top: 4px;
  }
  .hero p.lead {
    font-size: .92rem !important;
    margin-bottom: 20px !important;
  }
  .hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.3rem); line-height: 1; margin-bottom: 18px; letter-spacing: -.5px;
}
.hero h1 .l1 { 
  display: block; 
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}
.hero h1 .l2 {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text);
  letter-spacing: .5px;
}

.hero p.lead { font-size: 1.06rem; color: var(--text-muted); max-width: 55ch; margin: 0 0 28px; }
@media (max-width: 940px) { .hero p.lead { margin-inline: auto; } }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 940px) { .hero-actions { justify-content: center; } }

.hero-logo { display: grid; place-items: center; position: relative; }
.hero-logo::before {
  content: ''; position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,214,245,.28), transparent 68%);
  filter: blur(34px); animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { transform: scale(1); opacity: .85 } 50% { transform: scale(1.14); opacity: 1 } }
.hero-logo img,
.hero-logo-img {
  position: relative; 
  width: 360px; 
  max-width: 360px; 
  height: auto; 
  max-height: 420px; 
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(79, 214, 245, .32)) drop-shadow(0 0 30px rgba(245, 196, 81, .25));
  animation: float 6.5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }

/* hitung mundur */
.countdown { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 940px) { .countdown { justify-content: center; } }
.cd-unit {
  min-width: 72px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--surface-glass); border: 1px solid var(--line); text-align: center;
  backdrop-filter: blur(10px);
}
.cd-unit .n {
  font-family: var(--font-head); font-size: 1.75rem; font-weight: 700; line-height: 1;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.cd-unit .l { font-size: .64rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-muted); margin-top: 5px; }

@media (max-width: 560px) {
  .countdown { width: 100%; gap: 7px; }
  .cd-unit { min-width: 0; flex: 1; padding: 9px 4px; }
  .cd-unit .n { font-size: 1.35rem; }
  .cd-unit .l { font-size: .58rem; letter-spacing: 1px; }
}

/* petunjuk gulir */
.scroll-cue {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: grid; place-items: center; gap: 6px; color: var(--text-dim); font-size: .68rem;
  letter-spacing: 2px; text-transform: uppercase; font-family: var(--font-head);
}
.scroll-cue span { width: 1px; height: 26px; background: linear-gradient(var(--accent), transparent); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0%,100% { opacity: .25; transform: scaleY(.5); transform-origin: top } 50% { opacity: 1; transform: scaleY(1) } }
@media (max-width: 940px) { .scroll-cue { display: none; } }

/* ---------------------------------------------------------------------
   9. STATISTIK
   --------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.stat {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 20px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.stat:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
}
.stat .num {
  font-family: var(--font-head);
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
}
.stat .lbl {
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-top: 8px;
}

.stat.stat-prize {
  background: linear-gradient(135deg, var(--accent-soft), var(--surface) 75%);
  border-color: var(--accent-line);
}
.stat.stat-prize .num {
  color: var(--brand-gold);
}

@media (max-width: 992px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat.stat-prize, .stat:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    text-align: center;
    align-items: center;
  }
}
@media (max-width: 480px) {
  .stat { padding: 16px 14px; border-radius: var(--radius-sm); }
  .stat .num { font-size: 1.8rem; }
  .stat .lbl { font-size: .7rem; letter-spacing: .9px; }
}

/* ---------------------------------------------------------------------
   10. KARTU REGION / POSTER TURNAMEN
   --------------------------------------------------------------------- */
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 380px));
  gap: 26px;
  justify-content: start;
}
@media (max-width: 768px) {
  .region-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
}

.region-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.region-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-accent);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 207, 90, 0.12);
}

.region-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 190px;
  overflow: hidden;
  background: #090e1a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.region-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease-out);
}
.region-card:hover .region-banner img {
  transform: scale(1.06);
}
.region-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 21, 37, 0.95) 0%, rgba(14, 21, 37, 0.35) 45%, rgba(14, 21, 37, 0.15) 100%);
  pointer-events: none;
}
[data-theme="light"] .region-banner-overlay {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.25) 45%, rgba(0, 0, 0, 0.1) 100%);
}

.region-banner-fallback {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 20px;
}
.region-banner-fallback .rbf-logo {
  filter: drop-shadow(0 4px 12px rgba(245, 196, 81, 0.4));
  margin-bottom: 2px;
}
.region-banner-fallback .rbf-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}
.region-banner-fallback .rbf-sub {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.region-banner .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.region-banner .fmt {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 3px 9px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.region-card .body {
  padding: 18px 22px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.region-card-title {
  margin: 0 0 6px;
  font-size: 1.32rem;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .5px;
}
.region-card-title a:hover {
  color: var(--accent);
}
.region-card-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-2);
}
.region-fee-wrap {
  display: flex;
  flex-direction: column;
}
.region-fee {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .5px;
}
.region-card .foot {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.progress { height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin: 5px 0 9px; }
.progress > span {
  display: block; height: 100%; border-radius: 99px; width: 0;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-gold-2));
  transition: width 1.1s var(--ease-out);
}
.progress.full > span { background: linear-gradient(90deg, var(--brand-red), #9d1f31); }

/* ---------------------------------------------------------------------
   11. TIM & ROSTER
   --------------------------------------------------------------------- */
.team-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: var(--dur) var(--ease); color: inherit;
}
.team-card:hover { border-color: var(--line-accent); background: var(--surface-2); transform: translateX(3px); color: inherit; }
.team-logo {
  width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0; object-fit: cover;
  background: linear-gradient(135deg, #18253f, #0d1527);
  display: inline-grid; place-items: center; font-family: var(--font-head); font-weight: 700;
  color: var(--brand-gold); font-size: .95rem; letter-spacing: .5px;
  border: 1px solid var(--line-2); overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
[data-theme="light"] .team-logo {
  background: linear-gradient(135deg, #243557, #131e33);
  color: #ffcf5a;
  border-color: rgba(20, 31, 54, 0.2);
}
.team-card .info { min-width: 0; flex: 1; }
.team-card .info strong { display: block; font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-card .info span  { color: var(--text-muted); font-size: .81rem; }

.roster-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.roster-list li {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: var(--surface-2); border-radius: var(--radius-xs); font-size: .875rem;
  border: 1px solid transparent; transition: var(--dur);
}
.roster-list li:hover { border-color: var(--line); }
.roster-list .rl-role { margin-left: auto; font-size: .7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .8px; }
.roster-list .rl-num {
  width: 22px; height: 22px; border-radius: 7px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: .69rem; font-weight: 700; flex: 0 0 22px;
}
.roster-list li.is-sub { opacity: .78; }

/* Roster Row in Match Detail */
.match-roster-row {
  display: grid !important;
  grid-template-columns: 22px 38px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  border-radius: 10px !important;
  border: 1px solid var(--line) !important;
  background: var(--surface) !important;
  cursor: pointer !important;
  transition: all .2s var(--ease) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.match-roster-row:hover {
  background: var(--surface-2) !important;
  border-color: var(--line-accent) !important;
  transform: translateX(3px) !important;
}
.match-roster-row .rl-num {
  width: 22px !important;
  height: 22px !important;
  border-radius: 6px !important;
  background: var(--surface-3) !important;
  display: grid !important;
  place-items: center !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
  color: var(--text-muted) !important;
}
.match-roster-row .roster-avatar-thumb,
.match-roster-row .roster-avatar-fallback {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}
.match-roster-row .roster-avatar-thumb {
  overflow: hidden !important;
  border: 1.5px solid var(--brand-gold) !important;
  background: var(--surface-3) !important;
}
.match-roster-row .roster-avatar-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.match-roster-row .roster-avatar-fallback {
  background: linear-gradient(135deg, #16243e, #0c1524) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  display: grid !important;
  place-items: center !important;
  color: var(--brand-gold) !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
}
.match-roster-row .player-info {
  min-width: 0 !important;
  overflow: hidden !important;
}
.match-roster-row .player-ign-row {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-weight: 600 !important;
  font-size: .92rem !important;
  color: var(--text) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}
.match-roster-row .player-ign-row strong {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.match-roster-row .player-real-name {
  display: block !important;
  font-size: .74rem !important;
  line-height: 1.2 !important;
  margin-top: 1px !important;
  color: var(--text-muted) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.match-roster-row .rl-role {
  font-size: .68rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .4px !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  background: var(--surface-2) !important;
  color: var(--text-muted) !important;
  white-space: nowrap !important;
  text-align: right !important;
}

@media (max-width: 768px) {
  .match-roster-row {
    grid-template-columns: 18px 30px minmax(0, 1fr) auto !important;
    padding: 6px 8px !important;
    gap: 6px !important;
    border-radius: 8px !important;
  }
  .match-roster-row .rl-num {
    width: 18px !important;
    height: 18px !important;
    font-size: .64rem !important;
  }
  .match-roster-row .roster-avatar-thumb,
  .match-roster-row .roster-avatar-fallback {
    width: 30px !important;
    height: 30px !important;
    font-size: .68rem !important;
  }
  .match-roster-row .player-ign-row {
    font-size: .82rem !important;
    gap: 4px !important;
  }
  .match-roster-row .player-ign-row .badge-gold {
    font-size: .52rem !important;
    padding: 1px 4px !important;
    letter-spacing: .3px !important;
  }
  .match-roster-row .player-real-name {
    font-size: .66rem !important;
  }
  .match-roster-row .rl-role {
    font-size: .58rem !important;
    padding: 2px 5px !important;
    letter-spacing: .2px !important;
  }
}

/* ------------------------------------------------------ KARTU PEMAIN */
.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.player-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: var(--dur) var(--ease);
}
.player-card:hover { border-color: var(--line-accent); transform: translateY(-3px); }
.player-card.is-sub { border-color: var(--line-2); }
.player-photo {
  position: relative; aspect-ratio: 1; background: var(--surface-2);
  display: grid; place-items: center; overflow: hidden;
}
.player-photo img { width: 100%; height: 100%; object-fit: cover; }
.player-photo .ph { color: var(--text-dim); }
.player-photo .cap-badge {
  position: absolute; top: 9px; left: 9px;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-2));
  color: #241a02; font-family: var(--font-head); font-weight: 700; font-size: .66rem;
  letter-spacing: 1px; padding: 2px 8px; border-radius: 6px;
}
.player-photo .num-badge {
  position: absolute; top: 9px; right: 9px; width: 24px; height: 24px; border-radius: 8px;
  background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: .74rem; backdrop-filter: blur(4px);
}
.player-photo .upload-btn {
  position: absolute; inset: auto 0 0 0; padding: 22px 10px 10px; text-align: center;
  background: linear-gradient(to top, rgba(0,0,0,.82), transparent);
  color: #fff; font-size: .78rem; cursor: pointer; opacity: 0; transition: var(--dur);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.player-card:hover .upload-btn, .player-photo:focus-within .upload-btn { opacity: 1; }
@media (hover: none) { .player-card .upload-btn { opacity: 1; } }
.player-card .body { padding: 13px 15px 15px; }
.player-card .body strong { display: block; font-size: .96rem; }
.player-card .body .sub { font-size: .8rem; color: var(--text-muted); }
.player-card .role-pill {
  display: inline-flex; margin-top: 8px; font-size: .68rem; letter-spacing: .8px;
  text-transform: uppercase; font-family: var(--font-head); font-weight: 700;
  padding: 2px 9px; border-radius: 999px;
  background: var(--accent-2-soft); color: var(--accent-2); border: 1px solid var(--accent-2-line);
}
.player-card.is-sub .role-pill { background: var(--shine); color: var(--text-muted); border-color: var(--line); }


/* penanda pemain yang sudah punya foto (form roster admin) */
.roster-row .idx { position: relative; }
.roster-row .idx i.has-photo {
  position: absolute; top: -3px; right: -3px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok); border: 1px solid var(--surface);
}
.roster-list li img { flex-shrink: 0; }


/* ---------------------------------------------------------------------
   12. TABEL
   --------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
table.tbl th {
  text-align: left; padding: 13px 16px; background: var(--surface-2); color: var(--text-muted);
  font-family: var(--font-head); font-size: .76rem; letter-spacing: 1.3px; text-transform: uppercase;
  border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; z-index: 2;
}
table.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl tbody tr { transition: background-color .15s; }
table.tbl tbody tr:hover { background: var(--shine); }
table.tbl.compact th, table.tbl.compact td { padding: 9px 13px; }
table.tbl .rank {
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--surface-3); color: var(--text-muted);
}
table.tbl .rank.r1 { background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-2)); color: #241a02; }
table.tbl .rank.r2 { background: linear-gradient(135deg, #cfd8e6, #9aa8bd); color: #1b2436; }
table.tbl .rank.r3 { background: linear-gradient(135deg, #d9a066, #b0743a); color: #24170a; }

/* ---------------------------------------------------------------------
   13. FORMULIR
   --------------------------------------------------------------------- */
.form-grid { display: grid; gap: 17px; }
.form-row  { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; }
.field label {
  display: block; font-size: .775rem; font-weight: 600; letter-spacing: .8px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 7px;
}
.field label .req { color: var(--bad); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=number],
.field input[type=password], .field input[type=date], .field input[type=time], .field input[type=datetime-local],
.field input[type=url], .field input[type=search], .field input[type=file], .field select, .field textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text);
  font-family: inherit; font-size: .93rem;
  transition: border-color var(--dur), box-shadow var(--dur), background-color var(--dur);
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.6; }

/* ------------------------------------------------------ INPUT PASSWORD */
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 44px !important; }
.pass-eye {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px;
  background: none; border: 0; color: var(--text-dim); cursor: pointer; transition: var(--dur);
}
.pass-eye:hover { color: var(--text); background: var(--shine); }
.pass-eye.is-on { color: var(--accent); }

.pass-meter { position: relative; height: 20px; margin-top: 8px; }
.pass-meter i {
  position: absolute; left: 0; top: 0; height: 4px; width: 0; border-radius: 3px;
  background: var(--text-dim); transition: width .3s var(--ease-out), background .3s;
}
.pass-meter::before {
  content: ''; position: absolute; left: 0; top: 0; right: 0; height: 4px;
  border-radius: 3px; background: var(--line-2);
}
.pass-meter b {
  position: absolute; left: 0; top: 8px; font-size: .72rem; font-weight: 600; color: var(--text-muted);
}
.pass-meter[data-level="bad"]  i { background: var(--bad); }
.pass-meter[data-level="warn"] i { background: var(--warn); }
.pass-meter[data-level="ok"]   i { background: var(--ok); }

.flip-x { transform: scaleX(-1); }
.theme-toggle-inline { width: 30px; height: 30px; vertical-align: middle; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 1px), calc(100% - 13px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px;
}
.field .hint { font-size: .77rem; color: var(--text-dim); margin-top: 6px; }
.field .err  { font-size: .77rem; color: var(--bad); margin-top: 6px; }
.field input[readonly], .field input:disabled, .field select:disabled, .field textarea:disabled {
  opacity: .55; cursor: not-allowed;
}
.field input[type=file] { padding: 9px 12px; cursor: pointer; }
.field input[type=file]::file-selector-button {
  margin-right: 12px; padding: 6px 13px; border-radius: 7px; border: 1px solid var(--line-2);
  background: var(--surface-3); color: var(--text); font: inherit; font-size: .82rem; cursor: pointer;
}

.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: .89rem; cursor: pointer; }
.checkbox input { margin-top: 3px; accent-color: var(--brand-gold-2); width: 16px; height: 16px; flex: 0 0 16px; cursor: pointer; }

fieldset.block {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px; margin: 0 0 18px; background: var(--surface-2);
}
fieldset.block > legend {
  padding: 0 11px; font-family: var(--font-head); font-size: .84rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent);
}

.input-group { display: flex; gap: 8px; }
.input-group .field { flex: 1; margin: 0; }

/* baris roster */
.roster-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .85fr) auto auto;
  gap: 8px; align-items: center; padding: 9px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 9px;
  background: var(--surface); transition: border-color var(--dur), transform var(--dur) var(--ease);
  animation: rowIn .3s var(--ease-out) both;
}
@keyframes rowIn { from { opacity: 0; transform: translateY(-6px) } }
.roster-row:focus-within { border-color: var(--accent-line); }
.roster-row > * { min-width: 0; }
.roster-row .idx {
  width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: .85rem;
}
.roster-row input, .roster-row select { width: 100%; min-width: 0; padding: 8px 10px !important; font-size: .85rem !important; }
.roster-row .checkbox { gap: 5px; }
.roster-row .checkbox span { font-size: .73rem; }
.roster-row .rm-roster { padding: 5px 9px; }
.roster-row.sub { border-color: var(--line-2); background: transparent; }
.roster-row.sub .idx { background: var(--shine); color: var(--text-muted); }

@media (max-width: 1000px) {
  .roster-row { grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr) auto auto; }
  .roster-row .idx { grid-row: span 2; }
}
@media (max-width: 620px) {
  .roster-row { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .roster-row .idx { grid-row: span 4; }
  .roster-row .rm-roster { grid-row: span 4; }
}

/* ---------------------------------------------------------------------
   14. BAGAN
   --------------------------------------------------------------------- */
.bracket-scroll {
  position: relative; overflow-x: auto; overflow-y: hidden;
  padding: 8px 6px 22px; -webkit-overflow-scrolling: touch;
}
.bracket-stage { position: relative; min-width: min-content; }
.bracket-lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; overflow: visible;
}
.bracket-lines path {
  fill: none; stroke: var(--line-2); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.bracket-lines path.decided { stroke: var(--accent-line); stroke-width: 2.4; }
.bracket-lines path.loser-drop { stroke: var(--bad-line); stroke-width: 2; opacity: .85; }

.bracket { position: relative; z-index: 1; display: flex; gap: 48px; align-items: stretch; }
.bracket-round {
  display: flex; flex-direction: column;
  width: 245px; min-width: 245px; max-width: 245px; flex: 0 0 245px;
}
.bracket-round-final .bracket-matches {
  justify-content: center;
  gap: 20px;
}
.bracket-round > h4 {
  flex: 0 0 auto; font-size: .75rem; letter-spacing: 1.7px; text-transform: uppercase;
  color: var(--text-muted); text-align: center; margin: 0 0 16px;
  padding-bottom: 9px; border-bottom: 1px solid var(--line);
}
.bracket-matches { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-around; gap: 18px; }

/* Unified Double Elimination Bracket (M-Series Layout) */
.bracket-unified-de {
  position: relative; z-index: 1; display: flex; gap: 48px; align-items: stretch; min-width: max-content;
  padding: 6px 12px;
}
.bracket-col-initial {
  display: flex; flex-direction: column;
  width: 245px; min-width: 245px; max-width: 245px; flex: 0 0 245px;
  border-right: 1px solid var(--line-2); padding-right: 28px;
}
.bracket-col-header, .bracket-track-header {
  margin-bottom: 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.bracket-col-header h4, .bracket-track-header h4 {
  font-size: .78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin: 0;
  font-family: var(--font-head); font-weight: 700;
}
.bracket-matches-initial {
  flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-around; gap: 24px;
}
.bracket-tracks {
  display: flex; flex-direction: column; justify-content: space-between; gap: 42px; min-width: max-content;
}
.bracket-track {
  display: flex; flex-direction: column; background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px 22px;
  position: relative;
}
[data-theme="light"] .bracket-track {
  background: rgba(0,0,0,0.015);
  border-color: #e2e8f0;
}
.bracket-track-upper { border-top: 3px solid var(--brand-gold); }
.bracket-track-lower { border-top: 3px solid #64748b; }
.bracket-track-rounds {
  display: flex; gap: 44px; align-items: stretch;
}
.bracket-col-final {
  display: flex; flex-direction: column;
  width: 245px; min-width: 245px; max-width: 245px; flex: 0 0 245px;
  justify-content: center; border-left: 1px solid var(--line-2); padding-left: 28px;
}
.bracket-matches-final {
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
}
.bracket-unified-se {
  position: relative; z-index: 1; display: flex; gap: 48px; align-items: stretch; min-width: max-content;
  padding: 6px 12px;
}

/* Timezone Widget */
.tz-picker { position: relative; display: inline-block; }
.tz-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-xs);
  color: var(--text); font-size: .8rem; font-family: var(--font-body); cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.tz-btn:hover, .tz-picker.open .tz-btn {
  border-color: var(--accent-line); background: var(--surface-3); color: var(--accent);
}
.tz-icon { color: var(--accent); display: inline-flex; align-items: center; }
.tz-code { font-family: var(--font-head); letter-spacing: .8px; font-weight: 700; font-size: .84rem; }
.tz-caret { font-size: .65rem; color: var(--text-dim); transition: transform var(--dur); }
.tz-picker.open .tz-caret { transform: rotate(180deg); }

.tz-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 120;
  min-width: 220px; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 6px; display: none; flex-direction: column; gap: 2px;
  animation: dropIn .18s var(--ease-out);
}
.tz-picker.open .tz-menu { display: flex; }
.tz-menu-head {
  font-size: .68rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-dim); padding: 5px 9px 3px; font-family: var(--font-head);
}
.tz-option {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 7px 10px; border-radius: var(--radius-xs); background: transparent;
  border: none; color: var(--text-muted); font-size: .82rem; cursor: pointer;
  transition: var(--dur) var(--ease);
}
.tz-option:hover {
  background: var(--surface-2); color: var(--text);
}
.tz-option.active {
  background: var(--accent-soft); color: var(--accent); font-weight: 600;
}
.tz-opt-code {
  font-family: var(--font-head); font-weight: 700; font-size: .88rem; min-width: 38px; color: var(--accent);
}
.tz-opt-name { flex: 1; font-size: .74rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tz-check { color: var(--accent); font-weight: bold; margin-left: auto; font-size: .8rem; }

/* Protected Player & Team Photo Popup */
.protected-photo-wrap {
  position: relative; width: 100%; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.protected-photo-wrap img {
  width: 100%; height: auto; max-height: 380px; object-fit: cover; display: block;
  pointer-events: none; -webkit-user-drag: none; user-select: none;
}
.protected-photo-shield {
  position: absolute; inset: 0; z-index: 5; background: transparent; cursor: default;
}
.protected-photo-watermark {
  position: absolute; bottom: 10px; right: 10px; z-index: 6; pointer-events: none;
  font-family: var(--font-head); font-size: .62rem; font-weight: 700; letter-spacing: 1.5px;
  color: rgba(255,255,255,0.5); text-transform: uppercase; text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  background: rgba(0,0,0,0.55); padding: 3px 8px; border-radius: 4px; backdrop-filter: blur(4px);
}
.roster-item-clickable {
  cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.roster-item-clickable:hover {
  background: var(--surface-2); color: var(--accent);
}
.team-logo-clickable {
  background: transparent; border: none; padding: 0; cursor: pointer;
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.team-logo-clickable:hover {
  transform: scale(1.08); filter: brightness(1.12);
}
.rl-photo-icon {
  display: inline-flex; align-items: center; color: var(--accent); margin-left: 4px; vertical-align: middle;
}
.btn-clean {
  background: none; border: none; padding: 0; margin: 0; color: inherit; font: inherit; cursor: pointer;
}

/* =====================================================================
   BRACKET STAGE & CLEAN HIGH-DEFINITION SVG CONNECTOR LINES
   ===================================================================== */
.bracket-stage {
  position: relative;
  min-width: min-content;
  padding-bottom: 24px;
}
svg.bracket-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
svg.bracket-lines path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .2s ease, stroke-width .2s ease, opacity .2s ease, filter .2s ease;
}
[data-theme="light"] svg.bracket-lines path {
  stroke: rgba(15, 23, 42, 0.22);
}

/* 1. Standby Path (Jalur yang belum bertanding) */
svg.bracket-lines path.path-standby {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1.8px;
}
[data-theme="light"] svg.bracket-lines path.path-standby {
  stroke: rgba(15, 23, 42, 0.22);
}

/* 2. Decided / Winner Path (Jalur pemenang yang melaju) */
svg.bracket-lines path.path-decided {
  stroke: #f59e0b !important;
  stroke-width: 2.4px !important;
}
[data-theme="light"] svg.bracket-lines path.path-decided {
  stroke: #d97706 !important;
  stroke-width: 2.4px !important;
}

/* 3. Interactive Hover & Path Tracing */
.bracket-stage.is-inspecting-bracket svg.bracket-lines path.dimmed {
  opacity: 0.08 !important;
}
.bracket-stage.is-inspecting-bracket svg.bracket-lines path.highlight {
  stroke: #38bdf8 !important;
  stroke-width: 3.2px !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.75));
  z-index: 10;
}
[data-theme="light"] .bracket-stage.is-inspecting-bracket svg.bracket-lines path.highlight {
  stroke: #0284c7 !important;
  stroke-width: 3.2px !important;
  filter: drop-shadow(0 0 3px rgba(2, 132, 199, 0.5));
}

.bm.match-highlight {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35), 0 4px 18px rgba(0, 0, 0, 0.4) !important;
  transform: translateY(-2px);
}
[data-theme="light"] .bm.match-highlight {
  border-color: #0284c7 !important;
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.25), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.bm {
  position: relative; display: block; color: inherit;
  width: 245px; min-width: 245px; max-width: 245px; box-sizing: border-box;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden;
  text-decoration: none; cursor: pointer;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.bm:hover {
  border-color: var(--brand-gold-2);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 16px rgba(255, 207, 90, 0.15);
  color: inherit;
}
.bm:hover .bm-more-hint {
  color: var(--accent);
  transform: translateX(2px);
}
.bm.is-live { border-color: var(--brand-red); box-shadow: 0 0 0 1px rgba(226, 59, 82, .3), 0 0 22px -8px rgba(226, 59, 82, .6); }
.bm.is-bye  { opacity: .45; }
.bm.is-done { border-color: var(--line); }
.bm-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 11px; background: var(--surface-2); font-size: .72rem;
  letter-spacing: 1.1px; text-transform: uppercase; color: var(--text-dim); font-family: var(--font-head);
  font-weight: 700;
}
.bm-slot {
  display: flex; align-items: center; gap: 8px; padding: 0 10px; font-size: .875rem;
  border-top: 1px solid var(--line); position: relative; min-height: 40px; height: auto; box-sizing: border-box;
}
.bm-slot:first-of-type { border-top: none; }
.bm-slot .nm {
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600; font-size: .84rem; line-height: 1.4; padding: 4px 0;
}
.bm-slot-right {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: auto;
}
.bm-slot .sc {
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; min-width: 20px;
  text-align: right; color: #f8fafc; font-variant-numeric: tabular-nums; line-height: 1;
}
.bm-slot .tlogo { width: 22px; height: 22px; border-radius: 5px; flex: 0 0 22px; object-fit: cover; }
.bm-slot.win { background: linear-gradient(90deg, var(--accent-soft), transparent 80%); }
.bm-slot.win::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand-gold); }
.bm-slot.win .nm { color: var(--accent); font-weight: 700; }
.bm-slot.win .sc { color: var(--brand-gold); font-weight: 900; }
.bm-slot.lose .nm { color: var(--text-dim); }
.bm-slot.lose .sc { color: #cbd5e1; font-weight: 700; opacity: 0.9; }
.bm-slot.tbd .nm { color: var(--text-dim); font-style: italic; }
.badge-place {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.bm-col-note {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 3px;
  line-height: 1.3;
}
.spinner-inline {
  animation: spinnerRotate 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
}
@keyframes spinnerRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.bm-foot {
  padding: 6px 11px; border-top: 1px solid var(--line); font-size: .7rem; color: var(--text-dim);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: rgba(0, 0, 0, 0.12);
}
.bm-more-hint {
  font-size: .68rem; font-weight: 600; color: var(--text-dim);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.bracket-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .78rem; color: var(--text-muted); margin-top: 8px; }
.bracket-legend i { display: inline-block; width: 22px; height: 0; border-top: 2px solid var(--line-2); vertical-align: middle; margin-right: 6px; }
.bracket-legend i.win { border-color: var(--accent-line); }
.bracket-legend i.drop { border-top-style: solid; border-color: #f97316; }

/* tab bagan */
.tab-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }

/* ---------------------------------------------------------------------
   15. DAFTAR PERTANDINGAN (ESPORTS MATCH CARD)
   --------------------------------------------------------------------- */
.match-item {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.match-item:hover {
  border-color: var(--line-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: inherit;
}
.match-item.live {
  border-color: rgba(255, 70, 85, 0.5);
  box-shadow: 0 0 24px rgba(255, 70, 85, 0.15);
}
.match-item.live::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #ff4655, #e02434);
}

/* Time & Date Header */
.mi-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-right: none;
  border-bottom: 1px solid var(--line);
  padding-right: 0;
  padding-bottom: 10px;
  width: 100%;
}
.mi-date-group { display: flex; align-items: baseline; justify-content: flex-start; gap: 6px; }
.mi-time .d {
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}
.mi-time .m {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--text-muted);
}
.mi-time .t {
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0;
  font-variant-numeric: tabular-nums;
}

/* Teams Versus Battle Row: Left Team 1, Center Score/VS, Right Team 2 */
.mi-teams {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  width: 100% !important;
  padding: 6px 0 !important;
}
.mi-teams .side {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 8px !important;
}
.mi-teams .side-left,
.mi-teams .side-right {
  justify-content: center !important;
  flex-direction: column !important;
  text-align: center !important;
}
.mi-teams .side .team-logo {
  width: 48px !important;
  height: 48px !important;
  flex: 0 0 48px !important;
  margin: 0 auto !important;
  border-radius: 11px !important;
  object-fit: cover !important;
}
.mi-teams .team-name {
  font-family: var(--font-head) !important;
  font-weight: 700 !important;
  font-size: .88rem !important;
  line-height: 1.25 !important;
  color: var(--text) !important;
  text-align: center !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  word-break: break-word !important;
}
.mi-teams .side.winner .team-name {
  color: var(--accent) !important;
}

.mi-score-wrap {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  min-width: 70px !important;
}
.mi-score {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 6px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 9px;
  letter-spacing: 1.5px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.match-item.live .mi-score,
.mi-score.score-live {
  background: rgba(255, 70, 85, 0.12);
  border-color: rgba(255, 70, 85, 0.35);
  color: #ff4655;
  box-shadow: 0 0 14px rgba(255, 70, 85, 0.2);
}

.mi-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  width: 100%;
}

/* =====================================================================
   MATCH SCOREBOARD BANNER (match.php)
   ===================================================================== */
.match-scoreboard-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  width: 100%;
}
.match-team-col {
  min-width: 0;
  display: flex;
  justify-content: center;
}
.match-score-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 130px;
  max-width: 180px;
  margin: 0 auto;
}
.match-score-num {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.match-score-num .colon {
  font-size: .55em;
  vertical-align: middle;
}
.match-countdown-badge {
  margin-top: 8px;
  font-size: .76rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.match-countdown-badge .lbl {
  font-size: .66rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.match-countdown-badge .val {
  color: var(--accent);
  font-weight: 700;
  font-size: .8rem;
  white-space: normal;
  word-break: break-word;
  max-width: 130px;
}

@media (max-width: 768px) {
  .match-scoreboard-grid {
    grid-template-columns: 1fr 115px 1fr !important;
    gap: 8px !important;
  }
  .match-team-col .team-logo {
    width: 60px !important;
    height: 60px !important;
    flex-basis: 60px !important;
  }
  .match-team-col div[style*="font-size:1.22rem"] {
    font-size: .92rem !important;
    word-break: break-word;
    line-height: 1.25 !important;
  }
  .match-score-col {
    min-width: 100px !important;
    max-width: 115px !important;
  }
  .match-score-num {
    font-size: 1.85rem !important;
  }
  .match-countdown-badge .val {
    font-size: .72rem !important;
  }
}

/* Team Avatar Fallback & Monogram */
.team-logo {
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.team-avatar-fallback {
  background: linear-gradient(135deg, #16243e, #0c1524);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  color: var(--brand-gold);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .5px;
  user-select: none;
}
[data-theme="light"] .team-avatar-fallback {
  background: linear-gradient(135deg, #223254, #121c32);
  border-color: rgba(0, 0, 0, 0.15);
  color: #ffcf5a;
}
.t-initial {
  font-size: .88rem;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* varian ringkas */
.match-item.compact {
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 15px 18px;
}
.match-item.compact .mi-time {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  text-align: left;
  border-right: none;
  border-bottom: 1px solid var(--line);
  padding: 0 0 9px;
}
.match-item.compact .mi-time .d { font-size: 1.05rem; }
.match-item.compact .mi-time .m,
.match-item.compact .mi-time .t { margin: 0; font-size: .74rem; }
.match-item.compact .mi-time .t { margin-left: auto; color: var(--text-muted); }
.match-item.compact .mi-teams {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  align-items: center;
}
.match-item.compact .mi-teams .side { grid-column: 1; }
.match-item.compact .mi-teams .side-right { flex-direction: row-reverse; justify-content: flex-end; text-align: left; }
.match-item.compact .mi-score {
  grid-column: 2; grid-row: 1 / span 2; font-size: 1.05rem; padding: 6px 12px; align-self: center;
}
.match-item.compact .mi-meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 7px; }

/* RESPONSIVE MOBILE MATCH CARD */
@media (max-width: 760px) {
  .match-item {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 18px;
    align-items: stretch;
  }
  .mi-time {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 0 0 10px;
    width: 100%;
  }
  .mi-date-group {
    justify-content: flex-start;
    gap: 6px;
  }
  .mi-time .d { font-size: 1.15rem; }
  .mi-time .m { font-size: .78rem; }
  .mi-time .t { margin-top: 0; font-size: .82rem; color: var(--text-muted); }

  .mi-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
  }
  .mi-teams .side {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    min-width: 0;
  }
  .mi-teams .side-right {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .mi-teams .team-name {
    font-size: .82rem;
    font-weight: 600;
    max-width: 100%;
    text-align: center;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.25;
  }
  .mi-score {
    padding: 6px 12px;
    font-size: 1.05rem;
  }

  .mi-meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
}

/* ---------------------------------------------------------------------
   16. VIDEO
   --------------------------------------------------------------------- */
.video-wrap {
  position: relative; padding-top: 56.25%; border-radius: var(--radius);
  overflow: hidden; background: #000; border: 1px solid var(--line);
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  border-radius: var(--radius); border: 1px solid var(--line-2); padding: 52px 24px;
  text-align: center; color: var(--text-muted); background: var(--surface-2);
}

/* ---------------------------------------------------------------------
   17. BERITA
   --------------------------------------------------------------------- */
.news-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; color: inherit;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.news-card:hover { transform: translateY(-5px); border-color: var(--line-accent); box-shadow: var(--shadow-lg); color: inherit; }
.news-cover { height: 178px; overflow: hidden; background: var(--surface-3); position: relative; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.news-card:hover .news-cover img { transform: scale(1.06); }
.news-cover .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.4rem; opacity: .3; }
.news-cover .badge { position: absolute; top: 12px; left: 12px; }
.news-card .body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.news-card h3 { font-size: 1.08rem; margin: 0 0 8px; line-height: 1.3; }
.news-card .body p { color: var(--text-muted); font-size: .875rem; margin: 0 0 14px; flex: 1; }
.news-card .meta { display: flex; gap: 12px; font-size: .76rem; color: var(--text-dim); margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }

/* isi artikel / markdown */
.prose { color: var(--text); line-height: 1.78; font-size: .96rem; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 1.42rem; margin: 1.9em 0 .55em; padding-bottom: .3em; border-bottom: 1px solid var(--line); }
.prose h3 { font-size: 1.14rem; margin: 1.55em 0 .45em; color: var(--accent); }
.prose h4 { font-size: 1rem; margin: 1.3em 0 .4em; }
.prose p  { margin: 0 0 1.05em; }
.prose ul, .prose ol { margin: 0 0 1.05em; padding-left: 1.35em; }
.prose li { margin-bottom: .42em; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose code {
  font-family: var(--font-mono); font-size: .87em; background: var(--surface-3);
  padding: 2px 6px; border-radius: 5px; color: var(--accent-2);
}
.prose blockquote {
  margin: 1.3em 0; padding: 14px 20px; border-left: 3px solid var(--brand-gold);
  background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-muted);
}
.prose hr { margin: 2em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .9rem; }
.prose th, .prose td { padding: 9px 13px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface-2); font-family: var(--font-head); text-transform: uppercase; font-size: .78rem; letter-spacing: 1px; }
.prose img { border-radius: var(--radius-sm); margin: 1.2em 0; }

/* daftar isi */
.toc { position: sticky; top: calc(var(--nav-h) + 20px); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: 3px; }
.toc a {
  display: block; padding: 7px 11px; border-radius: var(--radius-xs); font-size: .855rem;
  color: var(--text-muted); border-left: 2px solid transparent;
}
.toc a::before { content: counter(toc) '. '; color: var(--text-dim); }
.toc a:hover, .toc a.active { background: var(--surface-2); color: var(--accent); border-left-color: var(--brand-gold); }

/* ---------------------------------------------------------------------
   18. GALERI
   --------------------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.gal-item {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line); cursor: zoom-in; background: var(--surface-2);
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease-out); }
.gal-item:hover img { transform: scale(1.09); }
.gal-item .cap {
  position: absolute; inset: auto 0 0 0; padding: 22px 13px 11px; font-size: .8rem; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
  opacity: 0; transform: translateY(8px); transition: var(--dur) var(--ease);
}
.gal-item:hover .cap, .gal-item:focus-within .cap { opacity: 1; transform: none; }
@media (hover: none) { .gal-item .cap { opacity: 1; transform: none; } }

.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(3, 6, 14, .93);
  display: none; align-items: center; justify-content: center; padding: 24px;
  backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; animation: fadeIn .2s var(--ease); }
@keyframes fadeIn { from { opacity: 0 } }
.lightbox img { max-width: 94vw; max-height: 84vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox .lb-cap { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: #dbe3f2; font-size: .9rem; }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.3rem;
  display: grid; place-items: center; transition: var(--dur);
}
.lightbox .lb-close:hover, .lightbox .lb-prev:hover, .lightbox .lb-next:hover { background: rgba(255,255,255,.22); }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev  { left: 20px;  top: 50%; transform: translateY(-50%); }
.lightbox .lb-next  { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------------------------------------------------------------------
   19. AKORDEON (FAQ)
   --------------------------------------------------------------------- */
.accordion { display: grid; gap: 10px; }
.acc-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; transition: border-color var(--dur); }
.acc-item.open { border-color: var(--line-accent); }
.acc-head {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 19px;
  background: none; border: none; color: var(--text); font: inherit; font-size: .96rem;
  font-weight: 600; text-align: left; cursor: pointer; transition: color var(--dur);
}
.acc-head:hover { color: var(--accent); }
.acc-head .q { flex: 1; }
.acc-head .ic {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 1rem; line-height: 1;
  transition: transform .28s var(--ease-out);
}
.acc-item.open .acc-head .ic { transform: rotate(45deg); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease-out); }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; }
.acc-body .inner { padding: 0 19px 18px; color: var(--text-muted); font-size: .91rem; line-height: 1.72; }

/* ---------------------------------------------------------------------
   20. SPONSOR
   --------------------------------------------------------------------- */
.sponsor-strip {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.sponsor-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  will-change: transform;
  animation: sponsorMarquee 28s linear infinite !important;
}
.sponsor-strip:hover .sponsor-track {
  animation-play-state: paused;
}
@keyframes sponsorMarquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
.sponsor-logo {
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 1;
  background: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
[data-theme="dark"] .sponsor-logo {
  background: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
[data-theme="light"] .sponsor-logo {
  background: #ffffff !important;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.sponsor-logo:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), var(--glow-gold);
}
.sponsor-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  white-space: nowrap;
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.sponsor-name:hover {
  color: var(--accent);
  border-color: var(--line-accent);
  transform: translateY(-2px);
}

.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.sponsor-card {
  display: grid; place-items: center; gap: 9px; padding: 22px 16px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: var(--dur) var(--ease); color: inherit; min-height: 118px;
}
.sponsor-card:hover { border-color: var(--line-accent); transform: translateY(-3px); color: inherit; }
.sponsor-card img { max-height: 56px; width: auto; object-fit: contain; background: #fff; padding: 5px 10px; border-radius: 8px; }
.sponsor-card .tier { font-size: .66rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-dim); font-family: var(--font-head); }

/* ---------------------------------------------------------------------
   21. PODIUM & JUARA
   --------------------------------------------------------------------- */
.podium { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 16px; }
.podium-item {
  position: relative; text-align: center; padding: 26px 18px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); overflow: hidden;
  transition: transform var(--dur) var(--ease);
}
.podium-item:hover { transform: translateY(-4px); }
.podium-item.p1 {
  border-color: var(--accent-line);
  background: linear-gradient(165deg, var(--accent-soft), var(--surface) 62%);
  box-shadow: var(--glow-gold);
}
.podium-item.p1::before {
  content: ''; position: absolute; inset: -40% -10% auto; height: 120px;
  background: radial-gradient(ellipse, rgba(245,196,81,.3), transparent 70%); filter: blur(20px);
  pointer-events: none;
}
.podium-item .medal { position: relative; display: grid; place-items: center; margin-bottom: 4px; }
.podium-item .medal .ic { color: var(--accent); }
.podium-item .rank { font-family: var(--font-head); font-size: .72rem; letter-spacing: 1.7px; text-transform: uppercase; color: var(--text-muted); }
.podium-item .nm { font-family: var(--font-head); font-size: 1.16rem; font-weight: 700; margin-top: 5px; }
.podium-item .sub { font-size: .8rem; color: var(--text-muted); margin-top: 3px; }

/* --- baris juara di beranda: tetap rapi walau juaranya baru satu --- */
.champ-row { display: flex; flex-wrap: wrap; gap: 16px; }
.champ-card {
  position: relative; flex: 1 1 340px; max-width: 520px;
  display: flex; align-items: center; gap: 16px;
  padding: 24px 22px 20px; border-radius: var(--radius);
  border: 1px solid var(--accent-line); color: inherit;
  background: linear-gradient(150deg, var(--accent-soft), var(--surface) 62%);
  box-shadow: var(--glow-gold); overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.champ-card:hover { transform: translateY(-4px); color: inherit; border-color: var(--accent); }
.champ-card::before {
  content: ''; position: absolute; inset: -60% -20% auto; height: 150px;
  background: radial-gradient(ellipse, rgba(245,196,81,.28), transparent 70%); filter: blur(22px);
  pointer-events: none;
}
.champ-card .ribbon {
  position: absolute; top: 0; left: 22px;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-head); font-size: .66rem; letter-spacing: 1.4px; text-transform: uppercase;
  padding: 4px 10px 5px; border-radius: 0 0 8px 8px;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-2)); color: #241a02; font-weight: 700;
}
.champ-card .team-logo { position: relative; z-index: 1; }
.champ-card .info { position: relative; z-index: 1; min-width: 0; flex: 1; }
.champ-card .info strong {
  display: block; font-family: var(--font-head); font-size: 1.2rem; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.champ-card .meta {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  font-size: .8rem; color: var(--text-muted); margin-top: 4px;
}
.champ-card .go { position: relative; z-index: 1; color: var(--accent); flex-shrink: 0; }
@media (max-width: 560px) { .champ-card { flex: 1 1 100%; max-width: none; } }

.champion-row {
  display: grid; grid-template-columns: 74px minmax(0,1fr) auto; gap: 18px; align-items: center;
  padding: 18px 22px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); transition: var(--dur) var(--ease); color: inherit;
}
.champion-row:hover { border-color: var(--line-accent); transform: translateX(4px); color: inherit; }
.champion-row .trophy {
  width: 74px; height: 74px; border-radius: 18px; display: grid; place-items: center; font-size: 2rem;
  background: linear-gradient(150deg, var(--accent-soft), var(--surface-3)); border: 1px solid var(--accent-line);
}
@media (max-width: 620px) { .champion-row { grid-template-columns: 54px 1fr; } .champion-row .trophy { width: 54px; height: 54px; font-size: 1.5rem; } }

/* ---------------------------------------------------------------------
   22. LANGKAH / TIMELINE
   --------------------------------------------------------------------- */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(216px, 1fr)); counter-reset: s; }
.step {
  position: relative; padding: 24px 22px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); overflow: hidden;
  transition: var(--dur) var(--ease);
}
.step:hover { border-color: var(--line-accent); transform: translateY(-3px); }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--line-accent);
  position: absolute; top: 16px; right: 18px; opacity: .75; pointer-events: none;
}
.step h4 { margin: 0 0 7px; font-size: 1.02rem; padding-right: 50px; }
.step p  { margin: 0; color: var(--text-muted); font-size: .875rem; }

.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--brand-gold), var(--brand-cyan), transparent); }
.tl-item { position: relative; padding-bottom: 24px; }
.tl-item::before {
  content: ''; position: absolute; left: -27px; top: 6px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--brand-gold); box-shadow: 0 0 0 3px var(--accent-soft);
}
.tl-item .tl-date { font-size: .74rem; letter-spacing: 1.3px; text-transform: uppercase; color: var(--accent); font-family: var(--font-head); }
.tl-item h4 { margin: 3px 0 5px; font-size: 1rem; }
.tl-item p  { margin: 0; color: var(--text-muted); font-size: .88rem; }

/* ---------------------------------------------------------------------
   23. LAIN-LAIN
   --------------------------------------------------------------------- */
.empty-state { text-align: center; padding: 58px 24px; color: var(--text-muted); }
.empty-state .ico { font-size: 2.8rem; opacity: .4; margin-bottom: 12px; }
.empty-state .ic-box { opacity: .9; }
.empty-state h3 { margin: 0 0 7px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 20px; font-size: .92rem; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; }

.breadcrumb { display: flex; gap: 7px; flex-wrap: wrap; font-size: .845rem; color: var(--text-muted); margin-bottom: 15px; align-items: center; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-dim); }

.page-head { padding: 42px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
@media (max-width: 720px) {
  .page-head { padding-top: 26px; margin-bottom: 24px; }
  .page-head [style*="text-align:right"] { text-align: left !important; width: 100%; }
  .page-head .share-row { justify-content: flex-start; }
}
.page-head h1 { font-size: clamp(1.75rem, 4.2vw, 2.65rem); margin-bottom: 10px; }
.page-head p { color: var(--text-muted); max-width: 68ch; margin: 0; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; text-align: center; padding: 7px 13px; border-radius: 9px;
  border: 1px solid var(--line); color: var(--text-muted); font-size: .86rem; transition: var(--dur);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .cur { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); font-weight: 600; }

.share-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.share-btn {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: var(--shine); color: var(--text-muted);
  transition: var(--dur) var(--ease);
}
.share-btn:hover { transform: translateY(-2px); color: #fff; }
.share-btn.wa:hover { background: #25d366; border-color: #25d366; }
.share-btn.fb:hover { background: #1877f2; border-color: #1877f2; }
.share-btn.tw:hover { background: #111; border-color: #111; }
.share-btn.tg:hover { background: #229ed9; border-color: #229ed9; }
.share-btn.cp:hover { background: var(--brand-gold-2); border-color: var(--brand-gold-2); color: #241a02; }

/* pencarian */
.search-box { position: relative; }
.search-box input { padding-left: 40px !important; }
.search-box .si { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-dim); pointer-events: none; }

/* ---------------------------------------------------------------------
   MODAL DIALOG & POPUP SYSTEM
   --------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.modal-backdrop.open {
  display: flex !important;
}
.modal {
  position: relative;
  width: 100%;
  max-width: 540px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  animation: modalScaleIn .24s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto;
  color: var(--text);
}
.modal-sm { max-width: 420px; }
.modal-lg { max-width: 780px; }
.modal-head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-2);
}
.modal-head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-family: var(--font-head);
  letter-spacing: .5px;
  color: var(--text);
}
.modal-head .close,
.modal .close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0 4px;
  transition: color var(--dur);
}
.modal-head .close:hover,
.modal .close:hover { color: var(--text); }
.modal-body {
  padding: 22px 24px;
  max-height: calc(85vh - 120px);
  overflow-y: auto;
}
.modal-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: var(--surface-2);
}
@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* =====================================================================
   ESPORTS TOAST & MODERN POPUP NOTIFICATION SYSTEM
   ===================================================================== */
.toast-host {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  width: calc(100vw - 32px);
  pointer-events: none;
}
.toast {
  position: relative;
  overflow: hidden;
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(14, 21, 37, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: .88rem;
  line-height: 1.45;
  animation: toastSlideIn .32s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top right;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
[data-theme="light"] .toast {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 36px -10px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.toast:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.85);
}
@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.toast.out {
  animation: toastSlideOut .24s cubic-bezier(0.4, 0, 1, 1) forwards;
}
@keyframes toastSlideOut {
  to { opacity: 0; transform: translateY(-12px) scale(0.92); }
}

.toast-side-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}
.toast-success .toast-side-bar { background: linear-gradient(180deg, var(--brand-gold), var(--brand-gold-2)); box-shadow: var(--glow-gold); }
.toast-danger  .toast-side-bar { background: linear-gradient(180deg, #ff4655, #e02434); box-shadow: 0 0 14px rgba(255, 70, 85, 0.6); }
.toast-warning .toast-side-bar { background: linear-gradient(180deg, #f59e0b, #d97706); box-shadow: 0 0 14px rgba(245, 158, 11, 0.6); }
.toast-info    .toast-side-bar { background: linear-gradient(180deg, var(--brand-cyan), var(--brand-cyan-2)); box-shadow: var(--glow-cyan); }

.toast-ic {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  margin-top: 1px;
}
.toast-success .toast-ic { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
.toast-danger  .toast-ic { background: rgba(255, 70, 85, 0.15); color: #ff4655; border: 1px solid rgba(255, 70, 85, 0.35); }
.toast-warning .toast-ic { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.35); }
.toast-info    .toast-ic { background: var(--accent-2-soft); color: var(--accent-2); border: 1px solid var(--accent-2-line); }

.toast-body { flex: 1; min-width: 0; padding-right: 6px; }
.toast-title {
  display: block;
  font-family: var(--font-head);
  font-size: .88rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.toast-success .toast-title { color: var(--accent); }
.toast-danger  .toast-title { color: #ff4655; }
.toast-warning .toast-title { color: #f59e0b; }
.toast-info    .toast-title { color: var(--accent-2); }

.toast-msg { color: var(--text); font-size: .84rem; }
.toast-x {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-dim);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, transform .2s ease;
}
.toast-x:hover { color: var(--text); transform: scale(1.15); }

.toast-timer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.toast-bar {
  height: 100%;
  width: 100%;
  animation: toastProgress linear forwards;
}
.toast-success .toast-bar { background: var(--brand-gold); }
.toast-danger  .toast-bar { background: #ff4655; }
.toast-warning .toast-bar { background: #f59e0b; }
.toast-info    .toast-bar { background: var(--brand-cyan); }

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

/* In-Page Toast Cards (Replaces Old Plain Alert) */
.toast-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: .9rem;
  box-shadow: var(--shadow-sm);
}
.toast-card .toast-side-bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
}
.toast-card.toast-success .toast-side-bar { background: var(--brand-gold); }
.toast-card.toast-danger  .toast-side-bar { background: #ff4655; }
.toast-card.toast-warning .toast-side-bar { background: #f59e0b; }
.toast-card.toast-info    .toast-side-bar { background: var(--brand-cyan); }
.toast-card .toast-ic { flex-shrink: 0; }
.toast-card.toast-success .toast-ic { color: var(--accent); }
.toast-card.toast-danger  .toast-ic { color: #ff4655; }
.toast-card.toast-warning .toast-ic { color: #f59e0b; }
.toast-card.toast-info    .toast-ic { color: var(--accent-2); }
.toast-card .toast-body { flex: 1; }
.toast-card .toast-x {
  background: none; border: none; padding: 0; font-size: 1.3rem; color: var(--text-dim); cursor: pointer;
}
.toast-card .toast-x:hover { color: var(--text); }

/* bar progres baca */
.read-bar { position: fixed; top: 0; left: 0; height: 3px; z-index: 99; width: 0;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-cyan)); transition: width .1s linear; }

/* tombol ke atas */
.to-top {
  position: fixed; bottom: 22px; right: 22px; z-index: 80;
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text);
  cursor: pointer; box-shadow: var(--shadow); opacity: 0; visibility: hidden;
  transform: translateY(12px); transition: var(--dur) var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------------------------------------------------------------
   24. FOOTER
   --------------------------------------------------------------------- */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 44px 0 24px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), var(--accent-2-line), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 32px;
  margin-bottom: 28px;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .footer { padding: 30px 0 18px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px 12px;
    margin-bottom: 22px;
  }
  .footer-brand-col,
  .footer-contact-col {
    grid-column: 1 / -1;
  }
  .footer h5 { font-size: .74rem; letter-spacing: 1.3px; margin-bottom: 10px; }
  .footer ul { gap: 5px; }
  .footer ul a, .footer p, .footer li { font-size: .82rem; }
  .footer-brand { margin-bottom: 8px; }
  .footer-brand img { height: 44px; }
  .footer-social { margin-top: 10px; gap: 7px; }
  .footer-contact-list { display: flex !important; flex-direction: column; gap: 6px !important; }
}
.footer h5 { font-size: .8rem; letter-spacing: 1.7px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.footer p, .footer li { color: var(--text-muted); font-size: .875rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer ul a { color: var(--text-muted); transition: var(--dur) var(--ease); display: inline-block; }
.footer ul a:hover { color: var(--accent); padding-left: 3px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 52px; width: auto; }
.footer-social { display: flex; gap: 9px; margin-top: 16px; flex-wrap: wrap; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 18px; color: var(--text-dim); font-size: .8rem;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center;
}

/* ---------------------------------------------------------------------
   25. ANIMASI MASUK SAAT DIGULIR
   --------------------------------------------------------------------- */
[data-reveal] { opacity: 1; transform: none; transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .05s; }
[data-reveal-delay="2"] { transition-delay: .10s; }
[data-reveal-delay="3"] { transition-delay: .15s; }
[data-reveal-delay="4"] { transition-delay: .20s; }
[data-reveal-delay="5"] { transition-delay: .25s; }
[data-reveal-delay="6"] { transition-delay: .30s; }

.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-xs);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* hormati preferensi pengguna */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .bracket-lines path { stroke-dashoffset: 0 !important; }
}

/* ---------------------------------------------------------------------
   26. CETAK
   --------------------------------------------------------------------- */
@media print {
  .navbar, .footer, .btn, .tab-row, .to-top, .scroll-cue, .share-row, .read-bar { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  body::before { display: none; }
  .card, .bm, .bracket-round, .match-item { border-color: #ccc !important; background: #fff !important; box-shadow: none !important; }
  .bracket-scroll { overflow: visible !important; }
  a { color: #000 !important; text-decoration: none !important; }
  .page-head { padding-top: 0; }
}

/* ---------------------------------------------------------------------
   ESPORTS MATCH & GAME STATISTICS BREAKDOWN (match.php)
   --------------------------------------------------------------------- */
.esports-stats-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.esports-stats-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.esports-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 9px;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s ease;
}
.esports-tab-btn:hover {
  color: var(--text);
  border-color: var(--accent-line);
  background: var(--shine);
}
.esports-tab-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent);
  box-shadow: 0 0 14px rgba(245, 196, 81, 0.25);
}
.esports-tab-btn .tab-badge {
  font-size: .65rem;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(0,0,0,0.3);
}

.game-stat-panel {
  display: none;
  animation: statFadeIn .25s cubic-bezier(0.16, 1, 0.3, 1);
}
.game-stat-panel.active {
  display: block;
}
@keyframes statFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.game-winner-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(245, 196, 81, 0.12), rgba(79, 214, 245, 0.06), transparent);
  border-bottom: 1px solid var(--line-2);
}
.game-winner-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* MVP Hero Showcase Banner (MPL Broadcast Grade) */
.mvp-hero-showcase {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(245, 196, 81, 0.16) 0%, rgba(13, 21, 37, 0.95) 45%, rgba(79, 214, 245, 0.1) 100%);
  border: 1px solid rgba(245, 196, 81, 0.4);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 16px 18px 8px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 196, 81, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.mvp-hero-showcase::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 180%;
  background: radial-gradient(circle at 20% 30%, rgba(245, 196, 81, 0.25), transparent 60%);
  pointer-events: none;
}
.mvp-hero-left {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.mvp-portrait-frame {
  position: relative;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  padding: 3px;
  background: linear-gradient(135deg, #ffe082, #f59e0b, #38bdf8);
  box-shadow: 0 0 20px rgba(245, 196, 81, 0.5), 0 6px 16px rgba(0, 0, 0, 0.5);
  animation: mvpPulseRing 3.5s ease-in-out infinite alternate;
}
@keyframes mvpPulseRing {
  0% { box-shadow: 0 0 15px rgba(245, 196, 81, 0.4), 0 6px 16px rgba(0, 0, 0, 0.5); }
  100% { box-shadow: 0 0 28px rgba(255, 224, 130, 0.75), 0 8px 24px rgba(0, 0, 0, 0.6); }
}
.mvp-portrait-img {
  width: 100%;
  height: 100%;
  border-radius: 17px;
  object-fit: cover;
  display: block;
  background: #111a2e;
}
.mvp-portrait-fallback {
  width: 100%;
  height: 100%;
  border-radius: 17px;
  background: linear-gradient(135deg, #241c03, #151f33);
  display: grid;
  place-items: center;
  color: var(--brand-gold);
  font-size: 2rem;
}
.mvp-crown-crest {
  position: absolute;
  top: -9px;
  left: -7px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #ff9800);
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  color: #1a1200;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  font-size: .95rem;
}
.mvp-details {
  min-width: 0;
}
.mvp-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #1a1200;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-2));
  padding: 2px 9px;
  border-radius: 6px;
  margin-bottom: 4px;
  box-shadow: 0 2px 8px rgba(245, 196, 81, 0.4);
}
.mvp-ign {
  font-family: 'Oxanium', 'Rajdhani', var(--font-head);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(245, 196, 81, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mvp-hero-badge {
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(79, 214, 245, 0.18);
  border: 1px solid rgba(79, 214, 245, 0.4);
  color: var(--brand-cyan);
  text-transform: uppercase;
}
.mvp-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 5px;
  font-size: .84rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.mvp-hero-right {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
@media (max-width: 680px) {
  .mvp-hero-showcase { padding: 16px; flex-direction: column; align-items: stretch; gap: 16px; margin: 12px; }
  .mvp-hero-right { align-items: flex-start; }
  .mvp-portrait-frame { width: 68px; height: 68px; }
  .mvp-ign { font-size: 1.25rem; }
}

/* 3D KPI Cards Enhancement */
.stat-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 16px 16px 8px;
}
@media (max-width: 900px) {
  .stat-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}
@media (max-width: 480px) {
  .stat-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 10px 10px 6px;
  }
}
.stat-kpi-card {
  position: relative;
  background: linear-gradient(150deg, var(--surface-2) 0%, var(--surface-3) 100%);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 10px 6px 12px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), border-color .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}
.stat-kpi-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--accent-line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(245, 196, 81, 0.2);
}
.stat-kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(245, 196, 81, 0.15), rgba(79, 214, 245, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  color: var(--accent);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}
.stat-kpi-label {
  font-size: .65rem;
  font-family: var(--font-head);
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 5px;
  white-space: nowrap;
}
.stat-kpi-values {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  font-family: 'Oxanium', 'Rajdhani', var(--font-head);
  font-size: clamp(0.82rem, 1.35vw, 1.02rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.2px;
  max-width: 100%;
}
.stat-kpi-card.is-gold .stat-kpi-values {
  font-size: clamp(0.76rem, 1.2vw, 0.94rem);
}
.stat-kpi-values .v1 { color: #f5c451; text-shadow: 0 0 10px rgba(245, 196, 81, 0.3); }
.stat-kpi-values .v2 { color: #38bdf8; text-shadow: 0 0 10px rgba(56, 189, 248, 0.3); }
.stat-kpi-values .sep { color: var(--text-dim); font-size: .75rem; font-weight: 400; opacity: .6; }

/* Battle Comparison Gauges */
.stat-gauge-section {
  padding: 14px 20px 20px;
}
.stat-gauge-row {
  margin-bottom: 16px;
}
.stat-gauge-row:last-child {
  margin-bottom: 0;
}
.stat-gauge-meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.stat-gauge-val {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.stat-gauge-val.left {
  text-align: left;
}
.stat-gauge-val.right {
  text-align: right;
}
.stat-gauge-val.win {
  color: var(--text);
  font-size: 1.18rem;
}
.stat-gauge-val.left.win {
  color: var(--brand-gold);
  text-shadow: 0 0 12px rgba(245, 196, 81, 0.4);
}
.stat-gauge-val.right.win {
  color: var(--brand-cyan);
  text-shadow: 0 0 12px rgba(79, 214, 245, 0.4);
}
.stat-gauge-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text);
}

.stat-dual-track {
  height: 9px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  overflow: hidden;
  display: flex;
  position: relative;
}
.stat-dual-left {
  height: 100%;
  background: linear-gradient(90deg, #eab308, #f5c451);
  box-shadow: 0 0 10px rgba(245, 196, 81, 0.5);
  transition: width .5s var(--ease-out);
  border-radius: 999px 0 0 999px;
}
.stat-dual-right {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  transition: width .5s var(--ease-out);
  border-radius: 0 999px 999px 0;
  margin-left: auto;
}

.stat-vs-head {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center;
  margin-bottom: 16px; font-family: var(--font-head); font-size: .84rem;
  letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted);
}
.stat-vs-head span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-vs-head span:last-child { text-align: right; }
.stat-vs-head i { font-style: normal; color: var(--text-dim); font-size: .74rem; }

.stat-bar { margin-bottom: 13px; }
.stat-bar .sb-top {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center;
  font-size: .86rem; margin-bottom: 5px;
}
.stat-bar .sb-top b { font-family: var(--font-head); font-size: 1.02rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.stat-bar .sb-top b:last-child { text-align: right; }
.stat-bar .sb-top b.lead { color: var(--accent); }
.stat-bar .sb-top span {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: .76rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim);
}
.stat-bar .sb-track {
  height: 7px; border-radius: 4px; overflow: hidden;
  background: var(--accent-2); position: relative;
}
.stat-bar .sb-track i {
  display: block; height: 100%; border-radius: 4px 0 0 4px;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-gold-2));
  transition: width .6s var(--ease-out);
}

/* form input statistik (panel wasit) */
.stat-input { width: 100%; border-collapse: collapse; }
.stat-input th, .stat-input td { padding: 7px 6px; border-bottom: 1px solid var(--line); }
.stat-input thead th {
  font-size: .72rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted);
  text-align: center; font-family: var(--font-head);
}
.stat-input thead th:first-child { text-align: left; }
.stat-input tbody th {
  text-align: left; font-weight: 600; font-size: .87rem; white-space: nowrap;
  display: flex; align-items: center; gap: 8px; border-bottom: 0;
}
.stat-input tbody th .ic-wrap { color: var(--accent); }
.stat-input td input { width: 100%; text-align: center; padding: 8px 6px !important; font-size: .92rem !important; }

.pick-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.pick-team .pt-opt { cursor: pointer; }
.pick-team .pt-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pick-team .pt-opt > span {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2);
  transition: var(--dur) var(--ease);
}
.pick-team .pt-opt > span b { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-team .pt-opt:hover > span { border-color: var(--line-accent); }
.pick-team .pt-opt input:checked + span {
  border-color: var(--accent); background: var(--accent-soft); box-shadow: var(--glow-gold);
}

.game-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.game-row:last-child { border-bottom: 0; padding-bottom: 0; }
.stat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: .76rem; font-variant-numeric: tabular-nums; color: var(--text-muted);
}
.sc-chip .ic { color: var(--accent); }
.sc-chip i { font-style: normal; color: var(--text-dim); }

/* =====================================================================
   OPTIMISASI TAMPILAN MOBILE & PERANGKAT LAYAR KECIL (SMARTPHONE)
   ===================================================================== */
/* =====================================================================
   OPTIMISASI TAMPILAN MOBILE & PERANGKAT LAYAR KECIL (SMARTPHONE)
   ===================================================================== */
.show-mobile { display: none !important; }
.hide-desktop { display: none !important; }
.show-desktop { display: inline-block !important; }
th.hide-mobile, td.hide-mobile { display: table-cell; }

@media (max-width: 768px) {
  .hide-mobile, th.hide-mobile, td.hide-mobile { display: none !important; }
  .show-mobile { display: inline-block !important; }
  .hide-desktop { display: inline-block !important; }
  .show-desktop { display: none !important; }

  /* Container & Spacing */
  .container { padding-left: 12px; padding-right: 12px; }
  .section { padding: 26px 0; }
  .section-sm { padding: 16px 0; }
  .page-head { padding: 18px 0 8px; margin-bottom: 16px; }
  .page-head h1 { font-size: 1.55rem; letter-spacing: .5px; }
  .page-head p { font-size: .88rem; line-height: 1.45; }

  /* Navbar Mobile */
  .navbar-inner { min-height: 52px; padding: 0 12px; }
  .brand { gap: 8px; }
  .brand-img, .brand img { width: 36px !important; height: 36px !important; max-width: 36px !important; max-height: 36px !important; aspect-ratio: 1 / 1 !important; object-fit: contain !important; }
  .brand-acronym { font-size: 1.32rem !important; letter-spacing: 1px !important; }
  .brand-badge { font-size: .56rem !important; padding: 1px 5px !important; }
  .brand-sub-1, .brand-sub-2 { display: none !important; }
  .tz-btn { padding: 4px 6px; font-size: .7rem; }
  .tz-code { font-size: .74rem; }

  /* Responsive Button Groups & CTA */
  .btn-group-responsive,
  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 12px !important;
    margin-top: 18px !important;
  }
  .btn-group-responsive .btn,
  .hero-actions .btn {
    width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
  }

  /* Bracket Mobile Scroll */
  .bracket-scroll {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 16px;
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
    scrollbar-width: thin;
  }
  .bracket-unified-de { gap: 20px; }
  .bracket-col-initial { min-width: 185px; padding-right: 12px; }
  .bracket-col-final { min-width: 185px; padding-left: 12px; }
  .bracket-round { min-width: 185px; }
  .bm { font-size: .8rem; border-radius: 8px; }
  .bm-slot { padding: 6px 8px; font-size: .8rem; gap: 6px; }
  .bm-slot .tlogo { width: 20px !important; height: 20px !important; border-radius: 4px !important; }
  .bm-slot .nm { max-width: 110px; font-size: .8rem; }
  .bm-slot .sc { font-size: .88rem; }
  .bm-head { padding: 3px 7px; font-size: .6rem; }

  /* Grids & Cards */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 12px; }
  .split, .split-a, .split-main { grid-template-columns: 1fr; gap: 16px; }
  .card { border-radius: var(--radius-sm); }
  .card-body { padding: 12px 12px; }
  .card-head { padding: 10px 12px; }
  .card-head h3 { font-size: .95rem; }

  /* Match Details Hero Scoreboard (match.php) */
  .match-scoreboard-grid {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 0 !important;
  }
  .match-hero-team-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 6px !important;
  }
  .match-hero-team-wrap .team-avatar,
  .match-hero-team-wrap .team-logo {
    width: 54px !important;
    height: 54px !important;
    border-radius: 12px !important;
    font-size: 1.1rem !important;
  }
  .match-hero-team-name {
    font-size: .94rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: .5px !important;
    text-align: center !important;
  }
  .match-score-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 4px !important;
  }
  .match-score-num {
    font-size: 1.85rem !important;
    letter-spacing: 2px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
  }
  .match-countdown-badge {
    padding: 4px 8px !important;
    font-size: .76rem !important;
    margin-top: 4px !important;
  }

  /* Match Items (schedule.php & list) */
  .match-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    border-radius: var(--radius-sm) !important;
    background: var(--surface) !important;
  }
  .mi-time {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-right: none !important;
    border-bottom: 1px solid var(--line) !important;
    padding-right: 0 !important;
    padding-bottom: 8px !important;
    width: 100% !important;
  }
  .mi-date-group {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
  }
  .mi-time .d { font-size: 1.05rem !important; line-height: 1 !important; }
  .mi-time .m { font-size: .78rem !important; font-weight: 600 !important; color: var(--text-muted) !important; }
  .mi-time .t { font-size: .8rem !important; margin-top: 0 !important; font-weight: 700 !important; color: var(--accent) !important; }

  .mi-teams {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 4px 0 !important;
  }
  .mi-teams .side {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 5px !important;
  }
  .mi-teams .side .team-logo {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
    margin: 0 auto !important;
    border-radius: 9px !important;
  }
  .mi-teams .team-name {
    font-size: .84rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    letter-spacing: .4px !important;
  }
  .mi-score-wrap {
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 58px !important;
  }
  .mi-score {
    font-size: 1.05rem !important;
    padding: 4px 10px !important;
    letter-spacing: 1.2px !important;
    white-space: nowrap !important;
  }
  .mi-meta {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-top: 1px solid var(--line) !important;
    padding-top: 8px !important;
    gap: 6px !important;
    width: 100% !important;
    font-size: .76rem !important;
  }

  /* Game Stats Tabs on Mobile */
  .esports-stats-tabs {
    padding: 8px 10px !important;
    gap: 6px !important;
  }
  .esports-tab-btn {
    padding: 6px 11px !important;
    font-size: .78rem !important;
    letter-spacing: .4px !important;
    border-radius: 8px !important;
    gap: 5px !important;
  }
  .esports-tab-btn .tab-badge {
    font-size: .62rem !important;
    padding: 1px 5px !important;
    border-radius: 4px !important;
  }

  /* MVP Showcase Banner */
  .mvp-hero-showcase {
    padding: 12px 14px !important;
    border-radius: 12px !important;
    gap: 10px !important;
    margin: 10px 10px 6px !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .mvp-hero-left {
    gap: 12px !important;
  }
  .mvp-portrait-frame {
    width: 56px !important;
    height: 56px !important;
    border-radius: 12px !important;
    padding: 2px !important;
  }
  .mvp-portrait-img,
  .mvp-portrait-fallback {
    border-radius: 10px !important;
  }
  .mvp-crown-crest {
    width: 22px !important;
    height: 22px !important;
    font-size: .72rem !important;
    top: -5px !important;
    left: -5px !important;
  }
  .mvp-badge-tag {
    font-size: .62rem !important;
    padding: 1px 7px !important;
    letter-spacing: 1px !important;
  }
  .mvp-ign {
    font-size: 1.15rem !important;
    gap: 6px !important;
  }
  .mvp-hero-badge {
    font-size: .66rem !important;
    padding: 1px 6px !important;
  }
  .mvp-meta-row {
    font-size: .76rem !important;
    gap: 8px !important;
    margin-top: 3px !important;
  }

  /* KPI Cards */
  .stat-kpi-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    padding: 10px 10px 6px !important;
  }
  .stat-kpi-card {
    padding: 8px 4px 10px !important;
    border-radius: 10px !important;
  }
  .stat-kpi-icon {
    width: 26px !important;
    height: 26px !important;
    border-radius: 7px !important;
    margin-bottom: 3px !important;
  }
  .stat-kpi-icon svg { width: 13px !important; height: 13px !important; }
  .stat-kpi-label {
    font-size: .58rem !important;
    letter-spacing: .8px !important;
    margin-bottom: 3px !important;
  }
  .stat-kpi-values {
    font-size: .84rem !important;
    letter-spacing: -0.2px !important;
  }
  .stat-kpi-card.is-gold .stat-kpi-values {
    font-size: .78rem !important;
  }

  /* Battle Comparison Dual Track */
  .stat-gauge-section {
    padding: 10px 12px 14px !important;
  }
  .stat-gauge-meta {
    gap: 6px !important;
    margin-bottom: 4px !important;
  }
  .stat-gauge-val {
    font-size: .88rem !important;
  }
  .stat-gauge-val.win {
    font-size: .96rem !important;
  }
  .stat-gauge-badge {
    padding: 2px 8px !important;
    font-size: .64rem !important;
    letter-spacing: .8px !important;
  }
  .stat-dual-track {
    height: 7px !important;
  }

  /* Roster List in Match Page */
  .roster-list { gap: 5px; }
  .match-roster-row {
    padding: 6px 10px !important;
  }
  .roster-avatar-thumb {
    width: 28px !important;
    height: 28px !important;
  }
  .match-roster-row .player-ign-row strong {
    font-size: .84rem !important;
  }
  .match-roster-row .player-real-name {
    display: none !important;
  }
  .match-roster-row .rl-role {
    font-size: .68rem !important;
  }

  /* Standings Table on Mobile */
  #standTable th.hide-mobile,
  #standTable td.hide-mobile {
    display: none !important;
  }
  #standTable th, #standTable td {
    padding: 8px 6px !important;
    font-size: .82rem !important;
  }

  /* Podiums */
  .podium { flex-direction: column; align-items: stretch; gap: 10px; }
  .podium-item { width: 100%; }

  /* Buttons & Toolbars */
  .toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
  .toolbar .field { width: 100%; }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: 1.75rem; }
  .hero-sub { font-size: .84rem; }
  .stat { padding: 12px 12px; }
  .stat .num { font-size: 1.35rem; }
  .stat .lbl { font-size: .66rem; }
  .btn { padding: 9px 16px; font-size: .84rem; }
  .btn-sm { padding: 6px 11px; font-size: .74rem; }
}

@media (max-width: 380px) {
  .stat-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .match-hero-team-wrap .team-avatar,
  .match-hero-team-wrap .team-logo {
    width: 46px !important;
    height: 46px !important;
  }
  .match-score-num {
    font-size: 1.55rem !important;
  }
}
