@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #8de0bd;
}
:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b0e13;
  color: #edf1f7;
  --surface: #121720;
  --border: #252e3c;
  --muted: #8d9aab;
  --accent: #8de0bd;
  transition: --accent 1s linear;
}
* { box-sizing: border-box; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(ellipse at 78% 0%, #18232a 0, #0b0e13 48rem);
  background: radial-gradient(ellipse at 78% 0%, color-mix(in srgb, var(--accent) 10%, #0b0e13) 0, #0b0e13 48rem);
  font-size: 14px;
  line-height: 1.5;
}
h1, h2, p { margin: 0; }
h1 { font-size: 24px; }
h2 { font-size: 16px; letter-spacing: -.02em; }
button, input, select { font: inherit; }
button {
  min-height: 40px;
  padding: .6rem .9rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #1b2430;
  color: #e9eef5;
  font-weight: 600;
  cursor: pointer;
}
button:hover:not(:disabled) { border-color: #3b4a5d; background: #242f3d; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: .42; }
button.primary { border-color: var(--accent); background: var(--accent); color: #12221b; }
button.primary:hover:not(:disabled) { background: #a7eccf; background: color-mix(in srgb, var(--accent) 80%, white); }
.button-with-icon { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.material-symbols-outlined {
  font-family: "Material Symbols Outlined", sans-serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
  font-style: normal;
  font-variation-settings: "FILL" 0, "GRAD" 0, "opsz" 24;
  user-select: none;
}
input:not([type=checkbox]):not([type=range]), select {
  min-width: 0;
  padding: .75rem .9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0f141c;
  color: #edf1f7;
}
input::placeholder { color: #697587; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
.account-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 16px 28px 0;
  color: var(--muted);
  font-size: 12px;
}
button.brand { display: flex; align-items: center; gap: 9px; min-height: 28px; margin-right: auto; padding: 0; border: 0; background: transparent; color: #f2f5f8; font-size: 18px; font-weight: 750; letter-spacing: -.04em; }
button.brand:hover:not(:disabled) { background: transparent; }
.brand-mark { width: 28px; height: 28px; flex: none; object-fit: contain; }
.brand-subtitle { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.cast { display: flex; align-items: center; gap: 8px; }
google-cast-launcher { width: 34px; height: 34px; --connected-color: var(--accent); --disconnected-color: #edf1f7; }
main { width: min(1440px, 100%); margin: 0 auto; padding: 28px; }
.login-card, .settings-card {
  width: min(400px, 100%);
  margin: 8vh auto 0;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}
.login-card > p:not(.eyebrow) { margin-top: 6px; color: var(--muted); }
.settings-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.setting-field { display: grid; gap: 6px; margin-top: 24px; color: #bec8d5; font-weight: 600; }
dialog { width: min(400px, calc(100% - 32px)); padding: 26px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: #edf1f7; }
dialog::backdrop { background: #000a; }
#playlist-form, #song-form, #edit-song-form { display: grid; gap: 12px; }
#playlist-form label, #song-form label, #edit-song-form label { color: #bec8d5; font-weight: 600; }
#playlist-error, #song-error, #edit-song-error { color: #ffb4ad; font-size: 13px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.dialog-actions .danger { margin-right: auto; color: #ffb4ad; }
#login-form { display: grid; gap: 14px; margin-top: 24px; }
#login-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
#login-form input { width: 100%; }
#login-form input:read-only { color: var(--muted); }
.eyebrow { margin-bottom: 5px; color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.app-shell { display: grid; align-items: start; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; }
.app-shell.sidebar-hidden { grid-template-columns: minmax(0, 1fr); }
.sidebar { min-width: 0; padding: 22px 16px; border: 1px solid var(--border); border-radius: 18px; background: #10151de8; }
.sidebar-heading, .queue-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sidebar-heading h2 { margin-left: 8px; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-heading button { min-height: 32px; padding: .35rem .65rem; font-size: 12px; }
.sidebar-actions { display: flex; gap: 6px; }
.playlist-list { display: grid; gap: 5px; max-height: 360px; overflow-y: auto; }
#play-selected { width: 100%; margin-top: 16px; }
#add-song { width: 100%; margin-top: 8px; }
.playlist-button { width: 100%; overflow: hidden; border-color: transparent; background: transparent; color: #bec8d5; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.playlist-button[aria-current=true] { border-color: #42695b; background: #233b32; color: #e7fff3; }
.playlist-button[aria-current=true] { border-color: color-mix(in srgb, var(--accent) 35%, #263028); background: color-mix(in srgb, var(--accent) 16%, #10151d); }
.sidebar-note, .hint, .muted, #cast-status { color: var(--muted); font-size: 12px; }
.sidebar-note { margin: 12px 8px 0; }
.workspace { display: flex; min-width: 0; flex-direction: column; gap: 22px; }
.player-card, .queue-card { border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(145deg, #151c26, #11161e); }
.player-card { position: relative; isolation: isolate; overflow: hidden; padding: clamp(20px, 4vw, 34px); container-type: inline-size; }
#player-background { position: absolute; z-index: -2; inset: -48px; width: calc(100% + 96px); height: calc(100% + 96px); object-fit: cover; filter: blur(40px); opacity: .3; pointer-events: none; }
#visualizer { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; filter: blur(10px) saturate(1.4); pointer-events: none; }
.now-playing { display: flex; align-items: center; gap: 18px; min-width: 0; }
.album-placeholder { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); width: 104px; height: 78px; flex: none; overflow: hidden; place-items: center; border: 1px solid #334d45; border-radius: 12px; background: linear-gradient(145deg, #2c5146, #182a28); color: var(--accent); font-size: 34px; }
#player-artwork { width: 100%; height: 100%; object-fit: cover; }
.now-playing-info { min-width: 0; }
.now-playing .eyebrow { width: fit-content; padding: 2px 6px; border-radius: 4px; background: #10151df0; }
#player-title { overflow-wrap: anywhere; color: #d3dbe5; font-size: 15px; }
#queue-status { margin-top: 4px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.player-controls { display: grid; gap: 12px; margin-top: 20px; }
.output-row, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.output-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.output-label strong { color: #e9eef5; }
.checkbox { display: flex; align-items: center; gap: 8px; color: #bec8d5; }
.audio-player { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; max-width: 800px; min-height: 54px; padding: 5px 14px 5px 8px; border-radius: 28px; background: #30343a; color: #eef0f2; opacity: 0.5; }
.transport-controls { display: flex; align-items: center; }
.icon-button { display: inline-grid; width: 36px; min-width: 36px; min-height: 40px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; }
.audio-player .icon-button:hover:not(:disabled) { background: #ffffff1a; }
.icon-button .material-symbols-outlined { font-size: 22px; }
.seek-control { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 12px; font-variant-numeric: tabular-nums; }
.time-display { flex: none; white-space: nowrap; }
.volume-control { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.seek-control input, .volume-control input { min-width: 0; margin: 0; accent-color: var(--accent); cursor: pointer; }
.seek-control input { width: 100%; }
.volume-control input { width: 72px; }
#volume-value { flex: 0 0 5ch; font-variant-numeric: tabular-nums; text-align: right; }
.seek-control input:disabled, .volume-control input:disabled { cursor: not-allowed; opacity: .42; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.player-hint { margin-top: 0; }
.queue-card { padding: 22px; border-color: #2b3d3b; background: linear-gradient(145deg, #1a2a2a, #10171c); }
.queue-card { border-color: color-mix(in srgb, var(--accent) 20%, #202b30); background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 12%, #10171c), #10171c); }
#playlist-title { display: flex; min-width: 0; color: var(--muted); font-size: 13px; text-align: right; white-space: nowrap; }
#playlist-display-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#playlist-summary { flex: none; white-space: pre; }
#track-search { width: 100%; margin-bottom: 10px; }
#tracks { display: grid; gap: 5px; max-height: 360px; margin: 0; overflow-y: auto; padding: 0; list-style: none; }
#tracks li { display: flex; align-items: center; min-width: 0; border-radius: 9px; }
#tracks li:nth-child(odd) { background: #ffffff06; }
.track-button { display: flex; flex: 1; align-items: center; gap: 12px; width: 100%; min-width: 0; border-color: transparent; background: transparent; color: #c7d0dc; font-weight: 500; text-align: left; overflow-wrap: anywhere; }
.edit-song { flex: none; }
.track-button::before { width: 6ch; flex: none; color: #738195; content: attr(data-track-number); font-size: 12px; font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; }
.track-button[aria-current=true] { border-color: #42695b; background: #233b32; color: var(--accent); }
.track-button[aria-current=true] { border-color: color-mix(in srgb, var(--accent) 35%, #263028); background: color-mix(in srgb, var(--accent) 16%, #10151d); }
.track-button[aria-current=true]:hover:not(:disabled) { background: #2c4a3e; background: color-mix(in srgb, var(--accent) 23%, #10151d); border-color: var(--accent); }
.track-button[aria-current=true]::before { color: var(--accent); }
.hint { margin-top: 16px; }
.activity { margin-top: 18px; padding: 0 4px; color: #c7d0dc; overflow-wrap: anywhere; }
.activity details { margin-top: 8px; color: var(--muted); font-size: 12px; }
.activity summary { cursor: pointer; }
#activity { padding-left: 20px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { :root { transition: none; } }
@container (max-width: 580px) {
  .audio-player { grid-template-columns: auto minmax(0, 1fr); border-radius: 20px; padding: 8px 12px; }
  .seek-control { grid-column: 1 / -1; grid-row: 2; }
  .volume-control { justify-self: end; }
}
@container (max-width: 350px) {
  .audio-player { grid-template-columns: minmax(0, 1fr); }
  .seek-control { grid-column: 1; grid-row: auto; }
  .volume-control { justify-self: start; }
}
@media (max-width: 820px) { .app-shell { grid-template-columns: 230px minmax(0, 1fr); gap: 18px; } main { padding: 18px; } }
@media (max-width: 640px) {
  .account-bar { flex-wrap: wrap; padding: 12px 14px 0; }
  #cast-status { display: none; }
  main { padding: 14px; }
  .app-shell { grid-template-columns: 1fr; gap: 8px; }
  .sidebar { padding: 16px; }
  .playlist-list { max-height: 180px; }
  .workspace { gap: 8px; }
  .player-card, .queue-card { padding: 18px; border-radius: 15px; }
  .album-placeholder { width: 88px; height: 66px; }
  .login-card, .settings-card { margin-top: 4vh; }
}
