:root {
  color-scheme: dark;
  --bg: #0d0f12;
  --panel: rgba(22, 24, 29, 0.74);
  --panel-2: rgba(34, 38, 45, 0.72);
  --text: #f6f2e8;
  --muted: #aeb4bf;
  --line: rgba(255, 255, 255, 0.105);
  --accent: #f4c75b;
  --accent-2: #63d4b9;
  --oxblood: #a45367;
  --ink: #0a0c0f;
  --shelf: #191d22;
  --shelf-edge: #2b3038;
  --danger: #ff6b6b;
  --radius: 8px;
  --shadow: 0 22px 64px rgba(0, 0, 0, 0.34);
  --soft-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  --sort-a: rgba(244, 199, 91, 0.12);
  --sort-b: rgba(99, 212, 185, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(164, 83, 103, 0.18), transparent 38%),
    linear-gradient(225deg, rgba(99, 212, 185, 0.13), transparent 42%),
    linear-gradient(180deg, rgba(244, 199, 91, 0.07), transparent 32rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, auto, 96px 96px, 96px 96px, auto;
  animation: ambientBackground 32s ease-in-out infinite alternate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 28rem),
    linear-gradient(90deg, transparent, rgba(244, 199, 91, 0.026), transparent);
  mix-blend-mode: screen;
}

body::after {
  content: "";
  position: fixed;
  inset: -22%;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 18%, var(--sort-a) 34%, transparent 50% 100%),
    linear-gradient(245deg, transparent 0 28%, var(--sort-b) 48%, transparent 66% 100%);
  opacity: 0.76;
  filter: blur(18px);
  transform: translate3d(-3%, -2%, 0) rotate(0deg);
  animation: ambientSweep 18s ease-in-out infinite alternate;
}

body[data-sort="country"] {
  --sort-a: rgba(99, 212, 185, 0.18);
  --sort-b: rgba(84, 139, 255, 0.13);
}

body[data-sort="runtime"] {
  --sort-a: rgba(255, 154, 101, 0.16);
  --sort-b: rgba(244, 199, 91, 0.14);
}

body[data-sort="ownScore"] {
  --sort-a: rgba(244, 199, 91, 0.19);
  --sort-b: rgba(164, 83, 103, 0.16);
}

body[data-sort="genre"] {
  --sort-a: rgba(164, 83, 103, 0.16);
  --sort-b: rgba(99, 212, 185, 0.15);
}

body[data-sort="year"] {
  --sort-a: rgba(132, 117, 255, 0.14);
  --sort-b: rgba(244, 199, 91, 0.13);
}

body[data-sort="color"] {
  --sort-a: rgba(255, 112, 168, 0.14);
  --sort-b: rgba(76, 203, 255, 0.13);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 42px;
  border: 1px solid rgba(244, 199, 91, 0.48);
  border-radius: var(--radius);
  color: #15130e;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 48%),
    var(--accent);
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.secondary-button {
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(15, 18, 22, 0.76);
  border-color: var(--line);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.024)),
    rgba(14, 16, 20, 0.58);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.topbar::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -1px;
  left: 18px;
  height: 1px;
  background:
    linear-gradient(90deg, transparent, rgba(244, 199, 91, 0.72), rgba(99, 212, 185, 0.56), transparent);
  box-shadow: none;
}

.header-stack {
  display: grid;
  gap: 10px;
  width: min(100%, 520px);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.6vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.36);
}

.status-card,
.now,
.toolbar,
.stats,
.album-card,
.empty,
.dialog-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.068), rgba(255, 255, 255, 0.018)),
    var(--panel);
  box-shadow:
    var(--shadow),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(18px);
}

.status-card,
.auth-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.status-card span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-card small {
  display: block;
  max-width: 360px;
  margin-top: 3px;
  color: rgba(243, 240, 232, 0.62);
  font-size: 0.74rem;
  line-height: 1.35;
}

.auth-card {
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(126, 48, 69, 0.16), transparent 48%),
    rgba(15, 17, 21, 0.76);
}

.auth-card div {
  display: grid;
  gap: 2px;
}

.auth-actions {
  display: flex;
  gap: 8px;
}

.auth-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.verify-link {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.auth-form {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(140px, 1fr) minmax(120px, 1fr) 84px 116px;
  gap: 8px;
  align-items: start;
}

.auth-form input {
  height: 38px;
}

.auth-error {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--danger);
  font-size: 0.84rem;
}

.small-button {
  min-height: 34px;
  padding: 0 12px;
}

.pulse {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 8px rgba(88, 198, 168, 0.12);
}

.pulse.error {
  background: var(--danger);
  box-shadow: 0 0 0 8px rgba(255, 107, 107, 0.12);
}

.now {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px;
  border-color: rgba(88, 198, 168, 0.24);
}

.now img {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
  background: #2a2d34;
}

.now h2 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.progress-line {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #30343c;
}

.progress-line span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 220ms ease;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(170px, 0.42fr) minmax(420px, 1.8fr);
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
  padding: 14px;
  border-color: rgba(255, 255, 255, 0.095);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.082), rgba(255, 255, 255, 0.026)),
    rgba(13, 15, 19, 0.68);
  box-shadow:
    0 24px 74px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset;
  animation: surfaceIn 480ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.shelf-sort {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  min-width: 0;
  max-width: 100%;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(0, 0, 0, 0.035)),
    rgba(255, 255, 255, 0.028);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 36px rgba(0, 0, 0, 0.18);
}

.shelf-sort legend {
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sort-chip {
  min-height: 38px;
  width: 100%;
  padding: 0 12px;
  border-color: transparent;
  color: rgba(246, 242, 232, 0.76);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(18, 21, 26, 0.52);
  font-size: 0.82rem;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.sort-chip:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.028)),
    rgba(31, 35, 42, 0.72);
}

.sort-chip.is-active {
  color: #15130e;
  border-color: rgba(242, 191, 74, 0.72);
  background:
    linear-gradient(180deg, #ffe08a, var(--accent));
  box-shadow:
    0 14px 28px rgba(244, 199, 91, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset;
  transform: translateY(-1px);
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  justify-content: flex-end;
}

.toolbar-actions button {
  flex: 0 0 auto;
}

.random-button {
  color: #f8f4e8;
  border-color: rgba(88, 198, 168, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), transparent 48%),
    linear-gradient(135deg, #3b776b, #21453f);
  box-shadow: 0 12px 28px rgba(88, 198, 168, 0.15);
}

.shelf-room-button {
  color: #f8ead0;
  border-color: rgba(211, 153, 91, 0.65);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 45%),
    linear-gradient(135deg, #8a5742, #443025);
  box-shadow:
    inset 0 0 0 1px rgba(255, 225, 181, 0.08),
    0 12px 28px rgba(48, 24, 13, 0.22);
}

.monthly-wrapped-button {
  color: #102017;
  border-color: rgba(45, 226, 127, 0.68);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 48%),
    linear-gradient(135deg, #4df49a, #20bd65);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 12px 28px rgba(45, 226, 127, 0.16);
}

.tier-list-button {
  color: #120f14;
  border-color: rgba(239, 112, 232, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 48%),
    linear-gradient(135deg, #ff7a7a, #ffff7a 38%, #75f277 66%, #79ecec);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 12px 28px rgba(239, 112, 232, 0.14);
}

.tabs {
  display: flex;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 6px;
  align-items: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.tab {
  min-height: 38px;
  color: var(--text);
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    transparent;
  box-shadow: none;
}

.tab.is-active {
  color: #15130e;
  background:
    linear-gradient(180deg, #ffdb74, var(--accent));
  border-color: rgba(242, 191, 74, 0.5);
  transform: translateY(-2px);
}

label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(7, 9, 12, 0.52);
  outline: none;
}

input,
select {
  height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 86px;
  resize: vertical;
  padding: 10px 12px;
}

input:focus,
select:focus,
textarea:focus,
.album-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242, 191, 74, 0.14);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  overflow: visible;
  margin-bottom: 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.stats div {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.018)),
    rgba(18, 21, 26, 0.58);
  box-shadow: var(--soft-shadow);
}

.stats strong {
  display: block;
  font-size: 1.6rem;
}

.stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 18px;
  position: relative;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(12, 14, 18, 0.64);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  animation: surfaceIn 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.album-grid.is-artist-shelf,
.album-grid.is-year-timeline,
.album-grid.is-grouped-shelf,
.album-grid.is-arrival-timeline {
  display: grid;
  grid-template-columns: 1fr;
}

.artist-row,
.decade-section,
.crate-section {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.018)),
    rgba(15, 17, 21, 0.62);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.artist-heading,
.decade-marker {
  display: flex;
  gap: 12px;
  align-items: center;
}

.artist-heading h2,
.decade-marker strong {
  margin: 0;
  font-size: 1.1rem;
}

.artist-heading p,
.decade-marker span {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.artist-wordmark {
  display: block;
  width: min(340px, 58vw);
  max-height: 86px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.36));
}

.artist-wordmark.is-inverted-logo {
  filter:
    brightness(0) invert(1)
    drop-shadow(0 12px 20px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.16));
}

.artist-albums,
.year-albums,
.crate-albums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.crate-section {
  grid-template-columns: 170px 1fr;
  align-items: start;
}

.crate-heading {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 8px;
}

.crate-heading strong {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1.05;
}

.country-flag {
  display: inline-grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.028)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  font-size: 1.15rem;
  line-height: 1;
}

.country-flag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.country-flag.is-unknown {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
}

.crate-heading span {
  color: var(--muted);
  font-size: 0.84rem;
}

.rated-crate .crate-heading {
  gap: 5px;
}

.rated-crate .crate-heading strong {
  color: var(--accent);
}

.crate-heading .rank-range {
  display: block;
  color: color-mix(in srgb, var(--accent), var(--muted) 58%);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  opacity: 0.72;
}

.crate-heading .rank-count {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.crate-heading .rank-description {
  display: block;
  max-width: 16rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
  opacity: 0.78;
}

.decade-section {
  grid-template-columns: 150px 1fr;
  align-items: start;
}

.decade-marker {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 4px;
  padding-top: 8px;
}

.decade-marker strong {
  color: var(--accent);
  font-size: 1.7rem;
  line-height: 1;
}

.decade-rail {
  display: grid;
  gap: 18px;
  position: relative;
  padding-left: 22px;
}

.decade-rail::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 6px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--oxblood), var(--accent-2));
}

.year-stop {
  position: relative;
  display: grid;
  gap: 10px;
}

.year-stop::before {
  content: "";
  position: absolute;
  top: 7px;
  left: -23px;
  width: 13px;
  height: 13px;
  border: 2px solid #15130e;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(242, 191, 74, 0.13);
}

.year-label {
  color: rgba(243, 240, 232, 0.82);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.album-grid::before {
  content: none;
}

.album-grid::after {
  content: none;
}

.album-card {
  --aura-primary: rgba(142, 150, 160, 0.6);
  --aura-secondary: rgba(142, 150, 160, 0.42);
  --aura-edge: rgba(142, 150, 160, 0.46);
  --float-distance: 7px;
  --float-delay: 0ms;
  --float-duration: 6800ms;
  --float-sway: 0px;
  --react-x: 0px;
  --react-y: 0px;
  --react-scale: 1;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  cursor: pointer;
  transform-origin: 50% 100%;
  transform: translate3d(var(--react-x), var(--react-y), 0) scale(var(--react-scale));
  animation: cardIn 460ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transition: transform 150ms cubic-bezier(0.2, 0.78, 0.2, 1), border-color 170ms ease, background 170ms ease, box-shadow 170ms ease;
  background:
    radial-gradient(circle at 22% 8%, var(--aura-primary), transparent 42%),
    radial-gradient(circle at 86% 26%, var(--aura-secondary), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.018)),
    rgba(20, 23, 28, 0.78);
  box-shadow:
    0 0 42px var(--aura-primary),
    0 0 74px var(--aura-secondary),
    0 16px 38px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.042);
}

.album-card.is-reacting {
  will-change: transform;
}

.album-card.is-hover-reactor {
  --react-scale: 1.09;
  z-index: 20;
}

.album-grid.suppress-enter .album-card,
.album-grid.suppress-enter .toolbar,
.album-grid.suppress-enter .crate-section,
.album-grid.suppress-enter .artist-row,
.album-grid.suppress-enter .decade-section {
  animation: none;
}

.album-grid.suppress-enter .album-card {
  animation: none;
}

.album-card.is-floating {
  animation:
    cardIn 460ms cubic-bezier(0.2, 0.8, 0.2, 1) both,
    albumFloat var(--float-duration) ease-in-out var(--float-delay) infinite;
}

.album-grid.suppress-enter .album-card.is-floating {
  animation: albumFloat var(--float-duration) ease-in-out var(--float-delay) infinite;
}

.album-card::before {
  content: "";
  position: absolute;
  inset: -38%;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.2) 0 12%, rgba(255, 255, 255, 0.07) 27%, transparent 56%);
  mix-blend-mode: screen;
  opacity: 0;
  filter: blur(1px);
  transform: translate3d(-64%, 24%, 0) rotate(18deg) scale(0.84);
  transition: opacity 190ms ease, transform 640ms cubic-bezier(0.2, 0.78, 0.2, 1);
}

.album-card:nth-child(6n + 2) {
  animation-delay: 35ms;
}

.album-card:nth-child(6n + 4) {
  animation-delay: 75ms;
}

.album-card:nth-child(8n + 5) {
  animation-delay: 105ms;
}

.album-card:hover {
  --react-scale: 1.09;
  z-index: 20;
  border-color: var(--aura-edge);
  background:
    radial-gradient(circle at 22% 8%, var(--aura-primary), transparent 44%),
    radial-gradient(circle at 88% 26%, var(--aura-secondary), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.024)),
    rgba(31, 35, 42, 0.86);
  box-shadow:
    0 0 56px var(--aura-primary),
    0 0 92px var(--aura-secondary),
    0 24px 58px rgba(0, 0, 0, 0.34);
}

.album-card:hover::before {
  opacity: 0.84;
  transform: translate3d(62%, -20%, 0) rotate(18deg) scale(1);
}

.album-card[class*="rating-frame-"] {
  --rank-metal-a: rgba(174, 180, 191, 0.5);
  --rank-metal-b: rgba(83, 88, 96, 0.36);
  --rank-gem: rgba(255, 255, 255, 0.36);
  --rank-shadow: rgba(0, 0, 0, 0.34);
  --rank-trim: rgba(255, 255, 255, 0.18);
  --rank-decay: transparent;
  border-color: color-mix(in srgb, var(--rank-metal-a), transparent 42%);
  box-shadow:
    0 0 42px var(--aura-primary),
    0 0 74px var(--aura-secondary),
    0 18px 44px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px color-mix(in srgb, var(--rank-metal-a), transparent 68%);
}

.album-card[class*="rating-frame-"]::after {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0.86;
  background:
    radial-gradient(circle at 14px 14px, var(--rank-gem) 0 3px, transparent 4px),
    radial-gradient(circle at calc(100% - 14px) 14px, var(--rank-gem) 0 3px, transparent 4px),
    radial-gradient(circle at 14px calc(100% - 14px), var(--rank-gem) 0 3px, transparent 4px),
    radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), var(--rank-gem) 0 3px, transparent 4px),
    linear-gradient(135deg, var(--rank-metal-a), transparent 19%) top left / 58px 58px no-repeat,
    linear-gradient(225deg, var(--rank-metal-a), transparent 19%) top right / 58px 58px no-repeat,
    linear-gradient(45deg, var(--rank-metal-b), transparent 22%) bottom left / 58px 58px no-repeat,
    linear-gradient(315deg, var(--rank-metal-b), transparent 22%) bottom right / 58px 58px no-repeat;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--rank-metal-a), transparent 34%),
    inset 0 0 0 4px color-mix(in srgb, var(--rank-metal-b), transparent 78%),
    inset 0 0 24px color-mix(in srgb, var(--rank-metal-a), transparent 86%);
}

.rating-ornament {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  display: none !important;
  border-radius: inherit;
}

.album-card[class*="rating-frame-"] .rating-ornament {
  display: none !important;
  padding: 7px;
  background:
    linear-gradient(90deg, transparent 9px, var(--rank-metal-a) 9px 11px, transparent 11px calc(100% - 11px), var(--rank-metal-a) calc(100% - 11px) calc(100% - 9px), transparent calc(100% - 9px)),
    linear-gradient(180deg, transparent 9px, var(--rank-metal-a) 9px 11px, transparent 11px calc(100% - 11px), var(--rank-metal-a) calc(100% - 11px) calc(100% - 9px), transparent calc(100% - 9px)),
    var(--rank-decay);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  box-shadow:
    inset 0 0 0 3px color-mix(in srgb, var(--rank-metal-b), transparent 28%),
    inset 0 0 0 7px color-mix(in srgb, var(--rank-shadow), transparent 58%);
  mix-blend-mode: normal;
}

.album-card.rating-frame-low {
  --rank-metal-a: rgba(91, 108, 53, 0.52);
  --rank-metal-b: rgba(76, 51, 24, 0.5);
  --rank-gem: rgba(141, 161, 82, 0.34);
  --rank-trim: rgba(126, 104, 54, 0.38);
  --rank-decay:
    radial-gradient(circle at 18% 17%, rgba(97, 118, 53, 0.46) 0 8px, transparent 9px),
    radial-gradient(circle at 74% 82%, rgba(67, 81, 45, 0.42) 0 11px, transparent 12px),
    radial-gradient(circle at 82% 28%, rgba(112, 73, 33, 0.38) 0 7px, transparent 8px);
  filter: saturate(0.92);
}

.album-card.rating-frame-low::after {
  opacity: 0.58;
  filter: contrast(0.85) sepia(0.25);
}

.album-card.rating-frame-rated {
  --rank-metal-a: rgba(192, 118, 54, 0.56);
  --rank-metal-b: rgba(111, 72, 38, 0.44);
  --rank-gem: rgba(236, 170, 92, 0.38);
  --rank-trim: rgba(214, 139, 66, 0.36);
  --rank-decay:
    linear-gradient(115deg, transparent 0 32%, rgba(80, 44, 24, 0.18) 33% 35%, transparent 36% 100%);
}

.album-card.rating-frame-good {
  --rank-metal-a: rgba(99, 212, 185, 0.58);
  --rank-metal-b: rgba(44, 122, 112, 0.44);
  --rank-gem: rgba(181, 255, 236, 0.48);
  --rank-trim: rgba(99, 212, 185, 0.4);
}

.album-card.rating-frame-strong {
  --rank-metal-a: rgba(244, 199, 91, 0.72);
  --rank-metal-b: rgba(154, 107, 39, 0.48);
  --rank-gem: rgba(255, 241, 181, 0.55);
  --rank-trim: rgba(255, 226, 133, 0.46);
  box-shadow:
    0 0 42px var(--aura-primary),
    0 0 74px var(--aura-secondary),
    0 18px 44px rgba(0, 0, 0, 0.3),
    0 0 24px rgba(244, 199, 91, 0.14),
    inset 0 0 0 1px rgba(244, 199, 91, 0.22);
}

.album-card.rating-frame-great {
  --rank-metal-a: rgba(255, 226, 133, 0.84);
  --rank-metal-b: rgba(164, 83, 103, 0.5);
  --rank-gem: rgba(218, 255, 249, 0.72);
  --rank-trim: rgba(255, 226, 133, 0.58);
  box-shadow:
    0 0 42px var(--aura-primary),
    0 0 74px var(--aura-secondary),
    0 20px 52px rgba(0, 0, 0, 0.32),
    0 0 24px rgba(244, 199, 91, 0.14),
    inset 0 0 0 1px rgba(244, 199, 91, 0.28);
}

.album-card.rating-frame-great::after {
  inset: 3px;
  opacity: 0.9;
  background:
    radial-gradient(circle at 17px 17px, rgba(218, 255, 249, 0.72) 0 4px, transparent 5px),
    radial-gradient(circle at calc(100% - 17px) 17px, rgba(218, 255, 249, 0.72) 0 4px, transparent 5px),
    radial-gradient(circle at 17px calc(100% - 17px), rgba(255, 226, 133, 0.76) 0 4px, transparent 5px),
    radial-gradient(circle at calc(100% - 17px) calc(100% - 17px), rgba(255, 226, 133, 0.76) 0 4px, transparent 5px),
    conic-gradient(from 45deg at 50% 50%, transparent 0 10%, rgba(255, 226, 133, 0.22) 11% 13%, transparent 14% 35%, rgba(164, 83, 103, 0.22) 36% 38%, transparent 39% 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 226, 133, 0.42),
    inset 0 0 0 4px rgba(244, 199, 91, 0.08),
    inset 0 0 26px rgba(244, 199, 91, 0.16);
}

.album-card.rating-frame-legendary {
  --rank-metal-a: rgba(255, 226, 133, 0.96);
  --rank-metal-b: rgba(99, 212, 185, 0.6);
  --rank-gem: rgba(255, 255, 255, 0.86);
  --rank-trim: rgba(255, 244, 198, 0.72);
  border-color: rgba(255, 226, 133, 0.92);
  box-shadow:
    0 0 42px var(--aura-primary),
    0 0 74px var(--aura-secondary),
    0 22px 58px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 226, 133, 0.25),
    0 0 32px rgba(244, 199, 91, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.album-card.rating-frame-legendary::after {
  inset: -1px;
  opacity: 1;
  padding: 3px;
  background:
    radial-gradient(circle at 21px 21px, #ffffff 0 4px, transparent 5px),
    radial-gradient(circle at calc(100% - 21px) 21px, #fff4bd 0 4px, transparent 5px),
    radial-gradient(circle at 21px calc(100% - 21px), #63d4b9 0 4px, transparent 5px),
    radial-gradient(circle at calc(100% - 21px) calc(100% - 21px), #a45367 0 4px, transparent 5px),
    conic-gradient(from 0deg, #ffe285, #63d4b9, #a45367, #fff4bd, #ffe285);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: drop-shadow(0 0 10px rgba(255, 226, 133, 0.34));
  animation: legendaryFrame 7s linear infinite;
}

.album-card.rating-frame-legendary .rating-ornament {
  background:
    radial-gradient(circle at 50% 8px, rgba(255, 255, 255, 0.92) 0 4px, transparent 5px),
    radial-gradient(circle at 35% 10px, rgba(99, 212, 185, 0.72) 0 3px, transparent 4px),
    radial-gradient(circle at 65% 10px, rgba(164, 83, 103, 0.72) 0 3px, transparent 4px),
    linear-gradient(90deg, transparent 9px, rgba(255, 226, 133, 0.9) 9px 12px, transparent 12px calc(100% - 12px), rgba(255, 226, 133, 0.9) calc(100% - 12px) calc(100% - 9px), transparent calc(100% - 9px)),
    linear-gradient(180deg, transparent 9px, rgba(255, 226, 133, 0.9) 9px 12px, transparent 12px calc(100% - 12px), rgba(255, 226, 133, 0.9) calc(100% - 12px) calc(100% - 9px), transparent calc(100% - 9px));
  filter: drop-shadow(0 0 8px rgba(255, 226, 133, 0.34));
}

.album-card.rating-frame-legendary .cover-wrap {
  box-shadow:
    0 0 0 1px rgba(255, 226, 133, 0.22),
    0 0 22px rgba(244, 199, 91, 0.16),
    inset 0 -1px 0 rgba(255, 255, 255, 0.075);
}

.album-card[class*="rating-frame-"]::after {
  inset: 3px;
  z-index: 4;
  padding: 6px;
  border-radius: inherit;
  opacity: 0.9;
  background: linear-gradient(135deg, var(--rank-metal-a), var(--rank-metal-b));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  box-shadow: none;
}

.album-card[class*="rating-frame-"] .rating-ornament {
  z-index: 5;
  padding: 0;
  -webkit-mask: none;
  mask: none;
  box-shadow: none;
  opacity: 0.86;
  background: none;
  mix-blend-mode: normal;
}

.album-card.rating-frame-low::after {
  padding: 6px;
  opacity: 0.72;
  background:
    repeating-linear-gradient(90deg, rgba(92, 105, 55, 0.78) 0 14px, rgba(77, 52, 29, 0.72) 14px 25px),
    linear-gradient(135deg, rgba(105, 129, 64, 0.8), rgba(72, 56, 34, 0.82));
}

.album-card.rating-frame-low .rating-ornament {
  background:
    radial-gradient(circle at 18px 18px, rgba(123, 149, 74, 0.82) 0 6px, transparent 7px),
    radial-gradient(circle at calc(100% - 17px) calc(100% - 19px), rgba(93, 72, 38, 0.78) 0 7px, transparent 8px),
    linear-gradient(180deg, rgba(82, 106, 54, 0.58) 0 12px, transparent 12px),
    linear-gradient(90deg, rgba(80, 65, 39, 0.46) 0 10px, transparent 10px calc(100% - 9px), rgba(68, 84, 47, 0.44) calc(100% - 9px));
}

.album-card.rating-frame-rated::after {
  padding: 7px;
  opacity: 0.82;
  background:
    repeating-linear-gradient(90deg, rgba(218, 141, 73, 0.82) 0 9px, rgba(104, 59, 34, 0.78) 9px 17px),
    linear-gradient(180deg, rgba(226, 149, 73, 0.84), rgba(101, 58, 35, 0.88));
}

.album-card.rating-frame-rated .rating-ornament {
  background:
    radial-gradient(circle at 17px 17px, rgba(245, 180, 96, 0.88) 0 4px, rgba(83, 45, 26, 0.74) 5px 7px, transparent 8px),
    radial-gradient(circle at calc(100% - 17px) 17px, rgba(245, 180, 96, 0.72) 0 4px, rgba(83, 45, 26, 0.64) 5px 7px, transparent 8px),
    radial-gradient(circle at 17px calc(100% - 17px), rgba(245, 180, 96, 0.58) 0 4px, rgba(83, 45, 26, 0.58) 5px 7px, transparent 8px),
    radial-gradient(circle at calc(100% - 17px) calc(100% - 17px), rgba(245, 180, 96, 0.58) 0 4px, rgba(83, 45, 26, 0.58) 5px 7px, transparent 8px);
}

.album-card.rating-frame-good::after {
  padding: 6px;
  opacity: 0.8;
  background:
    linear-gradient(90deg, rgba(96, 221, 190, 0.82), rgba(30, 99, 91, 0.8)),
    linear-gradient(180deg, rgba(168, 255, 232, 0.74), rgba(42, 116, 106, 0.8));
}

.album-card.rating-frame-good .rating-ornament {
  background:
    linear-gradient(135deg, transparent 0 18px, rgba(177, 255, 235, 0.64) 18px 23px, transparent 23px) top left / 54px 54px no-repeat,
    linear-gradient(225deg, transparent 0 18px, rgba(177, 255, 235, 0.56) 18px 23px, transparent 23px) top right / 54px 54px no-repeat,
    linear-gradient(45deg, transparent 0 18px, rgba(99, 212, 185, 0.44) 18px 23px, transparent 23px) bottom left / 54px 54px no-repeat,
    linear-gradient(315deg, transparent 0 18px, rgba(99, 212, 185, 0.44) 18px 23px, transparent 23px) bottom right / 54px 54px no-repeat;
}

.album-card.rating-frame-strong::after {
  padding: 8px;
  opacity: 0.86;
  background:
    repeating-linear-gradient(90deg, rgba(255, 226, 133, 0.9) 0 12px, rgba(142, 92, 25, 0.78) 12px 19px),
    linear-gradient(180deg, rgba(255, 236, 159, 0.9), rgba(162, 106, 30, 0.86));
}

.album-card.rating-frame-strong .rating-ornament {
  background:
    radial-gradient(circle at 18px 18px, rgba(255, 246, 205, 0.78) 0 5px, transparent 6px),
    radial-gradient(circle at calc(100% - 18px) 18px, rgba(255, 246, 205, 0.7) 0 5px, transparent 6px),
    radial-gradient(circle at 18px calc(100% - 18px), rgba(255, 226, 133, 0.5) 0 5px, transparent 6px),
    radial-gradient(circle at calc(100% - 18px) calc(100% - 18px), rgba(255, 226, 133, 0.5) 0 5px, transparent 6px);
}

.album-card.rating-frame-great::after {
  padding: 8px;
  opacity: 0.9;
  background:
    linear-gradient(90deg, rgba(123, 26, 52, 0.92), rgba(255, 226, 133, 0.9), rgba(123, 26, 52, 0.92)),
    linear-gradient(180deg, rgba(255, 236, 166, 0.92), rgba(123, 26, 52, 0.88));
}

.album-card.rating-frame-great .rating-ornament {
  background:
    radial-gradient(circle at 19px 19px, rgba(223, 254, 250, 0.88) 0 5px, rgba(123, 26, 52, 0.7) 6px 9px, transparent 10px),
    radial-gradient(circle at calc(100% - 19px) 19px, rgba(255, 244, 189, 0.86) 0 5px, rgba(123, 26, 52, 0.7) 6px 9px, transparent 10px),
    radial-gradient(circle at 19px calc(100% - 19px), rgba(255, 226, 133, 0.72) 0 5px, rgba(91, 25, 48, 0.66) 6px 9px, transparent 10px),
    radial-gradient(circle at calc(100% - 19px) calc(100% - 19px), rgba(99, 212, 185, 0.72) 0 5px, rgba(91, 25, 48, 0.66) 6px 9px, transparent 10px);
}

.album-card.rating-frame-legendary::after {
  inset: 2px;
  padding: 9px;
  opacity: 0.94;
  background:
    conic-gradient(from 0deg, #fff7cb, #d99b29, #63d4b9, #a45367, #fff7cb);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  border: 0;
  box-shadow: none;
}

.album-card.rating-frame-legendary .rating-ornament {
  background:
    radial-gradient(circle at 50% 15px, rgba(255, 255, 255, 0.92) 0 5px, rgba(255, 226, 133, 0.72) 6px 9px, transparent 10px),
    radial-gradient(circle at 20px 20px, rgba(99, 212, 185, 0.88) 0 5px, transparent 6px),
    radial-gradient(circle at calc(100% - 20px) 20px, rgba(164, 83, 103, 0.88) 0 5px, transparent 6px),
    radial-gradient(circle at 20px calc(100% - 20px), rgba(255, 226, 133, 0.72) 0 5px, transparent 6px),
    radial-gradient(circle at calc(100% - 20px) calc(100% - 20px), rgba(255, 244, 189, 0.76) 0 5px, transparent 6px);
  filter: drop-shadow(0 0 8px rgba(255, 226, 133, 0.34));
}

.album-card[class*="rating-frame-"] {
  --frame-main: rgba(174, 180, 191, 0.5);
  --frame-outer: rgba(174, 180, 191, 0.16);
  --frame-glow: rgba(174, 180, 191, 0.18);
  --frame-offset: 3px;
  --frame-width: 3px;
  --frame-style: solid;
  overflow: hidden;
  outline: var(--frame-width) var(--frame-style) var(--frame-main);
  outline-offset: var(--frame-offset);
  border-color: color-mix(in srgb, var(--frame-main), transparent 38%);
  box-shadow:
    0 0 42px var(--aura-primary),
    0 0 74px var(--aura-secondary),
    0 0 0 calc(var(--frame-offset) + var(--frame-width) + 2px) var(--frame-outer),
    0 0 26px var(--frame-glow),
    0 18px 44px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.album-card[class*="rating-frame-"]::after,
.album-card[class*="rating-frame-"] .rating-ornament {
  content: none;
  display: none;
}

.album-card.rating-frame-low {
  --frame-main: rgba(91, 119, 62, 0.72);
  --frame-outer: rgba(67, 55, 34, 0.3);
  --frame-glow: rgba(93, 113, 55, 0.18);
  --frame-width: 3px;
  --frame-style: solid;
  filter: saturate(0.95);
}

.album-card.rating-frame-rated {
  --frame-main: rgba(196, 119, 56, 0.76);
  --frame-outer: rgba(97, 55, 31, 0.34);
  --frame-glow: rgba(214, 139, 66, 0.18);
  --frame-width: 3px;
  --frame-style: double;
}

.album-card.rating-frame-good {
  --frame-main: rgba(99, 212, 185, 0.72);
  --frame-outer: rgba(28, 97, 88, 0.26);
  --frame-glow: rgba(99, 212, 185, 0.2);
  --frame-width: 3px;
  --frame-style: solid;
}

.album-card.rating-frame-strong {
  --frame-main: rgba(244, 199, 91, 0.84);
  --frame-outer: rgba(133, 88, 24, 0.3);
  --frame-glow: rgba(244, 199, 91, 0.25);
  --frame-width: 4px;
  --frame-style: solid;
}

.album-card.rating-frame-great {
  --frame-main: rgba(255, 226, 133, 0.9);
  --frame-outer: rgba(123, 26, 52, 0.28);
  --frame-glow: rgba(255, 226, 133, 0.3);
  --frame-width: 4px;
  --frame-style: double;
  border-color: rgba(123, 26, 52, 0.5);
}

.album-card.rating-frame-legendary {
  --frame-main: rgba(255, 232, 150, 0.96);
  --frame-outer: rgba(99, 212, 185, 0.24);
  --frame-glow: rgba(255, 226, 133, 0.42);
  --frame-offset: 4px;
  --frame-width: 5px;
  --frame-style: double;
  border-color: rgba(255, 226, 133, 0.62);
  box-shadow:
    0 0 42px var(--aura-primary),
    0 0 74px var(--aura-secondary),
    0 0 0 11px rgba(164, 83, 103, 0.14),
    0 0 0 14px rgba(99, 212, 185, 0.09),
    0 0 34px rgba(255, 226, 133, 0.32),
    0 20px 52px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.075);
}

.rank-section,
.album-card.rating-tier-card {
  --tier-accent: #d8b968;
  --tier-accent-2: #78b8a8;
  --tier-ambient: rgba(216, 185, 104, 0.18);
  --tier-ambient-2: rgba(120, 184, 168, 0.12);
  --tier-edge: rgba(216, 185, 104, 0.28);
  --tier-edge-strong: rgba(216, 185, 104, 0.52);
  --tier-texture-opacity: 0.16;
  --tier-section-surface:
    radial-gradient(circle at 14% 0%, var(--tier-ambient), transparent 38%),
    radial-gradient(circle at 86% 16%, var(--tier-ambient-2), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(15, 17, 21, 0.72);
  --tier-card-surface:
    radial-gradient(circle at 18% 0%, var(--tier-ambient), transparent 42%),
    radial-gradient(circle at 92% 16%, var(--tier-ambient-2), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.082), rgba(255, 255, 255, 0.022)),
    rgba(18, 21, 26, 0.88);
  --tier-body-surface:
    linear-gradient(180deg, rgba(9, 11, 14, 0.18), rgba(8, 10, 13, 0.48)),
    rgba(12, 14, 17, 0.54);
  --tier-texture:
    linear-gradient(120deg, transparent 0 28%, rgba(255, 255, 255, 0.08) 42%, transparent 58% 100%);
  --tier-edge-art:
    linear-gradient(180deg, transparent, var(--tier-edge-strong), transparent) left 9px top 18px / 2px calc(100% - 36px) no-repeat,
    linear-gradient(180deg, transparent, var(--tier-edge-strong), transparent) right 9px top 18px / 2px calc(100% - 36px) no-repeat,
    linear-gradient(90deg, transparent, var(--tier-edge), transparent) left 18px top 8px / calc(100% - 36px) 1px no-repeat;
  --tier-shadow: rgba(0, 0, 0, 0.32);
  --tier-glow: 0 0 28px color-mix(in srgb, var(--tier-accent), transparent 86%);
  --score-bg: linear-gradient(180deg, #ffe18b, #f2bf4a);
  --score-color: #16110a;
  --score-edge: rgba(255, 235, 174, 0.7);
}

.rank-section {
  isolation: isolate;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--tier-edge), transparent 30%);
  background: var(--tier-section-surface);
  box-shadow:
    0 18px 44px var(--tier-shadow),
    var(--tier-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.rank-section::before,
.rank-section::after {
  content: none;
  display: none;
}

.rank-section > * {
  position: relative;
  z-index: 1;
}

.rank-section .crate-heading {
  padding-top: 4px;
}

.rank-section .crate-heading strong {
  color: color-mix(in srgb, var(--tier-accent), white 12%);
  text-shadow:
    0 0 18px color-mix(in srgb, var(--tier-accent), transparent 80%),
    0 10px 24px rgba(0, 0, 0, 0.34);
}

.rank-section .rank-range {
  color: color-mix(in srgb, var(--tier-accent), var(--muted) 48%);
}

.rank-section .rank-count,
.rank-section .rank-description {
  color: rgba(243, 240, 232, 0.66);
}

.album-card.rating-tier-card {
  overflow: hidden;
  filter: none;
  outline: 0;
  border-color: color-mix(in srgb, var(--tier-edge), transparent 24%);
  background: var(--tier-card-surface);
  box-shadow:
    0 0 42px var(--aura-primary),
    0 0 64px color-mix(in srgb, var(--tier-accent), transparent 90%),
    0 18px 44px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.068);
}

.rating-tier-card::after,
.rating-tier-card .rating-ornament {
  content: none;
  display: none;
}

.rating-tier-card .cover-wrap,
.rating-tier-card .album-body {
  position: relative;
  z-index: 1;
}

.rating-tier-card .cover-wrap {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.07);
}

.rating-tier-card .album-body {
  color: rgba(243, 240, 232, 0.94);
  background: var(--tier-body-surface);
}

.rating-tier-card .listen-panel {
  border-color: color-mix(in srgb, var(--tier-edge), transparent 52%);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--tier-accent), transparent 86%), rgba(255, 255, 255, 0.026)),
    rgba(255, 255, 255, 0.03);
}

.rating-tier-card .listen-panel strong {
  color: color-mix(in srgb, var(--tier-accent), white 8%);
}


.rank-band-top,
.rating-band-top {
  --tier-accent: #f7d985;
  --tier-accent-2: #f9f0cc;
  --tier-ambient: rgba(247, 217, 133, 0.24);
  --tier-ambient-2: rgba(255, 255, 240, 0.16);
  --tier-edge: rgba(247, 217, 133, 0.42);
  --tier-edge-strong: rgba(247, 217, 133, 0.72);
  --tier-texture-opacity: 0.2;
  --tier-section-surface:
    radial-gradient(circle at 15% 0%, rgba(255, 226, 150, 0.22), transparent 36%),
    radial-gradient(circle at 88% 12%, rgba(255, 255, 238, 0.14), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 214, 120, 0.025) 46%, rgba(255, 255, 255, 0.04)),
    rgba(18, 17, 15, 0.82);
  --tier-card-surface:
    radial-gradient(circle at 22% 0%, rgba(255, 232, 155, 0.28), transparent 42%),
    radial-gradient(circle at 86% 18%, rgba(255, 255, 245, 0.18), transparent 40%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 225, 145, 0.035) 48%, rgba(255, 255, 255, 0.035)),
    rgba(22, 20, 17, 0.91);
  --tier-body-surface:
    linear-gradient(180deg, rgba(255, 234, 164, 0.06), rgba(8, 9, 11, 0.58)),
    rgba(12, 12, 12, 0.62);
  --tier-texture:
    linear-gradient(112deg, transparent 0 20%, rgba(255, 255, 255, 0.14) 38%, transparent 56%),
    radial-gradient(circle at 72% 12%, rgba(255, 255, 255, 0.18), transparent 14%);
  --tier-edge-art:
    linear-gradient(90deg, transparent, rgba(255, 240, 190, 0.54), transparent) left 18px top 8px / calc(100% - 36px) 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(255, 240, 190, 0.22), transparent) left 22px bottom 10px / calc(100% - 44px) 1px no-repeat,
    linear-gradient(180deg, transparent, rgba(255, 230, 150, 0.5), transparent) left 8px top 20px / 1px calc(100% - 40px) no-repeat,
    linear-gradient(180deg, transparent, rgba(255, 230, 150, 0.34), transparent) right 8px top 20px / 1px calc(100% - 40px) no-repeat;
  --tier-glow: 0 0 44px rgba(255, 221, 132, 0.15);
  --score-bg: linear-gradient(180deg, #fff3bd, #f0bd43);
  --score-edge: rgba(255, 244, 198, 0.82);
}

.rank-band-upper-mid,
.rating-band-upper-mid {
  --tier-accent: #e2b55c;
  --tier-accent-2: #66c2a8;
  --tier-ambient: rgba(226, 181, 92, 0.18);
  --tier-ambient-2: rgba(102, 194, 168, 0.13);
  --tier-edge: rgba(226, 181, 92, 0.32);
  --tier-edge-strong: rgba(226, 181, 92, 0.56);
  --tier-section-surface:
    radial-gradient(circle at 16% 0%, rgba(226, 181, 92, 0.17), transparent 36%),
    radial-gradient(circle at 88% 16%, rgba(102, 194, 168, 0.12), transparent 38%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.064), rgba(255, 255, 255, 0.018)),
    rgba(17, 20, 22, 0.78);
  --tier-card-surface:
    radial-gradient(circle at 18% 0%, rgba(226, 181, 92, 0.2), transparent 40%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.076), rgba(102, 194, 168, 0.034) 54%, rgba(255, 255, 255, 0.018)),
    rgba(19, 22, 25, 0.9);
  --tier-texture:
    linear-gradient(125deg, transparent 0 34%, rgba(255, 255, 255, 0.075) 48%, transparent 62%);
  --tier-edge-art:
    linear-gradient(90deg, rgba(226, 181, 92, 0.34), transparent 34%, transparent 66%, rgba(102, 194, 168, 0.24)) left 12px top 9px / calc(100% - 24px) 1px no-repeat,
    linear-gradient(180deg, transparent, rgba(226, 181, 92, 0.3), transparent) left 8px top 24px / 1px calc(100% - 48px) no-repeat;
  --score-bg: linear-gradient(180deg, #ffe09b, #e2a93f);
}

.rank-band-mid,
.rating-band-mid {
  --tier-accent: #a7b6b5;
  --tier-accent-2: #9aa985;
  --tier-ambient: rgba(167, 182, 181, 0.12);
  --tier-ambient-2: rgba(154, 169, 133, 0.08);
  --tier-edge: rgba(180, 190, 186, 0.22);
  --tier-edge-strong: rgba(180, 190, 186, 0.34);
  --tier-texture-opacity: 0.1;
  --tier-section-surface:
    radial-gradient(circle at 18% 0%, rgba(167, 182, 181, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.016)),
    rgba(16, 18, 21, 0.72);
  --tier-card-surface:
    linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.018)),
    radial-gradient(circle at 82% 10%, rgba(167, 182, 181, 0.08), transparent 32%),
    rgba(19, 22, 25, 0.86);
  --tier-texture:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 30%);
  --tier-edge-art:
    linear-gradient(90deg, transparent, rgba(210, 218, 214, 0.18), transparent) left 18px top 9px / calc(100% - 36px) 1px no-repeat;
  --tier-glow: 0 0 24px rgba(167, 182, 181, 0.07);
  --score-bg: linear-gradient(180deg, #e3e7de, #abb7a5);
  --score-edge: rgba(229, 234, 224, 0.6);
}

.rank-band-low,
.rating-band-low {
  --tier-accent: #9b7d58;
  --tier-accent-2: #6f7357;
  --tier-ambient: rgba(155, 125, 88, 0.1);
  --tier-ambient-2: rgba(111, 115, 87, 0.08);
  --tier-edge: rgba(139, 110, 78, 0.28);
  --tier-edge-strong: rgba(139, 110, 78, 0.42);
  --tier-texture-opacity: 0.19;
  --tier-section-surface:
    radial-gradient(circle at 82% 8%, rgba(155, 125, 88, 0.12), transparent 32%),
    linear-gradient(118deg, transparent 0 34%, rgba(0, 0, 0, 0.06) 36% 38%, transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.035)),
    rgba(17, 17, 16, 0.8);
  --tier-card-surface:
    radial-gradient(circle at 84% 10%, rgba(155, 125, 88, 0.12), transparent 34%),
    linear-gradient(122deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.075) 55%, rgba(255, 255, 255, 0.018)),
    rgba(18, 18, 17, 0.9);
  --tier-body-surface:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(6, 7, 8, 0.6)),
    rgba(12, 12, 11, 0.66);
  --tier-texture:
    repeating-linear-gradient(116deg, transparent 0 24px, rgba(0, 0, 0, 0.11) 24px 26px, transparent 26px 48px),
    radial-gradient(circle at 78% 12%, rgba(160, 118, 76, 0.1), transparent 22%);
  --tier-edge-art:
    linear-gradient(90deg, rgba(120, 86, 55, 0.38), transparent 24%, transparent 78%, rgba(96, 83, 58, 0.28)) left 10px top 9px / calc(100% - 20px) 1px no-repeat,
    repeating-linear-gradient(180deg, rgba(120, 86, 55, 0.24) 0 8px, transparent 8px 18px) left 8px top 20px / 1px calc(100% - 40px) no-repeat;
  --tier-glow: 0 0 18px rgba(112, 84, 57, 0.08);
  --score-bg: linear-gradient(180deg, #e4c486, #aa7444);
  --score-edge: rgba(226, 189, 128, 0.56);
}

.rank-band-bottom,
.rating-band-bottom {
  --tier-accent: #8d3444;
  --tier-accent-2: #748243;
  --tier-ambient: rgba(141, 52, 68, 0.14);
  --tier-ambient-2: rgba(116, 130, 67, 0.1);
  --tier-edge: rgba(116, 76, 58, 0.34);
  --tier-edge-strong: rgba(141, 52, 68, 0.5);
  --tier-texture-opacity: 0.25;
  --tier-section-surface:
    radial-gradient(circle at 84% 12%, rgba(116, 130, 67, 0.12), transparent 30%),
    radial-gradient(circle at 12% 90%, rgba(141, 52, 68, 0.12), transparent 34%),
    repeating-linear-gradient(126deg, transparent 0 28px, rgba(0, 0, 0, 0.13) 28px 30px, transparent 30px 56px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(0, 0, 0, 0.12)),
    rgba(14, 13, 12, 0.9);
  --tier-card-surface:
    radial-gradient(circle at 86% 12%, rgba(116, 130, 67, 0.13), transparent 32%),
    radial-gradient(circle at 10% 90%, rgba(141, 52, 68, 0.16), transparent 34%),
    repeating-linear-gradient(128deg, transparent 0 23px, rgba(0, 0, 0, 0.16) 23px 25px, transparent 25px 48px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(0, 0, 0, 0.14)),
    rgba(15, 14, 13, 0.94);
  --tier-body-surface:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(6, 6, 6, 0.7)),
    rgba(10, 9, 9, 0.72);
  --tier-texture:
    repeating-linear-gradient(96deg, transparent 0 16px, rgba(0, 0, 0, 0.22) 16px 18px, transparent 18px 38px),
    radial-gradient(circle at 82% 12%, rgba(116, 130, 67, 0.12), transparent 20%);
  --tier-edge-art:
    linear-gradient(90deg, rgba(141, 52, 68, 0.42), transparent 26%, transparent 74%, rgba(116, 130, 67, 0.34)) left 10px top 9px / calc(100% - 20px) 1px no-repeat,
    repeating-linear-gradient(180deg, rgba(141, 52, 68, 0.22) 0 7px, transparent 7px 16px) left 8px top 20px / 1px calc(100% - 40px) no-repeat,
    repeating-linear-gradient(180deg, rgba(116, 130, 67, 0.18) 0 5px, transparent 5px 15px) right 8px top 20px / 1px calc(100% - 40px) no-repeat;
  --tier-glow: 0 0 20px rgba(141, 52, 68, 0.1);
  --score-bg: linear-gradient(180deg, #dab876, #94513c);
  --score-edge: rgba(218, 184, 118, 0.48);
}

.rank-frame-style-satin-cap,
.rating-frame-style-satin-cap {
  --tier-edge-art:
    linear-gradient(90deg, transparent, rgba(255, 248, 214, 0.62), transparent) left 18px top 7px / calc(100% - 36px) 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(255, 226, 143, 0.28), transparent) left 24px bottom 10px / calc(100% - 48px) 1px no-repeat,
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.12), transparent 34%);
}

.rank-frame-style-fine-line,
.rating-frame-style-fine-line {
  --tier-edge-art:
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--tier-accent), transparent 44%), transparent) left 18px top 8px / calc(100% - 36px) 1px no-repeat,
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--tier-accent-2), transparent 60%), transparent) right 9px top 24px / 1px calc(100% - 48px) no-repeat;
}

.rank-frame-style-soft-rim,
.rating-frame-style-soft-rim {
  --tier-edge-art:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--tier-accent), transparent 72%), transparent 32%),
    linear-gradient(90deg, color-mix(in srgb, var(--tier-accent), transparent 68%), transparent 30% 70%, color-mix(in srgb, var(--tier-accent-2), transparent 70%)) left 10px top 8px / calc(100% - 20px) 1px no-repeat;
}

.rank-frame-style-side-accent,
.rating-frame-style-side-accent {
  --tier-edge-art:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--tier-accent), transparent 48%), transparent) left 8px top 22px / 2px calc(100% - 44px) no-repeat,
    linear-gradient(90deg, color-mix(in srgb, var(--tier-accent), transparent 70%), transparent 36%) left 10px top 8px / 58% 1px no-repeat;
}

.rank-frame-style-clean-edge,
.rating-frame-style-clean-edge,
.rank-frame-style-minimal-line,
.rating-frame-style-minimal-line {
  --tier-edge-art:
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--tier-accent), transparent 76%), transparent) left 20px top 9px / calc(100% - 40px) 1px no-repeat;
}

.rank-frame-style-worn-edge,
.rating-frame-style-worn-edge {
  --tier-edge-art:
    repeating-linear-gradient(90deg, rgba(139, 110, 78, 0.22) 0 12px, transparent 12px 28px) left 10px top 8px / calc(100% - 20px) 1px no-repeat,
    repeating-linear-gradient(180deg, rgba(139, 110, 78, 0.22) 0 8px, transparent 8px 19px) left 8px top 20px / 1px calc(100% - 40px) no-repeat;
}

.rank-frame-style-frayed-line,
.rating-frame-style-frayed-line {
  --tier-edge-art:
    repeating-linear-gradient(90deg, rgba(112, 84, 57, 0.24) 0 8px, transparent 8px 17px) left 12px top 8px / calc(100% - 24px) 1px no-repeat,
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.18), transparent) right 8px top 22px / 1px calc(100% - 44px) no-repeat;
}

.rank-frame-style-damaged-edge,
.rating-frame-style-damaged-edge {
  --tier-edge-art:
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--tier-accent), transparent 68%) 0 7px, transparent 7px 16px, rgba(0, 0, 0, 0.24) 16px 18px, transparent 18px 30px) left 10px top 8px / calc(100% - 20px) 1px no-repeat,
    repeating-linear-gradient(180deg, color-mix(in srgb, var(--tier-accent-2), transparent 74%) 0 6px, transparent 6px 15px) right 8px top 20px / 1px calc(100% - 40px) no-repeat,
    radial-gradient(circle at 86% 10%, rgba(0, 0, 0, 0.2), transparent 16%);
}

.rank-surface-luminous-plaque,
.rating-surface-luminous-plaque {
  --tier-texture-opacity: 0.22;
  --tier-texture:
    linear-gradient(112deg, transparent 0 18%, rgba(255, 255, 255, 0.18) 36%, transparent 56%),
    radial-gradient(circle at 76% 12%, rgba(255, 255, 255, 0.22), transparent 12%);
}

.rank-surface-pearl-sheen,
.rating-surface-pearl-sheen {
  --tier-texture-opacity: 0.18;
  --tier-texture:
    linear-gradient(102deg, transparent 0 22%, rgba(255, 255, 255, 0.13) 42%, transparent 62%),
    radial-gradient(ellipse at 82% 12%, rgba(157, 211, 219, 0.16), transparent 24%);
}

.rank-surface-warm-glow,
.rating-surface-warm-glow {
  --tier-texture-opacity: 0.18;
  --tier-texture:
    radial-gradient(circle at 18% 8%, rgba(255, 184, 127, 0.18), transparent 26%),
    linear-gradient(132deg, transparent 0 36%, rgba(255, 220, 170, 0.09) 48%, transparent 60%);
}

.rank-surface-confident-polish,
.rating-surface-confident-polish {
  --tier-texture-opacity: 0.14;
  --tier-texture:
    linear-gradient(125deg, transparent 0 34%, rgba(255, 255, 255, 0.09) 48%, transparent 62%);
}

.rank-surface-crafted-warmth,
.rating-surface-crafted-warmth {
  --tier-texture-opacity: 0.15;
  --tier-texture:
    radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--tier-accent), transparent 76%), transparent 30%),
    linear-gradient(100deg, transparent 0 42%, rgba(255, 255, 255, 0.06) 50%, transparent 58%);
}

.rank-surface-fresh-depth,
.rating-surface-fresh-depth {
  --tier-texture-opacity: 0.14;
  --tier-texture:
    radial-gradient(circle at 84% 12%, color-mix(in srgb, var(--tier-accent-2), transparent 76%), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 40%);
}

.rank-surface-quiet-matte,
.rating-surface-quiet-matte,
.rank-surface-soft-matte,
.rating-surface-soft-matte {
  --tier-texture-opacity: 0.08;
  --tier-texture: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 30%);
}

.rank-surface-muted-paper,
.rating-surface-muted-paper {
  --tier-texture-opacity: 0.1;
  --tier-texture:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 12px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), transparent 34%);
}

.rank-surface-neutral-slate,
.rating-surface-neutral-slate {
  --tier-texture-opacity: 0.09;
  --tier-texture:
    linear-gradient(135deg, rgba(255, 255, 255, 0.028), transparent 48%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.035), transparent 18%);
}

.rank-surface-faded-varnish,
.rating-surface-faded-varnish {
  --tier-texture-opacity: 0.16;
  --tier-texture:
    linear-gradient(116deg, transparent 0 34%, rgba(255, 255, 255, 0.04) 46%, transparent 58%),
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(0, 0, 0, 0.08) 26px 28px, transparent 28px 52px);
}

.rank-surface-scuffed-leather,
.rating-surface-scuffed-leather {
  --tier-texture-opacity: 0.18;
  --tier-texture:
    repeating-linear-gradient(125deg, transparent 0 18px, rgba(0, 0, 0, 0.1) 18px 20px, transparent 20px 38px),
    radial-gradient(ellipse at 30% 18%, rgba(255, 255, 255, 0.035), transparent 22%);
}

.rank-surface-dusty-haze,
.rating-surface-dusty-haze {
  --tier-texture-opacity: 0.2;
  --tier-texture:
    radial-gradient(circle at 18% 12%, rgba(180, 170, 150, 0.06), transparent 30%),
    linear-gradient(180deg, rgba(160, 150, 140, 0.04), transparent 42%);
}

.rank-surface-burnt-oxide,
.rating-surface-burnt-oxide {
  --tier-texture-opacity: 0.2;
  --tier-texture:
    radial-gradient(circle at 86% 14%, rgba(130, 61, 48, 0.14), transparent 28%),
    repeating-linear-gradient(112deg, transparent 0 20px, rgba(0, 0, 0, 0.12) 20px 22px, transparent 22px 44px);
}

.rank-surface-tainted-panel,
.rating-surface-tainted-panel {
  --tier-texture-opacity: 0.24;
  --tier-texture:
    radial-gradient(circle at 82% 12%, rgba(135, 139, 64, 0.12), transparent 22%),
    radial-gradient(circle at 12% 88%, rgba(142, 45, 67, 0.14), transparent 28%),
    repeating-linear-gradient(96deg, transparent 0 16px, rgba(0, 0, 0, 0.2) 16px 18px, transparent 18px 36px);
}

.rank-surface-corroded-panel,
.rating-surface-corroded-panel {
  --tier-texture-opacity: 0.28;
  --tier-texture:
    radial-gradient(circle at 84% 12%, rgba(108, 131, 55, 0.16), transparent 24%),
    radial-gradient(circle at 18% 92%, rgba(75, 62, 47, 0.18), transparent 30%),
    repeating-linear-gradient(128deg, transparent 0 17px, rgba(0, 0, 0, 0.22) 17px 20px, transparent 20px 40px);
}

.rank-masterpieces,
.rating-rank-masterpieces {
  --tier-accent: #ffe58f;
  --tier-accent-2: #eaf7ee;
  --tier-ambient: rgba(255, 229, 143, 0.3);
  --tier-ambient-2: rgba(234, 247, 238, 0.18);
  --tier-card-surface:
    radial-gradient(circle at 20% 0%, rgba(255, 229, 143, 0.34), transparent 42%),
    radial-gradient(circle at 90% 14%, rgba(234, 247, 238, 0.2), transparent 38%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.14), rgba(255, 229, 143, 0.045) 46%, rgba(112, 218, 196, 0.035)),
    rgba(23, 20, 15, 0.92);
  --tier-texture:
    linear-gradient(112deg, transparent 0 18%, rgba(255, 255, 255, 0.18) 36%, transparent 56%),
    radial-gradient(circle at 76% 12%, rgba(255, 255, 255, 0.22), transparent 12%);
}

.rank-essentials,
.rating-rank-essentials {
  --tier-accent: #e9dec2;
  --tier-accent-2: #9dd3db;
  --tier-ambient: rgba(233, 222, 194, 0.22);
  --tier-ambient-2: rgba(157, 211, 219, 0.14);
}

.rank-favorites,
.rating-rank-favorites {
  --tier-accent: #ffb87f;
  --tier-accent-2: #bf526b;
  --tier-ambient: rgba(255, 184, 127, 0.22);
  --tier-ambient-2: rgba(191, 82, 107, 0.14);
}

.rank-great-albums,
.rating-rank-great-albums {
  --tier-accent: #f1c85e;
  --tier-accent-2: #a8465e;
}

.rank-very-good,
.rating-rank-very-good {
  --tier-accent: #d79653;
  --tier-accent-2: #5ebd91;
}

.rank-good,
.rating-rank-good {
  --tier-accent: #63d4b9;
  --tier-accent-2: #639ed4;
}

.rank-solid,
.rating-rank-solid {
  --tier-accent: #91b2bc;
  --tier-accent-2: #7a94b0;
}

.rank-decent,
.rating-rank-decent {
  --tier-accent: #8fa97d;
  --tier-accent-2: #b79b5e;
}

.rank-okay,
.rating-rank-okay {
  --tier-accent: #b0975c;
  --tier-accent-2: #8b8f82;
}

.rank-mixed-neutral,
.rating-rank-mixed-neutral {
  --tier-accent: #9e978b;
  --tier-accent-2: #6f797c;
}

.rank-underwhelming,
.rating-rank-underwhelming {
  --tier-accent: #8c7c4c;
  --tier-accent-2: #5d6f4e;
}

.rank-weak,
.rating-rank-weak {
  --tier-accent: #9a633d;
  --tier-accent-2: #635645;
}

.rank-poor,
.rating-rank-poor {
  --tier-accent: #70655f;
  --tier-accent-2: #674f60;
}

.rank-bad,
.rating-rank-bad {
  --tier-accent: #823d30;
  --tier-accent-2: #5d4a30;
}

.rank-painful,
.rating-rank-painful {
  --tier-accent: #8e2d43;
  --tier-accent-2: #878b40;
}

.rank-unlistenable,
.rating-rank-unlistenable {
  --tier-accent: #4b3e2f;
  --tier-accent-2: #6c8337;
  --tier-card-surface:
    radial-gradient(circle at 86% 12%, rgba(108, 131, 55, 0.14), transparent 32%),
    radial-gradient(circle at 10% 90%, rgba(75, 62, 47, 0.2), transparent 34%),
    repeating-linear-gradient(128deg, transparent 0 18px, rgba(0, 0, 0, 0.22) 18px 21px, transparent 21px 42px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(0, 0, 0, 0.18)),
    rgba(10, 10, 9, 0.96);
}

.rating-band-top.rating-tier-card {
  box-shadow:
    0 0 42px var(--aura-primary),
    0 0 78px rgba(255, 226, 133, 0.12),
    0 20px 52px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.105);
}

.rating-band-bottom.rating-tier-card .cover {
  filter: saturate(0.92) contrast(1.03);
}

.rating-band-bottom.rating-tier-card:hover .cover {
  filter: saturate(1) contrast(1.05);
}

@keyframes legendaryFrame {
  0% {
    filter: drop-shadow(0 0 8px rgba(255, 226, 133, 0.28)) hue-rotate(0deg);
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(255, 226, 133, 0.42)) hue-rotate(18deg);
  }
  100% {
    filter: drop-shadow(0 0 8px rgba(255, 226, 133, 0.28)) hue-rotate(0deg);
  }
}

.cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #252830;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
  box-shadow:
    0 0 34px var(--aura-primary),
    0 0 58px var(--aura-secondary),
    inset 0 -1px 0 rgba(255, 255, 255, 0.055);
}

.cover-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 10%, transparent 82%, rgba(0, 0, 0, 0.28)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 42%, rgba(0, 0, 0, 0.24));
  mix-blend-mode: screen;
}

.cover {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.album-card:hover .cover {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.03);
}

.score-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 12;
  min-width: 48px;
  padding: 6px 8px;
  border-radius: 999px;
  text-align: center;
  font-weight: 900;
  color: #13110b;
  background: var(--accent);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.28);
}

.score-stack {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 20;
  display: grid;
  gap: 4px;
  pointer-events: none;
  filter:
    drop-shadow(0 10px 16px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 8px rgba(242, 191, 74, 0.34));
}

.score-stack .score-badge {
  position: static;
  display: flex;
  gap: 5px;
  justify-content: space-between;
  min-width: 68px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 234, 168, 0.8);
  color: #15110a;
  background: linear-gradient(180deg, #ffeaa5, #f2bf4a);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
  line-height: 1;
}

.score-stack small {
  color: rgba(21, 17, 10, 0.62);
  font-size: 0.62rem;
}

.score-stack .score-badge.global {
  color: rgba(243, 240, 232, 0.94);
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.025)),
    rgba(12, 14, 17, 0.94);
}

.score-stack .score-badge.global small {
  color: rgba(243, 240, 232, 0.58);
}

.score-badge.unrated {
  color: rgba(243, 240, 232, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(14, 16, 19, 0.94);
}

.score-badge.unrated small {
  color: rgba(243, 240, 232, 0.52);
}

.album-body {
  display: grid;
  gap: 8px;
  padding: 12px 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  background:
    linear-gradient(90deg, rgba(126, 48, 69, 0.12), transparent 42%),
    rgba(12, 14, 17, 0.42);
}

.listen-panel {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid rgba(242, 191, 74, 0.24);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(242, 191, 74, 0.18), rgba(88, 198, 168, 0.08)),
    rgba(255, 255, 255, 0.035);
}

.listen-panel strong {
  color: var(--accent);
  font-size: 1.45rem;
  line-height: 1;
}

.listen-panel span {
  color: rgba(243, 240, 232, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
}

.artist {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
}

.title {
  margin: 0 0 2px;
  font-size: 1rem;
  line-height: 1.18;
}

.tile-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.tile-facts span,
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(255, 255, 255, 0.03);
}

.tile-facts .runtime-fact {
  color: #15130e;
  border-color: rgba(244, 199, 91, 0.66);
  background: linear-gradient(180deg, #ffe08a, var(--accent));
  font-weight: 900;
}

.fact-filter {
  min-height: 0;
  color: var(--text);
  font-size: inherit;
  line-height: inherit;
  background:
    linear-gradient(180deg, rgba(242, 191, 74, 0.12), rgba(88, 198, 168, 0.05)),
    rgba(255, 255, 255, 0.035);
}

.fact-filter:hover,
.fact-filter:focus-visible {
  border-color: rgba(242, 191, 74, 0.58);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2px;
}

.album-dialog .notes-label {
  display: grid;
  gap: 6px;
}

.empty {
  padding: 28px;
  text-align: center;
}

.empty p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
}

.album-dialog,
.small-dialog,
.monthly-wrapped-dialog,
.monthly-slide-preview-dialog {
  width: min(1040px, calc(100% - 28px));
  max-height: calc(100vh - 34px);
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
}

.small-dialog {
  width: min(680px, calc(100% - 28px));
}

.album-dialog::backdrop,
.small-dialog::backdrop,
.monthly-wrapped-dialog::backdrop,
.monthly-slide-preview-dialog::backdrop {
  background:
    linear-gradient(180deg, rgba(4, 6, 8, 0.72), rgba(4, 6, 8, 0.84));
  backdrop-filter: blur(6px);
}

.dialog-close-form {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.monthly-wrapped-dialog {
  width: min(980px, calc(100% - 28px));
}

.monthly-wrapped-panel {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(45, 226, 127, 0.18);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 10%, rgba(45, 226, 127, 0.16), transparent 30%),
    radial-gradient(circle at 92% 22%, rgba(164, 83, 103, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.022)),
    rgba(13, 16, 17, 0.94);
  box-shadow: var(--shadow);
}

.monthly-wrapped-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) minmax(160px, 190px);
  gap: 18px;
  align-items: end;
}

.monthly-wrapped-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  line-height: 0.95;
}

.tier-list-header {
  grid-template-columns: minmax(0, 1fr);
}

.tier-list-panel {
  border-color: rgba(255, 194, 125, 0.2);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 122, 122, 0.12), transparent 30%),
    radial-gradient(circle at 92% 22%, rgba(117, 242, 119, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.022)),
    rgba(13, 16, 17, 0.94);
}

.monthly-poster-toggle {
  min-height: 42px;
  align-content: center;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 214, 83, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 214, 83, 0.055);
}

.monthly-poster-toggle span {
  margin: 0;
}

.monthly-wrapped-preview {
  position: relative;
  display: block;
  min-height: 360px;
  padding: clamp(12px, 2vw, 18px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(45, 226, 127, 0.08), transparent 46%),
    rgba(0, 0, 0, 0.28);
}

.monthly-wrapped-slides {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  align-items: start;
  justify-items: center;
}

.monthly-wrapped-slides canvas {
  display: block;
  width: min(100%, 360px);
  height: auto;
  border-radius: 10px;
  cursor: zoom-in;
  box-shadow:
    0 0 46px rgba(45, 226, 127, 0.13),
    0 28px 80px rgba(0, 0, 0, 0.45);
}

.monthly-wrapped-slides canvas:hover {
  outline: 2px solid rgba(45, 226, 127, 0.76);
  outline-offset: 4px;
}

.tier-list-preview {
  min-height: 260px;
}

.tier-list-slides {
  display: flex;
  justify-content: flex-start;
}

.tier-list-slides canvas {
  width: auto;
  max-width: 100%;
  max-height: 72vh;
  border-radius: 6px;
  box-shadow:
    0 0 46px rgba(255, 194, 125, 0.12),
    0 28px 80px rgba(0, 0, 0, 0.45);
}

.tier-list-slides canvas:hover {
  outline-color: rgba(255, 194, 125, 0.78);
}

.monthly-slide-preview-dialog {
  width: min(92vw, 840px);
  max-height: calc(100vh - 24px);
}

.monthly-slide-preview-panel {
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(45, 226, 127, 0.2);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 10%, rgba(45, 226, 127, 0.12), transparent 36%),
    rgba(8, 10, 12, 0.94);
  box-shadow: var(--shadow);
}

.monthly-slide-preview-panel img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 96px);
  border-radius: 12px;
  box-shadow:
    0 0 52px rgba(45, 226, 127, 0.14),
    0 30px 90px rgba(0, 0, 0, 0.5);
}

.monthly-wrapped-preview .hint {
  margin: 0;
  color: var(--muted);
}

.icon-button {
  width: 42px;
  min-height: 42px;
  margin: 10px 10px -52px 0;
  pointer-events: auto;
  color: var(--text);
  background: rgba(17, 19, 23, 0.9);
  border-color: var(--line);
}

.dialog-panel {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  align-items: start;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(164, 83, 103, 0.13), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.02)),
    rgba(16, 18, 22, 0.96);
  animation: dialogPop 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.dialog-cover {
  position: relative;
  align-self: start;
  min-height: 430px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 44%),
    #121419;
}

.vinyl-stage {
  position: relative;
  min-height: 430px;
}

.vinyl-disc {
  position: absolute;
  top: 62px;
  left: 156px;
  width: 320px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 13%, rgba(255, 255, 255, 0.06) 13.4% 14.2%, transparent 15% 100%),
    repeating-radial-gradient(circle, #0b0c0f 0 6px, #15171d 7px 8px, #090a0c 9px 13px),
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.1), transparent 24%),
    #090a0c;
  box-shadow:
    0 30px 65px rgba(0, 0, 0, 0.42),
    inset 14px 0 30px rgba(255, 255, 255, 0.04),
    inset -18px 0 42px rgba(0, 0, 0, 0.56);
  transform: translateX(-118px) scale(0.86) rotate(-28deg);
  animation: vinylSlideIn 760ms cubic-bezier(0.2, 0.82, 0.2, 1) 80ms forwards, vinylSpin 6s linear 900ms infinite;
}

.vinyl-disc img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30%;
  height: 30%;
  border-radius: 50%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 7px rgba(242, 191, 74, 0.14),
    0 0 0 10px rgba(0, 0, 0, 0.44);
}

.vinyl-disc #dialogVinylLabel {
  display: block;
  width: 30%;
  height: 30%;
  aspect-ratio: 1;
  object-fit: cover;
}

.dialog-cover img {
  display: block;
  width: min(315px, 72%);
  aspect-ratio: 1;
  object-fit: cover;
}

#dialogCover {
  position: absolute;
  top: 76px;
  left: 22px;
  z-index: 2;
  width: 286px;
  border-radius: 6px;
  box-shadow:
    14px 20px 48px rgba(0, 0, 0, 0.45),
    inset 8px 0 0 rgba(255, 255, 255, 0.04);
  transform: translateX(36px) scale(0.86);
  opacity: 0;
  animation: coverSlideIn 620ms cubic-bezier(0.2, 0.82, 0.2, 1) forwards;
}

@keyframes coverSlideIn {
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes vinylSlideIn {
  to {
    transform: translateX(18px) scale(1) rotate(0deg);
  }
}

@keyframes vinylSpin {
  to {
    transform: translateX(18px) scale(1) rotate(360deg);
  }
}

.album-dialog[open] .dialog-content {
  animation: detailFadeIn 420ms ease 300ms both;
}

@keyframes detailFadeIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.dialog-content {
  display: grid;
  gap: 16px;
  padding: 28px;
  align-content: start;
}

.dialog-content > .artist {
  margin-bottom: -8px;
  color: var(--accent-2);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.dialog-content > .artist .dialog-artist-filter {
  padding: 0;
  border: 0;
  color: var(--accent-2);
  background: transparent;
  box-shadow: none;
  font-weight: 900;
  text-transform: uppercase;
}

.dialog-content > .artist .dialog-artist-filter:hover,
.dialog-content > .artist .dialog-artist-filter:focus-visible {
  color: var(--accent);
  box-shadow: none;
}

.dialog-content h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.02;
}

.form-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
    rgba(255, 255, 255, 0.018);
}

.form-section h3,
.plays-list h3 {
  margin-bottom: 0;
  font-size: 0.92rem;
  text-transform: uppercase;
  color: var(--muted);
}

.two-col {
  grid-template-columns: minmax(96px, 0.72fr) minmax(128px, 1fr);
  padding: 0;
  border: 0;
  background: transparent;
}

.two-col label:last-child {
  grid-column: 1 / -1;
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metadata-grid label:first-child {
  grid-column: 1 / -1;
}

.rating-fields {
  display: grid;
  gap: 12px;
}

.rating-line {
  display: grid;
  grid-template-columns: minmax(166px, 0.45fr) minmax(190px, 1fr) 38px;
  gap: 12px;
  align-items: center;
}

.rating-criterion-label {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.rating-criterion-label strong {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.16;
}

.rating-criterion-label small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.star-rating {
  display: grid;
  grid-template-columns: repeat(10, minmax(18px, 1fr));
  gap: 3px;
  align-items: center;
}

.star-button {
  min-height: 30px;
  padding: 0;
  border: 0;
  color: rgba(243, 240, 232, 0.28);
  background: transparent;
  box-shadow: none;
  font-size: 1.08rem;
  line-height: 1;
}

.star-button:hover,
.star-button.is-active {
  color: var(--accent);
}

.star-button:disabled {
  cursor: default;
  opacity: 0.55;
}

.rating-value {
  text-align: right;
  color: var(--text);
  font-weight: 900;
}

.rating-guide-summary,
.rating-criterion-guide {
  border: 1px solid rgba(244, 199, 91, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(244, 199, 91, 0.035);
}

.rating-guide-summary summary,
.rating-criterion-guide summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 900;
}

.rating-guide-summary summary {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}

.rating-guide-summary summary span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.rating-legacy-note {
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgba(99, 212, 185, 0.13);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(99, 212, 185, 0.035);
  font-size: 0.8rem;
  line-height: 1.35;
}

.rating-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 12px 12px;
}

.rating-guide-grid h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.rating-guide-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rating-guide-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.rating-guide-list li strong {
  color: var(--accent);
  font-weight: 950;
}

.rating-criterion-guide {
  grid-column: 1 / -1;
}

.rating-criterion-guide summary {
  padding: 7px 10px;
  font-size: 0.78rem;
}

.rating-criterion-guide > div {
  display: grid;
  gap: 10px;
  padding: 0 10px 10px;
}

.rating-criterion-guide p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.rating-criterion-guide p strong {
  color: var(--text);
}

.rating-guide-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
}

.rating-quick-question {
  color: var(--accent-2) !important;
  font-weight: 800;
}

.rating-guide-extra {
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.plays-list {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(88, 198, 168, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(99, 212, 185, 0.055), rgba(255, 255, 255, 0.014)),
    rgba(88, 198, 168, 0.026);
}

.play-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.album-dialog-actions {
  align-items: center;
}

.album-dialog-actions #saveAlbumButton {
  margin-left: auto;
}

.criteria-rows {
  display: grid;
  gap: 10px;
}

.form-status {
  min-height: 1.25em;
  margin: 0;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 800;
}

@keyframes surfaceIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes albumFloat {
  0%,
  100% {
    translate: 0 0;
  }
  25% {
    translate: var(--float-sway) calc(var(--float-distance) * -0.55);
  }
  50% {
    translate: calc(var(--float-sway) * -0.7) calc(var(--float-distance) * -1);
  }
  75% {
    translate: calc(var(--float-sway) * 0.45) calc(var(--float-distance) * -0.35);
  }
}

@keyframes dialogPop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ambientBackground {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  }
  to {
    background-position: 0 0, 0 0, 0 0, 28px 18px, -22px 24px, 0 0;
  }
}

@keyframes ambientSweep {
  from {
    transform: translate3d(-4%, -2%, 0) rotate(-1deg);
    opacity: 0.55;
  }
  to {
    transform: translate3d(4%, 3%, 0) rotate(1deg);
    opacity: 0.86;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

.criterion-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 110px 98px;
  gap: 10px;
}

.random-dialog {
  width: min(760px, calc(100% - 28px));
}

.random-controls {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(170px, 0.8fr) auto;
  gap: 10px;
  align-items: end;
}

.random-result {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(242, 191, 74, 0.16);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 20%, rgba(242, 191, 74, 0.1), transparent 42%),
    linear-gradient(90deg, rgba(126, 48, 69, 0.12), transparent 62%),
    #111317;
}

.random-result::before {
  content: "";
  position: absolute;
  inset: -40%;
  pointer-events: none;
  background:
    conic-gradient(from 0deg, transparent 0 18%, rgba(244, 199, 91, 0.16) 20% 23%, transparent 25% 48%, rgba(99, 212, 185, 0.12) 50% 53%, transparent 55% 100%);
  opacity: 0;
  filter: blur(10px);
  animation: randomHalo 5s linear infinite;
}

.random-result > .hint,
.random-result > .form-status {
  grid-column: 1 / -1;
  text-align: center;
}

.random-cover-reveal {
  position: relative;
  z-index: 2;
}

.random-cover-reveal::before {
  content: "";
  position: absolute;
  inset: -13px;
  z-index: -1;
  border-radius: 13px;
  background:
    conic-gradient(from 0deg, #f4c75b, #63d4b9, #a45367, #f4c75b);
  opacity: 0.56;
  filter: blur(1px);
}

.random-cover-reveal img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 12px 18px 38px rgba(0, 0, 0, 0.38);
}

.random-result.is-spinning {
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 270px;
}

.random-result.is-spinning::before,
.random-result.is-revealed::before {
  opacity: 1;
}

.random-stage {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  min-height: 214px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(244, 199, 91, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(7, 9, 12, 0.54);
  box-shadow:
    inset 0 0 0 1px rgba(244, 199, 91, 0.18),
    inset 0 -28px 38px rgba(0, 0, 0, 0.24);
}

.random-reel {
  position: absolute;
  inset: auto 0 29px 0;
  display: flex;
  gap: 10px;
  width: max-content;
  padding-left: calc(50% - 37px);
  transform: translateX(0);
  animation: randomReel 3600ms cubic-bezier(0.12, 0.82, 0.12, 1) both;
}

.random-reel img {
  width: 74px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36);
}

.random-reel img.is-target {
  box-shadow:
    0 0 0 3px rgba(244, 199, 91, 0.86),
    0 0 24px rgba(244, 199, 91, 0.42),
    0 12px 28px rgba(0, 0, 0, 0.42);
}

.mystery-box {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 112px;
  aspect-ratio: 1;
  border: 3px solid rgba(255, 226, 133, 0.84);
  border-radius: 16px;
  color: #191108;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.58), transparent 18%),
    linear-gradient(135deg, #fff0a4, #d78b22 52%, #8f4819);
  box-shadow:
    0 0 0 6px rgba(244, 199, 91, 0.12),
    0 18px 42px rgba(0, 0, 0, 0.42),
    inset 0 -12px 20px rgba(86, 43, 12, 0.22);
  animation: mysteryBox 720ms ease-in-out infinite alternate;
}

.mystery-box::before,
.mystery-box::after {
  content: "";
  position: absolute;
  background: rgba(120, 62, 20, 0.24);
}

.mystery-box::before {
  inset: 0 48%;
}

.mystery-box::after {
  inset: 48% 0;
}

.mystery-box span {
  position: relative;
  z-index: 2;
  font-size: 3rem;
  font-weight: 950;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.34);
}

.random-pointer {
  position: absolute;
  z-index: 4;
  bottom: 13px;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 12px solid transparent;
  border-left: 12px solid transparent;
  border-bottom: 18px solid #f4c75b;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.36));
  transform: translateX(-50%);
}

.random-spin-copy {
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(246, 242, 232, 0.72);
  font-weight: 850;
  text-align: center;
}

.random-result.is-revealed .random-cover-reveal {
  animation: randomReveal 560ms cubic-bezier(0.18, 1.05, 0.2, 1) both;
}

.random-result-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.random-result-copy h3 {
  margin-bottom: 4px;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1;
}

.random-result-copy > strong {
  color: var(--accent-2);
}

.random-result-copy > p:not(.eyebrow) {
  margin: 12px 0 18px;
  color: var(--muted);
}

@keyframes randomHalo {
  to {
    transform: rotate(1turn);
  }
}

@keyframes randomReel {
  0% {
    transform: translateX(0);
    filter: blur(0);
  }
  34% {
    filter: blur(1.2px);
  }
  72% {
    transform: translateX(calc(var(--reel-shift) + 56px));
    filter: blur(0.6px);
  }
  86% {
    transform: translateX(calc(var(--reel-shift) - 14px));
    filter: blur(0);
  }
  100% {
    transform: translateX(var(--reel-shift));
    filter: blur(0);
  }
}

@keyframes mysteryBox {
  from {
    transform: translateY(0) rotate(-2deg) scale(1);
  }
  to {
    transform: translateY(-8px) rotate(2deg) scale(1.04);
  }
}

@keyframes randomReveal {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.72) rotate(-6deg);
    filter: brightness(1.6) saturate(1.2);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.shelf-room-is-open {
  overflow: hidden;
}

.shelf-room-dialog {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #f6ead8;
  background: #17100d;
}

.shelf-room-dialog::backdrop {
  background: #090706;
}

.shelf-room-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #17100d;
}

.shelf-room-header {
  position: relative;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 94px;
  padding: 16px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(255, 224, 181, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    linear-gradient(90deg, rgba(99, 51, 30, 0.42), transparent 45%),
    #17110f;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
}

.shelf-room-shell::before {
  content: "";
  position: absolute;
  inset: 94px 0 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(255, 221, 157, 0.08) 31%, transparent 47%),
    radial-gradient(ellipse at 82% 14%, rgba(255, 192, 103, 0.16), transparent 38%);
  mix-blend-mode: screen;
}

.shelf-room-header h2 {
  margin: 0 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  letter-spacing: 0.015em;
}

.shelf-room-header p {
  margin: 0;
}

.shelf-room-header > div > p:last-child {
  color: rgba(246, 234, 216, 0.62);
  font-size: 0.82rem;
}

.shelf-room-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.shelf-room-actions > span {
  min-width: 58px;
  color: rgba(246, 234, 216, 0.7);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 900;
}

.room-nav-button,
.room-close-button {
  color: #f6ead8;
  border-color: rgba(255, 224, 181, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), transparent),
    #2a1d18;
}

.room-nav-button {
  width: 44px;
  padding: 0;
  font-size: 1.2rem;
}

.room-close-button {
  padding: 0 14px;
}

.shelf-room-viewport {
  position: relative;
  min-height: 0;
  overflow: hidden;
  perspective: 1300px;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 204, 137, 0.15), transparent 31%),
    radial-gradient(ellipse at 12% 62%, rgba(99, 212, 185, 0.08), transparent 35%),
    radial-gradient(ellipse at 88% 64%, rgba(164, 83, 103, 0.1), transparent 36%),
    linear-gradient(90deg, rgba(38, 18, 14, 0.72), transparent 20% 80%, rgba(38, 18, 14, 0.72)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 74px),
    linear-gradient(180deg, #3c2c29 0 72%, #1c1310 72%);
}

.shelf-room-viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 34%, rgba(0, 0, 0, 0.48) 100%),
    linear-gradient(180deg, rgba(255, 232, 195, 0.025), transparent 36%);
}

.room-ceiling {
  position: absolute;
  z-index: 0;
  top: 0;
  right: -8%;
  left: -8%;
  height: 15%;
  transform: perspective(480px) rotateX(-8deg);
  transform-origin: top;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 2px, transparent 2px 110px),
    linear-gradient(180deg, #241b19, #352724);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.room-floor {
  position: absolute;
  z-index: 2;
  right: -14%;
  bottom: -16%;
  left: -14%;
  height: 44%;
  transform: perspective(700px) rotateX(58deg);
  transform-origin: bottom;
  background:
    repeating-linear-gradient(90deg, transparent 0 86px, rgba(30, 13, 8, 0.35) 86px 90px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.026) 0 2px, transparent 2px 46px),
    linear-gradient(90deg, #4b2d20, #714630 48%, #4c2c20);
  box-shadow: inset 0 30px 70px rgba(0, 0, 0, 0.34);
}

.room-window {
  position: absolute;
  z-index: 2;
  top: 12%;
  left: 4%;
  width: clamp(100px, 12vw, 180px);
  aspect-ratio: 0.72;
  padding: 10px;
  border: 10px solid #2d1b13;
  background:
    linear-gradient(90deg, transparent 47%, rgba(51, 32, 24, 0.85) 47% 53%, transparent 53%),
    linear-gradient(180deg, transparent 48%, rgba(51, 32, 24, 0.85) 48% 53%, transparent 53%),
    linear-gradient(160deg, #667e87, #273c48 56%, #d49363);
  box-shadow:
    12px 22px 34px rgba(0, 0, 0, 0.34),
    0 0 55px rgba(116, 169, 188, 0.1);
  opacity: 0.72;
}

.room-window span {
  position: absolute;
  inset: -14px -20px;
  border: 7px solid rgba(97, 48, 33, 0.84);
  border-top-width: 13px;
  pointer-events: none;
}

.room-lamp {
  position: absolute;
  z-index: 4;
  top: 7%;
  right: 6%;
  width: 82px;
  height: 185px;
  border-radius: 50% 50% 12px 12px;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255, 226, 158, 0.96), rgba(198, 120, 58, 0.68) 48%, #4a2719 72%);
  clip-path: polygon(30% 0, 70% 0, 100% 44%, 68% 51%, 68% 100%, 32% 100%, 32% 51%, 0 44%);
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.35));
  opacity: 0.74;
}

.room-lamp::after {
  content: "";
  position: absolute;
  top: 18px;
  left: -120px;
  width: 320px;
  height: 270px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 197, 116, 0.15), transparent 68%);
  pointer-events: none;
}

.shelf-room-track {
  position: relative;
  z-index: 5;
  display: flex;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 900ms cubic-bezier(0.2, 0.78, 0.18, 1);
}

.shelf-room-wall {
  position: relative;
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(500px, 1fr);
  gap: clamp(18px, 4vw, 58px);
  align-items: center;
  min-width: 0;
  height: 100%;
  padding: clamp(22px, 4vh, 50px) clamp(6vw, 10vw, 150px) clamp(55px, 9vh, 100px);
  transform: translateZ(-70px) scale(0.96);
  opacity: 0.42;
  transition: opacity 600ms ease, transform 800ms ease;
}

.shelf-room-wall.is-active {
  transform: translateZ(0) scale(1);
  opacity: 1;
}

.room-wall-heading {
  position: relative;
  z-index: 8;
  align-self: start;
  margin-top: clamp(60px, 10vh, 110px);
  text-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
}

.room-wall-heading > span {
  color: #d7a56e;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.room-wall-heading h3 {
  margin: 9px 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 4.5rem);
  line-height: 0.92;
  text-wrap: balance;
}

.room-wall-heading p {
  color: rgba(246, 234, 216, 0.64);
}

.record-cabinet {
  position: relative;
  width: min(860px, 100%);
  min-width: 0;
  padding: 22px 28px 30px;
  border: 9px solid #422618;
  border-radius: 5px 5px 12px 12px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 92px),
    linear-gradient(90deg, #4a291a, #765039 16%, #55301e 50%, #765039 84%, #452519);
  box-shadow:
    0 0 70px rgba(216, 144, 77, 0.08),
    28px 36px 62px rgba(0, 0, 0, 0.5),
    inset 0 0 0 4px rgba(255, 218, 170, 0.06),
    inset 18px 0 28px rgba(0, 0, 0, 0.2);
  transform: perspective(1300px) rotateY(-1.2deg);
  transform-style: preserve-3d;
}

.cabinet-crown {
  position: absolute;
  top: -25px;
  right: -20px;
  left: -20px;
  height: 23px;
  border-radius: 4px 4px 2px 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 45%),
    linear-gradient(90deg, #3e2115, #815238 50%, #3e2115);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
}

.cabinet-rows {
  display: grid;
  grid-template-rows: repeat(3, minmax(128px, 1fr));
  min-height: min(58vh, 540px);
  border: 4px solid #321c13;
  background: #21140f;
  box-shadow:
    inset 16px 14px 34px rgba(0, 0, 0, 0.52),
    inset -8px 0 18px rgba(0, 0, 0, 0.3);
}

.wood-shelf-row {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 0;
  padding: 16px 13px 18px;
  border-bottom: 15px solid #4a291a;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 190, 107, 0.055), transparent 68%),
    linear-gradient(180deg, #1c110d, #2a1811);
  box-shadow:
    inset 0 -9px 10px rgba(0, 0, 0, 0.42),
    0 8px 12px rgba(0, 0, 0, 0.28);
}

.wood-shelf-row::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -17px;
  left: -4px;
  height: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 74px),
    linear-gradient(90deg, #352016, #754a31 48%, #3a2115);
}

.record-run {
  display: flex;
  align-items: end;
  width: 100%;
  min-width: 0;
  height: 100%;
  gap: 7px;
  padding-left: 4px;
}

.shelf-record {
  --aura-primary: rgba(142, 150, 160, 0.54);
  --aura-secondary: rgba(142, 150, 160, 0.38);
  --aura-edge: rgba(142, 150, 160, 0.48);
  --float-delay: 0ms;
  --float-distance: 4px;
  --float-duration: 5800ms;
  --float-sway: 0px;
  position: relative;
  display: flex;
  flex-direction: column;
  width: var(--record-width);
  min-width: 42px;
  max-width: 64px;
  height: 94%;
  min-height: 96px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 3px 3px 2px 2px;
  color: #f4ead8;
  background:
    radial-gradient(circle at 50% 0, var(--aura-secondary), transparent 56%),
    linear-gradient(180deg, hsl(var(--spine-hue) 38% 32%), hsl(var(--spine-hue) 34% 18%));
  box-shadow:
    0 0 30px var(--aura-primary),
    0 0 54px var(--aura-secondary),
    4px 6px 12px rgba(0, 0, 0, 0.42),
    inset 1px 0 0 rgba(255, 255, 255, 0.14),
    inset -1px 0 0 rgba(0, 0, 0, 0.24);
  transform: rotate(var(--spine-lean));
  transform-origin: 50% 100%;
  transition: transform 230ms ease, filter 180ms ease, opacity 180ms ease;
}

.shelf-room-wall.is-active .shelf-record {
  animation: shelfRecordFloat var(--float-duration) ease-in-out var(--float-delay) infinite;
}

.shelf-record:hover,
.shelf-record:focus-visible {
  z-index: 5;
  filter: brightness(1.15);
  transform: translateY(-9px) rotate(0);
  outline: 2px solid var(--aura-edge);
  outline-offset: 2px;
  box-shadow:
    0 0 46px var(--aura-primary),
    0 0 76px var(--aura-secondary),
    4px 10px 18px rgba(0, 0, 0, 0.48),
    inset 1px 0 0 rgba(255, 255, 255, 0.17),
    inset -1px 0 0 rgba(0, 0, 0, 0.24);
}

.shelf-record.is-pulled {
  pointer-events: none;
  opacity: 0.12;
  transform: translateY(-24px) translateZ(80px) rotateY(-74deg);
}

.record-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #17191f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 0;
}

.record-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.record-cover-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.2), transparent 24% 70%, rgba(0, 0, 0, 0.28)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 12%);
  mix-blend-mode: screen;
}

.record-spine {
  display: grid;
  align-content: start;
  gap: 2px;
  flex: 1;
  min-height: 34px;
  padding: 4px 4px 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-top: 0;
  border-radius: 0 0 inherit inherit;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 18% 72%, rgba(0, 0, 0, 0.36)),
    linear-gradient(180deg, hsl(var(--spine-hue) 42% 42%), hsl(var(--spine-hue) 35% 21%));
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.16);
}

.spine-title,
.spine-artist {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  min-width: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.spine-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.57rem;
  font-weight: 800;
}

.spine-artist {
  color: rgba(255, 246, 229, 0.67);
  font-size: 0.45rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cabinet-legs {
  position: absolute;
  right: 18px;
  bottom: -43px;
  left: 18px;
  display: flex;
  justify-content: space-between;
}

.cabinet-legs span {
  width: 34px;
  height: 42px;
  background: linear-gradient(90deg, #2b180f, #59321e, #25130c);
  clip-path: polygon(12% 0, 88% 0, 72% 100%, 28% 100%);
  filter: drop-shadow(7px 8px 6px rgba(0, 0, 0, 0.36));
}

.empty-room-message {
  grid-column: 1 / -1;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
}

.empty-room-message strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4rem);
}

.empty-room-message span {
  color: rgba(246, 234, 216, 0.62);
}

.shelf-record-inspector {
  position: absolute;
  z-index: 40;
  inset: 94px 0 0;
  display: grid;
  grid-template-columns: minmax(330px, 0.95fr) minmax(300px, 0.65fr);
  place-content: center;
  gap: clamp(35px, 8vw, 130px);
  padding: clamp(30px, 6vw, 90px);
  background:
    radial-gradient(circle at 35% 45%, rgba(240, 169, 92, 0.13), transparent 30%),
    linear-gradient(90deg, rgba(20, 10, 8, 0.88), rgba(28, 18, 15, 0.96));
  backdrop-filter: blur(14px);
}

.shelf-record-inspector.is-preparing > *:not(.room-close-button) {
  opacity: 0;
}

.shelf-record-inspector.is-open .inspector-record-stage,
.shelf-record-inspector.is-open .inspector-copy {
  animation: inspectorReveal 520ms cubic-bezier(0.16, 0.82, 0.24, 1) both;
}

.shelf-record-inspector.is-open .inspector-copy {
  animation-delay: 120ms;
}

.shelf-record-inspector > .room-close-button {
  position: absolute;
  top: 22px;
  right: 28px;
}

.inspector-record-stage {
  position: relative;
  width: min(430px, 42vw);
  aspect-ratio: 1.25;
  justify-self: end;
  perspective: 1000px;
}

.inspector-sleeve {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 0;
  width: min(340px, 32vw);
  aspect-ratio: 1;
  transform: translateY(-50%) rotateY(0.8deg);
  transform-style: preserve-3d;
  background: #15110f;
  box-shadow:
    24px 32px 60px rgba(0, 0, 0, 0.55),
    inset 7px 0 rgba(255, 255, 255, 0.08);
}

.inspector-sleeve::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 10%, transparent 86%, rgba(0, 0, 0, 0.22)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 42%);
  mix-blend-mode: screen;
}

.inspector-sleeve img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inspector-vinyl {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 24%;
  width: min(330px, 31vw);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateY(-50%) translateX(40%);
  background:
    radial-gradient(circle, #111 0 9%, transparent 9.5%),
    repeating-radial-gradient(circle, #090a0b 0 5px, #1d1d20 6px 7px, #08090a 8px 12px);
  box-shadow:
    24px 30px 58px rgba(0, 0, 0, 0.5),
    inset 12px 0 26px rgba(255, 255, 255, 0.055);
  animation: roomVinylSpin 8s linear infinite;
}

.inspector-vinyl::after {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.09), transparent 28% 62%, rgba(255, 255, 255, 0.045));
}

.inspector-vinyl img {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 29%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

.inspector-copy {
  max-width: 470px;
  align-self: center;
}

.inspector-copy h3 {
  margin: 5px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 0.92;
}

.inspector-copy > strong {
  color: #e1b17d;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.inspector-copy > p:not(.eyebrow) {
  margin: 18px 0 26px;
  color: rgba(246, 234, 216, 0.66);
}

.shelf-flying-record {
  position: fixed;
  z-index: 80;
  overflow: hidden;
  pointer-events: none;
  border-radius: 3px;
  transform-origin: center;
  background: #15110f;
  box-shadow:
    24px 32px 62px rgba(0, 0, 0, 0.62),
    inset 6px 0 rgba(255, 255, 255, 0.09);
}

.shelf-flying-record img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes inspectorReveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes roomVinylSpin {
  to {
    transform: translateY(-50%) translateX(40%) rotate(360deg);
  }
}

@keyframes shelfRecordFloat {
  0%,
  100% {
    translate: 0 0;
  }
  30% {
    translate: var(--float-sway) calc(var(--float-distance) * -0.7);
  }
  50% {
    translate: calc(var(--float-sway) * -0.6) calc(var(--float-distance) * -1);
  }
  76% {
    translate: calc(var(--float-sway) * 0.5) calc(var(--float-distance) * -0.34);
  }
}

.inline-search {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 10px;
}

.search-results {
  display: grid;
  gap: 10px;
}

.search-result {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 8px;
  text-align: left;
  color: var(--text);
  background: #12151a;
  border-color: var(--line);
}

.search-result img {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
}

.search-result small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.auth-dialog-content {
  gap: 12px;
}

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

.check-row input {
  width: auto;
  height: auto;
}

.check-row span {
  margin: 0;
  text-transform: none;
  font-size: 0.95rem;
  color: var(--text);
}

.admin-panel {
  display: grid;
  gap: 16px;
}

.admin-hero {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(25, 27, 31, 0.88);
}

.admin-hero div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-hero strong {
  display: block;
  font-size: 1.7rem;
}

.admin-hero span,
.admin-feed span,
.admin-user-row small,
.admin-user-row span,
.admin-album-strip span,
.admin-album-strip small {
  color: var(--muted);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 16px;
}

.admin-grid > div,
.admin-user-albums {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(25, 27, 31, 0.88);
}

.admin-user-list,
.admin-feed {
  display: grid;
  gap: 8px;
}

.admin-user-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) 90px 90px 90px 90px minmax(120px, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  color: var(--text);
  text-align: left;
  background: #12151a;
  border-color: var(--line);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.secondary-button.danger,
.danger {
  border-color: rgba(255, 96, 96, 0.35);
  color: #ffb3b3;
}

.admin-user-row span:first-child {
  display: grid;
}

.admin-feed div {
  display: grid;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-album-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.admin-album-strip article {
  display: grid;
  gap: 5px;
}

.admin-album-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 920px) {
  .toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .shelf-sort {
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  }

  .toolbar-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .toolbar-actions button {
    flex: 1 1 142px;
  }

  .auth-form {
    grid-template-columns: 1fr 1fr;
  }

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

  .dialog-cover,
  .vinyl-stage {
    min-height: 360px;
  }

  .vinyl-disc {
    top: 52px;
    left: 154px;
    width: 260px;
  }

  #dialogCover {
    top: 58px;
    left: 28px;
    width: 240px;
  }

  .shelf-room-wall {
    grid-template-columns: 150px minmax(420px, 1fr);
    padding-right: 5vw;
    padding-left: 5vw;
  }

  .room-window,
  .room-lamp {
    opacity: 0.34;
  }

  .shelf-record-inspector {
    grid-template-columns: 1fr 0.8fr;
    gap: 25px;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 20px, 680px);
    padding-top: 18px;
  }

  .topbar {
    display: grid;
  }

  .toolbar,
  .stats,
  .admin-hero,
  .admin-grid,
  .two-col,
  .metadata-grid,
  .rating-line,
  .criterion-row,
  .inline-search,
  .auth-form {
    grid-template-columns: 1fr;
  }

  .random-controls,
  .random-result,
  .monthly-wrapped-header {
    grid-template-columns: 1fr;
  }

  .rating-guide-grid,
  .rating-guide-list.compact {
    grid-template-columns: 1fr;
  }

  .random-cover-reveal {
    width: min(220px, 72vw);
    justify-self: center;
  }

  .monthly-wrapped-preview {
    min-height: 280px;
  }

  .shelf-room-header {
    align-items: flex-start;
    min-height: 126px;
    padding: 13px 14px;
  }

  .shelf-room-header > div:first-child {
    max-width: 48%;
  }

  .shelf-room-header h2 {
    font-size: 1.25rem;
  }

  .shelf-room-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .shelf-room-actions .room-close-button {
    width: 100%;
  }

  .shelf-room-wall {
    grid-template-columns: 1fr;
    gap: 12px;
    align-content: center;
    padding: 18px 16px 65px;
  }

  .room-wall-heading {
    align-self: auto;
    margin: 0;
    text-align: center;
  }

  .room-wall-heading h3 {
    font-size: clamp(1.7rem, 9vw, 3rem);
  }

  .record-cabinet {
    width: 100%;
    padding: 17px 17px 24px;
    border-width: 6px;
  }

  .cabinet-rows {
    min-height: 54vh;
  }

  .wood-shelf-row {
    padding: 12px 7px 16px;
  }

  .shelf-record {
    min-width: 34px;
    max-width: 46px;
  }

  .record-run {
    gap: 4px;
  }

  .record-spine {
    min-height: 30px;
    padding: 3px;
  }

  .spine-title {
    font-size: 0.5rem;
  }

  .spine-artist {
    font-size: 0.39rem;
  }

  .shelf-record-inspector {
    inset: 126px 0 0;
    grid-template-columns: 1fr;
    gap: 8px;
    align-content: center;
    overflow-y: auto;
    padding: 62px 18px 24px;
    text-align: center;
  }

  .inspector-record-stage {
    width: min(370px, 92vw);
    justify-self: center;
  }

  .inspector-sleeve {
    width: min(270px, 66vw);
  }

  .inspector-vinyl {
    width: min(260px, 63vw);
  }

  .inspector-copy {
    justify-self: center;
  }

  .inspector-copy h3 {
    font-size: clamp(2rem, 11vw, 3.8rem);
  }

  .album-grid {
    grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
    gap: 12px;
    padding: 34px 10px 28px;
  }

  .decade-section {
    grid-template-columns: 1fr;
  }

  .decade-marker {
    position: static;
  }

  .artist-albums,
  .year-albums {
    grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  }

  .dialog-cover,
  .vinyl-stage {
    min-height: 310px;
  }

  .vinyl-disc {
    top: 48px;
    left: 120px;
    width: 220px;
  }

  #dialogCover {
    top: 58px;
    left: 22px;
    width: 198px;
  }

  .auth-actions,
  .shelf-sort {
    align-items: stretch;
  }

  .auth-actions {
    width: 100%;
  }

  .shelf-sort {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rating-value {
    text-align: left;
  }
}
