/* VARIABLES */
:root {
  --bg-base: #000000;
  --bg-surface: #141414;
  --bg-surface-hover: #1f1f1f;
  --accent: #a80200;
  --accent-hover: #760200;
  --text-main: #ffffff;
  --text-muted: #a3a3a3;
  --font-stack: "Inter", system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-stack);
  background-color: var(--bg-base);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0) 100%);
  transition: background 0.3s;
}

header.scrolled {
  background: #000000;
  border-bottom: 1px solid #222;
}

.logo {
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -1px;
  text-transform: uppercase;
  cursor: pointer;
}

.logo span {
  color: var(--accent);
}

.header-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

#seasonSelector {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid #333;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

#seasonSelector:hover,
#seasonSelector:focus {
  border-color: var(--accent);
  background-color: var(--bg-surface-hover);
}

#seasonSelector option {
  background-color: var(--bg-surface);
  color: var(--text-main);
  font-weight: 600;
}

.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

.btn-icon {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
}

.btn-icon:hover {
  color: var(--accent);
}

/* HERO */
.hero-container {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 400px;
  display: flex;
  background: #000;
  overflow: hidden;
}

/* BARRAS DE PROGRESO (estilo stories) */
.hero-progress {
  position: absolute;
  bottom: 1.5rem;
  left: 3rem;
  right: 3rem;
  z-index: 4;
  display: flex;
  gap: 6px;
}

.hero-progress-bar {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.hero-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--text-main);
  border-radius: 3px;
}

.hero-progress-fill.filled {
  width: 100%;
}

.hero-progress-fill.active {
  animation: heroProgressFill 5s linear forwards;
}

@keyframes heroProgressFill {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 3rem 5rem;
  transition: transform 0.5s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  opacity: 0.6;
}

.hero-title-animated span {
  color: var(--accent);
  font-style: italic;
  font-size: 3rem;
  text-shadow: 0 0 25px rgba(168, 2, 0, 0.7);
}

.hero-bg-animated {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(-45deg, #000000, #3a0000, var(--accent), #000000);
  background-size: 400% 400%;
  animation: gradientBG 12s ease infinite;
  opacity: 0.85;
}

.hero-overlay-vibrant {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 60%, var(--bg-base) 100%),
    radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.95) 100%);
  z-index: 1;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  bottom: -20px;
  width: 10px;
  height: 10px;
  background-color: var(--text-main);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 10px var(--text-main), 0 0 25px var(--accent), 0 0 40px var(--accent);
  animation: floatUp infinite ease-in;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translateY(-600px) scale(0.5);
    opacity: 0;
  }
}

.particle:nth-child(1) {
  left: 15%;
  animation-duration: 6s;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  left: 35%;
  animation-duration: 8s;
  animation-delay: 2s;
}

.particle:nth-child(3) {
  left: 55%;
  animation-duration: 5s;
  animation-delay: 4s;
}

.particle:nth-child(4) {
  left: 75%;
  animation-duration: 7s;
  animation-delay: 1s;
}

.particle:nth-child(5) {
  left: 85%;
  animation-duration: 9s;
  animation-delay: 3s;
}

.particle:nth-child(6) {
  left: 25%;
  animation-duration: 6.5s;
  animation-delay: 1.5s;
}


.hero-bg img {
  width: 50%;
  height: 100%;
  object-fit: cover;
  filter: blur(40px) saturate(1.5);
  transform: scale(1.5);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 60%, var(--bg-base) 100%);
  z-index: 1;
}


.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-live {
  display: inline-block;
  background: #ff0000;
  color: #fff;
  padding: 0.3rem 0.8rem;
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-league-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.3rem 0.9rem 0.3rem 0.3rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-league-pill img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
}

.hero-league-pill span {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-main);
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: -2px;
}

.hero-title span {
  color: var(--text-muted);
  font-style: italic;
  font-size: 3rem;
}

.hero-meta {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-main);
  border: none;
  padding: 1.2rem 3rem;
  font-weight: 900;
  font-size: 1.1rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition:
    transform 0.2s,
    background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

a.btn-primary {
  text-decoration: none;
}

.btn-primary:disabled {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
}

.hero-logos-foreground {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 3;
}

.animated-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.hero-vs-text {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-muted);
  font-style: italic;
}

/* SECCIONES & TARJETAS */
.section-container {
  padding: 2rem 3rem;
  position: relative;
  z-index: 5;
  background: var(--bg-base);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #222;
  padding-bottom: 1rem;
}

.section-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  min-width: 0;
}

.pista-select {
  max-width: 260px;
  background-color: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid #333;
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  text-overflow: ellipsis;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.pista-select:hover,
.pista-select:focus {
  border-color: var(--accent);
  background-color: var(--bg-surface-hover);
}

.pista-select option {
  background-color: var(--bg-surface);
  color: var(--text-main);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.grid-cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 300px;
  gap: 1.2rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #555555 #121212;
}

.grid-cards::-webkit-scrollbar {
  height: 6px;
}

.grid-cards::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

.grid-cards::-webkit-scrollbar-thumb {
  background-color: #555555;
  border-radius: 10px;
}

.grid-cards::-webkit-scrollbar-thumb:hover {
  background-color: #888888;
}

.section-no-results {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.section-no-results span {
  color: var(--accent);
  font-weight: 900;
}

.section-no-results p {
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
  transition: color 0.2s;
}

/* CONTENEDOR DE LIGAS */
.leagues-scroller {
  position: relative;
  padding: 0.35rem 0;
  height: 238px;
  display: flex;
  align-items: center;
}

.leagues-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.75rem 1rem;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.leagues-track::-webkit-scrollbar {
  display: none;
}

.league-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-70%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.league-nav-btn.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.league-nav-btn:hover {
  transform: translateY(-50%) scale(1.04);
  background: rgba(168, 2, 0, 0.6);
  box-shadow: 0 12px 28px rgba(168, 2, 0, 0.35);
}

.league-nav-btn.prev {
  left: -0.2rem;
}

.league-nav-btn.next {
  right: -0.2rem;
}

.league-card {
  flex: 0 0 220px;
  align-self: flex-start;
  height: 184px;
  min-height: 184px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.1rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  scroll-snap-align: start;
  user-select: none;
  overflow: visible;
  position: relative;
}

.league-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(168, 2, 0, 0.08));
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.league-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

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

.league-card:active {
  transform: scale(0.97);
  background: rgba(168, 2, 0, 0.16);
}

.league-card img {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

.league-card-title {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  color: var(--text-main);
  letter-spacing: 0.04em;
}

/* Estructura Tarjeta */
.card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-surface);
  overflow: hidden;
  border-bottom: 4px solid transparent;
  transition: border-color 0.2s;
}

.card:hover .card-thumb {
  border-color: var(--accent);
}

/* Fondo abstracto dentro del thumbnail */
.card-bg-logos {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0.3;
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

.card-bg-logos img {
  width: 50%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.5);
}

.card-teams-display {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  background: rgba(0, 0, 0, 0.4);
}

.card-teams-display img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.8));
  transition: transform 0.3s;
}

.card:hover .card-teams-display img {
  transform: scale(1.1);
}

.card-vs {
  font-size: 1.5rem;
  font-weight: 900;
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.8);
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  z-index: 2;
}

.card-league-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.card-league-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.grid-cards-vertical {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}

.badge-upcoming {
  border-left: 3px solid var(--accent);
}

.badge-suspended {
  border-left: 3px solid #f5a623;
  color: #f5a623;
}

.card-info {
  padding: 1rem 0;
}

.card-info h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  line-height: 1.2;
}

.card-info p {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.card:hover .card-info h4 {
  color: var(--accent);
}

/* VISTA BUSCADOR */
.view-container {
  display: none;
  animation: fadeIn 0.3s ease;
}

.view-active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.search-hero {
  background: var(--bg-surface);
  padding: 8rem 3rem 4rem;
  border-bottom: 1px solid #222;
}

.search-title {
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.search-form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 1rem;
}

.search-input-group input,
.search-input-group select {
  width: 100%;
  background: #000;
  border: 1px solid #333;
  color: white;
  padding: 1.2rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  text-overflow: ellipsis;
  transition: border-color 0.2s;
}

.search-input-group input:focus,
.search-input-group select:focus {
  border-color: var(--accent);
}

.btn-search {
  background: var(--text-main);
  color: #000;
  padding: 1.2rem 2.5rem;
  border: none;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.2s;
}

.btn-search:hover {
  background: var(--accent);
}

.results-count {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.player-view {
  padding-top: 80px;
}


.btn-back {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 1rem 3rem;
  font-weight: 800;
  text-transform: uppercase;
  display: inline-block;
  transition: color 0.2s;
}

.btn-back:hover {
  color: var(--accent);
}

.video-wrapper {
  background: #000;
  width: 100%;
  border-bottom: 1px solid #222;
}

.video-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
}

.video-message {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.video-container iframe,
.video-container video {
  width: 100%;
  height: 100%;
  border: none;
}

.player-meta {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem 3rem;
}

.player-meta h2 {
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.player-meta p {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

/* PUBLICIDAD (configurable en publi.js) */

.publi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.5rem 3rem;
  position: relative;
  z-index: 5;
  background: var(--bg-base);
}

.publi[hidden] {
  display: none;
}

/* Dentro de una rejilla de partidos ocupa la fila entera */
.grid-cards-vertical > .publi {
  grid-column: 1 / -1;
  padding: 0.5rem 0;
}

.publi-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.publi a,
.publi picture {
  display: block;
  max-width: 100%;
}

.publi img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.publi a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* FOOTER */

.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid #222;
  padding: 3rem 3rem 2rem;
  position: relative;
  z-index: 5;
}

.footer-content {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}

.footer-sponsors {
  background-color: #fff;
  -webkit-mask-image: url("../images/footer_rfep_general.png");
  mask-image: url("../images/footer_rfep_general.png");
  
  -webkit-mask-size: contain;
  mask-size: contain;
  
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.footer-sponsors img {
  width: 100%;
  height: auto;
  opacity: 0;
}

.footer-brand {
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.footer-brand span {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-link {
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.footer-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.footer-credit {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  border-top: 1px solid #222;
  width: 100%;
  max-width: 320px;
}

.footer-credit strong {
  color: var(--text-main);
  font-weight: 800;
}

@media (max-width: 768px) {
  header {
    padding: 1rem;
  }

  .section-container {
    padding: 1.5rem 1rem;
  }

  .hero-slide {
    padding: 6rem 1rem 3.5rem;
  }

  .search-hero {
    padding: 6rem 1rem 2rem;
  }

  .player-meta {
    padding: 1.5rem 1rem;
  }

  .publi {
    padding: 1rem;
  }

  .btn-back {
    padding: 1rem;
  }

  .header-nav {
    gap: 1rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  #seasonSelector {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  .hero-container {
    height: 35vh;
    min-height: 280px;
  }

  .hero-slide {
    padding: 5rem 1rem 3.5rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-title span,
  .hero-title-animated span {
    font-size: 1.8rem;
  }

  .hero-meta {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .animated-logo {
    width: 70px;
    height: 70px;
  }

  .hero-vs-text {
    font-size: 1.5rem;
  }

  .hero-progress {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .hero-top-row {
    margin-bottom: 0.75rem;
    gap: 0.5rem;
  }

  .hero-league-pill span {
    font-size: 0.65rem;
  }

  .hero-league-pill img {
    width: 18px;
    height: 18px;
  }

  .card-league-badge {
    width: 24px;
    height: 24px;
  }

  .btn-primary {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .btn-search {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .search-form {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .league-card {
    flex: 0 0 140px;
    height: 130px;
    min-height: 130px;
    padding: 0.8rem;
  }

  .league-card img {
    max-height: 45px;
  }

  .league-card-title {
    font-size: 0.75rem;
  }

  .card-info h4 {
    font-size: 1rem;
  }

  .card-info p {
    font-size: 0.75rem;
  }

  .card-teams-display img {
    width: 45px;
    height: 45px;
  }

  .card-vs {
    font-size: 1.2rem;
  }

  #searchButtonText {
    display: none;
  }

  .section-title {
    font-size: 1.1rem;
  }

  .search-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .player-meta h2 {
    font-size: 1.5rem;
  }

  .player-meta p {
    font-size: 0.9rem;
  }

  .pista-select {
    max-width: 100%;
    font-size: 0.7rem;
  }

  .site-footer {
    padding: 2rem 1rem 1.5rem;
  }

  .footer-brand {
    font-size: 1.2rem;
  }

  .footer-copy,
  .footer-link {
    font-size: 0.75rem;
  }

  .footer-credit {
    font-size: 0.7rem;
  }

  .leagues-scroller {
    height: 170px;
  }

  .league-card img {
    max-height: 45px;
    max-width: 45px;
    margin: 0;
  }

  .league-card-title {
    font-size: 0.75rem;
  }
}