/* =========================================================
   TOURNAMENT SECTIONS (Tersedia / Berakhir) + PODIUM JUARA
   ========================================================= */

.tournament-section {
  margin: 0 0 2.25rem;
}

.tournament-section-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1rem;
  padding: .65rem .9rem;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(163, 230, 53, .10), rgba(163, 230, 53, 0) 70%);
  border-left: 3px solid #a3e635;
}

.tournament-section.is-finished .tournament-section-head {
  background: linear-gradient(90deg, rgba(148, 163, 184, .12), rgba(148, 163, 184, 0) 70%);
  border-left-color: #94a3b8;
}

.tournament-section-title {
  font-family: 'Oxanium', 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #e2e8f0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: .55rem;
  flex: 1;
  min-width: 0;
}

.ts-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.ts-dot.live {
  background: #a3e635;
  box-shadow: 0 0 0 0 rgba(163, 230, 53, .7);
  animation: tsPulse 1.8s infinite;
}

.ts-dot.done {
  background: #94a3b8;
  box-shadow: 0 0 6px rgba(148, 163, 184, .5);
}

@keyframes tsPulse {
  0%   { box-shadow: 0 0 0 0 rgba(163, 230, 53, .65); }
  70%  { box-shadow: 0 0 0 9px rgba(163, 230, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0); }
}

.tournament-section-count {
  flex-shrink: 0;
  min-width: 28px;
  text-align: center;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  font-family: 'Oxanium', sans-serif;
  background: rgba(163, 230, 53, .15);
  color: #a3e635;
  border: 1px solid rgba(163, 230, 53, .35);
}

.tournament-section.is-finished .tournament-section-count {
  background: rgba(148, 163, 184, .15);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, .35);
}

/* Kartu turnamen yang sudah berakhir dibuat lebih redup */
.tournament-card.is-finished {
  opacity: .92;
  border-color: rgba(148, 163, 184, .3);
}

.tournament-card.is-finished .tournament-poster img {
  filter: grayscale(.45) brightness(.82);
  transition: filter .25s ease;
}

.tournament-card.is-finished:hover .tournament-poster img {
  filter: grayscale(0) brightness(1);
}

.tournament-status-badge.finished {
  background: linear-gradient(135deg, #64748b, #475569);
  color: #f1f5f9;
}

/* ---------- Ringkasan Pemenang di kartu ---------- */
.tournament-winners {
  margin: .6rem 0 .75rem;
  padding: .6rem .7rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, .55);
  border: 1px solid rgba(250, 204, 21, .22);
}

.tournament-winners.is-empty {
  text-align: center;
  border-style: dashed;
  border-color: rgba(148, 163, 184, .3);
}

.tw-empty {
  font-size: .82rem;
  color: #94a3b8;
  font-style: italic;
}

.tw-head {
  font-family: 'Oxanium', sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: #facc15;
  margin-bottom: .45rem;
}

.tw-row {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .3rem .4rem;
  border-radius: 8px;
  border-left: 3px solid transparent;
}

.tw-row + .tw-row { margin-top: .25rem; }
.tw-row.gold,
.tw-row.is-gold   { background: rgba(250, 204, 21, .08); border-left-color: #facc15; }
.tw-row.silver,
.tw-row.is-silver { background: rgba(203, 213, 225, .07); border-left-color: #cbd5e1; }
.tw-row.bronze,
.tw-row.is-bronze { background: rgba(217, 119, 6, .08);  border-left-color: #d97706; }
.tw-row.is-empty  { opacity: .55; }

.tw-medal { font-size: 1.1rem; line-height: 1; flex-shrink: 0; }

.tw-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.tw-label {
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
}

.tw-name {
  font-size: .88rem;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tw-none { color: #64748b; font-weight: 400; font-size: .82rem; }
.tw-note { font-size: .7rem; color: #a3e635; }

.tw-edit-btn { font-size: .85rem; }

/* ---------- Modal Atur Juara (admin) ---------- */
.winner-field {
  padding: .85rem;
  border-radius: 12px;
  margin-bottom: .9rem;
  background: rgba(15, 23, 42, .5);
  border: 1px solid rgba(148, 163, 184, .2);
  border-left-width: 4px;
}

.winner-field.is-gold   { border-left-color: #facc15; }
.winner-field.is-silver { border-left-color: #cbd5e1; }
.winner-field.is-bronze { border-left-color: #d97706; }

.winner-field-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .6rem;
}

.winner-field-head strong {
  display: block;
  font-family: 'Oxanium', sans-serif;
  font-size: .95rem;
  color: #f1f5f9;
  letter-spacing: .04em;
}

.winner-field-head small {
  display: block;
  font-size: .7rem;
  color: #94a3b8;
}

.winner-medal { font-size: 1.5rem; line-height: 1; }

.tournament-finished-note {
  margin-top: .75rem;
  padding: .55rem .75rem;
  border-radius: 10px;
  text-align: center;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: #cbd5e1;
  background: rgba(100, 116, 139, .16);
  border: 1px solid rgba(148, 163, 184, .28);
}

.section-empty-note {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, .28);
  color: #94a3b8;
  font-size: .88rem;
}

@media (max-width: 640px) {
  .tournament-section-title { font-size: .92rem; }
  .tournament-section-head { padding: .55rem .7rem; }
  .tw-name { font-size: .82rem; }
}
