/* ==========================================================================
   RH / EDITORIAL — preview theme (v2)

   Scoped to <html data-design="v2">, so the production theme stays untouched.
   Direction: dark editorial print — ivory type on charcoal, one acid accent,
   hard edges, hairlines, serif display + monospace metadata.
   ========================================================================== */

html[data-design="v2"] {
  --bg: #0c0c0d;
  --surface: #131314;
  --surface-2: #1a1a1c;
  --surface-3: #232327;
  --text: #f3efe6;
  --text-2: #a8a29a;
  --text-3: #6f6a63;
  --accent: #c9f24d;
  --accent-soft: rgba(201, 242, 77, 0.14);
  --separator: rgba(243, 239, 230, 0.14);
  --nav-bg: rgba(12, 12, 13, 0.92);
  --card-shadow: none;
  --mini-bg: rgba(19, 19, 20, 0.96);
  --np-veil: rgba(8, 8, 9, 0.72);
  --np-text: #f3efe6;
  --np-text-2: rgba(243, 239, 230, 0.62);
  --np-track: rgba(243, 239, 230, 0.2);
  --radius: 2px;
  color-scheme: dark;

  --font-display: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

html[data-design="v2"] body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  letter-spacing: 0.005em;
}

/* paper grain: barely visible scanlines, no image assets */
html[data-design="v2"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.014) 0px,
    rgba(255, 255, 255, 0.014) 1px,
    transparent 1px,
    transparent 3px
  );
}

html[data-design="v2"] .app {
  position: relative;
  z-index: 1;
}

/* ---------- type ---------- */
html[data-design="v2"] .hero-title,
html[data-design="v2"] .section-header h2,
html[data-design="v2"] .detail-title,
html[data-design="v2"] .np-title,
html[data-design="v2"] .auth-title,
html[data-design="v2"] .collection-hero h1,
html[data-design="v2"] .profile-info h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
}

html[data-design="v2"] .hero-title {
  font-size: 42px;
  line-height: 0.98;
}

html[data-design="v2"] .hero-eyebrow,
html[data-design="v2"] .group-title,
html[data-design="v2"] .section-header p,
html[data-design="v2"] .card-sub,
html[data-design="v2"] .track-duration,
html[data-design="v2"] .lyrics-time,
html[data-design="v2"] .stat-label,
html[data-design="v2"] .setting-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[data-design="v2"] .hero-eyebrow {
  color: var(--accent);
  margin-bottom: 8px;
}

html[data-design="v2"] .section-header {
  align-items: baseline;
  padding: 0 20px 10px;
  border-bottom: 1px solid var(--separator);
  margin-bottom: 14px;
  counter-increment: section;
}

html[data-design="v2"] .section {
  counter-reset: none;
  margin-bottom: 34px;
}

html[data-design="v2"] .home-screen {
  counter-reset: section;
}

html[data-design="v2"] .section-header h2 {
  font-size: 26px;
}

html[data-design="v2"] .section-header h2::before {
  content: counter(section, decimal-leading-zero) " — ";
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  vertical-align: 3px;
  margin-right: 4px;
}

html[data-design="v2"] .section-header p {
  margin-top: 4px;
  color: var(--text-3);
}

html[data-design="v2"] .section-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--accent);
}

/* ---------- avatar / hero ---------- */
html[data-design="v2"] .avatar {
  width: auto;
  height: auto;
  border-radius: 0;
  padding: 6px 8px 5px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  box-shadow: none;
}

html[data-design="v2"] .screen-hero {
  padding: 14px 20px 22px;
  border-bottom: 1px solid var(--separator);
  margin-bottom: 22px;
}

/* ---------- hero card (popular) ---------- */
html[data-design="v2"] .hero-card {
  width: calc(100% - 32px);
  height: 200px;
  border-radius: 0;
  border: 1px solid var(--separator);
  box-shadow: 6px 6px 0 rgba(201, 242, 77, 0.9);
  margin: 0 16px 26px;
  filter: saturate(0.85) contrast(1.05);
}

html[data-design="v2"] .hero-card-scrim {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.86) 100%);
}

html[data-design="v2"] .hero-card-eyebrow {
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  color: var(--accent);
  opacity: 1;
}

html[data-design="v2"] .hero-card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -0.02em;
}

html[data-design="v2"] .hero-card-play {
  border-radius: 0;
  background: var(--accent);
  color: #0c0c0d;
  width: 44px;
  height: 44px;
  box-shadow: none;
}

/* ---------- cards ---------- */
html[data-design="v2"] .card {
  width: 156px;
}

html[data-design="v2"] .card-art {
  width: 156px;
  height: 156px;
  border-radius: 0;
  border: 1px solid var(--separator);
  box-shadow: none;
  filter: saturate(0.88) contrast(1.04);
}

html[data-design="v2"] .artist-card,
html[data-design="v2"] .artist-card .card-art {
  width: 122px;
}

html[data-design="v2"] .artist-card .card-art {
  height: 122px;
  border-radius: 50% !important;
}

html[data-design="v2"] .card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  margin-top: 9px;
  white-space: normal;
  line-height: 1.1;
  max-height: 2.2em;
  overflow: hidden;
}

html[data-design="v2"] .card-sub {
  color: var(--text-3);
  margin-top: 3px;
}

html[data-design="v2"] .h-scroll {
  gap: 16px;
  padding: 2px 20px 10px;
}

/* ---------- collection cards ---------- */
html[data-design="v2"] .collection-card {
  width: 224px;
  height: 126px;
  border-radius: 0;
  border: 1px solid var(--separator);
  box-shadow: none;
  filter: saturate(0.8);
}

html[data-design="v2"] .collection-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: -0.01em;
}

html[data-design="v2"] .collection-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- track rows ---------- */
html[data-design="v2"] .list {
  padding: 0;
}

html[data-design="v2"] .track-row {
  border-bottom: 1px solid var(--separator);
  border-radius: 0;
  padding: 9px 20px;
  gap: 10px;
}

html[data-design="v2"] .track-row:active {
  background: var(--surface);
}

html[data-design="v2"] .track-row.is-current {
  background: var(--accent-soft);
}

html[data-design="v2"] .track-row.is-current .track-title {
  color: var(--accent);
}

html[data-design="v2"] .track-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
}

html[data-design="v2"] .track-artist {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 2px;
}

html[data-design="v2"] .track-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  width: 22px;
}

html[data-design="v2"] .track-duration {
  color: var(--text-3);
}

html[data-design="v2"] .artwork img {
  filter: saturate(0.9) contrast(1.03);
}

html[data-design="v2"] .artwork,
html[data-design="v2"] .mini-art {
  border-radius: 0 !important;
  border: 1px solid var(--separator);
}

/* ---------- tab bar ---------- */
html[data-design="v2"] .tabbar {
  background: var(--bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 1px solid var(--separator);
}

html[data-design="v2"] .tabbar-item {
  gap: 4px;
  color: var(--text-3);
  padding-top: 6px;
}

html[data-design="v2"] .tabbar-item span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html[data-design="v2"] .tabbar-item.is-active {
  color: var(--accent);
}

html[data-design="v2"] .tabbar-item.is-active::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 16px;
  height: 1.5px;
  background: var(--accent);
}

html[data-design="v2"] .tabbar-item {
  position: relative;
}

/* ---------- mini player ---------- */
html[data-design="v2"] .mini-player {
  left: 12px;
  right: 12px;
  border-radius: 0;
  background: var(--surface);
  border: 1px solid var(--separator);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-design="v2"] .mini-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
}

html[data-design="v2"] .mini-artist {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

html[data-design="v2"] .mini-progress {
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
}

html[data-design="v2"] .mini-progress span {
  background: var(--accent);
  border-radius: 0;
}

/* ---------- now playing ---------- */
html[data-design="v2"] .np-backdrop {
  filter: blur(70px) saturate(0.7) brightness(0.5);
  opacity: 1;
}

html[data-design="v2"] .np-blur {
  background: rgba(8, 8, 9, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

html[data-design="v2"] .np-grabber span {
  width: 28px;
  height: 2px;
  border-radius: 0;
  background: var(--accent);
}

html[data-design="v2"] .np-round-btn {
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--separator);
  color: var(--text);
}

html[data-design="v2"] .np-source-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--accent);
}

html[data-design="v2"] .np-source-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

html[data-design="v2"] .np-art {
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 10px 10px 0 rgba(201, 242, 77, 0.85);
  filter: saturate(0.9) contrast(1.05);
}

html[data-design="v2"] .np-title {
  font-size: 30px;
  line-height: 1.05;
}

html[data-design="v2"] .np-artist {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 6px;
}

html[data-design="v2"] .np-dot {
  color: var(--accent);
  margin: 0 8px;
}

html[data-design="v2"] .seek-track {
  height: 2px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.16);
}

html[data-design="v2"] .seek-fill {
  border-radius: 0;
  background: var(--accent);
  opacity: 1;
}

html[data-design="v2"] .seek-thumb {
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  border-radius: 0;
  background: var(--accent);
  box-shadow: none;
}

html[data-design="v2"] .seek-times {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

html[data-design="v2"] .transport-play {
  width: 66px;
  height: 66px;
  border: 1px solid var(--accent);
  border-radius: 0;
  color: var(--accent);
}

html[data-design="v2"] .np-secondary-btn {
  border: 1px solid transparent;
  border-radius: 0;
}

html[data-design="v2"] .np-secondary-btn.is-on {
  color: var(--accent);
  border-color: var(--accent);
}

html[data-design="v2"] .np-heart.is-fav {
  color: var(--accent);
}

/* ---------- sheets ---------- */
html[data-design="v2"] .sheet {
  border-radius: 0;
  border-top: 1px solid var(--separator);
  background: var(--surface);
  box-shadow: none;
}

html[data-design="v2"] .sheet-grabber {
  border-radius: 0;
  height: 2px;
  background: var(--accent);
}

html[data-design="v2"] .sheet-header h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
}

html[data-design="v2"] .action-row {
  border-radius: 0;
  border-bottom: 1px solid var(--separator);
  font-size: 14px;
}

html[data-design="v2"] .text-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-design="v2"] .primary-btn {
  border-radius: 0;
  background: var(--accent);
  color: #0c0c0d;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 18px;
}

html[data-design="v2"] .text-input {
  border-radius: 0;
  border: 1px solid var(--separator);
  background: var(--surface-2);
  font-size: 15px;
}

html[data-design="v2"] .chip {
  border-radius: 0;
  border: 1px solid var(--separator);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-design="v2"] .chip.is-active {
  background: var(--accent);
  color: #0c0c0d;
  border-color: var(--accent);
}

html[data-design="v2"] .sort-btn,
html[data-design="v2"] .chips .chip {
  border-radius: 0;
}

html[data-design="v2"] .search-field {
  border-radius: 0;
  background: var(--surface);
  border: 1px solid var(--separator);
}

html[data-design="v2"] .search-header,
html[data-design="v2"] .sticky-chips,
html[data-design="v2"] .detail-bar {
  background: var(--bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--separator);
}

/* ---------- detail screens ---------- */
html[data-design="v2"] .detail-art {
  border-radius: 0 !important;
  border: 1px solid var(--separator);
  box-shadow: 8px 8px 0 rgba(201, 242, 77, 0.85);
  filter: saturate(0.9) contrast(1.05);
}

html[data-design="v2"] .artist-art-lg {
  border-radius: 50% !important;
  box-shadow: none;
}

html[data-design="v2"] .detail-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

html[data-design="v2"] .detail-artist {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

html[data-design="v2"] .play-pill {
  border-radius: 0;
  background: var(--accent);
  color: #0c0c0d;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: none;
  padding: 12px 22px;
}

html[data-design="v2"] .round-action {
  border-radius: 0;
  border: 1px solid var(--separator);
  background: transparent;
}

html[data-design="v2"] .collection-hero {
  border-radius: 0;
  box-shadow: none;
  border: 1px solid var(--separator);
  filter: grayscale(0.2);
}

html[data-design="v2"] .collection-hero h1 {
  font-size: 34px;
}

html[data-design="v2"] .playlist-mosaic {
  border-radius: 0;
  border: 1px solid var(--separator);
}

/* ---------- profile ---------- */
html[data-design="v2"] .profile-card,
html[data-design="v2"] .stat,
html[data-design="v2"] .settings-card {
  border-radius: 0;
  border: 1px solid var(--separator);
  box-shadow: none;
  background: var(--surface);
}

html[data-design="v2"] .profile-avatar {
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}

html[data-design="v2"] .stat-value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
}

html[data-design="v2"] .setting-row {
  border-bottom: 1px solid var(--separator);
}

html[data-design="v2"] .segmented {
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--separator);
}

html[data-design="v2"] .segmented button {
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-design="v2"] .segmented button.is-active {
  background: var(--accent);
  color: #0c0c0d;
  box-shadow: none;
}

html[data-design="v2"] .switch {
  border-radius: 0;
  width: 44px;
  height: 24px;
}

html[data-design="v2"] .switch::after {
  border-radius: 0;
  width: 18px;
  height: 18px;
  top: 2px;
  left: 2px;
}

html[data-design="v2"] .switch:checked::after {
  transform: translateX(20px);
}

html[data-design="v2"] .switch:checked {
  background: var(--accent);
}

/* ---------- auth ---------- */
html[data-design="v2"] .auth-screen {
  background: var(--bg);
}

html[data-design="v2"] .auth-card {
  border-radius: 0;
  border: 1px solid var(--separator);
  box-shadow: 10px 10px 0 rgba(201, 242, 77, 0.85);
  background: var(--surface);
}

html[data-design="v2"] .auth-logo {
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  box-shadow: none;
}

html[data-design="v2"] .auth-segments {
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--separator);
}

html[data-design="v2"] .auth-segments button {
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html[data-design="v2"] .auth-segments button.is-active {
  background: var(--accent);
  color: #0c0c0d;
  box-shadow: none;
}

html[data-design="v2"] .auth-field input {
  border-radius: 0;
  border: 1px solid var(--separator);
  background: var(--surface-2);
}

html[data-design="v2"] .auth-field span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- lyrics ---------- */
html[data-design="v2"] .lyrics-backdrop {
  filter: blur(70px) saturate(0.6) brightness(0.35);
}

html[data-design="v2"] .lyrics-scrim {
  background: rgba(6, 6, 7, 0.72);
}

html[data-design="v2"] .lyrics-line {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 27px;
  letter-spacing: -0.015em;
  color: rgba(243, 239, 230, 0.28);
}

html[data-design="v2"] .lyrics-line.is-past {
  color: rgba(243, 239, 230, 0.4);
}

html[data-design="v2"] .lyrics-line.is-active {
  color: var(--accent);
  transform: none;
  text-shadow: none;
}

html[data-design="v2"] .lyrics-track {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

html[data-design="v2"] .lyrics-artist {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html[data-design="v2"] .lyrics-play {
  border-radius: 0;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

html[data-design="v2"] .lyrics-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- misc ---------- */
html[data-design="v2"] .empty-state p,
html[data-design="v2"] .inline-note {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--text-2);
}

html[data-design="v2"] .inline-error,
html[data-design="v2"] .auth-error {
  border-radius: 0;
  border: 1px solid rgba(255, 92, 77, 0.5);
  background: rgba(255, 92, 77, 0.08);
  color: #ff8a7a;
}

html[data-design="v2"] .toast {
  border-radius: 0;
  background: var(--accent);
  color: #0c0c0d;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: none;
}

html[data-design="v2"] .stat,
html[data-design="v2"] .profile-card {
  border-radius: 0;
}

html[data-design="v2"] .icon-btn:active {
  background: var(--surface-2);
}

html[data-design="v2"] .queue-row {
  border-radius: 0;
  border-bottom: 1px solid var(--separator);
}

html[data-design="v2"] .queue-row.is-current {
  background: var(--accent-soft);
}

html[data-design="v2"] .load-more-row .primary-btn {
  min-width: 240px;
}