:root {
  color-scheme: light;
  --ink: #171918;
  --ink-soft: #3e4542;
  --paper: #f4f1e9;
  --paper-strong: #fffdf7;
  --line: rgba(23, 25, 24, 0.12);
  --coral: #ff6b4a;
  --coral-dark: #dd4327;
  --mint: #56d7c5;
  --mint-dark: #137c70;
  --gold: #f4bd4b;
  --shadow: 0 28px 70px rgba(4, 12, 10, 0.18);
  --display: "STKaiti", "KaiTi", "Songti SC", Georgia, serif;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(255, 107, 74, 0.4);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.app-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 8% 10%, rgba(86, 215, 197, 0.16), transparent 28%),
    radial-gradient(circle at 94% 88%, rgba(255, 107, 74, 0.14), transparent 24%),
    var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 43px;
  height: 36px;
  flex: 0 0 auto;
}

.brand-mark span {
  position: absolute;
  width: 28px;
  height: 31px;
  border-radius: 4px;
}

.brand-mark span:first-child {
  left: 0;
  top: 5px;
  background: var(--coral);
}

.brand-mark span:last-child {
  right: 0;
  top: 0;
  border: 3px solid var(--mint);
  background: rgba(21, 21, 21, 0.3);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 21px;
  line-height: 1;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-dark {
  color: var(--ink);
}

.brand-dark .brand-mark span:last-child {
  background: rgba(86, 215, 197, 0.08);
}

.brand-dark .brand-copy small {
  color: rgba(23, 25, 24, 0.52);
}

.gate-view {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background: #111713;
}

.gate-view::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 25%, rgba(0, 0, 0, 0.2));
}

.gate-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1460px, calc(100% - 64px));
  height: 92px;
  margin: 0 auto;
}

.gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(12, 18, 15, 0.28);
  backdrop-filter: blur(12px);
  font-size: 13px;
}

.gate-badge svg {
  width: 16px;
  height: 16px;
  color: var(--mint);
}

.gate-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.8fr);
  width: min(1460px, calc(100% - 64px));
  min-height: calc(100vh - 92px);
  margin: 0 auto;
}

.gate-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 650px;
  padding: 70px 64px 84px 0;
}

.visual-cover {
  position: absolute;
  inset: -92px 0 -80px -30vw;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 14, 12, 0.1), rgba(10, 14, 12, 0.5) 74%, #111713 100%),
    linear-gradient(0deg, #111713 0%, rgba(17, 23, 19, 0.16) 56%, rgba(17, 23, 19, 0.2) 100%),
    url("https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=1800&q=86")
      center/cover;
}

.visual-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to right, #000, transparent 86%);
}

.visual-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.visual-copy h1 {
  max-width: 700px;
  margin: 0;
  font-family: var(--display);
  font-size: 64px;
  font-weight: 700;
  line-height: 1.12;
}

.gate-intro {
  max-width: 590px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.8;
}

.visual-stats {
  display: flex;
  gap: 42px;
  margin-top: 46px;
}

.visual-stats div {
  display: grid;
  gap: 3px;
}

.visual-stats strong {
  color: #fff;
  font-size: 25px;
  font-weight: 800;
}

.visual-stats span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.gate-panel {
  align-self: center;
  width: 100%;
  margin: 34px 0;
  padding: 42px;
  color: var(--ink);
  background: rgba(250, 248, 241, 0.96);
  border-radius: 18px 4px 18px 4px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.step-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.step-label b {
  color: var(--coral-dark);
  font-size: 14px;
}

.gate-panel h2 {
  margin: 18px 0 8px;
  font-family: var(--display);
  font-size: 34px;
  line-height: 1.25;
}

.panel-intro {
  margin: 0;
  color: #68706c;
  font-size: 14px;
  line-height: 1.7;
}

.progress-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 29px 0 25px;
}

.progress-rail::before {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  top: 20px;
  height: 2px;
  background: #dedbd2;
}

.progress-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #8a908c;
  font-size: 11px;
}

.progress-step > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid #dedbd2;
  border-radius: 50%;
  background: var(--paper-strong);
  font-size: 13px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.progress-step.complete {
  color: var(--mint-dark);
}

.progress-step.complete > span {
  color: #fff;
  border-color: var(--mint-dark);
  background: var(--mint-dark);
  transform: scale(1.05);
}

.invite-link-block label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.invite-link-row {
  display: flex;
  gap: 8px;
}

.invite-link-row input {
  width: 100%;
  min-width: 0;
  height: 47px;
  padding: 0 14px;
  color: #3d4441;
  border: 1px solid #d9d6ce;
  border-radius: 7px;
  background: #fff;
  font-size: 13px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 47px;
  height: 47px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  background: #303734;
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.icon-button.dark {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.field-hint {
  margin: 8px 0 0;
  color: #858b87;
  font-size: 11px;
  line-height: 1.55;
}

.invite-qr-block {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(83, 58, 143, 0.14);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.68);
}

.invite-qr-frame {
  display: grid;
  place-items: center;
  width: 148px;
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(49, 36, 91, 0.1);
}

.invite-qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.invite-qr-copy strong {
  font-size: 13px;
}

.invite-qr-copy p {
  margin: 6px 0 11px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.invite-qr-dialog {
  width: min(430px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.invite-qr-dialog::backdrop {
  background: rgba(10, 8, 18, 0.74);
  backdrop-filter: blur(8px);
}

.invite-qr-dialog-shell {
  position: relative;
  padding: 30px 26px 25px;
  border-radius: 12px;
  text-align: center;
  background: #fff;
  box-shadow: 0 30px 90px rgba(30, 16, 57, 0.34);
}

.invite-qr-dialog-shell h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 27px;
}

.invite-qr-dialog-shell > p:not(.eyebrow) {
  margin: 9px auto 17px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.invite-qr-dialog-frame {
  display: grid;
  place-items: center;
  width: min(330px, 100%);
  margin: 0 auto;
  padding: 9px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(49, 36, 91, 0.14);
}

.invite-qr-dialog-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  -webkit-touch-callout: default;
}

.invite-qr-dialog-shell .secondary-button {
  width: 100%;
  margin-top: 18px;
}

.payment-open-poster-link {
  display: inline-block;
  margin-top: 12px;
  color: #6e64a8;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.paid-skip-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin: 0 0 20px;
  padding: 19px 18px 17px;
  border: 2px solid transparent;
  border-radius: 12px;
  color: #1d2521;
  text-align: left;
  background:
    linear-gradient(
      135deg,
      rgba(255, 63, 108, 0.11),
      rgba(255, 214, 10, 0.16) 48%,
      rgba(58, 134, 255, 0.11)
    ) padding-box,
    linear-gradient(135deg, #ff3f6c, #ff9f1c, #ffd60a, #2ec4b6, #3a86ff)
      border-box;
  box-shadow: 0 18px 42px rgba(69, 44, 118, 0.2);
  cursor: pointer;
  animation: paid-skip-pulse 2.8s ease-in-out infinite;
}

.paid-skip-copy {
  display: grid;
  gap: 4px;
}

.paid-skip-badge {
  position: absolute;
  left: 16px;
  top: -10px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff3f6c, #ff9f1c, #2ec4b6);
  font-size: 9px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(216, 52, 98, 0.25);
}

.paid-skip-button strong {
  font-size: 16px;
  line-height: 1.35;
}

.paid-skip-button small {
  color: #747b77;
  font-size: 11px;
  line-height: 1.5;
}

.paid-skip-button svg {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  color: #d42e62;
}

@keyframes paid-skip-pulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 18px 42px rgba(69, 44, 118, 0.2);
  }

  50% {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(69, 44, 118, 0.26);
  }
}

@media (prefers-reduced-motion: reduce) {
  .paid-skip-button {
    animation: none;
  }
}

@media (max-width: 600px) {
  .paid-skip-button strong {
    font-size: 14px;
  }

  .paid-skip-button small {
    font-size: 10px;
  }

  .paid-skip-button svg {
    width: 26px;
    height: 26px;
  }
}

.payment-dialog {
  width: min(460px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.payment-dialog::backdrop {
  background: rgba(10, 8, 18, 0.74);
  backdrop-filter: blur(8px);
}

.payment-shell {
  position: relative;
  display: grid;
  gap: 13px;
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  padding: 30px 26px 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(30, 16, 57, 0.34);
}

.payment-shell h2 {
  margin: -4px 0 0;
  font-family: var(--display);
  font-size: 27px;
  text-align: center;
}

.payment-intro {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  line-height: 1.65;
}

.payment-screenshot-tip {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 15px;
  border-radius: 9px;
  color: #fff;
  background: #e52b2b;
  box-shadow: 0 12px 30px rgba(198, 30, 30, 0.3);
  animation: payment-tip-pulse 2.4s ease-in-out infinite;
}

.payment-screenshot-tip > svg {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.payment-screenshot-tip span {
  display: grid;
  gap: 4px;
}

.payment-screenshot-tip strong {
  font-size: 18px;
  line-height: 1.25;
}

.payment-screenshot-tip small {
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  line-height: 1.5;
}

@keyframes payment-tip-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.018);
  }
}

@media (prefers-reduced-motion: reduce) {
  .payment-screenshot-tip {
    animation: none;
  }
}

.payment-code-frame {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(83, 58, 143, 0.14);
  border-radius: 10px;
  background: #fafbff;
}

.payment-code-frame a {
  display: block;
  width: min(320px, 78vw);
}

.payment-code-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 7px;
  background: #fff;
}

.payment-code-frame strong {
  color: #d42e62;
  font-size: 13px;
}

.payment-code-frame small {
  color: #7b827e;
  font-size: 10px;
}

.payment-wechat-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 2px solid transparent;
  border-radius: 10px;
  color: #17201b;
  text-decoration: none;
  background:
    linear-gradient(#f7fff9, #f7fff9) padding-box,
    linear-gradient(135deg, #07c160, #39d98a, #ffd60a) border-box;
  box-shadow: 0 12px 30px rgba(7, 193, 96, 0.15);
}

.payment-wechat-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: #07c160;
}

.payment-wechat-icon svg {
  width: 21px;
  height: 21px;
}

.payment-wechat-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 4px;
}

.payment-wechat-copy strong {
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
}

.payment-wechat-copy small {
  overflow: hidden;
  color: #4f7b60;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}

.payment-wechat-link > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #07a451;
}

.payment-link-note {
  margin: -5px 0 0;
  color: #7b827e;
  text-align: center;
  font-size: 10px;
  line-height: 1.55;
}

.payment-qr-fallback-link {
  display: block;
  margin-top: -4px;
  color: #07a451;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.payment-proof-picker {
  width: 100%;
  justify-content: center;
}

.payment-success-dialog {
  width: min(420px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.payment-success-dialog::backdrop {
  background: rgba(10, 8, 18, 0.74);
  backdrop-filter: blur(8px);
}

.payment-success-shell {
  position: relative;
  padding: 31px 26px 24px;
  border-radius: 12px;
  text-align: center;
  background: #fff;
  box-shadow: 0 30px 90px rgba(30, 16, 57, 0.34);
}

.payment-success-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #18bca8, #3a86ff);
}

.payment-success-icon svg {
  width: 29px;
  height: 29px;
}

.payment-success-shell h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 27px;
}

.payment-success-shell > p {
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.support-wechat {
  display: grid;
  gap: 5px;
  margin-bottom: 16px;
  padding: 15px;
  border-radius: 9px;
  background: linear-gradient(
    135deg,
    rgba(255, 63, 108, 0.1),
    rgba(58, 134, 255, 0.1)
  );
}

.support-wechat span {
  color: #747b77;
  font-size: 10px;
  font-weight: 800;
}

.support-wechat strong {
  color: #d42e62;
  font-size: 24px;
}

.payment-success-shell .primary-button {
  width: 100%;
}

@media (max-width: 600px) {
  .invite-qr-block {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .invite-qr-frame {
    width: 112px;
    padding: 6px;
  }

  .invite-qr-dialog-shell {
    padding: 27px 18px 20px;
  }

  .invite-qr-dialog-frame {
    width: min(280px, 100%);
  }

  .payment-shell {
    padding: 27px 18px 20px;
  }
}

.share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.primary-button,
.secondary-button,
.ghost-button,
.enter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 47px;
  padding: 0 17px;
  border: 0;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 10px 24px rgba(221, 67, 39, 0.2);
}

.primary-button:hover {
  transform: translateY(-1px);
  background: var(--coral-dark);
  box-shadow: 0 14px 28px rgba(221, 67, 39, 0.24);
}

.secondary-button {
  color: #fff;
  background: var(--ink);
}

.secondary-button:hover {
  transform: translateY(-1px);
  background: #323936;
}

.ghost-button {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
}

.ghost-button.light,
.primary-button.light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.primary-button.light {
  color: var(--ink);
  border-color: #fff;
  background: #fff;
  box-shadow: none;
}

.primary-button svg,
.secondary-button svg,
.ghost-button svg,
.enter-button svg {
  width: 17px;
  height: 17px;
}

.verify-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 0;
  border: 0;
  color: #59605c;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.text-button svg {
  width: 15px;
  height: 15px;
}

.enter-button {
  min-width: 148px;
  color: #fff;
  background: var(--mint-dark);
}

.enter-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #0e665c;
}

.enter-button:disabled {
  color: #999d9a;
  background: #dde0dc;
  cursor: not-allowed;
}

.demo-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding: 12px;
  border: 1px dashed rgba(19, 124, 112, 0.38);
  border-radius: 7px;
  background: rgba(86, 215, 197, 0.1);
}

.demo-panel strong {
  display: block;
  color: var(--mint-dark);
  font-size: 12px;
}

.demo-panel p {
  margin: 3px 0 0;
  color: #627370;
  font-size: 10px;
}

.demo-panel code {
  font-family: Consolas, monospace;
}

.demo-actions {
  display: flex;
  gap: 7px;
  flex: 0 0 auto;
}

.demo-actions button {
  padding: 7px 9px;
  border: 1px solid rgba(19, 124, 112, 0.25);
  border-radius: 5px;
  color: var(--mint-dark);
  background: #fff;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 19px 0 0;
  color: #8a908c;
  font-size: 10px;
  line-height: 1.55;
}

.privacy-note svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.app-view {
  min-height: 100vh;
  background: var(--paper);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 78px;
  padding: 0 52px;
  border-bottom: 1px solid rgba(23, 25, 24, 0.08);
  background: rgba(244, 241, 233, 0.92);
  backdrop-filter: blur(18px);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(23, 25, 24, 0.06);
}

.nav-link {
  min-width: 86px;
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #606763;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.nav-link.active {
  color: #fff;
  background: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 254px;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.search-box svg {
  width: 16px;
  height: 16px;
  color: #737a76;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
}

.member-chip {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-family: var(--display);
  font-size: 17px;
}

.member-chip svg {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 16px;
  height: 16px;
  padding: 2px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--mint);
}

#mobileSearchButton {
  display: none;
}

.site-main {
  width: min(1420px, calc(100% - 64px));
  margin: 0 auto;
  padding: 34px 0 82px;
}

.channel-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 24px;
}

.channel-button {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 74px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  background: rgba(255, 253, 247, 0.64);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.channel-button:hover {
  transform: translateY(-2px);
  border-color: rgba(23, 25, 24, 0.22);
  background: #fffdf7;
}

.channel-button.active {
  border-color: var(--ink);
  background: #fffdf7;
  box-shadow: 0 8px 25px rgba(23, 25, 24, 0.07);
}

.channel-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 9px;
}

.channel-icon svg {
  width: 20px;
  height: 20px;
}

.all-icon {
  color: #fff;
  background: var(--ink);
}

.real-icon {
  color: #9d2e1a;
  background: rgba(255, 107, 74, 0.14);
}

.ai-icon {
  color: #075f55;
  background: rgba(86, 215, 197, 0.2);
}

.channel-button > span:last-child {
  display: grid;
  gap: 3px;
}

.channel-button strong {
  font-size: 14px;
}

.channel-button small {
  color: #858b87;
  font-size: 10px;
}

.featured-section {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border-radius: 12px;
  color: #fff;
  background: #202421;
  box-shadow: 0 25px 60px rgba(13, 20, 17, 0.13);
}

.featured-media,
.featured-media img,
.featured-shade {
  position: absolute;
  inset: 0;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 9, 7, 0.92) 0%, rgba(5, 9, 7, 0.68) 46%, rgba(5, 9, 7, 0.1) 76%),
    linear-gradient(0deg, rgba(5, 9, 7, 0.68), transparent 58%);
}

.featured-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 480px;
  max-width: 650px;
  padding: 58px 66px;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--coral);
  font-size: 10px;
  font-weight: 800;
}

.type-pill.ai {
  color: #063e38;
  background: var(--mint);
}

.featured-copy h1 {
  margin: 19px 0 12px;
  font-family: var(--display);
  font-size: 58px;
  line-height: 1.05;
}

.featured-copy > p {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.75;
}

.featured-actions {
  display: flex;
  gap: 10px;
  margin-top: 29px;
}

.catalog-section {
  margin-top: 48px;
}

.home-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  align-items: start;
  gap: 24px;
  margin-top: 48px;
}

.home-content-layout .catalog-section {
  min-width: 0;
  margin-top: 0;
}

.link-summary-section {
  position: sticky;
  top: 86px;
  padding: 18px;
  border: 1px solid rgba(83, 58, 143, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 46px rgba(53, 39, 94, 0.1);
}

.link-summary-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.link-summary-heading .eyebrow {
  margin: 0 0 4px;
}

.link-summary-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 29px;
}

.link-summary-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #fff;
  background: var(--rainbow);
}

.link-summary-icon svg {
  width: 20px;
  height: 20px;
}

.link-summary-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 15px;
}

.link-summary-callout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  margin-top: 13px;
  border-radius: 7px;
  color: #fff;
  background: #e52b2b;
  box-shadow: 0 10px 26px rgba(198, 30, 30, 0.28);
  font-size: 11px;
  animation: link-callout-shake 2.6s ease-in-out infinite;
}

.link-summary-callout svg {
  width: 17px;
  height: 17px;
}

@keyframes link-callout-shake {
  0%,
  84%,
  100% {
    transform: translateX(0);
  }

  88% {
    transform: translateX(-4px);
  }

  92% {
    transform: translateX(4px);
  }

  96% {
    transform: translateX(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .link-summary-callout {
    animation: none;
  }
}

.link-group {
  min-width: 0;
}

.link-group h3 {
  margin: 0 0 9px;
  color: #5e3296;
  font-size: 15px;
}

.link-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-height: 47px;
  margin-bottom: 7px;
  padding: 0 12px;
  border: 1px solid rgba(83, 58, 143, 0.14);
  border-radius: 7px;
  color: #363d39;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.link-summary-image {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 6px;
  color: #8e9490;
  background: #eef0ec;
}

.link-summary-number {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: #e52b2b;
  font-size: 10px;
  font-weight: 900;
}

.link-summary-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-summary-image i {
  width: 14px;
  height: 14px;
}

.link-summary-title {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-summary-item:hover {
  color: #fff;
  background: var(--rainbow);
}

.link-summary-item svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.link-summary-item.placeholder {
  color: #929894;
  background: #f5f6f2;
}

.link-summary-note {
  margin: 13px 0 0;
  color: #b72525;
  text-align: center;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.6;
}

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

.section-heading .eyebrow {
  margin-bottom: 6px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 34px;
}

.catalog-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.category-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-filters::-webkit-scrollbar {
  display: none;
}

.category-button,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  color: #5f6662;
  background: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.category-button.active {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

.filter-button svg {
  width: 15px;
  height: 15px;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.video-card {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(83, 58, 143, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
}

.video-thumb {
  position: relative;
  overflow: hidden;
  width: 176px;
  aspect-ratio: 16 / 10;
  border-radius: 7px;
  background: #d8d8d1;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.2, 0.75, 0.3, 1);
}

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

.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent 50%);
}

.video-type {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
}

.video-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 7px;
  border-radius: 4px;
  color: #fff;
  background: rgba(0, 0, 0, 0.64);
  font-size: 10px;
  font-weight: 700;
}

.save-button {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(9, 13, 11, 0.48);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.save-button.saved {
  color: var(--ink);
  background: var(--gold);
}

.save-button svg {
  width: 15px;
  height: 15px;
}

.video-details {
  min-width: 0;
  padding: 0 5px 0 0;
}

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

.video-details h3 {
  overflow: hidden;
  min-width: 0;
  flex: 1;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  line-height: 1.45;
}

.video-share-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(83, 58, 143, 0.16);
  border-radius: 6px;
  color: #7551b7;
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
}

.video-share-button:hover {
  color: #fff;
  background: var(--rainbow);
}

.video-share-button svg {
  width: 16px;
  height: 16px;
}

.video-subline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  color: #848a86;
  font-size: 10px;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 15px;
  padding: 15px 16px;
  border: 1px solid rgba(83, 58, 143, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.76);
}

.pagination-summary {
  margin: 0;
  color: #737a76;
  font-size: 10px;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.pagination-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.pagination-button:disabled {
  color: #a3a9a5;
  background: #eef0ec;
  cursor: not-allowed;
}

.pagination-button svg {
  width: 14px;
  height: 14px;
}

.page-indicator {
  min-width: 56px;
  color: var(--ink);
  text-align: center;
  font-size: 11px;
  font-weight: 900;
}

.video-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.author-dot {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: 8px;
  font-weight: 800;
}

.video-author span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-stats {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.video-metrics {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.video-stats svg {
  width: 12px;
  height: 12px;
}

.empty-state {
  padding: 74px 20px;
  border: 1px dashed rgba(23, 25, 24, 0.18);
  border-radius: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.42);
}

.empty-state svg {
  width: 34px;
  height: 34px;
  color: #959b97;
}

.empty-state h3 {
  margin: 13px 0 6px;
  font-size: 18px;
}

.empty-state p {
  margin: 0;
  color: #7d837f;
  font-size: 13px;
}

.empty-state button {
  margin-top: 18px;
  padding: 9px 14px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
}

dialog {
  padding: 0;
  border: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(7, 11, 9, 0.78);
  backdrop-filter: blur(8px);
}

.player-dialog {
  width: min(1060px, calc(100% - 32px));
  max-height: calc(100vh - 36px);
}

.player-shell {
  overflow: hidden;
  border-radius: 12px;
  color: #fff;
  background: #111412;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.46);
}

.player-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
}

.player-topbar h2 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: 25px;
}

.video-frame {
  background: #000;
}

.video-frame video {
  display: block;
  width: 100%;
  max-height: 62vh;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  padding: 19px 22px 23px;
}

.player-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  line-height: 1.7;
}

.player-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.player-tags span {
  padding: 5px 8px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
}

.player-stats {
  display: flex;
  gap: 20px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  white-space: nowrap;
}

.player-stats div {
  display: grid;
  gap: 4px;
}

.player-stats strong {
  color: #fff;
  font-size: 13px;
}

.share-dialog {
  width: min(440px, calc(100% - 28px));
}

.share-sheet {
  position: relative;
  padding: 34px;
  border-radius: 14px;
  text-align: center;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
}

.share-sheet .channel-icon {
  margin: 0 auto 16px;
}

.share-sheet h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 28px;
}

.share-sheet p {
  margin: 12px 0 22px;
  color: #6e7571;
  font-size: 13px;
  line-height: 1.7;
}

.share-sheet .primary-button {
  width: 100%;
}

.share-sheet .share-tip {
  margin: 17px 0 0;
  color: #929894;
  font-size: 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  z-index: 100;
  max-width: calc(100% - 30px);
  padding: 11px 16px;
  border-radius: 7px;
  color: #fff;
  background: #151a17;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1180px) {
  .gate-layout {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.8fr);
    width: min(1160px, calc(100% - 42px));
  }

  .gate-header {
    width: min(1160px, calc(100% - 42px));
  }

  .gate-panel {
    padding: 34px;
  }

  .visual-copy h1 {
    font-size: 50px;
  }

  .site-header {
    padding: 0 28px;
  }

  .site-main {
    width: calc(100% - 42px);
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .home-content-layout {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .gate-view {
    overflow: auto;
  }

  .gate-header {
    height: 78px;
  }

  .gate-layout {
    display: block;
    min-height: 0;
  }

  .gate-visual {
    min-height: 490px;
    padding: 72px 0 60px;
  }

  .visual-cover {
    inset: -78px -24px 0;
    background:
      linear-gradient(0deg, #111713 2%, rgba(17, 23, 19, 0.2) 72%),
      linear-gradient(90deg, rgba(10, 14, 12, 0.4), rgba(10, 14, 12, 0.12)),
      url("https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=1400&q=84")
        center/cover;
  }

  .gate-panel {
    width: min(580px, 100%);
    margin: -20px auto 40px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    height: 70px;
  }

  .desktop-nav {
    display: none;
  }

  .search-box {
    display: none;
  }

  #mobileSearchButton {
    display: inline-grid;
    width: 42px;
    height: 42px;
  }

  .site-main {
    padding-top: 23px;
  }

  .channel-switch {
    grid-template-columns: repeat(3, minmax(170px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .channel-button {
    min-height: 68px;
  }

  .featured-copy {
    padding: 46px 42px;
  }

  .featured-copy h1 {
    font-size: 48px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .home-content-layout {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 320px);
    gap: 16px;
  }

  .link-summary-section {
    top: 76px;
  }

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

  .catalog-tools {
    width: 100%;
    justify-content: space-between;
  }

  .category-filters {
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .gate-header {
    width: calc(100% - 30px);
  }

  .gate-header .brand-copy small {
    font-size: 8px;
  }

  .gate-badge {
    padding: 7px 10px;
    font-size: 11px;
  }

  .gate-layout {
    width: 100%;
  }

  .gate-visual {
    min-height: 430px;
    padding: 58px 22px 58px;
  }

  .visual-cover {
    inset: -78px 0 0;
  }

  .visual-copy h1 {
    font-size: 39px;
  }

  .gate-intro {
    font-size: 14px;
    line-height: 1.7;
  }

  .visual-stats {
    gap: 28px;
    margin-top: 32px;
  }

  .visual-stats strong {
    font-size: 20px;
  }

  .gate-panel {
    width: auto;
    margin: -18px 10px 0;
    padding: 28px 20px 24px;
    border-radius: 14px 4px 0 0;
  }

  .gate-panel h2 {
    font-size: 28px;
  }

  .progress-rail {
    gap: 5px;
  }

  .progress-step {
    font-size: 9px;
  }

  .progress-step > span {
    width: 36px;
    height: 36px;
  }

  .progress-rail::before {
    top: 18px;
  }

  .share-actions {
    grid-template-columns: 1fr;
  }

  .verify-row {
    align-items: stretch;
    flex-direction: column;
  }

  .text-button {
    justify-content: center;
  }

  .enter-button {
    width: 100%;
  }

  .demo-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .demo-actions button {
    flex: 1;
  }

  .site-header {
    padding: 0 15px;
  }

  .brand-mark {
    width: 38px;
    height: 32px;
  }

  .brand-mark span {
    width: 25px;
    height: 28px;
  }

  .site-header .brand-copy strong {
    font-size: 18px;
  }

  .site-header .brand-copy small {
    font-size: 8px;
  }

  .header-actions {
    gap: 8px;
  }

  .member-chip {
    width: 38px;
    height: 38px;
  }

  #mobileSearchButton {
    width: 38px;
    height: 38px;
  }

  .site-main {
    width: calc(100% - 24px);
    padding: 17px 0 96px;
  }

  .channel-switch {
    display: flex;
    gap: 8px;
    margin: 0 -12px 14px;
    padding: 0 12px 5px;
  }

  .channel-button {
    width: 168px;
    min-width: 168px;
    min-height: 61px;
    padding: 10px 12px;
  }

  .channel-icon {
    width: 36px;
    height: 36px;
  }

  .channel-button strong {
    font-size: 12px;
  }

  .channel-button small {
    font-size: 9px;
  }

  .featured-section {
    min-height: 465px;
  }

  .featured-shade {
    background:
      linear-gradient(0deg, rgba(5, 9, 7, 0.95) 0%, rgba(5, 9, 7, 0.68) 48%, rgba(5, 9, 7, 0.1) 82%),
      linear-gradient(90deg, rgba(5, 9, 7, 0.4), transparent);
  }

  .featured-copy {
    justify-content: flex-end;
    min-height: 465px;
    padding: 30px 20px;
  }

  .featured-copy h1 {
    margin: 14px 0 9px;
    font-size: 39px;
  }

  .featured-copy > p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

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

  .featured-actions button {
    min-height: 43px;
  }

  .catalog-section {
    margin-top: 34px;
  }

  .home-content-layout {
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 10px;
    margin-top: 30px;
  }

  .home-content-layout .video-card {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 8px;
    padding: 7px;
  }

  .home-content-layout .video-thumb {
    width: 78px;
  }

  .home-content-layout .video-details h3 {
    font-size: 11px;
  }

  .home-content-layout .video-subline {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .link-summary-section {
    position: static;
    padding: 11px 9px;
  }

  .link-summary-heading {
    gap: 7px;
    padding-bottom: 10px;
  }

  .link-summary-icon {
    display: none;
  }

  .link-summary-heading .eyebrow {
    font-size: 7px;
  }

  .link-summary-heading h2 {
    font-size: 20px;
  }

  .link-summary-callout {
    min-height: 34px;
    font-size: 9px;
  }

  .link-summary-callout svg {
    width: 14px;
    height: 14px;
  }

  .link-summary-columns {
    gap: 8px;
    margin-top: 10px;
  }

  .link-group h3 {
    margin-bottom: 6px;
    font-size: 11px;
  }

  .link-summary-item {
    min-height: 40px;
    gap: 4px;
    margin-bottom: 5px;
    padding: 0 6px;
    font-size: 9px;
  }

  .link-summary-image {
    width: 28px;
    height: 28px;
  }

  .link-summary-number {
    width: 20px;
    height: 20px;
    font-size: 8px;
  }

  .link-summary-item svg {
    width: 11px;
    height: 11px;
  }

  .link-summary-note {
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.5;
  }

  .section-heading {
    gap: 15px;
    margin-bottom: 16px;
  }

  .section-heading h2 {
    font-size: 29px;
  }

  .catalog-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-filters {
    width: calc(100vw - 24px);
    margin-right: -12px;
    padding-right: 12px;
  }

  .filter-button {
    display: none;
  }

  .video-grid {
    gap: 9px;
  }

  .video-card {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 10px;
    padding: 8px;
  }

  .video-thumb {
    width: 108px;
    aspect-ratio: 16 / 10;
  }

  .video-details h3 {
    white-space: normal;
    font-size: 13px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .video-subline {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .save-button {
    right: 7px;
    top: 7px;
    width: 30px;
    height: 30px;
  }

  .video-type {
    left: 7px;
    top: 7px;
    min-height: 22px;
    padding: 0 7px;
    font-size: 8px;
  }

  .catalog-pagination {
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
  }

  .pagination-controls {
    justify-content: space-between;
  }

  .pagination-button {
    min-width: 94px;
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(23, 25, 24, 0.1);
    background: rgba(255, 253, 247, 0.96);
    backdrop-filter: blur(18px);
  }

  .mobile-nav button {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 4px 0;
    border: 0;
    color: #858b87;
    background: transparent;
    font-size: 9px;
  }

  .mobile-nav button.active {
    color: var(--coral-dark);
  }

  .mobile-nav svg {
    width: 20px;
    height: 20px;
  }

  .player-dialog {
    width: 100%;
    max-width: none;
    max-height: 100%;
    margin: 0;
  }

  .player-dialog[open] {
    display: grid;
    min-height: 100vh;
    align-items: end;
  }

  .player-shell {
    border-radius: 16px 16px 0 0;
  }

  .player-topbar {
    padding: 15px 16px;
  }

  .player-topbar h2 {
    font-size: 20px;
  }

  .video-frame video {
    max-height: 42vh;
  }

  .player-info {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 16px;
  }

  .share-sheet {
    padding: 30px 20px 25px;
  }
}

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