/* Canonical Cue UI. Values come from the current Paper screens. */

:where(.cue-page, .page-header, .catalog-toolbar, .catalog-grid, .profile-summary, .stats-section, .profile-content, .episodes-panel, .cast-section, .detail-tools) {
  font-family: var(--font-sans);
  font-synthesis: none;
}
/* Paper detail and feed refinements, Sep 8. */
.detail-paper-screen .detail-track-icon {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  border: 1px solid #2a2a2b;
  border-radius: 50%;
  background: #202124;
  color: #f8f8f8;
  backdrop-filter: blur(12px);
}

.detail-paper-screen .detail-track-icon .hugeicon {
  width: 10px;
  height: 10px;
  stroke-width: 2;
}

.detail-paper-screen .detail-source-action.provider-max { background: #0560ff; }
.detail-paper-screen .detail-source-action.provider-netflix { background: #e50914; }
.detail-paper-screen .detail-source-action.provider-hulu { background: #1ce783; }
.detail-paper-screen .detail-source-action.provider-prime-video { background: #00a8e1; }
.detail-paper-screen .detail-source-action.provider-disney-plus { background: #113ccf; }
.detail-paper-screen .detail-source-action.provider-apple-tv-plus { background: #f5f5f7; }

.detail-paper-screen .detail-paper-content,
.detail-paper-screen .episodes-panel,
.detail-paper-screen .cast-section,
.detail-paper-screen .detail-tools {
  margin-top: 18px;
}

.detail-paper-screen .season-picker strong {
  font-size: 15px;
  line-height: 22.5px;
}

.detail-paper-screen .season-picker select {
  z-index: 2;
  display: block;
  appearance: auto;
  pointer-events: auto;
}

.detail-paper-screen .season-watch-button {
  display: grid;
  width: 48px;
  min-width: 48px;
  height: 34px;
  min-height: 34px;
  place-items: center;
  border: 1px solid #37383b;
  border-radius: 6px;
  background: #ffffff1a;
  padding: 0 12px;
  color: var(--color-text-muted);
}

.detail-paper-screen .season-watch-button .hugeicon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.detail-paper-screen .episode-list {
  margin-right: -24px;
  margin-left: 0;
  padding: 0 32px 48px 0;
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 60px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 60px), transparent 100%);
}

.detail-paper-screen .episode-list.is-scrolled {
  mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 60px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 60px), transparent 100%);
}

.home-screen .home-hero-art {
  mask-image: linear-gradient(#000 40%, transparent 98%);
  -webkit-mask-image: linear-gradient(#000 40%, transparent 98%);
}

.home-screen .home-hero-wash {
  background: linear-gradient(0deg, #08090b 0%, rgba(8, 9, 11, .4) 50%, transparent 100%);
}

.home-hero-copy { margin-top: -176px; }
.hero-video-embed { border: 0; pointer-events: none; }

.home-poster-card {
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1), filter 180ms ease;
}

.home-poster-card.is-pressing {
  transform: scale(.96);
  filter: brightness(.82);
}

.home-poster-check {
  border: 1px solid #ffffff26;
  background: #00000073;
  color: #fff;
  cursor: pointer;
}

.home-poster-check.is-saved {
  border-color: #fff;
  background: #fff;
  color: #08090b;
}

.feed-media-rail { gap: 4px; }
.feed-media-mark { padding-inline: 8px; }
.feed-media-mark img {
  width: calc(100% - 16px);
  height: 24px;
  max-height: 24px;
}

.feed-card-wash {
  background: linear-gradient(0deg, #08090b 0%, #08090be8 24%, #08090b99 48%, #08090b26 72%, transparent 100%);
}

.feed-text-post {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  background: #11151d;
  padding: clamp(28px, 8vw, 56px);
}

.feed-text-post p {
  max-width: 34ch;
  margin: 0;
  color: #f8f8f8;
  font-size: clamp(18px, 5vw, 28px);
  font-weight: 650;
  line-height: 1.35;
}

.floating-dock button .hugeicon { stroke-width: 2.5; }

.status-sheet,
.season-actions-sheet {
  overflow: hidden;
  border: 1px solid #2a2d34;
  border-radius: 18px;
  background: #11151d;
  padding: 20px;
  box-shadow: 0 28px 80px #000b;
}

.status-sheet .modal-heading,
.season-actions-sheet .modal-heading { align-items: flex-start; }

.status-sheet .modal-heading h2,
.season-actions-sheet .modal-heading h2 {
  margin-top: 4px;
  font-size: 20px;
  line-height: 26px;
}

.status-sheet .modal-heading .icon-button,
.season-actions-sheet .modal-heading .icon-button {
  border-color: #31353e;
  border-radius: 8px;
  background: #151a23;
}

.status-options,
.season-action-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
}

.status-options button,
.season-action-options button {
  display: grid;
  min-height: 58px;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 8px 10px;
  color: #f8f8f8;
  text-align: left;
}

.season-action-options button { grid-template-columns: 42px minmax(0, 1fr); }
.status-options button > span:first-child,
.season-action-options button > span:first-child {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #151a23;
}

.status-options button > span:nth-child(2),
.season-action-options button > span:nth-child(2) { display: grid; gap: 2px; }
.status-options strong,
.season-action-options strong { font-size: 15px; line-height: 20px; }
.status-options small,
.season-action-options small { color: #a5a7ad; font-size: 12px; line-height: 17px; }
.status-options button.selected { background: rgba(255, 77, 68, .14); color: #ff5750; }
.status-options .remove-status { min-height: 48px; margin-top: 8px; border-top: 1px solid #31353e; }
.sheet-handle { display: none; }

@media (max-width: 680px) {
  .status-sheet,
  .season-actions-sheet {
    border-radius: 18px 18px 10px 10px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }

  .sheet-handle {
    display: block;
    width: 36px;
    height: 4px;
    margin: -10px auto 14px;
    border-radius: 999px;
    background: #ffffff3d;
  }
}

.shell:not([data-view="home"]) main {
  width: min(100%, 1240px);
  margin-inline: auto;
  padding: var(--cue-page-block) var(--cue-page-inline) 96px;
}

.cue-page,
.shell:not([data-view="home"]) main {
  background: var(--color-archive-black);
}

.cue-page-header,
.page-header {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 16px;
  border: 0;
  padding: 0;
}

.cue-page-header h1,
.page-header h1,
.page-header.compact-header h1,
.explore-header h1 {
  color: #fff;
  font-size: var(--cue-header-size);
  font-weight: 700;
  letter-spacing: 0;
  line-height: var(--cue-header-leading);
}

.page-header .icon-button,
.cue-page-header .icon-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
}

button,
.button-primary,
.button-quiet,
.icon-button {
  transition-property: background-color, color, opacity, transform, box-shadow;
  transition-duration: var(--duration-quick);
  transition-timing-function: var(--ease-out);
}

button:active,
.button-primary:active,
.button-quiet:active,
.icon-button:active {
  transform: scale(var(--scale-press));
}

.section-title {
  margin-bottom: 12px;
}

.section-title > i {
  display: none;
}

.section-title h2,
.episodes-heading h2,
.search-providers-paper h2 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 24px;
}

.filter-control,
.paper-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  border: 0;
  padding: 0;
  background: transparent;
  scrollbar-width: none;
}

.filter-control::-webkit-scrollbar,
.paper-pills::-webkit-scrollbar {
  display: none;
}

.filter-control button,
.paper-pills button {
  min-width: fit-content;
  height: var(--cue-control-height);
  min-height: var(--cue-control-height);
  border: 1px solid var(--color-chip-border);
  border-radius: var(--radius-pill);
  background: var(--color-chip-idle);
  padding: 4px 14px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 18px;
}

.filter-control button.active,
.paper-pills button.active {
  border-color: transparent;
  background: var(--color-signal-teal);
  color: var(--color-archive-black);
}

.catalog-toolbar {
  margin: 0 0 20px;
  border: 0;
  padding: 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px 12px;
  border: 0;
  padding: 0;
}

.media-card {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.media-card .media-art {
  position: relative;
  overflow: clip;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--cue-media-stroke);
  border-radius: var(--cue-media-radius);
  outline: 0;
  background: var(--media-art) 50% / cover no-repeat, var(--cue-surface-raised);
  box-shadow: var(--cue-image-shadow);
}

.media-card-meta {
  margin-top: 8px;
  padding: 0 2px 4px;
}

.media-card-meta h3 {
  overflow: hidden;
  margin: 0 0 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-card-meta p {
  overflow: hidden;
  color: #ddd;
  font-size: 10px;
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-state {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 24px;
  text-align: center;
}

.empty-state h2 {
  max-width: 30ch;
  color: #fff;
  font-size: 16px;
  line-height: 24px;
}

.empty-state p {
  max-width: 34ch;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 18px;
}

/* Search */
.cue-search-page {
  width: min(100%, 940px);
  margin-inline: auto;
}

.cue-search-field {
  display: flex;
  height: 40px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  border: 1px solid var(--cue-surface-stroke);
  border-radius: 4px;
  background: var(--cue-surface);
  padding: 4px 10px;
  color: var(--color-text-muted);
}

.cue-search-field > .hugeicon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.cue-search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0;
  line-height: 18px;
}

.cue-search-field input::placeholder {
  color: var(--color-text-faint);
}

.cue-search-field .icon-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  border: 0;
  padding: 4px;
}

.cue-search-page .search-filters {
  margin-bottom: 16px;
}

.search-recent-rail {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.search-recent-rail::-webkit-scrollbar {
  display: none;
}

.search-recent-rail button {
  min-width: max-content;
  height: 30px;
  min-height: 30px;
  border: 1px solid var(--cue-surface-stroke);
  border-radius: var(--radius-pill);
  background: var(--cue-surface);
  padding: 4px 10px;
  color: var(--color-text-muted);
  font-size: 11px;
  line-height: 16px;
}

.search-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.search-category {
  position: relative;
  overflow: clip;
  aspect-ratio: 0.72;
  min-height: 0;
  border: 1px solid var(--cue-media-stroke);
  border-radius: 4px;
  background: linear-gradient(180deg, transparent 46%, rgba(8, 9, 11, 0.88) 100%), var(--media-art) center / cover no-repeat, var(--cue-surface-raised);
  padding: 8px;
  box-shadow: var(--cue-image-shadow);
  text-align: start;
}

.search-category span {
  position: absolute;
  inset-inline: 8px;
  bottom: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.search-providers-paper {
  margin-top: 28px;
}

.search-provider-grid {
  display: flex;
  gap: 24px;
  margin: 0 -12px;
  overflow-x: auto;
  padding: 8px 64px 16px;
  mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
  scrollbar-width: none;
}
.search-provider-grid::-webkit-scrollbar { display: none; }

.search-provider-grid a {
  display: flex;
  width: 92px;
  min-width: 92px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 15px;
  text-align: center;
  text-decoration: none;
}

.search-provider-grid a > span {
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  overflow: clip;
  border: 0;
  border-radius: 16px;
  background: #ffffff0d;
  box-shadow: 0 0 0 1px #ffffff1a, 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
}

.search-provider-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-provider-grid strong {
  overflow: hidden;
  max-width: 100%;
  font-weight: 500;
  text-overflow: ellipsis;
  display: -webkit-box;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.provider-generic-mark {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #fff;
}

.provider-generic-mark .hugeicon {
  width: 18px;
  height: 18px;
}

.cue-search-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cue-search-results .live-search-result {
  display: grid;
  min-height: 72px;
  grid-template-columns: 104px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 4px;
  background: var(--color-panel);
  padding: 4px;
}

.cue-search-results .result-art {
  width: 104px;
  height: 64px;
  border: 0;
  border-radius: 3px;
  background: var(--media-art) center / cover no-repeat, var(--cue-surface-raised);
}

.cue-search-results .result-copy strong,
.cue-search-results .result-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cue-search-results .result-copy strong {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.cue-search-results .result-copy small {
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: 10px;
  line-height: 15px;
}

.result-open {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
}

.result-open .hugeicon {
  width: 24px;
  height: 24px;
}

/* Full-height media feed */
.shell[data-view="feed"] main {
  width: 100%;
  max-width: none;
  height: 100dvh;
  overflow: hidden;
  padding-bottom: 0;
}

.cue-feed-page {
  display: grid;
  height: calc(100dvh - 20px);
  grid-template-rows: 24px 68px minmax(0, 1fr);
  overflow: hidden;
}

.cue-feed-page .cue-page-header {
  margin: 0;
}

.feed-media-rail {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.feed-media-rail::-webkit-scrollbar {
  display: none;
}

.feed-media-mark {
  display: grid;
  width: 112px;
  min-width: 112px;
  height: 36px;
  min-height: 36px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 4px 10px;
  color: var(--color-text-faint);
  opacity: 0.62;
}

.feed-media-mark.active {
  border-radius: 4px;
  background: var(--cue-surface);
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--cue-surface-stroke);
  opacity: 1;
}

.feed-media-mark img {
  width: 86px;
  max-height: 29px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4));
}

.feed-media-mark span {
  overflow: hidden;
  max-width: 100%;
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-stack {
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.feed-stack::-webkit-scrollbar {
  display: none;
}

.feed-card {
  position: relative;
  isolation: isolate;
  overflow: clip;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 4px;
  background: var(--cue-surface-raised);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.feed-card-art,
.feed-card-wash {
  position: absolute;
  inset: 0;
}

.feed-card-art {
  z-index: -2;
  background: var(--media-art) 50% / cover no-repeat, var(--cue-surface-raised);
  transition-property: scale, filter;
  transition-duration: 350ms;
  transition-timing-function: var(--ease-out);
  filter: saturate(0.82) brightness(0.76);
  scale: 1.015;
}

.feed-card.active .feed-card-art {
  filter: saturate(1) brightness(0.86);
  scale: 1;
}

.feed-card-wash {
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 9, 11, 0.08) 22%, rgba(8, 9, 11, 0.1) 46%, rgba(8, 9, 11, 0.92) 100%);
}

.feed-actions {
  position: absolute;
  right: 12px;
  bottom: 134px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feed-actions button,
.feed-actions a {
  display: grid;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  place-items: center;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(19, 24, 23, 0.74);
  color: #fff;
  padding: 4px;
  text-decoration: none;
  backdrop-filter: blur(14px) saturate(130%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.feed-actions .hugeicon {
  width: 19px;
  height: 19px;
}

.feed-copy {
  position: absolute;
  right: 66px;
  bottom: 20px;
  left: 16px;
  display: flex;
  max-width: 560px;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.feed-source {
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  font-weight: 600;
  line-height: 15px;
}

.feed-title-logo {
  width: min(190px, 66vw);
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

.feed-copy h2 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
}

.feed-copy p {
  display: -webkit-box;
  overflow: hidden;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  line-height: 17px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feed-copy-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed-copy-actions button,
.feed-copy-actions a {
  display: inline-flex;
  height: 32px;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-decoration: none;
}

.feed-copy-actions button {
  background: #fff;
  color: #08090b;
}

.feed-copy-actions a {
  background: rgba(19, 24, 23, 0.76);
  color: #fff;
  backdrop-filter: blur(12px);
}

/* One floating dock component everywhere. */
.floating-dock {
  border: 0;
  border-radius: 14px;
  background: rgba(16, 18, 22, 0.84);
  padding: 4px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(140%);
}

.floating-dock button {
  border: 0;
  color: var(--color-text-muted);
}

.floating-dock button.active {
  border: 0;
  background: rgba(244, 243, 239, 0.14);
  color: #fff;
}

@media (max-width: 680px) {
  .shell:not([data-view="home"]) main {
    padding: max(20px, env(safe-area-inset-top)) 12px calc(82px + env(safe-area-inset-bottom));
  }

  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 7px;
  }

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

  .shell[data-view="feed"] main {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .cue-feed-page {
    height: calc(100dvh - max(20px, env(safe-area-inset-top)) - 72px - env(safe-area-inset-bottom));
  }

  .floating-dock {
    right: 12px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 12px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
  }

  .floating-dock button {
    height: 54px;
    min-height: 54px;
    border-radius: 10px;
    padding: 4px 2px;
  }

  .floating-dock button strong {
    font-size: 8px;
    line-height: 10px;
  }
}

/* Profile account and approved social-source connections. */
.account-sources {
  width: min(100% - 24px, 700px);
  margin: 28px auto 0;
}

.account-heading {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-heading > div { min-width: 0; }
.account-heading h2 { margin: 0; color: #fff; font: 700 16px/24px Inter, system-ui, sans-serif; }
.account-heading span { display: block; overflow: hidden; color: #a5a7ad; font: 400 10px/15px Inter, system-ui, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.account-heading button,
.source-connections button,
.auth-switch {
  min-height: 32px;
  border: 1px solid #23252b;
  border-radius: 999px;
  background: #131817;
  padding: 4px 12px;
  color: #fff;
  font: 600 11px/14px Inter, system-ui, sans-serif;
}

.source-connections { display: grid; gap: 8px; margin-top: 12px; }
.source-connections article {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 4px;
  background: #131817;
  padding: 8px 10px;
}
.source-connections article strong,
.source-connections article span { display: block; }
.source-connections article strong { color: #fff; font: 600 12px/16px Inter, system-ui, sans-serif; }
.source-connections article span { color: #a5a7ad; font: 400 10px/15px Inter, system-ui, sans-serif; }
.source-connections button:disabled { color: #74777f; cursor: not-allowed; }
.source-actions { display: flex; gap: 4px; }
.source-actions button { display: grid; width: 32px; min-width: 32px; padding: 4px; place-items: center; }
.source-actions .hugeicon { width: 16px; height: 16px; }
.account-message { margin: 8px 0 0; color: #a5a7ad; font-size: 10px; line-height: 15px; }

.auth-sheet form { display: grid; gap: 12px; }
.auth-sheet label { display: grid; gap: 4px; color: #a5a7ad; font-size: 11px; line-height: 14px; }
.auth-sheet input {
  width: 100%;
  height: 40px;
  border: 1px solid #23252b;
  border-radius: 4px;
  outline: none;
  background: #131817;
  padding: 4px 10px;
  color: #fff;
  font: 400 14px/20px Inter, system-ui, sans-serif;
}
.auth-sheet input:focus { border-color: #f3f3ef; }
.auth-error { margin: 0; color: #ff6b63; font-size: 11px; line-height: 16px; }
.auth-switch { width: 100%; margin-top: 8px; border: 0; background: transparent; color: #a5a7ad; }

@media (min-width: 681px) {
  .search-category-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .search-provider-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .cue-feed-page {
    width: min(100%, 680px);
    margin-inline: auto;
  }
}

/* Final cascade for the Sep 8 Paper refinements. */
.detail-paper-screen .detail-paper-content,
.detail-paper-screen .episodes-panel,
.detail-paper-screen .cast-section,
.detail-paper-screen .detail-tools { margin-top: 18px; }
.detail-paper-screen .season-picker strong { font-size: 15px; line-height: 22.5px; }
.detail-paper-screen .season-picker select { z-index: 2; display: block; appearance: auto; pointer-events: auto; }
.detail-paper-screen .season-watch-button { display: grid; width: 48px; min-width: 48px; height: 34px; min-height: 34px; place-items: center; border: 1px solid #37383b; border-radius: 6px; background: #ffffff1a; padding: 0 12px; color: var(--color-text-muted); }
.detail-paper-screen .season-watch-button .hugeicon { width: 18px; height: 18px; stroke-width: 2; }
.detail-paper-screen .media-detail-page ~ .episodes-panel .episode-list { margin-right: -24px; margin-left: 0; padding: 0 32px 0 0; mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 60px), transparent 100%); -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 60px), transparent 100%); }
.detail-paper-screen .media-detail-page ~ .episodes-panel .episode-list.is-scrolled { mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 60px), transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 60px), transparent 100%); }
.home-screen .home-hero-slider { border-radius: 4px 4px 0 0; }
.home-screen .home-hero-slide { background: #08090b; }
.home-screen .home-hero-art { border-radius: 4px 4px 0 0; mask-image: linear-gradient(to bottom, #000 0%, #000 54%, #000c 72%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 54%, #000c 72%, transparent 100%); }
.home-screen .home-hero-wash { background: linear-gradient(to bottom, transparent 48%, #08090b80 72%, #08090b 100%); }
.home-hero-copy { margin-top: -176px; }
.hero-video-embed { border: 0; pointer-events: none; }
.home-poster-check { border: 1px solid #ffffff26; background: #00000073; color: #fff; cursor: pointer; }
.home-poster-check.is-saved { border-color: #fff; background: #fff; color: #08090b; }
.feed-media-rail { gap: 4px; }
.feed-media-mark { padding-inline: 8px; }
.feed-media-mark img { width: calc(100% - 16px); height: 24px; max-height: 24px; }
.feed-card-wash { background: linear-gradient(0deg, #08090b 0%, #08090be8 24%, #08090b99 48%, #08090b26 72%, transparent 100%); }
.floating-dock button .hugeicon { stroke-width: 2.5; }

@media (max-width: 680px) and (max-height: 850px) {
  .home-hero-copy { margin-top: -176px; }
}

/* Final cascade corrections for artwork blending and the compact episode rail. */
.shell .home-screen .home-hero-slider { border-radius: 4px 4px 0 0; }
.shell .home-screen .home-hero-slide { background: #08090b; }
.shell .home-screen .home-hero-art {
  border-radius: 4px 4px 0 0;
  mask-image: linear-gradient(to bottom, #000 0%, #000 54%, #000c 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 54%, #000c 72%, transparent 100%);
}
.shell .home-screen .home-hero-wash { background: linear-gradient(to bottom, transparent 48%, #08090b80 72%, #08090b 100%); }
.shell .detail-paper-screen .media-detail-page ~ .episodes-panel .episode-list { padding-bottom: 0; }

/* Sep 8 Paper profile and final browser-review refinements. */
.cue-home-wordmark { transform: none; }
.home-view-rail {
  display: grid;
  grid-template-columns: repeat(var(--home-view-count, 4), minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
}
.home-view-chip { width: 100%; min-width: 0; }
.home-view-chip.active { border: 0; box-shadow: none; }

.home-screen .home-hero-slider { border-radius: 4px 4px 0 0; }
.home-screen .home-hero-slide { background: #08090b; }
.home-screen .home-hero-art {
  border-radius: 4px 4px 0 0;
  mask-image: linear-gradient(to bottom, #000 0%, #000 54%, #000c 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 54%, #000c 72%, transparent 100%);
}
.home-screen .home-hero-wash { background: linear-gradient(to bottom, transparent 48%, #08090b80 72%, #08090b 100%); }
.home-screen .home-hero-cover { border-radius: 4px 4px 0 0; }

.detail-paper-screen .detail-track-icon { width: 17px; height: 17px; flex-basis: 17px; }
.detail-paper-screen .detail-track-icon .hugeicon { width: 9px; height: 9px; }
.detail-paper-screen .detail-track-button.is-tracked {
  border: 1px solid #ffffff1a;
  background: #ffffff1a;
  color: #fff;
  backdrop-filter: blur(20px) saturate(150%);
}
.detail-paper-screen .detail-source-actions > i { display: none; }
.detail-paper-screen .media-score { color: #ffffffb3; font-size: 14px; font-weight: 500; line-height: 20px; }
.detail-paper-screen .detail-source-action img { border-radius: 0; }
.detail-paper-screen .detail-source-action .provider-brand-mark { width: 28px; max-width: 28px; height: 18px; max-height: 18px; }
.detail-paper-screen .detail-source-action.provider-hulu .provider-brand-mark { width: 34px; max-width: 34px; }
.detail-paper-screen .detail-source-action.provider-bbc-iplayer { background: #111; }
.detail-paper-screen .detail-source-action.provider-cinema { background: #29231d; }

.detail-paper-screen .episode-card .watch-toggle.watched {
  border-color: #ffffff2e;
  background: #15171b;
  color: #fff;
}
.detail-paper-screen .episode-card .watch-toggle.watched .hugeicon { width: 20px; height: 20px; stroke-width: 2; }
.detail-paper-screen .media-detail-page ~ .episodes-panel .episode-list { padding-bottom: 0; }

.quick-search.open { z-index: 60; bottom: 70px; }
.quick-search-title { justify-content: flex-start; }
.library-page-header { align-items: center; }
.library-page-header .library-header-actions { display: flex; align-items: center; height: 32px; }
.library-page-header .library-header-actions .icon-button { display: grid; width: 32px; min-width: 32px; height: 32px; min-height: 32px; place-items: center; padding: 4px; }

.season-picker-options { display: grid; gap: 4px; margin-top: 8px; }
.season-picker-options button { display: flex; min-height: 44px; align-items: center; justify-content: space-between; border: 0; border-radius: 6px; background: transparent; padding: 8px 12px; color: #fff; font-size: 14px; text-align: left; }
.season-picker-options button.selected { background: #ffffff14; }
.season-picker-options .hugeicon { width: 18px; height: 18px; }

.shell[data-view="profile"] main { padding-bottom: 110px; }
.paper-profile-header,
.paper-profile-section,
.profile-summary,
.profile-settings-list,
.account-sources { width: min(100% - 32px, 700px); margin-inline: auto; }
.paper-profile-header { padding-top: max(18px, env(safe-area-inset-top)); }
.paper-profile-header .profile-topline { display: flex; justify-content: flex-end; gap: 8px; }
.paper-profile-header .profile-topline .icon-button { width: 36px; min-width: 36px; height: 36px; min-height: 36px; border: 1px solid #ffffff14; border-radius: 50%; background: #ffffff0d; }
.paper-profile-header .profile-identity { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.paper-profile-header .avatar-fallback { position: relative; display: grid; width: 76px; height: 76px; flex: 0 0 76px; overflow: hidden; place-items: center; border: 1px solid #ffffff24; border-radius: 50%; background: #17364a; color: #fff; cursor: pointer; font-size: 22px; font-weight: 750; }
.paper-profile-header .avatar-fallback img { width: 100%; height: 100%; object-fit: cover; }
.paper-profile-header .avatar-fallback input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.paper-profile-header .profile-identity h1 { margin: 0; color: #fff; font-size: 24px; line-height: 30px; }
.paper-profile-header .profile-identity > div > span { color: #ffffff80; font-size: 13px; line-height: 19px; }
.profile-social-counts { display: flex; gap: 18px; margin: 14px 0 0 92px; color: #ffffff80; font-size: 12px; }
.profile-social-counts strong { color: #fff; }

.profile-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; border: 0; background: transparent; }
.profile-summary article { display: flex; min-width: 0; min-height: 82px; flex-direction: column; justify-content: space-between; border: 1px solid #ffffff12; border-radius: 6px; background: #ffffff0a; padding: 12px; }
.profile-summary article + article { border-left: 1px solid #ffffff12; }
.profile-summary span { color: #ffffff80; font-size: 11px; line-height: 16px; }
.profile-summary strong { color: #fff; font-size: 21px; line-height: 26px; }

.paper-profile-section { margin-top: 30px; }
.profile-section-heading { display: flex; min-height: 28px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.profile-section-heading h2 { margin: 0; color: #fff; font-size: 17px; line-height: 24px; }
.profile-section-heading button,
.profile-section-heading > span { display: inline-flex; align-items: center; gap: 2px; border: 0; background: transparent; color: #ffffff80; font-size: 12px; }
.profile-section-heading .hugeicon { width: 15px; height: 15px; }
.profile-title-rail { display: flex; gap: 10px; overflow-x: auto; margin-right: -16px; padding-right: 24px; scrollbar-width: none; }
.profile-title-rail::-webkit-scrollbar { display: none; }
.profile-title-tile { width: 112px; min-width: 112px; cursor: pointer; }
.profile-title-tile > div { aspect-ratio: 2 / 3; border: 1px solid #ffffff14; border-radius: 5px; background: var(--media-art) 50% / cover no-repeat, #14161a; }
.profile-title-tile strong { display: block; overflow: hidden; margin-top: 8px; color: #fff; font-size: 12px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.profile-title-tile span { color: #ffffff70; font-size: 10px; line-height: 14px; }
.profile-add-favorite { display: flex; width: 112px; min-width: 112px; aspect-ratio: 2 / 3; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px dashed #ffffff24; border-radius: 5px; background: #ffffff08; color: #ffffffa6; }
.profile-add-favorite .hugeicon { width: 22px; height: 22px; }
.profile-empty-copy { color: #ffffff70; font-size: 13px; }

.account-sources { margin-top: 30px; }
.source-connections article { border-radius: 6px; }
.profile-settings-list { display: grid; margin-top: 28px; border-top: 1px solid #ffffff12; }
.profile-settings-list > button { display: grid; grid-template-columns: 24px minmax(0, 1fr) 18px; gap: 12px; min-height: 58px; align-items: center; border: 0; border-bottom: 1px solid #ffffff12; background: transparent; padding: 8px 2px; color: #fff; text-align: left; }
.profile-settings-list > button > .hugeicon { width: 20px; height: 20px; color: #ffffffa6; }
.profile-settings-list > button > .hugeicon:last-child { width: 16px; height: 16px; color: #ffffff5c; }
.profile-settings-list span { display: grid; }
.profile-settings-list strong { font-size: 14px; line-height: 20px; }
.profile-settings-list small { color: #ffffff70; font-size: 11px; line-height: 16px; }

.auth-identities { display: grid; gap: 12px; margin: 0; }
.auth-identities .cue-auth-button { width: 100%; }
.auth-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block: 20px;
  color: #ffffff66;
  font-size: 12px;
  line-height: 16px;
}
.auth-divider span { padding-inline: 8px; }
.auth-message { margin: 0; color: #b7d9ae; font-size: 12px; line-height: 18px; }
.auth-email-block { display: grid; gap: 16px; }
.auth-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border-radius: 12px;
  background: #ffffff12;
  box-shadow: 0 1px 0 #0000003d;
}
.auth-mode-switch button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #ffffffa8;
  font-size: 13px;
  font-weight: 650;
  transition-property: background-color, color, transform;
  transition-duration: 160ms;
  transition-timing-function: var(--ease-out);
}
.auth-mode-switch button.active { background: #f3f3ef; color: #08090b; }
.auth-magic-form { display: grid; gap: 12px; margin-top: 24px; padding-top: 0; border-top: 0; }
.cue-drawer-auth { max-height: min(92dvh, 760px); }
.cue-drawer-auth .cue-drawer-body {
  padding: 8px 16px calc(20px + env(safe-area-inset-bottom, 0px));
}
.cue-drawer-auth form { display: grid; gap: 12px; }
.cue-drawer-auth form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #ffffffa8;
  font-size: 12px;
}
.cue-drawer-auth input {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: #08090b;
  box-shadow: 0 0 0 1px #ffffff1f, 0 1px 0 #00000040;
  color: #fff;
  padding: 10px 14px;
  transition-property: box-shadow, background-color;
  transition-duration: 160ms;
  transition-timing-function: var(--ease-out);
}
.cue-drawer-auth input:focus-visible {
  box-shadow: 0 0 0 1px #f3f3ef, 0 8px 24px #00000059;
}
.cue-drawer-auth .wide-button {
  width: 100%;
  min-height: 44px;
  margin: 0;
  border: 0;
  border-radius: 12px;
}
.cue-drawer-auth .auth-identities,
.cue-drawer-auth .auth-divider,
.cue-drawer-auth .auth-email-block,
.cue-drawer-auth .auth-magic-form {
  animation: cue-auth-chunk 220ms var(--ease-out) both;
}
.cue-drawer-auth .auth-divider { animation-delay: 40ms; }
.cue-drawer-auth .auth-email-block { animation-delay: 80ms; }
.cue-drawer-auth .auth-magic-form { animation-delay: 120ms; }
@keyframes cue-auth-chunk {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .cue-drawer-auth .auth-identities,
  .cue-drawer-auth .auth-divider,
  .cue-drawer-auth .auth-email-block,
  .cue-drawer-auth .auth-magic-form {
    animation: none;
  }
}

/* Browser review follow-up: media playback, release feed, and profile spacing. */
.detail-visual .detail-trailer { object-fit: cover; }
.detail-visual .detail-trailer-embed { left: -38.8889%; width: 177.7778%; max-width: none; }
.detail-sound-toggle { position: absolute; right: 16px; bottom: 16px; z-index: 6; display: grid; width: 42px; min-width: 42px; height: 42px; min-height: 42px; place-items: center; border: 1px solid #ffffff26; border-radius: 50%; background: #08090bb8; color: #fff; padding: 0; backdrop-filter: blur(14px); }
.detail-sound-toggle .hugeicon { width: 19px; height: 19px; }
.home-screen .home-hero-art { height: 549.2px; }
.home-glass-actions .home-square-action.provider-netflix { background: #e50914; }
.home-glass-actions .home-square-action.provider-prime-video { background: #00a8e1; }
.home-glass-actions .home-square-action.provider-disney-plus { background: #113ccf; }
.home-glass-actions .home-square-action.provider-apple-tv-plus { background: #f5f5f7; }
.home-glass-actions .home-square-action.provider-max { background: #0560ff; }
.home-glass-actions .home-square-action.provider-hulu { background: #1ce783; }
.home-glass-actions .home-square-action.provider-bbc-iplayer { background: #111; }
.home-glass-actions .home-square-action.provider-cinema { background: #29231d; }
.home-glass-actions .home-square-action img,
.home-glass-actions .home-square-action .provider-brand-mark { object-fit: contain; }
.empty-state { min-height: 280px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.feed-media-mark.active { background: transparent; box-shadow: none; }
.feed-media-mark img { width: calc(100% - 24px); max-height: 21px; }
.feed-copy h2 { font-size: 19px; }
.paper-profile-header,
.paper-profile-section,
.profile-summary,
.profile-settings-list,
.account-sources { width: min(100%, 700px); }
.paper-profile-header .profile-topline { min-height: 36px; }

@media (max-width: 680px) {
  .detail-visual .detail-trailer-embed { left: -38.8889%; width: 177.7778%; }
  .home-screen .home-hero-art { height: 549.2px; }
}

@media (min-width: 681px) {
  .quick-search.open { bottom: 0; }
}

.detail-paper-screen .media-detail-page ~ .episodes-panel .episode-list {
  margin-right: -24px;
  margin-left: 0;
  padding: 0 32px 48px 0;
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 60px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 60px), transparent 100%);
}

.detail-paper-screen .media-detail-page ~ .episodes-panel .episode-list.is-scrolled {
  mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 60px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 60px), transparent 100%);
}

@media (min-width: 1181px) {
  .shell:not([data-view="home"]) main {
    padding-top: 80px;
  }

  .shell[data-view="feed"] main {
    padding-top: 80px;
  }

  .cue-feed-page {
    height: calc(100dvh - 96px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .feed-card-art {
    transition-duration: 0.01ms;
  }
}

/* Pull-down search uses the same Paper geometry as the dedicated search view. */
.quick-search {
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.72);
  padding: 0;
  backdrop-filter: blur(12px);
}

.quick-search .search-sheet {
  width: min(100%, 700px);
  max-height: 92dvh;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  border-radius: 0 0 14px 14px;
  background: var(--color-archive-black);
  padding: max(20px, env(safe-area-inset-top)) 12px 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.56);
  transform: translateY(-18px);
  transition: transform var(--duration-fast) var(--ease-drawer);
}

.quick-search.open .search-sheet {
  transform: translateY(0);
}

.quick-search-title {
  display: flex;
  height: 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.quick-search-title h1 {
  color: #fff;
  font-size: var(--cue-header-size);
  font-weight: 700;
  line-height: var(--cue-header-leading);
}

.quick-search-title .icon-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--cue-surface);
  padding: 4px;
}

.quick-search-field {
  margin-top: 8px;
}

.quick-search .search-filters {
  margin-bottom: 16px;
  border: 0;
  padding: 0;
}

.quick-results {
  min-height: 0;
  max-height: none;
  overflow: visible;
  border: 0;
  padding: 0;
}

.search-loading {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 16px;
}

.search-loading .hugeicon {
  animation: cue-search-spin 900ms linear infinite;
}

@keyframes cue-search-spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 681px) {
  .quick-search {
    padding-top: 18px;
  }

  .quick-search .search-sheet {
    border-radius: 14px;
    padding: 20px;
  }
}

/* Paper detail screen: the visual itself has no card edge or blur. */
.shell[data-view="detail"] main,
.shell[data-view="episode"] main {
  padding: 0 !important;
  overflow: clip;
}

.detail-paper-screen {
  min-height: 100dvh;
  background: #08090b;
  color: #fff;
}

.detail-paper-screen .media-detail-page {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  height: min(525.2px, 134.67vw);
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #08090b;
  isolation: isolate;
}

.detail-paper-screen .detail-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #08090b;
  filter: none;
  mask-image: linear-gradient(to bottom, #000 40%, transparent 98%);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 98%);
}

.detail-paper-screen .detail-cover,
.detail-paper-screen .detail-trailer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

.detail-paper-screen .detail-cover {
  z-index: 0;
  object-fit: cover;
  object-position: 50% 0%;
  opacity: 1;
  transition: opacity 260ms ease;
}

.detail-paper-screen .detail-visual.artwork-unavailable::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #131817;
  content: "";
}

.detail-paper-screen .detail-trailer {
  z-index: 1;
  background: #08090b;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.detail-paper-screen .detail-visual.trailer-ready .detail-trailer {
  opacity: 1;
}

.detail-paper-screen .detail-visual.trailer-ready .detail-cover {
  opacity: 0;
}

.detail-paper-screen .detail-hero-wash {
  z-index: 2;
  border-radius: 0;
  background: linear-gradient(0deg, #08090b 0%, rgba(8, 9, 11, .4) 50%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.detail-paper-screen .detail-topbar {
  position: absolute;
  z-index: 3;
  top: 24px;
  right: 12px;
  left: 12px;
  display: flex;
  justify-content: flex-start;
  width: auto;
  margin: 0;
  padding: 0;
}

.detail-paper-screen .detail-close-button {
  display: grid;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 4px;
  place-items: center;
  border: 1px solid #23252b;
  border-radius: 999px;
  background: #131817;
  color: #fff;
  box-shadow: 0 4px 4px #00000026;
}

.detail-paper-screen .detail-close-button .hugeicon {
  width: 20px;
  height: 20px;
}

.detail-paper-screen .detail-paper-hero-copy {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 700px);
  margin: -176px auto 0;
  padding: 0 24px;
  text-align: center;
}

.detail-paper-screen .title-treatment.detail {
  display: grid;
  width: min(333.33px, 75%);
  height: 80px;
  max-width: 75%;
  max-height: 80px;
  margin: 0;
  place-items: center;
}

.detail-paper-screen .title-treatment.detail .title-logo {
  display: block;
  width: 100%;
  height: 80px;
  object-fit: contain;
  object-position: 50%;
  filter: drop-shadow(0 25px 25px #00000026);
}

.detail-paper-screen .title-treatment.detail .title-wordmark {
  margin: 0;
  color: #fff;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 38px;
  letter-spacing: 0;
}

.detail-paper-screen .media-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 22px;
  margin-top: 20px;
  color: #ffffffcc;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.detail-paper-screen .media-meta-row > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-paper-screen .media-score {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 16px;
}

.detail-paper-screen .hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 0;
}

.detail-paper-screen .detail-track-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  height: 34px;
  gap: 7px;
  padding: 4px 22px;
  border: 0;
  border-radius: 6px;
  background: #f8f8f8;
  color: #08090b;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.detail-paper-screen .detail-track-button .hugeicon {
  width: 18px;
  height: 18px;
}

.detail-paper-screen .detail-source-actions {
  height: 34px;
  overflow: hidden;
  border: 1px solid #ffffff1a;
  border-radius: 8px;
  background: #ffffff1a;
  box-shadow: 0 10px 15px -3px #0000000d, 0 4px 6px -4px #0000000d;
  backdrop-filter: blur(20px) saturate(150%);
}

.detail-paper-screen .detail-source-action,
.detail-paper-screen .detail-source-actions > .icon-button {
  width: 60px;
  min-width: 60px;
  min-height: 34px;
  height: 34px;
  padding: 0 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.detail-paper-screen .detail-source-action img {
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  border-radius: 3px;
  object-fit: contain;
}

.detail-paper-screen .detail-paper-content {
  position: relative;
  z-index: 4;
  display: block;
  width: min(100%, 700px);
  margin: 16px auto 0;
  padding: 0 24px;
}

.detail-paper-screen .detail-synopsis {
  color: #ffffffb3;
  font-size: 14px;
  line-height: 22.75px;
}

.detail-paper-screen .detail-synopsis p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.detail-paper-screen .detail-synopsis.is-expanded p { display: block; overflow: visible; -webkit-line-clamp: unset; }
.detail-paper-screen .detail-read-more[hidden] { display: none; }

.detail-paper-screen .detail-read-more {
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff80;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.detail-paper-screen .media-facts {
  display: block;
  width: 100%;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid #ffffff0f;
  border-radius: 12px;
  background: #ffffff0a;
}

.detail-paper-screen .media-facts section {
  display: flex;
  min-height: 37px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid #ffffff0f;
}

.detail-paper-screen .media-facts section:last-child {
  border-bottom: 0;
}

.detail-paper-screen .media-facts span,
.detail-paper-screen .media-facts strong {
  color: #ffffffcc;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.detail-paper-screen .media-facts span { color: #ffffff66; }

.detail-paper-screen .episodes-panel,
.detail-paper-screen .cast-section,
.detail-paper-screen .detail-tools {
  width: min(100%, 700px);
  margin: 40px auto 0;
  padding: 0 24px 0;
}

.detail-paper-screen .episodes-heading {
  min-height: 34px;
  justify-content: flex-start;
  padding: 0;
}

.detail-paper-screen .episodes-heading > div:first-child h2,
.detail-paper-screen .cast-section .section-title h2 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 21px;
}

.detail-paper-screen .episodes-heading > div:first-child p,
.detail-paper-screen .season-progress,
.detail-paper-screen .season-toolbar > .icon-button,
.detail-paper-screen .section-title > i {
  display: none;
}

.detail-paper-screen .season-toolbar {
  order: 2;
  margin-left: 12px;
}

.detail-paper-screen .season-toolbar label select {
  height: 34px;
  padding: 0 32px 0 16px;
  border: 1px solid #ffffff1a;
  border-radius: 4px;
  background: #ffffff1a;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.detail-paper-screen .episode-list {
  display: flex;
  gap: 24px;
  margin: 0 -24px;
  overflow-x: auto;
  padding: 20px 24px 8px;
  border: 0;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 60px), transparent 100%);
}

.detail-paper-screen .episode-list::-webkit-scrollbar { display: none; }
.detail-paper-screen .episode-card { width: 288px; min-width: 288px; }
.detail-paper-screen .episode-card .episode-image { aspect-ratio: 16 / 9; height: auto; border: 1px solid #ffffff0d; border-radius: 4px; }
.detail-paper-screen .episode-card-copy { padding: 0 4px; }
.detail-paper-screen .episode-card-copy h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; line-height: 24px; }
.detail-paper-screen .episode-card-copy p { margin: 0; color: #ffffff99; font-size: 12px; line-height: 19.5px; }

.detail-paper-screen .cast-section { padding-bottom: 0; }
.detail-paper-screen .cast-rail { gap: 20px; margin: 0 -24px; padding: 16px 24px; mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 60px), transparent 100%); }
.detail-paper-screen .cast-card { width: 128px; min-width: 128px; gap: 12px; align-items: center; }
.detail-paper-screen .cast-photo { width: 96px; height: 96px; border-color: #ffffff1a; }
.detail-paper-screen .cast-card strong,
.detail-paper-screen .cast-card span { width: 128px; text-align: center; }
.detail-paper-screen .media-meta-row > span { font-size: 13px; line-height: 18px; }
.detail-paper-screen .media-score { font-weight: 600; }
.detail-paper-screen .media-score-rt { color: #f4f1ea; }
.detail-paper-screen .detail-tools { margin-bottom: calc(96px + env(safe-area-inset-bottom)); }

.episode-paper-screen .episode-detail-content { gap: 8px; }
.episode-paper-screen .parent-show,
.episode-paper-screen .episode-code,
.episode-paper-screen .episode-meta { margin: 0; color: #ffffffb3; font-size: 12px; line-height: 16px; }
.episode-paper-screen .parent-show { padding: 0; border: 0; background: transparent; color: #fff; font-weight: 600; }
.episode-paper-screen .episode-detail-content h1 { margin: 0; color: #fff; font-size: 24px; font-weight: 700; line-height: 30px; }
.episode-paper-screen .episode-detail-content .hero-actions { margin-top: 12px; }
.episode-paper-screen .episode-information { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.episode-paper-screen .episode-information div { padding: 10px; border: 1px solid #ffffff0f; border-radius: 8px; background: #ffffff0a; }
.episode-paper-screen .episode-information span,
.episode-paper-screen .episode-information strong { display: block; font-size: 12px; line-height: 16px; }
.episode-paper-screen .episode-information span { color: #ffffff66; }
.episode-paper-screen .episode-information strong { margin-top: 4px; color: #ffffffcc; font-weight: 500; }

.library-page-header { align-items: center; }
.library-header-actions { display: flex; align-items: center; gap: 4px; }
.library-header-actions .icon-button { width: 32px; min-width: 32px; height: 32px; min-height: 32px; padding: 4px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.library-header-actions .icon-button .hugeicon { width: 20px; height: 20px; }
.page-header > .icon-button[data-action="open-search"],
.explore-header > .icon-button[data-action="open-search"] { border: 0; border-radius: 0; background: transparent; box-shadow: none; }

/* Pull-down search is a full-width sheet rather than another navigation destination. */
.quick-search { z-index: 100; align-items: flex-start; padding: 0; background: rgba(8, 9, 11, .78); transform: translateY(-12px); transition: opacity 180ms ease, transform 220ms cubic-bezier(.22, 1, .36, 1); }
.quick-search.open { transform: translateY(0); }
.search-sheet { width: min(100%, 680px); max-height: min(92dvh, 760px); margin: 0 auto; overflow: auto; border: 0; border-radius: 0 0 16px 16px; background: #08090b; padding: max(20px, env(safe-area-inset-top)) 12px 20px; box-shadow: 0 22px 50px #00000073; }
.quick-search-title { display: flex; min-height: 32px; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.quick-search-title h1 { margin: 0; color: #fff; font: 700 16px/24px Inter, system-ui, sans-serif; }
.quick-search-title .icon-button { width: 32px; min-width: 32px; height: 32px; min-height: 32px; border: 0; background: transparent; padding: 4px; }
.quick-search-field { width: 100%; margin-bottom: 10px; }
.quick-search .search-filters { border: 0; padding: 0; margin-bottom: 16px; }
.quick-search .quick-results { min-height: 0; }

@media (max-width: 680px) {
  .floating-dock { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .detail-paper-screen .media-detail-page { height: min(525.2px, 134.67vw); }
  .detail-paper-screen .detail-paper-hero-copy { width: 100%; }
  .detail-paper-screen .title-treatment.detail { width: min(333px, 86vw); max-width: 86vw; }
}

@media (min-width: 681px) {
  .detail-paper-screen .media-detail-page { height: min(640px, 66vw); }
  .detail-paper-screen .detail-paper-hero-copy { margin-top: -208px; }
  .quick-search { padding-left: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .detail-paper-screen .detail-cover,
  .detail-paper-screen .detail-trailer,
  .quick-search { transition-duration: .01ms; }
}

/* Paper 8BA / 95O / 99R: the final Cue component contract. */
:where(.page-header, .cue-page-header) {
  min-height: 34px;
  margin: 0 0 16px;
  padding: 0;
  align-items: center;
}

:where(.page-header, .cue-page-header) h1,
.page-header.compact-header h1 {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0;
}

.media-card {
  gap: 0;
  min-width: 0;
}

.media-card .media-art {
  aspect-ratio: 2 / 3;
  border: 1px solid #22252b;
  border-radius: 4px;
  background: var(--media-art) 50% / cover no-repeat, #ffffff0d;
  box-shadow: 0 20px 25px -5px #0006, 0 8px 10px -6px #0006;
}

.media-card-meta { display: none !important; }

.floating-dock {
  width: min(316px, calc(100vw - 24px));
  height: 52px;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0;
  border: 1px solid #ffffff1a;
  border-radius: 999px;
  background: #ffffff1a;
  padding: 0;
  box-shadow: 0 10px 15px -3px #0000000d, 0 4px 6px -4px #0000000d;
  backdrop-filter: blur(20px) saturate(150%);
}

.floating-dock button {
  height: 50px !important;
  min-height: 50px !important;
  border: 0;
  border-radius: 999px !important;
  background: transparent;
  padding: 4px !important;
  color: #a5a7ad;
}

.floating-dock button.active {
  background: #f8f8f81a;
  color: #fff;
}

.floating-dock button span { height: 20px; }
.floating-dock button .hugeicon { width: 20px; height: 20px; }
.floating-dock button strong { font-size: 9px; font-weight: 500; line-height: 12px; }

.detail-paper-screen .detail-tools { display: none !important; }
.detail-paper-screen .detail-synopsis,
.detail-paper-screen .detail-synopsis p {
  font-size: 14px !important;
  line-height: 22.75px !important;
  letter-spacing: 0;
}

.detail-paper-screen .detail-cover,
.detail-paper-screen .detail-trailer {
  border: 0;
  filter: none;
}

.detail-paper-screen .detail-cover {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-paper-screen .detail-visual { overflow: hidden; }
.detail-paper-screen .detail-trailer {
  pointer-events: none;
}

.detail-paper-screen .detail-hero-wash {
  background: linear-gradient(0deg, #08090b 0%, #08090b99 28%, #08090b00 68%);
}

.home-mode-switch {
  display: flex;
  align-items: center;
  gap: 4px;
}

.home-screen .home-mode-switch button,
.home-screen .home-type-switch button {
  display: inline-flex;
  height: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid #23252b;
  border-radius: 999px;
  background: #131817;
  padding: 4px 14px;
  color: #a5a7ad;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.home-screen .home-mode-switch button.active,
.home-screen .home-type-switch button.active {
  background: #f8f8f8;
  color: #08090b;
}

.home-profile {
  display: grid !important;
  width: 34px;
  min-width: 34px;
  height: 32px;
  min-height: 32px !important;
  overflow: hidden;
  place-items: center;
  border-radius: 999px !important;
}

.home-profile img { width: 100%; height: 100%; object-fit: cover; }
.home-chrome-actions { display: flex; align-items: center; gap: 4px; }
.home-type-row { display: flex; min-height: 34px; align-items: center; justify-content: space-between; }

.home-view-rail {
  height: 40px;
  margin-right: -12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  padding-right: 12px;
  scrollbar-width: none;
}

.home-view-rail::-webkit-scrollbar,
.home-date-rail::-webkit-scrollbar { display: none; }

.home-screen .home-view-chip {
  height: 40px;
  min-height: 40px;
  flex-direction: row;
  align-items: center;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  background: #131817;
  padding: 4px 10px;
  color: #a5a7ad;
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
}

.home-view-chip .hugeicon { display: none; }
.home-screen .home-view-chip.active {
  border-color: var(--color-panel-soft, #1a1a1a);
  background: linear-gradient(#dddddd33), var(--chip-art) 50% / cover no-repeat, #f3f3ef;
  color: #fff;
  text-shadow: 0 2px 3px #000000ed;
}

.home-week-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 175px));
  min-height: 0;
  gap: 16px;
  padding: 4px 0 calc(76px + env(safe-area-inset-bottom));
}

.home-date-rail {
  margin-right: -12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-right: 12px;
  scrollbar-width: none;
}

.home-poster-card { width: 100%; }
.home-poster-card .poster { width: 100%; }
.home-poster-meta,
.home-poster-card > p,
.home-browse-rail { display: none !important; }
.home-week-empty { grid-column: 1 / -1; margin: 40px 0; color: #a5a7ad; font-size: 13px; text-align: center; }

.home-screen .home-close {
  display: grid;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  place-items: center;
  border: 1px solid #23252b;
  border-radius: 999px;
  background: #131817;
}

.home-close .hugeicon { width: 18px; height: 18px; }

.home-feed-screen { height: 100dvh; min-height: 100dvh; }
.home-feed-screen .home-chrome { flex: 0 0 auto; }
.home-feed-screen .cue-feed-page {
  display: grid;
  flex: 1;
  min-height: 0;
  grid-template-rows: 68px minmax(0, 1fr);
  padding-top: 0;
}
.home-feed-screen .feed-media-rail { margin-top: 0; }

.feed-media-rail {
  height: 68px;
  gap: 0;
  align-items: center;
  padding: 17px 0 22px;
}

.feed-media-mark {
  width: 123px;
  min-width: 123px;
  height: 29px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  padding: 0 6px;
}

.feed-media-mark.active {
  border: 1px solid #1b201d;
  background: #131817;
}

.feed-media-mark img {
  width: 100%;
  height: 29px;
  object-fit: contain;
}

.feed-media-mark .feed-poster-mark {
  width: 48px;
  border-radius: 4px;
  object-fit: cover;
}

.feed-stack { height: min(629px, calc(100dvh - 174px - env(safe-area-inset-bottom))); }
.feed-card {
  height: 100%;
  min-height: 100%;
  border: 0;
  border-radius: 4px;
  background: #08090b;
}

.feed-card-art,
.feed-card-video,
.feed-carousel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 4px;
  object-fit: cover;
}

.feed-card-video { pointer-events: none; }
.feed-carousel img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; object-fit: cover; }
.feed-carousel img.active { opacity: 1; }
.feed-carousel-count { position: absolute; top: 12px; right: 12px; border-radius: 999px; background: #0009; padding: 4px 8px; color: #fff; font-size: 10px; }
.feed-card-wash { background: linear-gradient(0deg, #08090bf2 0%, #08090b73 34%, transparent 64%); }

.feed-actions { right: 10px; bottom: 86px; gap: 14px; }
.feed-actions button,
.feed-actions a {
  display: flex;
  width: 40px;
  height: auto;
  min-height: 40px;
  flex-direction: column;
  gap: 2px;
  border: 0;
  border-radius: 999px;
  background: #111317b3;
  padding: 4px;
  color: #fff;
  backdrop-filter: blur(12px);
}
.feed-actions .hugeicon { width: 20px; height: 20px; }
.feed-actions small { min-height: 10px; color: #fff; font-size: 9px; line-height: 10px; }
.feed-actions button.active { color: #ff385c; }
.feed-copy { right: 62px; bottom: 18px; left: 14px; gap: 6px; }
.feed-copy p { margin: 0; color: #fff; font-size: 12px; line-height: 17px; -webkit-line-clamp: 3; }
.feed-title-logo { width: min(160px, 58vw); max-height: 44px; }
.feed-source { color: #fff; font-size: 11px; line-height: 14px; }
.feed-open-title { border: 0; background: transparent; padding: 0; color: #fff; font-size: 11px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 680px) {
  .home-screen { padding: max(20px, env(safe-area-inset-top)) 12px calc(72px + env(safe-area-inset-bottom)); }
  .home-chrome-row { padding-top: 0; }
  .home-week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .floating-dock { right: auto; left: 50%; bottom: max(8px, env(safe-area-inset-bottom)); transform: translateX(-50%); }
}

@media (min-width: 1181px) {
  .home-chrome {
    width: min(100%, 1512px);
    padding-right: 32px;
    padding-left: 32px;
  }

  .home-week { padding-right: 12px; padding-left: 12px; }

  .home-week-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 175px));
  }

  .shell[data-view="home"] .floating-dock {
    top: 16px;
    right: auto;
    bottom: auto;
    left: 18px;
  }
}

/* Final Paper contract. Keep this last so archived styles cannot override it. */
.home-screen .home-hero-slider { overflow: hidden; margin-top: 4px; border: 0; border-radius: 0; background: #08090b; box-shadow: none; }
.home-screen .home-hero-art { height: 525.2px; border-radius: 4px 4px 0 0; mask-image: linear-gradient(#000 40%, transparent 98%); }
.home-screen .home-hero-cover { background-position: 50% 0; background-size: cover; }
.home-screen .home-hero-slide .hero-video { top: 50%; left: 50%; width: max(100%, 1084px); max-width: none; height: max(calc(100% + 84px), 56.25vw); transform: translate(-50%, -50%); }
.home-screen .home-hero-wash { border-radius: 4px 4px 0 0; background: linear-gradient(0deg, oklab(11.5% 0 0) 0%, oklab(11.5% 0 0 / 40%) 50%, transparent 100%); }
.title-treatment:not(.text-fallback) > span { display: none; }
.home-hero-copy .title-treatment.text-fallback { height: auto; max-height: none; }
.home-hero-copy .title-wordmark {
  max-width: 12ch;
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", system-ui, sans-serif;
  font-size: 30px;
  font-stretch: condensed;
  font-weight: 500;
  line-height: 110%;
  text-transform: uppercase;
}
.detail-paper-screen .title-treatment.detail .title-logo[src$="the-last-of-us-logo.svg"] { filter: invert(1) drop-shadow(0 8px 18px #0008); }
.title-treatment.text-fallback { display: grid; place-items: center; }
.title-treatment.text-fallback span { max-width: 12ch; color: #fff; font: 700 30px/34px Inter, system-ui, sans-serif; text-align: center; text-wrap: balance; }
.home-week { gap: 0; padding-top: 16px; }
.home-week-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 175px)); gap: 16px; min-height: 0; padding: 0 0 40px; }
.collection-filter, .catalog-toolbar, .explore-tabs { margin: 0 0 20px; }
.feed-media-rail { gap: 8px; }
.feed-media-mark { width: 123px; min-width: 123px; padding: 0 8px; }
.feed-media-mark span { font-size: 12px; font-weight: 650; line-height: 16px; }
.feed-actions button, .feed-actions a { display: grid; width: 40px; min-width: 40px; height: 40px; min-height: 40px; aspect-ratio: 1; place-items: center; border-radius: 50%; padding: 0; line-height: 0; }
.feed-actions button:disabled { opacity: .42; }
.feed-actions .hugeicon { display: block; width: 20px; height: 20px; transform: translateY(.25px); }
.feed-actions small:empty { display: none; }
.feed-connection-page { display: grid; min-height: min(629px, calc(100dvh - 106px)); place-items: center; }
.home-feed-screen .cue-feed-page.feed-connection-page { grid-template-rows: minmax(0, 1fr); place-items: center; }
.feed-connection-state { display: flex; max-width: 280px; flex-direction: column; align-items: center; gap: 12px; padding: 24px; text-align: center; }
.feed-connection-state h2, .feed-connection-state p { margin: 0; }
.feed-connection-state h2 { color: #fff; font-size: 16px; line-height: 24px; }
.feed-connection-state p { color: #a5a7ad; font-size: 12px; line-height: 18px; }
.feed-connection-state .button-primary { min-width: 88px; height: 34px; border: 0; border-radius: 6px; background: #f3f3ef; color: #08090b; padding: 4px 18px; font-size: 12px; font-weight: 650; }
.floating-dock { height: 52px; border-color: #ffffff24; background: rgba(18, 20, 24, .88); padding: 2px; box-shadow: 0 8px 24px #0008, inset 0 0 0 1px #0003; backdrop-filter: blur(24px) saturate(150%); }
.floating-dock button { height: 46px !important; min-height: 46px !important; padding: 2px !important; }
.floating-dock button.active { background: #ffffff1f; box-shadow: inset 0 0 0 1px #ffffff0d; }
.floating-dock button .hugeicon { stroke-width: 2.15; }
.floating-dock button strong { font-weight: 600; }

@media (max-width: 680px) {
  .shell::after { content: none; display: none; }
  .floating-dock { z-index: 70; }
  .home-week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
}

@media (max-width: 680px) and (max-height: 850px) {
  .home-hero-copy { margin-top: -208px; }
}

/* Paper Sep 6 shell: shared Cue header, launch, and series episode rail. */
.home-chrome {
  gap: 13px;
}

.home-chrome-row {
  min-height: 51px;
  padding: 0;
}

.cue-home-wordmark {
  width: 67px;
  min-width: 67px;
  color: #9ce485 !important;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", system-ui, sans-serif;
  font-size: 31px;
  font-stretch: condensed;
  font-weight: 500;
  line-height: 34px;
  letter-spacing: 0;
  text-align: left;
}

.home-mode-switch {
  margin-left: auto;
}

.home-chrome-actions {
  margin-left: 12px;
}

.detail-paper-screen .episode-list {
  align-items: flex-start;
}

.detail-paper-screen .episode-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: static;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.detail-paper-screen .episode-card .episode-image {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--media-art) 50% / cover no-repeat, #0003;
}

.detail-paper-screen .episode-card-copy {
  position: static;
  inset: auto;
  z-index: auto;
  display: block;
  width: 100%;
  padding-inline: 4px;
}

.detail-paper-screen .episode-card-copy h3,
.detail-paper-screen .episode-card-copy p {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
}

.detail-paper-screen .episode-card-copy h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  -webkit-line-clamp: 1;
}

.detail-paper-screen .episode-card-copy p {
  min-height: 39px;
  margin: 0;
  color: #ffffff99;
  font-size: 12px;
  line-height: 19.5px;
  -webkit-line-clamp: 2;
}

.detail-paper-screen .episodes-heading {
  min-height: 34px;
  justify-content: flex-start;
  padding: 0;
}

.detail-paper-screen .season-toolbar {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin: 0;
}

.detail-paper-screen .season-watch-button {
  display: inline-flex;
  width: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff1a;
  border-radius: 4px;
  background: #ffffff1a;
  padding: 0;
  color: #fff;
}

.detail-paper-screen .season-watch-button .hugeicon {
  width: 16px;
  height: 16px;
}

.detail-paper-screen .season-watch-button.selected {
  color: #fff;
}

.detail-paper-screen .episode-image-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0003 0%, transparent 48%, #0005 100%);
  pointer-events: none;
}

.detail-paper-screen .episode-number,
.detail-paper-screen .episode-runtime {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border: 1px solid #ffffff26;
  border-radius: 999px;
  background: #00000073;
  padding: 4px 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 16.5px;
  backdrop-filter: blur(12px);
  opacity: 1;
  transform: none;
}

.detail-paper-screen .episode-number {
  top: 8px;
  left: 8px;
  color: #fff !important;
}

.detail-paper-screen .episode-runtime {
  right: 8px;
  bottom: 8px;
  font-weight: 500;
}

.detail-paper-screen .episode-card .watch-toggle {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  display: grid;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  place-items: center;
  border: 1px solid #ffffff26;
  border-radius: 50%;
  background: #00000073;
  color: #fff;
  padding: 0;
  backdrop-filter: blur(12px);
}

.detail-paper-screen .episode-card .watch-toggle.watched {
  border-color: #fff;
  background: #fff;
  color: #08090b;
}

.detail-paper-screen .episode-card .watch-toggle .hugeicon {
  width: 16px;
  height: 16px;
}

.detail-paper-screen .episode-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: #ffffff33;
}

.detail-paper-screen .episode-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
}

.episode-paper-screen .episode-detail-content {
  gap: 10px;
}

.episode-paper-screen .episode-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.episode-paper-screen .episode-code {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  border: 1px solid #ffffff26;
  border-radius: 999px;
  background: #00000073;
  padding: 4px 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 16.5px;
  backdrop-filter: blur(12px);
}

.episode-paper-screen .episode-detail-content h1 {
  font-size: 16px;
  line-height: 24px;
}

.cue-splash {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: center;
  background: #131817;
  animation: cue-splash-out 240ms ease 660ms both;
}

.cue-splash span,
.cue-launch-wordmark {
  color: #9ce485;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", system-ui, sans-serif;
  font-size: 93px;
  font-stretch: condensed;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
}

@keyframes cue-splash-out {
  to { opacity: 0; visibility: hidden; }
}

.shell[data-view="launch"] main {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  overflow: hidden;
  padding: 0;
}

.shell[data-view="launch"] .sidebar,
.shell[data-view="launch"] .floating-dock {
  display: none;
}

.shell[data-view="onboarding"] .sidebar,
.shell[data-view="onboarding"] .floating-dock {
  display: none;
}

.shell[data-view="onboarding"] main {
  width: 100%;
  max-width: 700px;
  min-height: 100dvh;
  padding: 12px 16px 118px;
}

.shell[data-view="onboarding"] .media-card-meta {
  display: grid !important;
  min-width: 0;
  gap: 2px;
  margin-top: 8px;
  padding: 0 2px 0;
}

.shell[data-view="onboarding"] .media-card-meta h3,
.shell[data-view="onboarding"] .media-card-meta p {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell[data-view="onboarding"] .media-card-meta h3 {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.shell[data-view="onboarding"] .media-card-meta p {
  color: #ffffff70;
  font-size: 11px;
  line-height: 14px;
}

.onboarding-row {
  margin: 0 0 28px;
}

.onboarding-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 10px;
}

.onboarding-card {
  cursor: pointer;
}

.onboarding-card .media-art {
  border-radius: 12px;
}

.onboarding-card.selected .media-art {
  box-shadow: 0 0 0 2px #f3f3ef;
}

.onboarding-check {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: none;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #f3f3ef;
  color: #08090b;
}

.onboarding-card.selected .onboarding-check {
  display: grid;
}

.onboarding-check .hugeicon {
  width: 12px;
  height: 12px;
}

.onboarding-continue-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: grid;
  justify-items: center;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, #08090be6 28%);
  pointer-events: none;
}

.onboarding-continue {
  pointer-events: auto;
  width: min(100%, 420px);
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  background: #f3f3ef;
  box-shadow: 0 8px 28px #00000066;
  color: #08090b;
  font-size: 15px;
  font-weight: 650;
  transition-property: transform, opacity, box-shadow;
  transition-duration: 160ms;
  transition-timing-function: var(--ease-out);
}

.onboarding-continue:disabled {
  opacity: 0.55;
}

.shell[data-view="onboarding"] ~ .cue-dock-wash {
  display: none;
}

.cue-launch {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
  background: #08090b;
}

/* Paper Sep 7 contract: shared geometry and final component measurements. */
:where(.page-header.compact-header, .page-header.explore-header, .library-page-header) {
  width: 100%;
  height: 51px;
  min-height: 51px;
  align-items: center;
  margin: 0 0 13px;
  padding: 0;
}

:where(.page-header.compact-header, .page-header.explore-header, .library-page-header) h1 {
  margin: 0;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

:where(.page-header.compact-header, .page-header.explore-header, .library-page-header) .icon-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 7px;
}

:where(.page-header.compact-header, .page-header.explore-header, .library-page-header) .hugeicon {
  width: 20px;
  height: 20px;
}

.home-chrome-row {
  position: relative;
}

.home-mode-switch {
  position: absolute;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
}

.home-chrome-actions {
  margin-left: auto;
}

.home-view-rail {
  display: grid;
  width: 100%;
  height: 40px;
  grid-template-columns: .9fr 1fr 1.2fr 1fr;
  gap: 8px;
  margin: 0;
  overflow: visible;
  padding: 0;
}

.home-screen .home-view-chip {
  position: relative;
  width: auto;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  overflow: hidden;
  justify-content: center;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  background: #131817;
  padding: 4px 6px;
  color: #f3f3ef;
  isolation: isolate;
  text-shadow: 0 1px 3px #000000ed;
}

.home-screen .home-view-chip::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(#08090bd9, #08090bea), var(--chip-art) 50% / cover no-repeat;
  content: "";
  mix-blend-mode: normal;
}

.home-screen .home-view-chip.active {
  border: 0;
  background: #131817;
  color: #fff;
  box-shadow: none;
}

.home-screen .home-view-chip.active::before {
  background: linear-gradient(#08090bcc, #08090be8), var(--chip-art) 50% / cover no-repeat;
  mix-blend-mode: normal;
  opacity: 1;
}

.home-screen .home-view-chip span {
  position: relative;
  z-index: 1;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-screen .home-hero-slider {
  margin-top: 4px;
}

.home-screen .home-hero-art {
  height: 525.2px;
  border-radius: 4px 4px 0 0;
  mask-image: linear-gradient(#000 0%, #000 52%, #000c 72%, #0000 98%);
}

.home-screen .home-hero-wash {
  border-radius: 4px 4px 0 0;
  background: linear-gradient(0deg, #08090b 0%, #08090be8 22%, #08090b99 46%, #08090b26 70%, transparent 100%);
}

.home-hero-copy {
  margin-top: -184px;
}

.home-hero-actions {
  width: min(100%, 328px);
  justify-content: center;
}

.home-glass-actions {
  width: 104px;
  min-width: 104px;
}

.home-glass-actions .home-square-action {
  width: 51px;
  min-width: 51px;
  flex: 1 1 51px;
  padding: 0;
}

.home-glass-actions .home-square-action img,
.home-glass-actions .provider-brand-mark {
  width: 20px;
  height: 20px;
  object-fit: contain;
  object-position: center;
}

.catalog-toolbar,
.collection-filter,
.explore-tabs {
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
}

.catalog-toolbar {
  min-height: 34px;
  align-items: flex-start;
}

.filter-control,
.paper-pills {
  gap: 8px;
}

.filter-control button,
.paper-pills button {
  min-height: 34px;
  padding: 4px 14px;
}

.detail-paper-screen .episodes-panel {
  margin-bottom: 40px;
}

.detail-paper-screen .episodes-heading {
  width: 100%;
  min-height: 34px;
  margin: 0 0 20px;
}

.detail-paper-screen .season-toolbar {
  gap: 8px;
}

.detail-paper-screen .media-detail-page ~ .episodes-panel .season-toolbar {
  width: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  border: 0;
  padding: 0;
}

.detail-paper-screen .season-picker {
  position: relative;
  display: inline-flex;
  height: 34px;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid #ffffff1a;
  border-radius: 4px;
  background: #ffffff1a;
  padding: 0 16px;
  color: #fff;
  backdrop-filter: blur(12px);
  margin: 0;
}

.detail-paper-screen .season-picker strong {
  font-size: 16px;
  font-weight: 700;
  line-height: 21px;
  white-space: nowrap;
}

.detail-paper-screen .season-picker .hugeicon {
  width: 16px;
  height: 16px;
}

.detail-paper-screen .season-picker select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.detail-paper-screen .episode-list {
  gap: 24px;
  margin: 0 -24px;
  padding: 0 32px 48px 24px;
}

.detail-paper-screen .episode-number {
  inset: 8px auto auto 8px;
  width: auto;
  min-width: 0;
  min-height: 25px;
}

.detail-paper-screen .episode-runtime {
  inset: auto 8px 8px auto;
  width: auto;
  min-width: 0;
  min-height: 25px;
}

.detail-paper-screen .episode-progress {
  top: auto;
}

.feed-media-rail {
  gap: 8px;
}

.feed-media-mark {
  width: 123px;
  min-width: 123px;
}

.feed-media-mark + .feed-media-mark {
  margin-left: 0;
}

@media (max-width: 680px) and (max-height: 850px) {
  .home-hero-copy {
    margin-top: -198px;
  }
}

.cue-launch-art {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(454px, 116.4vw);
  height: 525.2px;
  transform: translateX(-50%);
  background: var(--launch-art) 50% 20% / cover no-repeat;
  mask-image: linear-gradient(#000 40%, transparent 98%);
}

.cue-launch-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #08090b 0%, #08090b66 50%, transparent 100%);
  content: "";
}

.cue-launch-wordmark {
  position: absolute;
  top: min(61.1dvh, 520px);
  left: 50%;
  transform: translateX(-50%);
}

.cue-launch-actions {
  position: absolute;
  top: min(77.9dvh, 663px);
  left: 50%;
  display: flex;
  width: min(320px, calc(100% - 32px));
  transform: translateX(-50%);
  flex-direction: column;
  gap: 12px;
}

.cue-auth-button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 0 0 1px #ffffff24, 0 8px 24px #0000003d;
  padding: 10px 16px 10px 14px;
  color: #f8f8f8;
  transition-property: transform, box-shadow, background-color, color;
  transition-duration: 160ms;
  transition-timing-function: var(--ease-out);
}

.cue-auth-button.primary {
  background: #f8f8f8;
  box-shadow: 0 8px 24px #00000059;
  color: #08090b;
}

.cue-auth-button strong {
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
}

.identity-mark {
  display: grid;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  place-items: center;
  color: currentColor;
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
}

.identity-mark.apple {
  font-size: 10px;
}

.identity-mark .hugeicon {
  display: block;
  width: 14px;
  height: 14px;
  stroke-width: 1.8;
}

.cue-launch-skip {
  position: relative;
  min-height: 44px;
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: #ffffff80;
  font-size: 13px;
  font-weight: 600;
}

.cue-launch-skip::before {
  position: absolute;
  inset: 0;
  content: "";
}

@media (min-width: 681px) {
  .cue-launch {
    width: min(390px, 100%);
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cue-splash { animation: none; }
}

/* The desktop dock uses the same Paper icon/title anatomy as mobile. */
@media (min-width: 681px) {
  .floating-dock {
    top: 16px;
    right: auto;
    bottom: auto;
    left: 18px;
    display: grid;
    width: 316px;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    transform: none;
  }

  .floating-dock button {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
  }

  .floating-dock button span {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
  }

  .floating-dock button strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-size: 9px;
    font-weight: 600;
    line-height: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Keep review-driven refinements last in the cascade. */
.detail-paper-screen .detail-paper-content,
.detail-paper-screen .episodes-panel,
.detail-paper-screen .cast-section,
.detail-paper-screen .detail-tools { margin-top: 18px; }
.detail-paper-screen .season-picker strong { font-size: 15px; line-height: 22.5px; }
.detail-paper-screen .season-picker select { z-index: 2; display: block; appearance: auto; pointer-events: auto; }
.detail-paper-screen .season-watch-button { display: grid; width: 48px; min-width: 48px; height: 34px; min-height: 34px; place-items: center; border: 1px solid #37383b; border-radius: 6px; background: #ffffff1a; padding: 0 12px; color: var(--color-text-muted); }
.detail-paper-screen .season-watch-button .hugeicon { width: 18px; height: 18px; stroke-width: 2; }
.detail-paper-screen .media-detail-page ~ .episodes-panel .episode-list { margin-right: -24px; margin-left: 0; padding: 0 32px 48px 0; mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 60px), transparent 100%); -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 60px), transparent 100%); }
.detail-paper-screen .media-detail-page ~ .episodes-panel .episode-list.is-scrolled { mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 60px), transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 60px), transparent 100%); }
.home-screen .home-hero-art { mask-image: linear-gradient(#000 40%, transparent 98%); -webkit-mask-image: linear-gradient(#000 40%, transparent 98%); }
.home-screen .home-hero-wash { background: linear-gradient(0deg, #08090b 0%, rgba(8, 9, 11, .4) 50%, transparent 100%); }
.home-hero-copy { margin-top: -176px; }
.hero-video-embed { border: 0; pointer-events: none; }
.home-poster-check { border: 1px solid #ffffff26; background: #00000073; color: #fff; cursor: pointer; }
.home-poster-check.is-saved { border-color: #fff; background: #fff; color: #08090b; }
.feed-media-rail { gap: 4px; }
.feed-media-mark { padding-inline: 8px; }
.feed-media-mark img { width: calc(100% - 16px); height: 24px; max-height: 24px; }
.feed-card-wash { background: linear-gradient(0deg, #08090b 0%, #08090be8 24%, #08090b99 48%, #08090b26 72%, transparent 100%); }
.floating-dock button .hugeicon { stroke-width: 2.5; }

@media (max-width: 680px) and (max-height: 850px) {
  .home-hero-copy { margin-top: -176px; }
}

/* Final review corrections: library-only feed, stable spacing, and faster first paint. */
.home-screen:not(.home-feed-screen) { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.home-screen .home-hero-art { height: 549.2px; }
.home-hero-copy { gap: 2px; }
.home-rating-row { margin-top: 12px; }
.home-hero-actions { margin-top: 13px; }
.home-screen .home-view-rail { grid-template-columns: repeat(var(--home-view-count), minmax(0, 1fr)); }
.home-screen .home-view-chip { background: #101512; }
.home-screen .home-view-chip::before { background: linear-gradient(#08090bd9, #08090b9c), var(--chip-art) 50% / cover no-repeat; }
.home-screen .home-view-chip.active::before { background: linear-gradient(#08090bb8, #08090be6), var(--chip-art) 50% / cover no-repeat; }
.home-feed-screen { padding-bottom: calc(72px + 16px + env(safe-area-inset-bottom)); }
.home-feed-screen .feed-stack { height: 100%; min-height: 0; margin-bottom: 16px; }
.home-feed-screen .feed-copy { bottom: 36px; }
.home-feed-screen .feed-actions { bottom: 150px; }
.feed-title-logo { width: min(160px, 58vw); max-height: 44px; }
.feed-media-mark.active { border: 0; background: transparent; box-shadow: none; }

/* Native source controls and attribution for the consolidated social feed. */
.home-feed-screen .cue-feed-page { grid-template-rows: 44px 52px minmax(0, 1fr); }
.feed-source-filter {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  align-items: center;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.feed-source-filter::-webkit-scrollbar { display: none; }
.feed-source-chip {
  display: inline-flex;
  min-width: 0;
  height: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  overflow: hidden;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  background: #101512;
  padding: 4px 6px;
  color: #a5a7ad;
  font-size: 10px;
  font-weight: 650;
  line-height: 14px;
  white-space: nowrap;
}
.feed-source-chip.active { border-color: #f3f3ef; background: #f3f3ef; color: #08090b; }
.feed-source-chip .feed-source-glyph { width: 18px; min-width: 18px; height: 18px; }
.feed-source-glyph {
  display: inline-grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1;
}
.feed-card-context { display: flex; min-height: 20px; align-items: center; gap: 6px; overflow: hidden; color: #fff; font-size: 10px; line-height: 14px; }
.feed-card-context time { color: #ffffff99; }
.feed-source-badge { display: inline-flex; max-width: 100%; align-items: center; gap: 5px; overflow: hidden; border: 1px solid #ffffff2b; border-radius: 999px; background: #08090b99; padding: 3px 7px 3px 4px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; backdrop-filter: blur(12px); }
.feed-source-badge .feed-source-glyph { width: 16px; min-width: 16px; height: 16px; }
.feed-author { overflow: hidden; color: #ffffffb8; text-overflow: ellipsis; white-space: nowrap; }
.feed-source-badge.source-x { color: #fff; }
.feed-source-badge.source-tiktok { color: #b9f8ee; }
.feed-source-badge.source-reddit { color: #ffb08e; }
.feed-source-badge.source-instagram { color: #f5b4d7; }
.feed-source-badge.source-cue { color: #b9ed8e; }
.feed-copy .feed-title-logo { display: block; width: min(160px, 58vw); max-height: 44px; object-position: left center; }
.feed-copy h2 { margin: 0; color: #fff; font-size: 19px; line-height: 24px; }
.feed-card iframe.feed-card-video { background: #08090b; }
.feed-connection-page { grid-template-rows: 44px minmax(0, 1fr); }
.feed-connection-page .feed-source-filter { grid-row: 1; }
.feed-connection-page .feed-connection-state { grid-row: 2; }

@media (max-width: 480px) {
  .feed-source-chip { gap: 3px; padding-inline: 3px; font-size: 9px; }
  .feed-source-chip .feed-source-glyph { display: none; }
}

/* Final review corrections: keep hero copy clear of the dock and center provider marks. */
.home-hero-copy { margin-top: -216px; }
.home-screen .home-hero-art { mask-image: linear-gradient(#000 30%, #000 52%, #000c 70%, #0000 96%); -webkit-mask-image: linear-gradient(#000 30%, #000 52%, #000c 70%, #0000 96%); }
.home-screen .home-hero-wash { background: linear-gradient(0deg, #08090b 0%, #08090bf2 22%, #08090b99 48%, #08090b26 72%, transparent 100%); }
.filter-control button.active, .paper-pills button.active { background: #f8f8f8; color: #08090b; }
.detail-paper-screen .detail-source-action { display: grid; place-items: center; padding: 0 8px; }
.detail-paper-screen .detail-source-action img,
.detail-paper-screen .detail-source-action .provider-brand-mark { width: 34px; max-width: 34px; height: 20px; max-height: 20px; object-fit: contain; object-position: center; }
.detail-paper-screen .detail-source-action.provider-hulu .provider-brand-mark { width: 38px; max-width: 38px; }
.title-logo[src*="3zhr6BVCuQcgTjjZeGWQs5OQkQ2"] { filter: drop-shadow(0 8px 18px #0008); }
.title-logo[src*="f3E57tdU78d7qR7yvZebGVGz7l8"] { filter: drop-shadow(0 8px 18px #0008); }

@media (max-width: 680px) and (max-height: 850px) {
  .home-hero-copy { margin-top: -216px; }
}

/* Interaction and detail pass: keep gestures direct and content legible. */
.home-hero-slider { touch-action: pan-y; overscroll-behavior-x: contain; }
.home-hero-track { will-change: transform; transition: transform var(--duration-open) var(--ease-out); }
.home-hero-track.is-dragging { transition: none; cursor: grabbing; }
.home-screen .home-view-chip.active { border: 0; box-shadow: none; color: #fff; }
.detail-paper-screen .media-detail-page { margin-top: calc(-1 * env(safe-area-inset-top)); height: calc(min(525.2px, 134.67vw) + env(safe-area-inset-top)); }
.detail-paper-screen .media-detail-page .detail-visual { top: 0; height: calc(100% + env(safe-area-inset-top)); }
.detail-paper-screen .media-detail-page .detail-cover,
.detail-paper-screen .media-detail-page .detail-trailer { min-height: 100%; }
.detail-paper-screen .episode-context-card { width: 320px; min-width: 320px; padding: 0; overflow: hidden; }
.detail-paper-screen .episode-context-card .episode-image { aspect-ratio: 16 / 9; }
.detail-paper-screen .episode-context-card .episode-card-copy { padding: 10px 12px 12px; }
.detail-paper-screen .episode-context-card .episode-card-copy h3 { margin: 4px 0 3px; }
.detail-paper-screen .episode-context-card .episode-card-copy p { margin: 0; }
.detail-paper-screen .detail-topbar { top: calc(24px + env(safe-area-inset-top)); }
.detail-paper-screen .title-logo { max-width: 100%; filter: drop-shadow(0 3px 8px #000) drop-shadow(0 0 18px #000b); }
.title-awards { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; color: #f5d98a; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; }
.title-awards span { border: 1px solid #f5d98a66; border-radius: 999px; background: #15120b99; padding: 3px 8px; }
.episode-rating-row { display: flex; justify-content: center; gap: 14px; color: #fff; font-size: 13px; font-weight: 600; line-height: 20px; }
.episode-rating-row span { display: inline-flex; align-items: center; gap: 5px; }
.episode-context-section { width: min(100%, 700px); margin: 32px auto 0; padding: 0 24px calc(112px + env(safe-area-inset-bottom)); }
.episode-context-rail, .related-rail { display: flex; gap: 12px; overflow-x: auto; padding: 14px 0 6px; scrollbar-width: none; }
.episode-context-rail::-webkit-scrollbar, .related-rail::-webkit-scrollbar { display: none; }
.episode-context-card { display: grid; width: 260px; min-width: 260px; gap: 5px; border: 1px solid #ffffff12; border-radius: 6px; background: #121619; padding: 12px; color: #fff; text-align: left; }
.episode-context-label { color: #19e77a; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.episode-context-card strong { font-size: 14px; line-height: 19px; }
.episode-context-card small { display: -webkit-box; overflow: hidden; color: #ffffff99; font-size: 12px; line-height: 18px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.related-section { width: min(100%, 700px); margin: 32px auto 0; padding: 0 24px calc(112px + env(safe-area-inset-bottom)); }
.related-rail .media-card { width: 142px; min-width: 142px; }
.related-rail .media-art { aspect-ratio: 2 / 3; }
.detail-visual { cursor: pointer; }
.detail-visual .detail-sound-toggle { cursor: pointer; }
.cue-search-field input, .quick-search-field input { font-size: 16px; }
.provider, .provider-shortcut, .detail-source-action, .home-square-action { cursor: pointer; }
.detail-paper-screen .provider:hover, .detail-paper-screen .provider:focus-visible { border-color: #19e77a66; }
.detail-paper-screen .detail-visual { background: #131817; }

/* Shared Paper controls and information surfaces. */
.home-style-filters { display: grid; grid-template-columns: repeat(3, minmax(82px, 1fr)); gap: 8px; width: min(100%, 330px); }
.home-style-filters button,
.cue-search-page .search-filters button,
.quick-search .search-filters button { position: relative; width: 100%; height: 40px; min-height: 40px; overflow: hidden; border: 1px solid #1a1a1a; border-radius: 4px; background: #131817; padding: 4px 8px; color: #a5a7ad; font: 600 11px/14px Inter, system-ui, sans-serif; }
.home-style-filters button::before,
.cue-search-page .search-filters button::before,
.quick-search .search-filters button::before { position: absolute; inset: 0; z-index: 0; background: linear-gradient(#131817e3), var(--chip-art, none) 50% / cover no-repeat; content: ""; opacity: .9; }
.home-style-filters button.active,
.cue-search-page .search-filters button.active,
.quick-search .search-filters button.active { background: #f8f8f8; color: #08090b; }
.home-style-filters button.active::before,
.cue-search-page .search-filters button.active::before,
.quick-search .search-filters button.active::before { display: none; }
.home-style-filters button,
.cue-search-page .search-filters button,
.quick-search .search-filters button { isolation: isolate; }
.home-style-filters button,
.cue-search-page .search-filters button,
.quick-search .search-filters button { text-align: center; }
.home-style-filters button::after,
.cue-search-page .search-filters button::after,
.quick-search .search-filters button::after { position: relative; z-index: 1; content: attr(data-label); }
.home-style-filters button,
.cue-search-page .search-filters button,
.quick-search .search-filters button { font-size: 0; }
.home-style-filters button,
.cue-search-page .search-filters button,
.quick-search .search-filters button { line-height: 14px; }
.home-style-filters button::after,
.cue-search-page .search-filters button::after,
.quick-search .search-filters button::after { font-size: 11px; }
.cue-search-page .search-filters,
.quick-search .search-filters { display: grid; grid-template-columns: repeat(4, minmax(72px, 1fr)); gap: 8px; }
.search-recent-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(82px, 1fr); gap: 8px; overflow-x: auto; margin-bottom: 16px; }
.search-recent-chip { position: relative; height: 40px; min-height: 40px; overflow: hidden; border: 1px solid #1a1a1a; border-radius: 4px; background: #131817; color: #fff; }
.search-recent-chip::before { position: absolute; inset: 0; background: linear-gradient(#131817b8, #131817e8), var(--chip-art, none) 50% / cover no-repeat; content: ""; }
.search-recent-chip span { position: relative; z-index: 1; display: block; overflow: hidden; padding: 0 5px; font: 600 11px/40px Inter, system-ui, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.cue-search-field input,
.quick-search-field input { font-family: Inter, system-ui, sans-serif; font-size: 16px; }
.detail-paper-screen .detail-synopsis.is-expanded p { display: block; overflow: visible; -webkit-line-clamp: unset; }
.shell:not([data-view="detail"]):not([data-view="episode"]):not([data-view="shows"]):not([data-view="movies"]):not([data-view="collection"]):not([data-view="search"]) .page-header,
.shell:not([data-view="detail"]):not([data-view="episode"]):not([data-view="shows"]):not([data-view="movies"]):not([data-view="collection"]):not([data-view="search"]) .cue-page-header,
.shell:not([data-view="detail"]):not([data-view="episode"]):not([data-view="shows"]):not([data-view="movies"]):not([data-view="collection"]):not([data-view="search"]) .catalog-toolbar { position: sticky; z-index: 20; top: 0; background: #08090bf2; padding-block: 10px; backdrop-filter: blur(18px); }
.shell:not([data-view="detail"]):not([data-view="episode"]):not([data-view="shows"]):not([data-view="movies"]):not([data-view="collection"]):not([data-view="search"]) .catalog-toolbar { top: 44px; padding-top: 6px; }
.shell[data-view="shows"] .media-card-meta h3,
.shell[data-view="movies"] .media-card-meta h3 { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: 15px; font-weight: 400; letter-spacing: 0; line-height: 18px; }
.shell[data-view="shows"] .media-card-meta,
.shell[data-view="movies"] .media-card-meta,
.person-media-grid .media-card-meta,
.related-rail .media-card-meta { display: grid !important; min-width: 0; gap: 3px; margin-top: 8px; padding: 0 2px 4px; }
.shell[data-view="shows"] .media-card-meta h3,
.shell[data-view="movies"] .media-card-meta h3,
.person-media-grid .media-card-meta h3,
.related-rail .media-card-meta h3 { overflow: hidden; margin: 0; color: #fff; font-size: 12px; font-weight: 600; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.shell[data-view="shows"] .media-card-meta p,
.shell[data-view="movies"] .media-card-meta p,
.person-media-grid .media-card-meta p,
.related-rail .media-card-meta p { overflow: hidden; margin: 0; color: #ffffff70; font-size: 10px; line-height: 14px; text-overflow: ellipsis; white-space: nowrap; }
.shell[data-view="shows"] .media-card-meta p,
.shell[data-view="movies"] .media-card-meta p { font-size: 10px; }
.shell[data-view="shows"] .media-card-meta h3,
.shell[data-view="movies"] .media-card-meta h3 { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: 15px; font-weight: 400; letter-spacing: 0; line-height: 18px; }
.episode-art-copy { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; display: flex; min-height: 42px; flex-direction: column; justify-content: center; gap: 1px; background: linear-gradient(180deg, transparent, #08090bf2 35%); padding: 13px 9px 6px; pointer-events: none; }
.episode-art-copy span { color: #ffffffa6; font-size: 10px; font-weight: 600; line-height: 14px; }
.episode-art-copy strong { overflow: hidden; color: #fff; font-size: 13px; line-height: 17px; text-overflow: ellipsis; white-space: nowrap; }
.episode-user-rating { display: flex; width: min(100%, 360px); align-items: center; justify-content: space-between; gap: 12px; margin: 12px auto 0; padding: 10px 12px; border: 1px solid #ffffff12; border-radius: 6px; background: #ffffff0a; }
.episode-user-rating > div:first-child { display: grid; gap: 2px; text-align: left; }
.episode-user-rating strong { color: #fff; font-size: 12px; line-height: 16px; }
.episode-user-rating span { color: #ffffff70; font-size: 10px; line-height: 14px; }
.episode-stars { display: flex; gap: 2px; }
.episode-stars button { display: grid; width: 28px; min-width: 28px; height: 28px; min-height: 28px; place-items: center; border: 0; border-radius: 4px; background: #ffffff0a; color: #ffffff52; padding: 5px; }
.episode-stars button.selected { background: #9ce484; color: #08090b; }
.episode-stars .hugeicon { width: 15px; height: 15px; }
.media-facts-providers { display: grid !important; gap: 7px; align-items: start !important; }
.media-facts-providers > div { display: flex; flex-wrap: wrap; gap: 6px; }
.facts-provider { display: grid; width: 32px; height: 28px; min-width: 32px; place-items: center; border: 1px solid #ffffff1a; border-radius: 4px; background: #ffffff0d; padding: 4px; }
.facts-provider img { width: 24px; height: 18px; object-fit: contain; }
.facts-provider .provider-text-mark { font-size: 8px; }
.profile-insights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.profile-insights > div, .stats-card-grid article { display: grid; min-width: 0; gap: 5px; min-height: 64px; align-content: center; border: 1px solid #ffffff12; border-radius: 6px; background: #ffffff08; padding: 10px; }
.profile-insights span, .stats-card-grid span { color: #ffffff70; font-size: 10px; line-height: 14px; }
.profile-insights strong, .stats-card-grid strong { overflow: hidden; color: #fff; font-size: 14px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.profile-stats-preview { margin-top: 22px; }
.profile-stat-preview { display: flex; height: 84px; align-items: end; gap: 10px; border-bottom: 1px solid #ffffff1a; padding: 0 10px; }
.profile-stat-preview > span { display: flex; height: 100%; flex: 1; align-items: end; }
.profile-stat-preview i { display: block; width: 100%; min-height: 5px; border-radius: 3px 3px 0 0; background: #9ce484; }
.stats-page, .person-page, .awards-page { padding-bottom: 110px; }
.page-kicker { color: #ffffff70; font-size: 11px; line-height: 15px; }
.stats-section { margin-top: 26px; }
.stats-section h2 { margin: 0 0 10px; color: #fff; font-size: 16px; line-height: 22px; }
.stats-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stats-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.stats-heading span { color: #ffffff70; font-size: 10px; }
.stats-bars { display: flex; height: 150px; align-items: end; gap: 10px; border-bottom: 1px solid #ffffff1a; padding: 12px 10px 0; }
.stats-bars > span { display: flex; height: 100%; flex: 1; flex-direction: column; align-items: center; justify-content: end; gap: 6px; }
.stats-bars i { display: block; width: 100%; min-height: 6px; border-radius: 3px 3px 0 0; background: #9ce484; }
.stats-bars small { color: #ffffff70; font-size: 9px; }
.genre-stat-list { display: grid; gap: 14px; }
.genre-stat-list > div > span { display: flex; justify-content: space-between; color: #fff; font-size: 11px; line-height: 15px; }
.genre-stat-list b { color: #ffffff70; font-weight: 500; }
.genre-stat-list i { display: block; height: 5px; margin-top: 5px; border-radius: 999px; background: #ffffff12; }
.genre-stat-list em { display: block; height: 100%; border-radius: inherit; background: #9ce484; }
.person-profile-hero { display: grid; justify-items: center; gap: 7px; margin: 24px 0 34px; text-align: center; }
.person-profile-photo { width: 112px; height: 112px; border: 1px solid #ffffff1a; border-radius: 50%; background: var(--media-art) 50% / cover no-repeat, #17364a; }
.person-profile-hero h2, .person-profile-hero p { margin: 0; }
.person-profile-hero h2 { color: #fff; font-size: 22px; line-height: 28px; }
.person-profile-hero p { color: #ffffff80; font-size: 12px; }
.person-media-section { margin-top: 20px; }
.person-media-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.awards-feature { position: relative; display: grid; min-height: 118px; align-content: end; gap: 3px; overflow: hidden; width: 100%; margin-bottom: 18px; border: 1px solid #ffffff1a; border-radius: 6px; background: linear-gradient(180deg, transparent 10%, #08090bed 100%), var(--media-art) center / cover no-repeat, #15171b; padding: 14px; color: #fff; text-align: left; }
.awards-feature .hugeicon { position: absolute; right: 14px; bottom: 16px; width: 18px; height: 18px; }
.awards-feature-kicker { color: #f5d98a; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.awards-feature strong { font-size: 18px; line-height: 22px; }
.awards-feature small { max-width: 30ch; color: #ffffffb3; font-size: 11px; line-height: 15px; }
.awards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 12px; }
.award-title-card { cursor: pointer; }
.award-title-card > div { aspect-ratio: 2 / 3; border: 1px solid #ffffff14; border-radius: 5px; background: var(--media-art) 50% / cover no-repeat, #14161a; }
.award-title-card span { display: block; margin-top: 7px; color: #f5d98a; font-size: 10px; font-weight: 700; }
.award-title-card strong, .award-title-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.award-title-card strong { margin-top: 3px; color: #fff; font-size: 13px; line-height: 18px; }
.award-title-card small { color: #ffffff70; font-size: 10px; line-height: 15px; }

@media (max-width: 420px) {
  .profile-insights strong { font-size: 12px; }
  .episode-user-rating { align-items: flex-start; flex-direction: column; }
  .episode-stars { width: 100%; }
  .episode-stars button { flex: 1; }
}

@media (min-width: 681px) {
  .shell > main { min-width: 0; }
  .home-screen, .cue-page, .detail-paper-screen { width: min(100%, 1180px); margin-inline: auto; }
  .home-screen .home-hero-slider { width: min(100%, 900px); margin-inline: auto; }
  .home-screen .home-hero-art { height: min(720px, 72vh); }
  .home-screen .home-hero-copy { width: min(650px, calc(100% - 48px)); margin-top: -250px; margin-inline: auto; }
  .detail-paper-screen .media-detail-page { height: min(680px, 70vh); }
  .detail-paper-screen .detail-paper-hero-copy { margin-top: -220px; }
}

@media (max-width: 680px) {
  .home-screen { overflow: hidden; }
  .home-screen.home-week-screen { overflow-y: auto; }
}

/* Paper contract corrections: reuse the home chip component on every catalog surface. */
.home-style-filters,
.cue-search-page .search-filters,
.quick-search .search-filters { display: grid; gap: 8px; overflow: visible; }
.home-style-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
.collection-filter.home-style-filters { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cue-search-page .search-filters,
.quick-search .search-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-style-filters button::after,
.cue-search-page .search-filters button::after,
.quick-search .search-filters button::after { display: none; }
.shell[data-view="shows"] .page-header h1,
.shell[data-view="movies"] .page-header h1,
.shell[data-view="collection"] .page-header h1,
.shell[data-view="search"] .cue-page-header h1,
.quick-search-title h1 {
  color: #e9f0e7;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", system-ui, sans-serif;
  font-size: 27px;
  font-weight: 500;
  font-stretch: condensed;
  letter-spacing: 0;
  line-height: 110%;
  text-transform: uppercase;
}
.shell[data-view="shows"] .page-header.compact-header,
.shell[data-view="movies"] .page-header.compact-header,
.shell[data-view="collection"] .page-header.compact-header,
.shell[data-view="search"] .cue-page-header {
  height: auto;
  min-height: 40px;
  overflow: visible;
}

/* Catalog, library, and search chips match home tracker chips. */
.home-style-filters .home-view-chip,
.cue-search-page .search-filters .home-view-chip,
.quick-search .search-filters .home-view-chip {
  position: relative;
  display: grid;
  width: 100%;
  height: 40px;
  min-height: 40px;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: #131817;
  padding: 4px 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  text-shadow: 0 1px 3px #000c;
  box-shadow: none;
}
.home-style-filters .home-view-chip::before,
.cue-search-page .search-filters .home-view-chip::before,
.quick-search .search-filters .home-view-chip::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  display: block;
  background: linear-gradient(#08090bd9, #08090bea), var(--chip-art) 50% / cover no-repeat;
  content: "";
  mix-blend-mode: normal;
  opacity: 1;
}
.home-style-filters .home-view-chip.active,
.cue-search-page .search-filters .home-view-chip.active,
.quick-search .search-filters .home-view-chip.active {
  border: 0;
  background: #131817;
  color: #fff;
  box-shadow: none;
}
.home-style-filters .home-view-chip.active::before,
.cue-search-page .search-filters .home-view-chip.active::before,
.quick-search .search-filters .home-view-chip.active::before {
  display: block;
  background: linear-gradient(#08090bb3, #08090be0), var(--chip-art) 50% / cover no-repeat;
  mix-blend-mode: normal;
  opacity: 1;
}
.home-style-filters .home-view-chip span,
.cue-search-page .search-filters .home-view-chip span,
.quick-search .search-filters .home-view-chip span {
  position: relative;
  z-index: 1;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .home-screen.home-today-screen {
    min-height: 100dvh;
    padding-bottom: 0;
  }
  .home-screen.home-today-screen .home-hero-slider {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }
  .home-screen.home-today-screen .home-hero-track {
    position: absolute;
    inset: 0;
    height: auto;
    min-height: 0;
  }
  .home-screen.home-today-screen .home-hero-slide {
    height: 100%;
    min-height: 100%;
  }
  .home-screen.home-today-screen .home-hero-art {
    position: absolute;
    inset: 0;
    height: auto;
    min-height: 100%;
  }
  .home-screen.home-today-screen .home-hero-copy {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: calc(52px + 16px + max(8px, env(safe-area-inset-bottom)));
    left: 0;
    margin: 0 auto;
    padding: 0 24px 24px;
  }
  .home-screen.home-today-screen .home-rating-row,
  .home-screen.home-today-screen .home-hero-actions {
    margin-top: 10px;
  }
}
.catalog-grid > .empty-state { grid-column: 1 / -1; min-height: 280px; align-items: center; justify-content: center; border: 0; border-radius: 0; background: transparent; padding: 32px 20px; }
.catalog-grid > .empty-state h2 { max-width: 16ch; }
.catalog-grid > .empty-state p { max-width: 24ch; }
.detail-paper-screen .episode-art-copy { display: none; }
.detail-paper-screen .episode-card-copy { display: grid; }
.detail-paper-screen .episode-context-card .episode-card-copy { display: grid; }
.detail-paper-screen .detail-track-icon { display: grid; width: 18px; min-width: 18px; height: 18px; min-height: 18px; place-items: center; border: 1px solid #2a2a2b; border-radius: 50%; background: #202124; color: #fff; }
.detail-paper-screen .detail-track-icon .hugeicon { width: 10px; height: 10px; }
.detail-paper-screen .detail-track-button.is-up-to-date .detail-track-icon { background: #9ce484; color: #08090b; }
.detail-paper-screen .detail-track-button.is-up-to-date .detail-track-icon .hugeicon { width: 10px; height: 10px; }
.detail-paper-screen .detail-track-button.is-tracked { gap: 7px; }
.network-search-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.network-search-card { display: grid; min-height: 72px; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 10px; align-items: center; border: 1px solid #1a1a1a; border-radius: 4px; background: #131817; padding: 10px; color: #fff; text-align: left; }
.network-search-card > span { display: grid; width: 34px; height: 34px; grid-row: 1 / span 2; place-items: center; border-radius: 4px; background: #ffffff12; }
.network-search-card img { width: 26px; height: 22px; object-fit: contain; }
.network-search-card strong { overflow: hidden; font-size: 12px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.network-search-card small { color: #ffffff70; font-size: 10px; line-height: 14px; }
.paper-profile-page { background: #08090b; }
.paper-profile-page .paper-profile-header { position: relative; width: 100%; max-width: none; height: 270px; min-height: 270px; margin: 0; overflow: hidden; background: #08090b; padding: 0; }
.paper-profile-page .paper-profile-header::after { position: absolute; inset: 0; background: linear-gradient(0deg, #08090b 0%, transparent 55%); content: ""; pointer-events: none; }
.paper-profile-page .profile-topline { position: absolute; z-index: 1; top: 24px; right: 12px; min-height: 34px; }
.paper-profile-page .profile-topline .icon-button { display: grid; width: 34px; min-width: 34px; height: 34px; place-items: center; border: 1px solid #23252b; border-radius: 50%; background: #131817; color: #fff; }
.paper-profile-page .profile-topline .hugeicon { width: 20px; height: 20px; }
.paper-profile-page .profile-profile-name { position: absolute; z-index: 1; right: 0; bottom: 28px; left: 0; color: #e3e3e3; font: 500 37px/41px Neuland, system-ui, sans-serif; text-align: center; }
.profile-paper-stats { display: grid; grid-template-columns: repeat(2, 165px); justify-content: center; gap: 8px 11px; margin: 14px 16px 0; }
.profile-paper-stats button { position: relative; display: grid; min-height: 40px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; overflow: hidden; border: 1px solid #2e2e2e; border-radius: 4px; background: #131817; padding: 4px 10px; color: #fff; text-align: left; }
.profile-paper-stats button::before { position: absolute; inset: 0; z-index: 0; background: linear-gradient(#131817e3), var(--profile-art) 50% / cover no-repeat; content: ""; opacity: .75; }
.profile-paper-stats span, .profile-paper-stats strong { position: relative; z-index: 1; }
.profile-paper-stats span { color: #fff; font-size: 11px; line-height: 14px; }
.profile-paper-stats strong { font-size: 16px; line-height: 21px; }
.paper-profile-page .profile-favourites { margin-top: 26px; }
.paper-profile-page .profile-section-heading { margin: 0 0 12px; padding: 0 16px; }
.paper-profile-page .profile-title-rail { margin: 0 -16px; gap: 16px; padding: 16px 64px 40px; mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); }
.paper-profile-page .profile-large-tile { width: 200px; min-width: 200px; }
.paper-profile-page .profile-large-tile > div { border-color: #464646; border-radius: 4px; box-shadow: 0 20px 25px -5px #0006, 0 8px 10px -6px #0006; }
.paper-profile-page .profile-watching { margin-top: 4px; }
.profile-watching-rail { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 24px; scrollbar-width: none; }
.profile-watching-rail::-webkit-scrollbar { display: none; }
.profile-watching-card { width: 164px; min-width: 164px; cursor: pointer; }
.profile-watching-card > div { position: relative; height: 262px; border: 1px solid #ffffff1a; border-radius: 4px; background: var(--media-art) 50% / cover no-repeat, #131817; }
.profile-watching-card > div::after { position: absolute; right: 0; bottom: 0; left: 0; height: 84px; background: linear-gradient(transparent, #08090bf2); content: ""; }
.profile-watching-card > div span { position: absolute; z-index: 1; top: 10px; left: 10px; border: 1px solid #ffffff26; border-radius: 999px; background: #00000073; padding: 4px 8px; color: #fff; font-size: 10px; }
.profile-watching-card > div .hugeicon { position: absolute; z-index: 1; top: 10px; right: 10px; width: 16px; height: 16px; color: #fff; }
.profile-watching-card > strong, .profile-watching-card > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-watching-card > strong { margin-top: 7px; color: #fff; font-size: 12px; line-height: 16px; }
.profile-watching-card > small { color: #ffffff70; font-size: 10px; line-height: 14px; }

/* Edge-to-edge media artwork and cover-fit trailers. */
html, body { background: #08090b; }
.cue-trailer-bleed {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  container-type: size;
}
.home-screen .cue-trailer-bleed {
  mask-image: linear-gradient(#000 58%, transparent 100%);
  -webkit-mask-image: linear-gradient(#000 58%, transparent 100%);
}
.detail-paper-screen .cue-trailer-bleed {
  mask-image: none;
  -webkit-mask-image: none;
}
.cue-trailer-bleed > iframe,
.cue-trailer-bleed > video,
.detail-visual .cue-trailer-bleed .detail-trailer-embed,
.detail-paper-screen .cue-trailer-bleed .detail-trailer {
  position: absolute;
  top: 50%;
  left: 50%;
  inset: auto;
  width: max(100cqw, calc(100cqh * 16 / 9));
  height: max(100cqh, calc(100cqw * 9 / 16));
  min-width: 0;
  min-height: 0;
  aspect-ratio: 16 / 9;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cue-trailer-bleed > video,
.home-screen .home-hero-slide .cue-trailer-bleed video.hero-video {
  left: 50%;
  object-position: center;
  transform: translate(-50%, -50%);
}
.home-screen .home-hero-slide .cue-trailer-bleed .hero-video {
  top: 50%;
  left: 50%;
  width: max(100cqw, calc(100cqh * 16 / 9));
  height: max(100cqh, calc(100cqw * 9 / 16));
  min-width: 0;
  min-height: 0;
  aspect-ratio: 16 / 9;
  object-position: center;
  transform: translate(-50%, -50%);
}
.detail-paper-screen .detail-hero-wash {
  background: linear-gradient(0deg, #08090b 0%, #08090bf2 16%, #08090b99 38%, #08090b00 68%);
}
.shell[data-view="detail"] main,
.shell[data-view="episode"] main {
  width: 100%;
  max-width: none;
  padding: 0 !important;
}
.detail-paper-screen .media-detail-page {
  width: 100%;
  margin: 0;
  height: calc(min(62dvh, 560px) + env(safe-area-inset-top, 0px));
}
.detail-paper-screen .media-detail-page .detail-visual {
  inset: 0;
  top: 0;
  height: 100%;
}
.detail-paper-screen .detail-topbar {
  top: max(12px, env(safe-area-inset-top, 0px));
}
.detail-paper-screen .detail-source-action,
.detail-paper-screen .detail-source-actions > .icon-button {
  display: grid;
  width: 56px;
  min-width: 56px;
  padding: 0 4px;
  place-items: center;
}
.detail-paper-screen .detail-source-action img,
.detail-paper-screen .detail-source-action .provider-brand-mark {
  width: auto;
  max-width: 42px;
  height: 20px;
  max-height: 20px;
  object-fit: contain;
  object-position: center;
  transform: translateY(-0.5px);
}
.detail-paper-screen .detail-source-actions > .icon-button .hugeicon {
  display: block;
  transform: translateY(-0.5px);
}
.shell[data-view="shows"] main,
.shell[data-view="movies"] main,
.shell[data-view="collection"] main,
.shell[data-view="search"] main {
  padding: max(20px, env(safe-area-inset-top, 0px)) 12px calc(72px + env(safe-area-inset-bottom));
}
.shell[data-view="shows"] .page-header,
.shell[data-view="movies"] .page-header,
.shell[data-view="collection"] .page-header,
.shell[data-view="search"] .cue-page-header {
  height: 51px;
  min-height: 51px;
  margin: 0 0 13px;
  padding: 0;
  position: relative;
  top: auto;
  background: transparent;
  backdrop-filter: none;
}
.shell[data-view="shows"] .catalog-toolbar,
.shell[data-view="movies"] .catalog-toolbar,
.shell[data-view="collection"] .home-view-rail,
.shell[data-view="search"] .home-view-rail {
  position: relative;
  top: auto;
  margin: 0 0 20px;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}
.home-feed-screen .cue-feed-page.feed-connection-page {
  grid-template-rows: minmax(0, 1fr);
}
.cue-launch-art {
  top: calc(-1 * env(safe-area-inset-top, 0px));
  height: calc(525.2px + env(safe-area-inset-top, 0px));
}

/* Mobile dock stays pinned to the viewport; desktop matches cinejoy's top pill nav. */
.shell .floating-dock {
  position: fixed;
  z-index: 200;
}

@media (max-width: 680px) {
  .shell .floating-dock {
    top: auto !important;
    right: auto !important;
    left: 50% !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    width: min(316px, calc(100vw - 24px));
    transform: translateX(-50%) !important;
  }
  .shell[data-view="detail"] .floating-dock,
  .shell[data-view="episode"] .floating-dock,
  .shell[data-view="launch"] .floating-dock,
  .shell[data-view="onboarding"] .floating-dock { display: none; }
}

@media (min-width: 681px) {
  html, body, #app, .shell {
    width: 100%;
    min-height: 100dvh;
    background: #08090b;
  }
  .shell {
    display: block;
  }
  .shell main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 24px 64px 48px;
  }
  .shell[data-view="home"] main {
    padding: 20px 64px 40px;
  }
  .shell[data-view="detail"] main,
  .shell[data-view="episode"] main,
  .shell[data-view="launch"] main {
    padding: 0;
  }
  .shell .floating-dock {
    top: 24px !important;
    right: 48px !important;
    left: auto !important;
    bottom: auto !important;
    display: grid;
    width: auto;
    min-width: 316px;
    height: 54px;
    grid-template-columns: repeat(4, minmax(72px, 1fr)) !important;
    transform: none !important;
  }
  .shell .floating-dock button {
    height: 46px !important;
    min-height: 46px !important;
  }
  .home-chrome,
  .page-header,
  .cue-page-header,
  .library-page-header {
    padding-right: 360px;
  }
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .home-week-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .home-screen .home-hero-art {
    height: min(72dvh, 720px);
  }
  .detail-paper-screen .media-detail-page {
    height: min(72dvh, 720px);
  }
}

/* Shared chip rail: idle and active instances used on Home, Shows, Movies, Search, Library. */
.home-view-rail,
.cue-chip-rail {
  display: grid;
  width: 100%;
  height: 40px;
  grid-template-columns: repeat(var(--home-view-count, 3), minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  overflow: visible;
  padding: 0;
}
.home-view-chip,
.cue-chip-rail .home-view-chip {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  background: #131817;
  padding: 4px 6px;
  color: #cccbc7;
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  text-shadow: 0 1px 3px #000000ed;
  box-shadow: none;
}
.home-view-chip::before,
.cue-chip-rail .home-view-chip::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  background: linear-gradient(#131817e3), var(--chip-art) 50% / cover no-repeat;
  mix-blend-mode: luminosity;
  filter: grayscale(0.28) saturate(0.55);
  content: "";
}
.home-view-chip.active,
.cue-chip-rail .home-view-chip.active {
  border: 0;
  background: #131817;
  color: #fff;
  box-shadow: none;
}
.home-view-chip.active::before,
.cue-chip-rail .home-view-chip.active::before {
  display: block;
  background: linear-gradient(#08090bb3, #08090be0), var(--chip-art) 50% / cover no-repeat;
  mix-blend-mode: normal;
  filter: none;
  opacity: 1;
}
.home-view-chip span,
.cue-chip-rail .home-view-chip span {
  position: relative;
  z-index: 1;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-toolbar .home-view-rail,
.cue-search-page .home-view-rail,
.quick-search .home-view-rail,
.quick-search .search-sheet .home-view-rail {
  margin: 0 0 16px;
}

.catalog-toolbar .home-view-rail {
  display: flex;
  flex-wrap: nowrap;
  height: 40px;
  overflow-x: auto;
  overflow-y: hidden;
  grid-template-columns: none;
}

.shell[data-view="profile"] main {
  width: 100%;
  max-width: none;
  padding: 0 0 calc(72px + env(safe-area-inset-bottom, 0px)) !important;
}
.paper-profile-page .paper-profile-header {
  width: 100%;
  max-width: none;
}
.paper-profile-page .paper-profile-header::before {
  position: absolute;
  inset: 0;
  background: var(--profile-art) 50% 0 / cover no-repeat, #131817;
  mask-image: linear-gradient(#000 40%, transparent 98%);
  -webkit-mask-image: linear-gradient(#000 40%, transparent 98%);
  content: "";
  pointer-events: none;
}
.paper-profile-page .profile-topline {
  top: max(12px, env(safe-area-inset-top, 0px));
  right: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.paper-profile-page .detail-close-button {
  display: grid;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 4px;
  place-items: center;
  border: 1px solid #23252b;
  border-radius: 999px;
  background: #131817;
  color: #fff;
  box-shadow: 0 4px 4px #00000026;
}
.paper-profile-page .detail-close-button .hugeicon {
  width: 20px;
  height: 20px;
}
.paper-profile-page .profile-edit-button {
  display: inline-flex;
  height: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid #37383b;
  border-radius: 6px;
  background: transparent;
  padding: 0 20px;
  color: var(--color-text-primary, #fff);
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
}
.paper-profile-page .profile-avatar {
  position: absolute;
  z-index: 2;
  top: 133px;
  left: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #23252b;
  border-radius: 50%;
  background: #131817;
  transform: translateX(-50%);
  cursor: pointer;
}
.paper-profile-page .profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.paper-profile-page .profile-avatar.is-fallback {
  border: 1px solid #23252b;
  border-radius: 50%;
  background: #131817;
  color: #e3e3e3;
  font-size: 18px;
  font-weight: 700;
}
.paper-profile-page .profile-avatar input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.paper-profile-page .profile-profile-name {
  top: 200px;
  bottom: auto;
  z-index: 2;
  font: 500 37px/110% Neuland, system-ui, sans-serif;
}
.paper-profile-page .profile-paper-stats,
.paper-profile-page .paper-profile-section {
  width: auto;
  max-width: none;
}
.profile-paper-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 14px 12px 0;
}
.profile-stat-chip {
  display: grid;
  width: 100%;
  height: 40px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: start;
  padding: 4px 10px;
  color: #cccbc7;
}
.profile-stat-chip strong {
  justify-self: end;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 21px;
  text-shadow: 0 1px 3px #000000ed;
}
.profile-stat-chip::before {
  z-index: 0;
  background: linear-gradient(#131817e3), var(--chip-art) 50% / cover no-repeat;
  mix-blend-mode: luminosity;
  filter: grayscale(0.28) saturate(0.55);
}
.paper-profile-page .profile-section-heading {
  padding: 0 12px;
}
.paper-profile-page .profile-section-edit {
  display: inline-flex;
  height: 34px;
  min-height: 34px;
  align-items: center;
  border: 1px solid #37383b;
  border-radius: 6px;
  background: transparent;
  padding: 0 20px;
  color: var(--color-text-primary, #fff);
  font-size: 12px;
  font-weight: 600;
}
.paper-profile-page .profile-favourites-rail {
  margin: 0 -12px;
  padding: 16px 12px 24px;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.paper-profile-page .profile-favourites-rail .media-card {
  width: 200px;
  min-width: 200px;
}
.media-card-add {
  cursor: pointer;
}
.media-art-add {
  display: grid;
  place-items: center;
  border: 1px dashed #464646;
  background: #ffffff0d;
  color: #fff;
  box-shadow: none;
}
.media-art-add .hugeicon {
  width: 28px;
  height: 28px;
}
.shell[data-view="profile"] main > .account-sources,
.shell[data-view="profile"] main > .profile-settings-list {
  width: auto;
  max-width: none;
  margin-right: 12px;
  margin-left: 12px;
}

.empty-state,
.catalog-grid > .empty-state {
  min-height: 280px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 32px 12px;
  gap: 10px;
}
.empty-state h2,
.empty-state p,
.empty-state .button-primary {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.empty-state h2 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}
.empty-state p {
  color: #ffffff80;
  font-size: 13px;
  line-height: 18px;
}
.empty-state .button-primary {
  min-height: 36px;
  margin-top: 4px;
  padding: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.home-hero-copy {
  padding-bottom: 24px;
}
.home-hero-actions .detail-source-actions {
  display: flex;
  height: 34px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #ffffff1a;
  border-radius: 8px;
  background: #ffffff1a;
  box-shadow: 0 10px 15px -3px #0000000d, 0 4px 6px -4px #0000000d;
  backdrop-filter: blur(20px) saturate(150%);
}
.home-hero-actions .detail-source-action,
.home-hero-actions .detail-source-actions > .icon-button {
  display: grid;
  width: 56px;
  min-width: 56px;
  height: 34px;
  min-height: 34px;
  padding: 0 4px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.home-hero-actions .detail-source-action.provider-max { background: #0560ff; }
.home-hero-actions .detail-source-action.provider-netflix { background: #e50914; }
.home-hero-actions .detail-source-action.provider-hulu { background: #1ce783; }
.home-hero-actions .detail-source-action.provider-prime-video { background: #00a8e1; }
.home-hero-actions .detail-source-action.provider-disney-plus { background: #113ccf; }
.home-hero-actions .detail-source-action.provider-apple-tv-plus { background: #f5f5f7; }
.home-hero-actions .detail-source-action.provider-bbc-iplayer { background: #111; }
.home-hero-actions .detail-source-action.provider-cinema { background: #29231d; }
.home-hero-actions .detail-source-action img,
.home-hero-actions .detail-source-action .provider-brand-mark {
  width: auto;
  max-width: 42px;
  height: 20px;
  max-height: 20px;
  object-fit: contain;
  object-position: center;
  transform: translateY(-0.5px);
}
.home-hero-actions .detail-source-actions > .icon-button .hugeicon {
  display: block;
  transform: translateY(-0.5px);
}

.rt-mark,
.rt-popcorn-mark {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: contain;
}
.rt-mark {
  background-image: url("./assets/paper/rt-tomato.svg");
}
.rt-popcorn-mark {
  background-image: url("./assets/paper/rt-popcorn.svg");
}
.media-score-rt,
.media-score-popcorn,
.home-rating.rt {
  gap: 4px;
  color: #ffffffcc;
  font-size: 14px;
  font-weight: 500;
}
.media-score-rt .rt-mark,
.media-score-popcorn .rt-popcorn-mark,
.home-rating .rt-mark,
.home-rating .rt-popcorn-mark {
  width: 16px;
  height: 16px;
  padding: 0;
  border-radius: 0;
  background-color: transparent;
}

@supports not (width: 1cqh) {
  .cue-trailer-bleed > iframe,
  .detail-visual .cue-trailer-bleed .detail-trailer-embed,
  .detail-paper-screen .cue-trailer-bleed .detail-trailer,
  .home-screen .home-hero-slide .cue-trailer-bleed .hero-video {
    top: 50%;
    left: 50%;
    width: 240%;
    height: auto;
    min-width: 240%;
    min-height: 160%;
    aspect-ratio: 16 / 9;
    object-position: center;
    transform: translate(-50%, -50%);
  }
  .cue-trailer-bleed > video {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

.home-view-rail,
.cue-chip-rail,
.catalog-toolbar .home-view-rail,
.home-screen .home-view-rail,
.cue-search-page .home-view-rail,
.quick-search .home-view-rail {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: auto;
  max-width: 100%;
  height: 40px;
  grid-template-columns: none;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.home-view-rail::-webkit-scrollbar,
.cue-chip-rail::-webkit-scrollbar {
  display: none;
}
.home-view-chip,
.cue-chip-rail .home-view-chip,
.catalog-toolbar .home-view-chip {
  flex: 0 0 auto;
  width: max-content;
  min-width: 86px;
}
.detail-paper-screen .detail-source-action.provider-hulu .provider-brand-mark,
.home-hero-actions .detail-source-action.provider-hulu .provider-brand-mark {
  filter: brightness(0);
}
.detail-paper-screen .detail-source-action.provider-paramount-plus,
.home-hero-actions .detail-source-action.provider-paramount-plus {
  background: #0064ff;
}
.detail-paper-screen .detail-source-action.provider-peacock,
.home-hero-actions .detail-source-action.provider-peacock {
  background: #000;
}
.detail-paper-screen .detail-source-action.provider-peacock .provider-brand-mark {
  width: 42px;
  max-width: 42px;
}

/* Sep 13 motion and surface polish */
.detail-paper-screen .detail-hero-wash {
  background: linear-gradient(0deg, #08090b 0%, #08090bf2 22%, #08090b99 48%, #08090b26 72%, transparent 100%);
}
.detail-paper-screen .detail-paper-hero-copy {
  position: relative;
  background: linear-gradient(180deg, #08090b00 0%, #08090b 42px, #08090b 100%);
}
.detail-title-wash {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 36px);
  z-index: -1;
  width: 100vw;
  height: min(72dvh, 680px);
  background: linear-gradient(0deg, #08090b 0%, #08090bf2 22%, #08090b99 48%, #08090b26 72%, transparent 100%);
  transform: translateX(-50%);
  pointer-events: none;
}
.title-logo {
  background: transparent;
}
.title-logo.is-dark-logo {
  filter: invert(1) brightness(1.04);
}
.detail-paper-screen.is-opening .detail-paper-hero-copy > *:not(.detail-title-wash) {
  animation: cue-detail-enter var(--duration-open) var(--ease-smooth-out) both;
}
.detail-paper-screen.is-opening .detail-paper-hero-copy > *:nth-child(2) { animation-delay: var(--duration-stagger); }
.detail-paper-screen.is-opening .detail-paper-hero-copy > *:nth-child(3) { animation-delay: calc(var(--duration-stagger) * 2); }
.detail-paper-screen.is-opening .detail-paper-hero-copy > *:nth-child(4) { animation-delay: calc(var(--duration-stagger) * 3); }
.detail-paper-screen.is-opening .detail-paper-hero-copy > *:nth-child(5) { animation-delay: calc(var(--duration-stagger) * 4); }
@keyframes cue-detail-enter {
  from {
    opacity: 0;
    filter: blur(var(--blur-small));
    transform: translateY(var(--distance-base));
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .detail-paper-screen.is-opening .detail-paper-hero-copy > * {
    animation: none;
  }
  #cue-art-fly {
    display: none;
  }
}

.home-week {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: calc(100dvh - 168px);
}
.home-week-grid {
  flex: 1 1 auto;
  min-height: calc(100dvh - 188px);
}
.home-week-grid > .empty-state {
  display: grid;
  grid-column: 1 / -1;
  min-height: inherit;
  width: 100%;
  place-items: center;
  padding: 48px 16px 96px;
}

.profile-paper-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: stretch;
  gap: 8px;
  width: auto;
  margin: 14px 12px 0;
}
.profile-paper-stats .home-view-chip.profile-stat-chip {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  background: #131817;
  padding: 4px 10px;
  isolation: isolate;
  color: #cccbc7;
}
.profile-paper-stats .profile-stat-chip::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  background: linear-gradient(#131817e3), var(--chip-art) 50% / cover no-repeat;
  mix-blend-mode: luminosity;
  filter: grayscale(0.28) saturate(0.55);
  content: "";
}
.profile-paper-stats .profile-stat-chip span,
.profile-paper-stats .profile-stat-chip strong {
  position: relative;
  z-index: 1;
}
.profile-paper-stats .profile-stat-chip span {
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-paper-stats .profile-stat-chip strong {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 21px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px #000000ed;
}

.paper-profile-page .profile-more-button {
  position: relative;
  display: grid;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 4px;
  place-items: center;
  border: 1px solid #23252b;
  border-radius: 999px;
  background: #131817;
  color: #fff;
  box-shadow: 0 4px 4px #00000026;
}
.paper-profile-page .profile-more-button::after {
  position: absolute;
  inset: -4px;
  content: "";
}
.paper-profile-page .profile-more-button .hugeicon {
  width: 20px;
  height: 20px;
}
.paper-profile-page .profile-avatar img,
.home-profile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#cue-art-fly {
  overflow: hidden;
  outline: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sep 14 Paper refinements */
.cue-search-field input,
.quick-search-field input {
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

.home-view-chip,
.cue-chip-rail .home-view-chip,
.catalog-toolbar .home-view-chip,
.home-view-chip.active,
.cue-chip-rail .home-view-chip.active {
  border: 1px solid #1a1a1a;
  border-radius: 4px;
}

.home-screen .home-view-rail.cue-chip-rail {
  display: grid;
  grid-template-columns: repeat(var(--home-view-count, 3), minmax(0, 1fr));
  width: 100%;
  overflow: visible;
}

.home-screen .home-view-rail.cue-chip-rail .home-view-chip {
  flex: unset;
  width: 100%;
  min-width: 0;
}

.home-view-chip.is-collage::before,
.home-view-chip.is-collage.active::before,
.cue-chip-rail .home-view-chip.is-collage::before {
  background-image:
    linear-gradient(#131817e3),
    var(--chip-art-1),
    var(--chip-art-2),
    var(--chip-art-3),
    var(--chip-art-4);
  background-repeat: no-repeat;
  background-size: auto, 50% 50%, 50% 50%, 50% 50%, 50% 50%;
  background-position: 0 0, 0 0, 100% 0, 0 100%, 100% 100%;
  mix-blend-mode: luminosity;
}

.home-view-chip.collage-2::before,
.home-view-chip.collage-2.active::before {
  background-size: auto, 50% 100%, 50% 100%;
  background-position: 0 0, 0 50%, 100% 50%;
}

.shell[data-view="shows"] .page-header,
.shell[data-view="movies"] .page-header,
.shell[data-view="collection"] .page-header,
.shell[data-view="search"] .cue-page-header,
.quick-search-title {
  position: sticky;
  z-index: 20;
  top: 0;
  background: #08090b;
}

.shell[data-view="shows"] .page-header h1,
.shell[data-view="movies"] .page-header h1,
.shell[data-view="collection"] .page-header h1,
.shell[data-view="search"] .cue-page-header h1,
.quick-search-title h1 {
  color: #e9f0e7;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", system-ui, sans-serif;
  font-size: 31px;
  font-stretch: condensed;
  font-weight: 500;
  line-height: 34px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-header.compact-header,
.page-header.explore-header,
.library-page-header,
.cue-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-header .icon-button[data-action="open-search"],
.explore-header .icon-button[data-action="open-search"],
.library-page-header .icon-button[data-action="open-search"],
.cue-page-header .icon-button[data-action="open-search"] {
  display: grid;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  place-items: center;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-header .icon-button[data-action="open-search"] .hugeicon,
.explore-header .icon-button[data-action="open-search"] .hugeicon,
.library-page-header .icon-button[data-action="open-search"] .hugeicon {
  width: 20px;
  height: 20px;
}

.shell[data-view="shows"] .catalog-toolbar,
.shell[data-view="movies"] .catalog-toolbar,
.shell[data-view="collection"] .home-view-rail,
.shell[data-view="search"] .home-view-rail,
.catalog-toolbar {
  margin: 0 0 12px;
}

.shell[data-view="collection"] .home-view-rail.cue-chip-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.shell[data-view="collection"] .home-view-rail.cue-chip-rail .home-view-chip {
  flex: 0 0 auto;
  width: auto;
  min-width: 86px;
}

.home-screen.home-feed-screen {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 52px);
}

.home-feed-screen .home-chrome {
  flex: 0 0 auto;
}

.home-feed-screen .cue-feed-page.feed-connection-page {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  place-items: center;
  padding: 24px 12px 120px;
}

.related-rail {
  padding-top: 0;
}

.detail-paper-screen .cast-rail {
  padding-top: 0;
}

.episode-context-rail,
.related-rail {
  padding: 0 0 6px;
}

.detail-paper-screen .cast-rail {
  padding: 0 24px 16px;
}

.title-logo.has-black-matte {
  background: transparent;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 3px 8px #0008);
}

.paper-profile-page .profile-edit-button {
  display: none;
}

.paper-profile-page .profile-more-button,
.paper-profile-page .detail-close-button {
  display: grid;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 4px;
  place-items: center;
  border: 1px solid #23252b;
  border-radius: 999px;
  background: #131817;
  color: #fff;
  box-shadow: 0 4px 4px #00000026;
}

.paper-profile-page .profile-more-button .hugeicon,
.paper-profile-page .detail-close-button .hugeicon {
  width: 20px;
  height: 20px;
}

.profile-paper-stats {
  display: grid;
  grid-template-columns: 165px 165px;
  justify-content: center;
  gap: 10px 11px;
  width: 100%;
  margin: 14px 0 0;
  padding: 0 12px;
  box-sizing: border-box;
}

.profile-paper-stats .home-view-chip.profile-stat-chip {
  width: 165px;
  min-width: 165px;
  max-width: 165px;
  height: 40px;
  border: 1px solid #2e2e2e;
  border-radius: 4px;
}

.paper-profile-page .profile-favourites-rail {
  margin: 0;
  padding: 0 0 24px;
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 36px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 36px), transparent 100%);
}

.modal-backdrop.cue-drawer-backdrop {
  align-items: flex-end;
  justify-content: center;
  background: #00000099;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
}

.cue-drawer {
  display: flex;
  width: min(366px, 100%);
  max-height: min(511px, 82dvh);
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #131915;
  box-shadow: 0 2px 3px #000;
}

.cue-drawer-head {
  position: relative;
  flex: 0 0 71px;
  height: 71px;
}

.cue-drawer-head h2 {
  position: absolute;
  top: 29px;
  left: 15px;
  overflow: hidden;
  margin: 0;
  color: #fff;
  font-size: var(--text-body, 15px);
  font-weight: 700;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cue-drawer-close {
  position: absolute;
  top: 24px;
  right: 12px;
  display: grid;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  place-items: center;
  padding: 4px;
  border: 1px solid #23252b;
  border-radius: 999px;
  background: #131817;
  color: #fff;
}

.cue-drawer-close .hugeicon {
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
}

.cue-drawer-body {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: auto;
}

.cue-season-row {
  position: relative;
  display: block;
  width: 100%;
  height: 131px;
  flex: 0 0 131px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
}

.cue-season-poster {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 74px;
  height: 100px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #22252b;
  border-radius: 4px;
  background: var(--media-art, none) 50% / cover no-repeat, #1a1d1b;
  box-shadow: 0 20px 25px -5px #0006, 0 8px 10px -6px #0006;
}

.cue-season-label {
  position: absolute;
  top: 55px;
  left: 108px;
  color: #fff;
  font-size: var(--text-meta, 13px);
  font-weight: 500;
  line-height: 1.5;
}

.cue-season-row.selected .cue-season-label {
  font-weight: 600;
}

.cue-drawer .status-options,
.cue-drawer .season-action-options,
.cue-drawer .list-picker {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px 16px;
}

.cue-drawer-confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 16px 20px;
}

.cue-drawer-confirm p {
  margin: 0 16px 8px;
  color: #a5a7ad;
  font-size: 13px;
  line-height: 18px;
}

.cue-drawer form {
  padding: 0 16px 20px;
}

html.cue-pulling {
  overflow: hidden;
}

html.cue-pulling .shell > main {
  transform: translateY(var(--cue-pull, 0px));
  transition: none;
}

.shell > main {
  transition: transform 320ms cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .shell > main,
  html.cue-pulling .shell > main {
    transition: none;
  }
}

/* Search results, clear control, and network catalogue */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.cue-search-field .search-clear {
  display: none;
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #fff;
}

.cue-search-field.has-value .search-clear,
.cue-search-field:has(input:not(:placeholder-shown)) .search-clear {
  display: grid;
  place-items: center;
}

.cue-search-results .live-search-result,
.quick-results .live-search-result {
  display: grid;
  min-height: 108px;
  grid-template-columns: 64px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  background: transparent;
}

.cue-search-results .result-art,
.quick-results .result-art {
  width: 64px;
  height: 96px;
  border: 1px solid #22252b;
  border-radius: 4px;
  background: var(--media-art) 50% / cover no-repeat, #131817;
}

.cue-search-results .result-copy strong,
.quick-results .result-copy strong {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  white-space: normal;
}

.cue-search-results .result-copy small,
.quick-results .result-copy small {
  margin-top: 4px;
  color: #a5a7ad;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}

.result-open {
  display: none;
}

.result-status {
  display: grid;
  width: 32px;
  min-width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid #23252b;
  border-radius: 999px;
  background: #131817;
  color: #fff;
}

.result-status.is-add {
  border-color: #37383b;
}

.result-status.is-watchlist,
.result-status.is-watching,
.result-status.is-watched,
.result-status.is-collection {
  background: #ffffff14;
}

.result-status .hugeicon {
  width: 18px;
  height: 18px;
}

.network-logo-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 0 16px;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 12px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}

.network-logo-rail::-webkit-scrollbar {
  display: none;
}

.network-logo {
  display: grid;
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #ffffff0d;
  box-shadow: 0 0 0 1px #ffffff1a, 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
}

.network-logo img,
.network-logo .provider-brand-mark {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.provider-browse-page .provider-catalog-row {
  margin: 0 0 18px;
}

.provider-browse-page .related-rail {
  margin: 0 -12px;
  padding: 0 12px 8px;
}

.shell[data-view="provider"] .page-header,
.shell[data-view="provider"] .page-header h1 {
  position: sticky;
  z-index: 20;
  top: 0;
  background: #08090b;
}

.shell[data-view="provider"] .page-header h1 {
  color: #e9f0e7;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", system-ui, sans-serif;
  font-size: 31px;
  font-stretch: condensed;
  font-weight: 500;
  line-height: 34px;
  text-transform: none;
}

.shell[data-view="provider"] .home-view-rail {
  margin: 0 0 12px;
}

/* Sep 14: fixed headers, Paper EVS-0 media chrome, hero covers, dock wash */
.cue-dock-wash {
  position: fixed;
  z-index: 60;
  right: 0;
  bottom: 0;
  left: 0;
  height: 118px;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 9, 11, .7) 48%, #08090b 100%);
  pointer-events: none;
}
.shell[data-view="detail"] ~ .cue-dock-wash,
.shell[data-view="episode"] ~ .cue-dock-wash,
.shell[data-view="launch"] ~ .cue-dock-wash,
.shell[data-view="onboarding"] ~ .cue-dock-wash {
  display: none;
}
@media (min-width: 681px) {
  .cue-dock-wash { display: none; }
}

.home-chrome,
.shell[data-view="shows"] .page-header,
.shell[data-view="movies"] .page-header,
.shell[data-view="collection"] .page-header,
.shell[data-view="search"] .cue-page-header,
.shell[data-view="provider"] .page-header,
.shell[data-view="stats"] .page-header,
.shell[data-view="person"] .page-header,
.shell[data-view="awards"] .page-header,
.shell[data-view="calendar"] .page-header,
.quick-search-title {
  position: sticky;
  z-index: 30;
  top: 0;
  background: #08090b;
}

@media (max-width: 680px) {
  .home-chrome {
    z-index: 30;
    margin: calc(-1 * max(20px, env(safe-area-inset-top, 0px))) -12px 0;
    padding: max(20px, env(safe-area-inset-top, 0px)) 12px 8px;
    background: #08090b;
  }
  .shell[data-view="shows"] .page-header,
  .shell[data-view="movies"] .page-header,
  .shell[data-view="collection"] .page-header,
  .shell[data-view="search"] .cue-page-header,
  .shell[data-view="provider"] .page-header,
  .shell[data-view="stats"] .page-header,
  .shell[data-view="person"] .page-header,
  .shell[data-view="awards"] .page-header,
  .shell[data-view="calendar"] .page-header {
    position: sticky;
    z-index: 30;
    top: 0;
    margin: calc(-1 * max(20px, env(safe-area-inset-top, 0px))) -12px 13px;
    padding: max(20px, env(safe-area-inset-top, 0px)) 12px 0;
    background: #08090b;
    backdrop-filter: none;
  }
}

.home-screen .home-hero-art {
  mask-image: none;
  -webkit-mask-image: none;
}
.home-screen .home-hero-cover {
  background-position: 50% 18%;
  background-size: cover;
}
.home-screen .home-hero-wash,
.home-screen.home-today-screen .home-hero-wash,
.detail-paper-screen .detail-hero-wash {
  top: var(--wash-from, 52%);
  right: 0;
  bottom: 0;
  left: 0;
  height: auto;
  background: linear-gradient(0deg, #08090b 0%, #08090bf2 32%, #08090b80 62%, transparent 100%);
}
.home-hero-copy .title-treatment {
  position: relative;
  z-index: 1;
}
.home-hero-art .cue-trailer-bleed {
  z-index: 1;
  opacity: 0;
  transition: opacity var(--duration-open) var(--ease-out);
}
.home-hero-art.trailer-ready .cue-trailer-bleed {
  opacity: 1;
}

.detail-paper-screen .detail-cover {
  object-position: 50% 12%;
}
.detail-title-wash {
  top: auto;
  bottom: calc(100% - var(--wash-from, 0px));
  height: min(58dvh, 520px);
  background: linear-gradient(0deg, #08090b 0%, #08090bf2 28%, #08090b73 58%, transparent 100%);
}

.detail-paper-screen .detail-topbar {
  display: none;
}

.detail-chrome {
  position: sticky;
  top: 0;
  z-index: 40;
  display: block;
  height: calc(71px + env(safe-area-inset-top, 0px));
  margin: 0 0 calc(-71px - env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: #161d1780;
  border-bottom: 0.2px solid #303133;
  pointer-events: none;
  backdrop-filter: blur(16px);
}
.detail-chrome-bar {
  position: relative;
  z-index: 1;
  display: flex;
  width: calc(100% - 24px);
  max-width: 366px;
  height: 32px;
  align-items: center;
  justify-content: space-between;
  margin: 24px auto 0;
  pointer-events: auto;
}
.detail-chrome-center {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 27px);
  left: 50%;
  z-index: 1;
  display: flex;
  max-width: 220px;
  height: 23px;
  align-items: center;
  gap: 9px;
  pointer-events: none;
  transform: translateX(-50%);
}
.detail-chrome-logo {
  width: auto;
  max-width: 97px;
  height: 23px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 4px 8px #0006);
}
.detail-chrome-wordmark {
  overflow: hidden;
  max-width: 97px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 23px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-chrome-episode {
  display: flex;
  height: 23px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: 1px solid #ffffff26;
  border-radius: 999px;
  background: #00000073;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}
.detail-chrome-button {
  display: grid;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  place-items: center;
  padding: 4px;
  border-radius: 999px;
  background: #131817;
  color: #fff;
  box-shadow: 0 4px 4px #00000026;
}
.detail-chrome-close {
  border: 1px solid #23252b;
}
.detail-chrome-more {
  border: 1px solid #37383b;
}
.detail-chrome-button .hugeicon {
  width: 20px;
  height: 20px;
}
.detail-chrome-close .hugeicon {
  transform: rotate(45deg);
}

.paper-profile-page .profile-topline {
  position: sticky;
  top: 0;
  right: auto;
  left: auto;
  z-index: 30;
  display: flex;
  width: 100%;
  height: calc(71px + env(safe-area-inset-top, 0px));
  align-items: center;
  justify-content: space-between;
  margin: 0 0 calc(-71px - env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 12px 0;
  background: #161d1780;
  border-bottom: 0.2px solid #303133;
  backdrop-filter: blur(16px);
}

.title-logo.has-black-matte {
  background: transparent;
  mix-blend-mode: lighten;
}

/* Sep 15: chrome inset, home/new wash, Paper ticks, full-width drawer. */
@media (max-width: 680px) {
  .home-screen {
    padding: 0 12px calc(72px + env(safe-area-inset-bottom, 0px));
  }
  .home-chrome {
    margin: 0 -12px 0;
    padding: env(safe-area-inset-top, 0px) 12px 8px;
  }
  .shell[data-view="shows"] main,
  .shell[data-view="movies"] main,
  .shell[data-view="collection"] main,
  .shell[data-view="search"] main,
  .shell[data-view="calendar"] main,
  .shell[data-view="provider"] main,
  .shell[data-view="stats"] main,
  .shell[data-view="person"] main,
  .shell[data-view="awards"] main {
    padding-top: 0;
  }
  .shell[data-view="shows"] .page-header,
  .shell[data-view="movies"] .page-header,
  .shell[data-view="collection"] .page-header,
  .shell[data-view="search"] .cue-page-header,
  .shell[data-view="calendar"] .page-header,
  .shell[data-view="provider"] .page-header,
  .shell[data-view="stats"] .page-header,
  .shell[data-view="person"] .page-header,
  .shell[data-view="awards"] .page-header {
    margin: 0 -12px 12px;
    padding: env(safe-area-inset-top, 0px) 12px 0;
  }
}

.page-header .icon-button[data-action="open-search"],
.explore-header .icon-button[data-action="open-search"],
.library-page-header .icon-button[data-action="open-search"],
.cue-page-header .icon-button[data-action="open-search"],
:where(.page-header.compact-header, .page-header.explore-header, .library-page-header) .icon-button[data-action="open-search"] {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  margin-inline-end: 0;
  padding: 0;
}

.detail-paper-screen .media-detail-page {
  margin-top: calc(-1 * env(safe-area-inset-top, 0px));
  height: calc(min(525.2px, 134.67vw) + env(safe-area-inset-top, 0px));
}
.detail-paper-screen .media-detail-page .detail-visual {
  inset: 0;
  height: 100%;
}
.detail-paper-screen .detail-cover {
  object-position: center;
}
.detail-paper-screen .detail-hero-wash {
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  height: 58%;
  background: linear-gradient(0deg, #08090b 0%, #08090bf2 16%, #08090b99 38%, #08090b00 68%);
}
.detail-title-wash {
  top: auto;
  bottom: 0;
  height: 42%;
  background: linear-gradient(0deg, #08090b 0%, #08090bf2 36%, transparent 100%);
}

.shell[data-home="new"] .home-hero-art,
.shell[data-home="recommended"] .home-hero-art {
  mask-image: none;
  -webkit-mask-image: none;
}
.shell[data-home="new"] .home-hero-wash,
.shell[data-home="recommended"] .home-hero-wash {
  top: 36%;
  right: 0;
  bottom: 0;
  left: 0;
  height: auto;
  background: linear-gradient(0deg, #08090b 0%, #08090bf2 18%, #08090b99 42%, transparent 72%);
}

.cue-trailer-endcap {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 22%;
  background: linear-gradient(0deg, #08090b 0%, #08090bd9 42%, transparent 100%);
  pointer-events: none;
}

.detail-chrome {
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}
.detail-chrome-bar {
  width: 100%;
  max-width: none;
  margin: 12px 0 0;
  padding: 0 12px;
}
.detail-chrome-center {
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms cubic-bezier(0.2, 0, 0, 1);
}
.detail-paper-screen.is-chrome-collapsed .detail-chrome {
  background: #161d1780;
  border-bottom: 0;
  backdrop-filter: blur(16px);
}
.detail-paper-screen.is-chrome-collapsed .detail-chrome-center {
  opacity: 1;
}
.detail-paper-hero-copy .title-logo {
  view-transition-name: cue-title-logo;
}
.detail-chrome-logo {
  view-transition-name: none;
}
.detail-paper-screen.is-chrome-collapsed .detail-paper-hero-copy .title-logo {
  view-transition-name: none;
}
.detail-paper-screen.is-chrome-collapsed .detail-chrome-logo {
  view-transition-name: cue-title-logo;
}
@media (prefers-reduced-motion: reduce) {
  .detail-paper-hero-copy .title-logo,
  .detail-chrome-logo {
    view-transition-name: none !important;
  }
}

.detail-paper-screen.is-opening .detail-cover {
  opacity: 0;
}

.detail-paper-screen .detail-track-button.is-tracked .detail-track-icon,
.detail-paper-screen .detail-track-button.is-up-to-date .detail-track-icon {
  border: 0;
  background: #9ce484;
  color: #08090b;
  box-shadow: none;
}
.detail-paper-screen .episode-card .watch-toggle.watched,
.home-poster-check.is-saved,
.home-watched.is-watched .home-watched-check {
  border: 0;
  background: #9ce484;
  color: #08090b;
  box-shadow: none;
}
.home-view-chip.active,
.filter-control button.active,
.paper-pills button.active {
  border: 0;
  outline: 0;
  box-shadow: none;
}
button:focus:not(:focus-visible) {
  outline: 0;
}

.modal-backdrop.cue-drawer-backdrop {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
}
.cue-drawer {
  width: 100%;
  max-width: none;
  align-self: stretch;
  max-height: min(86dvh, 720px);
  border-radius: 16px 16px 0 0;
  background: #1c1c1e;
  box-shadow: 0 -12px 40px #00000073;
}
.cue-drawer.cue-drawer-auth {
  max-height: min(92dvh, 760px);
  border-radius: 24px 24px 0 0;
}
.cue-drawer-handle {
  width: 36px;
  height: 5px;
  flex: 0 0 auto;
  margin: 8px auto 0;
  border-radius: 999px;
  background: #ffffff3d;
}
.cue-drawer-now {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 16px 12px;
}
.cue-drawer-now-art {
  width: 40px;
  min-width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 4px;
  background: var(--media-art) 50% / cover no-repeat, #2c2c2e;
  outline: 1px solid oklch(1 0 0 / 0.1);
}
.cue-drawer-now-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}
.cue-drawer-now-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cue-drawer-now-copy small {
  overflow: hidden;
  color: #ffffff99;
  font-size: 13px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cue-drawer:has(.cue-drawer-now) .cue-drawer-head {
  position: absolute;
  top: 28px;
  right: 8px;
  z-index: 2;
  width: 44px;
  height: 44px;
  flex: none;
}
.cue-drawer:has(.cue-drawer-now) .cue-drawer-head h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.cue-drawer-head {
  flex: 0 0 52px;
  height: 52px;
}
.cue-drawer-head h2 {
  top: 18px;
  left: 16px;
  font-size: 15px;
  font-weight: 600;
}
.cue-drawer-close {
  top: 10px;
  right: 8px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.cue-drawer-close .hugeicon {
  width: 22px;
  height: 22px;
  transform: none;
}
.cue-drawer .status-options,
.cue-drawer .season-action-options,
.cue-drawer .list-picker {
  gap: 0;
  padding: 4px 0 calc(12px + env(safe-area-inset-bottom, 0px));
}
.cue-drawer-row,
.cue-drawer .status-options > button,
.cue-drawer .season-action-options > button,
.cue-drawer .list-picker > button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  text-align: left;
}
.cue-drawer-row:active,
.cue-drawer .status-options > button:active,
.cue-drawer .season-action-options > button:active {
  background: #ffffff0f;
}
.cue-drawer-icon,
.cue-drawer .status-options > button > span:first-child,
.cue-drawer .season-action-options > button > span:first-child {
  display: grid;
  width: 28px;
  min-width: 28px;
  height: 28px;
  flex-shrink: 0;
  place-items: center;
  color: #fff;
}
.cue-drawer-icon .hugeicon,
.cue-drawer .status-options > button > span:first-child .hugeicon,
.cue-drawer .season-action-options > button > span:first-child .hugeicon {
  width: 22px;
  height: 22px;
}
.cue-drawer-copy {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
}
.cue-drawer-copy strong,
.cue-drawer .status-options > button strong,
.cue-drawer .season-action-options > button strong {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}
.cue-drawer-copy small {
  color: #ffffff99;
  font-size: 13px;
}
.cue-drawer-check {
  display: grid;
  width: 22px;
  min-width: 22px;
  place-items: center;
  color: #9ce484;
}
.cue-drawer-row.selected,
.cue-drawer .status-options > button.selected {
  background: transparent;
  color: #fff;
}
.cue-drawer-row-danger,
.cue-drawer .remove-status {
  color: #ff6b6b;
}
.cue-season-row {
  height: 72px;
  flex-basis: 72px;
}
.cue-season-poster {
  top: 12px;
  left: 16px;
  width: 48px;
  height: 48px;
}
.cue-season-label {
  top: 24px;
  left: 80px;
}

@media (prefers-reduced-motion: no-preference) {
  .cue-drawer {
    animation: cue-drawer-in var(--duration-open) var(--ease-drawer);
  }
}
@keyframes cue-drawer-in {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

html {
  scroll-behavior: auto;
}
.detail-paper-screen .related-section {
  margin-top: 40px;
  padding: 0 24px calc(72px + env(safe-area-inset-bottom));
}
.detail-chrome-episode {
  display: none;
}
.detail-paper-screen .episode-list {
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.detail-paper-content .episode-user-rating {
  width: 100%;
  max-width: none;
  margin: 16px 0 0;
}
.detail-paper-screen .home-episode-row {
  margin-top: 8px;
}
.home-hero-art .cue-trailer-bleed,
.detail-chrome-center {
  transition-timing-function: var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .cue-drawer,
  .home-hero-track,
  .home-hero-art .cue-trailer-bleed,
  .detail-chrome-center,
  #cue-art-fly {
    animation: none !important;
    transition: none !important;
  }
}

.shell[data-view="detail"] main,
.shell[data-view="episode"] main {
  overflow: visible !important;
}

.detail-paper-screen .media-detail-page {
  margin-top: calc(-1 * env(safe-area-inset-top, 0px));
  height: calc(min(525.2px, 134.67vw) + env(safe-area-inset-top, 0px));
}
.detail-paper-screen .media-detail-page .detail-visual {
  inset: 0;
  height: 100%;
  background: #131915;
}
.detail-paper-screen .detail-cover {
  object-fit: cover;
  object-position: 50% 0;
}
.detail-paper-screen.is-opening .detail-cover {
  opacity: 0;
  animation: cue-hero-art-in 250ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes cue-hero-art-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.detail-paper-screen .cue-trailer-bleed > iframe,
.detail-paper-screen .cue-trailer-bleed > video,
.detail-visual .cue-trailer-bleed .detail-trailer-embed,
.detail-paper-screen .cue-trailer-bleed .detail-trailer {
  top: 0;
  left: 50%;
  width: max(140cqw, calc(140cqh * 16 / 9));
  height: max(140cqh, calc(140cqw * 9 / 16));
  object-fit: cover;
  object-position: 50% 0;
  transform: translateX(-50%) scale(1.28);
  transform-origin: center top;
}
.cue-trailer-endcap {
  height: 32%;
  background: linear-gradient(0deg, #08090b 0%, #08090bf2 38%, transparent 100%);
}

.detail-paper-screen .home-episode-row {
  margin-top: 20px;
}
.episode-rating-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 22px;
  margin-top: 20px;
  color: #ffffffcc;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.episode-rating-row .media-score {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 16px;
}
.detail-paper-screen .hero-actions {
  margin-top: 16px;
}

.detail-paper-screen .episode-card .watch-toggle.watched,
.detail-paper-screen .episode-card .watch-toggle.watched .hugeicon {
  border-color: #ffffff2e;
  background: #15171b;
  color: #fff;
  box-shadow: none;
}

.artwork-fallback,
.detail-paper-screen .detail-visual.artwork-unavailable::before {
  background: #131915 !important;
}

#cue-art-fly {
  outline: 0;
  box-shadow: none;
}
.detail-chrome-button,
.icon-button,
.watch-toggle,
button {
  -webkit-tap-highlight-color: transparent;
}
.detail-chrome-button:focus:not(:focus-visible),
.icon-button:focus:not(:focus-visible),
.watch-toggle:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: 0;
  box-shadow: none;
}

.cue-home-wordmark,
.shell[data-view="shows"] .page-header h1,
.shell[data-view="movies"] .page-header h1,
.shell[data-view="collection"] .page-header h1,
.shell[data-view="search"] .cue-page-header h1,
.quick-search-title h1 {
  color: #9ce485;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", system-ui, sans-serif;
  font-size: 31px;
  font-stretch: condensed;
  font-weight: 500;
  line-height: 34px;
  letter-spacing: 0;
  text-transform: uppercase;
}
.shell[data-view="shows"] .page-header h1,
.shell[data-view="movies"] .page-header h1,
.shell[data-view="collection"] .page-header h1,
.shell[data-view="search"] .cue-page-header h1,
.quick-search-title h1 {
  color: #e9f0e7;
}

.shell[data-view="shows"] .page-header,
.shell[data-view="movies"] .page-header,
.shell[data-view="collection"] .page-header,
.shell[data-view="search"] .cue-page-header,
.page-header.compact-header {
  position: sticky;
  z-index: 30;
  top: 0;
  height: auto;
  min-height: 51px;
  margin: 0 -12px 0;
  padding: env(safe-area-inset-top, 0px) 0 8px 12px;
  background: #08090b;
}
.page-header .icon-button[data-action="open-search"],
.library-page-header .icon-button[data-action="open-search"],
.cue-page-header .icon-button[data-action="open-search"] {
  margin: 0;
  margin-inline-end: 0;
  padding: 0;
}

.shell[data-view="shows"] .catalog-toolbar,
.shell[data-view="movies"] .catalog-toolbar,
.shell[data-view="collection"] .home-view-rail,
.shell[data-view="search"] .home-view-rail,
.catalog-toolbar {
  margin: 12px 0 0;
  padding: 0 0 0;
}

@media (max-width: 680px) {
  .shell[data-view="shows"] .page-header,
  .shell[data-view="movies"] .page-header,
  .shell[data-view="collection"] .page-header,
  .shell[data-view="search"] .cue-page-header {
    position: sticky;
    top: 0;
    margin: 0 -12px 0;
    padding: env(safe-area-inset-top, 0px) 0 8px 12px;
  }
}



