/* ===== Font del tema (titoli) ===== */
@font-face {
  font-family: 'Vintage';
  src: url('assets/fonts/StupendousJack.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Special';
  src: url('assets/fonts/cinema.ttf') format('truetype');
  font-display: swap;
}

/* ===== Design tokens (allineati a AppTheme.dark di Flutter) ===== */
:root {
  --surface: #2A2A2A;
  --card: #1E1E1E;
  --bg: #000000;
  --primary: #B71C1C;     /* red.shade900 */
  --amber: #FFB300;       /* amber.shade600 */
  --amber-100: #FFECB3;
  --amber-200: #FFE082;
  --amber-400: #FFCA28;
  --white70: rgba(255, 255, 255, 0.7);
  --green: #388E3C;
  --grey-400: #BDBDBD;
  --appbar-h: 56px;
  --maxw: 720px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  color: #fff;
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  overscroll-behavior: none;
}
/* Il nero di base sta sul canvas (html). Il body resta trasparente: altrimenti
   il suo background opaco verrebbe dipinto SOPRA .bg (z-index:-1) coprendolo,
   e l'immagine si vedrebbe solo dove il body non arriva (in fondo, scrollando). */
html { background: var(--bg); }
body { background: transparent; }

.site-attribution {
  width: min(100%, var(--maxw));
  margin: 8px auto 18px;
  padding: 0 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.site-attribution-link {
  display: inline-flex;
  line-height: 0;
  opacity: 0.92;
  transition: opacity 0.15s;
}
.site-attribution-link:hover { opacity: 1; }
.site-attribution-logo {
  width: 56px;
  height: 56px;
  display: block;
}
.site-attribution-text,
.site-attribution-subtext {
  margin: 0;
  max-width: 28rem;
  color: var(--grey-400);
}
.site-attribution-text {
  font-size: 11px;
  line-height: 1.45;
}
.site-attribution-subtext {
  font-size: 10.5px;
  line-height: 1.35;
}

/* Film grain: texture cinematografica a bassa opacità sopra tutto */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
  background-size: 180px 180px;
}

/* ===== Sfondo globale ===== */
.bg {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 90% 75% at 50% 38%, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.88) 100%),
    url('assets/background.png');
  background-size: cover;
  background-position: center;
  z-index: -1;
}

/* ===== App bar ===== */
.appbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: calc(var(--appbar-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  background: var(--surface);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.appbar-title {
  text-align: center;
  font-family: 'Vintage', serif;
  color: var(--amber);
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0 4px;
}
.appbar-title .critic-avatar { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.appbar-left { display: flex; align-items: center; justify-content: flex-start; }
.appbar-right { display: flex; align-items: center; justify-content: flex-end; }

/* Pulsanti icona della appbar */
.icon-btn {
  background: none;
  border: none;
  color: var(--amber);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s;
}
.icon-btn:hover { background: rgba(255,255,255,0.08); }
.icon-btn svg { width: 26px; height: 26px; fill: currentColor; }
.icon-btn--active { color: var(--amber-400); }

/* Gruppo di azioni nell'appbar (stella + share / preferiti + info) */
.appbar-actions { display: flex; align-items: center; }

/* Stella preferiti con badge sul conteggio */
.icon-btn--badge { position: relative; }
.icon-badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--surface);
}

/* ===== Lista preferiti ===== */
.empty-msg {
  color: var(--grey-400);
  text-align: center;
  max-width: 26rem;
  line-height: 1.5;
  padding: 0 24px;
}
.favorites-list { display: flex; flex-direction: column; gap: 10px; padding: 8px 16px 24px; }
.favorite-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  background: rgba(0,0,0,0.38);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.favorite-row:hover { box-shadow: 0 0 0 2px rgba(255,179,0,0.5); }
.favorite-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
  padding: 8px;
}
.favorite-poster {
  flex: 0 0 auto;
  width: 56px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--card);
}
.favorite-info { flex: 1; min-width: 0; }
.favorite-title {
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--amber-400);
  margin: 0;
  line-height: 1.25;
}
.favorite-meta { font-size: 13px; color: var(--grey-400); margin: 4px 0 0; text-transform: capitalize; }
.favorite-tagline {
  font-size: 12px;
  font-style: italic;
  color: var(--amber-200);
  margin: 4px 0 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.favorite-delete {
  flex: 0 0 auto;
  align-self: center;
  margin-right: 4px;
  color: var(--grey-400);
}
.favorite-delete:hover { color: var(--primary); }

/* Griglia critici nella modale di scelta recensore */
.critic-grid--picker { padding: 4px 0 0; gap: 8px; }
.critic-grid--picker .name { font-size: 13px; }

/* ===== Layout viste ===== */
.app {
  min-height: calc(100vh - var(--appbar-h) - env(safe-area-inset-top));
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  display: flex;
  flex-direction: column;
}
.view { display: flex; flex-direction: column; flex: 1; }
@keyframes fade           { from { opacity: 0; transform: translateY(6px); }  to { opacity: 1; transform: none; } }
@keyframes slide-from-right { from { opacity: 0; transform: translateX(28px); }  to { opacity: 1; transform: none; } }
@keyframes slide-from-left  { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.view--enter-fade  { animation: fade 0.25s ease; }
.view--enter-right { animation: slide-from-right 0.22s ease; }
.view--enter-left  { animation: slide-from-left 0.22s ease; }

/* ===== Selezione critico ===== */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Vintage', serif;
  color: var(--amber);
  font-size: 20px;
  font-weight: bold;
  padding: 16px 16px 8px;
  white-space: nowrap;
}
.section-title::before,
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,179,0,0.35));
}
.section-title::after {
  background: linear-gradient(to left, transparent, rgba(255,179,0,0.35));
}
.critic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 4px 16px 16px;
}
.critic-card {
  background: rgba(0,0,0,0.38);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}
.critic-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--amber), 0 6px 16px rgba(0,0,0,0.5); }
.critic-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0;
  background: rgba(255,255,255,0.06);
  display: block;
}
.critic-card .name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.88));
  padding: 28px 8px 10px;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  color: var(--amber-100);
  line-height: 1.2;
}

/* ===== Dettaglio critico ===== */
.detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 20px 0;
  overflow-y: auto;
}
.detail-avatar {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 12px;
  flex: 0 0 auto;
}
.detail-desc {
  color: var(--amber-100);
  font-size: 16px;
  line-height: 1.45;
  width: 100%;
  text-align: left;
  white-space: pre-wrap;
  padding-bottom: 24px;
}
.persona-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin-bottom: 14px;
}
.persona-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--amber-200);
  background: rgba(255,179,0,0.1);
  border: 1px solid rgba(255,179,0,0.25);
  border-radius: 999px;
  padding: 4px 12px;
}

.detail-cta {
  width: 100%;
  padding: 0 0 14px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex: 0 0 auto;
}
.detail-cta-btn {
  flex: 1;
  background: rgba(255,179,0,0.07);
  border: 1.5px solid rgba(255,179,0,0.3);
  border-radius: 16px;
  color: var(--amber-100);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.detail-cta-btn svg {
  width: 28px;
  height: 28px;
  fill: var(--amber);
  flex: 0 0 auto;
}
.detail-cta-btn:hover {
  background: rgba(255,179,0,0.14);
  border-color: rgba(255,179,0,0.7);
}
.detail-cta-btn:active { transform: scale(0.97); }

/* ===== Chat col critico ===== */
/* La vista riempie esattamente lo spazio sotto l'appbar: la lista scrolla
   internamente e il composer resta ancorato in fondo. */
.view--chat {
  height: calc(100dvh - var(--appbar-h) - env(safe-area-inset-top));
  min-height: 0;
}
.chat-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}
.chat-row { display: flex; align-items: flex-end; gap: 8px; }
.chat-row--user { justify-content: flex-end; }
.chat-avatar {
  width: 30px; height: 30px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
}
.chat-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-bubble--assistant {
  background: var(--surface);
  color: #fff;
  border: 1px solid rgba(255,179,0,0.18);
  border-bottom-left-radius: 6px;
}
.chat-bubble--user {
  background: rgba(255,179,0,0.16);
  color: var(--amber-100);
  border: 1px solid rgba(255,179,0,0.32);
  border-bottom-right-radius: 6px;
}
.chat-films {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 2px 0 4px 38px;
}
.chat-composer {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid rgba(255,179,0,0.18);
}
.chat-input {
  flex: 1;
  resize: none;
  max-height: 120px;
  background: var(--bg);
  color: #fff;
  border: 1.5px solid rgba(255,179,0,0.3);
  border-radius: 18px;
  padding: 10px 14px;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
}
.chat-input:focus { outline: none; border-color: rgba(255,179,0,0.7); }
.chat-send {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--amber);
  color: #1a1207;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s, opacity 0.15s;
}
.chat-send:active { transform: scale(0.92); }
.chat-send:disabled { opacity: 0.5; cursor: default; }
.chat-typing { display: inline-flex; gap: 4px; align-items: center; }
.chat-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.4;
  animation: chat-dot 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chat-dot {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

/* Bottone secondario (contorno) — usato per "Al cinema" accanto allo streaming. */
.btn-outline {
  width: 100%;
  background: rgba(255, 179, 0, 0.06);
  color: var(--amber);
  border: 1.5px solid rgba(255, 179, 0, 0.55);
  border-radius: 14px;
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.btn-outline:hover { background: rgba(255, 179, 0, 0.14); border-color: var(--amber); }
.btn-outline:active { transform: translateY(1px); }

/* CTA con icona caratterizzante (Streaming / Al cinema). */
.cta-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.cta-btn svg { width: 22px; height: 22px; flex: 0 0 auto; }
.btn-filled.cta-btn svg { fill: rgba(0,0,0,0.82); }
.btn-outline.cta-btn svg { fill: currentColor; }

/* ===== Bottoni ===== */
.btn-filled {
  width: 100%;
  background: linear-gradient(135deg, var(--amber-400) 0%, var(--amber) 100%);
  color: rgba(0,0,0,0.87);
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255,179,0,0.28);
  transition: filter 0.15s, transform 0.12s, box-shadow 0.15s;
}
.btn-filled:hover { filter: brightness(1.06); box-shadow: 0 8px 22px rgba(255,179,0,0.36); }
.btn-filled:active { transform: translateY(1px); box-shadow: 0 4px 12px rgba(255,179,0,0.24); }

.btn-text {
  background: none;
  border: none;
  color: var(--amber);
  font-size: 15px;
  cursor: pointer;
  padding: 10px 16px;
}
.btn-text:hover { text-decoration: underline; }

/* ===== Quiz ===== */
.quiz { padding: 16px 20px; animation: quizEnter 0.18s ease; }
@keyframes quizEnter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.quiz-progress {
  text-align: center;
  color: var(--amber-200);
  font-size: 13px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.question-box {
  position: relative;
  background: rgba(18,18,18,0.92);
  border: 2px solid rgba(255,179,0,0.8);
  border-radius: 20px;
  padding: 20px;
  padding-top: 30px;
  text-align: center;
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--amber-100);
  line-height: 1.5;
  margin-bottom: 24px;
  overflow: hidden;
}
.question-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.82) 0px, rgba(255,255,255,0.82) 5px,
    rgba(10,10,10,0.75)   5px, rgba(10,10,10,0.75)   10px
  );
}
.answer-btn {
  width: 100%;
  background: rgba(18,18,18,0.88);
  color: var(--amber-100);
  border: 1.5px solid rgba(255,179,0,0.5);
  border-radius: 15px;
  padding: 14px;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 10px;
  transition: border-color 0.15s, background 0.15s;
}
.answer-btn:hover { border-color: var(--amber); background: rgba(30,22,0,0.92); }

/* ===== Loading — sala cinema ===== */
body:has(.view--cinema) .bg {
  filter: brightness(0.15) saturate(0.4);
  transition: filter 0.6s ease;
}
body:has(.view--cinema) .appbar {
  background: rgba(8, 4, 4, 0.95);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}

.view--cinema { animation: cinema-enter 0.7s ease; }
@keyframes cinema-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.loading.cinema-hall {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--appbar-h) - env(safe-area-inset-top) - 24px);
  padding: 16px 0 32px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 80% at 50% 35%, rgba(255, 140, 40, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 100% 100% at 50% 100%, rgba(183, 28, 28, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #050505 0%, #0a0606 45%, #000 100%);
}

.cinema-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 85% 75% at 50% 42%, transparent 30%, rgba(0, 0, 0, 0.75) 100%);
  z-index: 5;
}

.cinema-curtain {
  position: absolute;
  pointer-events: none;
  z-index: 3;
}
.cinema-curtain--left,
.cinema-curtain--right {
  top: 0;
  bottom: 0;
  width: clamp(28px, 11vw, 72px);
  background:
    repeating-linear-gradient(
      90deg,
      #3d0808 0px,
      #7a1515 6px,
      #5c0e0e 12px,
      #922020 18px,
      #4a0a0a 24px
    );
}
.cinema-curtain--left {
  left: 0;
  border-radius: 0 8px 8px 0;
  box-shadow: inset -16px 0 32px rgba(0, 0, 0, 0.65), 8px 0 24px rgba(0, 0, 0, 0.5);
}
.cinema-curtain--right {
  right: 0;
  border-radius: 8px 0 0 8px;
  box-shadow: inset 16px 0 32px rgba(0, 0, 0, 0.65), -8px 0 24px rgba(0, 0, 0, 0.5);
}
.cinema-curtain--top {
  top: 0;
  left: 0;
  right: 0;
  height: clamp(20px, 5vw, 36px);
  background:
    repeating-linear-gradient(
      180deg,
      #3d0808 0px,
      #8b1a1a 4px,
      #5c0e0e 8px,
      #7a1515 12px
    );
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  z-index: 4;
}

.cinema-stage {
  position: relative;
  z-index: 2;
  width: min(92vw, 640px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cinema-now-showing {
  font-family: 'Special', 'Vintage', serif;
  font-size: clamp(11px, 2.8vw, 14px);
  letter-spacing: 0.35em;
  color: var(--amber-200);
  text-shadow: 0 0 12px rgba(255, 179, 0, 0.4);
  margin-bottom: 10px;
  opacity: 0.85;
  animation: marquee-blink 2.4s ease-in-out infinite;
}
@keyframes marquee-blink {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.45; }
}

.cinema-screen-frame {
  position: relative;
  width: 100%;
  padding: clamp(8px, 2vw, 14px);
  background: linear-gradient(160deg, #2a2a2a 0%, #111 40%, #0a0a0a 100%);
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 0 3px #0d0d0d,
    0 4px 0 #000,
    0 24px 48px rgba(0, 0, 0, 0.85),
    0 0 60px rgba(255, 160, 60, 0.14),
    0 0 120px rgba(255, 120, 30, 0.07);
}

.cinema-screen-inner {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border-radius: 3px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.9);
}
.cinema-screen-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: screen-warmup 1.2s ease;
}
.cinema-audio-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.15s, color 0.15s;
}
.cinema-audio-btn:hover { background: rgba(0, 0, 0, 0.78); }
.cinema-audio-btn.is-on { color: var(--amber); }
.cinema-audio-btn svg { width: 20px; height: 20px; fill: currentColor; }
.cinema-audio-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
@keyframes screen-warmup {
  from { opacity: 0; filter: brightness(2); }
  to { opacity: 1; filter: brightness(1); }
}

.cinema-screen-shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 48%,
    transparent 56%
  );
  animation: screen-shimmer 4s ease-in-out infinite;
}
@keyframes screen-shimmer {
  0%, 100% { opacity: 0.3; transform: translateX(-5%); }
  50% { opacity: 0.6; transform: translateX(5%); }
}

.cinema-screen-glow {
  position: absolute;
  inset: -30%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 180, 80, 0.18) 0%, transparent 65%);
  animation: glow-pulse 3s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

.cinema-marquee {
  margin-top: clamp(16px, 4vw, 24px);
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 179, 0, 0.15);
  border-bottom: 1px solid rgba(255, 179, 0, 0.15);
  background: linear-gradient(180deg, rgba(183, 28, 28, 0.08) 0%, transparent 100%);
}
.cinema-marquee-lights {
  display: block;
  font-size: 10px;
  letter-spacing: 0.6em;
  color: var(--amber);
  opacity: 0.55;
  margin-bottom: 8px;
  animation: lights-chase 1.8s step-start infinite;
}
@keyframes lights-chase {
  0%, 33% { opacity: 0.55; }
  34%, 66% { opacity: 0.25; }
  67%, 100% { opacity: 0.75; }
}

.loading .phase {
  font-family: 'Special', 'Vintage', serif;
  font-size: clamp(15px, 3.8vw, 20px);
  color: var(--amber-100);
  min-height: 1.6em;
  line-height: 1.4;
  text-shadow: 0 0 20px rgba(255, 179, 0, 0.25);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.loading .phase.is-visible {
  opacity: 1;
  transform: none;
}

.cinema-audience {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(48px, 14vw, 90px);
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.85) 40%, transparent 100%),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 18px,
      rgba(20, 20, 20, 0.9) 18px,
      rgba(30, 30, 30, 0.7) 22px,
      transparent 22px,
      transparent 40px
    );
  mask-image: linear-gradient(to top, black 30%, transparent 100%);
}

.loading .label { margin-top: 16px; font-size: 18px; color: var(--amber); }
.loading .sub {
  margin-top: 12px;
  font-size: 14px;
  color: var(--white70);
  max-width: 90%;
  min-height: 2.4em;
}

/* Stato di caricamento centrale (spinner) */
.center-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 16px;
}
.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255,179,0,0.25);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.center-state .msg { color: var(--amber); }

/* ===== Lista film (risultati) ===== */
.movies { padding: 16px; }
.movie-card {
  background: var(--card);
  border: 1px solid var(--primary);
  border-radius: 12px;
  margin-bottom: 16px;
  padding: 12px;
  display: flex;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,0.45);
  transition: transform 0.15s;
}
.movie-card:hover { transform: translateY(-2px); }
.movie-poster {
  width: 110px;
  height: 160px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  background: #111;
}
.movie-info { flex: 1; min-width: 0; }
.movie-head { display: flex; align-items: flex-start; gap: 8px; }
.movie-title {
  flex: 1;
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--amber-400);
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.movie-score {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(183,28,28,0.8);
  background: transparent;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.score-num  { font-size: 15px; font-weight: 800; line-height: 1; }
.score-denom { font-size: 8px; opacity: 0.65; letter-spacing: 0.05em; }
.movie-score.score-high { border-color: var(--green); color: var(--green); }
.movie-score.score-mid  { border-color: var(--amber); color: var(--amber); }
.movie-score.score-low  { border-color: var(--primary); color: rgba(255,100,100,0.9); }
.movie-desc {
  font-size: 15px;
  color: var(--amber-100);
  line-height: 1.4;
  margin: 8px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.movie-why {
  font-size: 13px;
  color: var(--amber-100);
  font-style: italic;
  line-height: 1.4;
  margin: 6px 0 0;
}
.movie-tagline {
  color: var(--amber-200);
  font-style: italic;
  font-size: 13px;
  line-height: 1.35;
  margin: 4px 0 0;
}
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}
.movie-meta .card-chip {
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 12px;
  line-height: 1.5;
  text-transform: capitalize;
}
.movie-meta .chip-year,
.movie-meta .chip-runtime {
  background: rgba(255,255,255,0.07);
  color: var(--grey-400);
}
.movie-meta .chip-tmdb {
  background: rgba(33,150,243,0.12);
  color: #90CAF9;
}
.movie-meta .chip-genre-tmdb {
  background: rgba(255,179,0,0.1);
  color: var(--amber-200);
}
.movie-credits {
  font-size: 12px;
  color: var(--white70);
  line-height: 1.4;
  margin: 6px 0 0;
}

/* ===== Stato errore ===== */
.error-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 24px;
}
.error-state .msg { color: var(--amber); }

/* ===== Toast ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(40px);
  background: #323232;
  color: #fff;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  max-width: 90%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 100;
  margin-bottom: env(safe-area-inset-bottom);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Modale ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 24px;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: rgba(0,0,0,0.87);
  border-radius: 12px;
  padding: 20px;
  max-width: 360px;
  width: 100%;
}
.modal-title { color: var(--amber); font-size: 20px; margin: 0 0 12px; }
.modal-body { color: var(--amber-100); font-size: 14px; white-space: pre-wrap; line-height: 1.5; }
.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 12px 8px;
  cursor: pointer;
  border-radius: 8px;
}
.lang-option:hover { background: rgba(255,255,255,0.06); }
.lang-option.active { color: var(--amber); font-weight: bold; }
.modal-actions { display: flex; justify-content: flex-end; margin-top: 12px; }

/* ===== About dialog ===== */
.about-dialog { color: var(--amber-100); }
.about-tagline {
  font-size: 14px;
  font-style: italic;
  color: var(--white70);
  margin: 0 0 20px;
  line-height: 1.5;
}
.about-steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.about-step-num {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--amber);
  color: var(--amber);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-step-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--amber-100);
  padding-top: 3px;
}
.about-credits {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin: 0 0 14px;
  text-align: center;
}
.about-attr-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin: 0 0 8px;
  text-align: center;
}
.about-attr-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.about-attr-link {
  font-size: 12px;
  color: var(--amber);
  text-decoration: none;
  background: rgba(255,179,0,0.08);
  border: 1px solid rgba(255,179,0,0.25);
  border-radius: 999px;
  padding: 4px 10px;
  transition: background 0.15s, border-color 0.15s;
}
.about-attr-link:hover { background: rgba(255,179,0,0.18); border-color: var(--amber); }

/* ===== Accessibilità: focus da tastiera ===== */
/* Niente outline col mouse, solo con tastiera (focus-visible) */
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
.icon-btn:focus-visible { outline-offset: 0; }

/* ===== Skeleton/shimmer poster ===== */
.skeleton {
  background: linear-gradient(100deg, #1a1a1a 30%, #2c2c2c 50%, #1a1a1a 70%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
  .quiz { animation: none; }
  .view, .view--enter-right, .view--enter-left, .view--enter-fade { animation: none; }
  .view--cinema,
  .cinema-screen-inner video,
  .cinema-screen-shimmer,
  .cinema-screen-glow,
  .cinema-now-showing,
  .cinema-marquee-lights { animation: none; }
}

/* ===== Quiz: barra di progresso + risposta selezionata + testo libero ===== */
.quiz-bar {
  height: 6px;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}
.quiz-bar > i { display: block; height: 100%; background: var(--amber); border-radius: 999px; transition: width 0.3s ease; }
.answer-btn.selected { border-color: var(--amber); background: rgba(40,28,0,0.95); font-weight: 600; }
.answer-btn.selected::after { content: '✓'; float: right; color: var(--amber); font-weight: bold; }
.answer-btn:active { transform: scale(0.98); background: rgba(30,22,0,0.92); }

/* Domanda aperta: chip suggeriti toccabili + "Salta" */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 16px; }
.chip {
  background: rgba(18,18,18,0.88);
  color: var(--amber-100);
  border: 1.5px solid rgba(255,179,0,0.5);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.chip:hover { background: rgba(30,22,0,0.92); border-color: var(--amber); }
.quiz-skip { text-align: center; margin-top: 8px; }
.free-answer { display: flex; flex-direction: column; gap: 12px; }
.free-answer input {
  width: 100%;
  background: rgba(0,0,0,0.5);
  color: var(--amber-100);
  border: 1.5px solid rgba(255,179,0,0.5);
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-family: inherit;
}
.free-answer input::placeholder { color: var(--white70); }

/* ===== Card film: indicatore "apri" ===== */
.movie-chevron { align-self: center; flex: 0 0 auto; color: var(--amber); opacity: 0.45; transition: opacity 0.15s; }
.movie-card:hover .movie-chevron, .movie-card:focus-visible .movie-chevron { opacity: 1; }

/* ===== Dettaglio film ===== */
.movie-detail { padding: 16px 20px 24px; display: flex; flex-direction: column; align-items: center; }
.movie-detail .poster-big {
  width: 200px;
  max-width: 60%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #111;
  box-shadow: 0 8px 22px rgba(0,0,0,0.55);
  transition: box-shadow 0.4s ease;
}
/* Genre glow on poster */
.poster-big[data-genre="azione"]     { box-shadow: 0 8px 28px rgba(183,28,28,0.55); }
.poster-big[data-genre="avventura"]  { box-shadow: 0 8px 28px rgba(255,179,0,0.45); }
.poster-big[data-genre="animazione"] { box-shadow: 0 8px 28px rgba(255,214,0,0.45); }
.poster-big[data-genre="commedia"]   { box-shadow: 0 8px 28px rgba(255,193,7,0.45); }
.poster-big[data-genre="fantascienza"]{ box-shadow: 0 8px 28px rgba(33,150,243,0.45); }
.poster-big[data-genre="fantasy"]    { box-shadow: 0 8px 28px rgba(156,39,176,0.45); }
.poster-big[data-genre="horror"]     { box-shadow: 0 8px 28px rgba(100,0,0,0.7); }
.poster-big[data-genre="thriller"]   { box-shadow: 0 8px 28px rgba(55,71,79,0.7); }
.poster-big[data-genre="dramma"]     { box-shadow: 0 8px 28px rgba(78,52,46,0.7); }
.poster-big[data-genre="romantico"]  { box-shadow: 0 8px 28px rgba(233,30,99,0.45); }
.poster-big[data-genre="documentario"]{ box-shadow: 0 8px 28px rgba(38,166,154,0.45); }
.poster-big[data-genre="storico"]    { box-shadow: 0 8px 28px rgba(121,85,72,0.55); }
.movie-detail h2 {
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--amber-400);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin: 16px 0 4px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.movie-detail .orig { color: var(--white70); font-size: 13px; text-align: center; margin: 0 0 12px; }
.movie-detail .meta { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.movie-detail .genre-chip,
.movie-detail .chip-year,
.movie-detail .chip-runtime,
.movie-detail .chip-tmdb {
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  text-transform: capitalize;
}
.movie-detail .genre-chip {
  background: rgba(255,179,0,0.15);
  color: var(--amber-100);
}
.movie-detail .chip-year {
  background: rgba(255,255,255,0.07);
  color: var(--grey-400);
}
.movie-detail .chip-runtime {
  background: rgba(255,255,255,0.07);
  color: var(--grey-400);
}
.movie-detail .chip-tmdb {
  background: rgba(33,150,243,0.12);
  color: #90CAF9;
}
.movie-detail .chip-genre-tmdb {
  background: rgba(255,179,0,0.1);
  color: var(--amber-200);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
}
.movie-detail .chip-country {
  background: rgba(255,255,255,0.05);
  color: var(--grey-400);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
}
.movie-detail .tagline {
  color: var(--amber-200);
  font-style: italic;
  font-size: 14px;
  text-align: center;
  margin: 0 0 12px;
  line-height: 1.35;
  max-width: 32rem;
}
.movie-detail .credits-line {
  color: var(--white70);
  font-size: 13px;
  text-align: center;
  line-height: 1.45;
  margin: 0 0 16px;
  max-width: 36rem;
}
.movie-detail .tmdb-label {
  color: var(--grey-400);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 6px;
}
.movie-detail .tmdb-overview {
  color: var(--grey-400);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}
.movie-detail .why-hero {
  width: 100%;
  margin: 4px 0 20px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(255, 179, 0, 0.12) 0%, rgba(255, 179, 0, 0.04) 100%);
  border-left: 4px solid var(--amber);
  border-radius: 0 14px 14px 0;
  box-sizing: border-box;
}
.movie-detail .why-hero-label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}
.movie-detail .why-hero-critic {
  display: flex;
  align-items: center;
  gap: 6px;
}
.movie-detail .why-hero-avatar {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
  flex: 0 0 auto;
}
.movie-detail .why-hero-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--amber-100);
  font-style: normal;
}
.why-fade-in { animation: whyFadeIn 0.45s ease both; }
@keyframes whyFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
/* Loader "ci sto pensando": etichetta + tre puntini lampeggianti. */
.movie-detail .thinking {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--amber-100);
  font-size: 16px;
}
.thinking-label { font-style: italic; opacity: 0.9; }
.thinking-dots { display: inline-flex; gap: 5px; }
.thinking-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  display: inline-block;
  animation: thinkingBlink 1.2s infinite ease-in-out both;
}
.thinking-dots i:nth-child(2) { animation-delay: 0.18s; }
.thinking-dots i:nth-child(3) { animation-delay: 0.36s; }
@keyframes thinkingBlink {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}
.movie-detail .tmdb-synopsis-slot { width: 100%; margin-bottom: 8px; }
.movie-detail .tmdb-block { width: 100%; margin: 0 0 20px; padding-top: 4px; }

/* "Dove guardarlo" — loghi provider (JustWatch via TMDB). */
.movie-detail .watch-providers {
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  box-sizing: border-box;
}
.movie-detail .watch-providers .tmdb-label { color: var(--amber); }
.watch-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.watch-group-label {
  flex: 0 0 auto;
  min-width: 92px;
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-400);
}
.watch-logos { display: flex; flex-wrap: wrap; gap: 8px; }
.watch-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
a.watch-logo:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.35); }
.watch-logo img { width: 40px; height: 40px; object-fit: cover; display: block; border-radius: 9px; }
.watch-logo-text {
  font-size: 9px;
  font-weight: 700;
  color: var(--white70);
  text-align: center;
  padding: 0 3px;
  line-height: 1.05;
}
.watch-attribution {
  display: block;
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--grey-400);
  text-decoration: none;
  opacity: 0.85;
}
a.watch-attribution:hover { opacity: 1; text-decoration: underline; }

.detail-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.detail-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: none;
  color: var(--amber);
  border: 1.5px solid rgba(255,179,0,0.5);
  border-radius: 12px;
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}
.detail-action:hover { background: rgba(255,179,0,0.1); }
.detail-action.primary { background: var(--amber); color: rgba(0,0,0,0.87); border-color: var(--amber); }
.detail-action.primary:hover { filter: brightness(1.08); }

.movie-detail .tmdb-attribution {
  width: 100%;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.tmdb-attribution-link {
  display: inline-flex;
  line-height: 0;
  opacity: 0.92;
  transition: opacity 0.15s;
}
.tmdb-attribution-link:hover { opacity: 1; }
.tmdb-attribution-logo {
  width: 72px;
  height: 72px;
  display: block;
}
.tmdb-attribution-text {
  margin: 0;
  max-width: 22rem;
  font-size: 11px;
  line-height: 1.45;
  color: var(--grey-400);
}
.tmdb-attribution-subtext {
  margin: 0;
  max-width: 22rem;
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--grey-400);
}

/* Attribuzione Wikipedia: subito sotto la locandina, compatta e discreta. */
.wiki-attribution {
  width: 100%;
  margin: 8px 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.wiki-attribution-link {
  display: inline-flex;
  line-height: 0;
  flex-shrink: 0;
  opacity: 0.9;
  transition: opacity 0.15s;
}
.wiki-attribution-link:hover { opacity: 1; }
.wiki-attribution-logo {
  width: 22px;
  height: 22px;
  display: block;
}
.wiki-attribution-text {
  margin: 0;
  max-width: 20rem;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--grey-400);
}

/* ===== Risultati: altri consigli ===== */
.more-btn-wrap { padding: 0 16px 24px; }

/* ===== Responsive ===== */
@media (max-width: 479px) {
  .movie-card {
    flex-direction: column;
  }
  .movie-poster {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center top;
  }
}

@media (min-width: 600px) {
  .critic-grid { grid-template-columns: repeat(3, 1fr); }

  .movie-detail {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0 24px;
    align-items: start;
    padding: 20px 24px 32px;
  }
  .movie-detail .poster-big {
    grid-row: 1 / 10;
    grid-column: 1;
    width: 100%;
    max-width: none;
    position: sticky;
    top: 72px;
    margin-bottom: 0;
  }
  .movie-detail h2,
  .movie-detail .orig,
  .movie-detail .meta,
  .movie-detail .why-hero,
  .movie-detail .tmdb-synopsis-slot,
  .movie-detail .detail-actions,
  .movie-detail .tagline,
  .movie-detail .credits-line,
  .movie-detail .tmdb-block,
  .movie-detail .tmdb-attribution { grid-column: 2; width: 100%; }
  .movie-detail .tmdb-attribution { grid-column: 1 / -1; }
  .movie-detail h2 { text-align: left; margin-top: 0; }
  .movie-detail .orig { text-align: left; }
  .movie-detail .why-hero { text-align: left; }
  .movie-detail .tmdb-synopsis-slot,
  .movie-detail .tmdb-block { text-align: left; }
}
