/* ===== FONTS ===== */
/* Inter - loaded via <link> in HTML <head> for non-blocking render */

/* ===== CSS VARIABLES ===== */
:root {
  /* Spacing - UNIFIED across all pages */
  --padding-x-mobile: 20px;
  --padding-x-tablet: 32px;
  --padding-x-desktop: 40px;

  --padding-y-mobile: 32px;
  --padding-y-tablet: 32px;
  --padding-y-desktop: 40px;

  /* Container - UNIFIED 1200px */
  --container-max-width: 1200px;

  /* Colors - Figma Design System */
  --color-primary: #54af32;
  --color-primary-hover: #77da52;
  --color-black: #171717;
  --color-black-pure: #0a0a0a;
  --color-white: #ffffff;
  --color-gray-50: #fafafa;
  --color-gray-100: #f5f5f5;
  --color-gray-200: #e5e5e5;
  --color-gray-400: #a1a1a1;
  --color-gray-500: #737373;
  --color-gray-600: #525252;
  --color-gray: #666;
  --color-gray-light: #e5e5e5;
  --color-link: #001489;
  --color-link-footer: #9ddc7f;

  /* Typography - Figma */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --letter-spacing-label: 4.0496px;
  --letter-spacing-tight: -0.3125px;
  --letter-spacing-body: -0.1504px;
  --letter-spacing-button: 0.17px;
  --letter-spacing-wide: 0.05em;
  --letter-spacing-hero-title: -1.7px;
  --letter-spacing-hook: 0.04em;
  --letter-spacing-finder-title: 0.35px;

  /* Footer (always dark) */
  --footer-bg: #1f1f25;
  --footer-text: #a3a3a3;
  --footer-text-bright: #d4d4d4;
  --footer-text-dim: #737373;

  /* Theme-aware semantic tokens */
  --bg-page: var(--color-white);
  --bg-surface: var(--color-gray-50);
  --bg-surface-hover: var(--color-gray-100);
  --bg-elevated: var(--color-white);
  --bg-input: var(--color-white);

  --text-primary: var(--color-black);
  --text-secondary: #666;
  --text-tertiary: #999;
  --text-muted: #444;

  --border-default: #e0e0e0;
  --border-light: var(--color-gray-light);
  --border-input: #e5e5e5;
  --border-focus: #0a0a0a;

  --text-faded-35: rgba(10, 10, 10, 0.35);
  --text-faded-40: rgba(10, 10, 10, 0.4);
  --text-faded-50: rgba(10, 10, 10, 0.5);
  --text-faded-70: rgba(10, 10, 10, 0.7);
  --border-faded-20: rgba(10, 10, 10, 0.2);
  --border-faded-40: rgba(10, 10, 10, 0.4);
  --bg-faded-80: rgba(10, 10, 10, 0.8);

  --bg-pill: rgba(0, 0, 0, 0.05);
  --bg-pill-hover: rgba(0, 0, 0, 0.08);
  --shadow-subtle: rgba(0, 0, 0, 0.2);
  --bg-synopsis-fade: var(--color-gray-50);
  --bg-scroll-fade: white;
  --bg-slider-track: #ddd;
  --bg-slider-tick: #ccc;
  --bg-slider-tick-even: #999;
  --bg-photo-placeholder: #d4d4d4;
  --bg-photo-empty: #e5e5e5;
  --bg-shared-header: #fefefe;
  --border-shared-header: #e8e8e8;
  --text-nav: #6b6b6b;
}

/* === DARK THEME === */
[data-theme='dark'] {
  --bg-page: #1f1f25;
  --bg-surface: var(--bg-page);
  --bg-surface-hover: rgba(255, 255, 255, 0.04);
  --bg-elevated: var(--bg-page);
  --bg-input: var(--bg-page);

  --text-primary: #e5e5e5;
  --text-secondary: #a3a3a3;
  --text-tertiary: #737373;
  --text-muted: #a3a3a3;

  --border-default: #4a4a52;
  --border-light: #3e3e46;
  --border-input: #3e3e46;
  --border-focus: #e5e5e5;

  --text-faded-35: rgba(245, 245, 245, 0.35);
  --text-faded-40: rgba(245, 245, 245, 0.4);
  --text-faded-50: rgba(245, 245, 245, 0.5);
  --text-faded-70: rgba(245, 245, 245, 0.7);
  --border-faded-20: rgba(245, 245, 245, 0.2);
  --border-faded-40: rgba(245, 245, 245, 0.4);
  --bg-faded-80: rgba(245, 245, 245, 0.8);

  --bg-pill: rgba(255, 255, 255, 0.08);
  --bg-pill-hover: rgba(255, 255, 255, 0.12);
  --shadow-subtle: rgba(0, 0, 0, 0.5);
  --bg-synopsis-fade: var(--bg-page);
  --bg-scroll-fade: var(--bg-page);
  --bg-slider-track: #3e3e46;
  --bg-slider-tick: #4a4a52;
  --bg-slider-tick-even: #66666e;
  --bg-photo-placeholder: #3a3a42;
  --bg-photo-empty: #3a3a42;
  --bg-shared-header: var(--bg-page);
  --border-shared-header: #35353c;
  --text-nav: #a3a3a3;

  /* Override base color tokens */
  --color-black: #e5e5e5;
  --color-black-pure: #e5e5e5;
  --color-white: var(--bg-page);
  --color-gray-50: var(--bg-page);
  --color-gray-100: var(--bg-page);
  --color-gray-200: #3e3e46;
  --color-gray-400: #737373;
  --color-gray-500: #a3a3a3;
  --color-gray-600: #d4d4d4;
  --color-gray: #a3a3a3;
  --color-gray-light: #35353c;
  --color-link: #6b8aff;

  color-scheme: dark;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  /* iOS touch optimization - rimuove flash grigio */
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Smooth scroll mobile */
  -webkit-overflow-scrolling: touch;
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-black);
  background: var(--color-white);
}

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 10000;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

/* Screen reader only (a11y) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus indicators (a11y - WCAG 2.2) */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline-offset: 4px;
}

/* ===== CONTAINER UTILITY ===== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-left: var(--padding-x-mobile);
  padding-right: var(--padding-x-mobile);
  width: 100%;
}

/* ===== TRAILER OVERLAY ===== */
.trailer-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.trailer-overlay.active {
  display: flex;
  opacity: 1;
}

.trailer-overlay-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--color-accent, rgba(255, 255, 255, 0.6));
  cursor: pointer;
  z-index: 10001;
  transition:
    color 0.2s,
    transform 0.2s;
}

.trailer-overlay-close:hover {
  color: var(--color-accent-hover, rgba(255, 255, 255, 1));
  transform: scale(1.1);
}

.trailer-overlay-content {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 20px;
  /* Permette click passthrough all'overlay */
  pointer-events: none;
}

.trailer-overlay-content iframe {
  width: 100%;
  height: 100%;
  max-width: 177.78vh; /* 16:9 aspect ratio based on height */
  max-height: 56.25vw; /* 16:9 aspect ratio based on width */
  aspect-ratio: 16 / 9;
  /* Riabilita interazione sull'iframe */
  pointer-events: auto;
}

/* Mobile adjustments for trailer overlay */
@media (max-width: 767px) {
  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero-buttons .cta-button {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 12px;
  }

  .trailer-overlay-close {
    top: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
  }

  .trailer-overlay-close svg {
    width: 48px;
    height: 48px;
  }

  .trailer-overlay-content {
    padding: 50px 10px 10px;
  }
}

/* ===== CINEMA FINDER SUPPORT (geo, distances, etc.) ===== */

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.source-tag {
  font-size: 10px;
  color: var(--color-gray);
  opacity: 0.7;
  font-weight: 500;
  margin-left: 4px;
  display: inline; /* Always visible */
}

.no-theaters {
  padding: 40px 20px;
  text-align: center;
  color: var(--color-gray);
}

/* Skeleton state */
.skeleton-disabled {
  pointer-events: none;
}

/* Search bar skeleton: shimmer matching date pills and cinema rows */
.skeleton-disabled .search-bar-v3 {
  background: linear-gradient(
    90deg,
    var(--border-default) 0%,
    var(--bg-surface-hover) 40%,
    var(--border-default) 80%
  );
  background-size: 200% 100%;
  animation: skel-shimmer 1.8s ease-in-out infinite;
  border-color: transparent;
}

.skeleton-disabled .search-bar-v3 > * {
  visibility: hidden;
}

.skeleton-row {
  pointer-events: none;
}

@keyframes skel-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skel-bar {
  background: linear-gradient(
    90deg,
    var(--border-default) 0%,
    var(--bg-surface-hover) 40%,
    var(--border-default) 80%
  );
  background-size: 200% 100%;
  border-radius: 4px;
  animation: skel-shimmer 1.8s ease-in-out infinite;
}

.skel-pill {
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.skel-times {
  display: flex;
  gap: 8px;
}

.skel-time {
  width: 52px;
  height: 32px;
  border-radius: 6px;
}

/* No results message */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--color-gray);
}

.no-results p {
  margin-bottom: 16px;
}

.no-results-hint {
  font-size: 12px;
  color: var(--text-tertiary);
  font-style: italic;
}

.no-results-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

.btn-suggestion {
  padding: 8px 16px;
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  transition:
    background 0.2s,
    color 0.2s;
}

.btn-suggestion:hover {
  background: var(--color-primary);
  color: var(--bg-page);
}

.btn-reset {
  padding: 10px 20px;
  background: transparent;
  color: var(--color-black);
  border: 1px solid var(--border-default);
  border-radius: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-button);
  transition:
    background 0.2s,
    border-color 0.2s;
}

.btn-reset:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-focus);
}

/* ===== SHARED HEADER ===== */
#site-header {
  background: var(--bg-shared-header);
  border-bottom: 1px solid var(--border-shared-header);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

#site-header .header-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-left: var(--padding-x-mobile);
  padding-right: var(--padding-x-mobile);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#site-header .header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

#site-header .header-logo img {
  height: 19px; /* 32px * 0.6 = ~19px (ridotto 40%) */
  width: auto;
  filter: brightness(0) saturate(100%); /* Logo nero */
}

#site-header .header-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

#site-header .header-nav a {
  color: var(--text-nav);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

#site-header .header-nav a:hover,
#site-header .header-nav a.active {
  color: var(--color-primary);
}

/* ===== SHARED FOOTER ===== */
#site-footer {
  background: var(--footer-bg);
  border-top: none;
  padding: 32px 0;
  font-size: 12px;
  color: var(--footer-text);
  /* Force light text on dark bg regardless of theme */
  --text-primary: #e5e5e5;
  --text-secondary: var(--footer-text);
  --text-tertiary: var(--footer-text-dim);
}

#site-footer .footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-left: var(--padding-x-mobile);
  padding-right: var(--padding-x-mobile);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

#site-footer .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
}

#site-footer .footer-logo img {
  height: 17px; /* 28px * 0.6 = ~17px (ridotto 40%) */
  width: auto;
  filter: brightness(0) saturate(100%) invert(1); /* Logo bianco su sfondo scuro */
}

#site-footer .footer-copy {
  color: var(--text-tertiary);
  font-size: 12px;
}

#site-footer .footer-credits {
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: var(--letter-spacing-wide);
}

@media (min-width: 768px) {
  #site-header .header-container {
    padding-left: var(--padding-x-tablet);
    padding-right: var(--padding-x-tablet);
  }

  #site-footer .footer-container {
    padding-left: var(--padding-x-tablet);
    padding-right: var(--padding-x-tablet);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  #site-footer .footer-links {
    order: 0;
  }
}

/* ===== RESPONSIVE - MOBILE (< 768px) ===== */
@media (max-width: 767px) {
}

/* ===== RESPONSIVE - TABLET (768px) ===== */
@media (min-width: 768px) {
  :root {
    --padding-x-mobile: var(--padding-x-tablet);
    --padding-y-mobile: var(--padding-y-tablet);
  }
}

/* ===== RESPONSIVE - DESKTOP (1024px) ===== */
@media (min-width: 1024px) {
  :root {
    --padding-x-mobile: var(--padding-x-desktop);
    --padding-y-mobile: var(--padding-y-desktop);
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================================================
   FIGMA REDESIGN - New Elegant Minimal Design
   ======================================================================== */

/* ==========================================================================
   HERO SECTION V2 - Clean Structure

   Layout:
   - Full viewport height with video background
   - Header (logo + social) at top, aligned to 1100px container
   - Content (title + buttons) at bottom-left, aligned to 1100px container
   ========================================================================== */

/* Base Container */
.hero-section {
  /* Protect from dark mode overrides — hero is always dark */
  --color-black: #171717;
  --color-black-pure: #0a0a0a;
  --color-white: #ffffff;
  position: relative;
  height: 100vh;
  height: 100dvh;
  background: var(--color-black);
  overflow: hidden;
}

/* ---------- Background Video ---------- */
.hero-section .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-section .hero-bg video {
  position: absolute;
  inset: calc(var(--video-offset-y, 0) * -1px) 0 0 0;
  width: 100%;
  height: calc(100% + var(--video-offset-y, 0) * 1px);
  object-fit: cover;
  transform: scale(calc(var(--video-zoom, 100) / 100));
  transform-origin: center;
  pointer-events: none;
}

/* Video switching: desktop by default */
.hero-section .hero-video-mobile {
  display: none;
}
.hero-section .hero-video-desktop {
  display: block;
}
.hero-section .hero-video-always {
  display: block !important;
}

/* ---------- Backdrop Image Fallback ---------- */
.hero-section .hero-bg .hero-backdrop-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ---------- Backdrop Carousel Crossfade ---------- */
.hero-section .hero-bg .hero-backdrop-slide {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-section .hero-bg .hero-backdrop-slide.hero-backdrop-active {
  opacity: 1;
}

/* ---------- Backdrop Thumbnails (desktop easter egg) ---------- */
.hero-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: absolute;
  right: 24px;
  top: 100px;
  bottom: 80px;
  z-index: 8;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 4px;
  pointer-events: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hero-thumbs::-webkit-scrollbar {
  display: none;
}

.hero-thumbs.hero-thumbs-visible {
  pointer-events: auto;
  cursor: grab;
}

.hero-thumb {
  width: 128px;
  height: 128px;
  min-height: 128px;
  border-radius: 8px;
  overflow: hidden;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.hero-thumbs.hero-thumbs-visible .hero-thumb {
  opacity: calc(0.45 * var(--scroll-fade, 1));
  transform: translateX(0);
}

.hero-thumbs.hero-thumbs-visible .hero-thumb.hero-thumb-active {
  opacity: var(--scroll-fade, 1);
}

.hero-thumb:hover {
  opacity: 0.8 !important;
}

.hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

@media (max-width: 767px) {
  .hero-thumbs {
    display: none !important;
  }
}

/* Mobile backdrop image: same style as backdrop-img, hidden on desktop */
.hero-section .hero-bg .hero-backdrop-mobile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: none;
}

/* Desktop-only backdrop: visible on desktop, hidden on mobile when mobile media exists */
.hero-section .hero-bg .hero-backdrop-desktop-only {
  display: block;
}

/* ---------- Gradient Overlay ---------- */
.hero-section .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: opacity 1s ease;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  transition: opacity 1s ease;
}

/* When video is present: bottom fade rises with video offset to cover letterbox */
.hero-section.has-video .hero-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.65) calc(27% + var(--video-offset-y, 0) * 1px),
    rgba(0, 0, 0, 0.15) calc(53% + var(--video-offset-y, 0) * 1px),
    transparent calc(73% + var(--video-offset-y, 0) * 1px)
  );
}

/* Cinema mode: overlay fully hidden (letterbox covered by .about sliding up) */
.hero-section.cinema-active .hero-overlay {
  opacity: 0;
}

/* Mobile: lighter top (social hidden), stronger bottom (smaller title) */
@media (max-width: 767px) {
  .hero-section .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.25) 40%,
      rgba(0, 0, 0, 0.75) 100%
    );
  }

  .hero-section.has-video .hero-overlay {
    background:
      linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, transparent 120px),
      linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.6) calc(27% + var(--video-offset-y, 0) * 1px),
        rgba(0, 0, 0, 0.1) calc(53% + var(--video-offset-y, 0) * 1px),
        transparent calc(73% + var(--video-offset-y, 0) * 1px)
      );
  }
}

/* Gradient fade from hero to page background */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--hero-fade-height, 30%);
  z-index: 2;
  background: linear-gradient(to bottom, transparent, var(--bg-page));
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero-section.cinema-active::after {
  opacity: 0;
}

/* ---------- Header (Top Bar) ---------- */
.hero-section .hero-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 84px;
  padding: 32px max(24px, calc((100vw - 1100px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Subtle top gradient to enhance header readability (mirrors hero bottom fade) */
.hero-section .hero-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.25) 40%,
    transparent 100%
  );
  pointer-events: none;
  z-index: -1;
}

.hero-section .hero-logo {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-label);
  color: var(--color-accent, rgba(255, 255, 255, 0.9));
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-section .hero-header.text-logo .hero-logo {
  background: linear-gradient(
    90deg,
    var(--color-accent, rgba(255, 255, 255, 0.9)) 0%,
    var(--color-accent, rgba(255, 255, 255, 0.9)) 35%,
    rgba(255, 255, 255, 1) 48%,
    rgba(255, 255, 255, 1) 52%,
    var(--color-accent, rgba(255, 255, 255, 0.9)) 65%,
    var(--color-accent, rgba(255, 255, 255, 0.9)) 100%
  );
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 2.5s ease-in-out 3 alternate;
  animation-delay: 0.5s;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
    text-shadow: none;
  }
  40% {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
  }
  50% {
    background-position: 50% 0;
    text-shadow:
      0 0 20px rgba(255, 255, 255, 0.45),
      0 0 40px rgba(255, 255, 255, 0.15);
  }
  60% {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
  }
  100% {
    background-position: 0% 0;
    text-shadow: none;
  }
}

.hero-section .hero-logo-img {
  max-width: 216px;
  max-height: 20px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.hero-section .hero-social {
  display: flex;
  gap: 24px;
  align-items: center;
}

.hero-section .hero-social a {
  color: var(--color-accent, rgba(255, 255, 255, 0.7));
  transition: color 0.2s;
}

.hero-section .hero-social a:hover {
  color: var(--color-accent-hover, #fff);
}

.hero-section .hero-social svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* ---------- Content (Bottom) ---------- */
.hero-section .hero-content-container {
  position: absolute;
  bottom: calc(80px + var(--video-offset-y, 0) * 1px);
  left: 0;
  right: 0;
  z-index: 5;
  padding: 0 max(24px, calc((100vw - 1100px) / 2));
}

.hero-section .hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.hero-section .hero-inner.center {
  align-items: center;
  text-align: center;
}

.hero-section .hero-inner.center .hero-title {
  align-items: center;
}

.hero-section .hero-inner.center .hero-buttons {
  justify-content: center;
}

/* Vertical center positioning */
.hero-section .hero-content-container.vcenter {
  bottom: auto;
  top: calc(50% - var(--video-offset-y, 0) * 0.5px);
  transform: translateY(-50%);
}

/* ---------- Title (Text or Logo Image) ---------- */
.hero-section .hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
}

.hero-section .hero-title span {
  font-family: var(--font-family);
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: var(--letter-spacing-hero-title);
  color: #fff;
  text-transform: uppercase;
}

.hero-section .hero-logo-title {
  width: 34vw;
  min-width: 336px;
  height: auto;
  object-fit: contain;
}

/* ---------- Buttons ---------- */
.hero-section .hero-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  width: 34vw;
  min-width: 336px;
  margin-top: 8px;
}

.hero-section .hero-buttons .btn-primary,
.hero-section .hero-buttons .btn-secondary {
  flex: 1;
}

.hero-hook {
  font-size: clamp(12px, 4.2vw, 18px);
  color: var(--color-accent, rgba(255, 255, 255, 0.85));
  margin: 0;
  letter-spacing: var(--letter-spacing-hook);
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-section .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  background: var(--color-accent, #fff);
  border: none;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-button);
  text-transform: uppercase;
  color: var(--color-accent-contrast, #000);
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.hero-section .btn-primary:hover {
  opacity: 0.9;
}

.hero-section .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  background: transparent;
  border: 1px solid var(--color-accent, rgba(255, 255, 255, 0.5));
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-button);
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s;
  white-space: nowrap;
}

.hero-section .btn-secondary:hover {
  border-color: var(--color-accent-hover, rgba(255, 255, 255, 0.8));
}

/* ---------- Comparison Slider (backdrop vs video, desktop only) ---------- */
.hero-comparison-backdrop {
  display: none;
}

@media (min-width: 1024px) {
  .hero-section.has-comparison .hero-comparison-backdrop {
    display: block;
  }

  .hero-section.has-comparison .hero-bg .hero-video-desktop {
    clip-path: inset(0 0 0 var(--comparison-clip, 70%));
    transition: clip-path 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .hero-section.has-comparison.dragging .hero-bg .hero-video-desktop {
    transition: none;
  }

  .hero-section.has-comparison.cinema-active .hero-bg .hero-video-desktop {
    clip-path: none;
  }

  .hero-comparison-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--comparison-split, 70%);
    width: 44px;
    margin-left: -22px;
    z-index: 9;
    cursor: ew-resize;
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .hero-section.has-comparison.dragging .hero-comparison-handle {
    transition: none;
  }

  .hero-section.has-comparison.cinema-active .hero-comparison-handle {
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.4s ease,
      left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .hero-comparison-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background: rgba(255, 255, 255, 0.5);
  }

  .hero-comparison-grip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    animation: comparison-hint 1.2s ease-in-out 2s 2;
  }

  .hero-comparison-grip svg {
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  }

  @keyframes comparison-hint {
    0%,
    100% {
      transform: translate(-50%, -50%) translateX(0);
    }
    25% {
      transform: translate(-50%, -50%) translateX(-12px);
    }
    75% {
      transform: translate(-50%, -50%) translateX(12px);
    }
  }
}

@media (max-width: 1023px) {
  .hero-comparison-handle {
    display: none;
  }
}

/* ===== PROMO BAR (fixed announcement bar) ===== */
.promo-bar {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-accent, var(--color-primary));
  padding: 8px 20px;
  text-align: center;
  font-size: var(--promo-bar-font-size, 14px);
  line-height: 1.4;
}
.promo-bar--top {
  top: 0;
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
}
.promo-bar--bottom {
  bottom: 0;
}

.promo-bar__inner {
  max-width: var(--container-max-width, 1200px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.promo-bar__cta--button {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  padding: 4px 14px;
  color: inherit;
  font-size: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.promo-bar__cta--button:hover {
  background: rgba(255, 255, 255, 0.35);
}

.promo-bar__cta--text {
  text-decoration: underline;
  color: inherit;
  font-size: inherit;
  white-space: nowrap;
}
.promo-bar__cta--text:hover {
  opacity: 0.8;
}

body.has-promo-bar-top {
  padding-top: var(--promo-bar-h, 40px);
}
body.has-promo-bar-top .hero-section {
  height: calc(100dvh - var(--promo-bar-h, 40px));
}

@media (max-width: 767px) {
  .promo-bar {
    padding: 6px 12px;
  }
  .promo-bar__inner {
    gap: 8px;
    flex-wrap: nowrap;
  }
  .promo-bar__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
}

/* ===== NEWS BANNER (single row: pill + text + CTA) ===== */
.news-banner {
  background: linear-gradient(135deg, rgba(255, 191, 0, 0.1) 0%, rgba(255, 191, 0, 0.04) 100%);
  border-top: 1px solid rgba(255, 191, 0, 0.06);
  border-bottom: 1px solid rgba(255, 191, 0, 0.12);
  padding: 12px var(--padding-x-desktop, 40px);
  position: relative;
  z-index: 2;
  animation: bannerFadeIn 0.6s ease both;
  animation-delay: 0.3s;
}

.news-banner__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}
.news-banner__track::-webkit-scrollbar {
  display: none;
}

.news-banner__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.news-banner__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 6px 0 2px;
}
.news-banner__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--text-faded-50, rgba(255, 255, 255, 0.3));
  cursor: pointer;
  transition: background 0.2s;
}
.news-banner__dot.active {
  background: var(--color-accent, rgba(255, 191, 0, 0.9));
}

.news-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Date pill — same style as day-selector pills */
.news-banner__pill {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.news-banner__pill .day-name {
  font-family: var(--font-family);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-accent, rgba(255, 191, 0, 0.8));
  margin-bottom: 1px;
}

.news-banner__pill .day-num {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
}

.news-banner__pill .day-month {
  font-family: var(--font-family);
  font-size: 9px;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--text-faded-50);
  margin-top: 1px;
}

.news-banner__text {
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  color: var(--text-primary);
}

.news-banner__link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  color: var(--color-accent, rgba(255, 191, 0, 0.9));
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition:
    color 0.2s,
    gap 0.2s;
}

.news-banner__link:hover {
  color: var(--color-accent-hover, rgba(255, 191, 0, 1));
  gap: 8px;
}

.news-banner__arrow {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.news-banner__link:hover .news-banner__arrow {
  transform: translateX(2px);
}

@keyframes bannerFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-theme='dark'] .news-banner {
  background: linear-gradient(135deg, rgba(255, 191, 0, 0.07) 0%, rgba(255, 191, 0, 0.02) 100%);
  border-top: 1px solid rgba(255, 191, 0, 0.04);
  border-bottom: 1px solid rgba(255, 191, 0, 0.08);
}

@media (max-width: 767px) {
  .news-banner {
    padding: 10px var(--padding-x-mobile);
  }

  .news-banner__inner {
    gap: 12px;
  }

  .news-banner__text {
    font-size: 13px;
    line-height: 18px;
  }

  .news-banner__link {
    font-size: 11px;
  }

  .news-banner__pill {
    padding: 5px 8px;
  }

  .news-banner__pill .day-num {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-banner {
    animation: none;
  }
}

/* ===== ABOUT SECTION ===== */
/* Mobile: horizontal carousel (scroll-snap) + cast row
   Desktop (768+): 3-col grid (poster | synopsis | cast) */

/* ---------- Container ---------- */
.about {
  background: var(--color-gray-50);
  padding: var(--padding-y-mobile) 0;
  position: relative;
  z-index: 2;
  margin-top: calc(var(--video-offset-y, 0) * -1px);
}

.about__inner {
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

/* ---------- Shared tab / label typography ---------- */
.about__label {
  display: none; /* shown by .about__cast override and desktop MQ */
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-label);
  color: var(--color-gray-400);
  text-transform: uppercase;
  margin: 0 0 16px;
}

/* ---------- Mobile carousel nav (scrollable tabs) ---------- */
.about__nav {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--color-gray-200);
  padding: 0 var(--padding-x-mobile);
  touch-action: pan-x;
  overscroll-behavior: contain;
}
.about__nav::-webkit-scrollbar {
  display: none;
}

.about__nav-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  touch-action: pan-x;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-label);
  text-transform: uppercase;
  color: var(--color-gray-400);
  background: none;
  border: none;
  padding: 10px 20px 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.about__nav-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

/* ---------- Slides container (mobile: flex row, desktop: contents) ---------- */
.about__slides {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-top: 24px; /* breathing room below nav */
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}
.about__slides::-webkit-scrollbar {
  display: none;
}

/* Each slide = full width, side padding matches cast */
.about__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  padding: 0 var(--padding-x-mobile);
  box-sizing: border-box;
}

/* Poster slide: same horizontal padding as other slides */
.about__slide[data-slide='poster'] {
  padding: 0 var(--padding-x-mobile);
}

.about__poster-trigger {
  all: unset;
  cursor: pointer;
  display: block;
  width: 100%;
}
.about__poster-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 0.5px solid var(--color-accent, transparent);
}

/* ---------- Synopsis ---------- */
.about__synopsis p {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-gray-600);
  margin: 0 0 12px;
}

/* Quick-data chips (year · runtime · genre) */
.about__quick-data {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--color-gray-400);
  margin: 12px 0 0;
}

/* Classification bollini */
.about__bollini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  align-items: center;
}
.about__bollini img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: contain;
  cursor: help;
}

/* ---------- Details list ---------- */
.about__details {
  display: flex;
  flex-direction: column;
}

.about__detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-gray-200);
}
.about__detail:last-child {
  border-bottom: none;
}

.about__detail-label {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--color-gray-400);
}
.about__detail-value {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--color-accent, var(--text-primary));
}

/* ---------- Awards list ---------- */
.about__awards-list {
  display: flex;
  flex-direction: column;
}

.about__award {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-gray-200);
}
.about__award:last-child {
  border-bottom: none;
}

.about__award-event {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--color-gray-400);
}
.about__award-category {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--color-accent, var(--text-primary));
}

/* ---------- Tab buttons (shared style: dtab + rtab) ---------- */
.about__dtabs,
.about__rtabs {
  display: none;
} /* shown via desktop MQ */

.about__dtab,
.about__rtab {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-label);
  color: var(--color-gray-400);
  text-transform: uppercase;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}
.about__dtab:hover,
.about__rtab:hover {
  color: var(--text-primary);
}
.about__dtab--active,
.about__rtab--active {
  color: var(--color-accent, var(--text-primary));
}

.about__dtab-divider,
.about__rtab-divider {
  width: 1px;
  height: 16px;
  background: var(--color-gray-400);
}

/* Desktop awards panel (inside cast sidebar) — hidden on mobile */
.about__awards-desktop {
  display: none;
}

/* ---------- Cast section (aside — hidden on mobile, visible on desktop) ---------- */
.about__cast {
  display: none;
}
.about__cast .about__label {
  display: block;
}

/* Right fade hint for horizontal scroll */
.about__cast::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 24px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to left, var(--bg-page), transparent);
}

.about__cast-list {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}
.about__cast-list::-webkit-scrollbar {
  display: none;
}

.about__person {
  flex: 0 0 auto;
  min-width: 80px;
  text-align: center;
}
.about__photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-photo-placeholder);
  object-fit: cover;
  margin: 0 auto 4px;
}
.about__photo--empty {
  background: var(--bg-photo-empty);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__photo--empty svg {
  width: 60%;
  height: 60%;
  opacity: 0.4;
}

.about__person-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about__name {
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--color-accent, var(--color-black));
  max-width: 70px;
  overflow-wrap: break-word;
  text-align: center;
}
.about__role {
  display: none;
}

/* ---------- Cast mobile list (same layout as desktop sidebar) ---------- */
.about__cast-mobile {
  display: flex;
  flex-direction: column;
  position: relative;
  max-height: 50vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-y: contain;
}
.about__cast-mobile::-webkit-scrollbar {
  display: none;
}
.about__cast-mobile::after {
  content: '';
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  flex-shrink: 0;
  background: linear-gradient(to bottom, transparent, var(--bg-page));
  pointer-events: none;
  z-index: 1;
}
.about__cast-mobile .about__person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-gray-200);
}
.about__cast-mobile .about__person:last-child {
  border-bottom: none;
}
.about__cast-mobile .about__photo {
  width: 44px;
  height: 44px;
  margin: 0;
  flex-shrink: 0;
}
.about__cast-mobile .about__person-info {
  align-items: flex-start;
  min-width: 0;
}
.about__cast-mobile .about__name {
  font-size: 14px;
  line-height: 20px;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.about__cast-mobile .about__role {
  display: block;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-gray-400);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Poster modal (fullscreen overlay) ---------- */
.poster-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.poster-modal.active {
  opacity: 1;
  visibility: visible;
}

.poster-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.2s,
    transform 0.2s;
}
.poster-modal__close:hover {
  color: #fff;
  transform: scale(1.1);
}

.poster-modal__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  touch-action: pinch-zoom;
}

/* ===== DESKTOP (768px+): 3-column grid ===== */
@media (min-width: 768px) {
  .about {
    padding: 60px var(--padding-x-mobile);
  }

  .about__nav {
    display: none;
  }

  .about__inner {
    display: grid;
    grid-template-columns: 260px 1fr 260px;
    grid-template-rows: auto auto 1fr;
    gap: 0 40px;
    align-items: start;
  }

  /* Flatten slides into grid children */
  .about__slides {
    display: contents;
  }

  /* Synopsis/Details tabs → col 2, row 1 */
  .about__dtabs {
    display: flex;
    align-items: center;
    gap: 12px;
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 16px;
  }

  /* Poster → col 1, all rows, with label */
  .about__slide[data-slide='poster'] {
    grid-column: 1;
    grid-row: 1 / -1;
    padding: 0;
  }
  .about__label--poster {
    display: block;
  }
  .about__poster-img {
    border-radius: 4px;
  }

  /* Synopsis → col 2, row 2+ */
  .about__slide[data-slide='synopsis'] {
    grid-column: 2;
    grid-row: 2 / -1;
    padding: 0;
  }
  .about__synopsis p {
    font-size: 16px;
    line-height: 24px;
    margin: 0 0 16px;
  }
  .about__detail-value,
  .about__award-category {
    font-size: 16px;
    line-height: 24px;
  }
  .about__quick-data {
    display: none;
  }

  /* Details → col 2, same area (toggled via JS) */
  .about__slide[data-slide='details'] {
    grid-column: 2;
    grid-row: 2 / -1;
    padding: 0;
    display: none;
  }

  /* Awards + Cast slides hidden on desktop (shown inside cast sidebar) */
  .about__slide[data-slide='awards'] {
    display: none;
  }
  .about__slide[data-slide='cast'] {
    display: none;
  }

  /* Cast sidebar → col 3, all rows */
  .about__cast {
    display: flex;
    flex-direction: column;
    grid-column: 3;
    grid-row: 1 / -1;
    margin-top: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
  }
  /* Cast/Awards tabs in sidebar */
  .about__rtabs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-shrink: 0;
  }
  .about__awards-desktop {
    display: block;
  }

  /* Cast list → vertical layout */
  .about__cast-list {
    flex-direction: column;
    gap: 0;
    overflow-x: visible;
    overflow-y: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    max-height: 60vh;
  }
  .about__cast-list::-webkit-scrollbar {
    display: none;
  }
  .about__person {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    text-align: left;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-gray-200);
  }
  .about__person:last-child {
    border-bottom: none;
  }

  .about__photo {
    width: 48px;
    height: 48px;
    margin: 0;
    flex-shrink: 0;
  }
  .about__person-info {
    align-items: flex-start;
  }
  .about__name {
    font-size: 16px;
    line-height: 24px;
    max-width: none;
  }
  .about__role {
    display: block;
    font-size: 14px;
    line-height: 20px;
    color: var(--color-gray-400);
  }

  .about__label {
    display: block;
  }
}

/* Larger screens: wider poster + cast columns */
@media (min-width: 1024px) {
  .about__inner {
    grid-template-columns: 312px 1fr 280px;
    gap: 0 48px;
  }
}

/* ===== NEW CINEMA FINDER SECTION - Figma Style ===== */
.cinema-finder {
  background: var(--color-white);
  padding: 60px var(--padding-x-mobile) 60px;
  min-height: 70vh;
}

.cinema-finder .finder-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Finder Header */
.cinema-finder .finder-header {
  text-align: center;
  margin-bottom: 32px;
}

.finder-hook {
  font-size: 18px;
  color: var(--color-accent, var(--text-secondary));
  text-align: center;
  text-transform: uppercase;
  margin-top: 8px;
  margin-bottom: 24px;
}

.cinema-finder .finder-title {
  font-family: var(--font-family);
  font-size: 25px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-black);
  margin: 0 0 32px;
}

/* Search Input */
.cinema-finder .search-container {
  max-width: 576px;
  margin: 0 auto;
  position: relative;
}

/* Cinema List */
.cinema-finder .cinema-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 400px;
}

/* Empty state when no cinemas match filter */
.cinema-finder .no-results {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: var(--text-faded-40);
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cinema-finder .no-results.visible {
  opacity: 1;
}

.cinema-finder .no-results-content {
  text-align: center;
}

.cinema-finder .no-results-text {
  font-size: 14px;
  color: var(--text-tertiary);
  margin: 0 auto;
  max-width: 576px;
  padding: 16px 0;
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}

.no-results-separator {
  margin: 0 8px;
  opacity: 0.3;
}

.no-results-notify-trigger {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: var(--color-accent, var(--text-secondary));
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notify-collapsible {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease,
    margin-top 0.3s ease;
  margin-top: 0;
}

.notify-collapsible.open {
  max-height: 200px;
  opacity: 1;
  margin-top: 20px;
}

.cinema-finder .notify-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.cinema-finder .notify-form input[type='email'] {
  padding: 12px 16px;
  font-size: 16px; /* 16px prevents iOS auto-zoom */
  border: 1px solid var(--border-default);
  border-radius: 4px;
  width: 240px;
  max-width: 100%;
  min-width: 0;
  flex: 1;
  outline: none;
  background: var(--bg-input);
  color: var(--text-primary);
}

.cinema-finder .notify-form input[type='email']:focus {
  border-color: var(--border-focus);
}

.cinema-finder .notify-form input[type='email']::placeholder {
  color: var(--text-tertiary);
}

.cinema-finder .notify-form button {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  background: var(--text-primary);
  color: var(--bg-page);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.cinema-finder .notify-form button:hover {
  opacity: 0.8;
}

.cinema-finder .notify-status {
  margin-top: 12px;
  font-size: 12px;
}

.cinema-finder .privacy-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.cinema-finder .privacy-checkbox input[type='checkbox'] {
  width: 14px;
  height: 14px;
  accent-color: var(--text-primary);
}

.cinema-finder .privacy-checkbox span {
  line-height: 1.4;
}

.cinema-finder .privacy-checkbox a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.cinema-finder .privacy-checkbox a:hover {
  color: var(--text-primary);
}

/* ===== NOTIFY BAR (inline after search) ===== */
.notify-bar {
  margin-top: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 16px 20px;
  max-width: 576px;
  margin-left: auto;
  margin-right: auto;
}

.notify-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.notify-bar-text {
  color: var(--text-secondary);
  font-size: 14px;
}

.notify-bar-sep {
  opacity: 0.25;
  color: var(--text-tertiary);
}

.notify-bar-trigger {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-accent, #fff);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notify-bar .floating-notify-form {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.35s ease,
    opacity 0.35s ease,
    margin-top 0.35s ease;
}

.notify-bar .floating-notify-form.open {
  max-height: 140px;
  opacity: 1;
  margin-top: 16px;
}

.notify-bar .floating-notify-form form {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.notify-bar .floating-notify-form input[type='email'] {
  padding: 10px 14px;
  font-size: 16px; /* 16px prevents iOS auto-zoom */
  border: 1px solid var(--border-input);
  border-radius: 6px;
  background: var(--bg-input);
  color: var(--text-primary);
  width: 240px;
  max-width: 100%;
  min-width: 0;
  flex: 1;
  font-family: inherit;
}

.notify-bar .floating-notify-form input[type='email']:focus {
  border-color: var(--border-focus);
  outline: none;
}

.notify-bar .floating-notify-form input[type='email']::placeholder {
  color: var(--text-tertiary);
}

.notify-bar .floating-notify-form button[type='submit'] {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  background: var(--color-accent, #fff);
  color: var(--color-accent-contrast, #000);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}

.notify-bar .floating-notify-form button[type='submit']:hover {
  opacity: 0.85;
}

.notify-bar .floating-notify-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.notify-bar .floating-notify-privacy input[type='checkbox'] {
  width: 14px;
  height: 14px;
  accent-color: var(--color-accent, #fff);
}

.notify-bar .floating-notify-privacy a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.notify-bar .floating-notify-status {
  text-align: center;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Animazione refresh lista cinema */
.cinema-finder #theaters-list {
  transition: opacity 0.15s ease-out;
}

.cinema-finder #theaters-list.refreshing {
  opacity: 0.3;
}

/* ==========================================================================
   CINEMA ROW — riscrittura clean, mobile-first
   ========================================================================== */

/* --- Base (mobile) --- */
.cinema-finder .cinema-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 8px 0;
  padding: 16px var(--padding-x-mobile, 20px);
  border-bottom: 1px solid var(--border-default);
  transition: background 0.15s ease;
}

.cinema-finder .cinema-info {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  grid-column: 1;
  grid-row: 1;
}

.cinema-finder .cinema-name {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-accent, var(--color-black));
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100vw - 48px);
}

.cinema-finder .cinema-name a {
  color: inherit;
  text-decoration: none;
}

.cinema-finder .cinema-name a:hover {
  text-decoration: underline;
}

.cinema-finder .cinema-city-sep {
  color: var(--text-faded-35);
  margin: 0 3px;
}

.cinema-finder .cinema-city {
  font-weight: 400;
  color: var(--color-gray-500);
}

.cinema-finder .source-tag {
  display: none;
}

/* --- Times --- */
.cinema-finder .cinema-times {
  display: flex;
  align-items: flex-start;
  width: 100%;
  grid-column: 1 / -1;
  grid-row: 2;
}

.cinema-finder .times-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.cinema-finder .time-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-width: 0;
  padding: 0 6px;
  border: none;
  background: transparent;
  border-radius: 0;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: var(--letter-spacing-body);
  color: var(--color-black-pure);
  text-decoration: none;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

/* VO/VOS label next to time */
.cinema-finder .time-btn .vo-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-accent, var(--color-black));
  margin-left: 3px;
  vertical-align: middle;
}

/* Anteprima label */
.cinema-finder .time-btn .anteprima-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-accent, var(--color-black));
  margin-left: 3px;
  vertical-align: middle;
  cursor: help;
}

.cinema-finder .time-btn .label-sep {
  font-size: 10px;
  color: var(--color-text-muted, #999);
  margin: 0 1px;
  vertical-align: middle;
}

/* Occupancy tooltip (logged-in users) */
.occ-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated, #fff);
  color: var(--text-primary, #0a0a0a);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.15s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-default, #e5e5e5);
}

.occ-tooltip.visible {
  opacity: 1;
}

.occ-tooltip::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--border-default, #e5e5e5);
}

.occ-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--bg-elevated, #fff);
}

/* Info-only (mymovies, aac) */
.cinema-finder .time-btn.info-only {
  cursor: default;
  opacity: 0.7;
}

/* Orari passati */
.cinema-finder .time-btn.time-passed {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

/* Share button — posizionato sulla riga del nome cinema */
.cinema-finder .share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--text-faded-35);
  flex-shrink: 0;
  border-radius: 50%;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  top: 16px;
  right: var(--padding-x-mobile, 20px);
}

.cinema-finder .cinema-row {
  position: relative;
}
.cinema-finder .share-btn svg {
  width: 14px;
  height: 14px;
}

/* --- Date groups (normal = invisible wrapper) --- */
.date-group {
  display: contents;
}

.date-sep {
  display: none;
}

/* --- All-dates mode (mobile): stacked rows per date --- */
.all-dates-active .cinema-row {
  gap: 10px;
}

.all-dates-active .times-list {
  flex-direction: column;
  gap: 0;
}

.all-dates-active .date-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-pill, rgba(255, 255, 255, 0.06));
}

.all-dates-active .date-sep {
  margin-right: auto;
}

.all-dates-active .date-group:last-child {
  border-bottom: none;
}

.all-dates-active .date-sep {
  display: block;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faded-50);
  line-height: 1;
  white-space: nowrap;
  min-width: 72px;
  flex-shrink: 0;
}

/* Day name: short on mobile, full on desktop */
.all-dates-active .date-sep .day-full {
  display: none;
}

.all-dates-active .date-sep .day-short {
  display: inline;
}

.all-dates-active .date-group .time-btn {
  min-width: 0;
  padding: 0 8px;
  height: 32px;
}

/* --- Desktop (>=768px) --- */
@media (min-width: 768px) {
  .cinema-finder .cinema-row {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    padding: 20px 24px;
    border-radius: 8px;
  }

  .cinema-finder .cinema-name {
    font-size: 15px;
    line-height: 22px;
    max-width: none;
  }

  .cinema-finder .cinema-info {
    flex-shrink: 1;
  }

  .cinema-finder .source-tag {
    display: inline;
  }

  .cinema-finder .cinema-times {
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    width: auto;
  }

  .cinema-finder .share-btn {
    width: 32px;
    height: 32px;
    top: 20px;
    right: 24px;
    opacity: 0;
    transition:
      opacity 0.15s,
      color 0.15s,
      background 0.15s;
  }

  /* All-dates desktop: columns per date */
  .all-dates-active .cinema-row {
    gap: 16px;
  }

  .all-dates-active .times-list {
    flex-direction: column;
    gap: 0;
  }

  .all-dates-active .date-group {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-pill, rgba(255, 255, 255, 0.06));
  }

  .all-dates-active .date-group:last-child {
    border-bottom: none;
  }

  .all-dates-active .date-sep {
    min-width: 130px;
    font-weight: 400;
  }

  .all-dates-active .date-sep .day-short {
    display: none;
  }

  .all-dates-active .date-sep .day-full {
    display: inline;
    text-transform: capitalize;
  }

  .all-dates-active .date-group .time-btn {
    padding: 0 10px;
    height: 34px;
  }
}

/* Hover: solo dispositivi con mouse */
@media (hover: hover) {
  .cinema-finder .cinema-row:hover {
    background: var(--bg-surface-hover);
  }
  .cinema-finder .time-btn:hover {
    color: var(--color-accent, #fff);
  }
  .cinema-finder .time-btn.info-only:hover {
    color: var(--color-black-pure);
  }
  .cinema-finder .cinema-row:hover .share-btn {
    opacity: 1;
  }
  .cinema-finder .share-btn:hover {
    color: var(--color-black);
    background: var(--bg-pill-hover);
  }
}

/* ========================================================================== */

/* ===== RESPONSIVE - New Design ===== */
@media (max-width: 1023px) {
  .hero-section .hero-title span {
    font-size: 48px;
  }

  .cinema-finder {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .cinema-finder .finder-title {
    font-size: 22px;
    line-height: 28px;
  }
}

@media (max-width: 767px) {
  .hero-section {
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
  }

  /* Mobile: separate zoom (no desktop over-crop on portrait viewport) */
  .hero-section .hero-bg video {
    transform: scale(calc(var(--video-zoom-mobile, 100) / 100));
  }

  /* Show mobile video/image, hide desktop video on mobile */
  .hero-section .hero-video-mobile {
    display: block;
  }

  .hero-section .hero-bg .hero-backdrop-mobile {
    display: block;
  }

  .hero-section .hero-video-desktop {
    display: none;
  }

  .hero-section .hero-bg .hero-backdrop-desktop-only {
    display: none;
  }

  .hero-section .hero-content-container {
    bottom: calc(48px + env(safe-area-inset-bottom, 0px) + var(--video-offset-y, 0) * 1px);
  }

  .hero-section .hero-inner {
    align-items: center;
    text-align: center;
  }

  .hero-section .hero-title {
    align-items: center;
  }

  .hero-section .hero-title span {
    font-size: 32px;
    letter-spacing: -0.8px;
  }

  .hero-section .hero-logo-title {
    width: 90%;
    min-width: unset;
  }

  .hero-section .hero-buttons {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: center;
    width: 90%;
    min-width: unset;
  }

  .hero-section .btn-primary,
  .hero-section .btn-secondary {
    flex: 1;
    width: auto;
    max-width: none;
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-section .hero-header {
    padding: calc(28px + env(safe-area-inset-top, 0px)) 5% 0;
  }

  .hero-section .hero-logo {
    font-size: 14px;
    letter-spacing: var(--letter-spacing-label);
  }

  .hero-section .hero-logo-img {
    max-width: 140px;
    max-height: 32px;
  }

  .hero-section .hero-social {
    display: none;
  }

  .hero-section .hero-header.text-logo {
    justify-content: center;
  }

  .hero-section .hero-header.text-logo .hero-logo {
    display: block;
    width: 100%;
    text-align: center;
    font-size: clamp(10px, 4.5vw, 22px);
  }

  .cinema-finder {
    padding: 40px var(--padding-x-mobile) var(--padding-y-mobile);
  }

  .cinema-finder .cinema-list {
    margin-top: 28px;
  }

  .cinema-finder .finder-title {
    font-size: 20px;
    line-height: 26px;
    margin-bottom: 24px;
  }
}

/* ========================================================================

/* Footer V2 - Dark theme, aligned with 1000px grid */
.footer {
  padding: 64px var(--padding-x-mobile);
  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer .footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 32px;
}

.footer .footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer .footer-title {
  display: block;
  font-size: 14px;
  letter-spacing: var(--letter-spacing-label);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  max-width: calc(100vw - 80px);
  margin-bottom: 8px;
  color: var(--color-accent, var(--footer-text-bright)) !important;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer .footer-title:hover {
  opacity: 0.7;
  color: var(--footer-text-bright) !important;
}

.footer .footer-copy {
  font-size: 14px;
  color: var(--color-accent, var(--footer-text-dim));
}

.footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
  font-size: 12px;
}

.footer .footer-links a {
  color: var(--color-accent, var(--footer-text-dim)) !important;
  text-decoration: none;
  transition: color 0.2s;
}

.footer .footer-links a:hover {
  color: var(--color-accent-hover, var(--footer-text-bright)) !important;
}

.footer .footer-links .theme-toggle-link {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--color-accent, var(--footer-text-dim)) !important;
  transition: color 0.2s;
}

.footer .footer-links .theme-toggle-link:hover {
  color: var(--color-accent-hover, var(--footer-text-bright)) !important;
}

.footer .footer-social {
  display: flex;
  gap: 24px;
}

.footer .footer-social a {
  color: var(--color-accent, var(--footer-text)) !important;
  transition:
    color 0.2s,
    transform 0.2s;
}

.footer .footer-social a:hover,
.footer .footer-social a:active {
  color: var(--color-accent-hover, var(--footer-text-bright)) !important;
  transform: scale(1.1);
}

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

@media (max-width: 767px) {
  .footer {
    padding: var(--padding-y-mobile) var(--padding-x-mobile);
  }

  .footer .footer-container {
    flex-direction: column;
    text-align: center;
    gap: var(--padding-y-mobile);
  }
}

/* Lazy Reveal Animation */
.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================================
   SEARCHMENU V3 - New Minimal Search Bar + Inline Day Selector
   ======================================================================== */

/* Search Bar V3 */
.search-bar-v3 {
  display: flex;
  align-items: center;
  max-width: 576px;
  margin: 0 auto;
  height: 56px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-input);
  border-radius: 12px;
  padding: 0 8px 0 16px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.search-bar-v3:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 1px var(--border-focus);
}

.search-icon-v3 {
  flex-shrink: 0;
  color: var(--text-faded-40);
  margin-right: 12px;
}

.search-bar-v3 input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-primary);
  background: transparent;
  min-width: 0;
}

.search-bar-v3 input::placeholder {
  color: var(--text-faded-40);
}

.search-autocomplete {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--bg-elevated);
  border: 1px solid var(--border-input);
  border-radius: 12px;
  box-shadow: 0 8px 24px var(--shadow-subtle);
  overflow: hidden;
  display: none;
}

.search-autocomplete.visible {
  display: block;
}

.search-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 0 2px;
}

.results-date-label {
  display: none;
}

/* "TUTTE" pill — fixed width, matches day-btn-v3 height */
.all-dates-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 10px 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--text-faded-50);
  cursor: pointer;
  position: relative;
  transition:
    background 0.15s,
    color 0.15s;
  border-right: 1px solid var(--border-input);
  margin-right: 2px;
}

.all-dates-pill:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.all-dates-pill::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--text-primary);
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

.all-dates-pill.active {
  color: var(--text-primary);
}

.all-dates-pill.active::after {
  width: 20px;
}

/* Dimmed state for pills/arrows when all-dates is active */
.day-btn-v3.dimmed,
.day-nav.dimmed {
  opacity: 0.25;
  pointer-events: none;
}

.search-autocomplete-group + .search-autocomplete-group {
  border-top: 1px solid var(--border-input);
}

.search-autocomplete-title {
  padding: 8px 12px 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faded-40);
}

.search-autocomplete-item {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
}

.search-autocomplete-item:hover,
.search-autocomplete-item.active {
  background: var(--bg-surface-hover);
}

.autocomplete-kind {
  min-width: 54px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faded-40);
}

.autocomplete-label {
  font-size: 14px;
  color: var(--text-primary);
}

.search-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  border-radius: 8px;
  transition: background 0.15s;
  flex-shrink: 0;
}

.search-action-btn svg {
  color: var(--text-faded-35);
}

.search-action-btn.active svg {
  color: var(--color-accent, var(--text-primary));
}

.search-action-btn.loading svg {
  animation: pulse 1s infinite;
}

/* VO Button V3 */
.vo-btn-v3 .vo-text {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--letter-spacing-finder-title);
  color: var(--text-faded-35);
}

.vo-btn-v3.active .vo-text {
  color: var(--color-accent, var(--text-primary));
}

/* Day Selector V3 - rimosso: tutte le date sempre attivo */
.day-selector-wrap {
  display: none;
}

.day-selector-v3 {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 2px;
}

/* Day pill */
.day-btn-v3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  padding: 10px 4px;
  border: none;
  background: transparent;
  border-radius: 8px;
  transition: background 0.15s;
  position: relative;
  cursor: pointer;
}

.day-btn-v3:hover {
  background: var(--bg-surface-hover);
}

.day-btn-v3 .day-name {
  font-family: var(--font-family);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--text-faded-50);
  margin-bottom: 2px;
  transition: color 0.15s;
}

.day-btn-v3 .day-num {
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-faded-70);
  line-height: 1.2;
  transition: color 0.15s;
}

.day-btn-v3 .day-month {
  font-family: var(--font-family);
  font-size: 9px;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--text-faded-35);
  margin-top: 1px;
  transition: color 0.15s;
}

.day-btn-v3:hover .day-month,
.day-btn-v3:hover .day-name,
.day-btn-v3:hover .day-num {
  color: var(--text-primary);
}

/* Active state with underline */
.day-btn-v3.active {
  background: transparent;
}

.day-btn-v3.active .day-name,
.day-btn-v3.active .day-month {
  color: var(--text-primary);
}

.day-btn-v3.active .day-num {
  color: var(--text-primary);
  font-weight: 500;
}

.day-btn-v3::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--text-primary);
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

.day-btn-v3.active::after {
  width: 20px;
}

/* Dot indicator for days with showtime data */
.day-btn-v3.has-data::before {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent, var(--color-primary));
  transform: translateX(-50%);
}

/* Hide dot when pill is active (underline is enough) */
.day-btn-v3.active.has-data::before {
  display: none;
}

/* Nav arrows */
.day-nav {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-faded-50);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    opacity 0.15s;
  padding: 0;
}

.day-nav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.day-nav:hover:not(:disabled) {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.day-nav:disabled {
  opacity: 0.25;
  cursor: default;
}

/* Responsive - Day Selector */
@media (max-width: 576px) {
  .search-bar-v3 {
    height: 52px;
    border-radius: 10px;
    padding: 0 6px 0 14px;
  }

  .search-bar-v3 input {
    font-size: 16px; /* Must stay 16px — iOS auto-zooms viewport on focus if < 16px */
  }

  .search-action-btn {
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
  }

  .search-autocomplete {
    top: calc(100% + 6px);
    border-radius: 10px;
  }

  .search-meta-row {
    margin-top: 8px;
    gap: 10px;
  }

  .results-date-label {
    font-size: 12px;
  }

  .all-dates-pill {
    padding: 8px 8px;
  }

  .day-selector-wrap {
    margin-top: 24px;
  }

  /* Carousel: hide arrows, enable swipe */
  .day-nav {
    display: none;
  }

  .day-selector-v3 {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 4px;
  }

  .day-selector-v3::-webkit-scrollbar {
    display: none;
  }

  .day-btn-v3 {
    flex: 0 0 auto;
    min-width: 52px;
    padding: 8px 6px;
    scroll-snap-align: center;
  }

  .day-btn-v3 .day-num {
    font-size: 16px;
  }

  /* Right fade hint for scrollable day pills */
  .day-selector-wrap {
    position: relative;
  }
  .day-selector-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 32px;
    background: linear-gradient(to left, var(--bg-page, #fff), transparent);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.2s;
  }
  .day-selector-wrap.scrolled-end::after {
    opacity: 0;
  }
}

/* ==================== CINEMA CONTROLS BAR ==================== */
#cinema-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 10;
}
#cinema-controls.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}
.cinema-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
  padding: 0;
}
.cinema-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}
.cinema-btn svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.9);
}
.cinema-btn-sm {
  width: 32px;
  height: 32px;
}
.cinema-btn-sm svg {
  width: 16px;
  height: 16px;
}
.cinema-btn-solo {
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.5);
}
.cinema-btn-solo svg {
  width: 22px;
  height: 22px;
}
.cinema-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: transparent;
  border-radius: 24px;
}
.cinema-pill .cinema-btn {
  background: transparent;
}
.cinema-pill .cinema-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}
#cinema-playpause .icon-pause {
  display: none;
}
#cinema-playpause.playing .icon-play {
  display: none;
}
#cinema-playpause.playing .icon-pause {
  display: block;
}
#cinema-mute .icon-unmuted {
  display: none;
}
#cinema-mute.unmuted .icon-muted {
  display: none;
}
#cinema-mute.unmuted .icon-unmuted {
  display: block;
}
.cinema-sub-indicator,
.cinema-vol-indicator {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cinema-sub-ring,
.cinema-vol-ring {
  position: absolute;
  width: 100%;
  height: 100%;
}
.cinema-sub-ring circle,
.cinema-vol-ring circle {
  transition: stroke-dashoffset 0.2s ease;
}
.cinema-sub-text,
.cinema-vol-text {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.cinema-seekbar {
  width: 200px;
  height: 40px;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0 8px;
}
.cinema-seekbar-track {
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}
.cinema-seekbar-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}
.cinema-seekbar-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.cinema-seekbar:hover .cinema-seekbar-thumb {
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.cinema-seekbar.dragging .cinema-seekbar-thumb {
  transform: translate(-50%, -50%) scale(1.3);
}
.cinema-seekbar.dragging .cinema-seekbar-progress {
  transition: none;
}
@media (max-width: 1023px) {
  #cinema-controls {
    gap: 12px;
    padding: 8px 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 24px);
    border-radius: 20px;
  }
  #cinema-controls .cinema-seekbar {
    flex: 1;
    min-width: 0;
    width: auto;
  }
  #cinema-controls .cinema-btn-solo {
    width: 44px;
    height: 44px;
  }
  #cinema-controls .cinema-btn-solo svg {
    width: 22px;
    height: 22px;
  }
  #cinema-controls .cinema-seekbar-track {
    height: 5px;
  }
  #cinema-controls .cinema-seekbar-thumb {
    width: 18px;
    height: 18px;
  }
  #cinema-controls .cinema-seekbar {
    height: 48px;
  }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-section .hero-bg video {
    transform: none !important;
  }

  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==================== COOKIE CONSENT ==================== */
#cc-main {
  --cc-font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --cc-bg: #fff;
  --cc-primary-color: #000;
  --cc-secondary-color: #333;
  --cc-btn-primary-bg: #000;
  --cc-btn-primary-color: #fff;
  --cc-btn-primary-hover-bg: #333;
  --cc-btn-secondary-bg: #fff;
  --cc-btn-secondary-color: #000;
  --cc-btn-secondary-border-color: #000;
  --cc-btn-secondary-hover-bg: #f5f5f5;
  --cc-separator-border-color: #e5e5e5;
  --cc-toggle-on-bg: #54af32;
  --cc-toggle-off-bg: #ccc;
  --cc-cookie-category-block-bg: #f8f8f8;
  --cc-cookie-category-block-border: #e5e5e5;
  --cc-overlay-bg: rgba(0, 0, 0, 0.5);
  --cc-modal-border-radius: 12px;
  --cc-btn-border-radius: 8px;
}

/* Consent modal */
#cc-main .cm {
  max-width: 380px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border: 1px solid #e5e5e5;
  background: #fff !important;
  color: #000 !important;
}

#cc-main .cm__title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #000 !important;
}

#cc-main .cm__desc {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: #333 !important;
}

#cc-main .cm__btns {
  gap: 8px;
}

#cc-main .cm__btn {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
}

/* Preferences modal */
#cc-main .pm {
  max-width: 500px;
  background: #fff !important;
}

#cc-main .pm__header {
  background: #fff !important;
  border-bottom: 1px solid #e5e5e5;
}

#cc-main .pm__title {
  font-size: 18px;
  color: #000 !important;
}

#cc-main .pm__body {
  background: #fff !important;
}

#cc-main .pm__section {
  border-bottom: 1px solid #e5e5e5;
}

#cc-main .pm__section-title {
  font-size: 14px;
  font-weight: 500;
  color: #000 !important;
}

#cc-main .pm__section-desc {
  font-size: 13px;
  color: #333 !important;
}

#cc-main .pm__footer {
  background: #fff !important;
  border-top: 1px solid #e5e5e5;
}

/* Mobile - Full width banner at bottom */
@media (max-width: 600px) {
  #cc-main .cm {
    max-width: 100%;
    margin: 0;
    border-radius: 16px 16px 0 0;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100%;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  #cc-main .cm__btns {
    flex-direction: column;
  }

  #cc-main .cm__btn {
    width: 100%;
    justify-content: center;
  }
}

/* Dark mode cookie consent */
[data-theme='dark'] #cc-main {
  --cc-bg: #1e1e22;
  --cc-primary-color: #e5e5e5;
  --cc-secondary-color: #aaa;
  --cc-btn-primary-bg: #e5e5e5;
  --cc-btn-primary-color: #111;
  --cc-btn-primary-hover-bg: #ccc;
  --cc-btn-secondary-bg: #1e1e22;
  --cc-btn-secondary-color: #e5e5e5;
  --cc-btn-secondary-border-color: #444;
  --cc-btn-secondary-hover-bg: #2a2a2e;
  --cc-separator-border-color: #333;
  --cc-cookie-category-block-bg: #252528;
  --cc-cookie-category-block-border: #333;
}
[data-theme='dark'] #cc-main .cm {
  background: #1e1e22 !important;
  color: #e5e5e5 !important;
  border-color: #333;
}
[data-theme='dark'] #cc-main .cm__title {
  color: #e5e5e5 !important;
}
[data-theme='dark'] #cc-main .cm__desc {
  color: #aaa !important;
}
[data-theme='dark'] #cc-main .pm {
  background: #1e1e22 !important;
}
[data-theme='dark'] #cc-main .pm__header {
  background: #1e1e22 !important;
  border-color: #333;
}
[data-theme='dark'] #cc-main .pm__title {
  color: #e5e5e5 !important;
}
[data-theme='dark'] #cc-main .pm__body {
  background: #1e1e22 !important;
}
[data-theme='dark'] #cc-main .pm__section {
  border-color: #333;
}
[data-theme='dark'] #cc-main .pm__section-title {
  color: #e5e5e5 !important;
}
[data-theme='dark'] #cc-main .pm__section-desc {
  color: #aaa !important;
}
[data-theme='dark'] #cc-main .pm__footer {
  background: #1e1e22 !important;
  border-color: #333;
}

/* ==================== MOBILE TOUCH OPTIMIZATIONS ==================== */
/* Touch-action per rimuovere delay 300ms click su bottoni */
button,
a,
[role='button'],
input[type='submit'],
input[type='button'],
.interactive {
  touch-action: manipulation;
}

/* Prevent text selection on buttons only (not links — users may want to copy text) */
button,
[role='button'],
input[type='submit'],
input[type='button'] {
  -webkit-user-select: none;
  user-select: none;
}

/* Cursor pointer solo desktop (no touch devices) */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  button:not(:disabled),
  a,
  [role='button'],
  input[type='submit']:not(:disabled),
  input[type='button']:not(:disabled) {
    cursor: pointer;
  }
}

/* ==================== EVENTS SECTION ==================== */

.events-section {
  padding: 48px var(--padding-x-mobile, 20px);
  max-width: var(--container-max-width, 1200px);
  margin: 0 auto;
}

.events-section__header {
  margin-bottom: 28px;
}

.events-section__label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--color-accent, var(--color-primary));
  margin-bottom: 6px;
}

.events-section__title {
  font-size: 26px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.events-section__grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* --- Event Card: horizontal layout --- */

a.event-card {
  display: flex;
  flex-direction: row;
  background: var(--bg-surface-hover, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border-default, rgba(255, 255, 255, 0.06));
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    background 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}

a.event-card:hover {
  background: var(--bg-elevated, rgba(255, 255, 255, 0.07));
  border-color: var(--border-focus, rgba(255, 255, 255, 0.12));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Image area */
.event-card__visual {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  min-height: 120px;
}

.event-card__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-surface-hover, rgba(255, 255, 255, 0.03));
}

.event-card__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    transparent 40%,
    var(--bg-page-60, rgba(41, 41, 47, 0.6)) 100%
  );
}

.event-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--color-accent, var(--color-primary));
  color: var(--color-accent-contrast, #000);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  z-index: 1;
}

/* Body: date block + info + arrow */
.event-card__body {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  min-width: 0;
}

/* Big date stamp */
.event-card__date-block {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  gap: 0;
}

.event-card__day {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent, var(--color-primary));
}

.event-card__month {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Info block */
.event-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-card__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-card__details {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.event-card__details span::after {
  content: '·';
  margin-left: 8px;
  color: var(--text-faded-35);
}

.event-card__details span:last-child::after {
  display: none;
}

.event-card__venue {
  margin: 0;
  font-size: 13px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-card__venue svg {
  flex-shrink: 0;
  opacity: 0.5;
}

/* Arrow indicator */
.event-card__arrow {
  flex-shrink: 0;
  color: var(--text-faded-35);
  transition:
    color 0.2s,
    transform 0.2s;
  display: none;
}

.event-card:hover .event-card__arrow {
  color: var(--color-accent, var(--color-primary));
  transform: translateX(2px);
}

/* --- Responsive --- */

@media (min-width: 768px) {
  .events-section__grid {
    gap: 14px;
  }

  .event-card__visual {
    width: 180px;
    min-height: 140px;
  }

  .event-card__title {
    font-size: 17px;
    white-space: normal;
  }

  .event-card__arrow {
    display: block;
  }

  .event-card__body {
    gap: 20px;
    padding: 20px 24px;
  }
}

@media (min-width: 1024px) {
  .events-section {
    padding: 64px 40px;
  }

  .events-section__title {
    font-size: 30px;
  }

  .event-card__visual {
    width: 220px;
    min-height: 150px;
  }

  .event-card__day {
    font-size: 32px;
  }

  .event-card__title {
    font-size: 18px;
  }

  .event-card__body {
    padding: 24px 28px;
  }
}

/* ---------- Scroll to Top Button ---------- */
.scroll-to-top {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    background 0.2s ease;
}

.scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.scroll-to-top:hover {
  background: rgba(0, 0, 0, 0.2);
}

[data-theme='dark'] .scroll-to-top {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

[data-theme='dark'] .scroll-to-top:hover {
  background: rgba(255, 255, 255, 0.25);
}

@media (min-width: 768px) {
  .scroll-to-top {
    bottom: 40px;
  }
}

/* ===== ESERCENTE REQUEST CTA ===== */
.esercente-cta {
  text-align: center;
  padding: 24px 0 8px;
  color: var(--text-tertiary);
  font-size: 13px;
}

.esercente-cta__link {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: inherit;
  padding: 0;
  transition: color 0.2s;
}

.esercente-cta__link:hover,
.esercente-cta__link:focus-visible {
  color: var(--text-primary);
  outline: none;
}

/* ===== ESERCENTE MODAL ===== */
.esercente-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  padding: 16px;
  box-sizing: border-box;
}

.esercente-modal.active {
  opacity: 1;
  visibility: visible;
}

.esercente-modal__box {
  background: var(--bg-elevated, #1e1e24);
  border: 1px solid var(--border-default, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.esercente-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition:
    color 0.2s,
    background 0.2s;
  font-size: 20px;
  line-height: 1;
}

.esercente-modal__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.esercente-modal__title {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 24px;
  padding-right: 32px;
}

.esercente-modal__section {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(229, 229, 229, 0.4);
  margin: 16px 0 10px;
}

.esercente-modal__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.esercente-modal__field {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.esercente-modal__field label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.esercente-modal__field input,
.esercente-modal__field textarea {
  background: var(--bg-page, #141418);
  border: 1px solid var(--border-input, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.esercente-modal__field input:focus,
.esercente-modal__field textarea:focus {
  border-color: var(--border-focus, rgba(255, 255, 255, 0.35));
}

.esercente-modal__field textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.esercente-modal__file-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.esercente-modal__file-label input[type='file'] {
  display: none;
}

.esercente-modal__file-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-default, rgba(255, 255, 255, 0.1));
  border-radius: 6px;
  padding: 6px 12px;
  color: var(--text-secondary);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.esercente-modal__file-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.esercente-modal__file-name {
  color: var(--text-tertiary);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.esercente-modal__privacy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0;
  font-size: 13px;
  color: var(--text-tertiary);
  cursor: pointer;
}

.esercente-modal__privacy input[type='checkbox'] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-primary, #54af32);
}

.esercente-modal__privacy a {
  color: var(--text-secondary);
  text-underline-offset: 2px;
}

.esercente-modal__submit {
  width: 100%;
  padding: 13px;
  background: var(--color-primary, #54af32);
  color: var(--color-primary-contrast, #000);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
}

.esercente-modal__submit:hover:not(:disabled) {
  opacity: 0.85;
}

.esercente-modal__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.esercente-modal__status {
  margin-top: 10px;
  font-size: 13px;
  min-height: 20px;
  text-align: center;
}

.esercente-modal__status--error {
  color: #ef4444;
}

.esercente-modal__status--success {
  color: #4ade80;
}

@media (max-width: 576px) {
  .esercente-modal__box {
    padding: 24px 16px;
    max-height: 95vh;
    border-radius: 8px;
  }

  .esercente-modal__row {
    grid-template-columns: 1fr;
  }
}

/* ===== ESERCENTE FILM SEARCH ===== */
.esercente-film-search {
  position: relative;
}

.esercente-film-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-elevated, #1e1e24);
  border: 1px solid var(--border-default, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  z-index: 10;
  max-height: 220px;
  overflow-y: auto;
}

.esercente-film-dropdown li {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background 0.15s;
}

.esercente-film-dropdown li:hover {
  background: rgba(255, 255, 255, 0.06);
}

.esercente-film-dropdown__title {
  color: var(--text-primary);
}

.esercente-film-dropdown__year {
  color: var(--text-tertiary);
  font-size: 12px;
}

.esercente-film-dropdown__empty {
  padding: 10px 12px;
  color: var(--text-tertiary);
  font-size: 13px;
  font-style: italic;
}

/* ===== ESERCENTE CINEMA SEARCH ===== */
.esercente-cinema-search {
  position: relative;
}

.esercente-cinema-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #1e1e24;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  z-index: 50;
  max-height: 240px;
  overflow-y: auto;
}

.esercente-cinema-dropdown li {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s;
}

.esercente-cinema-dropdown li:hover,
.esercente-cinema-dropdown li[aria-selected='true'] {
  background: rgba(217, 119, 6, 0.1);
}

.esercente-cinema-dropdown__name {
  color: rgba(240, 240, 240, 0.9);
}

.esercente-cinema-dropdown__city {
  color: rgba(240, 240, 240, 0.4);
  font-size: 12px;
  margin-left: 8px;
}

.esercente-cinema-dropdown__address {
  color: rgba(240, 240, 240, 0.3);
  font-size: 12px;
}

.esercente-cinema-dropdown__empty {
  padding: 10px 14px;
  color: rgba(240, 240, 240, 0.3);
  font-size: 13px;
  font-style: italic;
}

/* ===== ESERCENTE SHOWTIMES SPREADSHEET ===== */
.ep-showtimes-wrap {
  overflow-x: auto;
  margin-bottom: 0;
}

.ep-showtimes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: rgba(240, 240, 240, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.ep-showtimes-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(229, 229, 229, 0.3);
  padding: 10px 12px 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.ep-showtimes-table thead th:last-child {
  padding-right: 0;
  text-align: right;
}

/* Row */
.ep-st__row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s;
}

.ep-st__row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.ep-st__row:last-child {
  border-bottom: none;
}

/* Cells */
.ep-st__cell {
  padding: 10px 12px;
  vertical-align: middle;
}

.ep-st__cell--date {
  white-space: nowrap;
  width: 170px;
}

.ep-st__date-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ep-st__day-badge {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(240, 240, 240, 0.4);
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 26px;
}

.ep-st__cell--times {
  width: 100%;
}

.ep-st__cell--actions {
  white-space: nowrap;
  text-align: right;
  padding-right: 8px;
  width: 110px;
}

/* Date input */
.ep-st__date-input {
  background: #353540;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 7px 10px;
  color: rgba(240, 240, 240, 0.9);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.ep-st__date-input::placeholder {
  color: rgba(240, 240, 240, 0.25);
}

.ep-st__date-input:focus {
  border-color: rgba(255, 255, 255, 0.22);
}

.ep-st__date-input::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  cursor: pointer;
  opacity: 0.4;
}

/* Times wrap */
.ep-st__times-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* Time chip */
.ep-time-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #353540;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 4px 6px 4px 2px;
  transition: border-color 0.15s;
}

.ep-time-chip:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.ep-time-chip__input {
  background: transparent;
  border: none;
  color: rgba(240, 240, 240, 0.9);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  width: 72px;
  padding: 2px 4px;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}

/* Hide native time picker chrome */
.ep-time-chip__input::-webkit-calendar-picker-indicator,
.ep-time-chip__input::-webkit-inner-spin-button,
.ep-time-chip__input::-webkit-clear-button,
.ep-time-chip__input::-webkit-time-picker-indicator {
  display: none !important;
  -webkit-appearance: none;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
}

.ep-time-chip__vo {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  line-height: 1.3;
  transition: all 0.2s;
  user-select: none;
  flex-shrink: 0;
}

.ep-time-chip__vo:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.45);
}

.ep-time-chip__vo--active {
  background: rgba(217, 119, 6, 0.2);
  border-color: rgba(217, 119, 6, 0.55);
  color: #d97706;
}

.ep-time-chip__vo--active:hover {
  background: rgba(217, 119, 6, 0.3);
  border-color: rgba(217, 119, 6, 0.7);
  color: #d97706;
}

.ep-time-chip__remove {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
  transition: color 0.15s;
  flex-shrink: 0;
}

.ep-time-chip__remove:hover {
  color: #ef4444;
}

/* Add time button */
.ep-st__add-time {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(240, 240, 240, 0.25);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 5px 10px;
  transition: all 0.15s;
}

.ep-st__add-time:hover {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(240, 240, 240, 0.5);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Action buttons */
.ep-st__action-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.15s;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ep-st__action-btn svg {
  width: 16px;
  height: 16px;
}

.ep-st__action-btn:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

.ep-st__action-btn--danger:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Fill handle */
.ep-st__fill-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  padding: 6px 4px;
  border-radius: 6px;
  transition: all 0.15s;
  vertical-align: middle;
  touch-action: none;
  color: rgba(255, 255, 255, 0.3);
}

.ep-st__fill-handle svg {
  width: 14px;
  height: 18px;
}

.ep-st__fill-handle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}

.ep-st__fill-handle--active {
  cursor: grabbing;
  background: rgba(217, 119, 6, 0.15);
}

.ep-st__fill-handle--active svg {
  opacity: 1;
  color: #d97706;
}

body.ep-dragging {
  cursor: grabbing !important;
  user-select: none;
}

body.ep-dragging * {
  cursor: grabbing !important;
}

/* Fill indicator (follows cursor) */
.ep-fill-indicator {
  position: fixed;
  display: none;
  z-index: 9999;
  pointer-events: none;
  background: rgba(217, 119, 6, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 0.12s,
    transform 0.12s;
}

.ep-fill-indicator--visible {
  opacity: 1;
  transform: scale(1);
}

/* Row animations */
.ep-st__row--enter {
  animation: ep-row-enter 0.3s ease-out;
}

.ep-st__row--exit {
  animation: ep-row-exit 0.2s ease-in forwards;
}

@keyframes ep-row-enter {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ep-row-exit {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* Add date button */
.esercente-showtimes__add-date {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 0 0 8px 8px;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  padding: 12px 16px;
  width: 100%;
  margin-bottom: 0;
  transition: all 0.2s;
}

.esercente-showtimes__add-date:hover {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.15);
}

/* Ghost rows (drag preview) — render like real rows at low opacity */
.ep-st__ghost-tbody {
  pointer-events: none;
}

.ep-st__ghost-row {
  opacity: 0.18;
  animation: ep-ghost-appear 0.15s ease-out both;
}

.ep-st__ghost-row td {
  padding: 8px 12px 8px 0;
  vertical-align: middle;
}

@keyframes ep-ghost-appear {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 0.18;
    transform: translateY(0);
  }
}

/* Floating submit button — centered */
.ep-submit-float {
  position: fixed;
  bottom: 32px;
  left: 50%;
  z-index: 100;
  background: var(--text-primary, #e5e5e5);
  color: var(--bg-color, #29292f);
  border: none;
  border-radius: 12px;
  padding: 14px 40px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translate(-50%, 20px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ep-submit-float.ep-submit--visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}

.ep-submit-float:hover {
  transform: translate(-50%, -2px) scale(1.02);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.15);
}

.ep-submit-float:active {
  transform: translate(-50%, 0) scale(0.98);
}

.ep-submit-float:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Mobile: horizontal scroll for table */
@media (max-width: 576px) {
  .ep-showtimes-wrap {
    margin: 0 -8px;
    padding: 0 8px;
  }
  .ep-time-chip__input {
    width: 70px;
  }
  .ep-submit-float {
    bottom: 20px;
    left: 20px;
    right: 20px;
    width: calc(100% - 40px);
    text-align: center;
    transform: translateX(0) translateY(20px) scale(0.95);
  }
  .ep-submit-float.ep-submit--visible {
    transform: translateX(0) translateY(0) scale(1);
  }
  .ep-submit-float:hover {
    transform: translateX(0) translateY(-2px) scale(1.02);
  }
  .ep-submit-float:active {
    transform: translateX(0) translateY(0) scale(0.98);
  }
}

/* ===== ESERCENTE PAGE ===== */
/* =============================================
   ESERCENTE CHAT APP — Full-height layout
   ============================================= */

.ep-app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #1a1a1f;
  color: rgba(240, 240, 240, 0.85);
  font-family: 'Inter', sans-serif;
}

/* --- Top bar --- */
.ep-app__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  height: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(26, 26, 31, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
}

.ep-app__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: rgba(240, 240, 240, 0.45);
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}

.ep-app__back:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(240, 240, 240, 0.8);
}

.ep-app__header-text {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.ep-app__brand {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(240, 240, 240, 0.3);
}

.ep-app__film-label {
  font-size: 14px;
  color: rgba(240, 240, 240, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ep-app__privacy-link {
  font-size: 12px;
  color: rgba(240, 240, 240, 0.2);
  text-decoration: none;
  transition: color 0.15s;
  flex-shrink: 0;
}

.ep-app__privacy-link:hover {
  color: rgba(240, 240, 240, 0.5);
}

/* --- Success state --- */
.ep-app__success {
  display: none;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  animation: ep-fade-in 0.5s ease;
}

.ep-app__success[style*='display: block'],
.ep-app__success:not([style*='display: none']):not([style*='display:none']) {
  display: flex;
}

.ep-app__success-icon {
  color: #d97706;
  margin-bottom: 24px;
  animation: ep-check-in 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ep-app__success h2 {
  font-size: 22px;
  font-weight: 500;
  color: rgba(240, 240, 240, 0.9);
  margin: 0 0 10px;
}

.ep-app__success p {
  color: rgba(240, 240, 240, 0.45);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 32px;
}

.ep-app__success-btn {
  display: inline-block;
  padding: 10px 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(240, 240, 240, 0.75);
  text-decoration: none;
  font-size: 14px;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.ep-app__success-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
}

@keyframes ep-check-in {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes ep-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- Two-column layout --- */
.ep-app__layout {
  flex: 1;
  display: flex;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 20px 80px;
  gap: 48px;
}

/* --- Info panel (left) --- */
.ep-app__info {
  flex: 1;
  max-width: 360px;
  padding-top: 8px;
}

.ep-app__info-title {
  font-size: 22px;
  font-weight: 500;
  color: rgba(240, 240, 240, 0.9);
  margin: 0 0 16px;
  line-height: 1.35;
}

.ep-app__info p {
  color: rgba(240, 240, 240, 0.5);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 12px;
}

.ep-app__info-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ep-app__info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(240, 240, 240, 0.65);
  font-size: 14px;
}

.ep-app__info-item svg {
  color: #d97706;
  flex-shrink: 0;
}

/* --- Contact form --- */
.ep-app__form {
  flex: 1;
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ep-app__form-title {
  font-size: 22px;
  font-weight: 500;
  color: rgba(240, 240, 240, 0.9);
  margin: 0 0 8px;
}

.ep-app__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ep-app__field label {
  font-size: 13px;
  color: rgba(240, 240, 240, 0.5);
  letter-spacing: 0.01em;
}

.ep-app__field-row {
  display: flex;
  gap: 12px;
}

.ep-app__field-row .ep-app__field {
  flex: 1;
}

.ep-app__field input,
.ep-app__field select,
.ep-app__field textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  color: rgba(240, 240, 240, 0.9);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
  box-sizing: border-box;
}

.ep-app__field input:focus,
.ep-app__field select:focus,
.ep-app__field textarea:focus {
  border-color: rgba(217, 119, 6, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

.ep-app__field input::placeholder,
.ep-app__field textarea::placeholder {
  color: rgba(240, 240, 240, 0.2);
}

.ep-app__field select {
  appearance: none;
  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='rgba(240,240,240,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.ep-app__field select option {
  background: #2a2a30;
  color: #e5e5e5;
}

.ep-app__field textarea {
  resize: vertical;
  min-height: 80px;
}

.ep-app__privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(240, 240, 240, 0.45);
  cursor: pointer;
  line-height: 1.5;
}

.ep-app__privacy-check input[type='checkbox'] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: #d97706;
  cursor: pointer;
}

.ep-app__privacy-check a {
  color: #d97706;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(217, 119, 6, 0.4);
}

.ep-app__error {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #fca5a5;
  font-size: 14px;
  line-height: 1.5;
}

.ep-app__submit {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #d97706;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.ep-app__submit:hover:not(:disabled) {
  background: #b45309;
}

.ep-app__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .ep-app__layout {
    flex-direction: column;
    gap: 32px;
    padding: 24px 16px;
  }
  .ep-app__info {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .ep-app__field-row {
    flex-direction: column;
    gap: 18px;
  }
}

/* --- Footer --- */
.ep-app__footer {
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px;
}

.ep-app__footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ep-app__footer-links {
  display: flex;
  gap: 20px;
}

.ep-app__footer-links a {
  color: rgba(240, 240, 240, 0.3);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}

.ep-app__footer-links a:hover {
  color: rgba(240, 240, 240, 0.6);
}

.ep-app__footer-credit {
  font-size: 12px;
  color: rgba(240, 240, 240, 0.2);
}

.ep-app__footer-credit a {
  color: rgba(240, 240, 240, 0.35);
  text-decoration: none;
  transition: color 0.15s;
}

.ep-app__footer-credit a:hover {
  color: rgba(240, 240, 240, 0.6);
}

@media (max-width: 480px) {
  .ep-app__footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* --- Chat area (scrollable middle) --- */
.ep-app__chat {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 20px 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.ep-app__messages {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  justify-content: flex-end;
}

/* --- Messages --- */
.ep-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  line-height: 1.55;
  font-size: 15px;
  animation: ep-msg-in 0.25s ease;
}

.ep-msg--user {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.05);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  color: rgba(240, 240, 240, 0.9);
}

.ep-msg--assistant {
  background: transparent;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  color: rgba(240, 240, 240, 0.8);
  padding-left: 0;
  padding-right: 0;
}

/* Wide messages break out of 600px column */
.ep-msg--wide {
  max-width: none;
  width: min(920px, calc(100vw - 40px));
  margin-left: calc((min(600px, 100%) - min(920px, calc(100vw - 40px))) / 2);
  padding: 0;
}

.ep-msg--loading {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 0;
  background: transparent;
}

.ep-msg--loading span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(240, 240, 240, 0.3);
  animation: ep-dot-bounce 1.2s ease-in-out infinite;
}

.ep-msg--loading span:nth-child(2) {
  animation-delay: 0.2s;
}
.ep-msg--loading span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes ep-dot-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  40% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

@keyframes ep-msg-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Composer (bottom bar) --- */
.ep-app__composer {
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(26, 26, 31, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  transition:
    opacity 0.3s,
    transform 0.3s;
}

.ep-app__composer--done {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.ep-app__composer-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.ep-app__input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  outline: none;
  resize: none;
  color: rgba(240, 240, 240, 0.9);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  min-height: 24px;
  max-height: 120px;
  padding: 10px 14px;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.ep-app__input:focus {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

.ep-app__input::placeholder {
  color: rgba(240, 240, 240, 0.2);
}

.ep-app__input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ep-app__send {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: #d97706;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    opacity 0.15s,
    transform 0.1s;
}

.ep-app__send:hover:not(:disabled) {
  background: #b45309;
}

.ep-app__send:active:not(:disabled) {
  transform: scale(0.95);
}

.ep-app__send:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

/* --- Attach button (native <label for="file-input">) --- */
.ep-app__attach {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(240, 240, 240, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    color 0.15s,
    opacity 0.15s;
}

.ep-app__attach input[type='file'] {
  display: none;
}

.ep-app__attach:hover:not(.ep-app__attach--disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(240, 240, 240, 0.8);
}

.ep-app__attach--disabled {
  opacity: 0.2;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- File preview bar --- */
.ep-app__file-preview {
  max-width: 600px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  animation: ep-msg-in 0.2s ease both;
}

.ep-app__file-thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.ep-app__file-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(240, 240, 240, 0.4);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.ep-app__file-name {
  flex: 1;
  font-size: 13px;
  color: rgba(240, 240, 240, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ep-app__file-remove {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(240, 240, 240, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  transition:
    background 0.15s,
    color 0.15s;
}

.ep-app__file-remove:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(240, 240, 240, 0.7);
}

/* --- Wide panels (cinema table, summary) --- */
.ep-panel {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  animation: ep-msg-in 0.3s ease-out;
}

.ep-panel__head {
  padding: 14px 20px 12px;
  color: rgba(240, 240, 240, 0.5);
  font-size: 13px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ep-panel__table {
  width: 100%;
  border-collapse: collapse;
}

.ep-panel__table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ep-panel__table tr:last-child {
  border-bottom: none;
}

.ep-panel__table td {
  padding: 11px 20px;
  vertical-align: middle;
}

.ep-panel__label {
  color: rgba(240, 240, 240, 0.4);
  font-size: 13px;
  white-space: nowrap;
  width: 100px;
}

.ep-panel__value {
  color: rgba(240, 240, 240, 0.88);
}

.ep-panel__dim {
  color: rgba(240, 240, 240, 0.28);
  font-size: 13px;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Clickable cinema rows */
.ep-panel__table--clickable tr {
  cursor: pointer;
  transition: background 0.12s;
}

.ep-panel__table--clickable tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ep-panel__row--selected {
  background: rgba(217, 119, 6, 0.1) !important;
}

.ep-panel__row--faded {
  opacity: 0.25;
  pointer-events: none;
}

.ep-panel__row--faded.ep-panel__row--selected {
  opacity: 1;
  pointer-events: none;
}

/* Privacy note at bottom of summary panel */
.ep-panel__foot {
  padding: 12px 20px 14px;
  margin: 0;
  font-size: 13px;
  color: rgba(240, 240, 240, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ep-panel__foot a {
  color: #d97706;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(217, 119, 6, 0.4);
}

.ep-panel__foot strong {
  color: rgba(240, 240, 240, 0.65);
  font-weight: 500;
}

/* --- Schedule display in summary --- */
.ep-schedule {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ep-schedule__head {
  padding: 12px 20px 8px;
  color: rgba(240, 240, 240, 0.4);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.ep-schedule__row {
  display: flex;
  align-items: center;
  padding: 6px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  gap: 12px;
}

.ep-schedule__row:last-child {
  border-bottom: none;
}

.ep-schedule__date {
  min-width: 72px;
  color: rgba(240, 240, 240, 0.45);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.ep-schedule__times {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ep-schedule__time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(240, 240, 240, 0.85);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.ep-schedule__time--vo {
  border-color: rgba(217, 119, 6, 0.3);
}

.ep-schedule__vo {
  font-size: 10px;
  font-weight: 500;
  color: #d97706;
  letter-spacing: 0.04em;
}

/* --- Mobile tweaks --- */
@media (max-width: 640px) {
  .ep-app__header {
    padding: 0 16px;
    height: 50px;
  }
  .ep-app__chat {
    padding: 16px 16px 16px;
  }
  .ep-app__composer {
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .ep-msg--wide {
    width: calc(100vw - 32px);
    margin-left: calc((100% - 100vw + 32px) / 2);
  }
  .ep-panel__table td {
    padding: 10px 14px;
  }
  .ep-panel__dim {
    display: none;
  }
}
