/* style.css - Diseño Premium para Sistema Web de Marcadores del Mundial 2026 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-color: #05180f;
  --stadium-green: #0a2217;
  --panel-bg: rgba(14, 46, 31, 0.75);
  --panel-border: rgba(255, 255, 255, 0.08);
  --gold: #d4af37;
  --gold-light: #ffe082;
  --gold-glow: rgba(212, 175, 55, 0.3);
  --neon-green: #00e676;
  --neon-red: #ff1744;
  --text-primary: #ffffff;
  --text-secondary: #a0b2aa;
  --text-muted: #62776e;
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html, body {
  height: 100%;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-family);
  background-color: #030a07;
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* App Frame Shell (Simula Móvil en Escritorio) */
#app-frame {
  width: 100%;
  max-width: 480px;
  height: 100%;
  height: 100dvh;
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.06), transparent 350px),
    radial-gradient(circle at bottom left, rgba(0, 230, 118, 0.08), transparent 300px);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

@media (min-width: 481px) {
  #app-frame {
    height: 92vh;
    height: 92dvh;
    border-radius: 30px;
    border: 6px solid #1c2e25;
  }
}

/* Header */
header {
  padding: calc(15px + var(--safe-top)) 15px 15px 15px;
  background: linear-gradient(to bottom, rgba(5, 24, 15, 0.98), rgba(5, 24, 15, 0.75));
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-container svg {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 6px var(--gold-glow));
}

.brand h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffffff 60%, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand span {
  font-size: 0.72rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  display: block;
}

.tz-label {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Stats Bar */
.stats-bar {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 15px;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding-right: 12px;
}

.stat-box:nth-child(2) {
  border-right: none;
  padding-right: 0;
}

.stat-box span {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold);
}

.stat-box label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.progress-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 8px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

#progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--neon-green) 100%);
  box-shadow: 0 0 6px rgba(0, 230, 118, 0.3);
  transition: width 0.4s cubic-bezier(0.1, 0.8, 0.25, 1);
}

/* Main Viewport Panels */
main {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  padding-bottom: 20px;
  scroll-behavior: smooth;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.view-panel {
  display: none;
  animation: fadeIn 0.25s ease-out forwards;
}

.view-panel.active {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Card Styles */
.card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.border-gold {
  border-color: rgba(212, 175, 55, 0.4);
}

.card-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 1.2px;
  margin-bottom: 8px;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title span.badge-live {
  background: var(--neon-green);
  color: #000;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 0 0 8px var(--neon-green);
}

/* Buttons */
.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn {
  font-family: var(--font-family);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 10px 15px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #b59228 100%);
  color: #000;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-outline-success {
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
}

.btn-outline-success:hover {
  background: var(--neon-green);
  color: #000;
}

.btn-outline-danger {
  background: rgba(255, 23, 68, 0.08);
  border: 1px solid var(--neon-red);
  color: var(--neon-red);
}

.btn-outline-danger:hover {
  background: var(--neon-red);
  color: #fff;
}

/* Match Section & Cards */
.matches-block-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.matches-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.match-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.match-card:active {
  transform: scale(0.98);
}

.match-card.live-glow {
  border-color: var(--neon-green);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.1);
  background: rgba(0, 230, 118, 0.02);
}

.match-card.finished-glow {
  background: rgba(255, 255, 255, 0.04);
}

.match-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.match-meta .badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 8px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.68rem;
}

.match-meta .badge-live {
  background: var(--neon-green);
  color: #000;
  font-weight: 800;
  box-shadow: 0 0 6px var(--neon-green);
}

.match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.team-display {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  font-size: 0.92rem;
  font-weight: 600;
}

.team-display.right {
  justify-content: flex-end;
  text-align: right;
}

.team-flag {
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
}

.team-name {
  max-width: 125px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-name.placeholder {
  color: var(--text-muted);
  font-weight: 400;
  font-style: italic;
}

.match-score-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-num {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  width: 18px;
  text-align: center;
}

.score-num.empty {
  color: var(--text-muted);
}

.score-divider {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.penalty-display {
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 700;
  margin-top: 1px;
}

.match-venue {
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 4px;
}

/* Standings / Groups View */
.groups-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.group-header-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  padding: 4px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.group-rows-container {
  display: flex;
  flex-direction: column;
}

.group-team-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  font-size: 0.88rem;
  padding: 8px 6px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.group-team-row:last-child {
  border-bottom: none;
}

.group-team-row:nth-child(1),
.group-team-row:nth-child(2) {
  border-left: 3px solid var(--neon-green);
  background: rgba(0, 230, 118, 0.02);
}

.group-team-row.qualifies-3rd {
  border-left: 3px solid var(--gold);
  background: rgba(212, 175, 55, 0.02);
}

.team-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.cell-center {
  text-align: center;
}

.cell-right {
  text-align: right;
  font-weight: 800;
  color: var(--text-primary);
}

.group-team-row:nth-child(1) .cell-right,
.group-team-row:nth-child(2) .cell-right {
  color: var(--neon-green);
}

.group-team-row.qualifies-3rd .cell-right {
  color: var(--gold-light);
}

/* Bracket View */
.bracket-wrapper {
  overflow-x: auto;
  display: flex;
  gap: 20px;
  padding: 10px 0;
  min-height: 480px;
  scrollbar-width: none;
}

.bracket-wrapper::-webkit-scrollbar {
  display: none;
}

.bracket-column {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  min-width: 200px;
  height: 520px;
}

.bracket-title {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 8px;
  background: rgba(212, 175, 55, 0.1);
  padding: 4px;
  border-radius: 6px;
}

.bracket-match {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 8px;
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.bracket-match-num {
  font-size: 0.52rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.bracket-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.bracket-team.winner {
  color: var(--text-primary);
  font-weight: 700;
}

.bracket-team.loser {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.05);
}

.bracket-team-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bracket-team-score {
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 3px;
}

.bracket-team-score .p-score {
  font-size: 0.55rem;
  color: var(--gold);
  font-weight: 400;
}

/* Home Welcome box */
.countdown-box {
  background: radial-gradient(circle at center, rgba(14, 46, 31, 0.95), rgba(7, 21, 14, 0.98));
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 15px var(--gold-glow);
  text-align: center;
  padding: 18px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.countdown-title {
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 800;
}

.countdown-timer {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 8px rgba(255,255,255,0.25);
}

/* Search and Filters */
#match-search {
  width: 100%;
  padding: 10px 15px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.2s;
}

#match-search:focus {
  border-color: var(--gold);
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.filter-row select {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: var(--bg-color);
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.75rem;
  outline: none;
}

/* Bottom Navigation Bar */
nav {
  height: calc(60px + var(--safe-bottom));
  background: linear-gradient(to top, rgba(5, 20, 13, 0.98), rgba(5, 20, 13, 0.92));
  backdrop-filter: blur(15px);
  border-top: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-around;
  padding-bottom: var(--safe-bottom);
  z-index: 100;
}

.nav-item {
  background: none;
  border: none;
  color: var(--text-muted);
  width: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-family);
}

.nav-item svg {
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.2s;
}

.nav-item span {
  font-size: 0.72rem;
  font-weight: 600;
}

.nav-item.active {
  color: var(--gold);
}

.nav-item.active svg {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 4px var(--gold-glow));
  stroke: var(--gold);
  stroke-width: 2.5;
}

/* Toast */
.toast {
  position: absolute;
  bottom: 75px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(5, 24, 15, 0.96);
  border: 1px solid var(--gold);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.75rem;
  color: white;
  z-index: 500;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Modal Overlay */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 10, 7, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--stadium-green);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  overflow: hidden;
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
}

.close-modal-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  outline: none;
}

.modal-body {
  padding: 20px;
}

.score-input-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.team-score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.large-flag {
  font-size: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Flag image styling across different components */
.flag-img {
  display: inline-block;
  vertical-align: middle;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.team-flag .flag-img {
  width: 22px;
  height: 15px;
}

.bracket-team-info .flag-img {
  width: 18px;
  height: 12px;
}

.large-flag .flag-img {
  width: 48px;
  height: 32px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.countdown-box .flag-img {
  width: 80px;
  height: 53px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  margin: 10px 0;
}

.modal-team-name {
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  max-height: 35px;
  overflow: hidden;
}

.team-score-block input {
  width: 60px;
  height: 50px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  outline: none;
}

.team-score-block input:focus {
  border-color: var(--gold);
}

.vs-divider {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
}

.penalties-section {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  animation: slideUp 0.25s ease-out forwards;
}

.penalties-section input {
  width: 45px;
  height: 35px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: rgba(0,0,0,0.3);
  color: var(--gold);
  font-weight: 700;
  text-align: center;
  font-size: 1.1rem;
  outline: none;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.loader::after {
  content: '';
  width: 15px;
  height: 15px;
  border: 2px solid var(--gold);
  border-top-color: transparent;
  border-radius: 50%;
  margin-left: 8px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Phase Selector & Vertical Bracket Styles */
.phase-selector-container {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 4px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  margin-bottom: 15px;
  scrollbar-width: none;
}

.phase-selector-container::-webkit-scrollbar {
  display: none;
}

.phase-pill {
  flex: 1;
  min-width: 65px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.phase-pill.active {
  background: linear-gradient(135deg, var(--gold) 0%, #b59228 100%);
  color: #000;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
}

.phase-pill:active {
  transform: scale(0.95);
}

.vertical-bracket-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
}

.bracket-match-vertical {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.bracket-match-vertical:hover {
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.05);
}

.bracket-match-vertical:active {
  transform: scale(0.98);
}

.bracket-match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 5px;
}

.bracket-match-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bracket-team-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 2px 0;
}

.bracket-team-row.winner {
  color: var(--text-primary);
  font-weight: 700;
}

.bracket-team-row.loser {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.05);
}

.bracket-team-row .team-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bracket-team-row .team-score-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
}

.bracket-team-row .score {
  min-width: 12px;
  text-align: center;
}

.bracket-team-row .p-score {
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 400;
}

.bracket-match-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.03);
}

.bracket-match-footer {
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 5px;
}

/* Selector Dinámico de Zonas Horarias */
.tz-selector-container {
  position: relative;
  display: inline-block;
}

#tz-current-btn {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

#tz-current-btn:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.15);
}

#tz-current-btn svg {
  stroke: currentColor;
  stroke-width: 2;
}

.tz-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: rgba(5, 24, 15, 0.98);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
  padding: 5px;
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 1000;
  min-width: 175px;
  backdrop-filter: blur(15px);
  transform-origin: top right;
  animation: tzSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tz-dropdown-menu.show {
  display: flex;
}

@keyframes tzSlideDown {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-5px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.tz-option {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.tz-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.tz-option.active {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
  font-weight: 700;
}

/* Estilos de Audio de Fondo (Info Pestaña) */
.audio-badge {
  font-size: 0.6rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.audio-badge.playing {
  background: rgba(0, 230, 118, 0.12);
  color: var(--neon-green);
  box-shadow: 0 0 6px rgba(0, 230, 118, 0.2);
}

.btn-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-transform: uppercase;
  outline: none;
}

.btn-toggle:active {
  transform: scale(0.95);
}

.btn-toggle.active {
  background: linear-gradient(135deg, var(--gold) 0%, #b59228 100%);
  color: #000;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
}

/* Pantalla de Carga (Splash Screen) */
#splash-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #0a2217 0%, #030a07 100%);
  z-index: 5000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 60px 20px 40px 20px;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: auto;
}

#splash-screen.fade-out {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 15px;
}

.splash-trophy {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trophy-svg-pulse {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 12px var(--gold-glow));
  z-index: 2;
  animation: trophyPulse 2s infinite alternate ease-in-out;
}

.splash-spinner {
  position: absolute;
  width: 105px;
  height: 105px;
  border: 2px.5 solid transparent;
  border-top: 2.5px solid var(--gold);
  border-bottom: 2.5px solid var(--neon-green);
  border-radius: 50%;
  z-index: 1;
  animation: spin 1.5s linear infinite;
  opacity: 0.85;
}

@keyframes trophyPulse {
  0% {
    transform: scale(0.96);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.25));
  }
  100% {
    transform: scale(1.04);
    filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.55));
  }
}

.splash-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  background: linear-gradient(135deg, #ffffff 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  margin-top: 8px;
}

.splash-loading-text {
  font-size: 0.68rem;
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: textPulse 1.2s infinite alternate;
}

@keyframes textPulse {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

.splash-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 0.7s ease-out 0.15s forwards;
  opacity: 0;
}

.branding-tagline {
  font-size: 0.52rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

.branding-logo {
  height: auto;
  max-height: 32px;
  max-width: 160px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



