*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}a{color:inherit}.admin-body{background:#eef2f7;color:#111827}.topbar{background:#0f172a;color:#fff;padding:14px 22px;display:flex;gap:14px;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:20;box-shadow:0 8px 30px rgba(2,6,23,.25)}.topbar a{text-decoration:none;padding:8px 10px;border-radius:10px}.topbar a:hover{background:rgba(255,255,255,.13)}.wrap{max-width:1200px;margin:24px auto;padding:0 18px}.card{background:#fff;color:#111827;border:1px solid #e5e7eb;border-radius:20px;box-shadow:0 12px 30px rgba(15,23,42,.08);padding:20px;margin-bottom:18px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.full{grid-column:1/-1}.field label{display:block;font-weight:800;margin-bottom:6px}.field small,.muted{color:#64748b;line-height:1.35}.field input,.field select,.field textarea,.inline-form input{width:100%;border:1px solid #cbd5e1;border-radius:13px;padding:11px 12px;font-size:15px;background:#fff}.field textarea{min-height:100px}.btn,.pwa-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#e11d48;color:white;text-decoration:none;border:0;border-radius:13px;padding:10px 14px;font-weight:850;cursor:pointer}.btn.secondary{background:#2563eb}.btn.gray{background:#64748b}.btn.green{background:#16a34a}.btn.red{background:#dc2626}.btn.light{background:#f1f5f9;color:#0f172a}.btn.big{font-size:17px;padding:14px 20px}.btn.small{padding:4px 8px;border-radius:8px}.actions,.inline-form{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.inline-form input{max-width:260px}.table{width:100%;border-collapse:collapse}.table th,.table td{text-align:left;border-bottom:1px solid #e5e7eb;padding:10px;vertical-align:middle}.badge{display:inline-block;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:900;background:#e2e8f0;margin:2px}.ok{background:#dcfce7;color:#166534}.bad{background:#fee2e2;color:#991b1b}.warn{background:#fef3c7;color:#92400e}.notice{padding:12px;border-radius:14px;background:#eff6ff;color:#1e40af;margin:12px 0}.notice.error{background:#fef2f2;color:#991b1b}.notice.success{background:#f0fdf4;color:#166534}.danger{background:#fef2f2;color:#991b1b}.success{background:#f0fdf4;color:#166534}.img-preview{width:82px;height:82px;object-fit:cover;border-radius:14px;background:#e5e7eb;border:1px solid #cbd5e1}.img-preview.wide{width:140px;height:78px}.login{max-width:440px;margin:60px auto}.mini-row{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #e5e7eb;padding:8px 0}.center{text-align:center}.qrbox{margin-top:20px}.qrbox img{border-radius:18px;background:white;padding:10px}.footer{padding:30px 0;color:rgba(255,255,255,.7);text-align:center}
@media(max-width:850px){.grid,.grid3{grid-template-columns:1fr}.topbar{display:block}.topbar nav{margin-top:9px;display:flex;gap:6px;flex-wrap:wrap}.wrap{margin:14px auto}.card{border-radius:16px}.table{display:block;overflow-x:auto}}
/* PWA */.pwa-body{min-height:100vh;background:var(--bg,#0f172a);color:var(--text,#fff);overflow-x:hidden}.animated-bg{position:fixed;inset:0;background:radial-gradient(circle at 5% 8%,color-mix(in srgb,var(--primary,#e11d48) 80%,transparent),transparent 26%),radial-gradient(circle at 95% 20%,color-mix(in srgb,var(--secondary,#2563eb) 85%,transparent),transparent 30%),linear-gradient(135deg,#020617,#0f172a 45%,#111827);background-size:170% 170%;animation:bgMove 16s ease-in-out infinite;z-index:-4}.bg-img{position:fixed;inset:0;background-size:cover;background-position:center;opacity:.28;filter:saturate(1.1) contrast(1.05);z-index:-3}.bg-mask{position:fixed;inset:0;background:linear-gradient(180deg,rgba(2,6,23,.25),rgba(2,6,23,.92));z-index:-2}@keyframes bgMove{0%,100%{background-position:0 0}50%{background-position:100% 70%}}.pwa-shell{width:min(1120px,100%);margin:0 auto;padding:24px}.hero{display:grid;grid-template-columns:1.12fr .88fr;gap:26px;align-items:center;min-height:72vh}.brand{display:flex;gap:16px;align-items:center}.logo{width:112px;height:112px;border-radius:28px;object-fit:cover;background:rgba(255,255,255,.12);box-shadow:0 20px 60px rgba(0,0,0,.35)}.title{font-size:clamp(34px,6vw,72px);line-height:.93;margin:16px 0 8px;font-weight:980;letter-spacing:-.055em;text-shadow:0 12px 38px rgba(0,0,0,.35)}.slogan{font-size:20px;color:rgba(255,255,255,.78);max-width:720px}.live-dot{font-weight:950;color:#fecaca;letter-spacing:.08em}.player-card{background:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,.08));border:1px solid rgba(255,255,255,.22);backdrop-filter:blur(18px);border-radius:34px;padding:24px;box-shadow:0 35px 100px rgba(0,0,0,.42)}.cover{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:28px;background:rgba(255,255,255,.10)}.play-row{display:flex;gap:14px;align-items:center;margin-top:16px}.play-btn{width:76px;height:76px;border-radius:50%;border:0;background:linear-gradient(135deg,var(--primary,#e11d48),var(--secondary,#2563eb));color:white;font-size:28px;box-shadow:0 15px 45px rgba(0,0,0,.38);cursor:pointer}.wave{display:flex;gap:4px;align-items:end;height:44px}.wave span{width:5px;border-radius:99px;background:rgba(255,255,255,.78);animation:wave 1.2s infinite ease-in-out}.wave span:nth-child(2){animation-delay:.1s}.wave span:nth-child(3){animation-delay:.2s}.wave span:nth-child(4){animation-delay:.3s}.wave span:nth-child(5){animation-delay:.4s}@keyframes wave{0%,100%{height:8px}50%{height:38px}}.pwa-btns,.social-grid{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.pwa-btn{border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.12);color:white;border-radius:999px;padding:12px 16px}.pwa-btn.primary{background:linear-gradient(135deg,var(--primary,#e11d48),var(--secondary,#2563eb));border:0}.install-banner{display:none;position:fixed;left:16px;right:16px;bottom:16px;z-index:100;background:#fff;color:#111827;border-radius:20px;padding:14px;box-shadow:0 20px 80px rgba(0,0,0,.35);align-items:center;justify-content:space-between;gap:12px}.install-banner.show{display:flex}.section{margin:32px 0}.section h2{font-size:30px;margin:0 0 15px}.banner-slot{position:relative;overflow:hidden;border-radius:22px;margin:18px 0;min-height:82px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15)}.banner-item{display:none}.banner-item.active{display:block}.banner-slot img{width:100%;display:block;border-radius:22px}.ad-html{padding:8px;overflow:hidden}.video-frame{width:100%;aspect-ratio:16/9;border:0;border-radius:24px;background:#000}.notice-list,.schedule-list{display:grid;gap:10px}.notice-item,.schedule-item{padding:15px;border-radius:18px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.14)}.copy-done{display:none;color:#bbf7d0;font-weight:900;margin-left:10px}.copy-done.show{display:inline}.offline{display:none;background:#fef3c7;color:#78350f;border-radius:14px;padding:12px;margin-top:12px}.offline.show{display:block}.layout-news .hero{grid-template-columns:1fr;min-height:48vh}.layout-news .player-card{display:grid;grid-template-columns:220px 1fr;gap:18px}.layout-news .cover{height:220px}.layout-minimal .hero{grid-template-columns:1fr;text-align:center;max-width:820px;margin:auto}.layout-minimal .brand{justify-content:center}.layout-broadcast .player-card{border-radius:12px;border-left:7px solid var(--primary,#e11d48)}.install-page{display:grid;place-items:center;min-height:100vh}.install-page .player-card{max-width:560px}
@media(max-width:900px){.pwa-shell{padding:16px}.hero{grid-template-columns:1fr;min-height:auto;padding-top:18px}.logo{width:86px;height:86px;border-radius:22px}.title{font-size:44px}.layout-news .player-card{grid-template-columns:1fr}.layout-news .cover{height:auto}.install-banner{align-items:flex-start;flex-direction:column}.player-card{border-radius:24px;padding:18px}}

/* PWA final separation: install page vs web app */
.install-card{text-align:center;max-width:620px;margin:auto;overflow:hidden;position:relative}.install-card:before{content:"";position:absolute;inset:-80px -80px auto auto;width:220px;height:220px;background:radial-gradient(circle,var(--primary),transparent 65%);opacity:.35;filter:blur(10px)}.install-note{margin-top:14px;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.16);color:rgba(255,255,255,.88)}.pwa-btns.center{justify-content:center}.is-installed .browser-only,.app-mode.is-installed #installBanner{display:none!important}.install-mode .qrbox{margin:22px auto 8px;display:inline-grid;padding:12px;border-radius:24px;background:#fff;box-shadow:0 18px 40px rgba(0,0,0,.25)}.install-mode .qrbox img{width:220px;height:220px}.app-mode .install-banner:not(.show){display:none}.hero-copy{align-self:center}.banner-slot{min-height:60px}.banner-item{animation:fadeIn .35s ease}@keyframes fadeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.placeholder-safe{background:linear-gradient(135deg,var(--primary),var(--secondary));}


/* Revisão 2026.06: área pública/admin separada e imagens controladas */
.login-only .topbar{display:none}.public-home .public-hero{min-height:88vh}.public-home .player-card p{font-size:18px;line-height:1.5}.img-preview.wide{width:160px;height:90px;object-fit:contain;background:#f8fafc}.banner-slot{display:flex;align-items:center;justify-content:center;max-height:260px}.banner-slot img{width:100%;height:auto;max-height:260px;object-fit:contain;background:rgba(255,255,255,.04)}.player-card .banner-slot{max-height:180px}.player-card .banner-slot img{max-height:180px}.install-card .logo{width:128px;height:128px;object-fit:cover}.field input[type=file]{background:#f8fafc}.table img.img-preview{object-fit:contain}
@media(max-width:700px){.banner-slot{max-height:180px}.banner-slot img{max-height:180px}.public-home .public-hero{min-height:auto}.public-home .player-card p{font-size:16px}}


/* Layout TV Web Profissional - adição segura sem alterar os layouts antigos */
.layout-tv_focus .pwa-shell{width:min(1280px,100%)}
.tv-hero{min-height:72vh;display:grid;gap:20px;padding-top:10px}
.tv-brandbar{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.06));border:1px solid rgba(255,255,255,.16);border-radius:28px;padding:18px;backdrop-filter:blur(16px)}
.layout-tv_focus .title{font-size:clamp(30px,4.8vw,60px);margin:8px 0 4px}
.layout-tv_focus .logo{width:92px;height:92px;border-radius:24px}
.tv-player-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px;align-items:start}
.tv-stage{position:relative;overflow:hidden;border-radius:30px;background:#000;border:1px solid rgba(255,255,255,.18);box-shadow:0 35px 100px rgba(0,0,0,.50)}
.tv-stage.main-tv{min-height:420px}
.tv-stage.side-tv{border-radius:24px;box-shadow:0 18px 55px rgba(0,0,0,.35)}
.tv-video,.tv-embed{display:block;width:100%;aspect-ratio:16/9;border:0;background:#000}
.tv-stage.main-tv .tv-video,.tv-stage.main-tv .tv-embed{min-height:420px}
.tv-stage-label{position:absolute;left:14px;bottom:14px;display:flex;gap:8px;align-items:center;padding:9px 12px;border-radius:999px;background:rgba(2,6,23,.70);border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(12px)}
.tv-side{display:grid;gap:14px}
.tv-radio-strip{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border-radius:24px;padding:16px 18px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(14px)}
.tv-radio-strip small{display:block;color:rgba(255,255,255,.72);margin-top:3px}
.tv-radio-strip .play-row{margin-top:0}.play-row.compact .play-btn{width:56px;height:56px;font-size:22px}.play-row.compact .wave{height:28px}.play-row.compact .wave span{width:4px}.tv-empty{max-width:none;text-align:center}
.layout-tv_focus .banner-slot{max-height:170px}.layout-tv_focus .player-card .banner-slot{max-height:150px}
@media(max-width:980px){.tv-player-grid{grid-template-columns:1fr}.tv-stage.main-tv,.tv-stage.main-tv .tv-video,.tv-stage.main-tv .tv-embed{min-height:auto}.tv-brandbar{border-radius:22px}.layout-tv_focus .logo{width:78px;height:78px}.tv-radio-strip{align-items:flex-start}.tv-stage-label{position:static;border-radius:0;background:rgba(2,6,23,.95)}}
@media(max-width:640px){.layout-tv_focus .pwa-shell{padding:12px}.tv-brandbar{padding:14px}.tv-stage{border-radius:20px}.tv-side .tv-stage{border-radius:18px}.layout-tv_focus .title{font-size:34px}.layout-tv_focus .pwa-btns{width:100%}.layout-tv_focus .pwa-btn{flex:1 1 auto}.tv-radio-strip{padding:14px}.tv-radio-strip .play-row{width:100%;justify-content:flex-start}}


.install-help{line-height:1.55;text-align:left;background:rgba(15,23,42,.72);border-color:rgba(255,255,255,.24)}
.install-help[hidden]{display:none!important}
.pwa-btn:disabled{opacity:.72;cursor:default}

/* R9 - fluxo de instalação nativa */
.install-action{min-width:210px;font-size:16px;transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease}
.install-action.install-ready{box-shadow:0 0 0 4px rgba(34,197,94,.22),0 16px 45px rgba(0,0,0,.34);animation:installPulse 1.8s ease-in-out infinite}
.install-action.install-waiting{opacity:.92}
.install-readiness{margin-top:14px;padding:12px 14px;border-radius:16px;background:rgba(15,23,42,.72);border:1px solid rgba(255,255,255,.2);display:grid;grid-template-columns:12px 1fr;gap:8px 10px;align-items:center;text-align:left;color:rgba(255,255,255,.92)}
.install-readiness-dot{width:11px;height:11px;border-radius:50%;background:#f59e0b;box-shadow:0 0 0 5px rgba(245,158,11,.14)}
.install-readiness.ready .install-readiness-dot,.install-readiness.installed .install-readiness-dot{background:#22c55e;box-shadow:0 0 0 5px rgba(34,197,94,.15)}
.install-readiness.error .install-readiness-dot{background:#ef4444;box-shadow:0 0 0 5px rgba(239,68,68,.15)}
.install-progress{grid-column:1/-1;height:5px;border-radius:999px;background:rgba(255,255,255,.12);overflow:hidden}
.install-progress span{display:block;width:5%;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--primary,#e11d48),var(--secondary,#2563eb));transition:width .5s ease}
.install-readiness.ready .install-progress span,.install-readiness.installed .install-progress span{background:#22c55e}
.install-readiness.error .install-progress span{background:#ef4444}
@keyframes installPulse{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
@media(max-width:520px){.install-card .pwa-btns.center{display:grid}.install-card .pwa-btn{width:100%}.install-action{min-width:0}}


/* R10 - instalação simples, uma única ação */
.install-card-simple{max-width:560px;padding:30px 26px}.install-brand-mark{display:grid;justify-items:center;gap:10px;margin-bottom:16px}.install-card-simple .install-logo{width:104px;height:104px;border-radius:24px;object-fit:cover;pointer-events:none;user-select:none;-webkit-user-drag:none;box-shadow:0 16px 42px rgba(0,0,0,.34)}.install-official-badge{font-size:12px;font-weight:900;letter-spacing:.12em;color:rgba(255,255,255,.76)}.install-card-simple h1{margin:0 0 10px;font-size:clamp(28px,7vw,42px);line-height:1.08}.install-description{margin:0 auto 22px;max-width:460px;line-height:1.55;color:rgba(255,255,255,.82)}.install-primary{display:grid;gap:12px}.install-card-simple .install-action{width:100%;min-height:58px;border-radius:18px;font-size:18px;padding:15px 20px}.install-card-simple .install-action:disabled{cursor:wait;opacity:.84}.install-card-simple .install-action.install-ready{cursor:pointer;opacity:1;box-shadow:0 0 0 4px rgba(34,197,94,.18),0 18px 48px rgba(0,0,0,.32);animation:none}.install-card-simple .install-action.install-working{cursor:wait}.install-card-simple .install-action.install-success{background:#15803d}.install-card-simple .install-action.install-error{background:#991b1b;cursor:not-allowed}.install-status-simple{display:flex;align-items:flex-start;justify-content:center;gap:9px;min-height:44px;padding:11px 13px;border-radius:14px;background:rgba(15,23,42,.58);border:1px solid rgba(255,255,255,.16);font-size:14px;line-height:1.45;text-align:left;color:rgba(255,255,255,.88)}.install-status-icon{flex:0 0 10px;width:10px;height:10px;margin-top:5px;border-radius:50%;background:#f59e0b;box-shadow:0 0 0 5px rgba(245,158,11,.13)}.install-status-simple.ready .install-status-icon,.install-status-simple.installed .install-status-icon{background:#22c55e;box-shadow:0 0 0 5px rgba(34,197,94,.14)}.install-status-simple.error .install-status-icon{background:#ef4444;box-shadow:0 0 0 5px rgba(239,68,68,.14)}.install-status-simple.working .install-status-icon{animation:installStatusPulse 1s ease-in-out infinite}.install-web-link{display:inline-block;margin-top:18px;color:rgba(255,255,255,.78);font-weight:750;text-underline-offset:4px}.install-other-device{margin-top:22px;color:rgba(255,255,255,.72);font-size:14px}.install-other-device summary{cursor:pointer;list-style-position:inside}.install-other-device .qrbox{margin-top:14px}.install-card-simple .install-help{margin-top:14px}.install-card-simple .copy-done,.install-card-simple>.muted{display:none!important}@keyframes installStatusPulse{0%,100%{opacity:.45;transform:scale(.86)}50%{opacity:1;transform:scale(1.08)}}@media(max-width:560px){.install-page{align-items:start}.install-card-simple{padding:24px 18px;margin-top:8px}.install-card-simple .install-logo{width:88px;height:88px;border-radius:21px}.install-other-device{display:none}.install-card-simple .install-action{font-size:17px}}

/* R10.1 - identidade visual não clicável, separada do botão de instalação */
.install-card-simple .install-brand-mark{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:18px;text-align:left}.install-card-simple .install-logo{width:64px;height:64px;border-radius:16px;box-shadow:none;border:1px solid rgba(255,255,255,.18)}.install-brand-copy{display:grid;gap:3px}.install-brand-copy strong{font-size:18px;line-height:1.15}.install-card-simple .install-official-badge{font-size:10px}@media(max-width:420px){.install-card-simple .install-brand-mark{justify-content:flex-start}.install-card-simple .install-logo{width:58px;height:58px;border-radius:14px}}
