:root {
  --bg: #070a12;
  --surface: rgba(15, 22, 38, 0.78);
  --surface-hover: rgba(22, 32, 54, 0.94);
  --surface-solid: #0f1628;
  --border: rgba(148, 163, 184, 0.14);
  --border-hi: rgba(148, 163, 184, 0.28);
  --text: #f8fafc;
  --soft: #cbd5e1;
  --muted: #94a3b8;
  --cyan: #38bdf8;
  --indigo: #6366f1;
  --emerald: #10b981;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --r-xl: 24px;
  --r-lg: 18px;
  --r-md: 13px;
  --r-sm: 9px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
}

.ambient-a {
  width: 500px;
  height: 500px;
  top: -180px;
  left: -140px;
  background: radial-gradient(circle, #38bdf8, transparent 70%);
}

.ambient-b {
  width: 520px;
  height: 520px;
  top: 60px;
  right: -200px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ===================== AUTH GATE ===================== */
.auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  position: relative;
  z-index: 2;
}

.auth-card {
  width: 100%;
  max-width: 430px;
  background: rgba(13, 20, 36, 0.94);
  border: 1px solid var(--border-hi);
  border-radius: 24px;
  padding: 30px 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.auth-brand h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.auth-sub {
  font-size: 0.78rem;
  color: #7dd3fc;
  font-weight: 600;
}

.auth-desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 4px;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
}

.auth-tab {
  padding: 9px 12px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.active {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #fff;
}

.auth-error {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.42);
  color: #fecaca;
  font-size: 0.83rem;
  margin-bottom: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--soft);
}

.field input {
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  padding: 11px 13px;
  outline: none;
}

.field input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.primary-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #fff;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
}

.primary-pill-btn:hover {
  filter: brightness(1.08);
}

.demo-box {
  margin-top: 4px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.24);
  font-size: 0.78rem;
  color: #bae6fd;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-box code {
  background: rgba(2, 6, 23, 0.6);
  padding: 2px 5px;
  border-radius: 5px;
  color: #fff;
}

.demo-btn {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.16);
  color: #e0f2fe;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

/* ===================== CLEAN MINIMAL TOPBAR ===================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 10, 18, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #fff;
  flex-shrink: 0;
}

.brand-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

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

.country-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-hi);
}

.country-flag {
  font-size: 1.05rem;
  line-height: 1;
}

#countrySelect {
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

#countrySelect option {
  background: #0f172a;
  color: #f8fafc;
}

.region-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  flex-shrink: 0;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 6px 0 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--soft);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-btn {
  padding: 4px 9px;
  border-radius: 999px;
  border: none;
  background: rgba(148, 163, 184, 0.14);
  color: var(--soft);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.logout-btn:hover {
  background: rgba(244, 63, 94, 0.22);
  color: #fecdd3;
}

/* ===================== HERO & CHATGPT-STYLE COMPOSER ===================== */
.hero {
  padding: 40px 0 22px;
  text-align: center;
}

.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.85rem, 3.8vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 10px;
}

.lead {
  max-width: 580px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 0.98rem;
}

.composer-wrap {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid var(--border-hi);
  border-radius: 26px;
  padding: 8px 10px 8px 20px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.composer:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15), 0 18px 46px rgba(0, 0, 0, 0.45);
}

.composer.recording {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.2), 0 18px 46px rgba(0, 0, 0, 0.45);
}

#queryInput {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.45;
  padding: 9px 0;
  min-height: 42px;
  max-height: 168px;
  resize: none;
  overflow-y: hidden;
  outline: none;
}

#queryInput.scrollable {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

#queryInput::-webkit-scrollbar {
  width: 6px;
}

#queryInput::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.32);
  border-radius: 999px;
}

#queryInput::placeholder {
  color: #64748b;
}

.composer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  flex-shrink: 0;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, transform 0.14s ease;
}

.icon-btn:hover {
  background: rgba(148, 163, 184, 0.14);
  color: var(--text);
}

.mic-btn {
  color: var(--soft);
}

.mic-btn:hover {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
}

.mic-btn.recording {
  background: var(--rose);
  color: #fff;
  animation: micPulse 1.3s infinite;
}

@keyframes micPulse {
  0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(244, 63, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

.send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.send-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.04);
}

/* Compact Voice Listening Bar */
.voice-bar {
  margin-top: 10px;
  padding: 9px 14px;
  border-radius: 14px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.83rem;
  color: #ffe4e6;
}

.voice-bar-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.voice-waves {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}

.voice-waves i {
  display: block;
  width: 3px;
  height: 6px;
  border-radius: 3px;
  background: #fb7185;
  animation: waveBar 0.8s ease-in-out infinite;
}

.voice-waves i:nth-child(2) { animation-delay: 0.15s; }
.voice-waves i:nth-child(3) { animation-delay: 0.3s; }
.voice-waves i:nth-child(4) { animation-delay: 0.45s; }

@keyframes waveBar {
  0%, 100% { height: 5px; }
  50% { height: 16px; }
}

.voice-bar-right {
  display: flex;
  align-items: center;
  gap: 7px;
}

.voice-lang-select {
  background: rgba(2, 6, 23, 0.72);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  outline: none;
}

.voice-lang-select option {
  background: #0f172a;
}

.voice-stop-btn {
  padding: 5px 12px;
  border-radius: 8px;
  border: none;
  background: var(--rose);
  color: #fff;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

/* Quick Prompt Chips */
.quick-prompts {
  max-width: 760px;
  margin: 14px auto 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.chips-lbl {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 600;
}

.chips-inline {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.prompt-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
  color: var(--soft);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.prompt-chip:hover {
  border-color: var(--cyan);
  color: #fff;
  background: rgba(56, 189, 248, 0.14);
}

/* ===================== SEARCHED STORY SPOTLIGHT CARD ===================== */
.spotlight-section {
  max-width: 960px;
  margin: 8px auto 26px;
}

.spotlight-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(18, 28, 52, 0.88));
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.spotlight-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7dd3fc;
  margin-bottom: 6px;
}

.spotlight-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.spotlight-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.spotlight-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.spotlight-plot {
  font-size: 0.94rem;
  color: var(--soft);
  line-height: 1.6;
  max-width: 820px;
}

.spotlight-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.dna-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
}

/* ===================== CLEAN RESULTS TOOLBAR ===================== */
.results-wrap {
  padding: 6px 0 64px;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.controls-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.controls-left h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.count-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.controls-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.segmented {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.seg-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.seg-btn:hover {
  color: var(--text);
}

.seg-btn.active {
  background: rgba(56, 189, 248, 0.2);
  color: #e0f2fe;
}

.slim-select {
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border);
  color: var(--soft);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.slim-select option {
  background: #0f172a;
}

/* ===================== UNCLUTTERED RESULT CARDS ===================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(335px, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 19px;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.45);
  background: var(--surface-hover);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-meta-line {
  font-size: 0.76rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.type-dot {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
}

.type-dot.doc {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

.type-dot.vid {
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
}

.match-badge {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.card-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  transition: color 0.15s ease;
}

.card:hover .card-title {
  color: #7dd3fc;
}

.rating-inline {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fbbf24;
  white-space: nowrap;
}

.card-why {
  font-size: 0.85rem;
  color: var(--soft);
  line-height: 1.48;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-watch {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 9px;
  font-size: 0.77rem;
  font-weight: 600;
  text-decoration: none;
  color: #f8fafc;
  border: 1px solid transparent;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.platform-pill:hover {
  transform: translateY(-1px);
  filter: brightness(1.16);
}

.access-tag {
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.34);
  color: #e2e8f0;
}

.access-tag.free {
  background: rgba(16, 185, 129, 0.28);
  color: #a7f3d0;
}

.access-tag.rent {
  background: rgba(245, 158, 11, 0.22);
  color: #fde68a;
}

/* ===================== MODAL ===================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 780px;
  max-height: 88vh;
  overflow-y: auto;
  background: #0d1424;
  border: 1px solid var(--border-hi);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65);
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.94);
  color: var(--text);
  font-size: 1.35rem;
  cursor: pointer;
}

.modal-head {
  padding-right: 40px;
  margin-bottom: 14px;
}

.modal-head h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.65rem;
  line-height: 1.18;
  margin: 6px 0 4px;
}

.watch-hero {
  margin: 16px 0 10px;
  padding: 15px 17px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.13), rgba(56, 189, 248, 0.11));
  border: 1px solid rgba(56, 189, 248, 0.34);
}

.watch-hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 11px;
}

.watch-hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
}

.watch-hero-sub {
  font-size: 0.76rem;
  color: #a7f3d0;
  font-weight: 600;
}

.watch-cta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.watch-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border-radius: 11px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
  border: 1px solid transparent;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.watch-cta-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
}

.watch-cta-badge {
  font-size: 0.66rem;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.36);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.stat-card {
  background: rgba(2, 6, 23, 0.52);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}

.fact-k {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}

.fact-v {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--soft);
  margin-top: 2px;
}

.modal-sec {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.modal-sec h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.96rem;
  margin-bottom: 10px;
}

.bars {
  display: grid;
  gap: 9px;
}

.bar-row {
  display: grid;
  grid-template-columns: 115px 1fr 42px;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}

.bar-bg {
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
}

.bar-fg {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 9px;
}

.compare-card {
  background: rgba(2, 6, 23, 0.52);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 11px;
}

.compare-card.active {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.08);
}

.compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 7px;
}

.you-pill {
  font-size: 0.62rem;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.24);
  color: #a7f3d0;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rate-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.rate-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(30, 41, 59, 0.72);
  color: var(--soft);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.rate-btn:hover,
.rate-btn.active {
  background: var(--amber);
  border-color: var(--amber);
  color: #111827;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 9px;
}

.related-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 11px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: inherit;
}

.related-card:hover {
  border-color: var(--cyan);
}

.empty {
  text-align: center;
  padding: 48px 20px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px dashed var(--border-hi);
  border-radius: var(--r-lg);
}

.empty-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.empty-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 6px auto 16px;
  max-width: 420px;
}

.ghost-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-hi);
  background: rgba(30, 41, 59, 0.7);
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.skeleton {
  height: 190px;
  border-radius: var(--r-lg);
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.45) 25%, rgba(51, 65, 85, 0.6) 50%, rgba(30, 41, 59, 0.45) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 150;
  background: #0f172a;
  border: 1px solid var(--cyan);
  color: #f8fafc;
  padding: 10px 15px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.meta-sm {
  font-size: 0.8rem;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

@media (max-width: 680px) {
  .hero { padding: 26px 0 18px; }
  .user-name { display: none; }
  .grid { grid-template-columns: 1fr; }
  .composer { padding: 6px 8px 6px 15px; border-radius: 22px; }
  .controls-right { width: 100%; overflow-x: auto; }
  .modal-box { padding: 20px; }
  .spotlight-card { padding: 16px 18px; }
}
