.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.player-card {
  flex: 1 1 60%;
  min-width: 320px;
}

.details-card {
  flex: 1 1 35%;
  min-width: 300px;
  color: #fff;
}

.video-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1220;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.iframe-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.iframe-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.player-controls {
  margin-top: 1rem;
  color: #fff;
}

.movie-title {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.meta, .muted {
  color: #aaa;
  font-size: 0.9rem;
}

.chip {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-right: 6px;
}

.info-grid {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.btn {
  background: transparent;
  border: 1px solid #e50914;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background: #e50914;
  border: 1px solid #e50914;
  color: #fff;
}

.btn.secondary {
  background: transparent;
  border: 1px solid #555;
  color: #ddd;
}

.section {
  margin-top: 3rem;
}

.carousel-wrap {
  position: relative;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1rem;
}

.card {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  min-width: 200px;
  color: #fff;
  transition: transform 0.3s;
}

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

.card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.card-body {
  padding: 0.8rem;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  user-select: none;
}

.carousel-nav.left { left: -3rem; }
.carousel-nav.right { right: -3rem; }

.reviews-list {
  margin-top: 1rem;
}

.review {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.avatar {
  background: #e50914;
  color: #fff;
  border-radius: 50%;
  width: 60px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-weight: bold;
}

.add-review textarea {
  width: 100%;
  height: 80px;
  margin: 0.5rem 0;
  border-radius: 6px;
  padding: 8px;
  background: #1c1c1c;
  color: #fff;
  border: 1px solid #333;
}

.input {
  background: #1c1c1c;
  border: 1px solid #333;
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
  }

  .carousel-nav.left { left: 0; }
  .carousel-nav.right { right: 0; }
}

.episode-item {
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s ease;
}
.episode-item:hover {
  background-color: #727272;
  color: #000000 !important;
  transform: translateY(-2px);
}
.active-episode {
  background-color: #727272 !important;
  color: #000000 !important;
  border: 2px solid #727272;
  box-shadow: 0 0 10px rgba(241, 196, 15, 0.4);
  transform: scale(1.03);
}

.custom-select {
    padding-right: 1.2rem; /* space for arrow */
    background-image: none; /* remove default arrow */
}

.custom-selector::after {
    content: "▾";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    pointer-events: none;
    font-size: 0.75rem;
}

.custom-select:focus {
    border-color: #6c757d;
    box-shadow: 0 0 0 0.15rem rgba(108,117,125,.25);
}

.chip {
  background: #222;
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  margin-right: 5px;
  display: inline-block;
  font-size: 0.9rem;
}

.desc {
  color: #ccc;
}

.details-layout {
  animation: fadeIn 0.5s ease-in-out;
}

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