.brand-lockup .bnu-tv-link{display:inline-flex;align-items:center;gap:.4em;margin-inline-start:.55rem;white-space:nowrap;border:1px solid #2874b9;border-radius:2rem;padding:.35em .75em;color:#1267ae;background:#edf7ff;font:700 .85rem/1.35 system-ui;text-decoration:none}
.bnu-tv {
	max-width: 72rem;
	margin: 0 auto;
	color: var(--bnutv-text,#0b1220);
	--tv-border: var(--bnutv-line,#dce3ed);
	--tv-blue: var(--bnutv-accent,#005fc8);
}
.bnu-tv h2,.bnu-tv h3,.bnu-tv h4,.bnu-tv p { margin: 0; }
.bnu-tv h2 { font-size: clamp(1.55rem,3.5vw,2.35rem); line-height: 1.15; letter-spacing: -.035em; }
.bnu-tv-stage { border: 1px solid var(--tv-border); border-radius: var(--bnutv-radius,16px); overflow: hidden; background: var(--bnutv-surface-solid,#fff); }
.bnu-tv .tv-intro { margin: .45rem 0 0; color: var(--bnutv-muted,#475569); }
.bnu-tv .tv-reset,.bnu-tv nav a { color: var(--tv-blue); font-weight: 650; text-decoration: none; }
.tv-stage-cover img { display: block; width: 100%; height: clamp(9rem,18vw,15rem); object-fit: cover; }
.bnu-tv-stage.is-live .tv-stage-cover { display: none; }
.tv-stage-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem 1rem; padding: .7rem clamp(.85rem,2vw,1.25rem); }
.tv-stage-info { flex: 1 1 17rem; min-width: 0; }
.tv-stage-info p { font-size: clamp(.95rem,1.25vw,1.1rem); font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.tv-live-label { display: none; }
.is-live .tv-live-label { display: flex; align-items: center; gap: .38rem; color: var(--bnutv-muted,#475569); font-size: .75rem; font-weight: 650; margin-bottom: .12rem; }
.tv-live-label::before { content: ''; width: .47rem; height: .47rem; border-radius: 50%; background: #e33150; }
.tv-stage-links { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .9rem; }
.tv-stage-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--tv-blue); font-size: .88rem; font-weight: 650; text-decoration: none; }
.is-live .tv-explore { display: none; }
.tv-stage-links a:hover { text-decoration: underline; }
.bnu-tv iframe { display: block; width: 100%; height: auto; aspect-ratio: 16/9; border: 0; }
#arquivo-tv { margin: clamp(2rem,5vw,3.5rem) 0 0; scroll-margin-top: 6rem; }
.tv-filters { display: grid; grid-template-columns: minmax(10rem,1.35fr) repeat(3,minmax(0,1fr)) auto; align-items: end; gap: .8rem; margin: 1.25rem 0 2rem; padding: 1rem; background: var(--bnutv-bg,#f5f7fa); border: 1px solid var(--tv-border); border-radius: var(--bnutv-radius,16px); }
.tv-filters label { display: grid; gap: .32rem; min-width: 0; font-size: .85rem; font-weight: 650; }
.tv-filters :is(input,select,button) { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: .55rem .7rem; font: inherit; font-size: 1rem; border: 1px solid var(--tv-border); border-radius: .65rem; background: white; color: inherit; }
.tv-filters button { background: var(--tv-blue); color: white; padding-inline: 1.25rem; font-weight: 700; cursor: pointer; }
.tv-reset { grid-column: 1/-1; justify-self: start; }
.bnu-tv .tv-month { font-size: 1.45rem; text-transform: capitalize; letter-spacing: -.025em; margin: 1.5rem 0 .35rem; }
.bnu-tv .tv-week { margin: 1.15rem 0 .35rem; color: var(--bnutv-muted,#475569); font-size: .85rem; }
.bnu-tv .tv-edition { display: grid; grid-template-columns: 5.5rem minmax(0,1fr) 2rem; align-items: center; gap: 1rem; min-height: 5.4rem; padding: .85rem .5rem; border-bottom: 1px solid var(--tv-border); color: inherit; text-decoration: none; }
.tv-edition:hover,.tv-edition:focus-visible { background: var(--bnutv-accent-soft,#eff6ff); }
.tv-edition img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: .5rem; }
.tv-date-tile { display: grid; align-content: center; text-align: center; background: #eaf3ff; color: var(--tv-blue); border-radius: .55rem; padding: .4rem; font-weight: 650; font-size: .72rem; text-transform: uppercase; line-height: 1.2; }
.tv-date-tile b { font-size: 1.4rem; }
.tv-edition-text { display: grid; gap: .28rem; line-height: 1.35; overflow-wrap: anywhere; }
.tv-edition-text strong { font-size: clamp(.98rem,2vw,1.15rem); }
.tv-edition-text small,.tv-edition-text>span { color: var(--bnutv-muted,#475569); font-size: .85rem; }
.tv-play { color: var(--tv-blue); text-align: center; }
.bnu-tv nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.bnu-tv :focus-visible { outline: 2px solid var(--tv-blue); outline-offset: 2px; }
@media(max-width:850px) {
	.tv-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:540px) {
	.tv-filters { padding: .75rem; gap: .65rem; }
	.tv-filters label:first-of-type,.tv-filters button { grid-column: 1/-1; }
	.tv-filters label:last-of-type { grid-column: 1/-1; }
	.bnu-tv .tv-edition { grid-template-columns: 3.5rem minmax(0,1fr) 1rem; gap: .65rem; padding-inline: 0; }
}

/* The program, camera strip and archive each occupy their own level on the page. */
.page-view:has(.bnu-tv) .content-shell { background: transparent; border: 0; box-shadow: none; padding: 0; }
.bnu-tv { max-width: none; }
.tv-cameras { margin: clamp(1.7rem,4vw,3rem) 0; }
.bnu-tv .tv-cameras h2 { font-size: clamp(1.35rem,2.4vw,1.8rem); margin-bottom: .85rem; }
.tv-cameras-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(.55rem,1.5vw,1.25rem); }
.tv-cameras-grid a { overflow: hidden; border-radius: var(--bnutv-radius,16px); border: 1px solid var(--tv-border); background: #fff; text-decoration: none; color: inherit; }
.tv-cameras-grid a:hover strong { color: var(--tv-blue); }
.tv-cameras-grid img { display: block; width: 100%; aspect-ratio: 16/9; height: auto; object-fit: cover; }
.tv-cameras-grid span { display: grid; padding: .7rem .85rem .9rem; gap: .2rem; line-height: 1.35; }
.tv-cameras-grid small { color: var(--tv-blue); font-weight: 650; }
.bnu-tv #arquivo-tv { background: white; padding: clamp(1rem,3vw,2rem); border: 1px solid var(--tv-border); border-radius: var(--bnutv-radius,16px); }
.bnu-tv .tv-empty { padding: 1rem 0 .25rem; color: var(--bnutv-muted,#475569); }
.bnu-tv .autoplay-ad { margin: clamp(1.5rem,4vw,3rem) auto; width: 100%; }
.bnu-tv .autoplay-ad::before { content: 'Publicidade'; display: block; margin-bottom: .4rem; font-size: .72rem; letter-spacing: .05em; color: var(--bnutv-muted,#475569); }
.bnu-tv .autoplay-ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.brand-lockup .bnu-tv-link { text-transform: none; gap: .18em; }
@media(max-width:720px) {
	.tv-cameras-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.tv-cameras-grid span { padding: .55rem .65rem .7rem; font-size: .9rem; }
	.brand-lockup .autoplay-brand-suffix { display: none; }
}

.tv-program-layout { align-items: start; }
.tv-program-layout .bnu-tv-stage { min-width: 0; }
.tv-program-layout .bnu-tv-stage:only-child { grid-column: 1 / -1; }
.tv-program-layout [data-player]:empty { display: none; }
.tv-program-layout [data-player] { background: #000; border-radius: 0; }
.tv-program-layout [data-player] iframe { min-height: 200px; }
@media (min-width: 1024px) {
	.tv-program-layout .autoplay-ad-program { margin: 0; }
}

@media (max-width: 720px) {
	.site-header .header-inner:has(.bnu-tv-link) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: clamp(4px, 1.5vw, 10px);
		min-height: 60px;
	}
	.site-header .brand:has(.bnu-tv-link) { min-width: 0; }
	.site-header .brand-lockup:has(.bnu-tv-link) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: clamp(4px, 1.5vw, 10px);
	}
	.site-header .brand-lockup .custom-logo-link { width: fit-content; max-width: 100%; min-height: 44px; }
	.site-header .brand-lockup .custom-logo { width: 108px; max-width: 100%; height: auto; }
	.site-header .brand-lockup .bnu-tv-link {
		justify-content: center;
		min-height: 44px;
		margin: 0;
		padding: 0 .65rem;
		gap: .35rem;
		background: var(--bnutv-accent-soft,#edf5ff);
		color: var(--bnutv-accent,#005fc8);
		border-color: transparent;
		font-size: .85rem;
	}
	.site-header .header-actions { gap: clamp(4px, 1.5vw, 10px); }
	.site-header .partner-header-cta, .site-header .bnu-supporter-preview {
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
	}
	.site-header .partner-header-cta span { display: none; }
	.site-header .partner-header-cta, .site-header .menu-toggle { box-shadow: none; }
	.site-header .primary-navigation { position: absolute; top: calc(100% + 5px); inset-inline: 0; width: 100%; }
}
@media (max-width: 520px) {
	.site-header .menu-toggle { width: 44px; min-width: 44px; height: 44px; padding: 0; }
	.site-header .menu-toggle__label { display: none; }
}
