/* Live catalog, hero feed, votes and the /w series pages. Tokens come from landing.css. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.ghost {
  background: rgba(255, 219, 164, 0.05);
  color: var(--selection);
  border-color: rgba(255, 219, 164, 0.55);
}
.ghost:hover {
  background: var(--selection-wash);
  border-color: var(--selection);
}
input:focus-visible {
  outline: 2px solid var(--selection);
  outline-offset: 3px;
}
.poster-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--surface-2), var(--ink));
  color: var(--muted);
}

/* Hero: swipeable live series inside the phone frame. */
.hero-feed {
  background: var(--surface);
}
.hero-feed-fallback,
.hero-feed-fallback > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-feed.is-live::after {
  display: none;
}
.hero-feed-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hero-feed-track::-webkit-scrollbar {
  display: none;
}
.hero-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  overflow: hidden;
}
.hero-slide-link {
  display: block;
  height: 100%;
}
.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide-img,
.series-card-img,
.series-poster,
.vote-poster {
  filter: var(--image-grade);
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(26, 20, 8, 0.96) 92%);
  pointer-events: none;
}
.hero-slide-body {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 44px;
}
.hero-slide-body h2 {
  font-size: 24px;
  letter-spacing: -0.03em;
  margin: 10px 0 12px;
  overflow-wrap: anywhere;
}
.hero-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
}
.hero-slide-cta .icon {
  width: 16px;
  height: 16px;
}
.hero-feed-dots {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 2px;
}
.hero-feed-dots button {
  width: 22px;
  height: 22px;
  border: 0;
  padding: 0;
  background: transparent;
  display: grid;
  place-items: center;
}
.hero-feed-dots button::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 237, 210, 0.35);
  transition: width 0.2s;
}
.hero-feed-dots button[aria-current="true"]::before {
  width: 16px;
  border-radius: 4px;
  background: var(--primary);
}
a.floating-note:hover {
  border-color: var(--gold);
}

/* Discover: search, genre chips and the live grid. */
.discover-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.discover-search:focus-within {
  border-color: var(--selection);
}
.discover-search .icon {
  color: var(--muted);
  width: 20px;
  height: 20px;
}
.discover-search input {
  flex: 1;
  min-width: 0;
  height: 52px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.discover-search input:focus-visible {
  outline: none;
}
.chip-row {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar {
  display: none;
}
.chip {
  flex-shrink: 0;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.chip:hover {
  border-color: var(--selection);
}
.chip[aria-pressed="true"] {
  background: var(--selection-wash);
  border-color: var(--selection);
  color: var(--selection);
}
.discover-status {
  min-height: 22px;
  margin: 14px 0 10px;
  font-size: 12px;
  color: var(--muted);
}
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 26px 18px;
}
.series-card {
  display: block;
  min-width: 0;
}
.series-card-art {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.series-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.series-card:hover .series-card-img {
  transform: scale(1.04);
}
.series-card:hover h3 {
  color: var(--gold);
}
.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
}
.series-card h3 {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.series-card-meta {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}
.skeleton .series-card-art {
  animation: pulse 1.4s ease-in-out infinite;
}
.skeleton-line {
  display: block;
  height: 12px;
  width: 70%;
  margin-top: 14px;
  border-radius: 6px;
  background: var(--surface-2);
}
@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  font-size: 13px;
}

/* Interactive: live/coming-soon label and the live stories under the demo. */
.interactive-status {
  margin-top: 22px;
}
.interactive-live {
  margin-top: 64px;
}
.interactive-live h3 {
  font-size: 18px;
  margin-bottom: 20px;
}
.interactive-live .series-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 190px));
}

/* Votes: trailer cards. */
.vote {
  background: radial-gradient(ellipse at 15% 30%, rgba(255, 138, 0, 0.09), transparent 55%);
}
.vote-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.vote-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
}
.vote-card.is-playing {
  border-color: var(--gold);
  box-shadow: 0 0 22px -4px rgba(255, 170, 30, 0.75);
}
.vote-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--ink);
}
.vote-poster,
.vote-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vote-video {
  opacity: 0;
  transition: opacity 0.3s;
}
.vote-card.is-playing .vote-video {
  opacity: 1;
}
.vote-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--selection);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}
.vote-play,
.vote-sound {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(26, 20, 8, 0.78);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.vote-play {
  left: 12px;
  bottom: 12px;
}
.vote-play .icon {
  width: 16px;
  height: 16px;
  color: var(--primary);
}
.vote-card.is-loading .vote-play {
  opacity: 0.6;
}
.vote-sound {
  right: 12px;
  bottom: 12px;
  display: none;
}
.vote-card.is-playing .vote-sound {
  display: inline-flex;
}
.vote-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 20px;
}
.vote-body h3 {
  font-size: 17px;
  overflow-wrap: anywhere;
}
.vote-hook {
  font-size: 12px;
  color: var(--muted);
}
.vote-meter {
  height: 4px;
  border-radius: 4px;
  background: var(--surface-2);
  overflow: hidden;
  margin-top: auto;
}
.vote-meter > i {
  display: block;
  height: 100%;
  background: var(--spectrum);
}
.vote-count {
  font-size: 11px;
  color: var(--muted);
}
.vote-note {
  font-size: 11px;
  color: var(--primary);
}
.vote-note:empty {
  display: none;
}
.vote-footnote {
  margin-top: 22px;
}

/* App showcase and features, trimmed. */
.screen-gallery--three {
  grid-template-columns: repeat(3, minmax(0, 260px));
  justify-content: center;
  gap: 40px;
}
.feature-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
}

/* Series pages (/w/<slug>). */
.series-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.series-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(40px) brightness(0.35);
  transform: scale(1.2);
}
.series-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: center;
  padding-block: 64px 72px;
}
.series-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.55);
}
.back-link {
  margin-bottom: 22px;
}
.series-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.genre-chip {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(26, 20, 8, 0.6);
}
.series-info h1 {
  font-size: clamp(36px, 4.4vw, 58px);
  overflow-wrap: anywhere;
}
.series-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 0 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.series-facts > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.series-facts .icon {
  width: 14px;
  height: 14px;
  color: var(--gold);
}
.series-body h2 {
  font-size: 26px;
  margin-bottom: 20px;
}
.episode-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.episode-row > a {
  display: grid;
  grid-template-columns: 42px 1fr auto 22px;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.episode-row > a:hover,
.episode-row[aria-current="true"] > a {
  border-color: var(--selection);
}
.episode-row[aria-current="true"] > a {
  background: rgba(255, 219, 164, 0.08);
}
.episode-number {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.episode-title {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.episode-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
}
.episode-meta .icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}
.episode-row > a > .icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
}
.episode-more {
  margin-top: 8px;
}
.episode-more summary {
  cursor: pointer;
  padding: 14px 4px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}
.story-teaser {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 30px;
  border: 1px solid rgba(255, 182, 45, 0.35);
  border-radius: 22px;
  background: rgba(255, 182, 45, 0.06);
}
.story-teaser p {
  color: var(--muted);
  font-size: 14px;
}
.story-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.more-series {
  margin-top: 40px;
}
.empty-note {
  color: var(--muted);
}
.message-page .wrap {
  max-width: 640px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 22px;
}
.message-page h1 {
  font-size: clamp(32px, 4vw, 46px);
}

@media (max-width: 1050px) {
  .screen-gallery--three {
    grid-template-columns: none;
    justify-content: start;
    gap: 22px;
  }
}
@media (max-width: 760px) {
  .series-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
  }
  .interactive-live .series-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vote-feed {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(280px, 80vw);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
  }
  .vote-card {
    scroll-snap-align: start;
  }
  .feature-grid--two {
    grid-template-columns: 1fr;
  }
  .series-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 36px 48px;
  }
  .series-poster {
    width: min(220px, 60vw);
  }
  .episode-row > a {
    grid-template-columns: 34px 1fr auto;
    gap: 10px;
    padding: 10px 12px;
  }
  .episode-row > a > .icon {
    display: none;
  }
  .story-teaser {
    flex-direction: column;
    padding: 22px;
  }
}

/* Last Seen: the interactive demo, played from the app's clips */
.ls-player {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 9 / 16;
  margin-inline: auto;
  border: 1px solid rgba(255, 182, 45, 0.3);
  border-radius: 28px;
  overflow: hidden;
  background: var(--night);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.ls-stage,
.ls-poster,
.ls-clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ls-poster,
.ls-clip {
  object-fit: cover;
}
.ls-clip {
  opacity: 0;
  transition: opacity 0.15s linear;
}
.ls-clip.is-active {
  opacity: 1;
}
.ls-player:focus {
  outline: none;
}
.ls-player:focus-visible {
  outline: 2px solid var(--selection);
  outline-offset: 4px;
}
.ls-player.is-paused .ls-stage {
  filter: brightness(0.55);
}
.ls-noscript {
  position: absolute;
  inset: auto 20px 20px;
  font-size: 12px;
}
.ls-top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 40px;
  background: linear-gradient(rgba(0, 0, 0, 0.6), transparent);
}
.ls-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.ls-top-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.ls-icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(26, 20, 8, 0.55);
  backdrop-filter: blur(8px);
  color: var(--text);
}
.ls-icon-button .icon {
  width: 18px;
  height: 18px;
}
.ls-intro,
.ls-hud,
.ls-ending {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 72px 18px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82) 38%);
}
.ls-intro h3,
.ls-ending h3 {
  font-size: 30px;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 10px;
}
.ls-intro > p:not(.eyebrow),
.ls-ending > p:not(.eyebrow) {
  font-size: 14px;
  color: rgba(255, 237, 210, 0.85);
  margin-bottom: 18px;
}
.ls-intro .eyebrow,
.ls-ending .eyebrow {
  margin-bottom: 10px;
}
.ls-intro .button,
.ls-ending .button {
  width: 100%;
}
.ls-player[data-phase="ending"] [data-pause],
.ls-player[data-phase="intro"] .ls-top-actions,
.ls-player:not([data-phase="intro"]) .ls-intro,
.ls-player:not([data-phase="playing"]) .ls-hud {
  display: none;
}
.ls-ending {
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(rgba(26, 20, 8, 0.35), rgba(26, 20, 8, 0.92) 55%);
}
.ls-ending[hidden] {
  display: none;
}
.ls-ending > p.ls-ending-count {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}
.ls-ending-count .icon {
  width: 14px;
  height: 14px;
}
.ls-ending-actions,
.ls-ending-row {
  display: grid;
  gap: 8px;
}
.ls-ending-row {
  grid-template-columns: 1fr 1fr;
}
.ls-prompt {
  color: var(--selection);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.ls-prompt:empty {
  display: none;
}
.ls-player.is-held .ls-prompt {
  animation: ls-pulse 1.2s ease-in-out infinite;
}
@keyframes ls-pulse {
  50% {
    opacity: 0.45;
  }
}
.ls-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ls-choices:empty {
  display: none;
}
.ls-choice {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(26, 20, 8, 0.6);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}
.ls-choice--right {
  flex-direction: row-reverse;
  text-align: right;
}
.ls-choice:hover {
  border-color: var(--selection);
}
.ls-choice .icon {
  width: 16px;
  height: 16px;
  color: var(--primary);
}
.ls-countdown {
  height: 3px;
  border-radius: 3px;
  margin-top: 10px;
  background: var(--track);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s;
}
.ls-countdown.is-open {
  opacity: 1;
}
.ls-countdown > i,
.ls-progress > i {
  display: block;
  height: 100%;
  width: 0;
}
.ls-countdown > i {
  background: var(--primary);
}
.ls-caption {
  font-size: 14px;
  line-height: 1.5;
  margin: 14px 0 12px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}
.ls-progress {
  height: 2px;
  background: var(--track);
}
.ls-progress > i {
  background: var(--spectrum);
  box-shadow: var(--spectrum-glow);
}
.ls-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (prefers-reduced-motion: reduce) {
  .ls-player.is-held .ls-prompt {
    animation: none;
  }
}
