/* ═══════════════════════════════════════════════
   MATCH DETAIL PAGE — Two-column Hattrick layout
   ═══════════════════════════════════════════════ */

.match-page {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1rem;
  align-items: start;
}

.match-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── Match Header Card ── */

.match-header-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.5rem 0;
  box-shadow: 0 1px 3px rgba(27, 67, 50, 0.04);
  overflow: hidden;
  position: relative;
}

.match-header-card-compact {
  padding: 0.8rem 1rem 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.match-header-card-compact .match-card-top-bar {
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
}

.match-header-card-compact .match-header-top {
  padding-bottom: 0.8rem;
  gap: 1rem;
  height: 100%;
}

.match-header-card-compact .match-header-team img {
  width: 28px;
  height: 28px;
}

.match-header-card-compact .match-header-team-name {
  font-size: 0.75rem;
}

.match-header-card-compact .match-header-score {
  font-size: 1.2rem;
}

.match-header-card-compact .match-header-countdown {
  font-size: 0.65rem;
  margin-top: 0.2rem;
}

.match-header-card-compact .match-card-result {
  display: none;
}

.match-header-card-compact .match-header-center {
  gap: 0.2rem;
}

.match-header-card-compact .match-card-result-text {
  font-size: 0.65rem;
}

.match-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease;
  border-radius: 12px;
  height: 100%;
}

.match-card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.match-card-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.match-card-competition {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.match-card-result {
  text-align: center;
  padding: 0.4rem 0 0.5rem;
}

.match-card-result-text {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.match-card-result-draw { color: var(--red-warning); }
.match-card-result-win { color: #22c55e; }

.match-card-link:hover .match-header-card {
  border-color: var(--green-mid);
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.1);
}

.match-live-action-corner {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 10;
}

.match-live-action-corner .live-btn {
  padding: 0.25rem 0.4rem;
  font-size: 0.55rem;
  gap: 0.25rem;
}

.match-live-action-corner .live-btn svg {
  width: 12px;
  height: 12px;
}

.match-header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
}

.match-header-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.match-header-initial {
  width: 60px;
  height: 60px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.match-header-initial-mine {
  border-color: rgba(45, 106, 79, 0.4);
  color: var(--green-primary);
  background: var(--green-wash);
}

.match-header-team-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.match-header-team-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.2;
}

.match-header-you {
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--green-primary);
  background: var(--green-wash);
  border: 1px solid rgba(45, 106, 79, 0.2);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}

.match-header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.match-header-scores {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.match-header-score {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  min-width: 48px;
  text-align: center;
  letter-spacing: -0.02em;
}

.match-header-score-muted {
  color: var(--border-hover);
  font-weight: 600;
}

.match-header-sep {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--border-hover);
  margin: 0 0.2rem;
}

.match-header-vs {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--text-muted);
}

.match-header-status {
  font-family: var(--font-display);
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.match-header-status-live {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  animation: pulse-live 2s ease-in-out infinite;
}

.match-header-status-finished {
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.match-header-status-scheduled {
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

/* Match countdown */
.match-header-countdown {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* Margin progress bar */
.match-header-margin-bar {
  display: flex;
  height: 6px;
  margin: 0 -1.5rem; /* Faz a barra encostar nas bordas do card */
}

.match-margin-home {
  background: var(--green-primary);
  transition: width 0.5s ease;
}

.match-margin-away {
  background: var(--red-warning);
  transition: width 0.5s ease;
}

/* ── Scorers Card ── */

.match-scorers-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(27, 67, 50, 0.04);
}

/* Pre-game Table (Future Matches) */

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

.match-pregame-table th,
.match-pregame-table td {
  padding: 0.55rem 0.4rem;
  vertical-align: middle;
}

.match-pregame-th-home,
.match-pregame-th-away {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  width: 35%;
}

.match-pregame-th-home {
  text-align: left;
}

.match-pregame-th-away {
  text-align: right;
}

.match-pregame-th-label {
  text-align: center;
}

.match-pregame-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
}

.match-pregame-val-home,
.match-pregame-val-away {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.match-pregame-val-home {
  text-align: left;
}

.match-pregame-val-away {
  text-align: right;
}

.match-pregame-table tbody tr {
  border-top: 1px solid var(--border);
}

.match-pregame-form {
  display: flex;
  gap: 3px;
}

.match-pregame-val-away .match-pregame-form {
  justify-content: flex-end;
}

.match-form-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 800;
  color: #fff;
}

.match-form-V { background: #22c55e; }
.match-form-E { background: var(--border-hover); color: var(--text-secondary); }
.match-form-D { background: var(--red-warning); }

.match-form-empty {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Odds */

.match-pregame-odds {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.match-odds-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.match-odds-title {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}

.match-odds-pct {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
}

.match-odds-home { color: #22c55e; }
.match-odds-away { color: var(--red-warning); }

.match-odds-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  gap: 2px;
}

.match-odds-bar-home {
  background: #22c55e;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.match-odds-bar-away {
  background: var(--red-warning);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.match-scorers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.match-scorers-heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 0.8rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.match-scorers-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.match-scorer-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: 8px;
  transition: all 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.match-scorer-row:hover {
  border-color: var(--border);
  background: var(--bg-card-hover);
}

.match-scorer-avatar {
  width: 28px;
  height: 28px;
  background: var(--green-wash);
  border: 1px solid var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green-primary);
  flex-shrink: 0;
}

.match-scorer-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.match-scorer-count {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--green-primary);
  margin-left: auto;
}

.match-scorer-dry {
  flex-shrink: 0;
  color: var(--red-warning);
  display: flex;
  align-items: center;
}

.icon-secador {
  width: 14px;
  height: 14px;
}

.match-scorers-empty {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 1.5rem 0;
}

/* ── Right Sidebar ── */

.match-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.match-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(27, 67, 50, 0.04);
}

.match-stat-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 0.65rem 0;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
}

.match-stat-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.5rem 0;
}

.match-stat-big {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.match-stat-draw .match-stat-big { color: var(--red-warning); }
.match-stat-win .match-stat-big { color: #22c55e; }

.match-stat-scheduled {
  color: var(--text-muted);
  opacity: 0.8;
}

.match-stat-label-sm {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  font-style: italic;
}

/* Info rows */
.match-info-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.match-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--bg-card);
}

.match-info-row:last-child {
  border-bottom: none;
}

.match-info-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.match-info-value {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Top Scorer */
.match-top-scorer {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0.5rem;
  margin: 0 -0.5rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.match-top-scorer:last-child {
  border-bottom: none;
}

.match-top-scorer:hover {
  background: var(--bg-card);
}

.match-top-scorer-jersey {
  flex-shrink: 0;
}

.match-top-scorer-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.match-top-scorer:hover .match-top-scorer-name {
  color: var(--green-primary);
}

.match-top-scorer-goals {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-primary);
  flex-shrink: 0;
  margin-left: auto;
}

.match-stat-empty {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.5rem 0;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .match-page {
    grid-template-columns: 1fr;
  }

  .match-header-initial {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }

  .match-header-score {
    font-size: 2.4rem;
  }

  .match-header-top {
    gap: 1rem;
    padding-bottom: 1rem;
  }

  .match-scorers-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .match-header-initial {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .match-header-score {
    font-size: 2rem;
  }

  .match-header-team-name {
    font-size: 0.8rem;
  }
  
  .match-header-card {
    padding: 1.2rem 1.2rem 0;
  }
  
  .match-header-margin-bar {
    margin: 0 -1.2rem;
  }

  .match-header-countdown {
    font-size: 0.6rem;
  }
}
/* ── Head to Head ── */

.match-h2h-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.match-h2h-team,
.match-h2h-draws {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.match-h2h-count {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.match-h2h-draws .match-h2h-count {
  color: var(--text-muted);
}

.match-h2h-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.15rem;
}

.match-h2h-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  gap: 2px;
}

.match-h2h-bar-home {
  background: var(--green-primary);
  border-radius: 3px;
}

.match-h2h-bar-draw {
  background: var(--border-hover);
  border-radius: 3px;
}

.match-h2h-bar-away {
  background: var(--red-warning);
  border-radius: 3px;
}

.match-h2h-recent {
  display: flex;
  flex-direction: column;
}

.match-h2h-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.1s ease;
}

.match-h2h-row:last-child {
  border-bottom: none;
}

.match-h2h-row:hover {
  color: var(--text-primary);
}

.match-h2h-row-team {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-h2h-row-team:last-child {
  text-align: right;
}

.match-h2h-row-bold {
  font-weight: 700;
  color: var(--text-primary);
}

.match-h2h-row-score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-primary);
  padding: 0 0.6rem;
  flex-shrink: 0;
}

/* Ghost Color by Theme */
[data-theme="light"] .icon-secador {
  color: #000000;
}

[data-theme="dark"] .icon-secador {
  color: #ffffff;
}

/* ── Red Card / Expelled ── */

.match-scorer-expelled {
  opacity: 0.65;
}

.match-scorer-expelled .match-scorer-name {
  color: var(--text-muted);
}

.match-scorer-expelled .match-scorer-count {
  text-decoration: line-through;
  color: var(--red-warning);
  opacity: 0.7;
}

.match-scorer-red-card {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 0.15rem;
}

/* ── Cup Advancement Banner ── */

.match-cup-result {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.match-cup-result-inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.match-cup-result-logo {
  flex-shrink: 0;
}

.match-cup-result-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.match-cup-result-team {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.match-cup-result-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--green-primary);
}

.match-cup-result-champion {
  font-weight: 700;
  color: var(--gold);
}

.match-cup-result-criteria {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  padding-left: 0.15rem;
}

/* ── Cup Classification (inside sidebar result card) ── */

.match-cup-classification {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
}

.match-cup-classification-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.match-cup-classification-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-primary);
}

.match-cup-classification-champion {
  color: #CA8A04;
  font-weight: 700;
}

.match-cup-classification-criteria {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ═══════════════════════════════════════════════
   CUP FINAL — GOLDEN THEME
   ═══════════════════════════════════════════════ */

/* ── Final Banner ── */

.match-final-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, #92400E 0%, #B45309 50%, #CA8A04 100%);
  color: #FEF3C7;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  animation: final-shimmer 3s ease-in-out infinite;
}

@keyframes final-shimmer {
  0%, 100% { box-shadow: 0 0 12px rgba(202, 138, 4, 0.15); }
  50% { box-shadow: 0 0 24px rgba(202, 138, 4, 0.35); }
}

.match-final-banner svg {
  color: #FDE68A;
  flex-shrink: 0;
}

/* ── Golden Match Header Card ── */

.match-header-final {
  border-color: rgba(202, 138, 4, 0.3) !important;
  box-shadow: 0 0 0 1px rgba(202, 138, 4, 0.1), 0 2px 8px rgba(202, 138, 4, 0.08) !important;
  animation: final-border-pulse 3s ease-in-out infinite;
}

@keyframes final-border-pulse {
  0%, 100% { border-color: rgba(202, 138, 4, 0.3); box-shadow: 0 0 0 1px rgba(202, 138, 4, 0.1), 0 2px 8px rgba(202, 138, 4, 0.08); }
  50% { border-color: rgba(202, 138, 4, 0.5); box-shadow: 0 0 0 1px rgba(202, 138, 4, 0.2), 0 2px 16px rgba(202, 138, 4, 0.15); }
}

.match-header-final .match-card-top-bar {
  border-bottom-color: rgba(202, 138, 4, 0.15);
}

/* All cards inside a final page get golden borders */
.match-page-final .match-stat-card,
.match-page-final .match-scorers-card,
.match-page-final .arena-card,
.match-page-final .match-header-card {
  border: 1px solid rgba(202, 138, 4, 0.25);
}

/* Golden percentage and result text */
.match-page-final .match-stat-big {
  color: #CA8A04 !important;
}

.match-page-final .match-stat-highlight {
  border-color: rgba(202, 138, 4, 0.2);
}

.match-page-final .match-header-score {
  color: #CA8A04 !important;
}

.match-page-final .match-scorer-count {
  color: #CA8A04 !important;
}

.match-page-final .match-top-scorer-goals {
  color: #CA8A04 !important;
}

.match-header-final .live-btn-add,
.match-header-final .live-btn-remove {
  background: linear-gradient(135deg, #92400E, #CA8A04) !important;
  border-color: #92400E !important;
  color: #FEF3C7 !important;
}

.match-header-final .live-btn-add:hover,
.match-header-final .live-btn-remove:hover {
  background: linear-gradient(135deg, #B45309, #EAB308) !important;
}

.match-page-final .match-stat-title,
.match-page-final .match-scorers-heading {
  border-bottom-color: rgba(202, 138, 4, 0.2);
}

/* ── Golden "FINAL" Label on Cards ── */

.match-card-label-final {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #CA8A04;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* ── Golden AO VIVO badge for finals ── */

.match-header-final .match-header-status-live {
  background: linear-gradient(135deg, #92400E, #B45309);
  color: #FEF3C7;
  box-shadow: 0 0 8px rgba(202, 138, 4, 0.4);
  animation: final-live-pulse 2s ease-in-out infinite;
}

@keyframes final-live-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(202, 138, 4, 0.4); }
  50% { box-shadow: 0 0 16px rgba(202, 138, 4, 0.7); }
}

/* ── Golden margin bar for finals ── */

.match-header-final .match-margin-home {
  background: linear-gradient(90deg, #CA8A04, #EAB308);
}

.match-header-final .match-margin-away {
  background: rgba(202, 138, 4, 0.15);
}

/* ── Golden result text for finals ── */

.match-header-final .match-card-result-win {
  color: #CA8A04;
}

/* ── Trophy between scores (finals) ── */

.match-final-trophy {
  color: #CA8A04;
  margin: 0 0.15rem;
  animation: trophy-glow 2.5s ease-in-out infinite;
}

@keyframes trophy-glow {
  0%, 100% { opacity: 0.7; filter: drop-shadow(0 0 2px rgba(202, 138, 4, 0.3)); }
  50% { opacity: 1; filter: drop-shadow(0 0 6px rgba(202, 138, 4, 0.6)); }
}

/* ── Confetti animation for champion ── */

.match-champion-section {
  position: relative;
  text-align: center;
  padding: 1.2rem;
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.06) 0%, rgba(234, 179, 8, 0.03) 100%);
  border: 1px solid rgba(202, 138, 4, 0.2);
  border-radius: 12px;
  margin-top: 0.75rem;
  overflow: hidden;
}

.match-champion-title {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #CA8A04;
  margin-bottom: 0.6rem;
}

.match-champion-team {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.match-champion-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Confetti particles */
.match-confetti {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.match-confetti-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  top: -10px;
  animation: confetti-fall 3.5s ease-in forwards;
}

@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(200px) rotate(720deg); opacity: 0; }
}

.match-confetti-particle:nth-child(1) { left: 5%; background: #CA8A04; animation-delay: 0s; animation-duration: 3s; }
.match-confetti-particle:nth-child(2) { left: 15%; background: #2D6A4F; animation-delay: 0.2s; animation-duration: 3.4s; }
.match-confetti-particle:nth-child(3) { left: 25%; background: #EAB308; animation-delay: 0.1s; animation-duration: 2.8s; }
.match-confetti-particle:nth-child(4) { left: 35%; background: #CA8A04; animation-delay: 0.4s; animation-duration: 3.2s; }
.match-confetti-particle:nth-child(5) { left: 45%; background: #2D6A4F; animation-delay: 0.15s; animation-duration: 3.6s; }
.match-confetti-particle:nth-child(6) { left: 55%; background: #EAB308; animation-delay: 0.3s; animation-duration: 2.9s; }
.match-confetti-particle:nth-child(7) { left: 65%; background: #CA8A04; animation-delay: 0.05s; animation-duration: 3.3s; }
.match-confetti-particle:nth-child(8) { left: 75%; background: #2D6A4F; animation-delay: 0.35s; animation-duration: 3.1s; }
.match-confetti-particle:nth-child(9) { left: 85%; background: #EAB308; animation-delay: 0.25s; animation-duration: 3.5s; }
.match-confetti-particle:nth-child(10) { left: 95%; background: #CA8A04; animation-delay: 0.45s; animation-duration: 2.7s; }
.match-confetti-particle:nth-child(11) { left: 10%; background: #FDE68A; animation-delay: 0.5s; animation-duration: 3.2s; width: 4px; height: 8px; }
.match-confetti-particle:nth-child(12) { left: 30%; background: #FDE68A; animation-delay: 0.6s; animation-duration: 2.6s; width: 8px; height: 4px; }
.match-confetti-particle:nth-child(13) { left: 50%; background: #40916C; animation-delay: 0.55s; animation-duration: 3.0s; width: 5px; height: 5px; border-radius: 50%; }
.match-confetti-particle:nth-child(14) { left: 70%; background: #FDE68A; animation-delay: 0.65s; animation-duration: 3.4s; width: 4px; height: 8px; }
.match-confetti-particle:nth-child(15) { left: 90%; background: #40916C; animation-delay: 0.7s; animation-duration: 2.8s; width: 5px; height: 5px; border-radius: 50%; }

/* ── Game Bar Final Theme ── */

.game-bar-final {
  border-top: 2px solid #CA8A04 !important;
  box-shadow: 0 -2px 12px rgba(202, 138, 4, 0.15) !important;
}

.game-bar-final .game-bar-team-name {
  color: #CA8A04;
}

/* Timer active: golden border, transparent bg, golden text */
.game-bar-final .game-bar-chutar {
  border-color: rgba(202, 138, 4, 0.3) !important;
  color: #CA8A04 !important;
  box-shadow: 0 4px 0 rgba(202, 138, 4, 0.15) !important;
}

.game-bar-final .game-bar-chutar:not(:disabled):hover {
  background: rgba(202, 138, 4, 0.08) !important;
  border-color: #CA8A04 !important;
}

.game-bar-final .game-bar-chutar:not(:disabled):active {
  box-shadow: 0 0 0 rgba(202, 138, 4, 0.15) !important;
}

.game-bar-final .game-bar-chutar.game-bar-btn-ready:not(:disabled):hover {
  background: linear-gradient(135deg, #B45309, #EAB308) !important;
  border-color: #92400E !important;
}

/* Ready: golden bg, white text, 3D effect */
.game-bar-final .game-bar-chutar.game-bar-btn-ready {
  background: linear-gradient(135deg, #92400E, #CA8A04) !important;
  border-color: #78350F !important;
  color: #fff !important;
  box-shadow: 0 4px 0 #78350F !important;
  animation: game-bar-pulse-gold 2s ease-in-out infinite;
}

@keyframes game-bar-pulse-gold {
  0%, 100% { box-shadow: 0 4px 0 #78350F, 0 0 8px rgba(202, 138, 4, 0.2); }
  50% { box-shadow: 0 4px 0 #78350F, 0 0 18px rgba(202, 138, 4, 0.5); }
}

/* ── Live Card Final ── */

.live-card-final {
  border-color: rgba(202, 138, 4, 0.3) !important;
  animation: final-border-pulse 3s ease-in-out infinite;
}

.live-card-final.live-card-active {
  border-color: rgba(202, 138, 4, 0.5) !important;
  box-shadow: inset 0 0 0 1px rgba(202, 138, 4, 0.2), 0 2px 12px rgba(202, 138, 4, 0.12) !important;
}

.live-card-final .live-card-score {
  color: #CA8A04;
}

.live-card-label-final {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: linear-gradient(135deg, #92400E, #CA8A04) !important;
  color: #FEF3C7 !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em;
}

.game-bar-final-badge {
  font-family: var(--font-display);
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #FEF3C7;
  background: linear-gradient(135deg, #92400E, #CA8A04);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  margin-left: 0.3rem;
}

/* ── Dashboard Final Banner ── */

