/* Public site (Beranda, Jadwal, Hasil, Grup, Bagan Knockout) */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: #F6F7FB;
  color: #1A1F2B;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: .85; }
h1, h2, h3 { font-family: 'Barlow Condensed', sans-serif; margin: 0; }

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

.pub-header { background: #0B1B46; }

.pub-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 12px;
  position: relative;
}

.pub-logo { display: flex; align-items: center; gap: 12px; }

.pub-logo-badge {
  background: #fff;
  border-radius: 10px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  flex: none;
}
.pub-logo-badge img { height: 44px; width: auto; display: block; }

.pub-wordmark { display: flex; flex-direction: column; line-height: 1.15; }
.pub-wordmark-main { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 21px; letter-spacing: .5px; color: #fff; }
.pub-wordmark-sub { font-size: 11px; color: #9CA8C9; font-weight: 600; letter-spacing: .3px; }

.pub-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.pub-nav a { padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: 14px; color: #C7D0E8; }
.pub-nav a.is-active { background: rgba(255,255,255,.14); color: #fff; }

.pub-nav-toggle {
  display: none;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}

/* ---------- Hero (Beranda) ---------- */

.pub-hero { background: linear-gradient(135deg,#0B1B46 0%,#15295E 100%); padding: 56px 32px 72px; }
.pub-hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 700;
  color: #F0B429; letter-spacing: .5px; margin-bottom: 20px;
}
.pub-hero-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: #F0B429; display: inline-block; }
.pub-hero h1 { font-weight: 900; font-size: 52px; line-height: 1.05; color: #fff; letter-spacing: .3px; max-width: 820px; }
.pub-hero p { font-size: 17px; color: #AEB9D6; max-width: 620px; margin-top: 18px; line-height: 1.6; }
.pub-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.pub-btn-primary { background: #F0B429; color: #1A1200; font-weight: 700; font-size: 15px; padding: 13px 24px; border-radius: 10px; display: inline-block; }
.pub-btn-secondary { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff; font-weight: 700; font-size: 15px; padding: 13px 24px; border-radius: 10px; display: inline-block; }
.pub-btn-dark { background: #0B1B46; color: #fff; font-weight: 700; font-size: 14px; padding: 12px 22px; border-radius: 10px; display: inline-block; }

/* ---------- Page header (inner pages) ---------- */

.pub-page-header { background: #0B1B46; padding: 36px 32px 40px; }
.pub-page-header h1 { font-weight: 900; font-size: 38px; color: #fff; }
.pub-page-header p { font-size: 15px; color: #AEB9D6; margin-top: 8px; }

.pub-container { max-width: 1280px; margin: 0 auto; padding: 0 32px; width: 100%; box-sizing: border-box; }

/* ---------- Stats ---------- */

.pub-stats { margin-top: -40px; position: relative; z-index: 1; }
.pub-stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.pub-stat-card { background: #fff; border-radius: 14px; padding: 22px 20px; box-shadow: 0 10px 30px rgba(11,27,70,.08); border: 1px solid #E2E6F0; }
.pub-stat-value { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 36px; color: #0B1B46; }
.pub-stat-label { font-size: 13px; color: #6B7280; font-weight: 600; margin-top: 4px; }

/* ---------- Sections ---------- */

.pub-section { margin-top: 56px; }
.pub-section:first-of-type { margin-top: 28px; }
.pub-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 8px; }
.pub-section-head h2 { font-weight: 900; font-size: 28px; color: #0B1B46; }
.pub-link { font-size: 14px; font-weight: 700; color: #1D4ED8; }

/* =========================================================
   "Pertandingan Mendatang" (Beranda) - scoped to this section
   only; classes are prefixed pm- so nothing here affects any
   other page or section.
   ========================================================= */

.pm-section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.pm-section-title { display: flex; align-items: center; gap: 10px; }
.pm-section-title svg { flex: none; }
.pm-section-title h2 { font-weight: 900; font-size: 28px; color: #0B1B46; }
.pm-link { font-size: 14px; font-weight: 700; color: #1D4ED8; flex: none; }

.pm-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

.pm-card {
  background: #FFFFFF;
  border: 1px solid #E0E6F0;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(11,27,70,.05);
  padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pm-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(11,27,70,.1); }

.pm-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.pm-meta { font-size: 14px; font-weight: 600; color: #0D1B43; }
.pm-badge { font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; background: #E8F1FF; color: #1455E8; }
.pm-badge.is-done { background: #E6F7EE; color: #1B9C63; }

.pm-match { display: flex; align-items: stretch; gap: 12px; }
.pm-vs {
  flex: none; align-self: center;
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px;
  background: #F0F3FF; color: #0B1B46; font-weight: 800; font-size: 14px;
}

.pm-panel { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; text-align: left; }
.pm-panel-home { background: #FFF1F3; border-left: 4px solid #EF233C; }
.pm-panel-away { background: #EDF5FF; border-right: 4px solid #1455E8; }

.pm-logo-wrap { flex: none; }
.pm-logo {
  width: 56px; height: 56px; border-radius: 12px; object-fit: contain;
  background: #fff; border: 1px solid #E0E6F0; display: block;
}
.pm-logo-placeholder {
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 18px; color: #6B7280;
}

.pm-info { min-width: 0; }
.pm-kontingen { font-weight: 700; font-size: 17px; color: #0D1B43; line-height: 1.25; word-break: break-word; }
.pm-player { font-weight: 500; font-size: 13px; color: #334155; margin-top: 3px; line-height: 1.4; word-break: break-word; }

.pm-footer { margin-top: 16px; padding-top: 14px; border-top: 1px solid #EEF0F5; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 13px; color: #64748B; }
.pm-footer-item { display: inline-flex; align-items: center; gap: 6px; }
.pm-footer-item svg { flex: none; }

@media (min-width: 768px) {
  .pm-grid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
}
@media (min-width: 1200px) {
  .pm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .pm-card { padding: 16px; }
  .pm-match { flex-direction: column; }
  .pm-vs { align-self: center; width: 34px; height: 34px; font-size: 13px; }
  .pm-logo, .pm-logo-placeholder { width: 44px; height: 44px; }
  .pm-kontingen { font-size: 16px; }
}

.pub-pill { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; flex: none; }
.pub-pill-scheduled { background: #EEF2FF; color: #3730A3; }
.pub-pill-done { background: #E6F7EE; color: #1B9C63; }

/* ---------- Kontingen badge (logo + name) shown under a participant ---------- */

.pub-kontingen { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 11px; font-weight: 600; color: #6B7280; }
.pub-kontingen-logo { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid #E2E6F0; background: #fff; }
.pub-kontingen-name { white-space: nowrap; }
.pub-kontingen.is-inline { margin-top: 0; margin-left: 6px; font-style: normal; }
.pub-kontingen.is-inline .pub-kontingen-name::before { content: "("; }
.pub-kontingen.is-inline .pub-kontingen-name::after { content: ")"; }
.pub-kontingen.is-plain { margin-top: 0; font-size: inherit; font-weight: inherit; color: inherit; }
.pub-kontingen.is-plain .pub-kontingen-logo { width: 20px; height: 20px; }
.pub-vs { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 14px; color: #9AA3B8; flex: none; }

/* ---------- Empty state ---------- */

.pub-empty { background: #fff; border: 1px solid #E2E6F0; border-radius: 16px; padding: 56px 28px; text-align: center; box-shadow: 0 10px 30px rgba(11,27,70,.06); }
.pub-empty h2 { font-weight: 900; font-size: 22px; color: #0B1B46; margin-top: 16px; }
.pub-empty p { font-size: 14px; color: #6B7280; margin-top: 10px; max-width: 420px; margin-left: auto; margin-right: auto; }
.pub-empty .pub-btn-dark { margin-top: 20px; }

/* ---------- Classification badge ---------- */

.pub-classbadge { background: #fff; border: 1px solid #E2E6F0; border-radius: 999px; padding: 9px 18px; font-weight: 700; font-size: 13px; color: #0B1B46; display: inline-flex; align-items: center; gap: 8px; }
.pub-classbar { background: #fff; border: 1px solid #E2E6F0; border-radius: 14px; padding: 16px 20px; box-shadow: 0 10px 30px rgba(11,27,70,.06); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.pub-classbar-label { font-size: 13px; color: #6B7280; }

/* ---------- Filter chips (Jadwal) ---------- */

.pub-filterbar { background: #fff; border: 1px solid #E2E6F0; border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 20px; box-shadow: 0 10px 30px rgba(11,27,70,.06); }
.pub-filterbar-row { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; flex: 1 1 200px; min-width: 160px; }
.pub-filter-label { font-size: 12px; font-weight: 700; color: #9AA3B8; letter-spacing: .3px; text-transform: uppercase; }
.pub-chip { background: #fff; border: 1px solid #E2E6F0; border-radius: 999px; padding: 9px 18px; font-weight: 700; font-size: 13px; color: #0B1B46; display: inline-block; }
.pub-chip.is-active { background: #0B1B46; color: #fff; border-color: #0B1B46; }
.pub-count { font-size: 13px; color: #6B7280; font-weight: 600; margin: 14px 0; }

/* ---------- Filter dropdowns (select2) ---------- */

.pub-select-wrap { width: 100%; max-width: 280px; }

.pub-select-wrap .select2-container--default .select2-selection--single {
  height: 42px;
  background: #F6F7FB;
  border: 1px solid #E2E6F0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pub-select-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0 36px 0 18px;
  color: #0B1B46;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
}
.pub-select-wrap .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #6B7280;
  font-weight: 600;
}
.pub-select-wrap .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px;
  right: 14px;
}
.pub-select-wrap .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #6B7280 transparent transparent transparent;
  border-width: 5px 4px 0 4px;
}
.pub-select-wrap .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #0B1B46 transparent;
  border-width: 0 4px 5px 4px;
}
.pub-select-wrap .select2-container--default.select2-container--open .select2-selection--single,
.pub-select-wrap .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #0B1B46;
  box-shadow: 0 0 0 3px rgba(11,27,70,.08);
}

.select2-dropdown {
  border: 1px solid #E2E6F0;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(11,27,70,.14);
  overflow: hidden;
}
.select2-search--dropdown { padding: 10px; }
.select2-search--dropdown .select2-search__field {
  border: 1px solid #E2E6F0;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  outline: none;
}
.select2-results__options { padding: 4px; }
.select2-container--default .select2-results__option {
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  color: #1A1F2B;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: #0B1B46;
  color: #fff;
}
.select2-container--default .select2-results__option[aria-selected="true"] {
  background: #EEF2FF;
  color: #0B1B46;
  font-weight: 700;
}

.pub-date-group { margin-top: 28px; }
.pub-date-group:first-of-type { margin-top: 14px; }
.pub-date-heading { font-weight: 900; font-size: 20px; color: #0B1B46; margin-bottom: 12px; text-transform: capitalize; }

/* =========================================================
   Match schedule row (reusable partial) - currently wired up
   on Jadwal Pertandingan only. Hasil/Beranda keep their own
   existing row styles below until/unless adopted there too.
   ========================================================= */

.match-schedule-list { display: flex; flex-direction: column; gap: 16px; }

.match-schedule-card {
  display: grid;
  grid-template-columns: 180px minmax(0,1fr) 64px minmax(0,1fr) 180px auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #FFFFFF;
  border: 1px solid #E0E6F0;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(13,27,67,.04);
  min-height: 110px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.match-schedule-card:hover { box-shadow: 0 10px 24px rgba(13,27,67,.08); border-color: #C7D6FF; }

.match-schedule-classgroup {
  background: #F0F4FF;
  border-radius: 12px;
  padding: 16px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.match-schedule-class { font-size: 15px; font-weight: 700; color: #0D1B43; }
.match-schedule-group { font-size: 14px; color: #64748B; margin-top: 2px; }

.match-schedule-player { display: flex; align-items: center; gap: 12px; min-width: 0; }
.match-schedule-player img {
  width: 48px; height: 48px; object-fit: contain; flex-shrink: 0;
  border-radius: 10px; background: #fff; border: 1px solid #E0E6F0;
}
.match-schedule-player-logo-placeholder {
  width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #F0F4FF; color: #64748B; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 16px;
}
.match-schedule-player-info { min-width: 0; }
.match-schedule-player-name { font-size: 16px; font-weight: 700; color: #0D1B43; line-height: 1.35; overflow-wrap: anywhere; }
.match-schedule-contingent { font-size: 13px; color: #64748B; margin-top: 4px; }

.match-schedule-vs {
  justify-self: center;
  background: #EEF2FF; color: #0D1B43;
  border-radius: 12px; padding: 10px 18px;
  font-weight: 700; font-size: 16px;
  white-space: nowrap;
}

.match-schedule-meta { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #475569; }
.match-schedule-meta-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.match-schedule-meta-item svg { flex: none; }

.match-schedule-status {
  font-size: 12px; font-weight: 700; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  background: #EEF2FF; color: #1D35A8;
}
.match-schedule-status.is-done { background: #E6F7EE; color: #1B9C63; }

/* Tablet: date/status drop to a second row instead of squeezing 6 columns */
@media (max-width: 1199px) {
  .match-schedule-card {
    grid-template-columns: 170px minmax(0,1fr) 56px minmax(0,1fr);
    grid-template-areas:
      "classgroup home vs away"
      "meta meta meta status";
    row-gap: 10px;
  }
  .match-schedule-classgroup { grid-area: classgroup; }
  .match-schedule-player-home { grid-area: home; }
  .match-schedule-player-away { grid-area: away; }
  .match-schedule-vs { grid-area: vs; }
  .match-schedule-meta { grid-area: meta; flex-direction: row; gap: 18px; }
  .match-schedule-status { grid-area: status; justify-self: end; }
}

/* Mobile: one full column, stacked card */
@media (max-width: 767px) {
  .match-schedule-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    min-height: 0;
  }
  .match-schedule-classgroup { flex-direction: row; align-items: center; justify-content: space-between; padding: 10px 14px; }
  .match-schedule-player img, .match-schedule-player-logo-placeholder { width: 40px; height: 40px; }
  .match-schedule-player-name { font-size: 15px; }
  .match-schedule-vs { align-self: center; }
  .match-schedule-meta { flex-direction: row; justify-content: space-between; border-top: 1px solid #EEF0F5; padding-top: 10px; }
  .match-schedule-status { align-self: flex-start; }
}

/* =========================================================
   Match result card (reusable partial) - Hasil Pertandingan
   only. Beranda (Hasil Terbaru) / Grup / Knockout fallback
   lists keep their own .pub-row styling below.
   ========================================================= */

.match-result-list { display: flex; flex-direction: column; gap: 14px; }

.match-result-card {
  background: #FFFFFF;
  border: 1px solid #E0E6F0;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 2px 10px rgba(13,27,69,.04);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.match-result-card:hover { box-shadow: 0 10px 24px rgba(13,27,69,.08); border-color: #C7D6FF; }

.match-result-main {
  display: grid;
  grid-template-columns: 170px minmax(0,1fr) 110px minmax(0,1fr) 170px;
  grid-template-areas: "classgroup home score away date";
  align-items: center;
  gap: 16px;
}

.match-result-classgroup {
  grid-area: classgroup;
  background: #EEF2FF;
  border-radius: 12px;
  padding: 14px 16px;
}
.match-result-class { font-size: 16px; font-weight: 700; color: #0D1B45; }
.match-result-group { font-size: 13px; color: #64748B; margin-top: 2px; }

.match-result-player { display: flex; align-items: center; gap: 12px; min-width: 0; }
.match-result-player-home { grid-area: home; }
.match-result-player-away { grid-area: away; justify-content: flex-end; }
.match-result-player-away .match-result-player-info { text-align: right; }

.match-result-player img {
  width: 48px; height: 48px; object-fit: contain; flex-shrink: 0;
  border-radius: 10px; background: #fff; border: 1px solid #E0E6F0;
}
.match-result-player-logo-placeholder {
  width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #EEF2FF; color: #64748B; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 16px;
}
.match-result-player-info { min-width: 0; }
.match-result-player-name { font-size: 17px; font-weight: 700; color: #0D1B45; line-height: 1.3; overflow-wrap: anywhere; }
.match-result-player-name.is-winner { font-weight: 800; color: #0D1B45; }
.match-result-player-name.is-loser { font-weight: 600; color: #94A3B8; }
.match-result-contingent { font-size: 13px; color: #64748B; margin-top: 4px; }

.match-result-score {
  grid-area: score;
  justify-self: center;
  background: #EEF2FF; color: #0D1B45;
  border-radius: 12px; padding: 10px 18px;
  font-weight: 800; font-size: 28px;
  white-space: nowrap;
  text-align: center;
}

.match-result-tiebreak {
  font-size: 12px;
  font-weight: 700;
  color: #64748B;
  margin-top: 2px;
}

.match-result-date {
  grid-area: date;
  display: inline-flex; align-items: center; gap: 6px; justify-self: end;
  font-size: 14px; color: #0D1B45; white-space: nowrap;
}

.match-result-winner {
  margin-top: 14px;
  background: #EEF2FF;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
  font-size: 14px;
  color: #64748B;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.match-result-winner strong { color: #0D1B45; font-weight: 800; }

/* Tablet: classgroup+date on their own row, players+score on the next */
@media (max-width: 1199px) {
  .match-result-main {
    grid-template-columns: minmax(0,1fr) 90px minmax(0,1fr);
    grid-template-areas:
      "classgroup classgroup date"
      "home score away";
    row-gap: 12px;
  }
  .match-result-date { justify-self: end; }
}

/* Mobile: classgroup+date row, players side-by-side, score full width below */
@media (max-width: 767px) {
  .match-result-card { padding: 16px; }
  .match-result-main {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "classgroup date"
      "home away"
      "score score";
    row-gap: 14px;
  }
  .match-result-classgroup { padding: 10px 12px; }
  .match-result-date { justify-self: end; font-size: 12px; }
  .match-result-player { flex-direction: column; text-align: center; gap: 8px; justify-content: flex-start; }
  .match-result-player-away .match-result-player-info { text-align: center; }
  .match-result-player img, .match-result-player-logo-placeholder { width: 40px; height: 40px; }
  .match-result-player-name { font-size: 15px; }
  .match-result-score { justify-self: center; font-size: 24px; }
}

/* ---------- Match / result rows (Jadwal, Hasil) ---------- */

.pub-list { display: flex; flex-direction: column; gap: 12px; }
.pub-row { background: #fff; border: 1px solid #E2E6F0; border-radius: 14px; padding: 18px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.pub-row-meta { width: 140px; flex: none; }
.pub-row-meta .cls { font-size: 11px; font-weight: 700; color: #9AA3B8; letter-spacing: .3px; }
.pub-row-meta .grp { font-size: 12px; color: #6B7280; margin-top: 2px; }

.pub-row-teams { flex: 1; min-width: 220px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.pub-row-teams .team { font-weight: 700; font-size: 15px; flex: 1; text-align: center; }
.pub-row-teams .team.home { text-align: right; }
.pub-row-teams .team.away { text-align: left; }
.pub-row-teams .team.winner { color: #0B1B46; }
.pub-row-teams .team.loser { color: #9AA3B8; font-weight: 600; }

.pub-score { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 16px; color: #0B1B46; background: #F6F7FB; border-radius: 8px; padding: 3px 10px; min-width: 50px; text-align: center; flex: none; }
.pub-score-tiebreak { display: block; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 10px; color: #64748B; margin-top: 2px; }

.pub-row-when { width: 160px; flex: none; font-size: 13px; color: #6B7280; text-align: right; }
.pub-row-winner-note { width: 100%; font-size: 12px; color: #6B7280; margin-top: 2px; text-align: center; }

/* ---------- Groups: standings + schedule tables ---------- */

.pub-class-block { margin-top: 32px; }
.pub-class-block:first-child { margin-top: 0; }
.pub-class-block-title { margin-bottom: 14px; }

.pub-standing-block { background: #fff; border: 1px solid #E2E6F0; border-radius: 16px; padding: 20px 22px; margin-top: 16px; }
.pub-standing-title { font-weight: 900; font-size: 20px; color: #0B1B46; margin-bottom: 14px; }

.pub-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.pub-standing-table, .pub-schedule-table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 13px; }
.pub-standing-table th, .pub-schedule-table th {
  background: #F1F3F8; color: #4B5468; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .3px;
  padding: 10px 12px; border: 1px solid #E2E6F0; text-align: center; white-space: nowrap;
}
.pub-standing-table td, .pub-schedule-table td { padding: 10px 12px; border: 1px solid #E2E6F0; text-align: center; color: #1A1F2B; }
.pub-standing-table td:nth-child(2), .pub-standing-table td:nth-child(3) { text-align: left; }
.pub-standing-table td.is-strong, .pub-schedule-table td.is-strong { font-weight: 700; text-align: left; }
.pub-schedule-table td.pub-vs-cell { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; color: #9AA3B8; width: 36px; }

.pub-nm-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 6px; background: #1D4ED8; color: #fff; font-weight: 700; font-size: 12px; }

/* ---------- Knockout bracket ---------- */

.pub-notice { background: #FFF8E8; border: 1px solid #F3DFA6; border-radius: 14px; padding: 14px 20px; font-size: 13px; color: #8A6400; display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.pub-bracket-hint { display: none; font-size: 12px; color: #6B7280; margin-bottom: 10px; }
.pub-bracket-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.pub-bracket { position: relative; width: 852px; height: 760px; min-width: 852px; }
.pub-bracket-col-label { position: absolute; top: 0; width: 220px; text-align: center; font-size: 12px; font-weight: 700; color: #6B7280; letter-spacing: .5px; }
.pub-bracket-card-label { font-size: 11px; font-weight: 700; color: #9AA3B8; margin-bottom: 4px; }
.pub-bracket-card-label.is-final { color: #F0B429; }
.pub-bracket-card { width: 220px; height: 70px; box-sizing: border-box; border: 1px solid #E2E6F0; border-radius: 10px; background: #fff; overflow: hidden; }
.pub-bracket-card.is-final { border: 2px solid #F0B429; }
.pub-bracket-slot { height: 35px; display: flex; align-items: center; padding-left: 12px; padding-right: 10px; font-size: 13px; font-weight: 600; overflow: hidden; white-space: nowrap; }
.pub-bracket-slot + .pub-bracket-slot { border-top: 1px solid #EEF0F5; }
.pub-bracket-slot.is-tbd { color: #9AA3B8; font-style: italic; }
.pub-bracket-slot-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; min-width: 0; }
.pub-bracket-slot .pub-kontingen.is-inline { flex: none; font-size: 10px; }

/* ---------- Footer ---------- */

.pub-footer { background: #0B1B46; color: #9CA8C9; padding: 32px 32px; margin-top: 64px; }
.pub-footer-inner { max-width: 1280px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.pub-footer-org { display: flex; align-items: center; gap: 12px; }
.pub-footer-org-badge { background: #fff; border-radius: 8px; padding: 6px 10px; display: flex; align-items: center; flex: none; }
.pub-footer-org-badge img { height: 28px; width: auto; display: block; }
.pub-footer-org-text { font-size: 11px; color: #9CA8C9; line-height: 1.3; }
.pub-footer-org-text strong { color: #fff; }
.pub-footer-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; text-align: right; }
.pub-footer-meta a { color: #fff; font-weight: 600; }

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 860px) {
  .pub-nav-toggle { display: flex; }
  .pub-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0B1B46;
    flex-direction: column;
    padding: 8px 16px 16px;
    gap: 2px;
    box-shadow: 0 12px 24px rgba(0,0,0,.25);
    z-index: 20;
  }
  .pub-nav.is-open { display: flex; }
  .pub-nav a { padding: 12px 14px; }
}


@media (max-width: 640px) {
  .pub-standing-block { padding: 16px 14px; }
  .pub-standing-title { font-size: 17px; }
}

@media (max-width: 720px) {
  .pub-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .pub-row-meta, .pub-row-when { width: auto; text-align: left; }
  .pub-row-teams { justify-content: space-between; }
  .pub-row-teams .team.home, .pub-row-teams .team.away { text-align: left; }
}

@media (max-width: 900px) {
  .pub-bracket-hint { display: block; }
}

@media (max-width: 640px) {
  .pub-header-inner, .pub-footer-inner, .pub-container { padding-left: 16px; padding-right: 16px; }
  .pub-hero { padding: 40px 16px 56px; }
  .pub-hero h1 { font-size: 32px; }
  .pub-hero p { font-size: 15px; }
  .pub-page-header { padding: 28px 16px 32px; }
  .pub-page-header h1 { font-size: 28px; }
  .pub-stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pub-stat-value { font-size: 28px; }
  .pub-section-head h2 { font-size: 22px; }
  .pub-footer-inner { flex-direction: column; align-items: flex-start; }
  .pub-footer-meta { text-align: left; }
  .medal-grid { grid-template-columns: 1fr; }
}

/* Klasemen Akhir (final standings / medal table) */
.medal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.medal-card {
  background: #fff;
  border: 1px solid #E4E6EF;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.medal-card-header {
  background: #0B1B46;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .02em;
  padding: 12px 16px;
}
.medal-empty { padding: 20px 16px; color: #94A3B8; font-size: 13px; text-align: center; }
.medal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid #F1F3F9;
}
.medal-rank {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 13px; color: #fff;
}
.medal-row-gold .medal-rank { background: #D4A017; }
.medal-row-silver .medal-rank { background: #9AA3AF; }
.medal-row-bronze .medal-rank { background: #B5651D; }
.medal-info { min-width: 0; }
.medal-name { font-weight: 700; font-size: 14px; color: #0D1B45; }
.medal-name-tbd { font-weight: 500; color: #94A3B8; }
