/* FutbolTV Pro v2 — capa visual premium, responsive y no destructiva */
:root {
  --neon: #18e47c;
  --neon2: #7cf2b3;
  --green: #18e47c;
  --green-dark: #0dbb63;
  --green-glow: rgba(24, 228, 124, .15);
  --red: #ff4757;
  --bg: #070b14;
  --bg2: #101722;
  --bg3: #151e2c;
  --bg4: #1b2636;
  --border: rgba(255, 255, 255, .08);
  --border2: rgba(24, 228, 124, .32);
  --text: #f7fafc;
  --text-muted: #96a3b5;
  --text-dim: #627086;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 18px 50px rgba(0, 0, 0, .24);
}

html {
  scroll-padding-top: 88px;
}

body {
  font-family: 'Manrope', 'Outfit', sans-serif;
  background:
    radial-gradient(circle at 18% -10%, rgba(24, 228, 124, .1), transparent 28rem),
    radial-gradient(circle at 86% 13%, rgba(54, 111, 255, .07), transparent 24rem),
    var(--bg);
}

body::before {
  opacity: .42;
  background-image:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 76%);
}

body::after {
  display: none;
}

button,
input {
  font-family: 'Manrope', 'Outfit', sans-serif;
}

header {
  background: rgba(7, 11, 20, .86);
  border-bottom-color: rgba(255, 255, 255, .07);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.header-inner {
  max-width: 1280px;
  height: 70px;
  gap: 14px;
}

.logo {
  gap: 9px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(145deg, #1df28a, #0aa95a);
  box-shadow: 0 8px 24px rgba(24, 228, 124, .2);
}

.logo-text {
  font-family: 'Manrope', sans-serif;
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -.045em;
}

.search-wrap input {
  background: rgba(255, 255, 255, .045);
  border-color: rgba(255, 255, 255, .08);
  border-radius: 12px;
  min-width: 240px;
}

.search-wrap input:focus {
  background: rgba(255, 255, 255, .065);
  border-color: rgba(24, 228, 124, .5);
  box-shadow: 0 0 0 3px rgba(24, 228, 124, .08);
}

.nav-btn {
  border-radius: 10px;
  font-size: .8rem;
}

.nav-btn.active {
  background: rgba(24, 228, 124, .1);
  color: var(--neon);
}

.live-badge {
  background: rgba(255, 71, 87, .11);
  border-color: rgba(255, 71, 87, .26);
}

.lang-switcher,
.theme-toggle {
  background: rgba(255, 255, 255, .045);
}

.donate-btn {
  border-radius: 10px;
  padding: 8px 12px;
  background: rgba(162, 89, 255, .1);
  border-color: rgba(176, 111, 255, .25);
}

.section-label {
  font-family: 'Manrope', sans-serif;
  color: var(--neon);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.section-title {
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: currentColor;
  background-clip: initial;
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.08;
}

#player-section,
#schedule-section,
#popular-channels-section,
#channels-section,
#faq-section {
  max-width: 1280px;
  scroll-margin-top: 84px;
}

/* Hero / reproductor */
#player-section {
  display: grid;
  grid-template-columns: minmax(0, 1.86fr) minmax(310px, .74fr);
  grid-template-rows: auto auto auto auto auto auto;
  column-gap: 20px;
  padding: 34px 24px 16px;
}

#player-section > .section-label,
#player-section > .section-title,
#player-section > .channel-tabs-scroll,
#player-section > .disclaimer-bar {
  grid-column: 1 / -1;
}

#player-section > .section-label {
  grid-row: 1;
}

#player-section > .section-title {
  grid-row: 2;
  max-width: 720px;
  margin-top: 4px;
}

#player-section > .channel-tabs-scroll {
  grid-row: 3;
}

#player-section > .player-wrap {
  grid-column: 1;
  grid-row: 4;
}

#player-section > .player-controls {
  grid-column: 1;
  grid-row: 5;
}

#player-section > .live-now-panel {
  grid-column: 2;
  grid-row: 4 / span 2;
}

#player-section > .disclaimer-bar {
  grid-row: 6;
}

.channel-tabs-scroll {
  margin: 18px 0 14px;
}

.channel-tabs {
  gap: 8px;
}

.ch-tab {
  min-height: 42px;
  padding: 6px 13px 6px 6px;
  background: rgba(255, 255, 255, .035);
  border-color: rgba(255, 255, 255, .07);
  border-radius: 12px;
}

.ch-tab.active {
  background: rgba(24, 228, 124, .1);
  border-color: rgba(24, 228, 124, .5);
  color: #69f3ad;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

.ch-tab img {
  border-radius: 8px;
}

.player-wrap {
  max-height: none;
  background: #060a11;
  border-color: rgba(255, 255, 255, .09);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.player-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}

.player-wrap.has-channel {
  border-color: rgba(24, 228, 124, .36);
}

#bg-video {
  opacity: .34 !important;
  filter: blur(3px) saturate(.8) contrast(1.08);
  transform: scale(1.035);
}

.player-placeholder h3,
.now-playing .channel-name {
  font-family: 'Manrope', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -.025em !important;
}

.btn-watch-big,
.ctrl-btn.primary {
  background: var(--neon);
  color: #04110a;
  border-radius: 11px;
  box-shadow: 0 10px 28px rgba(24, 228, 124, .18);
}

.player-controls {
  padding: 13px 2px 4px;
}

.ctrl-btn {
  min-height: 38px;
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .08);
  border-radius: 10px;
}

.disclaimer-bar {
  margin-top: 14px;
  background: rgba(255, 193, 7, .045);
  border-color: rgba(255, 193, 7, .14);
  color: #b99a48;
}

/* Panel de eventos en vivo */
.live-now-panel {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .035), transparent 42%),
    var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.live-now-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.live-now-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: var(--text-dim);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.live-now-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 71, 87, .1);
  animation: proPulse 1.8s ease-in-out infinite;
}

.live-now-header h2 {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

.live-now-count {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 9px;
  color: #ff8792;
  background: rgba(255, 71, 87, .1);
  border: 1px solid rgba(255, 71, 87, .18);
  font-size: .73rem;
  font-weight: 800;
}

.live-now-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 14px 0;
}

.live-now-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, .028);
  border: 1px solid transparent;
  border-radius: 12px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.live-now-item:hover {
  text-decoration: none;
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .045);
  border-color: rgba(24, 228, 124, .18);
}

.live-now-team-stack {
  position: relative;
  width: 40px;
  height: 40px;
}

.live-now-team-stack .team-logo {
  position: absolute;
  width: 30px;
  height: 30px;
  border-width: 2px;
}

.live-now-team-stack .team-logo:last-child {
  right: 0;
  bottom: 0;
}

.live-now-team-stack .team-logo:first-child {
  left: 0;
  top: 0;
}

.live-now-copy {
  min-width: 0;
}

.live-now-league {
  display: block;
  margin-bottom: 4px;
  color: var(--text-dim);
  font-size: .63rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-now-teams {
  display: block;
  color: var(--text);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-now-score {
  min-width: 44px;
  text-align: right;
  color: var(--neon);
  font-size: .83rem;
  font-weight: 800;
}

.live-now-empty {
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 160px;
  padding: 24px 12px;
  color: var(--text-dim);
  text-align: center;
  font-size: .78rem;
  line-height: 1.55;
}

.live-now-skeleton {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.live-now-skeleton span {
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--bg3), var(--bg4), var(--bg3));
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.live-now-skeleton span:nth-child(2) {
  height: 22px;
}

.live-now-skeleton span:nth-child(3) {
  height: 18px;
}

.live-now-all,
.pro-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 13px;
  color: var(--neon);
  border: 1px solid rgba(24, 228, 124, .18);
  border-radius: 10px;
  background: rgba(24, 228, 124, .065);
  font-size: .75rem;
  font-weight: 800;
  transition: background .18s ease, border-color .18s ease;
}

.live-now-all:hover,
.pro-link-button:hover {
  background: rgba(24, 228, 124, .12);
  border-color: rgba(24, 228, 124, .34);
}

/* Agenda */
#schedule-section {
  padding: 34px 24px 42px;
}

.schedule-header {
  align-items: flex-end;
  margin-bottom: 18px;
}

.schedule-header > div:last-child {
  max-width: 70%;
}

.date-badge {
  background: rgba(255, 255, 255, .035);
  border-color: var(--border);
  border-radius: 10px;
}

.filter-pills {
  justify-content: flex-end;
}

.pill {
  background: rgba(255, 255, 255, .025);
  border-color: rgba(255, 255, 255, .075);
  border-radius: 9px;
}

.pill.active {
  background: var(--neon);
  color: #05110a;
}

.schedule-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.match-card {
  display: flex;
  min-height: 262px;
  flex-direction: column;
  padding: 17px;
  background:
    radial-gradient(circle at 100% 0, rgba(24, 228, 124, .04), transparent 34%),
    var(--bg2);
  border-color: rgba(255, 255, 255, .075);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
}

.match-card::before {
  display: none;
}

.match-card:hover {
  background:
    radial-gradient(circle at 100% 0, rgba(24, 228, 124, .07), transparent 38%),
    var(--bg3);
  border-color: rgba(24, 228, 124, .22);
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
}

.match-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}

.league-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.league-copy {
  min-width: 0;
}

.league-copy strong {
  display: block;
  max-width: 260px;
  overflow: hidden;
  color: var(--text);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-copy small {
  display: block;
  margin-top: 2px;
  color: var(--text-dim);
  font-size: .59rem;
  font-weight: 700;
}

.league-logo,
.team-logo,
.channel-mark {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  color: var(--text-muted);
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .08);
}

.league-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: .6rem;
}

.team-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: .72rem;
}

.channel-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: .55rem;
}

.league-logo img,
.team-logo img,
.channel-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
  background: #fff;
}

.team-logo img {
  padding: 5px;
}

.logo-fallback {
  font-weight: 800;
  letter-spacing: -.02em;
}

.match-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 5px 9px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: .64rem;
  font-weight: 800;
}

.match-status.live {
  color: #ff8d97;
  background: rgba(255, 71, 87, .08);
  border-color: rgba(255, 71, 87, .2);
}

.match-status.live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: proPulse 1.7s ease-in-out infinite;
}

.match-status.finished {
  color: #71e8aa;
  border-color: rgba(24, 228, 124, .16);
}

.match-versus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 94px;
  margin-bottom: 12px;
}

.team-side {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.team-side.away {
  flex-direction: row-reverse;
  text-align: right;
}

.team-name {
  color: var(--text);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.score-centre {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-value {
  color: var(--neon);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -.035em;
}

.match-kickoff {
  color: var(--text);
  font-size: .92rem;
  font-weight: 800;
}

.vs-copy {
  margin-top: 3px;
  color: var(--text-dim);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.match-channel-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  margin-bottom: 10px;
  padding: 9px 10px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, .026);
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 11px;
  font-size: .7rem;
}

.match-channel-copy {
  min-width: 0;
}

.match-channel-copy strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: .7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-channel-copy span {
  display: block;
  margin-top: 2px;
  color: var(--text-dim);
  font-size: .6rem;
}

.match-watch-btn {
  min-height: 40px;
  margin-top: 0;
  color: #06130b;
  background: var(--neon);
  border: 0;
  border-radius: 10px;
}

.match-watch-btn:hover {
  color: #031009;
  background: #63efa8;
}

.match-channels-toggle {
  width: 42px;
  color: var(--neon);
  background: rgba(24, 228, 124, .07);
  border-color: rgba(24, 228, 124, .2);
  border-radius: 10px;
  animation: none;
}

.match-channels-menu {
  background: #111a27;
  border-color: rgba(24, 228, 124, .18);
  border-radius: 12px;
}

.match-channel-option {
  gap: 9px;
}

.match-channel-option .channel-mark {
  width: 28px;
  height: 28px;
}

/* Canales populares */
#popular-channels-section {
  position: relative;
  z-index: 1;
  padding: 0 24px 44px;
  margin: 0 auto;
}

.pro-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.pro-section-heading .section-title {
  margin-top: 4px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.popular-channels-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.popular-channel-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px;
  color: var(--text);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 15px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .1);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.popular-channel-card:hover {
  color: var(--text);
  text-decoration: none;
  transform: translateY(-3px);
  background: var(--bg3);
  border-color: rgba(24, 228, 124, .25);
}

.popular-channel-logo {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  background: #fff;
  border-radius: 13px;
}

.popular-channel-logo img {
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: contain;
}

.popular-channel-logo span {
  color: #17202e;
  font-size: .66rem;
  font-weight: 800;
}

.popular-channel-copy {
  min-width: 0;
}

.popular-channel-copy strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popular-channel-copy span {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  color: var(--text-dim);
  font-size: .62rem;
}

.popular-channel-copy span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
}

.popular-channel-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--neon);
  background: rgba(24, 228, 124, .07);
  border-radius: 9px;
}

/* Directorio y footer */
#channels-section {
  padding-top: 10px;
}

.channels-logo-grid {
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  gap: 12px;
}

.channel-logo-card {
  min-height: 172px;
  padding: 15px 11px;
  background: var(--bg2);
  border-radius: 15px;
}

.channel-logo-card img,
.channel-logo-card .logo-emoji {
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: 13px;
}

.channel-logo-card .ch-name {
  font-size: .76rem;
}

.region-title {
  clip-path: none;
  color: var(--text) !important;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: 'Manrope', sans-serif;
  letter-spacing: .07em;
}

footer {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .018), transparent 22%),
    #080d16;
  border-top-color: rgba(255, 255, 255, .07);
}

.footer-inner {
  max-width: 1280px;
}

#back-top {
  width: 42px;
  height: 42px;
  color: #06120b;
  background: var(--neon);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(24, 228, 124, .22);
}

#bottom-nav {
  font-family: 'Manrope', sans-serif;
}

@keyframes proPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.88); }
}

/* Modo claro */
body.light-mode {
  --bg: #f3f6f8;
  --bg2: #ffffff;
  --bg3: #f8fafb;
  --bg4: #edf2f5;
  --border: rgba(16, 32, 44, .09);
  --border2: rgba(0, 156, 84, .26);
  --text: #10202c;
  --text-muted: #536575;
  --text-dim: #8795a2;
  --neon: #00b964;
  --neon2: #42d88e;
  --green-glow: rgba(0, 185, 100, .1);
}

body.light-mode {
  background:
    radial-gradient(circle at 16% 0, rgba(0, 185, 100, .07), transparent 26rem),
    #f3f6f8;
}

body.light-mode header {
  background: rgba(255, 255, 255, .9);
}

body.light-mode .section-title {
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
}

body.light-mode .live-now-panel,
body.light-mode .match-card,
body.light-mode .popular-channel-card {
  background-color: #fff;
  box-shadow: 0 12px 32px rgba(23, 42, 58, .07);
}

body.light-mode .live-now-item,
body.light-mode .match-channel-row {
  background: #f7f9fa;
}

body.light-mode .league-logo,
body.light-mode .team-logo,
body.light-mode .channel-mark {
  background: #f1f4f6;
  border-color: rgba(16, 32, 44, .08);
}

body.light-mode .match-watch-btn {
  color: #fff;
  background: #00a85b;
}

body.light-mode .match-channels-menu {
  background: #fff;
}

body.light-mode footer {
  background: #e9eef1;
}

/* Adaptación tablet */
@media (max-width: 1100px) {
  #player-section {
    grid-template-columns: minmax(0, 1.65fr) minmax(286px, .8fr);
  }

  .header-inner {
    gap: 9px;
  }

  .search-wrap input {
    min-width: 190px;
  }

  .popular-channels-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  #player-section {
    display: flex;
    flex-direction: column;
    padding-top: 24px;
  }

  #player-section > .section-label {
    order: 1;
  }

  #player-section > .section-title {
    order: 2;
  }

  #player-section > .channel-tabs-scroll {
    order: 3;
  }

  #player-section > .player-wrap {
    order: 4;
  }

  #player-section > .player-controls {
    order: 5;
  }

  #player-section > .live-now-panel {
    order: 6;
  }

  #player-section > .disclaimer-bar {
    order: 7;
  }

  .live-now-panel {
    min-height: 0;
    margin-top: 12px;
  }

  .live-now-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-header {
    align-items: flex-start;
  }

  .schedule-header > div:last-child {
    width: 100%;
    max-width: none;
    align-items: flex-start !important;
  }

  .filter-pills {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .filter-pills::-webkit-scrollbar {
    display: none;
  }

  .pill {
    flex: 0 0 auto;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 70px;
  }

  header {
    padding: 0 14px;
  }

  .header-inner {
    height: 58px;
  }

  .logo-icon {
    width: 33px;
    height: 33px;
  }

  .logo-text {
    font-size: 1.08rem;
  }

  .donate-btn {
    min-width: 34px;
    height: 34px;
    justify-content: center;
    padding: 0;
  }

  #player-section,
  #schedule-section,
  #popular-channels-section,
  #channels-section,
  #faq-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  #player-section {
    padding-top: 22px;
  }

  #player-section > .section-title {
    font-size: 1.72rem;
  }

  .channel-tabs-scroll {
    margin-top: 14px;
  }

  .player-wrap {
    border-radius: 15px;
  }

  .player-controls {
    align-items: stretch;
  }

  .now-playing {
    width: 100%;
  }

  .ctrl-btns {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ctrl-btn {
    justify-content: center;
    padding: 8px 9px;
    font-size: .72rem;
  }

  .disclaimer-bar {
    font-size: .72rem;
  }

  .live-now-panel {
    padding: 15px;
    border-radius: 15px;
  }

  .live-now-list {
    display: flex;
  }

  .live-now-item:nth-child(n+4) {
    display: none;
  }

  #schedule-section {
    padding-top: 24px;
    padding-bottom: 34px;
  }

  .schedule-header {
    margin-bottom: 14px;
  }

  .schedule-header .section-title,
  .pro-section-heading .section-title {
    font-size: 1.55rem !important;
  }

  .match-card {
    min-height: 0;
    padding: 14px;
    border-radius: 14px;
  }

  .league-copy strong {
    max-width: 175px;
  }

  .match-versus-grid {
    grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr);
    gap: 7px;
  }

  .team-side,
  .team-side.away {
    flex-direction: column;
    gap: 7px;
    text-align: center;
  }

  .team-logo {
    width: 44px;
    height: 44px;
  }

  .team-name {
    font-size: .73rem;
  }

  #popular-channels-section {
    padding-bottom: 34px;
  }

  .pro-section-heading {
    align-items: center;
  }

  .pro-link-button {
    min-height: 36px;
    padding: 7px 9px;
    font-size: .67rem;
  }

  .popular-channels-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .popular-channel-card {
    display: flex;
    min-height: 126px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 8px;
    text-align: center;
  }

  .popular-channel-logo {
    width: 48px;
    height: 48px;
  }

  .popular-channel-copy {
    width: 100%;
  }

  .popular-channel-copy strong {
    font-size: .69rem;
  }

  .popular-channel-copy span {
    justify-content: center;
  }

  .popular-channel-arrow {
    display: none;
  }

  .channels-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-logo-card {
    min-height: 158px;
  }

  #back-top {
    right: 14px;
    border-radius: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
