:root {
  --bg-base: #0d0a14;
  --bg-card: #160f24;
  --bg-card-hover: #1e1535;
  --amethyst: #7c3aed;
  --amethyst-bright: #a855f7;
  --amethyst-light: #c084fc;
  --crystal: #e9d5ff;
  --gold: #f59e0b;
  --silver: #94a3b8;
  --bronze: #b45309;
  --text-primary: #f5f0ff;
  --text-muted: #8b7aa8;
  --border-amethyst: rgba(168, 85, 247, 0.2);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text-primary);
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124, 58, 237, 0.22), transparent 70%),
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(168, 85, 247, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 5% 30%, rgba(124, 58, 237, 0.1), transparent 60%);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(60deg, transparent 0 38px, rgba(168, 85, 247, 0.035) 38px 39px),
    repeating-linear-gradient(-60deg, transparent 0 38px, rgba(168, 85, 247, 0.035) 38px 39px),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(168, 85, 247, 0.02) 38px 39px);
  mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 30%, transparent 85%);
}

[v-cloak] { display: none; }

.app { position: relative; z-index: 1; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  height: 68px;
  background: rgba(13, 10, 20, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border-amethyst);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.2px;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

.brand .gem { font-size: 22px; filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6)); }

.brand .gem-text {
  background: linear-gradient(120deg, var(--crystal), var(--amethyst-light) 60%, var(--amethyst-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; align-items: center; gap: 6px; }

.nav-link {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-muted);
  padding: 9px 15px;
  border-radius: 10px;
  transition: color .22s ease, background .22s ease;
}

.nav-link .nlabel { position: relative; }

.nav-link:hover { color: var(--crystal); background: rgba(168, 85, 247, 0.08); }

.nav-link.active { color: var(--crystal); }

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--amethyst), var(--amethyst-bright), var(--crystal));
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.9);
}

.nav-icon { display: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

.page { padding: 40px 0 96px; }

@keyframes pageIn { from { transform: translateY(18px); } to { transform: translateY(0); } }

.page { opacity: 1; animation: pageIn .42s cubic-bezier(.2, .7, .2, 1); }

.hero { text-align: center; padding: 46px 0 30px; position: relative; }

.hero-crest {
  width: 96px;
  height: 96px;
  margin: 0 auto 22px;
  display: block;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--border-amethyst);
  filter: drop-shadow(0 6px 24px rgba(168, 85, 247, 0.55));
  animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-9px) rotate(2deg); }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amethyst-light);
  padding: 6px 16px;
  border: 1px solid var(--border-amethyst);
  border-radius: 100px;
  background: rgba(124, 58, 237, 0.08);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(40px, 8vw, 76px);
  line-height: 1.02;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.hero h1 .accent {
  background: linear-gradient(115deg, var(--crystal) 0%, var(--amethyst-light) 45%, var(--amethyst-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .cluster { font-size: clamp(15px, 3vw, 19px); color: var(--text-muted); font-weight: 500; letter-spacing: .3px; }
.hero .cluster b { color: var(--crystal); font-weight: 600; }

.merdeka-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.merdeka-line .rule { height: 1px; width: min(120px, 18vw); background: linear-gradient(90deg, transparent, var(--amethyst)); }
.merdeka-line .rule.r { background: linear-gradient(90deg, var(--amethyst), transparent); }

.section-head { display: flex; align-items: baseline; gap: 14px; margin: 56px 0 24px; }

.section-head h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -.3px;
}

.section-head .meta { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.section-head .line { flex: 1; height: 1px; background: var(--border-amethyst); }

.podium-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.18fr 1fr;
  gap: 18px;
  align-items: end;
  max-width: 760px;
  margin: 8px auto 0;
  padding: 40px 0 0;
}

.podium-stage::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amethyst-bright), transparent);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.6);
}

.pod {
  position: relative;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-card-hover), var(--bg-card));
  border: 1px solid var(--border-amethyst);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  padding: 22px 12px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pod .crown { font-size: 34px; line-height: 1; margin-bottom: 6px; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .4)); }
.pod .rt { font-family: var(--serif); font-weight: 700; font-size: 21px; }
.pod .pts { font-size: 13px; color: var(--text-muted); }
.pod .pts b { color: var(--crystal); font-size: 15px; font-weight: 700; }
.pod .medal-row { display: flex; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--text-muted); }
.pod .medal-row span { display: inline-flex; align-items: center; gap: 3px; }

.pod .rankno {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 30px;
  color: rgba(168, 85, 247, 0.18);
}

.pod-1 {
  height: 230px;
  justify-content: flex-end;
  border-color: rgba(168, 85, 247, 0.5);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.28), var(--bg-card));
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.25), 0 -10px 50px rgba(124, 58, 237, 0.35);
  animation: podpulse 3.2s ease-in-out infinite;
}

@keyframes podpulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.25), 0 -10px 44px rgba(124, 58, 237, 0.3); }
  50% { box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.45), 0 -14px 64px rgba(168, 85, 247, 0.55); }
}

.pod-1 .crown { font-size: 44px; }
.pod-1 .rt { font-size: 25px; }

.pod-1 .glow-ring {
  position: absolute;
  inset: -2px -2px auto -2px;
  height: 60%;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 150, 255, 0.4), transparent 70%);
  border-radius: 16px 16px 0 0;
  pointer-events: none;
}

.pod-2 { height: 178px; justify-content: flex-end; }
.pod-3 { height: 152px; justify-content: flex-end; }
.pod.tbd { opacity: .5; }
.pod.tbd .rt { color: var(--text-muted); }

.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-amethyst);
  border-radius: 18px;
  overflow: hidden;
}

table.standings { width: 100%; border-collapse: collapse; }

table.standings th {
  text-align: left;
  font-size: 11.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  padding: 16px 18px;
  background: rgba(124, 58, 237, 0.07);
  border-bottom: 1px solid var(--border-amethyst);
}

table.standings th.num, table.standings td.num { text-align: center; width: 64px; }
table.standings th.pts, table.standings td.pts { text-align: right; width: 96px; padding-right: 22px; }

table.standings td { padding: 15px 18px; border-bottom: 1px solid rgba(168, 85, 247, 0.08); font-size: 15px; }
table.standings tr:last-child td { border-bottom: none; }
table.standings tbody tr { transition: background .2s ease; }
table.standings tbody tr:hover { background: rgba(168, 85, 247, 0.06); }

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  background: rgba(168, 85, 247, 0.12);
  color: var(--amethyst-light);
}

.row-team { font-weight: 600; font-family: var(--serif); font-size: 16.5px; }
.row-leader { background: linear-gradient(90deg, rgba(124, 58, 237, 0.16), transparent 80%) !important; }
.row-leader .rank-badge { background: linear-gradient(135deg, var(--amethyst), var(--amethyst-bright)); color: #fff; box-shadow: 0 0 14px rgba(168, 85, 247, 0.6); }
.row-leader .row-team { color: var(--crystal); }
.td-pts { font-family: var(--serif); font-weight: 800; font-size: 18px; color: var(--crystal); }
.mcount { color: var(--text-primary); font-weight: 600; }
.mcount.zero { color: var(--text-muted); opacity: .55; font-weight: 400; }

.sport-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 16px; }

.sport-card {
  background: var(--bg-card);
  border: 1px solid var(--border-amethyst);
  border-radius: 16px;
  padding: 18px 18px 16px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.sport-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.45);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 40px -18px rgba(124, 58, 237, 0.7);
}

.sport-card .sc-head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.sport-card .sc-icon { font-size: 26px; }
.sport-card .sc-cat { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--amethyst-light); font-weight: 600; }
.sport-card .sc-name { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.1; }

/* Hasil Per Cabang - grouped results */
.empty-results { color: var(--text-muted); font-size: 14px; padding: 12px 2px; }
.cabang-results { margin-bottom: 28px; }
.cabang-results-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-amethyst);
}
.cabang-results-title .cr-icon { font-size: 24px; }
.podium-list { display: flex; flex-direction: column; gap: 10px; }
.podium-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-amethyst);
  border-left-width: 3px;
  border-radius: 12px;
  padding: 12px 14px;
}
.podium-row.gold { border-left-color: #fbbf24; }
.podium-row.silver { border-left-color: #cbd5e1; }
.podium-row.bronze { border-left-color: #d97706; }
.podium-row .pr-medal { font-size: 22px; line-height: 1.2; }
.podium-row .pr-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.podium-row .pr-team { font-family: var(--serif); font-weight: 700; font-size: 17px; color: var(--crystal); }
.podium-row .pr-roster { font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--amethyst-light); font-weight: 600; }
.podium-row .pr-players { font-size: 13px; color: var(--text-muted); line-height: 1.45; }

.medal-list { display: flex; flex-direction: column; gap: 7px; }
.medal-line { display: flex; align-items: center; gap: 9px; font-size: 14px; padding: 5px 0; }
.medal-line .mm { font-size: 16px; width: 20px; text-align: center; }
.medal-line .mt { font-weight: 600; }
.medal-line .mlabel { color: var(--text-muted); font-size: 12px; margin-left: auto; letter-spacing: .5px; }

.not-played {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(139, 122, 168, 0.1);
  border: 1px dashed rgba(139, 122, 168, 0.3);
  padding: 8px 12px;
  border-radius: 10px;
  letter-spacing: .3px;
}

.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 8px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, var(--amethyst), rgba(168, 85, 247, 0.15));
}

.tl-item { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 20px; padding: 12px 0; }

.tl-node {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  background: var(--bg-card);
  border: 1px solid var(--border-amethyst);
  z-index: 1;
  position: relative;
}

.tl-item.done .tl-node { opacity: .85; }
.tl-item.next .tl-node { border-color: var(--amethyst-bright); box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.14), 0 0 18px rgba(168, 85, 247, 0.5); background: rgba(124, 58, 237, 0.2); }

.tl-card {
  background: var(--bg-card);
  border: 1px solid var(--border-amethyst);
  border-radius: 14px;
  padding: 15px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  transition: border-color .25s ease, background .25s ease;
}

.tl-item.done .tl-card { opacity: .72; }
.tl-item.next .tl-card { border-color: rgba(168, 85, 247, 0.5); background: linear-gradient(100deg, rgba(124, 58, 237, 0.16), var(--bg-card)); box-shadow: 0 10px 40px -16px rgba(124, 58, 237, 0.8); }
.tl-card.final { border-color: rgba(245, 158, 11, 0.4); background: linear-gradient(100deg, rgba(245, 158, 11, 0.1), var(--bg-card)); }

.tl-main { flex: 1; min-width: 200px; }
.tl-date { font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--amethyst-light); font-weight: 600; margin-bottom: 2px; }
.tl-sport { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.15; }
.tl-sub { color: var(--text-muted); font-size: 13.5px; }

.tl-meta { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--text-muted); }
.tl-meta .mrow { display: flex; align-items: center; gap: 6px; }
.tl-meta .mrow b { color: var(--text-primary); font-weight: 600; }

.status-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  padding: 5px 11px;
  border-radius: 100px;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-badge.done { background: rgba(52, 180, 120, 0.14); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.25); }
.status-badge.upcoming { background: rgba(124, 58, 237, 0.18); color: var(--amethyst-light); border: 1px solid rgba(168, 85, 247, 0.35); box-shadow: 0 0 14px rgba(168, 85, 247, 0.3); }
.status-badge.today { background: linear-gradient(135deg, var(--amethyst), var(--amethyst-bright)); color: #fff; border: none; box-shadow: 0 0 16px rgba(168, 85, 247, 0.7); animation: blink 1.6s ease-in-out infinite; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .65; } }

.tl-final-tag {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 19px;
  background: linear-gradient(120deg, var(--gold), #fcd34d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cabang-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }

.cabang-card {
  background: var(--bg-card);
  border: 1px solid var(--border-amethyst);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.cabang-card:hover { border-color: rgba(168, 85, 247, 0.45); background: var(--bg-card-hover); box-shadow: 0 18px 50px -22px rgba(124, 58, 237, 0.8); }
.cabang-card.open { border-color: rgba(168, 85, 247, 0.55); }

.cc-top { display: flex; align-items: center; gap: 16px; padding: 22px; }

.cc-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: linear-gradient(150deg, rgba(124, 58, 237, 0.25), rgba(168, 85, 247, 0.08));
  border: 1px solid var(--border-amethyst);
  flex-shrink: 0;
}

.cc-titles { flex: 1; }
.cc-cat { font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.1; margin-bottom: 8px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: 11.5px; font-weight: 600; color: var(--amethyst-light); background: rgba(124, 58, 237, 0.12); border: 1px solid var(--border-amethyst); padding: 3px 10px; border-radius: 100px; }

.cc-chev { color: var(--text-muted); font-size: 18px; transition: transform .3s ease; flex-shrink: 0; }
.cabang-card.open .cc-chev { transform: rotate(180deg); color: var(--amethyst-light); }

.cc-body { padding: 0 22px; border-top: 1px solid transparent; }
.cabang-card.open .cc-body { padding: 4px 22px 22px; border-top: 1px solid var(--border-amethyst); }

.info-grid { display: grid; gap: 14px; padding-top: 18px; }
.info-item .il { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--amethyst-light); font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.info-item .iv { font-size: 14px; color: var(--text-primary); line-height: 1.5; }
.info-item .iv.muted { color: var(--text-muted); }

.expand { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .34s ease; }
.cabang-card.open .expand { grid-template-rows: 1fr; }
.expand > div { overflow: hidden; }

.foot {
  text-align: center;
  padding: 38px 16px 56px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border-amethyst);
  margin-top: 40px;
}

.foot .gem { color: var(--amethyst-light); }
.foot b { color: var(--crystal); font-family: var(--serif); font-weight: 600; }

@media (max-width: 720px) {
  .nav-links { gap: 2px; }
  .nav-link .nlabel { display: none; }
  .nav-link .nav-icon { display: inline; font-size: 18px; }
  .nav-link { padding: 9px 12px; }
  .nav-link.active::after { left: 12px; right: 12px; }
  .cabang-grid { grid-template-columns: 1fr; }
  .podium-stage { gap: 8px; }
  .pod { padding: 16px 6px 18px; border-radius: 12px 12px 0 0; }
  .pod .rt { font-size: 16px; }
  .pod-1 .rt { font-size: 18px; }
  .pod .medal-row { gap: 6px; font-size: 11px; }
  table.standings th.hide-sm, table.standings td.hide-sm { display: none; }
  table.standings td, table.standings th { padding: 13px 12px; }
  .tl-meta { width: 100%; }
}

@media (max-width: 440px) {
  .pod .crown { font-size: 26px; }
  .pod-1 .crown { font-size: 34px; }
  .pod .medal-row { flex-direction: column; gap: 2px; align-items: center; }
}
:root {
  --bg-base: #0d0a14;
  --bg-card: #160f24;
  --bg-card-hover: #1e1535;
  --amethyst: #7c3aed;
  --amethyst-bright: #a855f7;
  --amethyst-light: #c084fc;
  --crystal: #e9d5ff;
  --gold: #f59e0b;
  --silver: #94a3b8;
  --bronze: #b45309;
  --text-primary: #f5f0ff;
  --text-muted: #8b7aa8;
  --border-amethyst: rgba(168, 85, 247, 0.2);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--text-primary);
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124, 58, 237, 0.22), transparent 70%),
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(168, 85, 247, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 5% 30%, rgba(124, 58, 237, 0.1), transparent 60%);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(60deg, transparent 0 38px, rgba(168, 85, 247, 0.035) 38px 39px),
    repeating-linear-gradient(-60deg, transparent 0 38px, rgba(168, 85, 247, 0.035) 38px 39px),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(168, 85, 247, 0.02) 38px 39px);
  mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 30%, transparent 85%);
}

[v-cloak] {
  display: none;
}

.app {
  position: relative;
  z-index: 1;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  height: 68px;
  background: rgba(13, 10, 20, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border-amethyst);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.2px;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

.brand .gem {
  font-size: 22px;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
}

.brand .gem-text {
  background: linear-gradient(120deg, var(--crystal), var(--amethyst-light) 60%, var(--amethyst-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-muted);
  padding: 9px 15px;
  border-radius: 10px;
  transition: color 0.22s ease, background 0.22s ease;
}

.nav-link .nlabel {
  position: relative;
}

.nav-link:hover {
  color: var(--crystal);
  background: rgba(168, 85, 247, 0.08);
}

.nav-link.active {
  color: var(--crystal);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--amethyst), var(--amethyst-bright), var(--crystal));
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.9);
}

.nav-icon {
  display: none;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.page {
  padding: 40px 0 96px;
  opacity: 1;
  animation: pageIn 0.42s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes pageIn {
  from {
    transform: translateY(18px);
  }

  to {
    transform: translateY(0);
  }
}

.hero {
  text-align: center;
  padding: 46px 0 30px;
  position: relative;
}

.hero-crest {
  width: 96px;
  height: 96px;
  margin: 0 auto 22px;
  display: block;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--border-amethyst);
  filter: drop-shadow(0 6px 24px rgba(168, 85, 247, 0.55));
  animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-9px) rotate(2deg);
  }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amethyst-light);
  padding: 6px 16px;
  border: 1px solid var(--border-amethyst);
  border-radius: 100px;
  background: rgba(124, 58, 237, 0.08);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(40px, 8vw, 76px);
  line-height: 1.02;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.hero h1 .accent {
  background: linear-gradient(115deg, var(--crystal) 0%, var(--amethyst-light) 45%, var(--amethyst-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .cluster {
  font-size: clamp(15px, 3vw, 19px);
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.hero .cluster b {
  color: var(--crystal);
  font-weight: 600;
}

.merdeka-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.merdeka-line .rule {
  height: 1px;
  width: min(120px, 18vw);
  background: linear-gradient(90deg, transparent, var(--amethyst));
}

.merdeka-line .rule.r {
  background: linear-gradient(90deg, var(--amethyst), transparent);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 56px 0 24px;
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.3px;
}

.section-head .meta {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.section-head .line {
  flex: 1;
  height: 1px;
  background: var(--border-amethyst);
}

.podium-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.18fr 1fr;
  gap: 18px;
  align-items: end;
  max-width: 760px;
  margin: 8px auto 0;
  padding: 40px 0 0;
}

.podium-stage::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amethyst-bright), transparent);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.6);
}

.pod {
  position: relative;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-card-hover), var(--bg-card));
  border: 1px solid var(--border-amethyst);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  padding: 22px 12px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pod .crown {
  font-size: 34px;
  line-height: 1;
  margin-bottom: 6px;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
}

.pod .rt {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 21px;
}

.pod .pts {
  font-size: 13px;
  color: var(--text-muted);
}

.pod .pts b {
  color: var(--crystal);
  font-size: 15px;
  font-weight: 700;
}

.pod .medal-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.pod .medal-row span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.pod .rankno {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 30px;
  color: rgba(168, 85, 247, 0.18);
}

.pod-1 {
  height: 230px;
  justify-content: flex-end;
  border-color: rgba(168, 85, 247, 0.5);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.28), var(--bg-card));
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.25), 0 -10px 50px rgba(124, 58, 237, 0.35);
  animation: podpulse 3.2s ease-in-out infinite;
}

@keyframes podpulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.25), 0 -10px 44px rgba(124, 58, 237, 0.3);
  }

  50% {
    box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.45), 0 -14px 64px rgba(168, 85, 247, 0.55);
  }
}

.pod-1 .crown {
  font-size: 44px;
}

.pod-1 .rt {
  font-size: 25px;
}

.pod-1 .glow-ring {
  position: absolute;
  inset: -2px -2px auto -2px;
  height: 60%;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 150, 255, 0.4), transparent 70%);
  border-radius: 16px 16px 0 0;
  pointer-events: none;
}

.pod-2 {
  height: 178px;
  justify-content: flex-end;
}

.pod-3 {
  height: 152px;
  justify-content: flex-end;
}

.pod.tbd {
  opacity: 0.5;
}

.pod.tbd .rt {
  color: var(--text-muted);
}

.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-amethyst);
  border-radius: 18px;
  overflow: hidden;
}

table.standings {
  width: 100%;
  border-collapse: collapse;
}

table.standings th {
  text-align: left;
  font-size: 11.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  padding: 16px 18px;
  background: rgba(124, 58, 237, 0.07);
  border-bottom: 1px solid var(--border-amethyst);
}

table.standings th.num,
table.standings td.num {
  text-align: center;
  width: 64px;
}

table.standings th.pts,
table.standings td.pts {
  text-align: right;
  width: 96px;
  padding-right: 22px;
}

table.standings td {
  padding: 15px 18px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.08);
  font-size: 15px;
}

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

table.standings tbody tr {
  transition: background 0.2s ease;
}

table.standings tbody tr:hover {
  background: rgba(168, 85, 247, 0.06);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  background: rgba(168, 85, 247, 0.12);
  color: var(--amethyst-light);
}

.row-team {
  font-weight: 600;
  font-family: var(--serif);
  font-size: 16.5px;
}

.row-leader {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.16), transparent 80%) !important;
}

.row-leader .rank-badge {
  background: linear-gradient(135deg, var(--amethyst), var(--amethyst-bright));
  color: #fff;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.6);
}

.row-leader .row-team {
  color: var(--crystal);
}

.td-pts {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 18px;
  color: var(--crystal);
}

.mcount {
  color: var(--text-primary);
  font-weight: 600;
}

.mcount.zero {
  color: var(--text-muted);
  opacity: 0.55;
  font-weight: 400;
}

.sport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 16px;
}

.sport-card {
  background: var(--bg-card);
  border: 1px solid var(--border-amethyst);
  border-radius: 16px;
  padding: 18px 18px 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.sport-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.45);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 40px -18px rgba(124, 58, 237, 0.7);
}

.sport-card .sc-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.sport-card .sc-icon {
  font-size: 26px;
}

.sport-card .sc-cat {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--amethyst-light);
  font-weight: 600;
}

.sport-card .sc-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.1;
}

.medal-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.medal-line {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  padding: 5px 0;
}

.medal-line .mm {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.medal-line .mt {
  font-weight: 600;
}

.medal-line .mlabel {
  color: var(--text-muted);
  font-size: 12px;
  margin-left: auto;
  letter-spacing: 0.5px;
}

.not-played {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(139, 122, 168, 0.1);
  border: 1px dashed rgba(139, 122, 168, 0.3);
  padding: 8px 12px;
  border-radius: 10px;
  letter-spacing: 0.3px;
}

.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 8px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, var(--amethyst), rgba(168, 85, 247, 0.15));
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding: 12px 0;
}

.tl-node {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  background: var(--bg-card);
  border: 1px solid var(--border-amethyst);
  z-index: 1;
  position: relative;
}

.tl-item.done .tl-node {
  opacity: 0.85;
}

.tl-item.next .tl-node {
  border-color: var(--amethyst-bright);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.14), 0 0 18px rgba(168, 85, 247, 0.5);
  background: rgba(124, 58, 237, 0.2);
}

.tl-card {
  background: var(--bg-card);
  border: 1px solid var(--border-amethyst);
  border-radius: 14px;
  padding: 15px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.tl-item.done .tl-card {
  opacity: 0.72;
}

.tl-item.next .tl-card {
  border-color: rgba(168, 85, 247, 0.5);
  background: linear-gradient(100deg, rgba(124, 58, 237, 0.16), var(--bg-card));
  box-shadow: 0 10px 40px -16px rgba(124, 58, 237, 0.8);
}

.tl-card.final {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(100deg, rgba(245, 158, 11, 0.1), var(--bg-card));
}

.tl-main {
  flex: 1;
  min-width: 200px;
}

.tl-date {
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--amethyst-light);
  font-weight: 600;
  margin-bottom: 2px;
}

.tl-sport {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.15;
}

.tl-sub {
  color: var(--text-muted);
  font-size: 13.5px;
}

.tl-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  color: var(--text-muted);
}

.tl-meta .mrow {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tl-meta .mrow b {
  color: var(--text-primary);
  font-weight: 600;
}

.status-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 5px 11px;
  border-radius: 100px;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-badge.done {
  background: rgba(52, 180, 120, 0.14);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.status-badge.upcoming {
  background: rgba(124, 58, 237, 0.18);
  color: var(--amethyst-light);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.3);
}

.status-badge.today {
  background: linear-gradient(135deg, var(--amethyst), var(--amethyst-bright));
  color: #fff;
  border: none;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.7);
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.65;
  }
}

.tl-final-tag {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 19px;
  background: linear-gradient(120deg, var(--gold), #fcd34d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cabang-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.cabang-card {
  background: var(--bg-card);
  border: 1px solid var(--border-amethyst);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.cabang-card:hover {
  border-color: rgba(168, 85, 247, 0.45);
  background: var(--bg-card-hover);
  box-shadow: 0 18px 50px -22px rgba(124, 58, 237, 0.8);
}

.cabang-card.open {
  border-color: rgba(168, 85, 247, 0.55);
}

.cc-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
}

.cc-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: linear-gradient(150deg, rgba(124, 58, 237, 0.25), rgba(168, 85, 247, 0.08));
  border: 1px solid var(--border-amethyst);
  flex-shrink: 0;
}

.cc-titles {
  flex: 1;
}

.cc-cat {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--amethyst-light);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid var(--border-amethyst);
  padding: 3px 10px;
  border-radius: 100px;
}

.cc-chev {
  color: var(--text-muted);
  font-size: 18px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.cabang-card.open .cc-chev {
  transform: rotate(180deg);
  color: var(--amethyst-light);
}

.cc-body {
  padding: 0 22px;
  border-top: 1px solid transparent;
}

.cabang-card.open .cc-body {
  padding: 4px 22px 22px;
  border-top: 1px solid var(--border-amethyst);
}

.info-grid {
  display: grid;
  gap: 14px;
  padding-top: 18px;
}

.info-item .il {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--amethyst-light);
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-item .iv {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
}

.info-item .iv.muted {
  color: var(--text-muted);
}

.expand {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s ease;
}

.cabang-card.open .expand {
  grid-template-rows: 1fr;
}

.expand > div {
  overflow: hidden;
}

.foot {
  text-align: center;
  padding: 38px 16px 56px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border-amethyst);
  margin-top: 40px;
}

.foot .gem {
  color: var(--amethyst-light);
}

.foot b {
  color: var(--crystal);
  font-family: var(--serif);
  font-weight: 600;
}

@media (max-width: 720px) {
  .nav-links {
    gap: 2px;
  }

  .nav-link .nlabel {
    display: none;
  }

  .nav-link .nav-icon {
    display: inline;
    font-size: 18px;
  }

  .nav-link {
    padding: 9px 12px;
  }

  .nav-link.active::after {
    left: 12px;
    right: 12px;
  }

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

  .podium-stage {
    gap: 8px;
  }

  .pod {
    padding: 16px 6px 18px;
    border-radius: 12px 12px 0 0;
  }

  .pod .rt {
    font-size: 16px;
  }

  .pod-1 .rt {
    font-size: 18px;
  }

  .pod .medal-row {
    gap: 6px;
    font-size: 11px;
  }

  table.standings th.hide-sm,
  table.standings td.hide-sm {
    display: none;
  }

  table.standings td,
  table.standings th {
    padding: 13px 12px;
  }

  .tl-meta {
    width: 100%;
  }
}

@media (max-width: 440px) {
  .pod .crown {
    font-size: 26px;
  }

  .pod-1 .crown {
    font-size: 34px;
  }

  .pod .medal-row {
    flex-direction: column;
    gap: 2px;
    align-items: center;
  }
}

/* Calendar */
.calendar-wrap { margin-top: 1rem; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal-btn { background: var(--bg-card); border: 1px solid var(--border-amethyst); color: var(--text-primary); padding: .5rem 1rem; border-radius: .5rem; cursor: pointer; font-size: .85rem; transition: background .2s; }
.cal-btn:hover { background: var(--bg-card-hover); }
.cal-title { font-family: var(--serif); font-size: 1.1rem; color: var(--crystal); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; }
@media (max-width: 768px) { .cal-grid { grid-template-columns: 1fr; } }
.cal-day { background: var(--bg-card); border-radius: .75rem; border: 1px solid var(--border-amethyst); padding: .75rem; min-height: 120px; }
.cal-day.today { border-color: var(--amethyst-bright); box-shadow: 0 0 12px rgba(168, 85, 247, 0.3); }
.cal-day.empty { opacity: .6; }
.cal-day-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border-amethyst); }
.cal-dayname { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; }
.cal-date { font-size: 1.1rem; font-weight: 700; color: var(--crystal); }
.cal-item { display: flex; gap: .4rem; align-items: flex-start; padding: .4rem; border-radius: .4rem; margin-bottom: .3rem; background: rgba(124, 58, 237, 0.08); }
.cal-item.match { background: rgba(59, 130, 246, 0.1); }
.cal-item.live { background: rgba(239, 68, 68, 0.15); animation: pulse-live 2s infinite; }
@keyframes pulse-live { 0%,100% { opacity: 1; } 50% { opacity: .8; } }
.cal-item-time { font-size: .7rem; color: var(--text-muted); min-width: 2.5rem; padding-top: .15rem; }
.cal-item-icon { font-size: .9rem; }
.cal-item-body { flex: 1; min-width: 0; }
.cal-item-title { font-size: .8rem; font-weight: 600; display: block; }
.cal-item-sub { font-size: .7rem; color: var(--text-muted); display: block; }
.cal-item-loc { font-size: .65rem; color: var(--text-muted); display: block; }
.cal-item-status { font-size: .6rem; padding: .1rem .4rem; border-radius: .25rem; text-transform: uppercase; font-weight: 700; }
.cal-item-status.live { background: #ef4444; color: #fff; }
.cal-item-status.completed, .cal-item-status.done { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.cal-item-status.scheduled { background: rgba(148, 163, 184, 0.15); color: var(--text-muted); }
.cal-empty { color: var(--text-muted); font-size: .75rem; text-align: center; padding: 1rem 0; }

/* Monthly calendar */
.month-cal { margin-top: 1rem; }
.month-dow-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: .4rem; margin-bottom: .4rem; }
.month-dow { text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); font-weight: 600; padding: .2rem 0; }
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .4rem; }
.month-cell {
  background: var(--bg-card);
  border: 1px solid var(--border-amethyst);
  border-radius: .6rem;
  padding: .4rem;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  overflow: hidden;
}
.month-cell.out-month { opacity: .4; }
.month-cell.today { border-color: var(--amethyst-bright); box-shadow: 0 0 10px rgba(168, 85, 247, 0.25); }
.month-cell.clickable { cursor: pointer; transition: background .2s, border-color .2s; }
.month-cell.clickable:hover { background: var(--bg-card-hover); border-color: rgba(168, 85, 247, 0.45); }
.mc-date { font-size: .8rem; font-weight: 700; color: var(--text-primary); }
.month-cell.today .mc-date { color: var(--amethyst-light); }
.mc-events { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.mc-ev {
  font-size: .68rem;
  line-height: 1.25;
  padding: .12rem .35rem;
  border-radius: .3rem;
  background: rgba(124, 58, 237, 0.14);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-ev.match { background: rgba(59, 130, 246, 0.16); }
.mc-ev.live { background: rgba(239, 68, 68, 0.2); animation: pulse-live 2s infinite; }

@media (max-width: 640px) {
  .month-cell { min-height: 70px; padding: .3rem; }
  .mc-ev { font-size: .6rem; }
}

/* Day detail modal */
.cal-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.cal-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-amethyst);
  border-radius: 1rem;
  width: 100%; max-width: 440px;
  max-height: 80vh; overflow-y: auto;
  padding: 1.25rem;
}
.cal-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: 1rem; }
.cal-modal-head h4 { font-family: var(--serif); color: var(--crystal); font-size: 1.1rem; margin: 0; }
.cal-modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; padding: .2rem .4rem; border-radius: .3rem; }
.cal-modal-close:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.cal-modal-list { display: flex; flex-direction: column; gap: .6rem; }
.cal-detail {
  display: flex; gap: .7rem;
  padding: .7rem;
  border-radius: .6rem;
  background: rgba(124, 58, 237, 0.08);
  border-left: 3px solid var(--amethyst-bright);
}
.cal-detail.match { background: rgba(59, 130, 246, 0.1); border-left-color: #3b82f6; }
.cal-detail.live { background: rgba(239, 68, 68, 0.14); border-left-color: #ef4444; }
.cal-detail .cd-time { font-size: .8rem; font-weight: 700; color: var(--crystal); min-width: 3rem; padding-top: .1rem; }
.cal-detail .cd-body { flex: 1; display: flex; gap: .5rem; align-items: flex-start; min-width: 0; }
.cal-detail .cd-icon { font-size: 1.1rem; }
.cal-detail .cd-main { flex: 1; min-width: 0; }
.cal-detail .cd-title { font-weight: 600; font-size: .9rem; }
.cal-detail .cd-sub { font-size: .75rem; color: var(--text-muted); margin-top: .15rem; }
.cal-detail .cd-loc { font-size: .72rem; color: var(--text-muted); margin-top: .15rem; }
.cal-detail .cd-score { font-size: .75rem; color: var(--crystal); margin-top: .2rem; font-weight: 600; }

/* Bracket */
.bracket-wrap { margin-top: 1rem; }
.elim-bracket { display: flex; gap: 1.5rem; overflow-x: auto; padding: 1rem 0; }
@media (max-width: 768px) { .elim-bracket { flex-direction: column; } }
.bracket-round { min-width: 180px; }
.round-label { font-size: .75rem; text-transform: uppercase; color: var(--text-muted); margin-bottom: .75rem; text-align: center; font-weight: 600; }
.round-matches { display: flex; flex-direction: column; gap: 1rem; justify-content: center; min-height: 100%; }
.match-card { background: var(--bg-card); border: 1px solid var(--border-amethyst); border-radius: .5rem; padding: .6rem; }
.match-card.completed { border-color: rgba(34, 197, 94, 0.3); }
.match-card.live { border-color: #ef4444; animation: pulse-live 2s infinite; }
.mc-round { font-size: .65rem; color: var(--text-muted); display: block; margin-bottom: .3rem; }
.mc-teams { display: flex; align-items: center; gap: .4rem; padding: .2rem 0; }
.mc-team { font-size: .8rem; flex: 1; }
.mc-team.winner { color: var(--gold); font-weight: 700; }
.mc-vs { font-size: .7rem; color: var(--text-muted); min-width: 2.5rem; text-align: center; }
.mc-score { font-size: .8rem; font-weight: 700; color: var(--crystal); min-width: 1.5rem; text-align: right; }
.mc-info { font-size: .65rem; color: var(--text-muted); display: block; margin-top: .3rem; }
.match-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .75rem; margin-top: 1rem; }
.rr-standings { margin-bottom: 1rem; }

/* Round-robin result cards */
.rr-result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 1rem; }
.rr-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-amethyst);
  border-radius: 12px;
  padding: 12px 14px;
}
.rr-result-card.completed { border-color: rgba(34, 197, 94, 0.32); }
.rr-result-card.live { border-color: #ef4444; animation: pulse-live 2s infinite; }
.rrc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.rrc-round { font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--amethyst-light); font-weight: 600; }
.rrc-date { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.rrc-teams { display: flex; align-items: flex-start; gap: 8px; }
.rrc-team { flex: 1; min-width: 0; }
.rrc-team.right { text-align: right; }
.rrc-name { font-size: 14px; font-weight: 600; }
.rrc-team.winner .rrc-name { color: var(--gold); font-weight: 700; }
.rrc-roster { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.rrc-score { font-size: 15px; font-weight: 700; color: var(--crystal); min-width: 48px; text-align: center; padding-top: 1px; }
.rrc-winner { font-size: 12px; color: var(--text-muted); margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border-amethyst); }
.rrc-winner b { color: var(--gold); }
.rrc-loc { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

/* Admin Panel */
.admin-wrap { margin-top: 1rem; }
.admin-login { max-width: 320px; margin: 2rem auto; text-align: center; }
.admin-login h3 { margin-bottom: 1rem; }
.login-form { display: flex; flex-direction: column; gap: .75rem; }
.admin-input { background: var(--bg-card); border: 1px solid var(--border-amethyst); color: var(--text-primary); padding: .6rem .8rem; border-radius: .5rem; font-size: .85rem; width: 100%; }
.admin-input:focus { outline: none; border-color: var(--amethyst-bright); }
.admin-btn { padding: .5rem 1rem; border-radius: .5rem; border: none; cursor: pointer; font-size: .85rem; font-weight: 600; transition: all .2s; }
.admin-btn.primary { background: var(--amethyst); color: #fff; }
.admin-btn.primary:hover { background: var(--amethyst-bright); }
.admin-btn.secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-amethyst); }
.admin-btn.danger { background: #dc2626; color: #fff; }
.admin-btn.small { padding: .3rem .5rem; font-size: .75rem; }
.error-msg { color: #ef4444; font-size: .8rem; margin-top: .25rem; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.admin-tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.admin-tab { background: var(--bg-card); border: 1px solid var(--border-amethyst); color: var(--text-muted); padding: .5rem 1rem; border-radius: .5rem; cursor: pointer; font-size: .8rem; transition: all .2s; }
.admin-tab.active { background: var(--amethyst); color: #fff; border-color: var(--amethyst); }
.admin-section h4 { margin-bottom: 1rem; color: var(--crystal); }
.admin-form { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.5rem; padding: 1rem; background: var(--bg-card); border-radius: .75rem; border: 1px solid var(--border-amethyst); }
.form-row { display: flex; gap: .5rem; align-items: center; }
.form-label { font-size: .8rem; color: var(--text-muted); margin-top: .25rem; }
.vs-label { color: var(--text-muted); font-size: .85rem; }
.admin-list { display: flex; flex-direction: column; gap: .5rem; }
.admin-item { display: flex; justify-content: space-between; align-items: center; padding: .6rem .8rem; background: var(--bg-card); border-radius: .5rem; border: 1px solid var(--border-amethyst); }
.ai-info { display: flex; flex-direction: column; gap: .15rem; }
.ai-info b { font-size: .85rem; }
.ai-meta { font-size: .7rem; color: var(--text-muted); }
.ai-actions { display: flex; gap: .25rem; }
.admin-modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 1rem; }
.modal-content { background: var(--bg-base); border: 1px solid var(--border-amethyst); border-radius: .75rem; padding: 1.5rem; max-width: 420px; width: 100%; display: flex; flex-direction: column; gap: .6rem; max-height: 85vh; overflow-y: auto; }
.modal-content h4 { margin-bottom: .5rem; }
.match-round { font-size: .65rem; color: var(--amethyst-light); text-transform: uppercase; }

/* Icon Picker */
.icon-pick-btn { display: flex; align-items: center; gap: .4rem; background: var(--bg-card); border: 1px solid var(--border-amethyst); border-radius: .5rem; padding: .4rem .7rem; cursor: pointer; color: var(--text-primary); transition: border-color .2s; }
.icon-pick-btn:hover { border-color: var(--amethyst-bright); }
.icon-pick-preview { font-size: 1.4rem; }
.icon-pick-label { font-size: .75rem; color: var(--text-muted); }
.icon-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .4rem; padding: .5rem; background: rgba(13, 10, 20, 0.6); border-radius: .5rem; border: 1px solid var(--border-amethyst); }
.icon-pick-item { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .5rem .25rem; background: var(--bg-card); border: 1px solid transparent; border-radius: .5rem; cursor: pointer; transition: all .2s; }
.icon-pick-item:hover { background: var(--bg-card-hover); border-color: var(--border-amethyst); }
.icon-pick-item.active { border-color: var(--amethyst-bright); background: rgba(124, 58, 237, 0.15); box-shadow: 0 0 8px rgba(168, 85, 247, 0.3); }
.ipi-emoji { font-size: 1.4rem; }
.ipi-label { font-size: .6rem; color: var(--text-muted); text-align: center; line-height: 1.2; }

/* Format Cards */
.format-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
@media (max-width: 600px) { .format-cards { grid-template-columns: 1fr; } }
.format-card { display: block; padding: .6rem .75rem; background: var(--bg-card); border: 1px solid var(--border-amethyst); border-radius: .5rem; cursor: pointer; transition: all .2s; }
.format-card:hover { background: var(--bg-card-hover); border-color: rgba(168, 85, 247, 0.35); }
.format-card.active { border-color: var(--amethyst-bright); background: rgba(124, 58, 237, 0.12); box-shadow: 0 0 10px rgba(168, 85, 247, 0.2); }
.fc-header { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.fc-radio { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--text-muted); flex-shrink: 0; transition: all .2s; }
.fc-radio.checked { border-color: var(--amethyst-bright); background: var(--amethyst-bright); box-shadow: inset 0 0 0 2px var(--bg-card); }
.fc-title { font-size: .85rem; font-weight: 600; color: var(--crystal); }
.fc-desc { font-size: .72rem; color: var(--text-muted); line-height: 1.4; }

/* Format Preview */
.format-preview { padding: .6rem .75rem; background: rgba(124, 58, 237, 0.06); border: 1px solid var(--border-amethyst); border-radius: .5rem; }
.fp-title { font-size: .75rem; font-weight: 600; color: var(--amethyst-light); letter-spacing: .5px; text-transform: uppercase; margin-bottom: .3rem; }
.fp-detail { font-size: .8rem; color: var(--text-primary); margin-bottom: .5rem; line-height: 1.4; }
.fp-flow { display: flex; flex-wrap: wrap; gap: .4rem; }
.fp-step { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; color: var(--crystal); background: rgba(124, 58, 237, 0.12); padding: .25rem .6rem; border-radius: 100px; border: 1px solid var(--border-amethyst); }
.fp-step-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amethyst-bright); }

/* Sub-Event Form */
.sub-events-list { display: flex; flex-direction: column; gap: .4rem; }
.se-row { display: flex; align-items: center; gap: .4rem; }
.se-num { width: 22px; height: 22px; border-radius: 50%; background: rgba(124, 58, 237, 0.15); color: var(--amethyst-light); display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; flex-shrink: 0; }
.se-name { flex: 1 !important; }
.se-size { width: 140px !important; flex: 0 0 auto !important; }
.se-del { flex-shrink: 0; }
.se-del:disabled { opacity: .3; cursor: not-allowed; }

/* Match Actions */
.match-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: .75rem; }
.new-match-form { margin-top: .5rem; border-color: var(--amethyst-bright); }

/* Players Section */
.players-section { margin-top: .4rem; }
.player-row { display: flex; align-items: center; gap: .4rem; margin-top: .25rem; }
.player-num { font-size: .75rem; color: var(--text-muted); min-width: 1.2rem; }
.sport-item .ai-meta + .ai-meta { margin-top: .1rem; }

/* Roster */
.roster-header { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.roster-header .form-label { margin: 0; }
.roster-picker { display: flex; align-items: center; gap: .5rem; margin-bottom: .35rem; }
.roster-select { flex: 1; font-size: .75rem !important; padding: .2rem .35rem !important; }
.roster-name-input { margin-top: .35rem; font-size: .75rem !important; border-style: dashed !important; }

/* Leaderboard format hints */
.leaderboard-hint {
  margin: .5rem 0;
  padding: .6rem .8rem;
  font-size: .82rem;
  line-height: 1.4;
  color: var(--text-muted);
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid var(--border-amethyst);
  border-radius: 10px;
}
.shadow-toggle {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin: .6rem 0 .2rem;
  font-size: .82rem;
  line-height: 1.4;
  color: var(--text-muted);
  cursor: pointer;
}
.shadow-toggle input { width: auto; margin-top: .15rem; }
.shadow-toggle b { color: var(--amethyst-light); }
.leaderboard-note {
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid var(--border-amethyst);
  border-radius: 12px;
}

/* All-format match builder (admin) */
.all-team-block {
  margin-top: .6rem;
  padding: .6rem .7rem;
  border: 1px solid var(--border-amethyst);
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.05);
}
.atb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.atb-name { font-weight: 700; color: var(--crystal); }
.atb-total { font-size: .78rem; color: var(--amethyst-light); font-weight: 600; }
.all-player-row { display: flex; align-items: center; gap: .4rem; margin-bottom: .3rem; }
.all-player-row .atb-player { flex: 1; }
.all-player-row .atb-score { width: 90px; flex: none; }
.all-complete-toggle { display: flex; align-items: center; gap: .5rem; margin-top: .6rem; font-size: .85rem; color: var(--text-muted); cursor: pointer; }
.all-complete-toggle input { width: auto; }

/* All-format ranking (public) */
.all-ranking { display: flex; flex-direction: column; gap: 10px; }
.all-rank-card {
  padding: 12px 14px;
  border: 1px solid var(--border-amethyst);
  border-radius: 12px;
  background: var(--bg-card);
}
.all-rank-card.champ { border-color: rgba(234, 179, 8, 0.5); background: rgba(234, 179, 8, 0.06); }
.arc-head { display: flex; align-items: center; gap: 10px; }
.arc-rank { font-size: 18px; min-width: 28px; text-align: center; }
.arc-team { font-family: var(--serif); font-weight: 700; font-size: 16px; }
.arc-total { margin-left: auto; font-weight: 700; color: var(--crystal); }
.arc-players { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; padding-left: 38px; }
.arc-player { font-size: 12px; color: var(--text-muted); }

/* Hasil Modal */
.hasil-modal { max-width: 380px; }
.hasil-teams { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: .5rem 0; }
.hasil-team { font-weight: 700; color: var(--crystal); font-size: 1rem; }

/* Live Bar */
.live-bar { position: sticky; top: 56px; z-index: 50; background: linear-gradient(90deg, rgba(220, 38, 38, 0.15), rgba(124, 58, 237, 0.1)); border-bottom: 1px solid rgba(220, 38, 38, 0.3); padding: .5rem 1rem; display: flex; align-items: center; gap: 1rem; backdrop-filter: blur(8px); }
.live-indicator { font-size: .7rem; font-weight: 700; letter-spacing: .05em; white-space: nowrap; animation: pulse-live 1.5s infinite; }
.live-scroll { display: flex; gap: 1.5rem; overflow-x: auto; }
.live-match { display: flex; gap: .5rem; align-items: center; white-space: nowrap; }
.lm-sport { font-size: .7rem; color: var(--text-muted); }
.lm-teams { font-size: .8rem; }
.lm-teams b { color: var(--crystal); }

/* Date/time picker (flatpickr) */
.datefield { display: inline-block; }
.datefield > input.admin-input { width: 100%; cursor: pointer; }

.flatpickr-calendar {
  background: #1c1430;
  border: 1px solid var(--border-amethyst);
  box-shadow: 0 16px 44px -14px rgba(0, 0, 0, 0.7);
  border-radius: 12px;
}
.flatpickr-calendar.arrowTop::before, .flatpickr-calendar.arrowTop::after { border-bottom-color: #1c1430; }
.flatpickr-calendar.arrowBottom::before, .flatpickr-calendar.arrowBottom::after { border-top-color: #1c1430; }
.flatpickr-months .flatpickr-month,
.flatpickr-current-month,
.flatpickr-current-month input.cur-year,
.flatpickr-weekdays { background: transparent; color: var(--text-primary); }
.flatpickr-monthDropdown-months, .flatpickr-monthDropdown-month { background: #1c1430; color: var(--text-primary); }
span.flatpickr-weekday { color: var(--amethyst-light); font-weight: 600; }
.flatpickr-months .flatpickr-prev-month svg, .flatpickr-months .flatpickr-next-month svg { fill: var(--text-primary); }
.flatpickr-months .flatpickr-prev-month:hover svg, .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--amethyst-light); }
.flatpickr-day { color: var(--text-primary); }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: var(--text-muted); }
.flatpickr-day:hover, .flatpickr-day:focus { background: rgba(124, 58, 237, 0.28); border-color: transparent; }
.flatpickr-day.today { border-color: var(--amethyst-light); }
.flatpickr-day.today:hover { background: rgba(124, 58, 237, 0.35); color: #fff; }
.flatpickr-day.selected, .flatpickr-day.selected:hover,
.flatpickr-day.startRange, .flatpickr-day.endRange {
  background: var(--amethyst-bright);
  border-color: var(--amethyst-bright);
  color: #fff;
}
.flatpickr-time input, .flatpickr-time .flatpickr-am-pm, .flatpickr-time .flatpickr-time-separator { color: var(--text-primary); }
.flatpickr-time input:hover, .flatpickr-time input:focus,
.flatpickr-time .numInputWrapper:hover, .flatpickr-time .flatpickr-am-pm:hover { background: rgba(124, 58, 237, 0.2); }
.flatpickr-time .numInputWrapper span.arrowUp::after { border-bottom-color: var(--amethyst-light); }
.flatpickr-time .numInputWrapper span.arrowDown::after { border-top-color: var(--amethyst-light); }

/* ---- Group + Knockout builder (admin) ---- */
.group-builder { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 8px; }
.gb-knockout { display: flex; flex-wrap: wrap; gap: 10px; }
.gb-radio {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 10px 14px; border: 1px solid var(--border-amethyst); border-radius: 10px;
  background: var(--bg-card); color: var(--text-primary); font-size: 14px; flex: 1; min-width: 220px;
}
.gb-radio small { color: var(--text-muted); }
.gb-radio.active { border-color: var(--amethyst-bright); background: var(--bg-card-hover); }
.gb-group { border: 1px solid var(--border-amethyst); border-radius: 12px; padding: 12px; background: var(--bg-card); }
.gb-group-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.gb-group-head b { font-size: 15px; color: var(--amethyst-light); }
.gb-ha { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); cursor: pointer; }
.gb-ha input { accent-color: var(--amethyst-bright); }
.gb-teams { display: flex; flex-wrap: wrap; gap: 8px; }
.gb-team-chip {
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border-amethyst);
  background: var(--bg-base); color: var(--text-primary); font-size: 13px; cursor: pointer; transition: all .15s ease;
}
.gb-team-chip.active { background: var(--amethyst); border-color: var(--amethyst-bright); color: #fff; font-weight: 600; }
.gb-team-chip:disabled { opacity: .35; cursor: not-allowed; }

/* ---- Group + Knockout display (scoreboard) ---- */
.gk-group { margin-bottom: 20px; }
.gk-group-title { font-size: 15px; font-weight: 700; color: var(--amethyst-light); margin-bottom: 10px; }
.gk-group-title .gk-sub { color: var(--text-muted); font-weight: 500; font-size: 13px; }
.gk-standings { margin-bottom: 12px; }
.gk-tie { color: #fbbf24; margin-left: 6px; font-size: 13px; }
.gk-knockout { margin-top: 24px; padding-top: 8px; border-top: 1px solid var(--border-amethyst); }

/* Tie match sub-match breakdown */
.tie-sub {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-amethyst);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tie-set {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.tie-label {
  font-weight: 600;
  color: var(--amethyst-light);
  min-width: 64px;
  font-size: 11px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.tie-score {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
}
.tie-agg {
  color: var(--text-primary);
  font-weight: 600;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid var(--border-amethyst);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11.5px;
  white-space: nowrap;
}

/* ==== Sub-navbar (per-cabang champion pages) ==== */
.subnav {
  position: sticky;
  top: 68px;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px clamp(16px, 4vw, 48px);
  background: rgba(13, 10, 20, 0.6);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--border-amethyst);
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }

.subnav-label {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.subnav-links { display: flex; align-items: center; gap: 8px; }

.subnav-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-muted);
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-amethyst);
  background: rgba(168, 85, 247, 0.05);
  white-space: nowrap;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.subnav-link:hover { color: var(--crystal); background: rgba(168, 85, 247, 0.12); }
.subnav-link.active {
  color: var(--crystal);
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--amethyst-bright);
}
.subnav-icon { font-size: 15px; }

/* ==== Per-cabang champion page (Basket 3on3) ==== */
.sport-hero { margin-bottom: 6px; }

.champ-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 34px;
}
@media (max-width: 640px) {
  .champ-grid { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
}

.champ-card {
  background: var(--bg-card);
  border: 1px solid var(--border-amethyst);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.champ-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
.champ-card.gold { border-color: rgba(245, 158, 11, 0.5); }
.champ-card.silver { border-color: rgba(148, 163, 184, 0.5); }
.champ-card.bronze { border-color: rgba(180, 83, 9, 0.5); }
.champ-card.gold:hover { box-shadow: 0 14px 34px rgba(245, 158, 11, 0.22); }

.champ-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.champ-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.champ-medal {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 28px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.champ-cap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px 16px;
}
.champ-rank {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--amethyst-light);
}
.champ-card.gold .champ-rank { color: var(--gold); }
.champ-card.silver .champ-rank { color: var(--silver); }
.champ-card.bronze .champ-rank { color: var(--bronze); }
.champ-team {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--crystal);
  line-height: 1.2;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 900px) { .highlight-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .highlight-grid { grid-template-columns: 1fr; } }

.highlight-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-amethyst);
  aspect-ratio: 4 / 3;
  transition: transform .25s ease, border-color .25s ease;
}
.highlight-card:hover { transform: scale(1.02); border-color: var(--amethyst-bright); }
.highlight-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

/* ==== Lightbox ==== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: clamp(16px, 5vw, 56px);
  background: rgba(8, 5, 14, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: zoom-out;
  animation: lb-fade .18s ease;
}
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

.lightbox-img {
  max-width: min(96vw, 1100px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border-amethyst);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  cursor: default;
}

.lightbox-cap {
  font-size: 14px;
  color: var(--crystal);
  font-weight: 600;
  letter-spacing: 0.3px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: clamp(12px, 3vw, 28px);
  right: clamp(12px, 3vw, 28px);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-amethyst);
  background: rgba(22, 15, 36, 0.8);
  color: var(--crystal);
  font-size: 18px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.lightbox-close:hover { background: var(--amethyst); transform: rotate(90deg); }
