@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,650;0,9..40,700;1,9..40,400&family=Outfit:wght@500;600;700;800&display=swap');

/* =========================================================
   KuGou Music — Atmosphere (atm)
   Pixel-tight Spotify-like mockup shell
   ========================================================= */

:root {
  --atm-bg: #05070A;
  --atm-surface: #0E111A;
  --atm-surface-2: #12151f;
  --atm-blue: #335CFF;
  --atm-blue-hover: #4a6fff;
  --atm-muted: #9AA1B0;
  --atm-muted-2: #7B8498;
  --atm-link: #B8BDC9;
  --atm-ink: #FFFFFF;
  --atm-artist: #C5CAD6;
  --atm-border: rgba(255, 255, 255, 0.06);
  --atm-border-soft: rgba(255, 255, 255, 0.05);
  --atm-orange: #FF7A3D;
  --atm-purple: #8B5CF6;
  --atm-track: #1c2230;
  --atm-glow: 0 0 16px rgba(51, 92, 255, 0.35);
  --atm-glow-strong: 0 0 20px rgba(51, 92, 255, 0.45);
  --atm-nav-h: 58px;
  --atm-max: 1180px;
  --atm-gutter: 28px;
  --atm-font: "DM Sans", system-ui, -apple-system, sans-serif;
  --atm-ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.atm-body,
.atm-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 42% at 48% 8%, rgba(51, 92, 255, 0.14), transparent 62%),
    var(--atm-bg);
  color: var(--atm-ink);
  font-family: var(--atm-font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.atm-body.atm-theme-alt {
  --atm-bg: #07090e;
  --atm-surface: #121620;
  --atm-surface-2: #161a26;
}

.atm-body img {
  max-width: 100%;
  display: block;
}

.atm-body a {
  color: inherit;
  text-decoration: none;
}

.atm-body button,
.atm-body input,
.atm-body select {
  font: inherit;
  color: inherit;
}

.atm-body button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

.atm-body :focus-visible {
  outline: 2px solid var(--atm-blue);
  outline-offset: 2px;
}

.atm-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Shell ---------- */

.atm-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.atm-shell > main,
.atm-main {
  flex: 1 1 auto;
  width: min(100%, var(--atm-max));
  margin-inline: auto;
  padding: 0 var(--atm-gutter) 8px;
  min-width: 0;
}

.atm-wrap,
.atm-page {
  width: min(100%, var(--atm-max));
  margin-inline: auto;
  padding-inline: var(--atm-gutter);
}

.atm-panel {
  background: var(--atm-surface);
  border: 1px solid var(--atm-border);
  border-radius: 12px;
  padding: 16px;
}

/* ---------- Sticky header ---------- */

.atm-nav {
  position: sticky;
  top: 12px;
  z-index: 200;
  width: min(100% - 24px, var(--atm-max));
  margin: 12px auto 0;
  height: var(--atm-nav-h);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 0 14px 0 16px;
  box-sizing: border-box;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 42%),
    rgba(10, 14, 22, 0.78);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(51, 92, 255, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 48px rgba(51, 92, 255, 0.08);
  isolation: isolate;
  overflow: visible;
}

.atm-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 80% at 8% 0%, rgba(51, 92, 255, 0.16), transparent 42%);
  z-index: -1;
}

.atm-nav > .atm-nav-brand,
.atm-nav > .atm-nav-links,
.atm-nav > .atm-nav-actions {
  min-width: 0;
}

.atm-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.atm-nav-brand a,
.atm-nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--atm-ink);
}

.atm-nav-mark,
.atm-nav-brand img {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow:
    0 0 0 2px rgba(51, 92, 255, 0.35),
    0 0 16px rgba(51, 92, 255, 0.35);
  transition: transform 0.25s var(--atm-ease), box-shadow 0.25s var(--atm-ease);
}

.atm-nav-logo:hover .atm-nav-mark,
.atm-nav-logo:hover img {
  transform: scale(1.06);
  box-shadow:
    0 0 0 2px rgba(74, 111, 255, 0.55),
    0 0 22px rgba(51, 92, 255, 0.5);
}

.atm-nav-title {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
  background: linear-gradient(90deg, #fff 35%, #9db0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .atm-nav-title { color: #fff; background: none; }
}

.atm-nav-search {
  width: 220px;
  flex: 0 0 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    width 0.28s var(--atm-ease),
    flex-basis 0.28s var(--atm-ease),
    border-color 0.2s var(--atm-ease),
    box-shadow 0.2s var(--atm-ease),
    background 0.2s var(--atm-ease);
}

.atm-nav-search:focus-within {
  width: 260px;
  flex-basis: 260px;
  background: rgba(51, 92, 255, 0.08);
  border-color: rgba(51, 92, 255, 0.45);
  box-shadow:
    0 0 0 3px rgba(51, 92, 255, 0.18),
    0 0 24px rgba(51, 92, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.atm-nav-search svg,
.atm-nav-search .atm-search-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--atm-muted-2);
  transition: color 0.2s ease;
}

.atm-nav-search:focus-within svg,
.atm-nav-search:focus-within .atm-search-icon {
  color: #8ea4ff;
}

.atm-nav-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  color: var(--atm-ink);
  font-size: 12.5px;
  border-radius: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.atm-nav-search input:focus,
.atm-nav-search input:focus-visible,
.atm-body .atm-nav-search input:focus-visible {
  outline: none;
  box-shadow: none;
  border: 0;
}

.atm-nav-search input::placeholder {
  color: var(--atm-muted-2);
}

.atm-nav-links {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 0 4px;
}

.atm-nav-links a,
.atm-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--atm-link);
  white-space: nowrap;
  transition:
    color 0.2s var(--atm-ease),
    background 0.2s var(--atm-ease),
    box-shadow 0.2s var(--atm-ease);
}

.atm-nav-links a:hover,
.atm-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.atm-nav-links a.is-active,
.atm-nav-links a[aria-current="page"],
.atm-nav-link.is-active {
  color: #fff;
  background: rgba(51, 92, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(51, 92, 255, 0.28);
}

.atm-nav-links a.is-active::after,
.atm-nav-links a[aria-current="page"]::after,
.atm-nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--atm-blue);
  box-shadow: 0 0 12px rgba(51, 92, 255, 0.85);
}

.atm-nav-link--live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ff4d6d;
  box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.55);
  animation: atm-live-pulse 1.8s ease-out infinite;
}

@keyframes atm-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(255, 77, 109, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0); }
}

.atm-nav-more {
  position: relative;
}

.atm-nav-more > button,
.atm-nav-more > summary,
.atm-nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--atm-link);
  white-space: nowrap;
  transition: color 0.2s var(--atm-ease), background 0.2s var(--atm-ease);
}

.atm-nav-more > button:hover,
.atm-nav-more > summary:hover,
.atm-nav-dropdown-toggle:hover,
.atm-nav-more.is-open > button,
.atm-nav-more.is-open > .atm-nav-dropdown-toggle {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.atm-nav-more summary {
  list-style: none;
}

.atm-nav-more summary::-webkit-details-marker {
  display: none;
}

.atm-nav-caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.atm-nav-more.is-open .atm-nav-caret {
  transform: rotate(180deg);
}

.atm-nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 180px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(12, 16, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(51, 92, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 220;
  backdrop-filter: blur(12px);
}

/* Invisible hover bridge so the cursor can reach the menu without closing it */
.atm-nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.atm-nav-more:hover > .atm-nav-dropdown,
.atm-nav-more[open] > .atm-nav-dropdown,
.atm-nav-more.is-open > .atm-nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.atm-nav-dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--atm-link);
  transition: background 0.15s ease, color 0.15s ease;
}

.atm-nav-dropdown a:hover {
  background: rgba(51, 92, 255, 0.14);
  color: #fff;
}

.atm-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
  overflow: visible;
  position: relative;
  z-index: 230;
}

.atm-login,
.atm-nav-login,
.atm-login-btn,
.atm-nav-actions .atm-login-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(135deg, #4a6fff 0%, #335cff 55%, #2a4de0 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 8px 22px rgba(51, 92, 255, 0.4);
  transition: transform 0.2s var(--atm-ease), box-shadow 0.2s var(--atm-ease), filter 0.2s ease;
}

.atm-login::before,
.atm-nav-login::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.atm-login:hover,
.atm-nav-login:hover,
.atm-login-btn:hover,
.atm-nav-actions .atm-login-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 10px 28px rgba(51, 92, 255, 0.55);
}

.atm-login:hover::before,
.atm-nav-login:hover::before {
  transform: translateX(120%);
}

.atm-nav-lang,
.atm-lang-wrap {
  position: relative;
  z-index: 240;
}

.atm-nav-lang-btn,
.atm-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  min-width: 36px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--atm-link);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: color 0.2s var(--atm-ease), background 0.2s var(--atm-ease), border-color 0.2s ease, box-shadow 0.2s ease;
}

.atm-nav-lang-btn:hover,
.atm-lang-btn:hover,
.atm-nav-lang.is-open .atm-nav-lang-btn,
.atm-lang-wrap.is-open .atm-lang-btn {
  color: #fff;
  background: rgba(51, 92, 255, 0.12);
  border-color: rgba(51, 92, 255, 0.35);
  box-shadow: 0 0 16px rgba(51, 92, 255, 0.18);
}

.atm-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(12, 16, 24, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 250;
  backdrop-filter: blur(12px);
}

/* Bridge the gap so the menu stays hoverable / clickable */
.atm-lang-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.atm-lang-wrap.is-open .atm-lang-menu,
.atm-nav-lang.is-open .atm-lang-menu,
.lang-wrap.is-open .lang-menu,
.atm-lang-wrap:hover .atm-lang-menu,
.atm-nav-lang:hover .atm-lang-menu,
.lang-wrap:hover .lang-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.atm-lang-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--atm-link);
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.atm-lang-menu a:hover,
.atm-lang-menu a.is-active {
  background: rgba(51, 92, 255, 0.14);
  color: #fff;
}

.atm-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--atm-ink);
  font-size: 16px;
  flex-shrink: 0;
}

.atm-menu-toggle:hover {
  background: rgba(51, 92, 255, 0.12);
  border-color: rgba(51, 92, 255, 0.35);
}

/* ---------- Buttons ---------- */

.atm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.25s var(--atm-ease),
    border-color 0.25s var(--atm-ease),
    box-shadow 0.25s var(--atm-ease),
    transform 0.25s var(--atm-ease),
    filter 0.25s var(--atm-ease);
}

.atm-btn--primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #6a95ff 0%, #3d68ff 42%, #2948e8 100%);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 12px 32px rgba(51, 92, 255, 0.48),
    0 0 24px rgba(80, 130, 255, 0.22);
}

.atm-btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.22) 48%,
    transparent 66%
  );
  transform: translateX(-120%);
  transition: transform 0.55s var(--atm-ease);
  pointer-events: none;
}

.atm-btn--primary svg {
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.atm-btn--primary:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 16px 36px rgba(51, 92, 255, 0.55),
    0 0 32px rgba(90, 140, 255, 0.32);
}

.atm-btn--primary:hover::before {
  transform: translateX(120%);
}

.atm-btn--ghost,
.atm-btn--outline {
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.atm-btn--ghost:hover,
.atm-btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */

.atm-hero {
  position: relative;
  margin-top: 16px;
  height: 328px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 48% 80% at 78% 48%, rgba(90, 140, 210, 0.18), transparent 70%),
    linear-gradient(112deg, #05070c 0%, #0a1018 38%, #152638 72%, #1e3348 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(90, 140, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.atm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: overlay;
}

.atm-hero-bg {
  position: absolute;
  top: -16%;
  right: -8%;
  bottom: -16%;
  left: 32%;
  background-size: cover;
  background-position: center 42%;
  filter: saturate(1.2) brightness(0.82) blur(22px);
  opacity: 0.62;
  transform: scale(1.14);
  z-index: 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%);
  transition: opacity 0.6s var(--atm-ease), filter 0.6s var(--atm-ease);
}

.atm-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      105deg,
      #05070c 0%,
      rgba(6, 8, 13, 0.97) 26%,
      rgba(8, 12, 20, 0.82) 48%,
      rgba(16, 32, 52, 0.45) 70%,
      rgba(36, 64, 96, 0.18) 100%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 28%, rgba(5, 7, 10, 0.35) 100%);
  pointer-events: none;
}

.atm-hero-glow {
  position: absolute;
  right: -6%;
  top: -22%;
  width: 58%;
  height: 150%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 55% 48%, rgba(140, 190, 255, 0.28), transparent 56%),
    radial-gradient(ellipse at 78% 68%, rgba(51, 92, 255, 0.16), transparent 50%);
  filter: blur(16px);
  animation: atm-hero-glow-breathe 5.5s ease-in-out infinite;
}

.atm-hero-orb {
  display: none;
}

.atm-hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: 16px;
  padding: 38px 48px;
}

.atm-hero-content {
  position: relative;
  min-width: 0;
  max-width: 480px;
  isolation: isolate;
}

.atm-hero-content::before {
  content: attr(data-mark);
  position: absolute;
  left: -10px;
  top: 8px;
  z-index: 0;
  font-family: "Outfit", var(--atm-font);
  font-size: clamp(68px, 8vw, 104px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  color: transparent;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.04) 55%,
    transparent 90%
  );
  -webkit-background-clip: text;
  background-clip: text;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 92%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 92%);
}

.atm-hero-badge,
.atm-hero-kicker,
.atm-hero-title,
.atm-hero-artist,
.atm-hero-desc,
.atm-hero-actions {
  position: relative;
  z-index: 1;
}

.atm-hero-badge,
.atm-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #5a7fff, #335cff 60%, #2a4ce0);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 10px 24px rgba(51, 92, 255, 0.42);
}

.atm-hero-badge::before,
.atm-hero-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
  animation: atm-badge-dot 1.8s ease-in-out infinite;
}

.atm-hero-title {
  margin: 16px 0 10px;
  font-family: "Outfit", var(--atm-font);
  font-size: clamp(36px, 3.7vw, 50px);
  font-weight: 700;
  line-height: 1.04;
  color: #fff;
  letter-spacing: -0.035em;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.15),
    0 14px 40px rgba(0, 0, 0, 0.45);
}

.atm-hero-artist {
  margin: 0;
  font-size: 15.5px;
  color: rgba(230, 236, 255, 0.9);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.atm-hero-artist::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  margin-right: 10px;
  margin-bottom: 4px;
  vertical-align: middle;
  border-radius: 999px;
  background: linear-gradient(90deg, #6a95ff 0%, rgba(106, 149, 255, 0.15) 100%);
  box-shadow: 0 0 10px rgba(90, 140, 255, 0.45);
}

.atm-hero-lead,
.atm-hero-desc {
  margin: 12px 0 26px;
  max-width: 380px;
  font-size: 13.75px;
  line-height: 1.6;
  color: rgba(176, 188, 214, 0.95);
}

.atm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.atm-hero-actions .atm-btn {
  height: 44px;
  padding: 0 24px;
  font-size: 13.75px;
}

.atm-hero-meta {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--atm-muted-2);
}

.atm-hero-art {
  /* Vinyl slightly smaller than sleeve so it sits "inside" — no top/bottom overhang */
  --art-size: 248px;
  --vinyl-size: 228px;
  --vinyl-peek: 72px;
  position: relative;
  justify-self: end;
  align-self: center;
  width: min(100%, calc(var(--art-size) + var(--vinyl-peek)));
  height: var(--art-size);
  isolation: isolate;
  animation: atm-art-float 6s ease-in-out infinite;
}

.atm-hero-art::before {
  content: "";
  position: absolute;
  left: 28%;
  right: 0;
  top: 18%;
  bottom: 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(120, 175, 255, 0.26), transparent 68%);
  filter: blur(18px);
  z-index: 0;
  pointer-events: none;
}

.atm-hero-art::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 4%;
  bottom: -6px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 72%);
  z-index: 0;
  pointer-events: none;
}

/* Prefer live cover + vinyl composition (match mockup) */
.atm-hero-stack {
  display: none !important;
}

.atm-hero-vinyl {
  position: absolute;
  width: var(--vinyl-size);
  height: var(--vinyl-size);
  border-radius: 50%;
  /* Tucked under the sleeve; only a crescent peeks out the right edge */
  left: calc(var(--art-size) - (var(--vinyl-size) - var(--vinyl-peek)));
  top: 50%;
  transform: translateY(-50%);
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.16), transparent 20%),
    radial-gradient(circle at 74% 72%, rgba(150, 185, 235, 0.12), transparent 28%),
    radial-gradient(circle at center, #151820 0 10.5%, transparent 11.5%),
    repeating-radial-gradient(
      circle at center,
      #06070b 0 1px,
      #13151c 1.2px 2.2px,
      #090a0f 2.4px 3.4px,
      #191c25 3.6px 4.6px
    );
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.5),
    0 2px 0 rgba(255, 255, 255, 0.05) inset,
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    inset 0 0 32px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(90, 140, 220, 0.1);
  animation: atm-vinyl-spin 20s linear infinite;
  z-index: 1;
  transition: left 0.45s var(--atm-ease);
}

.atm-hero-vinyl::before {
  content: "";
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background-color: #0e121a;
  background-image:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), transparent 42%),
    var(--vinyl-label);
  background-size: cover, cover;
  background-position: center, center;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.7),
    0 4px 12px rgba(0, 0, 0, 0.4);
}

.atm-hero-vinyl::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(
      from 200deg,
      transparent 0deg,
      rgba(255, 255, 255, 0.14) 22deg,
      transparent 50deg,
      transparent 168deg,
      rgba(180, 210, 255, 0.08) 205deg,
      transparent 245deg
    );
  pointer-events: none;
  z-index: 2;
}

.atm-hero-cover {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: var(--art-size);
  height: var(--art-size);
  border-radius: 14px;
  overflow: hidden;
  background: #071018;
  transform: none;
  transition:
    transform 0.45s var(--atm-ease),
    box-shadow 0.45s var(--atm-ease);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(200, 224, 255, 0.62),
    0 0 0 3px rgba(120, 170, 255, 0.1),
    0 0 28px rgba(110, 170, 255, 0.18);
}

.atm-hero-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.16) 0%,
    transparent 36%,
    transparent 62%,
    rgba(0, 0, 0, 0.18) 100%
  );
  pointer-events: none;
}

.atm-hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  pointer-events: none;
  z-index: 2;
}

.atm-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--atm-ease);
}

.atm-hero-art:hover .atm-hero-vinyl {
  animation-duration: 8s;
  left: calc(var(--art-size) - (var(--vinyl-size) - var(--vinyl-peek)) + 10px);
}

.atm-hero-art:hover .atm-hero-cover {
  transform: translateY(-3px);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(220, 236, 255, 0.78),
    0 0 0 3px rgba(140, 190, 255, 0.16),
    0 0 36px rgba(120, 180, 255, 0.3);
}

.atm-hero-art:hover .atm-hero-cover img {
  transform: scale(1.03);
}

.atm-hero-dots {
  display: none !important;
}

.atm-hero-cover img,
.atm-hero-bg {
  transition: opacity 0.45s var(--atm-ease), filter 0.6s var(--atm-ease);
}

.atm-hero-art.is-fading .atm-hero-cover img {
  opacity: 0.35;
}

@keyframes atm-vinyl-spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

@keyframes atm-hero-glow-breathe {
  0%, 100% { opacity: 0.78; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes atm-art-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes atm-badge-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.atm-fade-in {
  animation: atm-fade-in 0.65s var(--atm-ease) both;
}

.atm-fade-in .atm-hero-badge { animation: atm-fade-up 0.55s var(--atm-ease) both; }
.atm-fade-in .atm-hero-title { animation: atm-fade-up 0.6s var(--atm-ease) 0.06s both; }
.atm-fade-in .atm-hero-artist { animation: atm-fade-up 0.6s var(--atm-ease) 0.12s both; }
.atm-fade-in .atm-hero-desc { animation: atm-fade-up 0.6s var(--atm-ease) 0.18s both; }
.atm-fade-in .atm-hero-actions { animation: atm-fade-up 0.6s var(--atm-ease) 0.24s both; }

.atm-hero-content.is-switching .atm-hero-badge,
.atm-hero-content.is-switching .atm-hero-title,
.atm-hero-content.is-switching .atm-hero-artist,
.atm-hero-content.is-switching .atm-hero-desc,
.atm-hero-content.is-switching .atm-hero-actions {
  animation: atm-fade-up 0.45s var(--atm-ease) both;
}

@keyframes atm-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes atm-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Player ---------- */

.atm-player {
  display: grid;
  grid-template-columns: 240px 1fr 200px;
  align-items: center;
  gap: 12px;
  margin: 14px 0 0;
  height: 64px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--atm-surface);
  border: 1px solid var(--atm-border);
}

.atm-player-now {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.atm-player-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--atm-track);
}

.atm-player-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.atm-player-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.atm-player-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.atm-player-artist {
  margin-top: 2px;
  font-size: 11px;
  color: var(--atm-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.atm-player-like {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--atm-muted-2);
  flex-shrink: 0;
}

.atm-player-like:hover,
.atm-player-like[aria-pressed="true"],
.atm-player-like.is-liked {
  color: #ff6b8a;
}

.atm-player-like svg {
  width: 16px;
  height: 16px;
}

.atm-player-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.atm-player-transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.atm-player-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--atm-link);
  transition: color 0.15s ease;
}

.atm-player-btn:hover {
  color: #fff;
}

.atm-player-btn svg {
  width: 18px;
  height: 18px;
}

.atm-player-btn--play {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--atm-blue);
  color: #fff;
  box-shadow: var(--atm-glow);
}

.atm-player-btn--play:hover {
  background: var(--atm-blue-hover);
  color: #fff;
}

.atm-player-btn--play svg {
  width: 16px;
  height: 16px;
}

.atm-player-btn.is-active,
.atm-player-btn--play.is-playing {
  color: var(--atm-blue);
}

.atm-player-btn--play.is-playing {
  color: #fff;
}

.atm-player-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  width: min(100%, 420px);
}

.atm-player-time {
  font-size: 11px;
  color: var(--atm-muted);
  font-variant-numeric: tabular-nums;
  min-width: 34px;
}

.atm-player-time:last-child {
  text-align: right;
}

.atm-player-bar,
.atm-progress {
  position: relative;
  height: 3px;
  border-radius: 999px;
  background: var(--atm-track);
  overflow: visible;
  cursor: pointer;
}

.atm-player-bar-fill,
.atm-progress-fill {
  position: relative;
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--atm-blue);
}

.atm-player-bar-fill::after,
.atm-progress-fill::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  box-shadow: 0 0 0 2px rgba(51, 92, 255, 0.35);
}

.atm-player-extra {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.atm-player-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.atm-player-volume .atm-player-bar,
.atm-player-volume .atm-progress {
  width: 84px;
  flex: 1 1 auto;
}

.atm-player-queue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--atm-muted-2);
}

.atm-player-queue:hover {
  color: #fff;
}

.atm-player-queue svg {
  width: 16px;
  height: 16px;
}

/* ---------- Split layout ---------- */

.atm-split {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  gap: 22px;
  align-items: start;
  margin-top: 28px;
}

.atm-split-main,
.atm-split-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.atm-section,
.atm-block {
  min-width: 0;
}

.atm-section-head,
.atm-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.atm-section-title,
.atm-block-title {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  color: #fff;
  letter-spacing: -0.01em;
}

.atm-section-sub,
.atm-block-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--atm-muted-2);
  max-width: 42ch;
}

.atm-section-more,
.atm-block-more {
  flex-shrink: 0;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--atm-muted-2);
  white-space: nowrap;
}

.atm-section-more:hover,
.atm-block-more:hover {
  color: #fff;
}

/* ---------- Playlist cards ---------- */

.atm-pl-rail,
.atm-pl-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.atm-pl-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: var(--atm-surface);
  border: 1px solid var(--atm-border);
  min-width: 0;
  transition: border-color 0.2s var(--atm-ease), transform 0.2s var(--atm-ease);
}

.atm-pl-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.atm-pl-cover {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--atm-track);
}

.atm-pl-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--atm-ease);
}

.atm-pl-card:hover .atm-pl-cover img {
  transform: scale(1.04);
}

.atm-pl-play {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--atm-blue);
  color: #fff;
  font-size: 11px;
  box-shadow: var(--atm-glow);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s var(--atm-ease), transform 0.2s var(--atm-ease);
}

.atm-pl-card:hover .atm-pl-play {
  opacity: 1;
  transform: none;
}

.atm-pl-name {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.atm-pl-card .atm-pl-desc,
.atm-pl-desc {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--atm-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.atm-pl-meta {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--atm-muted);
}

.atm-pl-meta::before {
  content: "♡";
  font-size: 11px;
  opacity: 0.85;
}

/* ---------- Chip tabs ---------- */

.atm-chip-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 2px 0 18px;
}

.atm-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  color: rgba(170, 178, 196, 0.95);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.atm-chip:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.atm-chip.is-active,
.atm-chip[aria-selected="true"] {
  background: var(--atm-blue);
  color: #fff;
  box-shadow: 0 6px 16px rgba(51, 92, 255, 0.28);
}

.atm-tab-panel[hidden] {
  display: none !important;
}

.atm-tab-panel:not(.is-active):not([hidden]) {
  display: none;
}

.atm-tab-panel.is-active {
  display: block;
}

/* ---------- Track cards ---------- */

.atm-track-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.atm-track-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.atm-track-row,
.atm-track-card {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 8px;
  border-radius: 12px;
  background: var(--atm-surface);
  border: 1px solid var(--atm-border);
  min-width: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.atm-track-grid .atm-track-row,
.atm-track-grid .atm-track-card {
  width: 100%;
}

.atm-track-row:hover,
.atm-track-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: #121622;
}

.atm-track-idx {
  font-size: 12px;
  color: var(--atm-muted-2);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.atm-track-cover {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--atm-track);
  flex-shrink: 0;
}

.atm-track-cover img,
.atm-track-cover .atm-rank-thumb--empty {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 8px !important;
}

.atm-track-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.atm-track-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.atm-track-artist {
  font-size: 11px;
  color: var(--atm-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.atm-track-album,
.atm-track-time {
  font-size: 11px;
  color: var(--atm-muted-2);
}

.atm-track-play,
.atm-track-more,
.atm-rank-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: var(--atm-muted-2);
  font-size: 10px;
  transition: color 0.15s ease, background 0.15s ease;
}

.atm-track-play:hover,
.atm-rank-play:hover {
  color: #fff;
  background: var(--atm-blue);
}

.atm-track-more:hover {
  color: #fff;
}

.atm-track-like {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--atm-muted-2);
  font-size: 13px;
}

.atm-track-like:hover,
.atm-track-like[aria-pressed="true"],
.atm-track-like.is-liked {
  color: #ff6b8a;
}

/* ---------- Rank / charts ---------- */

.atm-rank-board,
.atm-rank-list {
  list-style: none;
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--atm-surface);
  border: 1px solid var(--atm-border);
}

.atm-rank-card {
  padding: 10px;
  border-radius: 12px;
  background: var(--atm-surface);
  border: 1px solid var(--atm-border);
}

.atm-rank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.atm-rank-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.atm-rank-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(51, 92, 255, 0.18);
  color: #9db0ff;
}

.atm-rank-row,
.atm-rank-item {
  display: grid;
  grid-template-columns: 26px 52px 1fr 28px;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 2px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.atm-rank-row:hover,
.atm-rank-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.atm-rank-num {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--atm-muted-2);
  text-align: center;
  font-weight: 600;
}

.atm-rank-row:nth-child(1) .atm-rank-num,
.atm-rank-item:nth-child(1) .atm-rank-num {
  color: #fff;
}

.atm-rank-row:nth-child(2) .atm-rank-num,
.atm-rank-item:nth-child(2) .atm-rank-num {
  color: #fff;
}

.atm-rank-row:nth-child(3) .atm-rank-num,
.atm-rank-item:nth-child(3) .atm-rank-num,
.atm-rank-row:nth-child(4) .atm-rank-num,
.atm-rank-item:nth-child(4) .atm-rank-num,
.atm-rank-row:nth-child(5) .atm-rank-num,
.atm-rank-item:nth-child(5) .atm-rank-num {
  color: #fff;
}

.atm-rank-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--atm-track);
  justify-self: center;
}

.atm-rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.atm-rank-thumb--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1a2030, #12151f);
  color: var(--atm-link);
  font-size: 11px;
  font-weight: 700;
}

.atm-rank-row:nth-child(1) .atm-rank-thumb--empty,
.atm-rank-item:nth-child(1) .atm-rank-thumb--empty {
  background: linear-gradient(135deg, #ff8a4a, #ff5a2a);
  color: #fff;
}

.atm-rank-row:nth-child(2) .atm-rank-thumb--empty,
.atm-rank-item:nth-child(2) .atm-rank-thumb--empty {
  background: linear-gradient(135deg, #4a6fff, #335cff);
  color: #fff;
}

.atm-rank-row:nth-child(3) .atm-rank-thumb--empty,
.atm-rank-item:nth-child(3) .atm-rank-thumb--empty {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  color: #fff;
}

.atm-rank-row:nth-child(4) .atm-rank-thumb--empty,
.atm-rank-item:nth-child(4) .atm-rank-thumb--empty {
  background: linear-gradient(135deg, #243047, #171b28);
}

.atm-rank-row:nth-child(5) .atm-rank-thumb--empty,
.atm-rank-item:nth-child(5) .atm-rank-thumb--empty {
  background: linear-gradient(135deg, #1e2638, #12151f);
}

.atm-rank-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.atm-rank-song {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.atm-rank-artist {
  font-size: 11px;
  color: var(--atm-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.atm-rank-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 36px;
  padding: 0 4px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  letter-spacing: 0.01em;
  justify-self: center;
}

.atm-rank-tag--rising,
.atm-rank-row:nth-child(1) .atm-rank-tag {
  background: linear-gradient(135deg, #ff8a4a, #ff5a2a);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 90, 42, 0.28);
}

.atm-rank-tag--top,
.atm-rank-tag--top50,
.atm-rank-row:nth-child(2) .atm-rank-tag {
  background: linear-gradient(135deg, #4a6fff, #335cff);
  color: #fff;
  box-shadow: 0 4px 12px rgba(51, 92, 255, 0.28);
}

.atm-rank-tag--video,
.atm-rank-tag--hot,
.atm-rank-row:nth-child(3) .atm-rank-tag {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.28);
}

.atm-rank-tag--classic,
.atm-rank-row:nth-child(4) .atm-rank-tag {
  background: linear-gradient(135deg, #f0c36a, #d4922e);
  color: #fff;
  box-shadow: 0 4px 12px rgba(212, 146, 46, 0.28);
}

.atm-rank-tag--pick,
.atm-rank-tag--editor,
.atm-rank-row:nth-child(5) .atm-rank-tag {
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28);
}


.atm-rank-heat {
  font-size: 11px;
  color: var(--atm-muted-2);
}

/* ---------- Featured MV ---------- */

.atm-mv {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--atm-surface);
  border: 1px solid var(--atm-border);
}

.atm-mv img,
.atm-mv-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--atm-ease);
}

.atm-mv:hover img,
.atm-mv:hover .atm-mv-thumb {
  transform: scale(1.03);
}

.atm-mv-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(5, 7, 10, 0.92));
}

.atm-mv-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(5, 7, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 14px;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.atm-mv:hover .atm-mv-play {
  background: var(--atm-blue);
  border-color: var(--atm-blue);
  box-shadow: var(--atm-glow);
}

.atm-mv-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.atm-mv-sub {
  margin: 3px 0 0;
  font-size: 11px;
  color: var(--atm-muted);
}

/* ---------- Extra home rails (channels / artists / audiobooks) ---------- */

.atm-section--full {
  margin-top: 36px;
}

.atm-section--full .atm-section-head {
  margin-bottom: 16px;
}

.atm-section--full .atm-section-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.atm-section--full .atm-section-more {
  font-size: 13px;
  color: rgba(150, 158, 176, 0.95);
}

.atm-section--full .atm-section-more:hover {
  color: #fff;
}

.atm-hscroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(140px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

/* Artists — bare circles, no boxes */
.atm-artist-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 16px;
  justify-items: center;
  padding: 4px 0 2px;
}

.atm-artist-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 140px;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: center;
  transition: transform 0.2s var(--atm-ease);
}

.atm-artist-card:hover {
  transform: translateY(-2px);
}

.atm-artist-card img,
.atm-artist-fallback {
  width: 112px;
  height: 112px;
  border-radius: 999px;
  object-fit: cover;
  background: linear-gradient(145deg, #1c2233, #12151f);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.atm-artist-card:hover img,
.atm-artist-card:hover .atm-artist-fallback {
  box-shadow:
    0 0 0 2px rgba(51, 92, 255, 0.5),
    0 10px 24px rgba(51, 92, 255, 0.22);
  transform: scale(1.04);
}

.atm-artist-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #9db0ff;
  letter-spacing: 0.02em;
}

.atm-artist-card > span:last-child {
  font-size: 14px;
  font-weight: 500;
  color: #f2f4f8;
  line-height: 1.3;
}

/* Audiobooks — 3-col horizontal rows like 听书精选 */
.atm-ab-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 28px;
}

.atm-ab-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  transition: transform 0.15s ease;
}

.atm-ab-row:hover {
  transform: translateX(2px);
}

.atm-ab-row:hover .atm-ab-name {
  color: #fff;
}

.atm-ab-row img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--atm-track);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
}

.atm-ab-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.atm-ab-name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.atm-ab-sub {
  font-size: 12.5px;
  color: rgba(150, 158, 176, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.atm-ab-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.atm-ab-card img {
  aspect-ratio: 1;
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  background: var(--atm-track);
}

.atm-mv-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.atm-mv--sm {
  aspect-ratio: 16 / 10;
}

.atm-mv--sm .atm-mv-play {
  width: 36px;
  height: 36px;
  font-size: 12px;
}

.atm-mv--sm .atm-mv-title {
  font-size: 12px;
}

.atm-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.atm-fact {
  --fact-accent: #5b8cff;
  --fact-glow: rgba(91, 140, 255, 0.35);
  --fact-wash: rgba(51, 92, 255, 0.16);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 15px;
  border-radius: 14px;
  background:
    radial-gradient(120% 90% at 100% 0%, var(--fact-wash), transparent 55%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.055), transparent 48%),
    #0f1320;
  border: 1px solid color-mix(in srgb, var(--fact-accent) 28%, rgba(255, 255, 255, 0.08));
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.35s var(--atm-ease),
    border-color 0.3s var(--atm-ease),
    box-shadow 0.35s var(--atm-ease),
    background 0.3s ease;
  animation: atm-card-in 0.55s var(--atm-ease) both;
}

.atm-fact:nth-child(1) {
  --fact-accent: #5b8cff;
  --fact-glow: rgba(91, 140, 255, 0.4);
  --fact-wash: rgba(51, 92, 255, 0.2);
  animation-delay: 0.02s;
}

.atm-fact:nth-child(2) {
  --fact-accent: #35d0b0;
  --fact-glow: rgba(53, 208, 176, 0.38);
  --fact-wash: rgba(53, 208, 176, 0.16);
  animation-delay: 0.08s;
}

.atm-fact:nth-child(3) {
  --fact-accent: #ff9a4d;
  --fact-glow: rgba(255, 154, 77, 0.38);
  --fact-wash: rgba(255, 122, 61, 0.16);
  animation-delay: 0.14s;
}

.atm-fact:nth-child(4) {
  --fact-accent: #70a0ff;
  --fact-glow: rgba(112, 160, 255, 0.4);
  --fact-wash: rgba(80, 130, 255, 0.18);
  animation-delay: 0.2s;
}

.atm-fact::before {
  content: none;
  display: none;
}

.atm-fact::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 45%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: skewX(-18deg) translateX(0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.atm-fact:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--fact-accent) 55%, transparent);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.38),
    0 0 0 1px color-mix(in srgb, var(--fact-accent) 22%, transparent),
    0 0 32px var(--fact-glow);
  background:
    radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--fact-accent) 28%, transparent), transparent 58%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.07), transparent 50%),
    #12182a;
}

.atm-fact:hover::before {
  display: none;
}

.atm-fact:hover::after {
  opacity: 1;
  animation: atm-sheen 0.7s var(--atm-ease);
}

.atm-fact strong {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 18px color-mix(in srgb, var(--fact-accent) 35%, transparent);
  transition: color 0.25s ease, letter-spacing 0.25s ease;
}

.atm-fact:hover strong {
  color: #fff;
  letter-spacing: 0.01em;
}

.atm-fact span,
.atm-fact a {
  font-size: 11.5px;
  color: rgba(180, 192, 220, 0.92);
}

.atm-fact a {
  color: var(--fact-accent);
  font-weight: 600;
}

.atm-fact a:hover {
  color: #fff;
}

.atm-fact code {
  font-size: 11px;
  color: #a8c0ff;
}

.atm-fact--wide {
  gap: 6px;
}

.atm-feat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.atm-feat-card {
  --feat-accent: #5b8cff;
  --feat-glow: rgba(91, 140, 255, 0.32);
  --feat-wash: rgba(51, 92, 255, 0.14);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 15px;
  border-radius: 14px;
  background:
    radial-gradient(110% 80% at 0% 0%, var(--feat-wash), transparent 55%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.05), transparent 48%),
    #0f1320;
  border: 1px solid color-mix(in srgb, var(--feat-accent) 26%, rgba(255, 255, 255, 0.07));
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition:
    transform 0.35s var(--atm-ease),
    border-color 0.3s var(--atm-ease),
    box-shadow 0.35s var(--atm-ease),
    background 0.3s ease;
  animation: atm-card-in 0.55s var(--atm-ease) both;
}

.atm-feat-card:nth-child(1) {
  --feat-accent: #4ecbff;
  --feat-glow: rgba(78, 203, 255, 0.35);
  --feat-wash: rgba(78, 203, 255, 0.14);
  animation-delay: 0.22s;
}

.atm-feat-card:nth-child(2) {
  --feat-accent: #7b8cff;
  --feat-glow: rgba(123, 140, 255, 0.36);
  --feat-wash: rgba(99, 120, 255, 0.16);
  animation-delay: 0.28s;
}

.atm-feat-card:nth-child(3) {
  --feat-accent: #ff7a9a;
  --feat-glow: rgba(255, 122, 154, 0.34);
  --feat-wash: rgba(255, 100, 140, 0.14);
  animation-delay: 0.34s;
}

.atm-feat-card:nth-child(4) {
  --feat-accent: #50d4a0;
  --feat-glow: rgba(80, 212, 160, 0.34);
  --feat-wash: rgba(80, 212, 160, 0.14);
  animation-delay: 0.4s;
}

.atm-feat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--feat-accent), color-mix(in srgb, var(--feat-accent) 30%, transparent), transparent);
  transform: scaleX(0.45);
  transform-origin: left;
  transition: transform 0.35s var(--atm-ease), height 0.3s ease;
}

.atm-feat-card::after {
  content: "";
  position: absolute;
  right: -20%;
  top: -30%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--feat-glow), transparent 68%);
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.4s var(--atm-ease);
}

.atm-feat-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--feat-accent) 55%, transparent);
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--feat-accent) 26%, transparent), transparent 58%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.07), transparent 55%),
    #12182a;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.34),
    0 0 28px var(--feat-glow);
}

.atm-feat-card:hover::before {
  transform: scaleX(1);
  height: 3px;
}

.atm-feat-card:hover::after {
  opacity: 0.85;
  transform: scale(1.15);
}

.atm-feat-card strong {
  position: relative;
  z-index: 1;
  font-size: 13.5px;
  color: #fff;
  transition: transform 0.3s var(--atm-ease), color 0.25s ease;
}

.atm-feat-card:hover strong {
  transform: translateX(2px);
  color: color-mix(in srgb, var(--feat-accent) 35%, #fff);
}

.atm-feat-card span {
  position: relative;
  z-index: 1;
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(178, 190, 214, 0.95);
}

.atm-compare {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(91, 140, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(51, 92, 255, 0.1), transparent 34%),
    linear-gradient(90deg, rgba(53, 208, 176, 0.04), transparent 40%),
    #0f1320;
  overflow: hidden;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 40px rgba(51, 92, 255, 0.08);
  animation: atm-card-in 0.6s var(--atm-ease) 0.12s both;
}

.atm-compare::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 38%,
    rgba(91, 140, 255, 0.1) 48%,
    rgba(53, 208, 176, 0.06) 54%,
    transparent 64%
  );
  background-size: 220% 100%;
  animation: atm-compare-sweep 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.atm-compare::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #35d0b0, #5b8cff 40%, #ff9a4d 75%, transparent);
  opacity: 0.9;
  z-index: 1;
  pointer-events: none;
}

.atm-compare-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr 1.3fr;
  gap: 12px;
  padding: 13px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
  color: var(--atm-muted);
  transition: background 0.25s var(--atm-ease), color 0.25s ease;
}

.atm-compare-row:not(.atm-compare-row--head):hover {
  background: linear-gradient(90deg, rgba(51, 92, 255, 0.12), rgba(53, 208, 176, 0.05));
  color: rgba(220, 228, 245, 0.95);
}

.atm-compare-row:not(.atm-compare-row--head):hover span:nth-child(2) {
  color: #fff;
}

.atm-compare-row:first-child,
.atm-compare-row--head {
  border-top: 0;
  background: linear-gradient(90deg, rgba(51, 92, 255, 0.16), rgba(53, 208, 176, 0.08));
  color: #fff;
  font-weight: 650;
  font-size: 12px;
}

.atm-compare-row span:first-child {
  color: #9eb0d8;
  font-weight: 600;
}

.atm-compare-row--head span:first-child {
  color: #fff;
}

.atm-compare-row--head span:nth-child(2) {
  color: #9ec4ff;
}

.atm-compare-row--head span:nth-child(3) {
  color: #9ad9c8;
}

.atm-compare-row:not(.atm-compare-row--head) span:nth-child(2) {
  position: relative;
  color: rgba(210, 224, 255, 0.96);
  transition: color 0.25s ease;
}

.atm-compare-row:not(.atm-compare-row--head) span:nth-child(2)::before {
  content: none;
  display: none;
}

.atm-reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.atm-review {
  --rev-accent: #7b8cff;
  --rev-glow: rgba(123, 140, 255, 0.32);
  --rev-wash: rgba(99, 120, 255, 0.14);
  position: relative;
  margin: 0;
  padding: 20px 17px 17px;
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 0% 0%, var(--rev-wash), transparent 55%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.05), transparent 50%),
    #0f1320;
  border: 1px solid color-mix(in srgb, var(--rev-accent) 30%, rgba(255, 255, 255, 0.07));
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition:
    transform 0.35s var(--atm-ease),
    border-color 0.3s var(--atm-ease),
    box-shadow 0.35s var(--atm-ease);
  animation: atm-card-in 0.55s var(--atm-ease) both;
}

.atm-review:nth-child(1) {
  --rev-accent: #6a8cff;
  --rev-glow: rgba(106, 140, 255, 0.36);
  --rev-wash: rgba(80, 120, 255, 0.16);
  animation-delay: 0.08s;
}

.atm-review:nth-child(2) {
  --rev-accent: #ff9a4d;
  --rev-glow: rgba(255, 154, 77, 0.34);
  --rev-wash: rgba(255, 122, 61, 0.14);
  animation-delay: 0.16s;
}

.atm-review:nth-child(3) {
  --rev-accent: #35d0b0;
  --rev-glow: rgba(53, 208, 176, 0.34);
  --rev-wash: rgba(53, 208, 176, 0.14);
  animation-delay: 0.24s;
}

.atm-review::before {
  content: "“";
  position: absolute;
  top: 4px;
  left: 12px;
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
  color: color-mix(in srgb, var(--rev-accent) 55%, transparent);
  text-shadow: 0 0 20px var(--rev-glow);
  pointer-events: none;
  transition: color 0.3s ease, transform 0.35s var(--atm-ease), text-shadow 0.3s ease;
}

.atm-review::after {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -28%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--rev-glow), transparent 70%);
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.4s var(--atm-ease);
}

.atm-review:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--rev-accent) 55%, transparent);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.36),
    0 0 30px var(--rev-glow);
}

.atm-review:hover::before {
  color: var(--rev-accent);
  transform: translateY(-2px) scale(1.06);
  text-shadow: 0 0 28px var(--rev-glow);
}

.atm-review:hover::after {
  opacity: 0.75;
  transform: scale(1.12);
}

.atm-review p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #fff;
}

.atm-review footer {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--rev-accent) 22%, rgba(255, 255, 255, 0.06));
  font-size: 11px;
  color: color-mix(in srgb, var(--rev-accent) 45%, #8a93a8);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.atm-review:hover footer {
  color: var(--rev-accent);
  border-color: color-mix(in srgb, var(--rev-accent) 40%, transparent);
}

/* ---------- Get app ---------- */

.atm-getapp {
  position: relative;
  margin-top: 36px;
  padding: 30px;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 55% 90% at 12% 20%, rgba(91, 140, 255, 0.28), transparent 60%),
    radial-gradient(ellipse 50% 80% at 88% 70%, rgba(53, 208, 176, 0.16), transparent 58%),
    radial-gradient(ellipse 40% 60% at 55% 0%, rgba(255, 154, 77, 0.1), transparent 55%),
    linear-gradient(125deg, #10162a 0%, #0c1220 48%, #0e1826 100%);
  border: 1px solid rgba(120, 160, 255, 0.28);
  overflow: hidden;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.35),
    0 0 48px rgba(51, 92, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: atm-card-in 0.6s var(--atm-ease) 0.1s both;
}

.atm-getapp::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% 35%;
  height: 200px;
  background:
    radial-gradient(circle, rgba(91, 140, 255, 0.32), transparent 68%),
    radial-gradient(circle at 70% 40%, rgba(53, 208, 176, 0.18), transparent 60%);
  pointer-events: none;
  animation: atm-getapp-pulse 4.5s ease-in-out infinite;
}

.atm-getapp::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 28%,
    rgba(255, 255, 255, 0.06) 46%,
    rgba(91, 140, 255, 0.05) 52%,
    transparent 66%
  );
  background-size: 220% 100%;
  animation: atm-compare-sweep 8s ease-in-out infinite;
  pointer-events: none;
}

.atm-getapp-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.atm-getapp-copy {
  flex: 0 1 280px;
  min-width: 0;
}

.atm-getapp-title {
  margin: 0;
  font-family: "Outfit", var(--atm-font);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 0 28px rgba(91, 140, 255, 0.35);
}

.atm-getapp-lead {
  margin: 8px 0 0;
  max-width: 28ch;
  font-size: 13.5px;
  color: rgba(186, 200, 230, 0.95);
}

.atm-getapp-actions {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.atm-getapp-btn {
  --dl-accent: #5b8cff;
  --dl-glow: rgba(91, 140, 255, 0.3);
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 16px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--dl-accent) 16%, transparent), rgba(255, 255, 255, 0.03)),
    rgba(10, 14, 24, 0.55);
  border: 1px solid color-mix(in srgb, var(--dl-accent) 35%, rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    background 0.3s var(--atm-ease),
    border-color 0.3s var(--atm-ease),
    transform 0.3s var(--atm-ease),
    box-shadow 0.3s var(--atm-ease);
}

.atm-getapp-btn:nth-child(1) {
  --dl-accent: #5b8cff;
  --dl-glow: rgba(91, 140, 255, 0.35);
}

.atm-getapp-btn:nth-child(2) {
  --dl-accent: #a8b4c8;
  --dl-glow: rgba(180, 195, 220, 0.28);
}

.atm-getapp-btn:nth-child(3) {
  --dl-accent: #48d18a;
  --dl-glow: rgba(72, 209, 138, 0.32);
}

.atm-getapp-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.16) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.atm-getapp-btn:hover {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--dl-accent) 28%, transparent), color-mix(in srgb, var(--dl-accent) 12%, transparent)),
    rgba(12, 18, 32, 0.7);
  border-color: color-mix(in srgb, var(--dl-accent) 60%, transparent);
  transform: translateY(-4px) scale(1.015);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.38),
    0 0 28px var(--dl-glow);
}

.atm-getapp-btn:hover::after {
  transform: translateX(120%);
}

.atm-getapp-btn:hover .atm-getapp-icon,
.atm-getapp-btn:hover svg {
  transform: scale(1.12) translateY(-1px);
  color: #fff;
  filter: drop-shadow(0 0 8px var(--dl-glow));
}

.atm-getapp-btn svg,
.atm-getapp-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--dl-accent);
  transition: transform 0.3s var(--atm-ease), color 0.3s ease, filter 0.3s ease;
}

.atm-getapp-btn strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: #fff;
}

.atm-getapp-btn span span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: rgba(176, 188, 214, 0.92);
}

@keyframes atm-card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes atm-sheen {
  from { transform: skewX(-18deg) translateX(0); }
  to { transform: skewX(-18deg) translateX(280%); }
}

@keyframes atm-compare-sweep {
  0%, 100% { background-position: 120% 0; }
  50% { background-position: -20% 0; }
}

@keyframes atm-getapp-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* ---------- Floating download (index corner) ---------- */

.atm-float-dl {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #5b8cff 0%, #335cff 48%, #2a4de6 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 10px 28px rgba(51, 92, 255, 0.42),
    0 0 0 1px rgba(51, 92, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.3s var(--atm-ease),
    box-shadow 0.3s var(--atm-ease),
    filter 0.25s ease;
  animation: atm-float-in 0.55s var(--atm-ease) 0.35s both;
}

.atm-float-dl::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.28), transparent 45%);
  opacity: 0.55;
  pointer-events: none;
}

.atm-float-dl:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.05);
  box-shadow:
    0 16px 36px rgba(51, 92, 255, 0.5),
    0 0 0 1px rgba(91, 140, 255, 0.35);
}

.atm-float-dl:active {
  transform: translateY(-1px) scale(0.99);
}

.atm-float-dl-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  flex: 0 0 34px;
}

.atm-float-dl-icon svg {
  width: 16px;
  height: 16px;
  animation: atm-float-bounce 2.2s var(--atm-ease) infinite;
}

.atm-float-dl-text {
  position: relative;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.atm-float-dl-text strong {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.atm-float-dl-text span {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
}

@keyframes atm-float-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes atm-float-bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(2px); }
  60% { transform: translateY(-1px); }
}

@media (max-width: 560px) {
  .atm-float-dl {
    right: 14px;
    bottom: 14px;
    padding: 10px 12px;
    gap: 0;
  }

  .atm-float-dl-text {
    display: none;
  }

  .atm-float-dl-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    background: transparent;
  }

  .atm-float-dl-icon svg {
    width: 18px;
    height: 18px;
  }
}

/* ---------- Footer ---------- */

.atm-foot {
  position: relative;
  width: min(100%, var(--atm-max));
  margin: 40px auto 0;
  padding: 36px var(--atm-gutter) 20px;
  border-top: 1px solid var(--atm-border-soft);
}

.atm-foot-wave {
  position: absolute;
  right: var(--atm-gutter);
  top: 40px;
  width: 120px;
  height: 48px;
  opacity: 0.55;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  pointer-events: none;
}

.atm-foot-wave::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#335cff, #335cff) 8% 100% / 4px 28% no-repeat,
    linear-gradient(#335cff, #335cff) 18% 100% / 4px 62% no-repeat,
    linear-gradient(#4a6fff, #4a6fff) 28% 100% / 4px 40% no-repeat,
    linear-gradient(#335cff, #335cff) 38% 100% / 4px 88% no-repeat,
    linear-gradient(#8b5cf6, #8b5cf6) 48% 100% / 4px 52% no-repeat,
    linear-gradient(#335cff, #335cff) 58% 100% / 4px 74% no-repeat,
    linear-gradient(#4a6fff, #4a6fff) 68% 100% / 4px 36% no-repeat,
    linear-gradient(#335cff, #335cff) 78% 100% / 4px 66% no-repeat,
    linear-gradient(#335cff, #335cff) 88% 100% / 4px 44% no-repeat,
    linear-gradient(#8b5cf6, #8b5cf6) 98% 100% / 4px 58% no-repeat;
  filter: drop-shadow(0 0 8px rgba(51, 92, 255, 0.45));
  border-radius: 2px;
}

.atm-foot-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.atm-foot-brand {
  min-width: 0;
  padding-right: 12px;
}

.atm-foot-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.atm-foot-logo img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
}

.atm-foot-logo strong {
  font-size: 14px;
  font-weight: 650;
}

.atm-foot-tag {
  margin: 10px 0 14px;
  max-width: 28ch;
  font-size: 12px;
  color: var(--atm-muted);
}

.atm-foot-social {
  display: flex;
  gap: 8px;
}

.atm-foot-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--atm-surface-2);
  color: var(--atm-link);
  font-size: 12px;
  transition: background 0.15s ease, color 0.15s ease;
}

.atm-foot-social a:hover {
  background: var(--atm-blue);
  color: #fff;
}

.atm-foot-col {
  min-width: 0;
}

.atm-foot-heading {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 650;
  color: #fff;
}

.atm-foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.atm-foot-links a {
  font-size: 12.5px;
  color: var(--atm-muted);
  transition: color 0.15s ease;
}

.atm-foot-links a:hover {
  color: #fff;
}

.atm-foot-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--atm-border-soft);
  text-align: center;
  font-size: 11px;
  color: var(--atm-muted-2);
}

/* ---------- Secondary shell (features/download etc.) ---------- */

.atm-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px 1fr;
  background: var(--atm-bg);
}

.atm-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 14px;
  background: #07090e;
  border-right: 1px solid var(--atm-border-soft);
  overflow: auto;
}

.atm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #fff;
  font-weight: 650;
  font-size: 14px;
}

.atm-brand img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
}

.atm-rail-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.atm-rail-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--atm-link);
  font-size: 13.5px;
}

.atm-rail-nav a:hover,
.atm-rail-nav a.is-active,
.atm-rail-nav a[aria-current="page"] {
  background: rgba(51, 92, 255, 0.12);
  color: #fff;
}

.atm-rail-more {
  margin-top: 8px;
}

.atm-stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.atm-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 24px;
  border-bottom: 1px solid var(--atm-border-soft);
  background: rgba(5, 7, 10, 0.86);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.atm-seek {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  width: min(100%, 320px);
  padding: 0 14px;
  border-radius: 999px;
  background: var(--atm-surface-2);
}

.atm-seek input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 12.5px;
}

.atm-top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.atm-colophon,
.atm-page .site-footer,
.site-footer.atm-colophon {
  margin-top: auto;
  padding: 28px 24px 20px;
  border-top: 1px solid var(--atm-border-soft);
  color: var(--atm-muted-2);
  font-size: 12px;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .atm-hero-vinyl,
  .atm-hero-glow,
  .atm-hero-art,
  .atm-hero-badge,
  .atm-hero-kicker,
  .atm-hero-badge::before,
  .atm-hero-kicker::before,
  .atm-fade-in,
  .atm-fade-in .atm-hero-badge,
  .atm-fade-in .atm-hero-title,
  .atm-fade-in .atm-hero-artist,
  .atm-fade-in .atm-hero-desc,
  .atm-fade-in .atm-hero-actions {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- ≤1100px ---------- */

@media (max-width: 1100px) {
  :root {
    --atm-gutter: 20px;
  }

  .atm-nav {
    gap: 10px;
    width: min(100% - 16px, var(--atm-max));
    top: 8px;
    margin-top: 8px;
  }

  .atm-nav-title {
    display: none;
  }

  .atm-nav-search {
    width: 150px;
    flex-basis: 150px;
  }

  .atm-nav-search:focus-within {
    width: 180px;
    flex-basis: 180px;
  }

  .atm-nav-links {
    gap: 2px;
  }

  .atm-nav-links a,
  .atm-nav-link {
    padding: 0 9px;
    font-size: 12.5px;
  }

  .atm-hero {
    height: 300px;
  }

  .atm-hero-inner {
    grid-template-columns: 1fr 270px;
    padding: 30px 30px;
  }

  .atm-hero-title {
    font-size: 34px;
  }

  .atm-hero-art {
    --art-size: 200px;
    --vinyl-size: 184px;
    --vinyl-peek: 58px;
  }

  .atm-player {
    grid-template-columns: 200px 1fr 160px;
  }

  .atm-split {
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
  }

  .atm-pl-row,
  .atm-pl-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .atm-artist-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .atm-ab-grid {
    grid-template-columns: 1fr 1fr;
  }

  .atm-facts,
  .atm-feat-grid,
  .atm-reviews {
    grid-template-columns: 1fr 1fr;
  }

  .atm-compare-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .atm-getapp-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .atm-getapp-copy {
    flex: none;
  }

  .atm-getapp-actions {
    grid-template-columns: 1fr;
  }

  .atm-foot-inner {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .atm-foot-inner .atm-foot-col:last-child {
    grid-column: 2 / 4;
  }

  .atm-app {
    grid-template-columns: 1fr;
  }

  .atm-rail {
    display: none;
  }
}

/* ---------- ≤720px ---------- */

@media (max-width: 720px) {
  :root {
    --atm-gutter: 16px;
    --atm-nav-h: 56px;
  }

  .atm-menu-toggle {
    display: inline-flex;
    order: -1;
  }

  .atm-nav {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--atm-nav-h);
    padding-block: 10px;
    gap: 10px;
  }

  .atm-nav-brand {
    flex: 1 1 auto;
  }

  .atm-nav-search {
    display: none;
  }

  .atm-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 16px;
    background: rgba(5, 7, 10, 0.97);
    border-bottom: 1px solid var(--atm-border);
    backdrop-filter: blur(14px);
  }

  .atm-nav.is-open .atm-nav-links {
    display: flex;
  }

  .atm-nav-links a,
  .atm-nav-link,
  .atm-nav-dropdown-toggle,
  .atm-nav-more > button {
    padding: 12px 4px;
    font-size: 14px;
  }

  .atm-nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    margin-top: 4px;
    box-shadow: none;
  }

  .atm-nav-more.is-open > .atm-nav-dropdown,
  .atm-nav-more[open] > .atm-nav-dropdown {
    display: block;
    transform: none;
  }

  .atm-nav-actions {
    gap: 8px;
  }

  .atm-lang-btn span:not(.atm-sr-only),
  .atm-nav-lang-btn span:not(.atm-sr-only) {
    font-size: 11px;
  }

  .atm-main {
    padding-bottom: 16px;
  }

  .atm-hero {
    height: auto;
    min-height: 0;
    border-radius: 20px;
  }

  .atm-hero-inner {
    grid-template-columns: 1fr;
    padding: 26px 20px 30px;
    gap: 20px;
  }

  .atm-hero-content::before {
    font-size: 64px;
    top: 4px;
    opacity: 0.85;
  }

  .atm-hero-art {
    --art-size: 168px;
    --vinyl-size: 154px;
    --vinyl-peek: 48px;
    order: -1;
    justify-self: center;
  }

  .atm-hero-title {
    font-size: 30px;
  }

  .atm-hero-desc {
    max-width: none;
    margin-bottom: 22px;
  }

  .atm-hero-actions .atm-btn {
    height: 42px;
  }

  .atm-player {
    grid-template-columns: 1fr;
    height: auto;
    padding: 12px 14px;
    gap: 10px;
  }

  .atm-player-extra {
    display: none;
  }

  .atm-player-progress {
    width: 100%;
  }

  .atm-split {
    grid-template-columns: 1fr;
    margin-top: 22px;
    gap: 22px;
  }

  .atm-pl-row,
  .atm-pl-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .atm-artist-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .atm-artist-card img,
  .atm-artist-fallback {
    width: 88px;
    height: 88px;
  }

  .atm-ab-grid {
    grid-template-columns: 1fr;
  }

  .atm-ab-row {
    grid-template-columns: 64px 1fr;
    gap: 12px;
  }

  .atm-ab-row img {
    width: 64px;
    height: 64px;
  }

  .atm-hscroll {
    grid-auto-columns: minmax(128px, 46%);
  }

  .atm-facts,
  .atm-feat-grid,
  .atm-reviews,
  .atm-mv-stack {
    grid-template-columns: 1fr;
  }

  .atm-track-grid {
    grid-template-columns: 1fr;
  }

  .atm-rank-row,
  .atm-rank-item {
    grid-template-columns: 24px 44px 1fr 28px;
  }

  .atm-getapp {
    margin-top: 28px;
    padding: 20px;
  }

  .atm-getapp-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .atm-getapp-title {
    font-size: 20px;
  }

  .atm-foot {
    margin-top: 32px;
    padding-top: 28px;
  }

  .atm-foot-wave {
    display: none;
  }

  .atm-foot-inner {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .atm-foot-brand {
    grid-column: 1 / -1;
  }

  .atm-foot-inner .atm-foot-col:last-child {
    grid-column: auto;
  }

  .atm-topbar .atm-menu-toggle {
    display: inline-flex;
  }
}
