:root {
  --bg: #0a0a14;
  --surface: #12121d;
  --surface-low: #1b1b25;
  --surface-mid: #1f1f29;
  --surface-high: #292934;
  --surface-highest: #34343f;
  --text: #e4e1f0;
  --text-soft: #cbc3d7;
  --text-muted: #a8a2b2;
  --stroke: rgba(255, 255, 255, 0.10);
  --success: #a4f4c4;
  --success-ink: #0a3822;
  --warning: #ffe28a;
  --stroke-strong: rgba(208, 188, 255, 0.34);
  --primary: #d0bcff;
  --primary-strong: #a078ff;
  --primary-ink: #23005c;
  --secondary: #ffb0cd;
  --tertiary: #ffb869;
  --cyan: #06b6d4;
  --danger: #ffb4ab;
  --glass: rgba(18, 18, 33, 0.72);
  --glass-strong: rgba(18, 18, 33, 0.88);
  --gradient-main: linear-gradient(135deg, #a078ff 0%, #ffb0cd 100%);
  --gradient-cool: linear-gradient(135deg, #d0bcff 0%, #06b6d4 100%);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --nav-width: 272px;
  --content-max: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: dark;
}

html[data-theme="purple"] {
  --bg: #100a1c;
  --surface: #17102a;
  --surface-low: #1e1533;
  --surface-mid: #241a3d;
  --surface-high: #302449;
  --surface-highest: #3c2e58;
  --primary: #e2b8ff;
  --primary-strong: #b06bff;
  --primary-ink: #2a0060;
  --secondary: #ff9ecf;
  --cyan: #7cf5e0;
  --gradient-main: linear-gradient(135deg, #b06bff 0%, #ff9ecf 100%);
  --gradient-cool: linear-gradient(135deg, #e2b8ff 0%, #7cf5e0 100%);
  --stroke-strong: rgba(226, 184, 255, 0.4);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f0fa;
  --surface: #ffffff;
  --surface-low: #f4f1fb;
  --surface-mid: #ece5f7;
  --surface-high: #ded2f2;
  --surface-highest: #cdb9ea;
  --text: #1c1626;
  --text-soft: #4a4258;
  --text-muted: #756c88;
  --stroke: rgba(35, 0, 92, 0.12);
  --stroke-strong: rgba(93, 41, 196, 0.32);
  --primary: #6d3bd7;
  --primary-strong: #5516be;
  --primary-ink: #ffffff;
  --secondary: #c2185b;
  --tertiary: #b5650a;
  --cyan: #0891b2;
  --danger: #ba1a1a;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] body {
  background: linear-gradient(180deg, #f6f3fb 0%, #efe9f8 48%, #f6f3fb 100%);
}

html[data-theme="light"] body::before {
  opacity: 0.5;
  background:
    radial-gradient(circle at 18% 12%, rgba(109, 59, 215, 0.08), transparent 28%),
    radial-gradient(circle at 82% 32%, rgba(194, 24, 91, 0.06), transparent 30%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.012), transparent 40%);
}

html[data-theme="light"] .side-nav,
html[data-theme="light"] .topbar,
html[data-theme="light"] .bottom-nav {
  background: var(--glass-strong);
}

html[data-theme="light"] textarea,
html[data-theme="light"] .filters-form select,
html[data-theme="light"] .filters-form input[type="number"],
html[data-theme="light"] .profile-form input,
html[data-theme="light"] .profile-form textarea,
html[data-theme="light"] .admin-sub-form input,
html[data-theme="light"] .admin-sub-form select {
  background: #ffffff;
  color: var(--text);
}

html[data-theme="light"] .poster-tray {
  background: rgba(10, 10, 20, 0.78);
}

html[data-theme="light"] .poster-tray strong {
  color: #e4e1f0;
}

html[data-theme="light"] .poster-tray small {
  color: #cbc3d7;
}

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

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, #0a0a14 0%, #11111c 48%, #0d0d17 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(208, 188, 255, 0.10), transparent 28%),
    radial-gradient(circle at 82% 32%, rgba(255, 176, 205, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 40%);
  opacity: 0.72;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.material-symbols-outlined {
  font-size: 22px;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--nav-width) minmax(0, 1fr);
  min-height: 100vh;
}

/* Ambient background glow — the soft blurred color blobs behind the
   content are a recurring signature across the Obsidian Cinema design
   references (selection, details, collections all use them). Fixed +
   z-index:0 keeps them behind .app-shell (z-index:1) on every view. */
.ambient-orb {
  display: none;
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
}

.ambient-orb-a {
  top: -10%;
  left: -8%;
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  background: radial-gradient(circle, rgba(160, 120, 255, 0.16) 0%, rgba(10, 10, 20, 0) 72%);
}

.ambient-orb-b {
  bottom: -12%;
  right: -10%;
  width: 38vw;
  height: 38vw;
  max-width: 560px;
  max-height: 560px;
  background: radial-gradient(circle, rgba(255, 176, 205, 0.12) 0%, rgba(10, 10, 20, 0) 72%);
}

html[data-theme="light"] .ambient-orb-a {
  background: radial-gradient(circle, rgba(109, 59, 215, 0.10) 0%, rgba(10, 10, 20, 0) 72%);
}

html[data-theme="light"] .ambient-orb-b {
  background: radial-gradient(circle, rgba(194, 24, 91, 0.08) 0%, rgba(10, 10, 20, 0) 72%);
}

.side-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px 18px;
  background: rgba(18, 18, 29, 0.72);
  border-right: 1px solid var(--stroke);
  backdrop-filter: blur(18px) saturate(1.15);
  overflow-y: auto;
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.brand,
.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand strong,
.mobile-brand strong {
  display: block;
  color: var(--text);
  font: 800 1.25rem/1 Manrope, Inter, sans-serif;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--primary);
  background: var(--surface-mid);
  border: 1px solid rgba(208, 188, 255, 0.22);
  border-radius: 12px;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-list-bottom {
  margin-top: auto;
}

.nav-item,
.bottom-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  text-align: left;
  transition:
    color 180ms var(--ease),
    background 180ms var(--ease),
    border-color 180ms var(--ease),
    transform 180ms var(--ease);
}

.nav-item:hover,
.bottom-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  transform: translateX(2px);
}

.nav-item:active,
.bottom-item:active,
.mood-grid button:active,
.segmented button:active,
.icon-btn:active,
.profile-chip:active {
  transform: scale(0.97);
  transition-duration: 100ms;
}

.nav-item.active,
.bottom-item.active {
  color: var(--primary-ink);
  background: var(--primary);
  border-color: transparent;
}

.nav-item.active .material-symbols-outlined,
.bottom-item.active .material-symbols-outlined {
  font-variation-settings: "FILL" 1, "wght" 650, "GRAD" 0, "opsz" 24;
}

/* Feature-flag / role visibility toggle — always wins over layout display rules. */
.is-hidden {
  display: none !important;
}

.side-card {
  /* Fixed dark accent surface — see .stat-card for why text tokens are
     pinned locally instead of following the active site theme. */
  --text: #e4e1f0;
  --text-soft: #cbc3d7;
  display: grid;
  gap: 8px;
  padding: 16px;
  color: var(--text-soft);
  background: rgba(31, 31, 41, 0.66);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
}

.side-card .material-symbols-outlined {
  color: var(--secondary);
}

.side-card strong {
  color: var(--text);
}

.side-card p {
  margin: 0;
  font-size: 0.86rem;
}

.workspace {
  min-width: 0;
  width: min(var(--content-max), calc(100vw - var(--nav-width)));
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 22px 48px 80px;
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 30;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(240px, 520px) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 48px;
  padding: 12px;
  background: rgba(18, 18, 29, 0.84);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}

.mobile-brand {
  display: none;
}

.global-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  color: var(--text-muted);
  background: var(--surface-low);
  border: 1px solid var(--stroke);
  border-radius: 999px;
}

.global-search input {
  width: 100%;
  min-width: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.global-search input::placeholder,
textarea::placeholder {
  color: #8f879c;
  opacity: 1;
}

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

.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-low);
  border: 1px solid var(--stroke);
  border-radius: 999px;
}

.lang-switch button {
  min-width: 44px;
  min-height: 44px;
  color: var(--text-soft);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
}

.lang-switch button.active {
  color: var(--primary-ink);
  background: var(--primary);
}

.icon-btn,
.profile-chip {
  min-height: 44px;
  color: var(--text);
  background: var(--surface-mid);
  border: 1px solid var(--stroke);
  border-radius: 12px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  transition: transform 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease);
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  font-weight: 800;
  transition: transform 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease);
}

.view-root {
  display: grid;
  gap: 32px;
}

.glass-panel {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--primary);
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.view-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.view-header > * {
  min-width: 0;
}

.view-header h1,
.hero-panel h1,
.daily-card h2,
.result-card h2 {
  margin: 0;
  color: var(--text);
  font-family: Manrope, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.view-header h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.view-header p,
.hero-panel p,
.daily-card p,
.result-card p,
.settings-card p,
.collection-card p,
.profile-card p {
  max-width: 72ch;
  margin: 10px 0 0;
  color: var(--text-soft);
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: stretch;
}

.hero-panel {
  position: relative;
  min-height: 420px;
  display: grid;
  align-content: center;
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(208, 188, 255, 0.09), transparent 46%),
    linear-gradient(245deg, rgba(255, 176, 205, 0.07), transparent 42%);
  pointer-events: none;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.hero-panel h1 {
  max-width: 820px;
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.hero-panel p {
  margin-top: 22px;
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  font-weight: 800;
  transition:
    transform 180ms var(--ease),
    border-color 180ms var(--ease),
    background 180ms var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.97);
  transition-duration: 100ms;
}

.btn.primary {
  color: var(--primary-ink);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-color: transparent;
}

.btn.primary:hover {
  box-shadow: 0 0 20px rgba(208, 188, 255, 0.35);
}

.btn.ghost {
  color: var(--text);
  background: var(--surface-mid);
}

.btn.ghost:hover,
.icon-btn:hover,
.profile-chip:hover {
  border-color: var(--stroke-strong);
  background: var(--surface-high);
}

.stat-stack {
  display: grid;
  gap: 12px;
}

.stat-card,
.mini-stat {
  /* Fixed dark accent surface by design (stands out from surrounding
     cards) — pin the text token it relies on so it stays legible even
     when the site theme's --text-soft turns dark. */
  --text-soft: #cbc3d7;
  display: grid;
  place-items: center;
  min-height: 128px;
  padding: 22px;
  text-align: center;
  background: rgba(31, 31, 41, 0.70);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
}

.stat-card strong,
.mini-stat strong {
  color: var(--primary);
  font-family: Manrope, Inter, sans-serif;
  font-size: 2.5rem;
  line-height: 1;
}

.stat-card:nth-child(2) strong {
  color: var(--secondary);
}

.stat-card:nth-child(3) strong {
  color: var(--tertiary);
}

.stat-card span,
.mini-stat span {
  color: var(--text-soft);
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.daily-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
}

.daily-card,
.result-card,
.dialog-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 24px;
}

.daily-card img,
.result-card img,
.dialog-layout img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--surface-mid);
}

.daily-card h2,
.result-card h2,
.dialog-layout h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
}

.chip-row,
.media-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip,
.media-meta span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  color: var(--text-soft);
  background: rgba(208, 188, 255, 0.09);
  border: 1px solid rgba(208, 188, 255, 0.16);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.signal-card {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 22px;
}

.signal-card .material-symbols-outlined {
  color: var(--cyan);
}

.signal-card strong {
  font-family: Manrope, Inter, sans-serif;
  font-size: 1.25rem;
}

.signal-card p {
  margin: 0;
  color: var(--text-soft);
}

.media-grid,
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}

.media-card {
  min-width: 0;
}

.poster-button {
  position: relative;
  width: 100%;
  display: block;
  padding: 0;
  overflow: hidden;
  background: var(--surface-mid);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease);
}

.poster-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -18px rgba(0, 0, 0, 0.55);
}

.poster-button:active {
  transform: scale(0.97);
  transition-duration: 100ms;
}

.poster-button img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 450ms var(--ease);
}

.poster-button:hover img {
  transform: scale(1.035);
}

.poster-tray {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: grid;
  gap: 2px;
  padding: 10px;
  text-align: left;
  background: rgba(10, 10, 20, 0.78);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.poster-tray strong {
  color: var(--text);
}

.poster-tray small {
  color: var(--text-soft);
}

.poster-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  background: rgba(208, 188, 255, 0.16);
  border: 1px solid rgba(208, 188, 255, 0.4);
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}

.media-card-featured {
  grid-column: span 2;
}

.media-card-featured .poster-button img {
  aspect-ratio: 16 / 9;
}

.media-card-featured .poster-tray strong {
  font-size: 1.1rem;
}

@media (max-width: 640px) {
  .media-card-featured {
    grid-column: span 2;
  }
  .media-card-featured .poster-button img {
    aspect-ratio: 2 / 1;
  }
}

.selection-hero {
  max-width: 720px;
  margin: 0 0 28px;
}

.selection-hero h1 {
  font: 800 2.1rem/1.2 'Manrope', sans-serif;
  margin: 10px 0 12px;
  letter-spacing: -0.02em;
}

.selection-hero p {
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

.selection-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}

.prompt-hint {
  display: block;
  margin: 4px 0 10px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prompt-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.prompt-chip {
  min-height: 34px;
  padding: 0 12px;
  color: var(--text-soft);
  background: var(--surface-low);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
}

.prompt-chip:hover,
.prompt-chip:focus-visible {
  color: var(--text);
  background: var(--surface-mid);
  border-color: var(--stroke-strong);
}

.selection-result {
  margin-bottom: 28px;
}

.selection-result > .kicker {
  display: block;
  margin-bottom: 12px;
}

.filters-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--text);
  font-weight: 800;
}

.filters-panel-head .material-symbols-outlined {
  color: var(--primary);
}

@media (max-width: 900px) {
  .selection-layout {
    grid-template-columns: 1fr;
  }
}

.prompt-panel,
.result-panel,
.filters-panel,
.settings-card,
.profile-card,
.collection-card,
.list-panel {
  padding: 24px;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  padding: 5px;
  background: var(--surface-low);
  border: 1px solid var(--stroke);
  border-radius: 999px;
}

.segmented button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-width: 120px;
  color: var(--text-soft);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 160ms var(--ease), color 160ms var(--ease), background 160ms var(--ease);
}

.segmented button.active {
  color: var(--primary-ink);
  background: var(--primary);
}

.prompt-box {
  display: grid;
  gap: 10px;
}

.prompt-box span {
  color: var(--text);
  font-weight: 800;
}

textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  padding: 18px;
  color: var(--text);
  background: #121221;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  outline: 0;
}

textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(208, 188, 255, 0.16);
}

.mood-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.mood-grid button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  color: var(--text-soft);
  background: rgba(208, 188, 255, 0.08);
  border: 1px solid rgba(208, 188, 255, 0.16);
  border-radius: 999px;
  font-weight: 800;
  transition: transform 160ms var(--ease), color 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease);
}

.mood-grid button:hover {
  border-color: var(--stroke-strong);
  transform: translateY(-2px);
}

.mood-grid button.active {
  color: var(--primary-ink);
  background: var(--primary);
}

.filters-form {
  display: grid;
  gap: 16px;
}

.filters-form label {
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  font-weight: 700;
  font-size: 0.9rem;
}

.filters-form select,
.filters-form input[type="number"] {
  min-height: 44px;
  padding: 0 14px;
  color: var(--text);
  background: #121221;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  outline: 0;
}

.filters-form select:focus,
.filters-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(208, 188, 255, 0.16);
}

.filters-form input[type="range"] {
  accent-color: var(--primary);
}

.filters-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.filters-results {
  margin-top: 24px;
}

.filters-results .landing-row-head {
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filters-results h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.tracker-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, 180px);
  gap: 18px;
}

.tracker-grid-insights {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.tracker-grid-insights .mini-stat span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tracker-row {
  grid-template-columns: 64px minmax(0, 1fr) auto auto;
}

.tracker-row-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-input {
  width: 76px;
  min-height: 38px;
  padding: 0 10px;
  color: var(--text);
  background: var(--surface-mid);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
}

.btn-sm {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.84rem;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .tracker-grid-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tracker-row {
    grid-template-columns: 1fr;
  }

  .tracker-row-progress {
    flex-wrap: wrap;
  }
}

.goal-card {
  display: grid;
  gap: 24px;
  padding: 24px;
}

.goal-card h2 {
  margin: 0;
  font: 800 2.2rem/1.1 Manrope, Inter, sans-serif;
}

.goal-card p {
  max-width: 56ch;
  margin: 8px 0 0;
  color: var(--text-soft);
}

.progress {
  height: 9px;
  background: var(--surface-high);
  border-radius: 999px;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--gradient-main);
  border-radius: inherit;
  box-shadow: 0 0 10px rgba(208, 188, 255, 0.45);
  transition: width 420ms var(--ease);
}

.list-panel {
  display: grid;
  gap: 10px;
}

.row-item {
  /* Fixed dark accent surface — see .stat-card for why text tokens are
     pinned locally instead of following the active site theme. */
  --text: #e4e1f0;
  --text-soft: #cbc3d7;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  background: rgba(31, 31, 41, 0.58);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
}

.row-item img {
  width: 64px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
}

.row-item strong {
  display: block;
  color: var(--text);
}

.row-item span {
  color: var(--text-muted);
}

.note-row {
  --text: #e4e1f0;
  --text-soft: #cbc3d7;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 12px;
  background: rgba(31, 31, 41, 0.58);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
}

.note-row img {
  width: 64px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
}

.note-row-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.note-row-body strong {
  color: var(--text);
}

.note-row-body span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.note-excerpt {
  margin: 4px 0 0;
  color: var(--text-soft);
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.note-row-body textarea {
  margin-top: 4px;
  width: 100%;
  min-height: 80px;
  resize: vertical;
  font: inherit;
}

.note-row-actions {
  display: flex;
  gap: 6px;
  align-self: start;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 220px;
  text-align: center;
  color: var(--text-soft);
}

.empty-state .material-symbols-outlined {
  color: var(--primary);
  font-size: 42px;
}

.empty-state strong {
  color: var(--text);
  font: 800 1.4rem/1.2 Manrope, Inter, sans-serif;
}

.empty-state p {
  max-width: 42ch;
  margin: 0;
}

.collection-card {
  display: grid;
  gap: 10px;
  min-height: 190px;
  align-content: start;
  cursor: pointer;
  text-align: left;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.collection-card:hover {
  transform: translateY(-3px);
  border-color: var(--stroke-strong);
  box-shadow: 0 16px 36px -24px rgba(0, 0, 0, 0.6);
}

.collection-card .material-symbols-outlined {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: rgba(208, 188, 255, 0.10);
  border-radius: 13px;
}

.collection-card strong {
  font: 800 1.25rem/1.2 Manrope, Inter, sans-serif;
}

.accent-secondary .material-symbols-outlined {
  color: var(--secondary);
  background: rgba(255, 176, 205, 0.10);
}

.accent-cyan .material-symbols-outlined {
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.10);
}

.profile-grid,
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
}

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

.avatar {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  overflow: hidden;
  color: var(--primary-ink);
  background: var(--primary);
  border-radius: 24px;
  font: 800 2.1rem/1 Manrope, Inter, sans-serif;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card h2,
.settings-card h2 {
  margin: 0;
  font: 800 1.55rem/1.2 Manrope, Inter, sans-serif;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.profile-stats div {
  padding: 16px;
  text-align: center;
  background: var(--surface-mid);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}

.profile-stats strong {
  display: block;
  color: var(--primary);
  font: 800 2rem/1 Manrope, Inter, sans-serif;
}

.profile-stats span {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.status-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.status-list span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--surface-mid);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  color: var(--text-soft);
}

.profile-form,
.admin-sub-form {
  align-content: start;
}

.profile-form label,
.admin-sub-form label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--text-soft);
  font-weight: 800;
}

.profile-form input,
.profile-form textarea,
.admin-sub-form input,
.admin-sub-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(10, 10, 20, 0.72);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  outline: 0;
}

.profile-form textarea {
  min-height: 120px;
  padding-block: 14px;
}

.form-grid-two,
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.plan-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: var(--surface-mid);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}

.plan-card strong {
  font: 800 1.2rem/1.2 Manrope, Inter, sans-serif;
}

.plan-card span {
  color: var(--primary);
  font-weight: 800;
}

.plan-card p {
  margin: 0;
  color: var(--text-soft);
}

.admin-table {
  display: grid;
  gap: 8px;
}

.admin-table > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--surface-mid);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}

.admin-table span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-tabs {
  flex-wrap: nowrap;
  margin: 24px 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

.admin-tabs button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.admin-search {
  display: flex;
  gap: 8px;
}

.admin-search input {
  min-height: 40px;
  padding: 0 14px;
  color: var(--text);
  background: var(--surface-mid);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  outline: 0;
}

.admin-user-table {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.admin-user-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--surface-mid);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}

.admin-user-id {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-user-id strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-id span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.admin-user-meta {
  display: grid;
  gap: 2px;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.admin-user-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-user-actions select {
  min-height: 38px;
  padding: 0 8px;
  color: var(--text);
  background: var(--surface-high);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
}

.danger-chip {
  color: var(--danger);
  background: rgba(255, 180, 171, 0.14);
  border-color: rgba(255, 180, 171, 0.3);
}

.admin-table > .admin-payment-row,
.admin-table > .admin-announcement-row {
  display: grid;
  gap: 10px;
  align-items: center;
  grid-template-columns: 1fr auto auto;
}

.admin-table > .admin-feedback-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  align-items: start;
}

.admin-feedback-row p {
  margin: 6px 0 0;
  color: var(--text-soft);
}

.admin-announcement-row p {
  margin: 0;
  color: var(--text-soft);
}

@media (max-width: 860px) {
  .admin-user-row,
  .admin-payment-row,
  .admin-feedback-row,
  .admin-announcement-row {
    grid-template-columns: 1fr;
  }
}

.details-dialog {
  width: min(860px, calc(100vw - 32px));
  color: var(--text);
  background: var(--glass-strong);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}

.details-dialog::backdrop {
  background: rgba(5, 5, 12, 0.76);
  backdrop-filter: blur(8px);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.dialog-layout {
  padding: 28px;
}

.dialog-empty {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 200px;
  text-align: center;
  color: var(--text-soft);
}

.dialog-empty .material-symbols-outlined {
  color: var(--primary);
  font-size: 42px;
}

.trailer-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
}

.trailer-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.collection-picker h2 {
  margin: 0 0 6px;
}

.collection-picker > p {
  margin: 0 0 18px;
  color: var(--text-soft);
}

.collection-pick-list {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  max-height: 320px;
  overflow-y: auto;
}

.collection-pick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 16px;
  color: var(--text);
  background: var(--surface-mid);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  text-align: left;
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
}

.collection-pick-row:hover {
  border-color: var(--stroke-strong);
  background: var(--surface-high);
}

.collection-pick-row small {
  color: var(--text-muted);
}

.action-bar {
  align-items: center;
}

.share-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding: 10px;
  width: fit-content;
  max-width: 100%;
  background: rgba(13, 13, 23, 0.72);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}

.share-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--text-soft);
  background: var(--surface-mid);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 700;
  transition: transform 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), background 160ms var(--ease);
}

.share-action:hover {
  transform: translateY(-1px);
  color: var(--text);
  background: var(--surface-high);
  border-color: var(--stroke-strong);
}

.btn.is-active {
  color: var(--primary-ink);
  background: linear-gradient(135deg, var(--primary), #f0b6ff);
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(208, 188, 255, 0.20);
}

.note-panel {
  margin-top: 14px;
}

.note-panel textarea {
  min-height: 90px;
}

.note-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.note-actions span {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 16px;
  color: var(--text);
  background: var(--glass-strong);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.bottom-nav {
  display: none;
}

.more-menu {
  display: none;
}

.more-menu[hidden] {
  display: none !important;
}

.noscript-note {
  margin: 48px auto;
  max-width: 480px;
  padding: 24px;
  color: var(--text-soft);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
}

.public-mode .topbar,
.auth-mode .topbar,
.detail-mode .topbar,
.auth-mode .side-nav,
.auth-mode .bottom-nav,
.public-mode .nav-list-bottom,
.public-mode .side-card {
  display: none;
}

.auth-mode .app-shell {
  display: block;
}

.auth-mode .workspace {
  width: 100%;
  max-width: none;
  padding: 0;
}

.public-mode .workspace {
  padding-top: 54px;
}

.detail-mode .workspace {
  padding-top: 0;
}

.landing-hero {
  display: grid;
  gap: clamp(28px, 5vw, 54px);
  justify-items: center;
  padding: clamp(28px, 6vw, 72px) 0 clamp(36px, 6vw, 76px);
  text-align: center;
}

.landing-copy {
  display: grid;
  gap: 16px;
  max-width: 860px;
}

.landing-copy h1,
.landing-section h2,
.landing-cinema h2,
.detail-headline h1 {
  margin: 0;
  color: var(--text);
  font-family: Manrope, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  text-wrap: balance;
}

.landing-copy h1 {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 1.02;
}

.landing-copy p {
  max-width: 68ch;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.7;
}

.landing-picker {
  position: relative;
  width: min(760px, 100%);
  padding: 24px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
}

.landing-picker::before,
.prompt-panel::before,
.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-main);
  opacity: 0.7;
}

.prompt-panel {
  position: relative;
  overflow: hidden;
}

.auth-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6);
}

.landing-picker textarea {
  min-height: 132px;
}

.landing-section {
  display: grid;
  gap: 26px;
  padding: clamp(38px, 6vw, 76px) 0;
}

.landing-section h2,
.landing-cinema h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
}

.feature-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-tile {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 210px;
  padding: 24px;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease);
}

.feature-tile:hover {
  transform: scale(1.02);
  border-color: var(--stroke-strong);
}

.feature-tile.wide {
  grid-column: span 2;
}

.feature-tile .material-symbols-outlined {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: rgba(208, 188, 255, 0.12);
  border-radius: 50%;
  transition: background 220ms var(--ease);
}

.feature-tile:hover .material-symbols-outlined {
  background: rgba(208, 188, 255, 0.24);
}

.feature-tile h3 {
  margin: 8px 0 0;
  font: 800 1.2rem/1.2 Manrope, Inter, sans-serif;
}

.feature-tile p,
.landing-cinema p {
  max-width: 62ch;
  margin: 0;
  color: var(--text-soft);
}

.landing-row-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: var(--primary);
  background: transparent;
  border: 0;
  font-weight: 800;
}

.landing-trending {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.landing-cinema {
  min-height: 360px;
  display: grid;
  align-items: end;
  margin: clamp(32px, 5vw, 72px) 0;
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10, 10, 20, 0.92), rgba(10, 10, 20, 0.58)),
    url("https://image.tmdb.org/t/p/original/6WBeq4fCfn7AN0o21W9qNcRF2l9.jpg") center / cover;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 18px;
  background: 
    radial-gradient(circle at 10% 10%, rgba(160, 120, 255, 0.12), transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(255, 176, 205, 0.08), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.05), transparent 60%),
    #0A0A14;
  position: relative;
  overflow: hidden;
}

.auth-language {
  position: fixed;
  top: 24px;
  right: 28px;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(18, 18, 29, 0.80);
  border: 1px solid var(--stroke);
  border-radius: 999px;
}

.auth-language button {
  min-width: 44px;
  min-height: 44px;
  color: var(--text-soft);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
}

.auth-language button.active {
  color: var(--primary-ink);
  background: var(--primary);
}

.auth-card {
  width: min(560px, 100%);
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 40px);
}

.auth-brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.auth-brand strong,
.auth-form h1 {
  font: 800 1.55rem/1.2 Manrope, Inter, sans-serif;
}

.auth-brand p,
.auth-form p,
.auth-switch {
  margin: 0;
  color: var(--text-soft);
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form h1 {
  margin: 0;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  font-weight: 800;
}

.input-wrap {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 14px;
  color: var(--text-muted);
  background: rgba(10, 10, 20, 0.82);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), color 200ms var(--ease);
}

.input-wrap:focus-within {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 16px rgba(208, 188, 255, 0.18), 0 0 0 3px rgba(208, 188, 255, 0.12);
}

.input-wrap input {
  min-width: 0;
  width: 100%;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.input-wrap input::placeholder {
  color: #aaa3b5;
}

.check-row {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  font-weight: 600;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--primary);
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
}

.auth-divider span {
  height: 1px;
  background: var(--stroke);
}

.auth-switch {
  text-align: center;
}

.subtle-demo {
  opacity: 0.82;
}

.detail-page {
  display: grid;
  gap: 34px;
}

.detail-hero {
  /* The backdrop gradient below is always dark (it sits over a movie
     still), so pin surface/text tokens to their dark-theme values here
     regardless of the active site theme — the light theme's tokens alone
     would turn text near-black and buttons near-white, disappearing
     against (or clashing with) the photo overlay. */
  --text: #e4e1f0;
  --text-soft: #cbc3d7;
  --text-muted: #958ea0;
  --surface-mid: #1f1f29;
  --surface-high: #292934;
  --stroke: rgba(255, 255, 255, 0.10);
  --stroke-strong: rgba(208, 188, 255, 0.34);
  position: relative;
  min-height: min(660px, calc(100vh - 44px));
  display: flex;
  align-items: end;
  margin-inline: calc(clamp(18px, 3vw, 48px) * -1);
  padding: clamp(72px, 10vw, 130px) clamp(24px, 7vw, 84px) clamp(42px, 7vw, 86px);
  overflow: hidden;
  background:
    linear-gradient(0deg, #0a0a14 0%, rgba(10, 10, 20, 0.15) 55%, rgba(10, 10, 20, 0.55) 100%),
    var(--detail-bg) center / cover;
  border-bottom: 1px solid var(--stroke);
}

.detail-back {
  position: absolute;
  top: 24px;
  left: clamp(24px, 7vw, 84px);
  z-index: 2;
}

.detail-headline {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.chip-rating {
  color: var(--tertiary);
  border-color: rgba(255, 184, 105, 0.32);
  background: rgba(255, 184, 105, 0.12);
}

.detail-headline h1 {
  margin-top: 14px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.98;
}

.detail-headline p {
  max-width: 66ch;
  color: var(--text-soft);
  font-size: 1.14rem;
  line-height: 1.7;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.detail-main-column {
  display: grid;
  gap: 32px;
}

.ai-dna {
  position: relative;
  padding: 24px;
  overflow: hidden;
}

.ai-dna::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -96px;
  right: -96px;
  width: 220px;
  height: 220px;
  background: rgba(208, 188, 255, 0.14);
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
}

.ai-dna h2,
.ai-dna .dna-grid {
  position: relative;
  z-index: 1;
}

.ai-dna h2,
.cast-section h2,
.metadata-card h2 {
  margin: 0 0 18px;
  font: 800 1.55rem/1.2 Manrope, Inter, sans-serif;
}

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

.dna-card {
  /* Fixed dark accent surface — see .stat-card for why text tokens are
     pinned locally instead of following the active site theme. */
  --text: #e4e1f0;
  --text-soft: #cbc3d7;
  display: grid;
  gap: 8px;
  padding: 18px;
  background: rgba(31, 31, 41, 0.70);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}

.dna-card .material-symbols-outlined {
  color: var(--primary);
}

.dna-card strong {
  font: 800 1.1rem/1.2 Manrope, Inter, sans-serif;
}

.dna-card p {
  margin: 0;
  color: var(--text-soft);
}

.cast-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.cast-card {
  width: 126px;
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
}

.cast-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 2px solid rgba(208, 188, 255, 0.26);
  border-radius: 50%;
}

.cast-card strong {
  color: var(--text);
  line-height: 1.2;
}

.cast-card span {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.detail-sidebar {
  display: grid;
  align-content: start;
  gap: 20px;
}

.metadata-card {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.metadata-card div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--stroke);
}

.metadata-card div:last-child {
  border-bottom: 0;
}

.metadata-card span {
  color: var(--text-soft);
}

.metadata-card strong {
  color: var(--text);
  text-align: right;
}

.detail-social-block {
  display: grid;
  gap: 18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h2 {
  margin: 2px 0 0;
  font: 800 1.55rem/1.2 Manrope, Inter, sans-serif;
}

.similar-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(142px, 168px);
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-snap-type: x proximity;
}

.similar-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  text-align: left;
  scroll-snap-align: start;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.similar-card:hover {
  transform: translateY(-3px);
  background: rgba(208, 188, 255, 0.08);
  border-color: var(--stroke-strong);
}

.similar-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-mid);
}

.similar-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.similar-card span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.review-wall {
  padding-top: 8px;
}

.community-score {
  min-width: 132px;
  padding: 10px 14px;
  background: rgba(255, 184, 105, 0.10);
  border: 1px solid rgba(255, 184, 105, 0.22);
  border-radius: var(--radius);
  text-align: right;
}

.community-score strong {
  display: block;
  color: var(--tertiary);
  font: 900 1.8rem/1 Manrope, Inter, sans-serif;
}

.community-score span {
  color: var(--text-soft);
  font-size: 0.78rem;
}

.rating-strip {
  display: grid;
  grid-template-columns: repeat(10, minmax(34px, 1fr));
  gap: 7px;
}

.rating-strip button {
  min-height: 38px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  font-weight: 800;
  transition: transform 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease);
}

.rating-strip button:hover,
.rating-strip button.active {
  transform: translateY(-1px);
  color: var(--primary-ink);
  background: var(--tertiary);
  border-color: transparent;
}

.review-form {
  display: grid;
  gap: 10px;
}

.review-form > div {
  display: grid;
  grid-template-columns: 96px auto;
  gap: 10px;
  justify-content: start;
}

.review-form input {
  width: 96px;
}

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

.review-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}

.review-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(208, 188, 255, 0.14);
  border: 1px solid rgba(208, 188, 255, 0.22);
  border-radius: 50%;
  font-weight: 800;
}

.review-head strong {
  display: block;
}

.review-head small {
  color: var(--text-muted);
}

.review-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--text-soft);
  line-height: 1.55;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

@media (max-width: 1120px) {
  .app-shell {
    display: block;
  }

  .side-nav {
    display: none;
  }

  .workspace {
    width: 100%;
    max-width: none;
    padding: 14px 16px 104px;
  }

  .topbar {
    grid-template-columns: auto 1fr auto;
    top: 10px;
    margin-bottom: 26px;
  }

  .mobile-brand {
    display: inline-flex;
  }

  .public-mode .workspace {
    padding-top: 22px;
  }

  .feature-bento,
  .landing-trending,
  .detail-content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-hero {
    margin-inline: -16px;
  }

  .detail-sidebar {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .global-search {
    grid-column: 1 / -1;
    order: 2;
  }

  .lang-switch,
  .profile-chip span:last-child {
    display: none;
  }

  .hero-grid,
  .daily-layout,
  .selection-grid,
  .tracker-grid,
  .profile-grid,
  .settings-grid,
  .admin-grid,
  .daily-card,
  .result-card,
  .dialog-layout {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .rating-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 0;
  }

  .hero-panel h1 {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.02;
  }

  .stat-stack {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-card {
    min-height: 104px;
    padding: 16px 10px;
  }

  .stat-card strong {
    font-size: 1.8rem;
  }

  .daily-card img,
  .result-card img,
  .dialog-layout img {
    max-width: 220px;
    margin-inline: auto;
  }

  .view-header {
    grid-template-columns: 1fr;
  }

  .landing-copy h1 {
    font-size: clamp(2.25rem, 10vw, 3.55rem);
  }

  .feature-bento,
  .landing-trending,
  .detail-content-grid,
  .detail-sidebar,
  .dna-grid,
  .form-grid-two,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .feature-tile.wide {
    grid-column: auto;
  }

  .landing-row-head {
    align-items: start;
    flex-direction: column;
  }

  .detail-hero {
    min-height: 0;
    align-items: start;
    padding-top: 92px;
  }

  .detail-headline h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .bottom-nav {
    position: fixed;
    left: 50%;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    width: min(520px, calc(100vw - 20px));
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    padding: 8px;
    background: rgba(18, 18, 29, 0.90);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    transform: translateX(-50%);
    backdrop-filter: blur(22px) saturate(1.2);
    -webkit-backdrop-filter: blur(22px) saturate(1.2);
  }

  .more-menu {
    display: block;
    position: fixed;
    left: 50%;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    z-index: 59;
    width: min(520px, calc(100vw - 20px));
    padding: 12px;
    background: rgba(18, 18, 29, 0.94);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    transform: translateX(-50%);
    backdrop-filter: blur(22px) saturate(1.2);
    -webkit-backdrop-filter: blur(22px) saturate(1.2);
  }

  .more-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .more-item {
    display: grid;
    justify-items: center;
    gap: 6px;
    min-height: 64px;
    padding: 10px 6px;
    color: var(--text-soft);
    background: var(--surface-low);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    font: 600 0.78rem/1.2 Inter, sans-serif;
    transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
  }

  .more-item:hover,
  .more-item:focus-visible {
    color: var(--text);
    background: var(--surface-mid);
    border-color: var(--stroke-strong);
  }

  .more-item.is-hidden {
    display: none;
  }

  .bottom-item {
    min-height: 54px;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 4px;
    font-size: 0.72rem;
  }

  .bottom-item small {
    font-weight: 800;
  }
}

@media (max-width: 520px) {
  .workspace {
    padding-inline: 12px;
  }

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

  .topbar {
    border-radius: 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero-panel,
  .landing-picker,
  .daily-card,
  .prompt-panel,
  .result-panel,
  .settings-card,
  .profile-card,
  .collection-card,
  .list-panel {
    padding: 18px;
    border-radius: 18px;
  }

  .landing-hero {
    padding-top: 20px;
    text-align: left;
    justify-items: stretch;
  }

  .landing-copy p {
    margin: 0;
  }

  .landing-cinema {
    margin-inline: -12px;
    border-radius: 0;
  }

  .auth-screen {
    align-items: start;
    padding-top: 92px;
  }

  .auth-language {
    top: 18px;
    right: 18px;
  }

  .auth-card {
    padding: 22px;
  }

  .detail-hero {
    margin-inline: -12px;
    padding-inline: 18px;
  }

  .detail-back {
    left: 18px;
  }

  .hero-actions,
  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .stat-stack,
  .profile-stats {
    grid-template-columns: 1fr;
  }

  .segmented {
    border-radius: 16px;
  }

  .segmented button {
    min-width: 100%;
  }

  .row-item {
    grid-template-columns: 56px minmax(0, 1fr) auto;
  }

  .row-item img {
    width: 56px;
    height: 84px;
  }
}

/* ─── Profile & settings ────────────────────────────────────────────── */

.profile-stats-secondary {
  margin-top: 10px;
}

.profile-tabs {
  margin: 24px 0 20px;
  max-width: 360px;
}

.public-link {
  margin: 10px 0 16px;
  padding: 10px 14px;
  color: var(--primary);
  background: var(--surface-mid);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  font-weight: 700;
  word-break: break-all;
}

.streak-card h2 {
  transition: color 200ms var(--ease);
}

.streak-card.warm h2 { color: var(--tertiary); }
.streak-card.hot h2 { color: var(--secondary); }
.streak-card.epic h2 { color: var(--primary); }
.streak-card.legendary h2 {
  background: var(--gradient-main);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.achievements-card {
  grid-column: 1 / -1;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.achievement-badge {
  position: relative;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 16px 10px;
  text-align: center;
  background: var(--surface-mid);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  transition: transform 160ms var(--ease), border-color 160ms var(--ease);
}

.achievement-badge.showcased {
  border-color: var(--primary);
}

.achievement-showcase-pin {
  position: absolute;
  top: 6px;
  right: 6px;
  color: var(--primary);
  font-size: 1rem;
}

.achievements-hint {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.mascot-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  padding: 10px 14px;
  background: var(--surface-mid);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  max-width: 480px;
}

.mascot-avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  animation: mascot-float 3.5s ease-in-out infinite;
}

.mascot-bubble {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-soft);
}

@keyframes mascot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.live-ticker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.live-ticker-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 rgba(74, 222, 128, 0.5);
  animation: live-ticker-pulse 2s ease-in-out infinite;
}

.live-ticker-sep {
  opacity: 0.5;
}

@keyframes live-ticker-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.achievement-badge:hover {
  transform: translateY(-2px);
}

.achievement-badge .achievement-icon {
  font-size: 1.8rem;
}

.achievement-badge.earned {
  border-color: var(--stroke-strong);
  background: rgba(208, 188, 255, 0.1);
}

.achievement-badge.locked {
  opacity: 0.4;
  filter: grayscale(1);
}

.achievement-badge strong {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.profile-form h3 {
  margin: 8px 0 -6px;
  color: var(--text);
  font-size: 1rem;
}

.form-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.visibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-mid);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--text-soft);
}

.switch-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.theme-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.theme-swatch {
  display: grid;
  place-items: center;
  gap: 8px;
  min-width: 100px;
  padding: 16px 14px;
  color: var(--text-soft);
  background: var(--surface-mid);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  font-weight: 700;
  transition: transform 160ms var(--ease), border-color 160ms var(--ease);
}

.theme-swatch:hover {
  transform: translateY(-2px);
}

.theme-swatch.active {
  color: var(--text);
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(208, 188, 255, 0.25);
}

.theme-swatch.theme-obsidian .material-symbols-outlined { color: #a078ff; }
.theme-swatch.theme-purple .material-symbols-outlined { color: #e2b8ff; }
.theme-swatch.theme-light .material-symbols-outlined { color: #6d3bd7; }

.danger-zone {
  border-color: rgba(255, 180, 171, 0.35);
}

.danger-zone h2 {
  color: var(--danger);
}

.danger-zone p {
  color: var(--text-soft);
}

.collection-create-form > span {
  display: block;
  margin-top: 14px;
  color: var(--text-soft);
  font-weight: 800;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.emoji-swatch {
  min-height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: var(--surface-mid);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  transition: transform 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
}

.emoji-swatch:hover {
  transform: scale(1.08);
}

.emoji-swatch.active {
  border-color: var(--primary);
  background: rgba(208, 188, 255, 0.16);
}

.collection-detail-toolbar {
  margin-bottom: 20px;
}

.collection-detail-toolbar select {
  min-height: 44px;
  padding: 0 12px;
  color: var(--text);
  background: var(--surface-mid);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}

.aura-field {
  margin-top: 20px;
}

.aura-field > span {
  display: block;
  color: var(--text);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.aura-hint {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.aura-picker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.aura-swatch {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--text);
  background: var(--swatch, var(--surface-high));
  border: 1px solid var(--stroke);
  border-radius: 50%;
  transition: transform 180ms var(--ease-spring), box-shadow 180ms var(--ease);
}

.aura-swatch:hover {
  transform: scale(1.1);
}

.aura-swatch.active {
  transform: scale(1.12);
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--swatch, var(--primary)), 0 0 16px rgba(208, 188, 255, 0.35);
}

.aura-swatch-custom {
  color: var(--text-muted);
  background: var(--swatch, var(--surface-high));
}

.aura-swatch-custom.is-locked {
  opacity: 0.55;
}

.aura-native-input {
  position: absolute;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 720px) {
  .form-grid-two,
  .visibility-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Entrance motion ───────────────────────────────────────────────────
   Targets fresh DOM nodes only (view swaps replace root.innerHTML, grid
   items are re-created per render), so no JS retrigger logic is needed —
   the animation naturally (re)plays whenever these nodes are inserted. */

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

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes dialog-enter {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes backdrop-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.view-root > * {
  min-width: 0;
  max-width: 100%;
  animation: view-enter 280ms var(--ease) both;
}

.media-grid > *,
.collection-grid > *,
.cast-row > *,
.list-panel > *,
.feature-bento > *,
.landing-trending > *,
.profile-activity-grid > *,
.game-leaderboard > *,
.gift-themes > * {
  animation: card-enter 360ms var(--ease) both;
}

.media-grid > *:nth-child(1), .collection-grid > *:nth-child(1), .cast-row > *:nth-child(1), .list-panel > *:nth-child(1), .feature-bento > *:nth-child(1), .landing-trending > *:nth-child(1), .profile-activity-grid > *:nth-child(1), .game-leaderboard > *:nth-child(1), .gift-themes > *:nth-child(1) { animation-delay: 0ms; }
.media-grid > *:nth-child(2), .collection-grid > *:nth-child(2), .cast-row > *:nth-child(2), .list-panel > *:nth-child(2), .feature-bento > *:nth-child(2), .landing-trending > *:nth-child(2), .profile-activity-grid > *:nth-child(2), .game-leaderboard > *:nth-child(2), .gift-themes > *:nth-child(2) { animation-delay: 40ms; }
.media-grid > *:nth-child(3), .collection-grid > *:nth-child(3), .cast-row > *:nth-child(3), .list-panel > *:nth-child(3), .feature-bento > *:nth-child(3), .landing-trending > *:nth-child(3), .profile-activity-grid > *:nth-child(3), .game-leaderboard > *:nth-child(3), .gift-themes > *:nth-child(3) { animation-delay: 80ms; }
.media-grid > *:nth-child(4), .collection-grid > *:nth-child(4), .cast-row > *:nth-child(4), .list-panel > *:nth-child(4), .feature-bento > *:nth-child(4), .landing-trending > *:nth-child(4), .profile-activity-grid > *:nth-child(4), .game-leaderboard > *:nth-child(4), .gift-themes > *:nth-child(4) { animation-delay: 120ms; }
.media-grid > *:nth-child(5), .collection-grid > *:nth-child(5), .cast-row > *:nth-child(5), .list-panel > *:nth-child(5), .feature-bento > *:nth-child(5), .landing-trending > *:nth-child(5), .profile-activity-grid > *:nth-child(5), .game-leaderboard > *:nth-child(5), .gift-themes > *:nth-child(5) { animation-delay: 160ms; }
.media-grid > *:nth-child(6), .collection-grid > *:nth-child(6), .cast-row > *:nth-child(6), .list-panel > *:nth-child(6), .feature-bento > *:nth-child(6), .landing-trending > *:nth-child(6), .profile-activity-grid > *:nth-child(6), .game-leaderboard > *:nth-child(6), .gift-themes > *:nth-child(6) { animation-delay: 200ms; }
.media-grid > *:nth-child(n+7), .collection-grid > *:nth-child(n+7), .cast-row > *:nth-child(n+7), .list-panel > *:nth-child(n+7), .feature-bento > *:nth-child(n+7), .landing-trending > *:nth-child(n+7), .profile-activity-grid > *:nth-child(n+7), .game-leaderboard > *:nth-child(n+7), .gift-themes > *:nth-child(n+7) { animation-delay: 240ms; }

.details-dialog[open] {
  animation: dialog-enter 220ms var(--ease) both;
}

.details-dialog[open]::backdrop {
  animation: backdrop-enter 220ms var(--ease) both;
}

/* ─── Success feedback (save / mark watched) ────────────────────────── */

@keyframes btn-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.16); }
  65% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

@keyframes btn-ring-burst {
  0% { transform: scale(0.7); opacity: 0.6; }
  100% { transform: scale(1.9); opacity: 0; }
}

.btn.btn-success-pulse {
  position: relative;
  color: var(--success-ink);
  background: var(--success);
  border-color: transparent;
  animation: btn-pop 500ms var(--ease-spring);
}

.btn.btn-success-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--success);
  border-radius: inherit;
  animation: btn-ring-burst 550ms var(--ease) forwards;
  pointer-events: none;
}

.btn.btn-success-pulse .material-symbols-outlined {
  font-variation-settings: "FILL" 1, "wght" 650, "GRAD" 0, "opsz" 24;
}

/* ─── Archetype quiz ─────────────────────────────────────────────────── */

.quiz-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px;
}

.quiz-question {
  margin: 24px 0 20px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

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

.quiz-answer {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 16px 20px;
  color: var(--text);
  background: var(--surface-mid);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  text-align: left;
  font-weight: 700;
  line-height: 1.35;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.quiz-answer:hover {
  transform: translateY(-2px);
  border-color: var(--stroke-strong);
  background: var(--surface-high);
}

.quiz-answer:active {
  transform: scale(0.98);
  transition-duration: 100ms;
}

.quiz-answer-emoji {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.quiz-result-hero {
  position: relative;
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 320px;
  padding: 48px 24px;
  text-align: center;
  background: var(--archetype-gradient, var(--gradient-main));
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.quiz-result-hero .kicker {
  color: rgba(255, 255, 255, 0.85);
}

.quiz-result-hero h1 {
  margin: 0;
  color: #fff;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.quiz-result-emoji {
  font-size: 3.4rem;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.4));
}

.quiz-result-tagline {
  max-width: 46ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
}

.quiz-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.quiz-vibe {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-style: italic;
}

@media (max-width: 900px) {
  .quiz-answers {
    grid-template-columns: 1fr;
  }

  .quiz-result-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── FAQ ────────────────────────────────────────────────────────────── */

.faq-search {
  margin-bottom: 24px;
}

.faq-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: var(--text);
  background: var(--surface-mid);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  outline: 0;
}

.faq-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(208, 188, 255, 0.16);
}

.faq-section {
  margin-bottom: 24px;
}

.faq-section h2 {
  margin: 0 0 14px;
  font: 800 1.3rem/1.2 Manrope, Inter, sans-serif;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  padding: 4px 20px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-toggle-icon {
  flex-shrink: 0;
  color: var(--primary);
  transition: transform 220ms var(--ease);
}

.faq-item[open] .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding-bottom: 18px;
  color: var(--text-soft);
  line-height: 1.65;
}

.faq-answer p {
  margin: 0 0 10px;
}

.faq-answer ul,
.faq-answer ol {
  margin: 0 0 10px;
  padding-left: 22px;
}

.faq-answer a {
  color: var(--primary);
  text-decoration: underline;
}

.faq-answer code {
  padding: 2px 6px;
  background: var(--surface-high);
  border-radius: 4px;
  font-size: 0.88em;
}

.faq-cta {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 12px;
}

.compact-tabs {
  flex-wrap: wrap;
}

.explore-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.explore-card,
.blog-card {
  overflow: hidden;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.explore-card:hover,
.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--stroke-strong);
  background: var(--glass-strong);
}

.explore-posters {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.8fr;
  min-height: 190px;
  padding: 14px;
  gap: 8px;
  background: linear-gradient(135deg, rgba(208, 188, 255, 0.12), rgba(6, 182, 212, 0.08));
}

.explore-posters img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
}

.explore-posters img:nth-child(2) {
  transform: translateY(12px);
}

.explore-posters img:nth-child(3) {
  transform: translateY(28px);
}

.explore-card-body,
.blog-card > div {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.explore-card h2,
.blog-card h2 {
  margin: 0;
  font: 800 1.2rem/1.2 Manrope, Inter, sans-serif;
  text-wrap: balance;
}

.explore-card p,
.blog-card p {
  margin: 0;
  color: var(--text-soft);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-mid);
}

.landing-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 32px 8px;
  margin-top: 24px;
  border-top: 1px solid var(--stroke);
}

.landing-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font: 800 1.1rem 'Manrope', sans-serif;
}

.landing-footer-brand .material-symbols-outlined {
  color: var(--primary);
}

.landing-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.landing-footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .landing-footer {
    justify-content: center;
    text-align: center;
  }
}

/* --- Obsidian Cinema V2 Styles --- */
h1, h2, h3, h4, .logo-text, .brand, .brand span strong {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(135deg, #d0bcff 0%, #ffb0cd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}
.orb-1 { top: -10%; left: 10%; width: 500px; height: 500px; background: var(--primary-strong); }
.orb-2 { bottom: 20%; right: 5%; width: 600px; height: 600px; background: var(--secondary); }

.orb-glow {
  box-shadow: 0 0 40px 10px rgba(208, 188, 255, 0.2);
}

.landing-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 20px 48px;
  width: 100%;
}

.landing-copy h1 {
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.landing-copy p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto 36px;
}

.landing-picker {
  width: 100%;
  max-width: 680px;
  border-radius: 16px;
  padding: 24px;
  text-align: left;
  border: 1px solid var(--stroke);
  background: var(--glass);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.landing-picker .prompt-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.landing-picker .prompt-box span {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
}

.landing-picker textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 14px;
  color: var(--text);
  resize: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.landing-picker textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(208, 188, 255, 0.15);
}

/* Mood carousel / grid in landing */
.mood-grid {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-top: 12px;
  padding-bottom: 12px;
  margin-top: -12px;
}

.mood-grid button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 20px;
  background: var(--surface-low);
  border: 1px solid var(--stroke);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.mood-grid button:hover,
.mood-grid button.active {
  border-color: var(--primary);
  color: var(--text);
  box-shadow: 0 0 15px rgba(208, 188, 255, 0.2);
}

.mood-grid button.active {
  background: rgba(208, 188, 255, 0.12);
}

/* Bento Grid */
.landing-section {
  padding: 48px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.landing-section h2 {
  font: 800 1.8rem/1.3 'Manrope', sans-serif;
  margin: 0 0 32px;
  text-align: center;
}

.feature-bento {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

@media (min-width: 768px) {
  .feature-bento {
    grid-template-columns: repeat(3, 1fr);
  }
  .feature-tile.wide {
    grid-column: span 2;
  }
}

.feature-tile {
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.feature-tile:hover {
  transform: translateY(-4px);
  border-color: var(--stroke-strong);
}

.home-bento .feature-tile {
  cursor: pointer;
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 44px 40px;
  margin-bottom: 36px;
  border-radius: 20px;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(208, 188, 255, 0.08) 0%, rgba(255, 176, 205, 0.06) 100%);
  pointer-events: none;
}

.home-hero > * {
  position: relative;
  max-width: 640px;
}

.home-hero h1 {
  font: 800 2.3rem/1.15 'Manrope', sans-serif;
  margin: 14px 0;
  letter-spacing: -0.02em;
}

.home-hero p {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 26px;
}

.home-hero-search {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.home-hero-input {
  flex: 1;
  min-width: 240px;
}

.home-section {
  margin-bottom: 40px;
}

.home-section > h2 {
  font: 800 1.5rem/1.3 'Manrope', sans-serif;
  margin: 0 0 20px;
}

@media (max-width: 640px) {
  .home-hero {
    padding: 32px 22px;
  }
  .home-hero h1 {
    font-size: 1.7rem;
  }
}

.feature-tile .material-symbols-outlined {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 16px;
  opacity: 0.85;
}

.feature-tile h3 {
  font: 700 1.25rem/1.3 'Manrope', sans-serif;
  margin: 0 0 8px;
  color: var(--text);
}

.feature-tile p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

/* Trending carousel */
.landing-trending {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .landing-trending {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Landing Cinema promo card */
.landing-cinema {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  padding: 40px;
  background: linear-gradient(135deg, rgba(18, 18, 29, 0.95) 0%, rgba(35, 20, 50, 0.7) 100%);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--stroke);
  margin-top: 48px;
  margin-bottom: 48px;
}

.landing-cta {
  text-align: center;
  padding: 56px 24px;
  margin-bottom: 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(208, 188, 255, 0.08) 100%);
}

.landing-cta h2 {
  font: 800 2rem/1.2 'Manrope', sans-serif;
  margin: 0 0 12px;
}

.landing-cta p {
  color: var(--text-soft);
  margin: 0 0 28px;
}

.landing-cta .btn {
  padding: 16px 40px;
  border-radius: 999px;
  background: #fff;
  color: var(--bg);
  font-weight: 800;
  border: 0;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
  transition: transform 160ms var(--ease);
}

.landing-cta .btn:hover {
  transform: scale(1.05);
}

.landing-cinema div {
  max-width: 500px;
  z-index: 2;
}

.landing-cinema h2 {
  font: 800 2rem/1.2 'Manrope', sans-serif;
  margin: 0 0 12px;
  text-align: left;
}

.landing-cinema p {
  color: var(--text-soft);
  margin: 0 0 24px;
  line-height: 1.5;
}

.landing-cinema .button-row {
  display: flex;
  gap: 12px;
}

/* Watchlist Stack & Progress in Home */
.watchlist-avatars {
  display: flex;
  align-items: center;
  margin-top: 12px;
  margin-left: 6px;
}

.watchlist-avatars img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  object-fit: cover;
  margin-left: -8px;
}

.watchlist-avatars img:first-child {
  margin-left: 0;
}

.watchlist-avatars .avatar-count {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-high);
  border: 2px solid var(--bg);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -8px;
}

.tracker-progress-wrap {
  margin-top: 14px;
  width: 100%;
}

.tracker-progress-bar {
  height: 6px;
  width: 100%;
  background: var(--surface-high);
  border-radius: 10px;
  overflow: hidden;
}

.tracker-progress-fill {
  height: 100%;
  background: var(--secondary);
  border-radius: 10px;
}

.tracker-progress-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 6px;
}

/* Mobile Bottom Nav Active capsule */
.bottom-item.active {
  background: rgba(208, 188, 255, 0.13) !important;
  border-radius: 12px;
  color: var(--primary) !important;
}

/* Custom modern stats layout for Obsidian Cinema */
.hero-grid {
  grid-template-columns: 1fr !important;
  gap: 24px !important;
}

.stat-stack {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
}

@media (max-width: 768px) {
  .stat-stack {
    grid-template-columns: 1fr !important;
  }
}

.stat-stack .stat-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  text-align: left !important;
  min-height: 150px !important;
  padding: 20px !important;
  background: rgba(18, 18, 29, 0.75) !important;
  border: 1px solid var(--stroke) !important;
  border-radius: var(--radius-lg) !important;
  box-sizing: border-box !important;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease) !important;
}

.stat-stack .stat-card:hover {
  transform: translateY(-3px) !important;
  border-color: var(--stroke-strong) !important;
  background: rgba(18, 18, 29, 0.85) !important;
}

.stat-card-header {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
  width: 100% !important;
}

.stat-card-header .material-symbols-outlined {
  font-size: 1.3rem !important;
}

.stat-title {
  font-family: 'Manrope', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  color: var(--text-soft) !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

.stat-card-content {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.stat-value {
  font-family: 'Manrope', sans-serif !important;
  font-weight: 800 !important;
  font-size: 2rem !important;
  line-height: 1 !important;
  color: var(--text) !important;
  margin: 0 !important;
}

.stat-desc {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

.wordle-shell {
  --text: #e4e1f0;
  --text-soft: #cbc3d7;
  display: grid;
  gap: 16px;
  padding: 20px;
}

.wordle-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.wordle-search-wrap {
  position: relative;
}

.wordle-suggestions {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 4px;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  background: #14141f;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.wordle-suggestions:empty {
  display: none;
}

.wordle-suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  text-align: left;
  font: inherit;
}

.wordle-suggestion-item:hover:not(:disabled) {
  background: rgba(208, 188, 255, 0.12);
}

.wordle-suggestion-item:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.wordle-suggestion-item img {
  width: 32px;
  height: 46px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.wordle-suggestion-item small {
  margin-left: auto;
  color: var(--text-muted);
}

.wordle-board-scroll {
  overflow-x: auto;
}

.wordle-board {
  display: grid;
  gap: 6px;
  min-width: 640px;
}

.wordle-row {
  display: grid;
  grid-template-columns: 180px repeat(7, minmax(80px, 1fr));
  gap: 6px;
}

.wordle-row-head .wordle-cell {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  justify-content: center;
  padding: 4px 8px;
}

.wordle-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 700;
  text-align: center;
  min-height: 44px;
}

.wordle-cell-title {
  justify-content: flex-start;
  text-align: left;
  font-weight: 600;
  background: transparent;
  gap: 10px;
}

.wordle-cell-title img {
  width: 32px;
  height: 46px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.wordle-cell.green {
  background: rgba(88, 214, 141, 0.28);
  color: var(--success);
}

.wordle-cell.yellow {
  background: rgba(241, 196, 15, 0.26);
  color: var(--warning);
}

.wordle-cell.yellow-dim {
  background: rgba(241, 196, 15, 0.14);
  color: #e4d19c;
}

.wordle-cell.red {
  background: rgba(231, 76, 60, 0.2);
  color: var(--danger);
}

.wordle-cell .material-symbols-outlined {
  font-size: 1rem !important;
}

.wordle-hint-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: rgba(208, 188, 255, 0.08);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}

.wordle-hint-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.wordle-result-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: rgba(31, 31, 41, 0.6);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}

.wordle-answer {
  display: flex;
  gap: 14px;
  align-items: center;
}

.wordle-answer img {
  width: 64px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
}

.wordle-answer strong {
  display: block;
  color: var(--text);
}

.wordle-answer span {
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .wordle-row {
    grid-template-columns: 140px repeat(7, minmax(64px, 1fr));
  }
}

.match-shell {
  --text: #e4e1f0;
  --text-soft: #cbc3d7;
  display: grid;
  gap: 16px;
  padding: 24px;
}

.match-start,
.match-share-section {
  display: grid;
  gap: 14px;
  justify-items: start;
  max-width: 480px;
}

.match-start h2,
.match-share-section h2 {
  margin: 0;
  color: var(--text);
}

.match-start p {
  margin: 0;
  color: var(--text-soft);
}

.match-share-link-box {
  display: flex;
  gap: 8px;
  width: 100%;
}

.match-share-link-box input {
  flex: 1;
  padding: 10px 14px;
  background: #121221;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  color: var(--text);
}

.match-waiting {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.match-waiting-dots {
  display: inline-flex;
  gap: 4px;
}

.match-waiting-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: match-dot-pulse 1.2s ease-in-out infinite;
}

.match-waiting-dots span:nth-child(2) { animation-delay: 0.15s; }
.match-waiting-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes match-dot-pulse {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1.15); }
}

.match-results {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.match-score-circle {
  --score: 50;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: conic-gradient(var(--primary) calc(var(--score) * 1%), rgba(255, 255, 255, 0.08) 0);
}

.match-score-circle::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #14141f;
}

.match-score-circle span {
  position: relative;
  font: 800 2rem/1 Manrope, Inter, sans-serif;
  color: var(--text);
}

.match-names-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--text);
  font-weight: 600;
}

.match-names-row .material-symbols-outlined {
  color: var(--secondary);
}

.match-cinema-sign {
  color: var(--text-soft);
  margin: 0;
}

.match-movies-section,
.match-diff-section {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 8px;
}

.match-movies-section h3,
.match-diff-section h3 {
  margin: 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.game-shell {
  --text: #e4e1f0;
  --text-soft: #cbc3d7;
  display: grid;
  gap: 16px;
  padding: 24px;
}

.game-menu {
  display: grid;
  gap: 18px;
}

.game-my-rating-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: rgba(208, 188, 255, 0.08);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}

.game-my-rating-card strong {
  font: 800 2rem/1 Manrope, Inter, sans-serif;
  color: var(--text);
}

.game-my-rating-card span {
  color: var(--text-soft);
}

.game-join-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.game-join-row .input-wrap {
  flex: 1;
  min-width: 200px;
}

.game-leaderboard {
  display: grid;
  gap: 8px;
}

.game-leaderboard h2 {
  margin: 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
}

.game-lb-row {
  display: grid;
  grid-template-columns: 32px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}

.game-lb-rank {
  text-align: center;
  color: var(--text-muted);
  font-weight: 700;
}

.game-lb-name {
  color: var(--text);
  font-weight: 600;
}

.game-lb-rating {
  color: var(--primary);
  font-weight: 800;
}

.game-search {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 30px 0;
  text-align: center;
  color: var(--text-soft);
}

.game-search-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(208, 188, 255, 0.2);
  border-top-color: var(--primary);
  animation: game-spin 0.9s linear infinite;
}

@keyframes game-spin {
  to { transform: rotate(360deg); }
}

.game-lobby-code {
  font: 800 1.6rem/1 Manrope, Inter, sans-serif;
  letter-spacing: 0.12em;
  color: var(--text);
}

.game-play {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.game-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(208, 188, 255, 0.12);
  color: var(--text);
  font-weight: 800;
  font-size: 1.1rem;
}

.game-timer.is-danger {
  background: rgba(231, 76, 60, 0.2);
  color: var(--danger);
}

.game-movie-card {
  justify-content: center;
}

.game-result {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.game-verdict {
  margin: 0;
  font: 800 1.6rem/1.2 Manrope, Inter, sans-serif;
  color: var(--text);
}

.game-verdict.is-win { color: var(--success); }
.game-verdict.is-lose { color: var(--danger); }
.game-verdict.is-draw { color: var(--warning); }

.game-result-compare {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.game-result-col {
  display: grid;
  gap: 4px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  min-width: 160px;
}

.game-result-col strong {
  color: var(--text);
  font-size: 1.1rem;
}

.game-history-item.is-win { border-color: rgba(88, 214, 141, 0.4); }
.game-history-item.is-lose { border-color: rgba(231, 76, 60, 0.35); }
.game-history-item.is-draw { border-color: rgba(241, 196, 15, 0.35); }

.gift-compose {
  --text: #e4e1f0;
  --text-soft: #cbc3d7;
  display: grid;
  gap: 16px;
  padding: 24px;
  max-width: 620px;
}

.gift-field {
  display: grid;
  gap: 6px;
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.gift-field textarea,
.gift-field input[type="text"],
.gift-field input[type="datetime-local"] {
  padding: 10px 14px;
  background: #121221;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-weight: 400;
}

.gift-themes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
}

.gift-theme {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  color: var(--text-soft);
  font-size: 0.72rem;
  text-align: center;
}

.gift-theme span {
  font-size: 1.4rem;
}

.gift-theme.active {
  border-color: var(--primary);
  background: rgba(208, 188, 255, 0.14);
  color: var(--text);
}

.gift-voice-recorder {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gift-voice-recorder audio {
  height: 36px;
}

.gift-options {
  display: grid;
  gap: 8px;
}

.gift-open-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  /* Standalone unwrap page: stays obsidian in every site theme because the
     text colors below and the per-theme variants are tuned for dark only. */
  background: radial-gradient(circle at 20% 10%, rgba(208, 188, 255, 0.16), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(255, 176, 205, 0.14), transparent 45%),
    #0a0a14;
}

.gift-open-theme-halloween { background-color: #1a0f05; }
.gift-open-theme-christmas,
.gift-open-theme-newyear { background-color: #06140f; }
.gift-open-theme-valentines,
.gift-open-theme-anniversary { background-color: #1a0510; }
.gift-open-theme-birthday { background-color: #150a1a; }
.gift-open-theme-summer { background-color: #0a1418; }
.gift-open-theme-horror { background-color: #0a0505; }

.gift-open-loading {
  color: #cbc3d7;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
}

.gift-open-card {
  width: 100%;
  max-width: 440px;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 32px 24px;
  background: rgba(20, 20, 31, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  text-align: center;
  backdrop-filter: blur(12px);
}

.gift-open-unwrap {
  display: grid;
  justify-items: center;
  gap: 22px;
}

.gift-open-box {
  position: relative;
  width: 140px;
  height: 120px;
  margin-top: 10px;
}

.gift-open-box-base {
  position: absolute;
  bottom: 0;
  width: 140px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 10px;
}

.gift-open-box-lid {
  position: absolute;
  top: 22px;
  width: 148px;
  left: -4px;
  height: 26px;
  background: var(--secondary);
  border-radius: 8px;
  transform-origin: top center;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gift-open-unwrap.opened .gift-open-box-lid {
  transform: rotateX(115deg) translateY(-10px);
}

.gift-open-box-ribbon-h {
  position: absolute;
  bottom: 0;
  left: 60px;
  width: 20px;
  height: 80px;
  background: rgba(255, 255, 255, 0.55);
}

.gift-open-box-ribbon-v {
  position: absolute;
  top: 22px;
  left: 0;
  width: 140px;
  height: 10px;
  background: rgba(255, 255, 255, 0.55);
}

.gift-open-box-bow {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
}

.gift-open-mascot {
  color: #e4e1f0;
  font-weight: 600;
  max-width: 32ch;
}

.gift-open-content {
  display: grid;
  justify-items: center;
  gap: 10px;
  animation: gift-reveal 0.4s ease-out;
}

@keyframes gift-reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.gift-open-greeting,
.gift-open-from {
  margin: 0;
  color: #cbc3d7;
}

.gift-open-poster-wrap {
  width: 160px;
}

.gift-open-poster {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.gift-open-title {
  margin: 0;
  color: #e4e1f0;
  font: 800 1.4rem/1.3 Manrope, Inter, sans-serif;
}

.gift-open-year {
  color: #9c93ab;
  font-weight: 600;
}

.gift-open-overview {
  color: #cbc3d7;
  line-height: 1.5;
  margin: 0;
}

.gift-open-note {
  padding: 12px 16px;
  background: rgba(208, 188, 255, 0.1);
  border-radius: 12px;
  color: #e4e1f0;
}

.gift-open-voice {
  display: grid;
  gap: 6px;
  width: 100%;
}

.gift-open-voice-label {
  color: #cbc3d7;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.gift-open-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 6px;
}

.profile-hero {
  --text: #e4e1f0;
  --text-soft: #cbc3d7;
  position: relative;
  overflow: hidden;
  padding: 0 0 24px;
  margin-bottom: 28px;
}

.profile-hero-cover {
  height: 170px;
  background: linear-gradient(135deg, rgba(208, 188, 255, 0.28), rgba(255, 176, 205, 0.2)), var(--cover-image, none);
  background-size: cover;
  background-position: center;
}

.profile-hero-info {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0 28px;
  margin-top: -46px;
}

.profile-hero-avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 4px solid #14141f;
  background: var(--surface-high);
  display: grid;
  place-items: center;
  font: 800 2.3rem 'Manrope', sans-serif;
  color: var(--primary);
  overflow: hidden;
  box-shadow: 0 0 30px rgba(208, 188, 255, 0.25);
  flex-shrink: 0;
}

.profile-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-hero-text {
  flex: 1;
  min-width: 200px;
  padding-bottom: 8px;
}

.profile-hero-text h1 {
  margin: 0 0 6px;
  font: 800 1.6rem/1.2 'Manrope', sans-serif;
  color: var(--text);
}

.profile-hero-text p {
  margin: 0;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.profile-hero-actions {
  display: flex;
  gap: 10px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.profile-columns {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr);
  gap: 24px;
  margin-bottom: 28px;
  align-items: start;
}

.profile-col-side,
.profile-col-main {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.profile-stat-grid > div {
  display: grid;
  justify-items: center;
  padding: 14px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
  border-radius: 12px;
}

.profile-stat-grid strong {
  font: 800 1.4rem 'Manrope', sans-serif;
  color: var(--primary);
}

.profile-stat-grid span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: center;
}

.profile-fav-hero {
  --text: #e4e1f0;
  --text-soft: #cbc3d7;
  position: relative;
  min-height: 240px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--fav-image, none) center / cover, var(--surface-mid);
  border: 1px solid var(--stroke);
}

.profile-fav-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 10, 20, 0.92) 15%, transparent 75%);
}

.profile-fav-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--stroke);
  border-radius: 6px;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}

.profile-fav-info {
  position: relative;
  z-index: 2;
  padding: 22px;
}

.profile-fav-info h2 {
  margin: 0 0 6px;
  color: #fff;
  font: 800 1.5rem/1.3 'Manrope', sans-serif;
}

.profile-fav-info p {
  margin: 0;
  color: var(--text-soft);
}

.profile-activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.profile-activity-empty {
  grid-column: 1 / -1;
}

.profile-activity-card {
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-mid);
  border: 1px solid var(--stroke);
  transition: transform 160ms var(--ease), border-color 160ms var(--ease);
}

.profile-activity-card:hover {
  transform: translateY(-3px);
  border-color: var(--stroke-strong);
}

.profile-activity-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.profile-activity-card > div {
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.profile-activity-card strong {
  color: var(--text);
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-activity-card span {
  color: var(--text-muted);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .profile-columns {
    grid-template-columns: 1fr;
  }
  .profile-hero-info {
    flex-direction: column;
    align-items: flex-start;
  }
  .profile-hero-actions {
    width: 100%;
  }
}

.title-picker {
  position: relative;
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.title-picker-results {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 4px;
  max-height: 280px;
  overflow-y: auto;
}

.title-picker-results:empty {
  display: none;
}

.title-picker-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  color: var(--text);
  text-align: left;
  font: inherit;
}

.title-picker-result:hover {
  background: rgba(208, 188, 255, 0.12);
  border-color: var(--stroke-strong);
}

.title-picker-result img {
  width: 32px;
  height: 46px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.title-picker-result small {
  margin-left: auto;
  color: var(--text-muted);
  flex-shrink: 0;
}

.title-picker-status {
  padding: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.title-picker-selected {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(208, 188, 255, 0.08);
  border: 1px solid var(--stroke);
  border-radius: 12px;
}

.title-picker-selected img {
  width: 36px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.title-picker-selected span {
  flex: 1;
  color: var(--text);
  font-weight: 700;
}

.title-picker-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.title-picker-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
  border-radius: 999px;
}

.title-picker-chip img {
  width: 26px;
  height: 38px;
  object-fit: cover;
  border-radius: 4px;
}

.title-picker-chip span {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.title-picker-empty-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.profile-image-upload {
  display: grid;
  gap: 8px;
}

.profile-field-label {
  color: var(--text-soft);
  font-weight: 700;
  font-size: 0.9rem;
}

.profile-image-upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-image-upload-preview {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface-high);
  border: 1px solid var(--stroke);
}

.profile-image-upload-preview.is-round {
  border-radius: 50%;
}

.profile-image-upload-preview.is-hidden {
  display: none;
}

.profile-upload-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-upload-btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

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

/* Picksy2 polish: Google auth, trends, footer */
.google-auth-wrap {
  position: relative;
  display: grid;
  min-height: 48px;
  width: min(100%, 400px);
  margin-inline: auto;
}
.google-auth-wrap .google-fallback {
  width: 100%;
  justify-content: center;
  border-color: rgba(255,255,255,.16);
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(208,188,255,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 16px 36px rgba(0,0,0,.22);
}
.google-auth-wrap .google-fallback.google-ready { border-color: rgba(208,188,255,.32); }
.google-auth-wrap .google-signin-slot {
  position: absolute;
  inset: 0;
  opacity: 0.015;
  z-index: 2;
  overflow: hidden;
  border-radius: 999px;
}
.google-auth-wrap .google-signin-slot iframe,
.google-auth-wrap .google-signin-slot > div {
  width: 100% !important;
  height: 48px !important;
}
.selection-trending,
.trends-section { margin-top: 28px; }
.compact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.site-banner,
.site-promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 22px;
}
.site-banner strong,
.site-promo-banner strong { color: var(--text); }
.site-promo-banner {
  background: linear-gradient(135deg, rgba(208,188,255,.16), rgba(255,176,205,.10));
}
.site-promo-banner > div {
  display: grid;
  gap: 3px;
  flex: 1;
}
.site-promo-banner small { color: var(--text-muted); }
.site-promo-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(255,255,255,.10);
  font-size: 1.35rem;
}
.announcement-banner { border-color: rgba(208,188,255,.28); }
.site-banner-bottom { margin-top: 24px; }
.site-popup-content {
  display: grid;
  gap: 14px;
  text-align: center;
  max-width: 520px;
}
.site-popup-icon { font-size: 2rem; }
.auth-mode .site-banner,
.auth-mode .site-promo-banner {
  max-width: 560px;
  margin: 0 auto 24px;
  padding: 18px 24px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.auth-mode .site-promo-banner {
  justify-content: flex-start;
  text-align: left;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.1));
  position: relative;
  overflow: hidden;
}
.auth-mode .site-promo-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #ec4899);
}
.auth-mode .site-promo-banner strong {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
}
.auth-mode .site-promo-banner .site-promo-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  margin-right: 12px;
}
.auth-mode .site-promo-banner small {
  display: block;
  opacity: 0.8;
  margin-top: 4px;
}
.auth-mode .site-banner-bottom { display: none; }
.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 18px 28px;
  align-items: center;
  margin: 42px 0 8px;
  padding: 24px;
  border-radius: 28px;
}
.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-footer-brand strong {
  display: block;
  font: 900 1.15rem/1 Manrope, Inter, sans-serif;
}
.site-footer-brand small,
.site-footer-copy { color: var(--text-muted); }
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 18px;
}
.site-footer-copy {
  grid-column: 1 / -1;
  font-size: .85rem;
  border-top: 1px solid var(--stroke);
  padding-top: 14px;
}
@media (max-width: 760px) {
  .compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-banner, .site-promo-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .site-footer-brand, .site-footer-links { justify-content: center; }
}


/* v20260706g — polished auth + 404 + subscription cards */
.not-found-screen {
  min-height: min(760px, calc(100vh - 80px));
  display: grid;
  place-items: center;
  padding: clamp(34px, 7vw, 92px) 16px;
}
.not-found-card {
  position: relative;
  width: min(760px, 100%);
  padding: clamp(30px, 6vw, 64px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.not-found-card::before,
.not-found-card::after,
.auth-screen::before,
.auth-screen::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(4px);
  opacity: .7;
}
.not-found-card::before { inset: -30% auto auto -12%; width: 280px; height: 280px; background: radial-gradient(circle, rgba(139,92,246,.28), transparent 68%); z-index: -1; }
.not-found-card::after { right: -12%; bottom: -28%; width: 320px; height: 320px; background: radial-gradient(circle, rgba(56,189,248,.22), transparent 70%); z-index: -1; }
.not-found-card h1 {
  margin: 8px 0 0;
  font: 900 clamp(4.4rem, 15vw, 9rem)/.9 Manrope, Inter, sans-serif;
  letter-spacing: -.08em;
  background: linear-gradient(135deg, #f8fafc, #c4b5fd 45%, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.not-found-card h2 { margin: 10px 0 0; font: 850 clamp(1.45rem, 4vw, 2.25rem)/1.1 Manrope, Inter, sans-serif; }
.not-found-card p { max-width: 54ch; margin: 14px auto 26px; color: var(--text-soft); line-height: 1.7; }
.not-found-orbit { width: 112px; height: 112px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 32px; background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(56,189,248,.10)); border: 1px solid rgba(255,255,255,.13); box-shadow: 0 24px 70px rgba(0,0,0,.28); position: relative; }
.not-found-orbit .material-symbols-outlined { font-size: 48px; color: #d8b4fe; font-variation-settings: "FILL" 1, "wght" 650, "GRAD" 0, "opsz" 48; }
.not-found-orbit i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #67e8f9; box-shadow: 0 0 18px #67e8f9; animation: nfOrbit 5s linear infinite; }
.not-found-orbit i:nth-child(2) { animation-delay: -1.6s; background: #c084fc; box-shadow: 0 0 18px #c084fc; }
.not-found-orbit i:nth-child(3) { animation-delay: -3.2s; background: #f0abfc; box-shadow: 0 0 18px #f0abfc; }
@keyframes nfOrbit { from { transform: rotate(0deg) translateX(66px) rotate(0deg); } to { transform: rotate(360deg) translateX(66px) rotate(-360deg); } }
.button-row.center { justify-content: center; }

.auth-screen::before { top: 8%; left: 8%; width: 340px; height: 340px; background: radial-gradient(circle, rgba(139,92,246,.24), transparent 66%); }
.auth-screen::after { right: 4%; bottom: 6%; width: 380px; height: 380px; background: radial-gradient(circle, rgba(14,165,233,.18), transparent 68%); }
.auth-card {
  border-color: rgba(255,255,255,.14);
  background: linear-gradient(145deg, rgba(16,18,32,.84), rgba(10,10,20,.72));
  box-shadow: 0 32px 120px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(26px) saturate(140%);
}
.auth-card::before { background: linear-gradient(90deg, transparent, rgba(192,132,252,.44), rgba(96,165,250,.34), transparent); opacity: .9; }
.auth-brand .brand-mark { width: 64px; height: 64px; font-size: 34px; border-radius: 20px; box-shadow: 0 18px 48px rgba(139,92,246,.34); }
.auth-brand strong { font-size: 1.85rem; background: linear-gradient(135deg, #fff, #c4b5fd 55%, #7dd3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-form h1 { font-size: clamp(1.9rem, 4vw, 2.55rem); letter-spacing: -.04em; }
.auth-form p { font-size: 1rem; line-height: 1.6; }
.google-login-wrap { position: relative; min-height: 48px; }
.auth-google-btn { width: 100%; justify-content: center; }
.auth-language { z-index: 10; backdrop-filter: blur(18px); }

.plan-card { box-shadow: 0 18px 55px rgba(0,0,0,.20); }
.plan-card:hover { transform: translateY(-4px); border-color: rgba(167,139,250,.34) !important; box-shadow: 0 24px 74px rgba(139,92,246,.18); }
.duration-selector .btn { min-width: 92px; }
@media (max-width: 560px) {
  .not-found-card .button-row { flex-direction: column; }
  .not-found-card .btn { width: 100%; justify-content: center; }
}

/* v20260706i — stage2 freemium parity gates */
.tier-inline-lock {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(167,139,250,.25);
  border-radius: 16px;
  color: #f8fafc;
  background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(59,130,246,.10));
  cursor: pointer;
  text-align: left;
}
.tier-inline-lock span { display: grid; gap: 2px; flex: 1; }
.tier-inline-lock small { color: var(--text-soft); font-weight: 600; }
.tier-locked { position: relative; overflow: hidden; }
.tier-locked > :not(.tier-locked-banner) { filter: grayscale(.35); opacity: .52; }
.tier-locked-banner {
  position: absolute;
  inset: auto 14px 14px 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, rgba(139,92,246,.92), rgba(59,130,246,.86));
  box-shadow: 0 18px 44px rgba(59,130,246,.22);
  cursor: pointer;
}
.tier-locked-banner span { display: grid; gap: 2px; }
.tier-locked-banner small { color: rgba(255,255,255,.76); }
.visibility-grid-locked .switch-row:nth-child(1),
.visibility-grid-locked .switch-row:nth-child(2),
.visibility-grid-locked .switch-row:nth-child(4),
.visibility-grid-locked .switch-row:nth-child(5),
.visibility-grid-locked .switch-row:nth-child(6) { opacity: .58; }
.upgrade-modal-body { display: grid; gap: 18px; max-width: 900px; }
.upgrade-modal-body h2 { margin: 0; font: 850 clamp(1.6rem, 4vw, 2.25rem)/1.1 Manrope, Inter, sans-serif; }
.upgrade-modal-body p { margin: 0; color: var(--text-soft); line-height: 1.65; }
.upgrade-duration { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; margin: 0; }
.trial-banner-button { width: 100%; justify-content: center; border: 0; cursor: pointer; }
.upgrade-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.upgrade-plan-card { display: grid; gap: 12px; padding: 18px; border: 1px solid rgba(255,255,255,.10); border-radius: 20px; background: rgba(255,255,255,.045); }
.upgrade-plan-card.is-pro { border-color: rgba(192,132,252,.34); background: linear-gradient(160deg, rgba(139,92,246,.16), rgba(59,130,246,.08)); }
.upgrade-plan-card h3 { margin: 0; font: 850 1.35rem/1.1 Manrope, Inter, sans-serif; }
.upgrade-price { font-size: 2rem; font-weight: 900; color: #86efac; }
.upgrade-price small { color: var(--text-soft); font-size: .9rem; font-weight: 700; }
.upgrade-plan-card ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--text-soft); }
.upgrade-plan-card li { display: flex; align-items: center; gap: 8px; }

/* v20260706j — stage3 billing/banners/sidebar hardening */
.side-nav { overflow-y: auto; scrollbar-width: thin; }
.nav-list { gap: 7px; }
.nav-item { min-height: 42px; padding-block: 9px; }
.nav-list-compact { margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.07); }
.nav-item-premium { background: linear-gradient(135deg, rgba(139,92,246,.24), rgba(59,130,246,.12)); border-color: rgba(167,139,250,.28); }
.side-card { display: none !important; }
@media (min-height: 900px) { .side-card { display: grid !important; padding: 14px; margin-top: 10px; } }
.subscription-hero { display: grid; gap: 20px; padding: clamp(22px,4vw,36px); border-radius: 28px; background: radial-gradient(circle at top left, rgba(139,92,246,.22), transparent 44%), linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.035)); }
.subscription-badge { width: fit-content; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; color: #e9d5ff; background: rgba(139,92,246,.16); border: 1px solid rgba(167,139,250,.26); font-weight: 850; }
.subscription-hero h2 { margin: 0; font: 900 clamp(2rem,5vw,3.6rem)/1 Manrope,Inter,sans-serif; letter-spacing: -.05em; }
.subscription-hero p { max-width: 760px; color: var(--text-soft); line-height: 1.65; }
.subscription-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 12px; }
.subscription-stats div { padding: 16px; border-radius: 18px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); }
.subscription-stats strong { display: block; font-size: 1.45rem; color: #c4b5fd; }
.subscription-stats span { color: var(--text-muted); font-size: .88rem; }
.plan-console { display: grid; gap: 22px; padding: clamp(20px,3vw,28px); }
.subscription-duration { justify-content: flex-end; margin: 0; }
.production-plan-grid { align-items: stretch; }
.production-plan-card { min-height: 100%; gap: 14px; border-radius: 26px; border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.045); }
.production-plan-card.is-current { outline: 2px solid rgba(52,211,153,.42); }
.production-plan-card.is-pro { background: linear-gradient(160deg, rgba(139,92,246,.18), rgba(59,130,246,.07)); border-color: rgba(192,132,252,.34); }
.plan-ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 999px; background: linear-gradient(135deg,#8b5cf6,#ec4899); color: #fff; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.plan-price-line { font-size: clamp(2rem,5vw,3rem); font-weight: 950; color: #34d399; }
.plan-price-line small { color: var(--text-soft); font-size: .9rem; font-weight: 750; }
.plan-feature-list { display: grid; gap: 9px; padding: 0; margin: 0 0 8px; list-style: none; flex: 1; }
.plan-feature-list li { display: flex; gap: 9px; align-items: center; color: #f8fafc; }
.plan-feature-list li.muted { color: rgba(255,255,255,.42); }
.plan-feature-list .material-symbols-outlined { color: #34d399; }
.plan-feature-list li.muted .material-symbols-outlined { color: rgba(255,255,255,.26); }
.premium-receipt-list { display: grid; gap: 12px; }
.receipt-row { display: flex; justify-content: space-between; gap: 14px; padding: 16px; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); cursor: pointer; }
.receipt-row > div { display: grid; gap: 4px; }
.receipt-row small { color: var(--text-muted); }
.status-pill { display: inline-flex; align-items: center; justify-content: center; padding: 5px 10px; border-radius: 999px; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.status-pending { background: rgba(245,158,11,.14); color: #fbbf24; }
.status-approved { background: rgba(16,185,129,.14); color: #34d399; }
.status-rejected, .status-expired { background: rgba(239,68,68,.14); color: #f87171; }
.admin-payment-table { display: grid; gap: 12px; }
.admin-payment-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.035); }
.admin-payment-main { display: grid; gap: 5px; min-width: 0; }
.admin-payment-main small { color: var(--text-muted); word-break: break-word; }
.admin-payment-actions { display: flex; align-items: flex-end; justify-content: center; gap: 8px; flex-direction: column; min-width: 150px; }
.payment-filter-tabs { margin: 12px 0 18px; flex-wrap: wrap; }
.site-banner.subscription-banner { border-color: rgba(167,139,250,.24); background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(59,130,246,.08)); }
.auth-mode .site-banner, .auth-mode .site-promo-banner { display: none !important; }
@media (max-width: 720px) { .receipt-row, .admin-payment-row { flex-direction: column; } .admin-payment-actions { align-items: stretch; min-width: 0; } .subscription-duration { justify-content: flex-start; } }

/* v20260706k — stage8 profile gates + detail/404/subscription polish */
.not-found-screen { min-height: calc(100vh - 120px); padding: clamp(24px,5vw,56px); }
.not-found-card { max-width: 980px; padding: clamp(28px,5vw,56px); border-radius: 34px; background: radial-gradient(circle at 20% 0%, rgba(139,92,246,.24), transparent 36%), linear-gradient(155deg, rgba(255,255,255,.10), rgba(255,255,255,.035)); }
.not-found-card h1 { font-size: clamp(4.5rem,15vw,9rem); line-height: .82; letter-spacing: -.08em; margin: 12px 0; background: linear-gradient(135deg,#fff,#c4b5fd,#60a5fa); -webkit-background-clip:text; color: transparent; }
.not-found-card p { max-width: 620px; margin-inline: auto; color: var(--text-soft); font-size: 1.05rem; line-height: 1.7; }
.upgrade-modal-body { width: min(1080px, calc(100vw - 44px)); max-width: 1080px; gap: 22px; }
.upgrade-plan-grid { grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 18px; }
.upgrade-plan-card { padding: 24px; border-radius: 26px; min-height: 100%; position: relative; overflow: hidden; }
.upgrade-plan-card h3 { font-size: 1.55rem; }
.upgrade-price { font-size: clamp(2.2rem, 5vw, 3.1rem); }
.upgrade-duration .btn, .subscription-duration .btn { min-width: 96px; justify-content: center; }
.trial-banner-button, .trial-banner { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 15px 22px; border-radius: 18px; color: #fff; font-weight: 900; background: linear-gradient(135deg,#10b981,#3b82f6,#8b5cf6); box-shadow: 0 16px 40px rgba(59,130,246,.24), inset 0 1px 0 rgba(255,255,255,.18); }
.trial-banner-button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.aura-swatch.is-locked { position: relative; border-color: rgba(251,191,36,.55); box-shadow: 0 0 0 2px rgba(251,191,36,.12); }
.aura-swatch.is-locked .material-symbols-outlined { font-size: 18px; color: #fff; filter: drop-shadow(0 2px 4px #000); }
.email-verify-card { max-width: 520px; }
.email-verify-card input[name="code"] { text-align: center; letter-spacing: .45em; font-size: 1.6rem; font-weight: 900; }
@media (min-width: 1080px) { .details-dialog:has(.upgrade-modal-body) { max-width: 1140px; } }
@media (max-width: 820px) { .upgrade-plan-grid { grid-template-columns: 1fr; } .upgrade-modal-body { width: 100%; } }


/* v20260706m — AI pick modes, multi-result cards and mobile detail polish */
.pick-mode-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.pick-mode-grid button { min-height:42px; padding:10px 12px; border:1px solid var(--stroke); border-radius:14px; color:var(--text-soft); background:rgba(255,255,255,.045); font-weight:800; text-align:left; cursor:pointer; }
.pick-mode-grid button.active { color:var(--primary-ink); background:linear-gradient(135deg,var(--primary),var(--secondary)); border-color:transparent; box-shadow:0 10px 28px rgba(208,188,255,.22); }
.region-select { display:grid; gap:8px; margin-top:2px; }
.result-panel { display:grid; gap:16px; }
.result-card-alt { background:rgba(255,255,255,.035); border-color:rgba(255,255,255,.08); }
.why-card { margin:10px 0 12px; padding:12px 14px; border:1px solid rgba(139,92,246,.24); border-radius:16px; background:rgba(139,92,246,.10); }
.why-card strong { display:flex; align-items:center; gap:8px; color:var(--text); font-weight:900; }
.why-card p { margin:6px 0 0 !important; color:var(--text-soft); font-size:.96rem; }
@media (max-width: 840px) {
  .detail-hero { min-height:auto; padding:78px 18px 26px; background-position:center top; }
  .detail-hero::after { content:""; position:absolute; inset:auto 0 0; height:46%; background:linear-gradient(0deg,#0a0a14 0%,rgba(10,10,20,0)); pointer-events:none; }
  .detail-headline { width:100%; padding-top:min(44vh,360px); }
  .detail-headline h1 { font-size:clamp(2rem,10vw,3.2rem); }
  .detail-headline p { font-size:1rem; line-height:1.55; }
  .detail-back { top:14px; left:16px; backdrop-filter:blur(12px); }
  .pick-mode-grid { grid-template-columns:1fr; }
}
@media (max-width: 520px) {
  .result-card { padding:16px; }
  .result-card img { max-width:190px; }
  .detail-headline { padding-top:min(52vh,390px); }
  .detail-content-grid { gap:16px; }
}

.detail-headline-wrap { position:relative; z-index:1; display:grid; grid-template-columns:minmax(0,760px) 220px; align-items:end; gap:28px; width:100%; max-width:1040px; }
.detail-mobile-poster { width:min(220px,24vw); aspect-ratio:2/3; object-fit:cover; border-radius:24px; border:1px solid rgba(255,255,255,.18); box-shadow:0 26px 70px rgba(0,0,0,.42); background:var(--surface-mid); }
@media (max-width:840px) {
  .detail-headline-wrap { grid-template-columns:1fr; gap:18px; padding-top:0; }
  .detail-mobile-poster { display:block; width:min(46vw,190px); margin:0 auto 4px; border-radius:20px; }
  .detail-headline { padding-top:0 !important; }
}
@media (min-width:841px) { .detail-mobile-poster { order:2; } }

/* Floating Background Tiles on Landing Hero */
.hero-floating-left,
.hero-floating-right {
  display: none;
  position: absolute;
  top: 42%; /* Raised from 50% */
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

/* Show only on large desktop viewports to prevent overlap with sidebar & hero content */
@media (min-width: 1300px) {
  .hero-floating-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
    left: 24px;
  }

  .hero-floating-right {
    display: flex;
    flex-direction: column;
    gap: 45px;
    right: 24px;
  }
}

@media (min-width: 1450px) {
  .hero-floating-left {
    left: 48px;
  }
  .hero-floating-right {
    right: 48px;
  }
}

.floating-tile {
  opacity: 0;
  width: 110px;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
  transition: filter 0.35s ease;
}

.floating-tile:hover {
  filter: drop-shadow(0 16px 36px var(--glow-hover-color, rgba(208, 188, 255, 0.3)));
}

.tile-yt:hover { --glow-hover-color: rgba(229, 9, 20, 0.45); }
.tile-coffee:hover { --glow-hover-color: rgba(155, 93, 229, 0.45); }
.tile-ig:hover { --glow-hover-color: rgba(255, 0, 127, 0.45); }
.tile-sub:hover { --glow-hover-color: rgba(0, 180, 216, 0.45); }
.tile-ph:hover { --glow-hover-color: rgba(0, 255, 135, 0.45); }

.floating-tile-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.poster-card-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #121221;
}

.poster-card-wrap img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

.poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 20, 0) 40%, rgba(10, 10, 20, 0.55) 100%),
              linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
}

/* Ambient Glow behind Posters */
.tile-glow {
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.16;
  pointer-events: none;
  z-index: 1;
}

.glow-stranger { background: #e50914; }
.glow-wednesday { background: #9b5de5; }
.glow-squid { background: #ff007f; }
.glow-interstellar { background: #00b4d8; }
.glow-breaking { background: #00ff87; }

/* Animations - Decoupled to avoid transform conflicts */
@keyframes heroTileFadeIn {
  from {
    opacity: 0;
    transform: scale(0.82) translateY(45px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes floatY-1 {
  0%, 100% { transform: translateY(0) rotate(-14deg); }
  50% { transform: translateY(-8px) rotate(-11deg); }
}
@keyframes floatY-2 {
  0%, 100% { transform: translateY(0) rotate(6deg); }
  50% { transform: translateY(-11px) rotate(8deg); }
}
@keyframes floatY-3 {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-8px) rotate(-2deg); }
}
@keyframes floatY-4 {
  0%, 100% { transform: translateY(0) rotate(10deg); }
  50% { transform: translateY(-10px) rotate(12deg); }
}
@keyframes floatY-5 {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-8px) rotate(-6deg); }
}

/* Apply Entry Animations (Fade In + Scale) on Outer Container */
.tile-yt {
  animation: heroTileFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.tile-coffee {
  animation: heroTileFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.15s;
}
.tile-ig {
  animation: heroTileFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.30s;
}
.tile-sub {
  animation: heroTileFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.45s;
}
.tile-ph {
  animation: heroTileFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.60s;
}

/* Apply Infinite Floating & Rotations on Inner Container to avoid jumps */
.float-yt {
  animation: floatY-1 4.5s ease-in-out infinite 1.2s;
  transform: rotate(-14deg);
}
.float-coffee {
  animation: floatY-2 4.8s ease-in-out infinite 1.35s;
  transform: rotate(6deg);
}
.float-ig {
  animation: floatY-3 4.2s ease-in-out infinite 1.5s;
  transform: rotate(-4deg);
}
.float-sub {
  animation: floatY-4 4.7s ease-in-out infinite 1.65s;
  transform: rotate(10deg);
}
.float-ph {
  animation: floatY-5 5s ease-in-out infinite 1.8s;
  transform: rotate(-8deg);
}

/* Premium CTA Button styling */
.btn-premium-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #d0bcff 0%, #ffb0cd 100%) !important;
  color: #0a0a14 !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(208, 188, 255, 0.28) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 1;
}

.btn-premium-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.52) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: none;
  z-index: -1;
}

.btn-premium-cta:hover {
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 12px 32px rgba(208, 188, 255, 0.48), 0 0 20px rgba(255, 176, 205, 0.25) !important;
}

.btn-premium-cta:hover::after {
  left: 200%;
  transition: left 0.82s ease-in-out !important;
}

.btn-premium-cta span.material-symbols-outlined {
  transition: transform 0.2s ease-in-out !important;
}

.btn-premium-cta:hover span.material-symbols-outlined {
  transform: translateX(4px) !important;
}


/* v20260707j — premium Google auth button: one polished visible target, hidden GSI click layer */
.google-auth-wrap {
  position: relative;
  min-height: 56px;
  width: min(100%, 440px);
  margin-inline: auto;
  isolation: isolate;
}
.google-auth-wrap .google-fallback {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 42px 1fr 32px;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  color: #f8fafc;
  background:
    linear-gradient(135deg, rgba(255,255,255,.13), rgba(167,139,250,.13) 48%, rgba(56,189,248,.10)),
    rgba(10,10,20,.84);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 18px 48px rgba(0,0,0,.34), 0 0 0 1px rgba(196,181,253,.04);
  font: 850 .98rem/1.1 Inter, Manrope, sans-serif;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.google-auth-wrap .google-fallback:hover,
.google-auth-wrap .google-fallback:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(216,180,254,.40);
  background:
    linear-gradient(135deg, rgba(255,255,255,.17), rgba(192,132,252,.18) 48%, rgba(125,211,252,.14)),
    rgba(12,12,24,.90);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 24px 62px rgba(139,92,246,.18), 0 18px 48px rgba(0,0,0,.38);
}
.google-auth-wrap .google-fallback:active { transform: translateY(0) scale(.99); }
.google-logo {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,.24);
}
.google-logo svg { width: 21px; height: 21px; display: block; }
.google-btn-text { justify-self: center; }
.google-btn-arrow {
  justify-self: end;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #ddd6fe;
  font-size: 18px;
}
.google-auth-wrap .google-signin-slot {
  position: absolute;
  inset: 0;
  z-index: 3;
  min-height: 56px;
  overflow: hidden;
  border-radius: 18px;
  opacity: .001;
}
.google-auth-wrap .google-signin-slot iframe,
.google-auth-wrap .google-signin-slot > div {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 440px !important;
  height: 56px !important;
}
.google-auth-wrap .google-signin-slot:empty { pointer-events: none; }
.google-auth-wrap .google-fallback.google-ready { pointer-events: none; }
.auth-forgot-link { justify-self:end; margin-top:-8px; font-size:.9rem; }
.region-select { padding:12px; border:1px solid var(--stroke); border-radius:18px; background:rgba(255,255,255,.035); }
.region-select select { min-height:46px; border-radius:14px; font-weight:800; }
.compact-tabs button { justify-content:center; }

/* v20260707k — startup landing + premium cinema passport */
.startup-landing-hero{display:grid;grid-template-columns:minmax(0,1.05fr)minmax(320px,.72fr);gap:clamp(24px,5vw,64px);align-items:center;padding:clamp(42px,7vw,96px) 0 clamp(32px,5vw,72px);position:relative}.startup-hero-copy{display:grid;gap:20px;max-width:880px}.startup-hero-copy h1{margin:0;font:900 clamp(3rem,7vw,6.6rem)/.92 Manrope,Inter,sans-serif;letter-spacing:-.075em;text-wrap:balance;background:linear-gradient(135deg,#fff 10%,#ddd6fe 48%,#7dd3fc);-webkit-background-clip:text;background-clip:text;color:transparent}.startup-hero-copy p{max-width:66ch;margin:0;color:var(--text-soft);font-size:clamp(1.05rem,2vw,1.28rem);line-height:1.65}.startup-trust-row{display:flex;flex-wrap:wrap;gap:10px}.startup-trust-row span{display:inline-flex;align-items:center;gap:6px;padding:10px 13px;border:1px solid rgba(255,255,255,.11);border-radius:999px;background:rgba(255,255,255,.045);color:var(--text-soft);font-weight:800}.startup-demo-card{display:grid;gap:18px;padding:22px;background:linear-gradient(145deg,rgba(17,20,37,.86),rgba(8,9,18,.72));box-shadow:0 34px 90px rgba(0,0,0,.45),0 0 80px rgba(139,92,246,.12)}.demo-card-top{display:flex;align-items:center;gap:14px}.demo-orb{width:64px;height:64px;display:grid;place-items:center;border-radius:22px;background:radial-gradient(circle at 30% 20%,#fff,#c4b5fd 36%,#7c3aed);color:#080812;font-weight:950;box-shadow:0 18px 48px rgba(139,92,246,.35)}.demo-card-top strong{display:block;font:900 1.1rem/1.1 Manrope,Inter,sans-serif}.demo-card-top small{color:var(--text-soft)}.demo-poster-row{display:grid;grid-template-columns:118px 1fr;gap:18px;align-items:center}.demo-poster-row img{width:118px;aspect-ratio:2/3;object-fit:cover;border-radius:22px;box-shadow:0 20px 48px rgba(0,0,0,.42)}.demo-poster-row h2{margin:5px 0 8px;font:900 1.65rem/1 Manrope,Inter,sans-serif}.demo-poster-row p{margin:0 0 12px;color:var(--text-soft);line-height:1.55}.startup-section .landing-row-head p{margin:0;color:var(--text-soft)}.mood-preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.mood-preview-card{min-height:150px;padding:22px;text-align:left;display:grid;align-content:start;gap:10px;transition:transform .2s ease,border-color .2s ease}.mood-preview-card:hover{transform:translateY(-4px);border-color:rgba(216,180,254,.34)}.mood-preview-card .material-symbols-outlined{width:44px;height:44px;display:grid;place-items:center;border-radius:16px;background:rgba(208,188,255,.13);color:#d8b4fe}.mood-preview-card strong{font:900 1.1rem/1.1 Manrope,Inter,sans-serif}.mood-preview-card span:not(.material-symbols-outlined){color:var(--text-soft)}.startup-scenario-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:clamp(28px,5vw,64px) 0}.startup-story-card{padding:28px;display:grid;gap:14px;min-height:290px}.startup-story-card h2{margin:0;font:900 clamp(1.7rem,3vw,2.45rem)/1.05 Manrope,Inter,sans-serif}.startup-story-card p{margin:0;color:var(--text-soft);line-height:1.65}.taste-meter{height:12px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden}.taste-meter span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#a78bfa,#22d3ee)}.collection-mini-stack{display:grid;gap:10px;margin-top:auto}.collection-mini-stack span{padding:14px 16px;border-radius:18px;background:linear-gradient(135deg,rgba(255,255,255,.09),rgba(167,139,250,.08));border:1px solid rgba(255,255,255,.1);font-weight:850}.startup-pricing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.startup-price-card{padding:26px;display:grid;gap:14px}.startup-price-card.featured{border-color:rgba(216,180,254,.36);box-shadow:0 26px 80px rgba(139,92,246,.16)}.startup-price-card h3{margin:0;font:900 2rem/1 Manrope,Inter,sans-serif}.startup-price-card p{margin:0;color:var(--text-soft)}.startup-price-card ul{display:grid;gap:10px;padding:0;margin:4px 0 8px;list-style:none}.startup-price-card li{display:flex;align-items:center;gap:8px;color:var(--text-soft)}.startup-final-cta{background:radial-gradient(circle at 50% 0,rgba(167,139,250,.18),transparent 55%),linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.025));border:1px solid rgba(255,255,255,.12);border-radius:32px;padding:clamp(32px,6vw,70px)}.cinema-passport-grid{display:grid;grid-template-columns:minmax(300px,.82fr) minmax(0,1.18fr);gap:22px;align-items:start}.cinema-passport-card{--passport-accent:#d0bcff;position:sticky;top:90px;padding:26px;display:grid;gap:20px;overflow:hidden;background:radial-gradient(circle at 20% 0,color-mix(in srgb,var(--passport-accent) 28%,transparent),transparent 42%),linear-gradient(145deg,rgba(18,20,34,.88),rgba(8,8,18,.76))}.passport-head{display:grid;grid-template-columns:84px 1fr;gap:16px;align-items:center}.passport-avatar{width:84px;height:84px;display:grid;place-items:center;border-radius:28px;background:linear-gradient(135deg,var(--passport-accent),#7dd3fc);box-shadow:0 22px 54px color-mix(in srgb,var(--passport-accent) 28%,transparent);font-size:2.2rem;font-weight:900;color:#0a0a14;overflow:hidden}.passport-avatar img{width:100%;height:100%;object-fit:cover}.passport-head h2{margin:0;font:900 1.7rem/1.05 Manrope,Inter,sans-serif}.passport-head p{margin:8px 0 0;color:var(--text-soft);line-height:1.55}.passport-chip-cloud{display:flex;flex-wrap:wrap;gap:8px}.passport-chip-cloud span{padding:9px 11px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1);font-weight:800}.passport-meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.passport-meta-grid div{padding:14px;border-radius:18px;background:rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.09)}.passport-meta-grid small{display:block;color:var(--text-muted);margin-bottom:5px}.passport-meta-grid strong{font-size:.95rem}.premium-profile-form h3{margin:12px 0 0;font:900 1.05rem/1.2 Manrope,Inter,sans-serif;color:#ddd6fe}@media(max-width:980px){.startup-landing-hero,.startup-scenario-grid,.startup-pricing-grid,.cinema-passport-grid{grid-template-columns:1fr}.cinema-passport-card{position:relative;top:auto}.mood-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.mood-preview-grid,.demo-poster-row,.passport-head,.passport-meta-grid{grid-template-columns:1fr}.startup-hero-copy h1{font-size:clamp(2.45rem,15vw,4rem)}.startup-demo-card,.startup-story-card,.startup-price-card,.cinema-passport-card{padding:20px}}

/* v20260707l — restored Trendings block on startup landing */
.startup-trending-section .landing-row-head{align-items:flex-end}.startup-trending-section .landing-row-head>div{display:grid;gap:8px}.startup-trending-section .landing-row-head h2{margin:0}.startup-trending-section .landing-row-head p{max-width:58ch;margin:0;color:var(--text-soft);line-height:1.55}.startup-trending-section .landing-trending{position:relative}.startup-trending-section .poster-card{box-shadow:0 20px 55px rgba(0,0,0,.28)}

/* v20260707m — clearer positioning, first-wow flow, Daily Pick on landing */
.startup-wow-flow .landing-row-head>div,.startup-daily-section .landing-row-head>div{display:grid;gap:8px}.startup-wow-flow .landing-row-head h2,.startup-daily-section .landing-row-head h2{margin:0}.startup-wow-flow .landing-row-head p,.startup-daily-section .landing-row-head p{margin:0;max-width:66ch;color:var(--text-soft);line-height:1.6}.wow-flow-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.wow-flow-card{padding:22px;display:grid;gap:10px;min-height:190px}.wow-flow-card>span{width:42px;height:42px;display:grid;place-items:center;border-radius:16px;background:linear-gradient(135deg,#a78bfa,#22d3ee);color:#070712;font-weight:950}.wow-flow-card h3{margin:0;font:900 1.15rem/1.1 Manrope,Inter,sans-serif}.wow-flow-card p{margin:0;color:var(--text-soft);line-height:1.55}.wow-actions-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;padding:16px 18px}.wow-actions-row strong{margin-right:4px}.wow-actions-row span{display:inline-flex;align-items:center;gap:6px;padding:9px 11px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.09);color:var(--text-soft);font-weight:800}.startup-daily-card{grid-template-columns:minmax(150px,220px) 1fr;border-color:rgba(216,180,254,.22);background:radial-gradient(circle at 18% 0,rgba(167,139,250,.18),transparent 48%),linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.026));box-shadow:0 26px 80px rgba(0,0,0,.30)}.startup-daily-card img{border-radius:24px}.startup-daily-card .button-row{margin-top:18px}@media(max-width:900px){.wow-flow-grid{grid-template-columns:1fr}.startup-daily-card{grid-template-columns:1fr}.startup-daily-card img{width:100%;max-height:420px;object-fit:cover}}
