/* Hero Image Section */
.hero-image-container {
  position: relative;
  /*width: 100vw;*/
  height: 100vh;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image-desktop {
  display: block;
}

.hero-image-mobile {
  display: none;
}

@media (max-width: 768px) {
  .hero-image-desktop {
    display: none;
  }
  .hero-image-mobile {
    display: block;
  }

  .hero-image-container {
    height: 60vh;
  }

  .production-title2 {
    font-size: 27pt;
  }

  .production-breadcrumbs {
    font-size: 10px;
    padding-bottom: 22px;
  }

  .production-description {
    font-size: 16px;
  }

  .production-description div {
    text-align: inherit !important;
  }

  .crew-section {
    margin-left: 10px;
    width: 20%;
  }

  .crew-list {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .production-title2 {
    font-size: 27pt !important;
  }

  .production-breadcrumbs {
    font-size: 10px !important;
    padding-bottom: 22px !important;
  }

  .production-description {
    font-size: 16px !important;
  }

  .production-description div {
    text-align: inherit !important;
  }

  .crew-section {
    margin-left: 10px !important;
    width: 20% !important;
  }

  .crew-list {
    font-size: 10px !important;
  }
}

/* Content Section */
.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
}

.production-header {
  margin-bottom: 30px;
  display: flex;
}

.production-title {
  font-size: 48px;
  font-weight: bold;
  color: black;
  margin-bottom: 10px;
  line-height: 1.2;
}

.production-title2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0;

  color: white; /* or any color that contrasts with your image */
  box-sizing: border-box;
  font-size: 105pt;
}

.production-meta {
  font-size: 18px;
  color: #666;
  margin-bottom: 20px;
}

.production-description {
  font-size: 22px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 30px;
  width: 80%;
  display: inline-block;
}

/* Crew Section */
.crew-section {
  margin-bottom: 30px;
  width: 15%;
  display: inline-block;
  padding: 0 13px;
  margin: 0 5px;
}

.crew-title {
  font-size: 24px;
  font-weight: bold;
  color: black;
  margin-bottom: 15px;
}

.crew-list {
  font-size: 16px;
  line-height: 1.8;
  color: #575757;
  max-height: 300px;
  overflow: overlay;
}

/* For WebKit browsers (Chrome, Safari, Edge) */
.crew-list::-webkit-scrollbar {
  width: 6px; /* Thin scrollbar like iOS */
}

.crew-list::-webkit-scrollbar-track {
    background: #ebebeb;
    border-radius: 3px;
}

.crew-list::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2); /* Light gray thumb */
  border-radius: 3px; /* Slightly rounded corners like iOS */
}

.crew-list::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.3); /* Slightly darker on hover */
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.watch-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  transition: background 0.3s ease;
  cursor: pointer;
  border: 1px solid #ddd;
}

.watch-button:hover {
  background: #00375f;
  color: white;
}

.watch-button img {
  height: 25px;
  filter: invert(0.5);
  opacity: 0.5;
}

.watch-button:hover img {
  filter: invert(0);
  opacity: 1;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: white;
  color: black;
  text-decoration: none;
  border: 1px solid #ddd;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.share-button:hover {
  background: #f0f0f0;
  color: black;
}

/* Episodes Section */
.episodes-section {
  margin-top: 50px;
}

.episodes-title {
  font-size: 32px;
  font-weight: bold;
  color: black;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.episode-card {
  background: white;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.episode-card:hover {
  border-color: #00375f;
  transform: translateY(-2px);
}

.episode-image-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #f0f0f0;
}

.episode-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-info {
  padding: 15px;
}

.episode-number {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.episode-title {
  font-size: 18px;
  font-weight: bold;
  color: black;
  margin-bottom: 8px;
  line-height: 1.3;
}

.episode-description {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.episode-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  font-size: 12px;
}

@media (max-width: 768px) {
  .content-section {
    padding: 20px 15px;
  }

  .production-title {
    font-size: 32px;
  }

  .episodes-title {
    font-size: 24px;
  }

  .episodes-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .action-buttons {
    align-items: flex-start;
  }

  .watch-button,
  .share-button {
    width: 100%;
    justify-content: center;
  }
}

.no-episodes {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 16px;
}

/* Episode Platform Modal Styles */
.episode-platform-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.episode-platform-modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  width: 90%;
  max-width: 400px;
}

.episode-platform-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  background: #00375f;
  color: #fff;
  padding: 10px;
}

.episode-platform-modal-close {
  color: #ffffff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  padding: 10px;
}

.episode-platform-modal-close:hover {
  color: #b6b6b6;
}

.episode-platform-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 5px;
}

.episode-platform-link {
  display: flex;
  align-items: center;
  padding: 12px 35px;
  background: #fff;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #495057;
  transition: all 0.2s;
}

.episode-platform-link :last-child {
  padding-bottom: 5px;
}

.episode-platform-link:hover {
  background: #00375f;
}

.episode-platform-link img {
  width: 85px;
  height: 85px;
  padding: 8px;
  border-radius: 3px;
  filter: invert(0.5);
  opacity: 0.5;
}

.episode-platform-link:hover img {
  filter: invert(0);
  opacity: 1;
}

.production-breadcrumbs {
  border-bottom: 1px solid #cccccc;
  padding: 10px 0;
  margin-bottom: 9px;
}

.production-breadcrumbs a {
  color: #00375f;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  padding: 3px 5px;
  transition: all 0.2s;
}

.production-breadcrumbs a:hover {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  background-color: #00375f;
}

.production-breadcrumbs ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.production-breadcrumbs li {
  display: flex;
  align-items: center;
}

.production-breadcrumbs .ri-arrow-right-wide-line,
.production-breadcrumbs .ri-arrow-left-wide-line {
  margin: 0 8px;
  font-size: 1em;
  color: #cccccc;
}
