:root {
  --bg: #070708;
  --surface: rgba(255, 255, 255, 0.04);
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-bg-hover: rgba(255, 255, 255, 0.105);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-border-strong: rgba(255, 255, 255, 0.24);
  --text: #F5F5F7;
  --text-muted: #9A9AA3;
  --accent: #F5F5F7;
  --silver: #CBD2DC;
  --color-tiktok: #E8ECEF;
  --color-instagram: #E1306C;
  --color-youtube: #FF0033;
  --color-telegram: #26A5E4;
  --status-ok: #D8E2DC;
  --status-warn: #E9C46A;
  --status-err: #E07A5F;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

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

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

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

.mono,
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(62% 48% at 14% 6%, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(50% 42% at 88% 12%, rgba(203, 210, 220, 0.055) 0%, rgba(203, 210, 220, 0) 72%),
    radial-gradient(55% 45% at 50% 95%, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0) 75%);
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
  position: relative;
  z-index: 1;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 18px 42px rgba(0, 0, 0, 0.36);
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 7, 8, 0.72);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand__mark--small {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 11px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__text strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__sub {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--text-muted);
  transition: color 0.16s ease, background-color 0.16s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--silver);
  white-space: nowrap;
}

.status-pill[hidden] {
  display: none;
}

.status-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--silver);
}

.status-pill.is-running .status-pill__dot {
  background: var(--status-warn);
  animation: pulseDot 1.2s ease-in-out infinite;
}

.status-pill.is-error .status-pill__dot {
  background: var(--status-err);
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

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

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

.btn--small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.btn--light {
  background: var(--text);
  color: #070708;
  border-color: rgba(255, 255, 255, 0.9);
}

.btn--light:hover {
  background: #E4E4EA;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border-color: var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--glass-border-strong);
}

/* Hero */
.hero {
  padding-top: 44px;
  padding-bottom: 24px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.88fr);
  gap: 24px;
  align-items: stretch;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 0;
}

.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--silver);
  font-size: 12.5px;
  font-family: var(--font-mono);
  margin-bottom: 18px;
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
}

.eyebrow__sep {
  color: var(--text-muted);
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h1 span {
  color: var(--silver);
  font-weight: 500;
}

.hero__tagline {
  margin: 0 0 8px;
  font-size: 15px;
  font-family: var(--font-mono);
  color: var(--silver);
}

.hero__lead {
  margin: 0 0 22px;
  max-width: 58ch;
  font-size: 16px;
  color: var(--text-muted);
}

.hero__followers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.follower-chip {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  min-width: 0;
}

.follower-chip img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.follower-chip__meta {
  min-width: 0;
}

.follower-chip__name {
  font-size: 11.5px;
  color: var(--text-muted);
}

.follower-chip__val {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Live snapshot panel */
.hero__panel {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver);
}

.panel__time {
  font-size: 12px;
  color: var(--text-muted);
}

.panel__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.snap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.snap-row__left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.snap-row__left img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.snap-row__title {
  font-size: 14px;
  font-weight: 600;
}

.snap-row__sub {
  font-size: 12px;
  color: var(--text-muted);
}

.snap-row__right {
  text-align: right;
  flex-shrink: 0;
}

.snap-row__views {
  font-size: 15px;
  font-weight: 600;
}

.snap-row__er {
  font-size: 12px;
  color: var(--text-muted);
}

.panel__foot {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
}

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

.panel__meta-row[hidden] {
  display: none;
}

/* KPI strip */
.kpi-strip {
  margin-top: 22px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.kpi-cell {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.kpi-cell__label {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.kpi-cell__val {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.kpi-cell__sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding-top: 64px;
  padding-bottom: 12px;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section__kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 6px;
}

h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.section__note {
  margin: 0;
  max-width: 48ch;
  font-size: 14px;
  color: var(--text-muted);
}

/* Tabs */
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 20px;
}

.seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.seg-btn img {
  width: 15px;
  height: 15px;
}

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

.seg-btn.is-active {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Platform comparison & metrics */
.platform-banner {
  padding: 14px 18px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
}

.mini-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.mini-kpi {
  padding: 18px;
  border-radius: var(--radius-md);
}

.mini-kpi__label {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.mini-kpi__val {
  font-size: 24px;
  font-weight: 600;
}

.mini-kpi__sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.compare-card {
  padding: 18px;
  margin-bottom: 18px;
  overflow: hidden;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.compare-table th,
.compare-table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.compare-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.plat-cell {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
}

.plat-cell img {
  width: 16px;
  height: 16px;
}

/* Charts */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.chart-card {
  padding: 20px;
  border-radius: var(--radius-md);
  min-width: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.045) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  isolation: isolate;
  overflow: hidden;
}

.chart-card--wide {
  grid-column: 1 / -1;
}

.chart-card__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.chart-card__title {
  font-size: 15px;
  font-weight: 600;
}

.chart-card__sub {
  font-size: 12px;
  color: var(--text-muted);
}

.chart-box {
  position: relative;
  height: 260px;
  width: 100%;
}

.chart-box--compact {
  height: 230px;
}

/* Fallback bars when Chart.js is unavailable */
.bar-fallback {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 230px;
  overflow-y: auto;
  padding-right: 4px;
}

.bar-fallback__row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 78px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.bar-fallback__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bar-fallback__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--silver);
}

/* Extras & hashtags */
.extras-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.extra-card {
  padding: 20px;
  border-radius: var(--radius-md);
}

.extra-card__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}

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

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
}

.kv-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
}

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

.progress-row__head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.progress-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--text);
}

/* Audience */
.audience-empty {
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.audience-empty__copy {
  max-width: 58ch;
}

.audience-empty__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.audience-empty__desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

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

/* Content / Video cards */
.subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.subhead--spaced {
  margin-top: 30px;
}

.subhead__badge {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: var(--silver);
}

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

.video-card {
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.video-card:hover {
  transform: translateY(-2px);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-strong);
}

.video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
}

.video-card__thumb img.thumb-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.video-card__thumb img.thumb-logo {
  width: 32px;
  height: 32px;
  opacity: 0.9;
}

.video-card__badge {
  position: absolute;
  top: 9px;
  left: 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(7, 7, 8, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-family: var(--font-mono);
}

.video-card__badge img {
  width: 12px;
  height: 12px;
}

.video-card__dur {
  position: absolute;
  bottom: 9px;
  right: 9px;
  padding: 3px 7px;
  border-radius: 7px;
  background: rgba(7, 7, 8, 0.8);
  font-size: 11px;
  font-family: var(--font-mono);
}

.video-card__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.video-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.vc-stat__label {
  font-size: 11px;
  color: var(--text-muted);
}

.vc-stat__val {
  font-size: 13.5px;
  font-weight: 600;
}

/* Catalog */
.catalog {
  margin-top: 30px;
  padding: 22px;
}

.catalog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.catalog__title {
  font-size: 18px;
  font-weight: 700;
}

.catalog__sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

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

.field input,
.field select {
  min-height: 40px;
  padding: 0 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.field select option {
  background: #141417;
  color: var(--text);
}

.field input:focus,
.field select:focus {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.09);
}

.field--search input {
  width: 260px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.video-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.video-table th,
.video-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: middle;
}

.video-table th {
  font-size: 11.5px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.video-table tbody tr {
  cursor: pointer;
  transition: background-color 0.14s ease;
}

.video-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.055);
}

.video-table tbody tr:last-child td {
  border-bottom: 0;
}

.td-num {
  text-align: right;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.compare-table th.td-num,
.compare-table td.td-num,
.video-table th.td-num,
.video-table td.td-num {
  text-align: right;
}

.row-video-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.row-video-text {
  min-width: 0;
}

.row-thumb {
  width: 40px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
}

.row-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.row-thumb__logo {
  width: 18px;
  height: 18px;
  opacity: 0.85;
}

.row-title {
  font-weight: 500;
  max-width: 340px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.catalog__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.pager {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pager button {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  cursor: pointer;
}

.pager button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

.pager button.is-active {
  background: var(--text);
  color: #070708;
  border-color: var(--text);
  font-weight: 700;
}

.pager button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Mobile video cards fallback inside table */
.mobile-video-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-video-item {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-align: left;
  cursor: pointer;
}

.mobile-video-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.mobile-video-item__body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.mobile-video-item__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.mobile-video-item__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  font-size: 12px;
}

.mobile-video-item__stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Accounts */
.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.account-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.account-card__head {
  display: flex;
  align-items: center;
  gap: 13px;
}

.account-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.account-card__icon img {
  width: 22px;
  height: 22px;
}

.account-card__name {
  font-size: 16px;
  font-weight: 700;
}

.account-card__handle {
  font-size: 13px;
  color: var(--silver);
  font-family: var(--font-mono);
}

.account-card__bio {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
  white-space: pre-line;
}

.account-card__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.account-card__note {
  font-size: 12px;
  color: var(--text-muted);
}

/* Contact */
.contact-panel {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: center;
}

.contact-panel__copy h2 {
  margin-bottom: 10px;
}

.contact-panel__copy p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 15px;
}

.contact-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-panel__aside {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.13);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
}

.contact-link__left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.contact-link__left img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.contact-link__label {
  font-size: 12px;
  color: var(--text-muted);
}

.contact-link__val {
  font-size: 14px;
  font-weight: 600;
}

/* Footer */
.footer {
  margin-top: 64px;
  padding-top: 24px;
  padding-bottom: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer__left,
.footer__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Modal */
.modal {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  max-width: 780px;
  width: calc(100% - 24px);
  margin: auto;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
}

.modal__shell {
  position: relative;
  padding: 24px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal__close {
  position: sticky;
  top: 0;
  float: right;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(20, 20, 23, 0.9);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.modal__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-right: 44px;
}

.modal__title {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 600;
}

.modal__media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 18px;
}

.modal__preview {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}

.modal__preview img.preview-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.modal__preview-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.modal__embed-frame {
  width: 100%;
  height: 440px;
  border: 0;
  display: block;
  background: #000;
}

.modal__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.modal__stat {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.modal__stat-label {
  font-size: 11.5px;
  color: var(--text-muted);
}

.modal__stat-val {
  font-size: 16px;
  font-weight: 600;
  margin-top: 3px;
}

.modal__section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal__section h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--silver);
}

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

/* Toast */
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(24, 24, 28, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text);
  font-size: 13.5px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.toast[hidden] {
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .kpi-strip,
  .mini-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-grid,
  .account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .glass {
    backdrop-filter: blur(16px) saturate(125%);
    -webkit-backdrop-filter: blur(16px) saturate(125%);
  }

  .topbar {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .nav {
    display: none;
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .charts-grid,
  .extras-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .field--search input {
    width: 100%;
  }

  .catalog__tools {
    width: 100%;
  }

  .catalog__tools .field {
    flex: 1 1 160px;
  }

  .catalog__tools select {
    width: 100%;
  }

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

@media (max-width: 560px) {
  .wrap {
    padding-inline: 14px;
  }

  .glass {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
  }

  .hero {
    padding-top: 26px;
  }

  .hero__followers,
  .kpi-strip,
  .mini-kpi-grid,
  .video-grid,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .catalog {
    padding: 16px;
  }

  .hero__panel,
  .contact-panel {
    padding: 18px;
  }

  .topbar__inner {
    gap: 8px;
  }

  .status-pill {
    display: none;
  }

  .modal__shell {
    padding: 16px;
  }

  .modal__embed-frame {
    height: 360px;
  }
}

/* Print / PDF export */
@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  html,
  body {
    background: #FFFFFF !important;
    color: #111114 !important;
  }

  .ambient,
  .topbar,
  .hero__actions,
  .segmented,
  .catalog__tools,
  #video-pagination,
  .modal,
  .toast,
  #btn-print,
  #hero-print-btn {
    display: none !important;
  }

  .glass,
  .follower-chip,
  .snap-row,
  .mini-kpi,
  .chart-card,
  .extra-card,
  .video-card,
  .account-card,
  .contact-panel,
  .catalog {
    background: #FFFFFF !important;
    color: #111114 !important;
    border: 1px solid #D8DADF !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    break-inside: avoid;
  }

  .muted,
  .hero__lead,
  .section__note,
  .kpi-cell__label,
  .kpi-cell__sub,
  .mini-kpi__label,
  .mini-kpi__sub,
  .account-card__bio,
  .footer {
    color: #4A4D57 !important;
  }

  .section {
    padding-top: 24px;
  }
}
