:root {
  --bg: #08080b;
  --bg2: #14141b;
  --bg3: #1c1c25;
  --line: #ffffff14;
  --text: #f5f5f7;
  --muted: #a1a1ad;
  --accent: #e50914;
  --accent2: #ff3b3b;
  --gold: #ffc24b;
  --green: #46d369;
  --radius: 10px;
  --pad: clamp(16px, 4vw, 60px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.hidden { display: none !important; }
.ic { flex: 0 0 auto; display: block; }
::selection { background: var(--accent); }

/* ---------- barra superiore */
#topbar { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 30px;
  padding: calc(env(safe-area-inset-top) + 14px) var(--pad) 14px;
  background: linear-gradient(#000b, #0000); transition: background .35s, backdrop-filter .35s; }
#topbar.solid { background: #08080bd9; backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line); }
.logo { font-weight: 900; font-size: 27px; letter-spacing: -1.2px; color: var(--accent); text-shadow: 0 2px 18px #e5091455; }
.logo span { color: var(--text); text-shadow: none; }
.logo.big { font-size: 48px; text-align: center; margin-bottom: 14px; }
nav { display: flex; gap: 22px; }
nav a { color: #c9c9d1; font-weight: 500; font-size: 15px; position: relative; transition: color .2s; }
nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform .25s var(--ease); }
nav a.active { color: #fff; font-weight: 700; }
nav a.active::after { transform: scaleX(1); }
nav a:hover { color: #fff; }
.tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
#search { background: #0009 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23a1a1ad" stroke-width="2.4" stroke-linecap="round"><circle cx="11" cy="11" r="7"/><path d="M20 20l-4-4"/></svg>') no-repeat 12px center;
  border: 1px solid #ffffff30; color: var(--text); border-radius: 999px; padding: 9px 14px 9px 36px; width: 210px;
  font-size: 14px; transition: width .3s var(--ease), border-color .2s, background-color .2s; }
#search:focus { outline: none; border-color: #fff; width: 280px; background-color: #000c; }
.icon-btn { background: none; border: 0; font-size: 20px; width: 40px; height: 40px; border-radius: 50%; color: #ddd; }
.icon-btn:hover, .icon-btn:focus-visible { background: #ffffff1f; color: #fff; outline: none; }
a.icon-btn { display: inline-grid; place-items: center; }
.user-name { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; font-weight: 800;
  font-size: 15px; background: linear-gradient(135deg, #e50914, #ff7a45); color: #fff; overflow: hidden; }

/* ---------- pulsanti */
.btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn { border: 0; border-radius: 8px; padding: 11px 24px; font-weight: 700; font-size: 16px;
  display: inline-flex; align-items: center; gap: 10px; background: #6d6d6eb3; color: #fff;
  transition: transform .15s var(--ease), filter .2s, background .2s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: #fff; color: #000; }
.btn.glass { background: #ffffff26; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn.round { padding: 0; width: 46px; height: 46px; justify-content: center; border-radius: 50%; border: 2px solid #ffffff55; background: #0006; }
.btn:hover { filter: brightness(.88); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
a.btn { text-decoration: none; }

/* ---------- in evidenza */
.page { padding-top: 90px; animation: fade .45s var(--ease); }
.page.with-hero { padding-top: 0; }
@keyframes fade { from { opacity: 0; } }
.hero { position: relative; height: min(88vh, 60vw); min-height: 440px; overflow: hidden; display: flex; align-items: flex-end;
  padding: 0 var(--pad) 15vh; }
.hero-slide { position: absolute; inset: 0; background: #111 center 20% / cover; opacity: 0; transform: scale(1.08);
  transition: opacity 1.2s ease, transform 10s linear; }
.hero-slide.on { opacity: 1; transform: scale(1); }
.hero-shade { position: absolute; inset: 0;
  background: linear-gradient(90deg, #08080bf0 0%, #08080b99 35%, #08080b00 65%),
              linear-gradient(0deg, var(--bg) 0%, #08080b00 38%), linear-gradient(#0008, #0000 22%); }
.hero-content { position: relative; z-index: 1; max-width: 600px; transition: opacity .25s, transform .25s; }
.hero-content.swap { opacity: 0; transform: translateY(8px); }
.hero-kicker { font-size: 13px; font-weight: 800; letter-spacing: 4px; text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 72px); line-height: .98; margin: 0 0 14px; font-weight: 900; letter-spacing: -1.5px;
  text-shadow: 0 4px 30px #0009; }
.hero-meta { display: flex; gap: 14px; flex-wrap: wrap; color: #d7d7de; font-size: 15px; margin-bottom: 12px; }
.hero p { color: #e2e2e8; font-size: clamp(14px, 1.3vw, 17px); display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 22px; text-shadow: 0 2px 12px #000a; }
.match { color: var(--gold); font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.hero-dots { position: absolute; right: var(--pad); bottom: 16vh; z-index: 2; display: flex; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 9px; border: 0; padding: 0; background: #ffffff55; transition: width .3s var(--ease), background .3s; }
.dot.on { width: 26px; background: #fff; }

/* ---------- righe */
.rows { position: relative; z-index: 2; padding-bottom: 40px; }
.with-hero .rows { margin-top: -11vh; }
.row { margin: 0 0 30px; }
.row h2 { font-size: clamp(17px, 1.5vw, 22px); margin: 0 var(--pad) 10px; font-weight: 800; letter-spacing: -.2px; }
.strip-wrap { position: relative; }
.strip { display: flex; gap: 10px; overflow-x: auto; padding: 10px var(--pad) 22px; scroll-snap-type: x proximity;
  scroll-padding: 0 var(--pad); scrollbar-width: none; overscroll-behavior-x: contain; }
.strip::-webkit-scrollbar { display: none; }
.arrow { position: absolute; top: 10px; bottom: 22px; z-index: 4; width: calc(var(--pad) - 6px); min-width: 36px; border: 0;
  display: grid; place-items: center; color: #fff; opacity: 0; transition: opacity .25s; }
.arrow.left { left: 0; background: linear-gradient(90deg, #08080bdd, #08080b00); }
.arrow.right { right: 0; background: linear-gradient(270deg, #08080bdd, #08080b00); }
.strip-wrap:hover .arrow { opacity: 1; }
@media (hover: none) { .arrow { display: none; } }

/* ---------- copertine */
.card { flex: 0 0 auto; width: clamp(118px, 12.5vw, 200px); aspect-ratio: 2/3; border-radius: var(--radius); position: relative;
  overflow: hidden; border: 0; padding: 0; background: var(--bg3); scroll-snap-align: start;
  transition: transform .3s var(--ease), box-shadow .3s; box-shadow: 0 4px 14px #0006; }
.card.wide { width: clamp(220px, 22vw, 340px); aspect-ratio: 16/9; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.card img.in { opacity: 1; }
.card:hover, .card:focus-visible { transform: scale(1.07) translateY(-4px); z-index: 3; outline: none;
  box-shadow: 0 18px 40px #000c, 0 0 0 2px #fff; }
.card .ph { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 14px; text-align: left;
  background: radial-gradient(circle at 30% 20%, #3a1a22, #14141b 70%); }
.card .ph span { font-weight: 800; font-size: 16px; line-height: 1.15; }
.card-info { position: absolute; inset: auto 0 0 0; padding: 34px 12px 12px; text-align: left;
  background: linear-gradient(#0000, #000e 75%); display: grid; gap: 2px; opacity: 0; transform: translateY(8px);
  transition: opacity .25s, transform .25s var(--ease); }
.card-info b { font-size: 14px; line-height: 1.2; }
.card-info span { font-size: 12px; color: #cfcfd6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card:hover .card-info, .card:focus-visible .card-info, .card.wide .card-info { opacity: 1; transform: none; }
.card.wide .card-info { padding-bottom: 16px; }
.bar { position: absolute; left: 10px; right: 10px; bottom: 7px; height: 4px; border-radius: 4px; background: #ffffff40; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(118px, 12.5vw, 190px), 1fr));
  gap: 18px 12px; padding: 0 var(--pad) 50px; }
.grid .card { width: 100%; }
.page-title { margin: 12px var(--pad) 20px; font-size: clamp(26px, 3vw, 36px); font-weight: 900; letter-spacing: -.5px;
  display: flex; align-items: baseline; gap: 14px; }
.page-title small { font-size: 15px; color: var(--muted); font-weight: 500; }
.empty { padding: 28vh var(--pad); text-align: center; color: var(--muted); }
.empty a { color: #fff; text-decoration: underline; }
.empty-inline { padding: 0 var(--pad); color: var(--muted); }

/* ---------- caricamento */
.sk, .skeleton-hero { background: linear-gradient(100deg, #15151c 30%, #20202a 50%, #15151c 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite; }
.sk-title { display: inline-block; width: 180px; height: 20px; border-radius: 6px; }
.skeleton-hero { height: 70vh; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ---------- scheda */
.modal { position: fixed; inset: 0; z-index: 40; background: #000c; overflow-y: auto; padding: 5vh 0;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .25s; }
.modal-box { position: relative; width: min(940px, 100%); margin: 0 auto; background: #15151c; border-radius: 14px;
  overflow: hidden; box-shadow: 0 30px 80px #000; animation: pop .35s var(--ease); }
@keyframes pop { from { transform: translateY(24px) scale(.97); opacity: 0; } }
.d-hero { position: relative; aspect-ratio: 16/8.2; background: #222 center 20% / cover; display: flex; align-items: flex-end;
  padding: 32px; }
.d-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #15151c 2%, #15151c00 60%),
  linear-gradient(90deg, #15151cb3, #15151c00 60%); }
.d-hero > * { position: relative; z-index: 1; }
.d-hero h1 { margin: 0 0 18px; font-size: clamp(28px, 4.2vw, 46px); font-weight: 900; letter-spacing: -1px; line-height: 1;
  text-shadow: 0 3px 20px #000a; }
.d-close { position: absolute; top: 14px; right: 14px; z-index: 3; background: #15151ccc; width: 42px; height: 42px; }
.d-body { padding: 6px 32px 32px; }
.meta { color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; font-size: 15px; }
.meta .q { border: 1px solid #ffffff55; border-radius: 4px; padding: 0 6px; font-size: 12px; font-weight: 800; color: #ddd; }
.d-body p { margin: 0 0 16px; font-size: 16px; line-height: 1.55; color: #e6e6ea; max-width: 720px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.chips span { background: #ffffff12; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: #ddd; }
.season-bar { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 10px; }
.season-bar h3 { margin: 0; font-size: 22px; font-weight: 800; }
select { background: #23232d; color: var(--text); border: 1px solid #44444f; border-radius: 8px; padding: 9px 14px; font-size: 15px; }
.ep { display: grid; grid-template-columns: 34px 168px 1fr; gap: 16px; align-items: center; padding: 14px 12px;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 10px; background: none; text-align: left; width: 100%;
  transition: background .2s; }
.ep:hover, .ep:focus-visible { background: #22222c; outline: none; }
.ep .num { font-size: 24px; color: var(--muted); text-align: center; font-weight: 300; }
.ep .thumb { aspect-ratio: 16/9; border-radius: 6px; background: #2a2a35 center/cover; position: relative; overflow: hidden; }
.ep h4 { margin: 0 0 4px; font-size: 15px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.ep h4 small { color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.ep p { margin: 0; color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.ep .dl { color: var(--muted); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.ep .dl:hover { color: #fff; background: #ffffff1a; }

/* ---------- player */
#player { position: fixed; inset: 0; z-index: 60; background: #000; }
#video { width: 100%; height: 100%; background: #000; }
.player-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 12px) 18px 40px; background: linear-gradient(#000c, #0000);
  transition: opacity .4s; font-weight: 700; font-size: 17px; }
#player.idle .player-top { opacity: 0; pointer-events: none; }
.next-up { position: absolute; right: 28px; bottom: 96px; background: #15151cf2; border-radius: 14px; padding: 18px;
  width: min(360px, 90vw); box-shadow: 0 20px 50px #000; animation: pop .35s var(--ease); }
.next-up h4 { margin: 0 0 4px; }
.next-up p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }

/* ---------- accesso */
.login { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
  background: radial-gradient(ellipse at 20% 10%, #5a0a12 0%, transparent 55%),
              radial-gradient(ellipse at 90% 100%, #2a0b40 0%, transparent 50%), var(--bg); }
.login form { display: flex; flex-direction: column; gap: 12px; width: min(360px, 88vw); background: #0b0b10c0;
  border: 1px solid var(--line); border-radius: 18px; padding: 34px 28px; backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); box-shadow: 0 30px 80px #000a; animation: pop .45s var(--ease); }
.login-title { text-align: center; font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.login input { padding: 15px 16px; border-radius: 10px; border: 1px solid #3a3a46; background: #17171f; color: #fff; font-size: 16px; }
.login input:focus { outline: 2px solid #fff; outline-offset: 1px; }
.login form .btn { justify-content: center; padding: 14px; margin-top: 4px; }
#loginError { color: var(--accent2); min-height: 1em; margin: 0; text-align: center; font-size: 14px; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 90; background: #fff; color: #000;
  padding: 12px 20px; border-radius: 10px; font-weight: 700; box-shadow: 0 10px 30px #0008; animation: pop .3s var(--ease); }

@media (max-width: 700px) {
  #topbar { gap: 14px; flex-wrap: wrap; row-gap: 10px; }
  .logo { font-size: 23px; }
  nav { gap: 16px; font-size: 14px; }
  .tools { width: 100%; order: 3; margin: 0; }
  #search, #search:focus { flex: 1; width: auto; }
  .page { padding-top: 130px; }
  .hero { height: 78vh; padding-bottom: 12vh; align-items: flex-end; }
  .hero-shade { background: linear-gradient(0deg, var(--bg) 4%, #08080b88 45%, #08080b22 70%), linear-gradient(#000a, #0000 25%); }
  .hero-content { text-align: center; margin: 0 auto; }
  .hero-meta, .hero .btns { justify-content: center; }
  .hero-dots { left: 0; right: 0; justify-content: center; bottom: 5vh; }
  .with-hero .rows { margin-top: 0; }
  .ep { grid-template-columns: 116px 1fr; }
  .ep .num { display: none; }
  .d-hero { aspect-ratio: 4/3.4; padding: 20px; }
  .d-body { padding: 4px 18px 26px; }
  .modal { padding: 0; }
  .modal-box { border-radius: 0; min-height: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- voti, salta intro, desideri */
.ratings { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 4px 0 14px; }
.badge-imdb { background: #f5c518; color: #000; border-radius: 5px; padding: 3px 8px; font-size: 13px; font-weight: 800; }
.badge-rt { background: #ffffff14; border-radius: 5px; padding: 3px 8px; font-size: 13px; }
.my-stars { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.star { background: none; border: 0; padding: 4px; color: #ffffff40; border-radius: 6px; transition: transform .15s, color .15s; }
.star.on { color: var(--gold); }
.star:hover, .star:focus-visible { transform: scale(1.2); color: var(--gold); outline: none; }
.my-stars:hover .star { color: var(--gold); }
.my-stars .star:hover ~ .star { color: #ffffff40; }
.muted-small { color: var(--muted); font-size: 13px; margin-left: 6px; }
.cast { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.skip-intro { position: absolute; right: 40px; bottom: 110px; z-index: 5; background: #fff; color: #000; border: 0;
  border-radius: 8px; padding: 14px 26px; font-weight: 800; font-size: 17px; box-shadow: 0 10px 30px #000a;
  animation: pop .3s var(--ease); }
.skip-intro:hover, .skip-intro:focus-visible { filter: brightness(.9); outline: 3px solid #fff; outline-offset: 3px; }
.wish-box { display: flex; gap: 24px; padding: 34px; align-items: flex-start; }
.wish-box img { width: 200px; border-radius: 10px; box-shadow: 0 10px 30px #000a; }
.wish-box h2 { margin: 6px 0 10px; font-size: 30px; }
@media (max-width: 700px) { .wish-box { flex-direction: column; padding: 60px 20px 24px; } .wish-box img { width: 150px; } }

/* X per togliere da "Continua a guardare" */
.card-x { position: absolute; top: 8px; right: 8px; z-index: 4; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0,0,0,.65); color: #fff; border: 1px solid rgba(255,255,255,.35);
  opacity: 0; transition: opacity .2s, background .2s, transform .2s; cursor: pointer; }
.card:hover .card-x, .card:focus-visible .card-x { opacity: 1; }
.card-x:hover { background: var(--accent, #e50914); transform: scale(1.1); }
@media (hover: none) { .card-x { opacity: 1; } }
.card.gone { opacity: 0; transform: scale(.85); transition: opacity .25s, transform .25s; }

/* trailer */
#trailerBox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.88); display: grid; place-items: center;
  animation: fadeIn .2s ease; backdrop-filter: blur(6px); }
#trailerBox .tr-frame { width: min(92vw, calc(84vh * 16 / 9)); aspect-ratio: 16/9; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.7); background: #000; }
#trailerBox iframe { width: 100%; height: 100%; border: 0; display: block; }
#trailerBox .tr-close { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

/* barra del player per i video riconfezionati */
.ctrl { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px;
  padding: 40px 18px calc(env(safe-area-inset-bottom) + 16px); background: linear-gradient(#0000, #000d); transition: opacity .4s; }
#player.idle .ctrl { opacity: 0; pointer-events: none; }
.c-btn { background: #ffffff1f; color: #fff; border: 0; border-radius: 999px; min-width: 44px; height: 40px; padding: 0 12px;
  font-weight: 800; font-size: 14px; cursor: pointer; }
.c-btn:hover { background: #fff; color: #000; }
.c-time { font-variant-numeric: tabular-nums; font-size: 13px; color: #e5e5ea; min-width: 52px; text-align: center; }
#cSeek { flex: 1; accent-color: var(--accent, #e50914); height: 6px; cursor: pointer; }

.p-end { margin-left: auto; text-align: right; display: flex; flex-direction: column; line-height: 1.2; }
.p-end b { font-size: 18px; }
.p-end small { color: #cfcfd6; font-weight: 500; font-size: 12px; }

/* ---------- animazione d'apertura */
#intro { position: fixed; inset: 0; z-index: 999; background: #000; display: grid; place-items: center;
  transition: opacity .55s ease; overflow: hidden; }
#intro.out { opacity: 0; pointer-events: none; }
.intro-logo { font-weight: 900; font-size: clamp(54px, 12vw, 150px); letter-spacing: -0.04em; color: var(--accent, #e50914);
  text-shadow: 0 0 40px #e5091466; animation: introIn 1.9s cubic-bezier(.2,.7,.2,1) forwards; }
.intro-logo span { color: #fff; text-shadow: 0 0 30px #ffffff33; }
@keyframes introIn {
  0%   { opacity: 0; transform: scale(.82); filter: blur(10px); letter-spacing: .12em; }
  35%  { opacity: 1; transform: scale(1); filter: blur(0); letter-spacing: -0.04em; }
  70%  { opacity: 1; transform: scale(1.04); text-shadow: 0 0 70px #e50914aa; }
  100% { opacity: 0; transform: scale(2.6); filter: blur(6px); }
}
@media (prefers-reduced-motion: reduce) { .intro-logo { animation-duration: .8s; } }

/* ---------- trailer muto in sottofondo */
iframe.bg-trailer { position: absolute !important; inset: 0; width: 100%; height: 100%; border: 0; z-index: 0 !important;
  opacity: 0; transition: opacity 1.2s ease; pointer-events: none; background: #000; }
iframe.bg-trailer.on { opacity: 1; }

/* ---------- scheda: cast, informazioni, righe */
.tagline { font-style: italic; color: #cfcfd6; margin: -4px 0 10px; font-size: 15px; }
.d-sec { margin: 28px 0 12px; font-size: 19px; font-weight: 800; }
.d-sec small { color: var(--muted); font-weight: 500; font-size: 13px; margin-left: 8px; }
.cast { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.person { flex: 0 0 104px; background: none; border: 0; color: inherit; text-align: center; cursor: pointer; padding: 0; }
.person .ph { display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 8px; border-radius: 50%;
  background: #2a2a33 center 20% / cover; font-size: 30px; font-weight: 800; color: #888; transition: transform .2s, box-shadow .2s; }
.person:hover .ph, .person:focus-visible .ph { transform: scale(1.06); box-shadow: 0 0 0 3px #fff; }
.person b { display: block; font-size: 13px; line-height: 1.2; }
.person small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; line-height: 1.2; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 24px; margin: 0; }
.info-grid dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.info-grid dd { margin: 2px 0 0; font-size: 14px; }
.info-grid a { color: #fff; text-decoration: underline; text-decoration-color: #ffffff55; }
.mrow { display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 14px; scrollbar-width: thin; }
.mrow .card { flex: 0 0 150px; }
.person-head { display: flex; gap: 26px; align-items: flex-start; margin: 10px 0 10px; }
.person-head .ph { flex: 0 0 160px; height: 220px; border-radius: 14px; background: #2a2a33 center / cover; }
.person-head .bio { color: #d6d6dd; max-width: 820px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 6;
  -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.person-head .bio.open { -webkit-line-clamp: unset; }
@media (max-width: 640px) { .person-head { flex-direction: column; } .person-head .ph { width: 140px; height: 190px; flex: none; } }

/* ---------- profili */
.user-name { cursor: pointer; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 7px;
  font-weight: 900; color: #fff; }
#gate { position: fixed; inset: 0; z-index: 300; background: var(--bg, #08080b); display: grid; place-items: center; animation: fadeIn .25s; }
.gate-in { text-align: center; }
.gate-in h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 900; margin: 0 0 34px; }
.gate-list { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; margin-bottom: 34px; }
.gate-p { background: none; border: 0; color: #a1a1ad; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gate-p .av { width: clamp(88px, 12vw, 140px); aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center;
  font-size: clamp(38px, 5vw, 60px); font-weight: 900; color: #fff; border: 3px solid transparent; transition: transform .2s, border-color .2s; }
.gate-p .av.add { background: #ffffff14; color: #a1a1ad; }
.gate-p:hover, .gate-p:focus-visible { color: #fff; }
.gate-p:hover .av, .gate-p:focus-visible .av { border-color: #fff; transform: scale(1.05); }
.gate-p b { font-size: 16px; font-weight: 600; }
.gate-p small { color: #f2c94c; margin-top: -6px; }
.gate-err { color: #ff6b6b; min-height: 1em; }

/* ---------- home: in primo piano, generi, "nuovo" */
.spotlight { position: relative; margin: 0 4% 0; height: clamp(220px, 30vw, 380px); border-radius: 16px; overflow: hidden; background: #15151c; }
.sp-media { position: absolute; top: 0; right: 0; bottom: 0; width: 72%; background: center / cover; }
.spotlight::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, #15151c 30%, #15151ccc 48%, #15151c00 75%); }
.sp-text { position: relative; z-index: 1; width: min(46%, 520px); padding: clamp(18px, 3vw, 36px); }
.sp-text h3 { font-size: clamp(22px, 3vw, 38px); font-weight: 900; margin: 0 0 8px; line-height: 1.05; }
.sp-text p { color: #d8d8de; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.strip.genres { display: flex; gap: 12px; overflow-x: auto; padding: 6px 4% 14px; scrollbar-width: none; }
.genre { flex: 0 0 clamp(150px, 16vw, 220px); aspect-ratio: 16/9; border-radius: 12px; position: relative; overflow: hidden;
  background: #22222c center / cover; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px;
  transition: transform .2s; }
.genre::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--c1), var(--c2) 55%, #0006); opacity: .82; }
.genre > * { position: relative; }
.genre b { font-size: 18px; font-weight: 900; }
.genre small { opacity: .85; }
.genre:hover, .genre:focus-visible { transform: scale(1.05); outline: 3px solid #fff; }
.badge-new { position: absolute; top: 6px; left: 6px; z-index: 2; background: var(--accent, #e50914); color: #fff; font-size: 10px;
  font-weight: 900; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; }
