/* VOICE: warm night listening room, calm and rich
   IDEA: a gold-embroidered paj ntaub cloth laid on a dark wooden table
   PICTURE: a gold record with a paj ntaub diamond pattern; cover art fills every song row
   COLOUR and TYPE: near-black #0b0906, gold #d4a537, story-cloth red #b8321f as the one accent; Outfit titles, Inter body
   LAYOUT: phone first with bottom tabs and a mini player; wide screens get a side bar */
:root{color-scheme:dark;--bg:#0b0906;--panel:#15110b;--line:#2c2416;--ink:#f3ead6;--dim:#a8997a;--gold:#d4a537;--gold2:#f0c75e;--red:#b8321f;
  --sa-t:env(safe-area-inset-top,0px);--sa-b:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box;min-width:0}
[hidden]{display:none!important}
html,body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 Inter,system-ui,Segoe UI,Roboto,sans-serif;overflow-x:clip}
h1,h2,h3{font-family:Outfit,Inter,system-ui,sans-serif;font-weight:600;line-height:1.08;text-wrap:balance;margin:0 0 .4em;color:var(--gold2)}
h1{font-size:clamp(32px,6vw,48px)}h2{font-size:32px}h3{font-size:22px;margin-top:28px}
button,input,select{font:inherit;color:inherit}
svg{display:block}
#app{min-height:100vh}
.topbar{position:fixed;top:0;left:0;right:0;z-index:35;display:flex;align-items:center;gap:10px;padding:calc(6px + var(--sa-t)) 12px 6px;background:#0b0906ee;backdrop-filter:blur(8px);border-bottom:1px solid var(--line);font-family:Outfit,Inter,sans-serif;font-size:24px;color:var(--gold2)}
.topbar img{width:34px;height:34px}
.menu-btn{width:44px;height:44px;border:0;border-radius:10px;background:none;color:var(--gold2);display:grid;place-items:center;cursor:pointer}
.menu-btn svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.scrim{position:fixed;inset:0;z-index:39;background:#000a}
.side{position:fixed;top:0;bottom:0;left:0;width:min(280px,84vw);z-index:40;background:#0f0b07;border-right:1px solid var(--line);padding:calc(16px + var(--sa-t)) 12px calc(20px + var(--sa-b));overflow-y:auto;transform:translateX(-102%);transition:transform .25s ease}
body.drawer .side{transform:none;box-shadow:0 0 40px #000c}
@media(prefers-reduced-motion:reduce){.side{transition:none}}
.brand{display:flex;align-items:center;gap:10px;font-family:Outfit,Inter,sans-serif;font-size:22px;white-space:nowrap;color:var(--gold2);margin:0 4px 18px}.brand img{width:40px;height:40px;flex:none}
.nav{display:flex;flex-direction:column;gap:2px}
.nav button{display:flex;align-items:center;gap:12px;background:none;border:0;padding:10px 12px;border-radius:10px;font-size:16px;color:var(--dim);min-height:46px;cursor:pointer;text-align:left}
.nav svg{width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav svg .fill{fill:currentColor;stroke:none}
.nav button.on{color:var(--gold);background:var(--panel)}
.nav button:hover{color:var(--ink)}
.svc{display:flex;flex-direction:column;gap:1px;margin:2px 0 4px 22px;padding-left:8px;border-left:1px solid var(--line)}
.svc a{display:flex;align-items:center;gap:10px;min-height:42px;padding:5px 10px;border-radius:10px;color:var(--ink);text-decoration:none;font-size:15px;font-weight:500;line-height:1.15;cursor:pointer}
.svc a:hover{background:var(--panel)}.svc a:focus-visible{outline:2px solid var(--gold2);outline-offset:1px}
.svc a small{display:block;color:var(--dim);font-size:12px;font-weight:400}
.svc i{width:26px;height:26px;border-radius:50%;flex:none;display:grid;place-items:center;font-style:normal;font-size:13px;font-weight:700;color:#fff}
.navlabel{margin:16px 12px 4px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--dim)}
.svc-hint{color:var(--dim);margin:18px 2px}
main{padding:calc(74px + var(--sa-t)) max(4vw,16px) calc(120px + var(--sa-b));max-width:1240px;margin:0 auto}
.tab{display:none}.tab.on{display:block}
.hero{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:24px;align-items:center;padding:20px 0 28px;border-bottom:1px solid var(--line);
  background:repeating-linear-gradient(135deg,transparent 0 22px,#d4a5370a 22px 23px)}
.hero p{color:var(--dim);max-width:60ch}
.hero-art svg{width:100%;max-width:260px;margin:auto}
.hero-spin{transform-origin:112px 128px;animation:spin 30s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.hero-spin{animation:none}}
.row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.row.center{justify-content:center}.row.end{justify-content:flex-end}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border-radius:999px;border:1px solid var(--gold);cursor:pointer;font-weight:600;background:none;color:var(--gold2);white-space:nowrap}
.btn.gold{background:linear-gradient(180deg,var(--gold2),var(--gold));color:#1a1206;border-color:transparent}
.btn.sm{min-height:40px;padding:0 16px;font-size:14px}
.btn.danger{border-color:var(--red);color:#f08a78}
.btn:focus-visible,.nav button:focus-visible,.ic:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--gold2);outline-offset:2px}
input,select{min-height:44px;font-size:16px;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:0 14px}
form.row input,.toolbar input{flex:1 1 220px}
.note{color:var(--dim);font-size:14px;margin:8px 0}
.sub{color:var(--dim);margin:0 0 12px}
.toolbar{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 10px}
.list{display:flex;flex-direction:column}
.song{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:center;padding:8px 6px;border-bottom:1px solid var(--line);border-radius:10px}
.song:hover{background:var(--panel)}
.song.playing .t b{color:var(--gold2)}
.song .t{cursor:pointer}
.t{display:flex;flex-direction:column;overflow:hidden}
.t b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.t span{color:var(--dim);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cover{width:48px;height:48px;border-radius:8px;background:#1d160c center/cover;display:grid;place-items:center;color:var(--gold);font-family:Outfit,Inter,sans-serif;font-size:22px;border:1px solid var(--line);flex:none}
.cover.sm{width:42px;height:42px;font-size:18px}
.cover.xl{width:min(72vw,340px);height:min(72vw,340px);margin:8px auto 20px;border-radius:18px;font-size:96px;box-shadow:0 20px 60px #000c,0 0 0 1px var(--gold)}
.ic{background:none;border:0;cursor:pointer;min-width:44px;min-height:44px;font-size:20px;color:var(--ink);border-radius:50%}
.ic.on{color:var(--gold2)}
.ic.big{font-size:22px}.ic.huge{width:72px;height:72px;font-size:30px;background:var(--gold);color:#1a1206}
.more{font-size:20px;color:var(--dim)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;margin-top:12px}
.card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:14px;cursor:pointer;text-align:left}
.card:hover{border-color:var(--gold)}
.card .disc{width:100%;height:auto;aspect-ratio:1;font-size:44px;margin-bottom:10px}
.card b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card span{color:var(--dim);font-size:13px}
.disc{width:120px;height:120px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,#0b0906 18%,#2a1f0e 19%,#1a140b 60%,#2a1f0e 61%) center/cover;border:2px solid var(--gold);color:var(--gold2);font-family:Outfit,Inter,sans-serif;font-size:48px;flex:none}
.singer-head{display:flex;gap:20px;align-items:center;margin:16px 0}
.find{font-size:14px;color:var(--dim)}.find a{color:var(--gold2);margin-right:10px}
.empty{padding:28px 10px;color:var(--dim);text-align:center;border:1px dashed var(--line);border-radius:14px;margin-top:10px}
.player-frame{position:relative;width:100%;max-width:960px;aspect-ratio:16/9;background:#000;border:1px solid var(--line);border-radius:14px;overflow:hidden;margin-bottom:14px}
.player-frame.tall{aspect-ratio:auto;height:min(70vh,640px)}
.player-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.fb-wrap{max-width:520px}
.empty-frame{position:absolute;inset:0;display:grid;place-items:center;padding:20px;text-align:center;color:var(--dim)}
.link{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;align-items:center;padding:8px 6px;border-bottom:1px solid var(--line)}
.link .t{cursor:pointer}

.yt-home{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;min-height:180px;padding:12px 18px;border-radius:18px;text-decoration:none;color:#fff;text-align:center;
  background:radial-gradient(circle at 30% 20%,#ff4d3d,#c4120b 70%);border:1px solid var(--gold);box-shadow:0 12px 30px #0008}
.yt-home svg{width:84px;height:84px}.yt-home rect{fill:#fff}.yt-home path{fill:#c4120b}
.yt-home b{display:block;font-family:Outfit,Inter,sans-serif;font-size:30px;line-height:1}.yt-home small{color:#ffe1dc;font-size:14px}
.yt-home:hover{filter:brightness(1.08)}.yt-home:focus-visible,.svc a:focus-visible{outline:2px solid var(--gold2);outline-offset:3px}
button.yt-home{font:inherit;cursor:pointer;width:100%}
.install{background:#1c150b;border:1px solid var(--gold);border-radius:14px;padding:12px 16px;margin:0 0 16px;color:var(--ink);font-size:15px}.install b{color:var(--gold2)}
.player-frame.audio{aspect-ratio:auto;height:352px}.player-frame.tiktok{aspect-ratio:auto;height:min(80vh,760px);max-width:340px}
.setup{background:var(--panel);border:1px solid var(--gold);border-radius:16px;padding:18px;margin:16px 0}.setup p{color:var(--dim)}
.vgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;margin:10px 0 24px}
.vcard{background:none;border:0;padding:0;text-align:left;cursor:pointer;color:var(--ink)}
.vcard img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:12px;background:#1d160c;display:block;border:1px solid var(--line)}
.vcard b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:8px;font-weight:600;line-height:1.3}
.vcard span{color:var(--dim);font-size:13px}.vcard:hover img{border-color:var(--gold)}
.linkbtn{background:none;border:0;color:var(--gold2);text-decoration:underline;cursor:pointer;font-size:14px;padding:8px 0;min-height:44px}
.steps{padding-left:20px;margin:6px 0 4px;color:var(--ink)}.steps li{margin:6px 0}.steps a{color:var(--gold2)}
.skipped{margin-top:18px;color:var(--dim)}.skipped summary{cursor:pointer;color:#f08a78}
.mini{position:fixed;left:8px;right:8px;bottom:calc(10px + var(--sa-b));z-index:31;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;background:#1c150b;border:1px solid var(--gold);border-radius:14px;padding:6px 6px 8px 8px;box-shadow:0 10px 30px #000a;overflow:hidden}
.mini-info{display:flex;gap:10px;align-items:center;background:none;border:0;text-align:left;cursor:pointer;padding:0;overflow:hidden}
.mini-ctl{display:flex}
.mini-bar{position:absolute;left:0;right:0;bottom:0;height:3px;background:#0006}.mini-bar i{display:block;height:100%;width:0;background:var(--gold)}
.now{position:fixed;inset:0;z-index:40;background:radial-gradient(ellipse at top,#2a1f0e,#0b0906 70%);overflow:auto;padding:calc(10px + var(--sa-t)) 20px calc(20px + var(--sa-b))}
.now-in{max-width:520px;margin:0 auto;text-align:center}
.now h2{margin-top:6px}.close{font-size:30px;display:block}
input[type=range]{width:100%;accent-color:var(--gold);background:none;border:0;padding:0}
.times{display:flex;justify-content:space-between;color:var(--dim);font-size:13px;margin-bottom:8px}
.ctl{display:flex;justify-content:center;align-items:center;gap:14px;margin:6px 0 20px}
.dlg{position:fixed;inset:0;z-index:50;background:#000a;display:grid;place-items:center;padding:16px}
.dlg-in{background:var(--panel);border:1px solid var(--gold);border-radius:16px;padding:20px;width:min(440px,100%)}
.dlg-in label{display:block;font-size:14px;color:var(--dim);margin:10px 0 4px}.dlg-in input,.dlg-in select{width:100%}
.pick{display:flex;flex-direction:column;gap:6px;max-height:50vh;overflow:auto}
.pick button{text-align:left;padding:12px;border-radius:10px;border:1px solid var(--line);background:var(--bg);cursor:pointer}
.toast{position:fixed;left:50%;bottom:calc(150px + var(--sa-b));transform:translateX(-50%);z-index:60;background:var(--gold);color:#1a1206;font-weight:600;padding:10px 18px;border-radius:999px;max-width:90vw;text-align:center}
@media(min-width:900px){
  .side{transform:none;width:264px;box-shadow:none}
  .topbar,.scrim,#openSide{display:none!important}
  main{margin-left:264px;padding-top:28px;padding-bottom:120px}
  .mini{left:280px;right:16px;bottom:16px}
}
@media(max-width:760px){.yt-home{min-height:130px;flex-direction:row;gap:16px}.yt-home svg{width:64px;height:64px}}
@media(max-width:600px){
  .hero{grid-template-columns:1fr}.hero-art{order:-1}.hero-art svg{max-width:150px}
  .singer-head{flex-direction:column;text-align:center}.singer-head .row{justify-content:center}
  .toolbar select{flex:1 1 140px}
}
/* ---------- Golden Pro ---------- */
:root[data-pal=jade]{--gold:#3fae8c;--gold2:#7fdcb9}
:root[data-pal=ruby]{--gold:#d0485a;--gold2:#f2808e}
:root[data-pal=sapphire]{--gold:#4a8fe0;--gold2:#8cbcf5}
:root[data-pal=silver]{--gold:#b9bdc6;--gold2:#e4e6ea}
:root[data-pal=rose]{--gold:#d99572;--gold2:#f3c2a5}
:root[data-pal=cloth]{--gold:#d4a537;--gold2:#f0c75e;--bg:#140806;--panel:#21100b;--line:#3a1d14}
:root[data-pal=cloth] body{background:repeating-linear-gradient(45deg,transparent 0 26px,#b8321f14 26px 28px),repeating-linear-gradient(-45deg,transparent 0 26px,#d4a5370f 26px 28px),var(--bg)}
.crown{color:var(--gold2);font-size:.9em}
.pro-head{padding:8px 0 4px}
.pcard{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:16px 18px;margin:14px 0}
.pcard h3{margin-top:0}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.chip{min-height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:var(--bg);cursor:pointer;font-size:14px}
.chip.on{border-color:var(--gold);color:var(--gold2);background:#d4a5371a}
.eq{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;align-items:end;max-width:560px}
.eq label{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:13px;color:var(--dim)}
.eq input{writing-mode:vertical-lr;direction:rtl;width:36px;height:150px;accent-color:var(--gold)}
.eq b{color:var(--ink);font-weight:600;font-size:13px}
.slider{display:flex;flex-direction:column;gap:6px;max-width:560px}.slider span{display:flex;justify-content:space-between}
.check{display:flex;gap:10px;align-items:center;min-height:44px;cursor:pointer}.check input{width:22px;height:22px;min-height:0;accent-color:var(--gold)}
.check.big{font-size:18px}
.swatches{display:flex;flex-wrap:wrap;gap:10px}
.sw{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 14px 0 8px;border-radius:999px;border:1px solid var(--line);background:var(--bg);cursor:pointer}
.sw i{width:26px;height:26px;border-radius:50%;background:var(--c)}.sw.on{border-color:var(--gold)}
.modes{margin-top:8px}
.lyr{margin:16px 0 8px;text-align:center}
.lyr-lines{max-height:40vh;overflow:auto;padding:8px 4px;mask-image:linear-gradient(transparent,#000 15%,#000 85%,transparent)}
.lyr-lines p,.k-lines p{margin:10px 0;color:var(--dim);transition:color .2s,transform .2s}
.lyr-lines p.on{color:var(--gold2);font-weight:600;transform:scale(1.04)}
textarea{width:100%;font:inherit;font-size:16px;color:inherit;background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:10px}
.sync-next{font-family:Outfit,Inter,sans-serif;font-size:26px;color:var(--gold2);min-height:2.4em;text-align:center}
.song.selected{background:#d4a5372a;outline:1px solid var(--gold)}
body.selecting .song .t b::before{content:"○ ";color:var(--dim)}
body.selecting .song.selected .t b::before{content:"● ";color:var(--gold2)}
.bulk{position:fixed;left:8px;right:8px;bottom:calc(86px + var(--sa-b));z-index:33;background:#1c150b;border:1px solid var(--gold);border-radius:14px;padding:10px 12px;box-shadow:0 10px 30px #000a;display:flex;flex-direction:column;gap:8px;max-height:40vh;overflow:auto}
.full{position:fixed;inset:0;z-index:45;background:var(--bg);overflow:auto;padding:calc(12px + var(--sa-t)) 20px calc(20px + var(--sa-b));text-align:center}
.full .close{position:absolute;top:calc(8px + var(--sa-t));right:12px;z-index:2;font-size:24px}
.kara{display:grid;place-items:center}
.kara-bg{position:fixed;inset:0;background:center/cover;filter:blur(40px) brightness(.35);transform:scale(1.2)}
.kara-in{position:relative;width:min(900px,100%)}
.k-title{color:var(--dim)}
.k-lines{max-height:62vh;overflow:auto;padding:20vh 0;mask-image:linear-gradient(transparent,#000 25%,#000 75%,transparent)}
.k-lines p{font-family:Outfit,Inter,sans-serif;font-size:clamp(26px,5vw,48px);line-height:1.2;margin:18px 0}
.k-lines p.on{color:var(--gold2);transform:scale(1.06)}
.car{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}
.car-cover{width:min(50vw,260px);height:min(50vw,260px);border-radius:20px;background:#1d160c center/cover;border:2px solid var(--gold);display:grid;place-items:center;font-size:90px;color:var(--gold);font-family:Outfit,Inter,sans-serif}
.car h2{font-size:clamp(32px,7vw,56px);margin:10px 0 0}.car p{font-size:22px;color:var(--dim);margin:0}
.car-ctl{display:flex;gap:18px;margin:20px 0}
.car-ctl button{width:clamp(84px,24vw,130px);height:clamp(84px,24vw,130px);border-radius:28px;border:2px solid var(--gold);background:var(--panel);font-size:40px;cursor:pointer;color:var(--ink)}
.car-ctl .play{background:var(--gold);color:#1a1206}
.bed{background:#000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}
.clock{font-family:Outfit,Inter,sans-serif;font-size:clamp(72px,20vw,180px);color:var(--gold);opacity:.75;line-height:1}
.date{color:var(--dim);font-size:20px;margin:0}
.alarm{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:center;margin:16px 0}
.alarm input[type=time]{font-size:20px}
@media(min-width:900px){.bulk{left:280px;right:16px;bottom:96px}}
@media(max-width:600px){.eq input{height:120px}}
.bulk .row{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}
.bulk .row .btn{flex:none}
body.selecting main{padding-bottom:calc(300px + var(--sa-b))}
.toast{top:calc(14px + var(--sa-t));bottom:auto!important;z-index:70}

.bigcode{font-family:Outfit,Inter,sans-serif;font-size:56px;letter-spacing:6px;color:var(--gold2);text-align:center;margin:10px 0}
.bar{height:8px;border-radius:99px;background:var(--bg);border:1px solid var(--line);overflow:hidden;margin:8px 0}.bar i{display:block;height:100%;width:0;background:var(--gold);transition:width .2s}
.dropzone{position:fixed;inset:0;z-index:80;background:#0b0906d9;display:grid;place-items:center;pointer-events:none}
.dropzone div{border:3px dashed var(--gold);border-radius:24px;padding:60px 80px;text-align:center;display:flex;flex-direction:column;gap:8px}
.dropzone b{font-family:Outfit,Inter,sans-serif;font-size:40px;color:var(--gold2)}.dropzone span{color:var(--dim)}
@media(hover:none){.dragtip{display:none}}
.wifi{background:#d4a5371f;border:1px solid var(--gold);border-radius:12px;padding:10px 14px;color:var(--gold2);font-weight:600;text-align:center}
body.all-free .crown{display:none}
.yt-home{min-height:calc(100vh - 110px - var(--sa-t) - var(--sa-b));margin-top:4px;gap:22px!important}
.yt-home svg{width:min(220px,40vw)!important;height:auto!important}
.yt-home b{font-size:clamp(44px,8vw,80px)!important}.yt-home small{font-size:18px!important}
.install:not([hidden])+.yt-home{min-height:calc(100vh - 230px - var(--sa-t) - var(--sa-b))}
@media(max-width:760px){.yt-home{flex-direction:column!important}}
@media(min-width:900px){.yt-home{min-height:calc(100vh - 60px)}.install:not([hidden])+.yt-home{min-height:calc(100vh - 170px)}}
.site-bar{display:flex;align-items:center;gap:12px;margin:0 0 12px}.site-bar b{font-family:Outfit,Inter,sans-serif;font-size:28px;color:var(--gold2);flex:1;line-height:1.1}
.site-bar i{width:38px;height:38px;border-radius:50%;flex:none;display:grid;place-items:center;font-style:normal;font-weight:700;color:#fff}
.site-frame{width:100%;height:calc(100vh - 200px - var(--sa-t) - var(--sa-b));min-height:420px;border:1px solid var(--line);border-radius:14px;background:#000;display:block}
@media(min-width:900px){.site-frame{height:calc(100vh - 110px)}}
.site-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;min-height:calc(100vh - 220px - var(--sa-t) - var(--sa-b));padding:28px 20px;border-radius:18px;text-decoration:none;color:#fff;border:1px solid #ffffff22}
@media(min-width:900px){.site-card{min-height:calc(100vh - 120px)}}
.site-card .big{width:110px;height:110px;border-radius:50%;display:grid;place-items:center;font-size:52px;font-weight:700;background:#ffffff26;box-shadow:0 10px 40px #0006}
.site-card h2{color:#fff;font-size:clamp(34px,6vw,54px);margin:0}
.site-card p{max-width:46ch;color:#ffffffd0;margin:0}
.site-card .go{background:#fff;color:#111;font-weight:700;border-radius:999px;padding:14px 30px;font-size:18px}
.site-card:hover .go{filter:brightness(.92)}
.svc a.on{background:var(--panel);outline:1px solid var(--gold)}
.svc-group{margin:10px 10px 2px;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--dim)}

/* ---------- AM / FM radio ---------- */
.rfilters{margin:10px 0 14px}.rfilters select{flex:1 1 160px}
.rlist{display:flex;flex-direction:column;gap:2px}
.rrow{display:grid;grid-template-columns:48px minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:8px 6px;border-bottom:1px solid var(--line);border-radius:10px;cursor:pointer}
.rrow:hover{background:var(--panel)}.rrow.on{background:var(--panel);outline:1px solid var(--gold)}
.rrow b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rrow span.m{display:block;color:var(--dim);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rlogo{width:48px;height:48px;border-radius:10px;background:#1d160c center/cover no-repeat;display:grid;place-items:center;font-weight:700;color:var(--gold2);font-family:Outfit,Inter,sans-serif;font-size:20px;overflow:hidden;border:1px solid var(--line)}
.rlogo img{width:100%;height:100%;object-fit:contain;background:#fff}
.rstar{background:none;border:0;font-size:22px;color:var(--dim);cursor:pointer;min-width:44px;min-height:44px}.rstar.on{color:var(--gold2)}
.rplay{width:44px;height:44px;border-radius:50%;border:1px solid var(--gold);background:none;color:var(--gold2);cursor:pointer;font-size:16px}
.rrow.on .rplay{background:var(--gold);color:#1a1206}
.rmini{grid-template-columns:minmax(0,1fr) auto}.rmini-l{display:flex;align-items:center;gap:10px;min-width:0}.rmini .rlogo{width:42px;height:42px;font-size:16px}
.rmini .mini-t{min-width:0}.rmini .mini-t b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rmini .mini-t span{color:var(--dim);font-size:13px}
.live{display:inline-block;width:8px;height:8px;border-radius:50%;background:#e5322d;margin-right:6px;vertical-align:1px;animation:pulse 1.6s ease-in-out infinite}
@keyframes pulse{50%{opacity:.35}}@media(prefers-reduced-motion:reduce){.live{animation:none}}
body.radio-on #mini{display:none!important}
.q{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.04em;padding:1px 6px;border-radius:6px;margin-right:8px;vertical-align:2px}
.q-HD{background:#22c55e;color:#06210f}.q-Good{background:#facc15;color:#2a2102}.q-Low{background:#ef4444;color:#fff}
.qrow{align-items:center}.qkey{color:var(--dim);font-size:13px}.qkey .q{margin-left:8px;margin-right:2px}
a.rrow{color:inherit;text-decoration:none}.rrow.hm .rplay{display:grid;place-items:center}
.q-band{border:1px solid var(--gold);color:var(--gold2)}

/* ---------- professional polish ---------- */
h1,h2,h3{font-family:Outfit,Inter,system-ui,sans-serif;font-weight:700;letter-spacing:-.015em;color:#fff}
h1{font-size:clamp(30px,5vw,44px)}h2{font-size:30px}h3{font-size:19px;font-weight:600;color:var(--gold2);margin-top:26px}
.sub{font-size:15px}
.brand,.topbar span{font-family:Outfit,Inter,sans-serif;font-weight:600;letter-spacing:-.01em;color:#fff}
.brand{font-size:20px}.brand img,.topbar img{border-radius:10px;box-shadow:0 2px 10px #0008}
.side{background:linear-gradient(180deg,#110d08,#0b0906);scrollbar-width:thin;scrollbar-color:#2c2416 transparent}
.navlabel{margin:18px 12px 6px;font-size:11px;font-weight:600;letter-spacing:.14em}
.nav>button{position:relative;font-weight:500;font-size:15px;min-height:42px}
.nav>button.on{background:#1b150c;color:var(--gold2)}
.nav>button.on::before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:3px;background:var(--gold)}
.svc{margin:2px 0 2px 14px;padding-left:6px;border-left:0}
.svc a{min-height:38px;padding:4px 8px;font-size:14px;color:#e9dfc8}
.svc a.on{background:#1b150c;outline:0;box-shadow:inset 0 0 0 1px #d4a53755}
.svc i{width:26px;height:26px;border-radius:8px;font-size:12px;font-family:Outfit,Inter,sans-serif;font-weight:700;letter-spacing:-.02em;
  background:linear-gradient(145deg,color-mix(in srgb,var(--c) 85%,#fff 15%),color-mix(in srgb,var(--c) 80%,#000 20%));box-shadow:inset 0 1px 0 #ffffff40,0 1px 3px #0007}
.svc a small{font-size:11px}
.svc-more{display:flex;align-items:center;gap:8px;width:100%;min-height:38px;margin-top:2px;padding:4px 8px;border:0;border-radius:10px;background:none;color:var(--dim);font-size:14px;cursor:pointer;text-align:left}
.svc-more:hover{background:#1b150c;color:var(--ink)}.svc-more span{flex:1}
.svc-more em{font-style:normal;font-size:11px;font-weight:600;padding:1px 7px;border-radius:99px;background:#2c2416;color:var(--gold2)}
.svc-more b{transition:transform .2s}.svc-more.open b{transform:rotate(180deg)}
.svc-group{margin:12px 8px 4px}
.btn{font-family:Outfit,Inter,sans-serif;font-weight:600;letter-spacing:.01em;min-height:42px}
.btn.gold{box-shadow:0 4px 14px #d4a53733}
.btn.ghost,.btn:not(.gold){border-color:#d4a53780}
.chip{font-weight:500;min-height:36px;border-color:#2c2416;background:#120e09;color:#d9cdb3}
.chip:hover{border-color:#d4a53780}
input,select{border-radius:12px!important}
.card,.rrow,.song{transition:background .15s}
.card{border-radius:16px}
.install{display:flex;align-items:center;gap:12px;padding:8px 8px 8px 14px;border-radius:14px;background:linear-gradient(90deg,#1f170b,#15110b);border:1px solid #d4a53766;font-size:14px}
.install p{margin:0;flex:1;color:#d9cdb3}.install b{color:#fff;margin-right:4px}
.install-i{width:30px;height:30px;flex:none;border-radius:9px;display:grid;place-items:center;background:var(--gold);color:#1a1206;font-weight:700}
.install .ic{min-width:36px;min-height:36px;font-size:16px;color:var(--dim)}
.yt-home{border-radius:22px!important;box-shadow:0 20px 50px #b3120a33;background:radial-gradient(120% 90% at 30% 15%,#ff5a4a,#e1251b 45%,#a50d07)!important;border:0!important}
.yt-home b{font-family:Outfit,Inter,sans-serif!important;font-weight:700;letter-spacing:-.02em}
.site-card{border-radius:22px}.site-card h2{font-family:Outfit,Inter,sans-serif}
.rlogo{font-family:Outfit,Inter,sans-serif;background:linear-gradient(145deg,#2a2011,#15100a);border-color:#2c2416}
.mini,.rmini{border-color:#d4a53780;background:linear-gradient(180deg,#1d160c,#15100a);border-radius:16px}
#rGenre,#eqPresets{scrollbar-width:none}
@media(max-width:600px){
  #rGenre{flex-wrap:nowrap;overflow-x:auto;margin-right:-16px;padding-right:16px}#rGenre .chip{flex:none}
  .hero-art svg{max-width:96px!important}
  h2{font-size:26px}
}
.more-i{width:26px;height:26px;border-radius:8px;flex:none;display:grid;place-items:center;font-style:normal;font-size:9px;letter-spacing:1px;background:#2c2416;color:var(--gold2)}
.svc-more{gap:10px;color:#e9dfc8}
.svc-more span{font-size:14px;font-weight:500}
.install .btn.sm{min-height:36px;padding:0 16px;flex:none}
.rmore{display:flex;margin:14px auto 6px}

/* podcasts */
.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:14px;margin-bottom:18px}
.pcardx{display:flex;flex-direction:column;gap:6px;background:none;border:0;padding:6px;border-radius:12px;cursor:pointer;text-align:left;color:inherit;min-width:0}
.pcardx:hover{background:var(--panel)}
.pcardx b{font-size:14px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pcardx b i{font-style:normal;color:var(--gold2);margin-right:6px}
.pcardx span{color:var(--dim);font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.part{display:grid;place-items:center;aspect-ratio:1;width:100%;border-radius:12px;overflow:hidden;background:linear-gradient(145deg,#2a2011,#15100a);border:1px solid #2c2416;color:var(--gold2);font-weight:700;font-size:34px;font-family:Outfit,Inter,sans-serif}
.part img{width:100%;height:100%;object-fit:cover}
.part.big{width:140px;flex:none}
.pshowhead{display:flex;gap:16px;align-items:center;margin:16px 0 8px}.pshowhead h2{margin:0 0 4px;font-size:22px}.pshowhead .sub{margin:0 0 10px}
.pep .rlogo img{object-fit:cover;background:none}
.pmini{grid-template-columns:minmax(0,1fr) auto;padding-bottom:6px}
.pmini .ic{min-width:38px;font-size:15px;font-weight:600}.pmini #pMiniPlay{font-size:18px}.prate{color:var(--gold2)!important}
.pmini #pMiniArt img{width:100%;height:100%;object-fit:cover}
.pbar{grid-column:1/-1;display:flex;align-items:center;gap:10px;padding:0 4px}.pbar input{flex:1;accent-color:var(--gold)}.pbar span{color:var(--dim);font-size:12px;white-space:nowrap}
body.pod-on #mini{display:none!important}
#pCats{flex-wrap:nowrap;overflow-x:auto}#pCats .chip{flex:none}
@media (max-width:600px){.pgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.pmini .ic{min-width:32px;font-size:13px}.part.big{width:100px}}
.pmini .mini-t{min-width:0}.pmini .mini-t b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pmini .mini-t span{display:block;color:var(--dim);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pmini .rlogo{width:42px;height:42px;font-size:16px;cursor:pointer}.pmini #pMiniName{cursor:pointer}
@media (max-width:600px){.pmini{grid-template-columns:minmax(0,1fr)}.pmini>.row{justify-content:space-between}.pmini .ic{min-width:44px;font-size:15px}}
body.pod-on main{padding-bottom:calc(190px + var(--sa-b))}

.about-head{display:flex;align-items:center;gap:12px;margin-bottom:10px}.about-head img{width:56px;height:56px;border-radius:14px}.about-head b{display:block;font-size:18px}.about-head span{color:var(--dim);font-size:13px}
.about dl{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;margin:12px 0}.about dt{color:var(--dim)}.about dd{margin:0;font-weight:600}
.pcardx{position:relative}.pnew{position:absolute;top:12px;right:12px;z-index:1;font-style:normal;font-size:12px;font-weight:700;background:var(--gold);color:#1a1206;border-radius:999px;padding:3px 9px}
.histhead{display:flex;align-items:center;justify-content:space-between;gap:12px}.histhead h3{margin-bottom:6px}
.linkbtn{background:none;border:0;color:var(--gold2);cursor:pointer;font-weight:600;font-size:14px;min-height:40px;padding:0 4px}
#rHistWrap,#pHistWrap{margin-bottom:14px}

/* 10-band equalizer */
.eq{grid-template-columns:repeat(11,minmax(0,1fr));gap:4px;max-width:720px}
.eq label{font-size:11.5px}
.hdrow{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px;margin-top:14px;max-width:720px}
.slider.hd span b{color:var(--gold2)}
#eqPresets{flex-wrap:nowrap;overflow-x:auto}#eqPresets .chip{flex:none}
@media (max-width:600px){.hdrow{grid-template-columns:1fr}.eq label{font-size:10px}.eq label b{font-size:10px}}
/* more themes */
:root[data-pal=emerald]{--gold:#22c55e;--gold2:#6ee7a0}
:root[data-pal=amethyst]{--gold:#a26bf0;--gold2:#c9a6ff;--bg:#0d0914;--panel:#171022;--line:#2a1f3d}
:root[data-pal=ocean]{--gold:#22b8cf;--gold2:#7fe3f2;--bg:#05121a;--panel:#0a1d28;--line:#163442}
:root[data-pal=sunset]{--gold:#f97316;--gold2:#fdba74;--bg:#140a05;--panel:#211208;--line:#3a2210}
:root[data-pal=crimson]{--gold:#e11d48;--gold2:#fb7185}
:root[data-pal=copper]{--gold:#c8743c;--gold2:#eaa36f}
:root[data-pal=pink]{--gold:#f472b6;--gold2:#f9a8d4;--bg:#140a10;--panel:#22111b;--line:#3b1e2f}
:root[data-pal=lime]{--gold:#a3e635;--gold2:#d9f99d}
:root[data-pal=ice]{--gold:#9ad8f2;--gold2:#d6f1fb;--bg:#0a1016;--panel:#121c25;--line:#22323f}
:root[data-pal=midnight]{--gold:#6d7cff;--gold2:#a9b2ff;--bg:#070a1a;--panel:#0f1430;--line:#1f2752}
:root[data-pal=forest]{--gold:#5fae5a;--gold2:#9fd89a;--bg:#07100a;--panel:#0f1d13;--line:#1f3624}
:root[data-pal=wine]{--gold:#b4415f;--gold2:#e38aa1;--bg:#12070b;--panel:#1f0d14;--line:#3a1a26}
:root[data-pal=royal]{--gold:#c9a227;--gold2:#ecd27a;--bg:#0e0818;--panel:#1a1029;--line:#2f2148}
:root[data-pal=neon]{--gold:#ff2fd2;--gold2:#7df9ff;--bg:#06040c;--panel:#110b1e;--line:#2a1a45}
:root[data-pal=coffee]{--gold:#c69c6d;--gold2:#e6c9a3;--bg:#120c08;--panel:#1e150f;--line:#35271c}
:root[data-pal=light]{--gold:#a8781e;--gold2:#8a5f10;--bg:#f6f1e7;--panel:#ffffff;--line:#e3d9c6;--ink:#1f1a12;--dim:#6b604f}
:root[data-pal=light] body{background:var(--bg);color:var(--ink)}
:root[data-pal=light]{color-scheme:light}
:root[data-pal=light] .mini,:root[data-pal=light] .rmini,:root[data-pal=light] .side,:root[data-pal=light] .topbar{background:#fffaf0;color:var(--ink)}
:root[data-pal=light] .chip,:root[data-pal=light] input,:root[data-pal=light] select{background:#fff;color:var(--ink);border-color:var(--line)}
:root[data-pal=light] .rlogo,:root[data-pal=light] .part{background:#efe6d4;border-color:var(--line)}
:root[data-pal=light] h1,:root[data-pal=light] h2,:root[data-pal=light] .brand,:root[data-pal=light] .topbar span,:root[data-pal=light] .install b,:root[data-pal=light] .rrow b,:root[data-pal=light] .pcardx b,:root[data-pal=light] .mini-t b{color:var(--ink)}
:root[data-pal=light] h3{color:var(--gold2)}
:root[data-pal=light] .install{background:#fffaf0;border-color:#a8781e66}:root[data-pal=light] .install p{color:var(--dim)}
:root[data-pal=light] .nav button{color:var(--ink)}:root[data-pal=light] .nav button.on{background:#f1e6cf}
:root[data-pal=light] .ic{color:var(--ink)}:root[data-pal=light] .chip{color:var(--ink)}:root[data-pal=light] .chip.on{color:#7a530c;background:#f4e5c2}
:root[data-pal=light] .rrow:hover,:root[data-pal=light] .rrow.on{background:#f8f0de}:root[data-pal=light] .pcard{background:#fff}
:root[data-pal=light] .rplay{color:var(--gold2)}
/* App name in shiny gold capitals */
.goldname{font-family:Cinzel,'Trajan Pro',Georgia,'Times New Roman',serif!important;font-weight:700;letter-spacing:.08em!important;text-transform:uppercase;
  background:linear-gradient(100deg,#8a5a12 0%,#d4a537 18%,#fff3c4 32%,#f0c75e 44%,#a8741c 58%,#f7d98a 72%,#c8901f 86%,#7a4e0e 100%);background-size:250% 100%;
  -webkit-background-clip:text;background-clip:text;color:transparent!important;-webkit-text-fill-color:transparent;
  filter:drop-shadow(0 1px 0 #3a2506) drop-shadow(0 0 6px #f0c75e55);animation:goldshine 6s linear infinite}
@keyframes goldshine{0%{background-position:0% 50%}100%{background-position:250% 50%}}

.topbar .goldname{font-size:19px}.brand .goldname{font-size:19px}
:root[data-pal=light] .goldname{filter:drop-shadow(0 1px 0 #fff) drop-shadow(0 1px 2px #8a5a1266)}

/* 25-band equalizer: scrolls sideways on small screens */
.eq{display:grid;grid-template-columns:repeat(26,34px);gap:2px;max-width:none;overflow-x:auto;padding-bottom:8px;scrollbar-width:thin}
.eq label{font-size:10.5px;min-width:0}.eq label b{font-size:10.5px}.eq label:last-child{border-left:1px solid var(--line);padding-left:2px}
/* karaoke */
.kdrop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;min-height:150px;border:2px dashed #d4a53766;border-radius:18px;padding:18px;margin:6px 0 12px;cursor:pointer;background:#d4a5370a;transition:background .15s,border-color .15s}
.kdrop:hover,.kdrop.over{border-color:var(--gold);background:#d4a5371f}.kdrop b{font-size:18px;color:var(--ink)}.kdrop span{color:var(--dim)}.kdrop u{color:var(--gold2)}
.kdrop-i{font-size:34px}
.kbar{height:8px;border-radius:99px;background:#0006;overflow:hidden;margin:6px 0}.kbar i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--gold),var(--gold2));transition:width .3s}
.kplayer .kp-top{display:flex;gap:12px;align-items:center;margin-bottom:10px}.kplayer .kp-top b{display:block;font-size:18px}.kplayer .kp-top span{color:var(--dim)}
.kp-ctl{display:flex;justify-content:center;align-items:center;gap:18px;margin:8px 0 14px}.kp-ctl .ic{font-weight:600}
.kpick{display:flex;flex-direction:column;gap:4px;max-height:50vh;overflow:auto}.kpick label{display:flex;gap:10px;align-items:center;min-height:40px}.kpick span{color:var(--dim)}.kpick b{color:var(--ink)}
.kmenu{display:flex;flex-direction:column;gap:10px}
.krow .rlogo{font-size:22px}
.mini-ctl #miniRep.on,.ic.on{color:var(--gold2)}

/* bedside: stopwatch and timer */
.bed{justify-content:flex-start;padding-top:calc(60px + var(--sa-t))}
.bedtabs{display:flex;gap:6px;background:#ffffff0d;border:1px solid #ffffff1a;border-radius:999px;padding:4px;margin-bottom:18px}
.bedtabs button{background:none;border:0;color:var(--dim);font:600 14px Inter,sans-serif;min-height:40px;padding:0 16px;border-radius:999px;cursor:pointer}
.bedtabs button.on{background:var(--gold);color:#1a1206}
.btpane{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%;max-width:640px}
.btpane[hidden]{display:none}
.tnum{font-variant-numeric:tabular-nums;letter-spacing:-.02em}
#swShow,#tmShow{font-size:clamp(56px,16vw,150px)}
.laps{list-style:none;padding:0;margin:8px 0 0;width:100%;max-width:360px;max-height:34vh;overflow:auto;counter-reset:lap}
.laps li{display:flex;justify-content:space-between;padding:8px 6px;border-bottom:1px solid #ffffff14;color:var(--ink);font-variant-numeric:tabular-nums}
.laps li span{color:var(--dim)}
.tmset{display:flex;gap:12px;justify-content:center}.tmset label{display:flex;flex-direction:column;gap:4px;color:var(--dim);font-size:13px}
.tmset input{width:84px;text-align:center;font-size:22px;padding:8px;border-radius:12px;border:1px solid var(--line);background:#ffffff0d;color:var(--ink)}
.tmquick{flex-wrap:wrap;max-width:520px}
#tmShow.ringing{color:#ef4444;opacity:1;animation:ring .6s ease-in-out infinite alternate}
@keyframes ring{from{transform:scale(1)}to{transform:scale(1.05)}}
/* App name on two lines: OCEANUS on top, RADIO underneath, nothing cut off */
.goldname{display:inline-flex!important;flex-direction:column;align-items:center;justify-content:center;line-height:1!important;padding:3px 4px 4px;overflow:visible;white-space:nowrap;letter-spacing:0!important;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.goldname b,.goldname i{display:block;font-style:normal;font-weight:700;background:inherit;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.goldname b{font-size:20px;letter-spacing:.12em;margin-right:-.12em}
.goldname i{font-size:12.5px;letter-spacing:.62em;margin-right:-.62em;margin-top:3px}
.topbar .goldname,.brand .goldname{font-size:inherit}
.brand .goldname b{font-size:22px}.brand .goldname i{font-size:14px}
/* RADIO spread evenly across the full width of OCEANUS */
.goldname{align-items:stretch}
.goldname b{text-align:center}
.goldname i{display:flex!important;justify-content:space-between;letter-spacing:0!important;margin-right:0!important;padding:0 .04em}
.goldname i span{display:block}
.goldname i span{font:inherit!important;letter-spacing:0!important;color:transparent!important;-webkit-text-fill-color:transparent}

/* repeat button: circle of arrows; dim = off, gold = on, small 1 = this song */
.repbtn{position:relative;display:inline-grid;place-items:center;color:var(--dim)}
.repbtn.on{color:var(--gold2)}
.repico{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.rep1{position:absolute;top:4px;right:3px;min-width:15px;height:15px;border-radius:99px;background:var(--gold);color:#1a1206;font:700 10px/15px Inter,sans-serif;text-align:center;padding:0 3px}
/* skip buttons drawn as << and >> */
.skipico{width:26px;height:26px;fill:currentColor}
/* karaoke pass */
.kpass{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:4px 0 12px;padding:10px 14px;border:1px solid #d4a53755;border-radius:14px;background:#d4a53712}
.kpass>span{flex:1 1 180px;color:var(--ink)}.kpass>span b{color:var(--gold2);font-size:18px}
.kpass.out{border-color:#f08a7888;background:#f08a7814}.kpass.out>span b{color:#f08a78}
.kpass.ok{border-color:#6fcf8f66;background:#6fcf8f12}.kpass.ok>span{color:#8fe0a8}
.kpass .lnk,.lnk{background:none;border:0;padding:4px 2px;color:var(--gold2);text-decoration:underline;cursor:pointer;font:inherit;font-size:14px}
.kplans{display:grid;gap:10px;margin:12px 0}
.kplan{position:relative;display:flex;flex-direction:column;gap:2px;padding:14px 16px;border-radius:14px;border:1px solid var(--line);background:#ffffff08;color:var(--ink);text-decoration:none;transition:border-color .15s,background .15s}
.kplan:hover{border-color:var(--gold);background:#d4a5371a}
.kplan b{font-size:19px}.kplan span{color:var(--dim);font-size:14px}
.kplan.life{border:2px solid var(--gold);background:linear-gradient(135deg,#d4a53726,#d4a5370a)}
.kplan.life b{color:var(--gold2)}
.kplan em{position:absolute;top:-10px;right:12px;font-style:normal;font-size:12px;font-weight:700;letter-spacing:.04em;padding:2px 9px;border-radius:99px;background:var(--gold);color:#1a1205}

/* Now Playing: same controls as the karaoke player */
.ctl.ctl7{gap:6px}.ctl.ctl7 .ic:not(.huge){min-width:40px;font-weight:600}
@media (max-width:380px){.ctl.ctl7{gap:1px}.ctl.ctl7 .ic:not(.huge){min-width:36px}.ctl.ctl7 .ic.huge{width:64px;height:64px}}
.about dl.about-pass{margin-top:4px;padding-top:12px;border-top:1px solid var(--line)}.about dd.about-btns{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px;font-weight:400}

/* OCEANUS: every letter the same distance apart, like RADIO */
.goldname b{display:flex!important;justify-content:center;gap:.16em;letter-spacing:0!important;margin-right:0!important;font-kerning:none}
.goldname b span{display:block;font:inherit!important;letter-spacing:0!important;color:transparent!important;-webkit-text-fill-color:transparent}

/* Main logo: the same moving gold shine as the app name */
.shinylogo{position:relative;display:inline-block;flex:none;line-height:0;border-radius:10px;overflow:hidden;filter:drop-shadow(0 0 6px #f0c75e55);isolation:isolate}
.about-head .shinylogo{border-radius:14px}
.shinylogo img{display:block}
.shinylogo::after{content:'';position:absolute;top:0;bottom:0;left:-60%;width:60%;pointer-events:none;mix-blend-mode:screen;
  background:linear-gradient(110deg,transparent 0%,#fff3c455 30%,#fffbe8cc 50%,#fff3c455 70%,transparent 100%);
  transform:translateX(-100%);animation:logoshine 6s linear infinite;will-change:transform}
@keyframes logoshine{0%{transform:translateX(0)}30%{transform:translateX(370%)}100%{transform:translateX(370%)}}


/* Extras on wide screens: cards side by side, and every control stretched to the card's full width */
.eq{grid-template-columns:repeat(26,minmax(34px,1fr))}
.eq label{width:100%}
.hdrow{max-width:none}
#tab-pro .slider{max-width:none}
@media (min-width:900px){
  #tab-pro.on{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;align-items:stretch}
  #tab-pro>*{margin:0;min-width:0;grid-column:span 3}
  #tab-pro>.pro-head,#tab-pro>.pcard:has(#eq){grid-column:1/-1}
  /* Modes, Fix your library and Backup share one row; Theme and About share the last */
  #tab-pro>.pcard:nth-child(7){grid-column:1/-1}
  #tab-pro .pcard{display:flex;flex-direction:column}
  #tab-pro .pcard>.note:last-child{margin-top:auto;padding-top:8px}
  #tab-pro .pcard .row{flex-wrap:wrap}
  #tab-pro .about dl{grid-template-columns:auto 1fr}
}


/* Karaoke unlock box inside the Backup card */
.bpass{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.bpass h4{margin:0 0 6px;color:var(--gold2);font-size:16px}
.bpass-status{margin:0 0 10px;font-weight:600}.bpass-status.ok{color:#8fe0a8}.bpass-status.out{color:#f08a78}
.bpass-list{margin:10px 0 0;padding-left:18px;color:var(--dim);font-size:13.5px;line-height:1.5}.bpass-list li{margin:3px 0}.bpass-list b{color:var(--ink)}
@media (min-width:900px){
  /* Backup takes a full row: backup files on the left, the karaoke unlock on the right */
  #tab-pro>.pcard:has(#backupPass:not([hidden])){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:28px;align-content:start}
  #tab-pro>.pcard:has(#backupPass:not([hidden]))>*{grid-column:1}
  #tab-pro>.pcard:has(#backupPass:not([hidden]))>.note{margin-top:0}
  #tab-pro>.pcard:has(#backupPass:not([hidden]))>#backupPass{grid-column:2;grid-row:1/span 4;margin-top:0;padding:0 0 0 24px;border-top:0;border-left:1px solid var(--line)}
}
.bpass-plan{margin:0 0 4px;color:var(--dim)}.bpass-plan b{color:var(--gold2)}

/* Car mode: five big buttons fit on a phone, icons scale with the buttons */
.car-ctl{gap:10px;flex-wrap:nowrap}
.car-ctl button{width:clamp(56px,17vw,120px);height:clamp(56px,17vw,120px);border-radius:22px;display:grid;place-items:center}
.car-ctl .skipico{width:46%;height:46%}
.car-ctl .play{font-size:clamp(26px,7vw,40px)}
.pmini .skipico{width:22px;height:22px}

/* Karaoke maker: one row per song, several can work at once */
.kwork-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.kjobs{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.kjob{padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#ffffff06}
.kjob.working{border-color:#d4a53766}.kjob.done{border-color:#6fcf8f55}.kjob.failed{border-color:#f08a7866}
.kjob-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.kjob-top b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kjob .note{margin:4px 0 2px}.kjob .ic.sm{min-width:32px;min-height:32px;font-size:15px}
.kjob-ok{color:#8fe0a8;font-weight:700}.kjob.failed .note{color:#f08a78}.kjob.waiting .kbar{opacity:.4}
.klanes{display:inline-flex;align-items:center;gap:8px;margin-left:auto;color:var(--dim);font-size:14px}.klanes select{min-height:36px}

/* Lite mode (phones, low-memory devices): fewer heavy effects, same colors */
.lite .topbar{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:#0b0906!important}
.lite .hero-spin{animation:none}
.lite .rrow,.lite .pcardx,.lite .song{content-visibility:auto;contain-intrinsic-size:auto 64px}
/* The gold name and logo always shine, on every device, even with the phone's "reduce animations" setting on */
.goldname{animation:goldshine 6s linear infinite!important}
.shinylogo::after{animation:logoshine 6s linear infinite!important;opacity:1!important}
.klanes+.klanes{margin-left:12px}
@media (max-width:600px){.klanes,.klanes+.klanes{margin-left:0!important}}

/* Phones and tablets: logo and name centered at the top, menu button stays on the left */
.topbrand{position:absolute;left:50%;top:var(--sa-t);bottom:0;transform:translateX(-50%);display:flex;align-items:center;gap:10px;pointer-events:none;white-space:nowrap}
/* Dragon King emblem: round logo */
.shinylogo,.shinylogo img,.brand img,.topbar img,.about-head img{border-radius:50%!important}
.brand img,.topbar img{box-shadow:none!important}
/* Drop-down menus: smaller, cleaner type with a gold arrow (every drop-down in the app) */
select{-webkit-appearance:none;appearance:none;font-family:Inter,system-ui,"Segoe UI",Roboto,sans-serif;font-size:14px;font-weight:500;letter-spacing:.015em;line-height:1.2;min-height:40px;padding:0 38px 0 14px;color:#f1e4c3;background-color:var(--panel);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23e8c466' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:12px 8px;border:1px solid #d4a53755;cursor:pointer;text-overflow:ellipsis;white-space:nowrap;transition:border-color .15s,box-shadow .15s}
select:hover{border-color:#e8c466aa}
select:focus{border-color:var(--gold2);box-shadow:0 0 0 3px #e8c46622;outline:none}
select option,select optgroup{font-family:Inter,system-ui,"Segoe UI",Roboto,sans-serif;font-size:14px;font-weight:400;background:#15110a;color:#f1e4c3}
.klanes select{min-height:34px;font-size:13px;padding-right:34px;background-position:right 12px center}
:root[data-pal=light] select{background-color:#fff;color:var(--ink);border-color:var(--line);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239a7420' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:12px 8px}
:root[data-pal=light] select option{background:#fff;color:#1b1407}
/* Songs: the playing song's picture becomes a spinning, shining gold record */
.song.playing .cover,#miniCover,#nowCover{position:relative;overflow:hidden;isolation:isolate;border-radius:50%!important;border:2px solid var(--gold2);
  animation:discspin 8s linear infinite;animation-play-state:paused;box-shadow:0 0 0 1px #0008 inset,0 0 14px #e8c46640}
#nowCover{border-width:3px;box-shadow:0 20px 60px #000c,0 0 0 1px var(--gold),0 0 40px #e8c46633}
html.songs-on .song.playing .cover,html.songs-on #miniCover,html.songs-on #nowCover{animation-play-state:running}
/* record grooves and the gold label in the middle */
.song.playing .cover::before,#miniCover::before,#nowCover::before{content:'';position:absolute;inset:0;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle,#e8c466 0 6%,#0b0906 6.5% 8%,transparent 8.5% 30%,#00000026 31%,transparent 32% 40%,#00000026 41%,transparent 42% 52%,#00000026 53%,transparent 54% 64%,#00000026 65%,transparent 66%)}
/* the shine that sweeps across while it plays */
.song.playing .cover::after,#miniCover::after,#nowCover::after{content:'';position:absolute;top:0;bottom:0;left:-60%;width:60%;pointer-events:none;mix-blend-mode:screen;opacity:0;
  background:linear-gradient(110deg,transparent 0%,#fff3c455 30%,#fffbe8cc 50%,#fff3c455 70%,transparent 100%);transform:translateX(-100%)}
html.songs-on .song.playing .cover::after,html.songs-on #miniCover::after,html.songs-on #nowCover::after{opacity:1;animation:logoshine 3s linear infinite}
@keyframes discspin{to{transform:rotate(360deg)}}
/* songs with no picture: the Dragon King logo is the spinning record */
.song.playing .cover:not([style*="url("]),#miniCover:not([style*="url("]),#nowCover:not([style*="url("]){background:#0b0906 url("icons/logo.png") center/100% no-repeat;font-size:0!important;color:transparent}
#nowCover:not([style*="url("]){background-image:url("icons/logo-512.png");background-size:100%}
.song.playing .cover:not([style*="url("])::before,#miniCover:not([style*="url("])::before,#nowCover:not([style*="url("])::before{display:none}
/* Now playing: gold sound waves move inside the logo of the station or podcast that is playing */
html.radio-live .rrow.on:not(.pep) .rlogo,html.radio-live #rMiniLogo,html.pod-live .rrow.pep.on .rlogo,html.pod-live #pMiniArt{position:relative;border-color:var(--gold2);box-shadow:0 0 0 1px var(--gold2),0 0 12px #e8c46655}
html.radio-live .rrow.on:not(.pep) .rlogo::after,html.radio-live #rMiniLogo::after,html.pod-live .rrow.pep.on .rlogo::after,html.pod-live #pMiniArt::after{
  content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;
  background-color:#0b0906a6;
  background-image:linear-gradient(#f6dd8a,#c9952c),linear-gradient(#f6dd8a,#c9952c),linear-gradient(#f6dd8a,#c9952c),linear-gradient(#f6dd8a,#c9952c),linear-gradient(#f6dd8a,#c9952c);
  background-repeat:no-repeat;
  background-position:18% 50%,34% 50%,50% 50%,66% 50%,82% 50%;
  background-size:10% 30%,10% 60%,10% 85%,10% 45%,10% 25%;
  animation:soundwave 1.1s ease-in-out infinite alternate}
@keyframes soundwave{
  0%{background-size:10% 30%,10% 60%,10% 85%,10% 45%,10% 25%}
  20%{background-size:10% 55%,10% 35%,10% 50%,10% 80%,10% 40%}
  40%{background-size:10% 80%,10% 70%,10% 30%,10% 55%,10% 65%}
  60%{background-size:10% 40%,10% 85%,10% 65%,10% 30%,10% 80%}
  80%{background-size:10% 65%,10% 45%,10% 80%,10% 70%,10% 35%}
  100%{background-size:10% 35%,10% 75%,10% 40%,10% 85%,10% 55%}}
/* Made-up station badge when a station has no picture: its own color, with call letters, frequency or initials */
.rlogo,.part{container-type:size}
.lbadge{width:100%;height:100%;display:grid;place-items:center;position:relative;overflow:hidden;
  background:radial-gradient(120% 90% at 30% 15%,hsl(var(--h) 70% 46%) 0%,hsl(var(--h) 62% 28%) 55%,hsl(var(--h) 55% 14%) 100%);
  box-shadow:inset 0 0 0 1.5px #f0c75e99,inset 0 -6px 12px #0006;
  color:#fff6dc;font-family:Outfit,Inter,sans-serif;font-weight:800;font-size:34cqmin;letter-spacing:-.02em;line-height:1;text-shadow:0 1px 2px #0009;text-align:center}
.lbadge.long{font-size:26cqmin;letter-spacing:-.03em}
.lbadge::after{content:'';position:absolute;inset:0;background:linear-gradient(160deg,#ffffff33 0%,transparent 42%);pointer-events:none}
.rlogo img,.part img{display:block}
:root[data-pal=light] .lbadge{color:#fff}

/* App name: bolder, carved gold capitals with a raised edge, still shining */
.goldname b{font-family:'Cinzel Decorative',Cinzel,Georgia,serif!important;font-weight:900!important;font-size:23px!important}
.brand .goldname b{font-size:25px!important}
.goldname i{font-family:Cinzel,Georgia,serif!important;font-weight:900!important;font-size:12px!important}
.brand .goldname i{font-size:13.5px!important}
.goldname{background-image:linear-gradient(100deg,#7a4e0e 0%,#c99a2e 14%,#fff7d6 26%,#ffe08a 34%,#d9a63a 46%,#8f5f14 56%,#f7d98a 68%,#fff3c4 76%,#c8901f 88%,#6e450c 100%)!important;background-size:250% 100%!important;
  filter:drop-shadow(0 1px 0 #fff3c466) drop-shadow(0 2px 0 #5a3a08) drop-shadow(0 3px 2px #000c) drop-shadow(0 0 10px #f0c75e40)!important}
.about-head span{display:block}#aboutSaved{color:var(--gold2);font-weight:600;margin-top:2px}

/* stations that are off the air right now */
.rrow.off{opacity:.55}
.rrow.off .m{color:var(--muted,#9a8f7a)}

/* artist page: artist photo, missing covers and album covers */
#singerFind{display:block}
#singerFind .artpics{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 6px}
#singerFind .artnote{display:block;font-size:13px;color:var(--dim);margin-bottom:10px}
#singerFind .albums{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}
#singerFind .album{display:flex;align-items:center;gap:10px;max-width:280px;padding:6px 12px 6px 6px;border-radius:12px;border:1px solid rgba(212,175,55,.35);background:rgba(255,255,255,.03);color:inherit;text-align:left;cursor:pointer;font:inherit}
#singerFind .album:hover{border-color:var(--gold)}
#singerFind .album i{flex:none;width:46px;height:46px;border-radius:8px;display:grid;place-items:center;background:#1a140b center/cover;border:1px dashed rgba(212,175,55,.5);color:var(--gold2);font-style:normal;font-size:22px}
#singerFind .album b{display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:190px}
#singerFind .album small{display:block;font-size:12px;color:var(--dim)}
@media (max-width:640px){#singerFind .artpics,#singerFind .albums{justify-content:center}}

/* ===== Four-way shine, used across the whole app =====
   The light travels left to right, right to left, top to bottom, then bottom to top, with a short rest after each pass.
   The jumps between passes happen while the light is outside the picture, so they are never seen. */
@keyframes shine4{
  0%{transform:translate(-80%,0)} 16%{transform:translate(80%,0)} 23%{transform:translate(80%,0)}
  39%{transform:translate(-80%,0)} 45.99%{transform:translate(-80%,0)} 46%{transform:translate(0,-80%)}
  62%{transform:translate(0,80%)} 69%{transform:translate(0,80%)} 85%{transform:translate(0,-80%)}
  99.99%{transform:translate(0,-80%)} 100%{transform:translate(-80%,0)}}
/* the gold lettering: the bright part of the gold moves the same four ways */
@keyframes goldshine{
  0%{background-position:0% 50%} 20%{background-position:100% 50%} 40%{background-position:0% 50%}
  50%{background-position:50% 0%} 70%{background-position:50% 100%} 90%{background-position:50% 0%} 100%{background-position:0% 50%}}
.goldname{background-image:linear-gradient(135deg,#7a4e0e 0%,#c99a2e 14%,#fff7d6 26%,#ffe08a 34%,#d9a63a 46%,#8f5f14 56%,#f7d98a 68%,#fff3c4 76%,#c8901f 88%,#6e450c 100%)!important;
  background-size:260% 260%!important;animation:goldshine 9s ease-in-out infinite!important}
/* logos: a soft diagonal beam of light crosses the picture in all four directions */


/* ===== Spinning records (Songs, the mini player, the big player and Karaoke) =====
   The record turns, but the light on it does not turn with it: the light layer turns back the other way at the same speed,
   so it stays still like a lamp shining on a real record, and a soft glint glides over it the same four ways. */
@keyframes discunspin{to{rotate:-360deg}}
.song.playing .cover::after,#miniCover::after,#nowCover::after,
.kplayer .kp-top .rlogo::after,.krow.on .rlogo::after{content:'';position:absolute;left:-50%;top:-50%;width:200%;height:200%;right:auto;bottom:auto;pointer-events:none;
  mix-blend-mode:screen;opacity:0;border-radius:0;
  background:radial-gradient(circle at 50% 50%,#fffbe8cc 0,#fff3c466 7%,#fff3c41a 15%,transparent 24%);
  transform:translate(-80%,0);rotate:0deg;
  animation:shine4 9s ease-in-out infinite,discunspin 8s linear infinite;animation-play-state:paused}
html.songs-on .song.playing .cover::after,html.songs-on #miniCover::after,html.songs-on #nowCover::after,
html.kar-on .kplayer .kp-top .rlogo::after,html.kar-on .krow.on .rlogo::after{opacity:1;animation:shine4 9s ease-in-out infinite,discunspin 8s linear infinite;animation-play-state:running}
/* the record's own shimmer: two soft fixed reflections across the grooves, held still while the record turns */
.song.playing .cover::before,#miniCover::before,#nowCover::before{
  background:conic-gradient(from 20deg,transparent 0 8%,#fff3c41f 13%,transparent 19% 50%,#fff3c41a 63%,transparent 69%),
    radial-gradient(circle,#e8c466 0 6%,#0b0906 6.5% 8%,transparent 8.5% 30%,#00000026 31%,transparent 32% 40%,#00000026 41%,transparent 42% 52%,#00000026 53%,transparent 54% 64%,#00000026 65%,transparent 66%)!important;
  animation:discunspin 8s linear infinite;animation-play-state:paused}
html.songs-on .song.playing .cover::before,html.songs-on #miniCover::before,html.songs-on #nowCover::before{animation-play-state:running}

/* Karaoke: the song that is singing becomes a spinning Dragon King record too */
.kplayer .kp-top .rlogo,.krow.on .rlogo{position:relative;overflow:hidden;isolation:isolate;border-radius:50%!important;border:2px solid var(--gold2);
  background:#0b0906 url("icons/logo.png") center/100% no-repeat!important;font-size:0!important;color:transparent!important;
  box-shadow:0 0 0 1px #0008 inset,0 0 14px #e8c46640;animation:discspin 8s linear infinite;animation-play-state:paused}
html.kar-on .kplayer .kp-top .rlogo,html.kar-on .krow.on .rlogo{animation-play-state:running}

/* Karaoke: "Pick from My Songs" centered on its own line, and the four settings in even, centered columns */
.kpickbar{display:flex;flex-direction:row;justify-content:center;align-items:center;margin:16px 0 12px}
.kgrid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 16px;max-width:980px;margin:0 auto 6px;justify-items:stretch}
.kgrid .klanes,.kgrid .klanes+.klanes{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;margin:0!important;text-align:center;min-width:0}
.kgrid .klanes span{font-size:13px}
.kgrid .klanes select{width:100%;max-width:240px}
@media (max-width:760px){.kgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
#krCoolNote{text-align:center}
#krCoolNote:empty{display:none}
.kpickbar .btn{flex:0 0 auto;min-width:220px;padding-left:28px;padding-right:28px}

/* Even, centered button rows across the app */
#tab-pro .pcard>.row,#tab-pro .pcard .row.btns{justify-content:center}
.about-head{justify-content:center}
@media (max-width:640px){
  /* Songs page: header text and buttons centered, buttons in equal pairs */
  #tab-library .hero-text{text-align:center}
  #tab-library .hero-text .row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  #tab-library .hero-text .row .btn{width:100%;padding-left:10px;padding-right:10px}
  /* search on its own line, then sort and the three buttons in even columns */
  #tab-library .toolbar{display:grid!important;grid-template-columns:1fr 1fr;gap:10px}
  #tab-library .toolbar #q{grid-column:1/-1}
  #tab-library .toolbar select,#tab-library .toolbar .btn{width:100%;margin:0}
  /* Extras: every button row centered */
  #tab-pro .row{justify-content:center}
}

/* Songs page icon: the black record turns all the time, on every device, and shines; the music note stays still */
.hero-spin{transform-origin:112px 128px;animation:spin 8s linear infinite!important}
.hero-glint{mix-blend-mode:screen;animation:heroglint 9s ease-in-out infinite!important}
@keyframes heroglint{
  0%{transform:translate(-120px,0)} 16%{transform:translate(120px,0)} 23%{transform:translate(120px,0)}
  39%{transform:translate(-120px,0)} 45.99%{transform:translate(-120px,0)} 46%{transform:translate(0,-120px)}
  62%{transform:translate(0,120px)} 69%{transform:translate(0,120px)} 85%{transform:translate(0,-120px)}
  99.99%{transform:translate(0,-120px)} 100%{transform:translate(-120px,0)}}

/* "RADIO" in the same decorative gold lettering as "OCEANUS", everywhere */
.goldname i{font-family:'Cinzel Decorative',Cinzel,Georgia,serif!important;font-weight:900!important}

/* Battery Saver: every moving light and spin holds still; the app looks the same, it just stops moving */
html.saver *,html.saver *::before,html.saver *::after{animation-play-state:paused!important}
html.saver .topbar{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
#saverCard select{max-width:340px;width:100%}
#saverCard .row{justify-content:center}

#clearCard select{max-width:340px;width:100%}
#clearCard .row{justify-content:center}

/* five karaoke settings: same width each, rows centered */
.kgrid{display:flex!important;flex-wrap:wrap;justify-content:center;gap:12px 12px}
.kgrid .klanes,.kgrid .klanes+.klanes{flex:0 1 172px}
@media (max-width:760px){.kgrid .klanes,.kgrid .klanes+.klanes{flex:0 1 calc(50% - 8px)}}
#krModelNote{text-align:center}#krModelNote:empty{display:none}

/* Songs page on phones: when "Add a Folder" is not offered (Android and iPhone), "Add Songs" sits alone in the middle */
#folderBtn[hidden]{display:none!important}
@media (max-width:640px){
  #tab-library .hero-text .row:has(#folderBtn[hidden]){display:flex;justify-content:center}
  #tab-library .hero-text .row:has(#folderBtn[hidden]) .btn{width:auto;min-width:62%;padding-left:28px;padding-right:28px}
}

/* Even centering across the app */
.grid > .empty{grid-column:1/-1}
#plList{grid-template-columns:repeat(auto-fit,minmax(150px,200px));justify-content:center}
.swatches{justify-content:center}
@media (max-width:640px){
  #rQual{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
  #rQual .qkey{justify-content:center}
}
.grid:has(> .empty:only-child){display:block}

/* Artists: small squares, three per row on phones, rows fill from the left */
#singerGrid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;justify-content:start}
#singerGrid .card{padding:8px;border-radius:12px;text-align:center}
#singerGrid .card .disc{font-size:26px;margin-bottom:6px}
#singerGrid .card b{font-size:13px}
#singerGrid .card span{font-size:11px}
@media (max-width:640px){#singerGrid{grid-template-columns:repeat(3,1fr);gap:8px}}

/* ===== Shine stays inside the logo =====
   The light no longer travels as a big sheet that crosses the edges. It is painted inside the round picture itself
   and the picture's own round edge cuts it off, so it only ever shines on the logo or the album art. */
@keyframes shine4bg{
  0%{background-position:90% 50%} 16%{background-position:10% 50%} 23%{background-position:10% 50%}
  39%{background-position:90% 50%} 45.99%{background-position:90% 50%} 46%{background-position:50% 90%}
  62%{background-position:50% 10%} 69%{background-position:50% 10%} 85%{background-position:50% 90%}
  99.99%{background-position:50% 90%} 100%{background-position:90% 50%}}
/* the logo fills its round frame edge to edge, so there is no dark band for light to cross */
.song.playing .cover:not([style*="url("]),#miniCover:not([style*="url("]),#nowCover:not([style*="url("]){background-size:100%!important}
/* spinning records: a soft round glint inside the record only */
.song.playing .cover::after,#miniCover::after,#nowCover::after,
.kplayer .kp-top .rlogo::after,.krow.on .rlogo::after{
  inset:0!important;left:0!important;top:0!important;width:100%!important;height:100%!important;border-radius:50%!important;transform:none!important;
  background:radial-gradient(circle at 50% 50%,#fffbe8c8 0,#fff3c466 6%,#fff3c41a 11%,transparent 17%) 90% 50%/300% 300% no-repeat}
html.songs-on .song.playing .cover::after,html.songs-on #miniCover::after,html.songs-on #nowCover::after,
html.kar-on .kplayer .kp-top .rlogo::after,html.kar-on .krow.on .rlogo::after{animation:shine4bg 9s ease-in-out infinite,discunspin 8s linear infinite!important}
/* the app logo at the top, in the menu and in About: round, edge to edge, light only on the coin */
.shinylogo,.about-head .shinylogo{border-radius:50%!important}
.shinylogo img{transform:none}
.shinylogo::after{inset:0!important;left:0!important;top:0!important;width:100%!important;height:100%!important;transform:none!important;border-radius:50%;
  background:linear-gradient(135deg,transparent 37%,#fff3c455 43%,#fffdf2f2 50%,#fff3c455 57%,transparent 63%) 90% 50%/300% 300% no-repeat;opacity:1!important;mix-blend-mode:screen;
  animation:shine4bg 9s ease-in-out infinite!important}

/* ===== Opening screen: the same dark screen and logo as the phone's startup picture, with the light crossing the coin ===== */
#boot{position:fixed;inset:0;z-index:9999;background:#0b0906;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;transition:opacity .45s ease}
#boot.out{opacity:0;pointer-events:none}
#boot .bootlogo{width:min(56vw,300px);height:min(56vw,300px);filter:drop-shadow(0 0 28px #e8c46655)}
#boot .bootlogo img{width:100%;height:100%}
#boot .bootlogo::after{animation:bootshine 2.6s ease-in-out .1s 1 both!important}
#boot .bootname{animation:bootgold 2.6s ease-in-out .1s 1 both!important}
@keyframes bootsweep{0%{background-position:90% 50%}100%{background-position:10% 50%}}
#boot .bootname{font-size:min(10vw,46px)!important}#boot .bootname b{font-size:min(10vw,46px)!important}#boot .bootname i{font-size:min(4.6vw,21px)!important;margin-top:8px}

/* ===== The light travels four ways, in this order, everywhere in the app:
   left to right, top to bottom, right to left, bottom to top. The jumps between passes happen while the
   light is outside the picture, so they are never seen. ===== */
@keyframes shine4bg{
  0%{background-position:90% 50%} 16%{background-position:10% 50%} 23%{background-position:10% 50%}
  23.01%{background-position:50% 90%} 39%{background-position:50% 10%} 46%{background-position:50% 10%}
  46.01%{background-position:10% 50%} 62%{background-position:90% 50%} 69%{background-position:90% 50%}
  69.01%{background-position:50% 10%} 85%{background-position:50% 90%} 99.99%{background-position:50% 90%} 100%{background-position:90% 50%}}
@keyframes shine4{
  0%{transform:translate(-80%,0)} 16%{transform:translate(80%,0)} 23%{transform:translate(80%,0)}
  23.01%{transform:translate(0,-80%)} 39%{transform:translate(0,80%)} 46%{transform:translate(0,80%)}
  46.01%{transform:translate(80%,0)} 62%{transform:translate(-80%,0)} 69%{transform:translate(-80%,0)}
  69.01%{transform:translate(0,80%)} 85%{transform:translate(0,-80%)} 99.99%{transform:translate(0,-80%)} 100%{transform:translate(-80%,0)}}
@keyframes heroglint{
  0%{transform:translate(-120px,0)} 16%{transform:translate(120px,0)} 23%{transform:translate(120px,0)}
  23.01%{transform:translate(0,-120px)} 39%{transform:translate(0,120px)} 46%{transform:translate(0,120px)}
  46.01%{transform:translate(120px,0)} 62%{transform:translate(-120px,0)} 69%{transform:translate(-120px,0)}
  69.01%{transform:translate(0,120px)} 85%{transform:translate(0,-120px)} 99.99%{transform:translate(0,-120px)} 100%{transform:translate(-120px,0)}}
/* the gold name: the bright part of the gold glides the same four ways */
@keyframes goldshine{
  0%{background-position:100% 50%} 20%{background-position:0% 50%} 25%{background-position:50% 100%} 45%{background-position:50% 0%}
  50%{background-position:0% 50%} 70%{background-position:100% 50%} 75%{background-position:50% 0%} 95%{background-position:50% 100%} 100%{background-position:100% 50%}}
/* opening screen: all four passes once, quickly */
@keyframes bootshine{
  0%{background-position:90% 50%} 22%{background-position:10% 50%} 22.01%{background-position:50% 90%} 47%{background-position:50% 10%}
  47.01%{background-position:10% 50%} 72%{background-position:90% 50%} 72.01%{background-position:50% 10%} 97%{background-position:50% 90%} 100%{background-position:50% 90%}}
@keyframes bootgold{
  0%{background-position:100% 50%} 22%{background-position:0% 50%} 25%{background-position:50% 100%} 47%{background-position:50% 0%}
  50%{background-position:0% 50%} 72%{background-position:100% 50%} 75%{background-position:50% 0%} 97%{background-position:50% 100%} 100%{background-position:50% 100%}}

/* ===== The main logo (opening screen, top of the app, menu, About): a large shining X of light
   crosses the coin the four ways. Song records and karaoke keep their soft round glint. ===== */
.shinylogo::after{
  background:
    linear-gradient(135deg,transparent 43%,#fff3c440 46.5%,#fffdf4f5 50%,#fff3c440 53.5%,transparent 57%) 90% 50%/300% 300% no-repeat,
    linear-gradient(45deg,transparent 43%,#fff3c440 46.5%,#fffdf4f5 50%,#fff3c440 53.5%,transparent 57%) 90% 50%/300% 300% no-repeat,
    radial-gradient(circle at 50% 50%,#ffffffd0 0,#fff3c466 3%,transparent 9%) 90% 50%/300% 300% no-repeat}

/* ===== One opening screen: the coin with a large shining X crossing it the four ways, then the app ===== */
#boot .bootlogo{width:min(66vw,360px)!important;height:min(66vw,360px)!important}
#boot .bootlogo::after{
  background:
    linear-gradient(135deg,transparent 46%,#fff3c450 48.3%,#fffffff2 50%,#fff3c450 51.7%,transparent 54%) 90% 50%/300% 300% no-repeat,
    linear-gradient(45deg,transparent 46%,#fff3c450 48.3%,#fffffff2 50%,#fff3c450 51.7%,transparent 54%) 90% 50%/300% 300% no-repeat,
    radial-gradient(circle at 50% 50%,#ffffffee 0,#fff3c477 2.5%,transparent 7%) 90% 50%/300% 300% no-repeat;
  animation:bootshine 3.6s ease-in-out .2s 1 both!important}
#boot .bootname{animation:bootgold 3.6s ease-in-out .2s 1 both!important}

/* ===== The main logo light: a bright four-point star with a short soft tail behind it,
   crossing the coin left to right, top to bottom, right to left, then bottom to top ===== */
@keyframes starshine{
  0%{background-position:90% 50%,90% 50%,90% 50%,107.5% 50%,200% 200%}
  16%{background-position:10% 50%,10% 50%,10% 50%,27.5% 50%,200% 200%}
  23%{background-position:10% 50%,10% 50%,10% 50%,200% 200%,200% 200%}
  23.01%{background-position:50% 90%,50% 90%,50% 90%,200% 200%,50% 107.5%}
  39%{background-position:50% 10%,50% 10%,50% 10%,200% 200%,50% 27.5%}
  46%{background-position:50% 10%,50% 10%,50% 10%,200% 200%,200% 200%}
  46.01%{background-position:10% 50%,10% 50%,10% 50%,-7.5% 50%,200% 200%}
  62%{background-position:90% 50%,90% 50%,90% 50%,72.5% 50%,200% 200%}
  69%{background-position:90% 50%,90% 50%,90% 50%,200% 200%,200% 200%}
  69.01%{background-position:50% 10%,50% 10%,50% 10%,200% 200%,50% -7.5%}
  85%{background-position:50% 90%,50% 90%,50% 90%,200% 200%,50% 72.5%}
  99.99%{background-position:50% 90%,50% 90%,50% 90%,200% 200%,200% 200%}
  100%{background-position:90% 50%,90% 50%,90% 50%,107.5% 50%,200% 200%}
}
@keyframes bootstar{
  0%{background-position:90% 50%,90% 50%,90% 50%,107.5% 50%,200% 200%}
  22%{background-position:10% 50%,10% 50%,10% 50%,27.5% 50%,200% 200%}
  22%{background-position:10% 50%,10% 50%,10% 50%,200% 200%,200% 200%}
  22.01%{background-position:50% 90%,50% 90%,50% 90%,200% 200%,50% 107.5%}
  47%{background-position:50% 10%,50% 10%,50% 10%,200% 200%,50% 27.5%}
  47%{background-position:50% 10%,50% 10%,50% 10%,200% 200%,200% 200%}
  47.01%{background-position:10% 50%,10% 50%,10% 50%,-7.5% 50%,200% 200%}
  72%{background-position:90% 50%,90% 50%,90% 50%,72.5% 50%,200% 200%}
  72%{background-position:90% 50%,90% 50%,90% 50%,200% 200%,200% 200%}
  72.01%{background-position:50% 10%,50% 10%,50% 10%,200% 200%,50% -7.5%}
  97%{background-position:50% 90%,50% 90%,50% 90%,200% 200%,50% 72.5%}
  100%{background-position:50% 90%,50% 90%,50% 90%,200% 200%,200% 200%}
}
.shinylogo::after{
  background:radial-gradient(circle at 50% 50%,#ffffff 0,#ffffffee 2%,#fff3c488 4.5%,#fff3c422 8%,transparent 11%),
    radial-gradient(ellipse 20% .8% at 50% 50%,#ffffff 0,#fffbe8cc 35%,#fff3c433 70%,transparent 100%),
    radial-gradient(ellipse .8% 20% at 50% 50%,#ffffff 0,#fffbe8cc 35%,#fff3c433 70%,transparent 100%),
    radial-gradient(ellipse 20% 3% at 50% 50%,#fff3c488 0,#fff3c433 50%,transparent 100%),
    radial-gradient(ellipse 3% 20% at 50% 50%,#fff3c488 0,#fff3c433 50%,transparent 100%);
  background-size:300% 300%;background-repeat:no-repeat;
  background-position:90% 50%,90% 50%,90% 50%,200% 200%,200% 200%;
  animation:starshine 9s ease-in-out infinite!important}
#boot .bootlogo::after{
  background:radial-gradient(circle at 50% 50%,#ffffff 0,#ffffffee 2%,#fff3c488 4.5%,#fff3c422 8%,transparent 11%),
    radial-gradient(ellipse 20% .8% at 50% 50%,#ffffff 0,#fffbe8cc 35%,#fff3c433 70%,transparent 100%),
    radial-gradient(ellipse .8% 20% at 50% 50%,#ffffff 0,#fffbe8cc 35%,#fff3c433 70%,transparent 100%),
    radial-gradient(ellipse 20% 3% at 50% 50%,#fff3c488 0,#fff3c433 50%,transparent 100%),
    radial-gradient(ellipse 3% 20% at 50% 50%,#fff3c488 0,#fff3c433 50%,transparent 100%);
  background-size:300% 300%;background-repeat:no-repeat;
  background-position:90% 50%,90% 50%,90% 50%,200% 200%,200% 200%;
  animation:bootstar 3.6s ease-in-out .2s 1 both!important}

/* ===== The main logo light: a six-point star with a short soft tail, crossing the coin the four ways ===== */
@keyframes star6{
  0%{background-position:90% 50%,107.5% 50%,200% 200%}
  16%{background-position:10% 50%,27.5% 50%,200% 200%}
  23%{background-position:10% 50%,200% 200%,200% 200%}
  23.01%{background-position:50% 90%,200% 200%,50% 107.5%}
  39%{background-position:50% 10%,200% 200%,50% 27.5%}
  46%{background-position:50% 10%,200% 200%,200% 200%}
  46.01%{background-position:10% 50%,-7.5% 50%,200% 200%}
  62%{background-position:90% 50%,72.5% 50%,200% 200%}
  69%{background-position:90% 50%,200% 200%,200% 200%}
  69.01%{background-position:50% 10%,200% 200%,50% -7.5%}
  85%{background-position:50% 90%,200% 200%,50% 72.5%}
  99.99%{background-position:50% 90%,200% 200%,200% 200%}
  100%{background-position:90% 50%,107.5% 50%,200% 200%}
}
@keyframes bootstar6{
  0%{background-position:90% 50%,107.5% 50%,200% 200%}
  22%{background-position:10% 50%,27.5% 50%,200% 200%}
  22%{background-position:10% 50%,200% 200%,200% 200%}
  22.01%{background-position:50% 90%,200% 200%,50% 107.5%}
  47%{background-position:50% 10%,200% 200%,50% 27.5%}
  47%{background-position:50% 10%,200% 200%,200% 200%}
  47.01%{background-position:10% 50%,-7.5% 50%,200% 200%}
  72%{background-position:90% 50%,72.5% 50%,200% 200%}
  72%{background-position:90% 50%,200% 200%,200% 200%}
  72.01%{background-position:50% 10%,200% 200%,50% -7.5%}
  97%{background-position:50% 90%,200% 200%,50% 72.5%}
  100%{background-position:50% 90%,200% 200%,200% 200%}
}
.shinylogo::after{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='1'/%3E%3Cstop offset='.25' stop-color='%23fff8dc' stop-opacity='.85'/%3E%3Cstop offset='.6' stop-color='%23ffe9a8' stop-opacity='.3'/%3E%3Cstop offset='1' stop-color='%23ffe9a8' stop-opacity='0'/%3E%3C/radialGradient%3E%3ClinearGradient id='r' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23ffeeb0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='150' cy='150' r='18' fill='url%28%23g%29'/%3E%3Cpath d='M147.60,150.00 L150.00,116.00 L152.40,150.00 Z M148.80,152.08 L120.56,133.00 L151.20,147.92 Z M151.20,152.08 L120.56,167.00 L148.80,147.92 Z M152.40,150.00 L150.00,184.00 L147.60,150.00 Z M151.20,147.92 L179.44,167.00 L148.80,152.08 Z M148.80,147.92 L179.44,133.00 L151.20,152.08 Z' fill='%23fffdf2' fill-opacity='.95'/%3E%3Ccircle cx='150' cy='150' r='4.5' fill='%23fff'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 20% 3% at 50% 50%,#fff3c488 0,#fff3c433 50%,transparent 100%),
    radial-gradient(ellipse 3% 20% at 50% 50%,#fff3c488 0,#fff3c433 50%,transparent 100%);background-size:300% 300%;background-repeat:no-repeat;
  background-position:90% 50%,200% 200%,200% 200%;animation:star6 9s ease-in-out infinite!important}
#boot .bootlogo::after{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='1'/%3E%3Cstop offset='.25' stop-color='%23fff8dc' stop-opacity='.85'/%3E%3Cstop offset='.6' stop-color='%23ffe9a8' stop-opacity='.3'/%3E%3Cstop offset='1' stop-color='%23ffe9a8' stop-opacity='0'/%3E%3C/radialGradient%3E%3ClinearGradient id='r' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23ffeeb0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='150' cy='150' r='18' fill='url%28%23g%29'/%3E%3Cpath d='M147.60,150.00 L150.00,116.00 L152.40,150.00 Z M148.80,152.08 L120.56,133.00 L151.20,147.92 Z M151.20,152.08 L120.56,167.00 L148.80,147.92 Z M152.40,150.00 L150.00,184.00 L147.60,150.00 Z M151.20,147.92 L179.44,167.00 L148.80,152.08 Z M148.80,147.92 L179.44,133.00 L151.20,152.08 Z' fill='%23fffdf2' fill-opacity='.95'/%3E%3Ccircle cx='150' cy='150' r='4.5' fill='%23fff'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 20% 3% at 50% 50%,#fff3c488 0,#fff3c433 50%,transparent 100%),
    radial-gradient(ellipse 3% 20% at 50% 50%,#fff3c488 0,#fff3c433 50%,transparent 100%);background-size:300% 300%;background-repeat:no-repeat;
  background-position:90% 50%,200% 200%,200% 200%;animation:bootstar6 3.6s ease-in-out .2s 1 both!important}

/* ===== Songs and karaoke records: a comet with a bright head and a long gold tail glides across the record
   right to left, top to bottom, left to right, then bottom to top (the tail always trails behind) ===== */
@keyframes comet4{
  0%{background-position:10% 50%,-12% 50%,200% 200%}
  16%{background-position:90% 50%,68% 50%,200% 200%}
  23%{background-position:90% 50%,200% 200%,200% 200%}
  23.01%{background-position:50% 90%,200% 200%,50% 112%}
  39%{background-position:50% 10%,200% 200%,50% 32%}
  46%{background-position:50% 10%,200% 200%,200% 200%}
  46.01%{background-position:90% 50%,112% 50%,200% 200%}
  62%{background-position:10% 50%,32% 50%,200% 200%}
  69%{background-position:10% 50%,200% 200%,200% 200%}
  69.01%{background-position:50% 10%,200% 200%,50% -12%}
  85%{background-position:50% 90%,200% 200%,50% 68%}
  99.99%{background-position:50% 90%,200% 200%,200% 200%}
  100%{background-position:10% 50%,-12% 50%,200% 200%}
}
.song.playing .cover::after,#miniCover::after,#nowCover::after,.kplayer .kp-top .rlogo::after,.krow.on .rlogo::after{background:radial-gradient(circle at 50% 50%,#ffffff 0,#fffffff0 2.2%,#fff3c4aa 4.4%,#fff3c433 7.5%,transparent 11%),
    radial-gradient(ellipse 26% 2.8% at 50% 50%,#fffbe8e6 0,#fff3c488 30%,#fff3c428 65%,transparent 100%),
    radial-gradient(ellipse 2.8% 26% at 50% 50%,#fffbe8e6 0,#fff3c488 30%,#fff3c428 65%,transparent 100%);background-size:300% 300%;background-repeat:no-repeat;
  background-position:10% 50%,200% 200%,200% 200%;mix-blend-mode:screen}
html.songs-on .song.playing .cover::after,html.songs-on #miniCover::after,html.songs-on #nowCover::after,html.kar-on .kplayer .kp-top .rlogo::after,html.kar-on .krow.on .rlogo::after{animation:comet4 9s ease-in-out infinite,discunspin 8s linear infinite!important;animation-play-state:running!important}

/* ===== Header name: a rainbow passes through the gold letters, top to bottom, then bottom to top ===== */
@keyframes rainbowud{
  0%{background-position:50% 100%,50% 50%} 45%{background-position:50% 0%,50% 50%}
  50%{background-position:50% 0%,50% 50%} 95%{background-position:50% 100%,50% 50%} 100%{background-position:50% 100%,50% 50%}}
.topbar .goldname,.brand .goldname{
  background-image:
    linear-gradient(180deg,transparent 38%,#ff4d4dcc 41%,#ffa23acc 44%,#ffe94acc 47%,#58e07acc 50%,#4db8ffcc 53%,#7a6bffcc 56%,#d46bffcc 59%,transparent 62%),
    linear-gradient(135deg,#7a4e0e 0%,#c99a2e 14%,#fff7d6 26%,#ffe08a 34%,#d9a63a 46%,#8f5f14 56%,#f7d98a 68%,#fff3c4 76%,#c8901f 88%,#6e450c 100%)!important;
  background-size:100% 300%,260% 260%!important;background-repeat:no-repeat!important;
  animation:rainbowud 7s ease-in-out infinite!important}

/* ===== Header name rainbow, four ways: top to bottom, bottom to top, right to left, left to right ===== */
@keyframes rainbow4{
  0%{background-position:50% 100%,0% 50%,50% 50%} 22%{background-position:50% 0%,0% 50%,50% 50%}
  25%{background-position:50% 0%,0% 50%,50% 50%} 47%{background-position:50% 100%,0% 50%,50% 50%}
  50%{background-position:50% 100%,0% 50%,50% 50%} 72%{background-position:50% 100%,100% 50%,50% 50%}
  75%{background-position:50% 100%,100% 50%,50% 50%} 97%{background-position:50% 100%,0% 50%,50% 50%}
  100%{background-position:50% 100%,0% 50%,50% 50%}}
.topbar .goldname,.brand .goldname{
  background-image:
    linear-gradient(180deg,transparent 38%,#ff4d4dcc 41%,#ffa23acc 44%,#ffe94acc 47%,#58e07acc 50%,#4db8ffcc 53%,#7a6bffcc 56%,#d46bffcc 59%,transparent 62%),
    linear-gradient(90deg,transparent 41%,#ff4d4dcc 43%,#ffa23acc 45%,#ffe94acc 47%,#58e07acc 49%,#4db8ffcc 51%,#7a6bffcc 53%,#d46bffcc 55%,transparent 57%),
    linear-gradient(135deg,#7a4e0e 0%,#c99a2e 14%,#fff7d6 26%,#ffe08a 34%,#d9a63a 46%,#8f5f14 56%,#f7d98a 68%,#fff3c4 76%,#c8901f 88%,#6e450c 100%)!important;
  background-size:100% 300%,300% 100%,260% 260%!important;background-repeat:no-repeat!important;
  animation:rainbow4 12s ease-in-out infinite!important}

/* ===== Header name: the rainbow crosses the gold letters right to left, top to bottom, left to right, then bottom to top ===== */
@keyframes rainbow4{
  0%{background-position:0% 50%,50% 100%,50% 50%}
  20%,25%{background-position:100% 50%,50% 100%,50% 50%}
  45%,50%{background-position:100% 50%,50% 0%,50% 50%}
  70%,75%{background-position:0% 50%,50% 0%,50% 50%}
  95%,100%{background-position:0% 50%,50% 100%,50% 50%}}
.topbar .goldname,.brand .goldname{
  background-image:
    linear-gradient(90deg,transparent 38%,#ff4d4dcc 41%,#ffa23acc 44%,#ffe94acc 47%,#58e07acc 50%,#4db8ffcc 53%,#7a6bffcc 56%,#d46bffcc 59%,transparent 62%),
    linear-gradient(180deg,transparent 38%,#ff4d4dcc 41%,#ffa23acc 44%,#ffe94acc 47%,#58e07acc 50%,#4db8ffcc 53%,#7a6bffcc 56%,#d46bffcc 59%,transparent 62%),
    linear-gradient(135deg,#7a4e0e 0%,#c99a2e 14%,#fff7d6 26%,#ffe08a 34%,#d9a63a 46%,#8f5f14 56%,#f7d98a 68%,#fff3c4 76%,#c8901f 88%,#6e450c 100%)!important;
  background-size:300% 100%,100% 300%,260% 260%!important;background-repeat:no-repeat!important;
  animation:rainbow4 10s ease-in-out infinite!important}

/* ===== Opening screen name: the same rainbow, right to left, top to bottom, left to right, bottom to top, once ===== */
#boot .bootname{
  background-image:
    linear-gradient(90deg,transparent 38%,#ff4d4dcc 41%,#ffa23acc 44%,#ffe94acc 47%,#58e07acc 50%,#4db8ffcc 53%,#7a6bffcc 56%,#d46bffcc 59%,transparent 62%),
    linear-gradient(180deg,transparent 38%,#ff4d4dcc 41%,#ffa23acc 44%,#ffe94acc 47%,#58e07acc 50%,#4db8ffcc 53%,#7a6bffcc 56%,#d46bffcc 59%,transparent 62%),
    linear-gradient(135deg,#7a4e0e 0%,#c99a2e 14%,#fff7d6 26%,#ffe08a 34%,#d9a63a 46%,#8f5f14 56%,#f7d98a 68%,#fff3c4 76%,#c8901f 88%,#6e450c 100%)!important;
  background-size:300% 100%,100% 300%,260% 260%!important;background-repeat:no-repeat!important;
  animation:rainbow4 3.6s ease-in-out .2s 1 both!important}

/* ===== Theme picker: even rows of equal-size buttons, centered (3 across on phones, more on wide screens) ===== */
#themes{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;justify-content:center}
@media (min-width:700px){#themes{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}}
#themes .sw{justify-content:flex-start;min-width:0;width:100%;padding:0 10px 0 8px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#themes .sw i{flex:none}
#themes{grid-template-columns:repeat(2,minmax(0,1fr))}
#themes .sw{font-size:15px}
@media (max-width:699px){#themes .sw:last-child:nth-child(odd){grid-column:1/-1;justify-self:center;width:calc(50% - 5px)}}
@media (min-width:700px){#themes{grid-template-columns:repeat(4,minmax(0,1fr))}#themes .sw:last-child:nth-child(4n+3){grid-column:span 1}}
@media (min-width:700px){#themes{grid-template-columns:repeat(2,minmax(0,1fr))}#themes .sw:last-child:nth-child(odd){grid-column:1/-1;justify-self:center;width:calc(50% - 5px)}}
/* Gold on top, centered on its own row; the rest in even rows from A to Z */
#themes .sw:last-child:nth-child(odd){grid-column:auto!important;justify-self:stretch!important;width:100%!important}
#themes .sw[data-theme="gold"]{grid-column:1/-1!important;justify-self:center!important;width:calc(50% - 5px)!important}

/* ===== Lightning: a large bolt strikes across the logo and name now and then (header), and twice on the opening screen ===== */
@keyframes bolt{0%,100%{opacity:0} 0.6%{opacity:1} 1.3%{opacity:.15} 2%{opacity:1} 2.8%{opacity:.5} 4%{opacity:0}}
@keyframes boltflash{0%,100%{filter:none} 0.6%{filter:brightness(1.55) drop-shadow(0 0 10px #fff3c4aa)} 1.3%{filter:none} 2%{filter:brightness(1.45) drop-shadow(0 0 8px #fff3c499)} 4%{filter:none}}
.topbrand::before{content:'';position:absolute;left:-8%;right:-8%;top:8%;bottom:8%;z-index:3;pointer-events:none;opacity:0;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100'%3E%3Cpolyline points='0,48 60,30 98,60 150,20 196,66 240,34 282,64 330,26 368,56 400,40' fill='none' stroke='%237cc4ff' stroke-width='12' stroke-linejoin='round' stroke-linecap='round' opacity='.30'/%3E%3Cpolyline points='0,48 60,30 98,60 150,20 196,66 240,34 282,64 330,26 368,56 400,40' fill='none' stroke='%23cdeaff' stroke-width='6' stroke-linejoin='round' stroke-linecap='round' opacity='.75'/%3E%3Cpolyline points='0,48 60,30 98,60 150,20 196,66 240,34 282,64 330,26 368,56 400,40' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpolyline points='150,20 170,6 182,12' fill='none' stroke='%23eaf6ff' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round' opacity='.9'/%3E%3Cpolyline points='240,34 252,58 266,90' fill='none' stroke='%23eaf6ff' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round' opacity='.9'/%3E%3Cpolyline points='330,26 344,8' fill='none' stroke='%23eaf6ff' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round' opacity='.9'/%3E%3C/svg%3E") center/100% 100% no-repeat;filter:drop-shadow(0 0 6px #9fd4ff);animation:bolt 12s linear 3s infinite}
.topbrand{animation:boltflash 12s linear 3s infinite}
@keyframes bootbolt{0%,100%{opacity:0} 8%{opacity:0} 9%{opacity:1} 11%{opacity:.15} 12.5%{opacity:1} 15%{opacity:0} 58%{opacity:0} 59%{opacity:1} 61%{opacity:.2} 62.5%{opacity:1} 65%{opacity:0}}
#boot::before{content:'';position:absolute;left:50%;top:50%;width:min(50vw,280px);height:min(140vw,700px);transform:translate(-50%,-50%);z-index:3;pointer-events:none;opacity:0;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 400'%3E%3Cpolyline points='52,0 30,52 64,96 24,150 70,200 34,248 66,296 28,344 56,400' fill='none' stroke='%237cc4ff' stroke-width='15.600000000000001' stroke-linejoin='round' stroke-linecap='round' opacity='.30'/%3E%3Cpolyline points='52,0 30,52 64,96 24,150 70,200 34,248 66,296 28,344 56,400' fill='none' stroke='%23cdeaff' stroke-width='7.800000000000001' stroke-linejoin='round' stroke-linecap='round' opacity='.75'/%3E%3Cpolyline points='52,0 30,52 64,96 24,150 70,200 34,248 66,296 28,344 56,400' fill='none' stroke='%23ffffff' stroke-width='3.3800000000000003' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpolyline points='24,150 8,170 14,184' fill='none' stroke='%23eaf6ff' stroke-width='2.08' stroke-linejoin='round' stroke-linecap='round' opacity='.9'/%3E%3Cpolyline points='70,200 92,214' fill='none' stroke='%23eaf6ff' stroke-width='2.08' stroke-linejoin='round' stroke-linecap='round' opacity='.9'/%3E%3Cpolyline points='34,248 12,268 20,290' fill='none' stroke='%23eaf6ff' stroke-width='2.08' stroke-linejoin='round' stroke-linecap='round' opacity='.9'/%3E%3C/svg%3E") center/100% 100% no-repeat;filter:drop-shadow(0 0 12px #9fd4ff);animation:bootbolt 4s linear 1 both}
