@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--bg:#f5f2ec;--paper:#fffcf7;--ink:#232a26;--muted:#71786f;--line:#e4e4d9;--orange:#cf5625;--green:#34734e;--red:#ac4034;--radius:22px;font-family:'DM Sans',system-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 #df652f88;outline-offset:4px}button{border:0}button[hidden],[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1,h2,h3,.brand{font-family:'Manrope',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:#989b92;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:#b94b1d}.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:#f8ebe5}.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:#e6f0e2;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,#262c27 0,#262c27 2px,#353b34 3px,#262c27 4px);box-shadow:10px 15px 28px #232a261c;border:5px solid #212621;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:#de683b;width:45%;height:45%;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#fff8df;border:4px solid #b75026}.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:#292b24;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:#e9eddf}.device-card h3{margin:18px 0 10px}.device-card>p{font-size:12px;line-height:1.8;color:#65705c}.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:#647158;flex-wrap:wrap}.device-steps span{border-radius:7px;padding:6px 8px;background:#e0e5d3}.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:#e2e9d9;display:flex;align-items:center;justify-content:center;position:relative}.playlist-cover.youtube{background:#f0e4d7}.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:#646d5d;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:#151f1ac0;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 #df652f88}.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:#232a26;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:#171a18;--paper:#202420;--ink:#f2eee4;--muted:#989f91;--line:#343a32;background:var(--bg);color:var(--ink);min-height:100dvh}.player-header{max-width:1200px}.player-header .status-chip{background:#292f28}.player-header .status-chip.online{background:#25392a;color:#a4c493}.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 #101610}.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:#30372c;color:#b9c5aa}.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:#373e33;border-radius:3px;margin-top:24px;overflow:hidden}.player-progress>div{height:100%;background:#df652f;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:#2a3128;color:#b1bd9f;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%),#24352a;border:9px solid #242a26;border-radius:14px;box-shadow:0 13px 25px #232a2615;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:#242a26;bottom:-22px;left:calc(50% - 40px)}.tv-illustration>span{text-align:center;font-size:27px;letter-spacing:5px;font-weight:700;font-family:'Manrope',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:#222b24}.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:#0a0e0bcc;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:#090c0a;border-radius:10px;margin-bottom:15px}
/* Dedicated public TV player */
.tv-body{--bg:#090c0a;--paper:#1c251e;--ink:#f7f2e5;--muted:#a7b19f;--line:#364032;background:var(--bg);color:var(--ink);height:100dvh;overflow:hidden}.tv-stage{width:100%;height:100dvh;position:relative;isolation:isolate;background:#090c0a}.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:#090c0a}.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%,#5f784433,transparent 65%),#101b14f5}.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:#2d3829;color:#becead;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:#1d2a20!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%,#69834c1a,transparent 60%),#101710}.tv-empty .eyebrow{margin:0;color:#a4b393}.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:#b8cda8;background:#243322d9;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:#bac3b3;margin-top:7px;line-height:1.6}.tv-bottombar .secondary{background:#e9eee71f;color:#e5eee1;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:#d9582a;--shadow:0 1px 2px #232a2610,0 8px 24px -12px #232a2630}
body{-webkit-font-smoothing:antialiased}
.topbar{background:#101411;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%,#d9582a33,transparent 60%),#101411;box-shadow:0 22px 40px -22px #101411aa;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 #d9582a}
.playlist-card{transition:transform .18s,box-shadow .18s}
.playlist-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px -16px #232a2660}
.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 #d9582a30}
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%,#d9582a40,transparent 65%),#101411;border-color:#1c221d;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 #d9582a80}
.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:#f2dfd4;color:var(--orange)}
.empty-state{background:radial-gradient(ellipse at 50% 0%,#d9582a12,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}}