:root{color-scheme:dark;font:15px/1.45 system-ui,sans-serif;background:#0a101e;color:#dbe7f5}
*{box-sizing:border-box}body{margin:0;min-height:100dvh;background:radial-gradient(ellipse at 49% 47%,#142137,#0a101e 73%)}
main{position:fixed;inset:4% 0 135px}canvas{position:absolute;width:100%;height:100%;inset:0;touch-action:none}#labels{pointer-events:none}
header{position:fixed;z-index:2;top:1rem;left:1rem}
header nav{display:flex;gap:.8rem;flex-wrap:wrap}
header a{display:inline-block;border:1px solid #38506b;border-radius:20px;padding:.35rem .75rem;background:#101d2ee8;color:#d9eee9;font:inherit;font-size:.84rem;text-decoration:none}
header a:hover{border-color:#88d7cb}
:root{--clock-height:176px;--controls-inset:1rem;--controls-gap:.35rem}
.watch-controls{position:fixed;z-index:2;top:var(--controls-inset);right:var(--controls-inset);width:146px;display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;gap:var(--controls-gap)}
.clock{width:100%;height:var(--clock-height);border:0;color-scheme:dark}
#music-panel{position:fixed;z-index:2;top:calc(var(--controls-inset) + var(--clock-height) + 30px + 2 * var(--controls-gap));right:var(--controls-inset);width:min(245px,calc(100vw - 2rem));aspect-ratio:16/9;overflow:hidden;background:#070d17;border-radius:10px;box-shadow:0 8px 24px #0006}
#music-panel iframe{position:absolute;inset:0;display:block;width:100%;height:100%;border:0}
#music-panel.consent-needed{width:min(430px,calc(100vw - 1.1rem));height:min(440px,calc(100dvh - 246px));min-height:145px;aspect-ratio:auto}
footer{position:fixed;bottom:0;width:100%;padding:1rem 1.2rem max(1rem,env(safe-area-inset-bottom));background:linear-gradient(#0a101ecc,#0a101e);text-align:center}
h1{font-size:clamp(1.05rem,2vw,1.4rem);margin:0 0 .3rem}p{margin:.33rem auto;max-width:50rem}a{color:#9ee8db;text-underline-offset:.22em}
.bottom{display:flex;flex-wrap:wrap;justify-content:center;gap:.2rem 1.2rem}#status{color:#afbed1;font-size:.85em}
.bottom .vnt-consent-settings{position:static;display:inline;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:#9ee8db;font:inherit;text-decoration:underline;text-underline-offset:.22em}
.bottom .vnt-consent-settings[hidden]{display:none}
@media(max-height:500px) and (orientation:landscape){
  :root{--clock-height:113px}
  main{inset:0 0 95px}.watch-controls{width:120px}
  #music-panel:not(.consent-needed){width:150px}
  footer{font-size:.72rem;padding:.35rem}
}
@media(max-width:640px),(max-height:500px) and (orientation:landscape) and (pointer:coarse){
  :root{--clock-height:132px;--controls-inset:.55rem}
  body{padding-top:calc(var(--clock-height) + 30px + 2 * var(--controls-gap) + var(--controls-inset))}
  header,.watch-controls{position:absolute}
  .watch-controls{width:120px}
  main{position:relative;inset:auto;height:clamp(290px,calc(100svh - 310px),580px)}
  footer{position:static;font-size:.85rem;padding:.75rem 1rem}
  #music-panel,#music-panel:not(.consent-needed){position:relative;inset:auto;width:min(390px,calc(100% - 2rem));margin:.5rem auto max(1rem,env(safe-area-inset-bottom))}
}

.watch-button{
  appearance:none;box-sizing:border-box;display:inline-grid;place-items:center;
  width:116px;height:30px;padding:0 6px;border:1px solid #38506b;border-radius:20px;
  background:#101d2ee8;color:#e2f1ed;font:500 12px/1 system-ui,sans-serif;
  white-space:nowrap;cursor:pointer
}
.watch-button:hover{border-color:#88d7cb}
.watch-button:focus-visible{outline:2px solid #88d7cb;outline-offset:2px}
