:root {
  --bg: #08090b;
  --panel: #111317;
  --panel-2: #17191e;
  --panel-3: #1e2127;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .15);
  --text: #f4f4f5;
  --muted: #b0b3bb;
  --dim: #8b8f98;
  --accent: #e50914;
  --accent-2: #ff3d47;
  --green: #37d39a;
  --amber: #f6b94d;
  --blue: #67a4ff;
  --focus: #ff737b;
  --text-body: 14px;
  --text-small: 12px;
  --text-label: 11px;
  --text-long: 16px;
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar: 238px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: dark;
  scrollbar-color: #3b3e45 #101114;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 72% -20%, rgba(229, 9, 20, .12), transparent 30rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

.sr-only {
  width: 1px;
  height: 1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--sidebar);
  padding: 25px 18px 18px;
  display: flex;
  flex-direction: column;
  background: rgba(9, 10, 12, .94);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(22px);
}

.brand {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
}

.brand-mark {
  width: 27px;
  height: 31px;
  display: flex;
  gap: 2px;
  align-items: flex-end;
  transform: skew(-6deg);
}

.brand-mark i {
  display: block;
  width: 7px;
  border-radius: 1px;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(229, 9, 20, .25);
}

.brand-mark i:nth-child(1) { height: 31px; }
.brand-mark i:nth-child(2) { height: 23px; }
.brand-mark i:nth-child(3) { height: 27px; }

.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-size: 13px; letter-spacing: .14em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 8px; letter-spacing: .27em; }

.main-nav { margin-top: 30px; }
.nav-label {
  margin: 22px 12px 8px;
  color: var(--dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nav-item {
  height: 42px;
  margin: 3px 0;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 9px;
  color: #a5a8af;
  font-weight: 560;
  transition: .18s ease;
}

.nav-item:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(229, 9, 20, .2), rgba(229, 9, 20, .04)); }
.nav-item.active::before {
  content: "";
  width: 3px;
  height: 21px;
  margin-left: -11px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(229, 9, 20, .65);
}

.nav-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #d9dadd;
  font-size: 14px;
}
.nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-item.active .nav-icon { color: #fff; }

.sidebar-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.sidebar-howto {
  height: 36px;
  margin: 0 0 12px;
  padding-inline: 8px;
  color: #c5c7cc;
  border: 1px solid rgba(255,255,255,.055);
}
.sidebar-howto .nav-icon {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  color: #92959d;
  border: 1px solid #555962;
  border-radius: 50%;
  font-size: 10px;
}

.data-status { display: flex; gap: 11px; align-items: center; padding: 4px 7px 13px; }
.data-status div { display: grid; gap: 3px; }
.data-status strong { font-size: 12px; }
.data-status small { color: var(--dim); font-size: 10px; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(55, 211, 154, .1), 0 0 10px rgba(55, 211, 154, .4);
}

.sidebar-about { width: 100%; justify-content: space-between; font-size: 11px !important; }
.sidebar-update { width: 100%; margin-top: 7px; color: #fff; border-color: rgba(229,9,20,.28); background: rgba(229,9,20,.08); font-size: 10px !important; }

.main { min-height: 100vh; margin-left: var(--sidebar); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 72px;
  padding: 0 clamp(20px, 3.2vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(8, 9, 11, .82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
}

.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 10px; }
.global-search-wrap {
  width: min(30vw, 380px);
  position: relative;
}
.global-search {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  color: var(--dim);
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.global-search:focus-within { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.065); }
.search-tags {
  max-width: 68%;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}
.search-tags:empty { display: none; }
.search-tags::-webkit-scrollbar { display: none; }
.search-tag {
  height: 26px;
  padding: 0 7px 0 9px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f7dfe1;
  background: rgba(229, 9, 20, .22);
  border: 1px solid rgba(255, 82, 92, .34);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .01em;
}
.search-tag > span {
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-tag button {
  width: 15px;
  height: 15px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #ff9ca2;
  background: transparent;
  border: 0;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.search-tag button:hover { color: #fff; }
.global-search input {
  min-width: 72px;
  flex: 1;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}
.global-search input::placeholder { color: var(--dim); }
.global-search kbd {
  padding: 3px 6px;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 4px;
  font: 10px ui-monospace, monospace;
}
.global-search.has-tags kbd { display: none; }
.search-suggestions {
  width: 100%;
  max-height: min(480px, calc(100vh - 96px));
  position: absolute;
  z-index: 90;
  top: calc(100% + 8px);
  left: 0;
  overflow-y: auto;
  color: var(--text);
  background: rgba(18, 20, 24, .98);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .48);
  backdrop-filter: blur(22px);
}
.search-suggestions[hidden] { display: none; }
.suggestion-context {
  padding: 10px 12px 8px;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
  font-size: var(--text-label);
}
.suggestion-list { padding: 5px; }
.suggestion-item {
  width: 100%;
  min-height: 49px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}
.suggestion-item:hover,
.suggestion-item.active {
  color: #fff;
  background: rgba(229, 9, 20, .12);
}
.suggestion-icon {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #ff8f96;
  background: rgba(229, 9, 20, .14);
  border: 1px solid rgba(255, 82, 92, .18);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 750;
}
.suggestion-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
}
.suggestion-copy small {
  color: var(--dim);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.suggestion-copy strong {
  overflow: hidden;
  color: inherit;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.suggestion-count {
  flex: 0 0 auto;
  color: var(--dim);
  font-size: 9px;
}
.suggestion-help {
  padding: 8px 11px;
  display: flex;
  gap: 12px;
  color: var(--dim);
  border-top: 1px solid var(--line);
  font-size: 8px;
}
.suggestion-empty {
  padding: 17px;
  display: grid;
  gap: 4px;
}
.suggestion-empty strong { font-size: 11px; }
.suggestion-empty span { color: var(--dim); font-size: 9px; }

.mode-switch {
  height: 38px;
  display: flex;
  padding: 3px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.mode-switch button {
  padding: 0 9px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 10px;
}
.mode-switch button.active { color: #fff; background: #292c32; box-shadow: 0 2px 8px rgba(0,0,0,.3); }

.toolbar-button, .ghost-button, .primary-button, .icon-button, .pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  transition: .18s ease;
}

.toolbar-button {
  height: 38px;
  padding: 0 13px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12px;
}
.toolbar-button:hover { background: var(--panel-2); border-color: var(--line-strong); }
.update-button { border-color: rgba(229,9,20,.3); background: rgba(229,9,20,.07); }
.update-button:hover { border-color: rgba(229,9,20,.5); background: rgba(229,9,20,.14); }
.is-updating .update-icon { display: inline-block; animation: update-spin .85s linear infinite; }
.is-updating { pointer-events: none; opacity: .72; }
@keyframes update-spin { to { transform: rotate(360deg); } }
.toolbar-button b {
  min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center;
  background: var(--accent); border-radius: 9px; font-size: 9px;
}

.icon-button {
  width: 36px; height: 36px; padding: 0; color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 9px; font-size: 20px;
}
.icon-button:hover { color: #fff; background: var(--panel-2); }
.mobile-menu { display: none; }

.page { padding: 34px clamp(20px, 3.2vw, 48px) 80px; }

.active-filters {
  min-height: 0;
  padding: 0 clamp(20px, 3.2vw, 48px);
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  overflow: hidden;
}
.active-filters:not(:empty) { padding-top: 13px; }
.filter-chip {
  height: 28px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #d4d4d8;
  background: #1b1d22;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 11px;
}
.filter-chip button { padding: 0; color: var(--dim); background: none; border: 0; cursor: pointer; }

.page-head {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.page-head .eyebrow, .eyebrow {
  margin: 0 0 7px;
  color: var(--accent-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.page-head h1 { margin: 0; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.045em; line-height: 1; }
.page-head p { max-width: 650px; margin: 9px 0 0; color: var(--muted); line-height: 1.55; }
.page-meta { color: var(--dim); font-size: 11px; white-space: nowrap; }

.section { margin-top: 38px; }
.section-head {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.section-head h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.section-head p { margin: 4px 0 0; color: var(--dim); font-size: 11px; }
.section-link { color: var(--muted); background: none; border: 0; cursor: pointer; font-size: 11px; }
.section-link:hover { color: #fff; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.kpi-card {
  min-height: 116px;
  padding: 17px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.kpi-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.kpi-top { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }
.kpi-value { margin-top: 13px; font-size: clamp(22px, 2.2vw, 31px); font-weight: 680; letter-spacing: -.045em; }
.kpi-note { margin-top: 5px; color: var(--dim); font-size: 10px; }
.trend-up { color: var(--green); }
.trend-down { color: #ff6b75; }

.creator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.creator-card {
  min-width: 0;
  padding: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .16s ease, background .16s ease;
}
.creator-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.creator-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.creator-identity > strong {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.creator-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: block;
  object-fit: cover;
  background: var(--panel-3);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
}
.creator-avatar-fallback {
  background: var(--creator-avatar-color);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.055);
}
.creator-visibility {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  color: #a8abb2;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.creator-visibility:hover,
.creator-visibility:focus-visible {
  color: #fff;
  border-color: var(--line-strong);
  outline: none;
}
.creator-visibility svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.creator-card-stats {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.creator-card-stats div { min-width: 0; }
.creator-card-stats strong {
  display: block;
  overflow: hidden;
  color: #f2f2f3;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.creator-card-stats span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--dim);
  font-size: 7px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.creator-card.is-hidden {
  background: rgba(255,255,255,.012);
  border-color: rgba(255,255,255,.055);
}
.creator-card.is-hidden .creator-identity,
.creator-card.is-hidden .creator-card-stats {
  opacity: .36;
}
.creator-card.is-hidden .creator-visibility {
  color: #ff5b64;
  background: rgba(229,9,20,.07);
  border-color: rgba(229,9,20,.2);
}

.creator-sort-control {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--dim);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.creator-sort-control .select-control {
  min-width: 178px;
  text-transform: none;
}
.creator-podium {
  min-height: 342px;
  padding: 34px 28px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 5%, rgba(229,9,20,.13), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.podium-card {
  min-width: 0;
  height: 286px;
  padding: 22px 14px 0;
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}
.podium-card.podium-1 { height: 326px; }
.podium-card::before {
  content: "";
  width: 100px;
  height: 100px;
  position: absolute;
  top: 1px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
  opacity: .75;
}
.podium-card.podium-1::before {
  border-color: rgba(255,194,51,.28);
  box-shadow: 0 0 55px rgba(255,194,51,.1);
}
.podium-card .creator-avatar {
  width: 62px;
  height: 62px;
  margin-top: 11px;
  position: relative;
  border-width: 2px;
}
.podium-card.podium-1 .creator-avatar {
  width: 72px;
  height: 72px;
  border-color: rgba(255,194,51,.58);
  box-shadow: 0 0 0 5px rgba(255,194,51,.06);
}
.podium-card > strong {
  width: 100%;
  margin-top: 13px;
  overflow: hidden;
  color: #f4f4f5;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.podium-value {
  margin-top: 14px;
  color: #fff;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 760;
  letter-spacing: -.045em;
}
.podium-card > small {
  margin-top: 4px;
  color: var(--dim);
  font-size: 8px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.podium-rank {
  position: absolute;
  top: 5px;
  left: calc(50% + 25px);
  z-index: 2;
  color: #0d0e11;
  font-size: 9px;
  font-weight: 850;
}
.podium-rank::before {
  content: "";
  width: 22px;
  height: 22px;
  position: absolute;
  z-index: -1;
  top: -5px;
  left: -7px;
  background: #d6d8dc;
  border-radius: 50%;
}
.podium-1 .podium-rank::before { background: #ffc233; }
.podium-3 .podium-rank::before { background: #aebfd1; }
.podium-medal {
  min-width: 56px;
  height: 20px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  position: absolute;
  top: 82px;
  z-index: 2;
  color: #111216;
  border-radius: 99px;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.podium-medal.gold { top: 92px; background: linear-gradient(90deg, #c58b12, #ffe180, #c58b12); }
.podium-medal.silver { background: linear-gradient(90deg, #858a91, #e9ecf0, #8e949d); }
.podium-medal.platinum { background: linear-gradient(90deg, #71869a, #d4e1e9, #71869a); }
.podium-base {
  width: 100%;
  height: 58px;
  margin-top: auto;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.08);
  border-bottom: 0;
  border-radius: 11px 11px 0 0;
}
.podium-1 .podium-base {
  height: 74px;
  background: linear-gradient(180deg, rgba(255,194,51,.12), rgba(255,255,255,.025));
  border-color: rgba(255,194,51,.17);
}
.podium-base span {
  color: rgba(255,255,255,.16);
  font-size: 30px;
  font-weight: 800;
}
.leaderboard-list {
  margin-top: 10px;
  display: grid;
  gap: 7px;
}
.leaderboard-row {
  min-height: 62px;
  padding: 9px 14px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.022);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.leaderboard-rank {
  color: #666a72;
  font-size: 14px;
  font-weight: 750;
  text-align: center;
}
.leaderboard-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.leaderboard-identity strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.leaderboard-score { text-align: right; }
.leaderboard-score strong { display: block; font-size: 14px; }
.leaderboard-score small {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-size: 7px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.creator-empty-panel {
  padding: 30px;
  color: var(--dim);
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: center;
}
.creator-benchmark-scroll {
  background: rgba(255,255,255,.015);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.creator-benchmark-table { min-width: 1400px !important; }
.creator-benchmark-table tbody tr { cursor: default; }
.creator-benchmark-table td { height: 67px; }
.creator-benchmark-table td > strong { display: block; color: #f0f0f2; font-size: 11px; }
.benchmark-creator {
  min-width: 150px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.benchmark-creator .creator-avatar {
  width: 30px;
  height: 30px;
}
.benchmark-creator strong { color: #fff; font-size: 10px; }
.benchmark-delta,
.benchmark-subvalue {
  display: block;
  margin-top: 4px;
  color: #696c73;
  font-size: 7px;
  white-space: nowrap;
}
.benchmark-delta.is-positive { color: #65ad83; }
.benchmark-delta.is-negative { color: #d06a71; }
.benchmark-insight {
  display: inline-flex;
  padding: 5px 7px;
  color: #9b9ea5;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 6px;
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}
.benchmark-insight.is-strong {
  color: #ff8e95;
  background: rgba(229,9,20,.08);
  border-color: rgba(229,9,20,.18);
}
.benchmark-note {
  margin: 10px 2px 0;
  color: var(--dim);
  font-size: 9px;
  line-height: 1.5;
}

.feature-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 1fr);
  gap: 11px;
  overflow-x: auto;
  padding-bottom: 7px;
  scroll-snap-type: x mandatory;
}
.insight-card {
  min-height: 176px;
  padding: 19px;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  background: linear-gradient(140deg, #191b20, #111216);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.insight-card::after {
  content: "";
  position: absolute;
  right: -55px; bottom: -70px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,9,20,.12), transparent 65%);
}
.insight-card h3 { margin: 8px 0 18px; max-width: 92%; font-size: 17px; line-height: 1.35; letter-spacing: -.025em; }
.insight-footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; color: var(--dim); font-size: 10px; }

.confidence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c8cad0;
  font-size: 10px;
}
.confidence::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.confidence[data-level="Solide"]::before { background: var(--green); }
.confidence[data-level="Très faible"]::before { background: #ff6570; }

.chart-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, 1fr); gap: 12px; }
.activity-cadence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(330px, .85fr);
  gap: 12px;
  align-items: stretch;
}
.chart-card, .table-card, .content-card {
  background: rgba(18, 20, 24, .88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.chart-card { min-height: 320px; padding: 18px; }
.chart-card.weekly-frequency-card { min-height: 0; }
.weekly-frequency-card .proportion-dot-row {
  grid-template-columns: minmax(105px, 1fr) auto 52px;
  gap: 8px;
}
.weekly-frequency-card .proportion-dots {
  grid-template-columns: repeat(10, 9px);
  gap: 3px;
}
.weekly-frequency-card .proportion-dot {
  width: 9px;
  height: 9px;
}
.activity-calendar-card {
  --activity-cell: 11px;
  --activity-gap: 3px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  background: rgba(18, 20, 24, .88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.activity-calendar-card .chart-title { margin-bottom: 16px; }
.activity-calendar-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 3px 2px 10px;
  scrollbar-color: rgba(145, 149, 157, .46) transparent;
  scrollbar-width: thin;
}
.activity-calendar-scroll::-webkit-scrollbar { height: 7px; }
.activity-calendar-scroll::-webkit-scrollbar-track { background: transparent; }
.activity-calendar-scroll::-webkit-scrollbar-thumb {
  background: rgba(145, 149, 157, .46);
  border-radius: 20px;
}
.activity-calendar-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(171, 175, 183, .65);
}
.activity-calendar-grid {
  width: max-content;
  min-width: 100%;
}
.activity-months {
  height: 23px;
  margin-left: 42px;
  display: grid;
  grid-template-columns: repeat(var(--activity-weeks), var(--activity-cell));
  column-gap: var(--activity-gap);
  color: #a7aab1;
  font-size: var(--text-label);
  line-height: 1;
}
.activity-months span {
  min-width: 0;
  overflow: visible;
  white-space: nowrap;
}
.activity-calendar-body {
  display: grid;
  grid-template-columns: 34px max-content;
  gap: 8px;
}
.activity-weekdays {
  display: grid;
  grid-template-rows: repeat(7, var(--activity-cell));
  row-gap: var(--activity-gap);
  position: sticky;
  left: 0;
  z-index: 2;
  color: var(--dim);
  background: rgba(18, 20, 24, .97);
  font-size: var(--text-label);
}
.activity-weekdays span {
  align-self: center;
  transform: translateY(-1px);
}
.activity-days {
  display: grid;
  grid-template-columns: repeat(var(--activity-weeks), var(--activity-cell));
  grid-template-rows: repeat(7, var(--activity-cell));
  gap: var(--activity-gap);
}
.activity-day,
.activity-legend-cell {
  width: var(--activity-cell);
  height: var(--activity-cell);
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: #22252b;
}
.activity-day {
  cursor: default;
  outline: none;
}
.activity-day[data-activity-date] { cursor: pointer; }
.activity-day:hover,
.activity-day:focus-visible {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .75);
}
.activity-day.level-0:hover { box-shadow: none; }
.activity-day.level-0,
.activity-legend-cell.level-0 { background: #22252b; }
.activity-day.level-1,
.activity-legend-cell.level-1 { background: rgba(229, 9, 20, .25); }
.activity-day.level-2,
.activity-legend-cell.level-2 { background: rgba(229, 9, 20, .48); }
.activity-day.level-3,
.activity-legend-cell.level-3 { background: rgba(240, 34, 44, .74); }
.activity-day.level-4,
.activity-legend-cell.level-4 {
  background: #ff4b55;
  box-shadow: 0 0 7px rgba(229, 9, 20, .22);
}
.activity-calendar-footer {
  margin-top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--dim);
  font-size: var(--text-label);
}
.activity-legend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.activity-legend small { margin-inline: 2px; }
.activity-legend-cell { display: inline-block; }
.activity-tooltip {
  position: fixed;
  z-index: 120;
  padding: 7px 9px;
  pointer-events: none;
  color: #fff;
  background: #090a0c;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .42);
  font-size: 9px;
  white-space: nowrap;
}
.chart-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.chart-title h3 { margin: 0; font-size: 13px; }
.chart-title p { margin: 5px 0 0; color: var(--dim); font-size: 10px; }
.chart-badge { padding: 5px 8px; color: var(--muted); background: var(--panel-3); border-radius: 6px; font-size: 9px; }
.chart-wrap { height: 238px; margin-top: 18px; position: relative; }
.chart-wrap svg { width: 100%; height: 100%; overflow: hidden; }
.chart-wrap[data-hover-chart] {
  height: clamp(280px, 23vw, 360px);
  cursor: crosshair;
}
.timeline-chart-scroll {
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #555961 #1b1d22;
}
.timeline-chart-scroll::-webkit-scrollbar { height: 8px; }
.timeline-chart-scroll::-webkit-scrollbar-track {
  background: #1b1d22;
  border-radius: 999px;
}
.timeline-chart-scroll::-webkit-scrollbar-thumb {
  background: #555961;
  border-radius: 999px;
}
.timeline-chart-canvas {
  height: calc(100% - 10px);
}
.timeline-chart-canvas svg {
  display: block;
}
.chart-axis { stroke: rgba(255,255,255,.08); stroke-width: 1; }
.chart-gridline { stroke: rgba(255,255,255,.055); stroke-width: 1; stroke-dasharray: 3 5; }
.chart-line { fill: none; stroke: var(--accent-2); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.chart-area { fill: url(#areaGradient); }
.chart-label { fill: #8b8f98; font-size: var(--text-label); }
.chart-dot { fill: var(--bg); stroke: var(--accent-2); stroke-width: 2; }
.chart-data-point {
  fill: transparent;
  stroke: transparent;
  pointer-events: all;
  outline: none;
}
.chart-hover-layer {
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease;
}
.chart-wrap.is-hovering .chart-hover-layer { opacity: 1; }
.chart-hover-guide {
  stroke: rgba(255, 255, 255, .3);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  vector-effect: non-scaling-stroke;
}
.chart-hover-dot {
  fill: #08090b;
  stroke: #ff4b55;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}
.chart-tooltip {
  min-width: 128px;
  padding: 9px 11px;
  position: absolute;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  color: #f5f5f6;
  background: rgba(10, 11, 14, .96);
  border: 1px solid rgba(255, 77, 87, .32);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
  transform: translate(-50%, calc(-100% - 12px));
  transition: opacity .12s ease;
}
.chart-wrap.is-hovering .chart-tooltip { opacity: 1; }
.chart-tooltip.below { transform: translate(-50%, 15px); }
.chart-tooltip small {
  display: block;
  color: #777a82;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.chart-tooltip strong {
  display: block;
  margin-top: 2px;
  font-size: 17px;
  letter-spacing: -.025em;
}
.chart-tooltip span {
  display: block;
  margin-top: 4px;
  color: #a8abb1;
  font-size: 9px;
}
.chart-tooltip b { color: #f0f0f2; font-weight: 650; }
.chart-empty { height: 100%; display: grid; place-items: center; color: var(--dim); }

.bar-list { margin-top: 19px; display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 118px 1fr 45px; align-items: center; gap: 9px; font-size: 10px; }
.bar-label { overflow: hidden; color: #c6c8cc; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 7px; overflow: hidden; background: #262930; border-radius: 10px; }
.bar-fill { height: 100%; border-radius: inherit; background: var(--accent); transform-origin: left; animation: reveal-bar .65s ease both; }
.bar-value { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

.proportion-dot-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.proportion-dot-row {
  display: grid;
  grid-template-columns: minmax(105px, 1fr) auto 74px;
  gap: 12px;
  align-items: center;
}
.proportion-dot-label {
  overflow: hidden;
  color: #d7d8dc;
  font-size: 10px;
  font-weight: 580;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proportion-dots {
  display: grid;
  grid-template-columns: repeat(10, 10px);
  gap: 5px;
}
.proportion-dot {
  width: 10px;
  height: 10px;
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  background: #292c32;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}
.proportion-dot.filled {
  border-color: rgba(255, 112, 120, .48);
  background: var(--accent-2);
  box-shadow: 0 0 9px rgba(229, 9, 20, .2);
}
.proportion-dot.partial {
  --fill: 0%;
  border-color: rgba(255, 255, 255, .13);
  background: #292c32;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}
.proportion-dot.partial::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill);
  background: var(--accent-2);
}
.proportion-dot-value {
  min-width: 0;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.proportion-dot-value strong {
  display: block;
  color: #f0f0f2;
  font-size: 10px;
}
.proportion-dot-value small {
  display: block;
  margin-top: 2px;
  color: var(--dim);
  font-size: 7px;
}
.weekly-frequency-expand {
  width: 100%;
  margin-top: 16px;
  padding: 13px 0 0;
  color: rgba(229, 9, 20, .5);
  background: none;
  border: 0;
  border-top: 1px solid rgba(229, 9, 20, .14);
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.weekly-frequency-expand:hover,
.weekly-frequency-expand:focus-visible {
  color: rgba(255, 77, 87, .9);
}
@keyframes reveal-bar { from { transform: scaleX(0); } }

.video-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding: 2px 1px 12px;
}
.video-card {
  min-width: 0;
  cursor: pointer;
  transition: transform .2s ease;
}
.video-card:hover { transform: translateY(-4px); }
.video-poster {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  background: #191b20;
  border-radius: 10px;
}
.video-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.video-card:hover img { transform: scale(1.035); filter: brightness(.72); }
.video-overlay {
  position: absolute; inset: 0; padding: 10px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(180deg, rgba(0,0,0,.12), transparent 45%, rgba(0,0,0,.88));
}
.rank-number {
  align-self: flex-start;
  color: white;
  font-size: 30px;
  font-weight: 850;
  line-height: 1;
  text-shadow: 0 2px 10px #000;
}
.poster-stats { display: flex; align-items: flex-end; justify-content: space-between; }
.poster-stats strong { font-size: 15px; }
.poster-stats small { display: block; margin-top: 3px; color: #b6b8bd; font-size: 9px; }
.play-circle {
  width: 32px; height: 32px; display: grid; place-items: center;
  opacity: 0; transform: scale(.8);
  background: rgba(255,255,255,.92); color: #090a0c; border-radius: 50%;
  transition: .2s ease;
}
.video-card:hover .play-circle { opacity: 1; transform: scale(1); }
.video-pin-button {
  width: 32px;
  height: 32px;
  padding: 0;
  position: absolute;
  z-index: 5;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  opacity: 0;
  color: #151619;
  background: rgba(255,255,255,.93);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  box-shadow: 0 5px 18px rgba(0,0,0,.28);
  cursor: pointer;
  pointer-events: auto;
  transform: translateY(-5px) rotate(-8deg);
  transition: opacity .18s ease, transform .18s ease, color .18s ease, background .18s ease;
}
.video-pin-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.video-card:hover .video-pin-button,
.video-card:focus-within .video-pin-button,
.video-pin-button:focus-visible,
.video-pin-button.is-pinned {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) rotate(0);
}
.video-pin-button:hover,
.video-pin-button:focus-visible,
.video-pin-button.is-pinned {
  color: #fff;
  background: var(--accent);
  border-color: rgba(255,115,123,.62);
  outline: none;
}
.video-compare {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity .18s ease, transform .18s ease, background .18s ease;
}
.video-card .video-compare { top: 48px; }
.video-card:hover .video-compare,
.video-card:focus-within .video-compare,
.video-compare.selected {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.video-compare.selected {
  color: #fff;
  background: rgba(229, 9, 20, .82);
  border-color: rgba(255, 100, 109, .55);
}
@media (hover: none) {
  .video-compare,
  .video-pin-button {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}
.video-info { padding: 10px 3px 0; }
.video-info strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.video-info p { height: 29px; margin: 5px 0; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.4; }
.video-tags { display: flex; gap: 5px; }
.mini-tag { padding: 3px 6px; color: #aaaeb5; background: #1b1d22; border-radius: 4px; font-size: 8px; }

.ideas-hero {
  min-height: 160px;
  padding: 25px 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background:
    radial-gradient(circle at 82% 18%, rgba(229,9,20,.19), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.ideas-hero h2 {
  margin: 0;
  color: #f4f4f5;
  font-size: clamp(20px, 2.4vw, 31px);
  letter-spacing: -.04em;
}
.ideas-hero > div > p:last-child {
  max-width: 620px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}
.ideas-count {
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  display: grid;
  place-content: center;
  color: #fff;
  background: rgba(229,9,20,.12);
  border: 1px solid rgba(255,77,87,.25);
  border-radius: 50%;
  font-size: 28px;
  font-weight: 780;
  letter-spacing: -.05em;
  text-align: center;
}
.ideas-count small {
  display: block;
  margin-top: 2px;
  color: #ff858c;
  font-size: 7px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ideas-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px 10px;
}
.ideas-grid .video-poster { aspect-ratio: 3 / 4; }
.ideas-empty {
  min-height: 390px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 11px;
  text-align: center;
}
.ideas-empty.is-filtered { min-height: 260px; }
.ideas-empty-pin {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  color: #ff646d;
  background: rgba(229,9,20,.09);
  border: 1px solid rgba(229,9,20,.2);
  border-radius: 50%;
  transform: rotate(-9deg);
}
.ideas-empty-pin svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}
.ideas-empty h2 { margin: 8px 0 0; font-size: 20px; }
.ideas-empty p {
  max-width: 410px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.control-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.segmented {
  display: inline-flex;
  padding: 3px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.segmented button {
  min-height: 32px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
}
.segmented button.active { color: #fff; background: var(--panel-3); }

.select-control {
  height: 36px;
  padding: 0 31px 0 11px;
  color: #d7d8db;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%23888'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  appearance: none;
  font-size: 11px;
}

.correlation-plot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.audio-cluster-method {
  padding: 7px 9px;
  color: #a9abb1;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 8px;
  letter-spacing: .04em;
  white-space: nowrap;
  text-transform: uppercase;
}
.audio-cluster-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}
.audio-ranking-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #85888f;
  font-size: 9px;
  white-space: nowrap;
}
.audio-ranking-control .select-control {
  width: 174px;
}
.audio-cluster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}
.audio-cluster-card {
  min-width: 0;
  padding: 17px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--cluster-color), transparent 88%), transparent 33%),
    linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.014));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.audio-cluster-card::before {
  content: "";
  width: 3px;
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--cluster-color);
  opacity: .82;
}
.audio-cluster-card.is-winner {
  border-color: color-mix(in srgb, var(--cluster-color), transparent 55%);
  box-shadow: 0 14px 45px rgba(0,0,0,.18);
}
.audio-cluster-card-head {
  min-height: 92px;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  align-content: start;
  gap: 5px 9px;
}
.audio-cluster-rank {
  width: 29px;
  height: 29px;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  color: #fff;
  background: color-mix(in srgb, var(--cluster-color), #111 35%);
  border: 1px solid color-mix(in srgb, var(--cluster-color), white 12%);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 850;
}
.audio-cluster-card-head h3 {
  margin: 1px 0 0;
  overflow: hidden;
  color: #f2f2f3;
  font-size: 13px;
  letter-spacing: -.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audio-cluster-card-head p {
  margin: 4px 0 0;
  color: var(--dim);
  font-size: 8px;
}
.audio-cluster-performance {
  grid-column: 2;
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.audio-cluster-performance > strong {
  color: #fff;
  font-size: 20px;
  letter-spacing: -.04em;
}
.audio-cluster-performance > small {
  color: #6c6f76;
  font-size: 7px;
  text-transform: uppercase;
}
.audio-cluster-performance > span {
  width: 100%;
  margin-top: -2px;
  font-size: 8px;
  font-weight: 700;
}
.audio-cluster-performance .is-positive { color: #66c08e; }
.audio-cluster-performance .is-negative { color: #e36c75; }
.audio-cluster-profile {
  padding: 12px 0;
  display: grid;
  gap: 9px;
  border-top: 1px solid rgba(255,255,255,.055);
  border-bottom: 1px solid rgba(255,255,255,.055);
}
.audio-profile-row > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.audio-profile-row span {
  overflow: hidden;
  color: var(--dim);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audio-profile-row strong {
  color: #cfd1d5;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.audio-profile-row > i {
  height: 3px;
  margin-top: 4px;
  display: block;
  overflow: hidden;
  background: #24262c;
  border-radius: 99px;
}
.audio-profile-row > i > b {
  height: 100%;
  display: block;
  border-radius: inherit;
  opacity: .8;
}
.audio-cluster-reference {
  min-width: 0;
  margin-top: 13px;
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}
.audio-cluster-reference-thumb {
  width: 43px;
  height: 54px;
  position: relative;
}
.audio-cluster-reference-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #202228;
  border-radius: 6px;
}
.audio-cluster-reference-thumb .audio-cluster-pin {
  width: 23px;
  height: 23px;
  top: 4px;
  right: 4px;
}
.audio-cluster-reference-thumb .audio-cluster-pin svg { width: 11px; height: 11px; }
.audio-cluster-reference:hover .audio-cluster-pin,
.audio-cluster-reference:focus-within .audio-cluster-pin,
.audio-cluster-pin.is-pinned {
  opacity: 1;
  transform: translateY(0) rotate(0);
}
.audio-cluster-reference > div:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.audio-cluster-reference small {
  color: #64676e;
  font-size: 7px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.audio-cluster-reference strong {
  overflow: hidden;
  color: #e3e4e6;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audio-cluster-reference div > span {
  overflow: hidden;
  color: var(--dim);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audio-reference-open {
  color: #7b7e85;
  font-size: 8px;
  white-space: nowrap;
}
.audio-cluster-reference:hover .audio-reference-open { color: #fff; }
.correlation-plot-card { padding: 17px; }
.correlation-builder {
  margin: -2px 0 18px;
  padding-bottom: 17px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 24px minmax(180px, 1fr);
  align-items: end;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.correlation-builder label {
  display: grid;
  gap: 7px;
  color: #777a82;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.correlation-builder .select-control { width: 100%; text-transform: none; }
.correlation-versus {
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--dim);
  font-size: 16px;
}
.correlation-plot-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.correlation-plot-head h3 { margin: 0; font-size: 13px; }
.correlation-plot-head p {
  margin: 5px 0 0;
  color: var(--dim);
  font-size: 9px;
}
.correlation-coefficient {
  padding: 5px 7px;
  flex: 0 0 auto;
  color: #f1f1f2;
  background: #26282e;
  border-radius: 6px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.correlation-chart { margin-top: 13px; }
.correlation-scatter {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.scatter-gridline {
  stroke: rgba(255, 255, 255, .055);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
.scatter-axis-label {
  fill: #666a72;
  font-size: 8px;
}
.scatter-observation {
  fill: #e50914;
  fill-opacity: .38;
}
.scatter-observation:hover {
  fill: #ff4e58;
  fill-opacity: .95;
}
.scatter-trend {
  fill: none;
  stroke: #f4f4f5;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.scatter-trend-point {
  fill: #f4f4f5;
  stroke: #111217;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}
.correlation-legend {
  margin-top: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--dim);
  font-size: 8px;
}
.correlation-legend span { display: inline-flex; align-items: center; gap: 5px; }
.correlation-notice {
  margin: 10px 2px 0;
  color: var(--dim);
  font-size: 9px;
  line-height: 1.5;
}
.correlation-table { border: 1px solid var(--line); border-radius: 10px; }
.correlation-table .data-table { min-width: 850px; }
.correlation-table .data-table tbody tr { cursor: default; }
.correlation-positive { color: #84dcb9; font-weight: 700; }
.correlation-negative { color: #ff7b84; font-weight: 700; }
.correlation-view-button {
  padding: 6px 9px;
  color: #dedfe2;
  background: #24272d;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 9px;
  cursor: pointer;
}
.correlation-view-button:hover {
  color: #fff;
  background: rgba(229, 9, 20, .2);
  border-color: rgba(255, 77, 87, .35);
}
.correlation-table-expand {
  margin-top: 10px;
  padding: 0;
  color: #dedfe2;
  background: none;
  border: 0;
  font: inherit;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}
.correlation-table-expand span {
  margin-left: 4px;
  color: var(--dim);
  font-weight: 600;
}
.correlation-table-expand:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.correlation-all-link-wrap { margin: 15px 2px 0; }
.correlation-all-link {
  color: #ff4d57;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.correlation-all-link:hover { color: #ff7b83; text-decoration: underline; text-underline-offset: 3px; }
.correlations-target-control {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--dim);
  font-size: 10px;
}
.correlations-target-control .select-control { min-width: 230px; }
.legend-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  background: rgba(229, 9, 20, .8);
  border-radius: 50%;
}
.legend-line {
  width: 14px;
  height: 2px;
  display: inline-block;
  background: #f4f4f5;
  border-radius: 3px;
}

.box-chart { height: 280px; margin: 22px 8px 2px; display: flex; align-items: stretch; justify-content: space-around; gap: 10px; border-bottom: 1px solid var(--line); }
.box-group { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; }
.box-visual { width: 70%; height: 210px; position: relative; }
.box-whisker { position: absolute; left: 50%; width: 1px; background: #63666d; transform: translateX(-50%); }
.box-body { position: absolute; left: 10%; width: 80%; background: rgba(229,9,20,.22); border: 1px solid rgba(255,89,99,.7); border-radius: 3px; }
.box-median { position: absolute; left: 0; right: 0; height: 2px; background: #fff; }
.box-group label { height: 30px; max-width: 90px; color: var(--muted); text-align: center; font-size: 9px; line-height: 1.3; }

.topic-map-section { margin-top: 8px; }
.topic-map {
  min-height: 700px;
  position: relative;
  overflow: hidden;
  padding: 18px;
}
.semantic-map-canvas {
  --topic-grid: rgba(248, 248, 248, .08);
  --topic-axis: rgba(248, 248, 248, .72);
  height: min(68vh, 680px);
  min-height: 600px;
  margin-top: 14px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: transparent;
  background:
    linear-gradient(var(--topic-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--topic-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  border: 1px solid rgba(248, 248, 248, .08);
  border-radius: 8px;
}
.semantic-map-axis {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background: var(--topic-axis);
}
.semantic-map-axis-x {
  right: 28px;
  left: 50%;
  top: 50%;
  left: 28px;
  height: 1px;
}
.semantic-map-axis-y {
  top: 28px;
  bottom: 28px;
  left: 50%;
  width: 1px;
}
.semantic-map-axis-x::after,
.semantic-map-axis-y::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--topic-axis);
}
.semantic-map-axis-x::after {
  top: 50%;
  right: 0;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translate(100%, -50%);
}
.semantic-map-axis-y::after {
  top: 0;
  left: 50%;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: translate(-50%, -100%);
}
.semantic-axis-label {
  position: absolute;
  z-index: 3;
  color: rgba(248, 248, 248, .48);
  font-size: 9px;
  font-style: italic;
  font-weight: 450;
  letter-spacing: .02em;
  pointer-events: none;
}
.semantic-axis-left { top: calc(50% + 10px); left: 18px; }
.semantic-axis-right { top: calc(50% + 10px); right: 18px; }
.semantic-axis-top { top: 16px; left: calc(50% + 10px); }
.semantic-axis-bottom { bottom: 16px; left: calc(50% + 10px); }
.semantic-map-points {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.semantic-map-dot {
  position: absolute;
  z-index: 1;
  width: var(--size);
  height: var(--size);
  left: var(--x);
  top: var(--y);
  padding: 0;
  background: var(--color);
  border: 1px solid color-mix(in srgb, var(--color), white 35%);
  border-radius: 50%;
  opacity: .72;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: opacity 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.semantic-map-dot:hover,
.semantic-map-dot:focus-visible {
  z-index: 12;
  opacity: 1;
  outline: none;
  transform: translate(-50%, -50%) scale(1.9);
  box-shadow:
    0 0 0 2px #191919,
    0 0 0 3px rgba(255, 255, 255, .9),
    0 0 24px color-mix(in srgb, var(--color), transparent 35%);
}
.semantic-map-label {
  position: absolute;
  z-index: 4;
  left: var(--x);
  top: var(--y);
  max-width: 160px;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--color), transparent 65%);
  border-radius: 999px;
  background: rgba(25, 25, 25, .82);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
  color: color-mix(in srgb, var(--color), white 35%);
  font-size: 9px;
  font-weight: 750;
  line-height: 1.1;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
}
.semantic-map-tooltip {
  position: absolute;
  z-index: 30;
  left: 50%;
  top: 50%;
  width: 280px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: #111317;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .58);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px)) scale(.92);
  transform-origin: bottom center;
  transition: opacity 140ms ease, transform 140ms ease;
}
.semantic-map-tooltip.visible {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 14px)) scale(1);
}
.semantic-map-tooltip.below {
  transform: translate(-50%, 14px) scale(.92);
  transform-origin: top center;
}
.semantic-map-tooltip.below.visible { transform: translate(-50%, 14px) scale(1); }
.semantic-map-tooltip > img {
  width: 100%;
  height: 138px;
  background: #202228;
  object-fit: cover;
}
.semantic-tooltip-content { padding: 12px; }
.semantic-tooltip-content > small {
  display: block;
  color: var(--accent-2);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.semantic-tooltip-content > strong {
  display: block;
  margin-top: 5px;
  font-size: 12px;
}
.semantic-tooltip-content > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 11px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.semantic-tooltip-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(255, 255, 255, .07);
}
.semantic-tooltip-metrics span {
  min-width: 0;
  padding: 7px 5px;
  background: #17191e;
  text-align: center;
}
.semantic-tooltip-metrics i,
.semantic-tooltip-metrics b { display: block; }
.semantic-tooltip-metrics i {
  overflow: hidden;
  color: var(--dim);
  font-size: 7px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.semantic-tooltip-metrics b {
  margin-top: 3px;
  font-size: 9px;
  font-weight: 650;
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  padding: 1px;
}
.topic-list-row {
  min-width: 0;
  padding: 13px;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  background: var(--panel);
  cursor: pointer;
  transition: background 140ms ease;
}
.topic-list-row:hover { background: var(--panel-2); }
.topic-color { width: 7px; height: 7px; border-radius: 50%; background: var(--color); }
.topic-list-row strong { display: block; font-size: 10px; }
.topic-list-row small { display: block; margin-top: 3px; color: var(--dim); font-size: 9px; }
.score-ring {
  --score: 50;
  width: 39px; height: 39px; display: grid; place-items: center;
  background: conic-gradient(var(--color, var(--accent)) calc(var(--score) * 1%), #292c32 0);
  border-radius: 50%; font-size: 9px; font-weight: 700;
}
.score-ring::before { content: ""; position: absolute; width: 31px; height: 31px; background: var(--panel); border-radius: 50%; }
.score-ring span { z-index: 1; }

.topic-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.topic-card { padding: 18px; cursor: pointer; transition: .2s ease; }
.topic-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.topic-card-head { display: flex; justify-content: space-between; gap: 12px; }
.topic-card h3 { margin: 0; font-size: 14px; }
.topic-card p { margin: 5px 0 0; color: var(--dim); font-size: 9px; }
.topic-metrics { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.topic-metric { padding-right: 7px; border-right: 1px solid var(--line); }
.topic-metric:last-child { border: 0; }
.topic-metric strong { display: block; font-size: 15px; letter-spacing: -.03em; }
.topic-metric small { display: block; margin-top: 3px; color: var(--dim); font-size: 8px; }
.topic-card-foot { margin-top: 17px; padding-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); }
.topic-card-foot small { color: var(--muted); font-size: 9px; }

.table-card,
.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: #454850 #17191e;
  -webkit-overflow-scrolling: touch;
}
.table-card::-webkit-scrollbar,
.table-scroll::-webkit-scrollbar { height: 8px; }
.table-card::-webkit-scrollbar-track,
.table-scroll::-webkit-scrollbar-track { background: #17191e; }
.table-card::-webkit-scrollbar-thumb,
.table-scroll::-webkit-scrollbar-thumb { background: #454850; border: 2px solid #17191e; border-radius: 99px; }
.data-table { width: 100%; border-collapse: collapse; }
.table-card .data-table { min-width: 1280px; }
.table-scroll .data-table { min-width: 540px; }
.data-table th {
  height: 43px; padding: 0 12px;
  color: var(--dim); background: #0f1013; border-bottom: 1px solid var(--line);
  text-align: left; font-size: var(--text-label); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.data-table td { padding: 11px 12px; color: #cfd0d4; border-bottom: 1px solid rgba(255,255,255,.055); font-size: var(--text-small); vertical-align: middle; }
.data-table .numeric-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.data-table tbody tr { cursor: pointer; transition: .15s ease; }
.data-table tbody tr:hover { background: rgba(255,255,255,.035); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.table-thumb { width: 38px; height: 50px; object-fit: cover; border-radius: 5px; background: #24262b; }
.table-thumb-wrap {
  width: 38px;
  height: 50px;
  position: relative;
}
.table-thumb-wrap .table-pin {
  width: 24px;
  height: 24px;
  top: 4px;
  right: 4px;
}
.table-thumb-wrap .table-pin svg { width: 12px; height: 12px; }
.data-table tbody tr:hover .table-pin,
.table-pin:focus-visible,
.table-pin.is-pinned {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) rotate(0);
}
.table-caption { max-width: 290px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.table-user { font-weight: 700; color: #fff; }
.metric-hot { color: var(--green) !important; font-weight: 700; }
.metric-cold { color: #ff7982 !important; }
.rank-cell { color: var(--dim) !important; font-size: 12px !important; }

.infinite-scroll-status {
  min-height: 58px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--dim);
  text-align: left;
}
.infinite-scroll-status strong { display: block; color: #8e9198; font-size: 9px; font-weight: 650; }
.infinite-scroll-status small { display: block; margin-top: 3px; color: #555961; font-size: 8px; }
.infinite-scroll-spinner {
  width: 18px;
  height: 18px;
  display: block;
  border: 2px solid #2b2e34;
  border-top-color: #777b84;
  border-radius: 50%;
  opacity: 0;
}
.infinite-scroll-status[data-state="loading"] .infinite-scroll-spinner { opacity: 1; animation: update-spin .8s linear infinite; }
.infinite-scroll-status[data-state="complete"] .infinite-scroll-spinner {
  opacity: 1;
  border: 0;
  color: var(--green);
}
.infinite-scroll-status[data-state="complete"] .infinite-scroll-spinner::before { content: "✓"; }
.infinite-scroll-status[data-state="failed"] strong,
.infinite-scroll-status[data-state="failed"] small { color: #ff8c94; }
.infinite-scroll-sentinel { width: 100%; height: 1px; }

.ranking-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ranking-grid .video-poster { aspect-ratio: 3/4; }

.performance-definition {
  width: min(100%, 920px);
  margin-top: 34px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.performance-definition h2 {
  margin: 0;
  color: #f2f2f3;
  font-size: 24px;
  letter-spacing: -.035em;
}
.performance-definition > p:not(.eyebrow) {
  max-width: 760px;
  margin: 10px 0 18px;
  color: #a9acb2;
  font-size: 14px;
  line-height: 1.65;
}
.performance-definition code {
  color: #e7e8ea;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.performance-editor-wrap {
  width: min(100%, 780px);
  position: relative;
}
.performance-formula-editor {
  min-height: 50px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: #e4e5e8;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.performance-formula-editor:focus-within {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.32);
  box-shadow: 0 0 0 2px rgba(255,255,255,.045);
}
.performance-formula-editor.is-invalid {
  border-color: rgba(255,75,88,.55);
}
.performance-formula-editor.is-readonly {
  opacity: .72;
  cursor: default;
}
.performance-formula-editor.is-readonly .performance-formula-input {
  cursor: default;
}
.performance-formula-text {
  color: #d7d8dc;
  white-space: pre-wrap;
}
.performance-formula-input {
  min-width: 130px;
  height: 28px;
  padding: 0 2px;
  flex: 1 1 150px;
  color: #f4f4f5;
  caret-color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  line-height: inherit;
}
.performance-formula-input::placeholder {
  color: #5f6269;
}
.performance-variable-tag {
  padding: 2px 7px;
  display: inline-flex;
  align-items: center;
  color: #ff858c;
  background: rgba(229,9,20,.12);
  border: 1px solid rgba(255,77,87,.28);
  border-radius: 5px;
  font-family: inherit;
  font-size: .92em;
  font-weight: 700;
  white-space: nowrap;
}
.performance-suggestions {
  width: min(420px, calc(100% - 12px));
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 6px;
  overflow: hidden;
  background: #17191e;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  box-shadow: var(--shadow);
}
.performance-suggestion {
  width: 100%;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #d7d8dc;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.045);
  text-align: left;
  cursor: pointer;
}
.performance-suggestion:last-child { border-bottom: 0; }
.performance-suggestion:hover,
.performance-suggestion.active { background: rgba(255,255,255,.055); }
.performance-suggestion small {
  color: var(--dim);
  font-size: 8px;
}
.performance-formula-meta {
  width: min(100%, 780px);
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--dim);
  font-size: 8px;
}
.performance-formula-actions {
  margin-top: 17px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.performance-formula-button {
  min-width: 154px;
  min-height: 38px;
  padding: 0 15px;
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.performance-formula-button.is-edit {
  color: #09090a;
  background: var(--accent);
}
.performance-formula-button.is-edit:hover {
  background: #f31621;
  transform: translateY(-1px);
}
.performance-formula-button.is-invalid {
  color: var(--dim);
  background: #292c32;
  cursor: not-allowed;
}
.performance-formula-button.is-valid {
  color: #07120e;
  background: var(--green);
}
.performance-formula-button.is-valid:not(:disabled):hover {
  background: #76e0b8;
  transform: translateY(-1px);
}
.performance-formula-feedback {
  display: grid;
  justify-items: start;
  gap: 4px;
}
.performance-formula-cancel {
  padding: 0;
  color: var(--dim);
  background: transparent;
  border: 0;
  font-size: 9px;
  font-weight: 400;
  cursor: pointer;
}
.performance-formula-cancel:hover {
  color: #9699a0;
  font-weight: 700;
}
.performance-formula-cancel[hidden] {
  display: none;
}
.performance-formula-status {
  margin: 0;
  color: #8d9097;
  font-size: 9px;
  line-height: 1.45;
}
.performance-formula-status.is-success { color: #67d8ae; }
.performance-formula-status.is-error { color: #ff858c; }
.performance-formula-status.is-checking { color: #c8a763; }

.howto-document {
  width: min(100%, 720px);
  margin-top: 30px;
  color: #b9bbc1;
  font-size: var(--text-long);
  line-height: 1.75;
}
.howto-document .howto-intro {
  margin: 0 0 42px;
  color: #d9dade;
  font-size: 16px;
  line-height: 1.7;
}
.howto-document h2 {
  margin: 42px 0 12px;
  color: #f1f1f3;
  font-size: 21px;
  letter-spacing: -.025em;
}
.howto-document p { margin: 0 0 14px; }
.howto-document strong { color: #f0f0f2; }
.howto-document code,
.howto-formula {
  color: #e0e1e4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1em;
}
.howto-document a {
  color: #ff737b;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.howto-document hr {
  margin: 44px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.howto-document ul {
  margin: 6px 0 0;
  padding-left: 22px;
}
.howto-document li { margin: 6px 0; }

.opportunity-section { margin-top: 32px; }
.opportunity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.opportunity-card { padding: 21px; position: relative; overflow: hidden; }
.opportunity-card::after { content: ""; position: absolute; right: -30px; top: -40px; width: 150px; height: 150px; background: radial-gradient(circle, color-mix(in srgb, var(--topic-color), transparent 82%), transparent 70%); }
.opportunity-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.opportunity-head h3 { margin: 0; font-size: 16px; }
.opportunity-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.opportunity-score { font-size: 29px; font-weight: 750; letter-spacing: -.05em; }
.opportunity-score small { color: var(--dim); font-size: 10px; }
.recommendation-strip { margin-top: 17px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.recommendation-strip div { padding: 9px; background: rgba(255,255,255,.035); border-radius: 7px; }
.recommendation-strip strong { display: block; font-size: 11px; }
.recommendation-strip small { display: block; margin-top: 4px; color: var(--dim); font-size: 8px; }

.hook-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hook-card { padding: 17px; min-height: 185px; position: relative; display: flex; flex-direction: column; }
.hook-card .hook-pin { top: 12px; right: 12px; }
.hook-card:hover .hook-pin,
.hook-card:focus-within .hook-pin,
.hook-pin.is-pinned {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) rotate(0);
}
.hook-card blockquote { margin: 12px 0; font-size: 14px; line-height: 1.45; letter-spacing: -.015em; }
.hook-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--dim); font-size: 9px; }
.copy-button { padding: 6px 8px; color: var(--muted); background: #22252b; border: 0; border-radius: 6px; cursor: pointer; font-size: 9px; }

.detail-page { padding-top: 24px; }
.detail-back { margin-bottom: 16px; color: var(--muted); background: transparent; border: 0; cursor: pointer; font-size: 11px; }
.correlations-back { margin-bottom: 18px; font-weight: 700; }
.detail-back:hover { color: #fff; }
.detail-grid { display: grid; grid-template-columns: minmax(330px, .78fr) minmax(440px, 1.22fr); gap: 18px; align-items: start; }
.player-column { position: sticky; top: 92px; }
.player-stage {
  min-height: 610px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #030303;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.player-stage .detail-pin { top: 13px; right: 13px; }
.player-stage:hover .detail-pin,
.player-stage:focus-within .detail-pin,
.detail-pin.is-pinned {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) rotate(0);
}
.player-stage video { width: 100%; max-height: calc(100vh - 210px); background: #000; }
.poster-fallback { width: 100%; height: 610px; position: relative; }
.poster-fallback img { width: 100%; height: 100%; object-fit: contain; }
.poster-fallback::after {
  content: "Vidéo non téléchargée · ouvrir sur Instagram";
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  padding: 9px 12px; color: #fff; background: rgba(0,0,0,.78); border-radius: 7px; font-size: 10px; white-space: nowrap;
}
.audio-summary-card {
  margin-top: 10px;
  padding: 17px;
  overflow: hidden;
  background: #111317;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.audio-summary-head {
  margin-bottom: 17px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.audio-summary-head .eyebrow { margin: 0 0 4px; }
.audio-summary-head h2 { margin: 0; font-size: 14px; letter-spacing: -.025em; }
.audio-status-badge {
  min-height: 24px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #858991;
  background: #1d2025;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 99px;
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}
.audio-status-badge.is-complete { color: #a7e8d0; background: rgba(55,211,154,.07); border-color: rgba(55,211,154,.17); }
.audio-status-badge i { width: 5px; height: 5px; background: var(--green); border-radius: 50%; box-shadow: 0 0 8px rgba(55,211,154,.5); }
.audio-summary-grid {
  display: grid;
  grid-template-columns: 73px minmax(0, 1fr);
  gap: 10px;
}
.audio-track-labels,
.audio-track-stack {
  display: grid;
  grid-template-rows: 74px 48px 27px 27px;
  gap: 6px;
}
.audio-track-labels span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.audio-track-labels strong { color: #d9dade; font-size: 9px; font-weight: 650; }
.audio-track-labels small { margin-top: 3px; color: #5f636c; font-size: 7px; }
.audio-track-stack {
  position: relative;
  overflow: hidden;
  cursor: crosshair;
  background:
    linear-gradient(90deg, transparent calc(25% - .5px), rgba(255,255,255,.055) 25%, transparent calc(25% + .5px)),
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(255,255,255,.075) 50%, transparent calc(50% + .5px)),
    linear-gradient(90deg, transparent calc(75% - .5px), rgba(255,255,255,.055) 75%, transparent calc(75% + .5px));
}
.audio-simple-track {
  min-width: 0;
  position: relative;
  overflow: hidden;
  background: #0a0b0d;
  border: 1px solid rgba(255,255,255,.045);
  border-radius: 4px;
}
.audio-simple-track svg { width: 100%; height: 100%; display: block; }
.simple-waveform-shape { fill: #8e929a; opacity: .8; }
.audio-center-line { stroke: rgba(255,255,255,.09); stroke-width: 1; vector-effect: non-scaling-stroke; }
.simple-energy-area { fill: rgba(229,9,20,.11); }
.simple-energy-band { fill: rgba(255,255,255,.12); }
.audio-track-scale {
  padding: 1px 3px;
  position: absolute;
  z-index: 2;
  right: 3px;
  color: rgba(255,255,255,.42);
  background: rgba(10,11,13,.72);
  border-radius: 3px;
  font-size: 6px;
  line-height: 1.2;
  pointer-events: none;
}
.audio-track-scale.is-top { top: 3px; }
.audio-track-scale.is-bottom { bottom: 3px; }
.simple-energy-line {
  fill: none;
  stroke: #f04a53;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.speech-track { background: rgba(8,10,11,.82); }
.speech-track i {
  position: absolute;
  top: 5px;
  bottom: 5px;
  min-width: 2px;
  background: #d8dade;
  border-radius: 2px;
  opacity: .82;
}
.cuts-track { background: rgba(8,10,11,.82); }
.cuts-track::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(255,255,255,.06);
}
.cuts-track i {
  position: absolute;
  z-index: 1;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: #f3b24d;
  box-shadow: 0 0 5px rgba(243,178,77,.28);
}
.audio-summary-playhead {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  pointer-events: none;
  background: #fff;
  box-shadow: 0 0 9px rgba(255,255,255,.45);
}
.audio-summary-playhead::before {
  content: "";
  position: absolute;
  top: 0;
  left: -2px;
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
}
.audio-time-axis {
  margin: 7px 0 0 83px;
  display: flex;
  justify-content: space-between;
  color: #555961;
  font-size: 7px;
  font-variant-numeric: tabular-nums;
}
.audio-method-note {
  margin: 12px 0 0;
  color: #666a73;
  font-size: 8px;
  line-height: 1.45;
}
.audio-details { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.055); }
.audio-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #a6a9b0;
  cursor: pointer;
  list-style: none;
  font-size: 9px;
  font-weight: 650;
}
.audio-details summary::-webkit-details-marker { display: none; }
.audio-details summary::before { content: "+"; margin-right: 7px; color: var(--dim); }
.audio-details[open] summary::before { content: "−"; }
.audio-details summary span { margin-left: auto; color: #555961; font-size: 7px; font-weight: 500; }
.audio-details .audio-stat-grid { margin-top: 12px; }
.audio-cluster-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}
.audio-cluster-ranking-card {
  margin-top: 0;
  padding: 19px 17px 17px;
  position: relative;
  background: #111317;
  border-radius: 18px;
}
.audio-cluster-ranking-card::before { display: none; }
.audio-cluster-ranking-card .audio-summary-head {
  min-height: 150px;
  margin-bottom: 18px;
  align-items: flex-start;
  flex-direction: column;
}
.audio-cluster-ranking-card .audio-summary-head .eyebrow {
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .18em;
}
.audio-cluster-ranking-card .audio-summary-head h2 {
  margin-top: 7px;
  color: #f4f4f5;
  font-size: clamp(18px, 2.2vw, 25px);
}
.audio-cluster-head-meta {
  width: 100%;
  display: grid;
  justify-items: start;
  gap: 8px;
}
.audio-cluster-head-meta small {
  color: #666a73;
  font-size: 8px;
}
.audio-cluster-score {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}
.audio-cluster-score strong {
  color: #fff;
  font-size: 21px;
  letter-spacing: -.04em;
}
.audio-cluster-score span {
  color: #777b84;
  font-size: 8px;
  text-transform: uppercase;
}
.audio-cluster-score b {
  font-size: 9px;
}
.audio-cluster-score .is-positive { color: #66c08e; }
.audio-cluster-score .is-negative { color: #e36c75; }
.audio-cluster-ranking-card .audio-summary-grid {
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px;
}
.audio-cluster-ranking-card .audio-track-labels strong {
  font-size: 9px;
}
.audio-cluster-ranking-card .audio-track-labels small {
  margin-top: 3px;
  font-size: 6px;
}
.audio-cluster-ranking-card .audio-track-labels,
.audio-cluster-ranking-card .audio-track-stack {
  grid-template-rows: 78px 52px 32px 32px;
  gap: 6px;
}
.audio-cluster-ranking-card .audio-simple-track {
  border-radius: 6px;
}
.audio-cluster-ranking-card .audio-time-axis {
  margin: 7px 0 0 78px;
  font-size: 7px;
}
.audio-cluster-ranking-card .audio-method-note {
  margin-top: 17px;
  font-size: 9px;
  line-height: 1.55;
}
.averaged-speech-track {
  padding: 5px 3px;
  display: flex;
  align-items: stretch;
  gap: 0;
}
.averaged-speech-track i {
  min-width: 0;
  height: auto;
  flex: 1 1 0;
  position: static;
  opacity: var(--activity);
  border-radius: 0;
}
.averaged-speech-track i:first-child { border-radius: 2px 0 0 2px; }
.averaged-speech-track i:last-child { border-radius: 0 2px 2px 0; }
.averaged-cuts-track i {
  opacity: calc(.3 + var(--density) * .7);
  transform: scaleY(calc(.35 + var(--density) * .65));
  transform-origin: center;
}
.audio-cluster-ranking-card .audio-details {
  margin-top: 19px;
  padding-top: 16px;
}
.audio-cluster-ranking-card .audio-details summary {
  font-size: 10px;
}
.audio-cluster-ranking-card .audio-details summary span {
  font-size: 8px;
}
.audio-cluster-representatives {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.055);
}
.audio-cluster-representatives > p {
  margin: 0 0 11px;
  color: #777b84;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.audio-cluster-reference-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.audio-cluster-ranking-card .audio-cluster-reference {
  margin-top: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  background: rgba(255,255,255,.018);
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 7px;
}
.audio-cluster-ranking-card .audio-cluster-reference-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
}
.audio-cluster-ranking-card .audio-cluster-reference-thumb img {
  border-radius: 0;
}
.audio-cluster-ranking-card .audio-cluster-reference > div:nth-child(2) {
  padding: 7px 6px 8px;
}
.audio-cluster-ranking-card .audio-cluster-reference small {
  font-size: 6px;
}
.audio-cluster-ranking-card .audio-cluster-reference strong {
  font-size: 8px;
}
.audio-cluster-ranking-card .audio-cluster-reference div > span,
.audio-cluster-ranking-card .audio-reference-open {
  display: none;
}
.audio-unavailable-state {
  min-height: 110px;
  padding: 18px;
  display: grid;
  place-content: center;
  gap: 5px;
  text-align: center;
  background: #0a0b0d;
  border: 1px dashed rgba(255,255,255,.09);
  border-radius: 5px;
}
.audio-unavailable-state strong { color: #b1b3b8; font-size: 10px; }
.audio-unavailable-state span { color: #5f636c; font-size: 8px; }

.detail-content { min-width: 0; }
.detail-title { padding: 6px 0 21px; }
.detail-title h1 { margin: 6px 0 8px; font-size: clamp(25px, 3vw, 39px); letter-spacing: -.04em; }
.detail-title p { margin: 0; max-width: 740px; color: var(--muted); line-height: 1.5; }
.detail-actions { margin-top: 14px; display: flex; gap: 8px; }
.primary-button {
  min-height: 38px; padding: 0 15px; color: #fff; background: var(--accent); border-radius: 8px; font-size: 11px; font-weight: 700;
}
.primary-button:hover { background: #f31621; transform: translateY(-1px); }
.ghost-button {
  min-height: 36px; padding: 0 12px; color: #bbbfc6; background: transparent; border: 1px solid var(--line); border-radius: 8px; font-size: 10px;
}
.ghost-button:hover { color: #fff; background: rgba(255,255,255,.045); }

.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.audio-stat-grid { margin-top: 15px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat-tile { padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; }
.stat-tile strong { display: block; font-size: 20px; letter-spacing: -.035em; }
.stat-tile small { display: block; margin-top: 5px; color: var(--dim); font-size: 9px; }
.ranking-stat {
  background: linear-gradient(135deg, rgba(229, 9, 20, .16), rgba(229, 9, 20, .035));
  border-color: rgba(255, 77, 87, .32);
}
.ranking-stat strong { color: #fff; }
.ranking-stat small { color: #ff8d94; font-weight: 700; }

.analysis-card { margin-top: 11px; padding: 19px; }
.analysis-card h2 { margin: 0; font-size: 14px; }
.analysis-card > p { color: var(--muted); line-height: 1.55; }
.why-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.why-list li { padding: 11px 12px 11px 35px; position: relative; color: #c5c7cc; background: rgba(255,255,255,.025); border-radius: 7px; font-size: 11px; line-height: 1.45; }
.why-list li::before { content: "✓"; position: absolute; left: 13px; color: var(--green); }

.tab-nav { margin: 16px 0 13px; display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tab-nav button { padding: 9px 10px; color: var(--dim); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; font-size: 10px; }
.tab-nav button.active { color: #fff; border-color: var(--accent); }
.transcript-tools { margin-bottom: 10px; display: flex; justify-content: space-between; gap: 8px; }
.transcript-search { height: 32px; padding: 0 10px; color: #fff; background: #0d0f12; border: 1px solid var(--line); border-radius: 7px; outline: none; font-size: 10px; }
.transcript { max-height: 440px; overflow-y: auto; padding-right: 6px; }
.transcript-segment { padding: 9px 7px; display: grid; grid-template-columns: 54px 1fr; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.045); cursor: pointer; line-height: 1.5; }
.transcript-segment:hover { background: rgba(255,255,255,.03); }
.transcript-time { color: var(--accent-2); font-size: 9px; font-variant-numeric: tabular-nums; }
.transcript-text { color: #c3c5ca; font-size: 11px; }
.notice { padding: 10px 12px; color: #b1b4ba; background: rgba(246,185,77,.07); border: 1px solid rgba(246,185,77,.16); border-radius: 7px; font-size: 9px; line-height: 1.5; }

.skeleton { position: relative; overflow: hidden; background: #15171b; border-radius: 8px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.055), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.loading-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.loading-grid .skeleton { height: 115px; }

.empty-state { min-height: 380px; display: grid; place-items: center; text-align: center; }
.empty-state div { max-width: 420px; }
.empty-state strong { display: block; font-size: 18px; }
.empty-state p { color: var(--muted); line-height: 1.5; }

.filter-drawer {
  position: fixed;
  z-index: 80;
  inset: 0 0 0 auto;
  width: min(420px, 100%);
  padding: 24px;
  background: #101115;
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(102%);
  transition: transform .25s ease;
}
.filter-drawer.open { transform: translateX(0); }
.drawer-head { margin-bottom: 27px; display: flex; justify-content: space-between; align-items: flex-start; }
.drawer-head small { color: var(--accent-2); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.drawer-head h2 { margin: 7px 0 0; font-size: 24px; letter-spacing: -.04em; }
.field { margin-bottom: 16px; display: grid; gap: 7px; }
.field > span { color: #92959c; font-size: 10px; font-weight: 600; }
.field input, .field select {
  width: 100%; height: 41px; padding: 0 11px; color: #fff; background: #17191e; border: 1px solid var(--line); border-radius: 8px; outline: 0; appearance: none;
}
.field input:focus, .field select:focus { border-color: var(--focus); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drawer-actions { position: absolute; left: 24px; right: 24px; bottom: 24px; display: flex; justify-content: flex-end; gap: 8px; }

.main.scrolling-mode {
  height: 100dvh;
  overflow: hidden;
  background: #050506;
}
.main.scrolling-mode .active-filters { display: none; }
.page.scrolling-page-root {
  height: calc(100dvh - 72px);
  padding: 0;
  overflow: hidden;
}
.scrolling-viewport {
  height: 100%;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.035), transparent 32rem),
    #050506;
}
.scrolling-feed {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
.scrolling-feed::-webkit-scrollbar { display: none; }
.scrolling-tabs {
  height: 32px;
  position: absolute;
  z-index: 12;
  top: 14px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 19px;
  color: rgba(255,255,255,.58);
  text-shadow: 0 2px 12px #000;
  transform: translateX(-50%);
  font-size: 12px;
}
.scrolling-tabs strong {
  height: 32px;
  position: relative;
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 750;
}
.scrolling-tabs strong::after {
  content: "";
  width: 21px;
  height: 2px;
  position: absolute;
  left: 50%;
  bottom: 0;
  background: #fff;
  border-radius: 3px;
  transform: translateX(-50%);
}
.scrolling-position {
  position: absolute;
  z-index: 12;
  top: 22px;
  right: 24px;
  color: rgba(255,255,255,.55);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 10px #000;
}
.scrolling-slide {
  width: 100%;
  height: 100%;
  min-height: 500px;
  position: relative;
  display: grid;
  place-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.scrolling-stage {
  width: min(610px, calc(100% - 36px));
  height: calc(100% - 28px);
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 13px;
}
.scrolling-video-shell {
  height: 100%;
  max-width: calc(100% - 78px);
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #000;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  box-shadow: 0 24px 80px rgba(0,0,0,.48);
}
.scrolling-video {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  background: #000;
}
.scrolling-video-fallback { opacity: .86; }
.scrolling-video-hit {
  position: absolute;
  z-index: 2;
  inset: 0;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.scrolling-play-indicator {
  width: 62px;
  height: 62px;
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0,0,0,.48);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.84);
  transition: opacity .16s ease, transform .16s ease;
  backdrop-filter: blur(8px);
  font-size: 20px;
}
.scrolling-slide.is-paused .scrolling-play-indicator {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.scrolling-video-shade {
  position: absolute;
  z-index: 3;
  inset: 35% 0 0;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(0,0,0,.08) 25%, rgba(0,0,0,.78));
}
.scrolling-sound {
  width: 34px;
  height: 34px;
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0,0,0,.36);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(8px);
  font-size: 13px;
}
.scrolling-sound svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scrolling-caption {
  max-width: calc(100% - 30px);
  position: absolute;
  z-index: 5;
  right: 15px;
  bottom: 21px;
  left: 15px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.78);
}
.scrolling-caption strong { display: block; font-size: 13px; }
.scrolling-caption p {
  max-height: 48px;
  margin: 8px 0 9px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 11px;
  line-height: 1.45;
}
.scrolling-caption span {
  display: block;
  overflow: hidden;
  font-size: 9px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scrolling-progress {
  height: 2px;
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  background: rgba(255,255,255,.25);
}
.scrolling-progress i {
  width: 100%;
  height: 100%;
  display: block;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
}
.scrolling-actions {
  width: 62px;
  padding-bottom: 19px;
  display: grid;
  justify-items: center;
  gap: 13px;
}
.scrolling-avatar {
  position: relative;
  width: 46px;
  height: 46px;
  margin-bottom: 2px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #ff3d47, #810009);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 5px 18px rgba(0,0,0,.38);
  font-size: 15px;
  font-weight: 850;
  overflow: hidden;
}
.scrolling-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.scrolling-action-static,
.scrolling-action-button {
  width: 62px;
  padding: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: default;
}
.scrolling-action-button { cursor: pointer; }
.scrolling-action-disc {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #202226;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: 0 7px 20px rgba(0,0,0,.25);
  transition: transform .16s ease, color .16s ease, background .16s ease;
}
.scrolling-action-button:hover .scrolling-action-disc { transform: scale(1.07); }
.scrolling-action-disc svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.scrolling-action-static small,
.scrolling-action-button small {
  color: #dadbde;
  font-size: 8px;
  font-weight: 700;
}
.scroll-pin.is-pinned .scrolling-action-disc {
  color: #fff;
  background: var(--accent);
}
.scrolling-analysis-action .scrolling-action-disc {
  color: #fff;
  background: var(--accent);
  border-color: rgba(255,255,255,.14);
}
.scrolling-performance {
  position: absolute;
  top: 18px;
  left: 22px;
  display: grid;
  justify-items: start;
  color: rgba(255,255,255,.72);
  pointer-events: none;
  text-shadow: 0 2px 10px #000;
}
.scrolling-performance strong { color: #fff; font-size: 12px; }
.scrolling-performance span { margin-top: 2px; font-size: 8px; }
.scrolling-loader {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #777b83;
  font-size: 9px;
  transition: height .2s ease, opacity .2s ease;
}
.scrolling-loader span {
  width: 15px;
  height: 15px;
  border: 2px solid #303238;
  border-top-color: var(--accent);
  border-radius: 50%;
}
.scrolling-loader[data-state="loading"] span { animation: update-spin .8s linear infinite; }
.scrolling-loader[data-state="complete"] {
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.scrolling-loader[data-state="failed"] { color: #ff7e86; }
.scrolling-empty {
  height: 100%;
  padding: 30px;
  display: grid;
  place-items: center;
}
.scrolling-empty .empty-state { width: min(560px, 100%); }

.backdrop { position: fixed; z-index: 70; inset: 0; pointer-events: none; opacity: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(3px); transition: .2s; }
.backdrop.open { pointer-events: auto; opacity: 1; }

.modal { position: fixed; z-index: 90; inset: 0; padding: 20px; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: .2s; }
.modal.open { pointer-events: auto; opacity: 1; }
.modal-card { width: min(680px, 100%); max-height: 88vh; overflow-y: auto; padding: 27px; position: relative; background: #131519; border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow); transform: translateY(8px); transition: .2s; }
.modal.open .modal-card { transform: translateY(0); }
.modal-close { position: absolute; right: 15px; top: 15px; }
.modal h2 { margin: 0 40px 16px 0; font-size: 23px; }
.modal h3 { margin: 22px 0 8px; font-size: 13px; }
.modal p, .modal li { color: var(--muted); font-size: 14px; line-height: 1.65; }
.update-status-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 21px; }
.update-status-icon {
  width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center;
  color: #fff; background: rgba(229,9,20,.14); border: 1px solid rgba(229,9,20,.25); border-radius: 50%; font-size: 20px;
}
.update-status-icon.processing { animation: update-spin 1s linear infinite; }
.update-status-head h2 { margin-bottom: 5px; }
.update-status-head p { margin: 0; }
.update-progress-track { height: 8px; overflow: hidden; background: #272a30; border-radius: 20px; }
.update-progress-bar { height: 100%; width: var(--progress); background: linear-gradient(90deg, #b40710, #ff3944); border-radius: inherit; transition: width .3s ease; }
.update-progress-meta { margin-top: 8px; display: flex; justify-content: space-between; color: var(--dim); font-size: 9px; }
.update-summary { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.update-summary div { padding: 11px; background: rgba(255,255,255,.035); border-radius: 8px; }
.update-summary strong { display: block; font-size: 15px; }
.update-summary small { display: block; margin-top: 4px; color: var(--dim); font-size: 8px; }
.pipeline-stages { margin-top: 17px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
.pipeline-stage { padding: 10px; display: flex; align-items: center; gap: 9px; background: rgba(255,255,255,.026); border: 1px solid rgba(255,255,255,.05); border-radius: 8px; }
.pipeline-stage[data-status="completed"] { border-color: rgba(55,211,154,.16); background: rgba(55,211,154,.045); }
.pipeline-stage[data-status="processing"] { border-color: rgba(229,9,20,.23); background: rgba(229,9,20,.055); }
.pipeline-stage[data-status="failed"] { border-color: rgba(255,75,88,.24); background: rgba(255,75,88,.07); }
.stage-state { width: 23px; height: 23px; flex: 0 0 auto; display: grid; place-items: center; color: var(--dim); background: #272a30; border-radius: 50%; font-size: 10px; }
.pipeline-stage[data-status="completed"] .stage-state { color: #07120e; background: var(--green); }
.pipeline-stage[data-status="processing"] .stage-state { color: #fff; background: var(--accent); animation: update-spin .9s linear infinite; }
.pipeline-stage[data-status="failed"] .stage-state { color: #fff; background: #b92530; }
.pipeline-stage strong { display: block; font-size: 9px; }
.pipeline-stage small { display: block; margin-top: 3px; color: var(--dim); font-size: 8px; }
.update-error { margin-top: 15px; padding: 11px; color: #ffacb1; background: rgba(255,75,88,.08); border: 1px solid rgba(255,75,88,.16); border-radius: 8px; font-size: 10px; line-height: 1.5; }

.toast-stack { position: fixed; z-index: 120; right: 18px; bottom: 18px; display: grid; gap: 8px; }
.toast { min-width: 260px; padding: 12px 14px; color: #e8e8ea; background: #24272d; border: 1px solid var(--line-strong); border-radius: 9px; box-shadow: var(--shadow); font-size: 10px; animation: toast-in .25s ease; }
.performance-save-toast strong {
  display: block;
  color: #f4f4f5;
  font-size: 11px;
}
.performance-save-toast > span {
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #92959c;
  font-size: 9px;
}
.toast-loader {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.16);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: update-spin .8s linear infinite;
  font-style: normal;
  font-size: 8px;
}
.toast-loader.is-complete {
  color: var(--green);
  border: 0;
  animation: none;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .ranking-grid { grid-template-columns: repeat(4, 1fr); }
  .topic-card-grid, .hook-grid { grid-template-columns: repeat(2, 1fr); }
  .topic-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .export-button { display: none; }
}

@media (max-width: 920px) {
  :root { --sidebar: 0px; }
  .sidebar { z-index: 80; width: 238px; transform: translateX(-102%); transition: transform .22s ease; }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .mobile-menu { display: inline-flex; }
  .topbar { padding-inline: 16px; }
  .topbar-left { min-width: 0; flex: 1; }
  .topbar-actions { flex: 0 0 auto; }
  .topbar-actions .update-button { display: none; }
  .topbar-actions .mode-switch button { padding-inline: 6px; }
  .page { padding-inline: 18px; }
  .active-filters { padding-inline: 18px; }
  .global-search-wrap { width: min(36vw, 300px); min-width: 190px; }
  .chart-grid, .activity-cadence-grid, .topic-hero-grid, .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .semantic-map-canvas { min-height: 540px; }
  .player-column { min-width: 0; }
  .player-column { position: static; }
  .player-stage { min-height: 480px; }
  .player-stage video { max-height: 70vh; }
  .poster-fallback { height: 530px; }
  .ranking-grid { grid-template-columns: repeat(3, 1fr); }
  .ideas-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .audio-cluster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audio-cluster-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creator-podium { padding-inline: 12px; }
}

@media (max-width: 680px) {
  .topbar { height: 62px; }
  .global-search-wrap { width: auto; min-width: 0; flex: 1; }
  .global-search kbd { display: none; }
  .topbar-actions .mode-switch,
  .topbar-actions .update-button,
  .topbar-actions .export-button { display: none; }
  .topbar-actions .filter-button {
    width: 38px;
    padding: 0;
    position: relative;
  }
  .topbar-actions .filter-button .button-label { display: none; }
  .topbar-actions .filter-button b {
    min-width: 15px;
    width: 15px;
    height: 15px;
    padding: 0;
    position: absolute;
    right: -5px;
    top: -5px;
    font-size: 8px;
  }
  .page { padding: 24px 14px 60px; }
  .page.scrolling-page-root {
    height: calc(100dvh - 62px);
    padding: 0;
  }
  .scrolling-position,
  .scrolling-performance { display: none; }
  .scrolling-tabs { top: 9px; }
  .scrolling-stage {
    width: 100%;
    height: 100%;
    gap: 6px;
  }
  .scrolling-video-shell {
    max-width: calc(100% - 61px);
    border-block: 0;
    border-left: 0;
    border-radius: 0 11px 11px 0;
  }
  .scrolling-actions {
    width: 55px;
    padding: 0 3px 18px 0;
    gap: 12px;
  }
  .scrolling-avatar { width: 42px; height: 42px; }
  .scrolling-action-static,
  .scrolling-action-button { width: 52px; }
  .scrolling-action-disc { width: 41px; height: 41px; }
  .scrolling-caption { right: 12px; left: 12px; }
  .active-filters { padding-inline: 14px; }
  .chart-wrap[data-hover-chart] { height: 260px; }
  .correlation-builder {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .correlation-versus { height: 18px; }
  .correlations-target-control { align-items: stretch; flex-direction: column; }
  .correlations-target-control .select-control { width: 100%; min-width: 0; }
  .page-head { align-items: flex-start; }
  .page-head h1 { font-size: 29px; }
  .page-meta { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .performance-formula-actions,
  .performance-formula-meta {
    align-items: flex-start;
    flex-direction: column;
  }
  .creator-grid { grid-template-columns: minmax(0, 1fr); }
  .creators-leaderboard .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .creator-sort-control,
  .creator-sort-control .select-control { width: 100%; }
  .creator-podium {
    min-height: 286px;
    padding: 24px 5px 0;
    gap: 2px;
  }
  .podium-card { height: 244px; padding-inline: 5px; }
  .podium-card.podium-1 { height: 274px; }
  .podium-card::before { width: 76px; height: 76px; }
  .podium-card .creator-avatar { width: 50px; height: 50px; }
  .podium-card.podium-1 .creator-avatar { width: 58px; height: 58px; }
  .podium-card > strong { font-size: 9px; }
  .podium-value { font-size: 15px; }
  .podium-medal { top: 67px; min-width: 46px; }
  .podium-medal.gold { top: 75px; }
  .podium-base { height: 48px; }
  .podium-1 .podium-base { height: 62px; }
  .kpi-card { min-height: 102px; padding: 14px; }
  .kpi-value { font-size: 22px; }
  .feature-rail { grid-auto-columns: 83vw; }
  .chart-card { min-height: 290px; padding: 14px; }
  .chart-card.weekly-frequency-card { min-height: 0; }
  .activity-calendar-card { padding: 14px; }
  .activity-calendar-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .chart-wrap { height: 210px; }
  .proportion-dot-row,
  .weekly-frequency-card .proportion-dot-row {
    grid-template-columns: minmax(0, 1fr) auto 58px;
    gap: 6px;
  }
  .proportion-dots,
  .weekly-frequency-card .proportion-dots {
    grid-template-columns: repeat(10, 8px);
    gap: 3px;
  }
  .proportion-dot,
  .weekly-frequency-card .proportion-dot {
    width: 8px;
    height: 8px;
  }
  .topic-map { min-height: 560px; padding: 12px; }
  .semantic-map-canvas { height: 510px; min-height: 510px; }
  .topic-list { grid-template-columns: minmax(0, 1fr); }
  .semantic-axis-label { display: none; }
  .semantic-map-tooltip { width: min(260px, calc(100% - 20px)); }
  .correlation-plot-grid, .topic-card-grid, .opportunity-grid, .hook-grid { grid-template-columns: 1fr; }
  .audio-cluster-grid { grid-template-columns: minmax(0, 1fr); }
  .audio-cluster-section .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .audio-cluster-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .audio-ranking-control {
    flex: 1 1 220px;
  }
  .audio-ranking-control .select-control {
    width: min(210px, 100%);
  }
  .audio-cluster-ranking-card {
    padding: 19px 16px;
  }
  .audio-cluster-ranking-card .audio-summary-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .audio-cluster-head-meta {
    width: 100%;
    justify-items: start;
  }
  .audio-cluster-ranking-card .audio-summary-grid {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
  }
  .audio-cluster-stack {
    grid-template-columns: minmax(0, 1fr);
  }
  .audio-cluster-ranking-card .audio-track-labels strong {
    font-size: 9px;
  }
  .audio-cluster-ranking-card .audio-track-labels small {
    font-size: 7px;
  }
  .audio-cluster-ranking-card .audio-track-labels,
  .audio-cluster-ranking-card .audio-track-stack {
    grid-template-rows: 82px 54px 29px 29px;
    gap: 6px;
  }
  .audio-cluster-ranking-card .audio-time-axis {
    margin-left: 88px;
  }
  .audio-cluster-reference-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ranking-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ideas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ideas-hero { padding: 20px; }
  .ideas-count { width: 68px; height: 68px; font-size: 22px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audio-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-title h1 { font-size: 27px; }
  .player-stage { min-height: 420px; }
  .poster-fallback { height: 470px; }
  .recommendation-strip { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .drawer-actions { position: static; margin-top: 28px; }
}

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

/* ──────────────────────────────────────────────────────────────
   CINEMA UI — immersive, content-first presentation layer
   ────────────────────────────────────────────────────────────── */

:root {
  --bg: #050505;
  --panel: #121212;
  --panel-2: #181818;
  --panel-3: #242424;
  --line: rgba(255, 255, 255, .075);
  --line-strong: rgba(255, 255, 255, .17);
  --muted: #b3b3b3;
  --dim: #858585;
  --accent: #e50914;
  --accent-2: #ff3340;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .52);
}

html { scrollbar-color: #4a4a4a #090909; }

body {
  background:
    radial-gradient(circle at 72% -10%, rgba(229, 9, 20, .1), transparent 28rem),
    linear-gradient(180deg, #080808 0, #050505 46rem);
}

body::before {
  content: "";
  width: 42vw;
  height: 42vw;
  position: fixed;
  z-index: -1;
  top: 24vh;
  right: -20vw;
  opacity: .24;
  background: radial-gradient(circle, rgba(229, 9, 20, .25), transparent 66%);
  pointer-events: none;
}

.sidebar {
  padding: 22px 15px 17px;
  background: linear-gradient(180deg, rgba(7, 7, 7, .99), rgba(8, 8, 8, .96));
  border-right-color: rgba(255, 255, 255, .055);
  box-shadow: 14px 0 45px rgba(0, 0, 0, .18);
}

.brand { padding-inline: 10px; }
.brand-mark { transform: skew(-7deg) scale(.94); }
.brand-mark i {
  border-radius: 0;
  box-shadow: 0 0 24px rgba(229, 9, 20, .4);
}
.brand-copy strong { font-size: 12px; letter-spacing: .18em; }
.brand-copy small { color: #777; }

.main-nav { margin-top: 20px; }
.nav-label { margin-top: 18px; color: #666; font-size: 9px; }
.nav-item {
  height: 40px;
  border-radius: 5px;
  color: #a7a7a7;
  font-size: 13px;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, .055);
  transform: translateX(2px);
}
.nav-item.active {
  background: linear-gradient(90deg, rgba(229, 9, 20, .26), rgba(229, 9, 20, .035));
}
.nav-item.active::before {
  width: 4px;
  height: 24px;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 18px rgba(229, 9, 20, .82);
}
.sidebar-foot { border-top-color: rgba(255, 255, 255, .06); }

.topbar {
  height: 68px;
  background: linear-gradient(180deg, rgba(5, 5, 5, .96), rgba(5, 5, 5, .77));
  border-bottom-color: rgba(255, 255, 255, .04);
  backdrop-filter: blur(28px) saturate(1.2);
}

.global-search,
.toolbar-button,
.mode-switch {
  background: rgba(255, 255, 255, .052);
  border-color: rgba(255, 255, 255, .085);
  border-radius: 5px;
}
.global-search:focus-within {
  background: rgba(20, 20, 20, .94);
  border-color: rgba(255, 255, 255, .36);
}
.mode-switch button,
.segmented button { border-radius: 3px; }
.mode-switch button.active,
.segmented button.active {
  background: #fff;
  color: #090909;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}

.page { padding-top: 30px; }
.page-head { margin-bottom: 25px; }
.page-head .eyebrow,
.eyebrow {
  color: #ff4a53;
  letter-spacing: .2em;
}
.page-head h1 {
  max-width: 880px;
  font-size: clamp(35px, 4.1vw, 59px);
  font-weight: 790;
  letter-spacing: -.06em;
}
.page-head > div > p:last-child {
  max-width: 720px;
  color: #a6a6a6;
  font-size: 13px;
}
.page-meta {
  padding: 7px 10px;
  color: #a9a9a9;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .065);
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: .02em;
}

.section { margin-top: 45px; }
.section-head { margin-bottom: 17px; }
.section-head h2 {
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 720;
  letter-spacing: -.035em;
}
.section-head p { color: #898989; font-size: 10px; }
.section-link { color: #bdbdbd; font-weight: 650; }
.section-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.chart-card,
.table-card,
.content-card {
  background: linear-gradient(145deg, rgba(28, 28, 28, .98), rgba(15, 15, 15, .98));
  border-color: rgba(255, 255, 255, .07);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
}
.activity-calendar-card,
.audio-cluster-ranking-card {
  background: linear-gradient(145deg, rgba(28, 28, 28, .98), rgba(15, 15, 15, .98));
  border-color: rgba(255, 255, 255, .07);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
}
.chart-card {
  position: relative;
  overflow: hidden;
}
.chart-card::before {
  content: "";
  width: 180px;
  height: 180px;
  position: absolute;
  top: -120px;
  right: -90px;
  opacity: .42;
  background: radial-gradient(circle, rgba(229, 9, 20, .18), transparent 68%);
  pointer-events: none;
}
.chart-title h3 { font-size: 15px; }
.chart-badge {
  color: #d4d4d4;
  background: rgba(255, 255, 255, .055);
  border-color: rgba(255, 255, 255, .08);
}

/* Editorial hero */
.cinema-hero {
  min-height: clamp(390px, 47vw, 590px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #101010;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 34px 95px rgba(0, 0, 0, .52);
}
.cinema-hero-art {
  width: 58%;
  height: 100%;
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -3;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(.92) contrast(1.05);
  transform: scale(1.01);
}
.cinema-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, #0a0a0a 0%, rgba(10, 10, 10, .98) 28%, rgba(10, 10, 10, .7) 54%, rgba(10, 10, 10, .08) 83%),
    linear-gradient(0deg, #080808 0%, transparent 35%);
}
.cinema-hero-scrim {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 62%, color-mix(in srgb, var(--bg), transparent 28%) 82%, var(--bg) 100%),
    radial-gradient(circle at 76% 42%, transparent 0, rgba(0, 0, 0, .05) 40%, rgba(0, 0, 0, .35) 100%);
}
.cinema-hero-copy {
  width: min(58%, 700px);
  min-height: inherit;
  padding: clamp(38px, 5.5vw, 82px);
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cinema-hero-kicker {
  margin: 0 0 17px;
  color: #e7e7e7;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.cinema-hero-kicker span {
  margin-right: 9px;
  padding: 5px 8px;
  color: #fff;
  background: var(--accent);
  border-radius: 3px;
  letter-spacing: .12em;
}
.cinema-hero-copy h2 {
  display: -webkit-box;
  max-width: 700px;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 820;
  letter-spacing: -.065em;
  line-height: .99;
  text-wrap: balance;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.cinema-hero-description {
  display: -webkit-box;
  max-width: 580px;
  margin: 20px 0 0;
  overflow: hidden;
  color: #c6c6c6;
  font-size: clamp(12px, 1.15vw, 15px);
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.cinema-hero-facts {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c6c6c6;
  font-size: 11px;
}
.cinema-hero-facts strong { color: #58d9a6; font-size: 13px; }
.cinema-hero-facts i {
  width: 3px;
  height: 3px;
  background: #777;
  border-radius: 50%;
}
.cinema-hero-actions { margin-top: 25px; display: flex; gap: 10px; }
.cinema-play,
.cinema-more {
  min-height: 43px;
  padding: 0 19px;
  border: 0;
  border-radius: 4px;
  font-weight: 740;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
.cinema-play {
  color: #050505;
  background: #fff;
}
.cinema-play span { margin-right: 7px; }
.cinema-play:hover { background: rgba(255, 255, 255, .78); transform: translateY(-1px); }
.cinema-more { color: #fff; background: rgba(109, 109, 110, .68); }
.cinema-more:hover { background: rgba(109, 109, 110, .48); transform: translateY(-1px); }
.cinema-hero-pin {
  top: 18px;
  right: 18px;
  opacity: 1;
  transform: none;
}

body[data-route="overview"] .page-head { margin-bottom: 18px; }
body[data-route="overview"] .cinema-hero + .kpi-grid {
  margin: -34px 20px 0;
  position: relative;
  z-index: 2;
}

.kpi-grid { gap: 8px; }
.kpi-card {
  min-height: 110px;
  padding: 16px;
  background: rgba(22, 22, 22, .96);
  border-color: rgba(255, 255, 255, .07);
  border-radius: 7px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .26);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.kpi-card:hover {
  background: #202020;
  border-color: rgba(255, 255, 255, .15);
  transform: translateY(-4px);
}
.kpi-top { color: #a5a5a5; font-size: 10px; }
.kpi-value { font-size: clamp(22px, 2vw, 30px); font-weight: 760; }

.feature-rail { gap: 9px; }
.insight-card {
  min-height: 195px;
  padding: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #262626, #151515);
  border-color: rgba(255, 255, 255, .07);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
  transition: transform .22s ease, border-color .22s ease;
}
.insight-card:hover {
  border-color: rgba(255, 255, 255, .18);
  transform: translateY(-5px) scale(1.01);
}
.insight-highlight {
  padding: 2px 5px 3px;
  color: #fff;
  background: var(--accent);
  border-radius: 3px;
  box-decoration-break: clone;
  box-shadow: 0 6px 18px rgba(229, 9, 20, .18);
  -webkit-box-decoration-break: clone;
}
.insight-card::after {
  width: 210px;
  height: 210px;
  right: -80px;
  bottom: -110px;
  opacity: .7;
}
.insight-card h3 { font-size: 19px; }

/* Content rails and posters */
.video-rail {
  grid-auto-columns: clamp(175px, 15.5vw, 235px);
  gap: 9px;
  margin: -24px -24px 0;
  padding: 34px 24px 40px;
  scroll-padding-inline: 24px;
}
.video-card {
  position: relative;
  border-radius: 7px;
  transform-origin: center bottom;
  transition: transform .22s ease, filter .22s ease;
}
.video-card:hover {
  z-index: 6;
  transform: translateY(-7px) scale(1.035);
}
.video-poster {
  aspect-ratio: 9 / 13;
  border-radius: 7px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .28);
}
.video-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: inherit;
  pointer-events: none;
}
.video-card:hover .video-poster {
  box-shadow: 0 24px 48px rgba(0, 0, 0, .52);
}
.video-card:hover img {
  filter: brightness(.62) saturate(1.05);
  transform: scale(1.065);
}
.video-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, .12), transparent 38%, rgba(0, 0, 0, .93));
}
.rank-number {
  font-size: 42px;
  font-style: italic;
  letter-spacing: -.08em;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .18);
}
.play-circle {
  width: 38px;
  height: 38px;
  padding-left: 2px;
  box-shadow: 0 7px 20px rgba(0, 0, 0, .32);
}
.video-info { padding: 11px 4px 0; }
.video-info strong { font-size: 12px; }
.video-info p { color: #969696; }
.mini-tag { color: #bdbdbd; background: #1d1d1d; }

.ranking-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px 9px;
}
.ranking-grid .video-poster { aspect-ratio: 9 / 13; }
.ranking-grid .video-card:hover { transform: translateY(-7px) scale(1.025); }
.control-row {
  padding: 8px;
  background: rgba(20, 20, 20, .8);
  border: 1px solid rgba(255, 255, 255, .065);
  border-radius: 7px;
}
.table-card { border-radius: 7px; }
.data-table tbody tr { transition: background .15s ease; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, .075); }

/* Creators become a cast gallery */
.creator-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.creator-card {
  min-height: 205px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #242424, #111);
  border-color: rgba(255, 255, 255, .065);
  border-radius: 7px;
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}
.creator-card::after {
  content: "";
  width: 160px;
  height: 160px;
  position: absolute;
  right: -90px;
  bottom: -100px;
  background: radial-gradient(circle, rgba(229, 9, 20, .25), transparent 68%);
  pointer-events: none;
}
.creator-card:hover {
  z-index: 2;
  background: linear-gradient(150deg, #2d2d2d, #151515);
  border-color: rgba(255, 255, 255, .15);
  transform: translateY(-6px) scale(1.012);
}
.creator-avatar {
  width: 54px;
  height: 54px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.creator-card-stats { margin-top: 24px; }

/* Topics as content universes */
.topic-card-grid { gap: 9px; }
.topic-card {
  min-height: 190px;
  padding: 21px;
  overflow: hidden;
  background:
    radial-gradient(circle at 94% 10%, color-mix(in srgb, var(--topic-color, #e50914), transparent 78%), transparent 42%),
    linear-gradient(145deg, #222, #111);
  border-color: rgba(255, 255, 255, .065);
  border-radius: 7px;
}
.topic-card:hover {
  background:
    radial-gradient(circle at 88% 15%, color-mix(in srgb, var(--topic-color, #e50914), transparent 68%), transparent 48%),
    linear-gradient(145deg, #282828, #141414);
  transform: translateY(-6px) scale(1.012);
}
.topic-card h3 { font-size: 17px; }
.topic-card-foot { margin-top: 25px; }
.topic-map {
  background: linear-gradient(145deg, rgba(28, 28, 28, .98), rgba(15, 15, 15, .98));
}

/* Inspiration moodboard */
.ideas-hero {
  min-height: clamp(270px, 29vw, 390px);
  padding: clamp(28px, 5vw, 68px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  justify-content: flex-start;
  background: #111;
  border-color: rgba(255, 255, 255, .08);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.ideas-hero-art {
  width: 48%;
  height: 100%;
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -3;
  object-fit: cover;
  object-position: center 25%;
}
.ideas-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(90deg, #101010 0%, #101010 38%, rgba(16, 16, 16, .67) 66%, rgba(16, 16, 16, .05));
}
.ideas-hero-scrim {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 8, 8, .9), transparent 46%);
}
.ideas-hero > div:not(.ideas-hero-scrim) { max-width: 58%; }
.ideas-hero h2 { font-size: clamp(30px, 4vw, 54px); line-height: 1; }
.ideas-hero > div > p:last-child { color: #c4c4c4; font-size: 13px; }
.ideas-count {
  position: absolute;
  right: 26px;
  bottom: 24px;
  background: rgba(229, 9, 20, .82);
  border: 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .34);
}
.ideas-count small { color: #fff; }
.ideas-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 9px; }
.ideas-grid .video-poster { aspect-ratio: 9 / 13; }

/* Opportunity collections */
.opportunity-section { margin-top: 44px; }
.opportunity-grid { gap: 9px; }
.opportunity-card {
  min-height: 230px;
  padding: 24px;
  background:
    radial-gradient(circle at 102% -4%, color-mix(in srgb, var(--topic-color), transparent 76%), transparent 43%),
    linear-gradient(145deg, #222, #111);
  border-color: rgba(255, 255, 255, .065);
  border-radius: 7px;
  transition: transform .2s ease, border-color .2s ease;
}
.opportunity-card:hover {
  border-color: rgba(255, 255, 255, .17);
  transform: translateY(-5px);
}
.opportunity-card::after {
  width: 240px;
  height: 240px;
  opacity: .55;
}
.opportunity-head h3 { font-size: 20px; }
.opportunity-score { color: #fff; font-size: 38px; }
.recommendation-strip { margin-top: 25px; }
.recommendation-strip div {
  padding: 12px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .035);
  border-radius: 5px;
}
.notice { border-radius: 5px; }

/* Hooks as cinematic quote cards */
.hook-grid {
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.hook-card {
  min-height: 310px;
  padding: 0;
  isolation: isolate;
  overflow: hidden;
  background: #111;
  border-color: rgba(255, 255, 255, .065);
  border-radius: 7px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .2);
  transition: transform .22s ease, border-color .22s ease;
}
.hook-card:nth-child(7n + 1) { grid-column: span 2; }
.hook-card:hover {
  z-index: 2;
  border-color: rgba(255, 255, 255, .18);
  transform: translateY(-6px) scale(1.012);
}
.hook-card-art {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: -3;
  inset: 0;
  object-fit: cover;
  filter: brightness(.64) saturate(.8);
  transition: transform .45s ease, filter .3s ease;
}
.hook-card:hover .hook-card-art {
  filter: brightness(.5) saturate(1);
  transform: scale(1.06);
}
.hook-card-scrim {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .22), rgba(0, 0, 0, .12) 25%, rgba(0, 0, 0, .94)),
    linear-gradient(90deg, rgba(0, 0, 0, .72), transparent 72%);
}
.hook-card-content {
  min-height: inherit;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.hook-card blockquote {
  display: -webkit-box;
  max-width: 540px;
  margin: auto 0;
  overflow: hidden;
  color: #fff;
  font-size: clamp(16px, 1.45vw, 23px);
  font-weight: 680;
  line-height: 1.28;
  letter-spacing: -.035em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .5);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
}
.hook-card:nth-child(7n + 1) blockquote { -webkit-line-clamp: 5; }
.hook-meta { color: #d0d0d0; }
.hook-meta > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}
.hook-card .mini-tag {
  color: #f2f2f2;
  background: rgba(0, 0, 0, .48);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
}
.hook-card .copy-button {
  color: #fff;
  background: rgba(50, 50, 50, .75);
}

/* Detail page: a proper screening room */
.detail-page { padding-top: 8px; }
.detail-grid { grid-template-columns: minmax(390px, .88fr) minmax(500px, 1.12fr); gap: 25px; }
.player-stage {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(229, 9, 20, .13), transparent 50%),
    #020202;
  border-color: rgba(255, 255, 255, .08);
  border-radius: 9px;
  box-shadow: 0 28px 75px rgba(0, 0, 0, .48);
}
.detail-title {
  padding: 8px 0 25px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.detail-title h1 {
  margin-top: 0;
  font-size: clamp(38px, 5vw, 68px);
  letter-spacing: -.065em;
}
.stat-tile {
  background: linear-gradient(145deg, #202020, #121212);
  border-color: rgba(255, 255, 255, .065);
  border-radius: 6px;
}
.analysis-card { border-radius: 7px; }

/* Scrolling stays immersive and distraction-free */
.scrolling-viewport {
  background:
    radial-gradient(circle at 50% 38%, rgba(229, 9, 20, .13), transparent 32rem),
    #050505;
}
.scrolling-stage { filter: drop-shadow(0 32px 45px rgba(0, 0, 0, .55)); }
.scrolling-video-shell {
  border-color: rgba(255, 255, 255, .1);
  border-radius: 12px;
}
.scrolling-action-disc {
  background: rgba(28, 28, 28, .78);
  border-color: rgba(255, 255, 255, .16);
  backdrop-filter: blur(12px);
}

/* Guide reads like a premium editorial page */
body[data-route="how-to"] .page {
  background:
    radial-gradient(circle at 84% 10%, rgba(229, 9, 20, .14), transparent 23rem),
    transparent;
}
.howto-document {
  width: min(100%, 860px);
  padding: clamp(25px, 5vw, 68px);
  color: #bebebe;
  background: linear-gradient(145deg, rgba(27, 27, 27, .96), rgba(12, 12, 12, .96));
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.howto-document .howto-intro { color: #eee; font-size: 19px; }
.howto-document h2 {
  color: #fff;
  font-size: 26px;
  letter-spacing: -.04em;
}

/* Responsive cinema layout */
@media (max-width: 1280px) {
  .ranking-grid,
  .ideas-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .creator-grid,
  .hook-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1040px) {
  .cinema-hero-copy { width: 68%; }
  .cinema-hero-art { width: 62%; }
  .ranking-grid,
  .ideas-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .creator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
  .player-column { position: static; }
}

@media (max-width: 760px) {
  .page { padding-top: 24px; }
  .page-head { margin-bottom: 21px; }
  .page-head h1 { font-size: clamp(32px, 11vw, 46px); }
  .page-meta { display: none; }
  .cinema-hero { min-height: 510px; }
  .cinema-hero-art {
    width: 100%;
    height: 62%;
  }
  .cinema-hero::before {
    background:
      linear-gradient(0deg, #090909 13%, rgba(9, 9, 9, .92) 31%, rgba(9, 9, 9, .12) 76%),
      linear-gradient(90deg, rgba(9, 9, 9, .45), transparent);
  }
  .cinema-hero-copy {
    width: 100%;
    padding: 230px 22px 30px;
    justify-content: flex-end;
  }
  .cinema-hero-copy h2 { font-size: 34px; -webkit-line-clamp: 2; }
  .cinema-hero-description { margin-top: 12px; -webkit-line-clamp: 2; }
  .cinema-hero-actions { width: 100%; }
  .cinema-play,
  .cinema-more { padding-inline: 12px; flex: 1; font-size: 11px; }
  body[data-route="overview"] .cinema-hero + .kpi-grid { margin: 12px 0 0; }
  .video-rail { grid-auto-columns: minmax(152px, 43vw); }
  .ranking-grid,
  .ideas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creator-grid,
  .topic-card-grid,
  .hook-grid { grid-template-columns: 1fr; }
  .hook-card:nth-child(7n + 1) { grid-column: span 1; }
  .hook-card:nth-child(7n + 1) blockquote { -webkit-line-clamp: 7; }
  .hook-card { min-height: 330px; }
  .opportunity-grid { grid-template-columns: 1fr; }
  .ideas-hero {
    min-height: 400px;
    padding: 220px 22px 26px;
    align-items: flex-end;
  }
  .ideas-hero-art { width: 100%; height: 72%; }
  .ideas-hero::before {
    background: linear-gradient(0deg, #101010 24%, rgba(16, 16, 16, .72) 55%, rgba(16, 16, 16, .05));
  }
  .ideas-hero > div:not(.ideas-hero-scrim) { max-width: 100%; }
  .ideas-hero h2 { font-size: 35px; }
  .ideas-count { width: 62px; height: 62px; right: 18px; top: 18px; bottom: auto; }
  .detail-grid { display: block; }
  .detail-content { margin-top: 30px; }
  .howto-document { padding: 24px 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .video-card:hover,
  .creator-card:hover,
  .topic-card:hover,
  .hook-card:hover,
  .opportunity-card:hover { transform: none; }
}
