body {
  background-color: #000;
  color: white;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111;
  padding: 10px 20px;
}

.logo {
  font-weight: bold;
  font-size: 1.3em;
}

.back-btn {
  color: white;
  text-decoration: none;
  font-size: 10em;
  background: #ff0000;
  padding: 6px 12px;
  border-radius: 8px;
}

.series-container {
  padding: 20px;
}

.series-info {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.series-thumb {
  width: 300px;
  border-radius: 10px;
}

.series-details h1 {
  font-size: 1.8em;
  margin-bottom: 10px;
}

.series-details p {
  color: #ccc;
  line-height: 1.5;
  font-size: 1em;
}

h2 {
  margin-bottom: 10px;
  font-size: 1.4em;
}

/* =========================================================
   VIDEO GRID (POSTER STYLE)
   ========================================================= */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* 2 per row on mobile */
  gap: 20px;
  justify-items: center;
}

.video-item {
  cursor: pointer;
  text-align: center;
}

.video-item img {
  width: 100%;
  aspect-ratio: 2 / 3; /* Vertical movie poster shape */
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-item:hover img {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.video-title {
  margin-top: 10px;
  font-size: 1em;
  color: white;
}

/* Responsive adjustments */
@media (min-width: 600px) {
  .video-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (min-width: 900px) {
  .video-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 3–4 per row */
  }
}

/* =========================================================
   EPISODE THUMBNAILS & PLAY BUTTON
   ========================================================= */
.episode-thumb-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background-color: #333;
}

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

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  opacity: 0.8;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.episode-thumb-container:hover .play-button {
  opacity: 1;
}

.episode-placeholder {
  width: 100%;
  height: 120px;
  background-color: #333;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9em;
}

.episode-title {
  margin-top: 5px;
  text-align: center;
  color: white;
  font-size: 0.9em;
}

/* =========================================================
   BACK BUTTON POSITION
   ========================================================= */
#back-btn-container {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 9999;
}










