/*
Theme Name: Nativa TV Studio
Theme URI: https://nativatv.com.br
Author: Maria Derzi
Author URI: https://nativatv.com.br
Description: Tema oficial da Nativa TV para WebTV, notícias, vídeos, podcasts e programação.
Version: 5.5.1
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: nativatv-studio
Tags: news, entertainment, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ==========================================================
   1. VARIÁVEIS DO TEMA CLARO
   ========================================================== */
:root {
    --bg: #f5f7fa;
    --card: #ffffff;
    --text: #171a1f;
    --muted: #68717d;
    --border: #dfe4ea;
    --red: #e51e2a;
    --green: #0aa84f;
    --header-bg: #ffffff;
    --header-text: #20242a;
    --header-border: #e5e7eb;
    --header-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    --control-bg: #eef1f4;
    --control-text: #20242a;
    --radius: 18px;
    --shadow: 0 12px 35px rgba(10, 18, 30, 0.08);
    --max: 1280px;
}

/* ==========================================================
   2. BASE
   ========================================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

.ntv-container {
    width: min(calc(100% - 32px), var(--max));
    margin-inline: auto;
}

/* ==========================================================
   3. CABEÇALHO — BRANCO NO TEMA CLARO
   ========================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    color: var(--header-text);
    border-bottom: 1px solid var(--header-border);
    box-shadow: var(--header-shadow);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.admin-bar .site-header {
    top: 32px;
}

.ntv-header-inner {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 96px;
}

.site-branding {
    margin-right: auto;
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.custom-logo {
    width: auto;
    max-height: 82px;
}

.ntv-site-name {
    color: var(--header-text);
    font-size: 1.3rem;
    font-weight: 800;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation a {
    color: var(--header-text);
    font-weight: 750;
    transition: color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation a:focus-visible {
    color: var(--green);
}

.ntv-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ntv-theme-toggle,
.ntv-menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--header-border);
    border-radius: 999px;
    background: var(--control-bg);
    color: var(--control-text);
    cursor: pointer;
    font-size: 1.15rem;
}

.ntv-menu-toggle {
    display: none;
}

.ntv-live-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 999px;
    background: var(--red);
    color: #ffffff;
    font-weight: 850;
}

.ntv-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffffff;
}

/* ==========================================================
   4. ESTRUTURA PRINCIPAL
   ========================================================== */
.site-main {
    padding: 38px 0 64px;
}

.ntv-broadcast-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.72fr) minmax(280px, 0.83fr);
    gap: 20px;
}

.ntv-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
}

/* ==========================================================
   5. PLAYER E PAINEL BROADCAST
   ========================================================== */
.ntv-player-card {
    display: flex;
    flex-direction: column;
    min-height: 520px;
    background: #07090b;
}

.ntv-player-frame {
    flex: 1;
    min-height: 340px;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.ntv-player-frame iframe,
.ntv-player-frame video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.ntv-player-empty {
    display: grid;
    place-items: center;
    min-height: 340px;
    height: 100%;
    padding: 30px;
    color: #aab2bd;
    text-align: center;
}

.ntv-player-caption {
    padding: 20px 22px 24px;
    background: #11151a;
    color: #ffffff;
}

.ntv-player-caption h1 {
    margin: 8px 0 4px;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.ntv-eyebrow {
    display: inline-flex;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ntv-clock-column {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.ntv-clock-card,
.ntv-info-card {
    padding: 24px;
    background: #11151a;
    color: #ffffff;
}

.ntv-location,
.ntv-date {
    color: #b8c3cf;
}

.ntv-clock {
    margin: 14px 0;
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 900;
    line-height: 1;
}

/* ==========================================================
   6. ÚLTIMAS NOTÍCIAS E TICKER
   ========================================================== */
.ntv-news-rail {
    display: flex;
    flex-direction: column;
    padding: 22px;
}

.ntv-news-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ntv-news-list li {
    padding: 14px 0;
    border-top: 1px solid var(--border);
}

.ntv-news-list li:first-child {
    padding-top: 0;
    border-top: 0;
}

.ntv-news-list a {
    display: block;
    font-weight: 800;
    line-height: 1.28;
}

.ntv-news-list time,
.ntv-meta {
    color: var(--muted);
    font-size: 0.8rem;
}

.ntv-more-link {
    margin-top: auto;
    padding-top: 16px;
    color: var(--green);
    font-weight: 850;
}

.ntv-ticker {
    display: flex;
    overflow: hidden;
    min-height: 48px;
    margin-top: 20px;
    border: 1px solid rgba(10, 168, 79, 0.38);
    border-radius: 14px;
    background: rgba(10, 168, 79, 0.18);
}

.ntv-ticker-label {
    display: flex;
    align-items: center;
    padding: 13px 18px;
    background: var(--green);
    color: #ffffff;
    font-weight: 900;
}

.ntv-ticker-window {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.ntv-ticker-track {
    display: inline-block;
    padding-left: 100%;
    font-weight: 750;
    animation: ntvTicker 42s linear infinite;
}

@keyframes ntvTicker {
    to {
        transform: translateX(-100%);
    }
}

/* ==========================================================
   7. SEÇÕES, CARDS E CONTEÚDO
   ========================================================== */
.ntv-section {
    margin-top: 42px;
}

.ntv-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 18px;
}

.ntv-section-heading h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.ntv-post-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.ntv-post-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.ntv-post-thumb {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #dfe5eb;
}

.ntv-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ntv-post-body {
    padding: 17px;
}

.ntv-post-body h3 {
    margin: 8px 0 7px;
    font-size: 1.05rem;
    line-height: 1.3;
}

.ntv-content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ntv-feature-box {
    min-height: 210px;
    padding: 24px;
}

.ntv-ad-slot {
    display: grid;
    place-items: center;
    min-height: 140px;
    padding: 24px;
    border: 2px dashed #cbd3dc;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.5);
    color: var(--muted);
    text-align: center;
}

.entry-shell {
    padding: clamp(22px, 4vw, 48px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
}

/* ==========================================================
   8. RODAPÉ
   ========================================================== */
.site-footer {
    padding: 54px 0 22px;
    background: #080b0e;
    color: #ffffff;
}

.ntv-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 42px;
}

.ntv-footer-text {
    color: #b6c0ca;
}

.ntv-footer-menu {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ntv-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ntv-socials a {
    padding: 9px 13px;
    border-radius: 999px;
    background: #181d22;
}

.ntv-copyright {
    margin-top: 38px;
    padding-top: 20px;
    border-top: 1px solid #1c232a;
    color: #8f9aa5;
}

/* ==========================================================
   9. TEMA ESCURO — AUTOMÁTICO À NOITE OU PELO BOTÃO
   ========================================================== */
body.ntv-dark {
    --bg: #080b0e;
    --card: #11151a;
    --text: #f1f4f7;
    --muted: #aeb8c3;
    --border: #252c33;
    --header-bg: #111315;
    --header-text: #ffffff;
    --header-border: #252c33;
    --header-shadow: 0 3px 15px rgba(0, 0, 0, 0.28);
    --control-bg: #20252b;
    --control-text: #ffffff;
    --shadow: 0 12px 35px rgba(0, 0, 0, 0.24);
}

body.ntv-dark .ntv-ad-slot {
    background: rgba(255, 255, 255, 0.03);
}

/* ==========================================================
   10. RESPONSIVIDADE
   ========================================================== */
@media (max-width: 1100px) {
    .ntv-broadcast-grid {
        grid-template-columns: 1.45fr 0.75fr;
    }

    .ntv-news-rail {
        grid-column: 1 / -1;
    }

    .ntv-post-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-navigation {
        display: none;
    }

    .ntv-menu-toggle {
        display: inline-grid;
    }

    .site-header.ntv-menu-open .main-navigation {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: block;
        padding: 20px;
        border-top: 1px solid var(--header-border);
        background: var(--header-bg);
        box-shadow: var(--header-shadow);
    }

    .site-header.ntv-menu-open .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .admin-bar .site-header {
        top: 46px;
    }

    .ntv-container {
        width: min(calc(100% - 20px), var(--max));
    }

    .ntv-header-inner {
        min-height: 80px;
        gap: 10px;
    }

    .custom-logo {
        max-height: 62px;
    }

    .ntv-live-button {
        padding: 11px 14px;
        font-size: 0.82rem;
    }

    .ntv-broadcast-grid,
    .ntv-post-grid,
    .ntv-content-grid,
    .ntv-footer-grid {
        grid-template-columns: 1fr;
    }

    .ntv-clock-column {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .ntv-player-card {
        min-height: 0;
    }

    .ntv-player-frame {
        min-height: 230px;
    }
}

.ntv-single-featured{margin:24px 0;border-radius:14px;overflow:hidden}.ntv-entry-content{font-size:1.05rem}.ntv-entry-content p{margin:0 0 1.35em}


/* ==========================================================
   11. HOME EDITÁVEL E CARDS DE NOTÍCIAS — VERSÃO 4.0.3
   ========================================================== */
.ntv-home-editor-content {
    margin-top: 32px;
}

.ntv-home-editor-content:empty {
    display: none;
}

.ntv-news-rail > h2 {
    margin: 0 0 16px;
    font-size: 1.35rem;
}

.ntv-news-list {
    display: grid;
    gap: 0;
}

.ntv-rail-item {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 13px;
    padding: 15px 0;
    border-top: 1px solid var(--border);
}

.ntv-rail-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.ntv-rail-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    border-radius: 10px;
    background: #dfe5eb;
}

.ntv-rail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ntv-rail-item:hover .ntv-rail-thumb img,
.ntv-post-card:hover .ntv-post-thumb img {
    transform: scale(1.04);
}

.ntv-rail-content {
    min-width: 0;
}

.ntv-rail-content .ntv-eyebrow {
    margin-bottom: 3px;
    font-size: 0.68rem;
}

.ntv-rail-content h3 {
    margin: 0 0 5px;
    font-size: 0.94rem;
    line-height: 1.25;
}

.ntv-rail-content h3 a:hover,
.ntv-post-body h3 a:hover {
    color: var(--green);
}

.ntv-rail-content time {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
}

.ntv-rail-content p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.ntv-thumb-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 8px;
    background: linear-gradient(135deg, #141a20, #303943);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-align: center;
}

.ntv-thumb-placeholder--large {
    font-size: 1rem;
}

.ntv-post-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ntv-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(10, 18, 30, 0.14);
}

.ntv-post-body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.ntv-post-excerpt {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.ntv-card-link {
    margin-top: auto;
    padding-top: 15px;
    color: var(--green);
    font-weight: 850;
}

.ntv-empty-message {
    margin: 0;
    color: var(--muted);
}

.ntv-ticker-track {
    padding-block: 12px;
    animation-duration: 78s;
}

.ntv-ticker:hover .ntv-ticker-track {
    animation-play-state: paused;
}

.ntv-shortcode-grid {
    margin-block: 20px;
}

body.ntv-dark .ntv-post-card:hover {
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

@media (max-width: 1100px) {
    .ntv-news-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 22px;
    }

    .ntv-rail-item:nth-child(2) {
        padding-top: 0;
        border-top: 0;
    }
}

@media (max-width: 720px) {
    .ntv-news-list {
        grid-template-columns: 1fr;
    }

    .ntv-rail-item:nth-child(2) {
        padding-top: 15px;
        border-top: 1px solid var(--border);
    }

    .ntv-rail-item {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .ntv-rail-content p {
        display: none;
    }
}


/* ==========================================================
   NATIVA TV STUDIO 5.0 — HOME WEBTV
   Etapa 1: Player grande + Broadcast vertical
   ========================================================== */
.ntv-broadcast-grid{
    display:grid !important;
    grid-template-columns:minmax(0, 2.45fr) minmax(280px, .72fr) !important;
    gap:22px !important;
    align-items:stretch !important;
}
.ntv-player-card{
    min-height:620px !important;
}
.ntv-player-frame{
    min-height:500px !important;
    aspect-ratio:16/9 !important;
}
.ntv-broadcast-side{
    min-width:0;
    display:flex;
    flex-direction:column;
}
.ntv-broadcast-side .ntv-broadcast-widget{
    width:100%;
    height:100%;
    min-height:620px;
    aspect-ratio:auto;
}
.ntv-broadcast-side .ntv-broadcast-content{
    width:88%;
}
.ntv-broadcast-side .ntv-broadcast-clock{
    font-size:clamp(38px,4.3vw,58px);
}
.ntv-home-editor-content{
    margin-top:24px;
}
@media(max-width:1024px){
    .ntv-broadcast-grid{
        grid-template-columns:minmax(0,1.8fr) minmax(250px,.72fr) !important;
        gap:16px !important;
    }
    .ntv-player-card,.ntv-broadcast-side .ntv-broadcast-widget{
        min-height:540px !important;
    }
    .ntv-player-frame{min-height:420px !important;}
}
@media(max-width:820px){
    .ntv-broadcast-grid{grid-template-columns:1fr !important;}
    .ntv-player-card{min-height:auto !important;}
    .ntv-player-frame{min-height:0 !important;}
    .ntv-broadcast-side{
        width:min(100%,420px);
        margin-inline:auto;
    }
    .ntv-broadcast-side .ntv-broadcast-widget{
        min-height:600px !important;
        aspect-ratio:9/16;
    }
}

/* Nativa TV 5.0.1 — refinamento do Broadcast */
.ntv-broadcast-side .ntv-broadcast-content{
    width:86% !important;
    top:56% !important;
    padding:16px 10px !important;
    background:rgba(0,0,0,.28) !important;
}
.ntv-broadcast-side .ntv-broadcast-heading{margin-bottom:7px}
.ntv-broadcast-side .ntv-broadcast-clock{
    margin:8px 0 5px !important;
    font-size:clamp(36px,3.8vw,54px) !important;
}
.ntv-broadcast-side .ntv-broadcast-date{font-size:12px !important}

/* ==========================================================
   NATIVA TV STUDIO 5.1 — HOME WEBTV OFICIAL
   ========================================================== */
body.home{background:#070b0d!important}
body.home .site-main{
  position:relative; overflow:hidden; padding:22px 0 34px;
  background:
    radial-gradient(circle at 35% 22%,rgba(139,35,116,.24),transparent 34%),
    radial-gradient(circle at 76% 35%,rgba(81,16,74,.20),transparent 30%),
    #070b0d!important;
  color:#fff;
}
body.home .site-main::before{
  content:"";position:absolute;inset:-40px;pointer-events:none;opacity:.16;
  background:radial-gradient(ellipse at center,rgba(235,146,201,.65),transparent 55%);
  filter:blur(42px);
}
body.home .ntv-container{position:relative;z-index:1;max-width:1500px}
.ntv-webtv-hero{display:grid;grid-template-columns:minmax(0,2.55fr) minmax(310px,.92fr);gap:24px;align-items:stretch}
.ntv-live-shell{min-width:0;display:flex;flex-direction:column;gap:16px}
.ntv-live-stage{position:relative;min-height:590px;border:1px solid rgba(87,235,113,.58);border-radius:18px;overflow:hidden;background:#050607;box-shadow:0 18px 50px rgba(0,0,0,.32)}
.ntv-live-stage .ntv-player-frame{position:absolute;inset:0;min-height:0!important;aspect-ratio:auto!important;background:#050607}
.ntv-live-stage iframe,.ntv-live-stage video,.ntv-live-stage .ntv-player-empty{width:100%;height:100%;border:0;display:block;object-fit:cover}
.ntv-live-badge{position:absolute;top:18px;left:18px;z-index:3;background:#ed1c2e;color:#fff;border-radius:8px;padding:9px 14px;font-weight:900;letter-spacing:.03em}
.ntv-live-caption{position:absolute;left:18px;bottom:18px;z-index:3;padding:8px 12px;border-radius:10px;background:rgba(0,0,0,.58);backdrop-filter:blur(8px);font-size:13px}
.ntv-app-strip{border:1px solid rgba(255,255,255,.12);border-radius:16px;background:rgba(5,8,9,.72);backdrop-filter:blur(14px);padding:14px}
.ntv-app-strip h2{margin:0 0 12px;font-size:15px;color:#fff;display:flex;gap:8px;align-items:center}
.ntv-app-strip h2::before{content:"▦";color:#50ee70;font-size:20px}
.ntv-app-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:7px}
.ntv-app-link{display:flex;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:104px;padding:10px 5px;border:1px solid rgba(255,255,255,.10);border-radius:12px;color:#fff!important;background:rgba(255,255,255,.025);font-size:12px;font-weight:800;text-align:center;transition:.2s}
.ntv-app-link:hover{transform:translateY(-2px);border-color:rgba(90,241,111,.55);background:rgba(34,127,57,.12)}
.ntv-app-icon{width:48px;height:48px;border-radius:13px;display:grid;place-items:center;font-size:25px;line-height:1;background:linear-gradient(145deg,#6f20d8,#b23aff);box-shadow:inset 0 0 14px rgba(255,255,255,.15),0 7px 18px rgba(0,0,0,.25)}
.ntv-app-link:nth-child(1) .ntv-app-icon,.ntv-app-link:nth-child(8) .ntv-app-icon{background:linear-gradient(145deg,#f51e31,#ef442c)}
.ntv-app-link:nth-child(3) .ntv-app-icon{background:linear-gradient(145deg,#ff8a17,#e64e00)}
.ntv-app-link:nth-child(4) .ntv-app-icon{background:linear-gradient(145deg,#37c83c,#048b28)}
.ntv-app-link:nth-child(5) .ntv-app-icon{background:linear-gradient(145deg,#2e7de4,#17429a)}
.ntv-app-link:nth-child(6) .ntv-app-icon{background:linear-gradient(145deg,#f23b96,#9b145d)}
.ntv-app-link:nth-child(7) .ntv-app-icon{background:linear-gradient(145deg,#16b9b5,#087c85)}
.ntv-webtv-newsbar{margin-top:18px;display:flex;align-items:center;gap:14px;min-height:48px;padding:8px 14px;border:1px solid rgba(255,255,255,.12);border-radius:13px;background:rgba(4,6,7,.82);overflow:hidden}
.ntv-webtv-newsbar strong{flex:0 0 auto;color:#50ee70;font-size:13px}
.ntv-webtv-newsbar .ntv-news-items{display:flex;gap:28px;white-space:nowrap;overflow:hidden;font-size:13px}
.ntv-webtv-newsbar a{color:#fff}
.ntv-webtv-newsbar .ntv-more{margin-left:auto;flex:0 0 auto;color:#50ee70;font-weight:800}
.ntv-home-editor-content{margin-top:26px!important}
@media(max-width:1100px){
 .ntv-webtv-hero{grid-template-columns:minmax(0,1.75fr) minmax(285px,.82fr)}
 .ntv-live-stage{min-height:520px}
 .ntv-app-grid{grid-template-columns:repeat(4,1fr)}
}
@media(max-width:820px){
 .ntv-webtv-hero{grid-template-columns:1fr}
 .ntv-live-stage{min-height:0;aspect-ratio:16/9}
 .ntv-webtv-hero .ntv-broadcast-side{width:min(100%,430px);margin:auto}
 .ntv-app-grid{grid-template-columns:repeat(4,1fr)}
}
@media(max-width:560px){
 .ntv-app-grid{grid-template-columns:repeat(2,1fr)}
 .ntv-live-stage{border-radius:12px}
 .ntv-webtv-newsbar .ntv-news-items{display:block;overflow:hidden;text-overflow:ellipsis}
}

/* ==========================================================
   NATIVA TV STUDIO 5.2 — TEMA CLARO / ESCURO
   ========================================================== */
:root{
 --ntv-page-bg:#070b0d;--ntv-page-text:#fff;--ntv-surface:rgba(5,8,9,.72);
 --ntv-border:rgba(255,255,255,.12);--ntv-card:rgba(255,255,255,.025);
 --ntv-head-bg:#fff;--ntv-head-text:#171b20;
}
html.ntv-light{
 --ntv-page-bg:#f3f6f8;--ntv-page-text:#182027;--ntv-surface:rgba(255,255,255,.90);
 --ntv-border:#d7e1e5;--ntv-card:#f7fbf9;--ntv-head-bg:#fff;--ntv-head-text:#171b20;
}
html.ntv-dark{
 --ntv-page-bg:#070b0d;--ntv-page-text:#fff;--ntv-surface:rgba(5,8,9,.76);
 --ntv-border:rgba(255,255,255,.12);--ntv-card:rgba(255,255,255,.025);
 --ntv-head-bg:#0b0f11;--ntv-head-text:#fff;
}
html.ntv-light body.home .site-main{background:#f3f6f8!important;color:#182027}
html.ntv-light body.home .site-main::before{opacity:.06}
html.ntv-dark body.home .site-main{background:
 radial-gradient(circle at 35% 22%,rgba(139,35,116,.24),transparent 34%),
 radial-gradient(circle at 76% 35%,rgba(81,16,74,.20),transparent 30%),#070b0d!important;color:#fff}
html.ntv-light .site-header{background:#fff!important;color:#171b20}
html.ntv-dark .site-header{background:#0b0f11!important;color:#fff}
html.ntv-light .site-header a{color:#171b20!important}
html.ntv-dark .site-header a{color:#fff!important}
html.ntv-light .ntv-app-strip,html.ntv-light .ntv-webtv-newsbar{background:rgba(255,255,255,.94);border-color:#d7e1e5;color:#182027}
html.ntv-light .ntv-app-strip h2,html.ntv-light .ntv-app-link,html.ntv-light .ntv-webtv-newsbar a{color:#182027!important}
html.ntv-light .ntv-app-link{background:#f7fbf9;border-color:#dbe7e0}
html.ntv-light .ntv-webtv-newsbar .ntv-news-items a{color:#182027!important}
html.ntv-light .ntv-home-editor-content{color:#182027}
html.ntv-dark .ntv-app-strip,html.ntv-dark .ntv-webtv-newsbar{background:rgba(5,8,9,.76);border-color:rgba(255,255,255,.12);color:#fff}
html.ntv-dark .ntv-app-strip h2,html.ntv-dark .ntv-app-link,html.ntv-dark .ntv-webtv-newsbar a{color:#fff!important}
/* Player e Broadcast permanecem escuros nos dois modos */
.ntv-live-stage,.ntv-broadcast-widget{color:#fff!important}
.ntv-theme-toggle{cursor:pointer}

/* ==========================================================
   NATIVA TV STUDIO 5.3 — PODCASTS + VÍDEOS
   ========================================================== */
.ntv-media-row{
 display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:22px;
}
.ntv-media-panel{
 min-width:0;border:1px solid var(--ntv-border);border-radius:16px;
 background:var(--ntv-surface);padding:16px;color:var(--ntv-page-text);
}
.ntv-media-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.ntv-media-head h2{margin:0;font-size:18px;line-height:1.2;color:inherit}
.ntv-media-head h2::before{content:"";display:inline-block;width:4px;height:20px;margin-right:9px;vertical-align:-4px;border-radius:3px;background:#39df68}
.ntv-media-head a{font-size:12px;font-weight:800;color:#39df68!important}
.ntv-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ntv-media-card{display:block;min-width:0;color:inherit!important;text-decoration:none}
.ntv-media-thumb{position:relative;overflow:hidden;border-radius:11px;aspect-ratio:16/9;background:#101719;border:1px solid var(--ntv-border)}
.ntv-media-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s ease}
.ntv-media-card:hover .ntv-media-thumb img{transform:scale(1.04)}
.ntv-media-placeholder{width:100%;height:100%;display:grid;place-items:center;font-size:34px;background:linear-gradient(135deg,#0b2518,#15111e)}
.ntv-media-play{position:absolute;left:10px;bottom:9px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:rgba(0,0,0,.72);color:#fff;font-size:13px;border:1px solid rgba(255,255,255,.35)}
.ntv-media-card h3{margin:8px 2px 0;font-size:13px;line-height:1.35;color:inherit}
.ntv-media-card p{margin:4px 2px 0;font-size:10px;opacity:.65}
html.ntv-light .ntv-media-panel{background:#fff;border-color:#d7e1e5;color:#182027}
html.ntv-light .ntv-media-placeholder{background:linear-gradient(135deg,#e8f5ed,#f0e9f3)}
html.ntv-dark .ntv-media-panel{background:rgba(5,8,9,.76);color:#fff}
.ntv-tv-products-slot{
 margin-top:20px;min-height:90px;border:1px dashed var(--ntv-border);border-radius:15px;
 display:flex;align-items:center;justify-content:center;text-align:center;padding:20px;
 color:var(--ntv-page-text);opacity:.75;
}
.ntv-tv-products-slot strong{display:block;color:#39df68;margin-bottom:4px}
@media(max-width:980px){.ntv-media-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.ntv-media-row{grid-template-columns:1fr}.ntv-media-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:420px){.ntv-media-grid{grid-template-columns:1fr 1fr;gap:8px}.ntv-media-card h3{font-size:12px}}

.ntv-vertical-section{margin-top:20px}
.ntv-vertical-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.ntv-vertical-card{color:inherit!important;text-decoration:none}
.ntv-vertical-thumb{position:relative;aspect-ratio:9/16;border-radius:14px;overflow:hidden;background:#101719;border:1px solid var(--ntv-border)}
.ntv-vertical-thumb img{width:100%;height:100%;object-fit:cover}
.ntv-vertical-card h3{font-size:12px;line-height:1.3;margin:7px 2px 0;color:inherit}
.ntv-vertical-play{position:absolute;inset:0;display:grid;place-items:center;font-size:32px;color:#fff;text-shadow:0 2px 12px #000}
@media(max-width:900px){.ntv-vertical-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:560px){.ntv-vertical-grid{grid-template-columns:repeat(2,1fr)}}

/* 5.4.1 — ticker imediatamente abaixo do menu e antes do Player/Broadcast */
.ntv-webtv-newsbar.ntv-newsbar-top{margin-top:0;margin-bottom:18px}

/* 5.4.2 — Player da Central de Mídia */
.ntv-media-modal{position:fixed;inset:0;z-index:999999;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(0,0,0,.88)}
.ntv-media-modal.is-open{display:flex}
.ntv-media-modal-box{position:relative;width:min(1050px,96vw);max-height:92vh;padding:14px;border:1px solid rgba(84,239,103,.5);border-radius:16px;background:#070b0d;box-shadow:0 20px 70px rgba(0,0,0,.6)}
.ntv-media-modal-close{position:absolute;right:-10px;top:-12px;z-index:3;width:38px;height:38px;border:0;border-radius:50%;background:#ed1c2e;color:#fff;font-size:22px;font-weight:900;cursor:pointer}
.ntv-media-player{width:100%;aspect-ratio:16/9;border:0;border-radius:10px;background:#000;display:block}
.ntv-media-player.ntv-audio{aspect-ratio:auto;height:90px}
.ntv-media-modal-title{margin:10px 4px 2px;color:#fff;font-size:15px}
.ntv-vertical-player{width:min(420px,86vw)!important}
.ntv-vertical-player .ntv-media-player{aspect-ratio:9/16;max-height:78vh}

/* 5.5.0 — Vídeos Verticais 9:16 */
.ntv-vertical-grid{display:grid;grid-template-columns:repeat(5,minmax(145px,1fr));gap:14px}
.ntv-vertical-thumb{aspect-ratio:9/16!important;border-radius:16px!important;overflow:hidden;background:#050607}
.ntv-vertical-thumb img{width:100%;height:100%;object-fit:cover}
.ntv-vertical-play{width:54px;height:54px;left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%);border-radius:50%;background:rgba(0,0,0,.62);border:1px solid rgba(255,255,255,.55);z-index:3}
.ntv-vertical-badge{position:absolute;left:9px;top:9px;z-index:4;background:#ed1c2e;color:#fff;border-radius:7px;padding:5px 7px;font-size:9px;font-weight:900}
@media(max-width:1100px){.ntv-vertical-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:800px){.ntv-vertical-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:560px){.ntv-vertical-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory}.ntv-vertical-card{flex:0 0 68%;scroll-snap-align:start}}
.ntv-media-external{display:flex;min-height:420px;align-items:center;justify-content:center;text-align:center;padding:30px;color:#fff;background:#090b0c;border-radius:10px}.ntv-media-external a{display:inline-block;margin-top:14px;padding:11px 18px;border-radius:24px;background:#35df67;color:#07110a!important;font-weight:900;text-decoration:none}
