/* Reset & Core Styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: #141414;
  color: #ffffff;
  overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #141414;
}
::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e50914;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  transition: background-color 0.5s ease;
}

.navbar.scrolled {
  background-color: #141414;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo {
  color: #e50914;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  user-select: none;
}

.logo span {
  color: #ffffff;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #e5e5e5;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: #ffffff;
}

/* Navigation Dropdown Menu */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

#nav-movies i {
  font-size: 12px;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.dropdown:hover #nav-movies i {
  transform: rotate(180deg);
}

.dropdown-content {
  display: block;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background-color: rgba(20, 20, 20, 0.96);
  border: 1px solid #333333;
  min-width: 140px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  z-index: 200;
  padding: 5px 0;
  transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              visibility 0.3s;
}

.dropdown:hover .dropdown-content {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(8px);
}

.dropdown-content a {
  color: #e5e5e5 !important;
  padding: 10px 20px;
  text-decoration: none;
  display: block;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: center;
}

.dropdown-content a:hover {
  background-color: #e50914;
  color: #ffffff !important;
}

.dropdown-content a.active {
  color: #e50914 !important;
  font-weight: 700;
}

.dropdown-content a.active:hover {
  color: #ffffff !important;
}


.search-box {
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.search-box:focus-within {
  border-color: #e50914;
  box-shadow: 0 0 5px rgba(229, 9, 20, 0.5);
  background-color: rgba(0, 0, 0, 0.85);
}

.search-icon {
  color: #e5e5e5;
  margin-right: 8px;
  font-size: 14px;
  cursor: pointer;
}

.search-input {
  background: none;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 14px;
  width: 180px;
  transition: width 0.3s ease;
}

.search-input::placeholder {
  color: #808080;
}

.search-input:focus {
  width: 250px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.avatar:hover {
  transform: scale(1.05);
}

/* Hero Section */
.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  padding: 0 4%;
  background-image: linear-gradient(135deg, #111 0%, #222 50%, #111 100%);
  background-size: cover;
  background-position: center;
  transition: background-image 0.8s ease-in-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(20, 20, 20, 0.9) 0%, rgba(20, 20, 20, 0.5) 30%, transparent 100%),
              linear-gradient(to bottom, transparent 60%, #141414 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  max-width: 600px;
  z-index: 2;
}

.hero-title {
  font-size: 55px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-description {
  font-size: 16px;
  line-height: 1.5;
  color: #e5e5e5;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-play {
  background-color: #ffffff;
  color: #000000;
}

.btn-play:hover {
  background-color: rgba(255, 255, 255, 0.75);
  transform: scale(1.03);
}

.btn-info {
  background-color: rgba(109, 109, 110, 0.7);
  color: #ffffff;
}

.btn-info:hover {
  background-color: rgba(109, 109, 110, 0.4);
  transform: scale(1.03);
}

/* Main Rows Layout */
.main-container {
  position: relative;
  margin-top: -80px;
  padding: 0 4% 50px 4%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Category Video Row */
.row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.row-title {
  font-size: 20px;
  font-weight: 600;
  color: #e5e5e5;
  margin-left: 5px;
}

.row-posters {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 15px 5px;
  scrollbar-width: none; /* Hide scrollbars firefox */
}

.row-posters::-webkit-scrollbar {
  display: none; /* Hide scrollbar chrome/safari */
}

/* Video Card Styling (Netflix Hover Zoom Effect) */
.video-card {
  position: relative;
  flex: 0 0 calc(20% - 10px); /* 5 cards per screen */
  aspect-ratio: 16/9;
  min-width: 200px;
  background-color: #181818;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
  transform-origin: center center;
}

/* Card Poster Image / Thumbnail */
.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

/* Fallback card content when thumbnail is broken/loading */
.video-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  background: linear-gradient(135deg, #1f1f1f 0%, #111111 100%);
  color: #555555;
  padding: 15px;
  text-align: center;
}

.video-fallback i {
  font-size: 32px;
  color: #e50914;
}

.video-fallback span {
  font-size: 14px;
  color: #e5e5e5;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Info overlay displayed on card */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #aaaaaa;
}

.card-play-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.card-play-icon:hover {
  background-color: #e50914;
  color: #ffffff;
  transform: scale(1.1);
}

/* Hover effect rules */
.video-card:hover {
  transform: scale(1.12);
  z-index: 30;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

.video-card:hover .card-overlay {
  opacity: 1;
}

/* Loading & Error States */
.loading-container, .error-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  gap: 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: #e50914;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.error-container i {
  font-size: 45px;
  color: #e50914;
}

.btn-retry {
  background-color: #e50914;
  color: #ffffff;
  font-size: 14px;
  padding: 10px 20px;
}

.btn-retry:hover {
  background-color: #b80710;
}

.hidden {
  display: none !important;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* CUSTOM VIDEO PLAYER MODAL */
.player-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.close-player {
  position: absolute;
  top: 30px;
  left: 30px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 1010;
  transition: all 0.2s ease;
}

.close-player:hover {
  background-color: #ffffff;
  color: #000000;
  transform: scale(1.1);
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Custom Controls Overlay styling */
.custom-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%);
  padding: 20px 30px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  opacity: 1;
  transition: opacity 0.5s ease;
  z-index: 1005;
}

.custom-controls.hidden {
  opacity: 0;
  pointer-events: none;
}

.controls-top h2 {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Timeline / Progress Bar Slider */
.progress-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.progress-container input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  z-index: 2;
  position: relative;
}

.progress-container input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
}

.progress-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e50914;
  cursor: pointer;
  transition: transform 0.1s ease;
  margin-top: -5px; /* Offset track height */
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.progress-container input[type="range"]:hover::-webkit-slider-thumb {
  transform: scale(1.35);
}

.progress-bar-fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: #e50914;
  pointer-events: none;
  border-radius: 2px;
  z-index: 1;
}

/* Bottom controls panel */
.controls-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.control-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.control-btn:hover {
  color: #e50914;
  transform: scale(1.1);
}

/* Volume Slider */
.volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-container input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 70px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

.volume-container input[type="range"]::-webkit-slider-thumb:hover {
  background: #e50914;
}

.time-display {
  font-size: 14px;
  color: #e5e5e5;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Speed Controls */
.speed-container {
  position: relative;
}

#speed-btn {
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  min-width: 50px;
}

#speed-btn:hover {
  border-color: #e50914;
}

.speed-menu {
  position: absolute;
  bottom: 40px;
  right: 0;
  background-color: rgba(20, 20, 20, 0.95);
  border: 1px solid #333333;
  border-radius: 4px;
  width: 120px;
  padding: 5px 0;
  display: flex;
  flex-direction: column;
  z-index: 1020;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.speed-option {
  padding: 8px 15px;
  font-size: 13px;
  color: #e5e5e5;
  cursor: pointer;
  transition: all 0.2s ease;
}

.speed-option:hover {
  background-color: #e50914;
  color: #ffffff;
}

.speed-option.active {
  color: #e50914;
  font-weight: 700;
}

.speed-option.active:hover {
  color: #ffffff;
}

/* Responsive adjust */
@media(max-width: 1000px) {
  .hero-title {
    font-size: 40px;
  }
  .video-card {
    flex: 0 0 calc(33.33% - 10px);
  }
}

@media(max-width: 600px) {
  .navbar {
    padding: 15px 4%;
  }
  .logo {
    font-size: 22px;
  }
  .nav-links {
    display: none; /* Hide link lists on mobile */
  }
  .hero-title {
    font-size: 32px;
  }
  .video-card {
    flex: 0 0 calc(50% - 10px);
  }
  .search-input {
    width: 100px;
  }
  .search-input:focus {
    width: 140px;
  }
}

/* Card Progress Bar for Continue Watching */
.continue-progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  z-index: 5;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
}

.continue-progress-bar {
  height: 100%;
  background-color: #e50914;
  box-shadow: 0 0 4px #e50914;
  border-radius: 0 2px 2px 0;
}

/* Sync Button Style */
.nav-sync-btn {
  background: none;
  border: none;
  color: #e5e5e5;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.nav-sync-btn:hover {
  color: #e50914;
  background-color: rgba(255, 255, 255, 0.1);
  transform: rotate(180deg);
}

/* Netflix-style Splash Screen */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  z-index: 9999; /* Cover everything */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), 
              visibility 0.8s;
}

.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.splash-logo {
  color: #e50914;
  font-size: 70px;
  font-weight: 900;
  letter-spacing: 2px;
  animation: splashZoom 4.0s ease-in-out forwards;
  text-shadow: 0 0 20px rgba(229, 9, 20, 0.4);
  user-select: none;
}

.splash-logo span {
  color: #ffffff;
}

.splash-loader {
  width: 220px;
  height: 3px;
  background-color: #333333;
  border-radius: 2px;
  overflow: hidden;
}

.splash-loader-bar {
  width: 0%;
  height: 100%;
  background-color: #e50914;
  box-shadow: 0 0 8px #e50914;
  animation: loadProgress 4.0s cubic-bezier(0.1, 0.8, 0.1, 1) forwards;
}

.splash-text {
  font-size: 13px;
  color: #888888;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 5px;
  animation: textPulse 1.5s infinite ease-in-out;
}

/* Animations */
@keyframes splashZoom {
  0% {
    transform: scale(0.85);
    opacity: 0;
    filter: blur(10px);
  }
  15% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    transform: scale(1.05);
    text-shadow: 0 0 35px rgba(229, 9, 20, 0.6);
  }
}

@keyframes loadProgress {
  0% { width: 0%; }
  20% { width: 15%; }
  50% { width: 60%; }
  80% { width: 90%; }
  100% { width: 100%; }
}

@keyframes textPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* SERIES DETAILS MODAL OVERLAY */
.series-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 900;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto;
}

.series-modal-content {
  position: relative;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  background-color: #181818;
  border-radius: 8px;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  scrollbar-width: thin;
}

.series-modal-content::-webkit-scrollbar {
  width: 6px;
}
.series-modal-content::-webkit-scrollbar-thumb {
  background-color: #444;
  border-radius: 3px;
}

.close-series {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 950;
  transition: all 0.2s ease;
}

.close-series:hover {
  background-color: #ffffff;
  color: #000000;
  transform: scale(1.1);
}

.series-banner {
  position: relative;
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  background-image: linear-gradient(135deg, #222 0%, #333 100%);
}

.series-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #181818 0%, rgba(24, 24, 24, 0.4) 60%, rgba(24, 24, 24, 0.8) 100%);
}

.series-banner-content {
  position: relative;
  padding: 30px;
  z-index: 10;
}

.series-banner-content h1 {
  font-size: 32px;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  margin-bottom: 5px;
}

#series-modal-info {
  font-size: 14px;
  color: #e50914;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.series-episodes-section {
  padding: 30px;
}

.series-episodes-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #e5e5e5;
  border-left: 3px solid #e50914;
  padding-left: 10px;
}

.episodes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.episode-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background-color: #202020;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  gap: 15px;
}

.episode-item:hover {
  background-color: #2c2c2c;
  border-color: #e50914;
  transform: translateX(5px);
}

.episode-index {
  font-size: 16px;
  font-weight: 700;
  color: #777777;
  width: 25px;
  text-align: center;
}

.episode-item:hover .episode-index {
  color: #e50914;
}

.episode-thumbnail-container {
  position: relative;
  width: 80px;
  aspect-ratio: 16/9;
  border-radius: 2px;
  overflow: hidden;
  background-color: #111;
  display: flex;
  justify-content: center;
  align-items: center;
}

.episode-thumbnail-container i {
  color: #444;
  font-size: 18px;
}

.episode-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.episode-details {
  flex-grow: 1;
}

.episode-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.episode-size {
  font-size: 11px;
  color: #888888;
}

.episode-play-icon {
  font-size: 16px;
  color: #aaaaaa;
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 5px;
}

.episode-item:hover .episode-play-icon {
  color: #ffffff;
  transform: scale(1.2);
}

/* NEXT EPISODE POPUP OVERLAY IN VIDEO PLAYER */
.next-episode-overlay {
  position: absolute;
  bottom: 110px;
  right: 40px;
  background-color: rgba(20, 20, 20, 0.95);
  border: 1px solid #333333;
  border-radius: 6px;
  padding: 20px;
  width: 280px;
  z-index: 1008;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.next-episode-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.next-label {
  font-size: 11px;
  font-weight: 700;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.next-label span {
  color: #e50914;
}

#next-episode-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-play-next {
  background-color: #e50914;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 4px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-play-next:hover {
  background-color: #b80710;
  transform: scale(1.02);
}


