/* === MAIN STYLE === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "BlackSignature";
  src: url("/assets/fonts/black_signature.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --navbar-height: 90px;
  --navbar-height-mobile: 70px;
}

@media (max-width: 768px) {
  :root {
    --navbar-height: var(--navbar-height-mobile);
  }
}

body {
  font-family: "Montserrat", sans-serif;
  color: #fff;
  background: url("/assets/img/img006.png") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  padding-top: var(--navbar-height);
}

a {
  text-decoration: none;
  color: inherit;
}

/* === FIXED NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.9);
  padding: 10px 40px;
}

.logo img {
  height: 60px;
  transition: 0.3s;
}

.navbar.scrolled .logo img {
  height: 50px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 6px 10px;
}

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

.nav-links a {
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 6px 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  white-space: nowrap;
}

.nav-links a:hover {
  background: #fff;
  color: #000;
}

.nav-links a.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 20px;
  padding: 6px 12px;
}

.search-box input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  width: 120px;
  transition: width 0.3s;
}

.search-box input:focus {
  width: 180px;
}

.search-box input::placeholder {
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* === HERO SLIDER === */
.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--navbar-height));
  overflow: hidden;
  z-index: 0;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img,
.hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  bottom: 50px;
  left: 50px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 60px 60px;
  z-index: 2;
}

.hero-overlay h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.2;
  max-width: 600px;
  margin-bottom: 20px;
}

.btn-watch {
  display: inline-block;
  width: fit-content;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  padding: 16px 40px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
}

.btn-watch:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.slider-dots {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* === EPISODES — Season blocks stacked vertically === */
.episodes {
  padding: 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Season block */
.season-block {
  margin: 0 5px; /* gap handled by parent flex */
}

.season-title {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

/* Episode row — horizontally scrollable */
.episode-cards {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.episode-cards::-webkit-scrollbar {
  height: 6px;
}
.episode-cards::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
}

/* Individual episode card */
.episode-card {
  flex: 0 0 450px;
  scroll-snap-align: start;
  text-align: left;
  margin: 6px;
}

.episode-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
  display: block;
  border: 2px solid transparent;
}

.episode-card img:hover {
  transform: scale(1.02);
  border-color: #fff;
}

.episode-card p {
  margin-top: 0.5rem;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  padding-left: 4px;
  opacity: 0.9;
}

.episode-card small {
  display: block;
  color: #aaa;
  font-size: 0.8rem;
  text-align: left;
  padding-left: 4px;
  margin-top: 2px;
}

.btn-more {
  display: inline-block;
  margin-top: 1rem;
  padding: 10px 28px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.btn-more:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* === UPCOMING SHOW === */
.upcoming {
  display: flex;
  flex-direction: row;
  min-height: 520px;
  margin: 0 50px;
}

.upcoming-image {
  flex: 1;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

.upcoming-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.upcoming-image .show-title {
  position: relative;
  font-family: "BlackSignature";
  z-index: 2;
  font-size: clamp(72px, 18vw, 92px);
  font-weight: 600;
  text-align: center;
  padding: 20px;
}

.upcoming-text {
  flex: 1;
  background: #0e0a0a;
  padding: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
}

.label {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.show-subtitle {
  font-family: "Georgia", serif;
  font-size: 18px;
  margin-bottom: 15px;
  opacity: 0.85;
}

.event-dates {
  font-family: "Playfair Display", serif;
  font-size: 16px;
  margin-bottom: 25px;
  opacity: 0.9;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px 20px;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.countdown-number {
  font-family: "Playfair Display", serif;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 300;
  display: block;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
  margin-top: 4px;
}

.btn-tickets {
  display: inline-block;
  padding: 14px 30px;
  background: #fff;
  color: #000;
  border-radius: 30px;
  font-weight: 600;
  width: fit-content;
  transition: 0.3s;
  align-self: center;
}

.btn-tickets:hover {
  background: #73302c;
  color: #fff;
}

/* === FOOTER === */
.footer {
  padding: 20px 50px;
  margin: 10px 30px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 30px;
  margin: auto;
  width: 60%;
}

.footer-grid h4 {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}

.footer-grid p,
.footer-grid a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  display: block;
  margin-bottom: 6px;
  transition: color 0.2s;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.footer-social a:hover {
  background: #fff;
  color: #000;
  transform: translateY(-4px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Large desktop tweak */
@media (max-width: 1200px) {
  .episode-card {
    flex: 0 0 260px;
  }
}

/* Tablet landscape */
@media (max-width: 1024px) {
  .navbar {
    padding: 16px 30px;
  }
  .episodes {
    padding: 30px 40px;
  }
  .upcoming {
    margin: 0 30px;
  }
  .upcoming-text {
    padding: 50px 40px;
  }
  .footer {
    margin: 40px 30px;
  }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .upcoming {
    flex-direction: column;
    margin: 0 20px;
    min-height: auto;
  }
  .upcoming-image {
    min-height: 300px;
  }
  .upcoming-text {
    padding: 40px 30px;
    min-height: auto;
  }
  .label {
    font-size: 20px;
  }
  .show-subtitle {
    font-size: 16px;
  }
  .countdown {
    gap: 15px;
  }
  .countdown-item {
    padding: 25px 10px;
  }
  .btn-tickets {
    padding: 12px 24px;
    font-size: 14px;
  }
}

/* Mobile */
/* ============================================================
   PASTE THIS BLOCK INTO frontend.css
   REPLACE the existing @media (max-width: 768px) { ... } block
   ============================================================ */

@media (max-width: 768px) {
  body {
    padding-top: var(--navbar-height-mobile);
  }

  /* Navbar shell */
  .navbar {
    padding: 12px 20px;
  }

  /* Show hamburger */
  .menu-toggle {
    display: flex;
  }

  /* ── KEY FIX ──────────────────────────────────────────────
     Hide the nav-right CONTAINER by default on mobile.
     When .open is added (via JS) switch to flex so the whole
     panel (links + search box) drops down together.
     ─────────────────────────────────────────────────────── */
  .nav-right {
    display: none;
    position: fixed;
    top: var(--navbar-height-mobile);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    gap: 20px;
    z-index: 999;
  }

  .nav-right.open {
    display: flex;
  }

  /* nav-links sits inside nav-right — reset its desktop positioning */
  .nav-links {
    position: static;
    top: auto;
    background: none;
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 20px;
  }

  .nav-links a {
    font-size: 18px;
    padding: 14px 30px;
    min-width: 200px;
    text-align: center;
  }

  /* Hero */
  .hero-overlay {
    left: 0;
    bottom: 30px;
    padding: 0 24px 40px;
    text-align: center;
    width: 100%;
  }
  .slider-dots {
    bottom: 50px;
  }

  /* Episodes */
  .episodes {
    padding: 20px;
    gap: 30px;
  }
  .season-title {
    font-size: 1.1rem;
  }
  .episode-cards {
    gap: 1rem;
    mask-image: linear-gradient(
      to right,
      transparent 2%,
      black 10%,
      black 90%,
      transparent 98%
    );
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 2%,
      black 10%,
      black 90%,
      transparent 98%
    );
  }
  .episode-card {
    flex: 0 0 200px;
  }
  .episode-card p {
    font-size: 13px;
    font-weight: 500;
  }

  /* Upcoming */
  .upcoming-image {
    min-height: 220px;
  }
  .upcoming-text {
    padding: 30px 20px;
  }
  .label {
    font-size: 18px;
    margin-bottom: 10px;
  }
  .show-subtitle {
    font-size: 15px;
    margin-bottom: 12px;
  }
  .event-dates {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .countdown {
    gap: 10px;
    margin-bottom: 30px;
  }
  .countdown-item {
    padding: 18px 8px;
  }
  .countdown-number {
    font-size: 20px;
  }
  .countdown-label {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .btn-tickets {
    padding: 10px 20px;
    font-size: 13px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }
  .footer {
    margin: 30px 10px;
    padding: 30px 16px;
  }

  /* Search box in mobile panel */
  .search-box {
    width: 90%;
    margin-top: 10px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .episode-card {
    flex: 0 0 160px;
  }
  .episode-card p {
    font-size: 12px;
    font-weight: 400;
  }
  .upcoming-image {
    min-height: 180px;
  }
  .upcoming-text {
    padding: 20px 16px;
  }
  .label {
    font-size: 16px;
  }
  .show-subtitle {
    font-size: 14px;
  }
  .event-dates {
    font-size: 12px;
  }
  .countdown-item {
    padding: 12px 4px;
  }
  .countdown-number {
    font-size: 16px;
  }
  .countdown-label {
    font-size: 8px;
    letter-spacing: 0.5px;
  }
  .btn-tickets {
    padding: 8px 16px;
    font-size: 12px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   MOVIE / AUDIO / STORIES / SUBSCRIBE — Additional Sections
   ============================================================ */

audio,
video {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  margin-top: 10px;
}

.hero-movie {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5));
}

.hero-container {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  width: 100%;
}

.video-wrapper {
  flex: 1.2;
  min-width: 280px;
}

.movie-details {
  flex: 1;
  max-width: 600px;
}

.movie-title {
  font-family: "Playfair Display", serif;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 20px;
}

.movie-description {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 30px;
}

.director,
.cast {
  margin-bottom: 20px;
}

.director span,
.cast span {
  font-weight: 700;
  opacity: 0.9;
}

.cast-list {
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.4;
}

.stories-section {
  padding: 20px 30px 40px;
}

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

.story-card {
  position: relative;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.story-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 25px -10px rgba(0, 0, 0, 0.5);
}

.story-card img {
  width: 100%;
  aspect-ratio: 4 / 4;
  object-fit: cover;
  display: block;
}

.story-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(0.7px);
  padding: 16px;
}

.story-title {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin: 0;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.subscribe-form input {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  padding: 12px 16px;
  border-radius: 40px;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.subscribe-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.subscribe-form button {
  background: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
}

.subscribe-form button:hover {
  background: #e0e0e0;
}

@media (max-width: 1024px) {
  .hero-movie {
    padding: 40px;
  }
  .movie-title {
    font-size: 42px;
  }
  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
  }
  .hero-movie {
    padding: 30px 20px;
  }
  .movie-title {
    font-size: 32px;
  }
  .movie-description {
    font-size: 16px;
  }
  .stories-section {
    padding: 40px 20px;
  }
  .stories-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .movie-title {
    font-size: 26px;
  }
  .movie-meta {
    font-size: 12px;
    gap: 12px;
  }
}
