:root{--bg:#f3f6fb;--dark:#07111f;--dark2:#0b1728;--card:#ffffff;--text:#0f172a;--muted:#64748b;--brand:#2563eb;--brand2:#60a5fa;--accent:#22c55e;--danger:#ef4444;--border:#dfe7f3;--shadow:0 18px 45px rgba(15,23,42,.08)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text)}a{color:#2563eb}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at top,#1e3a8a,#070b14 55%)}.login-card{width:430px;max-width:92%;background:#fff;padding:34px;border-radius:26px;box-shadow:0 30px 90px rgba(0,0,0,.35)}
.form-control,.btn,select,textarea{width:100%;padding:13px 15px;border-radius:14px;border:1px solid #d7dfec;font-size:15px;background:#fff}.form-control:focus,select:focus,textarea:focus{outline:none;border-color:#60a5fa;box-shadow:0 0 0 4px rgba(96,165,250,.18)}.btn{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;border:0;font-weight:800;cursor:pointer;text-decoration:none;display:inline-block;text-align:center}.btn-sm{padding:9px 13px;width:auto;font-size:14px;border-radius:12px}.btn-green{background:linear-gradient(135deg,#16a34a,#22c55e)}.btn-red{background:linear-gradient(135deg,#dc2626,#ef4444)}.btn-light{background:#e5e7eb;color:#0f172a}.alert{padding:13px 15px;border-radius:14px;margin:12px 0}.alert-success{background:#dcfce7;color:#166534}.alert-danger{background:#fee2e2;color:#991b1b}
.layout{display:flex;min-height:100vh}.sidebar{width:290px;background:linear-gradient(180deg,#07111f,#0b1728);color:#fff;padding:22px;position:fixed;left:0;top:0;bottom:0;z-index:40;transition:transform .25s ease;box-shadow:14px 0 40px rgba(15,23,42,.16)}.brand-box{display:flex;gap:13px;align-items:center;margin-bottom:28px}.brand-icon{width:46px;height:46px;border-radius:16px;background:linear-gradient(135deg,#2563eb,#22c55e);display:flex;align-items:center;justify-content:center;font-weight:900}.brand{font-size:20px;font-weight:900;line-height:1}.brand span{color:#60a5fa}.brand-box small{font-size:12px;color:#94a3b8}.menu a{display:flex;gap:10px;align-items:center;color:#dbeafe;text-decoration:none;padding:14px 15px;border-radius:15px;margin-bottom:8px;font-weight:700}.menu a:hover,.menu a.active{background:rgba(96,165,250,.14);color:#fff}.content{margin-left:290px;flex:1;padding:28px;min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:14px;background:rgba(255,255,255,.72);backdrop-filter:blur(14px);border:1px solid #e5eaf3;border-radius:24px;padding:16px 18px;box-shadow:var(--shadow)}.top-left{display:flex;align-items:center;gap:13px;min-width:0}.topbar h2{margin:0;font-size:25px}.topbar-title{min-width:0}.menu-toggle{display:none;border:0;border-radius:14px;background:#08111f;color:#fff;font-size:22px;padding:10px 14px;line-height:1;cursor:pointer}.mobile-overlay{display:none}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}.card{background:var(--card);border:1px solid #e5eaf3;border-radius:24px;padding:22px;box-shadow:var(--shadow);min-width:0}.card h3{margin-top:0}.metric{font-size:34px;font-weight:900}.muted{color:var(--muted)}.table-wrap{width:100%;overflow-x:auto}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:13px;border-bottom:1px solid #e5eaf3;text-align:left;vertical-align:middle}.badge{padding:7px 10px;border-radius:999px;font-size:12px;font-weight:900}.on{background:#dcfce7;color:#166534}.off{background:#fee2e2;color:#991b1b}.hint-box{background:#eff6ff;color:#1e40af;border:1px solid #bfdbfe;border-radius:16px;padding:13px;margin-bottom:14px;font-size:14px;line-height:1.45}.form-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.form-actions .btn{width:auto}.actions-cell{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.actions-cell form{margin:0}.preview-thumb{width:92px;height:54px;object-fit:cover;border-radius:12px;background:#0f172a;border:1px solid #dbe4f0}.page-hero{background:linear-gradient(135deg,#0f172a,#1d4ed8);color:#fff;border-radius:28px;padding:26px;margin-bottom:18px;box-shadow:var(--shadow)}.page-hero h1{margin:0 0 8px}.page-hero p{margin:0;color:#dbeafe}.stat-card{position:relative;overflow:hidden}.stat-card:after{content:"";position:absolute;right:-28px;top:-28px;width:95px;height:95px;border-radius:999px;background:rgba(37,99,235,.10)}
.player-body{margin:0;background:#020617;color:#fff;overflow:hidden;width:100vw;height:100vh}.player-body html{overflow:hidden}.tv-shell{height:100vh;width:100vw;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) 360px;grid-template-rows:minmax(0,1fr) 96px;background:#020617}.main-zone{position:relative;background:#000;display:flex;align-items:center;justify-content:center;overflow:hidden;min-width:0;min-height:0}.main-zone video,.main-zone img{width:100%;height:100%;object-fit:contain;background:#000}.side-zone{background:linear-gradient(180deg,#0f172a,#020617);border-left:1px solid rgba(255,255,255,.08);display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:14px;padding:18px;overflow:hidden;min-width:0;min-height:0}.ad-box{position:relative;border:1px solid rgba(255,255,255,.12);border-radius:22px;background:#111827;overflow:hidden;display:flex;align-items:center;justify-content:center;min-height:0;opacity:1;transition:opacity .7s ease,transform .7s ease}.ad-box.fade-out,.footer-ad.fade-out{opacity:.15;transform:scale(.985)}.ad-box img,.ad-box video{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;display:block}.ad-placeholder{padding:25px;text-align:center;font-size:24px;font-weight:900;color:#e5e7eb}.qr-wrap{position:absolute;right:14px;bottom:14px;width:112px;height:112px;background:#fff;border-radius:14px;padding:8px;box-shadow:0 12px 30px rgba(0,0,0,.35)}.qr-wrap img{width:100%;height:100%;object-fit:contain}.ticker{grid-column:1/3;background:#0f172a;border-top:1px solid rgba(255,255,255,.12);display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,32%) 210px;align-items:center;gap:18px;padding:0 28px;font-size:24px;font-weight:900;white-space:nowrap;overflow:hidden}.ticker-text{overflow:hidden;text-overflow:ellipsis}.footer-ad{height:74px;border:1px solid rgba(255,255,255,.10);border-radius:18px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#111827;transition:.6s}.footer-ad img,.footer-ad video{width:100%;height:100%;object-fit:contain}.weather-box{text-align:right;color:#dbeafe;font-size:16px;line-height:1.25}.clock{font-size:27px;color:#93c5fd}.channel-title{position:absolute;left:24px;top:20px;background:rgba(15,23,42,.75);backdrop-filter:blur(8px);padding:10px 16px;border-radius:999px;font-weight:900;z-index:5}.empty{font-size:34px;color:#94a3b8;text-align:center}
.site-body{margin:0;background:#020617;color:#e5e7eb;font-family:Inter,Segoe UI,Arial,sans-serif}.site-header{position:sticky;top:0;z-index:10;background:rgba(2,6,23,.88);backdrop-filter:blur(16px);border-bottom:1px solid rgba(148,163,184,.16)}.site-nav{max-width:1180px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:18px 20px}.site-logo{font-size:22px;font-weight:900;color:#fff;text-decoration:none}.site-logo span{color:#60a5fa}.site-links{display:flex;gap:22px;align-items:center}.site-links a{color:#cbd5e1;text-decoration:none;font-weight:700}.site-hero{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:1.05fr .95fr;gap:34px;align-items:center;padding:78px 20px}.site-kicker{color:#60a5fa;font-weight:900;margin-bottom:14px}.site-hero h1{font-size:54px;line-height:1.02;margin:0 0 18px;color:#fff}.site-hero p{font-size:19px;line-height:1.65;color:#cbd5e1;margin:0 0 26px}.site-actions{display:flex;gap:12px;flex-wrap:wrap}.site-preview{background:linear-gradient(145deg,#111827,#020617);border:1px solid rgba(148,163,184,.22);border-radius:28px;padding:18px;box-shadow:0 30px 90px rgba(37,99,235,.22)}.mock-screen{aspect-ratio:16/10;background:#000;border-radius:20px;overflow:hidden;display:grid;grid-template-columns:1fr 32%;grid-template-rows:1fr 62px}.mock-video{background:linear-gradient(135deg,#1d4ed8,#111827);display:flex;align-items:center;justify-content:center;font-weight:900;font-size:34px}.mock-ads{display:grid;gap:10px;padding:10px;background:#0f172a}.mock-ad{border-radius:14px;background:linear-gradient(135deg,#22c55e,#2563eb)}.mock-ticker{grid-column:1/3;background:#111827;display:flex;align-items:center;padding:0 18px;font-weight:900;color:#93c5fd}.site-section{max-width:1180px;margin:0 auto;padding:34px 20px 70px}.section-title{font-size:36px;color:#fff;margin:0 0 18px}.features-grid,.plans-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.feature-card,.plan-card{background:#0f172a;border:1px solid rgba(148,163,184,.18);border-radius:22px;padding:24px}.feature-card h3,.plan-card h3{color:#fff;margin-top:0}.feature-card p,.plan-card p{color:#cbd5e1;line-height:1.6}.price{font-size:34px;font-weight:900;color:#fff;margin:12px 0}.plan-list{padding-left:18px;color:#cbd5e1;line-height:1.9}.site-footer{border-top:1px solid rgba(148,163,184,.16);padding:28px 20px;text-align:center;color:#94a3b8}
@media(max-width:1180px){.grid{grid-template-columns:repeat(2,1fr)}.two{grid-template-columns:1fr}.tv-shell{grid-template-columns:minmax(0,1fr) 300px}.side-zone{padding:12px;gap:10px}.ticker{font-size:20px;grid-template-columns:minmax(0,1fr) 280px 170px}}
@media(max-width:980px){.sidebar{transform:translateX(-105%);width:285px;box-shadow:25px 0 80px rgba(0,0,0,.35)}body.menu-open .sidebar{transform:translateX(0)}.mobile-overlay{position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:30;display:none}body.menu-open .mobile-overlay{display:block}.menu-toggle{display:inline-flex;align-items:center;justify-content:center}.layout{display:block}.content{margin-left:0;padding:16px}.topbar{border-radius:20px;padding:12px}.topbar .btn{white-space:nowrap}.card{padding:16px}.table th,.table td{padding:10px}.tv-shell{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 155px 74px}.ticker{grid-column:1;grid-template-columns:minmax(0,1fr) 210px 130px;font-size:16px;padding:0 14px}.weather-box{font-size:12px}.clock{font-size:18px}.side-zone{border-left:0;border-top:1px solid rgba(255,255,255,.08);grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:1fr}.ad-box{border-radius:16px}.qr-wrap{width:76px;height:76px}.channel-title{left:14px;top:14px;font-size:13px}.empty{font-size:24px}.site-nav{align-items:flex-start;gap:14px}.site-links{gap:12px;flex-wrap:wrap;justify-content:flex-end}.site-hero{grid-template-columns:1fr;padding-top:44px}.site-hero h1{font-size:38px}.features-grid,.plans-grid{grid-template-columns:1fr}.mock-screen{grid-template-columns:1fr;grid-template-rows:1fr 95px 48px}.mock-ticker{grid-column:1}.mock-ads{grid-template-columns:repeat(3,1fr)}}
@media(max-width:560px){.topbar{align-items:flex-start}.top-left{align-items:flex-start}.topbar-title h2{font-size:20px}.btn-sm{padding:8px 10px}.grid{grid-template-columns:1fr;gap:12px}.tv-shell{grid-template-rows:minmax(0,1fr) 110px 62px}.side-zone{padding:8px;gap:8px}.ad-placeholder{font-size:14px;padding:10px}.ticker{font-size:12px;grid-template-columns:minmax(0,1fr) 95px 70px;gap:8px}.footer-ad{height:48px}.weather-box{font-size:10px}.clock{font-size:13px}.qr-wrap{width:54px;height:54px;right:6px;bottom:6px}.site-nav{display:block}.site-links{margin-top:12px;justify-content:flex-start}.site-links a{font-size:14px}.site-hero h1{font-size:32px}.site-hero p{font-size:16px}.site-actions .btn{width:100%}.section-title{font-size:28px}}

/* Correção player: rodapé com anúncio à esquerda + manchetes + horário Brasília */
.ticker.ticker-news-mode{
    grid-template-columns:minmax(260px,34%) minmax(0,1fr) 210px;
    gap:18px;
    padding:0 22px;
}
.footer-ad-left{
    width:100%;
    height:72px;
    justify-content:flex-start;
    position:relative;
}
.footer-ad-left img,
.footer-ad-left video{
    width:100%;
    height:100%;
    object-fit:cover;
}
.ad-placeholder-footer{
    width:100%;
    font-size:20px;
    text-align:left;
    padding-left:22px;
}
.qr-footer{
    width:64px;
    height:64px;
    right:8px;
    bottom:4px;
    border-radius:10px;
    padding:5px;
}
.news-ticker{
    min-width:0;
    height:72px;
    border:1px solid rgba(255,255,255,.10);
    background:rgba(15,23,42,.62);
    border-radius:18px;
    display:flex;
    align-items:center;
    gap:14px;
    padding:0 18px;
    overflow:hidden;
}
.news-label{
    flex:0 0 auto;
    background:#2563eb;
    color:#fff;
    border-radius:999px;
    padding:8px 12px;
    font-size:12px;
    letter-spacing:.06em;
    font-weight:900;
}
.news-text{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#e5e7eb;
    font-size:18px;
    font-weight:800;
    opacity:1;
    transition:opacity .35s ease, transform .35s ease;
}
.news-text strong{color:#93c5fd;}
.news-text.fade-news{opacity:.15;transform:translateY(8px);}
.weather-box{min-width:0;}

@media(max-width:1180px){
    .ticker.ticker-news-mode{grid-template-columns:260px minmax(0,1fr) 170px;gap:12px;padding:0 14px;}
    .news-text{font-size:15px;}
    .news-label{font-size:10px;padding:7px 10px;}
}
@media(max-width:980px){
    .ticker.ticker-news-mode{grid-template-columns:160px minmax(0,1fr) 118px;gap:8px;}
    .footer-ad-left{height:54px;border-radius:14px;}
    .news-ticker{height:54px;border-radius:14px;padding:0 10px;gap:8px;}
    .news-label{display:none;}
    .news-text{font-size:12px;}
    .qr-footer{width:44px;height:44px;right:5px;bottom:5px;}
}
@media(max-width:560px){
    .ticker.ticker-news-mode{grid-template-columns:92px minmax(0,1fr) 62px;gap:6px;padding:0 8px;}
    .footer-ad-left{height:44px;}
    .news-ticker{height:44px;padding:0 8px;}
    .news-text{font-size:10px;}
    .ad-placeholder-footer{font-size:11px;padding-left:8px;}
    .qr-footer{width:34px;height:34px;}
}


/* Ajuste solicitado: manchetes menores e mais lentas */
.news-ticker{height:58px!important;border-radius:16px!important;padding:0 14px!important;}
.news-label{font-size:10px!important;padding:6px 10px!important;}
.news-text{font-size:13px!important;font-weight:700!important;line-height:1.2!important;}
.clock{font-size:24px!important;}
.weather-box{font-size:13px!important;}
.footer-ad-left{height:58px!important;}
.ad-placeholder-footer{font-size:16px!important;}
@media(max-width:980px){.news-ticker{height:48px!important}.news-text{font-size:11px!important}.footer-ad-left{height:48px!important}.clock{font-size:17px!important}.weather-box{font-size:10px!important}}
@media(max-width:560px){.news-ticker{height:38px!important}.news-text{font-size:9px!important}.footer-ad-left{height:38px!important}.clock{font-size:12px!important}.weather-box{font-size:8px!important}.news-label{display:none!important}}


/* =========================================================
   CORREÇÃO FINAL - PAINEL PROFISSIONAL + PLAYER
   Data: 2026-06-07
   Objetivo:
   - Formulários do admin com espaçamento melhor
   - Tabelas sem barra horizontal feia no mobile
   - Anúncios laterais em ordem e sem duplicidade visual
   - QR Code do anúncio de rodapé sobreposto/subindo sem quebrar
   ========================================================= */

/* ---------- ADMIN: layout mais limpo ---------- */
.content{
    background:linear-gradient(180deg,#f5f8ff 0%,#eef3fb 100%);
}
.topbar{
    box-shadow:0 16px 40px rgba(15,23,42,.08);
    border:1px solid #e6edf7;
}
.two{
    display:grid;
    grid-template-columns:minmax(360px, .92fr) minmax(0, 1.35fr);
    gap:24px;
    align-items:start;
}
.card{
    border:1px solid #e3eaf5!important;
    border-radius:24px!important;
    box-shadow:0 20px 50px rgba(15,23,42,.08)!important;
    padding:24px!important;
    overflow:visible!important;
}
.card h3{
    margin:0 0 18px 0!important;
    font-size:21px!important;
    font-weight:900!important;
    color:#0f172a!important;
}
.hint-box{
    border-radius:18px!important;
    padding:14px 16px!important;
    margin-bottom:20px!important;
    line-height:1.5!important;
}
.card form label{
    display:block!important;
    margin:14px 0 7px!important;
    color:#334155!important;
    font-size:14px!important;
    font-weight:800!important;
}
.card form br{
    display:none!important;
}
.card .form-control,
.card select.form-control,
.card input.form-control,
.card textarea.form-control{
    display:block!important;
    width:100%!important;
    min-height:48px!important;
    margin:0 0 14px 0!important;
    border-radius:15px!important;
    border:1px solid #cbd5e1!important;
    background:#fff!important;
    font-size:15px!important;
    box-shadow:0 1px 0 rgba(15,23,42,.02)!important;
}
.card input[type="file"].form-control{
    padding:10px 12px!important;
    height:auto!important;
}
.form-actions,
.actions-cell{
    display:flex!important;
    gap:10px!important;
    flex-wrap:wrap!important;
    align-items:center!important;
}
.actions-cell form{
    margin:0!important;
}
.card .btn{
    border-radius:14px!important;
    min-height:44px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    line-height:1.1!important;
    box-shadow:0 10px 20px rgba(37,99,235,.14)!important;
}
.card .btn-sm{
    min-height:38px!important;
    padding:9px 14px!important;
}
.table-wrap{
    overflow:visible!important;
}
.table{
    border-collapse:separate!important;
    border-spacing:0!important;
    width:100%!important;
}
.table th{
    background:#f8fafc!important;
    color:#334155!important;
    font-weight:900!important;
    font-size:13px!important;
    text-transform:none!important;
    border-bottom:1px solid #e2e8f0!important;
}
.table td,
.table th{
    padding:14px 12px!important;
    vertical-align:middle!important;
}
.table tr:not(:first-child):hover td{
    background:#fbfdff!important;
}
.preview-thumb{
    width:92px!important;
    height:54px!important;
    object-fit:cover!important;
    border-radius:12px!important;
    border:1px solid #e2e8f0!important;
}
.badge{
    white-space:nowrap!important;
}

/* ---------- PLAYER: QR Code do rodapé sobe sem quebrar ---------- */
.player-body,
.player-body html{
    overflow:hidden!important;
}
.tv-shell{
    overflow:visible!important;
}
.ticker,
.ticker.ticker-news-mode{
    overflow:visible!important;
    position:relative!important;
    z-index:5!important;
}
.footer-ad,
.footer-ad-left{
    overflow:visible!important;
    position:relative!important;
    z-index:10!important;
}
.footer-ad-left > img,
.footer-ad-left > video{
    border-radius:16px!important;
    object-fit:cover!important;
    overflow:hidden!important;
}
.footer-ad-left .qr-footer,
.footer-ad .qr-footer{
    position:absolute!important;
    right:8px!important;
    bottom:34px!important;
    width:92px!important;
    height:92px!important;
    background:#fff!important;
    padding:6px!important;
    border-radius:14px!important;
    z-index:9999!important;
    box-shadow:0 12px 28px rgba(0,0,0,.42)!important;
}
.footer-ad-left .qr-footer img,
.footer-ad .qr-footer img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    border-radius:8px!important;
}
.news-ticker{
    position:relative!important;
    z-index:3!important;
}
.weather-box{
    position:relative!important;
    z-index:3!important;
}

/* ---------- PLAYER: lateral ordenada e visual estável ---------- */
.side-zone{
    overflow:hidden!important;
}
.ad-box{
    overflow:visible!important;
    isolation:isolate!important;
}
.ad-box > img,
.ad-box > video{
    border-radius:20px!important;
    overflow:hidden!important;
}
.ad-box .qr-wrap:not(.qr-footer){
    right:12px!important;
    bottom:-10px!important;
    width:108px!important;
    height:108px!important;
    z-index:50!important;
}

/* ---------- MOBILE ADMIN: vira cards, sem rolagem horizontal ---------- */
@media(max-width:980px){
    .two{
        grid-template-columns:1fr!important;
        gap:18px!important;
    }
    .content{
        padding:14px!important;
    }
    .card{
        padding:18px!important;
        border-radius:22px!important;
    }
    .table-wrap{
        overflow:visible!important;
    }
    .table,
    .table tbody,
    .table tr,
    .table td{
        display:block!important;
        width:100%!important;
    }
    .table thead,
    .table th,
    .table tr:first-child th{
        display:none!important;
    }
    .table tr{
        background:#fff!important;
        border:1px solid #e2e8f0!important;
        border-radius:18px!important;
        margin-bottom:14px!important;
        padding:14px!important;
        box-shadow:0 10px 24px rgba(15,23,42,.06)!important;
    }
    .table td{
        border:0!important;
        padding:8px 0!important;
        display:flex!important;
        align-items:center!important;
        justify-content:space-between!important;
        gap:14px!important;
    }
    .table td:nth-child(1)::before{content:'Título';font-weight:900;color:#64748b;}
    .table td:nth-child(2)::before{content:'Posição';font-weight:900;color:#64748b;}
    .table td:nth-child(3)::before{content:'Tipo';font-weight:900;color:#64748b;}
    .table td:nth-child(4)::before{content:'Status';font-weight:900;color:#64748b;}
    .table td:nth-child(5)::before{content:'Ações';font-weight:900;color:#64748b;}
    .actions-cell{
        justify-content:flex-end!important;
    }
    .actions-cell::before{
        align-self:flex-start!important;
        padding-top:10px!important;
    }
}
@media(max-width:560px){
    .topbar{
        display:flex!important;
        gap:10px!important;
    }
    .card .btn,
    .form-actions .btn,
    .actions-cell .btn,
    .actions-cell form{
        width:100%!important;
    }
    .footer-ad-left .qr-footer,
    .footer-ad .qr-footer{
        width:62px!important;
        height:62px!important;
        bottom:26px!important;
        right:4px!important;
        padding:4px!important;
    }
}

/* =========================================================
   AJUSTE DEFINITIVO 2026-06-07
   - Lateral: QR fica dentro do card do anúncio, sem escapar.
   - Rodapé: somente o QR do footer sobe sobre o vídeo.
   - Texto do anúncio do rodapé limitado com reticências.
   - Rodapé sem quebrar notícias/horário.
   ========================================================= */

/* LATERAL: não deixar QR sair do anúncio */
.side-zone{
    overflow:hidden!important;
}
.side-zone .ad-box{
    overflow:hidden!important;
    position:relative!important;
    border-radius:22px!important;
}
.side-zone .ad-box > img,
.side-zone .ad-box > video{
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    object-fit:contain!important;
    border-radius:20px!important;
}
.side-zone .ad-box .qr-wrap:not(.qr-footer){
    position:absolute!important;
    right:12px!important;
    bottom:12px!important;
    width:96px!important;
    height:96px!important;
    background:#fff!important;
    padding:6px!important;
    border-radius:13px!important;
    z-index:30!important;
    box-shadow:0 12px 30px rgba(0,0,0,.38)!important;
}
.side-zone .ad-box .qr-wrap:not(.qr-footer) img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
}

/* RODAPÉ: estrutura segura */
.ticker.ticker-news-mode{
    height:96px!important;
    grid-template-columns:minmax(280px,34%) minmax(0,1fr) 210px!important;
    overflow:visible!important;
    position:relative!important;
    z-index:20!important;
    align-items:center!important;
}
.footer-ad-left{
    position:relative!important;
    overflow:visible!important;
    height:58px!important;
    min-width:0!important;
    max-width:100%!important;
    border-radius:16px!important;
    background:#111827!important;
}
.footer-ad-left > img,
.footer-ad-left > video{
    width:100%!important;
    height:58px!important;
    max-height:58px!important;
    object-fit:cover!important;
    border-radius:16px!important;
    display:block!important;
}

/* Texto do anúncio do rodapé: não invade notícias */
.footer-ad-left .ad-placeholder,
.footer-ad-left .ad-placeholder-footer{
    width:100%!important;
    height:58px!important;
    line-height:58px!important;
    display:block!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    padding:0 118px 0 20px!important;
    text-align:left!important;
    font-size:15px!important;
    font-weight:900!important;
    color:#fff!important;
}

/* SOMENTE QR DO RODAPÉ: sobe, mas não aumenta o rodapé */
.footer-ad-left .qr-footer,
.footer-ad .qr-footer{
    position:absolute!important;
    right:10px!important;
    bottom:30px!important;
    width:88px!important;
    height:88px!important;
    background:#fff!important;
    padding:5px!important;
    border-radius:12px!important;
    z-index:9999!important;
    box-shadow:0 14px 34px rgba(0,0,0,.45)!important;
}
.footer-ad-left .qr-footer img,
.footer-ad .qr-footer img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    border-radius:7px!important;
}

.news-ticker{
    min-width:0!important;
    overflow:hidden!important;
    position:relative!important;
    z-index:10!important;
}
.news-text{
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
}
.weather-box{
    min-width:0!important;
    position:relative!important;
    z-index:10!important;
}

@media(max-width:1180px){
    .ticker.ticker-news-mode{
        grid-template-columns:260px minmax(0,1fr) 170px!important;
    }
    .footer-ad-left .qr-footer,
    .footer-ad .qr-footer{
        width:76px!important;
        height:76px!important;
        bottom:28px!important;
        right:8px!important;
    }
    .footer-ad-left .ad-placeholder,
    .footer-ad-left .ad-placeholder-footer{
        padding-right:98px!important;
        font-size:13px!important;
    }
    .side-zone .ad-box .qr-wrap:not(.qr-footer){
        width:82px!important;
        height:82px!important;
    }
}
@media(max-width:980px){
    .ticker.ticker-news-mode{
        height:74px!important;
        grid-template-columns:160px minmax(0,1fr) 118px!important;
    }
    .footer-ad-left,
    .footer-ad-left > img,
    .footer-ad-left > video,
    .footer-ad-left .ad-placeholder,
    .footer-ad-left .ad-placeholder-footer{
        height:48px!important;
        line-height:48px!important;
    }
    .footer-ad-left .qr-footer,
    .footer-ad .qr-footer{
        width:58px!important;
        height:58px!important;
        bottom:24px!important;
        right:5px!important;
        padding:4px!important;
    }
    .footer-ad-left .ad-placeholder,
    .footer-ad-left .ad-placeholder-footer{
        padding-right:72px!important;
        padding-left:10px!important;
        font-size:11px!important;
    }
    .side-zone .ad-box .qr-wrap:not(.qr-footer){
        width:66px!important;
        height:66px!important;
        right:6px!important;
        bottom:6px!important;
        padding:4px!important;
    }
}
@media(max-width:560px){
    .ticker.ticker-news-mode{
        height:62px!important;
        grid-template-columns:92px minmax(0,1fr) 62px!important;
    }
    .footer-ad-left,
    .footer-ad-left > img,
    .footer-ad-left > video,
    .footer-ad-left .ad-placeholder,
    .footer-ad-left .ad-placeholder-footer{
        height:38px!important;
        line-height:38px!important;
    }
    .footer-ad-left .qr-footer,
    .footer-ad .qr-footer{
        width:44px!important;
        height:44px!important;
        bottom:20px!important;
        right:3px!important;
        padding:3px!important;
    }
    .footer-ad-left .ad-placeholder,
    .footer-ad-left .ad-placeholder-footer{
        padding-right:52px!important;
        padding-left:7px!important;
        font-size:9px!important;
    }
}


/* =========================================================
   RESPONSIVIDADE DO PAINEL ADMIN - FINAL
========================================================= */
@media(max-width: 900px){
    .content{
        padding:16px !important;
    }

    .topbar{
        display:flex !important;
        align-items:flex-start !important;
        gap:12px !important;
        flex-wrap:wrap !important;
        padding:16px !important;
        border-radius:18px !important;
    }

    .topbar .btn{
        width:100% !important;
        justify-content:center !important;
    }

    .two{
        display:grid !important;
        grid-template-columns:1fr !important;
        gap:16px !important;
    }

    .card{
        padding:18px !important;
        border-radius:18px !important;
        width:100% !important;
        overflow:hidden !important;
    }

    .form-control{
        width:100% !important;
        min-height:46px !important;
        margin-bottom:10px !important;
    }

    label{
        display:block !important;
        margin:10px 0 6px !important;
        font-weight:700 !important;
    }

    .table-wrap{
        overflow:visible !important;
    }

    .table{
        width:100% !important;
    }

    .table tr{
        display:block !important;
        border:1px solid #e5e7eb !important;
        border-radius:14px !important;
        margin-bottom:12px !important;
        padding:10px !important;
        background:#fff !important;
    }

    .table th{
        display:none !important;
    }

    .table td{
        display:block !important;
        width:100% !important;
        border:0 !important;
        padding:7px 0 !important;
    }

    .actions-cell{
        display:flex !important;
        flex-wrap:wrap !important;
        gap:8px !important;
    }

    .actions-cell form{
        display:inline-block !important;
        margin:0 !important;
    }

    .actions-cell .btn,
    .actions-cell button{
        width:auto !important;
    }

    .page-hero{
        padding:18px !important;
        border-radius:18px !important;
    }

    .page-hero h1{
        font-size:24px !important;
    }
}

/* ===== TV Indoor SaaS 2.0 - painel inspirado no layout aprovado ===== */
.layout{display:grid;grid-template-columns:210px minmax(0,1fr)}
.sidebar{width:210px;padding:16px 12px;box-shadow:8px 0 25px rgba(15,23,42,.12)}
.content{margin-left:0;padding:18px 22px;background:#f6f8fc}
.brand-box{padding:4px 6px 18px;margin-bottom:8px}.brand-icon{width:38px;height:38px;border-radius:12px}.brand{font-size:17px}.brand-copy{min-width:0}.brand-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:135px}
.menu a{padding:12px;border-radius:10px;margin:3px 0;font-size:14px}.menu-icon{width:22px;text-align:center;color:#b8d2ff;font-size:17px}.menu a.active{background:linear-gradient(90deg,rgba(37,99,235,.42),rgba(37,99,235,.15));box-shadow:inset 3px 0 #3b82f6}.sidebar-version{position:absolute;bottom:18px;left:20px;font-size:11px;color:#7890b0;line-height:1.5}.sidebar-version strong{color:#aec7e7}
.topbar{border-radius:0;background:transparent;border:0;border-bottom:1px solid #dfe6f1;box-shadow:none;padding:8px 0 16px;margin-bottom:12px}.topbar h2{font-size:24px}.user-menu-wrap{position:relative}.user-menu-button{display:flex;align-items:center;gap:10px;background:transparent;border:0;padding:8px;cursor:pointer}.user-avatar{width:38px;height:38px;border-radius:50%;background:#1463ff;color:#fff;display:grid;place-items:center}.user-copy{display:flex;flex-direction:column;text-align:left}.user-copy small{font-size:11px;color:#64748b}.user-dropdown{display:none;position:absolute;right:0;top:54px;width:220px;background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 20px 50px rgba(15,23,42,.18);z-index:100;padding:8px}.user-dropdown.show{display:block}.user-dropdown a{display:block;padding:11px;border-radius:9px;text-decoration:none;color:#334155}.user-dropdown a:hover{background:#f1f5f9}.user-dropdown-head{padding:10px;border-bottom:1px solid #e2e8f0;margin-bottom:5px;display:flex;flex-direction:column}.user-dropdown-head small{color:#64748b}.logout-link{color:#dc2626!important}
.dash-hero{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(120deg,#071b42,#0d52e8);color:#fff;border-radius:16px;padding:24px;margin:10px 0 14px;box-shadow:0 12px 28px rgba(29,78,216,.2)}.dash-hero h1{margin:0 0 8px}.dash-hero p{margin:0;color:#dbeafe}.hero-screen{font-size:46px;opacity:.25;border:3px solid currentColor;border-radius:10px;padding:7px 18px}.dashboard-stats{display:grid;gap:12px}.dashboard-stats.five{grid-template-columns:repeat(5,1fr)}.dash-stat{background:#fff;border:1px solid #e6ebf3;border-radius:15px;padding:16px;display:flex;gap:12px;align-items:center;box-shadow:0 7px 18px rgba(15,23,42,.05)}.dash-icon{width:40px;height:40px;background:#edf3ff;color:#0d5bff;border-radius:12px;display:grid;place-items:center;font-size:20px}.dash-stat div{display:flex;flex-direction:column}.dash-stat small{color:#64748b}.dash-stat strong{font-size:22px}.dash-stat em{font-size:11px;color:#16a34a;font-style:normal}.status-panel{margin-top:12px;background:#fff;border:1px solid #e6ebf3;border-radius:15px;padding:18px;display:grid;grid-template-columns:160px 170px 170px 1fr;gap:14px;align-items:center}.status-box{border-radius:10px;padding:13px;display:flex;gap:10px}.status-box>span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;color:white}.status-box div{display:flex;flex-direction:column}.status-box strong{font-size:20px}.status-box small,.status-box em{font-size:11px;font-style:normal}.status-box.ok{background:#eefaf3;color:#15803d}.status-box.ok>span{background:#22c55e}.status-box.bad{background:#fff1f2;color:#dc2626}.status-box.bad>span{background:#ef4444}.status-box.warn{background:#fff8e8;color:#d97706}.status-box.warn>span{background:#f59e0b}.status-legend{font-size:12px;display:flex;gap:12px;flex-wrap:wrap}.green-dot{color:#16a34a}.orange-dot{color:#f59e0b}.red-dot{color:#ef4444}.dashboard-bottom{display:grid;grid-template-columns:1.2fr 1fr;gap:12px;margin-top:12px}.modern-card{background:#fff;border:1px solid #e2e8f0;border-radius:15px;padding:18px;box-shadow:0 7px 20px rgba(15,23,42,.05)}.quick-actions{display:flex;justify-content:space-around;text-align:center}.quick-actions a{text-decoration:none;color:#1e293b;display:flex;flex-direction:column;gap:8px}.quick-actions b{width:42px;height:42px;border-radius:10px;background:#1564ff;color:#fff;display:grid;place-items:center;margin:auto}.playback-card{position:relative}.playback-card>strong{font-size:28px}.mini-chart{float:left;font-size:40px;color:#2563eb;margin-right:20px}
.page-title-row{display:flex;justify-content:space-between;align-items:center;margin:18px 0}.page-title-row h1{margin:0 0 6px;font-size:27px}.page-title-row p{margin:0;color:#64748b}.primary-action{width:auto;border:0;border-radius:8px;background:#0d5cf5;color:#fff;padding:11px 17px;font-weight:700;cursor:pointer}.table-card{padding:0;overflow:hidden}.section-head{display:flex;justify-content:space-between;align-items:center;padding:18px}.section-head h3{margin:0 0 5px}.section-head p{margin:0;color:#64748b;font-size:12px}.search-input{border:1px solid #dbe3ef;border-radius:8px;padding:10px 12px;min-width:220px}.search-input.full{width:calc(100% - 36px);margin:0 18px 14px}.responsive-table{overflow:auto}.responsive-table table{width:100%;border-collapse:collapse}.responsive-table th{font-size:11px;text-transform:uppercase;color:#475569;background:#f8fafc}.responsive-table th,.responsive-table td{padding:13px 15px;border-top:1px solid #edf0f5;text-align:left}.channel-link{display:flex;gap:10px;align-items:center;border:0;background:transparent;cursor:pointer;text-align:left}.channel-link span:last-child{display:flex;flex-direction:column}.channel-link small{color:#64748b}.channel-logo{width:36px;height:36px;border-radius:8px;background:#e71d36;color:white;display:grid!important;place-items:center}.pill{font-size:11px;padding:5px 9px;border-radius:999px;font-weight:700}.pill-green{background:#dcfce7;color:#15803d}.pill-red{background:#fee2e2;color:#dc2626}.pill-gray{background:#e2e8f0;color:#475569}.icon-actions{display:flex;gap:8px;align-items:center}.icon-actions button,.icon-actions a{width:35px;height:35px;border:1px solid #cdd9ee;border-radius:7px;background:white;display:grid;place-items:center;text-decoration:none;color:#1260e8;cursor:pointer}.icon-actions form{margin:0}.icon-actions .danger-icon{color:#ef4444;border-color:#fecaca}
.app-modal{display:none;position:fixed;inset:0;background:rgba(15,23,42,.58);z-index:999;align-items:center;justify-content:center;padding:20px}.app-modal.show{display:flex}.modal-dialog{width:min(620px,96vw);max-height:94vh;overflow:auto;background:#fff;border-radius:16px;box-shadow:0 30px 80px rgba(0,0,0,.28)}.modal-large{width:min(900px,96vw)}.modal-head{display:flex;justify-content:space-between;padding:20px;border-bottom:1px solid #e2e8f0}.modal-head h2{margin:0}.modal-head p{margin:5px 0 0;color:#64748b}.modal-head button{border:0;background:transparent;font-size:28px;cursor:pointer}.modal-body{padding:20px}.modal-body label{display:flex;flex-direction:column;gap:7px;font-weight:700;font-size:13px;margin-bottom:14px}.modal-body input,.modal-body select{padding:11px;border:1px solid #d8e0eb;border-radius:8px}.form-grid{display:grid;gap:14px}.two-cols{grid-template-columns:repeat(2,1fr)}.three-cols{grid-template-columns:repeat(3,1fr)}.settings-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:8px 0 16px}.setting-card{display:flex;justify-content:space-between;gap:10px;border:1px solid #e2e8f0;border-radius:12px;padding:13px}.setting-card div{display:flex;flex-direction:column}.setting-card small{font-weight:400;color:#64748b}.switch input{display:none}.switch span{display:block;width:42px;height:23px;border-radius:999px;background:#cbd5e1;position:relative;cursor:pointer}.switch span:after{content:"";position:absolute;width:17px;height:17px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.2s}.switch input:checked+span{background:#2563eb}.switch input:checked+span:after{left:22px}.modal-actions{display:flex;justify-content:flex-end;gap:10px}.btn-secondary{border:1px solid #d6deea;background:white;border-radius:8px;padding:10px 16px;cursor:pointer}
.playlist-builder{display:grid;grid-template-columns:.9fr 1.1fr;gap:14px}.media-library,.final-playlist{padding:0;min-height:570px}.media-list{padding:0 18px 18px;max-height:480px;overflow:auto}.media-item,.playlist-row{display:flex;align-items:center;gap:10px;border-top:1px solid #edf0f5;padding:11px 4px}.media-item img,.playlist-row img{width:42px;height:42px;object-fit:cover;border-radius:7px}.video-thumb{width:42px;height:42px;border-radius:7px;background:#1564ff;color:#fff;display:grid;place-items:center}.video-thumb.small{width:35px;height:35px}.media-item div{display:flex;flex:1;flex-direction:column}.media-item small{color:#64748b}.media-item button{border:0;background:#edf4ff;color:#0d5cf5;border-radius:7px;width:32px;height:32px;cursor:pointer}.drag{cursor:grab;color:#64748b}.playlist-sortable{padding:0 18px 18px}.playlist-row strong{flex:1}.playlist-row.dragging{opacity:.4}.order-number{width:30px;height:30px;border-radius:6px;background:#f1f5f9;display:grid;place-items:center}.duration-edit{display:flex!important;flex-direction:row!important;align-items:center;margin:0!important}.duration-edit input{width:60px;padding:7px!important}.remove-btn{border:1px solid #fecaca;background:#fff;color:#ef4444;border-radius:7px;width:34px;height:34px;cursor:pointer}.drop-hint{margin:0 18px 8px;border:1px dashed #b9c8dd;border-radius:9px;padding:10px;text-align:center;color:#64748b;font-size:12px}.duration-total{font-size:13px;color:#2563eb}.playlist-channel label{display:flex;align-items:center;gap:8px}.playlist-channel select{padding:10px;border:1px solid #dbe3ef;border-radius:8px}
@media(max-width:1100px){.dashboard-stats.five{grid-template-columns:repeat(2,1fr)}.status-panel{grid-template-columns:repeat(3,1fr)}.status-legend{grid-column:1/-1}.settings-grid{grid-template-columns:1fr}.playlist-builder{grid-template-columns:1fr}}
@media(max-width:980px){.layout{display:block}.sidebar{width:250px}.content{padding:14px}.dashboard-bottom{grid-template-columns:1fr}.three-cols,.two-cols{grid-template-columns:1fr}.user-copy{display:none}}
@media(max-width:620px){.dashboard-stats.five{grid-template-columns:1fr}.status-panel{grid-template-columns:1fr}.page-title-row{align-items:flex-start;gap:12px}.quick-actions{gap:8px}.responsive-table{font-size:12px}}

/* =========================================================
   TV INDOOR v2.2 - CORRECAO ESTRUTURAL DESKTOP + MOBILE
   Corrige o conteudo preso atras da sidebar no desktop.
   ========================================================= */
@media (min-width:981px){
    .layout{
        display:block!important;
        min-height:100vh!important;
    }
    .sidebar{
        width:210px!important;
        transform:none!important;
    }
    .content{
        display:block!important;
        width:auto!important;
        min-width:0!important;
        min-height:100vh!important;
        margin-left:210px!important;
        padding:18px 22px!important;
        position:relative!important;
        z-index:1!important;
    }
    .topbar{
        display:flex!important;
        align-items:center!important;
        justify-content:space-between!important;
        flex-wrap:nowrap!important;
    }
}

@media (max-width:980px){
    .layout{
        display:block!important;
        min-height:100vh!important;
    }
    .content{
        display:block!important;
        width:100%!important;
        min-height:100vh!important;
        margin-left:0!important;
        padding:12px!important;
    }
    .sidebar{
        width:min(286px,86vw)!important;
    }
    .topbar{
        display:grid!important;
        grid-template-columns:minmax(0,1fr) auto!important;
        align-items:start!important;
        gap:10px!important;
        padding:12px!important;
        margin-bottom:12px!important;
        background:#fff!important;
        border:1px solid #e2e8f0!important;
        border-radius:18px!important;
        box-shadow:0 8px 24px rgba(15,23,42,.06)!important;
    }
    .top-left{
        display:grid!important;
        grid-template-columns:48px minmax(0,1fr)!important;
        align-items:start!important;
        gap:10px!important;
        min-width:0!important;
    }
    .menu-toggle{
        display:flex!important;
        width:48px!important;
        height:48px!important;
        padding:0!important;
        align-items:center!important;
        justify-content:center!important;
        flex:0 0 48px!important;
    }
    .topbar-title{
        min-width:0!important;
        padding-top:2px!important;
    }
    .topbar-title h2{
        margin:0 0 3px!important;
        font-size:23px!important;
        line-height:1.15!important;
    }
    .topbar-title .muted{
        font-size:13px!important;
        line-height:1.4!important;
        overflow-wrap:anywhere!important;
    }
    .user-menu-wrap{
        align-self:start!important;
        position:relative!important;
    }
    .user-menu-button{
        width:46px!important;
        height:46px!important;
        padding:4px!important;
        gap:0!important;
        justify-content:center!important;
    }
    .user-avatar{
        width:38px!important;
        height:38px!important;
    }
    .user-copy,.user-chevron{
        display:none!important;
    }
    .user-dropdown{
        position:fixed!important;
        top:74px!important;
        right:12px!important;
        left:auto!important;
        width:min(260px,calc(100vw - 24px))!important;
        max-width:calc(100vw - 24px)!important;
        z-index:1100!important;
    }
    .dash-hero{
        padding:20px!important;
        gap:14px!important;
    }
    .dash-hero h1{
        font-size:28px!important;
        line-height:1.1!important;
    }
    .dash-hero p{
        font-size:14px!important;
        line-height:1.45!important;
    }
    .hero-screen{
        flex:0 0 auto!important;
        font-size:32px!important;
        padding:5px 13px!important;
    }
}

@media (max-width:560px){
    .content{padding:10px!important}
    .topbar{padding:10px!important;gap:8px!important}
    .top-left{grid-template-columns:44px minmax(0,1fr)!important;gap:8px!important}
    .menu-toggle{width:44px!important;height:44px!important;flex-basis:44px!important}
    .user-menu-button{width:42px!important;height:42px!important}
    .user-avatar{width:36px!important;height:36px!important}
    .topbar-title h2{font-size:20px!important}
    .topbar-title .muted{font-size:12px!important}
    .dash-hero{padding:18px!important;border-radius:16px!important}
    .dash-hero h1{font-size:25px!important}
    .hero-screen{display:none!important}
    .dashboard-stats.five{grid-template-columns:1fr!important}
    .status-panel{grid-template-columns:1fr!important}
    .quick-actions{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:8px!important}
    .quick-actions a{font-size:12px!important}
}

/* v2.3.3 - biblioteca exibe mídias ativas e inativas */
.media-item.media-inactive{opacity:.72;background:#f8fafc;border-radius:12px;padding-left:8px;padding-right:8px}
.media-item.media-inactive .drag{opacity:.3;cursor:not-allowed}
.media-status{display:inline-flex;margin-left:7px;padding:2px 7px;border-radius:999px;font-size:10px;font-weight:700}
.media-status.is-active{background:#dcfce7;color:#15803d}
.media-status.is-inactive{background:#fee2e2;color:#dc2626}
.activate-media-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;padding:8px 10px;border-radius:8px;background:#fff1f2;color:#dc2626;font-size:12px;font-weight:700;border:1px solid #fecdd3}
.activate-media-link:hover{background:#ffe4e6}

/* =========================================================
   v2.3.5 - Tipografia mais legível sem rolagem lateral
   ========================================================= */
html,body{font-size:16px;overflow-x:hidden}
.content,.topbar,.modern-card,.card,.table-card,.status-panel,.dash-hero{min-width:0}
.menu a{font-size:15.5px;line-height:1.25}
.brand{font-size:21px}.brand-box small{font-size:13px}
.topbar h2,.topbar-title h2{font-size:27px;line-height:1.15}
.topbar-title .muted{font-size:14px;line-height:1.45}
.page-title-row h1{font-size:30px;line-height:1.15}
.page-title-row p,.section-head p,.muted{font-size:14px;line-height:1.5}
.section-head h3,.modern-card h3,.card h3{font-size:20px;line-height:1.25}
.dash-hero h1{font-size:31px}.dash-hero p{font-size:15px;line-height:1.5}
.dash-stat small,.status-box small{font-size:13px}
.dash-stat strong{font-size:25px}.status-box strong{font-size:23px}
.dash-stat em,.status-box em{font-size:12px;line-height:1.35}
.status-legend{font-size:13px;line-height:1.45}
.quick-actions a{font-size:14px;font-weight:700}
.primary-action,.btn,.btn-sm,.btn-secondary{font-size:15px}
.search-input,.form-control,select,textarea,.modal-body input,.modal-body select{font-size:16px}
.responsive-table{width:100%;max-width:100%;overflow:visible}
.responsive-table table,.table{table-layout:auto;width:100%}
.responsive-table th,.responsive-table td,.table th,.table td{font-size:14px;line-height:1.35;overflow-wrap:anywhere;word-break:normal}
.responsive-table th{font-size:12px}
.pill,.badge{font-size:12px}
.media-item,.playlist-row{font-size:15px}
.media-item small{font-size:13px}
.duration-edit input{font-size:15px}
.modal-head h2{font-size:24px}.modal-head p{font-size:14px}
.modal-body label{font-size:15px}

@media(max-width:1180px){
  .dashboard-stats.five{grid-template-columns:repeat(3,minmax(0,1fr))}
  .status-panel{grid-template-columns:repeat(3,minmax(0,1fr))}
  .status-legend{grid-column:1/-1}
}
@media(max-width:760px){
  .dashboard-stats.five{grid-template-columns:repeat(2,minmax(0,1fr))}
  .playlist-builder,.dashboard-bottom,.two-cols,.three-cols,.settings-grid{grid-template-columns:1fr!important}
  .page-title-row{flex-wrap:wrap}
  .page-title-row>div:first-child{min-width:0;width:100%}
  .primary-action{width:100%}
  .responsive-table table,.responsive-table thead,.responsive-table tbody,.responsive-table th,.responsive-table td,.responsive-table tr{display:block;width:100%}
  .responsive-table thead{display:none}
  .responsive-table tr{background:#fff;border:1px solid #e2e8f0;border-radius:14px;margin:0 0 12px;padding:10px;overflow:hidden}
  .responsive-table td{display:grid;grid-template-columns:minmax(100px,38%) minmax(0,1fr);gap:10px;border:0!important;padding:8px!important;align-items:center}
  .responsive-table td::before{content:attr(data-label);font-weight:800;color:#475569;font-size:13px}
  .responsive-table td:empty{display:none}
  .icon-actions,.actions-cell{justify-content:flex-start}
}
@media(max-width:560px){
  html,body{font-size:15px}
  .topbar-title h2{font-size:22px!important}
  .topbar-title .muted{font-size:13px!important}
  .page-title-row h1{font-size:26px}
  .dash-hero h1{font-size:26px!important}
  .dash-hero p{font-size:14px!important}
  .dashboard-stats.five{grid-template-columns:1fr!important}
  .dash-stat small,.status-box small{font-size:14px}
  .dash-stat strong,.status-box strong{font-size:25px}
  .section-head{align-items:flex-start;gap:10px;flex-wrap:wrap}
  .search-input.full{width:calc(100% - 24px);margin-left:12px;margin-right:12px}
  .media-list,.playlist-sortable{padding-left:12px;padding-right:12px}
  .media-item,.playlist-row{gap:8px}
  .media-item strong,.playlist-row strong{font-size:14px;overflow-wrap:anywhere}
  .duration-edit input{width:54px}
}

/* =========================================================
   v2.3.6 - fontes maiores, página de telas e modal responsivo
   ========================================================= */
:root{
  --ui-text:16px;
  --ui-small:14px;
  --ui-heading:30px;
}
html,body{font-size:var(--ui-text);overflow-x:hidden!important}
body{line-height:1.5}
.content{overflow-x:hidden!important}
.menu a{font-size:16px!important;min-height:48px}
.menu-icon{font-size:17px}
.brand{font-size:22px!important}.brand-box small{font-size:14px!important}
.topbar-title h2{font-size:29px!important}.topbar-title .muted{font-size:15px!important}
.page-title-row h1{font-size:32px!important}.page-title-row p{font-size:15px!important}
.section-head h3{font-size:23px!important}.section-head p{font-size:15px!important}
.table th,.responsive-table th{font-size:13px!important}
.table td,.responsive-table td{font-size:15px!important}
.btn,.btn-sm,.primary-action,.btn-secondary{font-size:15px!important;min-height:40px;padding:9px 13px}
.form-control,input,select,textarea{font-size:16px!important}
.form-group label{font-size:16px!important}.form-group small{font-size:13px!important;line-height:1.45}

.screens-page{width:100%;min-width:0;padding-bottom:40px}
.screens-title-row{align-items:flex-start;margin-bottom:18px}
.screen-guide{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:center;padding:22px 24px;margin-bottom:16px;border-radius:18px;background:linear-gradient(135deg,#0b2458,#1256e8);color:#fff;box-shadow:0 14px 32px rgba(15,70,180,.18);min-width:0}
.screen-guide-icon{display:flex;align-items:center;justify-content:center;width:58px;height:58px;border:1px solid rgba(255,255,255,.28);border-radius:16px;background:rgba(255,255,255,.12);font-size:29px}
.screen-guide-copy{min-width:0}.screen-guide-copy h2{margin:0 0 6px;font-size:23px;line-height:1.2}.screen-guide-copy p{margin:0;font-size:15px;line-height:1.55;color:rgba(255,255,255,.92)}
.screen-guide-flow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;max-width:370px}
.screen-guide-flow span{padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2);font-size:13px;font-weight:800;white-space:nowrap}.screen-guide-flow b{opacity:.8}
.screen-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}
.screen-info-card{min-width:0;padding:17px 18px;border:1px solid #dbe4f0;border-radius:15px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.05)}
.screen-info-card strong{display:block;margin-bottom:4px;font-size:16px;color:#0f172a}.screen-info-card p{margin:0;color:#64748b;font-size:14px;line-height:1.5}
.screens-list-card{overflow:hidden}.screen-count{display:inline-flex;padding:7px 11px;border-radius:999px;background:#eef4ff;color:#1455d9;font-size:13px;font-weight:800;white-space:nowrap}
.screens-table-wrap{width:100%;overflow:visible!important}.screens-table{width:100%;table-layout:auto}.screens-table th,.screens-table td{padding:14px 12px!important;vertical-align:middle}.screen-name{font-size:16px}.screen-channel{font-weight:750}.screen-url-code{display:inline-block;max-width:260px;padding:6px 8px;border-radius:8px;background:#f1f5f9;color:#334155;font-size:12px;white-space:normal;overflow-wrap:anywhere}
.screen-actions{display:flex;gap:7px;justify-content:flex-end;flex-wrap:wrap}.screen-actions .btn{white-space:nowrap}
.screens-empty{padding:42px 20px;text-align:center;border:1px dashed #cbd5e1;border-radius:15px;background:#f8fafc}.screens-empty strong{display:block;font-size:20px}.screens-empty p{margin:5px 0 16px;color:#64748b;font-size:15px}
.screen-modal-overlay{display:none;position:fixed;inset:0;z-index:3000;padding:22px;background:rgba(15,23,42,.62);align-items:center;justify-content:center;overflow-y:auto}.screen-modal-overlay.is-open{display:flex}.screen-modal-card{width:min(620px,100%);max-height:calc(100vh - 44px);overflow:auto;border-radius:20px;background:#fff;box-shadow:0 28px 80px rgba(15,23,42,.3)}
.screen-modal-card .modal-head{position:sticky;top:0;z-index:2;padding:20px 22px;background:#fff;border-bottom:1px solid #e2e8f0}.screen-modal-card .modal-body{padding:22px}.screen-modal-note{display:grid;gap:3px;margin-bottom:20px;padding:14px 15px;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff;color:#1d4ed8}.screen-modal-note strong{font-size:15px}.screen-modal-note span{font-size:13px;line-height:1.45}.screen-form .form-group{margin-bottom:17px}.screen-form label span{color:#dc2626}.screen-form .form-control{width:100%;min-height:48px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:18px;border-top:1px solid #e2e8f0}
body.modal-open{overflow:hidden}

@media(max-width:1100px){
  .screen-guide{grid-template-columns:auto minmax(0,1fr)}
  .screen-guide-flow{grid-column:1/-1;justify-content:flex-start;max-width:none}
}
@media(max-width:820px){
  .screen-info-grid{grid-template-columns:1fr}
  .screen-guide{grid-template-columns:1fr;padding:20px}
  .screen-guide-icon{width:50px;height:50px}
  .screen-guide-flow{grid-column:auto;justify-content:flex-start}
  .screens-title-row .primary-action{width:100%}
  .screens-table td{font-size:15px!important}
  .screen-actions{justify-content:flex-start}
  .screen-url-code{max-width:100%}
}
@media(max-width:560px){
  :root{--ui-text:16px}
  .content{padding-left:11px!important;padding-right:11px!important}
  .topbar-title h2{font-size:23px!important}.topbar-title .muted{font-size:14px!important}
  .page-title-row h1{font-size:28px!important}.page-title-row p{font-size:15px!important}
  .screen-guide-copy h2{font-size:21px}.screen-guide-copy p{font-size:15px}
  .screen-guide-flow{gap:5px}.screen-guide-flow span{font-size:12px;padding:6px 8px}.screen-guide-flow b{font-size:12px}
  .screen-modal-overlay{padding:10px;align-items:flex-start}.screen-modal-card{max-height:calc(100vh - 20px);border-radius:16px}.screen-modal-card .modal-head,.screen-modal-card .modal-body{padding:17px}
  .modal-actions{flex-direction:column-reverse}.modal-actions .btn{width:100%}
}

/* =========================================================
   v2.3.7 - legibilidade reforçada e botão Copiar URL corrigido
   ========================================================= */

/* O botão secundário herdava texto branco da classe .btn e ficava invisível. */
.btn.btn-secondary,
.btn-secondary,
.copy-screen-url{
  color:#0f172a!important;
  background:#ffffff!important;
  border:1px solid #b9c6d8!important;
  box-shadow:none!important;
  font-weight:800!important;
}
.btn.btn-secondary:hover,
.btn-secondary:hover,
.copy-screen-url:hover{
  color:#0b4fd6!important;
  background:#eff6ff!important;
  border-color:#78a7ff!important;
}

/* Tipografia principal mais visível em todas as páginas administrativas. */
body{font-size:17px!important}
.topbar-title h2{font-size:30px!important}
.topbar-title .muted{font-size:16px!important}
.page-title-row h1{font-size:33px!important}
.page-title-row p,
.section-head p,
.card p,
.modern-card p,
.muted{font-size:16px!important;line-height:1.55!important}
.section-head h3,
.modern-card h3,
.card h3{font-size:24px!important;line-height:1.25!important}
.menu a{font-size:17px!important}
.brand-box small{font-size:14px!important}

/* Tabelas de clientes, mídias, anúncios e telas. */
.table th,
.responsive-table th{
  font-size:14px!important;
  line-height:1.35!important;
  padding:15px 12px!important;
  letter-spacing:.01em;
}
.table td,
.responsive-table td{
  font-size:16px!important;
  line-height:1.5!important;
  padding:15px 12px!important;
}
.table td strong,
.responsive-table td strong{
  font-size:16.5px!important;
}
.table td small,
.responsive-table td small{
  font-size:14px!important;
  line-height:1.45!important;
}
.badge,.pill,.on,.off{font-size:13px!important}

/* Botões e campos. */
.btn,.btn-sm,.primary-action,.btn-secondary{
  font-size:16px!important;
  line-height:1.2!important;
  min-height:42px!important;
  padding:10px 14px!important;
}
.form-control,input,select,textarea{font-size:17px!important}
.form-group label,.modal-body label{font-size:16px!important}
.form-group small,.modal-body small{font-size:14px!important}

/* Mantém tabelas dentro da página sem barra horizontal. */
.responsive-table,
.table-wrap,
.screens-table-wrap{
  width:100%!important;
  max-width:100%!important;
  overflow-x:visible!important;
}
.table,
.responsive-table table,
.screens-table{
  width:100%!important;
  max-width:100%!important;
  table-layout:auto!important;
}
.table th,.table td,
.responsive-table th,.responsive-table td{
  min-width:0!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
.actions-cell,.screen-actions{gap:8px!important}
.screen-url-code{font-size:14px!important;line-height:1.4!important;max-width:280px!important}
.screen-actions .btn{min-width:112px}

/* Títulos e textos específicos das páginas solicitadas. */
.screens-page .screen-guide-copy h2{font-size:25px!important}
.screens-page .screen-guide-copy p{font-size:16px!important}
.screen-info-card strong{font-size:18px!important}
.screen-info-card p{font-size:15.5px!important}
.screen-count{font-size:14px!important}

@media(max-width:980px){
  body{font-size:16px!important}
  .content{overflow-x:hidden!important}
  .page-title-row h1{font-size:29px!important}
  .section-head h3,.modern-card h3,.card h3{font-size:22px!important}
  .table td,.responsive-table td{font-size:16px!important}
}

@media(max-width:760px){
  .responsive-table td{
    grid-template-columns:minmax(112px,40%) minmax(0,1fr)!important;
    font-size:16px!important;
  }
  .responsive-table td::before{font-size:14px!important}
  .actions-cell,.screen-actions{width:100%;justify-content:flex-start!important}
  .actions-cell .btn,.screen-actions .btn{flex:1 1 125px;min-width:0}
}

@media(max-width:560px){
  .topbar-title h2{font-size:24px!important}
  .topbar-title .muted{font-size:14px!important}
  .page-title-row h1{font-size:27px!important}
  .page-title-row p,.section-head p,.modern-card p,.card p{font-size:15px!important}
  .table td,.responsive-table td{font-size:15.5px!important}
  .btn,.btn-sm,.primary-action,.btn-secondary{font-size:15.5px!important}
}

/* =========================================================
   Dashboard v2.3.8 - visual fiel ao modelo enviado
   Ícones SVG internos: não depende de Font Awesome ou internet.
   ========================================================= */
.dashboard-reference{width:100%;max-width:100%;overflow:hidden}
.dashboard-reference svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.dash-hero-reference{min-height:130px;padding:22px 25px!important;margin-top:12px!important;border-radius:15px!important;background:linear-gradient(115deg,#071b43 0%,#073d9f 52%,#1058f4 100%)!important}
.dash-hero-reference h1{font-size:29px!important;line-height:1.15!important;margin-bottom:7px!important}
.dash-hero-reference p{font-size:15px!important;color:#fff!important;opacity:.96}
.hero-monitor{position:relative;width:84px;height:64px;color:#78a6ff;opacity:.62;flex:0 0 auto}
.hero-monitor>svg{stroke-width:1.55}
.hero-monitor>span{position:absolute;width:29px;height:29px;left:28px;top:13px;color:#79a7ff}
.hero-monitor>span svg{fill:currentColor;stroke:none}
.dashboard-stats-reference{gap:11px!important;margin-top:13px}
.dashboard-stats-reference .dash-stat{min-height:91px;padding:13px 15px!important;border-radius:14px!important;gap:13px!important}
.dashboard-stats-reference .dash-icon{width:42px!important;height:42px!important;padding:9px;background:#edf3ff!important;color:#1762f4!important;border-radius:11px!important;flex:0 0 42px}
.dashboard-stats-reference .dash-stat small{font-size:13px!important;line-height:1.25;color:#526681!important}
.dashboard-stats-reference .dash-stat strong{font-size:22px!important;line-height:1.1;color:#101828!important;margin:2px 0}
.dashboard-stats-reference .dash-stat em{font-size:12px!important;color:#15a34a!important}
.status-panel-reference{grid-template-columns:160px 174px 174px minmax(260px,1fr)!important;padding:19px 14px!important;gap:14px!important;margin-top:13px!important}
.status-panel-reference .status-box{min-height:83px;padding:12px 13px!important;align-items:flex-start}
.status-panel-reference .status-circle{width:25px!important;height:25px!important;padding:5px;flex:0 0 25px}
.status-panel-reference .status-box small{font-size:12px!important;font-weight:600}
.status-panel-reference .status-box strong{font-size:21px!important;line-height:1.1;margin:2px 0}
.status-panel-reference .status-box em{font-size:11.5px!important}
.status-legend-reference{padding-left:7px;border-left:1px solid #e4eaf3;display:grid!important;grid-template-columns:repeat(3,max-content);align-items:center;justify-content:start;column-gap:19px!important;row-gap:10px!important;font-size:12px!important;color:#1f2937}
.status-legend-reference>span{display:flex;align-items:center;gap:6px;white-space:nowrap}
.legend-icon{display:inline-flex;width:16px;height:16px;padding:2px}
.legend-icon.green{color:#16a34a}.legend-icon.orange{color:#f59e0b}.legend-icon.red{color:#ef4444}
.dashboard-bottom-reference{grid-template-columns:1.06fr .94fr!important;gap:12px!important;margin-top:12px!important}
.dashboard-bottom-reference .modern-card{min-height:153px;padding:17px!important}
.dashboard-bottom-reference h3{font-size:17px!important;margin:0 0 13px!important}
.quick-actions-reference{height:100%;align-items:flex-start}
.quick-actions-reference a{width:33.333%;padding:2px 16px 0;position:relative;gap:4px!important}
.quick-actions-reference a+a:before{content:"";position:absolute;left:0;top:6px;height:76px;border-left:1px solid #edf0f5}
.quick-actions-reference b{width:40px!important;height:40px!important;padding:10px;border-radius:9px!important;box-shadow:0 7px 16px rgba(37,99,235,.22)}
.quick-actions-reference .quick-green{background:#15b85a!important}.quick-actions-reference .quick-purple{background:#7c21d9!important}
.quick-actions-reference strong{font-size:13px!important;color:#111827;line-height:1.25}
.quick-actions-reference small{font-size:11px!important;line-height:1.35;color:#64748b;max-width:120px;margin:auto}
.playback-content{display:flex;align-items:center;gap:22px;padding:2px 9px}
.mini-chart-svg{width:112px;height:67px;color:#1765ff;flex:0 0 112px}
.mini-chart-svg svg{overflow:visible;stroke-width:2.2}
.mini-chart-svg .chart-fill{fill:#eff5ff;stroke:none}
.playback-card-reference .playback-content strong{font-size:30px!important;color:#111827;display:block;line-height:1}
.playback-card-reference p{font-size:12px!important;margin:8px 0 3px!important;color:#667085}
.playback-card-reference em{font-size:11px;color:#16a34a;font-style:normal}
@media(max-width:1180px){
 .status-panel-reference{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .status-legend-reference{grid-column:1/-1;border-left:0;border-top:1px solid #e4eaf3;padding:13px 0 0;grid-template-columns:repeat(3,max-content)}
}
@media(max-width:900px){
 .dashboard-stats-reference{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .dashboard-bottom-reference{grid-template-columns:1fr!important}
 .status-legend-reference{grid-template-columns:1fr!important}
 .status-legend-reference>span{white-space:normal}
}
@media(max-width:620px){
 .dash-hero-reference{padding:19px!important;min-height:120px}
 .dash-hero-reference h1{font-size:25px!important}
 .hero-monitor{width:58px;height:48px}
 .hero-monitor>span{width:21px;height:21px;left:19px;top:10px}
 .dashboard-stats-reference{grid-template-columns:1fr!important}
 .status-panel-reference{grid-template-columns:1fr!important}
 .quick-actions-reference{display:grid!important;grid-template-columns:1fr!important}
 .quick-actions-reference a{width:100%;display:grid;grid-template-columns:45px 1fr;grid-template-rows:auto auto;text-align:left;padding:10px 5px}
 .quick-actions-reference a+a:before{left:0;right:0;top:0;width:100%;height:0;border-left:0;border-top:1px solid #edf0f5}
 .quick-actions-reference b{grid-row:1/3;margin:0!important}
 .quick-actions-reference small{margin:0;max-width:none}
 .playback-content{gap:12px;padding:0}
 .mini-chart-svg{width:90px;flex-basis:90px}
}
