:root {
  color-scheme: dark;
  --bg: #111414;
  --panel: #181d1c;
  --panel-soft: #202625;
  --text: #f5f7f2;
  --muted: #99a39c;
  --line: #2d3532;
  --accent: #1ed760;
  --accent-strong: #19b955;
  --danger: #f05d5e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 16%, rgba(30, 215, 96, 0.12), transparent 28%),
    linear-gradient(135deg, #101313, #171b19 54%, #101413);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  min-height: 100vh;
  padding: 24px;
}

.sidebar,
.content {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 23, 22, 0.86);
  backdrop-filter: blur(20px);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px;
  border-radius: 8px;
  min-height: 0;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  border-radius: 8px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 132%;
  height: 132%;
  object-fit: contain;
  animation: logoFloat 5s ease-in-out infinite;
}

.brand-name,
.brand-slogan,
.eyebrow,
.track-title,
.queue-header p,
.empty {
  margin: 0;
}

.brand-name {
  display: grid;
  gap: 2px;
  max-width: 170px;
  font-size: clamp(22px, 2.1vw, 28px);
  font-weight: 950;
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.brand-name span:first-child {
  width: fit-content;
  background: linear-gradient(135deg, #d7ff00 0%, #7cff1f 42%, #22e36b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 22px rgba(153, 255, 20, 0.22);
}

.brand-name span:last-child {
  width: fit-content;
  background: linear-gradient(135deg, #ffffff 0%, #d8dedb 52%, #8c9691 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.16);
}

.brand-subtitle,
.eyebrow,
.queue-header p,
.empty {
  color: var(--muted);
}

.brand-slogan {
  display: block;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(52, 211, 153, 0.16), rgba(245, 158, 11, 0.08)),
    rgba(255, 255, 255, 0.045);
  color: #eefcf5;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 2px 14px rgba(52, 211, 153, 0.42), 0 1px 2px rgba(0, 0, 0, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 42px rgba(0, 0, 0, 0.22);
}

.panel,
.queue {
  min-height: 0;
}

.panel h2,
.queue h2 {
  margin: 0 0 14px;
  font-size: 16px;
}

.folder-list,
.track-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
}

.folder-list {
  max-height: calc(100vh - 190px);
}

.folder-button,
.track-button {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 8px;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.folder-button:hover,
.track-button:hover,
.folder-button.active,
.track-button.active {
  background: var(--panel-soft);
}

.mini-cover {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: linear-gradient(135deg, #274a35, #101715);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.folder-name,
.track-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.folder-detail,
.track-detail {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.now {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  align-items: end;
  gap: 28px;
}

.cover {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: 100%;
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(30, 215, 96, 0.9), rgba(31, 64, 47, 0.92)),
    #193323;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  padding: 24px;
}

.cover span {
  max-width: 100%;
  color: #07150c;
  font-size: clamp(30px, 6vw, 72px);
  font-weight: 950;
  line-height: 0.95;
  overflow-wrap: anywhere;
  text-align: center;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.track-title {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.icon-button,
.play-button {
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.icon-button {
  width: 44px;
  height: 44px;
  background: transparent;
  color: var(--muted);
}

.icon-button:hover {
  color: var(--text);
}

.play-button {
  width: 58px;
  height: 58px;
  background: var(--text);
  color: #090d0b;
}

.play-button:hover {
  transform: scale(1.04);
}

svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.timeline {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.queue {
  min-height: 220px;
  overflow: hidden;
}

.queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.track-list {
  max-height: calc(100vh - 520px);
  min-height: 160px;
  padding-right: 4px;
}

.track-button {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  background: rgba(255, 255, 255, 0.03);
}

.track-index {
  color: var(--muted);
  text-align: center;
}

.playing-badge {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .sidebar,
  .content {
    padding: 18px;
  }

  .folder-list {
    max-height: 260px;
  }

  .now {
    grid-template-columns: 1fr;
  }

  .cover {
    max-width: 280px;
  }

  .track-list {
    max-height: none;
  }
}

/* Refined player layout */
:root {
  --bg: #0f1012;
  --panel: #17191c;
  --panel-soft: #22262b;
  --panel-strong: #101214;
  --text: #f7f4ea;
  --muted: #a7abb2;
  --line: #2c3137;
  --accent: #34d399;
  --accent-strong: #10b981;
  --warm: #f59e0b;
}

html {
  min-width: 320px;
}

body {
  background:
    linear-gradient(180deg, rgba(245, 158, 11, 0.08), transparent 260px),
    linear-gradient(135deg, #0f1012 0%, #181b20 55%, #101315 100%);
}

.shell {
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.sidebar,
.content,
.player-card,
.queue {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(18, 20, 23, 0.92);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
}

.sidebar {
  gap: 16px;
  padding: 18px;
}

.content {
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.brand-mark {
  background: transparent;
}

.brand-slogan {
  font-size: 15px;
}

.panel h2,
.queue h2 {
  margin-bottom: 10px;
  font-size: 14px;
  letter-spacing: 0;
}

.folder-list {
  max-height: calc(100vh - 178px);
}

.folder-button,
.track-button {
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 7px;
}

.folder-button:hover,
.track-button:hover {
  background: rgba(255, 255, 255, 0.055);
}

.folder-button.active,
.track-button.active {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.1);
}

.mini-cover {
  background: linear-gradient(135deg, #28313a, #15181c);
  color: var(--accent);
  overflow: hidden;
}

.mini-cover.has-cover {
  background: #111417;
}

.mini-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  transition:
    transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 360ms ease,
    background 360ms ease;
}

.now {
  grid-template-columns: minmax(112px, 170px) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.cover {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(145deg, rgba(52, 211, 153, 0.95), rgba(245, 158, 11, 0.9)),
    #172019;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  padding: 18px;
  transition:
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 420ms ease;
}

.cover span {
  font-size: clamp(26px, 4.2vw, 48px);
}

.cover-image {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover.has-cover {
  background: #121417;
}

.cover.has-cover .cover-image {
  display: block;
}

.cover.has-cover span {
  display: none;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.35;
}

.eyebrow span {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.eyebrow:empty,
.track-title:empty {
  display: none;
}

.title-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.title-count {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

h1 {
  max-width: 920px;
  font-size: clamp(20px, 2.3vw, 34px);
  line-height: 1.12;
}

.track-title {
  margin-top: 8px;
  max-width: 920px;
  color: #c7cbd1;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.transport {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(170px, 240px);
  align-items: center;
  gap: 18px;
}

.controls {
  justify-content: flex-start;
  gap: 12px;
}

.icon-button {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.06);
}

.play-button {
  width: 56px;
  height: 56px;
}

.volume-control {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.volume-control svg {
  color: var(--muted);
}

.volume-control span {
  text-align: right;
}

.timeline {
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 10px;
}

input[type="range"] {
  min-width: 0;
}

.queue {
  min-height: 0;
  padding: 18px;
  overflow: hidden;
}

.queue-header {
  margin-bottom: 10px;
}

.track-list {
  max-height: calc(100vh - 355px);
  min-height: 180px;
}

.track-button {
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  min-height: 48px;
  padding: 7px 9px;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.track-button:hover {
  transform: translateX(4px);
}

.track-name,
.folder-name {
  font-size: 14px;
}

.track-detail,
.folder-detail {
  font-size: 12px;
}

.playing-badge {
  min-width: 22px;
  text-align: right;
}

.back-button {
  display: none;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.back-button:hover {
  transform: translateX(-2px);
  background: rgba(255, 255, 255, 0.14);
}

.back-button svg {
  width: 18px;
  height: 18px;
}

.shell.player-view {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.shell.player-view .sidebar {
  display: none;
}

.shell.player-view .content {
  min-height: calc(100vh - 36px);
  justify-content: center;
}

.shell.player-view .queue {
  max-height: 0;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;
}

.shell.player-view .back-button {
  display: flex;
  animation: fadeSlideIn 280ms ease both;
}

.shell.player-view .player-card {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 42px);
  background:
    linear-gradient(160deg, rgba(52, 211, 153, 0.16), transparent 45%),
    rgba(18, 20, 23, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
  animation: playerLift 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.shell.player-view .now {
  grid-template-columns: minmax(190px, 360px) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 42px);
}

.shell.player-view .cover {
  transform: scale(1.02);
  box-shadow: 0 30px 100px rgba(52, 211, 153, 0.2), 0 24px 70px rgba(0, 0, 0, 0.5);
}

.shell.player-view h1 {
  font-size: clamp(22px, 3.2vw, 42px);
  line-height: 1.12;
}

.shell.player-view .track-title {
  font-size: clamp(12px, 1.25vw, 15px);
  line-height: 1.45;
}

.shell.player-view .transport {
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 280px);
}

.shell.player-view .controls {
  justify-content: center;
}

.queue {
  transition:
    opacity 260ms ease,
    transform 260ms ease,
    max-height 260ms ease,
    padding 260ms ease;
}

@keyframes playerLift {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .sidebar {
    gap: 12px;
    padding: 14px;
  }

  .brand {
    justify-content: space-between;
  }

  .panel {
    min-height: 0;
  }

  .folder-list {
    max-height: 176px;
  }

  .player-card,
  .queue {
    padding: 14px;
  }

  .now {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
  }

  .cover {
    max-width: none;
    padding: 12px;
  }

  h1 {
    font-size: 20px;
  }

  .track-title {
    font-size: 14px;
  }

  .transport {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .controls {
    justify-content: center;
  }

  .volume-control {
    grid-template-columns: 22px minmax(0, 1fr) 38px;
  }

  .track-list {
    max-height: none;
    min-height: 0;
  }

  .shell.player-view .content {
    min-height: calc(100vh - 24px);
  }

  .shell.player-view .player-card {
    max-width: none;
  }

  .shell.player-view .now {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .shell.player-view .cover {
    width: min(72vw, 340px);
  }

  .shell.player-view .transport {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .shell {
    padding: 8px;
  }

  .sidebar {
    padding: 12px;
  }

  .brand-mark {
    width: 70px;
    height: 70px;
    border-radius: 0;
  }

  .brand-mark img {
    width: 138%;
    height: 138%;
  }

  .brand-name {
    max-width: 145px;
    font-size: 23px;
  }

  .folder-list {
    max-height: 144px;
  }

  .player-card,
  .queue {
    padding: 12px;
  }

  .now {
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: start;
  }

  .cover span {
    font-size: 22px;
  }

  .eyebrow {
    font-size: 11px;
  }

  h1 {
    font-size: 17px;
    line-height: 1.18;
  }

  .track-title {
    font-size: 13px;
  }

  .icon-button {
    width: 40px;
    height: 40px;
  }

  .play-button {
    width: 52px;
    height: 52px;
  }

  .timeline {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    font-size: 12px;
  }

  .track-button {
    grid-template-columns: 28px minmax(0, 1fr) 24px;
  }

  .track-name,
  .folder-name {
    font-size: 13px;
  }

  .shell.player-view .content {
    min-height: calc(100vh - 16px);
  }

  .shell.player-view .player-card {
    gap: 14px;
  }

  .shell.player-view .cover {
    width: min(78vw, 280px);
  }

  .shell.player-view h1 {
    font-size: clamp(20px, 7vw, 30px);
  }

  .shell.player-view .track-title {
    font-size: 12px;
  }

  .shell.player-view .eyebrow span {
    font-size: 12px;
  }
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 0 rgba(52, 211, 153, 0));
  }
  50% {
    transform: translateY(-2px) scale(1.035);
    filter: drop-shadow(0 10px 18px rgba(52, 211, 153, 0.18));
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark img {
    animation: none;
  }
}

body {
  padding-bottom: 86px;
}

.bottom-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.25fr) minmax(120px, 220px);
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: rgba(14, 16, 18, 0.94);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(22px);
}

.bottom-player::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.13), transparent 45%, rgba(245, 158, 11, 0.08));
}

.bottom-track,
.bottom-center,
.bottom-volume {
  position: relative;
  min-width: 0;
}

.bottom-track {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.bottom-cover {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 7px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--warm));
  color: #07150c;
  font-size: 13px;
  font-weight: 950;
}

.bottom-cover img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bottom-cover.has-cover img {
  display: block;
}

.bottom-cover.has-cover span {
  display: none;
}

.bottom-meta {
  min-width: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.bottom-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#bottomTrackTitle {
  font-size: 14px;
  font-weight: 850;
}

#bottomTrackDetail {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.bottom-center {
  display: grid;
  gap: 8px;
}

.bottom-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.bottom-icon-button,
.bottom-play-button {
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--text);
}

.bottom-icon-button {
  width: 34px;
  height: 34px;
  background: transparent;
  color: var(--muted);
}

.bottom-icon-button:hover {
  color: var(--text);
}

.bottom-play-button {
  width: 42px;
  height: 42px;
  background: var(--text);
  color: #090d0b;
}

.bottom-timeline {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.bottom-volume {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.bottom-volume svg {
  width: 20px;
  height: 20px;
}

.bottom-player.is-playing .bottom-cover {
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.25), 0 0 28px rgba(52, 211, 153, 0.2);
}

@media (max-width: 900px) {
  body {
    padding-bottom: 108px;
  }

  .bottom-player {
    left: 0;
    right: 0;
    bottom: 0;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "track controls"
      "timeline timeline";
    gap: 10px 12px;
    min-height: 98px;
    padding: 10px 12px;
  }

  .bottom-track {
    grid-area: track;
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .bottom-cover {
    width: 48px;
    height: 48px;
  }

  .bottom-center {
    display: contents;
  }

  .bottom-controls {
    grid-area: controls;
    justify-content: flex-end;
  }

  .bottom-timeline {
    grid-area: timeline;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
  }

  .bottom-volume {
    display: none;
  }

  .bottom-icon-button {
    display: none;
  }

  #bottomTrackTitle {
    font-size: 13px;
  }

  #bottomTrackDetail {
    font-size: 11px;
  }
}

@media (max-width: 520px) {
  body {
    padding-bottom: 106px;
  }

  .bottom-play-button {
    width: 40px;
    height: 40px;
  }
}

.shell.player-view .bottom-player,
body.player-view .bottom-player {
  display: none;
}

.shell.player-view .player-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(90deg, rgba(52, 211, 153, 0.13), transparent 45%, rgba(245, 158, 11, 0.08)),
    rgba(14, 16, 18, 0.94);
  backdrop-filter: blur(22px);
}

.shell.player-view .play-button {
  background: var(--text);
  color: #090d0b;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.shell.player-view .icon-button {
  background: rgba(255, 255, 255, 0.06);
}

.shell.player-view .timeline {
  color: var(--muted);
}

.shell:not(.player-view) .player-card .transport,
.shell:not(.player-view) .player-card .timeline {
  display: none;
}

.shell:not(.player-view) .player-card {
  padding-bottom: 22px;
}

.shell:not(.player-view) .queue {
  min-height: calc(100vh - 150px);
}

.shell:not(.player-view) .track-list {
  max-height: calc(100vh - 238px);
}

@media (max-width: 900px) {
  .shell:not(.player-view) .queue {
    min-height: 0;
  }

  .shell:not(.player-view) .track-list {
    max-height: none;
  }
}

.search-box {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
}

.search-box:focus-within {
  border-color: rgba(52, 211, 153, 0.38);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.08);
}

.search-box svg {
  width: 20px;
  height: 20px;
}

.search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.search-box input::placeholder {
  color: var(--muted);
}

@media (max-width: 900px) {
  .shell.player-view .now-meta {
    display: grid;
    grid-template-rows: auto 3.4em 3.2em;
    align-content: start;
    width: 100%;
    min-height: 118px;
  }

  .shell.player-view .title-row {
    align-items: center;
  }

  .shell.player-view h1 {
    display: -webkit-box;
    min-height: 2.34em;
    max-height: 2.34em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: clamp(18px, 5.8vw, 25px);
    line-height: 1.17;
  }

  .shell.player-view .track-title {
    display: -webkit-box;
    min-height: 2.8em;
    max-height: 2.8em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 11px;
    line-height: 1.4;
  }
}

@media (max-width: 520px) {
  .shell.player-view .now-meta {
    min-height: 112px;
    grid-template-rows: auto 3.2em 3em;
  }

  .shell.player-view h1 {
    font-size: clamp(17px, 5.6vw, 22px);
  }

  .shell.player-view .track-title {
    font-size: 10.5px;
  }
}
