@font-face {
  font-family: "Helvetica Now Text";
  src: url("/assets/Helvetica/HelveticaNowText-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Now Text";
  src: url("/assets/Helvetica/HelveticaNowText-Medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Now Text";
  src: url("/assets/Helvetica/HelveticaNowText-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Now Display";
  src: url("/assets/Helvetica/HelveticaNowDisplay-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Now Display";
  src: url("/assets/Helvetica/HelveticaNowDisplay-Medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Now Display";
  src: url("/assets/Helvetica/HelveticaNowDisplay-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --page: #000000;
  --ink: #ffffff;
  --muted: rgba(255,255,255,.66);
  --orange: #ff4f18;
  --purple: #360e54;

  /* Apple-style type scale */
  --type-large-title: 34px;
  --line-large-title: 41px;
  --type-title-1: 28px;
  --line-title-1: 34px;
  --type-title-2: 22px;
  --line-title-2: 28px;
  --type-title-3: 20px;
  --line-title-3: 25px;
  --type-headline: 17px;
  --line-headline: 22px;
  --type-body: 17px;
  --line-body: 22px;
  --type-callout: 16px;
  --line-callout: 21px;
  --type-subheadline: 15px;
  --line-subheadline: 20px;
  --type-footnote: 13px;
  --line-footnote: 18px;
  --type-caption-1: 12px;
  --line-caption-1: 16px;
  --type-caption-2: 11px;
  --line-caption-2: 13px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; background: var(--page); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Helvetica Now Text", Arial, sans-serif;
  font-size: var(--type-body);
  line-height: var(--line-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
}
h1, h2, h3, .label, .primary-action, .community-action, .play-pill, .listen-label, .listen-pill a {
  font-family: "Helvetica Now Display", "Helvetica Now Text", Arial, sans-serif;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.page-shell { min-height: 100svh; background: #000; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.04) 0%, rgba(0,0,0,.09) 22%, rgba(0,0,0,.27) 48%, rgba(0,0,0,.68) 72%, rgba(0,0,0,.96) 91%, #000 100%),
    linear-gradient(to top, rgba(0,0,0,.72), transparent 42%);
}

.top-actions {
  position: absolute;
  z-index: 3;
  top: max(16px, env(safe-area-inset-top));
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo { display: inline-flex; align-items: center; min-height: 52px; }
.site-logo img { display: block; width: auto; height: 36px; }
.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: white;
  cursor: pointer;
}
.icon-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon-button svg circle { fill: currentColor; stroke: none; }
.glass { background: rgba(10,10,10,.30); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.14); }

.profile-overlay {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 110px 20px 30px;
  color: white;
}
.label {
  margin: 0 0 8px;
  font-size: var(--type-caption-2);
  line-height: var(--line-caption-2);
  font-weight: 500;
  letter-spacing: .14em;
  opacity: .72;
}
h1 {
  margin: 0;
  font-size: var(--type-large-title);
  line-height: var(--line-large-title);
  font-weight: 400;
  letter-spacing: -.03em;
}
.handle {
  margin: 4px 0 22px;
  font-size: var(--type-subheadline);
  line-height: var(--line-subheadline);
  color: rgba(255,255,255,.72);
}
.action-row { display: flex; gap: 10px; align-items: center; }
.primary-action {
  flex: 1;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-weight: 500;
  font-size: var(--type-headline);
  line-height: var(--line-headline);
  text-decoration: none;
  transition: transform .16s ease;
}
.play-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(17,17,17,.08); }
.play-icon svg { width: 12px; height: 12px; fill: #111; margin-left: 1px; }
.round-action {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.round-action img { width: 24px; height: 24px; display: block; }
.primary-action:active, .round-action:active, .community-action:active { transform: scale(.975); }

.community-action {
  width: 100%;
  min-height: 50px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-size: var(--type-headline);
  line-height: var(--line-headline);
  font-weight: 500;
  transition: transform .16s ease;
}
.community-action img { width: 18px; height: 18px; }

.bio {
  margin: 26px 0 0;
  max-width: 640px;
  color: rgba(255,255,255,.78);
  font-size: var(--type-body);
  line-height: var(--line-body);
}

.latest-section {
  position: relative;
  z-index: 3;
  padding: 36px 16px 14px;
}
.latest-title {
  width: min(100%, 720px);
  margin: 0 auto 18px;
  font-size: var(--type-title-1);
  line-height: var(--line-title-1);
  letter-spacing: -.02em;
  font-weight: 400;
}
.video-list { display: grid; gap: 12px; width: min(100%, 720px); margin: 0 auto; }
.video-card {
  position: relative;
  display: grid;
  grid-template-columns: 132px 1fr;
  min-height: 116px;
  overflow: hidden;
  border-radius: 20px;
  border: 0;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
}
.video-art { position: relative; overflow: hidden; background: #c6370c; }
.video-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.26), transparent 55%); }
.video-art.placeholder-purple { background: linear-gradient(140deg, #360e54 0%, #7e4aa0 100%); }
.video-art.placeholder-orange { background: linear-gradient(140deg, #ff6b36 0%, #c03308 100%); }
.video-copy { padding: 13px 14px 12px; min-width: 0; }
.video-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
  color: rgba(255,255,255,.72);
  font-size: var(--type-caption-1);
  line-height: var(--line-caption-1);
}
.video-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.68); }
.video-title {
  margin: 0;
  padding-right: 2px;
  font-size: var(--type-subheadline);
  line-height: var(--line-subheadline);
  font-weight: 400;
  letter-spacing: -.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.play-pill {
  position: absolute;
  right: 11px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.13);
  color: rgba(255,255,255,.92);
  font-size: var(--type-caption-2);
  line-height: var(--line-caption-2);
  font-weight: 500;
}

.footer {
  width: min(100%, 752px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 16px 32px;
  color: rgba(255,255,255,.64);
  font-size: var(--type-footnote);
  line-height: var(--line-footnote);
}
.footer-copy { display: flex; align-items: center; gap: 9px; min-width: 0; }
.footer-copy p { margin: 0; white-space: nowrap; }
.footer-icon { width: 14px; height: 14px; display: block; }
.listen-pill {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}
.listen-label {
  padding: 0 9px;
  color: rgba(255,255,255,.62);
  font-size: var(--type-caption-1);
  line-height: var(--line-caption-1);
  font-weight: 400;
  white-space: nowrap;
}
.listen-pill a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  color: #fff;
  text-decoration: none;
  font-size: var(--type-footnote);
  line-height: var(--line-footnote);
  font-weight: 500;
}
.listen-pill img { width: 14px; height: 14px; display: block; }
.pill-divider { width: 1px; height: 18px; background: rgba(255,255,255,.13); }

.handoff-toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: min(calc(100% - 28px), 430px);
  transform: translateX(-50%);
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(17,17,17,.94);
  color: white;
  box-shadow: 0 16px 45px rgba(0,0,0,.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.handoff-toast strong { display: block; font-size: var(--type-subheadline); line-height: var(--line-subheadline); font-weight: 500; }
.handoff-toast span { display: block; margin-top: 3px; color: rgba(255,255,255,.65); font-size: var(--type-footnote); line-height: var(--line-footnote); }

@media (min-width: 900px) {
  .top-actions, .profile-overlay { width: min(100%, 760px); margin-left: auto; margin-right: auto; }
  .top-actions { left: 50%; right: auto; transform: translateX(-50%); }
  .profile-overlay { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 520px) {
  .site-logo img { height: 32px; }
  .profile-overlay { padding-left: 16px; padding-right: 16px; padding-bottom: 24px; }
  .latest-section { padding: 32px 12px 12px; }
  .video-card { grid-template-columns: 120px 1fr; }
  .footer { padding-left: 12px; padding-right: 12px; }
  .footer-icon { display: none; }
  .footer-copy p { white-space: normal; }
  .listen-label { display: none; }
  .listen-pill a span { display: none; }
  .listen-pill a { padding: 7px 8px; }
  .listen-pill img { width: 16px; height: 16px; }
}

@media (max-width: 380px) {
  .video-card { grid-template-columns: 108px 1fr; }
  .primary-action { padding-inline: 13px; }
  .play-icon { width: 24px; height: 24px; }
}

/* Final hero-loading + direct /go experience */
.hero-image {
  opacity: 0;
  transition: opacity .34s ease;
}
.hero-image.is-ready { opacity: 1; }

html.go-mode,
html.go-mode body,
html.go-mode .page-shell,
html.go-mode .hero {
  width: 100%;
  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
  background: #000;
}

html.go-mode .latest-section,
html.go-mode .footer,
html.go-mode .label,
html.go-mode h1,
html.go-mode .handle,
html.go-mode .community-action,
html.go-mode .bio,
html.go-mode #shareButton {
  display: none !important;
}

html.go-mode .top-actions {
  justify-content: flex-start;
}

html.go-mode .profile-overlay {
  position: absolute;
  inset: 0;
  min-height: 100%;
  padding: 92px 20px max(24px, env(safe-area-inset-bottom));
  pointer-events: none;
}

html.go-mode .action-row {
  margin-top: auto;
  width: 100%;
  pointer-events: auto;
}

html.go-mode .hero-shade {
  background:
    linear-gradient(to bottom, rgba(0,0,0,.06) 0%, rgba(0,0,0,.08) 36%, rgba(0,0,0,.24) 61%, rgba(0,0,0,.76) 88%, rgba(0,0,0,.94) 100%);
}

@media (min-width: 900px) {
  html.go-mode .profile-overlay {
    left: 50%;
    right: auto;
    width: min(100%, 760px);
    transform: translateX(-50%);
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 520px) {
  html.go-mode .profile-overlay {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
}
