main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.hero h2 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.movie-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.movie-poster {
  width: 100%;
  height: 400px;
  background: linear-gradient(45deg, #e3e3e3, #f0f0f0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.movie-poster::before {
  content: "Loading...";
  color: #999;
  font-size: 1rem;
  position: absolute;
  z-index: 1;
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.movie-poster.error::before {
  content: "Image unavailable";
  color: #dc3545;
}

.movie-info {
  padding: 1.5rem;
}

.movie-info h3 {
  margin-bottom: 0.5rem;
}

.movie-info h3 a {
  color: #2c3e50;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 600;
}

.movie-info h3 a:hover {
  color: #667eea;
  text-decoration: underline;
}

.release-date {
  color: #6c757d;
  font-weight: 500;
  margin-bottom: 1rem;
}

.overview {
  color: #555;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Movie Detail Page Styles */
.movie-detail {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.movie-header {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  padding: 2rem;
}

.movie-poster-large {
  width: 100%;
  height: 450px;
  background: linear-gradient(45deg, #e3e3e3, #f0f0f0);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.movie-poster-large::before {
  content: "";
  color: #999;
  font-size: 1rem;
  position: absolute;
  z-index: 1;
}

.single-line {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-poster-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.breadcrumb {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.movie-details h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.movie-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-weight: 600;
  color: #6c757d;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  font-size: 1.1rem;
  color: #2c3e50;
  margin-top: 0.25rem;
}

.movie-overview {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 2rem;
}

.movie-images {
  padding: 2rem;
  border-top: 1px solid #e9ecef;
}

.movie-images h3 {
  margin-bottom: 1rem;
  color: #2c3e50;
}

.backdrop-container {
  width: 100%;
  height: 400px;
  background: linear-gradient(45deg, #e3e3e3, #f0f0f0);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.backdrop-container::before {
  content: "";
  color: #999;
  font-size: 1rem;
  position: absolute;
  z-index: 1;
}

.backdrop-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
  .movie-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .movie-poster-large {
    max-width: 200px;
    max-height: 300px;
    margin: 0 auto;
  }

  .movie-meta {
    justify-content: center;
  }

  .movie-details h1 {
    font-size: 1.8rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }
}

/* Loading and Error States */
.loading {
  opacity: 0.7;
}

.error {
  background: #f8d7da !important;
  color: #721c24;
}

.error::before {
  content: "⚠ Image failed to load";
  color: #721c24 !important;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 1000;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

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

/* Error Screen */
.error-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #dc3545;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 1000;
}

.error-content {
  text-align: center;
  max-width: 500px;
  padding: 2rem;
}

.error-content h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.retry-button,
.back-button {
  display: inline-block;
  padding: 12px 24px;
  margin: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  /* color: white; */
  text-decoration: none;
  border: 2px solid white;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.retry-button:hover,
.back-button:hover {
  background: white;
  color: #dc3545;
}

/* Content Sections */
.content-section {
  max-width: 1200px;
  margin: 3rem auto;
  /* padding: 0 1rem; */
}

.content-section h2 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid #667eea;
  padding-bottom: 0.5rem;
}

/* Movie Tagline */
.movie-tagline {
  font-style: italic;
  color: #6c757d;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* Cast Grid */
.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
}

/* Recommended Movies Section */
.recommended-movies {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.movie-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.movie-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.movie-poster {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.movie-info {
  padding: 1rem;
}

.movie-info h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.movie-year {
  color: #666;
  font-size: 0.9rem;
}

/* Cast link styling */
.cast-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease;
}

.cast-link:hover {
  transform: translateY(-2px);
}

.cast-member {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.cast-member:hover {
  transform: translateY(-5px);
}

.cast-photo {
  width: 100%;
  height: 200px;
  background: linear-gradient(45deg, #e3e3e3, #f0f0f0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cast-photo::before {
  content: "";
  color: #999;
  font-size: 0.9rem;
  position: absolute;
  z-index: 1;
}

.cast-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.cast-info {
  padding: 1rem;
}

.cast-name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.cast-character {
  color: #6c757d;
  font-size: 0.8rem;
}

/* Crew Section */
.crew-department {
  margin-bottom: 2rem;
}

.crew-department h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  border-left: 4px solid #667eea;
  padding-left: 1rem;
}

.crew-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.crew-member {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.crew-member-name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.crew-member-job {
  color: #6c757d;
  font-size: 0.9rem;
}

/* Videos Grid */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.video-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-embed {
  width: 100%;
  height: 200px;
  border: none;
}

.video-info {
  padding: 1rem;
}

.video-title {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.video-type {
  display: inline-block;
  background: #667eea;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

/* Reviews Container */
.reviews-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.review-item {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.review-author {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1.1rem;
}

.review-rating {
  background: #28a745;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.review-content {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.review-content.truncated {
  max-height: 150px;
  overflow: hidden;
  position: relative;
}

.review-content.truncated::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 50px;
  width: 100%;
  background: linear-gradient(transparent, white);
}

.review-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.expand-review,
.review-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.expand-review:hover,
.review-link:hover {
  text-decoration: underline;
}

.reviewer-details {
  display: flex;
  gap: 10px;
  align-items: center;
}

.reviewer-details .author-avatar {
  width: 50px;
  border-radius: 50%;
  overflow: hidden;
}

/* Watch Providers */
.providers-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.provider-country {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: none;
}

.provider-country.active {
  display: block;
}

.provider-country h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.provider-type {
  margin-bottom: 1.5rem;
}

.provider-type h4 {
  color: #6c757d;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.provider-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.provider-logo {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.provider-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Translations */
.translations-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.translation-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.translation-language {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-code {
  background: #667eea;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.translation-title {
  margin-bottom: 0.5rem;
}

.translation-title strong {
  color: #2c3e50;
}

.translation-tagline {
  color: #6c757d;
  font-style: italic;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  .cast-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
  }

  .cast-photo {
    height: 150px;
  }

  .videos-grid {
    grid-template-columns: 1fr;
  }

  .crew-list {
    grid-template-columns: 1fr;
  }

  .review-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .translations-container {
    grid-template-columns: 1fr;
  }

  .provider-logos {
    justify-content: center;
  }

  .content-section {
    margin: 2rem auto;
  }

  .content-section h2 {
    font-size: 1.5rem;
  }
}

/* Famous Quotes Section */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.quote-item {
  background: #f8f9fa;
  border-left: 5px solid #667eea;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.quote-text {
  font-size: 1.2rem;
  font-style: italic;
  color: #333;
  line-height: 1.6;
}

/* Famous Conversations Section */
.conversation-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.conversation-item {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  margin-bottom: 0.1rem;
}

.conversation-item p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.speaker {
  font-weight: 700;
  color: #667eea;
  margin-right: 0.5rem;
}

/* Oscar Awards Section */
.oscar-awards {
  padding: 2rem 0;
}

.oscar-awards h2 {
  color: #2c3e50;
  border-bottom: 3px solid #667eea;
}

.awards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.award-category h3 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.award-category ul {
  list-style: none;
  padding: 0;
}

.award-category li {
  background: #f8f9fa;
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  font-weight: 500;
  border: 1px solid #e0e0e0;
}

.fa-trophy,
.fa-award {
  margin-right: 0.5rem;
  color: #667eea;
}

.awards-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.award-item {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  /* align-items: center; */
}

.award-category-name {
  font-weight: 600;
  color: #2c3e50;
}

/* Hide empty sections */
.content-section.hidden {
  display: none;
}

.movie-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

@media only screen and (max-width: 768px) {
  .movie-btns {
    justify-content: center;
  }
}

.btn {
  font-size: medium;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  width: fit-content;
  padding: 10px 15px;
  border-radius: 30px;
}

.btn.watch-btn {
  background-color: #07323b;
  color: white;
}

.trailer-overlay-container {
  display: none;
  position: fixed;
  /* display: flex; */
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.trailer-overlay-container .video-frame {
  width: 70%;
  height: 70%;
  border: none;
  border-radius: 8px;
}

.trailer-overlay-close-btn {
  all: unset;
  position: fixed;
  top: 10px;
  right: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 20px;
  cursor: pointer;
  font-size: 20px;
}
.trailer-overlay-close-btn i {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 20px;
  width: 20px;
}

.media-btns {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  list-style: none;
  margin-bottom: 20px;
}

.media-btns .media-btn {
  width: 100%;
  padding: 10px 20px;
  border-radius: 10px;
  border: #07323b 1px solid;
  cursor: pointer;
  transition: all 0.2s;
}

.media-btns .media-btn.active {
  background-color: #07323b;
  color: rgba(255, 255, 255, 0.9);
}

.media-btns .media-btn:hover {
  background-color: #07323b;
  color: rgba(255, 255, 255, 0.9);
}

.backdrops-grid,
.posters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.backdrops-grid .backdrop,
.posters-grid .poster {
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.backdrops-grid .backdrop-img,
.posters-grid .poster-img {
  min-height: 200px;
}

.download-backdrop,
.download-poster {
  border: none;
  color: #07323b;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  padding: 10px;
  position: absolute;
  right: 10px;
  bottom: 10px;
  cursor: pointer;
}

.download-backdrop i {
  height: 15px;
  width: 15px;
}

.view-more-sec {
  margin-top: 20px;
  display: flex;
  justify-content: end;
}

.view-more-sec a {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: fit-content;
  color: #07323b;
  text-decoration: underline;
  font-size: small;
}

.view-more-sec a i {
  font-size: smaller;
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.logos-grid .logo-container {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  padding: 30px;
}

.bg-transparent-imgs {
  background: url(/assets/img/transparent-bg.png);
}

.hidden {
  display: none !important;
}

.show-more-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.show-more-container .show-more-btn {
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  /* background-color: #07323b; */
  /* color: rgba(255, 255, 255, 0.9); */
}

.country-selection-container {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.country-selection-container .select-country {
  display: flex;
  padding: 5px 10px;
  border-radius: 5px;
}

.cast-grid,
.crew-grid {
  max-height: 1000px;
  overflow-y: scroll;
}

.page-navigation-section {
  position: sticky;
  top: 0;
  padding-block: 10px;
  z-index: 10;
  overflow-x: scroll;
}

.nav-container {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-container a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  background-color: #07323b;
  border-radius: 5px;
  padding: 10px 20px;
  gap: 10px;
  white-space: nowrap;
}

.nav-container a i {
  color: #fff;
}
