/* Landing layout */
.landing-main {
  flex: 1;
  min-height: 0;
  min-width: 0;
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  align-content: center;
  padding: 8px 16px;
  gap: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 960px) {
  .landing-main {
    grid-template-columns: max-content minmax(260px, 1fr);
    justify-items: start;
    padding: 8px 40px 12px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    gap: 32px;
  }
}

@media (max-width: 959px) {
  .landing-main {
    grid-template-rows: minmax(0, 1fr) auto;
    align-content: stretch;
  }
}

.landing-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 36ch;
  padding: 20px 24px;
}

.landing-copy::before {
  content: "";
  position: absolute;
  inset: -20% -30%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(255, 140, 66, 0.05), transparent 62%),
    radial-gradient(ellipse 55% 45% at 85% 40%, rgba(124, 58, 237, 0.06), transparent 60%);
  pointer-events: none;
}

@media (max-width: 959px) {
  .landing-copy {
    padding: 14px 18px;
    width: min(100%, 400px);
    max-width: 100%;
  }
}

@media (max-width: 959px) and (max-height: 700px) {
  .landing-copy {
    padding: 10px 14px;
  }

  .landing-proof {
    margin-top: 14px;
    gap: 10px;
  }

  .landing-headline {
    font-size: clamp(1.2rem, 4.5vw, 1.5rem);
  }
}

@media (min-width: 960px) {
  .landing-copy {
    text-align: left;
    order: 2;
    padding: 24px 32px;
    align-self: center;
  }
}

.landing-eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-headline {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3.2vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}

.landing-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.landing-proof {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

@media (min-width: 960px) {
  .landing-proof {
    align-items: flex-start;
  }
}

.landing-rate-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  max-width: 28ch;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

@media (min-width: 960px) {
  .landing-rate-prompt {
    justify-content: flex-start;
    max-width: none;
  }
}

.landing-stars {
  flex-shrink: 0;
  letter-spacing: 0.05em;
  font-size: 14px;
  line-height: 1;
  background: linear-gradient(90deg, #ffb347, #ff7a45, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-appstore {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.landing-appstore:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 7px 14px 7px 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #000;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.appstore-apple {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.appstore-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.appstore-line1 {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.01em;
  opacity: 0.95;
}

.appstore-line2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Phone device — iPhone 17 Pro Max (space gray, thin bezel) */
.device {
  /* Single width drives layout + corner radii (same proportions as 378px desktop mockup). */
  --phone-max-h: calc(100dvh - var(--landing-chrome));
  --phone-w: min(
    378px,
    90vw,
    calc(var(--phone-max-h) * 440 / 956)
  );
  --iphone-pad: calc(var(--phone-w) * 2.5 / 378);
  --iphone-radius: calc(var(--phone-w) * 50 / 378);
  --iphone-screen-radius: calc(var(--phone-w) * 47 / 378);

  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: var(--phone-w);
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  justify-self: center;
}

@media (max-width: 959px) {
  .device {
    --phone-max-h: min(
      calc((100dvh - var(--landing-chrome)) * 0.58),
      calc(100dvh - var(--landing-chrome) - 9rem)
    );
    --phone-w: min(
      300px,
      calc(100% - 24px),
      78vw,
      calc(var(--phone-max-h) * 440 / 956)
    );
    margin: 0 auto;
    align-self: center;
  }
}

@media (max-width: 959px) and (max-height: 700px) {
  .device {
    --phone-w: min(
      248px,
      calc(100% - 20px),
      70vw,
      calc(var(--phone-max-h) * 440 / 956)
    );
  }
}

.device-glow::before {
  content: "";
  position: absolute;
  inset: -28px;
  border-radius: calc(var(--phone-w) * 52 / 378);
  background:
    radial-gradient(ellipse 80% 60% at 42% 38%, rgba(255, 140, 66, 0.28), transparent 62%),
    radial-gradient(ellipse 65% 55% at 22% 72%, rgba(255, 87, 36, 0.16), transparent 58%),
    radial-gradient(ellipse 55% 48% at 78% 30%, rgba(124, 58, 237, 0.22), transparent 52%);
  filter: blur(32px);
  z-index: -1;
  pointer-events: none;
  animation: device-glow-pulse 8s ease-in-out infinite;
}

@keyframes device-glow-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@media (max-width: 959px) {
  .device-glow::before {
    inset: -14px;
    filter: blur(22px);
  }
}

@media (min-width: 960px) {
  .device { order: 1; }
}

.iphone-chassis {
  /* iPhone 17 Pro Max — 440×956pt proportions, titanium band */
  width: 100%;
  --iphone-gray-light: #6e6e73;
  --iphone-gray-mid: #48484a;
  --iphone-gray-body: #353537;
  --iphone-gray-dark: #242426;
  --iphone-gray-edge: #1a1a1c;

  position: relative;
  padding: var(--iphone-pad);
  border-radius: var(--iphone-radius);
  background:
    linear-gradient(
      160deg,
      var(--iphone-gray-light) 0%,
      var(--iphone-gray-mid) 14%,
      var(--iphone-gray-body) 38%,
      var(--iphone-gray-dark) 55%,
      var(--iphone-gray-body) 78%,
      #5c5c60 100%
    );
  box-shadow:
    0 0 0 0.5px var(--iphone-gray-edge),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.16),
    inset 0 -0.5px 0 rgba(0, 0, 0, 0.35),
    0 24px 56px rgba(0, 0, 0, 0.48),
    0 6px 16px rgba(0, 0, 0, 0.28);
}

.iphone-chassis::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    170deg,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 30%,
    transparent 72%,
    rgba(0, 0, 0, 0.08) 100%
  );
  pointer-events: none;
  z-index: 3;
}

.iphone-chassis::after {
  content: "";
  position: absolute;
  top: var(--iphone-pad);
  bottom: var(--iphone-pad);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - var(--iphone-pad) * 2);
  border-radius: var(--iphone-screen-radius);
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  z-index: 2;
}

/* Side hardware — flush, slim titanium keys */
.iphone-hw {
  position: absolute;
  z-index: 4;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(
    180deg,
    #5c5c60 0%,
    #3a3a3c 45%,
    #2e2e30 55%,
    #48484a 100%
  );
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.12);
}

.iphone-hw-mute {
  left: -1px;
  top: 16.5%;
  height: 2.2%;
  min-height: 12px;
}

.iphone-hw-vol-up {
  left: -1px;
  top: 20.5%;
  height: 5.8%;
  min-height: 32px;
}

.iphone-hw-vol-down {
  left: -1px;
  top: 27.8%;
  height: 5.8%;
  min-height: 32px;
}

.iphone-hw-power {
  right: -1px;
  top: 22%;
  height: 8.2%;
  min-height: 44px;
}

.iphone-port {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: #121214;
  box-shadow: inset 0 0.5px 1px rgba(0, 0, 0, 0.95);
}

.device-frame {
  --poster-w: 148px;
  --poster-h: 210px;
  --carousel-shift-1: 72px;
  --carousel-shift-2: 120px;
  --carousel-wrap-h: 248px;
  --carousel-h: 220px;
  --thumb-w: 92px;

  position: relative;
  z-index: 1;
  border-radius: var(--iphone-screen-radius);
  background: #000;
  overflow: hidden;
  aspect-ratio: 440 / 956;
  width: 100%;
  height: auto;
  max-height: var(--phone-max-h);
  box-shadow: inset 0 0 0 1px #000;
  container-type: inline-size;
  container-name: device;
}

@media (prefers-reduced-motion: reduce) {
  .device-glow::before { animation: none; }
}

.device-island {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 24px;
  background: #000;
  border-radius: 16px;
  z-index: 30;
}

.device-status {
  position: absolute;
  top: 13px;
  left: 0;
  right: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  pointer-events: none;
}

.device-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
}

.device-icons svg {
  display: block;
  height: 11px;
  width: auto;
}

.device-home-bar {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
  z-index: 25;
  pointer-events: none;
}

/* Screens */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(55, 62, 82, 0.35), transparent 55%),
    #0d0d0f;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.screen.is-active {
  opacity: 1;
  visibility: visible;
}

.screen-home,
.screen-detail {
  /* Inherit `position: absolute; inset: 0` from `.screen` so the dock pins to the device bottom. */
  background: transparent;
}

.series-backdrop {
  position: absolute;
  inset: -20% -15%;
  z-index: 0;
  background-size: cover;
  background-position: center 30%;
  filter: blur(52px) saturate(1.25) brightness(0.65);
  transform: scale(1.12);
  opacity: 0.9;
  transition: background-image 0.55s var(--ease), opacity 0.4s var(--ease);
  pointer-events: none;
}

.series-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.15) 0%, rgba(8, 8, 10, 0.55) 38%, rgba(13, 13, 15, 0.94) 72%, #0d0d0f 100%),
    radial-gradient(ellipse 90% 60% at 50% 20%, transparent 0%, rgba(13, 13, 15, 0.75) 100%);
}

.screen-home > :not(.series-backdrop):not(.app-dock-wrap):not(.device-home-bar),
.screen-detail > :not(.series-backdrop):not(.device-home-bar) {
  position: relative;
  z-index: 1;
}

.screen-detail {
  overflow-y: auto;
  scrollbar-width: none;
}

.screen-detail::-webkit-scrollbar { display: none; }

.interaction-hint {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}

.interaction-hint-scroll {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

/* 3D carousel */
.carousel-wrap {
  flex-shrink: 0;
  height: var(--carousel-wrap-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 52px;
  touch-action: pan-x;
  overflow: hidden;
}

.carousel {
  position: relative;
  width: 100%;
  height: var(--carousel-h);
  perspective: 900px;
}

.poster-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--poster-w);
  height: var(--poster-h);
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 22px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition:
    transform 0.55s var(--ease),
    opacity 0.45s var(--ease),
    filter 0.45s var(--ease);
  will-change: transform;
}

.poster-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
}

.poster-art {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.poster-roomies {
  background-image:
    linear-gradient(180deg, transparent 42%, rgba(12, 18, 42, 0.92) 100%),
    url("/posters/roomies.jpg");
}

.poster-nothing {
  background-image:
    linear-gradient(180deg, transparent 40%, rgba(18, 18, 22, 0.94) 100%),
    url("/posters/nothing.jpg");
}

.poster-nasa {
  background-image:
    linear-gradient(180deg, transparent 38%, rgba(8, 16, 48, 0.92) 100%),
    url("/posters/nasa.jpg");
}

.poster-shinto {
  background-image:
    linear-gradient(180deg, transparent 36%, rgba(48, 12, 18, 0.9) 100%),
    url("/posters/shinto.jpg");
}

.poster-latenight {
  background-image:
    linear-gradient(180deg, transparent 30%, rgba(28, 14, 6, 0.92) 100%),
    url("/posters/latenight.png");
}

.poster-card[data-pos="center"] {
  transform: translate(-50%, -50%) scale(1) rotateY(0deg);
  z-index: 5;
  opacity: 1;
  filter: none;
}

.poster-card[data-pos="left-1"] {
  transform: translate(calc(-50% - var(--carousel-shift-1)), -50%) scale(0.88) rotateY(18deg);
  z-index: 4;
  opacity: 0.75;
  filter: brightness(0.7);
}

.poster-card[data-pos="left-2"] {
  transform: translate(calc(-50% - var(--carousel-shift-2)), -50%) scale(0.78) rotateY(28deg);
  z-index: 2;
  opacity: 0.35;
  filter: brightness(0.5) blur(1px);
  pointer-events: none;
}

.poster-card[data-pos="right-1"] {
  transform: translate(calc(-50% + var(--carousel-shift-1)), -50%) scale(0.88) rotateY(-18deg);
  z-index: 4;
  opacity: 0.75;
  filter: brightness(0.7);
}

.poster-card[data-pos="right-2"] {
  transform: translate(calc(-50% + var(--carousel-shift-2)), -50%) scale(0.78) rotateY(-28deg);
  z-index: 2;
  opacity: 0.35;
  filter: brightness(0.5) blur(1px);
  pointer-events: none;
}

.poster-card[data-pos="hidden"] {
  transform: translate(-50%, -50%) scale(0.6) rotateY(0deg);
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

/* Feature meta */
.feature-meta {
  flex-shrink: 0;
  text-align: center;
  padding: 10px 20px 0;
}

.feature-tagline {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--muted);
}

.feature-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.pill {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.pill-rating .star {
  color: #f5c518;
  margin-right: 2px;
}

.feature-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.dot.is-active {
  width: 8px;
  height: 8px;
  background: #fff;
}

/* More series (scroll rail) */
.more-series {
  flex: 1;
  min-height: 0;
  padding: 4px 0 72px;
  display: flex;
  flex-direction: column;
}

.more-series-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 20px 8px;
}

.section-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.see-all {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.see-all:hover { color: var(--text); }

.more-series-rail {
  display: flex;
  gap: 12px;
  padding: 0 20px 4px;
  overflow-x: auto;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, #000 82%, transparent);
  -webkit-overflow-scrolling: touch;
}

.more-series-rail::-webkit-scrollbar { display: none; }

.thumb-card {
  flex-shrink: 0;
  width: var(--thumb-w);
}

.thumb {
  width: var(--thumb-w);
  height: calc(var(--thumb-w) * 122 / 92);
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.thumb-title {
  margin: 8px 0 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thumb-meta {
  margin: 0;
  font-size: 10px;
  color: var(--muted);
}

.thumb-nasa {
  background-image:
    linear-gradient(165deg, rgba(8, 16, 48, 0.35), rgba(8, 16, 48, 0.35)),
    url("/posters/nasa.jpg");
}

.thumb-shinto {
  background-image:
    linear-gradient(155deg, rgba(48, 12, 18, 0.35), rgba(48, 12, 18, 0.35)),
    url("/posters/shinto.jpg");
}

.thumb-lounge {
  background-image:
    linear-gradient(150deg, rgba(30, 22, 12, 0.4), rgba(30, 22, 12, 0.4)),
    url("/posters/soft-launch.jpg");
}

.thumb-projector {
  background-image:
    linear-gradient(150deg, rgba(20, 16, 10, 0.45), rgba(20, 16, 10, 0.45)),
    url("/posters/frame-rate.jpg");
}

.thumb-wildlife {
  background-image:
    linear-gradient(155deg, rgba(18, 28, 14, 0.4), rgba(18, 28, 14, 0.4)),
    url("/posters/wild-north.jpg");
}

/* Bottom tab bar — mirrors mobile ArcTabBar */
.app-dock-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 15;
  display: flex;
  justify-content: center;
  padding: 0 12px;
  pointer-events: none;
}

.app-dock {
  --dock-tab-w: clamp(48px, 15.5cqi, 68px);
  --dock-tab-gap: clamp(6px, 2.5cqi, 14px);
  --dock-pad-h: clamp(6px, 2.5cqi, 11px);
  --dock-inner-h: clamp(44px, 12cqi, 52px);
  --dock-safe-bottom: clamp(8px, 2.5cqi, 12px);
  --dock-highlight-inset-x: -4px;
  --dock-highlight-inset-y: 2px;
  --dock-icon-active: #fafafa;
  --dock-icon-inactive: rgba(250, 250, 250, 0.42);

  position: relative;
  display: flex;
  align-items: stretch;
  gap: var(--dock-tab-gap);
  min-height: var(--dock-inner-h);
  padding: 0 var(--dock-pad-h) var(--dock-safe-bottom);
  border-radius: 26px;
  pointer-events: auto;
  background: rgba(9, 10, 14, 0.72);
  backdrop-filter: blur(32px) saturate(1.1);
  -webkit-backdrop-filter: blur(32px) saturate(1.1);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.14);
}

.app-dock::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(17, 19, 24, 0.1);
  pointer-events: none;
}

.dock-highlight {
  position: absolute;
  top: var(--dock-highlight-inset-y);
  bottom: var(--dock-highlight-inset-y);
  left: 0;
  width: calc(var(--dock-tab-w) - var(--dock-highlight-inset-x) * 2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  pointer-events: none;
  will-change: transform, width;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.dock-tab {
  position: relative;
  z-index: 1;
  flex: 0 0 var(--dock-tab-w);
  width: var(--dock-tab-w);
  min-height: var(--dock-inner-h);
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--dock-icon-inactive);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  font: inherit;
  transition: color 0.2s var(--ease);
}

.dock-tab:hover { color: rgba(250, 250, 250, 0.65); }

.dock-tab.is-active {
  color: var(--dock-icon-active);
}

.dock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.dock-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dock-stream-play {
  display: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--dock-icon-active);
  align-items: center;
  justify-content: center;
}

.dock-tab.is-active .dock-icon--stream > svg {
  display: none;
}

.dock-tab.is-active .dock-icon--stream .dock-stream-play {
  display: flex;
}

.dock-stream-play svg {
  width: 11px;
  height: 11px;
  margin-left: 1px;
  fill: #090d15;
  stroke: none;
}

.dock-tab.is-active .dock-icon--home svg,
.dock-tab.is-active .dock-icon--forum svg,
.dock-tab.is-active .dock-icon--profile svg {
  fill: currentColor;
}

.dock-label {
  font-size: 12px;
  line-height: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: inherit;
}

.dock-tab.is-active .dock-label {
  font-weight: 500;
}

/* Detail screen */
.detail-hero {
  position: relative;
  height: 200px;
  flex-shrink: 0;
}

.detail-hero-art {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  border-radius: 0 0 28px 28px;
}

.detail-hero-roomies {
  background-image:
    linear-gradient(180deg, transparent 45%, rgba(13, 13, 15, 0.97) 100%),
    url("/posters/roomies.jpg");
}

.detail-back,
.detail-more {
  position: absolute;
  top: 48px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}

.detail-back { left: 16px; }
.detail-more { right: 16px; }

.detail-back svg,
.detail-more svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.detail-more svg { fill: currentColor; stroke: none; }

.detail-play {
  position: absolute;
  left: 50%;
  bottom: -24px;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.detail-play svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  margin-left: 3px;
}

.detail-body {
  padding: 36px 20px 32px;
  flex: 1;
}

.detail-tagline {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--muted);
}

.detail-title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.detail-rating {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-size: 14px;
}

.detail-rating .star {
  color: #f5c518;
  font-size: 16px;
}

.detail-rating strong {
  font-size: 18px;
  font-weight: 700;
}

.detail-rating span { color: var(--muted); }

.detail-rating em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  width: 100%;
}

.detail-reactions {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
}

.detail-reactions span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.detail-reactions svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-head h3,
.detail-synopsis h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.episode-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 20px;
  padding-bottom: 4px;
}

.episode-rail::-webkit-scrollbar { display: none; }

.episode-card {
  flex-shrink: 0;
  width: 88px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: flex-end;
  padding: 8px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.episode-card span {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.ep-1 {
  background-image:
    linear-gradient(160deg, rgba(12, 18, 42, 0.5), rgba(12, 18, 42, 0.5)),
    url("/posters/roomies.jpg");
}

.ep-2 {
  background-image:
    linear-gradient(155deg, rgba(20, 24, 38, 0.55), rgba(20, 24, 38, 0.55)),
    url("/posters/nothing.jpg");
}

.ep-3 {
  background-image:
    linear-gradient(150deg, rgba(18, 22, 36, 0.55), rgba(18, 22, 36, 0.55)),
    url("/posters/nasa.jpg");
}

.ep-4 {
  background-image:
    linear-gradient(150deg, rgba(16, 20, 34, 0.55), rgba(16, 20, 34, 0.55)),
    url("/posters/shinto.jpg");
}

.detail-synopsis p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

@container device (max-width: 340px) {
  .device-frame {
    --poster-w: 118px;
    --poster-h: 167px;
    --carousel-shift-1: 52px;
    --carousel-shift-2: 86px;
    --carousel-wrap-h: 200px;
    --carousel-h: 178px;
    --thumb-w: 76px;
  }

  .carousel-wrap {
    padding-top: 44px;
  }

  .feature-title {
    font-size: 18px;
  }

  .feature-meta {
    padding-inline: 14px;
  }

  .more-series-head,
  .more-series-rail {
    padding-inline: 14px;
  }

  .dock-label {
    font-size: 10px;
    line-height: 11px;
  }

  .device-island {
    width: 72px;
    height: 20px;
  }

  .device-status {
    padding-inline: 18px;
    font-size: 10px;
  }

  .device-home-bar {
    width: 96px;
  }
}

@container device (max-width: 280px) {
  .device-frame {
    --poster-w: 100px;
    --poster-h: 142px;
    --carousel-shift-1: 42px;
    --carousel-shift-2: 70px;
    --carousel-wrap-h: 178px;
    --carousel-h: 158px;
    --thumb-w: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .poster-card,
  .screen,
  .dot,
  .dock-highlight {
    transition: none;
  }
}
