:root {
  color-scheme: dark;
  --bg: #000;
  --text: #f5f5f5;
  --muted: #b3b3b8;
  --border: #272c30;
  --hover: #0c0e10;
  --cover: #111315;
  --green: #1ed760;
  --focus: #c5c7cd;
  --ambient-lightness: 42%;
  --ambient-primary-alpha: .23;
  --ambient-secondary-alpha: .14;
  --panel: rgb(0 0 0 / .65);
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fafafa;
  --text: #171719;
  --muted: #51515a;
  --border: #d4d5d8;
  --hover: #f0f0f2;
  --cover: #eaeaec;
  --green: #087d34;
  --focus: #34343b;
  --ambient-lightness: 78%;
  --ambient-primary-alpha: .35;
  --ambient-secondary-alpha: .24;
  --panel: rgb(250 250 250 / .75);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; background: var(--bg); color: var(--text); transition: background-color 180ms, color 180ms; }
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1200ms ease; background: radial-gradient(ellipse at 12% 28%, hsl(var(--hue-a, 0) var(--sat-a, 0%) var(--ambient-lightness) / var(--ambient-primary-alpha)), transparent 68%), radial-gradient(ellipse at 82% 75%, hsl(var(--hue-b, 0) var(--sat-b, 0%) var(--ambient-lightness) / var(--ambient-secondary-alpha)), transparent 72%); }
.ambient-layer[data-active="true"] { opacity: 1; }
main { position: relative; z-index: 1; }
.theme-toggle { z-index: 2; }
.toast { z-index: 3; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; border-radius: 4px; }
.theme-toggle { position: absolute; top: max(10px, env(safe-area-inset-top)); left: max(17px, env(safe-area-inset-left)); display: grid; place-items: center; width: 36px; height: 36px; padding: 9px; background: var(--hover); border: 1px solid var(--border); border-radius: 5px; transition: border-color 180ms; }
.theme-toggle::after { content: ''; position: absolute; inset: -5px; }
.theme-toggle:hover { border-color: var(--muted); }
.theme-toggle svg { width: 16px; height: 16px; }
.sun { display: none; }
[data-theme="light"] .moon { display: none; }
[data-theme="light"] .sun { display: block; }
main { display: flex; align-items: center; min-height: 100vh; min-height: 100svh; padding: 100px 8.8vw 70px; }
.profile { width: 414px; max-width: 100%; transform: translateY(16px); }
h1 { margin: 0 0 12px; font-size: clamp(36px, 3.35vw, 46px); line-height: 1.2; letter-spacing: -.9px; font-weight: 750; }
.socials { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.social { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: transparent; white-space: nowrap; font-size: 12px; line-height: 1.3; color: var(--text); transition: opacity 180ms; }
.social:hover { opacity: .65; }
.social img { flex-shrink: 0; }
[data-theme="light"] .social img { filter: invert(1); }
.divider { width: 1px; height: 10px; background: var(--muted); opacity: .55; flex-shrink: 0; }
.music-card { display: flex; align-items: center; gap: 14px; min-height: 86px; width: 100%; padding: 11px; border: 1px solid var(--border); border-radius: 6px; transition: background 180ms, border-color 180ms; }
.music-card:hover { background: var(--hover); border-color: var(--muted); }
.music-card { background: var(--panel); }
.card-play { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 50%; color: var(--text); }
.card-play svg { width: 16px; height: 16px; }
.music-card:hover .card-play, .music-card[aria-expanded="true"] .card-play { background: var(--text); color: var(--bg); }
.player-panel { margin-top: 12px; }
.player-host { min-height: 152px; border-radius: 12px; overflow: hidden; background: var(--cover); }
.player-host iframe { display: block; width: 100%; height: 152px; border: 0; }
.player-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.player-footer a, .player-footer button { display: inline-flex; align-items: center; min-height: 44px; }
.player-footer button { border: 0; padding: 0 4px; background: transparent; color: var(--muted); font-size: 12px; }
.player-footer a:hover, .player-footer button:hover { color: var(--text); }
.cover-wrap { display: grid; flex: 0 0 62px; width: 62px; height: 62px; place-items: center; overflow: hidden; border-radius: 3px; background: var(--cover); }
.cover-wrap > * { grid-area: 1 / 1; width: 100%; height: 100%; }
#cover { object-fit: cover; }
[hidden] { display: none !important; }
.record { color: var(--muted); }
.music-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; font-size: 12px; line-height: 1.15; }
.track-name, .artist-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-name { font-weight: 700; }
.artist-name { color: var(--muted); }
.listening-status { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; line-height: 1.2; }
.listening-status img { flex-shrink: 0; }
.equalizer { display: none; align-items: center; gap: 3px; height: 19px; margin: 0 5px; flex-shrink: 0; }
.equalizer i { display: block; height: 17px; width: 2px; background: var(--green); border-radius: 2px; animation: equalize 1.1s ease-in-out infinite alternate; }
.equalizer i:nth-child(2) { animation-delay: -.7s; }
.equalizer i:nth-child(3) { animation-delay: -.3s; }
[data-state="playing"] .equalizer { display: flex; }
@keyframes equalize { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.toast { position: fixed; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; max-width: calc(100% - 32px); transform: translateX(-50%) translateY(8px); padding: 11px 16px; color: var(--text); background: var(--hover); border: 1px solid var(--border); border-radius: 6px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity 180ms, transform 180ms; }
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.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; }
.noscript { font-size: 12px; color: var(--muted); }
.local-clock { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }
.clock-location { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 1.8px; }
.clock-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.clock-time { display: inline-flex; align-items: baseline; font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace; font-size: clamp(22px, 5.5vw, 26px); font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: -.8px; line-height: 1; white-space: nowrap; }
.clock-time > span:not(.clock-colon) { display: inline-block; width: 2ch; text-align: center; }
.clock-colon { padding: 0 3px; color: var(--muted); font-size: .8em; }
.clock-seconds { color: var(--muted); }
@media (max-width: 540px) {
  main { padding: 90px 26px 70px; }
  .profile { width: 100%; transform: none; }
  h1 { font-size: 38px; margin-bottom: 14px; }
  .socials { gap: 9px; flex-wrap: wrap; justify-content: flex-start; column-gap: 14px; margin-bottom: 17px; }
  .social { gap: 8px; }
  .divider { display: none; }
  .music-card { gap: 12px; }
  .theme-toggle { left: 22px; top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .equalizer i:nth-child(1) { transform: scaleY(.5); }
  .equalizer i:nth-child(3) { transform: scaleY(.7); }
}
