:root {
  --black: #000000;
  --white: #ffffff;
  --magenta: #e20d6f;
  --pink: #ff0065;
  --ink: #111111;
  --muted: #b8b8b8;
  --line: rgba(255, 255, 255, 0.14);
  --panel: #151515;
  --panel-2: #202020;
  --radius: 8px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--black);
  color: var(--white);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--black);
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr minmax(180px, 360px) auto;
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 14px clamp(16px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  min-width: 56px;
  height: 38px;
  background: var(--magenta);
  color: var(--white);
  border-radius: 4px;
}

.brand-copy {
  color: var(--white);
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  color: #e9e9e9;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav a:hover,
.subnav a:hover {
  color: var(--pink);
}

.search input,
.chat-input input,
.admin-card input,
.admin-card select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101010;
  color: var(--white);
  padding: 0 14px;
}

.icon-button {
  display: none;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  font-weight: 800;
}

.search-results {
  position: fixed;
  top: 72px;
  right: clamp(16px, 3vw, 40px);
  z-index: 50;
  width: min(420px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111111;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.search-results a,
.search-results p {
  display: block;
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.search-results span {
  display: block;
  color: var(--magenta);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

main {
  min-height: calc(100vh - 72px);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 72px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 32px;
  align-items: end;
  padding: clamp(28px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.9)),
    var(--hero-image) center / cover;
}

.hero-content {
  max-width: 940px;
}

.hero h1,
.page-head h1,
.profile-hero h1,
.event-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 6.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.hero p,
.page-head p,
.event-hero p {
  max-width: 720px;
  color: #d8d8d8;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.55;
}

.kicker {
  margin: 0 0 8px;
  color: var(--magenta);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.kicker.live::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 6px rgba(226, 13, 111, 0.24);
}

.hero-actions,
.watch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.primary,
.secondary,
.link-button {
  min-height: 48px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.primary {
  background: var(--magenta);
  color: var(--white);
}

.primary:hover {
  background: var(--pink);
}

.secondary,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.compact {
  min-height: 38px;
  padding: 0 13px;
  font-size: 0.82rem;
}

.hero-meta,
.match-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-meta span,
.match-strip span,
.match-strip strong,
.pill,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pill.premium {
  background: var(--magenta);
  border-color: var(--magenta);
}

.perspective-dock {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d0d0d;
  padding: 16px;
}

.perspective-dock h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.05;
  text-transform: uppercase;
}

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

.perspective-pill {
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #181818;
  color: var(--white);
  padding: 10px;
  text-align: left;
  line-height: 1.25;
}

.perspective-pill:hover {
  border-color: var(--magenta);
}

.perspective-pill span {
  display: block;
  margin-bottom: 6px;
  color: var(--magenta);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-card,
.value-panel,
.account-panel,
.admin-card,
.model-card,
.perspective-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 17, 17, 0.86);
  padding: 24px;
}

.hero-card h3,
.value-panel h3,
.account-panel h2,
.admin-card h3,
.model-card h3,
.perspective-card h3 {
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero-card p,
.value-panel p,
.account-panel p,
.admin-card p,
.model-card p,
.perspective-card p {
  color: var(--muted);
  line-height: 1.55;
}

.section,
.page-head,
.profile-hero,
.event-hero {
  padding: clamp(34px, 5vw, 72px) clamp(16px, 4vw, 48px);
}

.page-head {
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 85% 0, rgba(226, 13, 111, 0.22), transparent 34%), #050505;
}

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

.section-head h2 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(1.7rem, 3.6vw, 3.2rem);
  line-height: 1;
  text-transform: uppercase;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 360px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-color: var(--magenta) #111111;
}

.rail.small {
  grid-auto-columns: minmax(220px, 280px);
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  align-items: start;
}

.platform-section,
.monetization-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #060606;
}

.perspective-grid,
.monetization-grid,
.module-grid {
  display: grid;
  gap: 16px;
}

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

.perspective-card {
  display: grid;
  align-content: start;
  min-height: 220px;
}

.perspective-card small {
  color: #f1f1f1;
  font-weight: 800;
  line-height: 1.35;
}

.module-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--magenta);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.model-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.subscriber-model {
  background: rgba(226, 13, 111, 0.16);
}

.share-model {
  display: grid;
  align-content: center;
}

.share-number {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 18px;
}

.share-number span {
  display: grid;
  place-items: center;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #0f0f0f;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 900;
}

.flywheel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #111111;
}

.flywheel span {
  color: #efefef;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.module-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 16px;
}

.module-grid h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.module-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.content-card,
.clip-card,
.event-card,
.channel-card,
.product-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.content-card h3,
.clip-card h3,
.event-card h3,
.channel-card h3,
.product-card h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.15;
}

.content-card p,
.clip-card p,
.event-card p,
.channel-card p,
.product-card p {
  color: var(--muted);
  line-height: 1.45;
}

.content-card > div,
.clip-card > h3,
.clip-card > p,
.event-card > div,
.channel-card,
.product-card {
  padding: 14px;
}

.image-button,
.event-image,
.clip-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #222 center / cover;
  text-align: left;
}

.image-button .pill {
  margin: 12px 0 0 12px;
}

.clip-thumb span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.78);
  padding: 4px 8px;
  font-weight: 900;
}

.event-card .event-image {
  aspect-ratio: 4 / 3;
}

.channel-card img,
.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  min-height: calc(100vh - 72px);
}

.watch-main {
  padding: clamp(14px, 3vw, 34px);
}

.player {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(68vh, 720px);
  border-radius: var(--radius);
  background: #111 center / cover;
  overflow: hidden;
}

.player::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.5));
}

.player-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.play-button {
  z-index: 2;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  background: var(--magenta);
  color: var(--white);
  font-weight: 900;
}

.paywall {
  z-index: 2;
  width: min(520px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.78);
  padding: 24px;
  text-align: center;
}

.paywall h2 {
  margin: 0 0 10px;
  text-transform: uppercase;
}

.watch-info {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 0 14px;
}

.watch-info h1 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3.5vw, 3.2rem);
  line-height: 1;
  text-transform: uppercase;
}

.watch-info p {
  color: var(--muted);
}

.side-panel {
  border-left: 1px solid var(--line);
  background: #0d0d0d;
}

.side-tabs {
  position: sticky;
  top: 72px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: #0d0d0d;
}

.side-tab {
  min-height: 52px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.side-tab.is-active {
  color: var(--white);
  background: var(--magenta);
}

.side-panel-section {
  padding: 18px;
}

.chat-list {
  display: grid;
  gap: 12px;
}

.chat-message {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.chat-message strong {
  display: inline-block;
  margin-left: 8px;
}

.chat-message p {
  margin: 8px 0 0;
  color: #d8d8d8;
  line-height: 1.45;
}

.badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border-radius: 4px;
  padding: 0 6px;
  background: var(--panel-2);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.badge.subscriber,
.badge.creator {
  background: var(--magenta);
}

.badge.moderator {
  background: #ffffff;
  color: #000000;
}

.chat-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 18px;
}

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

.stat-grid div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 14px;
}

.stat-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.stat-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.15rem;
}

.product-row {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.product-row img {
  width: 74px;
  height: 74px;
  border-radius: var(--radius);
  object-fit: cover;
}

.product-row h3 {
  margin: 0;
  font-size: 0.95rem;
}

.product-row p {
  margin: 4px 0 0;
  color: var(--muted);
}

.about-channel img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-hero {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  background: radial-gradient(circle at 84% 20%, rgba(226, 13, 111, 0.18), transparent 36%), #050505;
}

.profile-hero img {
  width: 180px;
  height: 180px;
  border: 3px solid var(--magenta);
  border-radius: 50%;
  object-fit: cover;
}

.subnav,
.filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: #080808;
}

.subnav a {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-hero {
  min-height: 520px;
  display: flex;
  align-items: end;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.25)), center / cover;
}

.event-hero > div {
  max-width: 900px;
}

.account-empty {
  min-height: calc(100vh - 72px);
}

.account-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(24px, 4vw, 48px);
}

.account-panel p {
  min-height: 90px;
}

.admin-card {
  display: grid;
  gap: 12px;
}

.admin-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-card.wide {
  grid-column: span 3;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: min(420px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--magenta);
  color: var(--white);
  padding: 16px 18px;
  font-weight: 900;
}

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

  .search {
    grid-column: 1 / -1;
  }

  .cards-5,
  .cards-4,
  .perspective-grid,
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .watch-layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .side-tabs {
    top: 0;
  }
}

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

  .brand-copy {
    display: none;
  }

  .icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    border-top: 1px solid var(--line);
    padding: 14px 0;
  }

  .search {
    grid-column: 1 / -1;
  }

  .hero,
  .split,
  .perspective-dock,
  .profile-hero,
  .watch-info,
  .account-grid,
  .admin-grid,
  .monetization-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 80px;
  }

  .profile-hero img {
    width: 128px;
    height: 128px;
  }

  .cards-3,
  .cards-4,
  .cards-5,
  .perspective-grid,
  .module-grid,
  .perspective-list {
    grid-template-columns: 1fr;
  }

  .player {
    min-height: 54vh;
  }

  .product-row {
    grid-template-columns: 62px 1fr;
  }

  .product-row button {
    grid-column: 1 / -1;
  }

  .admin-card.wide {
    grid-column: auto;
  }
}
