*{box-sizing:border-box}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
:root{--white:#fff;--glass:rgba(255,255,255,.12);--line:rgba(255,255,255,.25);--muted:rgba(255,255,255,.65);--vibe-accent:hsl(210 55% 58%);--vibe-deep:hsl(210 40% 10%);--vibe-glow:hsl(210 55% 52%);--vibe-hue:210}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#101116;color:#fff;font-family:Inter,"Noto Sans Devanagari",sans-serif}
button,input{font:inherit}
button{color:inherit;border:0;background:none;cursor:pointer}
.app{position:relative;width:100%;height:100svh;min-height:620px;overflow:hidden;isolation:isolate;display:flex;flex-direction:column}
.content{position:relative;flex:1 1 auto;min-height:0;display:flex;flex-direction:column;justify-content:space-between;padding:max(72px,calc(env(safe-area-inset-top) + 60px)) 0 14px}
.background{position:absolute;inset:0;z-index:-4;background-position:center;background-size:cover;background-repeat:no-repeat;background-color:#183d70}
.background video{position:absolute;width:100%;height:100%;object-fit:cover;inset:0}
.wash{position:absolute;inset:0;z-index:-3;background:linear-gradient(180deg,color-mix(in srgb,var(--vibe-deep) 12%,transparent) 0%,transparent 48%,color-mix(in srgb,var(--vibe-accent) 24%,transparent) 100%),linear-gradient(90deg,rgba(0,0,0,.08),transparent 55%,rgba(0,0,0,.15));transition:background 2.6s ease}
.grain{position:absolute;inset:-50%;z-index:-2;opacity:.12;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");transform:rotate(8deg)}
.topbar{position:absolute;top:max(24px,env(safe-area-inset-top));left:28px;right:28px;display:flex;align-items:center;justify-content:space-between;font-size:14px;letter-spacing:.02em}
.listeners{display:flex;gap:9px;align-items:center}
.listeners i{width:11px;height:11px;border-radius:50%;background:#48df8a;box-shadow:0 0 0 6px rgba(72,223,138,.12),0 0 18px rgba(72,223,138,.55)}
.listeners b{font-weight:500}
.circle-btn{width:36px;height:36px;border:2px solid rgba(255,255,255,.75);border-radius:50%;display:grid;place-items:center;font-size:13px;background:rgba(255,255,255,.08);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.hero{flex:0 0 auto;padding:0 28px;display:flex;flex-direction:column;align-items:center}
.hero h1{margin:0;font-family:"Noto Sans Devanagari",sans-serif;font-size:clamp(42px,11vw,68px);font-weight:800;letter-spacing:-.05em;text-shadow:0 2px 18px rgba(0,0,0,.16)}
.glass{background:color-mix(in srgb,var(--vibe-accent) 8%,rgba(20,24,27,.25));border:1px solid rgba(255,255,255,.25);box-shadow:inset 0 1px rgba(255,255,255,.15),0 12px 35px rgba(0,0,0,.12);backdrop-filter:blur(14px) saturate(120%);-webkit-backdrop-filter:blur(14px) saturate(120%)}
.horn{align-self:flex-start;margin-top:18px;border-radius:50px;padding:8px 15px 8px 8px;display:flex;align-items:center;gap:10px;text-align:left;transition:transform .12s,background .2s;flex:0 0 auto}
.horn:active{transform:scale(.96)}
.horn-icon{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.13);font-size:16px;flex:0 0 auto}
.horn strong,.horn small{display:block}
.horn strong{font-family:"Noto Sans Devanagari",sans-serif;font-size:16px;line-height:1.1}
.horn small{font-size:12px;color:var(--muted);margin-top:3px}
.phrase-wrap{flex:0 0 auto;padding:0 28px;display:flex;justify-content:center;align-items:center;gap:12px;min-height:28px}
.phrase{font-family:"Karma","Noto Sans Devanagari",serif;font-weight:400;font-size:21px;letter-spacing:.01em;line-height:1.5;text-align:center;text-shadow:0 2px 10px rgba(0,0,0,.45);transition:opacity .35s ease,transform .35s ease}
.refresh{flex:0 0 auto;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;color:var(--muted);border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.05);transition:background .2s,transform .12s,color .2s;cursor:pointer}
.refresh:hover{color:#fff;background:rgba(255,255,255,.12)}
.refresh:active{transform:scale(.9)}
.refresh svg{width:14px;height:14px}
.player{position:relative;flex:0 0 auto;margin:14px 28px max(28px,env(safe-area-inset-bottom));border-radius:32px;padding:20px 20px 18px;transition:opacity .6s ease}
.player.idle{opacity:.55}
.player.idle:hover,.player.idle:focus-within{opacity:1}
.track{display:flex;gap:16px;align-items:center}
.track-info{min-width:0;flex:1}
.share-btn{flex:0 0 auto;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);color:var(--muted);transition:background .15s,color .15s,transform .12s}
.share-btn:hover{color:#fff;background:rgba(255,255,255,.16)}
.share-btn:active{transform:scale(.92)}
.share-btn svg{width:17px;height:17px}
.art{width:64px;height:64px;flex:0 0 64px;border-radius:50%;background:linear-gradient(135deg,#f7cf58,#e87945 55%,#8b2c21);display:grid;place-items:center;font-size:25px;font-weight:700;box-shadow:0 5px 18px rgba(0,0,0,.2);overflow:hidden;background-size:cover;background-position:center}
.track-info strong{display:block;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.track-info span{display:block;font-size:14px;color:var(--muted);margin-top:4px}
.progress-row{display:grid;grid-template-columns:35px 1fr 35px;align-items:center;gap:8px;margin-top:15px;font-size:11px;color:rgba(255,255,255,.72)}
#seek{width:100%;accent-color:#fff;height:3px}
.controls{display:flex;align-items:center;justify-content:center;gap:20px;margin-top:13px}
.controls button{font-size:16px;opacity:.9;transition:opacity .15s,color .15s,transform .15s;white-space:nowrap;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center}
.controls .play{width:54px;height:54px;border-radius:50%;background:#fff;color:#111;font-size:17px;display:grid;place-items:center;box-shadow:0 5px 20px rgba(0,0,0,.15)}
.controls button.active{opacity:1;color:var(--vibe-glow);transform:scale(1.12)}
.controls button.active::after{content:"";display:block;width:4px;height:4px;border-radius:50%;background:var(--vibe-glow);margin:3px auto 0}

/* Queue panel */
.queue-panel{position:absolute;left:0;right:0;bottom:0;height:min(62vh,520px);z-index:20;background:color-mix(in srgb,var(--vibe-deep) 55%,rgba(12,13,18,.92));backdrop-filter:blur(18px) saturate(120%);-webkit-backdrop-filter:blur(18px) saturate(120%);border-top:1px solid rgba(255,255,255,.18);border-radius:26px 26px 0 0;transform:translateY(100%);transition:transform .28s cubic-bezier(.2,.9,.3,1);display:flex;flex-direction:column;box-shadow:0 -10px 40px rgba(0,0,0,.35)}
.queue-panel.open{transform:translateY(0)}
.queue-header{display:flex;align-items:center;justify-content:space-between;padding:18px 20px 10px;font-size:15px}
.queue-header button{font-size:16px;opacity:.7;width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.08);display:grid;place-items:center}
.queue-list{overflow-y:auto;padding:4px 10px 24px;flex:1}
.queue-item{display:flex;align-items:center;gap:12px;padding:11px 10px;border-radius:14px;cursor:pointer;transition:background .15s}
.queue-item:active{background:rgba(255,255,255,.12)}
.queue-item.active{background:color-mix(in srgb,var(--vibe-accent) 22%,transparent)}
.queue-item .q-num{width:22px;flex:0 0 22px;text-align:center;font-size:12px;opacity:.55}
.queue-item.active .q-num{opacity:0;position:relative}
.queue-item.active .q-num::after{content:"♪";position:absolute;inset:0;opacity:1;color:var(--vibe-glow)}
.queue-item .q-title{font-size:14px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.queue-item.active .q-title{font-weight:600}
.toast{position:absolute;left:50%;bottom:20px;transform:translate(-50%,10px);opacity:0;padding:9px 14px;border-radius:20px;background:rgba(15,15,15,.55);backdrop-filter:blur(10px);font-size:12px;transition:.2s;pointer-events:none}
.toast.show{opacity:1;transform:translate(-50%,0)}
.yt-hidden{position:absolute;width:1px;height:1px;left:-9999px;top:-9999px}
/* This is intentional, not a bug: on screens wider than 700px (desktop/laptop)
   the app is capped to a 500px phone-shaped column with a shadow, since this
   is a mobile-first "app" UI. On phones (width<700px) it already fills the
   full screen. If you want it full-width on desktop too, delete this rule. */
@media(max-height:720px){.hero h1{font-size:46px}.player{padding:16px}.art{width:55px;height:55px;flex-basis:55px}}
/* Extra-short screens (small phones, short browser windows): tighten
   vertical spacing further. Flex layout above already guarantees no
   overlap; these just keep things looking snug when space is tight. */
@media(max-height:600px){.hero h1{font-size:38px}.horn{padding:6px 12px 6px 6px}.horn-icon{width:32px;height:32px;font-size:14px}.phrase{font-size:17px}.player{padding:14px}.art{width:48px;height:48px;flex-basis:48px}.controls{margin-top:9px}}

/* Dynamic vibe accent */
.horn:active,.circle-btn:active{box-shadow:0 0 22px color-mix(in srgb,var(--vibe-glow) 45%,transparent),inset 0 1px rgba(255,255,255,.18)}
.controls .play{box-shadow:0 5px 20px color-mix(in srgb,var(--vibe-glow) 20%,rgba(0,0,0,.15))}
