@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600&display=swap');

:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #161616;
  --bg-overlay: rgba(0, 0, 0, 0.72);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hi: rgba(255, 255, 255, 0.12);
  --fg: #f5f5f5;
  --fg-2: rgba(245, 245, 245, 0.60);
  --fg-3: rgba(245, 245, 245, 0.32);
  --fg-4: rgba(245, 245, 245, 0.16);
  --accent: #f5f5f5;
  --accent-bg: rgba(245, 245, 245, 0.08);
  --gold: #FFD60A;
  --red: #FF453A;
  --green: #30D158;
  --sidebar-w: 240px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-2xl: 24px;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--fg-4);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--fg-3);
}

.sidebar {
  position: fixed;
  inset-block: 0;
  left: 0;
  width: var(--sidebar-w);
  background: var(--bg-elevated);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 20px 12px;
  gap: 28px;
  z-index: 200;
  overflow-y: auto;
  scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

/* Wordmark */
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  border-radius: var(--r-md);
  transition: background 0.15s;
  user-select: none;
}

.wordmark:hover {
  background: var(--glass);
}

.wm-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--fg);
}

.wm-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--fg);
  white-space: nowrap;
}

/* Nav sections */
.nav-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 0 8px;
  margin-bottom: 4px;
}

/* Nav rows */
.nav-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 8px;
  border-radius: var(--r-md);
  background: transparent;
  border: none;
  color: var(--fg-2);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition: background 0.12s, color 0.12s;
  position: relative;
}

.nav-row:hover {
  background: var(--glass);
  color: var(--fg);
}

.nav-row.active {
  background: var(--glass);
  color: var(--fg);
}

.nav-row.active .nav-row-icon {
  color: var(--fg);
}

.nav-row-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  transition: background 0.12s;
}

.nav-row.active .nav-row-icon {
  background: var(--glass-hi);
}

.nav-row-text {
  flex: 1;
  line-height: 1;
}

.nav-chip {
  font-size: 11px;
  font-weight: 600;
  background: var(--glass-hi);
  color: var(--fg);
  padding: 2px 7px;
  border-radius: 99px;
  min-width: 20px;
  text-align: center;
}

.nav-shortcut {
  font-family: inherit;
  font-size: 11px;
  color: var(--fg-3);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 5px;
  padding: 2px 6px;
  pointer-events: none;
}

/* Sidebar footer */
.sidebar-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--glass-border);
  padding-top: 16px;
}

.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--glass-border);
}

.topbar-home {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 4px 6px;
  border-radius: var(--r-md);
  color: var(--fg);
  transition: background 0.15s;
  width: auto;
  font-size: inherit;
}

.topbar-home:hover {
  background: var(--glass);
}

.topbar-home .wm-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.topbar-home .wm-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.topbar-right {
  display: flex;
  gap: 8px;
}

.glass-pill {
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--fg-2);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.glass-pill:hover {
  background: var(--glass-hi);
  color: var(--fg);
}

.hero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  max-height: 860px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  transition: background-image 0.6s ease;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.50) 55%, rgba(0, 0, 0, 0.10) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 1.00) 0%, rgba(0, 0, 0, 0.60) 35%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 56px 72px;
  max-width: 640px;
}

/* Eyebrow */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 16px;
}

.eyebrow-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(255, 214, 10, 0.5);
  }

  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 5px rgba(255, 214, 10, 0);
  }
}

/* Title */
.hero-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(3rem, 6.5vw, 6rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 16px;
}

.hero-synopsis {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--fg-2);
  margin-bottom: 20px;
  max-width: 460px;
}

/* Attrs row */
.hero-attrs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-attr {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-3);
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(8px);
}

.hero-attr-sep {
  font-size: 12px;
  color: var(--fg-4);
}

/* CTA buttons */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  background: var(--fg);
  color: var(--bg);
  border: none;
  border-radius: var(--r-lg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.1px;
  transition: all 0.18s var(--ease-out);
}

.btn-primary:hover {
  background: rgba(245, 245, 245, 0.88);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  background: var(--glass);
  color: var(--fg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(16px);
  transition: all 0.18s var(--ease-out);
}

.btn-secondary:hover {
  background: var(--glass-hi);
  border-color: var(--glass-hi);
  transform: translateY(-1px);
}

.btn-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--fg-2);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(16px);
  transition: all 0.18s var(--ease-out);
}

.btn-icon:hover {
  background: var(--glass-hi);
  color: var(--fg);
  transform: translateY(-1px);
}

.btn-icon .fa-bookmark.fas {
  color: var(--gold);
}

/* Score badge */
.hero-score {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px);
  font-size: 15px;
  font-weight: 600;
}

.hero-score .fa-star {
  color: var(--gold);
  font-size: 12px;
}

.shelf-container {
  padding: 48px 56px 80px;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.shelf {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.shelf-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
}

.shelf-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.3px;
  color: var(--fg);
}

.shelf-count {
  font-size: 12px;
  color: var(--fg-3);
  font-weight: 500;
}

/* Grid */
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 12px;
}

/* Card */
.card {
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s, border-color 0.22s;
  position: relative;
}

.card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--glass-hi);
  border-color: var(--glass-hi);
  z-index: 1;
}

.card:hover .card-overlay {
  opacity: 1;
}

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

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-out);
}

.card-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--fg-4);
  background: var(--bg-elevated);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 10px;
  gap: 7px;
  opacity: 0;
  transition: opacity 0.2s;
}

.card-action {
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-hi);
  color: var(--fg);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.card-action:hover {
  background: var(--fg);
  color: var(--bg);
  transform: scale(1.08);
}

.card-action.play {
  margin-right: auto;
}

/* Card meta */
.card-meta {
  padding: 12px 13px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--bg-card);
}

.card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  flex: 1;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.card-attrs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-score {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
}

.card-score .fa-star {
  font-size: 9px;
}

.card-year {
  font-size: 12px;
  color: var(--fg-3);
}

.card-save {
  width: 27px;
  height: 27px;
  border-radius: var(--r-sm);
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--fg-3);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}

.card-save:hover {
  border-color: var(--glass-hi);
  color: var(--fg);
}

.card-save .fa-bookmark.fas {
  color: var(--gold);
}

.empty-view[hidden] {
  display: none !important;
}

.empty-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60vh;
  padding: 80px 24px;
  text-align: center;
}

.empty-glyph {
  width: 64px;
  height: 64px;
  border-radius: var(--r-xl);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--fg-3);
  margin-bottom: 4px;
}

.empty-view h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  font-weight: 400;
}

.empty-view p {
  font-size: 14px;
  color: var(--fg-2);
  font-weight: 300;
  max-width: 280px;
  line-height: 1.5;
}

.dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-top: 1px solid var(--glass-border);
  padding: 10px 4px calc(10px + env(safe-area-inset-bottom));
}

.dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  background: transparent;
  border: none;
  color: var(--fg-3);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2px;
  padding: 4px 0;
  transition: color 0.15s;
}

.dock-btn i {
  font-size: 19px;
  margin-bottom: 1px;
}

.dock-btn.active {
  color: var(--fg);
}

.dock-btn:active {
  opacity: 0.6;
}

.toast {
  position: fixed;
  bottom: 36px;
  left: 50%;
  translate: -50% 0;
  background: var(--bg-card);
  border: 1px solid var(--glass-hi);
  backdrop-filter: blur(20px);
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 99px;
  opacity: 0;
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  transition: opacity 0.25s, translate 0.25s var(--ease-out);
}

.toast.show {
  opacity: 1;
  translate: -50% 0;
}

.veil {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  z-index: 600;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}

.veil.open {
  opacity: 1;
  pointer-events: all;
}

.palette {
  width: 100%;
  max-width: 620px;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-hi);
  border-radius: var(--r-2xl);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transform: translateY(-10px) scale(0.98);
  transition: transform 0.25s var(--ease-out);
}

.veil.open .palette {
  transform: translateY(0) scale(1);
}

.palette-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
}

.palette-icon {
  font-size: 16px;
  color: var(--fg-3);
  flex-shrink: 0;
}

.palette-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  caret-color: var(--fg);
}

.palette-input::placeholder {
  color: var(--fg-3);
}

.palette-dismiss {
  background: transparent;
  border: none;
  color: var(--fg-3);
  font-size: 16px;
  padding: 4px;
  display: flex;
  align-items: center;
  border-radius: var(--r-sm);
  transition: color 0.15s;
}

.palette-dismiss:hover {
  color: var(--fg);
}

.palette-esc {
  font-family: inherit;
  font-size: 11px;
  color: var(--fg-3);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 3px 8px;
  border-radius: 5px;
  flex-shrink: 0;
}

.palette-rule {
  height: 1px;
  background: var(--glass-border);
}

.palette-results {
  max-height: 520px;
  overflow-y: auto;
  padding: 12px;
  scrollbar-width: none;
}

.palette-results::-webkit-scrollbar {
  display: none;
}

.p-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background 0.12s;
}

.p-result:hover {
  background: var(--glass);
}

.p-result-thumb {
  width: 72px;
  height: 46px;
  border-radius: var(--r-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-card);
}

.p-result-info {
  flex: 1;
  min-width: 0;
}

.p-result-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-result-sub {
  font-size: 12px;
  color: var(--fg-3);
  margin-top: 2px;
}

.p-result-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.p-action {
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--fg-2);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.p-action:hover {
  background: var(--fg);
  color: var(--bg);
}

.palette-empty-hint {
  padding: 20px 10px;
  font-size: 14px;
  color: var(--fg-3);
  font-weight: 300;
}

.palette-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--fg-3);
  padding: 8px 10px 4px;
}

.veil.sheet-veil {
  align-items: center;
}

.sheet {
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-hi);
  border-radius: var(--r-2xl);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  overflow-y: auto;
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.28s var(--ease-out);
  scrollbar-width: none;
}

.sheet::-webkit-scrollbar {
  display: none;
}

.veil.open .sheet {
  transform: translateY(0) scale(1);
}

.sheet-sm {
  max-width: 420px;
}

.sheet-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--fg-2);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.sheet-close:hover {
  background: var(--glass-hi);
  color: var(--fg);
  transform: rotate(90deg);
}

.detail-hero-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  background: var(--bg-card);
}

.detail-hero-placeholder {
  width: 100%;
  height: 280px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--fg-4);
}

.detail-hero-scrim {
  margin-top: -80px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg-elevated));
  position: relative;
}

.detail-body {
  padding: 0 28px 32px;
}

.detail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.detail-title {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.3px;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 8px;
}

.detail-attrs {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--fg-3);
  flex-wrap: wrap;
}

.detail-attrs span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.detail-attrs i {
  font-size: 11px;
  color: var(--fg-3);
}

.detail-save {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--fg-2);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}

.detail-save:hover {
  background: var(--glass-hi);
  color: var(--fg);
}

.detail-save.saved {
  border-color: rgba(255, 214, 10, 0.4);
  color: var(--gold);
  background: rgba(255, 214, 10, 0.08);
}

.detail-genres {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.genre-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 99px;
  color: var(--fg-2);
}

.detail-overview {
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-2);
  font-weight: 300;
  margin-bottom: 24px;
}

.detail-trailer-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  background: var(--fg);
  color: var(--bg);
  border: none;
  border-radius: var(--r-lg);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
  transition: all 0.18s;
}

.detail-trailer-btn:hover {
  background: rgba(245, 245, 245, 0.88);
  transform: translateY(-1px);
}

/* Stats grid */
.detail-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
}

.detail-stat {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 14px 16px;
  border-radius: var(--r-md);
  transition: border-color 0.15s;
}

.detail-stat:hover {
  border-color: var(--glass-hi);
}

.detail-stat-key {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--fg-3);
  margin-bottom: 6px;
}

.detail-stat-val {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--fg);
  line-height: 1;
}

/* Account sheet */
.account {
  padding: 48px 32px 36px;
  text-align: center;
}

.account-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--glass-hi);
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--fg-2);
  margin: 0 auto 16px;
}

.account-name {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 4px;
}

.account-sub {
  font-size: 13px;
  color: var(--fg-3);
  font-weight: 300;
  margin-bottom: 28px;
}

.account-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 20px 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  margin-bottom: 24px;
}

.account-stat {
  text-align: center;
}

.account-stat b {
  display: block;
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 4px;
}

.account-stat span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  color: var(--fg-3);
}

.account-divider {
  width: 1px;
  height: 36px;
  background: var(--glass-border);
}

.account-list {
  list-style: none;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.account-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: none;
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition: background 0.12s;
}

.account-list-row:hover {
  background: var(--glass);
}

.account-list-row.danger:hover {
  background: rgba(255, 69, 58, 0.08);
}

.account-list-row.danger .alr-icon {
  background: rgba(255, 69, 58, 0.12);
  color: var(--red);
}

.alr-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--fg-2);
  flex-shrink: 0;
}

.alr-label {
  flex: 1;
}

.alr-chevron {
  font-size: 11px;
  color: var(--fg-3);
}

.confirm-veil {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.confirm-veil.open {
  opacity: 1;
  pointer-events: all;
}

.confirm-box {
  background: var(--bg-elevated);
  border: 1px solid var(--glass-hi);
  border-radius: var(--r-2xl);
  padding: 28px 28px 20px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6);
  transform: scale(0.94) translateY(8px);
  transition: transform 0.25s var(--ease-out);
}

.confirm-veil.open .confirm-box {
  transform: scale(1) translateY(0);
}

.confirm-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-lg);
  background: rgba(255, 69, 58, 0.12);
  border: 1px solid rgba(255, 69, 58, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--red);
  margin: 0 auto 16px;
}

.confirm-title {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--fg);
  text-align: center;
  margin-bottom: 8px;
}

.confirm-body {
  font-size: 13px;
  color: var(--fg-2);
  font-weight: 300;
  line-height: 1.55;
  text-align: center;
  margin-bottom: 24px;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.confirm-btn {
  padding: 11px 16px;
  border-radius: var(--r-md);
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.confirm-btn.cancel {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--fg-2);
}

.confirm-btn.cancel:hover {
  background: var(--glass-hi);
  color: var(--fg);
}

.confirm-btn.destructive {
  background: var(--red);
  color: #fff;
}

.confirm-btn.destructive:hover {
  background: #ff6961;
  transform: translateY(-1px);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  animation: fadeUp 0.55s var(--ease-out) both 0.05s;
}

.hero-title {
  animation: fadeUp 0.60s var(--ease-out) both 0.15s;
}

.hero-synopsis {
  animation: fadeUp 0.60s var(--ease-out) both 0.25s;
}

.hero-attrs {
  animation: fadeUp 0.60s var(--ease-out) both 0.32s;
}

.hero-actions {
  animation: fadeUp 0.60s var(--ease-out) both 0.40s;
}

@media (max-width: 1100px) {
  :root {
    --sidebar-w: 68px;
  }

  .wm-text,
  .nav-row-text,
  .nav-section-label,
  .nav-shortcut,
  .nav-chip {
    display: none;
  }

  .wordmark {
    padding: 8px;
    justify-content: center;
  }

  .nav-row {
    padding: 10px;
    justify-content: center;
  }

  .nav-row-icon {
    width: 32px;
    height: 32px;
  }

  .nav-section {
    gap: 4px;
  }

  .sidebar-foot {
    align-items: center;
  }

  .shelf-container {
    padding: 40px 32px 72px;
  }

  .hero-content {
    padding: 0 40px 60px;
  }
}

@media (max-width: 740px) {
  .sidebar {
    display: none;
  }

  .topbar {
    display: flex;
  }

  .dock {
    display: flex;
  }

  .main {
    margin-left: 0;
  }

  .hero {
    height: 80vh;
    min-height: 480px;
  }

  .hero-content {
    padding: 0 24px 36px;
    max-width: 100%;
  }

  .hero-synopsis {
    display: none;
  }

  .hero-score {
    top: 16px;
    right: 16px;
    padding: 6px 10px;
    font-size: 13px;
  }

  .shelf-container {
    padding: 28px 16px calc(80px + env(safe-area-inset-bottom));
    gap: 40px;
  }

  .shelf-title {
    font-size: 18px;
  }

  .shelf-grid {
    grid-template-columns: repeat(auto-fill, minmax(144px, 1fr));
    gap: 10px;
  }

  .card-meta {
    padding: 10px 11px;
  }

  .card-title {
    font-size: 12px;
  }

  .toast {
    bottom: calc(80px + 12px);
  }

  .veil {
    padding: 0;
    align-items: flex-end;
  }

  .palette {
    border-radius: var(--r-2xl) var(--r-2xl) 0 0;
    max-width: 100%;
  }

  .sheet {
    max-width: 100%;
    border-radius: var(--r-2xl) var(--r-2xl) 0 0;
    max-height: 92vh;
  }

  .detail-hero-img,
  .detail-hero-placeholder {
    height: 220px;
  }

  .detail-body {
    padding: 0 20px 24px;
  }

  .detail-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-stat-val {
    font-size: 20px;
  }

  .account {
    padding: 40px 24px 28px;
  }
}

@media (max-width: 420px) {
  .hero {
    height: 72vh;
    min-height: 400px;
  }

  .hero-title {
    font-size: clamp(2.4rem, 11vw, 3.5rem);
  }

  .shelf-grid {
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 8px;
  }
}

/* Large screens */
@media (min-width: 1440px) {
  .shelf-container {
    padding: 56px 72px 96px;
  }

  .hero-content {
    padding: 0 72px 88px;
    max-width: 720px;
  }

  .shelf-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}