/* ============================================================
   ছায়াছবি.পাতা.বাংলা — Vintage Bengali Cinema Stylesheet
   ============================================================ */

/* ── Google Fonts Import ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Bengali:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

/* ── CSS Variables ──────────────────────────────────────── */
:root {
  /* Vintage Palette */
  --cream:         #f5edd6;
  --cream-dark:    #e8d9b5;
  --sepia:         #8b6914;
  --sepia-dark:    #5c4209;
  --sepia-light:   #c9a84c;
  --gold:          #d4a017;
  --gold-bright:   #f0c040;
  --gold-dim:      #a07010;
  --ink:           #1a1008;
  --ink-soft:      #2d200a;
  --ink-lighter:   #4a3520;
  --parchment:     #f9f0dd;
  --rust:          #8b3a0f;
  --aged-white:    #faf6ec;

  /* Film Strip Tones */
  --film-dark:     #0d0b07;
  --film-mid:      #1c1710;
  --film-light:    #2e2718;

  /* Accent */
  --accent-red:    #9b2335;
  --accent-teal:   #2a6b6b;

  /* Typography */
  --font-bengali:  'Noto Serif Bengali', serif;
  --font-display:  'Playfair Display', serif;
  --font-body:     'Cormorant Garamond', serif;

  /* Spacing */
  --radius:        4px;
  --radius-lg:     8px;
  --shadow:        0 4px 20px rgba(26,16,8,.35);
  --shadow-lg:     0 8px 40px rgba(26,16,8,.5);
  --shadow-gold:   0 0 20px rgba(212,160,23,.3);

  /* Transitions */
  --trans:         all .3s ease;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--film-dark);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  /* Film grain overlay */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
}

a { color: var(--gold); text-decoration: none; transition: var(--trans); }
a:hover { color: var(--gold-bright); }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font-body); }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--film-mid); }
::-webkit-scrollbar-thumb { background: var(--sepia); border-radius: 3px; }

/* ── Typography ──────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--cream);
}
.bn { font-family: var(--font-bengali); }

/* ── Ornamental Divider ──────────────────────────────────── */
.ornament {
  text-align: center;
  color: var(--gold);
  font-size: 1.4rem;
  letter-spacing: .5em;
  margin: 1.5rem 0;
}
.ornament::before,.ornament::after {
  content: '—◆—';
  color: var(--gold-dim);
}

/* ═══════════════════════════════════════════════════════════
   HEADER / NAVIGATION
   ═══════════════════════════════════════════════════════════ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--film-dark) 0%, rgba(13,11,7,.97) 100%);
  border-bottom: 1px solid rgba(212,160,23,.25);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 70px;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-bn {
  font-family: var(--font-bengali);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .02em;
  text-shadow: 0 0 20px rgba(212,160,23,.4);
}
.logo-en {
  font-size: .65rem;
  color: var(--sepia-light);
  letter-spacing: .25em;
  text-transform: uppercase;
  font-family: var(--font-display);
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: .2rem;
  list-style: none;
  flex: 1;
}
.site-nav a {
  font-family: var(--font-display);
  font-size: .92rem;
  letter-spacing: .05em;
  color: var(--cream-dark);
  padding: .4rem .75rem;
  border-radius: var(--radius);
  transition: var(--trans);
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--gold);
  background: rgba(212,160,23,.08);
}

/* Header search */
.header-search {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
}
.header-search form {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(212,160,23,.2);
  border-radius: 50px;
  overflow: hidden;
  transition: var(--trans);
}
.header-search form:focus-within {
  border-color: var(--gold);
  background: rgba(212,160,23,.06);
}
.header-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: .92rem;
  padding: .45rem 1rem;
  width: 200px;
}
.header-search input::placeholder { color: rgba(245,237,214,.4); }
.header-search button {
  background: none;
  border: none;
  color: var(--gold);
  padding: .45rem .8rem;
  font-size: 1rem;
}

/* Lang toggle */
.lang-toggle {
  display: flex;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(212,160,23,.2);
  border-radius: 50px;
  overflow: hidden;
}
.lang-toggle button {
  background: none;
  border: none;
  color: var(--cream-dark);
  font-size: .82rem;
  padding: .35rem .7rem;
  font-family: var(--font-body);
  transition: var(--trans);
}
.lang-toggle button.active {
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  padding: .5rem;
}

/* ═══════════════════════════════════════════════════════════
   HERO SLIDER
   ═══════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  height: 85vh;
  min-height: 550px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  /* Sepia filter for vintage feel */
  filter: sepia(40%) saturate(70%) brightness(0.55);
  transform: scale(1.03);
  transition: transform 8s ease;
}
.hero-slide.active .hero-backdrop { transform: scale(1); }

/* Multiple gradient overlays for drama */
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(13,11,7,.85) 0%, rgba(13,11,7,.4) 50%, transparent 100%),
    linear-gradient(to top, rgba(13,11,7,.9) 0%, transparent 50%);
  z-index: 1;
}

/* Film strip top/bottom borders */
.hero-slide::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60px;
  background:
    repeating-linear-gradient(90deg,
      var(--film-dark) 0px, var(--film-dark) 20px,
      transparent 20px, transparent 28px,
      var(--film-dark) 28px, var(--film-dark) 48px
    );
  z-index: 2;
  opacity: .7;
}

.hero-content {
  position: absolute;
  bottom: 12%;
  left: 6%;
  z-index: 10;
  max-width: 580px;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .75rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(212,160,23,.4);
  padding: .3rem .8rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--aged-white);
  line-height: 1.1;
  margin-bottom: .5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.hero-title .bn {
  display: block;
  font-size: .6em;
  color: var(--gold);
  margin-top: .2rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  font-size: .9rem;
  color: var(--cream-dark);
  flex-wrap: wrap;
}
.hero-meta .star { color: var(--gold); }
.hero-meta .sep { opacity: .4; }

.hero-overview {
  color: rgba(245,237,214,.75);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Hero controls ───────────────────────────────────────── */
.hero-controls {
  position: absolute;
  bottom: 5%;
  right: 5%;
  z-index: 10;
  display: flex;
  gap: .5rem;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(245,237,214,.3);
  border: none;
  cursor: pointer;
  transition: var(--trans);
}
.hero-dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}

.hero-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 10;
  pointer-events: none;
}
.hero-arrow {
  pointer-events: all;
  background: rgba(13,11,7,.6);
  border: 1px solid rgba(212,160,23,.3);
  color: var(--gold);
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--trans);
}
.hero-arrow:hover {
  background: rgba(212,160,23,.15);
  border-color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: .9rem;
  letter-spacing: .08em;
  padding: .7rem 1.6rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--trans);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--sepia) 100%);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(212,160,23,.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212,160,23,.45);
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(245,237,214,.4);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,160,23,.06);
}

/* ── WATCH BUTTON (special vintage style) ─────────────────── */
.btn-watch {
  background: linear-gradient(135deg, #8b1a1a 0%, #c0392b 50%, #8b1a1a 100%);
  color: var(--cream);
  border: 1px solid rgba(255,200,150,.3);
  font-size: 1rem;
  padding: .85rem 2rem;
  letter-spacing: .12em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(139,26,26,.4);
}
.btn-watch::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,200,100,.15) 0%, transparent 60%);
}
.btn-watch:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(192,57,43,.5), 0 0 20px rgba(240,192,64,.15);
  color: var(--cream);
}
.btn-watch .bn {
  display: block;
  font-size: .75em;
  opacity: .8;
  margin-top: .1rem;
}

/* ── Watchlist btn ───────────────────────────────────────── */
.btn-watchlist {
  background: rgba(255,255,255,.06);
  color: var(--cream-dark);
  border: 1px solid rgba(245,237,214,.2);
}
.btn-watchlist:hover,
.btn-watchlist.active {
  background: rgba(212,160,23,.12);
  color: var(--gold);
  border-color: rgba(212,160,23,.4);
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════ */
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(212,160,23,.15);
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.section-title .en {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: .02em;
}
.section-title .bn {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  color: var(--gold);
  font-weight: 500;
}

/* Decorative left border */
.section-title::before {
  content: '';
  display: block;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold) 0%, transparent 100%);
  position: absolute;
  left: -12px;
}
.section-title { position: relative; }

.section-link {
  font-family: var(--font-display);
  font-size: .85rem;
  letter-spacing: .1em;
  color: var(--sepia-light);
  border-bottom: 1px solid transparent;
}
.section-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════
   MOVIE GRID
   ═══════════════════════════════════════════════════════════ */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1.5rem;
}
.movie-grid-lg {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* ── Movie Card ──────────────────────────────────────────── */
.movie-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--film-mid);
  cursor: pointer;
  transition: var(--trans);
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
.movie-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
  z-index: 5;
}

.card-poster-wrap {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--film-light);
}
.card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  filter: sepia(15%) saturate(90%);
}
.movie-card:hover .card-poster {
  transform: scale(1.06);
  filter: sepia(0%) saturate(100%);
}

/* Classic badge */
.badge-classic {
  position: absolute;
  top: .6rem;
  left: .6rem;
  background: linear-gradient(135deg, var(--sepia-dark), var(--gold-dim));
  color: var(--cream);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .5rem;
  border-radius: 2px;
  font-family: var(--font-display);
  z-index: 2;
}

/* Rating badge */
.card-rating {
  position: absolute;
  bottom: .6rem;
  right: .6rem;
  background: rgba(13,11,7,.85);
  border: 1px solid rgba(212,160,23,.3);
  border-radius: 4px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gold);
  padding: .2rem .45rem;
  display: flex;
  align-items: center;
  gap: .2rem;
  z-index: 2;
}

/* Hover overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,11,7,.95) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem .75rem .75rem;
  z-index: 3;
}
.movie-card:hover .card-overlay { opacity: 1; }
.overlay-btn {
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: var(--radius);
  padding: .5rem;
  font-size: .8rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .05em;
  width: 100%;
  cursor: pointer;
  transition: var(--trans);
}
.overlay-btn:hover { background: var(--gold-bright); }

/* Card body */
.card-body {
  padding: .75rem;
}
.card-title {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: .25rem;
}
.card-year {
  font-size: .78rem;
  color: var(--sepia-light);
}

/* Watchlist heart */
.card-wishlist {
  position: absolute;
  top: .6rem;
  right: .6rem;
  background: rgba(13,11,7,.7);
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245,237,214,.5);
  font-size: .9rem;
  cursor: pointer;
  transition: var(--trans);
  z-index: 4;
}
.card-wishlist:hover,
.card-wishlist.wishlisted { color: var(--accent-red); }

/* ── Horizontal Scroll Row ─────────────────────────────── */
.movie-row {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--sepia) transparent;
}
.movie-row .movie-card { flex: 0 0 170px; }

/* ═══════════════════════════════════════════════════════════
   MOVIE DETAIL PAGE
   ═══════════════════════════════════════════════════════════ */
.movie-detail-hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: sepia(30%) brightness(0.4);
}
.detail-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(13,11,7,.9) 0%, rgba(13,11,7,.5) 60%, transparent 100%),
    linear-gradient(to top, var(--film-dark) 0%, transparent 50%);
}

.detail-info {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  width: 100%;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: end;
}

.detail-poster {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(212,160,23,.15);
  width: 260px;
  aspect-ratio: 2/3;
  object-fit: cover;
  filter: sepia(10%);
  border: 2px solid rgba(212,160,23,.2);
}

.detail-meta-wrap { padding-bottom: 1rem; }

.detail-genres {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.genre-tag {
  background: rgba(212,160,23,.1);
  border: 1px solid rgba(212,160,23,.25);
  color: var(--gold);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 2px;
  font-family: var(--font-display);
}

.detail-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--aged-white);
  margin-bottom: .3rem;
  line-height: 1.1;
}
.detail-title-bn {
  font-family: var(--font-bengali);
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--gold);
  margin-bottom: 1rem;
}

.detail-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.stat-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--sepia-light);
  font-family: var(--font-display);
}
.stat-value {
  font-size: 1rem;
  color: var(--cream);
  font-weight: 600;
}
.stat-value.gold { color: var(--gold); font-size: 1.2rem; }

.detail-overview {
  color: rgba(245,237,214,.8);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 650px;
}

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

/* ── Detail body ─────────────────────────────────────────── */
.detail-body {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Watch links panel */
.watch-links-panel {
  background: linear-gradient(135deg, rgba(139,26,26,.15) 0%, rgba(44,12,12,.3) 100%);
  border: 1px solid rgba(192,57,43,.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
}
.watch-links-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.watch-links-title span { color: var(--gold); }
.watch-servers {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.server-btn {
  background: rgba(192,57,43,.15);
  border: 1px solid rgba(192,57,43,.35);
  color: var(--cream-dark);
  font-family: var(--font-display);
  font-size: .85rem;
  padding: .5rem 1.2rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--trans);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.server-btn:hover {
  background: rgba(192,57,43,.3);
  color: var(--cream);
  border-color: rgba(192,57,43,.6);
}

/* Trailer embed */
.trailer-wrap {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--film-mid);
  margin-bottom: 3rem;
  border: 1px solid rgba(212,160,23,.1);
}
.trailer-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Cast grid */
.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
}
.cast-card {
  text-align: center;
  background: var(--film-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding-bottom: .75rem;
}
.cast-photo {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  filter: sepia(10%);
}
.cast-name {
  font-size: .8rem;
  color: var(--cream-dark);
  margin-top: .5rem;
  padding: 0 .5rem;
}
.cast-char {
  font-size: .72rem;
  color: var(--sepia-light);
  padding: 0 .5rem;
}

/* ═══════════════════════════════════════════════════════════
   FILTER BAR
   ═══════════════════════════════════════════════════════════ */
.filter-bar {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(212,160,23,.12);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-width: 140px;
}
.filter-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--sepia-light);
  font-family: var(--font-display);
}
.filter-select {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(212,160,23,.2);
  border-radius: var(--radius);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: .9rem;
  padding: .5rem .85rem;
  outline: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23c9a84c'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
  padding-right: 2rem;
}
.filter-select:focus { border-color: var(--gold); }
.filter-select option { background: var(--film-dark); }

/* ═══════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════ */
.pagination {
  display: flex;
  justify-content: center;
  gap: .4rem;
  padding: 3rem 0 1rem;
  flex-wrap: wrap;
}
.page-btn {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(212,160,23,.15);
  color: var(--cream-dark);
  font-family: var(--font-display);
  font-size: .88rem;
  width: 38px; height: 38px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
}
.page-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.page-btn.active {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  font-weight: 700;
}
.page-btn:disabled { opacity: .3; cursor: default; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
footer {
  background: var(--film-dark);
  border-top: 1px solid rgba(212,160,23,.12);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: auto;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand .logo-bn { font-size: 1.5rem; }
.footer-tagline {
  font-size: .88rem;
  color: rgba(245,237,214,.5);
  margin-top: .5rem;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sepia-light);
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer-links a {
  font-size: .9rem;
  color: rgba(245,237,214,.55);
  transition: var(--trans);
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(212,160,23,.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: rgba(245,237,214,.35);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   SEARCH PAGE
   ═══════════════════════════════════════════════════════════ */
.search-hero {
  background: linear-gradient(180deg, rgba(212,160,23,.08) 0%, transparent 100%);
  padding: 3rem 1.5rem;
  text-align: center;
}
.search-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
}
.search-form-big {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 0;
}
.search-form-big input {
  flex: 1;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(212,160,23,.3);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: .9rem 1.2rem;
  outline: none;
}
.search-form-big input::placeholder { color: rgba(245,237,214,.35); }
.search-form-big button {
  background: var(--gold);
  border: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  padding: .9rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  transition: var(--trans);
}
.search-form-big button:hover { background: var(--gold-bright); }

/* ═══════════════════════════════════════════════════════════
   LOADING / SKELETON
   ═══════════════════════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* Loading spinner */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(212,160,23,.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════════════════════ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.text-gold   { color: var(--gold); }
.text-muted  { color: rgba(245,237,214,.5); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: .92rem;
}
.alert-error { background: rgba(155,35,53,.2); border: 1px solid rgba(155,35,53,.4); color: #f8b4b4; }
.alert-success { background: rgba(42,107,107,.2); border: 1px solid rgba(42,107,107,.4); color: #b4e8e8; }

/* ═══════════════════════════════════════════════════════════
   ADMIN PANEL STYLES
   ═══════════════════════════════════════════════════════════ */
.admin-body {
  background: #111118;
  color: #e2e8f0;
  font-family: 'Cormorant Garamond', serif;
  min-height: 100vh;
}
.admin-sidebar {
  width: 240px;
  background: #0d0d14;
  border-right: 1px solid rgba(212,160,23,.12);
  position: fixed;
  top: 0; bottom: 0; left: 0;
  display: flex;
  flex-direction: column;
  padding: 0 0 1rem;
  z-index: 100;
}
.admin-logo {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(212,160,23,.1);
  font-family: var(--font-bengali);
  color: var(--gold);
  font-size: 1.1rem;
}
.admin-logo span {
  display: block;
  font-family: var(--font-display);
  font-size: .65rem;
  color: rgba(212,160,23,.5);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-top: .2rem;
}
.admin-nav { flex: 1; padding: 1rem 0; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: rgba(226,232,240,.6);
  font-family: var(--font-display);
  font-size: .88rem;
  padding: .65rem 1.5rem;
  transition: var(--trans);
  border-left: 3px solid transparent;
}
.admin-nav a:hover,
.admin-nav a.active {
  color: var(--gold);
  background: rgba(212,160,23,.07);
  border-left-color: var(--gold);
}
.admin-main {
  margin-left: 240px;
  padding: 2rem 2.5rem;
  min-height: 100vh;
}
.admin-page-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--cream);
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(212,160,23,.12);
}
.admin-card {
  background: #161620;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.admin-table th {
  text-align: left;
  padding: .75rem 1rem;
  font-family: var(--font-display);
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--sepia-light);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.admin-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  color: rgba(226,232,240,.8);
}
.admin-table tr:hover td { background: rgba(255,255,255,.02); }
.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sepia-light);
  margin-bottom: .4rem;
}
.form-input {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  color: #e2e8f0;
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .65rem .9rem;
  outline: none;
  transition: var(--trans);
}
.form-input:focus { border-color: var(--gold); }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23c9a84c'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
  padding-right: 2rem;
}
.badge-status {
  display: inline-block;
  font-size: .72rem;
  padding: .2rem .6rem;
  border-radius: 50px;
  font-family: var(--font-display);
  letter-spacing: .05em;
}
.badge-active { background: rgba(42,107,107,.3); color: #6ee7b7; border: 1px solid rgba(110,231,183,.2); }
.badge-inactive { background: rgba(100,100,100,.2); color: rgba(226,232,240,.5); border: 1px solid rgba(255,255,255,.08); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .detail-info   { grid-template-columns: 200px 1fr; gap: 2rem; }
  .detail-poster { width: 200px; }
}

@media (max-width: 768px) {
  .site-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--film-dark); flex-direction: column; padding: 1rem; border-bottom: 1px solid rgba(212,160,23,.15); }
  .site-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .header-search { display: none; }
  .hero-section { height: 65vh; }
  .detail-info { grid-template-columns: 1fr; }
  .detail-poster { width: 160px; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .movie-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
  .admin-sidebar { width: 200px; }
  .admin-main { margin-left: 200px; padding: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-content { left: 1rem; right: 1rem; bottom: 8%; }
  .movie-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-main { margin-left: 0; }
}

/* ── Vintage film strip decorative element ───────────────── */
.film-strip-decoration {
  height: 40px;
  background:
    repeating-linear-gradient(90deg,
      var(--ink) 0px, var(--ink) 10px,
      transparent 10px, transparent 14px,
      var(--ink) 14px, var(--ink) 24px
    );
  opacity: .15;
  margin: 2rem 0;
}

/* ── Page transitions ─────────────────────────────────────── */
.page-fade {
  animation: pageFade .4s ease;
}
@keyframes pageFade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Tooltip ─────────────────────────────────────────────── */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13,11,7,.95);
  border: 1px solid rgba(212,160,23,.2);
  color: var(--cream);
  font-size: .75rem;
  padding: .3rem .7rem;
  border-radius: var(--radius);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
  z-index: 100;
}
[data-tooltip]:hover::after { opacity: 1; }

@media (max-width: 768px) {
    /* Allow the header to wrap elements to a new line */
    .site-header .container {
        flex-wrap: wrap;
        padding: 10px 15px;
    }

    /* Push the search bar to its own row below the logo */
    .header-search {
        order: 3;
        width: 100%;
        margin-top: 15px;
        margin-left: 0 !important;
    }

    /* Make the search input fill the whole screen gracefully */
    .header-search input {
        width: 100%;
        max-width: 100%;
    }

    /* Keep the logo and hamburger/lang toggle aligned nicely on top */
    .site-logo {
        flex: 1;
    }
}