:root {
  --ink: #191817;
  --muted: #77746e;
  --line: rgba(28, 26, 24, 0.12);
  --paper: #f4f1ec;
  --surface: rgba(255, 255, 255, 0.54);
  --surface-strong: rgba(255, 255, 255, 0.78);
  --coral: #ff6f4f;
  --mint: #79dfb1;
  --lilac: #cdb8ff;
  --lemon: #ffda73;
  --rose: #ef476f;
  --aqua: #65c8d0;
  --shadow: 0 24px 70px rgba(53, 44, 37, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 218, 115, 0.38), transparent 26%),
    radial-gradient(circle at 78% 10%, rgba(121, 223, 177, 0.34), transparent 30%),
    linear-gradient(135deg, #f8f5f0 0%, #ede8df 48%, #f7f1f7 100%);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 88px;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-right: 1px solid var(--line);
  background: rgba(250, 248, 244, 0.62);
  backdrop-filter: blur(24px);
}

.brand-mark,
.profile-chip span {
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--coral));
  box-shadow: 0 16px 30px rgba(239, 71, 111, 0.32);
}

.rail-nav {
  display: grid;
  gap: 20px;
}

.rail-link,
.icon-btn {
  display: grid;
  place-items: center;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.rail-link {
  width: 44px;
  height: 44px;
  border-radius: 16px;
}

.rail-link.active,
.rail-link:hover,
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.68);
}

.shell {
  width: calc(100% - 88px);
  max-width: 1440px;
  margin-left: 88px;
  padding: 20px 38px 42px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.search-box {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: rgba(231, 229, 222, 0.88);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.top-actions,
.profile-chip,
.section-head,
.login-row,
.player-controls,
.progress-row,
.privacy-tools,
.tool-chip {
  display: flex;
  align-items: center;
}

.top-actions {
  gap: 12px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.icon-btn:active,
.play-btn:active,
.primary-action:active,
.google-action:active {
  transform: scale(0.97);
}

.profile-chip {
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.profile-chip span {
  width: 40px;
  height: 40px;
  background: var(--mint);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.82fr);
  gap: 20px;
}

.hero-panel,
.queue-panel,
.player-panel,
.login-card,
.glass-album,
.mini-card {
  border: 1px solid rgba(255, 255, 255, 0.64);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px);
}

.hero-panel {
  min-height: 560px;
  padding: 34px;
  border-radius: 22px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.hero-copy {
  width: min(560px, 100%);
}

.hero-copy h1,
.login-card h1 {
  margin-bottom: 12px;
  font-size: clamp(2.35rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy p:last-child,
.login-card .form-note,
.mini-card p,
.player-main p,
.artist-meta span {
  color: var(--muted);
}

.carousel-shell {
  position: relative;
  margin: 34px auto 24px;
  width: min(780px, 100%);
}

.artist-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border-radius: 26px;
  background: #ddd7cf;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 28px 60px rgba(39, 31, 27, 0.2);
}

.artist-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease, transform 0.5s ease;
}

.artist-card:hover img {
  transform: scale(1.04);
}

.artist-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 15, 13, 0.82), rgba(18, 15, 13, 0.18) 54%, rgba(255, 255, 255, 0.08));
}

.artist-meta {
  position: absolute;
  inset: auto auto 30px 30px;
  width: min(380px, calc(100% - 60px));
  color: #fff;
}

.artist-meta p {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.artist-meta h2 {
  margin-bottom: 8px;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 0.92;
}

.carousel-controls {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  gap: 10px;
}

.glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
}

.artist-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.dot {
  width: 42px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(25, 24, 23, 0.16);
  cursor: pointer;
}

.dot.active {
  background: var(--rose);
}

.queue-panel {
  display: flex;
  min-height: 560px;
  flex-direction: column;
  padding: 26px;
  border-radius: 22px;
}

.section-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin-bottom: 0;
}

.soft-badge {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(121, 223, 177, 0.5);
  font-size: 0.84rem;
  font-weight: 800;
}

.soft-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-weight: 800;
}

.chart-list {
  display: grid;
  gap: 10px;
  overflow: auto;
  padding-right: 4px;
}

.track-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  text-align: left;
}

.track-row.active,
.track-row:hover {
  background: rgba(255, 255, 255, 0.78);
}

.rank-pill {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--lemon), var(--coral));
  font-weight: 800;
}

.track-row h3 {
  margin-bottom: 4px;
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-row p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.year-tag {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(205, 184, 255, 0.42);
  color: #463568;
  font-size: 0.82rem;
  font-weight: 800;
}

.player-section {
  margin-top: 20px;
}

.player-panel {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 160px;
  gap: 30px;
  align-items: center;
  padding: 26px;
  border-radius: 22px;
}

.vinyl-wrap {
  display: grid;
  place-items: center;
}

.vinyl {
  position: relative;
  display: grid;
  width: min(180px, 46vw);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #f8f4ed 0 12%, transparent 13%),
    repeating-radial-gradient(circle, #25201f 0 8px, #151312 9px 14px);
  box-shadow: 0 26px 54px rgba(24, 18, 16, 0.32);
}

.vinyl span {
  width: 58px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), var(--lilac));
}

.vinyl.playing {
  animation: spin 7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.player-main h2 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.progress-row {
  gap: 12px;
  margin: 26px 0 22px;
  color: var(--muted);
  font-size: 0.88rem;
}

.progress-track {
  overflow: hidden;
  flex: 1;
  height: 9px;
  border-radius: 999px;
  background: rgba(25, 24, 23, 0.13);
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose), var(--coral), var(--lemon));
}

.player-controls {
  gap: 14px;
}

.play-btn {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 20px;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  box-shadow: 0 18px 32px rgba(24, 18, 16, 0.24);
}

.now-card {
  min-height: 150px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(121, 223, 177, 0.78), rgba(205, 184, 255, 0.75));
}

.now-card span,
.now-card p {
  color: rgba(25, 24, 23, 0.66);
}

.now-card strong {
  display: block;
  margin: 10px 0;
  font-size: 3rem;
  line-height: 1;
}

.discover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.mini-card {
  min-height: 170px;
  padding: 24px;
  border-radius: 20px;
}

.mini-card i {
  width: 28px;
  height: 28px;
  margin-bottom: 22px;
}

.mini-card h3 {
  margin-bottom: 8px;
}

.peach {
  background: rgba(255, 207, 171, 0.58);
}

.mint {
  background: rgba(164, 230, 199, 0.58);
}

.lilac {
  background: rgba(218, 205, 255, 0.6);
}

.login-page {
  min-height: 100vh;
  padding: 32px;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--muted);
  font-weight: 700;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.75fr);
  gap: 24px;
  width: min(1180px, 100%);
  margin: 0 auto;
  align-items: center;
}

.login-visual {
  position: relative;
  min-height: 650px;
}

.glass-album {
  position: absolute;
  inset: 38px 0 0;
  overflow: hidden;
  border-radius: 30px;
}

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

.album-overlay {
  position: absolute;
  inset: auto 28px 28px;
  max-width: 430px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 24px;
  color: #fff;
  background: rgba(18, 15, 13, 0.28);
  backdrop-filter: blur(20px);
}

.album-overlay h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
}

.floating-track {
  position: absolute;
  top: 0;
  right: 38px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.login-card {
  padding: 34px;
  border-radius: 28px;
}

.login-card h1 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  font-weight: 700;
}

.field input {
  width: 100%;
  height: 54px;
  border: 1px solid rgba(25, 24, 23, 0.1);
  border-radius: 16px;
  outline: 0;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.72);
}

.field input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(239, 71, 111, 0.12);
}

.login-row {
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.primary-action,
.google-action {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  font-weight: 800;
}

.primary-action {
  color: #fff;
  background: var(--ink);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.google-action {
  border: 1px solid rgba(25, 24, 23, 0.1);
  background: rgba(255, 255, 255, 0.74);
}

.google-action svg {
  width: 22px;
  height: 22px;
}

.google-official {
  display: grid;
  place-items: center;
  min-height: 42px;
  margin-top: 12px;
}

.form-note {
  margin: 16px 0 0;
  font-size: 0.88rem;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.privacy-shell {
  padding-bottom: 70px;
}

.privacy-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px);
}

.privacy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 24px;
  align-items: center;
  padding: 42px;
  background:
    radial-gradient(circle at 88% 18%, rgba(121, 223, 177, 0.46), transparent 30%),
    linear-gradient(135deg, rgba(255, 218, 115, 0.24), rgba(205, 184, 255, 0.22));
}

.privacy-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 1;
}

.privacy-hero p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
}

.policy-mark {
  display: grid;
  width: 150px;
  aspect-ratio: 1;
  place-items: center;
  justify-self: end;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(121, 223, 177, 0.75), rgba(205, 184, 255, 0.78));
  box-shadow: 0 22px 50px rgba(52, 41, 70, 0.14);
}

.policy-mark i {
  width: 62px;
  height: 62px;
}

.privacy-tools {
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.66);
  border-bottom: 1px solid rgba(25, 24, 23, 0.08);
  background: rgba(255, 255, 255, 0.44);
}

.tool-chip {
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(25, 24, 23, 0.1);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  cursor: pointer;
  font-weight: 800;
}

.tool-chip:hover,
.soft-link:hover {
  background: rgba(255, 255, 255, 0.88);
}

.policy-section {
  padding: 26px 42px;
  border-bottom: 1px solid rgba(25, 24, 23, 0.08);
}

.policy-section:last-child {
  border-bottom: 0;
}

.policy-section h2 {
  margin-bottom: 14px;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.policy-section p,
.policy-section li {
  color: #4f4b45;
  line-height: 1.9;
}

.policy-section a {
  color: #b72d55;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.policy-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.3rem;
}

@media print {
  body {
    background: #fff;
  }

  .rail,
  .topbar,
  .privacy-tools {
    display: none;
  }

  .shell,
  .privacy-shell {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .privacy-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 1120px) {
  .home-grid,
  .login-shell {
    grid-template-columns: 1fr;
  }

  .queue-panel {
    min-height: auto;
  }

  .login-visual {
    min-height: 470px;
  }
}

@media (max-width: 820px) {
  .rail {
    position: sticky;
    top: 0;
    flex-direction: row;
    width: 100%;
    height: 72px;
    padding: 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail-nav {
    display: flex;
    gap: 6px;
  }

  .shell {
    width: 100%;
    margin-left: 0;
    padding: 18px;
  }

  .topbar,
  .player-panel {
    align-items: stretch;
  }

  .topbar {
    flex-direction: column;
  }

  .top-actions {
    justify-content: space-between;
  }

  .hero-panel,
  .queue-panel,
  .player-panel,
  .login-card,
  .privacy-hero,
  .policy-section {
    padding: 20px;
  }

  .hero-panel {
    min-height: auto;
  }

  .artist-card {
    min-height: 420px;
  }

  .artist-gradient {
    background: linear-gradient(0deg, rgba(18, 15, 13, 0.82), rgba(18, 15, 13, 0.1));
  }

  .player-panel {
    grid-template-columns: 1fr;
  }

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

  .login-page {
    padding: 20px;
  }

  .privacy-hero {
    grid-template-columns: 1fr;
  }

  .policy-mark {
    width: 94px;
    border-radius: 24px;
    justify-self: start;
  }

  .privacy-tools {
    padding: 16px 20px;
  }

  .login-visual {
    min-height: 360px;
  }
}

@media (max-width: 520px) {
  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .rail-link {
    width: 40px;
    height: 40px;
  }

  .hero-copy h1,
  .login-card h1 {
    font-size: 2.3rem;
  }

  .artist-card {
    min-height: 360px;
  }

  .artist-meta {
    inset: auto 18px 20px;
    width: calc(100% - 36px);
  }

  .artist-meta h2 {
    font-size: 2.5rem;
  }

  .carousel-controls {
    right: 14px;
    top: 14px;
    bottom: auto;
  }

  .track-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .rank-pill {
    width: 44px;
    height: 44px;
  }

  .year-tag {
    grid-column: 2;
    width: fit-content;
  }

  .login-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .login-visual {
    min-height: 300px;
  }

  .glass-album {
    inset: 30px 0 0;
  }

  .album-overlay {
    inset: auto 16px 16px;
    padding: 18px;
  }
}
