@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Bebas+Neue&family=Playfair+Display:wght@500;700;800&display=swap');
:root{--bg:#f5f2ec;--paper:#fffcf7;--ink:#23262a;--muted:#6f7378;--line:#e4e4d9;--orange:#d8a327;--green:#34734e;--red:#ac4034;--radius:22px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:inherit}:is(button,a,input,select):focus-visible{outline:3px solid #ddac3c88;outline-offset:4px}button{border:0}button[hidden],[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1,h2,h3,.brand{font-family:Inter,ui-sans-serif,system-ui,sans-serif}h1{font-size:clamp(32px,4.6vw,60px);font-weight:700;letter-spacing:-2.4px;line-height:1.13}h2{font-size:26px;letter-spacing:-.9px}h3{font-size:18px;letter-spacing:-.3px}em{font-family:Georgia,serif;font-weight:400;color:var(--orange)}.app-header{height:96px;max-width:1320px;padding:0 52px;margin:auto;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;font-size:20px;font-weight:800;letter-spacing:1.2px;line-height:1.1}.brand small{display:block;font-size:9px;font-weight:500;letter-spacing:2px;margin-top:7px}.header-actions{display:flex;align-items:center;gap:20px}.text-link{font-size:13px;text-decoration:none;font-weight:600}.text-link:hover{text-decoration:underline}.subtle{background:transparent;color:var(--muted);padding:9px 12px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:2.3px;color:var(--orange);margin-bottom:18px}.lead{font-size:16px;line-height:1.8;color:var(--muted);margin-top:25px}.auth-layout{max-width:1180px;margin:auto;display:grid;grid-template-columns:1.12fr 1fr;gap:70px;align-items:center;padding:60px 40px}.auth-intro{position:relative;min-height:550px}.auth-intro h1{font-size:clamp(38px,4vw,53px)}.auth-vinyl{width:240px!important;height:240px!important;margin:32px 0 18px 35px;transform:rotate(-12deg)}.auth-caption{display:block;color:var(--muted);font-size:12px}.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:28px}.login-card{padding:42px}.badge{display:inline-flex;font-size:10px;font-weight:700;letter-spacing:1.3px;background:#eeece3;color:var(--muted);border-radius:7px;padding:7px 10px}.login-card h2{margin:23px 0 12px}.login-card>p{font-size:14px;color:var(--muted);line-height:1.7}.login-card form{margin-top:27px}label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600;margin-bottom:18px}input:not([type=range]):not([type=checkbox]),select{width:100%;border:1px solid var(--line);border-radius:10px;background:var(--paper);padding:13px 14px;min-height:46px;color:var(--ink)}input::placeholder{color:#92969b;font-size:13px}.primary{background:var(--orange);color:#fffaf3;display:inline-flex;align-items:center;justify-content:center;gap:14px;padding:13px 20px;border-radius:11px;font-size:13px;font-weight:600;min-height:46px;text-decoration:none}.primary:hover{background:#bf8f22}.full{width:100%;justify-content:space-between}.secondary{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 17px;border-radius:11px;background:#ecece3;color:var(--ink);font-size:13px;font-weight:600;min-height:44px;text-decoration:none}.secondary:hover{background:#e2e4d9}.danger{color:var(--red);background:#e1c88e}.form-error{font-size:13px;color:var(--red);min-height:20px;margin-bottom:12px;line-height:1.5}.login-note{display:flex;gap:13px;align-items:center;border-top:1px solid var(--line);padding-top:22px;margin-top:28px}.small-disc{width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#eaece2;flex-shrink:0;font-size:19px}.login-note p{font-size:12px;color:var(--muted);line-height:1.8}.login-note a{color:var(--ink);font-weight:600}.app-footer{max-width:1216px;margin:auto;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:26px 0;font-size:11px;color:var(--muted);gap:24px}.app-footer>span{font-size:10px;font-weight:600;letter-spacing:1.4px;white-space:nowrap}.tabs{max-width:1216px;margin:auto;display:flex;gap:28px;align-items:center;border-bottom:1px solid var(--line);min-height:68px}.tabs button{background:transparent;padding:22px 0 20px;color:var(--muted);font-size:13px;border-bottom:3px solid transparent;white-space:nowrap}.tabs button.active{color:var(--ink);font-weight:700;border-color:var(--orange)}.connection-label{margin-left:auto;color:var(--muted);font-size:11px;white-space:nowrap}.main-content{max-width:1216px;margin:auto;padding:38px 0 48px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}.page-heading h1{font-size:35px;letter-spacing:-1.3px}.page-heading .eyebrow{margin-bottom:11px}.page-heading p:not(.eyebrow){font-size:13px;color:var(--muted);margin-top:12px;line-height:1.6}.button-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.stats{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px;margin-bottom:24px}.stat{padding:20px 24px;border:1px solid var(--line);border-radius:15px;display:flex;align-items:center;gap:16px;background:#f9f7f1}.stat .stat-icon{width:42px;height:42px;border-radius:12px;background:#ebece1;display:flex;align-items:center;justify-content:center}.stat small{display:block;color:var(--muted);font-size:11px;margin-bottom:7px}.stat strong{font-size:16px}.status-chip{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);border-radius:20px;background:#ecece4;padding:7px 11px;white-space:nowrap}.status-chip i{display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor}.status-chip.online{background:#e5e9ed;color:var(--green)}.status-chip.offline{background:#eeebe5;color:#7e796d}.dashboard-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:22px}.section-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:25px}.section-top h3{font-size:15px}.now-playing{display:flex;gap:26px;align-items:center;padding:12px 0 27px}.vinyl{width:176px;height:176px;border-radius:50%;flex-shrink:0;position:relative;background:repeating-radial-gradient(circle at center,#26292c 0,#26292c 2px,#34373b 3px,#26292c 4px);box-shadow:10px 15px 28px #23262a1c;border:5px solid #212326;display:flex;align-items:center;justify-content:center}.vinyl:before{content:'';position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 10deg,transparent 0deg,#ffffff11 45deg,transparent 90deg,transparent 160deg,#ffffff18 200deg,transparent 250deg)}.vinyl-label{position:relative;z-index:1;background:#deb045;width:45%;height:45%;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#fff8df;border:4px solid #bf9228}.vinyl-label span{font-size:10px;letter-spacing:1px;font-weight:700}.vinyl-label small{font-size:6px;letter-spacing:1px;margin-top:4px}.vinyl-label i{width:8px;height:8px;border-radius:50%;background:#24272b;margin-top:12px}.vinyl.playing{animation:spin 16s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.vinyl.playing{animation:none}}.now-info{min-width:0}.now-info h2{font-size:28px;margin:12px 0 8px}.track-title{font-size:13px;color:var(--muted);line-height:1.6;overflow-wrap:anywhere}.playback-status{font-size:11px;color:var(--green);margin-top:13px;display:flex;align-items:center;gap:7px}.equalizer{display:inline-flex;gap:2px;height:13px;align-items:center}.equalizer i{width:3px;background:var(--green);height:5px}.equalizer.moving i{animation:eq .8s ease-in-out infinite alternate}.equalizer i:nth-child(2){height:12px;animation-delay:.2s}.equalizer i:nth-child(3){height:8px;animation-delay:.5s}@keyframes eq{to{height:13px}}.remote-controls{display:flex;justify-content:center;gap:15px;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:11px;background:#eeeee6;color:var(--ink)}.icon-button.play{width:52px;height:52px;border-radius:50%;background:var(--ink);color:white;margin:-5px 5px}.icon{width:20px;height:20px;display:inline-block;vertical-align:middle;flex-shrink:0}.volume-control{display:flex;align-items:center;gap:13px;margin-top:23px}.volume-control strong{font-size:12px;min-width:35px;text-align:right}input[type=range]{accent-color:var(--orange);width:100%;cursor:pointer}.field-note{font-size:11px;color:var(--muted);line-height:1.7;margin-top:9px}.selector-row{margin-top:23px;display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end}.selector-row label{margin:0}.selector-row .primary{height:46px}.switch-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-top:20px;margin-top:20px;border-top:1px solid var(--line)}.switch-row strong{font-size:12px}.switch-row p{font-size:11px;color:var(--muted);margin-top:6px;line-height:1.6}.switch-row input{width:36px;height:20px;accent-color:var(--orange);cursor:pointer}.aside-stack{display:flex;flex-direction:column;gap:22px}.device-card{background:#e2e5ea}.device-card h3{margin:18px 0 10px}.device-card>p{font-size:12px;line-height:1.8;color:#5c6570}.device-card .button-row{margin-top:23px}.device-card .primary{font-size:12px}.device-steps{display:flex;gap:8px;margin-top:18px;font-size:10px;color:#586371;flex-wrap:wrap}.device-steps span{border-radius:7px;padding:6px 8px;background:#d6dbe2}.small-link{font-size:11px;color:var(--orange);text-decoration:none;background:transparent;padding:0}.schedule-preview{display:flex;gap:12px;margin:15px 0;align-items:center}.schedule-preview .time{font-size:12px;font-weight:600;min-width:65px}.schedule-preview p{font-size:12px;font-weight:500}.schedule-preview small{color:var(--muted);font-size:10px}.empty-inline{color:var(--muted);font-size:12px;line-height:1.8;padding:16px 0}.empty-state{text-align:center;padding:48px 24px}.empty-state h2{margin:22px 0 12px}.empty-state p{max-width:480px;margin:0 auto 24px;font-size:13px;color:var(--muted);line-height:1.8}.empty-state .button-row{justify-content:center}.empty-state>.small-disc{width:62px;height:62px;font-size:28px}.playlist-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.playlist-card{padding:0;overflow:hidden}.playlist-cover{height:146px;background:#dce0e6;display:flex;align-items:center;justify-content:center;position:relative}.playlist-cover.youtube{background:#d8c597}.playlist-cover .vinyl{width:106px;height:106px}.playlist-cover .vinyl-label span{font-size:6px}.playlist-cover .vinyl-label small{display:none}.playlist-cover .vinyl-label i{width:5px;height:5px;margin-top:6px}.playlist-cover .status-chip{position:absolute;right:15px;top:15px;font-size:9px;background:#fffcf7d9}.playlist-details{padding:23px}.playlist-details h3{margin:11px 0 7px;overflow-wrap:anywhere}.playlist-details .source-url{font-size:11px;color:var(--muted);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;margin:12px 0 20px}.playlist-details .button-row{justify-content:space-between;margin-top:18px;border-top:1px solid var(--line);padding-top:17px}.playlist-details .button-row button{font-size:11px}.playlist-details .badge{font-size:9px}.inactive-card{opacity:.65}.schedule-list{display:flex;flex-direction:column;gap:13px}.schedule-row{display:flex;align-items:center;gap:22px;padding:22px 25px}.schedule-time{font-size:19px;letter-spacing:-.5px;white-space:nowrap;min-width:155px}.schedule-description{flex:1;min-width:0}.schedule-description h3{font-size:15px;margin-bottom:8px}.days-label{font-size:11px;color:var(--muted)}.schedule-description .badge{margin-left:10px;font-size:8px;vertical-align:middle}.schedule-row .button-row{flex-wrap:nowrap}.schedule-row button{font-size:11px}.info-note{padding:15px 20px;background:#eceee3;border-radius:12px;margin-bottom:24px;color:#5d646d;font-size:12px;line-height:1.8}.volume-layout{display:grid;grid-template-columns:1fr 1fr;gap:22px}.master-volume{font-size:64px;letter-spacing:-3px;margin:30px 0 20px}.master-volume span{font-size:25px;color:var(--muted)}.muted{color:var(--muted)}.muted-text{font-size:13px;line-height:1.8;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:22px;background:var(--paper);color:var(--ink);padding:30px;max-width:550px;width:calc(100% - 32px);max-height:90dvh}dialog::backdrop{background:#16191ec0;backdrop-filter:blur(4px)}.modal-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.modal-top h2{font-size:22px}.modal-top button{background:transparent;font-size:25px;color:var(--muted);padding:3px 8px}.modal-description{font-size:12px;line-height:1.8;color:var(--muted);margin:-10px 0 24px}.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:28px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.day-picker{display:flex;gap:7px;margin:8px 0 24px;flex-wrap:wrap}.day-picker label{margin:0;position:relative}.day-picker input{position:absolute;opacity:0}.day-picker span{display:flex;align-items:center;justify-content:center;min-height:38px;min-width:44px;padding:8px;border:1px solid var(--line);border-radius:9px;cursor:pointer;font-size:11px}.day-picker input:checked+span{background:var(--ink);color:white;border-color:var(--ink)}.day-picker input:focus-visible+span{outline:3px solid #ddac3c88}.suggested-names{display:flex;gap:8px;margin:-8px 0 20px}.suggested-names button{background:#f0eee5;border-radius:7px;padding:6px 10px;font-size:10px;color:var(--muted)}.track-list{list-style:none;margin:0;padding:0}.track-row{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--line)}.track-row>div:first-child{min-width:0;flex:1}.track-row strong{font-size:12px;font-weight:500;display:block;overflow-wrap:anywhere}.track-row small{font-size:10px;color:var(--muted)}.track-row .icon-button{width:30px;height:30px;border-radius:8px}.track-row .button-row{gap:5px;flex-wrap:nowrap}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;padding:14px 22px;border-radius:12px;background:#23262a;color:#fff8ec;font-size:13px;max-width:calc(100% - 32px);z-index:100;transition:.2s;text-align:center}#toast.visible{opacity:1;transform:translate(-50%,0)}.player-body{--bg:#17181a;--paper:#202224;--ink:#f2eee4;--muted:#91979f;--line:#32353a;background:var(--bg);color:var(--ink);min-height:100dvh}.player-header{max-width:1200px}.player-header .status-chip{background:#282b2f}.player-header .status-chip.online{background:#272e37;color:#9eaab9}.player-main{max-width:1080px;padding:50px 30px 44px;margin:auto}.player-heading h1{font-size:38px;letter-spacing:-1.4px}.player-heading>p:last-child{font-size:13px;line-height:1.8;color:var(--muted);margin-top:14px}.player-stage{display:grid;grid-template-columns:1.2fr 1fr;gap:58px;align-items:center;background:var(--paper);border:1px solid var(--line);border-radius:24px;padding:40px;margin-top:36px}.player-media{display:flex;align-items:center;justify-content:center;width:100%;min-width:200px}.player-media>.vinyl{height:285px;width:285px;border:6px solid #101316}.player-media .vinyl-label span{font-size:14px}.player-media .vinyl-label small{font-size:8px}.player-media .vinyl-label i{height:10px;width:10px;margin-top:15px}#youtube-area{width:100%;min-width:200px}#youtube-area iframe{display:block;width:100%;height:260px;min-width:200px;min-height:200px;border:0;border-radius:10px}.youtube-caption{font-size:10px;color:var(--muted);line-height:1.6;text-align:center;margin-top:14px}.player-info{min-width:0}.player-info .badge{background:#2c3137;color:#acb6c3}.player-info h2{font-size:31px;letter-spacing:-1px;margin:19px 0 10px}.player-info>p{font-size:13px;line-height:1.7;color:var(--muted);overflow-wrap:anywhere}.player-progress{height:3px;background:#33383e;border-radius:3px;margin-top:24px;overflow:hidden}.player-progress>div{height:100%;background:#ddac3c;width:0;transition:width .5s}.player-time{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin:9px 0 24px}.start-button{width:100%;padding:17px;font-size:16px}.player-message{font-size:11px!important;text-align:center;margin-top:12px;min-height:35px}.player-facts{display:flex;gap:35px;border-top:1px solid var(--line);margin-top:23px;padding-top:20px}.player-facts small{display:block;font-size:8px;letter-spacing:1px;color:var(--muted);margin-bottom:8px}.player-facts strong{font-size:14px}.next-track{margin-top:20px;font-size:11px!important}.player-bottom{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-top:27px}.player-bottom>div{display:flex;align-items:center;gap:12px}.player-bottom .small-disc{background:#282c31;color:#a1acbb;font-size:20px}.player-bottom p{color:var(--muted);font-size:11px;line-height:1.8}.player-help{font-size:10px;color:var(--muted);line-height:1.8;margin-top:22px;max-width:680px}.player-body .app-footer{max-width:1100px;font-size:10px}.loading-message{padding:55px;text-align:center;color:var(--muted);font-size:13px}.upload-status{font-size:12px;line-height:1.8;color:var(--green);margin-top:15px;overflow-wrap:anywhere}
@media(min-width:1600px){.auth-layout{padding-top:80px;padding-bottom:90px}.auth-intro{min-height:610px}.auth-vinyl{width:280px!important;height:280px!important}}
@media(max-width:1280px){.app-header{padding:0 32px}.tabs,.main-content{margin-left:32px;margin-right:32px}.app-footer{margin:0 32px}.playlist-grid{gap:16px}.dashboard-grid{grid-template-columns:1.35fr 1fr}.now-playing{gap:20px}.now-playing .vinyl{width:140px;height:140px}.player-body .app-footer{margin:0 32px}}
@media(max-width:900px){.auth-layout{gap:32px;padding:50px 32px}.login-card{padding:30px}.auth-intro h1{font-size:40px}.auth-intro{min-height:auto}.auth-vinyl{width:205px!important;height:205px!important;margin-left:15px}.dashboard-grid{grid-template-columns:1fr}.aside-stack{display:grid;grid-template-columns:1fr 1fr}.playlist-grid{grid-template-columns:repeat(2,1fr)}.player-stage{gap:30px;padding:30px}.player-media>.vinyl{height:225px;width:225px}.player-heading h1{font-size:34px}.schedule-row{gap:14px;flex-wrap:wrap}.schedule-row .button-row{margin-left:auto}.volume-layout{grid-template-columns:1fr 1fr}.app-footer p{max-width:380px;text-align:right;line-height:1.7}}
@media(max-width:650px){.app-header{height:78px;padding:0 20px}.brand{font-size:17px;gap:9px}.brand img{width:32px;height:32px}.brand small{font-size:8px;letter-spacing:1.4px}.header-actions{gap:6px}.text-link{font-size:11px}.auth-layout{display:flex;flex-direction:column;padding:34px 20px;gap:28px;align-items:stretch}.auth-intro h1{font-size:38px;letter-spacing:-1.6px}.auth-intro .lead{font-size:13px;margin-top:18px;line-height:1.7}.auth-vinyl,.auth-caption{display:none!important}.login-card{padding:28px 24px}.login-card h2{font-size:23px}.login-card .badge{font-size:8px}.eyebrow{font-size:10px}.tabs{margin:0 20px;gap:23px;min-height:60px;overflow-x:auto}.tabs button{font-size:12px;padding:19px 0 17px}.connection-label{display:none}.main-content{margin:0 20px;padding-top:30px}.page-heading{align-items:flex-start;flex-direction:column;gap:18px;margin-bottom:25px}.page-heading h1{font-size:30px;letter-spacing:-1px}.page-heading p:not(.eyebrow){font-size:12px}.page-heading>.button-row{width:100%}.page-heading>.button-row>*{flex:1;font-size:11px}.stats{gap:8px}.stat{flex-direction:column;align-items:flex-start;gap:12px;padding:14px 12px;border-radius:12px}.stat .stat-icon{width:30px;height:30px;border-radius:9px}.stat small{font-size:9px}.stat strong{font-size:12px}.stat .status-chip{font-size:9px;padding:5px 6px}.card{padding:23px}.now-playing{gap:17px;align-items:center}.now-playing .vinyl{width:105px;height:105px}.now-playing .vinyl-label span{font-size:6px}.now-playing .vinyl-label small{display:none}.now-playing .vinyl-label i{width:6px;height:6px;margin-top:5px}.now-info h2{font-size:23px}.now-info .badge{font-size:8px;padding:5px 7px}.track-title{font-size:11px}.playback-status{font-size:10px}.selector-row{grid-template-columns:1fr}.selector-row .primary{width:100%}.aside-stack{display:flex}.section-top{margin-bottom:18px}.playlist-grid{grid-template-columns:1fr}.playlist-card{padding:0}.playlist-cover{height:135px}.schedule-row{padding:20px;gap:12px}.schedule-time{font-size:17px;min-width:auto;width:100%}.schedule-description{min-width:160px}.schedule-row .button-row{margin-left:0;width:100%;border-top:1px solid var(--line);padding-top:15px}.schedule-row .button-row button{flex:1}.volume-layout{grid-template-columns:1fr}.app-footer{flex-direction:column;align-items:flex-start;padding:24px 0;gap:11px;margin:0 20px;font-size:10px}.app-footer p{text-align:left;max-width:100%}.player-header .status-chip{font-size:9px;padding:6px 8px}.player-main{padding:32px 20px}.player-heading h1{font-size:30px}.player-heading>p:last-child{font-size:12px}.player-stage{grid-template-columns:1fr;gap:28px;padding:25px 20px;margin-top:25px}.player-media>.vinyl{width:230px;height:230px}.player-info h2{font-size:28px}.player-info .badge{font-size:9px}.player-facts{justify-content:space-between;gap:16px}.player-facts small{font-size:8px}.player-bottom{align-items:flex-start}.player-bottom .text-link{white-space:nowrap}.player-bottom>div{gap:8px}.player-bottom p{font-size:10px}.player-help{font-size:10px}.player-body .app-footer{margin:0 20px}#youtube-area iframe{height:230px}.form-grid{gap:10px}dialog{padding:24px}.day-picker{gap:5px}.day-picker span{min-width:35px;font-size:10px}.empty-state{padding:35px 20px}.empty-state h2{font-size:24px}}
/* TV administration */
.tv-illustration{width:260px;aspect-ratio:16/9;background:radial-gradient(ellipse at 75% 0%,#818f5555,transparent 70%),#252c34;border:9px solid #24272a;border-radius:14px;box-shadow:0 13px 25px #23262a15;display:flex;align-items:center;justify-content:center;position:relative;color:#ede6cf;transform:rotate(-3deg);margin:auto}.tv-illustration:after{content:'';position:absolute;width:80px;height:8px;border-radius:9px;background:#24272a;bottom:-22px;left:calc(50% - 40px)}.tv-illustration>span{text-align:center;font-size:27px;letter-spacing:5px;font-weight:700;font-family:Inter,ui-sans-serif,system-ui,sans-serif}.tv-illustration small{display:block;font-size:7px;font-weight:500;letter-spacing:2px;margin-top:9px}.auth-tv{width:330px;margin:48px 0 40px 20px}.tv-controller{padding:25px 0 5px;text-align:center}.tv-controller>p{font-size:12px;line-height:1.8;color:var(--muted);max-width:360px;margin:34px auto 0}.tv-device-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}.tv-device-row>div{min-width:0}.tv-device-row strong{font-size:12px}.tv-device-row p{font-size:11px;color:var(--muted);margin-top:6px;overflow-wrap:anywhere}.tv-device-row .status-chip{font-size:9px;flex-shrink:0}.tv-device-row .form-error{color:var(--red)}.tv-library-heading{margin:34px 0 20px}.tv-library-heading h2{font-size:22px}.tv-library-heading>span{font-size:11px}.tv-thumbnail{display:block;position:relative;width:100%;aspect-ratio:16/9;padding:0;overflow:hidden;background:#22262b}.tv-thumbnail video{width:100%;height:100%;object-fit:contain;pointer-events:none}.tv-play-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:22px;color:white;background:#0002;transition:background .2s}.tv-thumbnail:hover .tv-play-overlay{background:#0005}.tv-thumbnail .status-chip{position:absolute;right:12px;bottom:12px;color:white;background:#0a0c0ecc;font-size:10px}.tv-video-actions{display:flex;align-items:center;gap:13px;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:18px;padding-top:17px}.tv-video-actions .button-row{padding:0;margin:0;border:0;gap:5px}.tv-video-actions .icon-button{width:30px;height:30px;font-size:16px}.tv-video-actions>.small-link{font-size:11px}.tv-preview{width:100%;aspect-ratio:16/9;background:#090a0c;border-radius:10px;margin-bottom:15px}
/* Dedicated public TV player */
.tv-body{--bg:#090a0c;--paper:#1c2025;--ink:#f7f2e5;--muted:#9fa7b1;--line:#323840;background:var(--bg);color:var(--ink);height:100dvh;overflow:hidden}.tv-stage{width:100%;height:100dvh;position:relative;isolation:isolate;background:#090a0c}.tv-stage:fullscreen{height:100vh;width:100vw}.tv-media{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0;pointer-events:none;background:#090a0c}.tv-media.visible{opacity:1}.tv-welcome{position:absolute;inset:0;z-index:3;padding:40px;overflow:auto;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;background:radial-gradient(ellipse at 90% 15%,#4f5c6d33,transparent 65%),#121519f5}.tv-welcome>*{width:100%;max-width:430px;margin-left:auto;margin-right:auto}.tv-welcome .brand{margin-bottom:35px}.tv-welcome .badge{align-self:center;width:auto;max-width:430px;margin-left:calc(50% - 215px);margin-right:auto;background:#292f38;color:#b3bcc8;margin-bottom:16px}.tv-welcome h1{font-size:42px;letter-spacing:-1.7px}.tv-welcome>p{font-size:13px;color:var(--muted);line-height:1.8;margin-top:18px;margin-bottom:23px}.tv-welcome label{margin-bottom:18px}.tv-welcome input{background:#1e2329!important}.tv-welcome .start-button{justify-content:center}.tv-welcome .tv-start-note{font-size:11px;margin-top:12px;margin-bottom:20px;text-align:center;min-height:20px}.tv-welcome>.text-link{text-align:center;color:var(--muted);font-size:11px}.tv-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;text-align:center;padding:35px;background:radial-gradient(ellipse at 40% 30%,#5765781a,transparent 60%),#101317}.tv-empty .eyebrow{margin:0;color:#94a1b2}.tv-empty h2{font-size:clamp(25px,3vw,40px)}.tv-empty>p:last-child{color:var(--muted);font-size:14px;line-height:1.8}.tv-hud{position:absolute;inset:0;z-index:2;pointer-events:none;display:flex;flex-direction:column;justify-content:space-between;opacity:1;transition:opacity .5s}.tv-hud.quiet{opacity:0}.tv-hud.quiet a,.tv-hud.quiet button{pointer-events:none}.tv-topbar,.tv-bottombar{display:flex;align-items:center;justify-content:space-between;padding:30px 38px;gap:25px;background:linear-gradient(#0009,transparent)}.tv-topbar .brand,.tv-bottombar a,.tv-bottombar button{pointer-events:auto}.tv-topbar .brand{font-size:17px}.tv-topbar .status-chip{color:#b0b9c5;background:#242a31d9;font-size:10px}.tv-topbar .status-chip.offline{color:#e1c89d;background:#372d1dd9}.tv-bottombar{background:linear-gradient(transparent,#000b);align-items:flex-end}.tv-bottombar strong{font-size:16px;overflow-wrap:anywhere}.tv-bottombar p{font-size:11px;color:#b3bac3;margin-top:7px;line-height:1.6}.tv-bottombar .secondary{background:#e7eaee1f;color:#e4e7eb;font-size:11px;backdrop-filter:blur(8px);min-height:39px}.tv-stage.awaiting-start .tv-hud{display:none}
@media(max-width:650px){.auth-tv{display:none}.tv-library-heading{align-items:flex-start;gap:12px;flex-direction:column}.tv-illustration{width:230px}.tv-welcome{padding:28px 24px;justify-content:flex-start}.tv-welcome .brand{margin-bottom:30px}.tv-welcome .badge{margin-left:0}.tv-welcome h1{font-size:35px}.tv-welcome>*{max-width:100%;margin-left:0;margin-right:0}.tv-topbar,.tv-bottombar{padding:22px 20px;gap:12px}.tv-topbar .brand{font-size:14px}.tv-topbar .brand small{font-size:7px}.tv-topbar .status-chip{font-size:8px}.tv-bottombar{flex-direction:column;align-items:flex-start}.tv-bottombar strong{font-size:13px}.tv-bottombar .button-row{width:100%;justify-content:flex-end}.tv-device-row .status-chip{font-size:8px}}
@media(prefers-reduced-motion:reduce){.tv-hud{transition:none}}

/* Logotipo Original na TV */
.tv-welcome .tv-logo{display:block;margin-bottom:22px;max-width:260px}
.tv-logo img,.tv-empty-logo{display:block;width:100%;height:auto}
.tv-empty-logo{width:min(320px,55vw)}
.tv-topbar .tv-hud-brand{flex-direction:column;align-items:flex-start;gap:4px}
.tv-hud-brand img{width:120px;height:auto;filter:drop-shadow(0 2px 6px #0009)}
.tv-hud-brand small{margin-top:0}

/* Identidade Original · painel e players */
:root{--orange:#dba833;--shadow:0 1px 2px #23262a10,0 8px 24px -12px #23262a30}
body{-webkit-font-smoothing:antialiased}
.topbar{background:#101214;border-bottom:3px solid var(--orange)}
.topbar .app-header{border-bottom:0;height:84px;color:#f7f2e5}
.topbar .text-link,.topbar .subtle{color:#d9d6c8}
.topbar .subtle:hover{color:#fff}
.brand{flex-direction:column;align-items:flex-start;gap:5px}
.brand-logo{width:104px;height:auto;display:block}
.brand small{margin-top:0;color:#b9b6a8;white-space:nowrap}
.player-header .brand{color:#f2eee4}
.auth-logo{width:340px;max-width:100%;margin:44px 0 32px;padding:34px 30px 26px;border-radius:26px;background:radial-gradient(ellipse at 80% 0%,#dba83333,transparent 60%),#101214;box-shadow:0 22px 40px -22px #101214aa;text-align:center}
.auth-logo img{width:100%;height:auto;display:block}
.auth-logo small{display:block;margin-top:14px;font-size:9px;letter-spacing:2.4px;color:#b9b6a8}
.card{box-shadow:var(--shadow)}
.tabs{position:sticky;top:0;z-index:20;background:var(--bg);gap:8px;padding:10px 0;min-height:0}
.tabs button{padding:10px 16px;border:0;border-radius:999px;transition:background .15s,color .15s}
.tabs button:hover{background:#ebe8dd;color:var(--ink)}
.tabs button.active{background:var(--ink);color:#fff8ec}
.primary,.secondary,.icon-button{transition:background .15s,transform .1s,box-shadow .15s}
.primary:active,.secondary:active,.icon-button:active{transform:scale(.97)}
.primary{box-shadow:0 6px 14px -8px #dba833}
.playlist-card{transition:transform .18s,box-shadow .18s}
.playlist-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px -16px #23262a60}
.stat{box-shadow:var(--shadow)}
input:not([type=range]):not([type=checkbox]):focus,select:focus{outline:0;border-color:var(--orange);box-shadow:0 0 0 3px #dba83330}
dialog{box-shadow:0 30px 70px -20px #000a}
@media(max-width:650px){.topbar .app-header{height:68px}.brand-logo{width:84px}.tabs{margin:0 20px}.auth-logo{margin:8px 0 0;width:100%}.auth-caption{display:none}}
@media(prefers-reduced-motion:reduce){.playlist-card,.primary,.secondary,.icon-button{transition:none}.playlist-card:hover{transform:none}}

/* Painel de propagandas · segunda rodada */
.tv-illustration{background:radial-gradient(ellipse at 80% 0%,#dba83340,transparent 65%),#101214;border-color:#1c1f22;transform:none;padding:14px}
.tv-illustration>img{width:68%;height:auto;display:block}
.tv-illustration>small{position:absolute;bottom:9px;left:0;right:0;text-align:center;margin:0;color:#b9b6a8}
.icon-button:hover:not(:disabled){background:#e2e3d8}
.icon-button.play:hover:not(:disabled){background:#000}
.icon-button .icon{width:18px;height:18px}
.icon-button.play .icon{width:22px;height:22px}
.remote-controls{gap:18px}
.tv-thumbnail{border-radius:0;transition:filter .15s}
.tv-thumbnail:hover{filter:brightness(1.08)}
.playlist-card.is-live{box-shadow:0 0 0 2px var(--orange),0 14px 30px -16px #dba83380}
.live-chip{position:absolute;left:12px;top:12px;background:var(--orange);color:#fff8ec;border-radius:20px;padding:5px 10px;font-size:10px;font-weight:700;letter-spacing:.6px;animation:pulse 1.8s ease-in-out infinite}
@keyframes pulse{50%{opacity:.7}}
.small-link{padding:6px 4px;border-radius:6px}
.small-link:hover{text-decoration:underline}
.danger-link{color:var(--red)}
.stat .stat-icon{background:#dec791;color:var(--orange)}
.empty-state{background:radial-gradient(ellipse at 50% 0%,#dba83312,transparent 65%),var(--paper)}
@media(prefers-reduced-motion:reduce){.live-chip{animation:none}}
.agenda-note{font-size:11px;color:var(--muted);margin-top:8px}.agenda-note.has-agenda{color:var(--orange);font-weight:600}

/* Logo centralizado sobre o nome do sistema */
.app-header .brand{align-items:center;text-align:center;gap:6px}
.app-header .brand-logo{width:124px}
.app-header .brand small{letter-spacing:2.2px}
@media(max-width:650px){.app-header .brand-logo{width:96px}.app-header .brand small{letter-spacing:1.4px}}

.link-button{display:block;margin:16px auto 0;background:transparent;color:var(--muted);font-size:13px;font-weight:600;text-decoration:underline;padding:6px}.link-button:hover{color:var(--orange)}.login-card form[hidden]{display:none}

/* Login centralizado */
.login-card{text-align:center}
.login-card .badge{margin:0 auto}
.login-card h2,.login-card>p,.login-card form>.muted-text{text-align:center}
.login-card label{align-items:stretch;text-align:center}
.login-card label input{text-align:left}
.login-card .login-note{justify-content:center;text-align:left}
.login-card .form-error{text-align:center}
.check-row{flex-direction:row;align-items:center;gap:10px;font-weight:500;margin-bottom:12px}
.check-row input{width:auto!important;min-height:0!important}
/* Cabeçalho: logo à esquerda, nome do sistema em duas linhas ao lado */
.topbar .app-header,.player-header{height:auto;min-height:84px;padding-top:14px;padding-bottom:14px}
.app-header .brand{flex-direction:row;align-items:center;gap:16px;text-align:left}
.app-header .brand-logo{width:112px;flex-shrink:0}
.app-header .brand small{display:block;margin:0;padding-left:16px;border-left:1px solid #ffffff33;font-size:10px;font-weight:600;letter-spacing:2.2px;line-height:1.7;white-space:normal;max-width:9em}
@media(max-width:650px){.topbar .app-header,.player-header{min-height:68px;padding:12px 20px}.app-header .brand{gap:12px}.app-header .brand-logo{width:84px}.app-header .brand small{font-size:8px;letter-spacing:1.6px;padding-left:12px;max-width:8em}}
/* Etapa 1: imagens, faixa de rodapé e cartões de painel */
.tv-image{object-fit:contain;background:#090a0c}
.tv-ticker{position:absolute;left:0;right:0;bottom:0;z-index:4;display:flex;align-items:center;gap:0;min-height:72px;background:linear-gradient(90deg,#101214f2,#16191cf2);border-top:3px solid #dba833;color:#f7f2e5;font-family:Inter,ui-sans-serif,system-ui,sans-serif;overflow:hidden}
.tv-ticker[hidden]{display:none}
.tv-ticker-info{display:flex;align-items:center;gap:28px;padding:0 32px;flex-shrink:0;border-right:1px solid #ffffff22;align-self:stretch}
.tv-ticker-info:empty{display:none}
.tv-clock{display:flex;flex-direction:column;line-height:1.1;text-align:center}.tv-clock strong{font-size:34px;letter-spacing:-.5px}.tv-clock small{font-size:12px;color:#b9b6a8;letter-spacing:1px;text-transform:uppercase;margin-top:3px}
.tv-weather{display:flex;align-items:center;gap:12px}.tv-weather .wx-icon{font-size:34px}.tv-weather strong{font-size:30px}.tv-weather small{font-size:12px;color:#b9b6a8;max-width:150px;line-height:1.3}
.tv-ticker-message{flex:1;min-width:0;overflow:hidden;white-space:nowrap;padding:0}
.tv-ticker-message[hidden]{display:none}
.tv-ticker-message span{display:inline-block;padding-left:100%;font-size:30px;font-weight:700;animation:ticker var(--duration,20s) linear infinite}
.tv-ticker.only-message .tv-ticker-info{display:none}
@keyframes ticker{to{transform:translateX(-100%)}}
.tv-stage.has-ticker .tv-bottombar{padding-bottom:calc(30px + 72px)}
@media(max-width:650px){.tv-ticker{min-height:52px}.tv-clock strong{font-size:22px}.tv-weather strong{font-size:20px}.tv-weather .wx-icon{font-size:22px}.tv-weather small{display:none}.tv-ticker-info{gap:14px;padding:0 14px}.tv-ticker-message span{font-size:20px}.tv-stage.has-ticker .tv-bottombar{padding-bottom:calc(22px + 52px)}}
@media(prefers-reduced-motion:reduce){.tv-ticker-message span{animation:none;padding-left:16px;white-space:normal}.tv-ticker-message{white-space:normal}}
.tv-thumbnail img{width:100%;height:100%;object-fit:contain;pointer-events:none}
.type-chip{position:absolute;left:12px;top:12px;background:#0a0c0ecc;color:#fff;border-radius:20px;padding:5px 10px;font-size:10px;font-weight:700;letter-spacing:.6px}
.tv-preview-img{width:100%;max-height:60vh;object-fit:contain;background:#090a0c;border-radius:10px;margin-bottom:15px}
.check-line{display:flex;flex-direction:row;align-items:center;gap:10px;font-weight:500;margin-bottom:12px}.check-line input{width:auto!important;min-height:0!important}
.mono-box{font-family:ui-monospace,Consolas,monospace;font-size:11px;background:#ecece3;border-radius:8px;padding:10px;word-break:break-all;margin:8px 0;line-height:1.5}
.small-form-note{font-size:11px;color:var(--muted);line-height:1.6;margin-top:8px}
/* ===== Tema escuro do painel (inspirado em plataformas de mídia indoor, com a identidade laranja do Original) ===== */
.panel-dark{--bg:#0b0c0e;--paper:#141619;--paper-2:#1a1d20;--ink:#f4efe6;--muted:#949ba3;--line:#26292e;--orange:#e1b754;--green:#5fd18a;--red:#ff8272;--shadow:0 24px 48px -28px #000;color:var(--ink);min-height:100vh;
  background:radial-gradient(900px 420px at 88% -8%,#e1b75424,transparent 62%),radial-gradient(800px 460px at -5% 8%,#2e6b4a2e,transparent 60%),var(--bg);background-attachment:fixed}
.panel-dark h1,.panel-dark h2,.panel-dark h3{color:var(--ink)}
.panel-dark em{color:var(--orange)}
.panel-dark .topbar{background:#0b0c0ecc;backdrop-filter:blur(14px);border-bottom:1px solid var(--line);box-shadow:0 1px 0 #e1b75455,0 12px 30px -20px #e1b75488;position:sticky;top:0;z-index:30}
.panel-dark .tabs{background:transparent;top:84px;padding:14px 0;gap:6px;border-bottom:0;max-width:1216px}
.panel-dark .tabs button{color:var(--muted);border:1px solid transparent;font-weight:600}
.panel-dark .tabs button:hover{background:#ffffff0d;color:var(--ink)}
.panel-dark .tabs button.active{background:linear-gradient(135deg,#e3bd63,#dcab38);color:#17130a;box-shadow:0 8px 22px -10px #e1b754}
.panel-dark .connection-label{color:var(--green)}
.panel-dark .card,.panel-dark .stat,.panel-dark dialog{background:linear-gradient(180deg,#171a1d,#131518);border:1px solid var(--line);box-shadow:var(--shadow);color:var(--ink)}
.panel-dark .stat{background:linear-gradient(135deg,#1a1d21,#141619)}
.panel-dark .stat .stat-icon{background:linear-gradient(135deg,#e1b75433,#e1b75410);color:var(--orange);border:1px solid #e1b75433}
.panel-dark .stat strong{font-size:18px}
.panel-dark .page-heading h1{font-size:40px;letter-spacing:-1.6px}
.panel-dark .page-heading p:not(.eyebrow),.panel-dark .muted-text,.panel-dark .field-note,.panel-dark .small-form-note,.panel-dark .lead{color:var(--muted)}
.panel-dark .eyebrow{color:var(--orange)}
.panel-dark input:not([type=range]):not([type=checkbox]),.panel-dark select{background:#0e1013;border-color:var(--line);color:var(--ink)}
.panel-dark input::placeholder{color:#646970}
.panel-dark input:not([type=range]):not([type=checkbox]):focus,.panel-dark select:focus{border-color:var(--orange);box-shadow:0 0 0 3px #e1b75433}
.panel-dark input[type=date],.panel-dark input[type=time]{color-scheme:dark}
.panel-dark .primary{background:linear-gradient(135deg,#e3bd63,#dcab38);color:#17130a;box-shadow:0 10px 26px -12px #e1b754}
.panel-dark .primary:hover{background:linear-gradient(135deg,#e6c473,#ddae40)}
.panel-dark .secondary{background:#1f2226;color:var(--ink);border:1px solid var(--line)}
.panel-dark .secondary:hover{background:#272b30}
.panel-dark .danger,.panel-dark .primary.danger{background:#3a1d19;color:#ff9a8c;border:1px solid #5a2a24;box-shadow:none}
.panel-dark .subtle{color:var(--muted)}
.panel-dark .badge,.panel-dark .status-chip{background:#1f2226;color:var(--muted);border:1px solid var(--line)}
.panel-dark .status-chip.online{background:#11301f;color:var(--green);border-color:#1d4a30}
.panel-dark .status-chip.offline{background:#2a2218;color:#e7c48b;border-color:#40331f}
.panel-dark .icon-button{background:#1f2226;color:var(--ink);border:1px solid var(--line)}
.panel-dark .icon-button:hover:not(:disabled){background:#2a2e34}
.panel-dark .icon-button.play{background:linear-gradient(135deg,#e3bd63,#dcab38);color:#17130a;border:0;box-shadow:0 10px 26px -10px #e1b754}
.panel-dark .icon-button.play:hover:not(:disabled){background:linear-gradient(135deg,#e6c473,#ddae40)}
.panel-dark .remote-controls,.panel-dark .switch-row,.panel-dark .playlist-details .button-row,.panel-dark .tv-video-actions,.panel-dark .tv-device-row,.panel-dark .login-note,.panel-dark .app-footer,.panel-dark .track-row{border-color:var(--line)}
.panel-dark .small-disc{background:#1f2226;color:var(--ink)}
.panel-dark .small-link{color:var(--orange)}.panel-dark .danger-link{color:var(--red)}
.panel-dark .device-card{background:linear-gradient(135deg,#1d2229,#14171b);border-color:#2b323b}
.panel-dark .device-card>p,.panel-dark .device-steps{color:#a6aeb8}
.panel-dark .device-steps span{background:#ffffff0f;color:#c3cad3}
.panel-dark .playlist-card:hover{box-shadow:0 18px 40px -18px #000,0 0 0 1px #e1b75455}
.panel-dark .playlist-card.is-live{box-shadow:0 0 0 2px var(--orange),0 18px 44px -18px #e1b75499}
.panel-dark .tv-thumbnail,.panel-dark .playlist-cover{background:#0a0b0d}
.panel-dark .agenda-note{color:var(--muted)}.panel-dark .agenda-note.has-agenda{color:var(--orange)}
.panel-dark .info-note,.panel-dark .mono-box,.panel-dark .empty-state{background:#0f1215;color:var(--muted);border:1px solid var(--line)}
.panel-dark .empty-state{background:radial-gradient(ellipse at 50% 0%,#e1b7541c,transparent 65%),#131518}
.panel-dark .day-picker span{background:#0e1013;border-color:var(--line);color:var(--muted)}
.panel-dark .day-picker input:checked+span{background:linear-gradient(135deg,#e3bd63,#dcab38);color:#17130a;border-color:transparent}
.panel-dark .suggested-names button{background:#1f2226;color:var(--muted)}
.panel-dark dialog::backdrop{background:#030405d9;backdrop-filter:blur(6px)}
.panel-dark .modal-top button{color:var(--muted)}
.panel-dark #toast{background:#f4efe6;color:#141619;box-shadow:0 20px 40px -16px #000}
.panel-dark .link-button{color:var(--muted)}.panel-dark .link-button:hover{color:var(--orange)}
.panel-dark .login-card{padding:42px;background:linear-gradient(180deg,#171a1d,#111316)}
.panel-dark .login-note a,.panel-dark .login-note p{color:var(--muted)}.panel-dark .login-note a{color:var(--ink)}
.panel-dark .app-footer{color:var(--muted)}
.panel-dark .vinyl-label{border-color:#bf9228}
.panel-dark .loading-message{color:var(--muted)}
.panel-dark .master-volume span{color:var(--muted)}
.panel-dark .schedule-row .badge{background:#1f2226}
.panel-dark input[type=range]{accent-color:var(--orange)}

/* Moldura de TV (prévia ao vivo no painel e destaque na entrada) */
.tv-mock{width:100%;max-width:480px;margin:6px auto 4px}
.tv-mock-bezel{position:relative;background:#04060a;border:7px solid #0a0d12;border-radius:16px;box-shadow:0 0 0 1px #2b2e33,0 30px 50px -24px #000,0 0 60px -18px #e1b75466;aspect-ratio:16/9;overflow:hidden}
.tv-mock-screen{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 70% 0%,#e1b75440,transparent 65%),#101214;overflow:hidden}
.tv-mock-screen>img:not(.tv-mock-logo),.tv-mock-screen>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tv-mock-logo{width:46%;height:auto;position:relative}
.tv-mock-live{position:absolute;left:10px;top:10px;background:#e1b754;color:#fff;border-radius:20px;padding:4px 9px;font-size:10px;font-weight:800;letter-spacing:.6px;animation:pulse 1.8s ease-in-out infinite}
.tv-mock-tag{position:absolute;right:10px;top:10px;background:#000a;color:#fff;border-radius:20px;padding:4px 9px;font-size:10px;font-weight:700;backdrop-filter:blur(4px)}
.tv-mock-ticker{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;gap:10px;padding:7px 10px;background:linear-gradient(90deg,#0b0c0ef0,#141619f0);border-top:2px solid #e1b754;font-size:10px;color:#f4efe6;white-space:nowrap;overflow:hidden}
.tv-mock-ticker b{font-size:13px;padding-right:10px;border-right:1px solid #ffffff30}
.tv-mock-ticker span{overflow:hidden;text-overflow:ellipsis}
.tv-mock-stand{width:26%;height:7px;margin:0 auto;background:linear-gradient(#1b1e21,#0a0b0d);border-radius:0 0 12px 12px;box-shadow:0 12px 20px -8px #000}
.tv-mock-caption{text-align:center;color:var(--muted);font-size:12px;margin-top:14px}
.auth-tv-mock{margin:34px 0 18px;max-width:420px;transform:perspective(900px) rotateY(-6deg) rotateX(2deg)}
.feature-chips{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 0;padding:0}
.feature-chips li{background:#ffffff0f;border:1px solid var(--line);color:#cbd0d6;border-radius:999px;padding:7px 12px;font-size:12px;font-weight:600}
.panel-dark .auth-intro h1{font-size:clamp(40px,4.4vw,58px)}
.panel-dark .tv-controller{padding-top:14px}
.panel-dark .tv-controller>p{margin-top:22px}
@media(max-width:900px){.panel-dark .tabs{top:84px}}
@media(max-width:650px){.panel-dark .tabs{top:68px;margin:0 20px;padding:10px 0}.panel-dark .page-heading h1{font-size:30px}.auth-tv-mock{transform:none;margin:22px 0 10px}}
html:has(body.panel-dark){background:#0b0c0e;color-scheme:dark}

.panel-dark .tabs{background:#0b0c0ed9;backdrop-filter:blur(12px);border-radius:0 0 18px 18px}

/* Editor de cartazes */
dialog.wide{max-width:1040px}
.poster-layout{display:grid;grid-template-columns:minmax(260px,340px) 1fr;gap:22px;align-items:start}
.poster-controls label{margin-bottom:12px}
.poster-preview{position:sticky;top:0}
.poster-preview canvas{width:100%;height:auto;border-radius:12px;border:1px solid var(--line);background:#0a0b0d;box-shadow:0 20px 40px -20px #000;display:block}
textarea{width:100%;border:1px solid var(--line);border-radius:10px;background:var(--paper);padding:12px 14px;color:var(--ink);font:inherit;resize:vertical;min-height:80px}
.panel-dark textarea{background:#0e1013;color:var(--ink)}
.panel-dark textarea:focus{outline:0;border-color:var(--orange);box-shadow:0 0 0 3px #e1b75433}
@media(max-width:800px){.poster-layout{grid-template-columns:1fr}.poster-preview{position:static;order:-1}}
.mini-select{margin-top:8px;max-width:240px;min-height:34px!important;padding:6px 10px!important;font-size:11px}
.group-picker span{padding:8px 12px}

/* Relatórios */
.report-filters{display:flex;flex-wrap:wrap;gap:18px;align-items:flex-end;justify-content:space-between;margin-bottom:22px}
.report-form{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}.report-form label{margin:0}
.active-filter{background:linear-gradient(135deg,#e3bd63,#dcab38)!important;color:#17130a!important;border-color:transparent!important}
.report-row{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line)}
.report-name{flex:1;min-width:0}.report-name strong{display:block;font-size:13px;overflow-wrap:anywhere}.report-name small{font-size:11px;color:var(--muted)}
.report-bar{height:6px;border-radius:6px;background:#ffffff12;margin-top:8px;overflow:hidden}.report-bar i{display:block;height:100%;background:linear-gradient(90deg,#e3bd63,#dcab38);border-radius:6px}
.report-num{text-align:right;flex-shrink:0}.report-num strong{display:block;font-size:18px}.report-num small{font-size:11px;color:var(--muted)}
.bars{display:flex;align-items:flex-end;gap:8px;height:150px;padding-top:10px}
.bar{flex:1;min-width:14px;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px}
.bar i{display:block;width:100%;height:var(--h);border-radius:6px 6px 2px 2px;background:linear-gradient(180deg,#e3bd63,#c59423)}
.bar span{font-size:9px;color:var(--muted)}
@media print{.topbar,.tabs,.app-footer,.report-filters,.page-heading .button-row,#toast{display:none!important}.panel-dark{background:#fff!important;color:#000!important}.panel-dark .card,.panel-dark .stat{background:#fff!important;color:#000!important;border:1px solid #bbb!important;box-shadow:none!important}.panel-dark h1,.panel-dark h2,.panel-dark h3,.panel-dark strong,.report-name small,.report-num small{color:#000!important}.report-bar{background:#ddd!important}.bar i,.report-bar i{background:#dba833!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}}
.bar{max-width:56px}

/* Modo economia: o YouTube escolhe a qualidade pelo tamanho do player; pequeno = vídeo leve (144p–240p) */
#youtube-area{display:flex;flex-direction:column;align-items:center}
#youtube-area iframe{width:200px!important;height:200px!important;min-width:200px;min-height:200px}

/* Player da TV: logo fixo no canto; botões só aparecem ao mexer o mouse */
.tv-corner-logo{position:absolute;top:2.4vw;left:2.4vw;width:clamp(170px,15vw,340px);height:auto;z-index:3;pointer-events:none;filter:drop-shadow(0 4px 16px #000c)}
.tv-stage.awaiting-start .tv-corner-logo{display:none}
.tv-hud-actions{position:absolute;right:2vw;bottom:2vw;display:flex;gap:10px;pointer-events:auto;transition:opacity .4s}
.tv-hud-actions .secondary{background:#0b0c0eb3;color:#f4efe6;border:1px solid #ffffff2e;backdrop-filter:blur(8px);font-size:12px;min-height:40px}
.tv-hud.quiet .tv-hud-actions{opacity:0;pointer-events:none}
.tv-stage.has-ticker .tv-hud-actions{bottom:calc(2vw + 76px)}
.tv-stage.idle{cursor:none}
.tv-diagnostics{display:none!important}
@media(max-width:650px){.tv-corner-logo{width:120px;top:14px;left:14px}.tv-hud-actions{right:12px;bottom:12px}.tv-stage.has-ticker .tv-hud-actions{bottom:68px}}
/* Gerador de Artes: IA */
.ia-box{border:1px solid #e1b75444;background:linear-gradient(135deg,#e1b75414,transparent);border-radius:14px;padding:14px;margin-bottom:16px}
.ia-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.ia-key{display:flex;gap:8px}.ia-key input{flex:1}
.ia-results{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}
.ia-option{background:transparent;border:1px solid var(--line);border-radius:10px;padding:5px;color:var(--muted);font-size:10px;text-align:center}
.ia-option:hover{border-color:var(--orange)}.ia-option canvas{width:100%;height:auto;border-radius:6px;display:block;margin-bottom:4px}
.panel-dark input[type=range]{padding:0;min-height:0!important}

.peso-chip{display:inline-block;margin-left:8px;background:#e1b75422;color:var(--orange);border:1px solid #e1b75444;border-radius:999px;padding:2px 8px;font-size:10px;font-weight:700}

.rules{display:flex;flex-direction:column;gap:12px;margin:10px 0 12px}.rule{border:1px solid var(--line);border-radius:14px;padding:14px;background:#ffffff06}.rule-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.rule .day-picker{margin:6px 0 12px}

/* Botões de acesso aos players */
.header-actions{gap:12px}
.header-btn{display:inline-flex;align-items:center;gap:9px;padding:11px 18px;border-radius:12px;font-size:13px;font-weight:800;text-decoration:none;color:#fff;border:1px solid #ffffff2e;background:#ffffff12;transition:transform .12s,box-shadow .15s,background .15s;white-space:nowrap}
.header-btn:hover{transform:translateY(-1px);background:#ffffff1f}
.header-btn.tv{background:linear-gradient(135deg,#e3bd63,#dcab38);border-color:transparent;box-shadow:0 10px 24px -10px #e1b754}
.header-btn.tv:hover{background:linear-gradient(135deg,#e6c473,#ddae40)}
.header-btn.music{border-color:#5fd18a66;background:#5fd18a1a;color:#d8f7e4}
.header-btn.music:hover{background:#5fd18a2e}
@media(max-width:900px){.header-btn{padding:9px 12px;font-size:12px}.hb-long{display:none}}
@media(max-width:650px){.header-actions{gap:6px}.header-btn{padding:8px 10px}.header-btn>span:last-child{display:none}}
/* Faixa melhorada: tamanhos, cores, posição e modo alternar */
.tv-stage{--tk-h:72px}
.tv-stage[data-ticker-size=p]{--tk-h:54px}.tv-stage[data-ticker-size=g]{--tk-h:104px}
.tv-ticker{--tk-bg1:#101214f2;--tk-bg2:#16191cf2;--tk-accent:#dba833;--tk-text:#f7f2e5;--tk-muted:#b9b6a8;background:linear-gradient(90deg,var(--tk-bg1),var(--tk-bg2));border-top:3px solid var(--tk-accent);color:var(--tk-text);min-height:var(--tk-h)}
.tv-ticker .tv-clock small,.tv-ticker .tv-weather small{color:var(--tk-muted)}
.tv-ticker.color-claro{--tk-bg1:#fffaf0f5;--tk-bg2:#f3e6cff5;--tk-text:#23262a;--tk-muted:#6d6a5f}
.tv-ticker.color-laranja{--tk-bg1:#dcab38f5;--tk-bg2:#c59423f5;--tk-accent:#fff3df;--tk-text:#fff;--tk-muted:#eacc86}
.tv-ticker.color-vinho{--tk-bg1:#2a0f16f5;--tk-bg2:#4d1b28f5;--tk-accent:#f0b45a;--tk-text:#eacc86;--tk-muted:#dcb8a6}
.tv-ticker.color-verde{--tk-bg1:#0e2619f5;--tk-bg2:#1f4a31f5;--tk-accent:#8be6a8;--tk-text:#f1f3f5;--tk-muted:#b7c0cb}
.tv-ticker.pos-top{top:0;bottom:auto;border-top:0;border-bottom:3px solid var(--tk-accent)}
.tv-ticker.size-p .tv-clock strong{font-size:24px}.tv-ticker.size-p .tv-weather strong{font-size:22px}.tv-ticker.size-p .tv-weather .wx-icon{font-size:24px}.tv-ticker.size-p .tv-ticker-message span{font-size:22px}.tv-ticker.size-p .tv-ticker-info{gap:18px;padding:0 22px}
.tv-ticker.size-g .tv-clock strong{font-size:52px}.tv-ticker.size-g .tv-clock small{font-size:15px}.tv-ticker.size-g .tv-weather strong{font-size:46px}.tv-ticker.size-g .tv-weather .wx-icon{font-size:48px}.tv-ticker.size-g .tv-weather small{font-size:15px}.tv-ticker.size-g .tv-ticker-message span{font-size:50px}.tv-ticker.size-g .tv-ticker-info{gap:36px;padding:0 40px}
.tv-ticker-message span.alt{display:block;padding-left:0;animation:none;text-align:center;white-space:normal;line-height:1.15;padding:6px 24px;opacity:0;transform:translateY(8px);transition:opacity .45s,transform .45s}
.tv-ticker-message span.alt.in{opacity:1;transform:none}.tv-ticker-message span.alt.out{opacity:0;transform:translateY(-8px)}
.tv-stage.has-ticker .tv-hud-actions{bottom:calc(2vw + var(--tk-h) + 4px)}
.tv-stage.ticker-top .tv-hud-actions{bottom:2vw}
.tv-stage.ticker-top .tv-corner-logo{top:calc(var(--tk-h) + 1.6vw)}
.tv-stage.has-ticker .tv-bottombar{padding-bottom:calc(30px + var(--tk-h))}
/* Prévia da faixa no painel + lista de mensagens */
.tv-mock-ticker.top{top:0;bottom:auto;border-top:0;border-bottom:2px solid #e1b754}
.tv-mock-ticker.color-claro{background:linear-gradient(90deg,#fffaf0f5,#f3e6cff5);color:#23262a}
.tv-mock-ticker.color-laranja{background:linear-gradient(90deg,#dcab38f5,#c59423f5);border-color:#fff3df}
.tv-mock-ticker.color-vinho{background:linear-gradient(90deg,#2a0f16f5,#4d1b28f5);border-color:#f0b45a}
.tv-mock-ticker.color-verde{background:linear-gradient(90deg,#0e2619f5,#1f4a31f5);border-color:#8be6a8}
.field-title{display:block;font-size:13px;font-weight:600;margin:6px 0 8px}
.msg-list{display:flex;flex-direction:column;gap:10px;margin-bottom:10px}
.msg-row{border:1px solid var(--line);border-radius:12px;padding:10px;background:#ffffff06}
.msg-main{display:flex;gap:8px;align-items:center}.msg-main input{flex:1}
.msg-when{margin-top:8px}.msg-when summary{cursor:pointer;font-size:11px;color:var(--muted);user-select:none}
.msg-when .day-picker{margin:10px 0}
/* Prévia da grade */
.grade-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.grade-list li{display:flex;align-items:center;gap:14px;padding:10px;border:1px solid var(--line);border-radius:14px;background:#ffffff05}
.grade-n{width:28px;height:28px;border-radius:50%;background:#e1b75422;color:var(--orange);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:12px;flex-shrink:0}
.grade-thumb{width:88px;aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:#0a0b0d;flex-shrink:0}.grade-thumb img,.grade-thumb video{width:100%;height:100%;object-fit:cover;display:block}
.grade-info{min-width:0}.grade-info strong{display:block;font-size:13px;overflow-wrap:anywhere}.grade-info small{font-size:11px;color:var(--muted)}
.tl-wrap{overflow-x:auto;padding-bottom:6px}
.tl{display:grid;grid-template-columns:minmax(110px,190px) repeat(48,minmax(11px,1fr));gap:3px;align-items:center;min-width:760px}
.tl-hour{font-size:10px;color:var(--muted);padding-bottom:4px}
.tl-name{font-size:11px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:8px}
.tl-cell{height:20px;border-radius:4px;background:#ffffff0d;border:0;padding:0;cursor:pointer}
.tl-cell.on{background:#e1b754;opacity:calc(.45 + var(--w,1) * .11)}
.tl-cell:hover{outline:1px solid #ffffff88}.tl-cell.sel{outline:2px solid #fff;outline-offset:1px}
/* Comunicado na tela */
.tv-aviso{position:absolute;inset:0;z-index:12;display:flex;align-items:center;justify-content:center;padding:4vw;text-align:center;color:#fff;background:linear-gradient(135deg,var(--av1),var(--av2));animation:avisoIn .35s ease-out}
.tv-aviso[hidden]{display:none}
.tv-aviso.color-urgente{--av1:#a3160d;--av2:#e5352a}.tv-aviso.color-promo{--av1:#c59423;--av2:#e3bd63}.tv-aviso.color-info{--av1:#143a7a;--av2:#2f6fd6}.tv-aviso.color-ok{--av1:#12552b;--av2:#2fae5f}
.tv-aviso-card{max-width:90%;display:flex;flex-direction:column;align-items:center;gap:2vw}
.tv-aviso-icon{font-size:clamp(60px,9vw,180px);animation:avisoPulse 1.3s ease-in-out infinite}
.tv-aviso h2{font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:clamp(34px,5vw,100px);font-weight:800;letter-spacing:-1px;text-transform:uppercase;opacity:.92;margin:0}
.tv-aviso p{font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:clamp(44px,8vw,170px);font-weight:800;line-height:1.05;margin:0;text-shadow:0 6px 30px #0006;overflow-wrap:anywhere}
@keyframes avisoIn{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
@keyframes avisoPulse{50%{transform:scale(1.12)}}
@media(prefers-reduced-motion:reduce){.tv-aviso,.tv-aviso-icon{animation:none}}
.preset-row{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.preset-row .small-link{border:1px solid var(--line);border-radius:999px;padding:5px 10px}

/* Logotipo flutuando de leve (só transform: leve para TVs e TV boxes fracos) */
@keyframes logoFloat{0%,100%{transform:translate3d(0,0,0) rotate(-.7deg)}50%{transform:translate3d(0,-9px,0) rotate(.7deg)}}
@keyframes logoFloatSoft{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(0,-4px,0)}}
@keyframes logoGlow{0%,100%{opacity:.35;transform:scale(.9)}50%{opacity:.7;transform:scale(1.08)}}
.tv-corner-logo{animation:logoFloat 6.5s ease-in-out infinite;will-change:transform;filter:drop-shadow(0 8px 18px #000b) drop-shadow(0 0 14px #e1b75444)}
.tv-mock-logo,.auth-logo img{animation:logoFloat 7s ease-in-out infinite;will-change:transform}
.app-header .brand-logo{animation:logoFloatSoft 7s ease-in-out infinite;will-change:transform}
@media(prefers-reduced-motion:reduce){.tv-corner-logo,.tv-mock-logo,.auth-logo img,.app-header .brand-logo{animation:none}}
/* Perfil Gerente: sem usuários nem chaves */
.role-gerente [data-tab="users"], .role-gerente [data-ia-setup] { display: none !important; }
.tv-device-row select { max-width: 190px; }

/* Datas comemorativas */
.date-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.date-chips .chip { border: 1px solid var(--line, #3a3a3a); background: transparent; color: inherit; border-radius: 999px; padding: 5px 11px; font-size: 12px; cursor: pointer; }
.date-chips .chip:hover { border-color: var(--accent, #e8a33d); }
.campaigns { margin: 18px 0; }
.campaign-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.campaign { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line, #333); border-radius: 12px; }
.campaign p { margin: 2px 0 0; font-size: 12px; opacity: .7; }

/* Música embutida na TV */
.tv-music-frame { position: fixed; left: 0; bottom: 0; width: 240px; height: 240px; border: 0; opacity: .02; pointer-events: none; z-index: -1; }
body.embed .app-header, body.embed .player-heading, body.embed .player-info, body.embed .player-bottom, body.embed .player-help, body.embed .app-footer, body.embed #vinyl-art, body.embed .youtube-caption { display: none !important; }
body.embed, body.embed .player-main, body.embed .player-stage, body.embed .player-media { margin: 0; padding: 0; background: #000; min-height: 0; }

.ia-img { display: grid; gap: 8px; margin-top: 10px; }
.locutor label { display: block; margin: 8px 0; }

/* Quadro "Nas telas agora" compacto */
.devices-card { padding: 14px 16px; }
.devices-card .section-top { margin-bottom: 4px; }
.devices-card .tv-device-row.compact { padding: 7px 0; }
.devices-card .tv-device-row.compact strong { font-size: 13px; }
.devices-card .tv-device-row.compact p { font-size: 12px; margin: 1px 0 0; }
.devices-off { margin-top: 6px; }
.devices-off summary { cursor: pointer; font-size: 12px; opacity: .7; padding: 6px 0; }

.tv-music-opt { display: flex; align-items: center; gap: 8px; justify-content: center; margin: 4px 0 10px; font-size: 14px; opacity: .9; }

/* Faixa compacta: relógio e clima em linha, ocupando bem menos altura */
.tv-stage{--tk-h:52px}
.tv-stage[data-ticker-size=p]{--tk-h:40px}.tv-stage[data-ticker-size=g]{--tk-h:76px}
.tv-ticker{border-top-width:2px}.tv-ticker.pos-top{border-bottom-width:2px}
.tv-ticker .tv-ticker-info{gap:18px;padding:0 20px}
.tv-ticker .tv-clock{flex-direction:row;align-items:baseline;gap:8px}
.tv-ticker .tv-clock strong{font-size:26px;letter-spacing:0}
.tv-ticker .tv-clock small{font-size:11px;margin-top:0;white-space:nowrap}
.tv-ticker .tv-weather{gap:7px;white-space:nowrap}
.tv-ticker .tv-weather .wx-icon{font-size:22px;line-height:1}
.tv-ticker .tv-weather strong{font-size:22px}
.tv-ticker .tv-weather small{font-size:11px;max-width:none}
.tv-ticker .tv-ticker-message span{font-size:24px}
.tv-ticker.size-p .tv-ticker-info{gap:12px;padding:0 14px}
.tv-ticker.size-p .tv-clock strong{font-size:19px}.tv-ticker.size-p .tv-clock small{font-size:9px}
.tv-ticker.size-p .tv-weather strong{font-size:17px}.tv-ticker.size-p .tv-weather .wx-icon{font-size:17px}.tv-ticker.size-p .tv-weather small{font-size:9px}
.tv-ticker.size-p .tv-ticker-message span{font-size:17px}
.tv-ticker.size-g .tv-ticker-info{gap:26px;padding:0 28px}
.tv-ticker.size-g .tv-clock strong{font-size:38px}.tv-ticker.size-g .tv-clock small{font-size:13px}
.tv-ticker.size-g .tv-weather strong{font-size:34px}.tv-ticker.size-g .tv-weather .wx-icon{font-size:34px}.tv-ticker.size-g .tv-weather small{font-size:13px}
.tv-ticker.size-g .tv-ticker-message span{font-size:38px}

/* Faixa ultra compacta */
.tv-stage{--tk-h:38px}
.tv-stage[data-ticker-size=p]{--tk-h:30px}.tv-stage[data-ticker-size=g]{--tk-h:56px}
.tv-ticker .tv-ticker-info{gap:14px;padding:0 14px}
.tv-ticker .tv-clock strong{font-size:20px}
.tv-ticker .tv-clock small{font-size:10px}
.tv-ticker .tv-weather{gap:5px}.tv-ticker .tv-weather .wx-icon{font-size:17px}.tv-ticker .tv-weather strong{font-size:17px}.tv-ticker .tv-weather small{font-size:10px}
.tv-ticker .wx-label{display:none}
.tv-ticker .tv-ticker-message span{font-size:19px}
.tv-ticker.size-p .tv-ticker-info{gap:10px;padding:0 10px}
.tv-ticker.size-p .tv-clock strong{font-size:15px}.tv-ticker.size-p .tv-clock small{display:none}
.tv-ticker.size-p .tv-weather strong{font-size:14px}.tv-ticker.size-p .tv-weather .wx-icon{font-size:14px}.tv-ticker.size-p .tv-weather small{display:none}
.tv-ticker.size-p .tv-ticker-message span{font-size:14px}
.tv-ticker.size-g .tv-ticker-info{gap:20px;padding:0 20px}
.tv-ticker.size-g .tv-clock strong{font-size:28px}.tv-ticker.size-g .tv-clock small{font-size:11px}
.tv-ticker.size-g .tv-weather strong{font-size:26px}.tv-ticker.size-g .tv-weather .wx-icon{font-size:26px}.tv-ticker.size-g .tv-weather small{font-size:11px}.tv-ticker.size-g .wx-label{display:inline}
.tv-ticker.size-g .tv-ticker-message span{font-size:28px}

/* Faixa compacta com data e cidade embaixo (letra pequena) */
.tv-stage{--tk-h:46px}
.tv-stage[data-ticker-size=p]{--tk-h:38px}.tv-stage[data-ticker-size=g]{--tk-h:70px}
.tv-ticker .tv-clock{flex-direction:column;align-items:center;gap:0;line-height:1}
.tv-ticker .tv-clock strong{font-size:22px}
.tv-ticker .tv-clock small{display:block;font-size:9px;margin-top:2px;letter-spacing:.8px}
.tv-ticker .wx-text{display:flex;flex-direction:column;line-height:1}
.tv-ticker .wx-text strong{font-size:20px}
.tv-ticker .wx-text small{display:block;font-size:9px;margin-top:2px;letter-spacing:.3px}
.tv-ticker .wx-label{display:inline}
.tv-ticker .tv-weather .wx-icon{font-size:22px}
.tv-ticker.size-p .tv-clock strong{font-size:17px}.tv-ticker.size-p .tv-clock small{display:block;font-size:8px;margin-top:1px}
.tv-ticker.size-p .wx-text strong{font-size:15px}.tv-ticker.size-p .wx-text small{display:block;font-size:8px;margin-top:1px}.tv-ticker.size-p .tv-weather .wx-icon{font-size:17px}
.tv-ticker.size-g .tv-clock strong{font-size:32px}.tv-ticker.size-g .tv-clock small{font-size:12px}
.tv-ticker.size-g .wx-text strong{font-size:30px}.tv-ticker.size-g .wx-text small{font-size:12px}.tv-ticker.size-g .tv-weather .wx-icon{font-size:32px}

/* Meta diária */
.meta-bar { margin: 6px 0 2px; }
.meta-track { height: 6px; border-radius: 999px; background: #ffffff1c; overflow: hidden; }
.meta-track i { display: block; height: 100%; background: #dba833; border-radius: 999px; transition: width .4s; }
.meta-bar small { font-size: 11px; opacity: .75; }

/* Modelos de arte */
.modelos-box { border: 1px dashed #ffffff30; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; display: grid; gap: 8px; }

/* Atalhos (celular) */
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.quick-card.wide { grid-column: 1 / -1; }
.quick-card h3 { margin: 0 0 12px; }
.quick-row { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.quick-btn { flex: 1; min-height: 56px; border-radius: 14px; border: 1px solid #ffffff2a; background: #ffffff0f; color: inherit; font-size: 17px; font-weight: 700; cursor: pointer; padding: 10px 14px; }
.quick-btn:active { transform: scale(.98); background: #ffffff1c; }
.quick-btn.big { background: #dba833; border-color: #dba833; color: #fff; flex: 1.6; }
.quick-vol { min-width: 64px; text-align: center; font-size: 22px; }
.quick-avisos { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (max-width: 700px) { .quick-grid { grid-template-columns: 1fr; } .quick-btn { min-height: 60px; } .tabs { overflow-x: auto; white-space: nowrap; } }

/* Página de avaliação (QR code) */
.aval-body { min-height: 100vh; display: grid; place-items: center; padding: 18px; background: #0e1012; color: #f7f2e5; font-family: Inter,ui-sans-serif,system-ui,sans-serif; }
.aval-card { width: min(440px, 100%); background: #16191c; border: 1px solid #ffffff1c; border-radius: 22px; padding: 26px 22px; text-align: center; }
.aval-logo { width: 150px; height: auto; margin: 0 auto 10px; display: block; }
.aval-card h1 { font-size: 24px; margin: 10px 0 14px; line-height: 1.2; }
.stars { display: flex; justify-content: center; gap: 4px; }
.star { background: none; border: 0; font-size: 52px; line-height: 1; color: #ffffff30; cursor: pointer; padding: 2px 4px; transition: transform .1s, color .1s; }
.star.on { color: #f0b45a; }
.star:active { transform: scale(1.15); }
.star-label { min-height: 22px; margin: 6px 0 14px; font-weight: 700; color: #f0b45a; }
.aval-field { display: block; text-align: left; font-size: 14px; margin-bottom: 12px; }
.aval-field textarea { width: 100%; margin-top: 6px; border-radius: 12px; border: 1px solid #ffffff2a; background: #0e1012; color: inherit; padding: 10px; font: inherit; resize: vertical; box-sizing: border-box; }
.aval-card .primary:disabled { opacity: .45; }
/* QR code na TV */
.tv-qr { position: absolute; left: 2vw; bottom: calc(var(--tk-h) + 14px); z-index: 5; background: #fff; color: #111; border-radius: 12px; padding: 8px 8px 6px; text-align: center; box-shadow: 0 6px 22px #0008; font-family: Inter,ui-sans-serif,system-ui,sans-serif; max-width: 150px; }
.tv-qr[hidden] { display: none; }
.tv-qr canvas { display: block; width: 110px; height: 110px; image-rendering: pixelated; }
.tv-qr span { display: block; margin-top: 4px; font-size: 12px; font-weight: 800; line-height: 1.15; }
.stage-no-ticker .tv-qr { bottom: 14px; }

/* Avaliações no painel */
.aval-summary { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; margin: 12px 0 18px; }
.aval-score { text-align: center; }
.aval-score strong { display: block; font-size: 54px; line-height: 1; }
.aval-score span { color: #f0b45a; font-weight: 700; }
.aval-score small { display: block; opacity: .7; margin-top: 4px; }
.aval-bar { display: grid; grid-template-columns: 30px 1fr 30px; gap: 8px; align-items: center; margin: 5px 0; font-size: 13px; }
.aval-bar b { text-align: right; }
.aval-sub { margin: 4px 0 8px; }
.aval-comment { border-top: 1px solid #ffffff14; padding: 10px 0; }
.aval-comment p { margin: 4px 0; }
.aval-comment small { opacity: .6; }
.aval-stars { color: #f0b45a; letter-spacing: 2px; }
.aval-stars i { font-style: normal; color: #ffffff2a; }
.aval-qr { display: grid; place-items: center; margin: 14px 0; }
.aval-qr canvas { width: 200px; height: 200px; border-radius: 10px; image-rendering: pixelated; }
@media (max-width: 700px) { .aval-summary { grid-template-columns: 1fr; } }

/* Backup */
.backup-actions { display: grid; gap: 6px; }
.backup-restore { display: block; text-align: center; cursor: pointer; padding: 10px; }
.tv-qr canvas { width: clamp(100px, 9vw, 220px); height: clamp(100px, 9vw, 220px); }
.tv-qr { max-width: calc(clamp(100px, 9vw, 220px) + 40px); }
.tv-qr span { font-size: clamp(12px, 1vw, 20px); }
.aval-card h1 { letter-spacing: 0; word-spacing: 0; }

/* Avaliações por dia e turno */
.aval-split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 6px 0 14px; }
.aval-bar2 { display: grid; grid-template-columns: 74px 1fr 34px 28px; gap: 8px; align-items: center; margin: 5px 0; font-size: 13px; }
.aval-bar2 b { text-align: right; }
.aval-bar2 small { opacity: .55; text-align: right; }
.aval-bar2 i.low { background: #e5534b; } .aval-bar2 i.mid { background: #f0b45a; } .aval-bar2 i.high { background: #4cc38a; }
@media (max-width: 700px) { .aval-split { grid-template-columns: 1fr; } }

/* Cardápio na TV */
.tv-menu { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: radial-gradient(circle at 20% 10%, #2a1a12, #0d0e10 70%); color: #f7f2e5; font-family: Inter,ui-sans-serif,system-ui,sans-serif; animation: menuIn .5s ease; }
.tv-menu[hidden] { display: none; }
@keyframes menuIn { from { opacity: 0; } to { opacity: 1; } }
.tv-menu-card { width: min(92vw, 1500px); height: 86vh; display: flex; flex-direction: column; }
.tv-menu-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid #dba833; padding-bottom: 1.6vh; }
.tv-menu-head img { height: clamp(40px, 9vh, 110px); width: auto; }
.tv-menu-head h2 { margin: 0; font-size: clamp(26px, 6vh, 74px); letter-spacing: 2px; text-transform: uppercase; color: #f0b45a; }
#tv-menu-cat { margin: 2.4vh 0 1.4vh; font-size: clamp(28px, 6.4vh, 80px); }
.tv-menu-list { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 5), 1fr); grid-template-columns: repeat(var(--cols, 1), 1fr); column-gap: 4vw; align-content: start; }
.tv-menu-list li { display: grid; grid-template-columns: 1fr auto; gap: 0 1.2vw; align-items: baseline; padding: .6vh 0; border-bottom: 1px dotted #ffffff30; }
.tv-menu-list .nm { font-size: clamp(18px, 3.5vh, 44px); font-weight: 800; }
.tv-menu-list .pr { font-size: clamp(18px, 3.5vh, 44px); font-weight: 800; color: #f0b45a; white-space: nowrap; }
.tv-menu-list .ds { grid-column: 1 / -1; font-size: clamp(12px, 2.1vh, 26px); opacity: .72; }
.tv-menu-list li.hl .nm::before { content: '★ '; color: #dba833; }
.tv-menu-dots { display: flex; gap: 10px; justify-content: center; padding-top: 1.4vh; }
.tv-menu-dots i { width: 12px; height: 12px; border-radius: 50%; background: #ffffff30; }
.tv-menu-dots i.on { background: #dba833; }
.tv-menu { z-index: 3; } .tv-menu-card { height: 78vh; }

/* Cardápio no painel */
.cardapio-cat { margin-bottom: 16px; }
.menu-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid #ffffff14; }
.menu-row.sold-out .menu-info { opacity: .45; text-decoration: line-through; }
.menu-info small { display: block; opacity: .65; }
.menu-price { color: #f0b45a; white-space: nowrap; }
@media (max-width: 700px) { .menu-row { grid-template-columns: 1fr auto; } .menu-row .button-row { grid-column: 1 / -1; flex-wrap: wrap; } }

/* Envio em lote */
.dropzone { border: 2px dashed #ffffff40; border-radius: 16px; padding: 22px 16px; text-align: center; display: grid; gap: 8px; justify-items: center; margin-bottom: 12px; transition: border-color .15s, background .15s; }
.dropzone.over { border-color: #dba833; background: #dba83314; }
.dropzone span { opacity: .7; font-size: 13px; }
.file-btn { cursor: pointer; padding: 10px 14px; border-radius: 12px; display: inline-block; }
.import-list { max-height: 190px; overflow: auto; margin-bottom: 12px; }
.import-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.import-list ul { list-style: none; margin: 0; padding: 0; }
.import-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 5px 0; border-top: 1px solid #ffffff12; font-size: 13px; }
.import-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-progress { height: 8px; background: #ffffff1c; border-radius: 999px; overflow: hidden; margin: 8px 0 4px; }
.import-progress i { display: block; height: 100%; width: 0; background: #dba833; transition: width .3s; }
.tv-menu-list { grid-template-rows: repeat(var(--rows, 5), auto); }
.tv-menu-list li { padding: 1.3vh 0; }
.tv-menu-list .nm, .tv-menu-list .pr { font-size: clamp(20px, 4vh, 52px); }
.tv-menu-list .ds { font-size: clamp(13px, 2.3vh, 28px); }

/* Música tocando na TV: faixa atual + botão no painel flutuante */
.tv-music-now { position: absolute; top: 2vw; right: 2vw; z-index: 7; display: flex; align-items: center; gap: 12px; background: #0d0e10e6; color: #f7f2e5; border: 1px solid #ffffff22; border-radius: 14px; padding: 10px 16px; max-width: 42vw; box-shadow: 0 8px 26px #0008; font-family: Inter,ui-sans-serif,system-ui,sans-serif; opacity: 0; transform: translateY(-8px); transition: opacity .35s, transform .35s; pointer-events: none; }
.tv-music-now[hidden] { display: none; }
.tv-music-now.flash, .tv-hud:not(.quiet) ~ .tv-music-now { opacity: 1; transform: none; }
.tv-music-now .mn-icon { font-size: 26px; color: #f0b45a; }
.tv-music-now strong { display: block; font-size: clamp(14px, 1.5vw, 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 32vw; }
.tv-music-now small { display: block; opacity: .7; font-size: clamp(11px, 1vw, 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 32vw; }
#tv-music-btn.on { border-color: #f0b45a; color: #f0b45a; }

/* QR code centralizado dentro do cartão */
.tv-qr { display: flex; flex-direction: column; align-items: center; text-align: center; }
.tv-qr canvas { margin: 0 auto; }
.tv-qr span { width: 100%; text-align: center; }

/* Faixa tocando: aparece e some junto com os botões da TV (sem ficar fixa) */
.tv-music-now.flash { opacity: 0; transform: translateY(-8px); }
.tv-hud:not(.quiet) ~ .tv-music-now { opacity: 1; transform: none; }

/* Menus que recolhem (coluna da direita) */
details.fold { padding: 0; }
details.fold > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; cursor: pointer; user-select: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary .fold-title { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 8px; }
details.fold > summary .fold-title::before { content: '▸'; display: inline-block; transition: transform .15s; opacity: .7; }
details.fold[open] > summary .fold-title::before { transform: rotate(90deg); }
details.fold > summary:hover { background: #ffffff08; border-radius: 16px; }
.fold-body { padding: 0 18px 16px; }
.fold-body > .section-top:not(:has(button)) { display: none; }
.fold-body > .section-top h3, .fold-body > .section-top > .status-chip, .fold-body > .section-top > .badge { display: none; }
.fold-body > .section-top { justify-content: flex-end; }

/* Cabeçalho: "Sistema de Tv Indoor" em uma linha */
.app-header .brand small { white-space: nowrap; max-width: none; line-height: 1.2; }
@media (max-width: 650px) { .app-header .brand small { max-width: none; letter-spacing: 1.2px; } }
@media (max-width: 400px) { .app-header .brand small { display: none; } }
/* Rodapé centralizado com o logotipo */
.app-footer { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 22px 0 28px; }
.app-footer .footer-logo { width: 110px; height: auto; opacity: .9; }
.app-footer span { letter-spacing: 2.4px; text-transform: uppercase; font-size: 11px; }

/* Gamificação */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-top: 16px; }
.game-card { display: flex; flex-direction: column; gap: 8px; }
.game-card h3 { margin: 4px 0 0; font-size: 18px; }
.game-card p { margin: 0; opacity: .78; font-size: 14px; line-height: 1.5; flex: 1; }
.game-top { display: flex; justify-content: space-between; align-items: center; }
.game-icon { font-size: 34px; line-height: 1; }
.game-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.game-card.picked { border-color: #dba833; box-shadow: 0 0 0 1px #dba83355; }
.game-summary { padding: 14px 18px; margin-top: 4px; }

/* Instagram na TV */
.tv-insta { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: radial-gradient(circle at 80% 10%, #3a1830, #0d0e10 70%); color: #f7f2e5; font-family: Inter,ui-sans-serif,system-ui,sans-serif; animation: menuIn .5s ease; }
.tv-insta[hidden] { display: none; }
.tv-insta-body { width: min(92vw, 1500px); height: 78vh; }
.ig-post { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3vw; height: 100%; align-items: center; }
.ig-media { height: 100%; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 20px 60px #0009; }
.ig-media img, .ig-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-side { display: flex; flex-direction: column; gap: 2vh; }
.ig-side header { display: flex; align-items: center; gap: 1.2vw; font-size: clamp(20px, 4vh, 50px); }
.ig-avatar { width: 1.6em; height: 1.6em; border-radius: 50%; background: linear-gradient(135deg, #e0b44e, #dc2743, #bc1888); display: grid; place-items: center; font-weight: 800; font-size: .7em; }
.ig-cap { margin: 0; font-size: clamp(18px, 3.4vh, 44px); line-height: 1.35; }
.ig-likes { font-size: clamp(20px, 4vh, 50px); font-weight: 800; color: #ff6b81; }
.ig-side footer { font-size: clamp(14px, 2.6vh, 32px); opacity: .85; margin-top: 1vh; }
.ig-rank { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 1.6vh; }
.ig-rank h2 { margin: 0; font-size: clamp(30px, 7vh, 88px); color: #f0b45a; }
.ig-sub { margin: 0 0 1vh; font-size: clamp(14px, 2.6vh, 32px); opacity: .75; }
.ig-rank ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6vh; }
.ig-rank li { display: grid; grid-template-columns: auto auto 1fr; gap: 2vw; align-items: center; background: #ffffff0f; border-radius: 18px; padding: 1.2vh 2vw; }
.ig-medal { font-size: clamp(30px, 6vh, 76px); }
.ig-thumb { width: 12vh; height: 12vh; border-radius: 14px; overflow: hidden; background: #000; }
.ig-thumb img, .ig-thumb video { width: 100%; height: 100%; object-fit: cover; }
.ig-who strong { display: block; font-size: clamp(20px, 4vh, 50px); }
.ig-who small { font-size: clamp(16px, 3vh, 38px); color: #ff6b81; }
.ig-prize { margin: 1vh 0 0; font-size: clamp(18px, 3.4vh, 44px); color: #f0b45a; font-weight: 800; }
.ig-follow { margin: 0; font-size: clamp(14px, 2.6vh, 32px); opacity: .85; }
/* Contagem regressiva "Poste e ganhe" */
.tv-camp { position: absolute; top: 2vw; left: 50%; transform: translateX(-50%); z-index: 8; display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #dc2743, #bc1888); color: #fff; padding: 12px 26px; border-radius: 18px; box-shadow: 0 10px 34px #000a; font-family: Inter,ui-sans-serif,system-ui,sans-serif; max-width: 70vw; }
.tv-camp[hidden] { display: none; }
.tv-camp .camp-ic { font-size: clamp(26px, 4vh, 48px); }
.tv-camp strong { display: block; font-size: clamp(16px, 2.8vh, 36px); line-height: 1.2; }
.tv-camp small { display: block; opacity: .9; font-size: clamp(13px, 2.2vh, 28px); }
.tv-camp b { font-variant-numeric: tabular-nums; font-size: 1.15em; }
@media (max-width: 800px) { .ig-post { grid-template-columns: 1fr; } }

/* Instagram no painel */
.ig-admin-thumb { width: 54px; height: 54px; border-radius: 10px; overflow: hidden; background: #000; flex: none; }
.ig-admin-thumb img, .ig-admin-thumb video { width: 100%; height: 100%; object-fit: cover; }
#main .menu-row:has(.ig-admin-thumb) { grid-template-columns: auto 1fr auto auto; }
.likes-edit { display: flex; align-items: center; gap: 4px; color: #ff6b81; font-weight: 700; }
.likes-edit input { width: 84px; padding: 6px 8px; }
.insta-help { margin-top: 12px; font-size: 13px; }
.insta-help summary { cursor: pointer; font-weight: 700; }
.insta-help ol { padding-left: 20px; line-height: 1.55; }
@media (max-width: 700px) { #main .menu-row:has(.ig-admin-thumb) { grid-template-columns: auto 1fr; } #main .menu-row:has(.ig-admin-thumb) .likes-edit, #main .menu-row:has(.ig-admin-thumb) .button-row { grid-column: 1 / -1; } }

/* Cartão do post: foto quadrada à esquerda, texto alinhado ao centro vertical, sem estourar */
.tv-insta-body { height: 76vh; width: min(90vw, 1400px); }
.ig-post { grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; justify-content: center; }
.ig-media { height: 100%; aspect-ratio: 1 / 1; max-width: 56vw; width: auto; }
.ig-side { min-width: 0; align-self: center; justify-content: center; text-align: left; }
.ig-side header { min-width: 0; }
.ig-side header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-cap { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.ig-likes { margin-top: 1vh; }
@media (max-width: 800px), (max-aspect-ratio: 1/1) { .ig-post { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; } .ig-media { height: 100%; max-width: 100%; margin: 0 auto; } .ig-side { align-items: center; text-align: center; } }
/* O QR do canto não cobre o post nem o cardápio enquanto eles estão na tela */
#tv-insta:not([hidden]) ~ .tv-qr, #tv-menu:not([hidden]) ~ .tv-qr { display: none; }
.ig-side header strong { white-space: normal; overflow-wrap: anywhere; font-size: .85em; }
.ig-side { gap: 2.6vh; }
.ig-side header { font-size: clamp(22px, 4.8vh, 64px); }
.ig-cap { font-size: clamp(20px, 4.2vh, 56px); line-height: 1.3; -webkit-line-clamp: 5; }
.ig-likes { font-size: clamp(22px, 4.8vh, 64px); }
.ig-side footer { font-size: clamp(16px, 3vh, 40px); }
.tv-build { align-self: center; font-size: 11px; opacity: .55; letter-spacing: .5px; padding: 0 8px; font-family: monospace; }
.tv-insta, .tv-menu { padding: 12vh 0 5vh; box-sizing: border-box; }
.tv-stage.has-ticker .tv-insta, .tv-stage.has-ticker .tv-menu { padding-bottom: calc(5vh + var(--tk-h)); }
.tv-insta-body { height: 100%; }
.tv-menu-card { height: 100%; }
.ig-media { max-width: 52vw; }
.ig-post { grid-template-rows: minmax(0, 1fr); min-height: 0; }
.ig-media { min-height: 0; max-height: 100%; }
@media (max-width: 800px), (max-aspect-ratio: 1/1) { .ig-post { grid-template-rows: minmax(0, 1fr) auto; } }
.tv-insta, .tv-menu { grid-template-rows: minmax(0, 1fr); }
.tv-insta-body, .tv-menu-card { min-height: 0; align-self: stretch; }
.tv-stage.camp-on .tv-insta, .tv-stage.camp-on .tv-menu { padding-top: 20vh; }
.tv-stage.camp-on .tv-insta, .tv-stage.camp-on .tv-menu { padding-top: 17vh; }
.tv-insta, .tv-menu { padding-top: 10vh; }
.playlist-cover { position: relative; overflow: hidden; }
.playlist-cover.has-cover .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.playlist-cover.has-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #0008 0%, transparent 35%, #0009 100%); pointer-events: none; }
.playlist-cover .status-chip { z-index: 2; }
.now-playing .cover-img { width: 150px; height: 150px; border-radius: 18px; object-fit: cover; flex: none; box-shadow: 0 10px 30px #0008; }

.player-skip { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.player-skip button { flex: 1 1 auto; min-width: 120px; padding: 12px 14px; }
.player-skip button:disabled { opacity: .4; }
body.embed .player-skip { display: none !important; }
.player-skip button { background: #ffffff12; color: #f7f2e5; border: 1px solid #ffffff2e; border-radius: 12px; font-weight: 700; cursor: pointer; }
.player-skip button:hover:not(:disabled) { background: #ffffff1f; border-color: #dba833; }
.player-skip button[hidden] { display: none; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: 11px; letter-spacing: 1.4px; font-weight: 800; background: #ff3b4e22; color: #ff6b7a; border: 1px solid #ff3b4e55; vertical-align: middle; }
.live-badge b { font-weight: 800; }
.live-badge .live-ico { flex: none; }
.live-badge[data-state="on"] { animation: livePulse 1.6s ease-in-out infinite; }
.live-badge[data-state="on"] .w1 { animation: liveWave 1.4s ease-in-out infinite; }
.live-badge[data-state="on"] .w2 { animation: liveWave 1.4s ease-in-out .3s infinite; }
.live-badge[data-state="retry"], .live-badge[data-state="wait"] { background: #f0b45a22; color: #f0b45a; border-color: #f0b45a55; }
@keyframes livePulse { 0%, 100% { box-shadow: 0 0 0 0 #ff3b4e55; } 50% { box-shadow: 0 0 0 7px #ff3b4e00; } }
@keyframes liveWave { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.vinyl.is-radio::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid #ff3b4e66; animation: radioRing 2s ease-out infinite; pointer-events: none; }
.vinyl { position: relative; }
@keyframes radioRing { from { transform: scale(.96); opacity: .9; } to { transform: scale(1.12); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live-badge, .live-badge .w1, .live-badge .w2, .vinyl.is-radio::after { animation: none !important; } }

/* Original AiOS: logo, atalho de volta ao painel principal e botões do topo */
.brand-logo.aios-logo{width:150px;height:auto}.footer-logo.aios-logo{width:132px;height:auto}
.header-btn.back-aios{background:transparent;border-color:#303741;color:#c9d0d8}.header-btn.back-aios:hover{background:#171b21;color:#f5f1e8}
.panel-dark .header-btn.music,.header-btn.music{background:#171b21;border-color:#303741;color:#f5f1e8;box-shadow:none}
@media(max-width:640px){.brand-logo.aios-logo{width:118px}}
html.embedded .topbar,html.embedded .app-footer,html.embedded .login-note{display:none}
html.embedded body{min-height:0}
html.embedded .tabs{top:0}
.tv-welcome .tv-music-opt{justify-content:flex-start;width:100%;max-width:430px}
.tv-welcome .tv-music-opt input{width:auto;flex:none;margin:0}
