/* ============================
   LIGA KAMISAN — LAYOUT UTAMA
============================ */

.liga-shell {
  max-width: 1080px;
  margin: 72px auto 40px;
  padding: 0 16px 40px;
}

.liga-header {
  margin-bottom: 20px;
}

.liga-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 10px;
}

.liga-back {
  color: #4b5563;
  text-decoration: none;
}
.liga-back:hover {
  text-decoration: underline;
}

.liga-pill {
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  background: rgba(244, 114, 182, 0.12);
  color: #be185d;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.35);
}
.liga-pill:hover {
  background: rgba(244, 114, 182, 0.2);
}

.liga-header h1 {
  font-size: 24px;
  margin: 0 0 4px;
  color: #111827;
}

.liga-sub,
.liga-header .liga-sub {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

.liga-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.liga-block {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  padding: 18px 20px 20px;
  box-shadow: 0 18px 45px rgba(148, 163, 184, 0.25);
}

.liga-block-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #111827;
}

.liga-footer {
  margin-top: 18px;
  font-size: 12px;
  text-align: center;
  color: #9ca3af;
}

/* ====== Week detail – Podium strip style ====== */

.liga-week-podium-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.liga-week-podium-row {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.95rem;
}

/* warna background tiap juara */
.liga-week-podium-row.rank-1 {
  background: #ffe7a5;   /* kuning lembut */
}

.liga-week-podium-row.rank-2 {
  background: #eee5ff;   /* ungu muda */
}

.liga-week-podium-row.rank-3 {
  background: #ffe3f1;   /* pink lembut */
}

.liga-week-podium-medal {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  margin-right: 12px;
  min-width: 72px;
}

.liga-week-podium-medal-icon {
  font-size: 1.1rem;
}

.liga-week-podium-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.liga-week-podium-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.liga-week-podium-info {
  display: flex;
  flex-direction: column;
}

.liga-week-podium-name {
  font-weight: 600;
}

.liga-week-podium-meta {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Mobile: biar tetap rapi kalau layarnya sempit */
@media (max-width: 600px) {
  .liga-week-podium-row {
    padding: 8px 10px;
  }

  .liga-week-podium-medal {
    font-size: 0.8rem;
    min-width: 64px;
  }

  .liga-week-podium-avatar {
    width: 36px;
    height: 36px;
  }

  .liga-week-podium-name {
    font-size: 0.9rem;
  }

  .liga-week-podium-meta {
    font-size: 0.75rem;
  }
}


/* ============================
   KLASEMEN SEASON
============================ */

.liga-table-wrap {
  overflow-x: auto;
}

.liga-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.liga-table thead th {
  text-align: left;
  padding: 8px 10px;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.liga-table tbody td {
  padding: 9px 10px;
  border-bottom: 1px solid #f3f4f6;
}

/* wrapper tabel bisa di-scroll */
.liga-table-scroll {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 6px;
}

@media (max-width: 768px) {
  .liga-table-scroll {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .liga-table {
    min-width: 620px;
    font-size: 0.8rem;
  }

  .liga-table th,
  .liga-table td {
    padding: 6px 8px;
  }
}

.lg-rank {
  width: 48px;
}

.lg-member-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lg-member-info img {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(148, 163, 184, 0.7);
}

.lg-name {
  font-weight: 600;
  font-size: 13px;
  color: #111827;
}
.lg-sub {
  font-size: 11px;
  color: #9ca3af;
}

.lg-points {
  font-weight: 700;
  color: #111827;
}

.lg-form {
  white-space: nowrap;
}
.lg-form-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 11px;
  margin-right: 3px;
  background: #e5e7eb;
}
.lg-form-5 {
  background: rgba(52, 211, 153, 0.18);
}
.lg-form-3 {
  background: rgba(96, 165, 250, 0.18);
}
.lg-form-1 {
  background: rgba(252, 211, 77, 0.18);
}

.lg-top:nth-child(1) {
  background: rgba(239, 246, 255, 0.6);
}
.lg-top:nth-child(2) {
  background: rgba(254, 249, 195, 0.55);
}
.lg-top:nth-child(3) {
  background: rgba(254, 243, 199, 0.55);
}

/* ============================
   PODIUM MINGGU TERAKHIR
============================ */

.liga-chip {
  margin-left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(59, 130, 246, 0.08);
  color: #1d4ed8;
}

/* Biar foto di dalam podium tidak gede & keluar card */
.lg-podium-main img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  background-color: #e5e7eb;
  flex-shrink: 0;
}

.lg-podium-rank {
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 4px;
}

.lg-podium-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lg-week-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  background-color: #e5e7eb;
  flex-shrink: 0;
}

.lg-week-name {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}
.lg-week-meta {
  font-size: 11px;
  color: #6b7280;
}

/* ============================
   HASIL PER MINGGU (CARD)
============================ */

/* id #ligaWeeks juga diperlakukan grid */
#ligaWeeks,
.liga-weeks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.lg-week-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 18px;
  text-decoration: none;
  background: linear-gradient(to bottom right, #fdf2ff, #fee2e2);
  box-shadow: 0 10px 28px rgba(248, 113, 170, 0.25);
  color: inherit;
}

.lg-week-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(248, 113, 170, 0.35);
}

.lg-week-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #6b7280;
}

.lg-week-label {
  font-weight: 600;
  color: #f97316;
}

.lg-week-date {
  font-style: italic;
}

.lg-week-body {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.lg-week-winner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lg-week-cta {
  font-size: 11px;
  color: #1d4ed8;
}

/* ===============================
   MODAL — TENTANG LIGA (FIX)
=============================== */

.liga-info-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

/* backdrop */
.liga-info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(6px);
}

/* content */
.liga-info-content {
  position: relative;
  z-index: 2;

  max-width: 520px;
  width: calc(100% - 32px);
  max-height: 80vh;
  overflow-y: auto;

  background: #ffffff;
  border-radius: 20px;
  padding: 20px 22px;

  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

/* close button */
.liga-info-close {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

/* OPEN STATE */
.liga-info-modal.open {
  opacity: 1;
  pointer-events: auto;
}

/* DARK MODE */
body.dark .liga-info-content {
  background: #020617;
  color: #f8fafc;
}

/* ============================
   RESPONSIVE
============================ */

@media (max-width: 640px) {
  .liga-shell {
    margin-top: 64px;
    padding-bottom: 28px;
  }

  .liga-header h1 {
    font-size: 20px;
  }

  .liga-main {
    gap: 14px;
  }
}

/* =======================
   WEEK DETAIL — LEGACY LIGHTBOX
======================= */

.liga-week-photo-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Bungkus foto pemenang – clickable untuk lightbox */
.liga-week-photo-img-wrap {
  border-radius: 18px;
  overflow: hidden;
  max-height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f9fafb;
  cursor: zoom-in;
  position: relative;
}

/* Foto portrait / landscape tampil utuh */
.liga-week-photo-img-wrap img {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Label kecil di pojok: klik untuk perbesar */
.liga-week-photo-img-wrap::after {
  content: "Klik untuk perbesar";
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #f9fafb;
  font-size: 10px;
  letter-spacing: 0.03em;
}

/* Keterangan di samping / bawah foto */
.liga-week-photo-meta {
  font-size: 12px;
}

.liga-week-photo-label {
  font-weight: 600;
}

.liga-week-photo-caption {
  color: #4b5563;
}

.liga-week-photo-stats {
  margin-top: 2px;
  color: #6b7280;
}

/* ======================================================
   FIX: Batasi ukuran frame Winning Photo biar tidak melebar
====================================================== */

.winner-photo-area {
  display: flex;
  justify-content: center;  /* center horizontal */
}

.winner-frame {
  max-width: 780px;        /* << batas lebar frame foto */
  width: 100%;
  margin: 0 auto;
  border-radius: 22px;
}

.winner-frame img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: contain;
}


@media (min-width: 768px) {
  .liga-week-photo-inner {
    flex-direction: row;
  }

  .liga-week-photo-img-wrap {
    flex: 2;
  }

  .liga-week-photo-meta {
    flex: 1;
    padding-left: 14px;
  }
}

/* =======================
   LIGHTBOX WINNING PHOTO
======================= */

.liga-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
}

.liga-lightbox.active {
  display: flex;
}

.liga-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
}

.liga-lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 92%;
  max-height: 90vh;
  background: radial-gradient(circle at top, #ffe6ff 0, #f5f3ff 35%, #f9fafb 100%);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.5);
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

/* Tombol close */
.liga-lightbox-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: rgba(15, 23, 42, 0.1);
  color: #0f172a;
  font-size: 20px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.liga-lightbox-close:hover {
  background: rgba(15, 23, 42, 0.2);
}

/* Dekorasi: mahkota, bintang, confetti, domba */

.liga-lightbox-decor {
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
}

.decor-crown {
  font-size: 26px;
  display: inline-block;
  transform: translateY(-4px);
}

.decor-star,
.decor-confetti,
.decor-sheep {
  position: absolute;
  font-size: 18px;
}

/* bintang */
.decor-star-1 {
  top: 20px;
  left: 14%;
  animation: floatStar 4s ease-in-out infinite;
}
.decor-star-2 {
  top: 18px;
  right: 18%;
  animation: floatStar 5s ease-in-out infinite reverse;
}
.decor-star-3 {
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
  animation: floatStar 6s ease-in-out infinite;
}

/* domba lucu */
.decor-sheep {
  top: 46px;
  right: 10%;
  animation: floatSheep 5s ease-in-out infinite;
}

/* confetti */
.decor-confetti-1 {
  top: 60px;
  left: 10%;
  animation: floatConfetti 7s linear infinite;
}
.decor-confetti-2 {
  top: 65px;
  right: 12%;
  animation: floatConfetti 8s linear infinite reverse;
}

@keyframes floatStar {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50%       { transform: translateY(-6px); opacity: 1; }
}

@keyframes floatSheep {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(-4px) translateX(2px); }
}

@keyframes floatConfetti {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0.9; }
  100% { transform: translateY(16px) rotate(15deg); opacity: 0.2; }
}

/* gambar utama di lightbox */
.liga-lightbox-img-wrap {
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 70vh;
}

.liga-lightbox-img-wrap img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.liga-lightbox-caption {
  font-size: 12px;
  color: #374151;
  margin-top: 4px;
  text-align: center;
}
.liga-lightbox-caption strong {
  font-weight: 600;
}

@media (max-width: 640px) {
  .liga-lightbox-content {
    padding: 16px 12px 12px;
    border-radius: 18px;
  }
  .decor-crown { font-size: 22px; }
  .decor-star,
  .decor-confetti,
  .decor-sheep {
    font-size: 14px;
  }
}


/* ============================
   WEEK DETAIL – WINNER LAYOUT
============================ */

.winner-layout {
  display: flex;
  gap: 16px;
  align-items: stretch;
  margin-top: 8px;
}

.winner-photo-area {
  flex: 2;
  display: flex;
  justify-content: flex-start;
}

.winner-frame {
  max-width: 780px;
  width: 100%;
  margin: 0;
  border-radius: 22px;
}


/* frame juara */
.winner-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 4px solid #ffd6e8;
  box-shadow: 0 10px 26px rgba(248, 113, 166, 0.35);
  background: #fff;
}

.winner-frame img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
  background: #f9fafb;
}

.winner-frame-title {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(90deg, #ffb7d9, #ffe4f4);
  color: #4b0b27;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
  text-align: center;
}

/* card info kanan */
.winner-info-card {
  flex: 1.4;
  background: #ffffff;
  border-radius: 20px;
  padding: 14px 14px 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.winner-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid #fecaca;
  box-shadow: 0 8px 20px rgba(248, 113, 166, 0.55);
}

.winner-name {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.winner-gen {
  font-size: 12px;
  color: #6b7280;
}

.winner-vote-line {
  margin-top: 4px;
  font-size: 13px;
  color: #374151;
}

.winner-caption-title {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #6b21a8;
}

.winner-caption {
  font-size: 13px;
  color: #111827;
  padding: 6px 10px;
  border-radius: 10px;
  background: #fdf2ff;
  border: 1px solid rgba(244, 114, 182, 0.4);
  word-break: break-word;
}

/* tombol lihat post (X / IG) */
.liga-caption-link {
  margin-top: 6px;
  align-self: flex-start;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #111827;
  color: #f9fafb;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.45);
}
.liga-caption-link:hover {
  background: #1f2937;
}

/* dark mode */
body.dark .winner-info-card {
  background: #020617;
  box-shadow: 0 18px 44px rgba(0,0,0,0.9);
}
body.dark .winner-name {
  color: #e5e7eb;
}
body.dark .winner-gen,
body.dark .winner-vote-line {
  color: #9ca3af;
}
body.dark .winner-caption {
  background: rgba(30, 64, 175, 0.2);
  border-color: rgba(129, 140, 248, 0.5);
  color: #e5e7eb;
}
body.dark .liga-caption-link {
  background: #f9a8d4;
  color: #111827;
}

/* responsive: stack atas–bawah di layar kecil */
@media (max-width: 768px) {
  .winner-layout {
    flex-direction: column;
  }
  .winner-info-card {
    order: -1; /* info card di atas foto */
  }
}

/* Header panel pemenang: avatar + nama */
.winner-info-card {
  flex: 1.4;
  background: #ffffff;
  border-radius: 20px;
  padding: 14px 16px 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.winner-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.winner-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.winner-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.winner-gen {
  font-size: 12px;
  color: #6b7280;
}

/* garis pemisah */
.winner-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.4);
  margin: 4px 0 6px;
}

/* vote line + caption */
.winner-vote-line {
  font-size: 13px;
  color: #374151;
  margin-bottom: 4px;
}

.winner-vote-line strong {
  font-weight: 700;
  color: #111827;
}

.winner-caption-title {
  font-size: 12px;
  font-weight: 600;
  color: #6b21a8;
  margin-top: 4px;
}

.winner-caption {
  font-size: 13px;
  color: #111827;
  padding: 6px 10px;
  border-radius: 10px;
  background: #fdf2ff;
  border: 1px solid rgba(244, 114, 182, 0.4);
  word-break: break-word;
}


/* ============================
   HEAD TO HEAD SECTION
============================ */

.liga-h2h-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.liga-h2h-card {
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(to bottom right, #eff6ff, #fee2e2);
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.25);
  font-size: 13px;
}

.liga-h2h-names {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.liga-h2h-score {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  font-size: 12px;
}

.liga-h2h-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #4b5563;
}

.liga-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.03);
  color: #111827;
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.6);
  transition: all .18s ease;
}

.liga-back-btn:hover {
  background: rgba(248, 113, 166, 0.09);
  box-shadow: 0 6px 18px rgba(248, 113, 166, 0.35);
  transform: translateY(-1px);
}

.liga-back-icon {
  font-size: 14px;
}

.liga-season-progress {
  margin: 10px 0 4px;
}

.liga-progress-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.liga-progress-bar {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.liga-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f97316, #ec4899);
  transition: width .3s ease;
}

.liga-next-match {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.06);
  color: #1d4ed8;
}

.liga-next-label {
  font-weight: 600;
}

.liga-next-date {
  color: #111827;
}

.liga-next-count {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  font-size: 11px;
}

.liga-next-live {
  font-weight: 600;
  color: #dc2626;
}


.liga-weeks-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.liga-weeks-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.liga-weeks-sort {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b7280;
}

.liga-weeks-sort select {
  font-size: 12px;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.liga-chip.active {
  box-shadow: 0 0 0 1px rgba(248, 113, 166, 0.7);
  background: rgba(248, 113, 166, 0.18);
}


.liga-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.liga-highlight-card {
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(to bottom right, #f3e8ff, #fee2e2);
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.25);
  font-size: 13px;
}

.liga-highlight-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b21a8;
  margin-bottom: 4px;
}

.liga-highlight-main {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.liga-highlight-sub {
  font-size: 12px;
  color: #4b5563;
}

.liga-empty-state {
  text-align: center;
  padding: 40px 20px;
  border-radius: 20px;
  background: rgba(255, 240, 250, 0.6);
  border: 1px dashed rgba(244, 114, 182, 0.4);
  color: #9d174d;
  margin-top: 12px;
}

.liga-empty-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.liga-empty-sub {
  font-size: 13px;
  color: #6b7280;
}


.liga-season-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* === Season toggle baru === */

.liga-season-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.98);
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.4);
  border: 1px solid #e5e7eb;
}

.liga-season-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #6b7280;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

/* pill per season */

.liga-season-pill {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  border: none;
  background: transparent;
  text-decoration: none;
  color: #4b5563;
  white-space: nowrap;
  transition: all 0.18s ease;
  position: relative;
}

.liga-season-pill:hover {
  background: rgba(248, 113, 166, 0.08);
  color: #111827;
}

.liga-season-pill.active {
  background: linear-gradient(90deg, #f97316, #ec4899);
  color: #f9fafb;
  box-shadow: 0 8px 20px rgba(248, 113, 166, 0.6);
}

/* badge kecil "Current" di season aktif */
.liga-season-pill.active::after {
  content: "Current";
  position: absolute;
  right: 6px;
  bottom: -12px;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #111827;
  color: #f9fafb;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.5);
}

/* biar nggak kepotong */
.liga-season-switch {
  position: relative;
  padding-bottom: 10px; /* ruang buat badge "Current" */
}

/* notice kalau season belum dimulai */
.liga-empty-season {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(254, 249, 195, 0.6);
  border: 1px dashed rgba(234, 179, 8, 0.7);
  font-size: 13px;
  color: #854d0e;
}

@media (max-width: 640px) {
  .liga-season-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .liga-season-switch {
    margin-top: 6px;
  }
}

/* ============================
   DARK MODE – LIGA (DTSL)
============================ */

/* Liga shell jangan bikin kotak sendiri */
body.dark .liga-shell {
  background: transparent;
}

/* Header liga ikut menyatu */
body.dark .liga-header {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.dark .liga-topbar {
  border-color: rgba(148, 163, 184, 0.4);
}

body.dark .liga-back-btn,
body.dark .liga-pill {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

body.dark .liga-back-btn:hover,
body.dark .liga-pill:hover {
  background: rgba(30, 64, 175, 0.9);
}

/* brand card */
body.dark .liga-brand {
  background:
    radial-gradient(circle at top left, rgba(244, 114, 182, 0.22) 0, transparent 55%),
    rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

body.dark .liga-brand-title {
  color: #f9fafb;
}

body.dark .liga-brand-sub {
  color: #9ca3af;
}

/* blok-blok utama */
body.dark .liga-block {
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(51, 65, 85, 0.9);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.9);
}

body.dark .liga-block-title {
  color: #e5e7eb;
}

body.dark .liga-sub {
  color: #9ca3af;
}

/* tabel klasemen */
body.dark .liga-table {
  border-color: rgba(31, 41, 55, 1);
}

body.dark .liga-table thead {
  background: rgba(15, 23, 42, 1);
}

body.dark .liga-table th {
  color: #cbd5f5;
  border-color: rgba(51, 65, 85, 1);
}

body.dark .liga-table td {
  color: #e5e7eb;
  border-color: rgba(31, 41, 55, 1);
}

body.dark .liga-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.9);
}

/* kartu Head to Head */
body.dark .liga-h2h-card {
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
}

/* kartu hasil per minggu */
body.dark .lg-week-card {
  background:
    radial-gradient(circle at top left, rgba(248, 113, 113, 0.27) 0, transparent 55%),
    rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #e5e7eb;
}

body.dark .lg-week-cta {
  color: #fda4af;
}

/* progress & next match */
body.dark .liga-progress-bar {
  background: rgba(15, 23, 42, 1);
}

body.dark .liga-progress-fill {
  background: linear-gradient(90deg, #fb7185, #f97316);
}

body.dark .liga-next-match {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #e5e7eb;
}

/* modal info liga */
body.dark .liga-info-backdrop {
  background: rgba(15, 23, 42, 0.8);
}

body.dark .liga-info-content {
  background: rgba(15, 23, 42, 1);
  color: #e5e7eb;
}

/* footer */
body.dark .liga-footer {
  color: #9ca3af;
}

/* ====== LIGA KAMISAN ====== */

body.dark .liga-block {
  background: radial-gradient(circle at top, #020617 0, #020617 50%, #020617 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95);
}

body.dark .liga-shell {
  color: #e5e7eb;
}

body.dark .liga-header h1,
body.dark .liga-brand-title,
body.dark .liga-block-title {
  color: #e5e7eb;
}

body.dark .liga-sub,
body.dark .liga-brand-sub,
body.dark .liga-footer {
  color: #9ca3af;
}

body.dark .liga-table thead th {
  background: #020617;
  color: #9ca3af;
  border-bottom-color: rgba(55, 65, 81, 0.9);
}

body.dark .liga-table tbody td {
  border-bottom-color: rgba(30, 41, 59, 0.9);
}

body.dark .lg-name {
  color: #e5e7eb;
}

body.dark .lg-sub {
  color: #9ca3af;
}

/* podium cards */
body.dark .lg-podium-card {
  background: radial-gradient(circle at top, #020617 0, #020617 50%, #020617 100%);
  border-color: rgba(148, 163, 184, 0.6);
}

/* minggu cards */
body.dark .lg-week-card {
  background: radial-gradient(circle at top, #020617 0, #020617 50%, #020617 100%);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.95);
}

body.dark .lg-week-label {
  color: #f97316;
}

body.dark .lg-week-date {
  color: #e5e7eb;
}

/* modal info liga */
body.dark .liga-info-content {
  background: radial-gradient(circle at top, #020617 0, #020617 45%, #020617 100%);
  color: #e5e7eb;
}

/* ====== WINNER LAYOUT ====== */

body.dark .winner-frame {
  border-color: #4b5563;
  background: #020617;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.95);
}

body.dark .winner-frame-title {
  background: linear-gradient(90deg, #f97316, #ec4899);
  color: #f9fafb;
}

body.dark .winner-info-card {
  background: #020617;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.95);
}

body.dark .winner-name {
  color: #e5e7eb;
}

body.dark .winner-gen,
body.dark .winner-vote-line {
  color: #9ca3af;
}

/* ====== GENERIC LIGHTBOX ====== */

body.dark .liga-lightbox-content {
  background: radial-gradient(circle at top, #020617 0, #020617 45%, #020617 100%);
  color: #e5e7eb;
}


/* =====================================
   FIX DARK MODE UNTUK HALAMAN LIGA DTSL
   ===================================== */

/* Base warna khusus liga saat body.dark aktif */
body.dark .liga-shell {
  background: #02061a;        /* latar belakang utama */
  color: #f5f7ff;             /* teks default */
}

/* Header, block utama, footer – samakan gaya, hilangkan "kotak-kotak" aneh */
body.dark .liga-header,
body.dark .liga-block,
body.dark .liga-footer {
  background: rgba(7, 13, 32, 0.98);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

/* Sub-text di liga (deskripsi kecil) biar lebih soft tapi masih kebaca */
body.dark .liga-sub,
body.dark .liga-brand-sub,
body.dark .liga-h2h-sub {
  color: rgba(210, 220, 255, 0.82);
}

/* ===========================
   PODIUM CARD – teks gelap
   =========================== */

/* Semua podium card default pakai teks gelap (karena background pastel) */
.liga-podium-123 .podium,
.liga-podium-inline .lg-podium-card {
  color: #1b1020;
}

/* Warna background podium (boleh disesuaikan, ini versi lembut) */
.podium-1,
.lg-podium-1 {
  background: #ffe7a3;
}

.podium-2,
.lg-podium-2 {
  background: #f0e6ff;
}

.podium-3,
.lg-podium-3 {
  background: #ffe6f1;
}

/* Judul & sub-text dalam podium supaya benar-benar kontras */
.podium-1 .podium-name,
.podium-1 .podium-sub,
.podium-2 .podium-name,
.podium-2 .podium-sub,
.podium-3 .podium-name,
.podium-3 .podium-sub,
.lg-podium-card .lg-name,
.lg-podium-card .lg-sub {
  color: #201322;
}

/* ===========================
   Kartu Head to Head & Mingguan
   =========================== */

body.dark .liga-h2h-card,
body.dark .lg-week-card {
  background: rgba(11, 18, 40, 0.98);
  border: 1px solid rgba(255, 145, 100, 0.5);
  color: #f6f7ff;
}

body.dark .lg-week-meta {
  color: rgba(210, 220, 255, 0.8);
}

/* Dropdown sort di hasil minggu */
body.dark .liga-weeks-sort select {
  background: rgba(11, 18, 40, 0.98);
  color: #f6f7ff;
  border-color: rgba(255, 255, 255, 0.18);
}

/* Tabel klasemen */
body.dark .liga-table th,
body.dark .liga-table td {
  color: #f6f7ff;
  border-color: rgba(255, 255, 255, 0.05);
}

/* Bar progress & "Next Matchday" supaya nyatu dengan tema */
body.dark .liga-season-progress {
  background: transparent;
}

body.dark .liga-progress-bar {
  background: rgba(255, 255, 255, 0.08);
}

body.dark .liga-progress-fill {
  background: linear-gradient(90deg, #ff8a5c, #ffce6b);
}

body.dark .liga-next-match {
  background: rgba(11, 18, 40, 0.98);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* =========================
   LIGA HEADER – brand strip (FINAL)
   ========================= */

.liga-brand {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.liga-brand::before,
.liga-brand::after {
  display: none;
}

.liga-brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: none;
  border: none;
  box-shadow: none;
}

/* teks brand – versi light */
.liga-brand-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.liga-brand-sub {
  font-size: 13px;
  color: #6b7280;
}

/* teks brand – versi dark */
body.dark .liga-brand-title {
  color: #f9fafb;
}

body.dark .liga-brand-sub {
  color: #cbd5f5;
}


/* =========================
   LIGA – weekly cards text (FINAL)
   ========================= */

/* LIGHT MODE: pakai warna default yang enak di background pastel */
body:not(.dark) .lg-week-card {
  color: #111827;
}

body:not(.dark) .lg-week-header span {
  color: #6b7280;
}

body:not(.dark) .lg-week-name {
  color: #111827;
  font-weight: 600;
}

body:not(.dark) .lg-week-meta {
  color: #6b7280;
}

body:not(.dark) .lg-week-cta {
  color: #1d4ed8;
  font-weight: 500;
}

/* DARK MODE: baru kita bikin teks jadi terang */
body.dark .lg-week-card {
  color: #ffffff;
}

body.dark .lg-week-header span {
  color: #ffd7c2; /* judul minggu & tanggal */
}

body.dark .lg-week-name {
  color: #ffffff;
  font-weight: 600;
}

body.dark .lg-week-meta {
  color: #ffbfa0;
}

body.dark .lg-week-cta {
  color: #ffd7c2;
  font-weight: 500;
}


/* =========================
   LIGA – top right controls (theme toggle)
   ========================= */

.liga-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* tombol theme liga */
#ligaThemeToggle {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 15px;
  border: none;
  cursor: pointer;
  background: linear-gradient(90deg, #ff8e8e, #ff7bbb);
  color: #fff;
}

/* saat tema light (body TIDAK punya .dark) */
body:not(.dark) #ligaThemeToggle {
  background: #fff4d2;
  color: #d07700;
}

/* =================================
   FINAL FIX – LIGA HEADER DARK MODE
   Biar nggak kelihatan kotak/garis
================================= */

body.dark .liga-header {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
body.dark .liga-topbar {
  border: none;
  background: transparent;
}

/* ====== Season standings: rank + trend ====== */

.lg-rank-cell {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lg-rank-number {
  font-weight: 600;
}

.lg-rank-trend {
  font-size: 0.7rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1.2;
}

/* naik */
.lg-trend-up {
  color: #16a34a;
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(22, 163, 74, 0.08);
}

/* turun */
.lg-trend-down {
  color: #dc2626;
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(248, 113, 113, 0.08);
}

/* tetap */
.lg-trend-same {
  color: #6b7280;
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(148, 163, 184, 0.08);
}

/* pendatang baru / belum ada data sebelumnya */
.lg-trend-new {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(245, 158, 11, 0.08);
}

/* DARK MODE penyesuaian ringan */
body.dark .lg-trend-up {
  background: rgba(22, 163, 74, 0.2);
}

body.dark .lg-trend-down {
  background: rgba(220, 38, 38, 0.2);
}

body.dark .lg-trend-same,
body.dark .lg-trend-new {
  background: rgba(148, 163, 184, 0.2);
}

/* ====== Champion row (Rank 1) ====== */

.lg-row-champion {
  position: relative;
  background: linear-gradient(
    90deg,
    rgba(251, 191, 36, 0.12),
    rgba(253, 224, 71, 0.03)
  );
}

body.dark .lg-row-champion {
  background: linear-gradient(
    90deg,
    rgba(250, 204, 21, 0.18),
    rgba(15, 23, 42, 0.02)
  );
}

.lg-row-champion .lg-name {
  font-weight: 700;
}

/* badge emas di sebelah nama juara */
.lg-champion-badge {
  margin-left: 0.3rem;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #fbbf24, #facc15);
  color: #7c2d12;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.lg-champion-badge::before {
  content: "👑";
  font-size: 0.8rem;
}

/* ============================
   FIX: Vote Status Bar (Liga)
   ============================ */

/* layout dasar */
.liga-vote-status,
#ligaVoteStatus {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card-bg, #ffffff);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  font-size: 0.8rem;
  color: var(--text-main, #1f2933);
  overflow: hidden;
}

/* badge LIVE */
.liga-vote-live-pill,
#ligaVoteStatusLive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #ff3366, #ff9800);
  color: #fff;
}

/* teks label "DombaTerbang SuperLeague" */
.liga-vote-label {
  font-weight: 600;
  white-space: nowrap;
}

/* kalimat status utama */
.liga-vote-text,
#ligaVoteStatusText {
  flex: 1 1 160px;
  min-width: 0;
}

/* countdown + waktu update */
.liga-vote-countdown,
#ligaVoteCountdown,
.liga-vote-time,
#ligaVoteStatusTime {
  white-space: nowrap;
  font-size: 0.75rem;
  opacity: 0.8;
}

/* DARK MODE */
body.dark .liga-vote-status,
body.dark #ligaVoteStatus {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  color: #e5e7eb;
}

/* Responsif: HP – elemen dibungkus 2 baris */
@media (max-width: 600px) {
  .liga-vote-status,
  #ligaVoteStatus {
    flex-wrap: wrap;
    align-items: flex-start;
    border-radius: 18px;
    padding: 8px 10px;
  }

  .liga-vote-label {
    flex-basis: 100%;
  }

  .liga-vote-text,
  #ligaVoteStatusText {
    flex-basis: 100%;
  }

  .liga-vote-countdown,
  #ligaVoteCountdown,
  .liga-vote-time,
  #ligaVoteStatusTime {
    font-size: 0.7rem;
  }
}
/* ============================
   FIX: Liga Season Table Mobile
   ============================ */

.liga-table-wrap,
.liga-table-scroll {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 6px;
}

/* Scrollbar halus di mobile */
.liga-table-wrap::-webkit-scrollbar,
.liga-table-scroll::-webkit-scrollbar {
  height: 6px;
}
.liga-table-wrap::-webkit-scrollbar-thumb,
.liga-table-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.7);
}

/* Di layar kecil, tabel boleh lebih lebar dari layar (user bisa geser) */
@media (max-width: 768px) {
  .liga-table {
    min-width: 640px;
    font-size: 0.8rem;
  }

  .liga-table th,
  .liga-table td {
    padding: 6px 8px;
  }
}

/* =====================================
   DTSL – PODIUM v3 (layout + animation)
   ===================================== */

.liga-podium-123 {
  padding: 10px 12px 18px;
}

/* wrapper 2–1–3 */
.liga-podium-123 .podium-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.4rem;
  max-width: 780px;
  margin: 0 auto;
}

/* kartu podium dasar */
.liga-podium-123 .podium {
  position: relative;
  flex: 0 0 190px;
  border-radius: 22px;
  padding: 1.1rem 0.9rem 1.4rem;
  text-align: center;
  background: linear-gradient(180deg, #ffffff, #f9fafb);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
  overflow: hidden;

  /* posisi awal sebelum animasi */
  transform: translateY(30px);
  opacity: 0;

  /* offset tinggi tiap posisi, dipakai di animasi */
  --offset-y: 0px;
}

/* tinggi beda-beda: 1 paling tinggi, 3 paling rendah */
.liga-podium-123 .podium.podium-1 { --offset-y: -18px; }
.liga-podium-123 .podium.podium-2 { --offset-y: 4px; }
.liga-podium-123 .podium.podium-3 { --offset-y: 10px; }

/* animasi naik podium – class ini ditambah via JS */
.liga-podium-123 .podium.podium-enter {
  animation: dtslPodiumRise 0.6s ease-out forwards;
}

@keyframes dtslPodiumRise {
  0% {
    transform: translateY(calc(var(--offset-y) + 40px));
    opacity: 0;
  }
  60% {
    transform: translateY(calc(var(--offset-y) - 4px));
    opacity: 1;
  }
  100% {
    transform: translateY(var(--offset-y));
    opacity: 1;
  }
}

/* avatar & teks di dalam podium */
.liga-podium-123 .podium img {
  width: 90px;
  height: 90px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid rgba(248, 113, 166, 0.9);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
  margin-bottom: 0.4rem;
}

.liga-podium-123 .podium-rank {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.liga-podium-123 .podium-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.liga-podium-123 .podium-sub {
  font-size: 0.8rem;
  color: #6b7280;
}

/* warna kartu: gold, “silver”, bronze */
.liga-podium-123 .podium.podium-1 {
  background: linear-gradient(180deg, #ffe59a, #ffd66b);
}
.liga-podium-123 .podium.podium-2 {
  background: linear-gradient(180deg, #e9ecff, #d6ddff);
}
.liga-podium-123 .podium.podium-3 {
  background: linear-gradient(180deg, #ffe4cc, #ffd1b0);
}

/* hover sedikit naik */
.liga-podium-123 .podium:hover {
  transform: translateY(calc(var(--offset-y) - 6px));
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.24);
}

/* ✨ SPARKLE khusus juara 1 */
.liga-podium-123 .podium.podium-1::before,
.liga-podium-123 .podium.podium-1::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #fffbe6;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.95);
  animation: dtslSparkle 1.8s ease-in-out infinite;
}

.liga-podium-123 .podium.podium-1::before {
  top: 18px;
  left: 20%;
}

.liga-podium-123 .podium.podium-1::after {
  top: 22px;
  right: 18%;
  animation-delay: .5s;
}

@keyframes dtslSparkle {
  0%, 100% {
    transform: scale(0.2);
    opacity: 0;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
  70% {
    transform: scale(0.6);
    opacity: 0;
  }
}

/* MOBILE: sedikit dikecilkan supaya tetap muat 3 kartu */
@media (max-width: 768px) {
  .liga-podium-123 .podium-wrapper {
    gap: 0.9rem;
  }

  .liga-podium-123 .podium {
    flex: 0 0 128px;
    padding: 0.9rem 0.6rem 1.1rem;
  }

  .liga-podium-123 .podium img {
    width: 70px;
    height: 70px;
  }
}

/* Podium – versi mobile, supaya 1–2–3 muat di dalam frame putih */
@media (max-width: 640px) {
  #ligaCurrentWeekSection .podium-stage {
    transform: scale(0.5);      /* kecilin sedikit */
    transform-origin: center top; /* tetap center di dalam kotak putih */
  }
}

/* =========================
   GLOBAL DARK BACKGROUND FIX
   ========================= */

body.dark {
  background: #020617; /* gelap full layar */
  color: #e5e7eb;
}
/* Liga shell jangan bikin kotak sendiri */
body.dark .liga-shell {
  background: transparent;
}

/* ===============================
   KAMIS PODIUM – MONDAY STYLE
   =============================== */

.mpl-podium {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 12px;
}

/* ===== PODIUM CARD ===== */
.mpl-bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 120px;
  padding: 0 28px 0 160px;
  border-radius: 24px;
  overflow: visible;
}

/* FOTO PODIUM (PNG / TRANSPARAN) */
.mpl-avatar {
  position: absolute;
  left: -28px;
  bottom: 0;
  width: 130px;
  height: auto;
  object-fit: contain;
  z-index: 5;
  background: transparent;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.35));
}

/* TEXT */
.mpl-content {
  flex: 1;
  z-index: 2;
}

.mpl-sub {
  font-size: 13px;
  opacity: .85;
}

.mpl-name {
  font-family: 'Orbitron', system-ui, sans-serif;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1;
}

/* SCORE */
.mpl-score {
  text-align: right;
  z-index: 2;
}

.mpl-score strong {
  display: block;
  font-size: 28px;
  font-weight: 900;
}

.mpl-score span {
  font-size: 14px;
  opacity: .9;
}

/* RANK NUMBER */
.mpl-rank {
  position: absolute;
  left: 130px;
  font-size: 84px;
  font-weight: 900;
  opacity: .18;
  z-index: 1;
  line-height: 1;
  font-family: 'Orbitron', system-ui, sans-serif;
}

/* WARNA PODIUM */
.mpl-bar.rank-1 {
  background: #f3ea8b;
  color: #1f2937;
}

.mpl-bar.rank-2 {
  background: #2f5fd0;
  color: #ffffff;
}

.mpl-bar.rank-3 {
  background: #f2b36d;
  color: #1f2937;
}

/* ===============================
   MOBILE VERSION
   =============================== */
@media (max-width: 768px) {

  .mpl-bar {
    height: 92px;
    padding: 0 16px 0 110px;
    border-radius: 18px;
  }

  .mpl-avatar {
    width: 90px;
    left: -12px;
  }

  .mpl-name {
    font-size: 28px;
  }

  .mpl-rank {
    font-size: 64px;
    left: 86px;
  }

  .mpl-score strong {
    font-size: 22px;
  }

  .mpl-score span {
    font-size: 13px;
  }
}

/* ===============================
   DESKTOP F1 STYLE (1–2–3)
   =============================== */
@media (min-width: 769px) {

  .mpl-podium {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr;
    gap: 48px;
    align-items: end;
    padding: 56px 24px 32px;
  }

  .mpl-bar {
    height: 220px;
    padding: 96px 32px 32px;
    border-radius: 36px;
  }

  .mpl-bar.rank-1 {
    order: 2;
    transform: translateY(-64px);
  }

  .mpl-bar.rank-2 { order: 1; }
  .mpl-bar.rank-3 { order: 3; }

  .mpl-avatar {
    left: 50%;
    top: -72px;
    transform: translateX(-50%);
    width: 180px;
  }

  .mpl-content {
    padding-top: 28px;
    text-align: center;
  }

  .mpl-sub {
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.06em;
  }

  .mpl-name {
    font-size: 46px;
    letter-spacing: 0.1em;
  }

  .mpl-score {
    position: absolute;
    right: 28px;
    bottom: 28px;
  }

  .mpl-rank {
    top: 20px;
    left: 24px;
    font-size: 96px;
  }
}

/* ===============================
   MOBILE FIX – PODIUM ORDER
   Urutan: 1 → 2 → 3 (mobile only)
   =============================== */
@media (max-width: 768px) {

  .mpl-podium {
    display: flex;
    flex-direction: column;
  }

  .mpl-bar.rank-1 {
    order: 1;
  }

  .mpl-bar.rank-2 {
    order: 2;
  }

  .mpl-bar.rank-3 {
    order: 3;
  }
}

/* ===============================
   PODIUM KAMIS – COLOR OVERRIDE
   =============================== */

.liga-kamis .mpl-bar.rank-1 {
  background: linear-gradient(135deg, #a7f3d0, #34d399);
  color: #064e3b;
}

.liga-kamis .mpl-bar.rank-2 {
  background: linear-gradient(135deg, #dbeafe, #60a5fa);
  color: #1e3a8a;
}

.liga-kamis .mpl-bar.rank-3 {
  background: linear-gradient(135deg, #fde68a, #fb923c);
  color: #7c2d12;
}

/* Dark mode */
body.dark .liga-kamis .mpl-bar.rank-1 {
  background: linear-gradient(135deg, #064e3b, #065f46);
  color: #d1fae5;
}

body.dark .liga-kamis .mpl-bar.rank-2 {
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  color: #dbeafe;
}

body.dark .liga-kamis .mpl-bar.rank-3 {
  background: linear-gradient(135deg, #7c2d12, #9a3412);
  color: #fde68a;
}

/* ===============================
   SEASON SUMMARY – LIGA KAMIS
   =============================== */

.liga-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.liga-summary-card {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ecfeff, #cffafe);
  box-shadow: 0 10px 30px rgba(14,165,233,.25);
}

.liga-summary-title {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #0369a1;
}

.liga-summary-main {
  font-size: 22px;
  font-weight: 900;
  margin-top: 6px;
}

.liga-summary-sub {
  font-size: 12px;
  opacity: .75;
}


/* ===============================
   MOBILE COMPACT – WEEKLY RESULTS
   =============================== */
@media (max-width: 640px) {

  .lg-week-card {
    padding: 10px 12px;
    border-radius: 16px;
  }

  .lg-week-avatar {
    width: 36px;
    height: 36px;
  }

  .lg-week-name {
    font-size: 13px;
    font-weight: 700;
  }

  .lg-week-meta {
    font-size: 11px;
  }

  .lg-week-body {
    gap: 8px;
  }

  .lg-week-cta {
    font-size: 11px;
  }
}

/* =========================================
   DARK MODE FIX – SEASON SUMMARY (KAMIS)
   ========================================= */

body.dark .liga-summary-card {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.95),
    rgba(2, 6, 23, 0.95)
  );
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
}

body.dark .liga-summary-title {
  color: #7dd3fc; /* biru terang */
}

body.dark .liga-summary-main {
  color: #f8fafc; /* PUTIH JELAS */
  text-shadow: 0 0 10px rgba(125, 211, 252, 0.35);
}

body.dark .liga-summary-sub {
  color: rgba(226, 232, 240, 0.75);
}


/* ==========================================
  Champion Banner
============================================ */
.liga-champion-banner{
  display:flex;
  align-items:center;
  gap:18px;
  padding:18px 22px;
  margin:18px 0 6px;
  border-radius:18px;
  background:linear-gradient(135deg,#fff7cc,#ffe6f0);
  box-shadow:0 10px 28px rgba(0,0,0,.12);
}
.liga-champion-avatar{
  width:64px;height:64px;border-radius:50%;
  object-fit:cover;border:3px solid #fff;
  box-shadow:0 6px 16px rgba(0,0,0,.15);
}
.liga-champion-text{line-height:1.2}
.liga-champion-title{font-weight:800;font-size:14px;letter-spacing:.04em;color:#a06}
.liga-champion-name{font-weight:900;font-size:22px}
.liga-champion-sub{font-size:13px;opacity:.7}
.liga-champion-crown{font-size:28px}

/* ======================================
  Season Switch
========================================= */
.liga-season-switch{
  position:relative;
  display:inline-flex;
  gap:4px;
  padding:4px;
  border-radius:999px;
  background:#f3f4f7;
}

.liga-season-pill{
  position:relative;
  padding:8px 16px;
  border-radius:999px;
  font-weight:600;
  text-decoration:none;
  color:#444;
  z-index:2;
}

.liga-season-pill.active{
  color:#fff;
}

.liga-season-indicator{
  position:absolute;
  top:4px;
  bottom:4px;
  border-radius:999px;
  background:linear-gradient(135deg,#ff8aa5,#ffb1d0);
  transition:all .35s ease;
  z-index:1;
}