/* =========================================================
   VVIP MBG366 — HEADER & SIDEBAR LAYOUT
   ========================================================= */

:root {
  --bg: #07101d;
  --bg-soft: #0b1727;
  --panel: #0f1e31;
  --panel-2: #142740;
  --line: rgba(255, 255, 255, 0.10);
  --text: #f4f7fb;
  --muted: #9fb0c6;
  --blue: #1e90ff;
  --blue-2: #59b4ff;
  --gold: #f5c84c;
  --danger: #ff6a6a;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.30);
  --radius: 18px;
  --header-height: 78px;
  --sidebar-width: 294px;
  --container: 1440px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top right, rgba(30, 144, 255, 0.15), transparent 34rem),
    linear-gradient(180deg, #06101d 0%, #081424 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.sidebar-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

/* -------------------------
   Header
   ------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.20);
}

.header-top {
  background: #030914;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-top__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.header-top__text {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.header-top__links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  font-weight: 700;
}

.header-top__links a {
  color: #dce7f5;
}

.header-top__links a:hover {
  color: var(--gold);
}

.header-main {
  background: rgba(7, 16, 29, 0.96);
  backdrop-filter: blur(16px);
}

.header-main__inner {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand__mark {
  display: grid;
  place-items: center;
  min-width: 58px;
  height: 43px;
  padding: 0 10px;
  border: 1px solid rgba(245, 200, 76, 0.55);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(245, 200, 76, 0.25), rgba(30, 144, 255, 0.18)),
    #0d1a2c;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  box-shadow: inset 0 0 18px rgba(245, 200, 76, 0.10);
}

.brand__content {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__content strong {
  font-size: clamp(23px, 2vw, 29px);
  letter-spacing: -0.03em;
}

.brand__content small {
  margin-top: 7px;
  color: var(--blue-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.main-nav a {
  position: relative;
  padding: 11px 14px;
  border-radius: 10px;
  color: #c3d0e0;
  font-size: 14px;
  font-weight: 750;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: rgba(30, 144, 255, 0.12);
  color: #ffffff;
}

.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(30, 144, 255, 0.55);
  border-radius: 12px;
  background: linear-gradient(135deg, #1678dc, #1e90ff);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(30, 144, 255, 0.24);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(30, 144, 255, 0.34);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  border-radius: 999px;
  background: #fff;
}

/* -------------------------
   Page layout
   ------------------------- */

.page-layout {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 24px;
  padding: 0 24px 60px 0;
  align-items: start;
}

/* -------------------------
   Sidebar
   ------------------------- */

.site-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 34px);
  align-self: start;
  width: 100%;
  min-height: calc(100vh - var(--header-height) - 34px);
  max-height: calc(100vh - var(--header-height) - 34px);
  overflow-y: auto;
  padding: 20px 18px 28px;
  border-top: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 20px 20px 0;
  background:
    linear-gradient(180deg, rgba(20, 39, 64, 0.98), rgba(10, 24, 41, 0.99));
  box-shadow: 16px 18px 45px rgba(0, 0, 0, 0.28);
  scrollbar-width: thin;
  scrollbar-color: rgba(89, 180, 255, 0.55) transparent;
}

.site-sidebar::-webkit-scrollbar {
  width: 6px;
}

.site-sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(89, 180, 255, 0.55);
}

.sidebar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 4px 16px;
  border-bottom: 1px solid var(--line);
}

.sidebar-head__eyebrow {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.sidebar-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.2;
}

.sidebar-close {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.sidebar-group {
  padding-top: 18px;
}

.sidebar-group h3 {
  margin: 0 0 9px;
  padding: 0 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.sidebar-group a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 43px;
  padding: 10px 11px;
  border-radius: 11px;
  color: #d3deec;
  font-size: 13px;
  font-weight: 700;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.sidebar-group a b {
  color: #7188a3;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.sidebar-group a:hover,
.sidebar-group a.is-active {
  background:
    linear-gradient(90deg, rgba(30, 144, 255, 0.18), rgba(30, 144, 255, 0.05));
  color: #fff;
  transform: translateX(2px);
}

.sidebar-group a.is-active {
  box-shadow: inset 3px 0 0 var(--gold);
}

.sidebar-group a:hover b,
.sidebar-group a.is-active b {
  color: var(--gold);
}

.sidebar-promo {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(245, 200, 76, 0.30);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(245, 200, 76, 0.20), transparent 11rem),
    rgba(0, 0, 0, 0.19);
}

.sidebar-promo__label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.sidebar-promo strong {
  display: block;
  font-size: 15px;
  line-height: 1.4;
}

.sidebar-promo p {
  margin: 9px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.sidebar-promo a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 9px;
  background: var(--gold);
  color: #10141b;
  font-size: 12px;
  font-weight: 900;
}

/* -------------------------
   Main content placeholder
   ------------------------- */

.site-content {
  min-width: 0;
  padding-top: 24px;
}

.content-placeholder {
  min-height: 720px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(30, 144, 255, 0.08), transparent 40%),
    rgba(13, 28, 47, 0.80);
  box-shadow: var(--shadow);
}

.content-placeholder__eyebrow {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.content-placeholder h1 {
  margin: 8px 0 12px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.content-placeholder > p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.placeholder-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 18px;
  margin-top: 38px;
}

.placeholder-stack {
  display: grid;
  gap: 18px;
}

.placeholder-card {
  min-height: 196px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background:
    linear-gradient(
      110deg,
      rgba(255, 255, 255, 0.04) 8%,
      rgba(255, 255, 255, 0.09) 18%,
      rgba(255, 255, 255, 0.04) 33%
    );
  background-size: 240% 100%;
  animation: placeholder-shimmer 2.8s linear infinite;
}

.placeholder-card--large {
  min-height: 410px;
}

@keyframes placeholder-shimmer {
  to {
    background-position-x: -240%;
  }
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(0, 6, 15, 0.72);
  backdrop-filter: blur(4px);
  cursor: default;
}

/* -------------------------
   Responsive
   ------------------------- */

@media (max-width: 1120px) {
  .main-nav {
    display: none;
  }

  .header-main__inner {
    grid-template-columns: auto 1fr auto;
  }

  .menu-toggle {
    display: block;
  }

  .page-layout {
    grid-template-columns: 1fr;
    padding: 0 16px 48px;
  }

  .site-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1200;
    width: min(88vw, 340px);
    min-height: 100vh;
    max-height: 100vh;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0 20px 20px 0;
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  .site-sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: grid;
    place-items: center;
  }

  .sidebar-overlay.is-visible {
    display: block;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 66px;
  }

  .container {
    width: min(calc(100% - 22px), var(--container));
  }

  .header-top {
    display: none;
  }

  .header-main__inner {
    min-height: var(--header-height);
    gap: 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand__mark {
    min-width: 50px;
    height: 39px;
    font-size: 11px;
  }

  .brand__content strong {
    font-size: 21px;
  }

  .brand__content small {
    font-size: 7px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 12px;
    font-size: 11px;
  }

  .page-layout {
    padding: 0 11px 42px;
  }

  .site-content {
    padding-top: 16px;
  }

  .content-placeholder {
    min-height: 580px;
    padding: 24px 18px;
  }

  .content-placeholder h1 {
    font-size: 35px;
  }

  .placeholder-grid {
    grid-template-columns: 1fr;
  }

  .placeholder-card--large {
    min-height: 280px;
  }
}

@media (max-width: 480px) {
  .brand__content small {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .header-main__inner {
    grid-template-columns: auto 1fr;
  }
}


/* =========================================================
   FULL-WIDTH OVERRIDE — SIDEBAR MENEMPEL KE TEPI LAYAR
   ========================================================= */
.page-layout.container {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

@media (min-width: 1121px) {
  .site-sidebar {
    margin-left: 0;
  }

  .content-placeholder {
    border-radius: 18px;
  }
}

/* =========================================================
   HEADER FULL-WIDTH — SELARAS DENGAN SIDEBAR DAN AREA KONTEN
   ========================================================= */

@media (min-width: 1121px) {
  .header-top__inner.container,
  .header-main__inner.container {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  .header-top__inner {
    min-height: 34px;
    padding: 0 24px 0 20px;
  }

  .header-main__inner {
    min-height: var(--header-height);
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr) auto;
    gap: 24px;
    padding: 0 24px 0 0;
  }

  .brand {
    width: 100%;
    min-height: var(--header-height);
    padding: 0 20px;
    border-right: 1px solid var(--line);
    background:
      linear-gradient(90deg, rgba(20, 39, 64, 0.74), rgba(7, 16, 29, 0.12));
  }

  .main-nav {
    justify-content: flex-start;
    min-width: 0;
  }

  .header-cta {
    justify-self: end;
  }

  .site-sidebar {
    top: calc(var(--header-height) + 34px);
  }
}

@media (max-width: 1120px) {
  .header-main__inner.container {
    width: min(calc(100% - 32px), var(--container));
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .header-main__inner.container {
    width: min(calc(100% - 22px), var(--container));
  }
}

/* =========================================================
   THEME SWITCHER — LAYAR GELAP DAN TERANG
   ========================================================= */

html {
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;

  --bg: #edf3fa;
  --bg-soft: #f7faff;
  --panel: #ffffff;
  --panel-2: #eaf2fb;
  --line: rgba(21, 45, 72, 0.13);
  --text: #10243a;
  --muted: #60758c;
  --blue: #087bd8;
  --blue-2: #176da9;
  --gold: #b67a00;
  --danger: #d63e3e;
  --shadow: 0 18px 45px rgba(31, 60, 91, 0.13);
}

body,
.site-header,
.header-top,
.header-main,
.brand,
.site-sidebar,
.content-placeholder,
.placeholder-card,
.menu-toggle,
.sidebar-close,
.theme-toggle {
  transition:
    background-color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: max-content;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.13);
}

.theme-toggle:hover {
  border-color: rgba(30, 144, 255, 0.48);
  transform: translateY(-1px);
}

.theme-toggle__icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--gold);
  font-size: 17px;
  line-height: 1;
}

.theme-toggle__text {
  min-width: 40px;
  text-align: left;
}

.menu-toggle span {
  background: var(--text);
}

/* -------------------------
   Light theme
   ------------------------- */

html[data-theme="light"] body {
  background:
    radial-gradient(circle at top right, rgba(30, 144, 255, 0.13), transparent 34rem),
    linear-gradient(180deg, #f8fbff 0%, #eaf2fa 100%);
}

html[data-theme="light"] .site-header {
  box-shadow: 0 10px 30px rgba(31, 60, 91, 0.12);
}

html[data-theme="light"] .header-top {
  background: #e8f0f9;
  border-bottom-color: rgba(21, 45, 72, 0.10);
}

html[data-theme="light"] .header-top__links a {
  color: #304b66;
}

html[data-theme="light"] .header-main {
  background: rgba(255, 255, 255, 0.94);
}

html[data-theme="light"] .brand__mark {
  border-color: rgba(182, 122, 0, 0.34);
  background:
    linear-gradient(145deg, rgba(245, 200, 76, 0.20), rgba(30, 144, 255, 0.12)),
    #f3f7fc;
  box-shadow: inset 0 0 18px rgba(182, 122, 0, 0.07);
}

html[data-theme="light"] .main-nav a {
  color: #536b82;
}

html[data-theme="light"] .main-nav a:hover,
html[data-theme="light"] .main-nav a.is-active {
  background: rgba(8, 123, 216, 0.10);
  color: #10243a;
}

html[data-theme="light"] .site-sidebar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(238, 245, 252, 0.99));
  box-shadow: 16px 18px 45px rgba(31, 60, 91, 0.12);
}

html[data-theme="light"] .sidebar-close {
  background: rgba(16, 36, 58, 0.05);
}

html[data-theme="light"] .sidebar-group a {
  color: #304a63;
}

html[data-theme="light"] .sidebar-group a b {
  color: #7990a6;
}

html[data-theme="light"] .sidebar-group a:hover,
html[data-theme="light"] .sidebar-group a.is-active {
  background:
    linear-gradient(90deg, rgba(8, 123, 216, 0.13), rgba(8, 123, 216, 0.035));
  color: #10243a;
}

html[data-theme="light"] .sidebar-promo {
  background:
    radial-gradient(circle at top right, rgba(245, 200, 76, 0.18), transparent 11rem),
    rgba(255, 255, 255, 0.70);
}

html[data-theme="light"] .content-placeholder {
  background:
    linear-gradient(135deg, rgba(8, 123, 216, 0.08), transparent 40%),
    rgba(255, 255, 255, 0.90);
}

html[data-theme="light"] .placeholder-card {
  border-color: rgba(21, 45, 72, 0.09);
  background:
    linear-gradient(
      110deg,
      rgba(19, 72, 113, 0.04) 8%,
      rgba(19, 72, 113, 0.09) 18%,
      rgba(19, 72, 113, 0.04) 33%
    );
  background-size: 240% 100%;
}

html[data-theme="light"] .sidebar-overlay {
  background: rgba(28, 43, 60, 0.48);
}

@media (min-width: 1121px) {
  html[data-theme="light"] .brand {
    background:
      linear-gradient(90deg, rgba(224, 236, 248, 0.95), rgba(255, 255, 255, 0.30));
  }
}

@media (max-width: 720px) {
  .theme-toggle {
    min-width: 42px;
    min-height: 40px;
    padding: 0 10px;
  }

  .theme-toggle__text {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-main__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .header-actions {
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .site-header,
  .header-top,
  .header-main,
  .brand,
  .site-sidebar,
  .content-placeholder,
  .placeholder-card,
  .menu-toggle,
  .sidebar-close,
  .theme-toggle {
    transition: none;
  }
}

/* =========================================================
   MODULAR PHP PORTAL — LOGO, HOME, CATEGORY, ARTICLE, FOOTER
   ========================================================= */

.brand__mark {
  overflow: hidden;
  padding: 0;
}

.brand__mark img {
  display: block;
  width: 43px;
  height: 43px;
  object-fit: cover;
  border-radius: 11px;
}

.page-heading {
  margin-bottom: 22px;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(30, 144, 255, 0.11), transparent 46%),
    var(--panel);
  box-shadow: var(--shadow);
}

.page-heading__eyebrow,
.section-title__eyebrow,
.article-header__eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-heading h1,
.article-header h1 {
  margin: 8px 0 12px;
  color: var(--text);
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.page-heading p,
.article-header__lead {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--blue-2);
}

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  display: grid;
  align-items: end;
  padding: clamp(26px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 82% 18%, rgba(143, 52, 255, 0.30), transparent 19rem),
    radial-gradient(circle at 12% 82%, rgba(0, 183, 255, 0.25), transparent 22rem),
    linear-gradient(135deg, #0e1e35 0%, #091323 50%, #15102c 100%);
  box-shadow: var(--shadow);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 12, 24, 0.25), transparent),
    repeating-linear-gradient(
      120deg,
      transparent 0,
      transparent 35px,
      rgba(255, 255, 255, 0.018) 36px,
      transparent 37px
    );
  pointer-events: none;
}

.home-hero__content {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.home-hero h1 {
  margin: 10px 0 15px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.home-hero p {
  max-width: 720px;
  margin: 0;
  color: #b9cae0;
  font-size: 17px;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 24px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 900;
}

.button-primary {
  background: linear-gradient(135deg, #1678dc, #1e90ff);
  color: #fff;
  box-shadow: 0 10px 24px rgba(30, 144, 255, 0.24);
}

.button-secondary {
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: #fff;
}

.content-section {
  margin-top: 25px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-title h2 {
  margin: 4px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section-title > a {
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 850;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--bg-soft);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: rgba(30, 144, 255, 0.42);
  box-shadow: 0 16px 34px rgba(0,0,0,0.18);
}

.article-card__visual {
  min-height: 170px;
  display: flex;
  align-items: end;
  padding: 16px;
  background:
    radial-gradient(circle at 80% 20%, rgba(147, 51, 234, 0.50), transparent 10rem),
    radial-gradient(circle at 10% 88%, rgba(0, 183, 255, 0.45), transparent 12rem),
    linear-gradient(140deg, #0b1930, #131126);
}

.article-card__category {
  display: inline-flex;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,0.17);
  border-radius: 999px;
  background: rgba(3, 9, 20, 0.60);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-card__body {
  padding: 17px;
}

.article-card h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.article-card__meta {
  margin-top: 14px;
  color: var(--blue-2);
  font-size: 11px;
  font-weight: 850;
}

.empty-state {
  padding: 36px 24px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.article-page {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.article-header {
  padding: clamp(24px, 5vw, 52px);
  border-bottom: 1px solid var(--line);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 19px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.article-featured {
  min-height: clamp(240px, 40vw, 480px);
  display: grid;
  place-items: center;
  padding: 30px;
  background:
    radial-gradient(circle at 76% 20%, rgba(148, 50, 236, 0.50), transparent 22rem),
    radial-gradient(circle at 12% 78%, rgba(0, 184, 255, 0.44), transparent 25rem),
    linear-gradient(145deg, #081427, #17102f);
  color: rgba(255,255,255,0.82);
  text-align: center;
}

.article-featured span {
  max-width: 650px;
  font-size: clamp(22px, 4vw, 44px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.article-content {
  max-width: 900px;
  padding: clamp(25px, 5vw, 54px);
  color: var(--text);
  font-size: 16px;
  line-height: 1.82;
}

.article-content p {
  margin: 0 0 1.35em;
}

.article-content h2 {
  margin: 1.55em 0 0.55em;
  font-size: clamp(25px, 3vw, 35px);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.article-content h3 {
  margin: 1.35em 0 0.45em;
  font-size: 22px;
  line-height: 1.25;
}

.article-content ul,
.article-content ol {
  padding-left: 1.3em;
}

.article-note {
  margin: 26px 0;
  padding: 18px;
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: var(--bg-soft);
}

.related-articles {
  padding: 0 clamp(25px, 5vw, 54px) clamp(25px, 5vw, 54px);
}

.related-articles h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.related-item {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg-soft);
}

.related-item small {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

.related-item strong {
  line-height: 1.35;
}

.site-footer {
  margin-top: 20px;
  padding: 26px 24px;
  border-top: 1px solid var(--line);
  background: rgba(3, 9, 20, 0.62);
}

.site-footer__inner {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.site-footer a:hover {
  color: var(--blue-2);
}

html[data-theme="light"] .home-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(143, 52, 255, 0.18), transparent 19rem),
    radial-gradient(circle at 12% 82%, rgba(0, 146, 210, 0.16), transparent 22rem),
    linear-gradient(135deg, #e9f4ff 0%, #f8fbff 55%, #f2ebff 100%);
}

html[data-theme="light"] .home-hero p {
  color: #526a82;
}

html[data-theme="light"] .button-secondary {
  border-color: rgba(16,36,58,0.15);
  background: rgba(255,255,255,0.68);
  color: #10243a;
}

html[data-theme="light"] .site-footer {
  background: rgba(234, 242, 250, 0.82);
}

@media (max-width: 980px) {
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .article-grid,
  .related-list {
    grid-template-columns: 1fr;
  }

  .section-title,
  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-hero {
    min-height: 350px;
  }

  .article-content {
    font-size: 15px;
  }
}

/* =========================================================
   JADWAL & HASIL BOLA
   ========================================================= */

.schedule-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 26px;
  padding: clamp(25px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 18%, rgba(133, 62, 255, 0.26), transparent 18rem),
    radial-gradient(circle at 12% 85%, rgba(30, 144, 255, 0.22), transparent 22rem),
    linear-gradient(135deg, #0d1d33 0%, #091423 58%, #17102d 100%);
  box-shadow: var(--shadow);
}

.schedule-hero h1 {
  margin: 8px 0 13px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.schedule-hero p {
  max-width: 760px;
  margin: 0;
  color: #b5c6da;
}

.schedule-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 10px;
}

.schedule-summary__item {
  min-width: 100px;
  padding: 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(3, 9, 20, 0.42);
  text-align: center;
}

.schedule-summary__item strong {
  display: block;
  color: #fff;
  font-size: 25px;
  line-height: 1;
}

.schedule-summary__item span {
  display: block;
  margin-top: 7px;
  color: #adc0d8;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.schedule-controls {
  display: grid;
  grid-template-columns: minmax(210px, 1.4fr) repeat(4, minmax(140px, 0.75fr)) auto;
  gap: 12px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.schedule-control {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.schedule-control label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-control input,
.schedule-control select {
  width: 100%;
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: var(--bg-soft);
  color: var(--text);
}

.schedule-control input:focus,
.schedule-control select:focus {
  border-color: rgba(30, 144, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.10);
}

.schedule-control--button {
  justify-content: flex-end;
}

.schedule-control--button button {
  min-height: 43px;
  padding: 0 15px;
  border: 1px solid rgba(30, 144, 255, 0.44);
  border-radius: 10px;
  background: rgba(30, 144, 255, 0.10);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.schedule-control--button button:hover {
  background: rgba(30, 144, 255, 0.18);
}

.schedule-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 17px 0;
}

.schedule-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.schedule-toolbar p strong {
  color: var(--text);
}

.schedule-quick-filters {
  display: inline-flex;
  gap: 7px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.schedule-quick-filters button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.schedule-quick-filters button:hover,
.schedule-quick-filters button.is-active {
  background: linear-gradient(135deg, #1678dc, #1e90ff);
  color: #fff;
}

.schedule-list {
  display: grid;
  gap: 19px;
}

.schedule-day {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.schedule-day[hidden],
.schedule-match[hidden] {
  display: none !important;
}

.schedule-day__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(30, 144, 255, 0.09), transparent);
}

.schedule-day__eyebrow {
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.schedule-day__header h2 {
  margin: 3px 0 0;
  font-size: 20px;
  line-height: 1.2;
}

.schedule-day__count {
  min-width: max-content;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.schedule-day__matches {
  display: grid;
}

.schedule-match {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.schedule-match:last-child {
  border-bottom: 0;
}

.schedule-match:hover {
  background: rgba(30, 144, 255, 0.035);
}

.schedule-match__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.schedule-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(30, 144, 255, 0.13);
  color: var(--blue-2);
}

.schedule-match__scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(105px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.schedule-team {
  min-width: 0;
}

.schedule-team strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(15px, 2vw, 19px);
  line-height: 1.3;
}

.schedule-team--away {
  text-align: right;
}

.schedule-score {
  min-width: 105px;
  text-align: center;
}

.schedule-score__numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 25px;
  line-height: 1;
}

.schedule-score__numbers strong {
  min-width: 24px;
}

.schedule-score__numbers span {
  color: var(--muted);
}

.schedule-score__time {
  display: block;
  color: var(--gold);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.schedule-score__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 21px;
  margin-top: 7px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(105, 233, 167, 0.13);
  color: #75e7aa;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.07em;
}

.schedule-score__status--upcoming {
  background: rgba(245, 200, 76, 0.13);
  color: var(--gold);
}

.schedule-score small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.schedule-match__venue {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.schedule-empty,
.schedule-note {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  text-align: center;
}

.schedule-empty p,
.schedule-note p {
  margin: 7px auto 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 12px;
}

.schedule-note {
  margin-top: 19px;
  text-align: left;
}

.schedule-note strong {
  color: var(--gold);
}

html[data-theme="light"] .schedule-hero {
  background:
    radial-gradient(circle at 88% 18%, rgba(133, 62, 255, 0.15), transparent 18rem),
    radial-gradient(circle at 12% 85%, rgba(30, 144, 255, 0.14), transparent 22rem),
    linear-gradient(135deg, #edf6ff 0%, #ffffff 58%, #f3ecff 100%);
}

html[data-theme="light"] .schedule-hero p {
  color: #526a82;
}

html[data-theme="light"] .schedule-summary__item {
  border-color: rgba(21, 45, 72, 0.11);
  background: rgba(255, 255, 255, 0.69);
}

html[data-theme="light"] .schedule-summary__item strong {
  color: #10243a;
}

html[data-theme="light"] .schedule-summary__item span {
  color: #60758c;
}

@media (max-width: 1280px) {
  .schedule-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .schedule-control--search {
    grid-column: span 2;
  }
}

@media (max-width: 820px) {
  .schedule-hero {
    grid-template-columns: 1fr;
  }

  .schedule-summary {
    width: 100%;
  }

  .schedule-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-control--search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 580px) {
  .schedule-controls {
    grid-template-columns: 1fr;
  }

  .schedule-control--search {
    grid-column: auto;
  }

  .schedule-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .schedule-quick-filters {
    width: 100%;
  }

  .schedule-quick-filters button {
    flex: 1;
  }

  .schedule-match__scoreboard {
    grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
    gap: 9px;
  }

  .schedule-score {
    min-width: 72px;
  }

  .schedule-score__numbers {
    gap: 5px;
    font-size: 20px;
  }

  .schedule-team strong {
    font-size: 13px;
  }

  .schedule-match {
    padding: 16px 13px;
  }

  .schedule-match__venue {
    justify-content: flex-start;
    text-align: left;
  }
}

/* =========================================================
   KLASEMEN DAN BAGAN FASE GUGUR
   ========================================================= */

.standings-hero,
.bracket-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 20%, rgba(132, 55, 255, 0.24), transparent 18rem),
    radial-gradient(circle at 10% 80%, rgba(30, 144, 255, 0.20), transparent 22rem),
    linear-gradient(135deg, #0d1d33 0%, #091423 58%, #17102d 100%);
  box-shadow: var(--shadow);
}

.standings-hero h1,
.bracket-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.standings-hero p,
.bracket-hero p {
  max-width: 760px;
  margin: 0;
  color: #b5c6da;
}

.tournament-page-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: max-content;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(3, 9, 20, 0.43);
}

.tournament-page-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: #b7c7da;
  font-size: 11px;
  font-weight: 850;
}

.tournament-page-links a:hover,
.tournament-page-links a.is-active {
  background: linear-gradient(135deg, #1678dc, #1e90ff);
  color: #fff;
}

.standings-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 17px 0;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.standings-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.legend-dot--direct {
  background: #2b9eff;
}

.legend-dot--third {
  background: #f5c84c;
}

.legend-dot--out {
  background: #7e8da0;
}

.standings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.standings-card,
.third-place-section,
.bracket-shell,
.tournament-note {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.standings-card__header,
.third-place-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 19px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(30, 144, 255, 0.09), transparent);
}

.standings-card__header span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.standings-card__header h2,
.third-place-section__header h2 {
  margin: 4px 0 0;
  font-size: 21px;
}

.standings-card__header a {
  color: var(--blue-2);
  font-size: 10px;
  font-weight: 850;
}

.standings-table-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
}

.standings-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 11px;
}

.standings-table th,
.standings-table td {
  padding: 11px 9px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}

.standings-table th {
  color: var(--muted);
  background: var(--bg-soft);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.standings-table tbody tr:last-child td {
  border-bottom: 0;
}

.standings-table tbody tr:hover {
  background: rgba(30, 144, 255, 0.035);
}

.standings-table tr.is-direct {
  box-shadow: inset 3px 0 0 #2b9eff;
}

.standings-table tr.is-third {
  box-shadow: inset 3px 0 0 #f5c84c;
}

.standings-table tr.is-eliminated {
  box-shadow: inset 3px 0 0 rgba(126, 141, 160, 0.44);
}

.standings-team-col {
  min-width: 180px;
  text-align: left !important;
}

.standings-team-col strong {
  vertical-align: middle;
}

.team-flag {
  display: inline-grid;
  place-items: center;
  width: 23px;
  margin-right: 6px;
  font-size: 17px;
  vertical-align: middle;
}

.standings-position,
.standings-points {
  color: var(--text);
  font-weight: 950;
}

.standings-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(30, 144, 255, 0.11);
  color: var(--blue-2);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

tr.is-third .standings-status {
  background: rgba(245, 200, 76, 0.12);
  color: var(--gold);
}

tr.is-eliminated .standings-status {
  background: rgba(126, 141, 160, 0.11);
  color: var(--muted);
}

.third-place-section {
  margin-top: 20px;
}

.third-place-section__header p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.standings-table--third {
  min-width: 860px;
}

.tournament-note {
  margin-top: 19px;
  padding: 20px;
}

.tournament-note strong {
  color: var(--gold);
}

.tournament-note p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* Bracket */

.bracket-shell {
  margin-top: 18px;
  padding: 15px;
}

.bracket-scroll {
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

.bracket-board {
  display: grid;
  grid-template-columns:
    175px 175px 175px 175px 195px
    175px 175px 175px 175px;
  gap: 24px;
  min-width: 1775px;
  padding: 15px 5px 25px;
}

.bracket-column {
  min-width: 0;
}

.bracket-column > h2 {
  min-height: 32px;
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.bracket-column__matches {
  display: flex;
  flex-direction: column;
}

.bracket-column--r32 .bracket-column__matches {
  gap: 19px;
}

.bracket-column--r16 .bracket-column__matches {
  padding-top: 57px;
  gap: 103px;
}

.bracket-column--qf .bracket-column__matches {
  padding-top: 171px;
  gap: 331px;
}

.bracket-column--sf .bracket-column__matches {
  padding-top: 399px;
}

.bracket-column--center .bracket-column__matches {
  padding-top: 314px;
  gap: 26px;
}

.bracket-center-label {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.bracket-match {
  position: relative;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.13);
}

.bracket-column--left:not(.bracket-column--sf) .bracket-match::after,
.bracket-column--left.bracket-column--sf .bracket-match::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -25px;
  width: 25px;
  border-top: 1px solid rgba(111, 137, 163, 0.38);
}

.bracket-column--right .bracket-match::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -25px;
  width: 25px;
  border-top: 1px solid rgba(111, 137, 163, 0.38);
}

.bracket-column--center .bracket-match::before,
.bracket-column--center .bracket-match::after {
  display: none;
}

.bracket-match__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 7px;
  font-weight: 850;
}

.bracket-team {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 5px 8px;
  border-bottom: 1px solid var(--line);
}

.bracket-team:last-of-type {
  border-bottom: 0;
}

.bracket-team.is-winner {
  box-shadow: inset -3px 0 0 #55d991;
  background: rgba(85, 217, 145, 0.045);
}

.bracket-team .team-flag {
  width: 18px;
  margin: 0;
  font-size: 13px;
}

.bracket-team strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-team small {
  color: var(--muted);
  font-size: 7px;
}

.bracket-team b {
  min-width: 13px;
  text-align: right;
  font-size: 10px;
}

.bracket-match footer {
  overflow: hidden;
  padding: 6px 8px;
  color: var(--muted);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="light"] .standings-hero,
html[data-theme="light"] .bracket-hero {
  background:
    radial-gradient(circle at 88% 20%, rgba(132, 55, 255, 0.14), transparent 18rem),
    radial-gradient(circle at 10% 80%, rgba(30, 144, 255, 0.13), transparent 22rem),
    linear-gradient(135deg, #edf6ff 0%, #ffffff 58%, #f3ecff 100%);
}

html[data-theme="light"] .standings-hero p,
html[data-theme="light"] .bracket-hero p {
  color: #526a82;
}

html[data-theme="light"] .tournament-page-links {
  border-color: rgba(21, 45, 72, 0.11);
  background: rgba(255, 255, 255, 0.70);
}

html[data-theme="light"] .tournament-page-links a {
  color: #506780;
}

@media (max-width: 1100px) {
  .standings-grid {
    grid-template-columns: 1fr;
  }

  .standings-hero,
  .bracket-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .tournament-page-links {
    min-width: 0;
  }
}

@media (max-width: 650px) {
  .third-place-section__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .third-place-section__header p {
    text-align: left;
  }

  .tournament-page-links {
    width: 100%;
  }

  .tournament-page-links a {
    flex: 1;
    justify-content: center;
    text-align: center;
  }

  .bracket-shell {
    padding: 10px;
  }
}

/* =========================================================
   BENDERA NEGARA FIFA
   ========================================================= */

.flags-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 20%, rgba(132, 55, 255, 0.22), transparent 18rem),
    radial-gradient(circle at 10% 80%, rgba(30, 144, 255, 0.18), transparent 22rem),
    linear-gradient(135deg, #0d1d33 0%, #091423 58%, #17102d 100%);
  box-shadow: var(--shadow);
}

.flags-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.flags-hero p {
  max-width: 760px;
  margin: 0;
  color: #b5c6da;
}

.flags-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.flag-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.flag-card:hover {
  border-color: rgba(30, 144, 255, 0.34);
  transform: translateY(-2px);
}

.flag-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  font-size: 30px;
  line-height: 1;
}

.flag-card__body strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
}

.flag-card__body small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.schedule-team .team-flag,
.standings-team-col .team-flag,
.bracket-team .team-flag {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.schedule-team .team-name,
.standings-team-col .team-name,
.bracket-team .team-name {
  display: inline-block;
  vertical-align: middle;
}

.schedule-team strong,
.schedule-team strong .team-name {
  font-size: inherit;
}

.schedule-team .team-flag {
  width: 26px;
  margin-right: 6px;
  font-size: 18px;
  vertical-align: middle;
}

.schedule-team--away .team-flag {
  margin-right: 0;
  margin-left: 6px;
}

.standings-team-col .team-flag {
  width: 23px;
  margin-right: 6px;
  font-size: 17px;
  vertical-align: middle;
}

.bracket-team .team-flag {
  width: 18px;
  margin: 0;
  font-size: 13px;
  vertical-align: middle;
}

html[data-theme="light"] .flags-hero {
  background:
    radial-gradient(circle at 88% 20%, rgba(132, 55, 255, 0.14), transparent 18rem),
    radial-gradient(circle at 10% 80%, rgba(30, 144, 255, 0.13), transparent 22rem),
    linear-gradient(135deg, #edf6ff 0%, #ffffff 58%, #f3ecff 100%);
}

html[data-theme="light"] .flags-hero p {
  color: #526a82;
}

@media (max-width: 1100px) {
  .flags-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .flags-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .flags-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .flags-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   PIALA DUNIA 2026 LANDING
   ========================================================= */

.worldcup-page {
  display: grid;
  gap: 22px;
}

.worldcup-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: end;
  gap: 30px;
  min-height: 490px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 78% 18%, rgba(150, 48, 255, 0.42), transparent 20rem),
    radial-gradient(circle at 12% 78%, rgba(0, 177, 255, 0.32), transparent 25rem),
    linear-gradient(135deg, #071327, #10152c 52%, #20103b);
  box-shadow: var(--shadow);
}

.worldcup-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      120deg,
      transparent 0,
      transparent 42px,
      rgba(255,255,255,0.025) 43px,
      transparent 44px
    );
  pointer-events: none;
}

.worldcup-hero__content,
.worldcup-final-card {
  position: relative;
  z-index: 1;
}

.worldcup-kicker {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.worldcup-hero h1 {
  max-width: 870px;
  margin: 14px 0;
  color: #fff;
  font-size: clamp(40px, 6vw, 75px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.worldcup-hero p {
  max-width: 720px;
  margin: 0;
  color: #bccbe0;
  font-size: 17px;
}

.worldcup-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.worldcup-final-card {
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 18px;
  background: rgba(3, 8, 19, 0.60);
  backdrop-filter: blur(10px);
}

.worldcup-final-card > span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.worldcup-final-card time {
  display: block;
  margin: 6px 0 18px;
  color: #b6c7dc;
  font-size: 11px;
}

.worldcup-final-team {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.worldcup-final-team b {
  font-size: 26px;
}

.worldcup-final-team strong {
  color: #fff;
  font-size: 18px;
}

.worldcup-final-vs {
  color: #8fa5bd;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.worldcup-final-card > small {
  display: block;
  margin-top: 14px;
  color: #90a4bd;
  font-size: 9px;
}

.worldcup-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.worldcup-links a {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.worldcup-links a:hover {
  border-color: rgba(30, 144, 255, 0.38);
  transform: translateY(-2px);
}

.worldcup-links span,
.worldcup-links strong {
  display: block;
}

.worldcup-links span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.worldcup-links strong {
  margin-top: 5px;
  color: var(--text);
  font-size: 16px;
}

.worldcup-section {
  padding: clamp(21px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.worldcup-section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.worldcup-section__header span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.worldcup-section__header h2 {
  margin: 5px 0 0;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.worldcup-section__header > a {
  color: var(--blue-2);
  font-size: 11px;
  font-weight: 850;
}

.worldcup-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.worldcup-feature-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
}

.worldcup-feature-card.is-large {
  grid-row: span 2;
}

.worldcup-feature-card__visual {
  min-height: 190px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background:
    radial-gradient(circle at 80% 20%, rgba(159, 45, 255, 0.55), transparent 12rem),
    radial-gradient(circle at 15% 80%, rgba(0, 185, 255, 0.48), transparent 14rem),
    linear-gradient(145deg, #09162a, #17102e);
}

.worldcup-feature-card.is-large .worldcup-feature-card__visual {
  min-height: 330px;
}

.worldcup-feature-card__visual span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(3,8,19,0.65);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.worldcup-feature-card__body {
  padding: 17px;
}

.worldcup-feature-card__body small,
.worldcup-latest-card small {
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.worldcup-feature-card h3,
.worldcup-latest-card h3 {
  margin: 7px 0 8px;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.worldcup-feature-card p,
.worldcup-latest-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.worldcup-feature-card b {
  display: inline-block;
  margin-top: 13px;
  color: var(--blue-2);
  font-size: 10px;
}

.worldcup-moment-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 185px);
  gap: 13px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.worldcup-moment-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
}

.worldcup-moment-card > span {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 1;
  padding: 4px 6px;
  border-radius: 6px;
  background: #e92d65;
  color: #fff;
  font-size: 7px;
  font-weight: 900;
}

.worldcup-moment-card__visual {
  min-height: 185px;
  background:
    radial-gradient(circle at 75% 25%, rgba(148, 50, 236, 0.55), transparent 8rem),
    radial-gradient(circle at 20% 80%, rgba(0, 184, 255, 0.48), transparent 9rem),
    linear-gradient(145deg, #081427, #17102f);
}

.worldcup-moment-card strong {
  display: block;
  padding: 13px;
  font-size: 12px;
}

.worldcup-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.worldcup-latest-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
}

.worldcup-latest-card__visual {
  min-height: 135px;
  background:
    radial-gradient(circle at 80% 20%, rgba(146, 51, 234, 0.40), transparent 9rem),
    linear-gradient(145deg, #0a1930, #151126);
}

.worldcup-latest-card > div:last-child {
  padding: 14px;
}

.worldcup-experience {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 17px;
}

.worldcup-experience__main,
.worldcup-experience__side {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.worldcup-experience__main {
  background:
    radial-gradient(circle at 75% 20%, rgba(0, 177, 255, 0.35), transparent 18rem),
    linear-gradient(145deg, #07152a, #101d36);
  color: #fff;
}

.worldcup-experience__side {
  background:
    radial-gradient(circle at 75% 20%, rgba(158, 45, 255, 0.38), transparent 14rem),
    linear-gradient(145deg, #140d2c, #251044);
  color: #fff;
}

.worldcup-experience span {
  color: #a9bed5;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.worldcup-experience h2,
.worldcup-experience h3 {
  margin: 7px 0 11px;
  letter-spacing: -0.04em;
}

.worldcup-experience h2 {
  font-size: 35px;
}

.worldcup-experience p {
  max-width: 620px;
  margin: 0;
  color: #b8c9dd;
}

.worldcup-experience a {
  display: inline-block;
  margin-top: 18px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.worldcup-ranking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.worldcup-ranking-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--bg-soft);
}

.worldcup-ranking-card > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.worldcup-ranking-card h3 {
  margin: 4px 0 0;
}

.worldcup-ranking-card header small,
.worldcup-ranking-card header span {
  color: var(--muted);
  font-size: 9px;
}

.worldcup-ranking-row {
  display: grid;
  grid-template-columns: 25px 28px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.worldcup-ranking-row:last-child {
  border-bottom: 0;
}

.worldcup-ranking-row .team-flag {
  width: 24px;
  margin: 0;
  font-size: 16px;
}

.worldcup-ranking-row small {
  color: #60d89c;
}

.worldcup-disclaimer {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.worldcup-disclaimer strong {
  color: var(--gold);
}

.worldcup-disclaimer p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}

html[data-theme="light"] .worldcup-hero {
  background:
    radial-gradient(circle at 78% 18%, rgba(150, 48, 255, 0.22), transparent 20rem),
    radial-gradient(circle at 12% 78%, rgba(0, 177, 255, 0.18), transparent 25rem),
    linear-gradient(135deg, #e9f4ff, #f7faff 52%, #f3ebff);
}

html[data-theme="light"] .worldcup-hero h1,
html[data-theme="light"] .worldcup-final-team strong {
  color: #10243a;
}

html[data-theme="light"] .worldcup-hero p {
  color: #526a82;
}

html[data-theme="light"] .worldcup-final-card {
  border-color: rgba(21,45,72,0.12);
  background: rgba(255,255,255,0.72);
}

html[data-theme="light"] .worldcup-final-card time,
html[data-theme="light"] .worldcup-final-card > small {
  color: #60758c;
}

@media (max-width: 1050px) {
  .worldcup-hero {
    grid-template-columns: 1fr;
  }

  .worldcup-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .worldcup-latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .worldcup-feature-grid,
  .worldcup-ranking-grid,
  .worldcup-experience {
    grid-template-columns: 1fr;
  }

  .worldcup-feature-card.is-large {
    grid-row: auto;
  }

  .worldcup-feature-card.is-large .worldcup-feature-card__visual {
    min-height: 220px;
  }
}

@media (max-width: 560px) {
  .worldcup-links,
  .worldcup-latest-grid {
    grid-template-columns: 1fr;
  }

  .worldcup-section__header {
    align-items: flex-start;
    flex-direction: column;
  }
}
