/*
 * NLTV — estilos do tema.
 * Cores e fontes vêm de variáveis (--nltv-*) definidas em Aparência > Personalizar.
 * Para mudar o design, comece pelas variáveis; a estrutura do HTML não precisa de mudar.
 */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--nltv-bg);
	color: var(--nltv-text);
	font: 400 15px/1.6 var(--nltv-font-body);
}
img, iframe, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--nltv-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--nltv-font-headings); font-weight: 500; line-height: 1.25; margin: 0 0 .5em; }
button { font: inherit; cursor: pointer; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 1000; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--nltv-primary); outline-offset: 2px; }
.icon { display: block; }

.container { width: 100%; max-width: var(--nltv-container, 1170px); margin: 0 auto; padding: 0 15px; }

/* ---------- Cabeçalho ---------- */
.site-header {
	background: var(--nltv-header-bg);
	border-bottom: 1px solid rgba(0, 0, 0, .08);
	position: relative; z-index: 50;
}
.header-sticky .site-header { position: sticky; top: 0; }
.admin-bar.header-sticky .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; min-height: 50px; gap: 20px; }
.site-brand { margin-right: auto; }
.site-brand img { max-height: 44px; width: auto; }
.site-brand__name { font: 700 24px/1 var(--nltv-font-headings); color: var(--nltv-header-fg); text-transform: uppercase; }

.main-nav__list, .main-nav__list ul { list-style: none; margin: 0; padding: 0; }
.main-nav__list { display: flex; }
.main-nav__list > li { position: relative; }
.main-nav__list a {
	display: block; padding: 14px 14px; color: var(--nltv-header-fg);
	text-transform: uppercase; font-size: 15px; letter-spacing: .01em;
}
.main-nav__list a:hover, .main-nav__list .current-menu-item > a { color: var(--nltv-primary); text-decoration: none; }
.main-nav__list .menu-item-has-children > a::after {
	content: ""; display: inline-block; margin-left: 6px; width: 6px; height: 6px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
}
.main-nav__list .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 230px; background: var(--nltv-header-bg);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .12); padding: 6px 0;
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.main-nav__list li:hover > .sub-menu, .main-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav__list .sub-menu a { padding: 8px 18px; text-transform: none; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; color: var(--nltv-header-fg); }

.topbar { background: var(--nltv-topbar-bg); font-size: 13px; color: var(--nltv-muted); }
.topbar__inner { display: flex; align-items: center; gap: 16px; min-height: 48px; }
.topbar__left { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__headline { color: var(--nltv-muted); }
.crumbs a { color: var(--nltv-muted); }
.crumbs__sep { opacity: .5; margin: 0 2px; }
.topbar__search { display: flex; }
.topbar__search input {
	border: 1px solid transparent; background: transparent; width: 0; padding: 0; transition: width .2s, padding .2s;
}
.topbar__search:focus-within input, .topbar__search input:not(:placeholder-shown) { width: 200px; padding: 6px 10px; background: #fff; border-color: #ddd; }
.topbar__search button { background: rgba(0, 0, 0, .05); border: 0; width: 34px; height: 34px; color: #888; display: grid; place-items: center; }
.social { display: flex; gap: 6px; }
.social a { color: var(--nltv-muted); padding: 4px; }
.social a:hover { color: var(--nltv-primary); }

/* ---------- Topo da página inicial ---------- */
.hero { position: relative; background: var(--nltv-dark-bg); }
.hero__track {
	display: grid; grid-auto-flow: column dense;
	grid-template-rows: repeat(2, 147px); grid-auto-columns: 261px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	gap: 1px;
}
.hero__track::-webkit-scrollbar { display: none; }
.hero__track > .card { scroll-snap-align: start; }
.hero__track > .card--hero-lg { grid-row: span 2; grid-column: span 2; }
.hero__nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	background: rgba(0, 0, 0, .55); color: #fff; border: 0; width: 40px; height: 56px; display: grid; place-items: center;
	opacity: 0; transition: opacity .2s;
}
.hero:hover .hero__nav, .hero__nav:focus-visible { opacity: 1; }
.hero__nav--prev { left: 0; }
.hero__nav--next { right: 0; }

/* ---------- Grelha principal ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; padding-top: 30px; padding-bottom: 40px; }
.layout__main { min-width: 0; }
.layout--sidebar-esquerda { grid-template-columns: 360px minmax(0, 1fr); }
.layout--sidebar-esquerda .sidebar { order: -1; }
.layout--sidebar-nenhuma { grid-template-columns: minmax(0, 1fr); }
.hide-title .article__head .article__title, .hide-title.page .article__head { display: none; }

/* Cabeçalho centrado */
.header-centrado .site-header__inner { flex-direction: column; gap: 0; padding-top: 12px; }
.header-centrado .site-brand { margin: 0 auto; }
.header-centrado .site-brand img { max-height: 64px; }
.header-centrado .main-nav__list { justify-content: center; }

/* ---------- Cartões ---------- */
.card { position: relative; min-width: 0; }
.card__link { display: block; color: inherit; height: 100%; }
.card__link:hover { text-decoration: none; }
.card__media { position: relative; overflow: hidden; background: #222; aspect-ratio: 16 / 9; border-radius: var(--nltv-radius); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card__link:hover .card__media img { transform: scale(1.04); }
.card__placeholder { position: absolute; inset: 0; background: linear-gradient(135deg, #333, #111); }
.card__duration {
	position: absolute; top: 8px; right: 8px; background: rgba(0, 0, 0, .75); color: #fff;
	font-size: 12px; padding: 1px 6px; border-radius: 2px;
}
.card--video .card__media::after {
	content: ""; position: absolute; left: 10px; top: 10px; width: 26px; height: 26px; border-radius: 50%;
	background: rgba(0, 0, 0, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 6v12l9-6z'/%3E%3C/svg%3E") center / 16px no-repeat;
	opacity: 0; transition: opacity .2s;
}
.card--video .card__link:hover .card__media::after { opacity: 1; }

/* sobre a imagem */
.card--overlay .card__body, .card--overlay-lg .card__body, .card--hero .card__body, .card--hero-lg .card__body {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 10px 8px;
	background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0));
	pointer-events: none; border-radius: 0 0 var(--nltv-radius) var(--nltv-radius);
}
.card--overlay .card__title, .card--overlay-lg .card__title {
	color: #fff; font-size: 14px; font-weight: 500; margin: 0;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card--overlay-lg .card__title { font-size: 15px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card--overlay .card__media, .card--overlay-lg .card__media { height: 100%; aspect-ratio: auto; min-height: 100%; }

.card--hero .card__media, .card--hero-lg .card__media { height: 100%; aspect-ratio: auto; border-radius: 0; }
.card--hero .card__title, .card--hero-lg .card__title {
	color: #fff; margin: 0; font: 300 18px/1.15 var(--nltv-font-overlay); text-transform: uppercase;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card--hero-lg .card__title { font-size: 40px; -webkit-line-clamp: 3; }
.card--hero-lg .card__body { padding: 40px 30px 22px; }

/* imagem por cima, texto por baixo */
.card--stacked .card__body { padding: 12px 0 0; }
.card--stacked .card__title { font-size: 17px; font-weight: 500; color: var(--nltv-text); margin: 0 0 6px; }
.card--stacked .card__link:hover .card__title { color: var(--nltv-primary); }
.card__date { font-size: 13px; color: var(--nltv-muted); margin: 0 0 8px; }
.card__excerpt { font-size: 14px; line-height: 1.55; margin: 0; color: var(--nltv-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Secções da página inicial ---------- */
.section { margin-bottom: 34px; }
.section__head { display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid #e8e8e8; margin-bottom: 20px; padding-bottom: 8px; }
.section__title { margin: 0; font-size: 22px; font-weight: 500; }
.section__title, .section__title a { color: var(--section-color, var(--nltv-primary)); }
.section__nav { display: flex; gap: 6px; }
.section__btn {
	width: 26px; height: 24px; display: grid; place-items: center; padding: 0;
	border: 1px solid var(--nltv-primary); background: #fff; color: var(--nltv-primary); border-radius: 3px;
}
.section__btn .icon { width: 16px; height: 16px; }
.section__btn:hover { background: var(--nltv-primary); color: #fff; }
.section__page { display: grid; gap: 10px; }
.section__page[hidden] { display: none; }
.section__more { text-align: right; margin: 12px 0 0; font-weight: 500; }

.section--destaque .section__page { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 100px; }
.section--destaque .card--overlay-lg { grid-row: span 2; }
.section--mosaico .section__page { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; grid-auto-rows: 65px; }
.section--mosaico .card--overlay-lg { grid-row: span 2; }
.section--mosaico .card--overlay .card__title { font-size: 13px; }
.section--lista .section__page { grid-template-columns: 1fr 1fr; gap: 28px 25px; }
.section--faixa .section__page { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 110px; }

/* ---------- Barra lateral e widgets ---------- */
.sidebar { min-width: 0; }
.widget { margin-bottom: 34px; }
.widget__title { font-size: 22px; font-weight: 500; color: var(--nltv-primary); margin-bottom: 14px; }
.widget iframe { max-width: 100%; }
.widget img { max-width: 100%; }
.nltv-center { text-align: center; }
.nltv-center img { margin: 0 auto; }

.nltv-banners { margin-bottom: 30px; position: relative; }
.nltv-banners--rotate { display: grid; }
.nltv-banners--rotate .nltv-banner { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s; }
.nltv-banners--rotate .nltv-banner.is-active { opacity: 1; visibility: visible; }
.nltv-banners:not(.nltv-banners--rotate) .nltv-banner + .nltv-banner { margin-top: 14px; }
.nltv-banner img { width: 100%; }
.sidebar .nltv-banners { margin-bottom: 0; }

.home-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding-bottom: 40px; }
.nltv-ratio { position: relative; aspect-ratio: 16 / 9; }
.nltv-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Notícia ---------- */
.feature { background: var(--nltv-dark-bg); }
.feature__inner { max-width: 900px; margin: 0 auto; }
.nltv-player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.nltv-player iframe, .nltv-player video, .nltv-player .wp-video { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.nltv-player__play { position: absolute; inset: 0; padding: 0; border: 0; background: #000; width: 100%; }
.nltv-player__play img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.nltv-player__icon {
	position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, .7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 34px no-repeat;
	border-radius: 12px; transition: background-color .2s;
}
.nltv-player__play:hover .nltv-player__icon { background-color: #e00; }

.article__head { margin-bottom: 18px; }
.article__cat { font-size: 13px; text-transform: uppercase; font-weight: 500; letter-spacing: .04em; color: var(--nltv-accent); }
.article__title { font-size: 30px; color: var(--nltv-primary); margin: 4px 0 8px; }
.article__meta { font-size: 13px; color: var(--nltv-muted); margin: 0; }
.article__author::before { content: "·"; margin: 0 6px; }
.article__image { margin: 0 0 20px; }
.entry { font-size: 16px; line-height: 1.7; overflow-wrap: break-word; }
.entry img { max-width: 100%; height: auto; }
.entry iframe { width: 100%; }
.entry .alignleft { float: left; margin: 0 20px 10px 0; }
.entry .alignright { float: right; margin: 0 0 10px 20px; }
.entry .aligncenter { margin-left: auto; margin-right: auto; }
.entry::after { content: ""; display: table; clear: both; }
.nltv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

.article__foot { border-top: 1px solid #eee; margin-top: 26px; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.tags { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags a { font-size: 12px; background: #f1f1f1; color: #555; padding: 3px 10px; border-radius: 2px; }
.share { display: flex; align-items: center; gap: 6px; }
.share__label { font-size: 13px; color: var(--nltv-muted); margin-right: 4px; }
.share__btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #555; }
.share__btn--facebook { background: #1877f2; }
.share__btn--whatsapp { background: #25d366; }
.share__btn--x { background: #000; }
.share__btn .icon { width: 17px; height: 17px; }

.post-navigation { margin: 28px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; }
.post-navigation a { display: block; padding: 14px 0; color: var(--nltv-text); }
.post-navigation .nav-next { text-align: right; }
.post-nav__label { display: block; font-size: 12px; color: var(--nltv-muted); text-transform: uppercase; }
.post-nav__title { font-weight: 500; }
.related .section__title { margin-bottom: 16px; }

/* ---------- Listagens ---------- */
.page-head { border-bottom: 3px solid #e8e8e8; margin-bottom: 24px; padding-bottom: 10px; }
.page-head__title { font-size: 28px; color: var(--nltv-primary); margin: 0; }
.page-head .search-form { margin-top: 12px; }
.grid { display: grid; gap: 28px 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid--4 .card--stacked .card__title { font-size: 14px; }
.grid--3 .card--stacked .card__title { font-size: 16px; }
.empty { color: var(--nltv-muted); }

.pagination { margin-top: 34px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers { min-width: 36px; height: 36px; padding: 0 8px; display: grid; place-items: center; border: 1px solid #ddd; color: var(--nltv-text); }
.pagination .page-numbers.current { background: var(--nltv-primary); border-color: var(--nltv-primary); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--nltv-primary); text-decoration: none; }

.search-form { display: flex; gap: 8px; max-width: 480px; }
.search-form input { flex: 1; padding: 8px 12px; border: 1px solid #ccc; font: inherit; }
.search-form button { background: var(--nltv-primary); color: #fff; border: 0; padding: 8px 16px; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--nltv-footer-bg); color: var(--nltv-footer-fg); font-size: 13px; }
.site-footer__widgets { display: grid; gap: 30px; padding-top: 40px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-footer__widgets--2 { grid-template-columns: repeat(2, 1fr); }
.site-footer__widgets--3 { grid-template-columns: repeat(3, 1fr); }
.site-footer__widgets--4 { grid-template-columns: repeat(4, 1fr); }
.footer-widget { margin-bottom: 20px; font-size: 14px; }
.footer-widget__title { color: #fff; font-size: 16px; font-weight: 500; margin-bottom: 12px; }
.footer-widget a { color: var(--nltv-footer-fg); }
.footer-widget a:hover { color: #fff; }
.footer-widget ul { list-style: none; margin: 0; padding: 0; }
.footer-widget li { padding: 3px 0; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 26px; padding-bottom: 26px; }
.site-footer__text, .site-footer__copy { margin: 0; }
.site-footer__copy { opacity: .7; font-size: 12px; margin-top: 2px; }
.site-footer .social a { color: var(--nltv-footer-fg); }
.site-footer .social a:hover { color: #fff; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.footer-nav li + li { border-left: 1px solid rgba(255, 255, 255, .2); }
.footer-nav a { color: var(--nltv-footer-fg); padding: 0 18px; }
.footer-nav li:last-child a { padding-right: 0; }

/* ---------- Notícia em modo vídeo ---------- */
.watch { background: var(--nltv-dark-bg); color: #fff; }
.watch__stage { max-width: min(1280px, calc((100vh - 170px) * 16 / 9)); margin: 0 auto; }
.watch__info { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-top: 18px; padding-bottom: 22px; }
.watch__cat { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; font-weight: 500; color: var(--nltv-accent); }
.watch__title { color: #fff; font-size: 28px; margin: 4px 0 6px; }
.watch__meta { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .65); }
.watch .share__label { color: rgba(255, 255, 255, .65); }
.watch .share__btn--email { background: #444; }
.watch__desc { font-size: 15px; line-height: 1.65; color: var(--nltv-text); }
.watch__desc.is-collapsed { max-height: 7.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.watch__more { background: none; border: 1px solid #ccc; padding: 5px 14px; margin: 10px 0 0; font-size: 13px; border-radius: 3px; color: var(--nltv-text); }
.watch__more:hover { border-color: var(--nltv-primary); color: var(--nltv-primary); }
.watch__article .tags { margin-top: 18px; }
.watch__article .nltv-banners { margin-top: 24px; }
.watch + .layout .related { margin-top: 30px; }

/* ---------- Página de categoria ---------- */
.cat-head {
	--cat-bg1-x: var(--cat-bg1, var(--section-color, var(--nltv-primary)));
	--cat-bg2-x: var(--cat-bg2, var(--nltv-dark-bg));
	position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 220px;
	background: linear-gradient(120deg, var(--cat-bg1-x), var(--cat-bg2-x));
	color: var(--cat-fg, #fff);
}
.cat-head--cover { min-height: 300px; background: var(--cat-bg2-x) var(--cat-cover) center / cover no-repeat; }
.cat-head--cover::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(to top, color-mix(in srgb, var(--cat-bg2, #000) 80%, transparent), color-mix(in srgb, var(--cat-bg1, #000) 15%, transparent) 75%);
}
.cat-head__inner { padding-top: 40px; padding-bottom: 28px; }
.cat-head__title { margin: 0; font: 300 52px/1.05 var(--nltv-font-overlay); text-transform: uppercase; color: var(--cat-fg, #fff); letter-spacing: .01em; }
.cat-head__desc { color: var(--cat-fg, #fff); opacity: .85; margin-top: 8px; max-width: 70ch; }
.cat-head__desc p { margin: 0; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 3px solid #e8e8e8; padding-bottom: 8px; margin-bottom: 20px; }
.list-head .section__title { margin: 0; }
.view-switch { display: flex; gap: 4px; }
.view-switch button { width: 32px; height: 30px; padding: 0; display: grid; place-items: center; border: 1px solid #d5d5d5; background: #fff; color: #999; border-radius: 3px; }
.view-switch button[aria-pressed="true"], .view-switch button:hover { border-color: var(--section-color, var(--nltv-primary)); color: var(--section-color, var(--nltv-primary)); }
.view-switch__icon { display: grid; gap: 2px; width: 16px; height: 14px; }
.view-switch__icon i { background: currentColor; border-radius: 1px; }
.view-switch__icon--4 { grid-template-columns: repeat(2, 1fr); }
.view-switch__icon--2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.view-switch__icon--2 i:nth-child(n+3) { display: none; }
.view-switch__icon--1 { grid-template-columns: 5px 1fr; grid-template-rows: 1fr 1fr; }

/* lista da categoria: 4, 2 ou 1 por linha */
.catlist { display: grid; gap: 24px 16px; }
.catlist[data-view="4"] { grid-template-columns: repeat(4, 1fr); }
.catlist[data-view="2"] { grid-template-columns: repeat(2, 1fr); gap: 28px 22px; }
.catlist[data-view="1"] { grid-template-columns: 1fr; gap: 22px; }
.card--tile .card__body { padding: 10px 0 0; }
.card--tile .card__title { font-size: 15px; font-weight: 500; color: var(--nltv-text); margin: 0 0 4px; }
.card--tile .card__link:hover .card__title { color: var(--section-color, var(--nltv-primary)); }
.catlist[data-view="2"] .card__title { font-size: 18px; }
.catlist:not(.catlist--meta)[data-view="4"] .card__date, .catlist:not(.catlist--meta)[data-view="4"] .card__excerpt,
.catlist:not(.catlist--meta)[data-view="2"] .card__date, .catlist:not(.catlist--meta)[data-view="2"] .card__excerpt { display: none; }
.catlist--meta[data-view="4"] .card__excerpt { display: none; }
.catlist[data-view="1"] .card__link { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.catlist[data-view="1"] .card__body { padding: 0; }
.catlist[data-view="1"] .card__title { font-size: 20px; margin-bottom: 6px; }
.hero--few .hero__track { grid-template-columns: 2fr; grid-auto-columns: 1fr; grid-auto-flow: column; grid-template-rows: repeat(2, 160px); overflow: hidden; }
.hero--few .card--hero-lg { grid-column: span 1; }
.grid--tiles { gap: 22px 16px; }
.rows { display: grid; gap: 22px; }
.card--row .card__link { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.card--row .card__body { padding: 0; }
.card--row .card__title { font-size: 19px; font-weight: 500; color: var(--nltv-text); margin: 0 0 6px; }
.card--row .card__link:hover .card__title { color: var(--nltv-primary); }

/* ---------- Direto (ecrã inteiro) ---------- */
.page-template-page-direto .topbar { display: none; }
.live {
	min-height: calc(100vh - 51px); display: grid; place-items: center; padding: 24px 16px 32px;
	background: #000 var(--live-bg, none) center / cover no-repeat;
	position: relative; isolation: isolate;
}
.live::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(0, 0, 0, .35), rgba(0, 0, 0, .85)); }
.live__inner { width: min(100%, calc((100vh - 200px) * 16 / 9)); max-width: 1500px; }
.live__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 14px; color: #fff; }
.live__badge { background: #e00; color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px 4px 22px; border-radius: 3px; position: relative; }
.live__badge::before { content: ""; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #fff; animation: nltv-pulse 1.4s infinite; }
@keyframes nltv-pulse { 50% { opacity: .2; } }
.live__title { color: #fff; font-size: 22px; margin: 0; flex: 1; min-width: 200px; }
.live__channels { display: flex; flex-wrap: wrap; gap: 6px; }
.live__channels a { color: #fff; font-size: 13px; padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 20px; }
.live__channels a[aria-current], .live__channels a:hover { background: #fff; color: #000; text-decoration: none; }
.live__player { position: relative; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.live__player iframe, .live__player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live__fs { margin-top: 12px; background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .3); padding: 6px 14px; border-radius: 3px; font-size: 13px; }
.live__fs:hover { background: rgba(255, 255, 255, .25); }

/* ---------- Blocos da página inicial ---------- */
.section--ads { margin-bottom: 30px; }
.section--ads .nltv-banners { margin-bottom: 0; }
.section__label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--nltv-muted); margin: 0 0 6px; }
.section--live .section__title { display: flex; align-items: center; gap: 10px; }
.section--live .live__badge { font-size: 11px; }
.section--live .nltv-ratio { background: #000; }

/* ---------- Formulário de contacto ---------- */
.nltv-form { max-width: 720px; }
.nltv-form__title { color: var(--nltv-primary); font-size: 22px; }
.nltv-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.nltv-form p { margin: 0 0 14px; }
.nltv-form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.nltv-form input[type="text"], .nltv-form input[type="email"], .nltv-form input[type="tel"], .nltv-form select, .nltv-form textarea {
	width: 100%; padding: 10px 12px; border: 1px solid #cfcfcf; border-radius: 3px; font: inherit; background: #fff; color: var(--nltv-text);
}
.nltv-form input:focus, .nltv-form select:focus, .nltv-form textarea:focus { outline: 2px solid var(--nltv-primary); outline-offset: 0; border-color: var(--nltv-primary); }
.nltv-form__consent label { font-weight: 400; font-size: 13px; color: var(--nltv-muted); display: flex; gap: 8px; align-items: flex-start; }
.nltv-form__consent input { margin-top: 3px; }
.nltv-form__submit { background: var(--nltv-primary); color: #fff; border: 0; padding: 11px 26px; border-radius: 3px; font-weight: 500; }
.nltv-form__submit:hover { filter: brightness(1.1); }
.nltv-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nltv-form__notice { padding: 12px 16px; border-radius: 3px; }
.nltv-form__notice--ok { background: #e7f6ec; color: #135e2b; border-left: 4px solid #1f8a3f; }
.nltv-form__notice--err { background: #fcebea; color: #8a1f17; border-left: 4px solid #c9372c; }

/* ---------- Direto e avisos ---------- */
.alertbar { background: var(--alert-bg, #c9372c); color: #fff; font-size: 14px; }
.alertbar__inner { display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.alertbar__label { text-transform: uppercase; font-family: var(--nltv-font-overlay); letter-spacing: .04em; background: rgba(0, 0, 0, .2); padding: 2px 8px; white-space: nowrap; }
.alertbar__text { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.alertbar__text:hover { color: #fff; text-decoration: underline; }
.live-btn { display: inline-flex; align-items: center; gap: 7px; background: #d61f1f; color: #fff; font-family: var(--nltv-font-overlay); text-transform: uppercase; font-size: 14px; letter-spacing: .04em; padding: 6px 12px; border-radius: 3px; white-space: nowrap; margin-left: 16px; order: 3; }
.live-btn:hover { color: #fff; filter: brightness(1.1); }
.live-btn__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: nltv-pulse 1.4s infinite; }
@keyframes nltv-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .live-btn__dot { animation: none; } }
.share__btn--telegram { background: #229ed9; }
.share__btn--linkedin { background: #0a66c2; }

/* ---------- Ecrãs mais pequenos ---------- */
@media (max-width: 1100px) {
	.layout { grid-template-columns: minmax(0, 1fr) 300px; }
	.section--mosaico .section__page { grid-template-columns: 2fr 1fr 1fr 1fr; }
	.section--mosaico .card:nth-child(n+8) { display: none; }
}
@media (max-width: 900px) {
	.layout, .layout--sidebar-esquerda { grid-template-columns: 1fr; }
	.layout--sidebar-esquerda .sidebar { order: 0; }
	.site-footer__widgets--3, .site-footer__widgets--4 { grid-template-columns: repeat(2, 1fr); }
	.sidebar { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 30px; }
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.catlist[data-view="4"] { grid-template-columns: repeat(3, 1fr); }
	.home-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	body { font-size: 15px; }
	.admin-bar .site-header { top: 0; position: relative; }
	.menu-toggle { display: block; }
	.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--nltv-header-bg); box-shadow: 0 8px 18px rgba(0, 0, 0, .15); max-height: calc(100vh - 60px); overflow-y: auto; }
	.main-nav.is-open { display: block; }
	.main-nav__list { flex-direction: column; padding: 6px 0; }
	.main-nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 6px 14px; }
	.main-nav__list a { padding: 10px 16px; }
	.topbar .social { display: none; }
	.hero__track { grid-template-rows: repeat(2, 110px); grid-auto-columns: 196px; }
	.card--hero-lg .card__title { font-size: 26px; }
	.card--hero .card__title { font-size: 15px; }
	.section--destaque .section__page, .section--mosaico .section__page, .section--faixa .section__page { grid-template-columns: 1fr 1fr; grid-auto-rows: 100px; }
	.section--destaque .card--overlay-lg, .section--mosaico .card--overlay-lg { grid-column: span 2; grid-row: span 2; }
	.section--mosaico .card:nth-child(n+6) { display: none; }
	.section--lista .section__page, .grid--3 { grid-template-columns: 1fr; }
	.article__title { font-size: 24px; }
	.nltv-cols { grid-template-columns: 1fr; }
	.watch__info { flex-direction: column; align-items: flex-start; }
	.watch__title { font-size: 22px; }
	.cat-head { min-height: 150px; }
	.cat-head--cover { min-height: 190px; }
	.cat-head__title { font-size: 34px; }
	.hero--few .hero__track { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-template-rows: 200px; grid-auto-rows: 110px; }
	.hero--few .card--hero-lg { grid-column: span 2; }
	.hero--few .card:nth-child(n+6) { display: none; }
	.card--row .card__link { grid-template-columns: 130px 1fr; gap: 12px; }
	.catlist[data-view="4"] { grid-template-columns: repeat(2, 1fr); }
	.catlist[data-view="2"] { grid-template-columns: 1fr; }
	.catlist[data-view="1"] .card__link { grid-template-columns: 130px 1fr; gap: 12px; }
	.catlist[data-view="1"] .card__title { font-size: 16px; }
	.catlist[data-view="1"] .card__excerpt { -webkit-line-clamp: 2; }
	.view-switch button[data-view="4"] { display: none; }
	.card--row .card__title { font-size: 16px; }
	.card--row .card__excerpt { display: none; }
	.live { min-height: auto; }
	.nltv-form__row, .site-footer__widgets--2, .site-footer__widgets--3, .site-footer__widgets--4 { grid-template-columns: 1fr; }
	.site-footer__inner { flex-direction: column; text-align: center; }
	.footer-nav { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Botão "Em direto" ao lado do menu: o menu não parte em duas linhas */
.main-nav__list > li > a { white-space: nowrap; }
@media (max-width: 1199px) { .live-btn { margin-left: 8px; padding: 6px 10px; } }
@media (max-width: 900px) { .live-btn { margin-left: auto; } .menu-toggle { order: 4; } }
