/* ═══════════════════════════════════════════════
   WATCH PAGE (STREAMING HUB) - LIGHT THEME
   ════════════════════════════════════════════════ */

.page-watch {
  background-color: var(--gray-50); 
  color: var(--gray-800);
}

.page-watch .header {
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
  border-bottom: none;
}

/* Ensure the logo and text are readable over the hero image */
.page-watch .logo,
.page-watch .nav-link {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.page-watch .header.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.page-watch .header.scrolled .logo {
  color: var(--dark);
  text-shadow: none;
}

.page-watch .header.scrolled .nav-link {
  color: var(--gray-600);
  text-shadow: none;
}

.page-watch .header.scrolled .nav-link:hover,
.page-watch .header.scrolled .nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
}

/* ─── HERO CAROUSEL ────────────────────────────── */
.watch-hero {
  position: relative;
  height: 80vh;
  min-height: 600px;
  width: 100%;
  background: var(--primary-dark);
  overflow: hidden;
}

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

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Soft gradient overlay for light theme (allows white text over images) */
.carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(18,120,202,0.9) 0%, rgba(18,120,202,0.4) 40%, rgba(0,0,0,0.3) 100%);
}

.slide-content {
  position: absolute;
  bottom: 15%;
  left: 5%;
  width: 90%;
  max-width: 800px;
  z-index: 2;
  color: #fff;
}

.slide-badge {
  display: inline-block;
  background: var(--primary); /* Modern brand blue */
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 50px; /* Modern rounded pill */
  margin-bottom: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px var(--primary-glow);
}

.slide-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.1;
  color: #ffffff; /* Explicit white */
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.slide-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 24px;
  max-width: 600px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.slide-actions {
  display: flex;
  gap: 16px;
}

.btn-play {
  background: #fff;
  color: var(--primary);
  border: none;
  font-weight: 700;
  padding: 12px 32px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-play:hover {
  background: var(--off-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-more {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-more:hover {
  background: rgba(255, 255, 255, 0.3);
}

.carousel-nav {
  position: absolute;
  bottom: 30px;
  right: 5%;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #fff;
  transform: scale(1.2);
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.carousel-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* ─── CONTENT RAILS ───────────────────────────── */
.content-rails {
  padding: 60px 0 100px;
  background: var(--gray-50);
  min-height: 50vh;
}

.rail-container {
  margin-bottom: 50px;
  position: relative;
}

.rail-title {
  color: var(--dark);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
  padding-left: 5%;
}

.rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 5%;
  scroll-behavior: smooth;
  scrollbar-width: none; 
}
.rail::-webkit-scrollbar {
  display: none;
}

.rail-item {
  flex: 0 0 calc(25vw - 20px);
  min-width: 220px;
  max-width: 350px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 16 / 9;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .rail-item {
    flex: 0 0 calc(45vw - 20px);
  }
}
@media (max-width: 480px) {
  .rail-item {
    flex: 0 0 calc(80vw - 20px);
  }
}

.rail-item:hover {
  transform: translateY(-5px);
  z-index: 2;
  box-shadow: var(--shadow-lg);
}

.rail-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rail-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px 12px;
  background: linear-gradient(0deg, var(--primary) 0%, rgba(18,120,202,0.8) 40%, transparent 100%);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.rail-item:hover .rail-info {
  transform: translateY(0);
  opacity: 1;
}

.rail-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-meta {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.spinner-sm {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(18,120,202,0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}

/* ─── INFO MODAL ─── */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.video-modal.active {
  opacity: 1;
  pointer-events: all;
}
.modal-close {
  background: transparent;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.3s ease;
}
.modal-close:hover {
  background: rgba(255,255,255,0.1);
}

.info-modal-content {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow-xl);
  color: var(--dark);
}

@media (max-width: 768px) {
  .info-modal-content {
    padding: 30px 20px;
  }
}

/* ─── CONTENT RATING BADGES ─── */
.rating-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  z-index: 10;
  pointer-events: none;
}

.hero-rating-badge {
  display: inline-block;
  margin-left: 10px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  vertical-align: middle;
}
