:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --panel: #111111;
  --panel-2: #171717;
  --panel-3: #222222;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #ededed;
  --soft: #cfcfcf;
  --muted: #8a8a8a;
  --faint: #5f5f5f;
  --accent: #ec1f28;
  --accent-soft: rgba(236, 31, 40, 0.14);
  --danger: #ef4444;
  --shadow: 0 22px 64px rgba(0, 0, 0, 0.48);
  --font: "Pretendard Variable", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: progress;
  opacity: 0.58;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(236, 31, 40, 0.72);
  outline-offset: 2px;
}

.app-shell,
.loading-view,
.login-view {
  min-height: 100vh;
}

.loading-view,
.login-view {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 14%, rgba(236, 31, 40, 0.18), transparent 27rem),
    var(--bg);
}

.loading-view {
  gap: 16px;
  color: var(--muted);
}

.pulse-disc {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--accent);
  box-shadow: 0 12px 34px rgba(236, 31, 40, 0.42);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    transform: scale(0.94);
    opacity: 0.74;
  }
}

@keyframes eqbar {
  0%,
  100% {
    transform: scaleY(0.28);
  }

  50% {
    transform: scaleY(1);
  }
}

.yona-spin {
  display: inline-block;
  transform-origin: center;
  animation: yona-spin 0.8s linear infinite;
}

@keyframes yona-spin {
  to {
    transform: rotate(360deg);
  }
}

.dashboard-a-content.dashboard-a-content-transition > [data-screen-label] {
  animation: dashboard-panel-in 0.26s ease-out both;
}

.dashboard-a-now {
  --now-art-size: 340px;
  --now-title-size: 52px;
  --now-hero-gap: 46px;
}

.dashboard-a-now-hero {
  gap: var(--now-hero-gap) !important;
}

.dashboard-a-now-art {
  width: var(--now-art-size) !important;
  height: var(--now-art-size) !important;
}

.dashboard-a-now-title {
  font-size: var(--now-title-size) !important;
  line-height: 1.04 !important;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

@keyframes dashboard-panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) and (min-width: 761px) {
  .dashboard-a-now {
    --now-art-size: clamp(210px, 32vw, 320px);
    --now-title-size: clamp(32px, 5.2vw, 48px);
    --now-hero-gap: clamp(24px, 4vw, 40px);
  }
}

.auth-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(28px, 6vw, 64px) 24px;
  background:
    linear-gradient(180deg, rgba(236, 31, 40, 0.08), transparent 280px),
    #0a0a0a;
}

.auth-panel {
  width: min(560px, 100%);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: #121212;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.auth-panel-compact {
  width: min(520px, 100%);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 12px;
  color: #9b9b9b;
  font-size: 22px;
}

.auth-mark-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.auth-brand strong,
.auth-user-strip strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.auth-brand span:not(.auth-mark),
.auth-user-strip span {
  display: block;
  margin-top: 4px;
  color: #7a7a7a;
  font-size: 12px;
}

.auth-kicker {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-copy h1 {
  margin: 10px 0 14px;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.06;
  letter-spacing: 0;
}

.auth-panel-compact .auth-copy h1 {
  font-size: clamp(28px, 5vw, 38px);
}

.auth-copy p {
  max-width: 470px;
  margin: 0;
  color: #9b9b9b;
  font-size: 14.5px;
  line-height: 1.75;
}

.auth-user-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  margin-top: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: #151515;
}

.auth-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.auth-primary,
.auth-secondary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.auth-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 26px rgba(236, 31, 40, 0.28);
}

.auth-secondary {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1a1a1a;
  color: #ededed;
}

.auth-primary.disabled {
  pointer-events: none;
  opacity: 0.56;
}

@media (max-width: 560px) {
  .auth-view {
    place-items: stretch;
    padding: 18px;
  }

  .auth-panel {
    align-self: center;
    padding: 24px;
  }

  .auth-brand {
    padding-bottom: 22px;
    margin-bottom: 22px;
  }

  .auth-copy h1,
  .auth-panel-compact .auth-copy h1 {
    font-size: 28px;
  }

  .auth-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-primary,
  .auth-secondary {
    width: 100%;
  }
}

.login-panel {
  width: min(480px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(17, 17, 17, 0.92);
  box-shadow: var(--shadow);
}

.login-panel h1 {
  margin: 26px 0 10px;
  font-size: 34px;
  line-height: 1.08;
}

.login-panel p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.65;
}

.brand-row,
.classic-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(236, 31, 40, 0.4);
  font-size: 21px;
}

.brand-row strong,
.classic-brand strong {
  display: block;
  font-size: 16px;
  font-weight: 850;
}

.brand-row span:not(.brand-mark),
.classic-brand span:not(.brand-mark) {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.primary-button,
.subtle-button,
.danger-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 760;
}

.primary-button {
  background: #fff;
  color: #0a0a0a;
}

.subtle-button {
  background: #1a1a1a;
  border: 1px solid var(--line);
  color: var(--text);
}

.danger-button {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.24);
  color: #fecaca;
}

.login-link.disabled {
  pointer-events: none;
  opacity: 0.55;
}

.classic-dashboard {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.classic-layout {
  min-height: 0;
  flex: 1;
  display: flex;
}

.classic-sidebar {
  width: 248px;
  flex: 0 0 248px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 14px;
  background: #0d0d0d;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.classic-brand {
  padding: 6px 8px 16px;
}

.voice-card {
  margin-bottom: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #141414;
}

.voice-head,
.voice-now {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.voice-body {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

.voice-body strong,
.voice-now span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-body span {
  color: var(--muted);
  font-size: 12px;
}

.voice-now {
  justify-content: flex-start;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.classic-nav {
  display: grid;
  gap: 6px;
}

.nav-row {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: transparent;
  color: var(--soft);
  text-align: left;
}

.nav-row:hover,
.nav-row.active {
  background: rgba(236, 31, 40, 0.14);
  color: #fff;
}

.nav-row.active {
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav-row i {
  color: currentColor;
  font-size: 19px;
}

.nav-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
}

.nav-row em {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #1f1f1f;
  color: var(--muted);
  font: 700 11px/1 var(--mono);
  font-style: normal;
}

.sidebar-spacer {
  flex: 1;
}

.classic-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.classic-topbar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto auto;
  align-items: start;
  gap: 14px;
  padding: 12px 22px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.top-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  color: var(--faint);
  font-size: 21px;
}

.top-arrows span {
  width: 24px;
  display: grid;
  place-items: center;
}

.search-form {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 132px 44px;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #151515;
  overflow: hidden;
}

.search-form input,
.search-form select {
  width: 100%;
  height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-form input {
  min-width: 0;
  padding: 0 6px 0 0;
}

.search-form select {
  padding: 0 10px;
  border-left: 1px solid var(--line);
  color: var(--soft);
}

.search-form option {
  color: #111;
}

.search-icon {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 19px;
}

.submit-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #fff;
  font-size: 17px;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 0;
}

.is-loading .form-status {
  min-height: 24px;
  padding: 0 13px 8px 36px;
  line-height: 16px;
}

.top-status {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #161616;
  border: 1px solid var(--line);
}

.top-status strong,
.top-status span:not(.eq) {
  display: block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.top-status span:not(.eq) {
  color: var(--muted);
  font-size: 11px;
}

.classic-avatar {
  width: 40px;
  height: 40px;
  align-self: center;
  border-radius: 50%;
  background: #4a6cd4;
  color: #fff;
  font-weight: 800;
}

.classic-workspace {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 34px 40px 42px;
}

.scry::-webkit-scrollbar {
  width: 10px;
}

.scry::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.13);
  border-radius: 999px;
}

.scry::-webkit-scrollbar-track {
  background: transparent;
}

.scry {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.13) transparent;
}

.eq {
  width: 20px;
  height: 16px;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  color: var(--accent);
  flex: 0 0 auto;
}

.eq i {
  width: 3px;
  height: 100%;
  border-radius: 3px;
  background: currentColor;
  transform-origin: bottom;
  transform: scaleY(0.32);
}

.eq.on i {
  animation: eqbar 0.84s ease-in-out infinite;
}

.eq.on i:nth-child(2) {
  animation-duration: 1.1s;
  animation-delay: 0.16s;
}

.eq.on i:nth-child(3) {
  animation-duration: 0.72s;
  animation-delay: 0.08s;
}

.live-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
}

.live-line strong {
  color: var(--accent);
}

.now-grid {
  min-height: calc(100vh - 244px);
  display: grid;
  grid-template-columns: minmax(260px, 430px) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
  justify-content: center;
}

.cover {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 52%),
    linear-gradient(180deg, var(--cover-color), color-mix(in srgb, var(--cover-color), #080808 38%));
  color: rgba(255, 255, 255, 0.9);
  isolation: isolate;
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.22));
  z-index: 1;
}

.cover img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover span {
  position: relative;
  z-index: 1;
  font-weight: 900;
}

.hero-cover {
  width: min(42vw, 430px);
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.hero-cover span {
  font-size: clamp(72px, 12vw, 150px);
}

.now-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.now-copy h1,
.screen-heading h1 {
  margin: 0;
  letter-spacing: 0;
}

.now-copy h1 {
  max-width: 700px;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.artist {
  margin: 14px 0 0;
  color: var(--soft);
  font-size: 22px;
  font-weight: 700;
}

.requester {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.requester span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #4b6fe8;
  font-weight: 800;
  font-size: 12px;
}

.requester strong {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.requester em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.progress-block {
  max-width: 560px;
  margin-top: 26px;
}

.timeline,
.volume-control input,
.player-progress input,
.player-tools input {
  width: 100%;
  accent-color: var(--accent);
}

.time-row {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font: 500 12px/1 var(--mono);
}

.main-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.control-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #d7d3dc;
  font-size: 21px;
}

.control-button.play {
  width: 64px;
  height: 64px;
  background: #fff;
  color: #0a0a0a;
  font-size: 28px;
}

.control-button.ghost {
  background: transparent;
  color: #9f9aa4;
}

.control-button.active,
.control-button.ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.volume-control {
  width: min(160px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.next-card {
  max-width: 560px;
  display: grid;
  gap: 4px;
  margin-top: 24px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.next-card span {
  color: var(--muted);
  font-size: 12px;
}

.next-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manager-screen,
.playlist-screen {
  display: grid;
  gap: 24px;
}

.screen-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.screen-heading h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.screen-heading span {
  color: var(--muted);
}

.wide-list,
.playlist-tracks,
.youtube-list {
  display: grid;
  gap: 7px;
}

.wide-row,
.playlist-track,
.youtube-row {
  min-width: 0;
  display: grid;
  align-items: center;
  gap: 12px;
  border-radius: 13px;
}

.wide-row {
  grid-template-columns: 34px 54px minmax(0, 1fr) auto auto;
  padding: 12px;
}

.wide-row.now {
  grid-template-columns: 54px minmax(0, 1fr) 28px;
  border: 1px solid rgba(236, 31, 40, 0.22);
  background: rgba(236, 31, 40, 0.08);
}

.wide-row:hover,
.playlist-track:hover,
.youtube-row:hover {
  background: rgba(255, 255, 255, 0.045);
}

.track-index {
  color: var(--muted);
  text-align: center;
  font: 600 13px/1 var(--mono);
}

.row-cover,
.tiny-cover {
  width: 54px;
  height: 54px;
  border-radius: 10px;
}

.tiny-cover {
  width: 48px;
  height: 48px;
}

.row-cover span,
.tiny-cover span {
  font-size: 19px;
}

.wide-row strong,
.playlist-track strong,
.youtube-row strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wide-row em,
.playlist-track span,
.youtube-row span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.row-kicker {
  margin-bottom: 3px;
  color: var(--accent) !important;
  font-size: 11px !important;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.row-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: transparent;
  color: #817c86;
  font-size: 16px;
}

.row-icon:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.row-icon.danger:hover {
  background: rgba(239, 68, 68, 0.18);
}

.playlist-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 22px;
  align-items: start;
}

.playlist-column {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.create-form,
.add-song-form,
.playlist-track-form {
  position: relative;
  display: grid;
  gap: 8px;
}

.create-form {
  grid-template-columns: minmax(190px, 260px) auto;
  align-items: center;
}

.add-song-form,
.playlist-track-form {
  grid-template-columns: minmax(0, 1fr) 44px;
  margin-top: 14px;
}

.create-form input,
.add-song-form input,
.playlist-track-form input {
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: #151515;
  color: var(--text);
}

.create-form button,
.add-song-form button,
.playlist-track-form button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 10px;
  background: #fff;
  color: #0a0a0a;
  font-weight: 800;
}

.youtube-import,
.playlist-detail {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111111;
}

.youtube-import-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.youtube-import h2,
.detail-head h2 {
  margin: 0;
}

.youtube-import p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.youtube-row {
  grid-template-columns: 64px minmax(0, 1fr) 34px;
  padding: 8px;
}

.youtube-row img,
.youtube-cover {
  width: 64px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}

.youtube-cover span {
  font-size: 15px;
}

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.playlist-card {
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.playlist-card.active .playlist-cover {
  box-shadow: 0 0 0 2px var(--accent), var(--shadow);
}

.playlist-cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
}

.playlist-cover span {
  font-size: 48px;
}

.playlist-card strong,
.playlist-card span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-card span {
  color: var(--muted);
  font-size: 12px;
}

.detail-head {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: end;
}

.detail-cover {
  width: 96px;
  height: 96px;
  border-radius: 12px;
}

.detail-cover span {
  font-size: 36px;
}

.detail-head h2 {
  overflow-wrap: anywhere;
  font-size: 24px;
}

.detail-head span {
  color: var(--muted);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.playlist-track {
  grid-template-columns: 48px minmax(0, 1fr) 32px;
  padding: 8px;
}

.empty-text {
  margin: 0;
  padding: 18px 10px;
  color: var(--muted);
  text-align: center;
}

.classic-player {
  height: 92px;
  flex: 0 0 92px;
  display: grid;
  grid-template-columns: 300px minmax(280px, 1fr) 300px;
  gap: 20px;
  align-items: center;
  padding: 0 22px;
  background: #0d0d0d;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.player-track {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.player-cover {
  width: 58px;
  height: 58px;
  border-radius: 9px;
}

.player-cover span {
  font-size: 21px;
}

.player-track strong,
.player-track span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-track span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.player-center {
  min-width: 0;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.player-controls button,
.player-tools button {
  display: grid;
  place-items: center;
  background: transparent;
  color: #cfcfcf;
  font-size: 20px;
}

.player-controls button:hover,
.player-tools button:hover {
  color: #fff;
}

.player-controls .player-play {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: #0a0a0a;
  font-size: 22px;
}

.player-progress {
  width: 100%;
  max-width: 620px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font: 500 12px/1 var(--mono);
}

.player-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
}

.player-tools label {
  width: 150px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 112px;
  z-index: 40;
  max-width: min(380px, calc(100vw - 44px));
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #221f25;
  color: var(--text);
  box-shadow: var(--shadow);
}

@media (max-width: 1040px) {
  .classic-sidebar {
    width: 220px;
    flex-basis: 220px;
  }

  .classic-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .top-arrows,
  .top-status {
    display: none;
  }

  .now-grid {
    grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  }

  .playlist-layout {
    grid-template-columns: 1fr;
  }

  .classic-player {
    grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.3fr);
  }

  .player-tools {
    display: none;
  }
}

@media (max-width: 760px) {
  .dashboard-a-now {
    --now-art-size: clamp(168px, 62vw, 300px);
    --now-title-size: clamp(24px, 9vw, 42px);
    --now-hero-gap: 22px;
  }

  .dashboard-a-shell {
    height: 100dvh !important;
    overflow: visible !important;
  }

  .dashboard-a-body {
    flex-direction: column !important;
    padding-bottom: 154px !important;
  }

  .dashboard-a-sidebar {
    order: 3 !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 32 !important;
    width: 100% !important;
    height: 74px !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    padding: 8px 10px 12px !important;
    border-right: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: 0 !important;
    background: rgba(10, 10, 10, 0.96) !important;
    box-shadow: 0 -16px 42px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(18px);
  }

  .dashboard-a-brand,
  .dashboard-a-sidebar #a-voice-card,
  .dashboard-a-sidebar > div[style*="flex:1"] {
    display: none !important;
  }

  .dashboard-a-nav {
    width: 100% !important;
    max-width: 440px !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }

  .dashboard-a-nav button {
    min-width: 0 !important;
    height: 52px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 5px 4px !important;
    border-radius: 13px !important;
    box-shadow: none !important;
  }

  .dashboard-a-nav button i {
    font-size: 22px !important;
  }

  .dashboard-a-nav button span {
    max-width: 100% !important;
    font-size: 10px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .dashboard-a-nav button em {
    display: none !important;
  }

  .dashboard-a-main {
    min-height: 0 !important;
    flex: 1 !important;
  }

  .dashboard-a-header {
    height: auto !important;
    min-height: 64px !important;
    gap: 10px !important;
    padding: 12px 14px 10px !important;
    align-items: center !important;
  }

  .dashboard-a-header > div[style*="flex:1"] {
    display: none !important;
  }

  .dashboard-a-arrows,
  #a-top-channel {
    display: none !important;
  }

  .dashboard-a-search {
    max-width: none !important;
    min-width: 0 !important;
    height: 42px !important;
    padding: 9px 12px !important;
    border-radius: 14px !important;
  }

  .dashboard-a-search input {
    font-size: 13px !important;
  }

  #a-user-menu-wrap {
    flex: 0 0 auto !important;
  }

  .dashboard-a-content {
    padding-bottom: 0 !important;
  }

  .dashboard-a-content [data-screen-label] {
    max-width: none !important;
    padding: 20px 18px 24px !important;
  }

  .dashboard-a-content [data-screen-label="Now Playing"] > div:first-child {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: var(--now-hero-gap, 22px) !important;
  }

  .dashboard-a-content [data-screen-label="Now Playing"] > div:first-child > div:first-child {
    width: var(--now-art-size, min(62vw, 300px)) !important;
    height: var(--now-art-size, min(62vw, 300px)) !important;
    margin: 4px auto 0 !important;
  }

  .dashboard-a-content [data-screen-label="Now Playing"] h1 {
    font-size: var(--now-title-size, clamp(24px, 9vw, 42px)) !important;
    text-align: center !important;
  }

  .dashboard-a-content [data-screen-label="Now Playing"] h1 + div,
  .dashboard-a-content [data-screen-label="Now Playing"] h1 + div + div {
    text-align: center !important;
  }

  .dashboard-a-content [data-screen-label="Now Playing"] > div:first-child > div:last-child > div:first-child,
  .dashboard-a-content [data-screen-label="Now Playing"] > div:first-child > div:last-child > div:last-child {
    justify-content: center !important;
  }

  .dashboard-a-content [data-screen-label="Queue"] > div:first-child,
  .dashboard-a-content [data-screen-label="Playlist Detail"] > div:nth-child(2),
  .dashboard-a-content [data-screen-label="YouTube Playlist Preview"] > div:first-child {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  .dashboard-a-content [data-screen-label="Playlists"] > div[style*="grid-template-columns"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .dashboard-a-content [data-screen-label="Playlist Detail"] h1 {
    font-size: 34px !important;
    white-space: normal !important;
  }

  .dashboard-a-content [data-screen-label="Playlist Detail"] > div:nth-child(2) > div:first-child {
    width: 156px !important;
    height: 156px !important;
  }

  .dashboard-a-player > footer {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 84px !important;
    z-index: 31 !important;
    height: 58px !important;
    padding: 8px 11px !important;
    gap: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 14px !important;
    background: #161616 !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.48) !important;
    overflow: visible !important;
  }

  .dashboard-a-player > footer::before {
    display: none;
  }

  .dashboard-a-player > footer > div:first-child {
    width: auto !important;
    flex: 1 !important;
  }

  .dashboard-a-player > footer > div:first-child > div:first-child {
    width: 42px !important;
    height: 42px !important;
    border-radius: 9px !important;
  }

  .dashboard-a-player > footer > div:nth-child(2) {
    flex: 0 0 auto !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .dashboard-a-player > footer > div:nth-child(2) > div:first-child {
    gap: 8px !important;
  }

  .dashboard-a-player > footer > div:nth-child(2) > div:first-child button:not(:nth-child(3)):not(:nth-child(4)) {
    display: none !important;
  }

  .dashboard-a-player > footer > div:nth-child(3),
  .dashboard-a-player .ph-heart {
    display: none !important;
  }

  .dashboard-a-player > footer > div:nth-child(2) > div:nth-child(2) {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 14px !important;
    display: block !important;
    z-index: 2 !important;
  }

  .dashboard-a-player > footer > div:nth-child(2) > div:nth-child(2) > span {
    display: none !important;
  }

  .dashboard-a-player [data-progress-root] {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 3px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px 14px 0 0 !important;
  }

  .dashboard-a-player [data-progress-fill] {
    height: 3px !important;
    background: var(--accent) !important;
  }

  .dashboard-a-player [data-seek-bubble] {
    min-width: 42px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
    color: #ededed;
    font: 700 11px/1 var(--mono);
    transform: translate(-50%, -2px) !important;
    transition: opacity 0.12s ease;
    z-index: 4;
  }

  .dashboard-a-player [data-seek-bubble].is-visible {
    opacity: 1 !important;
  }

  .dashboard-a-player [data-progress-knob] {
    display: none !important;
  }

  .dashboard-a-player [data-seek] {
    inset: -10px 0 -10px 0 !important;
    height: 24px !important;
    cursor: pointer !important;
  }

  .dashboard-a-player > footer > div:nth-child(2) button:nth-child(3) {
    width: 38px !important;
    height: 38px !important;
    background: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
  }

  .dashboard-a-player > footer > div:nth-child(2) button:nth-child(4) {
    display: flex !important;
    color: #cfcfcf !important;
  }

  .toast {
    bottom: 170px;
  }

  .classic-dashboard {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .classic-layout {
    display: grid;
  }

  .classic-sidebar {
    width: auto;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 20;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .classic-brand,
  .voice-card,
  .sidebar-spacer {
    display: none;
  }

  .classic-nav {
    display: flex;
    min-width: max-content;
  }

  .nav-row {
    width: auto;
    grid-template-columns: 22px auto auto;
  }

  .classic-topbar {
    grid-template-columns: 1fr auto;
    padding: 14px;
  }

  .search-form {
    grid-template-columns: 36px minmax(0, 1fr) 44px;
  }

  .search-form select {
    grid-column: 1 / -1;
    height: 38px;
    padding-left: 36px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .submit-button {
    grid-column: 3;
    grid-row: 1;
  }

  .classic-workspace {
    padding: 18px 16px 118px;
  }

  .now-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
  }

  .hero-cover {
    width: min(78vw, 360px);
  }

  .now-copy {
    width: 100%;
    text-align: center;
  }

  .now-copy h1 {
    margin: 0 auto;
    font-size: clamp(38px, 12vw, 64px);
  }

  .requester,
  .progress-block,
  .next-card {
    margin-inline: auto;
  }

  .main-controls {
    justify-content: center;
  }

  .screen-heading {
    display: grid;
  }

  .create-form {
    grid-template-columns: 1fr auto;
  }

  .wide-row {
    grid-template-columns: 30px 48px minmax(0, 1fr) auto;
  }

  .wide-row .row-actions {
    grid-column: 3 / -1;
    justify-content: flex-end;
  }

  .classic-player {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 30;
    height: auto;
    grid-template-columns: 1fr auto;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .player-center {
    display: flex;
  }

  .player-controls button:not(.player-play) {
    display: none;
  }

  .player-progress {
    display: none;
  }

  .toast {
    bottom: 92px;
  }
}

@media (max-width: 520px) {
  .dashboard-a-now {
    --now-art-size: clamp(148px, 54vw, 230px);
    --now-title-size: clamp(20px, 7.5vw, 31px);
    --now-hero-gap: 16px;
  }

  .classic-avatar {
    display: none;
  }

  .classic-topbar {
    grid-template-columns: 1fr;
  }

  .playlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-head {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .detail-cover {
    width: 78px;
    height: 78px;
  }
}
.dashboard-health-warning {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.11);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  padding: 6px 11px;
  outline: none;
}

.dashboard-health-warning-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(340px, calc(100vw - 36px));
  padding: 14px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 14px;
  background: #121212;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 60;
}

.dashboard-health-warning:hover .dashboard-health-warning-panel,
.dashboard-health-warning:focus-within .dashboard-health-warning-panel,
.dashboard-health-warning:focus .dashboard-health-warning-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
