/* Gazzetta Web TV – lettore */
.gtv-tv {
	--gtv-brand: #9D2934;
	--gtv-dark: #1c1d1f;
	--gtv-text: #25282a;
	font-family: inherit;
	color: var(--gtv-text);
	background: #fff;
	border: 1px solid #e6e6e6;
	margin: 0 0 24px;
	max-width: 100%;
	box-sizing: border-box;
}
.gtv-tv *, .gtv-tv *::before, .gtv-tv *::after { box-sizing: border-box; }

.gtv-head {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--gtv-brand);
	color: #fff;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.gtv-logo { font-size: 14px; }
.gtv-badge {
	background: rgba(255, 255, 255, .18);
	padding: 2px 8px;
	border-radius: 2px;
	font-size: 11px;
}
.gtv-tv.is-live .gtv-badge { background: #e10600; animation: gtv-pulse 1.6s infinite; }
@keyframes gtv-pulse { 50% { opacity: .65; } }
.gtv-clock { margin-left: auto; font-variant-numeric: tabular-nums; opacity: .9; }

.gtv-screen {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: var(--gtv-dark);
	overflow: hidden;
}
@supports not (aspect-ratio: 16 / 9) {
	.gtv-screen { height: 0; padding-top: 56.25%; }
}
.gtv-layer {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: none;
}
.gtv-layer.is-on { display: block; }
.gtv-yt iframe, .gtv-yt-target { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.gtv-mp4 { object-fit: contain; background: #000; }
.gtv-image { background: #000; text-align: center; }
.gtv-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gtv-ident.is-on {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--gtv-brand) 75%, #000) 0%, #120507 80%);
	padding: 20px;
}
.gtv-ident-name {
	font-size: clamp(22px, 5vw, 44px);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .05em;
}
.gtv-ident-text { margin-top: 10px; font-size: clamp(13px, 2.2vw, 18px); line-height: 1.4; opacity: .9; }
.gtv-ident-text strong { display: inline-block; margin-top: 4px; }

.gtv-sponsor-tag {
	position: absolute;
	top: 10px;
	left: 10px;
	background: rgba(0, 0, 0, .65);
	color: #fff;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .05em;
	padding: 3px 8px;
	pointer-events: none;
	z-index: 3;
}
.gtv-unmute, .gtv-start {
	position: absolute;
	z-index: 4;
	border: 0;
	cursor: pointer;
	font: inherit;
	color: #fff;
}
.gtv-unmute {
	right: 10px;
	bottom: 52px;
	background: rgba(0, 0, 0, .7);
	padding: 7px 12px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 3px;
}
.gtv-unmute:hover { background: var(--gtv-brand); }
.gtv-start {
	inset: 0;
	margin: auto;
	width: max-content;
	height: max-content;
	background: var(--gtv-brand);
	padding: 14px 22px;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	border-radius: 3px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .4);
}
.gtv-unmute[hidden], .gtv-start[hidden], .gtv-sponsor-tag[hidden] { display: none; }

.gtv-info { padding: 12px 14px 14px; }
.gtv-now { display: flex; flex-direction: column; gap: 2px; }
.gtv-now-label {
	color: var(--gtv-brand);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
}
.gtv-now-title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.gtv-now-sub { font-size: 13px; opacity: .7; }
.gtv-now-sub:empty { display: none; }
.gtv-progress { height: 3px; background: #ececec; margin: 10px 0 8px; }
.gtv-progress span { display: block; height: 100%; width: 0; background: var(--gtv-brand); transition: width 1s linear; }
.gtv-next { font-size: 13px; line-height: 1.5; }
.gtv-next-label {
	display: inline-block;
	margin-right: 8px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	opacity: .6;
}
.gtv-next-item { display: block; }
.gtv-mini .gtv-next-item { display: inline; }
.gtv-next-item b { color: var(--gtv-brand); margin-right: 4px; font-variant-numeric: tabular-nums; }
.gtv-upcoming {
	background: #fff4f4;
	border-left: 3px solid #e10600;
	padding: 6px 10px;
	margin-bottom: 8px;
}

.gtv-more {
	display: block;
	padding: 10px 14px;
	border-top: 1px solid #eee;
	color: var(--gtv-brand) !important;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none !important;
	letter-spacing: .03em;
}
.gtv-more:hover { background: #faf6f6; }

/* Guida */
.gtv-guide { border-top: 1px solid #eee; padding: 12px 14px 14px; }
.gtv-guide-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.gtv-guide-head h3 { margin: 0; font-size: 18px; text-transform: uppercase; }
.gtv-tabs button {
	border: 1px solid #ddd;
	background: #fff;
	padding: 6px 14px;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
	color: var(--gtv-text);
}
.gtv-tabs button.is-active { background: var(--gtv-brand); border-color: var(--gtv-brand); color: #fff; }
.gtv-guide-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 460px;
	overflow-y: auto;
	position: relative;
}
.gtv-guide-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 6px;
	border-bottom: 1px solid #f0f0f0;
	margin: 0;
}
.gtv-guide-list li.gtv-guide-day { font-weight: 700; text-transform: capitalize; font-size: 13px; opacity: .7; border: 0; padding-top: 0; }
.gtv-guide-list li.gtv-guide-empty { opacity: .7; }
.gtv-guide-list li.is-past { opacity: .45; }
.gtv-guide-list li.is-now { background: #faf2f3; border-left: 3px solid var(--gtv-brand); }
.gtv-guide-list li.is-now .gtv-g-time::after { content: 'in onda'; display: block; color: var(--gtv-brand); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.gtv-guide-list img { width: 72px; height: 40px; object-fit: cover; flex: 0 0 auto; }
.gtv-g-time { flex: 0 0 64px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gtv-brand); }
.gtv-g-text { display: flex; flex-direction: column; min-width: 0; }
.gtv-g-title { font-weight: 600; line-height: 1.3; }
.gtv-g-sub { font-size: 12px; opacity: .7; }
.gtv-guide-list li.is-fixed .gtv-g-sub { color: var(--gtv-brand); opacity: 1; font-weight: 600; }

@media (max-width: 600px) {
	.gtv-guide-list img { display: none; }
	.gtv-now-title { font-size: 15px; }
}

/* Riquadro in home */
.gtv-home-slot .gtv-tv { margin-bottom: 0; }

/* Slogan */
.gtv-tagline {
	font-size: 11px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: .02em;
	opacity: .9;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}
.gtv-head .gtv-badge { flex: 0 0 auto; }
.gtv-ident-tagline { margin-top: 4px; font-size: clamp(12px, 2vw, 17px); font-style: italic; opacity: .9; }
@media (max-width: 480px) { .gtv-tagline { display: none; } }

/* Logo G TV */
.gtv-logo { display: inline-flex; align-items: center; }
.gtv-logo-img { height: 22px; width: auto; display: block; }
.gtv-ident-name img { width: min(46%, 300px); height: auto; display: block; margin: 0 auto; }

/* Logo in sovrimpressione (in alto a destra) */
.gtv-bug {
	position: absolute;
	width: clamp(54px, 13%, 150px);
	z-index: 2;
	pointer-events: none;
	transition: opacity .4s;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55));
}
.gtv-bug img { display: block; width: 100%; height: auto; }
.gtv-tv.is-ident .gtv-bug,
.gtv-tv.is-sponsor .gtv-bug-hide-sponsor { opacity: 0 !important; }
.gtv-mini .gtv-bug { width: clamp(46px, 15%, 110px); }

/* Stacco: sfondo personalizzato e sponsor */
.gtv-ident { color: var(--gtv-ident-color, #fff); }
.gtv-ident [hidden] { display: none !important; }
.gtv-ident.has-bg { background-size: cover; background-position: center; }
.gtv-ident-sponsor {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 5%;
	color: inherit !important;
	text-decoration: none !important;
	text-align: center;
}
.gtv-ident-sponsor-label {
	font-size: clamp(11px, 1.7vw, 15px);
	text-transform: uppercase;
	letter-spacing: .12em;
	opacity: .9;
}
.gtv-ident-sponsor-name { font-weight: 700; font-size: clamp(14px, 2.4vw, 22px); }
.gtv-ident-sponsor-name:empty { display: none; }
.gtv-ident-sponsor img { display: none; }
.gtv-ident-sponsor.is-logo img {
	display: block;
	width: auto;
	max-width: 70%;
	object-fit: contain;
	margin: 0 auto;
}
/* Con lo sponsor, il logo G TV si rimpicciolisce per fare spazio */
.gtv-ident.has-sponsor .gtv-ident-name img { width: min(30%, 220px); }
.gtv-ident.has-sponsor .gtv-ident-text { margin-top: 6px; }

.gtv-ident-sponsor.is-logo.has-box img {
	background: #fff;
	padding: clamp(6px, 1.2vw, 14px) clamp(10px, 2vw, 22px);
	border-radius: 4px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
	box-sizing: content-box;
}

/* Pagina G TV: margini laterali del lettore */
.gtv-tv.gtv-full { margin-left: 75px !important; margin-right: 75px !important; max-width: none; width: auto; }
@media (max-width: 900px) {
	.gtv-tv.gtv-full { margin-left: 0 !important; margin-right: 0 !important; }
}

/* Posizione del logo in sovrimpressione (sotto la barra del titolo e sopra i comandi di YouTube) */
.gtv-bug-top-left { top: 20px; left: 3%; }
.gtv-bug-top-right { top: 20px; right: 3%; }
.gtv-bug-bottom-left { bottom: calc(2% + 52px); left: 3%; }
.gtv-bug-bottom-right { bottom: calc(2% + 52px); right: 3%; }
.gtv-bug-top-left, .gtv-bug-bottom-left { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55)); }

/* Stacco breve dei video inseriti a mano: sfondo chiaro */
.gtv-ident.is-manual { background: var(--gtv-ident-bgcolor, #fff); }
.gtv-ident.is-manual .gtv-ident-sponsor.is-logo.has-box img { box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
/* Il colore dei testi dello stacco scelto in regia vale sempre (anche sopra la regola di base) */
.gtv-tv .gtv-ident.is-on { color: var(--gtv-ident-color, #fff); }
/* Audio attivo: il pulsante "Togli audio" resta discreto */
.gtv-unmute.is-on { opacity: .55; font-weight: 500; }
.gtv-unmute.is-on:hover, .gtv-screen:hover .gtv-unmute.is-on { opacity: 1; }

/* Pulsante sottotitoli, accanto a quello dell'audio */
.gtv-cc {
	position: absolute;
	z-index: 4;
	right: 10px;
	bottom: 92px;
	border: 0;
	cursor: pointer;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: rgba(0, 0, 0, .7);
	padding: 6px 10px;
	border-radius: 3px;
	opacity: .6;
}
.gtv-cc span { font-weight: 500; margin-left: 4px; }
.gtv-cc.is-on { background: var(--gtv-brand); opacity: 1; }
.gtv-cc:hover, .gtv-screen:hover .gtv-cc { opacity: 1; }
.gtv-cc[hidden] { display: none; }
@media (max-width: 480px) { .gtv-cc span { display: none; } }
