:root {
  --paper: #fff1cf;
  --muted: rgba(255, 241, 207, 0.62);
  --cyan: #5be3d5;
  --amber: #f0b45e;
  --brass: #8f6a3b;
  --rose: #d85f72;
  --blue: #6d8fe8;
  --ink: #07070b;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 12% 10%, rgba(91, 227, 213, 0.15), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(240, 180, 94, 0.2), transparent 28%),
    linear-gradient(90deg, rgba(240, 180, 94, 0.08), transparent 16%, transparent 84%, rgba(91, 227, 213, 0.07)),
    #050507;
  color: var(--paper);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

button {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.phone {
  position: relative;
  width: min(430px, 100%);
  height: min(900px, calc(100svh - 56px));
  min-height: 680px;
  overflow: hidden;
  border: 1px solid rgba(240, 180, 94, 0.36);
  border-radius: 34px;
  background:
    linear-gradient(90deg, rgba(255, 241, 207, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(240, 180, 94, 0.12), transparent 18%, transparent 82%, rgba(91, 227, 213, 0.08)),
    radial-gradient(circle at 28% 12%, rgba(91, 227, 213, 0.18), transparent 24%),
    radial-gradient(circle at 80% 8%, rgba(240, 180, 94, 0.18), transparent 30%),
    linear-gradient(152deg, #090807 0%, #17110e 30%, #0b1012 68%, #050607 100%);
  background-size: 58px 100%, auto, auto, auto, auto;
  box-shadow:
    inset 0 0 0 6px rgba(255, 241, 207, 0.025),
    inset 0 0 80px rgba(0, 0, 0, 0.44),
    0 36px 120px rgba(0, 0, 0, 0.58);
}

.phone::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 0;
  border: 1px solid rgba(255, 241, 207, 0.1);
  border-radius: 24px;
  pointer-events: none;
}

.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 11%, transparent 88%, rgba(0, 0, 0, 0.22)),
    radial-gradient(ellipse at center, transparent 58%, rgba(0, 0, 0, 0.32));
  opacity: 0.54;
  mix-blend-mode: screen;
}

.noise,
.scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.noise {
  opacity: 0.22;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 11px 11px;
}

.scan {
  opacity: 0.16;
  background: repeating-linear-gradient(180deg, transparent 0 7px, rgba(255, 255, 255, 0.06) 8px);
}

.loading-screen {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  padding: 34px 30px 100px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 241, 207, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 28% 20%, rgba(91, 227, 213, 0.18), transparent 28%),
    radial-gradient(circle at 72% 24%, rgba(240, 180, 94, 0.18), transparent 30%),
    radial-gradient(circle at 52% 46%, rgba(255, 241, 207, 0.08), transparent 32%),
    linear-gradient(152deg, #080706 0%, #17110e 38%, #0b1012 72%, #050607 100%);
  background-size: 58px 100%, auto, auto, auto, auto;
  transition:
    opacity 720ms ease,
    visibility 720ms ease;
}

.loading-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 241, 207, 0.08), transparent 16%, transparent 78%, rgba(0, 0, 0, 0.32)),
    repeating-linear-gradient(180deg, transparent 0 8px, rgba(255, 241, 207, 0.03) 9px);
  opacity: 0.82;
}

.loading-screen.is-complete {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.os-loader {
  position: relative;
  z-index: 1;
  width: min(360px, 82vw, 52svh);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.os-loader canvas {
  width: 100%;
  height: 100%;
  display: block;
  filter:
    drop-shadow(0 0 12px rgba(91, 227, 213, 0.18))
    drop-shadow(0 18px 30px rgba(0, 0, 0, 0.28));
}

.loading-copy {
  position: relative;
  z-index: 1;
  width: min(300px, 100%);
  display: grid;
  gap: 16px;
}

.loading-copy p {
  color: rgba(255, 241, 207, 0.68);
  font-size: 12px;
  letter-spacing: 1.4px;
  text-align: center;
}

.loading-bar-container {
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 241, 207, 0.12);
}

.loading-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 241, 207, 0.28), rgba(91, 227, 213, 0.78), rgba(240, 180, 94, 0.48));
  background-size: 220% 100%;
  box-shadow:
    0 0 18px rgba(91, 227, 213, 0.24),
    0 0 30px rgba(240, 180, 94, 0.12);
  transition: width 420ms ease;
  animation: loadingShimmer 1.35s linear infinite;
}

@keyframes loadingShimmer {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -100% 0;
  }
}

.screen-strip {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.screen-strip::-webkit-scrollbar {
  display: none;
}

.screen {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  padding: clamp(24px, 5.2vh, 44px) 20px clamp(18px, 3.4vh, 28px);
  scroll-snap-align: start;
  overflow: hidden;
}

.home-screen {
  isolation: isolate;
  padding: 0;
}

.home-layout,
.particle-layer,
.home-ui {
  position: absolute;
  inset: 0;
}

.home-layout {
  z-index: 1;
  pointer-events: none;
}

.particle-layer {
  z-index: 20;
  pointer-events: none;
}

.home-ui {
  z-index: 30;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: clamp(12px, 2vh, 20px);
  padding: clamp(24px, 5.2vh, 44px) 20px clamp(18px, 3.4vh, 28px);
  pointer-events: none;
}

.home-ui > * {
  pointer-events: auto;
}

.corner-mark {
  position: absolute;
  width: 34px;
  height: 34px;
  pointer-events: none;
}

.mark-lt {
  left: 18px;
  top: 18px;
  border-left: 1px solid rgba(240, 180, 94, 0.42);
  border-top: 1px solid rgba(240, 180, 94, 0.42);
}

.mark-rb {
  right: 18px;
  bottom: 18px;
  border-right: 1px solid rgba(91, 227, 213, 0.36);
  border-bottom: 1px solid rgba(91, 227, 213, 0.36);
}

.signal-field {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(86vw, 360px);
  height: min(86vw, 360px);
  transform: translate(-50%, -50%);
}

.signal-field::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 54%, rgba(240, 180, 94, 0.07) 55% 56%, transparent 57%),
    conic-gradient(from 18deg, transparent 0 12deg, rgba(91, 227, 213, 0.13) 13deg 16deg, transparent 17deg 42deg, rgba(240, 180, 94, 0.11) 43deg 45deg, transparent 46deg);
  mask-image: radial-gradient(circle, transparent 0 34%, #000 35%);
}

.signal-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(255, 241, 207, 0.13);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-a {
  width: min(78vw, 332px);
  height: min(78vw, 332px);
}

.ring-b {
  width: min(54vw, 226px);
  height: min(54vw, 226px);
  border-color: rgba(101, 215, 193, 0.22);
  transform: translate(-50%, -50%) rotate(-18deg) scaleX(1.22);
}

.ring-c {
  width: min(34vw, 146px);
  height: min(76vw, 380px);
  border-color: rgba(233, 170, 85, 0.14);
  transform: translate(-50%, -50%) rotate(28deg);
}

.particle-face {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.particle-stage {
  border-radius: 0;
  background: transparent;
}

#homeParticleCanvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.topbar,
.playlist-topbar {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.title-block {
  max-width: 220px;
  transform: translateX(5px);
}

.kicker,
.title-kicker {
  margin-bottom: 5px;
  color: var(--amber);
  font-size: 11px;
  letter-spacing: 1.8px;
  text-shadow: 0 0 14px rgba(240, 180, 94, 0.32);
}

h1 {
  font-size: clamp(31px, 4vh, 38px);
  line-height: 1.05;
  font-weight: 680;
  text-shadow:
    0 0 28px rgba(255, 241, 207, 0.16),
    1px 0 rgba(91, 227, 213, 0.18),
    -1px 0 rgba(240, 180, 94, 0.18);
}

.title-line {
  width: fit-content;
  max-width: 214px;
  margin-top: 12px;
  padding: 8px 10px;
  border-left: 2px solid rgba(91, 227, 213, 0.58);
  background:
    linear-gradient(90deg, rgba(91, 227, 213, 0.1), transparent 82%),
    rgba(5, 8, 10, 0.34);
  color: rgba(255, 247, 230, 0.68);
  font-size: 12px;
  line-height: 1.45;
}

.state-panel {
  display: grid;
  justify-items: end;
}

.live-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 9px 11px;
  border: 1px solid rgba(240, 180, 94, 0.48);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 241, 207, 0.1), transparent),
    rgba(7, 7, 11, 0.72);
  color: rgba(255, 241, 207, 0.82);
  font-size: 12px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 241, 207, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.26);
}

.live-chip b {
  font: inherit;
  font-weight: 500;
}

.live-chip span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(101, 215, 193, 0.9);
}

.live-chip[data-status="播放中"] {
  border-color: rgba(91, 227, 213, 0.54);
  color: rgba(218, 255, 249, 0.88);
}

.live-chip[data-status="播放中"] span {
  background: var(--cyan);
}

.live-chip[data-status="收音中"] {
  border-color: rgba(240, 180, 94, 0.62);
  color: rgba(255, 228, 186, 0.9);
}

.live-chip[data-status="收音中"] span {
  background: var(--amber);
  box-shadow: 0 0 16px rgba(240, 180, 94, 0.86);
}

.live-chip[data-status="思考中"] {
  border-color: rgba(109, 143, 232, 0.54);
  color: rgba(219, 227, 255, 0.88);
}

.live-chip[data-status="思考中"] span {
  background: var(--blue);
  box-shadow: 0 0 16px rgba(109, 143, 232, 0.82);
}

.dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 14px rgba(255, 247, 230, 0.62);
}

.d1 { left: 13%; top: 17%; }
.d2 { left: 37%; top: 10%; background: var(--cyan); }
.d3 { right: 23%; top: 24%; background: var(--amber); }
.d4 { right: 15%; top: 50%; background: var(--cyan); }
.d5 { left: 20%; bottom: 20%; }
.d6 { right: 28%; bottom: 14%; background: var(--cyan); }
.d7 { left: 46%; bottom: 34%; background: var(--amber); }
.d8 { right: 42%; top: 68%; }

.brow,
.eyes,
.mouth {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 247, 230, 0.72);
  box-shadow: 0 0 18px rgba(255, 247, 230, 0.32);
}

.brow {
  top: 36%;
  width: 46%;
  height: 1px;
}

.eyes {
  top: 48%;
  width: 56%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--paper) 0 18%, transparent 18% 82%, var(--paper) 82%);
}

.mouth {
  top: 70%;
  width: 25%;
  height: 2px;
}

.host-copy {
  align-self: end;
  justify-self: center;
  width: min(330px, 100%);
  padding: 0 10px;
  text-align: center;
}

.host-copy p {
  color: rgba(255, 247, 230, 0.86);
  font-size: clamp(14px, 1.75vh, 15px);
  line-height: 1.55;
  text-shadow:
    0 0 16px rgba(0, 0, 0, 0.62),
    0 0 18px rgba(91, 227, 213, 0.18);
}

.player-card {
  position: relative;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  row-gap: 12px;
  min-height: clamp(82px, 10.6vh, 96px);
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(240, 180, 94, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(240, 180, 94, 0.12), transparent 24%, transparent 76%, rgba(91, 227, 213, 0.1)),
    repeating-linear-gradient(180deg, rgba(255, 241, 207, 0.035) 0 1px, transparent 1px 8px),
    linear-gradient(180deg, rgba(24, 19, 15, 0.9), rgba(5, 7, 10, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 241, 207, 0.12),
    inset 0 -18px 36px rgba(0, 0, 0, 0.24),
    0 18px 54px rgba(0, 0, 0, 0.34);
}

.card-screws {
  position: absolute;
  inset: 8px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.card-screws i {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 241, 207, 0.28);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 4px rgba(240, 180, 94, 0.22);
}

.player-glow {
  position: absolute;
  right: -32px;
  top: -48px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 227, 213, 0.2), transparent 64%);
  pointer-events: none;
}

.player-cover {
  position: relative;
  z-index: 30;
  flex: 0 0 66px;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 247, 230, 0.2);
  border-radius: 6px;
  background:
    radial-gradient(circle at 28% 24%, rgba(91, 227, 213, 0.44), transparent 44%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 48%),
    rgba(5, 7, 10, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 241, 207, 0.04),
    0 10px 26px rgba(0, 0, 0, 0.26);
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 247, 230, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 160ms ease;
}

.player-cover.has-image img {
  opacity: 0.9;
}

.player-cover span {
  position: relative;
  z-index: 1;
  color: var(--paper);
  font-size: 18px;
  font-weight: 760;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.5);
}

.track {
  position: relative;
  z-index: 30;
  flex: 1;
  min-width: 0;
}

.track p,
.track span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1.1px;
}

.track h2 {
  margin: 4px 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--paper);
  font-size: clamp(18px, 2.25vh, 21px);
  font-weight: 680;
  line-height: 1.13;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.progress {
  position: relative;
  z-index: 30;
  grid-column: 1 / -1;
  width: 100%;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 241, 207, 0.14);
}

.progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  box-shadow: 0 0 12px rgba(91, 227, 213, 0.54);
}

.voice-area {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.voice-halo {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: min(310px, 78vw);
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(91, 227, 213, 0.15), transparent 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.voice-label {
  position: relative;
  z-index: 30;
  min-height: 12px;
  color: rgba(240, 180, 94, 0.66);
  font-size: 10px;
  letter-spacing: 2px;
  text-align: center;
}

.voice-button {
  position: relative;
  z-index: 30;
  width: min(236px, 68vw);
  height: clamp(58px, 7.4vh, 66px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  border: 1px solid rgba(240, 180, 94, 0.26);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 241, 207, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(91, 227, 213, 0.22), rgba(240, 180, 94, 0.28)),
    linear-gradient(180deg, #1b1712, #0d1014);
  color: var(--paper);
  box-shadow:
    inset 0 1px 0 rgba(255, 241, 207, 0.14),
    inset 0 -8px 18px rgba(0, 0, 0, 0.28),
    0 18px 70px rgba(0, 0, 0, 0.44),
    0 0 34px rgba(91, 227, 213, 0.16);
  font: inherit;
  font-size: 15px;
  font-weight: 720;
  touch-action: none;
  user-select: none;
  cursor: pointer;
  transition: transform 150ms ease, opacity 150ms ease, border-color 150ms ease;
}

.voice-button span {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(91, 227, 213, 0.7);
}

.voice-button.is-listening {
  transform: scale(0.96);
  border-color: rgba(240, 180, 94, 0.54);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 241, 207, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(233, 170, 85, 0.44), rgba(101, 215, 193, 0.18)),
    #111014;
  box-shadow:
    inset 0 1px 0 rgba(255, 241, 207, 0.18),
    inset 0 -8px 18px rgba(0, 0, 0, 0.28),
    0 16px 58px rgba(0, 0, 0, 0.42),
    0 0 42px rgba(240, 180, 94, 0.24);
}

.voice-button.is-busy,
.voice-button:disabled {
  cursor: default;
  opacity: 0.58;
}

.voice-button.is-unsupported {
  border-color: rgba(255, 241, 207, 0.14);
  color: rgba(255, 241, 207, 0.54);
}

.side-hint {
  position: absolute;
  z-index: 30;
  right: 8px;
  top: 50%;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 247, 230, 0.44);
  font-size: 11px;
  letter-spacing: 2px;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
  cursor: pointer;
}

.side-hint span {
  width: 2px;
  height: 38px;
  border-radius: 999px;
  background: rgba(101, 215, 193, 0.52);
  box-shadow: 0 0 18px rgba(101, 215, 193, 0.4);
}

.playlist-screen {
  padding-top: clamp(14px, 2vh, 20px);
  background:
    radial-gradient(circle at 22% 18%, rgba(233, 170, 85, 0.18), transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(101, 215, 193, 0.14), transparent 30%);
}

.playlist-layout {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(12px, 1.7vh, 16px);
  padding-top: 0;
}

.featured-album {
  position: relative;
  min-height: clamp(188px, 27vh, 238px);
  display: grid;
  grid-template-columns: minmax(132px, 42%) 1fr;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  padding: clamp(18px, 2.6vh, 24px);
  border: 1px solid rgba(255, 247, 230, 0.2);
  border-radius: 8px;
  background: rgba(13, 15, 20, 0.78);
}

.featured-album::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
}

.featured-album.teal::before {
  background: radial-gradient(circle at 16% 20%, rgba(101, 215, 193, 0.56), transparent 36%);
}

.vinyl-shadow {
  position: absolute;
  left: clamp(58px, 18vw, 92px);
  top: 50%;
  width: clamp(126px, 18vh, 164px);
  height: clamp(126px, 18vh, 164px);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 247, 230, 0.18) 0 8%, transparent 9% 18%, rgba(0, 0, 0, 0.26) 19% 38%, transparent 39%),
    #0b0b10;
  transform: translateY(-50%);
  box-shadow: 0 0 44px rgba(0, 0, 0, 0.5);
}

.featured-cover,
.featured-album > div:last-child {
  position: relative;
  z-index: 1;
}

.featured-cover {
  width: min(100%, clamp(132px, 20vh, 172px));
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 247, 230, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 38%),
    radial-gradient(circle at 28% 22%, rgba(101, 215, 193, 0.48), transparent 36%),
    rgba(5, 7, 10, 0.78);
  box-shadow: 18px 14px 0 rgba(0, 0, 0, 0.28);
}

.featured-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 160ms ease;
}

.featured-cover.has-image img {
  opacity: 0.82;
}

.featured-cover span {
  position: relative;
  z-index: 1;
  color: var(--paper);
  font-size: clamp(34px, 5vh, 44px);
  font-weight: 760;
  text-shadow: 0 0 22px rgba(0, 0, 0, 0.52);
}

.featured-cover i {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 247, 230, 0.16);
  border-radius: 50%;
}

.featured-album p {
  margin-bottom: 8px;
  color: var(--amber);
  font-size: 12px;
}

.featured-album h3 {
  display: -webkit-box;
  overflow: hidden;
  color: var(--paper);
  font-size: clamp(25px, 3.6vh, 34px);
  line-height: 1.05;
  font-weight: 680;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.featured-album span {
  display: block;
  margin-top: 10px;
  color: var(--cyan);
  font-size: 14px;
}

.featured-album small {
  display: block;
  margin-top: clamp(22px, 3vh, 34px);
  color: var(--muted);
  font-size: 12px;
}

.queue-panel {
  min-height: 0;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(255, 247, 230, 0.16);
  border-radius: 8px;
  background: rgba(8, 10, 14, 0.66);
}

.queue-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: rgba(255, 247, 230, 0.58);
  font-size: 12px;
}

.queue-list {
  height: calc(100% - 24px);
  min-height: 0;
  overflow-y: auto;
  padding-right: 3px;
}

.queue-list::-webkit-scrollbar {
  width: 3px;
}

.queue-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(91, 227, 213, 0.32);
}

.queue-item {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: clamp(54px, 7.4vh, 66px);
  padding: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-top: 1px solid rgba(255, 247, 230, 0.08);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.queue-item:first-of-type {
  border-top: 0;
}

.queue-item.playing {
  color: var(--cyan);
  background: linear-gradient(90deg, rgba(91, 227, 213, 0.08), transparent 76%);
}

.queue-item:hover,
.queue-item:focus-visible {
  outline: 0;
  background: linear-gradient(90deg, rgba(255, 247, 230, 0.07), transparent 76%);
}

.mini-cover {
  overflow: hidden;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(101, 215, 193, 0.38);
  border-radius: 6px;
  background:
    radial-gradient(circle at 28% 24%, rgba(101, 215, 193, 0.5), transparent 45%),
    rgba(5, 7, 10, 0.72);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
}

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

.mini-cover.amber {
  border-color: rgba(233, 170, 85, 0.42);
  background:
    radial-gradient(circle at 28% 24%, rgba(233, 170, 85, 0.58), transparent 45%),
    rgba(5, 7, 10, 0.72);
}

.mini-cover.rose {
  border-color: rgba(216, 95, 114, 0.42);
  background:
    radial-gradient(circle at 28% 24%, rgba(216, 95, 114, 0.52), transparent 45%),
    rgba(5, 7, 10, 0.72);
}

.mini-cover.blue {
  border-color: rgba(109, 143, 232, 0.42);
  background:
    radial-gradient(circle at 28% 24%, rgba(109, 143, 232, 0.52), transparent 45%),
    rgba(5, 7, 10, 0.72);
}

.queue-item h3 {
  overflow: hidden;
  color: var(--paper);
  font-size: 15px;
  font-weight: 640;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-item p {
  margin-top: 4px;
  overflow: hidden;
  color: rgba(255, 247, 230, 0.48);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-time {
  display: grid;
  gap: 4px;
  color: rgba(255, 247, 230, 0.44);
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.track-time small {
  color: rgba(91, 227, 213, 0.48);
  font-size: 10px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 120px;
  color: rgba(255, 247, 230, 0.48);
  font-size: 13px;
  text-align: center;
}

.playlist-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 247, 230, 0.48);
  font-size: 12px;
}

.playlist-footer a {
  color: rgba(255, 247, 230, 0.54);
  text-decoration: none;
}

.playlist-footer span {
  width: 38px;
  height: 2px;
  border-radius: 999px;
  background: rgba(101, 215, 193, 0.52);
  box-shadow: 0 0 18px rgba(101, 215, 193, 0.36);
}

@media (max-width: 520px) {
  html,
  body {
    height: 100%;
    min-height: 100%;
    overscroll-behavior: none;
  }

  body {
    display: block;
    padding: 0;
    background: #050507;
  }

  .phone {
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .phone::before {
    display: none;
  }

  .loading-screen {
    padding:
      calc(34px + env(safe-area-inset-top))
      calc(30px + env(safe-area-inset-right))
      calc(86px + env(safe-area-inset-bottom))
      calc(30px + env(safe-area-inset-left));
  }
}

@media (max-height: 740px) {
  .screen {
    padding-top: 22px;
    padding-bottom: 16px;
  }

  .home-screen {
    gap: 12px;
  }

  .host-copy p {
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .screen {
    padding:
      calc(22px + env(safe-area-inset-top))
      calc(20px + env(safe-area-inset-right))
      calc(16px + env(safe-area-inset-bottom))
      calc(20px + env(safe-area-inset-left));
  }

  .home-screen {
    padding: 0;
  }

  .home-ui {
    padding:
      calc(clamp(24px, 5.2dvh, 44px) + env(safe-area-inset-top))
      calc(20px + env(safe-area-inset-right))
      calc(clamp(18px, 3.4dvh, 28px) + env(safe-area-inset-bottom))
      calc(20px + env(safe-area-inset-left));
  }
}
