/* Nora Reads — design tokens + custom utilities (v3) */

:root {
  /* Lifted-black palette — softer on the eyes than pure #000 */
  --bg-base: #131318;
  --bg-card: #1c1c24;
  --bg-elevated: #25252e;
  --bg-overlay: rgba(19, 19, 24, 0.85);

  --border-subtle: #2a2a32;
  --border-strong: #3a3a44;
  --border-focus: #ff2d8e;

  --text-primary: #f0f0f3;
  --text-secondary: #c8c8d0;
  --text-muted: #7d7d88;
  --text-on-pink: #0a0a0a;

  --pink-500: #ff2d8e;
  --pink-400: #ff5ba4;
  --pink-300: #ff77b4;
  --pink-600: #e60d72;
  --pink-glow: rgba(255, 45, 142, 0.35);

  --gold: #ffd700;
  --success: #00d9a3;
  --error: #ff3b3b;

  /* v3 typography — modern romance brand stack */
  --font-display: 'Fraunces', 'Georgia', 'Times New Roman', serif;        /* hero, page H1s, book covers */
  --font-reading: 'Lora', 'Georgia', serif;                              /* reader body */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; /* UI, brand */
  --font-brand: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; /* brand wordmark */

  --shadow-pink: 0 8px 32px var(--pink-glow);
  --radius: 16px;
  --radius-pill: 999px;

  /* Reader theme variables — overridden by [data-reader-theme="..."] */
  --reader-bg: #1a1a20;
  --reader-text: #e8e0d4;
  --reader-fg-muted: #9a9aa6;
  --reader-font: var(--font-reading);
  --reader-font-size: 18px;
  --reader-line-height: 1.7;
}

[data-reader-theme="cream"] {
  --reader-bg: #1d1c1a;
  --reader-text: #e8dfca;
  --reader-fg-muted: #a89f8b;
}
[data-reader-theme="sepia"] {
  --reader-bg: #2a2218;
  --reader-text: #ddc6a0;
  --reader-fg-muted: #b39e7a;
}
[data-reader-theme="dim"] {
  --reader-bg: #16161a;
  --reader-text: #c8c8d0;
  --reader-fg-muted: #6a6a76;
}
[data-reader-theme="light"] {
  --reader-bg: #f5f0e6;
  --reader-text: #2a2418;
  --reader-fg-muted: #6a6248;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-base);
  background-image:
    radial-gradient(ellipse at top, rgba(255, 45, 142, 0.04), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(180, 110, 255, 0.025), transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
  font-feature-settings: 'cv11', 'ss01';
}
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* h-scroll: identical 16px left padding, no children outdent */
.h-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 16px 8px;
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll > * { scroll-snap-align: start; flex-shrink: 0; }

/* Pink CTA pill */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
  color: var(--text-on-pink);
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-pink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  letter-spacing: 0.3px;
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  width: 100%;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px;
  background: #fff;
  color: #1a1a1a;
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: var(--radius-pill);
  width: 100%;
}

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 16px;
}

/* Book cover */
.cover {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.cover .vip-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--pink-500);
  color: var(--text-on-pink);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  z-index: 2;
}
/* audio-badge intentionally hidden site-wide until audio narration is implemented */
.cover .audio-badge { display: none !important; }

/* Tap card */
.tap-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: transform 0.15s ease;
}
.tap-card:active { transform: scale(0.98); }

/* Header sticky */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(19, 19, 24, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Brand wordmark — modern sans-serif logotype, less classical-serif feel */
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.brand-mark .glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #ff2d8e 0%, #e60d72 70%, #b00d59 100%);
  border-radius: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  color: #0a0a0a;
  font-size: 19px;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 8px rgba(255, 45, 142, 0.3);
}
.brand-mark .word {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1;
}
.brand-mark .word .pink { color: var(--pink-500); font-weight: 800; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--text-primary);
}
.icon-btn:active { background: var(--bg-elevated); }

/* Bottom action bar */
.action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(19, 19, 24, 0.95);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-subtle);
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
}
.action-bar .secondary {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--text-muted);
  background: transparent;
  border: none;
}
.action-bar .secondary svg { width: 22px; height: 22px; }
.action-bar .primary { flex: 1; }

/* ==== READER ==== */
.reader-page {
  background: var(--reader-bg);
  min-height: 100vh;
  transition: background-color 0.25s ease;
}
.reader-page .app-header {
  background: color-mix(in srgb, var(--reader-bg) 85%, transparent);
  border-bottom-color: color-mix(in srgb, var(--reader-text) 10%, transparent);
}
.reader-page .app-header * { color: var(--reader-text); }
.reader {
  font-family: var(--reader-font);
  font-size: var(--reader-font-size);
  line-height: var(--reader-line-height);
  color: var(--reader-text);
  background: var(--reader-bg);
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 20px 140px;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.reader h2 {
  font-family: var(--font-display);
  font-size: calc(var(--reader-font-size) * 1.6);
  margin: 24px 0 16px;
  color: var(--reader-text);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.reader p { margin: 0 0 18px; }
.reader em { font-style: italic; color: var(--reader-fg-muted); }
.reader-controls {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: color-mix(in srgb, var(--reader-bg) 95%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid color-mix(in srgb, var(--reader-text) 12%, transparent);
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  z-index: 40;
}
.reader-controls button {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--reader-text) 20%, transparent);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  color: var(--reader-text);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
}
.reader-controls .next-cta {
  background: var(--pink-500);
  border-color: var(--pink-500);
  color: var(--text-on-pink);
}
.reader-controls button:disabled { opacity: 0.3; cursor: not-allowed; }
.reader-progress {
  height: 3px;
  background: color-mix(in srgb, var(--reader-text) 12%, transparent);
  position: sticky;
  top: 64px;
  z-index: 10;
}
.reader-progress .fill {
  height: 100%;
  background: var(--pink-500);
  transition: width 0.25s ease;
}
.reader-fab {
  position: fixed;
  top: 76px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: color-mix(in srgb, var(--reader-bg) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--reader-text) 18%, transparent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 35;
  color: var(--reader-text);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.reader-settings {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 110;
  background: var(--bg-card);
  border-top: 1px solid var(--border-strong);
  border-radius: 24px 24px 0 0;
  padding: 18px 20px max(20px, env(safe-area-inset-bottom));
  animation: slide-up 0.25s ease;
  max-width: 480px;
  margin: 0 auto;
  font-family: var(--font-body);
  color: var(--text-primary);
}
.reader-settings h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}
.reader-settings .pref-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 14px 0 8px;
  font-weight: 700;
}
.theme-row { display: flex; gap: 10px; }
.theme-swatch {
  flex: 1;
  height: 56px;
  border-radius: 12px;
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.theme-swatch:active { transform: scale(0.97); }
.theme-swatch.active { border-color: var(--pink-500); box-shadow: 0 0 0 3px rgba(255,45,142,0.18); }
.theme-swatch[data-theme="cream"]  { background: #1d1c1a; color: #e8dfca; }
.theme-swatch[data-theme="sepia"]  { background: #2a2218; color: #ddc6a0; }
.theme-swatch[data-theme="dim"]    { background: #16161a; color: #c8c8d0; }
.theme-swatch[data-theme="light"]  { background: #f5f0e6; color: #2a2418; }

.font-row { display: flex; gap: 10px; }
.font-pick {
  flex: 1;
  padding: 12px 6px;
  background: var(--bg-base);
  border: 2px solid var(--border-subtle);
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.font-pick.active { border-color: var(--pink-500); color: var(--pink-500); }
.font-pick[data-font="serif"] { font-family: var(--font-reading); }
.font-pick[data-font="sans"]  { font-family: var(--font-body); }
.font-pick[data-font="display"] { font-family: var(--font-display); }

.slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.slider-row input[type="range"] {
  flex: 1;
  appearance: none;
  height: 6px;
  background: var(--border-subtle);
  border-radius: 3px;
}
.slider-row input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--pink-500);
  border: 3px solid var(--bg-card);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--pink-500);
}
.slider-row input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--pink-500);
  border: 3px solid var(--bg-card);
  border-radius: 50%;
  cursor: pointer;
}
.slider-row .val {
  min-width: 48px;
  text-align: right;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

/* Email gate paywall */
.gate {
  margin: 32px 16px;
  padding: 28px 24px 32px;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  position: relative;
}
.gate::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--pink-500), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.gate h2 {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 0 0 4px;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.gate h2 .accent { color: var(--pink-500); }
.gate p { color: var(--text-secondary); margin: 0 0 20px; font-size: 14px; }

input[type="email"], input[type="text"], input[type="password"], input[type="number"] {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
}
input:focus { outline: none; border-color: var(--pink-500); }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin: 14px 0 4px;
}
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--pink-500); margin-top: 2px; }

.divider-or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
  margin: 16px 0;
}
.divider-or::before, .divider-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* Trial tier card */
.tier-card {
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--bg-card);
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.tier-card.selected {
  border-color: var(--pink-500);
  background: linear-gradient(135deg, rgba(255, 45, 142, 0.08), transparent);
  box-shadow: var(--shadow-pink);
}
.tier-card:active { transform: scale(0.99); }
.tier-card .price { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.02em; }
.tier-card .price .currency { font-size: 18px; vertical-align: top; opacity: 0.8; }
.tier-card .badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--pink-500);
  color: var(--text-on-pink);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

/* Plan (cadence) selector — used on /subscribe under the trial cards */
.plan-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.1s ease;
}
.plan-card:active { transform: scale(0.99); }
.plan-card.selected {
  border-color: var(--pink-500);
  background: linear-gradient(135deg, rgba(255, 45, 142, 0.06), transparent);
}
.plan-card .plan-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.plan-card .plan-label {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}
.plan-card .plan-sub {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}
.plan-card .plan-pricing {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.plan-card .plan-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.plan-card .plan-price .cadence {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 2px;
}
.plan-card .plan-perday {
  font-size: 11px;
  color: var(--text-muted);
}
.plan-card .badge {
  position: absolute;
  top: -10px;
  right: 14px;
  background: var(--pink-500);
  color: var(--text-on-pink);
  font-size: 9px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.7px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.modal {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px 24px 0 0;
  padding: 24px 20px max(24px, env(safe-area-inset-bottom));
  animation: slide-up 0.25s ease;
}
@keyframes slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.modal p { color: var(--text-secondary); margin: 0 0 16px; font-size: 14px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--text-primary);
  z-index: 200;
  animation: toast-in 0.25s ease, toast-out 0.25s ease 2.5s forwards;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes toast-out { to { opacity: 0; transform: translate(-50%, 10px); } }

/* Utilities */
.text-pink { color: var(--pink-500); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.font-display { font-family: var(--font-display); }

/* Section title — bulletproof flex layout, identical X-position across all rows */
.section-title {
  margin: 28px 0 14px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--text-primary);
}
.section-title-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.section-title .accent-bar {
  flex: 0 0 3px;
  width: 3px;
  height: 18px;
  background: var(--pink-500);
  border-radius: 2px;
  display: inline-block;
}
.section-title .see-all {
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--pink-500);
  font-weight: 600;
  letter-spacing: 0.1px;
}

/* Page H1 */
h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* Container */
.container { max-width: 480px; margin: 0 auto; padding-bottom: 32px; }

/* Hero carousel */
.hero {
  position: relative;
  margin: 0 16px;
  border-radius: 20px;
  overflow: hidden;
  height: 480px;
  background: var(--bg-card);
}
.hero .hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.hero .hero-slide.active { opacity: 1; }
.hero .hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(19,19,24,0.95) 100%);
  pointer-events: none;
}
.hero .hero-slide > * { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  margin: 0 0 4px;
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: #fff;
}
.hero .meta { font-size: 12px; color: rgba(255,255,255,0.78); margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.hero .dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.hero .dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.hero .dots span.active { background: var(--pink-500); width: 18px; border-radius: 3px; }

/* Genre chip */
.chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.chip.active { border-color: var(--pink-500); color: var(--pink-500); }

/* Search bar */
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0 14px;
  margin: 0 16px 16px;
}
.search-input-wrap input { background: transparent; border: none; padding: 12px 0; }
.search-input-wrap input:focus { border: none; }

/* Genre cards (Browse page) */
.genre-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 160px;
  padding: 18px;
  border-radius: 18px;
  color: white;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.15s ease;
}
.genre-card:active { transform: scale(0.97); }
.genre-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.35) 100%);
  z-index: -1;
}
.genre-card .emoji { font-size: 38px; line-height: 1; }
.genre-card .label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.012em;
}
.genre-card .count {
  font-size: 11px;
  opacity: 0.85;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 4px;
}

/* Page transitions */
.view {
  animation: fade-in 0.2s ease;
  min-height: 100vh;
  padding-bottom: 80px;
}
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
