/* ============================================
   SECTION 3 — CHANNELS SLIDER
   CSS-only infinite ticker | Mobile-first
   ============================================ */

.channels-slider {
  position: relative;
  background: #0C1220;
  padding: 52px 0;
  overflow: hidden;
}

.channels-slider::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #1C2A3A 20%, rgba(0,212,255,0.2) 50%, #1C2A3A 80%, transparent);
}

.channels-slider::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #1C2A3A 20%, rgba(0,212,255,0.1) 50%, #1C2A3A 80%, transparent);
}

/* ── HEADER ── */
.channels-header {
  text-align: center;
  padding: 0 16px;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}

.channels-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.22);
  border-radius: 4px;
  padding: 6px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #00D4FF;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.channels-pill__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #00D4FF;
  animation: chPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes chPulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.35; transform:scale(0.7); }
}

.channels-h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 26px;
  text-transform: uppercase;
  color: #F0F4FF;
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.channels-h2 span { color: #00D4FF; }

.channels-sub {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #B8CAD8;
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto;
}

/* ── FIFA WM 2026 BANNER ── */
.wm-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 13px 20px;
  margin: 28px auto 32px;
  background: linear-gradient(135deg, rgba(245,197,24,0.09), rgba(245,197,24,0.04));
  border: 1px solid rgba(245,197,24,0.32);
  border-radius: 8px;
  max-width: 620px;
  width: calc(100% - 32px);
  position: relative;
  z-index: 2;
  text-align: center;
}

.wm-trophy { font-size: 20px; flex-shrink: 0; }

.wm-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 15px;
  text-transform: uppercase;
  color: #F5C518;
  letter-spacing: 1px;
}

.wm-text span { color: #F0F4FF; }

.wm-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245,197,24,0.12);
  border: 1px solid rgba(245,197,24,0.38);
  border-radius: 4px;
  padding: 3px 9px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #F5C518;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.wm-live::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #F5C518;
  animation: chPulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── TICKER WRAPPER ── */
.ticker-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* Edge fade masks */
.ticker-wrap::before,
.ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 10;
  pointer-events: none;
}

.ticker-wrap::before {
  left: 0;
  background: linear-gradient(to right, #0C1220 0%, transparent 100%);
}

.ticker-wrap::after {
  right: 0;
  background: linear-gradient(to left, #0C1220 0%, transparent 100%);
}

/* ── TICKER ROWS ── */
.ticker-row {
  display: flex;
  gap: 12px;
  padding: 8px 6px;
  width: max-content;
  will-change: transform;
  touch-action: pan-x;
  user-select: none;
  -webkit-user-select: none;
}

.ticker-row--1 { animation: tickerLeft 45s linear infinite; }
.ticker-row--2 { animation: tickerRight 50s linear infinite; margin-top: 12px; }

@keyframes tickerLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes tickerRight {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@media (hover: hover) {
  .ticker-wrap:hover .ticker-row { animation-play-state: paused; }
}

/* ── CHANNEL BADGE BASE ── */
.ch-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

@media (hover: hover) { .ch-badge:hover { transform: translateY(-2px) scale(1.04); } }

.ch-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   3-COLOR SYSTEM — matches brand perfectly
   GOLD   = Sports  (urgency, excitement)
   CYAN   = News    (trust, credibility)
   MUTED  = Entertainment + International (secondary)
══════════════════════════════════════════════ */

/* BASE card — same dark background for ALL */
.ch-badge {
  background: #0D1626;
  border-color: #1C2A3A;
}

/* ── GOLD — Sports ── */
.ch-sport {
  border-color: rgba(245,197,24,0.35);
  color: #F5C518;
  box-shadow: 0 0 10px rgba(245,197,24,0.1);
}
.ch-sport .ch-dot { background: #F5C518; }
@media (hover: hover) {
  .ch-sport:hover {
    border-color: rgba(245,197,24,0.6);
    box-shadow: 0 4px 20px rgba(245,197,24,0.25);
    transform: translateY(-2px) scale(1.04);
  }
}

/* ── CYAN — News & Public TV ── */
.ch-news {
  border-color: rgba(0,212,255,0.3);
  color: #00D4FF;
  box-shadow: 0 0 10px rgba(0,212,255,0.08);
}
.ch-news .ch-dot { background: #00D4FF; }
@media (hover: hover) {
  .ch-news:hover {
    border-color: rgba(0,212,255,0.55);
    box-shadow: 0 4px 20px rgba(0,212,255,0.2);
    transform: translateY(-2px) scale(1.04);
  }
}

/* ── MUTED WHITE — Entertainment & International ── */
.ch-ent {
  border-color: rgba(176,196,222,0.18);
  color: #B0C4DE;
  box-shadow: 0 0 8px rgba(176,196,222,0.05);
}
.ch-ent .ch-dot { background: #B0C4DE; }
@media (hover: hover) {
  .ch-ent:hover {
    border-color: rgba(176,196,222,0.38);
    box-shadow: 0 4px 18px rgba(176,196,222,0.12);
    transform: translateY(-2px) scale(1.04);
    color: #D0E0F0;
  }
}

/* ── CATEGORY LEGEND ── */
.channels-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 28px 16px 0;
  position: relative;
  z-index: 2;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #F0F4FF;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 6px 14px;
  transition: background 0.2s, border-color 0.2s;
}
@media (hover: hover) {
  .legend-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
  }
}

.legend-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot--news          { background: #00D4FF; }
.legend-dot--sport         { background: #F5C518; }
.legend-dot--entertainment { background: #B0C4DE; }

/* ══════════════════════════════════════════
   SMALL MOBILE — < 390px
══════════════════════════════════════════ */
@media (max-width: 389px) {
  .channels-slider { padding: 44px 0; }
  .channels-header { padding: 0 14px; margin-bottom: 24px; }
  .channels-h2 { font-size: 22px; }
  .channels-sub { font-size: 14px; }
  .channels-pill { font-size: 10px; padding: 5px 12px; margin-bottom: 14px; }
  .wm-banner { padding: 10px 14px; width: calc(100% - 24px); }
  .wm-text { font-size: 13px; }
  .ch-badge { font-size: 12px; padding: 8px 12px; gap: 6px; }
  .ticker-row--1 { animation-duration: 110s; }
  .ticker-row--2 { animation-duration: 120s; }
}

/* ══════════════════════════════════════════
   MOBILE — 390px–639px (gap between small and tablet)
══════════════════════════════════════════ */
@media (min-width: 390px) and (max-width: 639px) {
  .ticker-row--1 { animation-duration: 90s; }
  .ticker-row--2 { animation-duration: 100s; }
}

/* ══════════════════════════════════════════
   TABLET — 640px+
══════════════════════════════════════════ */
@media (min-width: 640px) {
  .channels-slider { padding: 64px 0; }
  .channels-h2 { font-size: 36px; }
  .ticker-wrap::before,
  .ticker-wrap::after { width: 120px; }
  .ch-badge { font-size: 15px; padding: 11px 20px; }
}

/* ══════════════════════════════════════════
   DESKTOP — 1200px+
══════════════════════════════════════════ */
@media (min-width: 1200px) {
  .channels-slider { padding: 80px 0; }
  .channels-h2 { font-size: 44px; }
  .ticker-wrap::before,
  .ticker-wrap::after { width: 160px; }
  .ch-badge { font-size: 15px; padding: 12px 22px; gap: 10px; }
  .ticker-row--1 { animation-duration: 55s; }
  .ticker-row--2 { animation-duration: 60s; }
}
