/* ============================================
   BritishIPTV – Channels & Movies Sliders
============================================ */

/* ============================================
   CHANNELS SLIDER SECTION
============================================ */
.channels-slider-section {
  background: #ffffff;
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.channels-slider-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0,48,135,0.035) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.slider-section-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.slider-section-top-left { flex: 1; min-width: 260px; }

/* Tab nav */
.slider-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.stab {
  background: none;
  border: 1.5px solid #dce3f0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.22s;
  white-space: nowrap;
}
.stab:hover  { border-color: var(--primary); color: var(--primary); }
.stab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,48,135,0.25);
}

/* Slider wrapper */
.slider-outer {
  position: relative;
}
.slider-track-wrap {
  overflow: hidden;
  border-radius: 14px;
}
.slider-track {
  display: flex;
  gap: 16px;
  transition: transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
  will-change: transform;
  padding: 6px 2px 10px;
}

/* Channel card */
.ch-card {
  flex: 0 0 calc(16.666% - 14px);
  min-width: 130px;
  background: #fff;
  border: 1.5px solid #e8eef8;
  border-radius: 14px;
  padding: 20px 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.ch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,48,135,0.10);
  border-color: rgba(0,48,135,0.2);
}
.ch-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -1px;
}
.ch-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
}
.ch-tag {
  font-size: 10px;
  color: var(--muted);
  background: var(--light-bg);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 500;
}
.ch-live-dot {
  position: absolute;
  top: 10px; right: 10px;
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(74,222,128,0.3);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 0 2px rgba(74,222,128,0.3); }
  50%      { box-shadow: 0 0 0 5px rgba(74,222,128,0.08); }
}

/* Arrow buttons */
.slider-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  min-width: 42px; height: 42px;
  padding: 0 10px;
  background: #fff;
  border: 1.5px solid #dce3f0;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s, color 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.slider-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,48,135,0.25);
  transform: translateY(-50%) scale(1.08);
}
.arrow-prev { left: -20px; }
.arrow-next { right: -20px; }

/* Fade edges */
.slider-outer::before,
.slider-outer::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.slider-outer::before {
  left: 0;
  background: linear-gradient(90deg, #fff 0%, transparent 100%);
}
.slider-outer::after {
  right: 0;
  background: linear-gradient(270deg, #fff 0%, transparent 100%);
}

/* ============================================
   MOVIES & SERIES SECTION
============================================ */
.media-section {
  background: linear-gradient(160deg, #05071a 0%, #0d1640 50%, #07091e 100%);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
/* Star-field dots */
.media-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.media-section .section-label {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.12);
}
.media-section .section-heading { color: #ffffff; }
.media-section .section-intro   { color: rgba(255,255,255,0.6); }
.media-section .section-intro strong { color: rgba(255,255,255,0.9); }

.media-section .stab {
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
}
.media-section .stab:hover  { border-color: rgba(255,255,255,0.5); color: #fff; }
.media-section .stab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(207,20,43,0.35);
}

.media-section .slider-arrow {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  box-shadow: none;
}
.media-section .slider-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(207,20,43,0.35);
}
.media-section .slider-arrow {
  color: rgba(255,255,255,0.85);
}
.media-section .slider-outer::before {
  background: linear-gradient(90deg, #05071a 0%, transparent 100%);
}
.media-section .slider-outer::after {
  background: linear-gradient(270deg, #07091e 0%, transparent 100%);
}

/* Movie / Series poster card */
.media-card {
  flex: 0 0 calc(20% - 13px);
  min-width: 165px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  aspect-ratio: 2/3;
}
.media-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
.media-poster {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
/* Overlay gradient */
.media-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.2) 55%, transparent 100%);
}
.media-poster-emoji {
  font-size: 52px;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  margin-bottom: 8px;
}
/* HD badge */
.media-hd {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 3;
  letter-spacing: 0.5px;
}
/* New badge */
.media-new {
  position: absolute;
  top: 10px; left: 10px;
  background: #4ade80;
  color: #000;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 3;
  letter-spacing: 0.5px;
}
.media-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 12px 14px;
  z-index: 2;
}
.media-genre {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}
.media-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 6px;
}
.media-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.media-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #fbbf24;
  font-weight: 700;
}
.media-year {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
}
/* Play overlay on hover */
.media-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.25s;
}
.media-card:hover .media-play { opacity: 1; }
.media-play-circle {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 1024px) {
  .ch-card   { flex: 0 0 calc(20% - 13px); }
  .media-card { flex: 0 0 calc(25% - 12px); }
}
@media (max-width: 768px) {
  .channels-slider-section,
  .media-section { padding: 60px 0 70px; }
  .ch-card    { flex: 0 0 calc(33.33% - 11px); min-width: 110px; }
  .media-card { flex: 0 0 calc(40% - 10px);  min-width: 140px; }
  .slider-section-top { flex-direction: column; align-items: flex-start; }
  .arrow-prev { left: -10px; }
  .arrow-next { right: -10px; }
}
@media (max-width: 480px) {
  .ch-card    { flex: 0 0 calc(45% - 8px); min-width: 100px; }
  .media-card { flex: 0 0 calc(48% - 8px); min-width: 130px; }
  .stab       { font-size: 12px; padding: 6px 14px; }
}
