:root {
  --bg-deep: #050505;
  --bg-main: #0a0a0c; 
  --bg-card: rgba(255, 255, 255, 0.03); 
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --text-main: #ffffff; 
  --text-muted: #a0a0ab; 
  --accent-primary: #ff6b81; 
  --accent-glow: rgba(255, 107, 129, 0.25);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(255, 107, 129, 0.2);
  
  --font-main: 'Inter', -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme for Internal Pages */
body.white-base {
  --bg-deep: #ffffff;
  --bg-main: #f8f9fa;
  --bg-card: rgba(0, 0, 0, 0.03);
  --bg-card-hover: rgba(0, 0, 0, 0.06);
  --text-main: #1a1a1a;
  --text-muted: #6c757d;
  --border-light: rgba(0, 0, 0, 0.08);
}

button {
  border: none;
  outline: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  scroll-behavior: smooth;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  transition: var(--transition);
}

.glass-panel:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--text-main);
  outline: none;
  width: 100%;
}
.search-box input::placeholder {
  color: var(--text-muted);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 0;
  z-index: 2000;
  background: rgba(5, 5, 5, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

/* Clear Search Button */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.clear-search-btn {
    position: absolute;
    right: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    display: none; /* Hide when empty */
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 5;
    background: none;
    border: none;
    padding: 0.5rem;
}

.clear-search-btn:hover {
    color: var(--accent-primary);
    transform: scale(1.1);
}

/* Scroll Invisible Utility */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

header.scrolled {
  padding: 0.75rem 0;
  background: rgba(5, 5, 5, 0.85);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 0 20px var(--accent-glow);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-center {
  display: flex;
  justify-content: center;
}

.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border-light);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    font-size: 2rem;
    color: var(--text-main);
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition);
}

.nav-toggle:hover {
    color: var(--accent-primary);
}

@media (max-width: 1024px) {
    .nav-center {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: rgba(10, 10, 12, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 1500;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 4rem 2rem;
        transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid var(--border-light);
    }

    header.nav-active .nav-center {
        right: 0;
        box-shadow: -20px 0 50px rgba(0,0,0,0.8);
    }

    .nav-links {
        flex-direction: column;
        gap: 2.5rem;
        width: 100%;
        align-items: center;
    }

    .nav-links a {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-actions {
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .nav-actions span {
        display: none; /* Ocultar ES/EN en móviles muy chicos para ganar espacio */
    }
    .nav-actions {
        gap: 0.75rem;
    }
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

/* Elementos deshabilitados temporalmente ("Próximamente") */
.nav-disabled {
  opacity: 0.4;
  cursor: not-allowed !important;
  pointer-events: none;
}

.soon-badge {
  display: inline-block;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: rgba(255,107,129,0.12);
  border: 1px solid rgba(255,107,129,0.3);
  border-radius: 20px;
  padding: 2px 7px;
  white-space: nowrap;
  margin-left: 6px;
  vertical-align: middle;
}

.nav-links a.nav-disabled {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.nav-links a.nav-disabled .soon-badge {
  margin-left: 0;
}

.nav-links a.nav-disabled::after {
  display: none;
}

/* Base Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  padding-top: 90px;
  background-color: var(--bg-main);
  z-index: 1;
}

.hero-slider {
  position: relative;
  width: 100%;
}

.hero-slide {
  display: none;
  width: 100%;
}

.hero-slide.active {
  display: block;
}

.hero-slide picture {
  display: block;
  width: 100%;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 900;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero-slide img {
    aspect-ratio: 768 / 700;
    object-fit: contain;
  }
}

/* Secondary Pages Hero */
.page-hero {
  padding: 8rem 5% 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  min-height: 40vh;
  margin-bottom: 3rem;
  background: linear-gradient(180deg, rgba(26,26,46,0.95) 0%, rgba(26,26,46,0.7) 50%, rgba(255,255,255,1) 100%);
  border-bottom: 1px solid var(--border-light);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff; /* Fallback color */
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #FFF 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.05));
}

.page-hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* Marquee Animado */
.marquee-container {
  width: 100%;
  overflow: hidden;
  background: #ff6b81; /* Color rosado */
  padding: 0.75rem 0;
  white-space: nowrap;
  position: relative;
  margin-bottom: 3rem;
  display: block;
}

.marquee-text {
  display: inline-block;
  animation: marquee 15s linear infinite;
  font-family: var(--font-display);
  font-weight: 800;
  color: #ffffff; /* Texto blanco */
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.95rem;
  padding-left: 100%; /* Empieza desde afuera de la pantalla derecha */
}

@keyframes marquee {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-100%, 0); }
}

/* Glowing text effect */
.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #FFF 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(255,255,255,0.05));
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 4rem;
}

/* Palmarés (4 Títulos) */
.titulos-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 2rem;
}

.titulo-card {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.titulo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(252,218,217,0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.titulo-card:hover {
  transform: translateY(-10px);
  border-color: var(--border-accent);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px var(--accent-glow);
}

.titulo-card:hover::before {
  opacity: 1;
}

.titulo-icon {
  font-size: 3.5rem;
  filter: drop-shadow(0 0 10px var(--accent-glow));
  transition: transform 0.3s ease;
}

.titulo-card:hover .titulo-icon {
  transform: scale(1.1);
}

.titulo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Main Content Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (max-width: 968px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

.section-title span {
  font-size: 0.8rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 700;
}

.btn-link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-link:hover {
  text-shadow: 0 0 10px var(--accent-glow);
}

/* Next Match Card */
.match-card {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.match-card::after {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 100%; height: 100%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.1;
  pointer-events: none;
}

.torneo-tag {
  align-self: flex-start;
  background: rgba(252, 218, 217, 0.1);
  border: 1px solid var(--border-accent);
  color: var(--accent-primary);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3rem;
  backdrop-filter: blur(5px);
}

.teams-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.team {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.team-shield {
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.team:hover .team-shield {
  transform: scale(1.05);
  border-color: var(--border-accent);
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.vs-badge {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-muted);
  background: var(--bg-dark);
  padding: 1rem;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  min-width: 60px;
  text-align: center;
}

.match-details {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.detail-icon {
  color: var(--accent-primary);
}

/* Last Matches List */
.matches-list {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem; /* Compacted from 1.25rem */
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.match-row:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--border-light);
  transform: translateX(5px);
}

.match-competencia {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.match-scoreline {
  font-family: var(--font-display);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.score {
  font-weight: 800;
  color: var(--accent-primary);
  background: rgba(252, 218, 217, 0.1);
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

.result-indicator {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.res-W { background: rgba(39, 174, 96, 0.2); color: #2ecc71; border: 1px solid rgba(39, 174, 96, 0.3); }
.res-D { background: rgba(243, 156, 18, 0.2); color: #f1c40f; border: 1px solid rgba(243, 156, 18, 0.3); }
.res-L { background: rgba(192, 57, 43, 0.2); color: #e74c3c; border: 1px solid rgba(192, 57, 43, 0.3); }

#fixtureListContainer {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#fixtureListContainer::-webkit-scrollbar {
  display: none;
}
.efemeride-alert {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  max-width: 350px;
  padding: 1.5rem;
  background: rgba(20, 20, 22, 0.9);
  border: 1px solid var(--accent-primary);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px var(--accent-glow);
  transform: translateY(200%);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.efemeride-alert.show {
  transform: translateY(0);
}

.efemeride-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  color: var(--text-muted);
  font-size: 1.2rem;
}

.efemeride-header {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent-primary);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.efemeride-content {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #ffffff;
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 6rem;
}

.stat-leader-card {
  padding: 2.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.stat-leader-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 700;
}

.stat-leader-value {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
}

.stat-leader-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

/* Footer */
footer {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 4rem 5%;
  text-align: center;
  color: #6b6b80;
  background: #ffffff;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-primary) !important;
  margin-bottom: 1rem;
}

/* Players Grid (1891.uy style) */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.player-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.player-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 15px var(--accent-glow);
}

.player-image-wrapper {
  height: 250px;
  background: radial-gradient(circle at top, rgba(252, 218, 217, 0.05) 0%, transparent 70%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  border-bottom: 2px solid var(--accent-primary);
}

/* Fallback placeholder style if no image exists */
.player-placeholder {
  font-family: var(--font-display);
  font-size: 6rem;
  color: rgba(255,255,255,0.05);
  font-weight: 800;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.player-silhouette {
  width: 80%;
  height: 80%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFFFFF" opacity="0.1"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>') no-repeat center bottom;
  background-size: contain;
  z-index: 2;
  transition: transform 0.3s ease;
}

.player-card:hover .player-silhouette {
  transform: scale(1.05);
}

.player-info {
  padding: 1.5rem;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.player-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-stats-mini {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  width: 100%;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Global Filter Bar (Pills) */
.filters-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.filter-btn {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filter-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: var(--text-muted);
}

.filter-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.res-circle-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  outline: none;
  background: var(--text-muted);
}

.res-circle-btn:hover {
  transform: scale(1.2);
  filter: brightness(1.1);
}

.res-circle-btn.active {
  border-color: var(--text-main);
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  transform: scale(1.1);
}

.res-circle-btn.res-W { background: #2ecc71; }
.res-circle-btn.res-D { background: #f1c40f; }
.res-circle-btn.res-L { background: #e74c3c; }

/* Responsive Design */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 140px;
  }

  #homeLatestMatches .teams-display,
  #nextMatchCard .teams-display {
    gap: 0.5rem !important;
  }

  #homeLatestMatches .vs-badge,
  #nextMatchCard .vs-badge {
    font-size: 1.6rem !important;
    padding: 0.5rem !important;
  }

  #homeLatestMatches .team-name,
  #nextMatchCard .team-name {
    font-size: 0.75rem !important;
    letter-spacing: 0.5px !important;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    padding: 0 1rem;
  }

  .nav-links {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding-bottom: 10px;
    gap: 1.5rem;
  }
  
  .nav-container {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .match-details {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .players-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.btn-report {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #e74c3c;
  color: white !important;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 1.5rem;
  transition: all 0.3s;
}

.btn-report:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Public site buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: #e75a6f;
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  font-size: 1rem;
}

.btn-secondary {
  background: rgba(0,0,0,0.1);
  color: var(--text-main);
  border: 1px solid rgba(0,0,0,0.1);
}

body.page-index .btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.15);
}

body.page-index .btn-secondary:hover {
  background: rgba(255,255,255,0.2);
}

.champion-card {
    background: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
}

.champion-card .trophy-year,
.champion-card .trophy-name,
.champion-card .trophy-desc,
.champion-card .trophy-icon,
.champion-card div {
    color: white !important;
}

.champion-card .trophy-icon {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4)) !important;
}

/* RESTAURACIÓN DE COMPONENTES UI v5.0 */

.filters-bar {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.filters-bar::-webkit-scrollbar { display: none; }

.filter-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-main);
}

.filter-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.res-circle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.res-circle-btn.res-W { background: #2ecc71; opacity: 0.4; }
.res-circle-btn.res-D { background: #f1c40f; opacity: 0.4; }
.res-circle-btn.res-L { background: #e74c3c; opacity: 0.4; }

.res-circle-btn.active {
    opacity: 1;
    transform: scale(1.1);
    border-color: #1a1a2e;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

.match-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.torneo-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.teams-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.team-name {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 800;
    text-align: center;
}

.vs-badge {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-weight: 900;
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.match-details {
    display: flex;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.detail-icon {
    color: var(--accent-primary);
}

/* Search Results Dropdown Styles */
#searchResultsDropdown {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) rgba(255,255,255,0.05);
    background: rgba(15, 15, 20, 0.98) !important;
    backdrop-filter: blur(20px);
}

#searchResultsDropdown::-webkit-scrollbar {
    width: 6px;
}

#searchResultsDropdown::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 10px;
}

.search-item-suggestion:hover {
    background: rgba(255,255,255,0.08) !important;
    transform: translateX(5px);
}

#notiBell:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--accent-glow);
}

#notiBell.active {
    background: var(--accent-primary) !important;
    color: #fff !important;
}

.trophy-min-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary) !important;
    box-shadow: 0 10px 30px rgba(255,107,129,0.1);
}

/* Notification Prompt Banner */
.noti-prompt-banner {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 450px;
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--accent-primary);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 99999;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px var(--accent-glow);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.noti-prompt-banner.show {
    top: 1.5rem;
}

.noti-prompt-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.noti-prompt-text b {
    display: block;
    color: var(--accent-primary);
    font-size: 1rem;
    font-family: var(--font-display);
    margin-bottom: 0.2rem;
}

.noti-prompt-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.noti-prompt-btns {
    display: flex;
    gap: 0.75rem;
}

.noti-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.noti-btn-yes {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 4px 10px var(--accent-glow);
}

.noti-btn-no {
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.1);
}

.noti-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Notificaciones y Campanita Mobile-First */
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 107, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 129, 0); }
}

.noti-float-btn {
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    z-index: 1000;
    width: 44px;
    height: 44px;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.noti-float-btn.active {
    animation: pulse-red 2s infinite;
}

.noti-float-btn i {
    font-size: 1.3rem;
}

.welcome-alert {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(180%);
    z-index: 2000;
    background: rgba(20, 20, 22, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 1.25rem;
    width: calc(100% - 2.5rem);
    max-width: 380px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome-alert.show {
    transform: translateX(-50%) translateY(0);
}

.welcome-alert-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.welcome-alert-icon {
    width: 42px;
    height: 42px;
    background: var(--accent-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.4rem;
}

.welcome-alert-content h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 2px;
    color: #fff;
    font-family: var(--font-display);
}

.welcome-alert-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.welcome-alert-actions {
    display: flex;
    gap: 0.75rem;
}

.welcome-alert-actions button {
    flex: 1;
    padding: 0.75rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-alert-ok {
    background: var(--accent-primary);
    color: #fff;
}

.btn-alert-no {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}
