/* ============================================================
   MABELL.FR — DESIGN SYSTEM
   Dark glassmorphism, neon accents, fully responsive
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --primary: #E63946;
  --secondary: #F4A261;
  --dark: #080810;
  --dark2: #12121D;
  --dark3: #1B1B29;
  --dark4: #252535;
  --dark5: #2E2E41;
  --white: #F8F9FA;
  --text: #D1D1E0;
  --muted: #8E8E9F;
  --red: #E63946;
  --orange: #F4A261;
  --green: #2ECC71;
  --glass: rgba(18, 18, 29, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-red: 0 10px 40px rgba(230, 57, 70, 0.15);
  --font: 'Outfit', sans-serif;
  --nav-h: 72px;
}

/* ---------- LIGHT MODE ---------- */
[data-theme="light"], .light-mode {
  --dark: #F8F9FA;
  --dark2: #FFFFFF;
  --dark3: #F1F3F5;
  --dark4: #E9ECEF;
  --dark5: #DEE2E6;
  --white: #080810;
  --text: #212529;
  --muted: #495057;
  --glass: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.05);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- GLOBAL BACKGROUND ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/34940757/pexels-photo-34940757.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: -2;
  pointer-events: none;
  will-change: transform;
}

/* ---------- SECTIONS ---------- */
.section { padding: 80px 0; position: relative; }
.section-glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 { color: var(--white); font-weight: 900; line-height: 1.1; }
p { margin-bottom: 1rem; }

.label {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
}
.label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 2px;
  background: var(--red);
}

.section-title { margin-bottom: 40px; }
.section-title h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }

/* ---------- TAGS ---------- */
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--dark3);
  color: var(--text);
  border: 1px solid var(--dark4);
}
.tag-pill.red   { background: rgba(230,57,70,0.15); color: var(--red); border-color: rgba(230,57,70,0.3); }
.tag-pill.orange { background: rgba(244,162,97,0.15); color: var(--orange); border-color: rgba(244,162,97,0.3); }
.tag-pill.green  { background: rgba(46,204,113,0.15); color: var(--green); border-color: rgba(46,204,113,0.3); }

.tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--red);
  letter-spacing: 1px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: var(--nav-h);
  background: rgba(8, 8, 16, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.nav__logo { font-size: 1.8rem; font-weight: 900; color: var(--white); letter-spacing: -1px; }
.nav__logo span { color: var(--red); }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  padding: 10px 0;
  position: relative;
}
.nav__links a:hover, .nav__links a.active { color: var(--white); }
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.3s;
}
.nav__links a.active::after, .nav__links a:hover::after { width: 100%; }

.nav__cta {
  background: rgba(230, 57, 70, 0.1) !important;
  border: 1px solid var(--red);
  padding: 8px 16px !important;
  border-radius: 4px;
  color: var(--red) !important;
}
.nav__cta::after { display: none !important; }

.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__burger { display: none; background: none; border: none; color: var(--white); cursor: pointer; }

/* Dropdown */
.nav__dropdown { position: relative; }
.nav__dropdown-trigger {
  background: none; border: none; color: var(--text); font-family: inherit;
  font-weight: 700; font-size: 0.88rem; cursor: pointer; display: flex; align-items: center; gap: 5px;
  transition: color 0.2s;
}
.nav__dropdown-trigger:hover { color: var(--white); }
.nav__dropdown-menu {
  position: absolute; top: calc(100% + 15px); right: 0;
  background: var(--dark2); border: 1px solid var(--dark4);
  border-radius: var(--radius-sm); min-width: 220px; padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.25s ease;
  box-shadow: var(--shadow);
  z-index: 100;
}
.nav__dropdown.open .nav__dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-section-title { font-size: 0.7rem; color: var(--muted); font-weight: 800; text-transform: uppercase; padding: 5px 12px; }
.dropdown-divider { height: 1px; background: var(--dark4); margin: 8px 0; }
.nav__dropdown-menu a { display: block; padding: 8px 12px; border-radius: 4px; font-size: 0.88rem; }
.nav__dropdown-menu a:hover { background: var(--dark3); color: var(--white); }

/* Language Switcher */
.lang-switcher { position: relative; }
.lang-switcher__trigger {
  background: var(--dark3); border: 1px solid var(--dark4);
  padding: 5px 10px; border-radius: 20px; color: var(--white);
  display: flex; align-items: center; gap: 5px; cursor: pointer; font-family: inherit; font-weight: 700;
  font-size: 0.85rem;
}
.lang-switcher__menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--dark2); border: 1px solid var(--dark4);
  border-radius: var(--radius-sm); min-width: 140px; padding: 5px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 100;
}
.lang-switcher.open .lang-switcher__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switcher__menu a { display: block; padding: 8px 12px; border-radius: 4px; font-size: 0.88rem; }
.lang-switcher__menu a:hover { background: var(--dark3); }
.lang-switcher__menu a.active { color: var(--red); font-weight: 700; }

/* Nav Search (inline) */
.nav__search-inline {
  display: flex;
  align-items: center;
  background: var(--dark3);
  border: 1px solid var(--dark4);
  border-radius: 20px;
  padding: 0 4px 0 12px;
  transition: border-color 0.25s;
  height: 36px;
  width: 180px;
}
.nav__search-inline:focus-within {
  border-color: var(--red);
  width: 240px;
}
.nav__search-icon { color: var(--muted); flex-shrink: 0; transition: color 0.2s; }
.nav__search-inline:focus-within .nav__search-icon { color: var(--red); }
.nav__search-inline input {
  background: transparent;
  border: none;
  padding: 0 10px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.82rem;
  outline: none;
  width: 100%;
  height: 100%;
}
.nav__search-inline input::placeholder { color: var(--muted); font-weight: 600; }

/* Theme Toggle */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--dark4);
  background: var(--dark3); color: var(--orange); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.theme-toggle:hover { background: var(--dark4); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun-icon { display: none; }
.light-mode .theme-toggle .moon-icon { display: none; }
.light-mode .theme-toggle .sun-icon { display: block; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .current { color: var(--text); font-weight: 600; }

/* ============================================================
   HERO (HOME)
   ============================================================ */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url('https://images.pexels.com/photos/34940757/pexels-photo-34940757.jpeg');
  background-size: cover;
  background-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to right, var(--dark) 40%, transparent 100%),
              linear-gradient(to top, var(--dark) 0%, transparent 50%);
}
.hero__content { max-width: 800px; position: relative; z-index: 10; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px;
  background: rgba(230, 57, 70, 0.1); border: 1px solid var(--red);
  color: var(--red); border-radius: 30px; font-weight: 800; font-size: 0.75rem;
  margin-bottom: 30px;
}
.hero h1 { font-size: clamp(2.5rem, 7vw, 5rem); margin-bottom: 20px; }
.hero h1 span { color: var(--red); text-shadow: 0 0 40px rgba(230, 57, 70, 0.3); }
.hero__sub { font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 700; color: var(--orange); margin-bottom: 20px; }
.hero p { font-size: 1.1rem; color: var(--text); max-width: 600px; margin-bottom: 40px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: var(--muted); font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  animation: float 2s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ---------- STATS BAR ---------- */
.stats-bar {
  background: var(--dark2);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 30px 0;
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stats-bar__item strong { display: block; font-size: 1.6rem; color: var(--red); margin-bottom: 4px; }
.stats-bar__item span { font-size: 0.85rem; color: var(--muted); }

/* ---------- DEF BOX ---------- */
.def-box {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px;
  border-left: 4px solid var(--red);
}
.def-box__term { font-size: 3rem; font-weight: 900; color: var(--red); margin-bottom: 8px; }
.def-box__phonetic { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }
.def-box__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.def-box__tags span {
  padding: 6px 14px; border-radius: 20px; font-size: 0.78rem; font-weight: 600;
  background: var(--dark3); border: 1px solid var(--dark4); color: var(--text);
}

/* ---------- COMPARE TABLE ---------- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--glass);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}
.compare-table th {
  padding: 16px 20px; text-align: left; font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 1px; color: var(--muted); background: var(--dark3);
}
.compare-table td {
  padding: 16px 20px; border-top: 1px solid var(--dark4); font-size: 0.95rem; color: var(--text);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.9rem;
  transition: all 0.3s ease; cursor: pointer; border: none; font-family: inherit;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red); color: #fff;
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.3);
}
.btn-primary:hover { background: #C42F3C; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(230, 57, 70, 0.4); }
.btn-outline {
  background: transparent; border: 2px solid var(--dark4); color: var(--white);
}
.btn-outline:hover { border-color: var(--red); background: rgba(230, 57, 70, 0.05); color: var(--red); }

/* ============================================================
   CARDS GRID (catalogue, home, recommendations)
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.oav-card {
  background: var(--dark2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--dark4);
  transition: all 0.35s ease;
}
.oav-card:hover {
  transform: translateY(-8px);
  border-color: var(--red);
  box-shadow: var(--shadow-red);
}
.oav-card__img {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--dark3);
}
.oav-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.oav-card:hover .oav-card__img img { transform: scale(1.08); }

.oav-card__badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
  color: var(--orange); padding: 4px 10px; border-radius: 20px;
  font-weight: 800; font-size: 0.8rem;
}
.oav-card__no-img {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--muted); background: var(--dark3);
}
.oav-card__info { padding: 16px; }
.oav-card__title {
  font-weight: 700; color: var(--white); margin-bottom: 8px;
  font-size: 0.95rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.oav-card__meta {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: 0.82rem;
}

/* ============================================================
   ALERT
   ============================================================ */
.alert {
  background: var(--glass); border: 1px solid var(--dark4); border-radius: var(--radius);
  padding: 20px 30px; color: var(--text); display: flex; align-items: center; gap: 12px;
  font-size: 0.95rem;
}

/* ============================================================
   DETAIL PAGE — OAV (oav.php)
   ============================================================ */

/* Wrapper + Background */
.detail-page-wrapper {
  position: relative;
  min-height: 100vh;
  background: var(--dark);
  overflow: hidden;
}

.detail-bg {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 700px;
  background-size: cover;
  background-position: center top;
  z-index: 0;
}
.detail-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,8,16,0.5) 0%, rgba(8,8,16,0.85) 60%, var(--dark) 100%);
}

.detail-page-wrapper main {
  position: relative;
  z-index: 1;
  background: transparent;
}

/* Hero Detail */
.hero-detail {
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 40px;
}

.hero-detail__inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}

/* Sidebar */
.hero-detail__sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.hero-detail__poster {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border: 2px solid var(--glass-border);
}
.hero-detail__poster img {
  width: 100%;
  height: auto;
  display: block;
}

.no-poster {
  width: 100%;
  aspect-ratio: 2/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark3);
  font-size: 4rem;
  border-radius: var(--radius);
}

/* Score Card */
.score-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.score-card__ring {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
}
.score-card__ring svg { width: 100%; height: 100%; }
.score-card__value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
}
.score-card__info { min-width: 0; }
.score-card__label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
.score-card__votes { font-size: 0.85rem; color: var(--text); margin: 2px 0; }
.score-card__stars { display: flex; gap: 1px; }

/* Sidebar Info */
.sidebar-info {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
}
.sidebar-info__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--dark4);
  font-size: 0.88rem;
  color: var(--text);
}
.sidebar-info__row:last-child { border-bottom: none; }
.sidebar-info__row--col { flex-direction: column; align-items: flex-start; }
.sidebar-info__key { color: var(--muted); font-weight: 600; font-size: 0.82rem; }

/* Status badges */
.status-badge {
  font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  background: var(--dark4); color: var(--text);
}
.status-ended { background: rgba(46,204,113,0.15); color: var(--green); }
.status-returning-series { background: rgba(230,57,70,0.15); color: var(--red); }
.status-canceled { background: rgba(142,142,159,0.15); color: var(--muted); }

/* Trailer thumbnail (sidebar) */
.trailer-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--glass-border);
}
.trailer-thumb img { width: 100%; height: auto; display: block; transition: transform 0.4s; }
.trailer-thumb:hover img { transform: scale(1.05); }
.trailer-thumb__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.3s;
}
.trailer-thumb:hover .trailer-thumb__overlay { background: rgba(0,0,0,0.3); }
.trailer-thumb__play {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(230,57,70,0.9);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(230,57,70,0.4);
}
.trailer-thumb__label { font-size: 0.75rem; font-weight: 700; color: #fff; }

/* Content Column */
.hero-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-detail__title {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.15;
}

.hero-detail__original {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-detail__overview {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--red);
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 32px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

/* ============================================================
   WATCH PROVIDERS (streaming bar)
   ============================================================ */
.watch-providers {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 24px;
}

.watch-providers__header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--dark4);
}
.watch-providers__header i,
.watch-providers__header svg { color: var(--red); }

.watch-providers__country {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--dark3);
  border: 1px solid var(--dark4);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.watch-providers__group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.watch-providers__group + .watch-providers__group {
  border-top: 1px solid var(--dark4);
}

.watch-providers__type {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 72px;
  flex-shrink: 0;
}

.watch-providers__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.watch-provider {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.25s;
  position: relative;
}
.watch-provider:hover {
  border-color: var(--red);
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.25);
  z-index: 2;
}
.watch-provider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.watch-providers__footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--dark4);
}
.watch-providers__footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--muted);
  transition: color 0.2s;
}
.watch-providers__footer a:hover { color: var(--text); }
.watch-providers__footer img {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

/* Keywords cloud */
.keywords-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.keyword-tag {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--dark3);
  border: 1px solid var(--dark4);
  padding: 5px 14px;
  border-radius: 20px;
  transition: all 0.2s;
  cursor: pointer;
}
.keyword-tag:hover {
  color: var(--red);
  border-color: var(--red);
  background: rgba(230, 57, 70, 0.08);
  transform: translateY(-1px);
}

/* ============================================================
   CASTING SECTION
   ============================================================ */
.casting-section {
  background: var(--dark);
  padding: 60px 0;
}
.casting-section .container {
  background: transparent;
  backdrop-filter: none;
  border: none;
  padding: 0 20px;
  margin-bottom: 0;
}

.casting-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.casting-tabs {
  display: flex;
  gap: 8px;
}
.casting-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--dark3);
  border: 1px solid var(--dark4);
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s;
}
.casting-tab:hover { border-color: var(--red); color: var(--white); }
.casting-tab.active {
  background: rgba(230,57,70,0.1);
  border-color: var(--red);
  color: var(--red);
}
.tab-count {
  background: var(--dark4);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.72rem;
}
.casting-tab.active .tab-count { background: rgba(230,57,70,0.2); }

.casting-panel { display: none; }
.casting-panel.active { display: block; }

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

.cast-card-premium {
  background: var(--dark2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--dark4);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.cast-card-premium:hover {
  transform: translateY(-6px);
  border-color: var(--red);
  box-shadow: 0 8px 30px rgba(230, 57, 70, 0.15);
}

.cast-card-premium__img {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--dark3);
}
.cast-card-premium__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.cast-card-premium:hover .cast-card-premium__img img { transform: scale(1.08); }

.cast-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--dark3); color: var(--dark5);
}

.cast-rank {
  position: absolute; top: 8px; left: 8px;
  font-size: 1.2rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.cast-card-premium__overlay {
  position: absolute; inset: 0;
  background: rgba(230,57,70,0.0);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
  opacity: 0;
}
.cast-card-premium:hover .cast-card-premium__overlay {
  background: rgba(230,57,70,0.15);
  opacity: 1;
}
.cast-overlay-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
}

.cast-card-premium__body { padding: 12px; flex: 1; }
.cast-card-premium__name {
  font-weight: 700; color: var(--white); font-size: 0.85rem;
  margin-bottom: 4px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cast-card-premium__role {
  font-size: 0.75rem; color: var(--muted);
  display: flex; align-items: center; gap: 4px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

/* Crew List */
.crew-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}

.crew-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--dark2);
  border: 1px solid var(--dark4);
  border-radius: var(--radius-sm);
  transition: all 0.25s;
}
.crew-row:hover {
  background: var(--dark3);
  border-color: var(--red);
}

.crew-row__img {
  width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--dark3);
}
.crew-row__img img { width: 100%; height: 100%; object-fit: cover; }
.crew-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--dark5);
}

.crew-row__info { min-width: 0; flex: 1; }
.crew-row__name { font-weight: 700; font-size: 0.88rem; color: var(--white); }
.crew-row__role { font-size: 0.78rem; color: var(--muted); }
.crew-row__arrow { color: var(--dark5); transition: color 0.2s; }
.crew-row:hover .crew-row__arrow { color: var(--red); }

/* ============================================================
   TECH GRID
   ============================================================ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  background: transparent;
  backdrop-filter: none;
  border: none;
  padding: 0;
  margin-bottom: 0;
}

.tech-block {
  background: var(--dark2);
  border: 1px solid var(--dark4);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.25s;
}
.tech-block:hover { border-color: var(--red); transform: translateY(-3px); }

.tech-block__icon { font-size: 1.6rem; margin-bottom: 10px; }
.tech-block__label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; margin-bottom: 6px; }
.tech-block__value { font-size: 1rem; color: var(--white); font-weight: 700; }

/* ============================================================
   TRAILER PLAYER (inline)
   ============================================================ */
.trailer-player {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--glass-border);
}
.trailer-player__embed {
  position: relative;
  padding-bottom: 56.25%;
  background: var(--dark3);
}
.trailer-player__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.trailer-player__thumb {
  position: absolute;
  inset: 0;
  cursor: pointer;
}
.trailer-player__thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.trailer-player__bigplay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: none; border: none; cursor: pointer;
  transition: transform 0.3s;
}
.trailer-player__thumb:hover .trailer-player__bigplay { transform: translate(-50%, -50%) scale(1.1); }

.trailer-player__badges {
  position: absolute;
  bottom: 20px; left: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.trailer-player__badge {
  background: rgba(230,57,70,0.9);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  backdrop-filter: blur(8px);
}
.trailer-player__lang {
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.78rem;
  backdrop-filter: blur(8px);
}

/* Video categories */
.video-category {
  margin-top: 32px;
}
.video-category__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--dark4);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.video-card {
  background: var(--dark2);
  border: 1px solid var(--dark4);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s;
}
.video-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(230,57,70,0.1);
}

.video-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--dark3);
}
.video-card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.video-card:hover .video-card__thumb img { transform: scale(1.06); }

.video-card__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(230,57,70,0.85);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 4px 16px rgba(230,57,70,0.4);
}
.video-card:hover .video-card__play { opacity: 1; }

.video-card__lang {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
}

.video-card__info { padding: 10px 12px; }
.video-card__name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   YOUTUBE MODAL
   ============================================================ */
.yt-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.yt-modal.open { opacity: 1; visibility: visible; }

.yt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}
.yt-modal__box {
  position: relative;
  width: 90vw;
  max-width: 900px;
  background: var(--dark2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--dark4);
  transform: scale(0.95);
  transition: transform 0.3s;
}
.yt-modal.open .yt-modal__box { transform: scale(1); }

.yt-modal__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  background: var(--dark3);
  border-bottom: 1px solid var(--dark4);
}
.yt-modal__title { font-weight: 700; color: var(--white); font-size: 0.9rem; }
.yt-modal__close {
  background: none; border: none; color: var(--muted); cursor: pointer;
  padding: 4px; border-radius: 4px; transition: all 0.2s;
}
.yt-modal__close:hover { color: var(--red); background: var(--dark4); }

.yt-modal__player {
  position: relative;
  padding-bottom: 56.25%;
}
.yt-modal__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ============================================================
   CATALOGUE PAGE
   ============================================================ */
.catalogue-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.search-form-catalogue { flex-shrink: 0; }
.search-wrap {
  display: flex;
  background: var(--dark2);
  border: 1px solid var(--dark4);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.search-wrap:focus-within { border-color: var(--red); }
.search-wrap input {
  background: transparent; border: none; padding: 12px 16px; color: var(--white);
  font-family: inherit; font-size: 0.9rem; width: 200px; outline: none;
}
.search-wrap input::placeholder { color: var(--muted); }
.search-wrap button {
  background: var(--red); border: none; padding: 12px 16px; color: #fff; cursor: pointer;
  transition: background 0.2s;
}
.search-wrap button:hover { background: #C42F3C; }

.catalogue-filters {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.genre-pill {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--dark2);
  border: 1px solid var(--dark4);
  color: var(--text);
  transition: all 0.2s;
  white-space: nowrap;
}
.genre-pill:hover { border-color: var(--red); color: var(--white); }
.genre-pill.active { background: rgba(230,57,70,0.15); border-color: var(--red); color: var(--red); }

.catalogue-sort { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sort-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.sort-pill {
  padding: 6px 14px; border-radius: 6px; font-size: 0.78rem; font-weight: 700;
  background: var(--dark3); border: 1px solid transparent; color: var(--muted);
  transition: all 0.2s;
}
.sort-pill:hover { color: var(--white); }
.sort-pill.active { background: var(--dark4); color: var(--white); border-color: var(--dark5); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 48px;
  padding-bottom: 24px;
}
.pagination a, .pagination span {
  min-width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-weight: 700; font-size: 0.9rem;
  transition: all 0.2s;
}
.pagination a {
  background: var(--dark2); border: 1px solid var(--dark4); color: var(--text);
}
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination span.current {
  background: var(--red); color: #fff; border: 1px solid var(--red);
}

/* ============================================================
   PERSON PAGE
   ============================================================ */
.person-page {
  padding-top: var(--nav-h);
  min-height: 100vh;
  background: var(--dark);
}

.hero-person {
  background: linear-gradient(180deg, var(--dark3) 0%, var(--dark) 100%);
  padding: 48px 0 60px;
}

.person-header {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

/* Sidebar: poster + stats */
.person-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.person-poster {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--glass-border);
}
.person-poster img { width: 100%; height: auto; display: block; }

.poster-placeholder {
  width: 100%; aspect-ratio: 2/3; display: flex; align-items: center; justify-content: center;
  background: var(--dark3); color: var(--dark5); border-radius: var(--radius);
}

/* Quick stats */
.person-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.person-stat {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
}
.person-stat__value {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.person-stat__label {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Info column */
.person-info__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.person-info h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  margin-bottom: 8px;
}

.person-aliases {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
  font-style: italic;
}

/* Info cards grid */
.person-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.person-info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--dark2);
  border: 1px solid var(--dark4);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.person-info-card__icon { color: var(--red); flex-shrink: 0; }
.person-info-card__label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }
.person-info-card__value { font-size: 0.88rem; color: var(--white); font-weight: 600; }

/* Notable roles */
.person-notable { margin-bottom: 24px; }
.person-notable h3 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.person-notable__list { display: flex; flex-wrap: wrap; gap: 8px; }
.person-notable__item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--dark2);
  border: 1px solid var(--dark4);
  border-radius: 20px;
  padding: 6px 14px;
  transition: all 0.2s;
}
.person-notable__item:hover { border-color: var(--red); background: rgba(230,57,70,0.05); }
.person-notable__name { font-size: 0.82rem; font-weight: 700; color: var(--white); }
.person-notable__char { font-size: 0.75rem; color: var(--muted); }
.person-notable__char::before { content: '·'; margin-right: 4px; }

/* Biography */
.biography {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px;
  border-left: 4px solid var(--red);
}
.biography h2 { font-size: 1.2rem; margin-bottom: 12px; }
.biography p { line-height: 1.75; color: var(--text); font-size: 0.95rem; }
.biography--empty { border-left-color: var(--dark4); }
.biography--empty p { font-style: italic; color: var(--muted); margin-bottom: 0; }

.biography__fallback-notice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--orange);
  background: rgba(244,162,97,0.1);
  border: 1px solid rgba(244,162,97,0.2);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px !important;
  font-weight: 600;
}

.biography__text { line-height: 1.8; color: var(--text); font-size: 0.95rem; }

/* Gallery */
.person-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.person-gallery__item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--dark3);
  border: 1px solid var(--dark4);
  aspect-ratio: 2/3;
  transition: all 0.3s;
}
.person-gallery__item:hover { border-color: var(--red); transform: scale(1.03); }
.person-gallery__item img { width: 100%; height: 100%; object-fit: cover; }

/* Credits Grid */
.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.credit-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--dark3);
  border: 1px solid var(--dark4);
  border-radius: var(--radius-sm);
  padding: 12px;
  transition: all 0.25s;
}
.credit-card:hover {
  border-color: var(--red);
  background: var(--dark4);
  transform: translateX(4px);
}

.credit-poster {
  width: 56px; height: 80px; flex-shrink: 0;
  border-radius: 6px; overflow: hidden; background: var(--dark4);
}
.credit-poster img { width: 100%; height: 100%; object-fit: cover; }

.no-poster-mini {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; background: var(--dark4); color: var(--muted);
}

.credit-content { min-width: 0; }
.credit-content h3 {
  font-size: 0.88rem; font-weight: 700; color: var(--white); margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.credit-content .role { font-size: 0.78rem; color: var(--muted); margin-bottom: 2px; }
.credit-content .year { font-size: 0.75rem; color: var(--red); font-weight: 700; }

/* ============================================================
   FAQ (definition page)
   ============================================================ */
.faq-item {
  background: var(--dark2);
  border: 1px solid var(--dark4);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 700;
  color: var(--white);
  transition: background 0.2s;
}
.faq-question:hover { background: var(--dark3); }
.faq-toggle {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--dark4); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem; flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 20px 20px;
}
.faq-answer p { color: var(--text); line-height: 1.7; font-size: 0.95rem; }

/* ============================================================
   GLASSMORPHISM PANELS (generic)
   ============================================================ */
.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page { padding-top: var(--nav-h); min-height: 100vh; background: var(--dark); }

.contact-hero {
  background: linear-gradient(180deg, var(--dark3) 0%, var(--dark) 100%);
  padding: 48px 0 60px;
}
.contact-hero__content { max-width: 600px; }
.contact-hero__content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 12px;
  color: var(--white);
}
.contact-hero__content p { color: var(--text); font-size: 1.05rem; margin-bottom: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* Form wrapper */
.contact-form-wrap {
  background: var(--dark2);
  border: 1px solid var(--dark4);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-form { display: flex; flex-direction: column; gap: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
  -webkit-appearance: none;
  appearance: none;
  background: var(--dark) !important;
  border: 2px solid var(--dark4);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--white) !important;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238E8E9F' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  padding-right: 44px;
}
.form-group select option { background: var(--dark2); color: var(--white); }

.form-group textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.contact-form .btn-primary {
  align-self: flex-start;
  padding: 16px 36px;
  font-size: 0.95rem;
}

/* Success */
.contact-success {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  text-align: center; padding: 60px 24px;
}
.contact-success p {
  color: var(--green); font-weight: 700; font-size: 1.15rem;
  margin-bottom: 0;
}

/* Error */
.contact-error {
  background: rgba(230,57,70,0.08);
  border: 1px solid rgba(230,57,70,0.25);
  border-left: 3px solid var(--red);
  color: var(--red);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Sidebar */
.contact-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.contact-sidebar h3 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.contact-info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--dark2);
  border: 1px solid var(--dark4);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.contact-info-card:hover { border-color: var(--red); }
.contact-info-card__icon { flex-shrink: 0; }
.contact-info-card__label {
  font-size: 0.7rem; color: var(--muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.contact-info-card__value { font-size: 0.95rem; color: var(--white); font-weight: 600; }
a.contact-info-card__value { transition: color 0.2s; }
a.contact-info-card__value:hover { color: var(--red); }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px; }
  .contact-form .btn-primary { width: 100%; justify-content: center; align-self: stretch; }
  .contact-sidebar { position: static; }
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark2);
  border-top: 1px solid var(--dark4);
  padding: 60px 0 30px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}
.footer__title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 16px;
}
.footer__links li { margin-bottom: 10px; }
.footer__links a { color: var(--muted); font-size: 0.9rem; transition: color 0.2s; }
.footer__links a:hover { color: var(--red); }

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

/* Tablet landscape */
@media (max-width: 1024px) {
  .hero-detail__inner {
    grid-template-columns: 260px 1fr;
    gap: 32px;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .hero-detail__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-detail__sidebar {
    position: static;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
  }
  .hero-detail__poster {
    grid-row: 1 / -1;
    align-self: start;
  }
  .person-header {
    grid-template-columns: 200px 1fr;
    gap: 28px;
  }
  .person-sidebar { position: static; }
  .person-info-grid { grid-template-columns: 1fr 1fr; }
  .crew-list {
    grid-template-columns: 1fr;
  }
}

/* Mobile large */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    right: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-h));
    background: var(--dark);
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0;
    gap: 0 !important;
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 999;
    -webkit-overflow-scrolling: touch;
  }
  .nav__links.open { right: 0; }
  .nav__links li { width: 100%; }

  /* Main nav links */
  .nav__links > li > a {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    border-bottom: 1px solid var(--dark3);
  }
  .nav__links > li > a::after { display: none; }
  .nav__links > li > a:hover,
  .nav__links > li > a.active { color: var(--red); background: var(--dark2); }

  /* Dropdown triggers */
  .nav__dropdown { border-bottom: 1px solid var(--dark3); }
  .nav__dropdown-trigger {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.05rem;
    color: var(--white);
    justify-content: space-between;
  }
  .nav__dropdown-trigger .chevron-icon { transition: transform 0.3s; }
  .nav__dropdown.open .nav__dropdown-trigger .chevron-icon { transform: rotate(180deg); }
  .nav__dropdown.open .nav__dropdown-trigger { color: var(--red); background: var(--dark2); }

  /* Dropdown menus inside mobile */
  .nav__dropdown-menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none;
    background: var(--dark2);
    border: none;
    border-radius: 0;
    min-width: 100%;
    padding: 8px 0;
    display: none;
    max-height: 50vh;
    overflow-y: auto;
  }
  .nav__dropdown.open .nav__dropdown-menu { display: block; }
  .nav__dropdown-menu li { border: none; }
  .nav__dropdown-menu a {
    padding: 12px 24px 12px 40px;
    font-size: 0.95rem;
    color: var(--text);
    border-bottom: none;
  }
  .nav__dropdown-menu a:hover { background: var(--dark3); color: var(--white); }
  .dropdown-section-title { padding: 10px 24px 4px 24px; }
  .dropdown-divider { margin: 4px 24px; }

  /* CTA full width at bottom */
  .nav__links > li > .nav__cta {
    margin: 16px 24px;
    padding: 14px;
    text-align: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    width: calc(100% - 48px);
  }

  .nav__burger { display: flex; align-items: center; justify-content: center; }

  /* Search in nav actions */
  .nav__search-inline { width: 36px; padding: 0 0 0 10px; overflow: hidden; }
  .nav__search-inline:focus-within { width: 180px; padding: 0 4px 0 12px; }
  .nav__search-inline input { opacity: 0; }
  .nav__search-inline:focus-within input { opacity: 1; }

  .hero { min-height: 75vh; padding: 80px 0 60px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3.2rem); }

  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }

  .hero-detail { padding-top: calc(var(--nav-h) + 24px); }
  .hero-detail__inner { grid-template-columns: 1fr; }
  .hero-detail__sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .hero-detail__poster {
    max-width: 180px;
    margin: 0 auto;
  }

  .detail-bg { height: 400px; }

  .detail-actions { flex-direction: column; }
  .detail-actions .btn { width: 100%; justify-content: center; }

  .watch-providers__group { flex-direction: column; align-items: flex-start; gap: 8px; }
  .watch-providers__type { min-width: auto; }
  .watch-provider { width: 36px; height: 36px; }

  .cast-grid-premium {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
  }

  .tech-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }

  .person-header {
    grid-template-columns: 1fr;
  }
  .person-sidebar {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    align-items: start;
  }
  .person-poster { grid-row: 1 / 2; }
  .person-quick-stats {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: 1fr;
    align-self: center;
  }
  .person-info-grid { grid-template-columns: 1fr 1fr; }
  .person-gallery { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }

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

  .catalogue-header { flex-direction: column; }
  .search-wrap input { width: 100%; }
  .search-form-catalogue { width: 100%; }
  .search-wrap { width: 100%; }

  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }

  .footer__grid { grid-template-columns: 1fr; gap: 24px; }

  .def-box { padding: 24px; }
  .def-box__term { font-size: 2.2rem; }

  .section { padding: 60px 0; }
}

/* Mobile small */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero { min-height: 70vh; padding: 70px 0 50px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__scroll { display: none; }

  .hero-detail__poster {
    max-width: 150px;
  }
  .hero-detail__overview { padding: 20px; font-size: 0.95rem; }
  .hero-detail__title { font-size: 1.5rem; }

  .cast-grid-premium { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cast-card-premium__body { padding: 8px; }
  .cast-card-premium__name { font-size: 0.75rem; }
  .cast-card-premium__role { display: none; }

  .tech-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tech-block { padding: 16px; }
  .tech-block__icon { font-size: 1.2rem; }

  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .oav-card__info { padding: 12px; }
  .oav-card__title { font-size: 0.82rem; }

  .genre-pills { gap: 6px; }
  .genre-pill { padding: 6px 12px; font-size: 0.75rem; }

  .btn { padding: 12px 20px; font-size: 0.85rem; }

  .yt-modal__box { width: 96vw; }

  .compare-table { font-size: 0.85rem; }
  .compare-table th, .compare-table td { padding: 12px; }

  .person-header { gap: 16px; }
  .person-sidebar {
    grid-template-columns: 140px 1fr;
    gap: 12px;
  }
  .person-info-grid { grid-template-columns: 1fr; }
  .person-notable__list { gap: 6px; }
  .person-notable__item { padding: 5px 10px; }
  .person-notable__char { display: none; }
  .person-gallery { grid-template-columns: repeat(3, 1fr); gap: 8px; }

  .credits-grid { gap: 8px; }
  .credit-card { padding: 10px; gap: 12px; }
}

/* Handle notch / safe areas */
@supports (padding: max(0px)) {
  .nav__inner { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
  .footer__bottom { padding-bottom: max(30px, env(safe-area-inset-bottom)); }
}
