/* Jukebox1 — lokale Systemschrift, eine Akzentfarbe, keine Build-Werkzeuge. */
:root{color-scheme:dark;--bg:#101113;--surface:#181a1e;--surface2:#202329;--line:#30343c;--text:#f4f5f7;--muted:#999fa9;--accent:#81a8ff;--button:#5688f4;--danger:#ffaca5;--radius:10px;--chat-size:28px;--qr-size:220px}
*{box-sizing:border-box}html{min-width:280px;scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5;font-size:16px;min-height:100dvh;display:flex;flex-direction:column}button,input,select,textarea{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}a:hover{color:var(--accent)}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface2);color:var(--text);padding:11px 16px;min-height:46px;cursor:pointer;font-weight:600;line-height:1.4;text-align:center}button:hover,.button:hover{background:#2a2e36;color:var(--text);border-color:#535a67}button:disabled{opacity:.45;cursor:not-allowed}button.primary,.button.primary{background:var(--button);color:#fff;border-color:transparent}button.primary:hover,.button.primary:hover{background:#6c98f6}button.quiet{background:transparent}button.danger{color:var(--danger);border-color:#563b3b}button.text-button{border:0;background:none;color:var(--accent);padding:4px 0;font-weight:500;min-height:36px;font-size:13px}button.compact{min-height:40px;padding:8px 12px;font-size:13px}button.icon-button{min-width:48px;font-size:22px;padding:6px 12px}
:focus-visible{outline:3px solid var(--accent);outline-offset:4px}input:not([type=checkbox]):not([type=range]),select,textarea{width:100%;min-width:0;background:#131519;color:var(--text);border:1px solid var(--line);border-radius:8px;padding:13px 14px;min-height:48px}input::placeholder{color:#868d99}input[type=checkbox]{accent-color:var(--button);width:18px;height:18px;flex:0 0 auto;margin:2px 0}input[type=range]{width:100%;accent-color:var(--accent);height:26px;display:block;margin:8px 0}input[readonly]{color:var(--muted)}label{display:block;font-size:14px;font-weight:500;margin-bottom:8px}fieldset{padding:0;margin:0 0 25px;border:0;min-width:0}legend{font-size:16px;font-weight:650;margin-bottom:12px;padding:0}h1,h2,h3,p{margin:0}h1{font-size:36px;line-height:1.13;letter-spacing:-1.1px;font-weight:700;overflow-wrap:anywhere}h2{font-size:19px;line-height:1.35;letter-spacing:-.3px;font-weight:650}h3{font-size:16px;line-height:1.4}p{margin-bottom:14px}p:last-child{margin-bottom:0}hr{border:0;border-top:1px solid var(--line);margin:28px 0}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.subtle{color:var(--muted)}.small{font-size:13px}.eyebrow{font-size:11px;letter-spacing:1.7px;text-transform:uppercase;font-weight:650;color:var(--muted);display:flex;align-items:center;gap:9px}.accent-dot{width:6px;height:6px;border-radius:50%;background:var(--accent);flex-shrink:0}.separator{padding:0 3px;color:#4e5460}.check{display:flex;gap:10px;align-items:flex-start;font-weight:400;margin:12px 0;cursor:pointer;line-height:1.5}.check a{text-decoration:underline;text-underline-offset:3px}.consent{font-size:11px;color:var(--muted);margin-top:18px}.consent input{width:15px;height:15px}.input-action{display:flex;gap:8px;width:100%}.input-action button{white-space:nowrap}.button-row{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.stack{display:flex;flex-direction:column;gap:10px}.stack label{margin:0}.narrow{width:min(100% - 40px,600px);margin:auto}.notice{font-size:14px;color:var(--accent);white-space:pre-wrap;overflow-wrap:anywhere}.notice:empty{display:none}.notice:not(:empty){border-left:2px solid var(--accent);padding:10px 14px;margin:0 0 22px;background:#181e2b}.notice.error{color:var(--danger);border-color:var(--danger);background:#241c1e}.range-value{float:right;color:var(--accent);font-variant-numeric:tabular-nums}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.site-header{display:flex;align-items:center;justify-content:space-between;width:min(100% - 80px,1504px);margin:0 auto;height:96px;flex-shrink:0;gap:20px}.brand{font-size:22px;font-weight:750;letter-spacing:-.8px;display:inline-flex;align-items:center;gap:11px}.brand-mark{display:flex;gap:3px;align-items:flex-end;height:23px;padding:2px 0}.brand-mark i{display:block;width:4px;background:var(--accent);border-radius:2px;height:14px}.brand-mark i:nth-child(2){height:21px}.brand-mark i:nth-child(3){height:10px}.site-header nav{display:flex;gap:26px;font-size:13px;color:#b4b9c3}.site-footer{width:min(100% - 80px,1504px);margin:36px auto 0;padding:26px 0 30px;display:flex;justify-content:space-between;gap:25px;color:#808793;font-size:11px;border-top:1px solid #24272d}.site-footer nav{display:flex;gap:24px;flex-wrap:wrap}.site-footer>span{font-weight:650}.landing{width:min(100% - 40px,790px);margin:auto;flex:1;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:90px 0 115px}.landing h1{font-size:clamp(50px,7vw,90px);line-height:1.05;letter-spacing:-4px;margin:18px 0 25px;font-weight:720}.landing h1 span{color:#a7adb8}.landing-subtitle{font-size:17px;color:#a7adb8;max-width:580px;line-height:1.7;margin-bottom:32px}.create-form{width:100%;max-width:690px}.create-form input[type=text]{padding:16px 18px}.create-form button{padding:15px 22px}.create-form>.small{margin-top:15px}.landing .notice{margin-top:22px}.join-page,.empty-page{padding:85px 0 120px;flex:1;max-width:450px}.join-page h1,.empty-page h1{margin:20px 0}.join-page .stack{margin-top:30px}.join-page .notice{margin-top:24px}.empty-page .button{margin-top:18px}.prose{width:min(100% - 40px,750px);margin:55px auto 70px;flex:1}.prose h1{margin-bottom:30px}.prose h2{margin:30px 0 12px}.prose p,.prose li{color:#b5bcc7;line-height:1.8}.prose a{color:var(--accent);text-decoration:underline}.prose pre{white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--line);padding:16px;border-radius:8px;background:var(--surface)}
.room-shell{width:min(100% - 80px,1504px);margin:20px auto 35px;flex:1}.room-heading{display:flex;justify-content:space-between;gap:24px;margin-bottom:30px;align-items:center}.room-heading h1{font-size:32px;max-width:960px}.room-heading .eyebrow{margin-bottom:10px}.greeting{font-size:13px;margin:9px 0 0}.heading-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}.heading-actions .danger{font-size:12px;min-height:42px}.room-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(310px,370px);gap:34px}.music-column,.tools-column{min-width:0}.tools-column{border-left:1px solid var(--line);padding-left:28px}.tool-tabs{display:flex;gap:2px;overflow-x:auto;border-bottom:1px solid var(--line);margin-bottom:26px;scrollbar-width:thin}.tool-tabs button{border:0;border-radius:0;background:transparent;min-height:45px;font-size:12px;padding:10px 8px;font-weight:550;color:var(--muted);white-space:nowrap}.tool-tabs button[aria-selected=true]{color:var(--text);border-bottom:2px solid var(--accent)}.tool-panel>h2{margin-bottom:16px}.tool-panel>p{font-size:14px}.tool-panel>.settings-form{margin-top:20px}.settings-form>label{margin:20px 0}.settings-form>button{width:100%}.settings-form input[type=number]{margin-top:7px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.section-heading .text-button{flex:0 0 auto}.count-pill{font-size:12px;border:1px solid var(--line);border-radius:20px;min-width:29px;text-align:center;line-height:24px;color:var(--muted)}.empty-state{padding:24px 0;color:var(--muted);font-size:14px}.now-playing{padding:24px 0 20px}.now-playing>.eyebrow{margin-bottom:12px}.track-summary{display:flex;align-items:center;gap:16px}.track-summary>div{min-width:0}.track-summary h2{font-size:24px;overflow-wrap:anywhere}.track-summary p{font-size:13px;margin-top:4px;overflow-wrap:anywhere}.track-summary img{object-fit:cover;border-radius:6px;flex:0 0 auto;width:160px;height:90px}.playback-badge{font-size:9px;letter-spacing:.6px;background:var(--surface2);border-radius:4px;padding:3px 7px;color:#c3c9d3}.progress-line{margin-top:16px}progress{appearance:none;width:100%;height:4px;display:block;border:0;background:#2b3038;border-radius:4px;overflow:hidden}progress::-webkit-progress-bar{background:#2b3038}progress::-webkit-progress-value{background:var(--accent)}progress::-moz-progress-bar{background:var(--accent)}.time-row{display:flex;justify-content:space-between;margin-top:7px;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.queue-section{padding:24px 0;border-top:1px solid var(--line)}.queue-list{list-style:none;padding:0;margin:0;counter-reset:queue}.queue-item{display:flex;gap:14px;align-items:center;border-top:1px solid #272b32;min-height:70px;padding:14px 0;counter-increment:queue}.queue-item:first-child{border-top:0}.queue-number{font-size:13px;color:var(--muted);width:20px;flex-shrink:0;text-align:center;font-variant-numeric:tabular-nums}.queue-info{min-width:0;flex:1}.queue-title{display:block;font-size:14px;font-weight:600;overflow-wrap:anywhere}.queue-meta{display:block;color:var(--muted);font-size:12px;line-height:1.6;margin-top:3px;overflow-wrap:anywhere}.queue-actions{display:flex;gap:4px;flex:0 0 auto}.queue-actions button{padding:4px;min-width:36px;min-height:36px;font-size:14px;background:transparent}.queue-actions button[title='Jetzt spielen']{color:var(--accent)}.song-section{border-top:1px solid var(--line);padding:24px 0}.song-section h2{margin-bottom:17px}.song-section .small{margin-top:10px}.thumbnail-choice{font-size:12px;color:var(--muted)}.history-list{list-style:none;margin:15px 0;padding:0}.history-list li{border-top:1px solid var(--line);padding:10px 0;font-size:12px;color:var(--muted);overflow-wrap:anywhere}summary{color:var(--muted);cursor:pointer;font-size:12px;padding:10px 0}.chat-list{max-height:440px;min-height:100px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:5px;margin-bottom:18px}.chat-message{margin-bottom:18px;font-size:14px}.chat-message .chat-meta{display:flex;align-items:center;gap:8px;margin-bottom:4px;font-size:12px}.chat-message strong{font-weight:650;color:#c5cedd;overflow-wrap:anywhere}.chat-message time{color:#79818f;font-size:10px;white-space:nowrap}.chat-message .chat-body{color:#c4cad4;overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.5}.chat-message .delete-message{margin-left:auto;min-height:26px;width:28px;padding:2px;border:0;background:transparent;color:#838b99}.chat-list:empty{display:none}#chat-form{border-top:1px solid var(--line);padding-top:18px}#chat-form input{font-size:14px}.share-block{border-top:1px solid var(--line);margin-top:30px;padding-top:24px}.share-block h3{margin-bottom:16px}.share-block canvas{display:block;width:min(100%,220px);height:auto;margin:18px auto 25px;image-rendering:pixelated;border-radius:4px}.share-block label{font-size:12px}.share-block input{font-size:12px}.share-block .button-row button{font-size:12px;flex:1}.share-inline{padding:24px 0;margin:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.share-inline h3{margin-bottom:14px}.guest-list{list-style:none;padding:0;margin:16px 0 25px}.guest-list li{border-top:1px solid var(--line);padding:12px 0}.guest-list strong{font-size:14px;overflow-wrap:anywhere}.guest-list .button-row{margin:8px 0 0}.guest-list button{font-size:11px;min-height:34px;padding:5px 8px}.guest-list small{color:var(--muted);font-size:11px;margin-left:9px}.ended-banner{padding:40px;border:1px solid var(--line);border-radius:var(--radius)}.ended-banner h2{margin-bottom:10px}.ended-banner p{color:var(--muted)}
.party-stage{position:relative;background:#08090a;aspect-ratio:16/9;min-height:260px;isolation:isolate;border-radius:var(--radius);overflow:hidden}.youtube-shell,.youtube-shell>div,.youtube-shell iframe{position:absolute;inset:0;width:100%;height:100%;border:0;min-width:200px;min-height:200px}.youtube-shell{z-index:0}.player-placeholder{position:absolute;inset:0;background:#181a1e;z-index:1;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:10px;padding:22px}.player-placeholder h2{font-size:18px}.player-placeholder p{font-size:12px;color:var(--muted);margin:0}.player-placeholder button{margin:8px 0}.record-mark{font-size:38px;color:var(--accent);line-height:1;margin-bottom:6px}.playback-controls{display:flex;gap:16px;justify-content:space-between;align-items:center;margin:16px 0 6px}.transport{display:flex;gap:8px}.transport button{font-size:12px;min-height:40px;padding:10px 14px}.volume-control{width:140px;font-size:10px;color:var(--muted);margin:0}.volume-control input{margin:2px 0}.player-status-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;min-height:32px}.player-status-row .small{font-size:11px}.player-status-row button{font-size:11px}.webcam-layer{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:2;background:#000;pointer-events:auto}.camera-preview{width:100%;aspect-ratio:16/9;object-fit:cover;background:#000;border-radius:8px;margin:8px 0}.party-only{display:none}body.party-mode{overflow:hidden}body.party-mode .party-stage{position:fixed;inset:0;z-index:1000;border-radius:0;width:100%;height:100dvh;aspect-ratio:auto;min-height:200px}body.party-mode .party-only{display:block}.party-stage:fullscreen{width:100vw;height:100dvh;background:#000;border-radius:0}.stage-top{position:absolute;z-index:3;top:0;left:0;right:0;padding:32px 40px;color:white;pointer-events:none;background:linear-gradient(rgba(0,0,0,.75),transparent);text-shadow:0 2px 5px #000}.stage-logo{font-size:20px;font-weight:750;display:block;margin-bottom:14px}.stage-top .eyebrow{color:#e3e5e8;font-size:11px;margin:0 0 4px}.stage-title{font-size:clamp(23px,2.8vw,48px);line-height:1.2;max-width:72vw;overflow-wrap:anywhere;font-weight:650}.stage-top #stage-next-wrap{margin-top:15px;font-size:clamp(16px,1.6vw,26px);max-width:70vw}.stage-top #stage-next{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stage-chat{position:absolute;z-index:3;bottom:45px;left:35px;width:min(64vw,1050px);pointer-events:none;font-size:var(--chat-size);line-height:1.42;text-shadow:0 1px 4px #000,0 1px 9px #000}.stage-chat p{background:rgba(0,0,0,.4);padding:4px 10px;display:table;border-radius:3px;margin:0 0 6px;max-width:100%;overflow-wrap:anywhere;white-space:pre-wrap}.stage-chat strong{color:#a9c4ff;font-weight:750;margin-right:13px}.stage-qr{position:absolute;z-index:3;right:35px;top:50%;transform:translateY(-50%);text-align:center;width:min(var(--qr-size),38vw,70vh);background:rgba(0,0,0,.64);padding:10px;border-radius:8px;color:white;line-height:1.35}.stage-qr canvas{display:block;width:100%;height:auto;background:white;image-rendering:pixelated}.stage-qr strong{display:block;font-size:clamp(13px,1.5vw,23px);margin-top:12px}.party-toolbar{position:absolute;z-index:5;bottom:10px;right:12px;background:rgba(10,12,16,.88);padding:7px;border-radius:8px}.party-toolbar button{background:#22262d}.party-toolbar.hidden-controls{opacity:0;pointer-events:none}.party-toolbar:focus-within{opacity:1;pointer-events:auto}
.guest-page .room-shell{max-width:1100px}.guest-page .room-grid{grid-template-columns:minmax(0,1fr) minmax(300px,360px)}.guest-page .now-playing{padding-top:0}.guest-page .chat-list{max-height:600px}.guest-page .track-summary h2{font-size:26px}
@media(min-width:1700px){.room-grid{grid-template-columns:minmax(0,1fr) 390px}.party-stage{min-height:440px}}
@media(max-width:1100px){.site-header,.site-footer,.room-shell{width:calc(100% - 48px)}.room-grid{grid-template-columns:minmax(0,1fr) 310px;gap:22px}.tools-column{padding-left:20px}.room-heading h1{font-size:28px}.heading-actions{max-width:260px;gap:8px}.queue-item{flex-wrap:wrap}.queue-info{flex-basis:calc(100% - 40px)}.queue-actions{margin-left:34px}.tool-tabs button{font-size:11px;padding:10px 6px}.playback-controls{align-items:flex-start}.volume-control{width:95px}.transport button{padding:8px 10px}.input-action button{padding:11px 13px}.track-summary img{width:120px;height:70px}}
@media(max-width:820px){.room-grid,.guest-page .room-grid{grid-template-columns:minmax(0,1fr)}.tools-column{border-left:0;padding-left:0;border-top:1px solid var(--line);padding-top:18px}.tool-tabs{position:sticky;top:0;z-index:10;background:var(--bg);margin-bottom:22px}.tool-tabs button{font-size:13px;flex:1;padding:12px}.chat-list,.guest-page .chat-list{max-height:380px}.queue-item{flex-wrap:nowrap}.queue-info{flex-basis:auto}.queue-actions{margin-left:0}.room-heading{align-items:flex-start}.heading-actions{max-width:230px}.party-stage{min-height:260px}.share-block canvas{margin-left:0}.tool-panel{max-width:100%}.settings-form{max-width:550px}.guest-page .music-column{display:flex;flex-direction:column}.guest-page .now-playing{order:0}.guest-page .queue-section{order:1}.guest-page .song-section{order:2}.guest-page .thumbnail-choice{order:3}}
@media(max-width:540px){.site-header,.site-footer,.room-shell{width:calc(100% - 36px)}.site-header{height:78px}.brand{font-size:21px}.site-header nav{gap:17px;font-size:11px}.site-footer{display:block;padding:24px 0}.site-footer nav{gap:12px 18px;margin-top:14px}.landing{width:calc(100% - 40px);padding:50px 0 80px;justify-content:flex-start}.landing h1{font-size:58px;letter-spacing:-2.9px;margin:20px 0 25px}.landing-subtitle{font-size:15px;max-width:330px}.create-form .input-action{flex-direction:column}.create-form button{width:100%;justify-content:space-between}.create-form input[type=text]{font-size:15px}.create-form .small{font-size:11px}.consent{font-size:10px;line-height:1.6}.join-page,.empty-page{padding-top:55px}.room-shell{margin-top:15px}.room-heading{display:block;margin-bottom:25px}.room-heading h1{font-size:28px}.heading-actions{max-width:none;justify-content:flex-start;margin-top:18px}.heading-actions .primary{font-size:13px;flex:1}.heading-actions .danger{padding:10px;font-size:10px}.room-heading .eyebrow{font-size:10px}.party-stage{min-height:240px;aspect-ratio:4/3}.player-placeholder{gap:8px;padding:16px}.player-placeholder h2{font-size:15px}.player-placeholder p{font-size:11px}.record-mark{font-size:29px}.player-placeholder button{font-size:13px;min-height:40px}.playback-controls{flex-wrap:wrap;gap:8px}.volume-control{width:100%;display:flex;align-items:center;gap:12px;font-size:11px}.volume-control input{width:130px}.transport{width:100%}.transport button{flex:1;min-height:44px;font-size:13px}.queue-item{flex-wrap:wrap;gap:10px}.queue-info{flex-basis:calc(100% - 35px)}.queue-actions{margin-left:30px;width:calc(100% - 30px)}.queue-actions button{min-height:40px;min-width:44px}.queue-title{font-size:14px}.queue-section{padding:21px 0}.song-section .input-action{flex-wrap:wrap}.song-section .input-action button{width:100%;min-height:46px}.now-playing{padding:22px 0}.track-summary h2,.guest-page .track-summary h2{font-size:21px}.track-summary{gap:12px;align-items:flex-start}.track-summary img{width:120px;height:70px}.tool-tabs button{font-size:12px;padding:11px 8px}.stage-top{padding:18px 16px}.stage-logo{font-size:16px;margin-bottom:12px}.stage-title{font-size:22px;max-width:calc(100vw - 32px)}.stage-top #stage-next-wrap{font-size:14px;max-width:85vw}.stage-qr{right:14px;top:43%;width:min(var(--qr-size),36vw,38vh);padding:5px}.stage-qr strong{font-size:11px;margin-top:6px}.stage-chat{left:12px;bottom:100px;width:calc(100% - 24px);font-size:min(var(--chat-size),7vw);max-height:36vh;overflow:hidden}.stage-chat p{line-height:1.35}.party-toolbar{left:8px;right:8px;display:grid!important;grid-template-columns:1fr 1fr;gap:4px;bottom:8px}.party-toolbar button{font-size:11px;min-height:37px;padding:6px}.ended-banner{padding:24px}.field-pair{gap:10px}.guest-page .queue-item{flex-wrap:nowrap}.guest-page .queue-info{flex-basis:auto}}
@media(max-height:500px) and (orientation:landscape){body.party-mode .stage-top{padding:14px 20px}.stage-logo{display:none!important}.stage-top #stage-next-wrap{margin-top:6px}.stage-title{font-size:24px}.stage-qr{max-width:35vh;right:20px}.stage-qr strong{font-size:10px}.stage-chat{font-size:min(var(--chat-size),22px);max-height:33vh;overflow:hidden;bottom:45px;left:15px}.party-toolbar button{font-size:11px;min-height:30px}.party-toolbar{bottom:5px;right:10px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}

/* UX- und Wiedergabe-Verbesserungen */
.song-section-prominent{border:2px solid var(--accent);border-radius:12px;padding:22px;margin:0 0 26px;background:color-mix(in srgb,var(--accent) 6%,transparent)}
.song-section-prominent h2{font-size:clamp(22px,3vw,34px);margin:2px 0 7px}.song-section-prominent .input-action{margin-top:16px}.song-section-prominent input{min-height:58px;font-size:17px}.song-section-prominent button{min-height:58px;font-size:15px}.queue-thumb{width:96px;height:54px;object-fit:cover;border-radius:7px;flex:0 0 auto;background:#111}.guest-page .queue-thumb{width:112px;height:63px}.queue-show-all{display:block;margin:14px auto 0;font-size:14px;padding:10px 14px}.youtube-deck{position:absolute!important;inset:0;width:100%;height:100%;opacity:0;pointer-events:none}.youtube-deck.active-deck{opacity:1;pointer-events:auto}.youtube-deck.standby-deck{opacity:0;pointer-events:none}.webcam-layer{display:block!important;opacity:0;visibility:hidden;transition:opacity .85s ease,visibility 0s linear .85s}.webcam-layer.webcam-visible{opacity:1;visibility:visible;transition:opacity .85s ease,visibility 0s}.webcam-layer[hidden]{display:block!important}.stage-qr[data-position="right-middle"]{right:35px;top:50%;bottom:auto;transform:translateY(-50%)}.stage-qr[data-position="right-bottom"]{right:35px;top:auto;bottom:35px;transform:none}.track-summary img{object-fit:cover;border-radius:8px}
@media(max-width:820px){.guest-page .music-column{display:flex;flex-direction:column}.guest-page .song-section-prominent{order:0}.guest-page .now-playing{order:1}.guest-page .queue-section{order:2}.song-section-prominent{padding:18px}.queue-thumb,.guest-page .queue-thumb{width:88px;height:50px}}
@media(max-width:540px){.song-section-prominent input,.song-section-prominent button{min-height:52px}.song-section-prominent h2{font-size:23px}.queue-thumb,.guest-page .queue-thumb{width:78px;height:44px}.stage-qr[data-position="right-bottom"]{right:14px;bottom:90px}}

/* Spotify-/Fernadmin-Erweiterungen */
.footer-admin-link{border:0;background:none;color:inherit;padding:0;min-height:0;font:inherit;font-weight:400;border-radius:0;display:inline;cursor:pointer}.footer-admin-link:hover{background:none;border:0;color:var(--accent)}
.admin-pin-dialog{width:min(calc(100% - 36px),430px);padding:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);box-shadow:0 24px 70px rgba(0,0,0,.55)}.admin-pin-dialog::backdrop{background:rgba(0,0,0,.72);backdrop-filter:blur(3px)}.admin-pin-dialog form{padding:24px}.admin-pin-dialog .dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:12px}.admin-pin-dialog .dialog-heading .eyebrow{margin-bottom:7px}.admin-pin-dialog .dialog-close{border:0;background:transparent;min-width:38px;min-height:38px;padding:0;font-size:24px;color:var(--muted)}.admin-pin-dialog label{margin-top:20px}.admin-pin-dialog input{font-size:24px;letter-spacing:.32em;text-align:center;font-variant-numeric:tabular-nums}.admin-pin-dialog>form>button.primary{width:100%;margin-top:16px}.admin-pin-dialog .notice{margin-top:12px;margin-bottom:0}
.admin-pin-box{margin:24px 0 0;border:1px solid var(--line);border-radius:9px;background:var(--surface)}.admin-pin-box>summary{padding:14px 16px;color:var(--text);font-weight:650}.admin-pin-content{padding:0 16px 16px}.admin-pin-value{font-size:30px;letter-spacing:.18em;font-weight:750;font-variant-numeric:tabular-nums;color:var(--accent);padding:10px 0 12px}
@media(max-width:540px){.admin-pin-dialog form{padding:20px}.admin-pin-dialog input{font-size:22px}.admin-pin-value{font-size:27px}}

/* V4: klare Raumansichten, bild+ton Crossfade und viewportfester Chat */
.room-page .room-shell{width:min(100% - 56px,1280px);margin:10px auto 34px}
.room-page .room-heading{margin:8px 0 22px}
.room-page .room-heading h1{font-size:clamp(27px,3vw,38px)}
.room-workspace{min-width:0}
.room-view[hidden]{display:none!important}
.room-card{background:linear-gradient(180deg,#191b20 0%,#17191d 100%);border:1px solid #2d3139;border-radius:14px;box-shadow:0 12px 32px rgba(0,0,0,.12)}

.room-view-tabs{position:sticky;top:8px;z-index:30;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 20px;padding:8px;background:rgba(16,17,19,.9);border:1px solid rgba(48,52,60,.88);border-radius:15px;backdrop-filter:blur(14px);box-shadow:0 12px 35px rgba(0,0,0,.2)}
.admin-page .room-view-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
.room-view-tab{position:relative;justify-content:flex-start;min-width:0;min-height:68px;padding:10px 14px;border-radius:11px;border:1px solid transparent;background:transparent;color:var(--muted);gap:12px;text-align:left}
.room-view-tab:hover{background:#202329;border-color:#303640;color:var(--text)}
.room-view-tab[aria-selected=true]{background:#242a35;border-color:#46618e;color:var(--text);box-shadow:inset 0 0 0 1px rgba(129,168,255,.12)}
.room-tab-icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:10px;background:#111318;border:1px solid #303640;color:#b8c9f1;font-size:21px;font-weight:700}
.room-view-tab[aria-selected=true] .room-tab-icon{background:#2b3a57;border-color:#526d9d;color:#fff}
.room-tab-copy{display:flex;flex-direction:column;min-width:0;line-height:1.2}
.room-tab-copy strong{font-size:15px;font-weight:700}
.room-tab-copy small{margin-top:5px;font-size:11px;color:#89919e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tab-badge{position:absolute;right:10px;top:9px;min-width:21px;height:21px;padding:0 6px;border-radius:999px;background:var(--button);color:#fff;font-size:10px;font-weight:800;line-height:21px;text-align:center;font-variant-numeric:tabular-nums}

.music-view{display:grid;gap:18px}
.music-dashboard-top{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(340px,.92fr);gap:18px;align-items:stretch}
.song-section-prominent,.room-page .song-section{margin:0;padding:22px;border:1px solid #35425a;border-radius:14px;background:linear-gradient(145deg,rgba(86,136,244,.12),rgba(24,26,30,.98) 55%)}
.song-section-prominent h2{font-size:clamp(22px,2.2vw,29px);margin:3px 0 7px}
.song-section-prominent .subtle{max-width:680px}
.song-section-prominent .input-action{margin-top:18px}
.song-section-prominent input{min-height:58px;font-size:16px;background:#101217;border-color:#3a4558}
.song-section-prominent button{min-height:58px;flex:0 0 auto}
.now-playing{padding:22px;border:1px solid #2d3139}
.now-playing .now-heading{margin-bottom:18px}.now-playing .now-heading p{margin:0 0 4px}.now-playing .now-heading h2{font-size:17px}
.track-summary{align-items:center}.track-summary img{width:168px;height:95px;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.track-summary h2{font-size:clamp(20px,2vw,27px);line-height:1.2}.track-summary p{margin-bottom:0}
.progress-line{margin-top:20px}
.player-card{padding:20px}.player-card .card-heading,.control-view-header,.chat-view-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:16px}.card-heading .eyebrow,.control-view-header .eyebrow,.chat-view-header .eyebrow{margin-bottom:4px}.player-card>.player-section{margin:0}.player-card .party-stage{border:1px solid #313640;border-radius:11px}.player-card .playback-controls{margin-bottom:4px}
.queue-section{padding:22px;border-top:1px solid #2d3139}.queue-section>.section-heading{margin-bottom:8px}.queue-section>.section-heading .eyebrow{margin-bottom:4px}.queue-list{margin-top:4px}.queue-item{padding:13px 4px;border-top-color:#292d34;border-radius:8px;transition:background .16s ease}.queue-item:hover{background:#1d2026}.queue-thumb{width:104px;height:59px;border-radius:8px}.guest-page .queue-thumb{width:104px;height:59px}.queue-title{font-size:14px}.queue-meta{font-size:11px}.queue-show-all{margin-top:16px;padding:8px 10px}

/* Chat ist eine eigene Bildschirmansicht: nur die Nachrichten scrollen. */
.room-chat-view{min-width:0}
.chat-workspace{height:min(720px,calc(100dvh - 205px));min-height:440px;max-height:calc(100dvh - 20px);display:flex;flex-direction:column;overflow:hidden;padding:0;background:#15171b}
.chat-view-header{flex:0 0 auto;margin:0;padding:17px 20px;border-bottom:1px solid #2b2f36;background:#191c21}
.chat-view-header h2{font-size:21px}.chat-live-dot{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:#a8afb9;padding:6px 9px;border:1px solid #30353d;border-radius:999px}.chat-live-dot i{width:7px;height:7px;border-radius:50%;background:#7ee787;box-shadow:0 0 0 3px rgba(126,231,135,.09)}
.chat-stream{position:relative;flex:1 1 auto;min-height:0;overflow:hidden;background:linear-gradient(180deg,#14161a,#121417)}
.room-page .chat-list,.guest-page .chat-list{height:100%;max-height:none;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:20px 22px 28px;margin:0;scroll-behavior:smooth}
.chat-message{max-width:900px;margin:0 auto 18px;padding:0 2px;font-size:14px}.chat-message .chat-meta{margin-bottom:5px}.chat-message strong{font-size:13px;color:#d3d9e3}.chat-message time{font-size:10px}.chat-message .chat-body{font-size:15px;line-height:1.55;color:#cbd1da}
.chat-empty{position:absolute;inset:0;display:grid;place-items:center;margin:0;padding:30px;pointer-events:none;text-align:center}.chat-empty[hidden]{display:none!important}
.chat-jump-latest{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);z-index:4;min-height:38px;padding:7px 13px;border-radius:999px;background:#273248;border-color:#4a6088;font-size:12px;box-shadow:0 8px 24px rgba(0,0,0,.35)}
.chat-composer{flex:0 0 auto;margin:0;padding:13px 14px max(13px,env(safe-area-inset-bottom));border-top:1px solid #30343c;background:#1a1d22;box-shadow:0 -10px 28px rgba(0,0,0,.18)}
#chat-form.chat-composer{padding-top:13px}.chat-composer .input-action{gap:9px}.chat-composer input{min-height:52px;font-size:15px;background:#111318;border-color:#353a44}.chat-composer .icon-button{min-width:54px;min-height:52px;border-radius:9px}.chat-composer #chat-muted{margin:8px 4px 0}

/* Admin-Steuerung als eigener, ruhiger Bereich statt zweite unübersichtliche Spalte. */
.control-card{padding:22px;min-height:520px}.control-view-header{margin-bottom:18px}.control-view-header h2{font-size:23px}.control-view-header>p{max-width:380px;text-align:right}
.room-control-view .tool-tabs{position:static;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;overflow:visible;margin:0 0 22px;padding:6px;border:1px solid #2e333c;border-radius:11px;background:#131519}
.room-control-view .tool-tabs button{min-height:47px;border:1px solid transparent;border-radius:8px;padding:9px 12px;font-size:13px;color:#949ba7}
.room-control-view .tool-tabs button:hover{background:#20242a;color:#fff}
.room-control-view .tool-tabs button[aria-selected=true]{border:1px solid #405272;background:#273044;color:#fff}
.control-content{max-width:920px}.control-content .tool-panel{max-width:760px}.control-content .tool-panel>h2{font-size:22px;margin-bottom:8px}.control-content .settings-form{max-width:620px}.control-content .share-block{max-width:620px}.control-content .camera-preview{max-width:620px}

/* Der eingehende YouTube-Player wird unter dem ausblendenden Player sichtbar. */
.youtube-deck{opacity:0;will-change:opacity;transition:opacity .12s linear;background:#000}
.youtube-deck.active-deck{opacity:1}.youtube-deck.standby-deck{opacity:0}
.youtube-deck.crossfade-incoming{opacity:1!important;z-index:1!important}
.youtube-deck.crossfade-outgoing{z-index:2!important}

@media(max-width:900px){
    .room-page .room-shell{width:min(100% - 36px,1280px)}
    .music-dashboard-top{grid-template-columns:1fr}
    .song-request-card{order:0}.now-playing{order:1}
    .control-content .tool-panel{max-width:none}
}
@media(max-width:620px){
    .room-page .site-header{width:calc(100% - 28px);height:72px}.room-page .site-header nav{gap:12px}.room-page .site-header nav a:first-child{display:none}
    .room-page .room-shell{width:calc(100% - 24px);margin-top:6px}
    .room-page .room-heading{margin-bottom:16px}.room-page .room-heading h1{font-size:25px}.room-page .room-heading .greeting{font-size:12px}
    .heading-actions{margin-top:14px;max-width:none}.heading-actions .primary{min-width:0;flex:1}.heading-actions .danger{flex:0 0 auto}
    .room-view-tabs{top:5px;gap:5px;padding:5px;margin-bottom:12px;border-radius:12px}
    .room-view-tab{min-height:56px;padding:7px 8px;gap:7px;justify-content:center}
    .room-tab-icon{width:34px;height:34px;flex-basis:34px;font-size:18px;border-radius:8px}.room-tab-copy strong{font-size:13px}.room-tab-copy small{display:none}.tab-badge{top:4px;right:4px;min-width:18px;height:18px;line-height:18px;font-size:9px;padding:0 5px}
    .music-view{gap:12px}.music-dashboard-top{gap:12px}
    .song-section-prominent,.room-page .song-section,.now-playing,.player-card,.queue-section,.control-card{padding:16px;border-radius:12px}
    .song-section-prominent h2{font-size:21px}.song-section-prominent .input-action{display:grid;grid-template-columns:1fr;margin-top:14px}.song-section-prominent input,.song-section-prominent button{min-height:52px;width:100%}
    .track-summary{align-items:flex-start}.track-summary img{width:112px;height:63px}.track-summary h2{font-size:19px}.now-playing .now-heading h2{font-size:15px}
    .player-card .card-heading{display:block}.player-card .card-heading>p{margin-top:5px}.player-card{padding:12px}.player-card .party-stage{min-height:220px}
    .queue-item{gap:9px;padding:11px 0;flex-wrap:nowrap}.queue-number{display:none}.queue-thumb,.guest-page .queue-thumb{width:80px;height:45px}.queue-info{flex-basis:auto}.queue-actions{margin-left:0}.queue-actions button{min-width:34px;min-height:34px}
    .chat-workspace{min-height:360px;border-radius:12px}.chat-view-header{padding:13px 14px}.chat-view-header h2{font-size:18px}.room-page .chat-list,.guest-page .chat-list{padding:16px 14px 22px}.chat-message{margin-bottom:16px}.chat-message .chat-body{font-size:14px}.chat-composer{padding:10px 10px max(10px,env(safe-area-inset-bottom))}.chat-composer input{min-height:50px}.chat-composer .icon-button{min-width:50px;min-height:50px}
    .control-view-header{display:block}.control-view-header>p{margin-top:5px;text-align:left}.room-control-view .tool-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-bottom:16px}.room-control-view .tool-tabs button{font-size:12px;min-height:43px}
}
@media(max-width:390px){
    .admin-page .room-view-tab{padding:6px 4px;gap:4px}.admin-page .room-tab-icon{width:30px;height:30px;flex-basis:30px}.admin-page .room-tab-copy strong{font-size:11px}
    .track-summary img{width:92px;height:52px}.queue-thumb,.guest-page .queue-thumb{width:70px;height:40px}
}

/* Mobile Warteschlange: Titel dürfen niemals zwischen Thumbnail und Adminbuttons zerquetscht werden. */
@media(max-width:620px){
    .room-page .queue-section{min-width:0;overflow:hidden}
    .room-page .queue-list{display:grid;gap:10px;min-width:0;margin-top:10px}
    .room-page .queue-item{
        display:grid;
        grid-template-columns:80px minmax(0,1fr);
        grid-template-areas:"thumb info" "actions actions";
        column-gap:12px;
        row-gap:10px;
        align-items:start;
        width:100%;
        min-width:0;
        min-height:0;
        padding:12px;
        border:1px solid #2d323a;
        border-radius:11px;
        background:#15181d;
        overflow:hidden;
    }
    .room-page .queue-item:first-child{border-top:1px solid #2d323a}
    .room-page .queue-item:hover{background:#191d23}
    .room-page .queue-number{display:none}
    .room-page .queue-thumb,.room-page.guest-page .queue-thumb{
        grid-area:thumb;
        width:80px;
        height:45px;
        max-width:80px;
        object-fit:cover;
        border-radius:8px;
        align-self:start;
    }
    .room-page .queue-info{
        grid-area:info;
        min-width:0;
        width:100%;
        max-width:100%;
        flex:none;
        flex-basis:auto;
        align-self:center;
    }
    .room-page .queue-title{
        display:block;
        width:100%;
        min-width:0;
        font-size:14px;
        line-height:1.35;
        white-space:normal;
        word-break:normal;
        overflow-wrap:break-word;
    }
    .room-page .queue-meta{
        display:block;
        width:100%;
        margin-top:4px;
        font-size:11px;
        line-height:1.4;
        white-space:normal;
        word-break:normal;
        overflow-wrap:break-word;
    }
    .room-page .queue-actions{
        grid-area:actions;
        display:grid;
        grid-template-columns:repeat(4,minmax(0,1fr));
        gap:6px;
        width:100%;
        min-width:0;
        margin:0;
    }
    .room-page .queue-actions:empty{display:none}
    .room-page .queue-actions button{
        width:100%;
        min-width:0;
        min-height:40px;
        padding:6px;
    }
    .guest-page .queue-item{
        grid-template-areas:"thumb info";
        row-gap:0;
    }
}
@media(max-width:360px){
    .room-page .queue-item{grid-template-columns:70px minmax(0,1fr);column-gap:10px;padding:10px}
    .room-page .queue-thumb,.room-page.guest-page .queue-thumb{width:70px;height:40px;max-width:70px}
    .room-page .queue-title{font-size:13px}
}

/* Vollbild: kurze Wunsch-Einblendung. Bewusst der einzige Status-Layer über der Bühne. */
.party-add-toast{position:absolute;z-index:8;top:max(22px,env(safe-area-inset-top));right:max(22px,env(safe-area-inset-right));width:min(430px,calc(100% - 44px));padding:14px 17px;border:1px solid rgba(255,255,255,.18);border-radius:12px;background:rgba(12,14,18,.88);box-shadow:0 16px 42px rgba(0,0,0,.38);color:#fff;pointer-events:none;opacity:0;transform:translateY(-10px) scale(.985);transition:opacity .28s ease,transform .28s ease;backdrop-filter:blur(12px);text-shadow:none}
.party-add-toast[hidden]{display:none!important}
.party-add-toast.is-visible{opacity:1;transform:translateY(0) scale(1)}
.party-add-toast .party-add-label{display:block;margin-bottom:5px;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#9ebaf6}
.party-add-toast strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(15px,1.45vw,22px);line-height:1.25}
.party-add-toast #party-add-by{display:block;margin-top:5px;font-size:clamp(11px,1vw,14px);color:#c1c7d0}
@media(max-width:620px){.party-add-toast{top:max(12px,env(safe-area-inset-top));right:12px;width:min(78vw,360px);padding:11px 13px;border-radius:10px}.party-add-toast strong{font-size:15px}.party-add-toast #party-add-by{font-size:11px}}


/* Party-Vollbild: YouTube-IFrames sind reine Ausgabe. Klicks/Taps dürfen keine
   YouTube-Bedienelemente oder Fortschrittsleisten einblenden. */
body.party-mode .youtube-deck,
.party-stage:fullscreen .youtube-deck,
body.party-mode .youtube-shell iframe,
.party-stage:fullscreen .youtube-shell iframe {
    pointer-events:none!important;
}
