/* ==========================================================================
   wcsf-candy — watch-candy-shorts-free.com
   Tre skin con gli stessi componenti: <html data-skin="candy|midnight|peach">.
   Tutti i colori passano dalle variabili: per cambiare skin basta l'attributo.
   ========================================================================== */

@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dmsans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dmsans-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

:root, [data-skin="candy"] {
	--bg: #fff5fa; --bg-2: #ffe8f2; --bg-3: #f6ecff;
	--card: #ffffff; --ink: #22102f; --ink-2: #4a3557; --muted: #806c8c; --line: #f1d5e5;
	--a1: #ff2e7e; --a2: #8b3dff; --a3: #ff9a52;
	--grad: linear-gradient(115deg, var(--a1) 0%, #c13cf0 52%, var(--a3) 100%);
	--grad-soft: linear-gradient(135deg, #ffe1ee 0%, #efe3ff 55%, #ffeedd 100%);
	--free: #0fbf8c; --free-bg: #dcfaef; --free-ink: #075f45;
	--acct: #2f7bff; --acct-bg: #e2edff; --acct-ink: #13408f;
	--lock: #3b2350; --lock-bg: #f1e8f7; --lock-ink: #3b2350;
	--spicy: #ff4d2e; --new: #ffb800;
	--shadow: 0 18px 40px -18px rgba(171, 26, 105, .35);
	--shadow-sm: 0 6px 18px -8px rgba(80, 20, 70, .25);
	--hero-ink: var(--ink); --header-bg: rgba(255, 245, 250, .78);
}
[data-skin="midnight"] {
	--bg: #120a1d; --bg-2: #1b0f2b; --bg-3: #221236;
	--card: #1e1230; --ink: #fbf1ff; --ink-2: #dccbe8; --muted: #a990bb; --line: #33204a;
	--a1: #ff3d8b; --a2: #a35bff; --a3: #ffb057;
	--grad-soft: linear-gradient(135deg, #2a1240 0%, #1c1035 55%, #301528 100%);
	--free-bg: #0c3a2e; --free-ink: #6ff2c7; --acct-bg: #10264d; --acct-ink: #9fc2ff; --lock-bg: #2c1c3f; --lock-ink: #e9d8f7; --lock: #e9d8f7;
	--shadow: 0 20px 50px -20px rgba(255, 61, 139, .45); --shadow-sm: 0 6px 18px -8px rgba(0, 0, 0, .6);
	--header-bg: rgba(18, 10, 29, .78);
}
[data-skin="peach"] {
	--bg: #fff8f1; --bg-2: #ffeedd; --bg-3: #ffe9e4;
	--card: #ffffff; --ink: #2a1712; --ink-2: #5a3a30; --muted: #8d6e62; --line: #f5dccb;
	--a1: #ff5a4e; --a2: #e8337a; --a3: #ffb43b;
	--grad: linear-gradient(115deg, #ff5a4e 0%, #e8337a 55%, #ffb43b 100%);
	--grad-soft: linear-gradient(135deg, #ffe7dc 0%, #ffe4ee 55%, #fff1d6 100%);
	--free: #0fb5a8; --free-bg: #d9f7f3; --free-ink: #075c55;
	--shadow: 0 18px 40px -18px rgba(214, 70, 40, .35);
	--header-bg: rgba(255, 248, 241, .8);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 "DM Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--a1); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--a2); }
h1, h2, h3, .display { font-family: "Bricolage", "DM Sans", sans-serif; letter-spacing: -.02em; line-height: 1.12; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--card); padding: 8px 12px; border-radius: 8px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); background: var(--header-bg); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.08rem/1 "Bricolage", sans-serif; letter-spacing: -.02em; white-space: nowrap; }
.brand__mark { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; box-shadow: var(--shadow-sm); transform: rotate(-6deg); }
.brand__mark svg { width: 22px; height: 22px; }
.brand__free { background: var(--free); color: #fff; font-size: .68rem; padding: 4px 7px; border-radius: 6px; letter-spacing: .06em; transform: translateY(-1px); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a, .nav button { font: 600 .95rem/1 "DM Sans", sans-serif; color: var(--ink-2); text-decoration: none; padding: 10px 12px; border-radius: 999px; background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav a[aria-current], .nav button:hover { background: var(--bg-2); color: var(--ink); }
.nav__drop { position: relative; }
.nav__menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 240px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 8px; box-shadow: var(--shadow); display: none; grid-template-columns: 1fr 1fr; gap: 2px; }
.nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu { display: grid; }
.nav__menu a { padding: 9px 12px; border-radius: 10px; font-size: .9rem; }
.age { font: 800 .72rem/1 "DM Sans"; border: 2px solid var(--ink-2); color: var(--ink-2); border-radius: 8px; padding: 5px 6px; }
.nav-toggle { display: none; margin-left: auto; background: var(--bg-2); border: 0; border-radius: 12px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }

/* ---------------------------------------------------------------- buttons, chips, badges */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem/1 "DM Sans", sans-serif; padding: 15px 22px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.btn--main { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn--main:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 22px 44px -16px rgba(171, 26, 105, .55); }
.btn--ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { color: var(--ink); border-color: var(--a1); }
.btn--free { background: var(--free); color: #fff; }
.btn--free:hover { color: #fff; filter: brightness(1.06); }
.btn--sm { padding: 10px 15px; font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 .85rem/1 "DM Sans"; padding: 8px 12px; border-radius: 999px; background: var(--card); color: var(--ink-2); border: 1px solid var(--line); text-decoration: none; cursor: pointer; }
.chip:hover, .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.badge { display: inline-flex; align-items: center; gap: 4px; font: 800 .68rem/1 "DM Sans"; letter-spacing: .05em; text-transform: uppercase; padding: 5px 8px; border-radius: 7px; white-space: nowrap; }
.badge--free { background: var(--free-bg); color: var(--free-ink); }
.badge--acct { background: var(--acct-bg); color: var(--acct-ink); }
.badge--lock { background: var(--lock-bg); color: var(--lock-ink); }
.badge--spicy { background: var(--spicy); color: #fff; }
.badge--new { background: var(--new); color: #2b1a00; }
.badge--twin { background: var(--grad); color: #fff; }
.badge--char { background: var(--bg-3); color: var(--ink-2); }

/* ---------------------------------------------------------------- home hero */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; background: radial-gradient(60% 50% at 80% 30%, color-mix(in srgb, var(--a2) 22%, transparent), transparent 70%), radial-gradient(50% 45% at 10% 20%, color-mix(in srgb, var(--a1) 20%, transparent), transparent 70%), radial-gradient(40% 40% at 60% 90%, color-mix(in srgb, var(--a3) 18%, transparent), transparent 70%); z-index: -1; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero__kicker { display: inline-flex; align-items: center; gap: 8px; font: 700 .85rem/1 "DM Sans"; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.hero__kicker b { color: var(--free); }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
.hero__lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 14px; }
.hero__note { font-size: .85rem; color: var(--muted); }
.fan { position: relative; height: 470px; }
.fan a { position: absolute; width: 46%; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); transition: transform .3s; aspect-ratio: 7/10; background: var(--bg-2); }
.fan a:nth-child(1) { left: 27%; top: 0; z-index: 3; transform: rotate(0deg); }
.fan a:nth-child(2) { left: 4%; top: 38px; z-index: 2; transform: rotate(-9deg); }
.fan a:nth-child(3) { right: 2%; top: 46px; z-index: 2; transform: rotate(8deg); }
.fan a:nth-child(4) { left: 14%; top: 120px; z-index: 1; transform: rotate(-17deg); opacity: .85; }
.fan a:nth-child(5) { right: 10%; top: 130px; z-index: 1; transform: rotate(16deg); opacity: .85; }
.fan a:hover { transform: scale(1.04) rotate(0deg); z-index: 5; }
.fan img { width: 100%; height: 100%; object-fit: cover; }
.fan__tag { position: absolute; left: 10px; bottom: 10px; }

/* free pass: i tre passi */
.pass { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0 0; }
.pass__step { position: relative; background: var(--card); border: 1.5px dashed var(--line); border-radius: 20px; padding: 18px 18px 16px 64px; box-shadow: var(--shadow-sm); }
.pass__step::before, .pass__step::after { content: ""; position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); transform: translateY(-50%); border: 1.5px dashed var(--line); }
.pass__step::before { left: -10px; } .pass__step::after { right: -10px; }
.pass__num { position: absolute; left: 16px; top: 18px; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font: 800 1.15rem/1 "Bricolage", sans-serif; color: #fff; }
.pass__step--1 .pass__num { background: var(--free); } .pass__step--2 .pass__num { background: var(--acct); } .pass__step--3 .pass__num { background: var(--grad); }
.pass__step strong { display: block; font: 800 1.02rem/1.2 "Bricolage"; margin-bottom: 4px; }
.pass__step span { font-size: .9rem; color: var(--muted); }

/* ---------------------------------------------------------------- sections & rails */
.band { padding: 44px 0; }
.band--tint { background: var(--grad-soft); }
.band__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.band__head h2 { margin: 0; }
.band__head p { margin: 4px 0 0; color: var(--muted); }
.band__more { font-weight: 700; white-space: nowrap; text-decoration: none; }
.rail { position: relative; }
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 200px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; scrollbar-width: thin; }
.rail__track > * { scroll-snap-align: start; }
.rail__btn { position: absolute; top: 38%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; z-index: 2; font-size: 1.2rem; }
.rail__btn--prev { left: -14px; } .rail__btn--next { right: -14px; }

/* poster card */
.pcard { position: relative; display: block; text-decoration: none; color: var(--ink); }
.pcard__img { position: relative; aspect-ratio: 7/10; border-radius: 18px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; }
.pcard:hover .pcard__img { transform: translateY(-4px); box-shadow: var(--shadow); }
.pcard__badges { position: absolute; top: 8px; left: 8px; right: 52px; display: flex; flex-wrap: wrap; gap: 4px; }
.pcard__rank { position: absolute; right: 8px; top: 8px; font: 800 .95rem/1 "Bricolage"; color: #fff; background: rgba(20, 6, 24, .62); backdrop-filter: blur(4px); padding: 6px 9px; border-radius: 10px; }
.pcard__rank::before { content: "#"; opacity: .7; margin-right: 1px; }
.pcard__title { font: 700 .98rem/1.25 "Bricolage", sans-serif; margin: 10px 2px 3px; letter-spacing: -.01em; }
.pcard__meta { font-size: .8rem; color: var(--muted); margin: 0 2px; }
.pcard__meta b { color: var(--free-ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 22px 16px; }

/* people */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.person { text-decoration: none; color: var(--ink); text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px 12px 16px; transition: transform .2s, box-shadow .2s; }
.person:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.person__img { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 10px; overflow: hidden; padding: 3px; background: var(--grad); }
.person__img img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 22%; border: 3px solid var(--card); }
.person strong { display: block; font: 800 1rem/1.2 "Bricolage"; margin-bottom: 6px; }
.person small { display: block; color: var(--muted); margin-top: 6px; font-size: .8rem; }

/* genres */
.genres { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.genre { position: relative; display: flex; align-items: end; min-height: 110px; border-radius: 20px; overflow: hidden; text-decoration: none; color: #fff; padding: 14px; box-shadow: var(--shadow-sm); }
.genre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1); }
.genre::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(30, 6, 30, .82)); }
.genre span { position: relative; z-index: 1; font: 800 1.15rem/1 "Bricolage"; }
.genre small { display: block; font: 600 .78rem "DM Sans"; opacity: .85; margin-top: 4px; }

/* ---------------------------------------------------------------- series page */
.shero { position: relative; padding: 34px 0 30px; overflow: hidden; isolation: isolate; }
.shero__bg { position: absolute; inset: -40px; z-index: -2; background-size: cover; background-position: center 25%; filter: blur(42px) saturate(1.3); opacity: .55; transform: scale(1.1); }
.shero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 35%, transparent), var(--bg) 92%); }
.shero__grid { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; }
.shero__poster { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 7/10; background: var(--bg-2); transform: rotate(-2deg); }
.shero__poster img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); text-decoration: none; } .crumbs a:hover { color: var(--a1); }
.crumbs span { margin: 0 6px; opacity: .6; }
.shero h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.shero__aka { color: var(--muted); font-size: .95rem; margin: -4px 0 14px; }
.shero__lead { font-size: 1.08rem; color: var(--ink-2); max-width: 44em; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.fact b { display: block; font: 800 1.45rem/1.1 "Bricolage"; }
.fact span { font-size: .8rem; color: var(--muted); }
.fact--free b { color: var(--free); }
.shero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.updated { font-size: .8rem; color: var(--muted); margin-top: 12px; }

/* striscia episodi */
.eps { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 10px; overflow-x: auto; padding: 4px 2px 14px; margin: 18px 0 0; }
.ep { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 9/16; background: var(--bg-2); text-decoration: none; box-shadow: var(--shadow-sm); }
.ep img { width: 100%; height: 100%; object-fit: cover; }
.ep--lock img { filter: saturate(.6) brightness(.72); }
.ep__n { position: absolute; left: 8px; bottom: 8px; color: #fff; font: 800 .95rem/1 "Bricolage"; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.ep .badge { position: absolute; top: 7px; left: 7px; }

/* layout articolo + sidebar */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; padding: 26px 0 50px; }
.prose { font-size: 1.04rem; }
.prose h2 { margin-top: 1.8em; padding-bottom: .35em; background: linear-gradient(var(--a1), var(--a1)) left bottom / 56px 4px no-repeat; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; } .prose li { margin: .3em 0; }
.prose a.aff { font-weight: 700; }
.lead-box { font-size: 1.12rem; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--free); border-radius: 18px; padding: 18px 22px; margin-bottom: 26px; box-shadow: var(--shadow-sm); }
.lead-box p:last-child { margin: 0; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; margin-bottom: 18px; }
.toc strong { display: block; font: 800 .9rem "Bricolage"; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .92rem; } .toc a { color: var(--ink-2); text-decoration: none; } .toc a:hover { color: var(--a1); }
.side { position: relative; }
.side__sticky { position: sticky; top: 90px; display: grid; gap: 16px; }
.cta-card { background: var(--grad); color: #fff; border-radius: 22px; padding: 20px; box-shadow: var(--shadow); }
.cta-card h3 { color: #fff; margin-bottom: 6px; }
.cta-card p { font-size: .92rem; opacity: .95; }
.cta-card .btn { width: 100%; background: #fff; color: var(--ink); }
.cta-card small { display: block; margin-top: 8px; opacity: .85; font-size: .75rem; }

/* guida episodi */
.epg { display: grid; gap: 14px; margin: 18px 0 8px; }
.epg__row { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px; scroll-margin-top: 90px; }
.epg__frame { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 9/16; background: var(--bg-2); }
.epg__frame img { width: 100%; height: 100%; object-fit: cover; }
.epg__row--lock .epg__frame img { filter: saturate(.6) brightness(.75); }
.epg__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.epg__head h3 { margin: 0; font-size: 1.05rem; }
.epg__row p { margin: 0; font-size: .97rem; color: var(--ink-2); }

/* cast */
.cast { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; }
.cast a, .cast span { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 6px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .92rem; }
.cast i { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font: 800 .8rem "Bricolage"; font-style: normal; }

/* FAQ */
.faq { margin-top: 2em; }
.faq__item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin: 10px 0; padding: 0 18px; }
.faq__item summary { cursor: pointer; font: 700 1.02rem/1.35 "Bricolage"; padding: 16px 28px 16px 0; list-style: none; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.5rem; color: var(--a1); }
.faq__item[open] summary::after { content: "–"; }
.faq__a { padding-bottom: 14px; color: var(--ink-2); }

.note { font-size: .88rem; color: var(--muted); background: var(--bg-2); border-radius: 14px; padding: 14px 16px; margin: 26px 0 0; }

/* tabelle (free episodes) */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .93rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { background: var(--bg-2); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td a { font-weight: 700; text-decoration: none; color: var(--ink); } .tbl td a:hover { color: var(--a1); }
.tbl-wrap { overflow-x: auto; }

/* filtri archivio */
.filters { display: grid; gap: 12px; margin: 0 0 22px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 18px; max-width: 520px; }
.search input { flex: 1; border: 0; background: none; font: 500 1rem "DM Sans"; color: var(--ink); outline: none; padding: 8px 0; min-width: 0; }
.count { color: var(--muted); font-size: .9rem; }

/* page hero (guide, hub) */
.phero { padding: 40px 0 10px; position: relative; }
.phero::before { content: ""; position: absolute; inset: 0 0 -60px; background: var(--grad-soft); z-index: -1; mask: linear-gradient(180deg, #000 60%, transparent); -webkit-mask: linear-gradient(180deg, #000 60%, transparent); }
.phero h1 { max-width: 20em; }
.phero__lead { font-size: 1.12rem; color: var(--ink-2); max-width: 46em; }
.person-hero { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center; }
.person-hero .person__img { width: 150px; height: 150px; margin: 0; }

/* footer */
.site-footer { background: var(--ink); color: color-mix(in srgb, var(--bg) 82%, transparent); padding: 44px 0 90px; margin-top: 40px; font-size: .92rem; }
[data-skin="midnight"] .site-footer { background: #08040e; }
.site-footer a { color: inherit; text-decoration: none; } .site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; font: 800 1rem "Bricolage"; margin: 0 0 10px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.disclaimer { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 30px; padding-top: 18px; font-size: .82rem; opacity: .8; }
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none; }
.sticky-cta .btn { width: 100%; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1020px) {
	.layout { grid-template-columns: 1fr; }
	.side__sticky { position: static; }
	.foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
	.nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--card); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; box-shadow: var(--shadow); }
	.nav.is-open { display: flex; }
	.nav__menu { position: static; display: grid; box-shadow: none; border: 0; padding: 0 0 0 10px; }
	.nav-toggle { display: grid; place-items: center; }
	.hero__grid, .shero__grid { grid-template-columns: 1fr; }
	.fan { height: 330px; max-width: 420px; margin: 0 auto; }
	.shero__poster { width: 200px; transform: rotate(-3deg); }
	.pass { grid-template-columns: 1fr; }
	.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sticky-cta { display: block; }
	.person-hero { grid-template-columns: 1fr; }
	.rail__btn { display: none; }
}
@media (max-width: 520px) {
	body { font-size: 16px; }
	.brand__text { display: none; }
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.epg__row { grid-template-columns: 72px 1fr; }
	.foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* gli elementi di griglia non devono allargarsi oltre la colonna (striscia episodi, tabelle) */
.hero__grid > *, .shero__grid > *, .layout > *, .person-hero > * { min-width: 0; }
.crumbs { overflow-wrap: anywhere; }
@media (max-width: 520px) {
	.hero__kicker { font-size: .78rem; }
	.shero h1 { font-size: 1.75rem; }
	.facts .fact b { font-size: 1.2rem; }
}
