:root {
  --bg: #090b0d;
  --bg-elev: #121518;
  --surface: #171b1e;
  --surface-2: #20252a;
  --line: #2a3036;
  --text: #f2f2f2;
  --muted: #98a0a8;
  --accent: #e7c27d;
  --accent-ink: #241a00;
  --danger: #ff8080;
  --app-max: 560px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background:
    radial-gradient(1200px 600px at 50% -20%, rgba(231, 194, 125, 0.08), transparent 60%),
    #050607;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  color: inherit;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex: none;
}

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #33393f transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #33393f;
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: #454d55;
}

.muted {
  color: var(--muted);
}

.hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 8px 0 0;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: var(--app-max);
  height: 100dvh;
  background: linear-gradient(180deg, #101315 0%, #0b0d0f 45%, #090b0d 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 620px) and (min-height: 720px) {
  .app-shell {
    height: min(920px, 94dvh);
    border-radius: 28px;
    border: 1px solid #23282d;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
  }
}

.view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #33393f transparent;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(16px + var(--safe-top)) 18px 12px;
  background: rgba(13, 16, 18, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.brand {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #4a3a18, #241d0e);
  color: var(--accent);
  border: 1px solid rgba(231, 194, 125, 0.2);
}

.brand-logo .icon {
  width: 24px;
  height: 24px;
}

.brand h1 {
  margin: 0;
  font-size: 21px;
  letter-spacing: 0.5px;
}

.brand p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.topbar-title {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.topbar-title h2 {
  margin: 0;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-title p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.topbar > h2 {
  flex: 1;
  margin: 0;
  font-size: 20px;
  text-align: center;
}

.topbar-spacer {
  width: 40px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--muted);
  flex: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.icon-btn.light {
  color: #f2f2f2;
  background: rgba(255, 255, 255, 0.08);
}

.icon-btn.big .icon {
  width: 30px;
  height: 30px;
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 6px 18px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 16, 18, 0.6);
}

.tab {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
}

.tab span {
  display: inline-block;
  min-width: 20px;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 11px;
  font-weight: 500;
}

.tab.active {
  color: var(--accent);
}

.tab.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.panel {
  padding: 14px 16px 20px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.primary,
.ghost,
.danger,
.soft-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.primary:active {
  transform: scale(0.97);
}

.primary .icon,
.ghost .icon {
  width: 18px;
  height: 18px;
}

.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.ghost:hover {
  background: rgba(255, 255, 255, 0.04);
}

.danger {
  background: #3a1d1d;
  border-color: #5a2a2a;
  color: var(--danger);
}

.soft-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f2f2f2;
  backdrop-filter: blur(8px);
  font-weight: 500;
}

.soft-btn .icon {
  width: 19px;
  height: 19px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  margin: 0 0 8px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
}

.search-box .icon {
  width: 19px;
  height: 19px;
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 12px 0;
  outline: none;
  font-size: 14px;
}

.search-input {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  font-size: 14px;
  margin: 4px 0 10px;
}

.playlist-actions {
  display: flex;
  gap: 8px;
  padding: 14px 18px 0;
  flex-wrap: wrap;
}

#playlist-view .hint {
  padding: 0 18px;
}

.song-list,
.playlist-list,
.picker-list,
.check-list,
.queue-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.song-list {
  padding-bottom: 12px;
}

.song-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 8px;
  border-radius: 14px;
  position: relative;
  transition: background 0.15s ease;
}

.song-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.song-row.active {
  background: rgba(231, 194, 125, 0.1);
}

.song-row.dragging {
  background: var(--surface-2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  opacity: 0.95;
  z-index: 5;
  cursor: grabbing;
}

.song-cover {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 0;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #2b3035, #1a1d20);
  color: #9aa1a8;
}

.song-row.active .song-cover {
  background: linear-gradient(145deg, #4a3b18, #2b2311);
  color: var(--accent);
}

.song-cover .icon {
  width: 21px;
  height: 21px;
}

.song-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
}

.song-title {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-row.active .song-title {
  color: var(--accent);
}

.song-sub {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-duration {
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding: 0 4px;
}

.song-actions {
  display: flex;
  align-items: center;
  gap: 0;
  flex: none;
}

.song-actions .icon-btn {
  width: 34px;
  height: 34px;
}

.song-actions .icon {
  width: 18px;
  height: 18px;
}

.drag-handle {
  width: 34px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: grab;
  touch-action: none;
  padding: 0;
}

.drag-handle:active {
  cursor: grabbing;
  color: var(--accent);
}

.playlist-list {
  display: grid;
  gap: 10px;
  padding-bottom: 12px;
}

.playlist-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.playlist-card:active {
  transform: scale(0.99);
}

.playlist-card:hover {
  border-color: #3a4249;
}

.playlist-cover {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex: none;
  background: linear-gradient(145deg, #4a3b18, #262215);
  color: var(--accent);
  border: 0;
}

.playlist-cover .icon {
  width: 24px;
  height: 24px;
}

.playlist-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
}

.playlist-info strong {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-info small {
  font-size: 11.5px;
  color: var(--muted);
}

.playlist-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}

.playlist-play:hover {
  background: rgba(231, 194, 125, 0.1);
  border-color: rgba(231, 194, 125, 0.35);
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 28px;
  color: var(--muted);
}

.empty-icon {
  width: 56px;
  height: 56px;
  fill: var(--accent);
  opacity: 0.85;
  margin-bottom: 14px;
}

.empty h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 17px;
}

.empty p {
  margin: 0 0 18px;
  font-size: 12.5px;
  line-height: 1.7;
}

.mini-player {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px calc(8px + var(--safe-bottom));
  background: rgba(24, 28, 32, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 10;
  flex: none;
}

.mini-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.mini-cover {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #3a2f17, #1d1910);
  color: var(--accent);
}

.mini-cover .icon {
  width: 21px;
  height: 21px;
}

.mini-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-meta strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-meta small {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-controls {
  display: flex;
  align-items: center;
  gap: 0;
  flex: none;
}

.mini-controls .icon-btn {
  width: 38px;
  height: 38px;
}

.play-btn {
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  flex: none;
  transition: transform 0.12s ease;
}

.play-btn:active {
  transform: scale(0.94);
}

.play-btn.small {
  width: 42px;
  height: 42px;
}

.play-btn .icon {
  width: 22px;
  height: 22px;
}


.screen {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

#player-screen {
  background: linear-gradient(160deg, #1d2125, #090a0c);
}

.player-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  transition: opacity 0.2s ease;
  z-index: 0;
}

.player-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.72) 55%,
    rgba(0, 0, 0, 0.94) 100%
  );
  pointer-events: none;
}

.player-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: calc(12px + var(--safe-top)) 24px calc(16px + var(--safe-bottom));
  color: #f2f2f2;
}

.player-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-header-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.player-header-title span {
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(242, 242, 242, 0.7);
}

.player-header-title strong {
  max-width: 100%;
  font-size: 12px;
  font-weight: 500;
  color: rgba(242, 242, 242, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-art {
  width: min(64vw, 30vh, 280px);
  aspect-ratio: 1 / 1;
  margin: auto auto 22px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #3a2f17, #191510);
  border: 1px solid rgba(231, 194, 125, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  color: var(--accent);
  transition: background 0.4s ease;
  flex: none;
}

.player-art .icon {
  width: 38%;
  height: 38%;
  opacity: 0.9;
}

.player-meta {
  text-align: center;
  padding: 0 8px;
}

.player-meta h1 {
  margin: 0;
  font-size: clamp(20px, 5.6vw, 26px);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-meta p {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(242, 242, 242, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress {
  margin-top: 22px;
}

.progress input[type="range"] {
  width: 100%;
  height: 28px;
  margin: 0;
  accent-color: var(--accent);
}

.times {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(242, 242, 242, 0.55);
  font-variant-numeric: tabular-nums;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin-top: 12px;
}

.play-btn.xl {
  width: 72px;
  height: 72px;
  box-shadow: 0 12px 30px rgba(231, 194, 125, 0.25);
}

.play-btn.xl .icon {
  width: 38px;
  height: 38px;
}

.player-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}

.soft-btn {
  min-height: 40px;
}

.screen-settings {
  background: linear-gradient(180deg, #0f1214, #090b0d);
}

.settings-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px calc(28px + var(--safe-bottom));
  scrollbar-width: thin;
}

.settings-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
}

.settings-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--accent);
}

.settings-card p {
  margin: 0 0 8px;
}

.bg-preview {
  position: relative;
  height: 150px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(150deg, #242a2f, #121518);
  margin-bottom: 12px;
  border: 1px solid var(--line);
}

.bg-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.35;
}

.bg-preview-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.65));
  pointer-events: none;
}

.bg-preview span {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 8px;
  border-radius: 999px;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.slider-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 2px;
  font-size: 12.5px;
  color: var(--muted);
}

.slider-label span {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.mode-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mode-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  color: var(--text);
}

.mode-option .icon {
  margin-top: 2px;
  color: var(--muted);
}

.mode-option span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mode-option strong {
  font-size: 13.5px;
}

.mode-option small {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.mode-option.active {
  background: rgba(231, 194, 125, 0.08);
  border-color: rgba(231, 194, 125, 0.35);
}

.mode-option.active .icon,
.mode-option.active strong {
  color: var(--accent);
}

dialog {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 20px;
  padding: 20px;
  width: min(92vw, 440px);
  max-height: 84dvh;
  overflow-y: auto;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.dialog h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.dialog-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.dialog-head h3 {
  flex: 1;
  margin: 0;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.dialog input[type="text"] {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  padding: 12px 14px;
  outline: none;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.action-btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 13px 12px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  text-align: left;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.action-btn.danger {
  color: var(--danger);
  background: transparent;
  border: 0;
}

.picker-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.picker-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  color: var(--text);
  text-align: left;
}

.picker-item .icon {
  width: 19px;
  height: 19px;
  color: var(--accent);
}

.picker-item small {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.check-list {
  max-height: 46dvh;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 4px 0;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.check-row:last-child {
  border-bottom: 0;
}

.check-row input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  flex: none;
}

.check-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.check-meta strong {
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.check-meta small {
  font-size: 11px;
  color: var(--muted);
}

.add-songs-dialog {
  width: min(94vw, 500px);
}

.queue-dialog {
  width: min(94vw, 500px);
}

.queue-list {
  max-height: 52dvh;
  overflow-y: auto;
  margin-top: 6px;
}

.queue-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.queue-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.queue-row.active {
  background: rgba(231, 194, 125, 0.1);
}

.queue-index {
  width: 24px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  flex: none;
}

.queue-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.queue-meta strong {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-meta small {
  font-size: 11px;
  color: var(--muted);
}

.queue-row.active .queue-meta strong {
  color: var(--accent);
}

.queue-duration {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.progressbar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin: 10px 0 14px;
}

.progressbar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #b98e3f, var(--accent));
  transition: width 0.2s ease;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + var(--safe-bottom));
  transform: translateX(-50%) translateY(12px);
  background: rgba(38, 44, 49, 0.98);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  max-width: 82vw;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-height: 640px) {
  .player-art {
    width: min(52vw, 26vh, 220px);
    margin-bottom: 14px;
  }

  .player-meta h1 {
    font-size: 20px;
  }

  .progress {
    margin-top: 12px;
  }

  .player-bottom {
    padding-top: 10px;
  }
}



