:root {
  --bg: #000;
  --panel: #060606;
  --panel-2: #0a0a0a;
  --text: #f4f1ed;
  --muted: #9e9b96;
  --soft: #73706b;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #f02a24;
  --gold: #d4a55f;
  --radius: 2px;
  --max: 1490px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #000;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.dialog-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  color: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  text-decoration: none;
}

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

.app-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 68px;
  padding: 0 clamp(18px, 4vw, 52px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.18), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 720;
  letter-spacing: 0.25em;
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 36px);
  color: var(--muted);
  font-size: 11px;
}

nav a {
  position: relative;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
}

nav a.active::after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
}

nav a:hover,
.text-button:hover {
  color: var(--text);
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.text-button,
.outline-button,
.solid-button,
.filters button {
  min-height: 40px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 650;
}

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

.solid-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--text);
  color: #080808;
}

.solid-button span,
.outline-button span {
  margin-left: 10px;
  font-size: 9px;
  letter-spacing: 0.06em;
}

.header-actions .solid-button,
.hero-actions .solid-button,
.unlock-strip .solid-button {
  background: var(--accent);
  color: #fff;
}

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
}

.large {
  min-height: 48px;
  padding: 0 22px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 67vh;
  align-items: end;
  overflow: hidden;
  padding: 104px clamp(20px, 6.4vw, 92px) 52px;
}

.hero-bg,
.hero-gradient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  opacity: 0.74;
}

.hero-gradient {
  background:
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.96) 24%, rgba(0, 0, 0, 0.56) 52%, rgba(0, 0, 0, 0.2) 72%, rgba(0, 0, 0, 0.68) 100%),
    linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.92) 10%, rgba(0, 0, 0, 0.18) 36%, transparent 58%);
}

.hero-content {
  position: relative;
  width: min(740px, 100%);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(46px, 5.35vw, 74px);
  line-height: 0.98;
  font-weight: 700;
}

h1 span {
  color: var(--accent);
}

.hero p {
  max-width: 600px;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.55;
}

.hero-actions {
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.hero-dots span {
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.hero-dots span:first-child {
  background: var(--accent);
}

.now-playing {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.now-playing span,
.section-bar span,
.vault-copy span {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog,
.vault,
.plans {
  width: min(var(--max), calc(100% - clamp(32px, 7vw, 96px)));
  margin: 0 auto;
  padding: 22px 0 0;
}

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

.section-bar.compact {
  margin-top: 16px;
}

.section-bar h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(18px, 1.65vw, 22px);
  font-weight: 680;
  line-height: 1;
}

.section-bar h2::after {
  content: ">";
  color: var(--muted);
  font-size: 20px;
  font-weight: 500;
}

.filters {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.filters button {
  position: relative;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.filters button.active {
  color: var(--text);
}

.filters button.active::after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--accent);
}

.video-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 8px;
}

.video-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  background: transparent;
}

.video-card img {
  width: 100%;
  height: clamp(142px, 10vw, 168px);
  object-fit: cover;
  opacity: 0.88;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.video-card:hover img {
  transform: scale(1.04);
  opacity: 1;
}

.video-card-content {
  position: absolute;
  inset: auto 0 0;
  padding: 14px 12px 12px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent);
}

.video-card h3 {
  margin-bottom: 6px;
  max-width: 12ch;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.15;
  text-transform: uppercase;
}

.video-card p {
  display: none;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--soft);
  font-size: 12px;
}

.access-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.access-pill.member {
  background: transparent;
  color: #f1c77c;
}

.locked-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 8px;
}

.locked-row article {
  display: grid;
  min-height: 118px;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.8)),
    radial-gradient(circle at center, rgba(212, 165, 95, 0.18), transparent 62%),
    #12100d;
  color: var(--muted);
  text-align: center;
}

.locked-row span {
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
}

.locked-row strong {
  color: var(--text);
  font-weight: 680;
}

.locked-row p {
  max-width: 190px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.unlock-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 20px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
}

.unlock-strip h3 {
  font-size: 15px;
  font-weight: 680;
}

.unlock-strip p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid var(--line);
}

.plan-grid article {
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 220px;
  padding: 28px 0 0;
  background: transparent;
}

.plan-grid h3 {
  font-size: 20px;
  font-weight: 680;
}

.plan-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.plan-grid strong {
  color: var(--text);
  font-size: 24px;
  font-weight: 680;
}

dialog {
  width: min(420px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  background: var(--panel);
  color: var(--text);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

dialog form {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.dialog-close {
  justify-self: end;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
}

dialog p,
label {
  color: var(--muted);
  line-height: 1.5;
}

label {
  display: grid;
  gap: 8px;
  font-size: 13px;
}

input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #090909;
  color: var(--text);
  padding: 0 12px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 70px;
  padding: 28px clamp(20px, 6vw, 84px);
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 12px;
}

@media (max-width: 940px) {
  .app-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .video-row,
  .plan-grid,
  .locked-row {
    grid-template-columns: 1fr;
  }

  .section-bar {
    align-items: start;
    flex-direction: column;
  }

  .filters {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .app-header {
    min-height: 64px;
    gap: 12px;
    padding: 0 14px;
  }

  .brand {
    font-size: 10px;
    letter-spacing: 0.17em;
  }

  .brand span:last-child {
    display: inline;
    max-width: none;
    overflow: visible;
    font-size: inherit;
  }

  .header-actions .text-button {
    display: none;
  }

  .hero {
    min-height: 78vh;
    padding: 104px 20px 54px;
  }

  h1 {
    font-size: clamp(44px, 13vw, 58px);
  }

  .unlock-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions,
  .plan-grid article {
    align-items: stretch;
  }

  .hero-actions,
  .header-actions {
    flex-wrap: wrap;
  }

  .solid-button,
  .outline-button {
    width: 100%;
  }

  .header-actions .solid-button {
    width: auto;
    min-height: 38px;
    padding: 0 14px;
  }
}
