:root{--bg:#080b12;--panel:#101622cc;--panel2:#151d2b;--line:#263247;--text:#eef4ff;--muted:#8fa1bc;--accent:#6ee7ff;--accent2:#8b5cf6;--danger:#ff6b7a;--ok:#65e6a4;--shadow:0 22px 80px #0007}*{box-sizing:border-box}html{color-scheme:dark}body{margin:0;background:radial-gradient(1000px 600px at 18% -10%,#153052 0,transparent 60%),radial-gradient(800px 600px at 100% 10%,#2f1b4e 0,transparent 55%),var(--bg);color:var(--text);font:15px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-height:100vh}button,input,textarea{font:inherit}.shell{width:min(1440px,calc(100% - 28px));min-height:100vh;margin:auto;display:flex;flex-direction:column}.glass,.panel{background:linear-gradient(180deg,#141b29e8,#0e1420e8);border:1px solid #ffffff12;box-shadow:var(--shadow);backdrop-filter:blur(18px)}.topbar{height:66px;position:sticky;top:12px;z-index:30;margin-top:12px;border-radius:18px;display:flex;align-items:center;justify-content:space-between;padding:0 18px}.brand{display:flex;gap:11px;align-items:center;color:var(--text);text-decoration:none}.brand-copy{display:flex;min-width:0;flex-direction:column;line-height:1.1}.brand-copy strong{font-size:18px;font-weight:800}.nav-path{display:block;max-width:min(52vw,620px);margin-top:4px;color:var(--muted);font-size:11px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brandmark{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:linear-gradient(135deg,var(--accent2),var(--accent));color:#071019;box-shadow:0 0 35px #6ee7ff44}.top-actions,.inline{display:flex;gap:8px;align-items:center}.ghost,.button{border:1px solid var(--line);background:#151d2a;color:var(--text);padding:9px 13px;border-radius:11px;cursor:pointer;text-decoration:none}.ghost:hover,.button:hover{border-color:#466283;background:#1a2637}.ghost.active{border-color:#6ee7ff66;background:#1a2a3b;box-shadow:inset 0 0 0 1px #6ee7ff18;color:#fff}.button{background:linear-gradient(135deg,#25324b,#1a2538)}main{flex:1;padding:38px 0 70px}.hero{display:flex;justify-content:space-between;align-items:center;padding:26px 6px 30px}.hero h1{font-size:clamp(34px,5vw,68px);line-height:.98;margin:8px 0 14px;letter-spacing:-.055em;max-width:850px}.hero p{color:var(--muted);font-size:18px;max-width:700px}.eyebrow{color:var(--accent);font-size:12px;letter-spacing:.24em;font-weight:800}.hero-orb{width:120px;height:120px;border-radius:36px;background:linear-gradient(135deg,#8b5cf6aa,#6ee7ffaa);display:grid;place-items:center;font-size:56px;transform:rotate(8deg);box-shadow:0 0 80px #6ee7ff3d}.shortcut-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:18px}.shortcut{display:block;padding:18px;border:1px solid #ffffff10;background:#111925;border-radius:18px;color:var(--text);text-decoration:none;transition:.2s}.shortcut:hover{transform:translateY(-2px);border-color:#6ee7ff55;background:#172234}.shortcut-icon{font-size:27px;margin-bottom:15px}.shortcut span{display:block;color:var(--muted);font-size:12px;margin-top:4px}.grid2{display:grid;grid-template-columns:1.4fr .8fr;gap:18px}.panel{border-radius:20px;padding:20px}.panel-head,.browser-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px}.panel h2{margin:0;font-size:18px}.muted{color:var(--muted);font-size:12px}.rss-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.rss-feed{border:1px solid var(--line);border-radius:15px;padding:13px;background:#0c111a}.rss-feed h3{font-size:13px;margin:0 0 9px;color:var(--accent)}.rss-feed a{display:block;color:#d7e5fa;text-decoration:none;padding:7px 0;border-top:1px solid #ffffff0b;font-size:13px}.rss-feed a:hover{color:#fff}.browser{margin-top:18px}.crumbs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:7px}.crumbs button{border:0;background:transparent;color:var(--muted);cursor:pointer;padding:0}.crumbs button:hover{color:var(--accent)}.file-list{display:grid;gap:7px}.file-row{display:grid;grid-template-columns:minmax(0,1fr) 100px 160px auto;align-items:center;gap:12px;padding:11px 12px;border:1px solid #ffffff0b;border-radius:12px;background:#0d131d}.file-row:hover{background:#111a27;border-color:#ffffff18}.file-main{display:flex;align-items:center;gap:10px;min-width:0}.file-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#e8f2ff;text-decoration:none;cursor:pointer}.file-meta{color:var(--muted);font-size:12px}.row-actions{display:flex;gap:5px}.icon-btn{border:1px solid #ffffff0d;background:#151d2a;color:#bac9dc;border-radius:9px;padding:6px 8px;cursor:pointer}.icon-btn:hover{color:#fff;border-color:#47617e}.danger:hover{color:var(--danger);border-color:#ff6b7a66}.gallery{columns:5 220px;column-gap:13px}.gallery-item{break-inside:avoid;margin:0 0 13px;position:relative;border-radius:16px;overflow:hidden;background:#0b1018;border:1px solid #ffffff10}.gallery-item img{display:block;width:100%;height:auto}.gallery-caption{padding:9px 11px;color:var(--muted);font-size:12px}.music-player{display:grid;grid-template-columns:320px 1fr;gap:18px}.now-playing{border-radius:22px;background:linear-gradient(145deg,#18243a,#241b39);padding:24px;min-height:270px;display:flex;flex-direction:column;justify-content:flex-end}.disc{width:120px;height:120px;border-radius:50%;background:radial-gradient(circle,#0c1320 10%,#5c7ca5 11%,#16243a 13%,#070b12 55%,#364d68 57%,#0b1018 61%);margin-bottom:24px;box-shadow:0 10px 35px #0008}.music-list{display:grid;gap:7px}.track{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:11px;cursor:pointer}.track:hover{background:#172132}.hidden{display:none!important}.modal{position:fixed;inset:0;background:#02040acb;z-index:100;display:grid;place-items:center;padding:20px}.modal-card{width:min(760px,100%);max-height:90vh;overflow:auto;border-radius:22px;padding:24px;position:relative}.modal-close{position:absolute;right:12px;top:10px;border:0;background:transparent;color:#a8b8cd;font-size:28px;cursor:pointer}.modal h2{margin-top:0}.form-grid{display:grid;gap:11px}.form-grid input,.form-grid textarea{width:100%;border:1px solid var(--line);background:#09101a;color:var(--text);padding:11px 12px;border-radius:11px;outline:none}.form-grid input:focus,.form-grid textarea:focus{border-color:#6ee7ff77}.form-grid textarea{min-height:340px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.toast{position:fixed;right:22px;bottom:22px;background:#172238;border:1px solid #ffffff18;padding:12px 16px;border-radius:12px;box-shadow:var(--shadow);z-index:120}.toast.error{border-color:#ff6b7a55;color:#ffd7dc}.small-note{font-size:12px;color:var(--muted);margin-top:8px}.admin-tabs{display:flex;gap:8px;margin-bottom:15px}.settings-lines{display:grid;gap:10px}.setting-row{display:grid;grid-template-columns:1fr 2fr auto;gap:8px}.mini-list{display:grid;gap:6px}.mini-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid #ffffff0a}.empty{color:var(--muted);padding:25px;text-align:center}.reader-link{color:var(--accent)}
.album-library-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:6px 0 18px}.album-library-head h3{font-size:26px;line-height:1;margin:5px 0 0}.album-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:18px}.album-card{position:relative;min-width:0;border:1px solid #ffffff10;border-radius:18px;background:#0d141f;overflow:hidden;transition:transform .18s ease,border-color .18s ease,background .18s ease}.album-card:hover{transform:translateY(-3px);border-color:#6ee7ff44;background:#111b29}.album-cover-button{display:block;position:relative;width:100%;aspect-ratio:1;border:0;padding:0;background:#090e16;cursor:pointer;overflow:hidden}.album-cover{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}.album-card:hover .album-cover{transform:scale(1.025)}.album-cover-placeholder{display:grid;place-items:center;width:100%;height:100%;background:radial-gradient(circle at 30% 20%,#243c5f,#111928 48%,#080c13);color:#8fa1bc;font-size:58px}.album-cover-placeholder>span{display:grid;place-items:center;width:92px;height:92px;border-radius:50%;border:1px solid #ffffff1c;background:#0a0f18aa;box-shadow:0 16px 40px #0006}.album-lock{position:absolute;right:10px;top:10px;display:grid;place-items:center;width:34px;height:34px;border:1px solid #ffffff24;border-radius:11px;background:#080c12d9;backdrop-filter:blur(8px)}.album-info{display:grid;gap:4px;padding:12px 13px 13px}.album-title{border:0;padding:0;background:transparent;color:#edf5ff;text-align:left;font-weight:750;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.album-title:hover{color:var(--accent)}.album-meta{font-size:12px;color:var(--muted)}.album-admin{position:absolute;right:8px;bottom:8px;padding:5px;border:1px solid #ffffff0f;border-radius:10px;background:#090e16dd;opacity:0;transform:translateY(4px);transition:.18s}.album-card:hover .album-admin,.album-card:focus-within .album-admin{opacity:1;transform:none}.album-extras{margin-top:28px;padding-top:20px;border-top:1px solid #ffffff0d}.album-extras h3{margin:0 0 12px;font-size:15px}.player-cover{width:min(220px,100%);aspect-ratio:1;object-fit:cover;border-radius:16px;margin-bottom:22px;box-shadow:0 16px 40px #0008;border:1px solid #ffffff16}
@media(max-width:900px){.album-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px}.album-admin{opacity:1;transform:none}.top-actions{flex-wrap:wrap;justify-content:flex-end}.grid2,.music-player{grid-template-columns:1fr}.hero-orb{display:none}.file-row{grid-template-columns:minmax(0,1fr) auto}.file-row>.file-meta{display:none}.setting-row{grid-template-columns:1fr}.topbar{top:6px}.shell{width:min(100% - 16px,1440px)}}

/* Custom album player */
.custom-player{display:grid;gap:22px}.custom-player-main{display:grid;grid-template-columns:minmax(240px,360px) minmax(0,1fr);gap:30px;align-items:stretch;padding:24px;border:1px solid #ffffff10;border-radius:26px;background:radial-gradient(700px 360px at 10% 0%,#243c5f55,transparent 60%),linear-gradient(145deg,#121c2b,#0b111b);overflow:hidden}.custom-player-art{position:relative;aspect-ratio:1;align-self:center;border-radius:24px;isolation:isolate}.custom-player-cover,.custom-player-cover-placeholder{position:relative;z-index:2;width:100%;height:100%;display:grid;place-items:center;border-radius:24px;object-fit:cover;border:1px solid #ffffff1c;box-shadow:0 26px 70px #000a}.custom-player-cover-placeholder{background:radial-gradient(circle at 35% 25%,#2a4d73,#141f31 46%,#080d15);font-size:84px;color:#b9d8ef}.custom-player-cover-placeholder span{display:grid;place-items:center;width:128px;height:128px;border-radius:50%;border:1px solid #ffffff18;background:#07101b88}.custom-player-art-glow{position:absolute;z-index:1;inset:10% -8% -8% 10%;border-radius:30%;background:linear-gradient(135deg,#6ee7ff55,#8b5cf655);filter:blur(40px);opacity:.75}.custom-player-panel{display:flex;min-width:0;flex-direction:column;justify-content:center;padding:18px 12px}.custom-player-kicker{font-size:11px;font-weight:850;letter-spacing:.24em;color:var(--accent);margin-bottom:9px}.custom-player-title{margin:0;max-width:850px;font-size:clamp(28px,4vw,48px)!important;line-height:1.02;letter-spacing:-.045em;white-space:nowrap;text-overflow:ellipsis}.custom-player-album{margin-top:10px;color:var(--muted);font-size:13px}.custom-player-progress-row{display:grid;grid-template-columns:46px minmax(0,1fr) 46px;gap:11px;align-items:center;margin-top:34px}.custom-player-time{font-variant-numeric:tabular-nums;font-size:11px;color:#9aacc4}.custom-player-time:last-child{text-align:right}.custom-player-range{--range-progress:0%;width:100%;height:5px;margin:0;appearance:none;-webkit-appearance:none;border-radius:999px;outline:none;background:linear-gradient(90deg,var(--accent) 0,var(--accent) var(--range-progress),#2a3547 var(--range-progress),#2a3547 100%);cursor:pointer}.custom-player-range::-webkit-slider-thumb{-webkit-appearance:none;width:15px;height:15px;border-radius:50%;border:3px solid #08111a;background:#fff;box-shadow:0 0 0 2px #6ee7ff66,0 4px 14px #0008}.custom-player-range::-moz-range-thumb{width:11px;height:11px;border-radius:50%;border:3px solid #08111a;background:#fff;box-shadow:0 0 0 2px #6ee7ff66}.custom-player-controls{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:25px}.custom-control{display:grid;place-items:center;width:48px;height:48px;padding:0;border:1px solid #ffffff16;border-radius:50%;background:#131d2b;color:#edf7ff;cursor:pointer;transition:transform .15s ease,border-color .15s ease,background .15s ease,box-shadow .15s ease}.custom-control:hover{transform:translateY(-1px);border-color:#6ee7ff66;background:#1a2a3c}.custom-control-play{width:66px;height:66px;border-color:#6ee7ff55;background:linear-gradient(135deg,#6ee7ff,#8b5cf6);color:#071019;font-size:20px;box-shadow:0 12px 35px #6ee7ff22}.custom-control-play:hover{background:linear-gradient(135deg,#8bf0ff,#a17aff);box-shadow:0 15px 42px #6ee7ff35}.custom-control-small{width:40px;height:40px;font-size:17px;color:#95a9c4}.custom-control.active{color:var(--accent);border-color:#6ee7ff55;background:#102638;box-shadow:inset 0 0 0 1px #6ee7ff14}.custom-player-bottom{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:27px}.custom-volume-button{width:32px;height:32px;border:0;background:transparent;color:#c7d6e8;cursor:pointer;padding:0}.custom-player-volume{width:min(180px,36vw)}.custom-volume-text{width:38px;text-align:right;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}.custom-player-queue{padding:3px 2px}.custom-player-queue-head{display:flex;justify-content:space-between;align-items:flex-end;gap:15px;margin:0 2px 13px}.custom-player-queue-head h3{margin:4px 0 0;font-size:20px}.custom-track-list{display:grid;gap:6px}.custom-track{display:grid;grid-template-columns:34px 26px minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;padding:11px 13px;border:1px solid #ffffff0b;border-radius:12px;background:#0c121c;color:var(--text);text-align:left;cursor:pointer;transition:.14s}.custom-track:hover{border-color:#ffffff1c;background:#121b29}.custom-track.active{border-color:#6ee7ff33;background:linear-gradient(90deg,#132638,#101823)}.custom-track-index{color:#667991;font-size:11px;font-variant-numeric:tabular-nums}.custom-track-play{display:grid;place-items:center;width:23px;height:23px;color:#91a7c3;font-size:10px}.custom-track.active .custom-track-play,.custom-track.playing .custom-track-title{color:var(--accent)}.custom-track-title{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}.custom-track-size{color:var(--muted);font-size:11px}.custom-player audio{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
@media(max-width:900px){.custom-player-main{grid-template-columns:1fr;gap:20px;padding:18px}.custom-player-art{width:min(360px,100%);margin:auto}.custom-player-panel{padding:4px 0}.custom-player-title{white-space:normal}.custom-player-progress-row{margin-top:24px}.custom-player-bottom{justify-content:center}.custom-player-volume{width:min(220px,48vw)}}
@media(max-width:560px){.custom-player-main{padding:13px;border-radius:20px}.custom-player-art,.custom-player-cover,.custom-player-cover-placeholder{border-radius:18px}.custom-player-controls{gap:7px}.custom-control{width:42px;height:42px}.custom-control-small{width:35px;height:35px}.custom-control-play{width:58px;height:58px}.custom-track{grid-template-columns:28px 22px minmax(0,1fr);padding:10px}.custom-track-size{display:none}.custom-player-progress-row{grid-template-columns:38px minmax(0,1fr) 38px;gap:7px}.custom-player-volume{width:min(180px,42vw)}}

/* Schnelllinks: Anbieter-Icon wird serverseitig von der Ziel-Domain geladen. */
.shortcut-icon.provider-icon{width:48px;height:48px;margin-bottom:14px;border-radius:13px;display:grid;place-items:center;overflow:hidden;background:#0b111b;border:1px solid #ffffff12}
.shortcut-icon.provider-icon img{display:block;width:34px;height:34px;object-fit:contain}
.shortcut-icon.provider-icon>span{display:none;font-size:27px}
.shortcut-icon.provider-icon.icon-failed img{display:none}
.shortcut-icon.provider-icon.icon-failed>span{display:block}

/* Bilderordner: Galerie + Lightbox */
.gallery-view{display:grid;gap:24px}.gallery-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 2px 12px;font-size:13px;font-weight:750;color:#dce8f7}.gallery-folders{padding-bottom:20px;border-bottom:1px solid #ffffff0d}.gallery-folder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px}.gallery-folder{display:flex;align-items:center;gap:8px;min-width:0;padding:8px;border:1px solid #ffffff0e;border-radius:13px;background:#0c131e}.gallery-folder-open{display:flex;align-items:center;gap:10px;min-width:0;flex:1;padding:5px 7px;border:0;background:transparent;color:var(--text);cursor:pointer;text-align:left}.gallery-folder-open:hover .gallery-folder-name{color:var(--accent)}.gallery-folder-icon{font-size:20px}.gallery-folder-name{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:650}.gallery-open{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}.gallery-open img{transition:transform .22s ease,filter .22s ease}.gallery-item:hover .gallery-open img{transform:scale(1.018);filter:brightness(1.05)}.gallery-caption{display:flex;align-items:center;justify-content:space-between;gap:8px}.gallery-caption-name{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gallery-lightbox{position:fixed;inset:0;z-index:300;display:grid;place-items:center;padding:24px}.gallery-lightbox.hidden{display:none}.gallery-lightbox-backdrop{position:absolute;inset:0;background:#03060bed;backdrop-filter:blur(14px)}.gallery-lightbox-shell{position:relative;z-index:1;display:grid;grid-template-columns:56px minmax(0,1fr) 56px;align-items:center;width:min(1500px,96vw);height:min(920px,92vh)}.gallery-lightbox-stage{display:flex;min-width:0;min-height:0;height:100%;flex-direction:column;align-items:center;justify-content:center;gap:12px}.gallery-lightbox-stage img{display:block;max-width:100%;max-height:calc(92vh - 72px);width:auto;height:auto;object-fit:contain;border-radius:14px;box-shadow:0 30px 100px #000c}.gallery-lightbox-meta{display:flex;width:min(900px,100%);align-items:center;justify-content:space-between;gap:14px;color:#dfeafa;font-size:12px}.gallery-lightbox-meta strong{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gallery-lightbox-meta span{color:var(--muted);font-variant-numeric:tabular-nums}.gallery-lightbox-close,.gallery-lightbox-nav{display:grid;place-items:center;border:1px solid #ffffff20;background:#0d1623d9;color:#fff;cursor:pointer;backdrop-filter:blur(10px)}.gallery-lightbox-close{position:absolute;right:0;top:0;width:42px;height:42px;border-radius:50%;font-size:28px;z-index:2}.gallery-lightbox-nav{width:46px;height:64px;border-radius:16px;font-size:38px;line-height:1}.gallery-lightbox-nav:hover,.gallery-lightbox-close:hover{border-color:#6ee7ff66;background:#15263a}.gallery-lightbox-nav.prev{justify-self:start}.gallery-lightbox-nav.next{justify-self:end}body.lightbox-open{overflow:hidden}
@media(max-width:700px){.gallery-lightbox{padding:10px}.gallery-lightbox-shell{grid-template-columns:38px minmax(0,1fr) 38px;width:100%;height:96vh}.gallery-lightbox-nav{width:34px;height:54px;border-radius:12px;font-size:30px}.gallery-lightbox-close{right:4px;top:4px}.gallery-lightbox-stage img{max-height:calc(96vh - 74px)}.gallery-caption .row-actions{opacity:1}.gallery-folder-grid{grid-template-columns:1fr 1fr}}
@media(max-width:460px){.gallery-folder-grid{grid-template-columns:1fr}}

/* Pinterest-style image wall + zoomable lightbox */
.gallery{column-width:225px;column-count:auto;column-gap:16px}
.gallery-item{display:inline-block;width:100%;break-inside:avoid;page-break-inside:avoid;margin:0 0 16px;border-radius:18px;overflow:hidden;background:#0c121c;border:1px solid #ffffff10;box-shadow:0 8px 28px #0003;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.gallery-item:hover{transform:translateY(-2px);border-color:#ffffff20;box-shadow:0 15px 38px #0005}
.gallery-open{position:relative;overflow:hidden;border-radius:17px 17px 0 0}
.gallery-open::after{content:'↗  Ansehen';position:absolute;right:10px;top:10px;padding:7px 10px;border-radius:999px;background:#07101bd9;color:#fff;font-size:11px;font-weight:750;letter-spacing:.02em;opacity:0;transform:translateY(-4px);transition:.18s;backdrop-filter:blur(10px)}
.gallery-item:hover .gallery-open::after{opacity:1;transform:translateY(0)}
.gallery-caption{min-height:42px;padding:10px 12px;background:linear-gradient(180deg,#101823,#0c121c)}
.gallery-caption-name{font-weight:650;color:#dfe9f8}
.gallery-lightbox-shell{grid-template-columns:58px minmax(0,1fr) 58px}
.gallery-lightbox-nav.prev{grid-column:1;grid-row:1}
.gallery-lightbox-stage{grid-column:2;grid-row:1;position:relative;overflow:visible;width:100%;height:100%}
.gallery-lightbox-nav.next{grid-column:3;grid-row:1}
.gallery-lightbox-viewport{position:relative;display:grid;place-items:center;width:100%;height:calc(92vh - 72px);overflow:hidden;border-radius:16px;cursor:zoom-in;touch-action:none;user-select:none}
.gallery-lightbox-viewport.is-zoomed{cursor:grab}
.gallery-lightbox-viewport.is-dragging{cursor:grabbing}
.gallery-zoom-canvas{display:grid;place-items:center;width:100%;height:100%;will-change:transform}
.gallery-zoom-canvas img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:14px;box-shadow:0 30px 100px #000c;transform-origin:center center;will-change:transform;transition:transform .12s ease-out;pointer-events:none}
.gallery-lightbox-viewport.is-dragging .gallery-zoom-canvas img{transition:none}
.gallery-zoom-toolbar{position:absolute;z-index:4;top:0;left:50%;transform:translate(-50%,-4px);display:flex;align-items:center;gap:4px;padding:5px;border:1px solid #ffffff1c;border-radius:13px;background:#0a121ed9;box-shadow:0 8px 30px #0007;backdrop-filter:blur(12px)}
.gallery-zoom-toolbar button{min-width:38px;height:34px;padding:0 9px;border:0;border-radius:9px;background:transparent;color:#eef6ff;font-size:18px;cursor:pointer}
.gallery-zoom-toolbar button:hover{background:#ffffff10}
.gallery-zoom-toolbar .gallery-zoom-value{min-width:62px;color:var(--accent);font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}
.gallery-zoom-hint{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);padding:6px 10px;border-radius:999px;background:#07101bb8;color:#b9c8dc;font-size:10px;white-space:nowrap;opacity:.82;pointer-events:none;backdrop-filter:blur(8px)}
.gallery-lightbox-meta{padding:0 2px}
@media(max-width:900px){.gallery{column-width:190px;column-gap:12px}.gallery-item{margin-bottom:12px}.gallery-zoom-hint{display:none}}
@media(max-width:700px){.gallery{column-width:145px;column-gap:10px}.gallery-item{margin-bottom:10px;border-radius:14px}.gallery-caption{padding:8px 9px;min-height:36px}.gallery-open::after{display:none}.gallery-lightbox-viewport{height:calc(96vh - 74px);border-radius:12px}.gallery-zoom-toolbar{top:6px;transform:translateX(-50%)}.gallery-zoom-toolbar button{min-width:36px;height:32px}.gallery-lightbox-shell{grid-template-columns:38px minmax(0,1fr) 38px}}
@media(max-width:460px){.gallery{column-width:130px;column-gap:8px}.gallery-item{margin-bottom:8px}.gallery-caption-name{font-size:11px}}

/* Hell-/Dunkelmodus */
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="light"]{color-scheme:light;--bg:#f4f7fb;--panel:#ffffffdf;--panel2:#edf3f9;--line:#d4deea;--text:#172033;--muted:#66768b;--accent:#087ea4;--accent2:#6d5bd0;--danger:#c53f50;--ok:#1b8c5b;--shadow:0 22px 70px #22344f22}
html[data-theme="light"] body{background:radial-gradient(1000px 600px at 18% -10%,#dcecff 0,transparent 62%),radial-gradient(800px 600px at 100% 10%,#eee7ff 0,transparent 58%),var(--bg)}
html[data-theme="light"] .glass,html[data-theme="light"] .panel{background:linear-gradient(180deg,#fffffff4,#f8fbfff0);border-color:#aebed15c;box-shadow:var(--shadow)}
html[data-theme="light"] .brandmark{color:#fff;box-shadow:0 0 30px #087ea433}
html[data-theme="light"] .ghost,html[data-theme="light"] .button{background:#f8fbff;color:var(--text);border-color:var(--line)}
html[data-theme="light"] .ghost:hover,html[data-theme="light"] .button:hover{background:#edf4fb;border-color:#a8bacf}
html[data-theme="light"] .ghost.active{background:#e7f3f8;border-color:#67aec6;color:#0d5169;box-shadow:inset 0 0 0 1px #087ea414}
html[data-theme="light"] .button{background:linear-gradient(135deg,#f5f9fe,#eaf1f9)}
html[data-theme="light"] .shortcut{background:#fff;border-color:#dce5ef;color:var(--text);box-shadow:0 8px 28px #22344f0d}
html[data-theme="light"] .shortcut:hover{background:#f7fbff;border-color:#89b8cb}
html[data-theme="light"] .shortcut-icon.provider-icon{background:#f7f9fc;border-color:#dce5ef}
html[data-theme="light"] .rss-feed{background:#f8fbfe;border-color:var(--line)}
html[data-theme="light"] .rss-feed a{color:#314762;border-top-color:#dce5ef}
html[data-theme="light"] .rss-feed a:hover{color:#087ea4}
html[data-theme="light"] .file-row{background:#fff;border-color:#dfe7f0}
html[data-theme="light"] .file-row:hover{background:#f5f9fd;border-color:#c4d2e1}
html[data-theme="light"] .file-name,html[data-theme="light"] .album-title{color:var(--text)}
html[data-theme="light"] .icon-btn{background:#f6f9fd;border-color:#dce5ef;color:#5c6d82}
html[data-theme="light"] .icon-btn:hover{color:#172033;border-color:#aabed2}
html[data-theme="light"] .modal{background:#26364f66}
html[data-theme="light"] .modal-close{color:#62738a}
html[data-theme="light"] .form-grid input,html[data-theme="light"] .form-grid textarea{background:#fff;color:var(--text);border-color:var(--line)}
html[data-theme="light"] .toast{background:#fff;border-color:#d7e2ed;color:var(--text)}
html[data-theme="light"] .mini-item{border-bottom-color:#dfe6ee}
html[data-theme="light"] .album-card{background:#fff;border-color:#dfe7f0}
html[data-theme="light"] .album-card:hover{background:#f8fbff;border-color:#8fb9ca}
html[data-theme="light"] .album-cover-button{background:#eef3f8}
html[data-theme="light"] .album-cover-placeholder{background:radial-gradient(circle at 30% 20%,#d8e8f6,#edf3f9 50%,#dfe8f2);color:#6f8094}
html[data-theme="light"] .album-cover-placeholder>span{background:#ffffffaa;border-color:#aebed155}
html[data-theme="light"] .album-admin{background:#ffffffec;border-color:#dfe7f0}
html[data-theme="light"] .album-extras{border-top-color:#dfe7f0}
html[data-theme="light"] .custom-player-main{border-color:#dce6f0;background:radial-gradient(700px 360px at 10% 0%,#cde9f755,transparent 60%),linear-gradient(145deg,#ffffff,#f0f5fb)}
html[data-theme="light"] .custom-player-cover,html[data-theme="light"] .custom-player-cover-placeholder{border-color:#d5e0eb;box-shadow:0 26px 70px #3147632b}
html[data-theme="light"] .custom-player-cover-placeholder{background:radial-gradient(circle at 35% 25%,#cbe3f4,#e6eff7 48%,#dbe7f1);color:#54728c}
html[data-theme="light"] .custom-player-cover-placeholder span{background:#ffffff9c;border-color:#bacbdb}
html[data-theme="light"] .custom-player-art-glow{opacity:.3}
html[data-theme="light"] .custom-player-time{color:#6e8095}
html[data-theme="light"] .custom-player-range{background:linear-gradient(90deg,var(--accent) 0,var(--accent) var(--range-progress),#d0dbe7 var(--range-progress),#d0dbe7 100%)}
html[data-theme="light"] .custom-player-range::-webkit-slider-thumb{border-color:#fff;background:#087ea4;box-shadow:0 0 0 2px #087ea43d,0 4px 14px #22344f22}
html[data-theme="light"] .custom-player-range::-moz-range-thumb{border-color:#fff;background:#087ea4;box-shadow:0 0 0 2px #087ea43d}
html[data-theme="light"] .custom-control{background:#fff;color:#2e4259;border-color:#d2deea}
html[data-theme="light"] .custom-control:hover{background:#eef6fb;border-color:#77aec3}
html[data-theme="light"] .custom-control-play{background:linear-gradient(135deg,#66d5ec,#8b74e8);color:#09202a;border-color:#5bb7cd}
html[data-theme="light"] .custom-control.active{background:#e2f3f8;color:#087ea4;border-color:#8dc3d5}
html[data-theme="light"] .custom-volume-button{color:#50647d}
html[data-theme="light"] .custom-track{background:#fff;border-color:#e0e8f0;color:var(--text)}
html[data-theme="light"] .custom-track:hover{background:#f5f9fd;border-color:#cbd8e5}
html[data-theme="light"] .custom-track.active{background:linear-gradient(90deg,#e7f5fa,#f3f8fd);border-color:#9bc9d9}
html[data-theme="light"] .custom-track-index,html[data-theme="light"] .custom-track-play{color:#74859a}
html[data-theme="light"] .gallery-section-head{color:var(--text)}
html[data-theme="light"] .gallery-folders{border-bottom-color:#dce5ee}
html[data-theme="light"] .gallery-folder{background:#fff;border-color:#dfe7ef}
html[data-theme="light"] .gallery-item{background:#fff;border-color:#dfe7ef;box-shadow:0 8px 28px #22344f18}
html[data-theme="light"] .gallery-item:hover{border-color:#bccbd9;box-shadow:0 15px 38px #22344f24}
html[data-theme="light"] .gallery-caption{background:linear-gradient(180deg,#fff,#f7fafc)}
html[data-theme="light"] .gallery-caption-name{color:var(--text)}
html[data-theme="light"] code{color:#465b73}
.theme-toggle{min-width:82px}

/* Dashboard weather (GPS + 3-day forecast) */
.weather-panel{min-height:100%}.weather-card{display:grid;gap:16px}.weather-loading,.weather-error{min-height:210px;display:flex;align-items:center;justify-content:center;gap:14px;padding:20px;border:1px dashed #ffffff18;border-radius:18px;background:linear-gradient(145deg,#0d141f,#111a28)}.weather-loading>div,.weather-error>div{display:grid;gap:3px;flex:1}.weather-loading span:not(.weather-spinner),.weather-error p{margin:0;color:var(--muted);font-size:12px}.weather-location-icon{font-size:30px;color:var(--accent)}.weather-spinner{width:26px;height:26px;border:3px solid #ffffff1b;border-top-color:var(--accent);border-radius:50%;animation:weather-spin .8s linear infinite}@keyframes weather-spin{to{transform:rotate(360deg)}}.weather-current{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:15px;padding:18px;border-radius:18px;background:radial-gradient(360px 180px at 0 0,#6ee7ff1f,transparent 65%),linear-gradient(145deg,#111b2a,#0b111b);border:1px solid #ffffff12}.weather-current-icon{font-size:54px;filter:drop-shadow(0 10px 20px #0005)}.weather-current-copy{display:grid;line-height:1.05}.weather-current-copy strong{font-size:38px;letter-spacing:-.04em;margin:3px 0 5px}.weather-current-copy>span:last-child{color:var(--muted);font-size:12px}.weather-location{font-size:11px!important;color:var(--accent)!important;font-weight:750;letter-spacing:.04em;text-transform:uppercase}.weather-days{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.weather-day{display:grid;grid-template-columns:1fr auto;grid-template-areas:'day icon' 'temp icon' 'rain rain';align-items:center;gap:2px 8px;padding:12px;border:1px solid #ffffff0d;border-radius:14px;background:#0d141f}.weather-day>strong{grid-area:day;font-size:12px}.weather-day-icon{grid-area:icon;font-size:28px}.weather-temp{grid-area:temp;font-size:18px;font-weight:800}.weather-temp small{font-size:12px;color:var(--muted);font-weight:600}.weather-rain{grid-area:rain;margin-top:4px;color:#8cccf6;font-size:11px}.weather-source{text-align:right;color:var(--muted);font-size:10px}.weather-error>span{font-size:30px;color:var(--danger)}.weather-error p{margin-top:3px}.weather-retry{white-space:nowrap}
html[data-theme="light"] .weather-loading,html[data-theme="light"] .weather-error{background:linear-gradient(145deg,#fff,#f5f9fd);border-color:#d5e1ec}html[data-theme="light"] .weather-current{background:radial-gradient(360px 180px at 0 0,#c5edf766,transparent 65%),linear-gradient(145deg,#fff,#eef5fb);border-color:#d6e2ed}html[data-theme="light"] .weather-day{background:#fff;border-color:#dfe7ef}html[data-theme="light"] .weather-rain{color:#267aa8}
@media(max-width:560px){.weather-days{grid-template-columns:1fr}.weather-day{grid-template-columns:1fr auto auto;grid-template-areas:'day icon temp' 'rain icon temp'}.weather-current-copy strong{font-size:32px}.weather-current-icon{font-size:46px}.weather-source{text-align:left}}

/* Wetter nach PLZ */
.weather-plz-start{min-height:112px;display:flex;align-items:center;gap:14px;padding:18px;border:1px dashed #ffffff18;border-radius:18px;background:linear-gradient(145deg,#0d141f,#111a28)}
.weather-plz-start>div{display:grid;gap:3px}.weather-plz-start span:not(.weather-location-icon){color:var(--muted);font-size:12px}
.weather-search{display:grid;grid-template-columns:auto minmax(110px,1fr) auto;align-items:center;gap:9px}
.weather-search label{font-size:11px;font-weight:800;letter-spacing:.08em;color:var(--muted)}
.weather-search input{min-width:0;width:100%;border:1px solid var(--line);background:#09101a;color:var(--text);padding:10px 12px;border-radius:11px;outline:none;font-variant-numeric:tabular-nums}
.weather-search input:focus{border-color:#6ee7ff77;box-shadow:0 0 0 3px #6ee7ff12}
html[data-theme="light"] .weather-plz-start{background:linear-gradient(145deg,#fff,#f5f9fd);border-color:#d5e1ec}
html[data-theme="light"] .weather-search input{background:#fff;color:var(--text);border-color:#cbd8e4}

/* Foto-Bibliothek: Fotos/<Galerie>/... analog zur Musikbibliothek */
.photo-gallery-card .album-cover-button{background:#0a1018}
.photo-gallery-card .album-cover{object-fit:cover}
.photo-gallery-placeholder{background:radial-gradient(circle at 30% 20%,#243f4e,#111c26 48%,#080d13);color:#7ed9e8}
.photo-gallery-placeholder>span{border-radius:22px;font-size:44px}
.photo-gallery-card:hover .photo-gallery-cover{transform:scale(1.04)}
html[data-theme="light"] .photo-gallery-card .album-cover-button{background:#edf5f7}
html[data-theme="light"] .photo-gallery-placeholder{background:radial-gradient(circle at 30% 20%,#d7f0f4,#eef7f8 50%,#e2edf0);color:#468496}
@media(max-width:560px){.weather-search{grid-template-columns:1fr auto}.weather-search label{grid-column:1/-1}.weather-plz-start{min-height:auto}}

/* Turntable visual for the custom music player */
.turntable-visual{aspect-ratio:1.08;min-height:0;border-radius:28px;overflow:visible;isolation:isolate}
.turntable-visual .custom-player-art-glow{inset:8% 2% -4% 4%;border-radius:40%;opacity:.6}
.turntable-deck{position:absolute;z-index:2;inset:0;border:1px solid #ffffff18;border-radius:28px;background:linear-gradient(145deg,#202834,#0d1219 62%,#171d26);box-shadow:inset 0 1px 0 #ffffff12,inset 0 -18px 55px #0006,0 24px 65px #0008;overflow:hidden}
.turntable-deck:before{content:"";position:absolute;inset:0;background:linear-gradient(115deg,#ffffff09,transparent 28%,transparent 72%,#0004),repeating-linear-gradient(90deg,#ffffff018 0 1px,transparent 1px 5px);pointer-events:none}
.turntable-platter{position:absolute;left:5.5%;top:9%;width:77%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#20262d 0 5%,#090b0e 5.5% 58%,#2b323a 58.5% 62%,#07090b 62.5% 67%,#202731 67.5% 72%,#060709 72.5%);box-shadow:0 16px 35px #000a,inset 0 0 0 2px #ffffff0b,inset 0 0 0 8px #0008;display:grid;place-items:center}
.turntable-record{position:relative;width:91%;aspect-ratio:1;border-radius:50%;overflow:hidden;background:#050607;box-shadow:0 10px 28px #000b,inset 0 0 0 2px #ffffff0d;animation:turntable-spin 5.5s linear infinite;animation-play-state:paused;will-change:transform}
.turntable-visual.is-playing .turntable-record{animation-play-state:running}
.turntable-record .custom-player-cover,.turntable-record .custom-player-cover-placeholder{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:50%;box-shadow:none;object-fit:cover;z-index:1}
.turntable-record .custom-player-cover-placeholder{background:radial-gradient(circle at 35% 25%,#31556f,#172536 48%,#070b10);font-size:72px}
.turntable-record .custom-player-cover-placeholder span{width:34%;height:34%;font-size:.7em}
.turntable-grooves{position:absolute;z-index:2;inset:0;border-radius:50%;pointer-events:none;background:repeating-radial-gradient(circle at center,transparent 0 5px,#ffffff0a 5.4px 5.9px,transparent 6.2px 9px),radial-gradient(circle at center,transparent 0 16%,#0000000f 17% 47%,#00000036 70%,#00000077 100%);mix-blend-mode:soft-light}
.turntable-record:after{content:"";position:absolute;z-index:3;inset:0;border-radius:50%;background:conic-gradient(from 20deg,transparent 0 12%,#ffffff12 17%,transparent 24% 61%,#ffffff0d 69%,transparent 76%);pointer-events:none}
.turntable-spindle{position:absolute;z-index:5;left:50%;top:50%;width:14px;height:14px;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,#aeb7c0 34%,#3c4249 68%,#111 72%);box-shadow:0 2px 8px #000b,0 0 0 3px #05060780}
.turntable-tonearm{position:absolute;z-index:6;right:1.7%;top:5.2%;width:31%;height:73%;transform-origin:78% 13%;transform:rotate(-12deg);transition:transform .72s cubic-bezier(.2,.82,.2,1);filter:drop-shadow(0 8px 8px #0009);pointer-events:none}
.turntable-visual.is-playing .turntable-tonearm{transform:rotate(10deg)}
.turntable-visual.is-paused .turntable-tonearm{transform:rotate(5deg)}
.turntable-tonearm-base{position:absolute;right:0;top:0;width:46%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 38% 30%,#7f8b96 0 7%,#28303a 9% 31%,#090c10 33% 56%,#202832 58% 71%,#06080b 73%);border:1px solid #ffffff22;box-shadow:inset 0 1px 0 #ffffff16,0 6px 16px #000b}
.turntable-tonearm-pivot{position:absolute;right:9.5%;top:8%;width:27%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 35% 30%,#f7f9fb 0 8%,#aeb8c1 13% 33%,#4f5a64 38% 58%,#13181e 62%);border:1px solid #ffffff35;box-shadow:0 3px 8px #000a;z-index:4}
.turntable-tonearm-counterweight{position:absolute;right:18%;top:3.5%;width:31%;height:10%;border-radius:999px;background:linear-gradient(180deg,#b9c2ca,#59646e 42%,#252c33 72%,#101419);border:1px solid #ffffff24;box-shadow:inset 0 1px 0 #ffffff40,0 4px 7px #0009;transform:rotate(-8deg);transform-origin:right center;z-index:2}
.turntable-tonearm-stick{position:absolute;right:21%;top:20%;width:8px;height:63%;border-radius:999px;background:linear-gradient(90deg,#1d242b,#d8e0e6 31%,#83909b 55%,#2a333b 78%,#11161b);transform:rotate(20deg);transform-origin:50% 0;box-shadow:0 0 0 1px #0008,inset 1px 0 0 #ffffff35;z-index:3}
.turntable-tonearm-stick:after{content:"";position:absolute;left:50%;bottom:-14%;width:7px;height:29%;transform:translateX(-50%) rotate(-27deg);transform-origin:50% 0;border-radius:999px;background:linear-gradient(90deg,#28313a,#e0e6eb 37%,#75818c 66%,#252d34);box-shadow:0 0 0 1px #0006}
.turntable-tonearm-head{position:absolute;left:50%;bottom:-8%;width:35px;height:14px;transform:translateX(-85%) rotate(-60deg);transform-origin:78% 50%;border-radius:6px 3px 3px 6px;background:linear-gradient(160deg,#e3e8ec 0 24%,#7b8792 44%,#30383f 47% 72%,#11161b 74%);border:1px solid #0008;box-shadow:inset 0 1px 0 #ffffff5c,0 4px 8px #0009;z-index:5}
.turntable-tonearm-head:before{content:"";position:absolute;right:-5px;top:3px;width:8px;height:8px;border-radius:2px;background:#1b2026;box-shadow:inset 0 1px 0 #ffffff1d}
.turntable-tonearm-cartridge{position:absolute;left:3px;bottom:-5px;width:13px;height:7px;border-radius:2px;background:linear-gradient(180deg,#303841,#101419);box-shadow:0 2px 3px #0007}
.turntable-tonearm-needle{position:absolute;left:7px;bottom:-11px;width:1.5px;height:9px;background:linear-gradient(#e5edf2,#7d8992);transform:rotate(58deg);transform-origin:top;box-shadow:0 0 2px #fff8}
.turntable-status-light{position:absolute;z-index:4;right:8%;bottom:8%;width:10px;height:10px;border-radius:50%;background:#4a3437;box-shadow:inset 0 0 0 2px #0008;transition:.2s}
.turntable-visual.is-playing .turntable-status-light{background:#65e6a4;box-shadow:0 0 12px #65e6a4aa,inset 0 0 0 2px #ffffff30}
@keyframes turntable-spin{to{transform:rotate(360deg)}}
html[data-theme="light"] .turntable-deck{border-color:#ccd7e1;background:linear-gradient(145deg,#f4f7fa,#d9e0e7 62%,#eef2f5);box-shadow:inset 0 1px 0 #fff,inset 0 -18px 45px #53657722,0 24px 55px #52657a28}
html[data-theme="light"] .turntable-platter{background:radial-gradient(circle,#adb7c0 0 5%,#3c434a 5.5% 58%,#c1c8ce 58.5% 62%,#343a40 62.5% 67%,#8e99a3 67.5% 72%,#2c3136 72.5%)}
html[data-theme="light"] .turntable-status-light{background:#bca9aa}
@media(max-width:900px){.turntable-visual{width:min(420px,100%);margin:auto}}
@media(max-width:560px){.turntable-visual{border-radius:20px}.turntable-deck{border-radius:20px}.turntable-tonearm{right:.5%;top:5%;width:32%;height:72%}.turntable-tonearm-head{width:30px;height:12px}.turntable-spindle{width:11px;height:11px}}
@media(prefers-reduced-motion:reduce){.turntable-record{animation:none!important}.turntable-tonearm{transition:none!important}}

/* Datei-/Ordnericons: Bootstrap Icons 1.13.1 (lokaler SVG-Sprite, MIT). */
.file-icon-open{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--muted);cursor:pointer;transition:background .15s ease,color .15s ease,transform .15s ease}
.file-icon-open:hover{background:#6ee7ff10;color:var(--accent);transform:translateY(-1px)}
.filetype-icon-wrap{position:relative;display:grid;place-items:center;width:30px;height:30px;color:inherit}
.filetype-icon{display:block;width:28px;height:28px;fill:currentColor}
.filetype-icon-wrap.is-folder{color:#f2bd58}
.file-icon-open:hover .filetype-icon-wrap.is-folder{color:#ffd476}
.filetype-icon-wrap.is-protected{padding-right:2px;padding-bottom:1px}
.filetype-lock{position:absolute;right:-2px;bottom:-2px;width:14px;height:14px;padding:2px;border-radius:5px;background:var(--panel2);fill:var(--accent);filter:drop-shadow(0 2px 3px #0007)}
.file-overlay-title>[data-file-overlay-icon] .filetype-icon-wrap{width:36px;height:36px}
.file-overlay-title>[data-file-overlay-icon] .filetype-icon{width:32px;height:32px}
html[data-theme=light] .file-icon-open:hover{background:#0369a110}
html[data-theme=light] .filetype-icon-wrap.is-folder{color:#b7791f}
html[data-theme=light] .file-icon-open:hover .filetype-icon-wrap.is-folder{color:#925d0b}
html[data-theme=light] .filetype-lock{background:#fff;filter:drop-shadow(0 1px 2px #0002)}

/* Fotos: Galerie-Sammlungen als visuelle Ordnerkarten */
.photo-collection-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}
.photo-collection-card{position:relative;min-width:0;border:1px solid #ffffff12;border-radius:20px;background:#0c131d;overflow:hidden;box-shadow:0 10px 34px #0003;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.photo-collection-card:hover{transform:translateY(-4px);border-color:#6ee7ff55;box-shadow:0 18px 44px #0005}
.photo-collection-open{display:block;width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}
.photo-collection-media{position:relative;display:block;width:100%;aspect-ratio:16/11;overflow:hidden;background:#080d14}
.photo-collection-collage{display:grid;width:100%;height:100%;gap:3px;background:#0a111a}
.photo-collection-collage.has-1{grid-template-columns:1fr}
.photo-collection-collage.has-2{grid-template-columns:1fr 1fr}
.photo-collection-collage.has-3{grid-template-columns:1.5fr 1fr;grid-template-rows:1fr 1fr}
.photo-collection-collage.has-3 .cell-1{grid-row:1/3}
.photo-collection-collage.has-4{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}
.photo-collection-cell{position:relative;display:grid;place-items:center;min-width:0;min-height:0;overflow:hidden;background:linear-gradient(145deg,#111b27,#080d14)}
.photo-collection-cell img{display:block;max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;object-position:center;transition:transform .35s ease,filter .35s ease}
.photo-collection-card:hover .photo-collection-cell img{filter:brightness(1.05)}
.photo-collection-cell.image-error{background:linear-gradient(135deg,#172330,#0b1119)}
.photo-collection-cell.image-error img{display:none}
.photo-collection-empty{display:grid;width:100%;height:100%;place-content:center;justify-items:center;gap:10px;color:#74879d;background:radial-gradient(circle at 30% 25%,#203546,#101923 55%,#080d13)}
.photo-collection-empty svg{width:46px;height:46px;fill:currentColor;opacity:.86}.photo-collection-empty span{font-size:11px;font-weight:700}
.photo-collection-shade{position:absolute;inset:45% 0 0;background:linear-gradient(180deg,transparent,#05080cc9);pointer-events:none}
.photo-collection-count{position:absolute;right:11px;bottom:10px;padding:6px 9px;border:1px solid #ffffff20;border-radius:999px;background:#07101bc9;color:#f0f7ff;font-size:11px;font-weight:750;line-height:1;backdrop-filter:blur(10px)}
.photo-collection-lock{position:absolute;right:10px;top:10px;display:grid;place-items:center;width:34px;height:34px;border:1px solid #ffffff24;border-radius:11px;background:#080c12d9;color:#fff;backdrop-filter:blur(8px)}
.photo-collection-lock svg{width:15px;height:15px;fill:currentColor}
.photo-collection-copy{display:grid;gap:3px;padding:13px 14px 15px}
.photo-collection-copy strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#edf5ff;font-size:15px;font-weight:780}
.photo-collection-copy>span{color:var(--muted);font-size:11px}
.photo-collection-card:hover .photo-collection-copy strong{color:var(--accent)}
.photo-collection-admin{position:absolute;right:10px;bottom:10px;padding:5px;border:1px solid #ffffff16;border-radius:10px;background:#080e17e8;opacity:0;transform:translateY(4px);transition:.18s}
.photo-collection-card:hover .photo-collection-admin,.photo-collection-card:focus-within .photo-collection-admin{opacity:1;transform:none}
html[data-theme="light"] .photo-collection-card{background:#fff;border-color:#dfe7f0;box-shadow:0 10px 30px #22344f14}
html[data-theme="light"] .photo-collection-card:hover{border-color:#8fb9ca;box-shadow:0 18px 38px #22344f20}
html[data-theme="light"] .photo-collection-media{background:#eef3f8}
html[data-theme="light"] .photo-collection-copy strong{color:var(--text)}
html[data-theme="light"] .photo-collection-empty{color:#73889a;background:radial-gradient(circle at 30% 25%,#d9ebf3,#eef5f8 55%,#e5edf2)}
html[data-theme="light"] .photo-collection-admin{background:#ffffffed;border-color:#d8e3ec}
@media(max-width:900px){.photo-collection-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:13px}.photo-collection-admin{opacity:1;transform:none}}
@media(max-width:560px){.photo-collection-grid{grid-template-columns:1fr 1fr;gap:10px}.photo-collection-media{aspect-ratio:1}.photo-collection-copy{padding:10px 10px 12px}.photo-collection-copy strong{font-size:13px}.photo-collection-copy>span{display:none}.photo-collection-count{right:7px;bottom:7px;padding:5px 7px;font-size:9px}}


/* Globaler Footer mit administrierbaren Links */
.site-footer{padding:0 0 22px;margin-top:auto}
.site-footer-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 19px;border-top:1px solid #ffffff12;color:var(--muted);font-size:12px}
.site-footer-copy{white-space:nowrap}
.site-footer-links{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px 16px}
.site-footer-links a{position:relative;color:var(--muted);text-decoration:none;transition:color .15s ease}
.site-footer-links a:hover{color:var(--accent)}
.site-footer-links a+a:before{content:"·";position:absolute;left:-10px;color:var(--line);pointer-events:none}
.site-footer-links.is-empty{display:none}
html[data-theme="light"] .site-footer-inner{border-top-color:#d9e3ed}
@media(max-width:650px){.site-footer-inner{align-items:flex-start;flex-direction:column;gap:10px;padding-inline:8px}.site-footer-links{justify-content:flex-start;gap:7px 16px}.site-footer-copy{white-space:normal}}

/* Integrierte Datei-Vorschau: lesbare Dateien bleiben innerhalb von WebIndex. */
.file-overlay{position:fixed;inset:0;z-index:180;display:grid;place-items:center;padding:18px}
.file-overlay-backdrop{position:absolute;inset:0;background:#02050bd9;backdrop-filter:blur(9px)}
.file-overlay-shell{position:relative;z-index:1;display:grid;grid-template-rows:64px minmax(0,1fr);width:min(1380px,calc(100vw - 36px));height:min(920px,calc(100vh - 36px));overflow:hidden;border:1px solid #ffffff1b;border-radius:22px;background:#0b111b;box-shadow:0 30px 120px #000b}
.file-overlay-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 14px 0 17px;border-bottom:1px solid #ffffff12;background:linear-gradient(180deg,#151d2a,#111823)}
.file-overlay-title{display:flex;align-items:center;gap:11px;min-width:0}
.file-overlay-title>div{display:grid;min-width:0;line-height:1.2}
.file-overlay-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.file-overlay-title small{max-width:min(70vw,850px);margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:10px}
.file-overlay-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.file-overlay-actions a{display:grid;place-items:center;text-decoration:none;min-width:36px;height:36px}
.file-overlay-close{display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid #ffffff12;border-radius:12px;background:#151d2a;color:#dce8f6;font-size:25px;line-height:1;cursor:pointer}
.file-overlay-close:hover{border-color:#ff6b7a66;color:#fff;background:#2a1720}
.file-overlay-body{position:relative;min-width:0;min-height:0;overflow:auto;background:#080c13}
.file-overlay-frame{display:block;width:100%;height:100%;min-height:0;border:0;background:#fff}
.file-overlay-loading{display:grid;min-height:100%;place-items:center;color:var(--muted)}
.file-overlay-text{min-height:100%;margin:0;padding:22px 25px 40px;overflow:auto;background:#090e16;color:#dbe7f5;font:13px/1.62 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;tab-size:4;white-space:pre;word-break:normal}
.file-overlay-text code{font:inherit}
.file-overlay-media{display:grid;width:100%;height:100%;place-items:center;padding:20px;background:#05080d}
.file-overlay-media video{display:block;max-width:100%;max-height:100%;border-radius:14px;background:#000;box-shadow:0 18px 55px #0008}
.file-overlay-notice{position:sticky;top:0;z-index:2;padding:8px 14px;border-bottom:1px solid #ffffff13;background:#2a2212e8;color:#ffd98a;font-size:11px;backdrop-filter:blur(8px)}
body.file-overlay-open{overflow:hidden}
html[data-theme="light"] .file-overlay-backdrop{background:#e6edf5d6}
html[data-theme="light"] .file-overlay-shell{border-color:#cbd8e5;background:#fff;box-shadow:0 30px 90px #21354d35}
html[data-theme="light"] .file-overlay-head{border-bottom-color:#dce5ee;background:linear-gradient(180deg,#fff,#f4f7fa)}
html[data-theme="light"] .file-overlay-close{border-color:#d5e0ea;background:#fff;color:#334155}
html[data-theme="light"] .file-overlay-body{background:#f7f9fc}
html[data-theme="light"] .file-overlay-text{background:#fff;color:#172033}
html[data-theme="light"] .file-overlay-notice{border-bottom-color:#ead9a8;background:#fff8db;color:#755707}
@media(max-width:720px){.file-overlay{padding:0}.file-overlay-shell{width:100vw;height:100dvh;border:0;border-radius:0}.file-overlay-head{height:58px}.file-overlay-shell{grid-template-rows:58px minmax(0,1fr)}.file-overlay-title small{max-width:56vw}.file-overlay-text{padding:17px 15px 32px;font-size:12px}}

/* /Fotos: alle rekursiven Bilder gemeinsam wie eine Pinterest-Pinnwand. */
.gallery-caption-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:2px}
.gallery-caption-folder{display:block;min-width:0;color:var(--muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Lightbox niemals auf Karten-/Thumbnail-Geometrie zwingen. */
.gallery-lightbox .gallery-zoom-canvas img{max-width:none!important;max-height:none!important;object-fit:contain!important;aspect-ratio:auto!important}

/* Lightbox: Basisgroesse wird per JS aus naturalWidth/naturalHeight gesetzt; niemals strecken. */
#galleryLightbox .gallery-zoom-canvas{overflow:visible}
#galleryLightbox .gallery-zoom-canvas img{flex:none!important;min-width:0!important;min-height:0!important}


/* Lightbox Fit v2: im Ausgangszustand muss das komplette Bild sichtbar sein.
   Die eigentliche Zoom-Vergrößerung erfolgt ausschließlich per transform. */
#galleryLightbox .gallery-lightbox-viewport{overflow:hidden!important}
#galleryLightbox .gallery-zoom-canvas{position:absolute!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:100%!important;overflow:visible!important}
#galleryLightbox .gallery-zoom-canvas img{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center center!important;aspect-ratio:auto!important;image-orientation:from-image;flex:0 0 auto!important}

/* Fotos: echte Galerie-Ordnerkarten mit einem repräsentativen Vorschaubild. */
.photo-collection-card{overflow:visible}
.photo-collection-card::before,.photo-collection-card::after{content:"";position:absolute;inset:8px 9px -7px;border:1px solid #ffffff10;border-radius:18px;background:#0a1018;z-index:-1;transform:rotate(-1.3deg);pointer-events:none}
.photo-collection-card::after{inset:5px 13px -4px;transform:rotate(1.1deg);background:#0d151f}
.photo-collection-open{overflow:hidden;border-radius:20px;background:#0c131d}
.photo-collection-cover{position:relative;display:grid;place-items:center;width:100%;height:100%;overflow:hidden;background:#080d14;isolation:isolate}
.photo-collection-cover-bg{position:absolute;inset:-8%;width:116%;height:116%;object-fit:cover;filter:blur(20px) brightness(.48) saturate(.9);transform:scale(1.08);opacity:.9;z-index:0}
.photo-collection-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#00000008 50%,#00000054);z-index:1;pointer-events:none}
.photo-collection-cover-img{position:relative;z-index:1;display:block;max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;object-position:center;transition:transform .28s ease,filter .28s ease;filter:drop-shadow(0 7px 18px #0008)}
.photo-collection-card:hover .photo-collection-cover-img{transform:scale(1.018);filter:drop-shadow(0 10px 22px #0009) brightness(1.03)}
.photo-collection-cover.image-error .photo-collection-cover-bg,.photo-collection-cover.image-error .photo-collection-cover-img{display:none}
.photo-collection-cover.image-error::before{content:"Galerie";display:grid;place-items:center;position:absolute;inset:0;color:#7890a8;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;background:radial-gradient(circle at 30% 25%,#203546,#101923 55%,#080d13)}
html[data-theme="light"] .photo-collection-card::before,html[data-theme="light"] .photo-collection-card::after{background:#eef3f7;border-color:#dce5ec}
html[data-theme="light"] .photo-collection-open{background:#fff}
html[data-theme="light"] .photo-collection-cover{background:#eaf0f5}
html[data-theme="light"] .photo-collection-cover-bg{filter:blur(20px) brightness(.85) saturate(.75);opacity:.72}
html[data-theme="light"] .photo-collection-cover-img{filter:drop-shadow(0 7px 14px #25384a33)}
@media(max-width:560px){.photo-collection-card::before,.photo-collection-card::after{inset:5px 6px -4px;border-radius:15px}.photo-collection-open{border-radius:16px}}
/* RSS Reader: Meldungen innerhalb von WebIndex statt Anbieter-Seite öffnen */
.rss-item{display:grid;width:100%;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px 0;border:0;border-top:1px solid #ffffff0b;background:transparent;color:#d7e5fa;text-align:left;cursor:pointer}
.rss-item span{min-width:0;font-size:13px;line-height:1.38}
.rss-item small{color:var(--muted);font-size:9px;white-space:nowrap;opacity:.8}
.rss-item:hover span,.rss-item:focus-visible span{color:#fff}
.rss-item:focus-visible{outline:2px solid #6ee7ff66;outline-offset:2px;border-radius:7px}
html[data-theme="light"] .rss-item{border-top-color:#dce5ef;color:#314762}
html[data-theme="light"] .rss-item:hover span,html[data-theme="light"] .rss-item:focus-visible span{color:#087ea4}

.rss-overlay{position:fixed;inset:0;z-index:190;display:grid;place-items:center;padding:22px}
.rss-overlay-backdrop{position:absolute;inset:0;background:#02050be6;backdrop-filter:blur(10px)}
.rss-overlay-shell{position:relative;z-index:1;display:grid;grid-template-rows:auto minmax(0,1fr);width:min(920px,calc(100vw - 44px));max-height:min(880px,calc(100vh - 44px));overflow:hidden;border:1px solid #ffffff1c;border-radius:24px;background:linear-gradient(180deg,#121a27,#0a1019);box-shadow:0 35px 140px #000c}
.rss-overlay-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:24px 24px 19px;border-bottom:1px solid #ffffff10}
.rss-overlay-heading{min-width:0}
.rss-overlay-feed{display:block;margin-bottom:7px;color:var(--accent);font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}
.rss-overlay-head h2{margin:0;color:var(--text);font-size:clamp(21px,3vw,34px);line-height:1.12;letter-spacing:-.025em}
.rss-overlay-meta{margin-top:10px;color:var(--muted);font-size:11px}
.rss-overlay-close{display:grid;place-items:center;flex:0 0 auto;width:40px;height:40px;padding:0;border:1px solid #ffffff14;border-radius:50%;background:#121c2b;color:#dce8f6;font-size:26px;line-height:1;cursor:pointer}
.rss-overlay-close:hover{border-color:#ff6b7a66;background:#29151f;color:#fff}
.rss-overlay-scroll{overflow:auto;padding:22px 26px 32px}
.rss-overlay-image{display:block;width:100%;max-height:430px;margin:0 0 24px;border-radius:17px;object-fit:contain;background:#05080d}
.rss-overlay-content{color:#dce7f5;font-size:15px;line-height:1.72;white-space:pre-wrap;overflow-wrap:anywhere}
.rss-overlay-empty{padding:18px;border:1px solid var(--line);border-radius:14px;background:#0d141f;color:var(--muted);font-size:13px;line-height:1.55}
body.rss-overlay-open{overflow:hidden}
html[data-theme="light"] .rss-overlay-backdrop{background:#e7edf4df}
html[data-theme="light"] .rss-overlay-shell{border-color:#cad6e3;background:#fff;box-shadow:0 35px 100px #21354d3d}
html[data-theme="light"] .rss-overlay-head{border-bottom-color:#dce5ee}
html[data-theme="light"] .rss-overlay-head h2{color:#172033}
html[data-theme="light"] .rss-overlay-close{border-color:#d4dfeb;background:#f7fafc;color:#334155}
html[data-theme="light"] .rss-overlay-scroll{background:#fff}
html[data-theme="light"] .rss-overlay-image{background:#f1f5f9}
html[data-theme="light"] .rss-overlay-content{color:#25364b}
html[data-theme="light"] .rss-overlay-empty{background:#f7fafc;color:#61738a}
@media(max-width:720px){.rss-item{grid-template-columns:1fr}.rss-item small{display:none}.rss-overlay{padding:0}.rss-overlay-shell{width:100vw;max-height:none;height:100dvh;border:0;border-radius:0}.rss-overlay-head{padding:18px 16px 15px}.rss-overlay-scroll{padding:17px 16px 30px}.rss-overlay-image{max-height:42vh;margin-bottom:18px}.rss-overlay-content{font-size:14px}.rss-overlay-close{width:38px;height:38px}}

/* Schnelllinks: Logo und Beschriftung sauber zentrieren. */
.shortcut{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  text-align:center;
}
.shortcut-icon{
  display:grid;
  place-items:center;
  margin-left:auto;
  margin-right:auto;
}
.shortcut-icon.provider-icon{
  margin-left:auto;
  margin-right:auto;
}
.shortcut strong{
  width:100%;
  text-align:center;
}


/* Mobile navigation */
.mobile-nav-toggle{display:none;width:44px;height:44px;padding:0;flex:0 0 44px;align-items:center;justify-content:center;flex-direction:column;gap:5px}
.mobile-nav-toggle span{display:block;width:19px;height:2px;border-radius:999px;background:currentColor;transition:transform .2s ease,opacity .2s ease}
.topbar.nav-open .mobile-nav-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.topbar.nav-open .mobile-nav-toggle span:nth-child(2){opacity:0}
.topbar.nav-open .mobile-nav-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
@media(max-width:760px){
  .shell{width:min(100% - 16px,1440px)}
  .topbar{height:62px;top:6px;margin-top:6px;padding:0 10px 0 12px;overflow:visible}
  .brand{min-width:0;max-width:calc(100% - 56px)}
  .brandmark{width:36px;height:36px;flex:0 0 36px}
  .brand-copy{min-width:0}
  .brand-copy strong{font-size:16px}
  .nav-path{max-width:calc(100vw - 115px);font-size:10px}
  .mobile-nav-toggle{display:flex;position:relative;z-index:42}
  .top-actions{display:none;position:absolute;z-index:41;top:calc(100% + 8px);left:0;right:0;flex-direction:column;align-items:stretch;gap:6px;padding:10px;border:1px solid #ffffff18;border-radius:17px;background:linear-gradient(180deg,#141b29fa,#0e1420fa);box-shadow:0 24px 70px #000a;backdrop-filter:blur(22px)}
  .topbar.nav-open .top-actions{display:flex;animation:mobileNavIn .16s ease-out}
  .top-actions .ghost{display:flex;width:100%;min-height:45px;align-items:center;justify-content:flex-start;padding:10px 13px;text-align:left;border-radius:12px}
  .top-actions .ghost.active{background:#1a2a3b}
  .top-actions #themeBtn{margin-top:3px;border-top-color:#ffffff18}
  .top-actions #adminBtn{margin-top:1px}
  main{padding-top:24px}
}
@keyframes mobileNavIn{from{opacity:0;transform:translateY(-7px) scale(.985)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.topbar.nav-open .top-actions{animation:none}.mobile-nav-toggle span{transition:none}}

/* Karaoke / synchronisierte LRC-Songtexte */
.custom-track-title{display:flex;align-items:center;gap:7px}
.custom-track-lyrics-badge{flex:0 0 auto;font-size:12px;opacity:.78;filter:saturate(.8)}
.karaoke-panel{margin-top:18px;border:1px solid #ffffff10;border-radius:20px;background:linear-gradient(145deg,#0c131d,#101924);overflow:hidden;box-shadow:0 18px 50px #0003}
.karaoke-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid #ffffff0c}
.karaoke-head h3{margin:4px 0 2px;font-size:20px}
.karaoke-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.karaoke-toggle,.karaoke-edit{white-space:nowrap}
.karaoke-body{display:grid;grid-template-rows:1fr;transition:grid-template-rows .22s ease,opacity .22s ease}
.karaoke-panel.collapsed .karaoke-body{grid-template-rows:0fr;opacity:0}
.karaoke-viewport{min-height:0;max-height:440px;overflow:auto;padding:26px 18px 34px;scroll-behavior:smooth;scrollbar-gutter:stable;overscroll-behavior:contain}
.karaoke-empty{min-height:180px;display:grid;place-items:center;text-align:center;color:var(--muted);padding:24px}
.karaoke-line{--karaoke-progress:0%;display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:14px;width:min(900px,100%);margin:0 auto 5px;padding:12px 15px;border:0;border-radius:13px;background:transparent;color:#7f91a7;text-align:left;cursor:pointer;transition:transform .18s ease,background .18s ease,opacity .18s ease;color .18s ease;opacity:.62}
.karaoke-line:hover{background:#ffffff08;opacity:.92}
.karaoke-line.past{opacity:.36}
.karaoke-line.active{background:#65d8ff0c;transform:scale(1.015);opacity:1}
.karaoke-line-time{font-size:11px;font-variant-numeric:tabular-nums;color:#60748c;text-align:right}
.karaoke-line-text{font-size:clamp(17px,2.1vw,28px);font-weight:700;line-height:1.35;letter-spacing:-.015em;color:#b7c4d2}
.karaoke-line.active .karaoke-line-text{background:linear-gradient(90deg,var(--accent) 0,var(--accent) var(--karaoke-progress),#e8f1f8 var(--karaoke-progress),#e8f1f8 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.karaoke-plain{width:min(860px,100%);margin:auto;text-align:center;color:#c6d2de;font-size:18px;line-height:1.65}
.karaoke-plain p{margin:.45em 0}
html[data-theme="light"] .karaoke-panel{border-color:#dce5ee;background:linear-gradient(145deg,#fff,#f4f7fa);box-shadow:0 18px 50px #32465c14}
html[data-theme="light"] .karaoke-head{border-color:#dce5ee}
html[data-theme="light"] .karaoke-line{color:#748396}
html[data-theme="light"] .karaoke-line:hover{background:#0f6d8b0b}
html[data-theme="light"] .karaoke-line.active{background:#0a7fa810}
html[data-theme="light"] .karaoke-line-time{color:#8090a1}
html[data-theme="light"] .karaoke-line-text{color:#718092}
html[data-theme="light"] .karaoke-line.active .karaoke-line-text{background:linear-gradient(90deg,#0786ad 0,#0786ad var(--karaoke-progress),#24384a var(--karaoke-progress),#24384a 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
html[data-theme="light"] .karaoke-plain{color:#43566a}
@media(max-width:700px){.karaoke-head{align-items:flex-start;flex-direction:column}.karaoke-actions{width:100%;justify-content:flex-start}.karaoke-viewport{max-height:52vh;padding:18px 8px 26px}.karaoke-line{grid-template-columns:44px minmax(0,1fr);gap:9px;padding:10px 9px}.karaoke-line-text{font-size:clamp(16px,5vw,22px)}}
@media(prefers-reduced-motion:reduce){.karaoke-body,.karaoke-line{transition:none!important}.karaoke-viewport{scroll-behavior:auto}}

/* Karaoke als Overlay-Fenster; der Audioplayer läuft im Hintergrund weiter. */
.custom-player-main{align-items:start}
.custom-player-visual-stage{position:relative;align-self:start;width:100%;aspect-ratio:1.08;min-height:0;isolation:isolate}
.custom-player-visual-stage .turntable-visual{width:100%;height:100%;aspect-ratio:auto;margin:0}
.custom-player-panel{position:relative;min-height:0;overflow:hidden;padding-top:64px;justify-content:center}
.custom-player-panel-topbar{position:absolute;z-index:4;left:12px;right:12px;top:14px;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px}
.custom-player-panel-topbar .custom-player-kicker{margin:0}
.player-lyrics-toggle{margin:0;min-width:118px;border-color:#6ee7ff33;color:var(--accent);font-weight:750;white-space:nowrap}
.player-lyrics-toggle[hidden]{display:none!important}
.player-lyrics-toggle.active{background:#102638;border-color:#6ee7ff66;box-shadow:inset 0 0 0 1px #6ee7ff14}

.player-lyrics-overlay{position:fixed;inset:0;z-index:360;display:grid;place-items:center;padding:24px}
.player-lyrics-overlay[hidden]{display:none!important}
.player-lyrics-overlay-backdrop{position:absolute;inset:0;background:#02050be8;backdrop-filter:blur(13px);cursor:default}
.player-lyrics-dialog{position:relative;z-index:1;display:grid;grid-template-rows:auto minmax(0,1fr);width:min(1120px,calc(100vw - 48px));height:min(780px,calc(100dvh - 48px));min-height:360px;overflow:hidden;border:1px solid #ffffff1c;border-radius:26px;background:radial-gradient(760px 360px at 50% -5%,#183b5b66,transparent 70%),linear-gradient(145deg,#0a111b,#101a27);box-shadow:0 34px 120px #000c,inset 0 1px 0 #ffffff0d}
.player-lyrics-overlay.is-active .player-lyrics-dialog{animation:karaoke-overlay-in .2s ease-out}
@keyframes karaoke-overlay-in{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}
.player-lyrics-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 18px 15px;border-bottom:1px solid #ffffff10;background:#0b131ee0;backdrop-filter:blur(16px)}
.player-lyrics-heading{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:1px 10px}
.player-lyrics-heading .eyebrow{grid-row:1/3;font-size:10px}
.player-lyrics-heading h3{margin:0;font-size:clamp(18px,2vw,25px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player-lyrics-heading .muted{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player-lyrics-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.player-lyrics-overlay .karaoke-edit{padding:8px 11px;font-size:11px;white-space:nowrap}
.player-lyrics-close{display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid #ffffff16;border-radius:12px;background:#151d2a;color:#e5eef9;font-size:27px;line-height:1;cursor:pointer}
.player-lyrics-close:hover{border-color:#ff6b7a66;background:#2a1720;color:#fff}
.player-lyrics-viewport{min-height:0;max-height:none;overflow:auto;padding:34px 24px 54px;scrollbar-gutter:stable;overscroll-behavior:contain;scroll-padding-block:42%}
.player-lyrics-viewport .karaoke-empty{min-height:100%;padding:24px}
.player-lyrics-viewport .karaoke-line{grid-template-columns:62px minmax(0,1fr);gap:16px;width:min(980px,100%);margin:0 auto 7px;padding:13px 16px;border-radius:14px}
.player-lyrics-viewport .karaoke-line-time{font-size:11px}
.player-lyrics-viewport .karaoke-line-text{font-size:clamp(20px,2.6vw,36px);line-height:1.3;background:none!important;color:inherit!important;-webkit-background-clip:border-box!important;background-clip:border-box!important}
.player-lyrics-viewport .karaoke-plain{width:min(900px,100%);font-size:clamp(18px,2vw,28px);line-height:1.55;padding:8px 14px}
body.karaoke-overlay-open{overflow:hidden}

/* Wort-für-Wort-Karaoke */
.karaoke-word{--word-progress:0%;display:inline-block;color:#77899f;opacity:.7;transition:color .1s ease,opacity .1s ease,transform .1s ease}
.karaoke-line.active .karaoke-word{color:#b9c6d3;opacity:.92}
.karaoke-word.done{color:var(--accent);opacity:1}
.karaoke-word.active{background:linear-gradient(90deg,var(--accent) 0,var(--accent) var(--word-progress),#eef6ff var(--word-progress),#eef6ff 100%);-webkit-background-clip:text;background-clip:text;color:transparent!important;opacity:1;transform:translateY(-1px)}
.karaoke-line.past .karaoke-word{color:#61798d;opacity:.55}
.karaoke-line.past .karaoke-word.done{color:#6fa7b5;opacity:.65}

html[data-theme="light"] .player-lyrics-overlay-backdrop{background:#dfe8f0df}
html[data-theme="light"] .player-lyrics-dialog{border-color:#cbd8e5;background:radial-gradient(760px 360px at 50% -5%,#c7ecf766,transparent 70%),linear-gradient(145deg,#fff,#eef5fb);box-shadow:0 34px 95px #263c5638,inset 0 1px 0 #fff}
html[data-theme="light"] .player-lyrics-head{border-color:#dce5ee;background:#f8fbfee8}
html[data-theme="light"] .player-lyrics-close{border-color:#d5e0ea;background:#fff;color:#334155}
html[data-theme="light"] .player-lyrics-close:hover{border-color:#d88995;background:#fff0f2;color:#9f2738}
html[data-theme="light"] .player-lyrics-toggle.active{background:#e7f5fa;border-color:#9bc9d9}
html[data-theme="light"] .karaoke-word{color:#8291a2}
html[data-theme="light"] .karaoke-line.active .karaoke-word{color:#526779}
html[data-theme="light"] .karaoke-word.done{color:#087ea4}
html[data-theme="light"] .karaoke-word.active{background:linear-gradient(90deg,#087ea4 0,#087ea4 var(--word-progress),#20384a var(--word-progress),#20384a 100%);-webkit-background-clip:text;background-clip:text;color:transparent!important}
html[data-theme="light"] .karaoke-line.past .karaoke-word.done{color:#5e8a9b}

@media(max-width:900px){
  .custom-player-visual-stage{width:min(420px,100%);margin:auto}
  .custom-player-panel{padding-top:56px}
  .custom-player-panel-topbar{top:8px;left:0;right:0}
  .player-lyrics-overlay{padding:14px}
  .player-lyrics-dialog{width:calc(100vw - 28px);height:calc(100dvh - 28px);border-radius:22px}
  .player-lyrics-viewport{padding:26px 14px 42px}
  .player-lyrics-viewport .karaoke-line{grid-template-columns:50px minmax(0,1fr);gap:10px;padding:11px 10px}
  .player-lyrics-viewport .karaoke-line-text{font-size:clamp(18px,4.2vw,30px)}
}
@media(max-width:560px){
  .custom-player-visual-stage{border-radius:20px}
  .custom-player-panel{padding-top:52px}
  .custom-player-panel-topbar{align-items:center}
  .player-lyrics-toggle{min-width:104px;padding:8px 10px;font-size:11px}
  .player-lyrics-overlay{padding:0}
  .player-lyrics-dialog{width:100vw;height:100dvh;min-height:0;border:0;border-radius:0}
  .player-lyrics-head{padding:12px 10px}
  .player-lyrics-heading{gap:1px 7px}
  .player-lyrics-heading .muted{display:none}
  .player-lyrics-heading h3{font-size:16px}
  .player-lyrics-actions{gap:5px}
  .player-lyrics-overlay .karaoke-edit{padding:7px 8px;font-size:10px}
  .player-lyrics-close{width:36px;height:36px;border-radius:10px}
  .player-lyrics-viewport{padding:22px 7px 38px}
  .player-lyrics-viewport .karaoke-line{grid-template-columns:39px minmax(0,1fr);gap:6px;margin-bottom:3px;padding:9px 7px}
  .player-lyrics-viewport .karaoke-line-time{font-size:9px}
  .player-lyrics-viewport .karaoke-line-text{font-size:clamp(17px,5.6vw,25px)}
}
@media(prefers-reduced-motion:reduce){.player-lyrics-overlay.is-active .player-lyrics-dialog,.karaoke-word{animation:none!important;transition:none!important}}

/* Karaoke Overlay v2: passt sich an den tatsächlich sichtbaren Bildschirm an. */
.player-lyrics-overlay{
  --lyrics-edge:clamp(8px,2.2vmin,24px);
  box-sizing:border-box;
  width:var(--karaoke-vw,100vw);
  height:var(--karaoke-vh,100dvh);
  max-width:100vw;
  max-height:100dvh;
  padding:
    max(var(--lyrics-edge),env(safe-area-inset-top))
    max(var(--lyrics-edge),env(safe-area-inset-right))
    max(var(--lyrics-edge),env(safe-area-inset-bottom))
    max(var(--lyrics-edge),env(safe-area-inset-left));
  overflow:hidden;
}
.player-lyrics-dialog{
  width:min(1180px,100%);
  height:min(900px,100%);
  min-width:0;
  min-height:0;
  max-width:100%;
  max-height:100%;
}
.player-lyrics-head{min-width:0;flex:0 0 auto}
.player-lyrics-viewport{
  min-width:0;
  min-height:0;
  height:100%;
  overflow:auto;
  padding:clamp(18px,3.5vmin,42px) clamp(8px,2.6vmin,28px) clamp(28px,5vmin,58px);
  scrollbar-gutter:stable both-edges;
}
.player-lyrics-viewport .karaoke-line{
  width:min(980px,100%);
  grid-template-columns:clamp(40px,5.2vw,62px) minmax(0,1fr);
  gap:clamp(7px,1.4vw,16px);
  padding:clamp(8px,1.35vmin,13px) clamp(7px,1.7vmin,16px);
}
.player-lyrics-viewport .karaoke-line-text{
  font-size:clamp(16px,3vmin,36px);
  line-height:1.28;
}
.player-lyrics-viewport .karaoke-plain{font-size:clamp(16px,2.6vmin,28px)}

/* Niedrige / breite Displays: mehr Platz für den eigentlichen Songtext. */
@media(max-height:700px) and (min-width:561px){
  .player-lyrics-overlay{--lyrics-edge:10px}
  .player-lyrics-dialog{border-radius:18px}
  .player-lyrics-head{padding:10px 12px}
  .player-lyrics-heading .muted{display:none}
  .player-lyrics-heading h3{font-size:clamp(15px,3vh,20px)}
  .player-lyrics-close{width:34px;height:34px;border-radius:10px}
  .player-lyrics-overlay .karaoke-edit{padding:6px 8px;font-size:10px}
  .player-lyrics-viewport{padding-top:14px;padding-bottom:24px}
  .player-lyrics-viewport .karaoke-line{margin-bottom:2px}
  .player-lyrics-viewport .karaoke-line-text{font-size:clamp(15px,4.2vh,27px)}
}

/* Smartphone: sichtbaren Viewport vollständig nutzen, inklusive Safe Areas. */
@media(max-width:560px){
  .player-lyrics-overlay{
    --lyrics-edge:0px;
    padding-top:env(safe-area-inset-top);
    padding-right:env(safe-area-inset-right);
    padding-bottom:env(safe-area-inset-bottom);
    padding-left:env(safe-area-inset-left);
  }
  .player-lyrics-dialog{width:100%;height:100%;max-width:none;max-height:none;border-radius:0}
  .player-lyrics-head{padding:10px 9px}
  .player-lyrics-viewport{padding:18px 5px 30px;scrollbar-gutter:auto}
  .player-lyrics-viewport .karaoke-line{grid-template-columns:36px minmax(0,1fr);gap:5px;padding:8px 5px}
  .player-lyrics-viewport .karaoke-line-text{font-size:clamp(16px,5.4vmin,24px)}
}

/* Karaoke Stage v3 — reduzierte, echte Karaoke-Ansicht. */
.player-lyrics-overlay{z-index:420;background:transparent}
.player-lyrics-overlay-backdrop{background:rgba(2,5,10,.88);backdrop-filter:blur(18px) saturate(.8)}
.player-lyrics-dialog.karaoke-stage{
  position:relative;
  isolation:isolate;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  width:min(1280px,100%);
  height:min(860px,100%);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  border-radius:30px;
  background:#070b12;
  box-shadow:0 40px 140px rgba(0,0,0,.72);
}
.karaoke-stage-art{position:absolute;z-index:-3;inset:-12%;overflow:hidden;background:radial-gradient(circle at 50% 35%,#17324c 0,transparent 48%),linear-gradient(145deg,#080c13,#111824)}
.karaoke-stage-art img{width:100%;height:100%;object-fit:cover;filter:blur(58px) brightness(.22) saturate(.8);transform:scale(1.12);opacity:.76}
.karaoke-stage::before{content:"";position:absolute;z-index:-2;inset:0;background:radial-gradient(ellipse at 50% 47%,rgba(4,8,13,.18) 0,rgba(4,8,13,.62) 58%,rgba(4,8,13,.9) 100%);pointer-events:none}
.karaoke-stage-head{position:relative;z-index:4;padding:18px 22px;border:0;background:linear-gradient(180deg,rgba(5,9,15,.72),transparent);backdrop-filter:none}
.karaoke-stage-head .player-lyrics-heading{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"eyebrow title" "eyebrow album" "status status";gap:2px 10px}
.karaoke-stage-head .eyebrow{grid-area:eyebrow;align-self:start;margin-top:4px}
.karaoke-stage-head h3{grid-area:title;font-size:clamp(17px,2vw,24px);letter-spacing:-.02em}
.karaoke-stage-album{grid-area:album;color:rgba(220,232,245,.62);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.karaoke-stage-head #karaokeStatus{grid-area:status;margin-top:3px;font-size:10px;opacity:.72}
.karaoke-stage-lyrics{position:relative;z-index:2;display:block;min-height:0;overflow:auto;padding:30vh clamp(16px,5vw,70px);scrollbar-width:none;scroll-snap-type:y proximity;mask-image:linear-gradient(to bottom,transparent 0,#000 18%,#000 82%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 18%,#000 82%,transparent 100%)}
.karaoke-stage-lyrics::-webkit-scrollbar{display:none}
.karaoke-stage-lyrics .karaoke-line{display:block;width:min(1040px,100%);margin:0 auto 22px;padding:6px 16px;border:0;background:transparent!important;text-align:center;opacity:.09;transform:scale(.92);transition:opacity .22s ease,transform .22s ease,filter .22s ease;scroll-margin-block:42vh}
.karaoke-stage-lyrics .karaoke-line-time{display:none}
.karaoke-stage-lyrics .karaoke-line-text{display:block;font-size:clamp(22px,3.2vw,46px);font-weight:780;line-height:1.18;letter-spacing:-.035em;color:rgba(224,233,242,.48)!important;text-wrap:balance}
.karaoke-stage-lyrics .karaoke-line.near{opacity:.38;transform:scale(.97)}
.karaoke-stage-lyrics .karaoke-line.near .karaoke-line-text{font-size:clamp(25px,3.8vw,54px);color:rgba(236,242,248,.68)!important}
.karaoke-stage-lyrics .karaoke-line.active{opacity:1;transform:scale(1);filter:none}
.karaoke-stage-lyrics .karaoke-line.active .karaoke-line-text{font-size:clamp(34px,5.4vw,76px);font-weight:850;color:#eef7ff!important;text-shadow:0 10px 32px rgba(0,0,0,.55)}
.karaoke-stage-lyrics .karaoke-line.far{opacity:.055}
.karaoke-stage-lyrics .karaoke-word{display:inline;opacity:1;color:inherit;transition:none}
.karaoke-stage-lyrics .karaoke-word.done{color:var(--accent)!important;text-shadow:0 0 24px color-mix(in srgb,var(--accent) 38%,transparent)}
.karaoke-stage-lyrics .karaoke-word.active{display:inline;background:linear-gradient(90deg,var(--accent) 0,var(--accent) var(--word-progress),#eef7ff var(--word-progress),#eef7ff 100%);-webkit-background-clip:text;background-clip:text;color:transparent!important;text-shadow:none;transform:none}
.karaoke-stage-lyrics .karaoke-line.past .karaoke-word:not(.done){color:rgba(207,219,231,.34)}
.karaoke-stage-lyrics .karaoke-plain{display:grid;min-height:100%;place-content:center;width:min(960px,100%);padding:10vh 0;text-align:center;font-size:clamp(25px,4vw,48px);line-height:1.45;color:#e6eef7}
.karaoke-stage-transport{position:relative;z-index:5;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;padding:16px 22px 20px;background:linear-gradient(0deg,rgba(5,9,15,.86),rgba(5,9,15,.22));border:0}
.karaoke-stage-progress{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:11px;min-width:0}
.karaoke-stage-time{color:rgba(225,235,246,.62);font-size:11px;font-variant-numeric:tabular-nums}
.karaoke-stage-time:last-child{text-align:right}
.karaoke-stage-seek{height:4px}
.karaoke-stage-buttons{display:flex;align-items:center;gap:8px}
.karaoke-stage-button{display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid rgba(255,255,255,.13);border-radius:50%;background:rgba(15,24,36,.74);color:#edf6ff;cursor:pointer;backdrop-filter:blur(12px);transition:.15s}
.karaoke-stage-button:hover{border-color:rgba(110,231,255,.46);background:rgba(25,42,60,.88)}
.karaoke-stage-play{width:54px;height:54px;border-color:rgba(110,231,255,.4);background:linear-gradient(135deg,var(--accent),var(--accent2));color:#071019;font-size:17px;box-shadow:0 10px 30px rgba(110,231,255,.16)}
.player-lyrics-close{border-radius:50%;background:rgba(10,16,25,.62)}
.player-lyrics-overlay .karaoke-edit{background:rgba(10,16,25,.54)}
html[data-theme="light"] .player-lyrics-overlay-backdrop{background:rgba(226,233,241,.83)}
html[data-theme="light"] .player-lyrics-dialog.karaoke-stage{border-color:#c9d6e2;background:#f3f7fb;box-shadow:0 40px 100px rgba(35,53,74,.3)}
html[data-theme="light"] .karaoke-stage-art{background:radial-gradient(circle at 50% 35%,#d9eff7 0,transparent 50%),linear-gradient(145deg,#f8fbfe,#dfe8f1)}
html[data-theme="light"] .karaoke-stage-art img{filter:blur(58px) brightness(1.12) saturate(.55);opacity:.38}
html[data-theme="light"] .karaoke-stage::before{background:radial-gradient(ellipse at 50% 47%,rgba(255,255,255,.12) 0,rgba(246,249,252,.5) 62%,rgba(240,245,249,.88) 100%)}
html[data-theme="light"] .karaoke-stage-head{background:linear-gradient(180deg,rgba(248,251,254,.76),transparent)}
html[data-theme="light"] .karaoke-stage-album{color:#708195}
html[data-theme="light"] .karaoke-stage-lyrics .karaoke-line-text{color:#7f8e9f!important}
html[data-theme="light"] .karaoke-stage-lyrics .karaoke-line.near .karaoke-line-text{color:#5f7082!important}
html[data-theme="light"] .karaoke-stage-lyrics .karaoke-line.active .karaoke-line-text{color:#17283a!important;text-shadow:none}
html[data-theme="light"] .karaoke-stage-lyrics .karaoke-word.active{background:linear-gradient(90deg,#087ea4 0,#087ea4 var(--word-progress),#17283a var(--word-progress),#17283a 100%);-webkit-background-clip:text;background-clip:text;color:transparent!important}
html[data-theme="light"] .karaoke-stage-lyrics .karaoke-word.done{color:#087ea4!important}
html[data-theme="light"] .karaoke-stage-transport{background:linear-gradient(0deg,rgba(244,248,252,.92),rgba(244,248,252,.18))}
html[data-theme="light"] .karaoke-stage-time{color:#64768a}
html[data-theme="light"] .karaoke-stage-button{background:rgba(255,255,255,.8);border-color:#cad7e3;color:#30465c}

@media(max-width:760px){
  .player-lyrics-dialog.karaoke-stage{border-radius:20px}
  .karaoke-stage-head{padding:13px 14px}
  .karaoke-stage-head #karaokeStatus,.karaoke-stage-album{display:none}
  .karaoke-stage-lyrics{padding:28vh 10px}
  .karaoke-stage-lyrics .karaoke-line{margin-bottom:16px;padding:5px 6px}
  .karaoke-stage-lyrics .karaoke-line-text{font-size:clamp(19px,5.6vw,30px)}
  .karaoke-stage-lyrics .karaoke-line.near .karaoke-line-text{font-size:clamp(22px,6.8vw,36px)}
  .karaoke-stage-lyrics .karaoke-line.active .karaoke-line-text{font-size:clamp(28px,9vw,48px);line-height:1.12}
  .karaoke-stage-transport{grid-template-columns:1fr;gap:10px;padding:10px 12px max(12px,env(safe-area-inset-bottom))}
  .karaoke-stage-buttons{grid-row:1;justify-content:center}
  .karaoke-stage-progress{grid-row:2;grid-template-columns:38px minmax(0,1fr) 38px;gap:7px}
  .karaoke-stage-button{width:38px;height:38px}
  .karaoke-stage-play{width:50px;height:50px}
}
@media(max-width:560px){
  .player-lyrics-dialog.karaoke-stage{border-radius:0}
  .karaoke-stage-lyrics{padding-top:30vh;padding-bottom:30vh}
  .karaoke-stage-head .eyebrow{display:none}
  .karaoke-stage-head .player-lyrics-heading{display:block}
  .karaoke-stage-head h3{font-size:15px}
}
@media(prefers-reduced-motion:reduce){.karaoke-stage-lyrics .karaoke-line{transition:none}}

/* Karaoke Stage v4 — kompakter und exakt im Viewport zentriert. */
.player-lyrics-overlay{
  inset:0!important;
  width:auto!important;
  height:auto!important;
  max-width:none!important;
  max-height:none!important;
  display:grid!important;
  place-items:center!important;
  padding:clamp(16px,3vmin,34px)!important;
}
.player-lyrics-overlay[hidden]{display:none!important}
.player-lyrics-dialog.karaoke-stage{
  width:min(980px,calc(100vw - 68px))!important;
  height:min(680px,calc(100dvh - 84px))!important;
  min-width:0!important;
  min-height:0!important;
  max-width:980px!important;
  max-height:680px!important;
  margin:auto!important;
  border-radius:26px!important;
}
.karaoke-stage-lyrics{
  padding:clamp(105px,16dvh,150px) clamp(14px,4vw,54px)!important;
}
.karaoke-stage-lyrics .karaoke-line{
  width:min(820px,100%)!important;
  margin-bottom:18px!important;
  scroll-margin-block:34vh!important;
}
.karaoke-stage-lyrics .karaoke-line-text{
  font-size:clamp(20px,2.7vw,38px)!important;
}
.karaoke-stage-lyrics .karaoke-line.near .karaoke-line-text{
  font-size:clamp(23px,3.25vw,44px)!important;
}
.karaoke-stage-lyrics .karaoke-line.active .karaoke-line-text{
  font-size:clamp(30px,4.4vw,58px)!important;
}

@media(max-width:900px){
  .player-lyrics-overlay{padding:18px!important}
  .player-lyrics-dialog.karaoke-stage{
    width:min(860px,calc(100vw - 36px))!important;
    height:min(650px,calc(100dvh - 36px))!important;
    max-width:860px!important;
    max-height:650px!important;
    border-radius:22px!important;
  }
  .karaoke-stage-lyrics{padding:clamp(90px,14dvh,125px) 12px!important}
}

@media(max-width:560px){
  .player-lyrics-overlay{
    padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))!important;
  }
  .player-lyrics-dialog.karaoke-stage{
    width:calc(100vw - 20px)!important;
    height:min(700px,calc(100dvh - 20px))!important;
    max-width:none!important;
    max-height:calc(100dvh - 20px)!important;
    border:1px solid rgba(255,255,255,.14)!important;
    border-radius:20px!important;
  }
  .karaoke-stage-head{padding:11px 12px!important}
  .karaoke-stage-lyrics{padding:82px 8px 92px!important}
  .karaoke-stage-lyrics .karaoke-line{margin-bottom:13px!important;padding:4px 5px!important}
  .karaoke-stage-lyrics .karaoke-line-text{font-size:clamp(18px,5vw,25px)!important}
  .karaoke-stage-lyrics .karaoke-line.near .karaoke-line-text{font-size:clamp(20px,6vw,30px)!important}
  .karaoke-stage-lyrics .karaoke-line.active .karaoke-line-text{font-size:clamp(25px,7.8vw,40px)!important}
  .karaoke-stage-transport{padding:9px 10px max(10px,env(safe-area-inset-bottom))!important}
}

@media(max-height:620px) and (min-width:561px){
  .player-lyrics-dialog.karaoke-stage{
    height:calc(100dvh - 28px)!important;
    max-height:calc(100dvh - 28px)!important;
  }
  .karaoke-stage-lyrics{padding:72px 16px 78px!important}
  .karaoke-stage-head{padding:10px 14px!important}
  .karaoke-stage-transport{padding:9px 14px 11px!important}
}

/* Karaoke Feintuning v5 — Millisekunden + ±5/10 Sekunden */
.karaoke-stage-transport{
  grid-template-columns:1fr!important;
  gap:10px!important;
}
.karaoke-stage-progress{
  grid-template-columns:78px minmax(0,1fr) 78px!important;
}
.karaoke-stage-time-precise{
  min-width:78px;
  font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;
  font-size:11px!important;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.02em;
  white-space:nowrap;
}
.karaoke-stage-control-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.karaoke-stage-nudge{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
  flex-wrap:wrap;
}
.karaoke-nudge-button{
  min-width:56px;
  height:34px;
  padding:0 9px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:10px;
  background:rgba(15,24,36,.72);
  color:rgba(237,246,255,.88);
  font:700 11px/1 ui-monospace,SFMono-Regular,Consolas,monospace;
  cursor:pointer;
  backdrop-filter:blur(10px);
  transition:background .15s ease,border-color .15s ease,transform .15s ease;
}
.karaoke-nudge-button:hover{
  transform:translateY(-1px);
  border-color:rgba(110,231,255,.48);
  background:rgba(25,42,60,.92);
  color:#fff;
}
.karaoke-nudge-button:active{transform:none}
html[data-theme="light"] .karaoke-nudge-button{
  background:rgba(255,255,255,.82);
  border-color:#cad7e3;
  color:#30465c;
}
html[data-theme="light"] .karaoke-nudge-button:hover{
  background:#eef6fb;
  border-color:#77aec3;
}
@media(max-width:650px){
  .karaoke-stage-progress{grid-template-columns:68px minmax(0,1fr) 68px!important;gap:6px!important}
  .karaoke-stage-time-precise{min-width:68px;font-size:9.5px!important}
  .karaoke-stage-control-row{flex-direction:column-reverse;justify-content:center;gap:7px}
  .karaoke-stage-nudge{justify-content:center;gap:5px}
  .karaoke-nudge-button{min-width:50px;height:31px;padding:0 7px;font-size:10px}
}
@media(max-width:390px){
  .karaoke-stage-progress{grid-template-columns:62px minmax(0,1fr) 62px!important}
  .karaoke-stage-time-precise{min-width:62px;font-size:8.8px!important}
  .karaoke-nudge-button{min-width:46px;padding:0 5px;font-size:9.5px}
}
