/*
Theme Name: XXX Channel
Text Domain: xxxchannel
Version: 261029.1553
Description: Guida TV per candyshortsxxxai.com: sidebar dei canali, schermi 4:3 dal fotogramma dell'episodio 1, righe della guida con un blocco per episodio, serie spicy come canali criptati.
*/

:root {
	--bg: #f6f4fa;
	--panel: #ffffff;
	--ink: #1c1524;
	--muted: #6b6478;
	--line: #e8e3ef;
	--bezel: #efebf4;
	--tint: #fff0f8;
	--free: #ffd5ec;
	--accent: #ea0c84;
	--accent-2: #ff7ac4;
	--accent-deep: #a1075a;
	--font: Rubik, "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
	--side: 300px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }

img,
video { display: block; max-width: 100%; }

a { color: var(--accent-deep); }
a:hover { color: var(--accent); }

button { font: inherit; color: inherit; }

[hidden] { display: none !important; }

.tv-skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: #fff; }
.tv-skip:focus { left: 8px; }
.tv-ico { flex: none; }

/* ---------- Logo ---------- */

.tv-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; color: var(--accent); }
.tv-logo i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.tv-logo i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent-2); opacity: 0.6; animation: tv-pulse 2.2s ease-out infinite; }
.tv-logo b { font: 800 20px/1 var(--font); letter-spacing: -0.02em; color: var(--accent); }
.tv-logo span { font: 700 12px/1 var(--font); letter-spacing: 0.1em; color: #fff; background: var(--accent); padding: 5px 7px 4px; border-radius: 6px; }
.tv-logo:hover b { color: var(--accent-deep); }
@keyframes tv-pulse { from { transform: scale(0.6); opacity: 0.8; } to { transform: scale(1.5); opacity: 0; } }

/* ---------- Sidebar dei canali ---------- */

.tv-shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }

.tv-side {
	position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain;
	padding: 20px 16px 24px; background: var(--panel); border-right: 1px solid var(--line);
	scrollbar-width: thin;
}
.tv-side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.tv-side-close { display: none; border: 0; background: var(--bezel); border-radius: 50%; width: 40px; height: 40px; place-items: center; cursor: pointer; }

.tv-menu { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.tv-menu a { display: flex; align-items: center; gap: 11px; padding: 7px 8px; border-radius: 12px; color: var(--ink); text-decoration: none; font: 500 15px/1.25 var(--font); }
.tv-menu a b { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: var(--bezel); font: 700 12.5px/1 var(--font); color: var(--muted); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.06); }
.tv-menu a:hover { background: var(--tint); }
.tv-menu a[aria-current="page"] { background: var(--tint); color: var(--accent-deep); font-weight: 700; }
.tv-menu a[aria-current="page"] b { background: var(--accent); color: #fff; }

.tv-side-new { display: block; margin-bottom: 18px; padding: 8px; border-radius: 18px; background: var(--bezel); color: var(--ink); text-decoration: none; }
.tv-side-new .tv-screen { border-radius: 12px; }
.tv-side-new > span { display: block; padding: 8px 4px 2px; }
.tv-side-new em { display: block; font: 600 11px/1.3 var(--font); font-style: normal; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.tv-side-new strong { display: block; font: 600 14px/1.3 var(--font); }

.tv-side-h { margin: 0 0 6px; padding: 0 8px; font: 700 11px/1.3 var(--font); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.tv-side-ch { display: flex; flex-direction: column; margin-bottom: 18px; }
.tv-side-ch a { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14.5px; }
.tv-side-ch a:hover { background: var(--tint); color: var(--accent-deep); }
.tv-side-ch b { font: 700 12px/1 var(--font); color: var(--accent); }
.tv-side-ch em { font: 600 11.5px/1 var(--font); font-style: normal; color: var(--muted); background: var(--bezel); padding: 4px 7px; border-radius: 999px; }

.tv-remote { padding: 12px 12px 6px; border-radius: 16px; background: var(--bezel); }
.tv-remote .tv-side-h { padding: 0; margin-bottom: 8px; }
.tv-remote p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.tv-remote p span { display: inline-block; margin-right: 6px; padding: 2px 7px; border-radius: 6px; background: #fff; color: var(--ink); font-weight: 700; font-size: 12px; }
.tv-remote p span.is-free { background: var(--free); color: var(--accent-deep); }

/* ---------- Barra in alto ---------- */

.tv-page { min-width: 0; display: flex; flex-direction: column; }
.tv-top {
	position: sticky; top: 0; z-index: 20;
	display: flex; align-items: center; gap: 16px; padding: 12px 28px;
	background: rgba(246, 244, 250, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.tv-logo--top { display: none; }
.tv-top-date { margin: 0; font-size: 13.5px; color: var(--muted); }
.tv-menu-btn { display: none; align-items: center; gap: 6px; margin-left: auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 600; font-size: 14px; }
.tv-top-go { margin-left: auto; white-space: nowrap; }

/* ---------- Pulsanti ---------- */

.tv-btn,
.cs-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 13px 22px; border-radius: 14px; border: 0; cursor: pointer;
	background: var(--accent); color: #fff; text-decoration: none;
	font: 700 15.5px/1.2 var(--font);
	box-shadow: 0 4px 0 var(--accent-deep), 0 10px 22px rgba(234, 12, 132, 0.25);
	transition: transform 0.1s;
}
.tv-btn:hover,
.cs-btn:hover { color: #fff; background: #d30a77; }
.tv-btn:active,
.cs-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--accent-deep); }
.tv-btn--sm { padding: 8px 14px; font-size: 13.5px; border-radius: 11px; box-shadow: 0 3px 0 var(--accent-deep); }
.tv-btn--ghost { background: var(--bezel); color: var(--ink); box-shadow: 0 3px 0 #d9d3e3; }
.tv-btn--ghost:hover { background: #e4dfec; color: var(--ink); }
.tv-textlink,
.cs-textlink { font-weight: 600; }

/* ---------- Pagine ---------- */

.tv-main { width: 100%; max-width: 1200px; margin: 0 auto; padding: 24px 28px 44px; flex: 1; }

.tv-hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 34px; align-items: center; margin-bottom: 30px; }
.tv-set {
	margin: 0; padding: 14px 14px 10px; border-radius: 32px;
	background: linear-gradient(160deg, #ffffff, #ece7f3);
	box-shadow: 0 22px 50px rgba(70, 30, 70, 0.14), inset 0 0 0 1px var(--line);
}
.tv-set > a { display: block; }
.tv-set figcaption { display: flex; align-items: center; gap: 8px; padding: 10px 6px 2px; font-size: 13.5px; color: var(--muted); }
.tv-set figcaption a { font-weight: 600; }
.tv-led { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(234, 12, 132, 0.18); flex: none; }

.tv-crumbs { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.tv-crumbs a { color: var(--muted); }
.tv-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px; font: 600 13px/1.4 var(--font); color: var(--muted); }
.tv-k-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; letter-spacing: 0.04em; }
.tv-k-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.tv-h1 { margin: 0 0 12px; font: 800 44px/1.06 var(--font); letter-spacing: -0.025em; }
.tv-lead { margin: 0 0 18px; font-size: 18px; line-height: 1.55; color: #4a4255; }
.tv-hero-cta { margin: 0 0 18px; }

.tv-nownext { list-style: none; margin: 0; padding: 6px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.tv-nownext li { display: grid; grid-template-columns: 62px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; font-size: 14.5px; }
.tv-nownext li + li { border-top: 1px dashed var(--line); border-radius: 0; }
.tv-nownext b { font: 700 11.5px/1 var(--font); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.tv-nownext li:first-child b { color: var(--accent); }

/* ---------- Schermo 4:3 ---------- */

.tv-screen { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 22px; background: #1d1220; isolation: isolate; }
.tv-screen img { width: 100%; height: 100%; object-fit: cover; }
.tv-screen::after {
	content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
	background: radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, 0.16), transparent 45%), repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px);
	box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.28);
	border-radius: inherit;
}
.tv-screen--scrambled::after {
	background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px 6px), linear-gradient(125deg, rgba(234, 12, 132, 0.3), rgba(90, 50, 210, 0.22));
}
.tv-vid {
	position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
	object-fit: contain; background: rgba(20, 8, 18, 0.4);
	-webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
	opacity: 0; transition: opacity 0.5s;
}
.tv-vid.is-on { opacity: 1; }
.tv-osd { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.tv-osd-ch { position: absolute; top: 10px; left: 10px; padding: 4px 8px; border-radius: 7px; background: rgba(15, 8, 16, 0.55); color: #fff; font: 700 11.5px/1.1 var(--font); letter-spacing: 0.08em; }
.tv-osd-new { position: absolute; top: 10px; right: 10px; padding: 4px 8px; border-radius: 7px; background: var(--accent); color: #fff; font: 700 11px/1.1 var(--font); text-transform: uppercase; letter-spacing: 0.06em; }
.tv-osd-bottom { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.92); color: var(--accent-deep); font: 700 11.5px/1.1 var(--font); }
.tv-ph { display: grid; place-items: center; height: 100%; padding: 16px; color: #fff; text-align: center; font-weight: 700; }

/* ---------- Griglia di schermi ---------- */

.tv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; margin: 16px 0 30px; }
.tv-card { padding: 8px 8px 12px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); transition: box-shadow 0.2s, transform 0.2s; }
.tv-card:hover { box-shadow: 0 14px 34px rgba(70, 30, 70, 0.12); transform: translateY(-2px); }
.tv-card-screen { display: block; }
.tv-card .tv-screen { border-radius: 17px; }
.tv-card-body { padding: 10px 6px 0; }
.tv-card-title { margin: 0 0 4px; font: 700 16.5px/1.25 var(--font); }
.tv-card-title a { color: var(--ink); text-decoration: none; }
.tv-card-title a:hover { color: var(--accent); }
.tv-card-meta { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.tv-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
.tv-card-tags span { padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--accent-deep); font-size: 12px; font-weight: 600; }

/* ---------- Righe della guida ---------- */

.tv-guide { list-style: none; margin: 14px 0 30px; padding: 0; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.tv-row { display: grid; grid-template-columns: 96px minmax(170px, 1fr) minmax(0, 1.45fr) 40px; gap: 14px; align-items: center; padding: 10px 14px; }
.tv-row + .tv-row { border-top: 1px solid var(--line); }
.tv-row:hover { background: #fdf8fb; }
.tv-row-ch { display: flex; align-items: center; gap: 8px; }
.tv-row-ch b { font: 700 11px/1.15 var(--font); color: var(--accent); letter-spacing: 0.04em; }
.tv-ava { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; background: var(--bezel); }
.tv-row-name { display: flex; flex-direction: column; min-width: 0; }
.tv-row-name strong a { color: var(--ink); text-decoration: none; font: 600 15.5px/1.3 var(--font); }
.tv-row-name strong a:hover { color: var(--accent); }
.tv-row-name em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.tv-row-go { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent); color: #fff; box-shadow: 0 3px 0 var(--accent-deep); }
.tv-row-go:hover { color: #fff; background: #d30a77; }

.tv-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(26px, 1fr)); gap: 4px; min-width: 0; }
.tv-blocks span { height: 30px; display: grid; place-items: center; border-radius: 7px; font: 700 10.5px/1 var(--font); }
.tv-blocks .is-free { background: var(--free); color: var(--accent-deep); }
.tv-blocks .is-paid { background: var(--bezel); color: var(--muted); }
.tv-blocks .is-lock { background: repeating-linear-gradient(135deg, #f1e3ec 0 6px, #e7dcef 6px 12px); color: var(--muted); }
.tv-blocks--big { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin: 12px 0 16px; }
.tv-blocks--big span,
.tv-blocks--lock.tv-blocks--big span { height: auto; padding: 12px 12px 10px; display: block; text-align: left; border-radius: 12px; }
.tv-blocks--big b { display: block; font-size: 15px; margin-bottom: 2px; }
.tv-blocks--big em { font-style: normal; font-weight: 500; font-size: 12.5px; }
.tv-content > .tv-blocks--lock { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin: 12px 0 16px; }
.tv-content > .tv-blocks--lock span { height: 52px; font-size: 12.5px; }

/* ---------- Testo ---------- */

.tv-content > p,
.tv-content > ul,
.tv-content > ol:not(.tv-guide),
.tv-content > details { max-width: 74ch; }
.tv-content h2 { display: flex; align-items: center; gap: 12px; margin: 42px 0 12px; font: 800 28px/1.15 var(--font); letter-spacing: -0.02em; }
.tv-content h2::before { content: ""; width: 9px; height: 26px; border-radius: 3px; background: var(--accent); flex: none; }
.tv-content h3 { font: 700 19px/1.3 var(--font); margin: 24px 0 8px; }
.tv-content p { margin: 0 0 16px; }
.tv-content li { margin-bottom: 6px; }
.tv-sub { color: var(--muted); font-size: 15px; margin-top: -4px !important; }
.tv-lede { font-size: 18px; color: #4a4255; }
.tv-plot { font-size: 19px; line-height: 1.55; padding: 16px 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.tv-src { font-size: 13px; color: var(--muted); }
.tv-subs { font-size: 14.5px; color: var(--muted); }
.tv-subs b { color: var(--ink); margin-right: 6px; }
.tv-box { max-width: 74ch; margin: 0 0 22px; padding: 16px 20px; border-radius: 18px; background: var(--tint); border: 1px solid #fbd0e6; }
.tv-box p { margin: 0; }
.tv-box p + p { margin-top: 8px; }
.cs-name { font-weight: 600; }

.tv-steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 18px; }
.tv-steps li { counter-increment: step; display: flex; align-items: center; gap: 12px; margin: 0 0 8px; }
.tv-steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--bezel); color: var(--accent); font-weight: 800; flex: none; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.06); }

details { margin: 0 0 10px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
summary { position: relative; cursor: pointer; list-style: none; padding: 14px 48px 14px 18px; font: 600 16.5px/1.35 var(--font); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--bezel); color: var(--accent); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 18px 16px; color: #4a4255; }

.tv-filter { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 4px; }
.tv-filter button { padding: 7px 13px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-weight: 600; font-size: 13.5px; box-shadow: 0 2px 0 var(--line); }
.tv-filter button:hover { border-color: var(--accent-2); }
.tv-filter button.is-on { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 2px 0 var(--accent-deep); }

.tv-channels { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 14px 0 26px; }
.tv-channels a { display: block; padding: 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.tv-channels a:hover { border-color: var(--accent-2); }
.tv-channels b { display: block; font: 800 24px/1 var(--font); color: var(--accent); }
.tv-channels span { display: block; margin-top: 6px; font-weight: 700; }
.tv-channels em { font-style: normal; font-size: 13px; color: var(--muted); }

.tv-scr-list { display: grid; gap: 16px; margin: 16px 0 28px; }
.tv-scr { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 20px; align-items: center; padding: 10px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.tv-scr-screen { display: block; }
.tv-scr h3 { margin: 0 0 4px; font: 700 20px/1.25 var(--font); }
.tv-scr h3 a { color: var(--ink); text-decoration: none; }
.tv-scr p { margin: 0 0 10px; font-size: 15px; }
.tv-scr-go { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.tv-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 24px; }
.tv-tiers div { padding: 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.tv-tiers b { display: block; font: 800 24px/1.1 var(--font); color: var(--accent); }
.tv-tiers span { display: block; margin: 6px 0; font-size: 14.5px; }
.tv-tiers em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--muted); }
.tv-tiers .is-star { background: var(--tint); border-color: #fbd0e6; }

.tv-zap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 36px 0 0; }
.tv-zap a { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.3; }
.tv-zap a + a { justify-content: flex-end; text-align: right; }
.tv-zap em { display: block; font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 0.06em; }
.tv-zap .tv-ico { color: var(--accent); }

/* ---------- Footer ---------- */

.tv-foot { border-top: 1px solid var(--line); background: var(--panel); }
.tv-foot-in { max-width: 1200px; margin: 0 auto; padding: 30px 28px 30px; font-size: 14px; color: var(--muted); }
.tv-logo--foot { margin: 0 0 12px; }
.tv-foot-warn b { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 12px; }
.tv-foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0; }
.tv-foot-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
.tv-foot-links a:hover { color: var(--accent); }
.tv-foot-small { font-size: 12.5px; margin: 0; }

/* ---------- Conferma 18+ ---------- */

.tv-age { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(28, 21, 36, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tv-age-box { width: 100%; max-width: 420px; padding: 26px 24px 22px; border-radius: 28px; background: var(--panel); text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3); }
.tv-age-badge { display: inline-block; padding: 6px 12px; border-radius: 10px; background: var(--accent); color: #fff; font: 800 15px/1 var(--font); letter-spacing: 0.14em; }
.tv-age-title { margin: 12px 0 6px; font: 800 26px/1.15 var(--font); }
.tv-age-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }

.tv-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(28, 21, 36, 0.45); }

/* ---------- Mobile ---------- */

@media (max-width: 1180px) {
	.tv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tv-row { grid-template-columns: 90px minmax(0, 1fr) 40px; grid-template-areas: "ch name go" "ch blocks go"; row-gap: 8px; }
	.tv-row-ch { grid-area: ch; }
	.tv-row-name { grid-area: name; }
	.tv-row .tv-blocks { grid-area: blocks; }
	.tv-row-go { grid-area: go; }
}

@media (max-width: 1000px) {
	.tv-shell { display: block; }
	.tv-side {
		position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 80;
		height: 84vh; height: 84dvh; border-radius: 24px 24px 0 0; border: 0;
		box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.2);
		transform: translateY(105%); transition: transform 0.28s ease;
		visibility: hidden;
	}
	.tv-side-open .tv-side { transform: none; visibility: visible; }
	.tv-side-open { overflow: hidden; }
	.tv-side-close { display: grid; }
	.tv-top { padding: 10px 14px; gap: 10px; }
	.tv-logo--top { display: inline-flex; }
	.tv-logo--top b { font-size: 17px; }
	.tv-logo--top span { font-size: 10.5px; padding: 4px 5px 3px; }
	.tv-top-date { display: none; }
	.tv-menu-btn { display: inline-flex; }
	.tv-top-go { margin-left: 0; }

	.tv-main { padding: 0 14px 30px; }
	.tv-hero { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 22px; }
	.tv-set { margin: 0 -14px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
	.tv-set .tv-screen { border-radius: 0; }
	.tv-set figcaption { padding: 8px 14px 0; }
	.tv-h1 { font-size: 30px; }
	.tv-lead { font-size: 16.5px; }
	.tv-scr { grid-template-columns: minmax(0, 1fr); }
	.tv-tiers { grid-template-columns: minmax(0, 1fr); }
	.tv-content h2 { font-size: 24px; margin-top: 34px; }
	.tv-foot-in { padding: 24px 14px 30px; }
}

@media (max-width: 560px) {
	.tv-top-go span,
	.tv-menu-btn span { display: none; }
	.tv-grid { gap: 14px 10px; }
	.tv-card { padding: 6px 6px 10px; border-radius: 18px; }
	.tv-card .tv-screen { border-radius: 13px; }
	.tv-card-title { font-size: 14.5px; }
	.tv-card-meta { font-size: 12px; }
	.tv-card-tags { display: none; }
	.tv-osd-ch,
	.tv-osd-new { top: 7px; font-size: 10px; padding: 3px 6px; }
	.tv-osd-ch { left: 7px; }
	.tv-osd-new { right: 7px; }
	.tv-osd-bottom { left: 7px; bottom: 7px; font-size: 10px; padding: 4px 6px; }
	.tv-row { grid-template-columns: 52px minmax(0, 1fr) 36px; gap: 8px 10px; padding: 10px; }
	.tv-row-ch b { display: none; }
	.tv-row-go { width: 34px; height: 34px; }
	.tv-blocks:not(.tv-blocks--big) { grid-template-columns: repeat(auto-fit, minmax(22px, 1fr)); gap: 3px; }
	.tv-blocks:not(.tv-blocks--big) span { height: 24px; font-size: 9.5px; }
	.tv-blocks--big { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
	.tv-top-go { padding: 8px 11px; }
	.tv-zap { grid-template-columns: minmax(0, 1fr); }
	.tv-zap a + a { justify-content: space-between; }
}

@media (max-width: 400px) {
	.tv-top { gap: 8px; }
	.tv-logo--top { gap: 6px; }
	.tv-logo--top b { font-size: 15.5px; }
	.tv-logo--top span { font-size: 10px; padding: 4px 4px 3px; }
	.tv-menu-btn { padding: 8px 9px; }
}

@media (prefers-reduced-motion: reduce) {
	.tv-logo i::after { animation: none; }
	.tv-vid,
	.tv-side { transition: none; }
}


/* ---------- Halloween 2026: "special programming" (classe is-halloween, si spegne da sola) ---------- */

.cs-hw-badge {
	display: inline-block; margin-left: 4px; padding: 3px 8px; border-radius: 7px;
	background: #ff8a00; color: #2b0b3f; font: 800 11.5px/1.1 var(--font); letter-spacing: 0.03em; vertical-align: 1px;
}
.cs-btn--ghost { background: var(--bezel); color: var(--ink); box-shadow: 0 3px 0 #d9d3e3; }
.cs-btn--ghost:hover { background: #e4dfec; color: var(--ink); }

.tv-hw-strip {
	position: relative; display: flex; align-items: center; gap: 14px; padding: 7px 28px;
	background: #2b0b3f repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px);
	color: #f3e8ff; text-decoration: none; font: 500 14px/1.3 var(--font);
	border-bottom: 3px solid #ff8a00;
}
.tv-hw-strip:hover { color: #fff; }
.tv-hw-strip b { color: #ffb15c; }
.tv-hw-tag { padding: 3px 10px 2px; border-radius: 7px; background: #ff8a00; color: #2b0b3f; font: 400 15px/1.1 "Rubik Wet Paint", var(--font); letter-spacing: 0.02em; white-space: nowrap; }
.tv-hw-go { margin-left: auto; font-weight: 700; color: #ffb15c; white-space: nowrap; }

.is-halloween .tv-logo i { background: #ff8a00; border-radius: 45% 45% 50% 50%; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15); }
.is-halloween .tv-logo i::before { content: ""; position: absolute; top: -3px; left: 4px; width: 2px; height: 4px; border-radius: 1px; background: #3b7a1a; }
.is-halloween .tv-logo i::after { border-color: #ffb15c; }
.is-halloween .tv-side-head { position: relative; padding-top: 30px; }
.tv-moon { position: absolute; right: 0; top: -14px; width: 96px; height: 48px; pointer-events: none; opacity: 0.9; }
.is-halloween .tv-side-ch b,
.is-halloween .tv-content h2::before { color: #ff7a00; }
.is-halloween .tv-content h2::before { background: linear-gradient(180deg, #ff8a00, #7c2bbf); }
.is-halloween .tv-set { box-shadow: 0 0 0 2px rgba(255, 138, 0, 0.55), 0 22px 56px rgba(124, 43, 191, 0.28), inset 0 0 0 1px var(--line); }
.is-halloween .tv-osd-new { background: #ff8a00; color: #2b0b3f; }
.tv-menu a.tv-menu-sale { color: #b45200; }
.tv-menu a.tv-menu-sale b { background: #fff1e2; }
.tv-menu a.tv-menu-sale:hover,
.tv-menu a.tv-menu-sale[aria-current="page"] { background: #fff1e2; color: #8a3d00; }
.tv-remote-sale { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #b45200; text-decoration: none; }
.tv-remote p .tv-remote-sale span { margin: 0; background: #ff8a00; }

/* Pagina dei saldi: il telefono "in onda" */
.tv-sale-hero { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); }
.tv-onair {
	margin: 0; padding: 26px 20px 14px; border-radius: 32px; text-align: center;
	background: radial-gradient(120% 80% at 50% 0%, #3d1160, #1d0a2b 70%);
	box-shadow: 0 0 0 2px #ff8a00, 0 24px 60px rgba(124, 43, 191, 0.35);
}
.tv-phone { position: relative; display: block; width: 250px; margin: 0 auto; padding: 8px; border-radius: 42px; background: #0d0710; box-shadow: 0 0 0 2px #5b2a85, 0 0 40px rgba(255, 138, 0, 0.35); }
.tv-phone::before { content: ""; position: absolute; top: 15px; left: 50%; width: 70px; height: 20px; margin-left: -35px; border-radius: 20px; background: #000; z-index: 2; }
.tv-phone img { width: 100%; height: auto; border-radius: 34px; }
.tv-onair figcaption { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; color: #e9d5ff; font-size: 13.5px; }
.tv-onair .tv-led { background: #ff8a00; box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.25); }
.tv-sale-h1 { font: 400 46px/1.08 "Rubik Wet Paint", var(--font); color: #6d1fb0; text-shadow: 0 3px 0 #ff8a00; letter-spacing: 0; }
.tv-prices strong { color: var(--accent); font-size: 17px; }
.tv-sale-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.tv-sale-cta-off { margin: -10px 0 26px; }

/* Piani e vantaggi (shortcode del core) */
.cs-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 16px 0 8px; }
.cs-plan { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.cs-plan p { margin: 0 !important; }
.cs-plan--best { background: linear-gradient(170deg, #fff, var(--tint)); border: 2px solid var(--accent); }
.is-halloween .cs-plan--best { background: linear-gradient(170deg, #fff7ee, #f6ecff); border-color: #ff8a00; }
.cs-plan-name { font-weight: 800; font-size: 17px; }
.cs-plan-name span { margin-left: 6px; padding: 2px 8px; border-radius: 7px; background: #6d1fb0; color: #fff; font-size: 11px; vertical-align: 2px; }
.cs-plan-off { font-weight: 800; color: #c25700; }
.cs-plan-price b { font-size: 30px; font-weight: 800; }
.cs-plan-was { font-size: 14px; color: var(--muted); }
.cs-plan .cs-btn { margin-top: 10px; justify-content: center; }
.cs-plans-checked { font-size: 13px; color: var(--muted); }
.cs-perks { list-style: none; padding: 0; margin: 12px 0 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: none !important; }
.cs-perks li { margin: 0; padding: 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); font-weight: 600; }
.cs-perks li::before { content: ""; display: block; width: 26px; height: 6px; margin-bottom: 10px; border-radius: 3px; background: var(--accent); }
.is-halloween .cs-perks li::before { background: linear-gradient(90deg, #ff8a00, #6d1fb0); }

@media (max-width: 1000px) {
	.tv-hw-strip { padding: 5px 14px; gap: 8px; font-size: 12.5px; line-height: 16px; border-bottom-width: 2px; }
	.tv-hw-tag { font-size: 13px; padding: 2px 7px 1px; }
	.tv-hw-more { display: none; }
	.tv-moon { right: 54px; top: -10px; }
	.tv-sale-hero { grid-template-columns: minmax(0, 1fr); }
	.tv-onair { margin: 0 -14px; padding: 16px 14px 12px; border-radius: 0; box-shadow: none; border-bottom: 3px solid #ff8a00; }
	.tv-phone { width: 210px; padding: 7px; border-radius: 36px; }
	.tv-phone::before { top: 12px; width: 58px; height: 16px; margin-left: -29px; }
	.tv-phone img { border-radius: 29px; }
	.tv-sale-h1 { font-size: 34px; }
	.cs-plans { grid-template-columns: minmax(0, 1fr); }
	.cs-perks { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 560px) {
	.tv-hw-pre { display: none; }
	.tv-hw-deal { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
}
