/**
 * Nome File: assets/player.css
 * Versione: 1.12.0.0
 * Log Modifiche:
 * - 1.12.0.0: spot a tutto schermo (sntv--spot-pieno) e riquadro delle immagini sponsor.
 * - 1.10.0.0: ultim'ora a video (breaking news) in basso: etichetta rossa ULTIM'ORA con l'ora,
 *            riquadro bianco con titolo e testo, contatore e barra del tempo.
 * - 1.7.1.0: altoparlante "Tocca per guardare" quando il telefono blocca l'avvio del video.
 * - 1.7.0.0: stile del link al canale in fondo all'On Demand.
 * - 1.6.0.0: link Live / On Demand e griglia dei video del canale.
 * - 1.5.1.0: altoparlante sempre visibile nell'angolo al posto del pulsante arancione al centro.
 * - 1.5.0.0: aspetto del testo della pagina TV sotto il televisore.
 * - 1.4.0.0: misure delle scritte sulla larghezza del televisore (unita' cqi), per la colonna della home.
 * - 1.3.0.0: Spot 2 rifatto come nel disegno: pubblicita' grande in alto a destra e
 *            programma piccolo in basso a sinistra, staccati, su fondo nero con forme al neon.
 * - 1.2.0.0: Spot 2 (spot a tutto schermo, programma piccolo in basso a sinistra).
 * - 1.0.0.0: Prima versione. Televisore 16:9, sovrimpressioni, ticker, spot,
 *            barra "Ora in onda / A seguire", guida dei programmi, formato mini.
 * Dipendenze Esterne: nessuna.
 */

.sntv {
	--sntv-blu: #0a5278;
	--sntv-arancio: #f97316;
	--sntv-fondo: #0b1220;
	--sntv-testo: #f8fafc;
	--sntv-tenue: #94a3b8;
	--sntv-raggio: 12px;
	width: 100%;
	max-width: 1100px;
	min-width: 0;
	margin: 0 auto;
	font-family: inherit;
	color: var(--sntv-testo);
	box-sizing: border-box;
}
.sntv *, .sntv *::before, .sntv *::after { box-sizing: border-box; }
.sntv [hidden] { display: none !important; }

/* ---------- Schermo ---------- */
.sntv-schermo {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: var(--sntv-raggio);
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
	isolation: isolate;
	/* Le scritte si misurano sulla larghezza del televisore, non della finestra:
	   cosi' restano proporzionate anche nella colonna stretta della home. */
	container-type: inline-size;
}
@supports not (aspect-ratio: 16 / 9) {
	.sntv-schermo { height: 0; padding-bottom: 56.25%; }
}
.sntv-mono, .sntv-video, .sntv-fb { position: absolute; inset: 0; }
.sntv-mono {
	background: #000 center / contain no-repeat;
	display: flex; align-items: flex-end; justify-content: center;
	z-index: 1;
}
.sntv-mono-testo:empty { display: none; }
.sntv-mono-testo {
	margin-bottom: 14%;
	padding: .55em 1.1em;
	background: rgba(0, 0, 0, .72);
	border-radius: 8px;
	font-weight: 700;
	font-size: clamp(.85rem, 2.4cqi, 1.35rem);
	text-align: center;
	max-width: 90%;
}
.sntv-video { z-index: 2; opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.sntv--video .sntv-video { opacity: 1; }
.sntv-video iframe, .sntv-fb iframe { width: 100%; height: 100%; border: 0; display: block; }
.sntv-fb { z-index: 3; background: #000; }

/* ---------- Logo ---------- */
.sntv-logo {
	position: absolute; z-index: 20;
	height: clamp(22px, 8%, 54px); width: auto;
	opacity: .88; pointer-events: none;
}
.sntv-logo.sntv-pos-as { top: 4%; left: 3%; }
.sntv-logo.sntv-pos-ad { top: 4%; right: 3%; }
.sntv-logo.sntv-pos-bs { bottom: 4%; left: 3%; }
.sntv-logo.sntv-pos-bd { bottom: 4%; right: 3%; }
.sntv--con-avviso .sntv-logo.sntv-pos-as,
.sntv--con-avviso .sntv-logo.sntv-pos-ad { top: calc(4% + 2.6em); }
.sntv--con-ticker .sntv-logo.sntv-pos-bs,
.sntv--con-ticker .sntv-logo.sntv-pos-bd { bottom: calc(4% + 2.2em); }

/* ---------- Avviso (banda in alto) e messaggio (centro) ---------- */
.sntv-avviso {
	position: absolute; z-index: 30; top: 0; left: 0; right: 0;
	padding: .55em 1em;
	font-weight: 800; text-align: center; white-space: pre-line;
	font-size: clamp(.8rem, 2.2cqi, 1.25rem);
	text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
	animation: sntv-entra-alto .4s ease;
}
.sntv-msg {
	position: absolute; z-index: 25; left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	max-width: 86%;
	padding: .8em 1.3em; border-radius: 10px;
	font-weight: 700; text-align: center; white-space: pre-line;
	font-size: clamp(.9rem, 3cqi, 1.8rem);
	line-height: 1.25;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
	box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}

/* ---------- Ticker scorrevole (in basso) ---------- */
.sntv-ticker {
	position: absolute; z-index: 30; left: 0; right: 0; bottom: 0;
	height: 2.2em; overflow: hidden;
	background: linear-gradient(90deg, var(--sntv-arancio) 0 7px, rgba(10, 82, 120, .92) 7px);
	font-weight: 600; font-size: clamp(.75rem, 1.9cqi, 1.05rem);
	display: flex; align-items: center;
}
.sntv-ticker-scorre {
	white-space: nowrap; padding-left: 100%;
	animation-name: sntv-scorri; animation-timing-function: linear;
	animation-iteration-count: infinite; animation-duration: 20s;
	will-change: transform;
}
@keyframes sntv-scorri { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
	.sntv-ticker-scorre { animation-duration: 90s !important; }
}

/* ---------- Spot (riquadro piccolo) ---------- */
.sntv-spot {
	position: absolute; z-index: 15;
	aspect-ratio: 16 / 9; width: 30%;
	border-radius: 8px; overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .35);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
	background: #000; pointer-events: none;
}
.sntv-spot > div, .sntv-spot iframe { width: 100%; height: 100%; border: 0; display: block; }
.sntv-spot.sntv-dim-25 { width: 25%; }
.sntv-spot.sntv-dim-30 { width: 30%; }
.sntv-spot.sntv-dim-40 { width: 40%; }
.sntv-spot.sntv-dim-50 { width: 50%; }
.sntv-spot.sntv-pos-as { top: 4%; left: 3%; }
.sntv-spot.sntv-pos-ad { top: 4%; right: 3%; }
.sntv-spot.sntv-pos-bs { bottom: 4%; left: 3%; }
.sntv-spot.sntv-pos-bd { bottom: 4%; right: 3%; }
.sntv--con-avviso .sntv-spot.sntv-pos-as,
.sntv--con-avviso .sntv-spot.sntv-pos-ad { top: calc(4% + 2.8em); }
.sntv--con-ticker .sntv-spot.sntv-pos-bs,
.sntv--con-ticker .sntv-spot.sntv-pos-bd { bottom: calc(4% + 2.4em); }

/* ---------- Spot 2: fondo nero animato, pubblicita' grande in alto a destra,
   programma piccolo in basso a sinistra, staccati ---------- */
.sntv-spot2 {
	position: absolute; inset: 0; z-index: 12; overflow: hidden;
	background:
		radial-gradient(60% 70% at 78% 30%, rgba(249, 115, 22, .16), transparent 70%),
		radial-gradient(45% 55% at 18% 78%, rgba(249, 115, 22, .10), transparent 70%),
		#050507;
	opacity: 0; pointer-events: none;
	transition: opacity .5s ease;
}
.sntv--spot2 .sntv-spot2 { opacity: 1; }

/* Il riquadro della pubblicita' */
.sntv-spot2-video {
	position: absolute; z-index: 2;
	top: 5%; right: 3%; width: 56%; aspect-ratio: 16 / 9;
	border-radius: 10px; overflow: hidden; background: #000;
	box-shadow: 0 0 0 2px rgba(251, 146, 60, .85), 0 0 18px rgba(249, 115, 22, .45), 0 12px 36px rgba(0, 0, 0, .7);
	transform: scale(.94); opacity: 0;
	transition: transform .6s cubic-bezier(.2, .8, .2, 1) .15s, opacity .5s ease .15s;
}
.sntv--spot2 .sntv-spot2-video { transform: none; opacity: 1; }
/* Con l'avviso acceso la pubblicita' scende sotto la banda rossa. */
.sntv--con-avviso .sntv-spot2-video { top: calc(5% + 2.6em); }
.sntv-spot2-video > div, .sntv-spot2-video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Le forme al neon dello sfondo: tenui, lente, soprattutto arancioni */
.sntv-neon { position: absolute; inset: 0; z-index: 1; }
.sntv-neon i {
	position: absolute; display: block;
	border: 2px solid var(--c, #f97316); border-radius: var(--r, 50%);
	box-shadow: 0 0 10px var(--c, #f97316), inset 0 0 8px var(--c, #f97316);
	opacity: var(--o, .4);
	animation: sntv-neon-giro var(--t, 26s) ease-in-out infinite alternate;
	animation-delay: var(--d, 0s);
	animation-play-state: paused;
}
.sntv--spot2 .sntv-neon i { animation-play-state: running; }
.sntv-neon i:nth-child(1) { --c: #f97316; --o: .55; left: 6%;  top: 10%; width: 14%; aspect-ratio: 1; --t: 24s; }
.sntv-neon i:nth-child(2) { --c: #fb923c; --o: .45; left: 30%; top: 22%; width: 7%;  aspect-ratio: 1; --r: 6px; --t: 19s; --d: -6s; }
.sntv-neon i:nth-child(3) { --c: #fdba74; --o: .35; left: 50%; top: 70%; width: 22%; height: 2px; border-width: 1px; --r: 2px; --t: 30s; --d: -12s; }
.sntv-neon i:nth-child(4) { --c: #f97316; --o: .40; left: 46%; top: 80%; width: 10%; aspect-ratio: 1; --r: 30%; --t: 22s; --d: -3s; }
.sntv-neon i:nth-child(5) { --c: #e879f9; --o: .25; left: 70%; top: 72%; width: 8%;  aspect-ratio: 1; --t: 28s; --d: -9s; }
.sntv-neon i:nth-child(6) { --c: #22d3ee; --o: .22; left: 14%; top: 40%; width: 5%;  aspect-ratio: 1; --r: 4px; --t: 21s; --d: -15s; }
.sntv-neon i:nth-child(7) { --c: #facc15; --o: .28; left: 84%; top: 70%; width: 11%; aspect-ratio: 1; --r: 50% 50% 8px 50%; --t: 33s; --d: -20s; }
.sntv-neon i:nth-child(8) { --c: #ea580c; --o: .50; left: 26%; top: 6%;  width: 18%; height: 2px; border-width: 1px; --r: 2px; --t: 25s; --d: -7s; }
@keyframes sntv-neon-giro {
	0%   { transform: translate(0, 0) rotate(0deg); }
	50%  { transform: translate(14px, -10px) rotate(25deg); opacity: calc(var(--o, .4) * .6); }
	100% { transform: translate(-10px, 12px) rotate(-18deg); }
}

/* Il programma in onda: lo stesso schermo rimpicciolito al 36% (il video non si ricarica) */
.sntv-video, .sntv-fb {
	transform-origin: 0 100%;
	transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .4s ease, box-shadow .6s ease;
}
.sntv--spot2 .sntv-video, .sntv--spot2 .sntv-fb {
	z-index: 16;
	transform: translate(3%, -5%) scale(.36);
	border-radius: 26px; overflow: hidden;
	box-shadow: 0 0 0 6px rgba(251, 146, 60, .85), 0 0 50px rgba(249, 115, 22, .45), 0 30px 80px rgba(0, 0, 0, .7);
}
.sntv--spot2.sntv--con-ticker .sntv-video,
.sntv--spot2.sntv--con-ticker .sntv-fb { transform: translate(3%, calc(-5% - 2.4em)) scale(.36); }
.sntv--spot2 .sntv-terzo { display: none; }
/* Durante lo Spot 2 il riquadro dello spot piccolo si fa da parte
   e il logo scende nell'angolo libero in basso a destra. */
.sntv--spot2 .sntv-spot { display: none !important; }
.sntv--spot2 .sntv-logo { top: auto !important; left: auto !important; right: 3% !important; bottom: 6% !important; }
.sntv--spot2.sntv--con-ticker .sntv-logo { bottom: calc(6% + 2.2em) !important; }
@media (prefers-reduced-motion: reduce) {
	.sntv-video, .sntv-fb, .sntv-spot2, .sntv-spot2-video { transition: none; }
	.sntv-neon i { animation: none; }
}

/* ---------- "Ora in onda" che entra in basso a sinistra per 8 secondi ---------- */
.sntv-terzo {
	position: absolute; z-index: 28; left: 3%; bottom: 8%;
	display: flex; flex-direction: column; gap: 2px;
	max-width: 70%;
	padding: .5em .9em .55em;
	background: rgba(11, 18, 32, .82);
	border-left: 4px solid var(--sntv-arancio);
	border-radius: 0 8px 8px 0;
	font-size: clamp(.75rem, 2cqi, 1.1rem);
	animation: sntv-entra-sx .45s ease;
	transition: opacity .5s ease, transform .5s ease;
}
.sntv-terzo--via { opacity: 0; transform: translateX(-12px); }
.sntv-terzo-etichetta { font-size: .72em; text-transform: uppercase; letter-spacing: .08em; color: #fdba74; font-weight: 700; }
.sntv-terzo strong { font-weight: 700; line-height: 1.2; }
.sntv--con-ticker .sntv-terzo { bottom: calc(8% + 2.2em); }

/* ---------- Spot a tutto schermo con audio (modo "pieno") ---------- */
.sntv--spot-pieno .sntv-spot2 { background: #000; }
.sntv--spot-pieno .sntv-neon { display: none; }
.sntv--spot-pieno .sntv-spot2-video {
	top: 0 !important; right: 0; width: 100%; height: 100%; aspect-ratio: auto;
	border-radius: 0; box-shadow: none; transform: none;
}
.sntv--spot-pieno .sntv-video, .sntv--spot-pieno .sntv-fb { opacity: 0 !important; }
.sntv--spot-pieno .sntv-ticker, .sntv--spot-pieno .sntv-msg { display: none; }

/* ---------- Immagini sponsor (banner attivi) in sovrimpressione ---------- */
.sntv-spon {
	position: absolute; z-index: 27;
	width: 30%; min-width: 120px;
	display: flex; flex-direction: column;
	background: rgba(255, 255, 255, .96); border-radius: 8px; overflow: hidden;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
	font-size: clamp(.55rem, 1.5cqi, .8rem);
	text-decoration: none; color: inherit;
	animation: sntv-spon-entra .5s cubic-bezier(.2, .8, .2, 1);
	transition: opacity .4s ease, transform .4s ease;
}
.sntv-spon:not([href]) { pointer-events: none; }
.sntv-spon--via { opacity: 0; transform: translateY(10%); }
.sntv-spon.sntv-pos-as { top: 4%; left: 3%; }
.sntv-spon.sntv-pos-ad { top: 4%; right: 3%; }
.sntv-spon.sntv-pos-bs { bottom: 7%; left: 3%; }
.sntv-spon.sntv-pos-bd { bottom: 7%; right: 3%; }
.sntv--con-avviso .sntv-spon.sntv-pos-as, .sntv--con-avviso .sntv-spon.sntv-pos-ad { top: calc(4% + 2.6em); }
.sntv--con-ticker .sntv-spon.sntv-pos-bs, .sntv--con-ticker .sntv-spon.sntv-pos-bd { bottom: calc(4% + 2.6rem); }
.sntv--uo .sntv-spon.sntv-pos-bs, .sntv--uo .sntv-spon.sntv-pos-bd { bottom: calc(10% + 4.6rem); }
.sntv-spon-etichetta {
	padding: .25em .7em; background: #0b1220; color: #fdba74;
	font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .9em;
}
.sntv-spon img {
	display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #fff;
}
.sntv-spon-img--entra { animation: sntv-spon-img .5s ease; }
.sntv--spot2 .sntv-spon, .sntv--od .sntv-spon { display: none !important; }
.sntv--mini .sntv-spon { width: 38%; }
@keyframes sntv-spon-entra { from { opacity: 0; transform: translateY(12%) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes sntv-spon-img { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sntv-spon, .sntv-spon-img--entra { animation: none; } }

/* ---------- Ultim'ora (breaking news) in basso ---------- */
.sntv-uo {
	position: absolute; z-index: 29; left: 3%; right: 3%; bottom: 7%;
	display: flex; align-items: stretch;
	font-size: clamp(.62rem, 2.1cqi, 1.2rem);
	line-height: 1.15;
	filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .45));
	transition: opacity .45s ease, transform .45s ease;
	pointer-events: none;
}
.sntv--con-ticker .sntv-uo { bottom: calc(4% + 2.2em); }
.sntv-uo--via { opacity: 0; transform: translateY(18%); }
.sntv-uo-tag {
	position: relative; z-index: 2; flex: none;
	display: grid; grid-template-columns: auto auto; align-content: center; column-gap: .45em; row-gap: .15em;
	padding: .55em 1.5em .55em .9em;
	background: linear-gradient(180deg, #e3172b, #a80d1c);
	color: #fff;
	clip-path: polygon(0 0, 100% 0, calc(100% - .8em) 100%, 0 100%);
	animation: sntv-uo-tag .5s cubic-bezier(.2, .8, .2, 1) both;
}
.sntv-uo-punto {
	align-self: center; width: .6em; height: .6em; border-radius: 50%;
	background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7);
	animation: sntv-uo-pulsa 1.4s ease-out infinite;
}
.sntv-uo-scritta { font-weight: 900; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.sntv-uo-ora {
	grid-column: 1 / -1; font-size: .72em; font-weight: 700; opacity: .9;
	font-variant-numeric: tabular-nums; letter-spacing: .04em;
}
.sntv-uo-corpo {
	position: relative; z-index: 1; flex: 1; min-width: 0;
	margin-left: -.8em; padding: .5em 3.4em .6em 1.5em;
	background: rgba(255, 255, 255, .97); color: #0b1220;
	overflow: hidden; display: flex; align-items: center;
	border-radius: 0 6px 6px 0;
	animation: sntv-uo-apri .6s .12s cubic-bezier(.2, .8, .2, 1) both;
}
.sntv-uo-voce { display: flex; flex-direction: column; gap: .15em; min-width: 0; }
.sntv-uo-voce--entra { animation: sntv-uo-su .45s cubic-bezier(.2, .8, .2, 1); }
.sntv-uo-tit {
	color: #c8102e; font-weight: 800; font-size: .7em;
	text-transform: uppercase; letter-spacing: .12em;
}
.sntv-uo-testo {
	font-weight: 800; font-size: 1.06em; letter-spacing: .01em;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sntv-uo-conta {
	position: absolute; right: .75em; top: .5em;
	font-size: .66em; font-weight: 700; color: #64748b; font-variant-numeric: tabular-nums;
}
.sntv-uo-barra {
	position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
	background: #c8102e; transform-origin: left center; transform: scaleX(0);
}
.sntv--uo .sntv-terzo { display: none; }
.sntv--spot2 .sntv-uo, .sntv--od .sntv-uo { display: none !important; }
.sntv--mini .sntv-uo { left: 0; right: 0; bottom: 0; filter: none; }
.sntv--mini.sntv--con-ticker .sntv-uo { bottom: 2.2em; }
.sntv--mini .sntv-uo-corpo { border-radius: 0; padding-right: 2.6em; }
.sntv--mini .sntv-uo-ora { display: none; }
@keyframes sntv-uo-tag { from { transform: translateX(-105%); } to { transform: none; } }
@keyframes sntv-uo-apri { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sntv-uo-su { from { opacity: 0; transform: translateY(60%); } to { opacity: 1; transform: none; } }
@keyframes sntv-uo-pulsa {
	0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .75); }
	70% { box-shadow: 0 0 0 .55em rgba(255, 255, 255, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
@media (prefers-reduced-motion: reduce) {
	.sntv-uo-tag, .sntv-uo-corpo, .sntv-uo-voce--entra, .sntv-uo-punto { animation: none; }
	.sntv-uo-barra { transition: none !important; }
}

@keyframes sntv-entra-sx { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes sntv-entra-alto { from { transform: translateY(-100%); } to { transform: none; } }

/* ---------- Pulsanti ---------- */
/* Altoparlante: sempre visibile nell'angolo in alto a sinistra, mai al centro del video.
   Arancione (con un leggero alone che pulsa) quando l'audio e' spento, scuro quando e' acceso. */
.sntv-altoparlante {
	position: absolute; z-index: 46; top: .5em; left: .6em;
	transition: background-color .2s ease, top .3s ease;
}
.sntv-altoparlante.is-muto { background: rgba(249, 115, 22, .95); animation: sntv-pulsa 2.4s ease-in-out infinite; }
.sntv-altoparlante.is-muto:hover { background: #ea580c; }
.sntv--con-avviso .sntv-altoparlante { top: 3.1em; }
.sntv-tasto:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@keyframes sntv-pulsa { 0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,.55); } 50% { box-shadow: 0 0 0 8px rgba(249,115,22,0); } }
/* Video bloccato dal telefono (es. iPhone con Risparmio energetico): l'altoparlante
   invita a toccare, con una piccola etichetta accanto, sempre sul bordo del video. */
.sntv--bloccato .sntv-altoparlante {
	background: rgba(249, 115, 22, .98) !important;
	animation: sntv-pulsa-forte 1.6s ease-in-out infinite;
	overflow: visible;
}
.sntv--bloccato .sntv-altoparlante::after {
	content: 'Tocca per guardare';
	position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%);
	padding: .3em .7em; border-radius: 999px; white-space: nowrap;
	background: rgba(0, 0, 0, .72); color: #fff;
	font-size: .78rem; font-weight: 700;
	pointer-events: none;
}
@keyframes sntv-pulsa-forte { 0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,.7); } 50% { box-shadow: 0 0 0 12px rgba(249,115,22,0); } }
.sntv--bloccato .sntv-live { margin-left: 13em; }
@media (prefers-reduced-motion: reduce) { .sntv-altoparlante.is-muto, .sntv--bloccato .sntv-altoparlante { animation: none; } }

.sntv-comandi {
	position: absolute; z-index: 45; left: 0; right: 0; top: 0;
	display: flex; align-items: center; justify-content: space-between; gap: .5em;
	padding: .5em .6em;
	background: linear-gradient(180deg, rgba(0,0,0,.55), transparent);
	opacity: 0; transition: opacity .25s ease;
	pointer-events: none;
}
.sntv-comandi > * { pointer-events: auto; }
.sntv-comandi [data-sntv-schermo-intero] { margin-left: auto; }
.sntv-schermo:hover .sntv-comandi,
.sntv-schermo:focus-within .sntv-comandi,
.sntv-comandi:focus-within { opacity: 1; }
@media (hover: none) { .sntv-comandi { opacity: 1; background: none; } }
.sntv-tasto {
	width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
	border: 0; border-radius: 50%; cursor: pointer;
	background: rgba(0, 0, 0, .55); color: #fff;
}
.sntv-tasto svg { width: 22px; height: 22px; fill: currentColor; }
.sntv-tasto:hover { background: rgba(0, 0, 0, .8); }
.sntv-live {
	margin-right: auto; margin-left: 3.2em; /* lascia posto all'altoparlante */
	padding: .2em .6em; border-radius: 4px;
	background: #dc2626; color: #fff;
	font-size: .72rem; font-weight: 800; letter-spacing: .06em;
}
/* Con l'avviso acceso i comandi scendono sotto la banda. */
.sntv-avviso:not([hidden]) ~ .sntv-comandi { top: 2.6em; }

/* ---------- Live / On Demand ---------- */
.sntv-viste {
	display: flex; gap: 1.4em; align-items: baseline;
	margin: 10px 2px 0; font-size: .92rem;
}
.sntv-vista {
	display: inline-flex; align-items: center; gap: .45em;
	padding: .15em 0; color: #64748b; text-decoration: none; font-weight: 600;
	border-bottom: 2px solid transparent;
	transition: color .15s ease, border-color .15s ease;
}
.sntv-vista:hover { color: #0f172a; }
.sntv-vista.is-attiva { color: #0f172a; border-bottom-color: var(--sntv-arancio); }
.sntv-vista:focus-visible { outline: 2px solid var(--sntv-arancio); outline-offset: 3px; border-radius: 2px; }
.sntv-vista-punto { width: 7px; height: 7px; border-radius: 50%; background: #dc2626; }
.sntv-vista.is-attiva .sntv-vista-punto { animation: sntv-lampo 1.2s steps(1, end) infinite; box-shadow: 0 0 5px #ef4444; }
@keyframes sntv-lampo { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .sntv-vista.is-attiva .sntv-vista-punto { animation: none; } }

/* Schermo in On Demand: il video scelto copre tutto (ha i comandi suoi di YouTube). */
.sntv-od { position: absolute; inset: 0; z-index: 80; background: #000; }
.sntv-od iframe { width: 100%; height: 100%; border: 0; display: block; }
.sntv-od-copertina {
	position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer;
	background: #000 center / cover no-repeat;
	display: flex; align-items: center; justify-content: center;
}
.sntv-od-copertina::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.75)); }
.sntv-od-play {
	position: relative; z-index: 1; width: 68px; height: 48px; border-radius: 12px;
	background: rgba(220, 38, 38, .92);
	transition: transform .15s ease;
}
.sntv-od-play::before { content: ''; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.sntv-od-copertina:hover .sntv-od-play { transform: scale(1.06); }
.sntv-od-copertina-tit {
	position: absolute; z-index: 1; left: 4%; right: 4%; bottom: 5%;
	color: #fff; text-align: left; font-weight: 700; font-size: clamp(.85rem, 2.6cqi, 1.3rem); line-height: 1.25;
	text-shadow: 0 1px 3px rgba(0,0,0,.7);
}
.sntv--od .sntv-barra, .sntv--od .sntv-guida { display: none; }

/* Elenco dei video, 10 per pagina */
.sntv-od-lista { margin-top: 12px; container-type: inline-size; }
/* 10 video: 2 colonne (telefono, colonna stretta), 5 colonne quando c'e' spazio. */
.sntv-od-griglia {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
@container (min-width: 720px) {
	.sntv-od-griglia { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.sntv-od-voce {
	display: flex; flex-direction: column; gap: 4px; width: 100%; height: 100%;
	padding: 0 0 8px; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer;
	background: var(--sntv-fondo); color: var(--sntv-testo); text-align: left; font: inherit;
	transition: transform .15s ease, box-shadow .15s ease;
}
.sntv-od-voce:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.sntv-od-voce:focus-visible { outline: 3px solid var(--sntv-arancio); outline-offset: 2px; }
.sntv-od-voce.is-scelto { box-shadow: 0 0 0 2px var(--sntv-arancio); }
.sntv-od-voce img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #000; }
.sntv-od-tit {
	padding: 0 9px; font-size: .86rem; font-weight: 600; line-height: 1.3;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sntv-od-data { padding: 0 9px; font-size: .74rem; color: var(--sntv-tenue); margin-top: auto; }
.sntv-od-pagine { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.sntv-od-freccia {
	padding: .4em .2em; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 600; font-size: .9rem;
	color: #c2410c;
}
.sntv-od-freccia:disabled { color: #cbd5e1; cursor: default; }
.sntv-od-freccia:not(:disabled):hover { text-decoration: underline; }
.sntv-od-conta { font-size: .82rem; color: #64748b; font-variant-numeric: tabular-nums; }
.sntv-od-avviso { margin: 0; padding: 1em; color: #64748b; }
.sntv-od-canale {
	margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(148, 163, 184, .35);
	font-size: .9rem; color: #475569; text-align: center;
}
.sntv-od-canale a { color: #c2410c; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Barra sotto lo schermo ---------- */
.sntv-barra {
	display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
	margin-top: 10px;
	background: rgba(148, 163, 184, .25);
	border-radius: var(--sntv-raggio); overflow: hidden;
}
.sntv-ora, .sntv-dopo {
	display: flex; flex-direction: column; gap: 2px; min-width: 0;
	padding: .7em 1em;
	background: var(--sntv-fondo);
}
.sntv-ora { border-left: 4px solid var(--sntv-arancio); }
.sntv-ora strong, .sntv-dopo span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sntv-etichetta { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sntv-tenue); font-weight: 700; }
@media (max-width: 560px) {
	.sntv-barra { grid-template-columns: 1fr; }
}

/* ---------- Guida ---------- */
.sntv-guida {
	margin-top: 14px; padding: 1em 1.1em;
	background: var(--sntv-fondo); border-radius: var(--sntv-raggio);
}
.sntv-guida-titolo { margin: 0 0 .6em; font-size: 1.05rem; font-weight: 800; color: var(--sntv-testo); }
.sntv-guida-lista { list-style: none; margin: 0; padding: 0; }
.sntv-guida-voce {
	display: flex; align-items: baseline; gap: .8em;
	padding: .45em 0; border-top: 1px solid rgba(148, 163, 184, .18);
}
.sntv-guida-voce:first-child { border-top: 0; }
.sntv-guida-ora { flex: 0 0 3.2em; font-variant-numeric: tabular-nums; color: var(--sntv-tenue); font-weight: 700; }
.sntv-guida-voce--ora .sntv-guida-ora { color: var(--sntv-arancio); }
.sntv-guida-voce--ora .sntv-guida-tit { font-weight: 700; }
.sntv-guida-tit { flex: 1; min-width: 0; }
.sntv-guida-live { font-size: .7rem; font-weight: 800; text-transform: uppercase; color: #fca5a5; }

/* ---------- Formato mini ---------- */
.sntv--mini { max-width: 100%; }
.sntv--mini .sntv-schermo { border-radius: 8px; }
.sntv--mini .sntv-avviso { font-size: .78rem; padding: .35em .6em; }
.sntv--mini .sntv-msg { font-size: .9rem; }
.sntv--mini .sntv-ticker { font-size: .75rem; }

/* ---------- Schermo intero ---------- */
.sntv-schermo:fullscreen { border-radius: 0; width: 100vw; height: 100vh; aspect-ratio: auto; }
.sntv-schermo:-webkit-full-screen { border-radius: 0; width: 100vw; height: 100vh; }
/* Ripiego per iPhone: lo schermo occupa la finestra. */
.sntv--pieno .sntv-schermo {
	position: fixed; z-index: 999999; inset: 0;
	width: 100vw; height: 100vh; height: 100dvh;
	aspect-ratio: auto; border-radius: 0;
}
html.sntv-blocca, html.sntv-blocca body { overflow: hidden; }

/* ---------- Testo della pagina TV (scritto in regia) ---------- */
.sntv-testo {
	margin-top: 14px; padding: 1.1em 1.3em;
	background: #fff; color: #1f2937;
	border-radius: var(--sntv-raggio); border-left: 4px solid var(--sntv-arancio);
	box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
	line-height: 1.6; font-size: 1rem; overflow-wrap: anywhere;
}
.sntv-testo > :first-child { margin-top: 0; }
.sntv-testo > :last-child { margin-bottom: 0; }
.sntv-testo h1, .sntv-testo h2, .sntv-testo h3, .sntv-testo h4 { color: var(--sntv-blu); line-height: 1.25; margin: 1em 0 .5em; font-weight: 800; }
.sntv-testo h1 { font-size: 1.6rem; } .sntv-testo h2 { font-size: 1.35rem; } .sntv-testo h3 { font-size: 1.15rem; }
.sntv-testo p { margin: 0 0 .9em; }
.sntv-testo a { color: #c2410c; text-decoration: underline; }
.sntv-testo ul, .sntv-testo ol { margin: 0 0 .9em 1.4em; padding: 0; }
.sntv-testo ul { list-style: disc; } .sntv-testo ol { list-style: decimal; }
.sntv-testo blockquote { margin: 0 0 .9em; padding: .4em 1em; border-left: 3px solid #cbd5e1; color: #475569; font-style: italic; }
.sntv-testo img, .sntv-testo video { max-width: 100%; height: auto; border-radius: 8px; }
.sntv-testo iframe { max-width: 100%; }
.sntv-testo table { width: 100%; border-collapse: collapse; margin: 0 0 .9em; }
.sntv-testo td, .sntv-testo th { border: 1px solid #e5e7eb; padding: .4em .6em; }
.sntv-testo .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.sntv-testo .alignleft { float: left; margin: 0 1em .5em 0; }
.sntv-testo .alignright { float: right; margin: 0 0 .5em 1em; }
.sntv-testo::after { content: ''; display: block; clear: both; }

/* ---------- Pagina della TV ---------- */
.sntv-pagina { max-width: 1140px; margin: 0 auto; padding: 18px 16px 40px; }
