:root {
  --bg: #18070c;
  --bg-soft: #221016;
  --panel: rgba(40, 15, 24, 0.92);
  --panel-alt: rgba(70, 18, 29, 0.9);
  --line: rgba(255, 255, 255, 0.1);
  --text: #fff5f1;
  --muted: #dcb9bd;
  --accent: #ff5f87;
  --accent-strong: #ff2f67;
  --accent-soft: rgba(255, 95, 135, 0.16);
  --gold: #ffd36d;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 92, 128, 0.26), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 182, 92, 0.15), transparent 22%),
    linear-gradient(180deg, #1a060c 0%, #100307 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 90%);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 2, 5, 0.76);
  backdrop-filter: blur(16px);
}

.modal-overlay.is-hidden {
  display: none;
}

.highlight-modal {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  width: min(920px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(27, 8, 14, 0.96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.highlight-media {
  position: relative;
  min-height: 420px;
  padding: 22px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(12, 5, 8, 0.14), rgba(12, 5, 8, 0.28)),
    radial-gradient(circle at 20% 20%, rgba(255, 212, 110, 0.18), transparent 22%),
    linear-gradient(145deg, #521730 10%, #ee4468 54%, #ffc765 100%);
  isolation: isolate;
  background-size: cover;
  background-position: center;
}

.highlight-media::after {
  content: "";
  position: absolute;
  inset: auto 24px 24px 24px;
  height: 140px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.52)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 60%);
}

.highlight-content {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 34px 30px;
}

.highlight-media-top,
.highlight-media-info {
  position: relative;
  z-index: 2;
}

.highlight-media-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.highlight-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.scene-orb,
.scene-beam {
  position: absolute;
}

.scene-orb {
  border-radius: 50%;
}

.orb-a {
  top: 62px;
  left: 42px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.65), rgba(255, 116, 149, 0.15) 32%, transparent 68%);
  animation: driftA 6.5s ease-in-out infinite;
}

.orb-b {
  right: 30px;
  top: 108px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle at 40% 40%, rgba(255, 212, 111, 0.9), rgba(255, 182, 93, 0.14) 30%, transparent 68%);
  animation: driftB 7.2s ease-in-out infinite;
}

.orb-c {
  left: 120px;
  bottom: 92px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 77, 123, 0.18), rgba(112, 18, 51, 0.4) 35%, transparent 72%);
  animation: pulseGlow 4.6s ease-in-out infinite;
}

.scene-beam {
  top: -20%;
  left: 48%;
  width: 220px;
  height: 140%;
  transform: rotate(18deg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0));
  opacity: 0.3;
  mix-blend-mode: screen;
  animation: sweep 5.8s linear infinite;
}

.highlight-media-info {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(10, 4, 7, 0.28);
  backdrop-filter: blur(14px);
}

.highlight-media-info h3,
.highlight-media-info p {
  margin: 0;
}

.highlight-media-info h3 {
  margin: 4px 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
}

.highlight-media-info p:last-child {
  color: #ffe8ee;
}

.highlight-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.highlight-content h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1;
}

.countdown-wrap {
  display: flex;
  align-items: start;
}

.countdown-ring {
  --progress: 0deg;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(23, 7, 12, 0.96) 58%, transparent 60%),
    conic-gradient(#ff5f87 var(--progress), rgba(255, 255, 255, 0.1) 0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.countdown-ring strong,
.countdown-ring span {
  grid-area: 1 / 1;
}

.countdown-ring strong {
  transform: translateY(-4px);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.65rem;
}

.countdown-ring span {
  transform: translateY(18px);
  color: var(--muted);
  font-size: 0.78rem;
}

.highlight-points,
.highlight-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-ticker {
  padding: 12px 14px;
  border-left: 3px solid rgba(255, 95, 135, 0.7);
  border-radius: 14px;
  color: #ffe5eb;
  background: rgba(255, 255, 255, 0.04);
}

.highlight-actions .ghost-button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

@keyframes driftA {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(12px, -18px, 0) scale(1.05);
  }
}

@keyframes driftB {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-14px, 14px, 0) scale(0.96);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.95;
  }
}

@keyframes sweep {
  0% {
    transform: translateX(-30%) rotate(18deg);
  }
  100% {
    transform: translateX(34%) rotate(18deg);
  }
}

.highlight-modal {
  display: block;
  width: min(320px, calc(100vw - 28px));
  overflow: visible;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top center, rgba(255, 95, 135, 0.26), transparent 34%),
    linear-gradient(180deg, rgba(67, 13, 26, 0.98), rgba(32, 8, 15, 0.98));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.44);
}

.assistant-modal-card {
  position: relative;
  display: grid;
  gap: 0;
}

.assistant-modal-card.is-processing .assistant-panel,
.assistant-modal-card.is-processing .assistant-avatar-wrap {
  filter: blur(2px);
  opacity: 0.32;
  pointer-events: none;
}

.assistant-avatar-wrap {
  position: absolute;
  top: -34px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
}

.assistant-avatar {
  width: 74px;
  height: 74px;
  border: 4px solid rgba(67, 13, 26, 0.98);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18)),
    url("./images/0411.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.assistant-status {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 14px;
  height: 14px;
  border: 2px solid #ffe9d6;
  border-radius: 50%;
  background: #d3ff57;
}

.assistant-panel {
  padding: 26px 18px 18px;
}

.assistant-intro {
  position: relative;
  padding-top: 52px;
  text-align: center;
  color: #ffe9df;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}

.assistant-cover {
  position: relative;
  overflow: hidden;
  height: 118px;
  margin: -12px -4px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(11, 5, 8, 0.06), rgba(11, 5, 8, 0.58)),
    url("./images/imgi_180_overlay_over_eighteen_variant1.462b.jpg");
  background-size: cover;
  background-position: center 18%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.assistant-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 35%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.22));
}

.assistant-cover-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #fff0f4;
  background: rgba(11, 5, 8, 0.34);
  font-size: 0.78rem;
}

.assistant-intro h2,
.assistant-step h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.assistant-intro h2 {
  font-size: 1.65rem;
  line-height: 1.05;
}

.assistant-intro p {
  margin: 8px 0 0;
  color: rgba(255, 234, 226, 0.72);
  font-size: 1rem;
}

.assistant-step {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(0, 0, 0, 0.08)),
    rgba(24, 7, 12, 0.18);
}

.assistant-step h3 {
  text-align: center;
  font-size: 1.55rem;
  color: #fff1ea;
}

.assistant-options {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.assistant-option {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  color: rgba(255, 234, 226, 0.88);
  background: rgba(255, 255, 255, 0.045);
  font: 700 1.15rem/1 "DM Sans", sans-serif;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.assistant-option:hover,
.assistant-option.is-selected {
  border-color: rgba(255, 95, 135, 0.38);
  background: linear-gradient(180deg, rgba(255, 95, 135, 0.2), rgba(255, 95, 135, 0.08));
  transform: translateY(-1px);
}

.assistant-footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 18px;
}

.assistant-dots {
  display: flex;
  gap: 8px;
}

.assistant-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 231, 220, 0.28);
}

.assistant-dot.is-active {
  background: #ffb6c6;
}

.assistant-skip {
  border: 0;
  padding: 0;
  color: rgba(255, 241, 234, 0.82);
  background: transparent;
  font: 500 1rem/1 "DM Sans", sans-serif;
  cursor: pointer;
}

.assistant-skip[disabled] {
  opacity: 0.58;
  cursor: not-allowed;
}

.assistant-hint {
  margin: 0;
  color: rgba(255, 227, 219, 0.56);
  font-size: 0.84rem;
}

.assistant-processing {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  background: rgba(24, 7, 12, 0.52);
  backdrop-filter: blur(10px);
  transition: opacity 180ms ease;
}

.assistant-modal-card.is-processing .assistant-processing {
  opacity: 1;
}

.assistant-processing-ring,
.assistant-processing-core {
  grid-area: 1 / 1;
  border-radius: 50%;
}

.assistant-processing-ring {
  width: 88px;
  height: 88px;
  border: 1px solid rgba(255, 182, 198, 0.55);
  animation: assistantPulse 1.3s ease-out infinite;
}

.assistant-processing-ring.ring-delay {
  animation-delay: 0.35s;
}

.assistant-processing-core {
  width: 24px;
  height: 24px;
  background: radial-gradient(circle, #ffd2dc, #ff6e93 65%, #ff3e72 100%);
  box-shadow: 0 0 22px rgba(255, 95, 135, 0.42);
  animation: assistantCore 0.95s ease-in-out infinite;
}

.assistant-processing p {
  grid-area: 2 / 1;
  margin: 0;
  color: #fff1f4;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

@keyframes assistantPulse {
  0% {
    transform: scale(0.72);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.24);
    opacity: 0;
  }
}

@keyframes assistantCore {
  0%,
  100% {
    transform: scale(0.92);
  }
  50% {
    transform: scale(1.12);
  }
}

@media (max-width: 640px) {
  .highlight-modal {
    width: min(300px, calc(100vw - 24px));
    border-radius: 18px;
  }

  .assistant-avatar {
    width: 68px;
    height: 68px;
  }

  .assistant-intro h2 {
    font-size: 1.42rem;
  }

  .assistant-cover {
    height: 104px;
    margin: -8px -2px 16px;
    border-radius: 16px;
  }

  .assistant-step h3 {
    font-size: 1.35rem;
  }

  .assistant-option {
    padding: 13px 14px;
    font-size: 1rem;
  }

  .assistant-processing-ring {
    width: 74px;
    height: 74px;
  }
}

.page-shell {
  width: min(1480px, calc(100% - 32px));
  margin: 16px auto;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(24, 7, 12, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent),
    linear-gradient(135deg, #ff8a45, #ff2f67);
}

.brand-lockup h1,
.hero-copy h2,
.panel-heading h2,
.panel-accent h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 4px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffb1c1;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.nav-link,
.pill,
.chip,
.ghost-button,
.option-card {
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.nav-link {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 320px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.searchbar input,
input[type="range"] {
  width: 100%;
}

.searchbar input {
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
}

.searchbar input::placeholder {
  color: #c497a1;
}

.ghost-button,
.pill,
.chip,
.option-card {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  font: inherit;
}

.ghost-button,
.pill,
.chip {
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.ghost-button-wide {
  width: 100%;
  justify-content: center;
}

.ghost-button:hover,
.pill:hover,
.chip:hover,
.option-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
}

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

.sidebar {
  position: sticky;
  top: 112px;
  align-self: start;
  display: grid;
  gap: 16px;
}

.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel-accent {
  background:
    linear-gradient(180deg, rgba(255, 111, 97, 0.16), transparent),
    var(--panel-alt);
}

.filter-group + .filter-group {
  margin-top: 20px;
}

.filter-summary,
.filter-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-summary {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.filter-summary span {
  color: var(--muted);
  font-size: 0.92rem;
}

.filter-summary strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
}

.filter-actions {
  margin-top: 20px;
}

.filter-label,
.range-head span,
.creator-meta,
.creator-subline,
.creator-blurb,
.results-copy,
.metric-grid span {
  color: var(--muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip.is-selected,
.pill.is-active {
  border-color: rgba(255, 95, 135, 0.45);
  background: linear-gradient(180deg, rgba(255, 95, 135, 0.24), rgba(255, 95, 135, 0.12));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.stacked-options {
  display: grid;
  gap: 10px;
}

.option-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  text-align: left;
  cursor: pointer;
}

.option-card small {
  color: var(--muted);
}

.option-card.is-selected {
  border-color: rgba(255, 95, 135, 0.45);
  background: rgba(255, 95, 135, 0.14);
}

.range-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

input[type="range"] {
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, #ffa24e 100%);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

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

.metric-grid strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
}

.content {
  min-width: 0;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 211, 109, 0.12), transparent 25%),
    radial-gradient(circle at 0% 20%, rgba(255, 95, 135, 0.18), transparent 35%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero-moment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 16px;
  min-height: 360px;
}

.hero-moment-main,
.hero-thumb {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(11, 5, 8, 0.08), rgba(11, 5, 8, 0.38)),
    rgba(39, 13, 20, 0.84);
  background-size: cover;
  background-position: center;
}

.hero-moment-main {
  min-height: 360px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-moment-main::before,
.hero-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.68)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 28%);
}

.hero-moment-badges,
.hero-moment-copy,
.hero-thumb::after {
  position: relative;
  z-index: 1;
}

.hero-moment-badges {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.hero-moment-copy {
  max-width: 72%;
}

.hero-moment-copy h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 3vw, 3.3rem);
  line-height: 0.95;
}

.hero-moment-copy .creator-blurb {
  margin-top: 12px;
  color: #f2dce2;
}

.hero-moment-stack {
  position: relative;
  display: grid;
  align-content: center;
  gap: 16px;
}

.hero-thumb {
  min-height: 168px;
  box-shadow: var(--shadow);
}

.hero-thumb-offset {
  transform: translateX(-28px);
}

.hero-thumb::after {
  content: "Highlight";
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff3f6;
  font-size: 0.78rem;
  background: rgba(11, 5, 8, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stats {
  display: grid;
  gap: 12px;
}

.hero-stats div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-stats span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}

.hero-stats strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
}

.featured-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.feature-tile {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(39, 13, 20, 0.82);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.feature-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%);
}

.feature-tile p,
.feature-tile h3 {
  margin: 0;
}

.feature-tile p,
.feature-tile h3,
.feature-meta {
  position: relative;
  z-index: 1;
}

.feature-tile p {
  color: #f7dde4;
}

.feature-tile h3 {
  margin: 6px 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
}

.feature-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 18px 0 14px;
  padding: 0 2px;
}

.toolbar-left,
.toolbar-right,
.active-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.active-filters {
  min-height: 36px;
  margin-bottom: 16px;
}

.filter-pill {
  padding: 7px 12px;
  border: 1px solid rgba(255, 95, 135, 0.28);
  border-radius: 999px;
  color: #ffdce5;
  background: rgba(255, 95, 135, 0.12);
  font-size: 0.88rem;
}

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

.card-grid.is-compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.creator-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(39, 13, 20, 0.86);
  box-shadow: var(--shadow);
  transition: transform 160ms ease, border-color 160ms ease;
}

.creator-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
}

.card-media {
  position: relative;
  aspect-ratio: 0.77;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  background-size: cover;
  background-position: center;
}

.card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 35%),
    linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.72));
}

.media-overlay,
.media-bottom,
.card-body,
.tag-row {
  position: relative;
  z-index: 1;
}

.media-overlay,
.media-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-badge,
.viewer-badge,
.rank-chip,
.activity-chip,
.score-badge,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.live-badge {
  padding: 6px 10px;
  background: linear-gradient(135deg, #ff7345, #ff2758);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.viewer-badge,
.rank-chip,
.activity-chip,
.score-badge,
.tag {
  padding: 6px 10px;
  background: rgba(16, 6, 10, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.rank-chip {
  color: var(--gold);
}

.activity-chip {
  max-width: 60%;
  justify-content: center;
  color: #ffe3ec;
  text-align: center;
}

.card-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.creator-name {
  margin: 0;
  font-size: 1.15rem;
}

.creator-meta {
  margin: 4px 0 0;
  font-size: 0.92rem;
}

.creator-subline {
  margin: -4px 0 0;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.score-badge {
  color: #fff2b5;
}

.creator-blurb {
  margin: 0;
  min-height: 42px;
  line-height: 1.45;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  color: #f8d7df;
  font-size: 0.82rem;
}

.card-grid > .panel {
  grid-column: 1 / -1;
}

.bottom-copy {
  margin-top: 18px;
}

@media (max-width: 1220px) {
  .layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .featured-strip {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .card-grid.is-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .highlight-modal,
  .topbar,
  .hero-card,
  .layout {
    grid-template-columns: 1fr;
  }

  .highlight-modal {
    max-height: none;
    overflow: visible;
  }

  .hero-moment {
    grid-template-columns: 1fr;
  }

  .hero-moment-copy {
    max-width: 100%;
  }

  .hero-moment-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-thumb-offset {
    transform: none;
  }

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

  .topbar {
    top: 10px;
    gap: 14px;
  }

  .main-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar,
  .toolbar-left::-webkit-scrollbar,
  .toolbar-right::-webkit-scrollbar,
  .active-filters::-webkit-scrollbar,
  .hero-stats::-webkit-scrollbar {
    display: none;
  }

  .main-nav,
  .topbar-actions,
  .toolbar {
    flex-wrap: wrap;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  .sidebar {
    position: static;
  }

  .hero-stats {
    grid-auto-flow: column;
    grid-auto-columns: minmax(180px, 1fr);
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .toolbar {
    align-items: stretch;
  }

  .toolbar-left,
  .toolbar-right,
  .active-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .card-grid,
  .card-grid.is-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .searchbar {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    margin: 10px auto 24px;
  }

  .modal-overlay {
    padding: 14px;
  }

  .highlight-modal {
    overflow: visible;
    border-radius: 24px;
  }

  .topbar,
  .panel,
  .hero-card {
    padding: 18px;
    border-radius: 22px;
  }

  .topbar {
    position: sticky;
    top: 8px;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 18px;
  }

  .brand-lockup {
    gap: 8px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    border-radius: 12px;
  }

  .brand-lockup h1 {
    font-size: 1.05rem;
    line-height: 1;
  }

  .brand-lockup .eyebrow {
    display: none;
  }

  .main-nav {
    gap: 8px;
    order: 3;
    margin: -2px -2px 0;
    padding: 0 2px 2px;
  }

  .nav-link,
  .ghost-button,
  .pill,
  .chip {
    padding: 7px 10px;
    font-size: 0.84rem;
  }

  .topbar-actions {
    order: 2;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .topbar-actions .ghost-button {
    white-space: nowrap;
  }

  .searchbar {
    min-width: 0;
    padding: 9px 12px;
  }

  .searchbar input {
    font-size: 0.9rem;
  }

  .hero-card {
    gap: 14px;
  }

  .hero-moment {
    gap: 12px;
    min-height: 0;
  }

  .hero-moment-main {
    min-height: 280px;
    padding: 16px;
    border-radius: 22px;
  }

  .hero-moment-copy h2 {
    font-size: 1.85rem;
  }

  .hero-moment-copy .creator-blurb {
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .toolbar {
    align-items: start;
    gap: 10px;
  }

  .toolbar-left,
  .toolbar-right,
  .active-filters {
    gap: 8px;
  }

  .card-grid,
  .card-grid.is-compact {
    grid-template-columns: 1fr;
  }

  .featured-strip {
    grid-template-columns: 1fr;
  }

  .hero-moment-stack {
    grid-template-columns: 1fr;
  }

  .hero-thumb {
    min-height: 120px;
    border-radius: 18px;
  }

  .hero-stats {
    grid-auto-columns: minmax(150px, 1fr);
    gap: 10px;
  }

  .hero-stats div,
  .feature-tile,
  .creator-card {
    border-radius: 18px;
  }

  .feature-tile {
    padding: 16px;
  }

  .card-media {
    aspect-ratio: 0.9;
    padding: 12px;
  }

  .activity-chip {
    max-width: 70%;
  }

  .card-body {
    gap: 10px;
    padding: 14px;
  }

  .creator-name {
    font-size: 1.02rem;
  }

  .creator-meta,
  .creator-subline,
  .creator-blurb,
  .results-copy {
    font-size: 0.88rem;
  }

  .filter-summary {
    padding: 12px 14px;
  }

  .chip-row {
    gap: 7px;
  }
}
