/* Web1 3.0 homepage content system
 *
 * Scope: the homepage navigation, every section below Hero, and the existing
 * episode-selection modal. Data, routes, NancyFx syntax, imperative display
 * values, API calls and legacy class names remain owned by index.html.
 *
 * This sheet deliberately consolidates the 3.0 content treatment in one pass.
 * It loads after home-v18.css and the Hero sheets.
 */

html {
  scroll-snap-type: y mandatory !important;
  scroll-padding-top: 0;
}

body.idx-home {
  --home3-signal: #c7f224;
  --home3-signal-strong: #d9f45b;
  --home3-ink: #090b0a;
  --home3-surface: #10140f;
  --home3-surface-2: #171c15;
  --home3-surface-3: #20271d;
  --home3-paper: #f0f3e9;
  --home3-muted: #a7b09d;
  --home3-dim: #6f7969;
  --home3-line: rgba(213, 237, 188, 0.18);
  --home3-line-strong: rgba(213, 237, 188, 0.34);
  --home3-shadow: rgba(1, 5, 2, 0.62);
  --home3-nav-height: 58px;
  --home3-content: 1760px;
  --home3-edge: clamp(18px, 3.4vw, 64px);
  --home3-section-x: max(var(--home3-edge), calc((100vw - var(--home3-content)) / 2));
  --home3-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --home3-slow: 420ms cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 0;
  overflow-x: clip;
  color: var(--home3-paper);
  background:
    linear-gradient(90deg, transparent 0 4.8%, rgba(199, 242, 36, 0.025) 4.8% 5%, transparent 5% 95%, rgba(199, 242, 36, 0.025) 95% 95.2%, transparent 95.2%),
    repeating-linear-gradient(0deg, rgba(239, 243, 233, 0.014) 0 1px, transparent 1px 5px),
    var(--home3-ink);
  font-family: "Segoe UI Variable Display", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", sans-serif;
}

body.idx-home.is-modal-open {
  overflow: hidden;
}

[data-theme="light"] body.idx-home {
  --home3-ink: #e8ebdf;
  --home3-surface: #dfe4d7;
  --home3-surface-2: #d3dacb;
  --home3-surface-3: #c5cebc;
  --home3-paper: #111510;
  --home3-muted: #4f5a4b;
  --home3-dim: #687262;
  --home3-line: rgba(21, 31, 20, 0.18);
  --home3-line-strong: rgba(21, 31, 20, 0.34);
  --home3-shadow: rgba(45, 58, 40, 0.22);
  background:
    linear-gradient(90deg, transparent 0 4.8%, rgba(58, 79, 42, 0.04) 4.8% 5%, transparent 5% 95%, rgba(58, 79, 42, 0.04) 95% 95.2%, transparent 95.2%),
    repeating-linear-gradient(0deg, rgba(21, 31, 20, 0.024) 0 1px, transparent 1px 5px),
    var(--home3-ink);
}

.idx-home a:focus-visible,
.idx-home button:focus-visible,
.idx-home [tabindex]:focus-visible {
  outline: 2px solid var(--home3-signal-strong);
  outline-offset: 4px;
}

.idx-home .hero3,
.idx-home .idx-body > .idx-section {
  scroll-snap-align: start;
  scroll-snap-stop: always !important;
}

/* --------------------------------------------------------------------------
   Fixed navigation banner
   -------------------------------------------------------------------------- */

.idx-home .idx-nav {
  z-index: 300;
  height: var(--home3-nav-height);
  padding: 0 var(--home3-edge);
  gap: 0;
  border: 0;
  border-bottom: 1px solid var(--home3-line);
  color: var(--home3-paper);
  background:
    linear-gradient(90deg, rgba(199, 242, 36, 0.11) 0 4px, transparent 4px),
    color-mix(in srgb, var(--home3-ink) 95%, transparent);
  box-shadow: 0 18px 46px color-mix(in srgb, var(--home3-shadow) 72%, transparent);
  backdrop-filter: blur(12px) saturate(112%);
  -webkit-backdrop-filter: blur(12px) saturate(112%);
}

.idx-home .idx-nav::after {
  content: "";
  position: absolute;
  right: var(--home3-edge);
  bottom: -1px;
  width: clamp(80px, 10vw, 170px);
  height: 2px;
  background: var(--home3-signal);
  pointer-events: none;
}

.idx-home .idx-nav__brand {
  min-width: 0;
  margin-right: clamp(16px, 2vw, 30px);
  gap: 10px;
}

.idx-home .idx-nav__icon {
  width: 32px;
  height: 32px;
  border: 1px solid color-mix(in srgb, var(--home3-signal) 72%, var(--home3-paper));
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  color: #0b0d09;
  background: var(--home3-signal-strong);
  box-shadow: none;
}

.idx-home .idx-nav__name {
  overflow: hidden;
  color: var(--home3-paper);
  font-family: Bahnschrift, "Arial Narrow", "Microsoft YaHei UI", sans-serif;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.idx-home .idx-nav__links {
  min-width: 0;
  gap: 12px;
}

.idx-home .idx-nav__group {
  min-width: 0;
}

.idx-home .idx-nav__group--sections,
.idx-home .idx-nav__group--pages {
  gap: 1px;
}

.idx-home .idx-nav__group--sections {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.idx-home .idx-nav__group-label {
  padding: 0 8px 0 0;
  color: var(--home3-dim);
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.13em;
}

.idx-home .idx-nav__divider {
  width: 1px;
  height: 24px;
  background: var(--home3-line-strong);
}

.idx-home .idx-nav__link,
.idx-home .idx-nav__page-link {
  position: relative;
  min-height: 32px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 0;
  color: var(--home3-muted);
  background: transparent;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  transition: color var(--home3-fast), border-color var(--home3-fast), background-color var(--home3-fast), transform var(--home3-fast);
}

.idx-home .idx-nav__link::after,
.idx-home .idx-nav__page-link::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 3px;
  left: 8px;
  height: 1px;
  background: var(--home3-signal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--home3-fast);
}

.idx-home .idx-nav__link:hover,
.idx-home .idx-nav__page-link:hover {
  color: var(--home3-paper);
  border-color: var(--home3-line);
  background: color-mix(in srgb, var(--home3-paper) 5%, transparent);
  transform: translateY(-1px);
}

.idx-home .idx-nav__link:hover::after,
.idx-home .idx-nav__page-link:hover::after {
  transform: scaleX(1);
}

.idx-home .idx-nav__link.active {
  border-color: var(--home3-signal);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
  color: #0b0d09;
  background: var(--home3-signal-strong);
  box-shadow: none;
}

.idx-home .idx-nav__link.active::after {
  display: none;
}

.idx-home .idx-nav__page-link i {
  color: var(--home3-dim);
  font-size: 10px;
  transition: color var(--home3-fast);
}

.idx-home .idx-nav__page-link:hover i {
  color: var(--home3-signal-strong);
}

.idx-home .idx-nav__page-link--utility {
  margin-left: 3px;
  border-left-color: var(--home3-line-strong);
}

.idx-home .idx-nav__end {
  gap: 6px;
}

.idx-home .idx-nav__menu-btn {
  display: none;
}

.idx-home .idx-nav__search-btn,
.idx-home .idx-nav__menu-btn,
.idx-home .theme-toggle,
.idx-home .idx-nav__avatar {
  width: 34px;
  height: 34px;
  border: 1px solid var(--home3-line);
  border-radius: 2px;
  color: var(--home3-muted);
  background: color-mix(in srgb, var(--home3-surface) 88%, transparent);
  box-shadow: none;
  transition: color var(--home3-fast), border-color var(--home3-fast), background-color var(--home3-fast), transform var(--home3-fast);
}

.idx-home .idx-nav__search-btn:hover,
.idx-home .idx-nav__menu-btn:hover,
.idx-home .theme-toggle:hover,
.idx-home .idx-nav__avatar:hover {
  color: #0b0d09;
  border-color: var(--home3-signal);
  background: var(--home3-signal-strong);
  transform: translateY(-1px);
}

.idx-home .idx-nav__search-btn:active,
.idx-home .idx-nav__menu-btn:active,
.idx-home .theme-toggle:active,
.idx-home .idx-nav__avatar:active {
  transform: translateY(1px) scale(0.98);
}

/* --------------------------------------------------------------------------
   Loading, empty, and partial-failure status
   -------------------------------------------------------------------------- */

.idx-home .home-status {
  top: calc(var(--home3-nav-height) + 16px);
  right: var(--home3-edge);
  width: min(430px, calc(100% - (var(--home3-edge) * 2)));
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid var(--home3-line-strong);
  border-left: 5px solid var(--home3-signal);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  color: var(--home3-paper);
  background:
    repeating-linear-gradient(0deg, rgba(239, 243, 233, 0.025) 0 1px, transparent 1px 4px),
    color-mix(in srgb, var(--home3-surface) 94%, transparent);
  box-shadow: 0 22px 64px var(--home3-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.idx-home .home-status__icon {
  border-radius: 0;
  color: #0b0d09;
  background: var(--home3-signal-strong);
}

.idx-home .home-status strong {
  color: var(--home3-paper);
}

.idx-home .home-status small {
  color: var(--home3-muted);
}

.idx-home .home-status.is-error {
  border-left-color: #ff694f;
}

.idx-home .home-status.is-error .home-status__icon {
  color: #180705;
  background: #ff694f;
}

.idx-home .home-status .btn-ghost {
  min-height: 34px;
  border: 1px solid var(--home3-line-strong);
  border-radius: 0;
  color: var(--home3-paper);
  background: var(--home3-surface-2);
}

.idx-home .home-status .btn-ghost:hover {
  color: #0b0d09;
  border-color: var(--home3-signal);
  background: var(--home3-signal-strong);
}

/* --------------------------------------------------------------------------
   Section canvas and editorial headings
   -------------------------------------------------------------------------- */

.idx-home .idx-body {
  width: 100%;
  max-width: none;
  padding: 0;
  color: var(--home3-paper);
  background: var(--home3-ink);
}

.idx-home .idx-body > .idx-section {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: clamp(64px, 7vh, 82px) var(--home3-section-x) clamp(38px, 5vh, 64px);
  overflow: visible;
  scroll-snap-align: none;
  animation: none;
  isolation: isolate;
}

.idx-home #cwSection,
.idx-home #luSection,
.idx-home #lfSection,
.idx-home #mediaSection {
  min-height: 100dvh;
  flex-direction: column;
  justify-content: center;
  overflow: clip;
  scroll-snap-align: start;
  scroll-snap-stop: always !important;
}

.idx-home #cwSection,
.idx-home #lfSection {
  padding-right: var(--home3-edge);
  padding-left: var(--home3-edge);
}

.idx-home #luSection,
.idx-home #mediaSection {
  justify-content: flex-start;
}

.idx-home .idx-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--home3-surface) 0 5%, transparent 5% 92%, color-mix(in srgb, var(--home3-surface-2) 52%, transparent) 92% 100%),
    repeating-linear-gradient(90deg, transparent 0 7.95%, rgba(239, 243, 233, 0.022) 7.95% 8%, transparent 8% 16%),
    repeating-linear-gradient(0deg, rgba(239, 243, 233, 0.018) 0 1px, transparent 1px 5px),
    var(--home3-ink);
}

.idx-home .idx-section:nth-child(odd)::before {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--home3-surface-2) 52%, transparent) 0 8%, transparent 8% 95%, var(--home3-surface) 95% 100%),
    repeating-linear-gradient(90deg, transparent 0 7.95%, rgba(239, 243, 233, 0.022) 7.95% 8%, transparent 8% 16%),
    repeating-linear-gradient(0deg, rgba(239, 243, 233, 0.018) 0 1px, transparent 1px 5px),
    var(--home3-ink);
}

.idx-home .idx-section::after {
  content: "";
  position: absolute;
  inset: clamp(66px, 7.2vh, 82px) var(--home3-edge) clamp(22px, 3vh, 36px);
  z-index: 0;
  border: 1px solid var(--home3-line);
  border-top-color: color-mix(in srgb, var(--home3-signal) 70%, var(--home3-line));
  pointer-events: none;
}

.idx-home .idx-section > * {
  position: relative;
  z-index: 1;
}

.idx-home .sec-hd {
  width: 100%;
  min-height: 68px;
  margin: 0 0 clamp(18px, 2.5vh, 28px);
  padding: 0 clamp(12px, 1.2vw, 20px) 13px;
  align-items: flex-end;
  border-bottom: 1px solid var(--home3-line-strong);
}

.idx-home .sec-hd::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: clamp(12px, 1.2vw, 20px);
  width: clamp(70px, 8vw, 148px);
  height: 3px;
  background: var(--home3-signal);
}

.idx-home .sec-hd__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--home3-signal-strong);
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.idx-home .sec-hd__title {
  display: block;
  margin: 0;
  color: var(--home3-paper);
  font-family: Bahnschrift, "Arial Narrow", "Microsoft YaHei UI", sans-serif;
  font-size: clamp(34px, 3.35vw, 54px);
  font-weight: 840;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.idx-home .sec-hd__title::before {
  display: none;
}

.idx-home .sec-hd__summary {
  margin: 9px 0 0;
  color: var(--home3-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.idx-home .sec-hd__summary span {
  color: var(--home3-signal-strong);
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-weight: 820;
}

.idx-home .sec-hd__more {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--home3-line-strong);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
  color: var(--home3-muted);
  background: var(--home3-surface);
  font-size: 11px;
  font-weight: 700;
  transition: color var(--home3-fast), border-color var(--home3-fast), background-color var(--home3-fast), transform var(--home3-fast);
}

.idx-home .sec-hd__more:hover {
  color: #0b0d09;
  border-color: var(--home3-signal);
  background: var(--home3-signal-strong);
  transform: translateY(-2px);
}

.idx-home .sec-hd__more:active {
  transform: translateY(1px) scale(0.98);
}

/* --------------------------------------------------------------------------
   Shared printed media-case protocol
   -------------------------------------------------------------------------- */

.idx-home .media-case {
  --case-yaw: -4.5deg;
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 135 / 171;
  gap: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  color: #f4f6ef;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-align: left;
  text-decoration: none;
  perspective: 1100px;
  transform-style: flat;
  animation: none;
  isolation: isolate;
}

.idx-home .media-case::before,
.idx-home .media-case::after {
  display: none;
}

.idx-home .continue-row .media-case,
.idx-home .continue-row .media-case:hover,
.idx-home .continue-row .media-case:focus-visible,
.idx-home .update-timeline .media-case,
.idx-home .update-timeline .media-case:hover,
.idx-home .update-timeline .media-case:focus-visible,
.idx-home .follow-grid .media-case,
.idx-home .follow-grid .media-case:hover,
.idx-home .follow-grid .media-case:focus-visible {
  transform: none !important;
  filter: none !important;
}

.idx-home .media-case__shadow {
  position: absolute;
  inset: 5px -4px -5px 4px;
  z-index: 0;
  border: 1px solid color-mix(in srgb, var(--home3-signal) 14%, var(--home3-line));
  background:
    repeating-linear-gradient(135deg, rgba(199, 242, 36, 0.08) 0 1px, transparent 1px 7px),
    color-mix(in srgb, var(--home3-surface-3) 82%, transparent);
  opacity: 0.72;
  pointer-events: none;
  transform: skewY(-0.8deg);
  transform-origin: top left;
  transition: inset var(--home3-slow), opacity var(--home3-fast), transform var(--home3-slow), background-color var(--home3-fast);
}

.idx-home .media-case__surface {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: visible;
  border: 1px solid var(--home3-line-strong);
  border-radius: 1px;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
  background: var(--home3-surface-2);
  box-shadow: 0 8px 14px color-mix(in srgb, var(--home3-shadow) 58%, transparent);
  transform: translate3d(0, 0, 0) rotateX(0) rotateY(0) scale(1);
  transform-origin: 50% 74%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform var(--home3-slow), border-color var(--home3-fast), box-shadow var(--home3-slow);
}

.idx-home .media-case.is-pointer-active .media-case__surface {
  will-change: transform;
  transition: border-color var(--home3-fast), box-shadow var(--home3-slow);
}

.idx-home .media-case.is-pointer-active .media-case__shadow,
.idx-home .media-case.is-pointer-active .media-case__cover,
.idx-home .media-case.is-pointer-active .pc__img {
  will-change: transform;
}

.idx-home .media-case.is-pointer-active .media-case__shadow {
  transition: inset var(--home3-slow), background-color var(--home3-fast);
}

.idx-home .media-case.is-pointer-active .media-case__cover,
.idx-home .media-case.is-pointer-active .pc__img {
  transition: filter var(--home3-slow);
}

.idx-home .media-case__edge {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: -5px;
  z-index: -1;
  width: 6px;
  border: 1px solid color-mix(in srgb, var(--home3-line-strong) 84%, transparent);
  border-right: 0;
  background:
    repeating-linear-gradient(0deg, rgba(239, 243, 233, 0.12) 0 1px, transparent 1px 5px),
    var(--home3-surface-3);
  opacity: 0.82;
  pointer-events: none;
  transform: translateZ(-4px) rotateY(-18deg);
  transform-origin: right center;
}

.idx-home .media-case__frame,
.idx-home .media-case__frame.pc__frame,
.idx-home .media-case__frame.timeline-card__frame,
.idx-home .media-case__frame.follow-card__frame {
  position: absolute;
  inset: 5px;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  overflow: hidden;
  border: 1px solid rgba(239, 243, 233, 0.12);
  border-radius: 0;
  background: #090b0a;
  box-shadow: inset 6px 0 0 rgba(239, 243, 233, 0.05), inset -9px 0 18px rgba(0, 0, 0, 0.28);
  transform: translateZ(1px);
}

.idx-home .media-case__frame::before,
.idx-home .media-case__frame::after {
  display: none;
}

.idx-home .media-case__sheen {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--case-light-x, 42%) var(--case-light-y, 28%), rgba(255, 255, 255, 0.78) 0 2%, transparent 13% 31%),
    conic-gradient(from 112deg at var(--case-light-x, 42%) var(--case-light-y, 28%), transparent 0 7%, rgba(67, 255, 208, 0.48) 12%, rgba(84, 117, 255, 0.52) 19%, rgba(255, 75, 213, 0.5) 27%, rgba(255, 226, 71, 0.58) 36%, transparent 46% 58%, rgba(77, 247, 224, 0.38) 67%, transparent 77% 100%),
    repeating-linear-gradient(112deg, transparent 0 13px, rgba(255, 255, 255, 0.12) 14px, transparent 17px 31px),
    linear-gradient(108deg, transparent 0 31%, rgba(238, 255, 204, 0.28) 37%, transparent 45%);
  background-blend-mode: screen, color-dodge, screen, screen;
  mix-blend-mode: screen;
  opacity: 0.42;
  filter: saturate(1.32) contrast(1.06);
  transform: translateZ(5px);
  transition: opacity var(--home3-fast);
}

.idx-home .media-case.is-pointer-active .media-case__sheen {
  opacity: 1;
  transition: opacity var(--home3-fast);
}

.idx-home .media-case__cover,
.idx-home .media-case .pc__img,
.idx-home .media-case .timeline-card__cover,
.idx-home .media-case .follow-card__cover {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  background: var(--home3-surface-2);
  box-shadow: none;
  filter: saturate(0.82) contrast(1.09) brightness(0.88);
  transform: scale(1.012) translateZ(2px);
  backface-visibility: hidden;
  transition: filter var(--home3-slow), transform var(--home3-slow);
}

.idx-home .media-case .pc__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  width: auto;
  height: auto;
  place-items: center;
  color: var(--home3-signal-strong);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--home3-signal) 13%, transparent), transparent 48%),
    repeating-linear-gradient(135deg, rgba(239, 243, 233, 0.035) 0 1px, transparent 1px 7px),
    #0a0d09;
}

.idx-home .media-case__info {
  position: absolute;
  right: 1px;
  bottom: 1px;
  left: 1px;
  z-index: 9;
  display: block;
  min-width: 0;
  min-height: 0;
  padding: clamp(46px, 26%, 76px) 10px 11px;
  overflow: hidden;
  color: #f5f7f0;
  background: linear-gradient(180deg, transparent 0, rgba(3, 5, 3, 0.74) 38%, rgba(3, 5, 3, 0.98) 76%);
  text-shadow: 0 2px 8px #000, 0 0 2px #000;
  pointer-events: none;
  transform: none !important;
  transform-style: flat;
  backface-visibility: visible;
}

.idx-home .media-case__kicker {
  margin-bottom: 4px;
  overflow: hidden;
  color: var(--home3-signal-strong);
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 9px;
  font-weight: 820;
  line-height: 1;
  letter-spacing: 0.07em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.idx-home .media-case__title {
  position: static;
  display: -webkit-box;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: #f5f7f0;
  font-size: 12px;
  font-weight: 790;
  line-height: 1.22;
  text-shadow: 0 2px 8px #000, 0 0 2px #000;
  transform: none !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.idx-home .media-case__meta {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: rgba(239, 243, 233, 0.7);
  font-size: 9px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: none !important;
}

.idx-home .media-case:hover,
.idx-home .media-case:focus-visible,
.idx-home .media-case.is-pointer-active {
  z-index: 10;
}

.idx-home .media-case:hover .media-case__surface,
.idx-home .media-case:focus-visible .media-case__surface {
  z-index: 4;
  border-color: var(--home3-signal);
  box-shadow: 0 12px 18px color-mix(in srgb, var(--home3-shadow) 74%, transparent);
}

.idx-home .media-case:not(.is-pointer-active):hover .media-case__surface,
.idx-home .media-case:focus-visible .media-case__surface {
  transform: translate3d(0, -9px, 30px) rotateX(2.6deg) rotateY(var(--case-yaw)) scale(1.035);
}

.idx-home .media-case:hover .media-case__shadow,
.idx-home .media-case:focus-visible .media-case__shadow {
  inset: 7px -7px -8px 6px;
  opacity: 0.78;
  transform: skewY(-1.1deg);
}

.idx-home .media-case:hover .media-case__sheen,
.idx-home .media-case:focus-visible .media-case__sheen {
  opacity: 0.78;
}

.idx-home .media-case:not(.is-pointer-active):hover .media-case__cover,
.idx-home .media-case:focus-visible .media-case__cover,
.idx-home .media-case:not(.is-pointer-active):hover .pc__img,
.idx-home .media-case:focus-visible .pc__img {
  filter: saturate(1.02) contrast(1.1) brightness(0.96);
  transform: scale(1.055) translateZ(8px);
}

.idx-home .media-case:hover .media-case__title,
.idx-home .media-case:focus-visible .media-case__title {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Continue watching: exact six by two printed case wall
   -------------------------------------------------------------------------- */

.idx-home .continue-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-template-rows: none;
  grid-auto-columns: auto;
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 1.45vw, 26px);
  width: 100%;
  margin: 0;
  padding: 12px clamp(12px, 1.2vw, 20px) 26px;
  overflow: visible;
  perspective: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.idx-home .continue-row .media-case__surface {
  animation: home3-case-surface-in 560ms calc(min(var(--card-index, 0), 11) * 34ms) cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.idx-home .continue-row .media-case__info {
  animation: home3-case-info-in 360ms calc(180ms + (min(var(--card-index, 0), 11) * 34ms)) ease-out backwards;
}

.idx-home .pc--continue .pc__overlay {
  display: none;
}

.idx-home .pc--continue .pc__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 8;
  min-width: 42px;
  padding: 5px 8px;
  border: 1px solid rgba(217, 244, 91, 0.82);
  border-radius: 0;
  color: #ffffff;
  background: rgba(4, 7, 5, 0.94);
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: clamp(11px, 0.62vw, 13px);
  font-weight: 860;
  line-height: 1.05;
  letter-spacing: 0.025em;
  text-align: center;
  text-shadow: 0 1px 1px #000;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.62);
}

.idx-home .pc--continue .pc__play {
  z-index: 8;
  width: 42px;
  height: 42px;
  border: 1px solid var(--home3-signal);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  color: #0b0d09;
  background: var(--home3-signal-strong);
  opacity: 0;
  transform: translate(-50%, -44%) scale(0.78) translateZ(18px);
  transition: opacity var(--home3-fast), transform var(--home3-slow);
}

.idx-home .pc--continue:hover .pc__play,
.idx-home .pc--continue:focus-visible .pc__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) translateZ(24px);
}

.idx-home .media-case .pc__bar {
  position: absolute;
  right: 7px;
  bottom: 5px;
  left: 7px;
  z-index: 12;
  height: 3px;
  border-radius: 0;
  background: rgba(239, 243, 233, 0.18);
}

.idx-home .media-case .pc__bar-fill {
  height: 100%;
  border-radius: 0;
  background: var(--home3-signal-strong);
  box-shadow: none;
}

.idx-home .pc--continue .pc__info .pc__title {
  position: static;
  right: auto;
  bottom: auto;
  left: auto;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Recent updates: editorial rail plus stable date slots and lanes
   -------------------------------------------------------------------------- */

.idx-home .idx-section--updates {
  --updates-rail: clamp(225px, 19vw, 318px);
  --update-card-size: clamp(92px, 6vw, 118px);
}

.idx-home .idx-section--updates::before {
  background:
    /* Edge light frames the weekly bay without drawing a second, false
       container boundary through the outer card groups. */
    radial-gradient(ellipse 42% 132% at -8% 44%, color-mix(in srgb, var(--home3-signal) 6%, var(--home3-surface)) 0, color-mix(in srgb, var(--home3-signal) 3%, transparent) 44%, transparent 76%),
    radial-gradient(ellipse 46% 138% at 108% 54%, color-mix(in srgb, var(--home3-signal) 4%, var(--home3-surface-2)) 0, color-mix(in srgb, var(--home3-signal) 2%, transparent) 46%, transparent 78%),
    linear-gradient(90deg, color-mix(in srgb, var(--home3-surface) 76%, transparent) 0, color-mix(in srgb, var(--home3-surface) 24%, transparent) 4%, transparent 11% 89%, color-mix(in srgb, var(--home3-surface-2) 22%, transparent) 96%, color-mix(in srgb, var(--home3-surface-2) 72%, transparent) 100%),
    repeating-linear-gradient(90deg, transparent 0 7.95%, rgba(239, 243, 233, 0.022) 7.95% 8%, transparent 8% 16%),
    repeating-linear-gradient(0deg, rgba(239, 243, 233, 0.018) 0 1px, transparent 1px 5px),
    var(--home3-ink);
}

.idx-home .idx-section--updates .sec-hd {
  position: absolute;
  top: clamp(104px, 12vh, 138px);
  bottom: clamp(52px, 7vh, 78px);
  left: var(--home3-section-x);
  z-index: 8;
  width: var(--updates-rail);
  min-height: 0;
  margin: 0;
  padding: 0 clamp(20px, 2vw, 32px) 0 0;
  flex-direction: column;
  align-items: stretch;
  border: 0;
  pointer-events: none;
}

.idx-home .idx-section--updates .sec-hd::after {
  display: none;
}

.idx-home .idx-section--updates .sec-hd > div {
  display: flex;
  min-height: 0;
  height: 100%;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.idx-home .idx-section--updates .sec-hd__title {
  max-width: 2.05em;
  margin-top: clamp(14px, 2.5vh, 34px);
  font-size: clamp(58px, 5.8vw, 92px);
  line-height: 0.84;
  letter-spacing: -0.09em;
  word-break: break-all;
}

.idx-home .idx-section--updates .sec-hd__title::after {
  content: "LATEST UPDATE / TIMELINE";
  display: block;
  width: max-content;
  margin-top: 18px;
  color: var(--home3-signal-strong);
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 9px;
  font-weight: 820;
  line-height: 1;
  letter-spacing: 0.13em;
}

.idx-home .idx-section--updates .sec-hd__summary {
  display: flex;
  max-width: 210px;
  margin-top: auto;
  flex-direction: column;
  color: var(--home3-muted);
  font-size: 11px;
  line-height: 1.35;
}

.idx-home .idx-section--updates #luCount {
  display: block;
  margin-bottom: 10px;
  color: var(--home3-signal-strong);
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: clamp(70px, 7.8vw, 122px);
  font-weight: 880;
  line-height: 0.72;
  letter-spacing: -0.07em;
}

.idx-home .idx-section--updates .sec-hd__more {
  align-self: flex-start;
  margin-top: 16px;
  pointer-events: auto;
}

.idx-home .update-timeline {
  position: relative;
  display: grid;
  width: calc(100% - var(--updates-rail));
  min-width: 0;
  min-height: clamp(610px, 74vh, 760px);
  height: auto;
  flex: 1 1 auto;
  grid-auto-flow: column;
  grid-auto-columns: minmax(156px, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  margin: 0 0 0 var(--updates-rail);
  padding: 0;
  overflow-x: auto;
  overflow-y: clip;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-color: color-mix(in srgb, var(--home3-signal) 54%, transparent) transparent;
  scrollbar-width: thin;
  background-image: linear-gradient(90deg, transparent, var(--home3-line-strong) 4% 96%, transparent);
  background-repeat: no-repeat;
  background-position: 0 50%;
  background-size: 100% 1px;
  background-attachment: local;
  isolation: isolate;
}

.idx-home .update-timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--home3-line-strong) 4% 96%, transparent);
  transform: translateY(-50%);
  transform-origin: left center;
}

.idx-home .update-timeline::after {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  right: 0;
  left: 0;
  z-index: 2;
  height: 3px;
  pointer-events: none;
  background-image: linear-gradient(90deg, transparent, var(--home3-signal) 22% 78%, transparent);
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: clamp(120px, 12vw, 210px) 100%;
  opacity: 0;
}

.idx-home .idx-section--updates.is-update-armed:not(.is-update-revealed) .update-timeline::before {
  opacity: 0.18;
  transform: translateY(-50%) scaleX(0);
}

.idx-home .idx-section--updates.is-update-revealed .update-timeline::before {
  animation: home3-rail-draw 520ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.idx-home .idx-section--updates.is-update-revealed .update-timeline::after {
  animation: home3-rail-pass 8.8s 460ms linear infinite;
}

.idx-home .schedule-day {
  position: relative;
  inset: auto;
  z-index: 3;
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  grid-row: 1;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 58px minmax(0, 1fr);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  scroll-snap-align: center;
}

.idx-home .schedule-day[data-update-count="1"],
.idx-home .schedule-day[data-update-count="2"] {
  width: 100%;
}

.idx-home .schedule-day::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 8;
  width: 17px;
  height: 17px;
  border: 1px solid var(--home3-signal);
  background: var(--home3-signal-strong);
  box-shadow: inset 0 0 0 5px var(--home3-ink);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: box-shadow var(--home3-fast), transform var(--home3-fast);
}

.idx-home .schedule-day::after {
  content: "";
  position: absolute;
  left: 50%;
  z-index: 2;
  width: 1px;
  height: 30px;
  background: var(--home3-line-strong);
  transform: translateX(-50%);
}

.idx-home .schedule-day[data-lane="upper"]::after {
  top: calc(50% - 30px);
}

.idx-home .schedule-day[data-lane="lower"]::after {
  top: 50%;
}

.idx-home .schedule-day[data-lane="split"]::after {
  top: calc(50% - 30px);
  height: 60px;
}

.idx-home .schedule-day:has(.media-case:hover)::before,
.idx-home .schedule-day:has(.media-case:focus-visible)::before {
  box-shadow:
    inset 0 0 0 5px var(--home3-ink),
    0 0 0 5px color-mix(in srgb, var(--home3-signal) 16%, transparent);
  transform: translate(-50%, -50%) rotate(45deg) scale(1.16);
}

.idx-home .schedule-day__header {
  z-index: 7;
  display: flex;
  min-width: 70px;
  grid-row: 2;
  grid-column: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  justify-self: center;
  margin: 0;
  padding: 28px 8px 0;
  border: 0;
  text-align: center;
  pointer-events: none;
}

.idx-home .schedule-day__label {
  color: var(--home3-paper);
  font-family: Bahnschrift, "Arial Narrow", "Microsoft YaHei UI", sans-serif;
  font-size: 13px;
  font-weight: 790;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.idx-home .schedule-day__count {
  display: block;
  margin-top: 4px;
  color: var(--home3-dim);
  font-size: 9px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.idx-home .schedule-day__items {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-columns: repeat(2, var(--update-card-size));
  grid-auto-rows: auto;
  align-content: end;
  justify-content: center;
  gap: 8px;
  overflow: visible;
}

.idx-home .schedule-day[data-update-count="1"] > .schedule-day__items {
  grid-template-columns: var(--update-card-size);
}

.idx-home .schedule-day[data-update-count="2"] > .schedule-day__items {
  grid-template-columns: repeat(2, var(--update-card-size));
}

.idx-home .schedule-day[data-lane="upper"] > .schedule-day__items {
  grid-row: 1;
  padding: 0 0 30px;
}

.idx-home .schedule-day[data-lane="lower"] > .schedule-day__items {
  grid-row: 3;
  align-content: start;
  padding: 30px 0 0;
}

.idx-home .schedule-day[data-lane="split"] > .schedule-day__items--top {
  grid-row: 1;
  align-content: end;
  padding: 0 0 30px;
}

.idx-home .schedule-day[data-lane="split"] > .schedule-day__items--bottom {
  grid-row: 3;
  align-content: start;
  padding: 30px 0 0;
}

.idx-home .schedule-day[data-lane="lower"] .media-case {
  --case-yaw: 4.5deg;
}

.idx-home .timeline-card {
  width: var(--update-card-size);
  justify-self: center;
}

.idx-home .media-case--update .media-case__info {
  padding: 42px 7px 8px;
}

.idx-home .timeline-card__time {
  width: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  color: var(--home3-signal-strong);
  background: transparent;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 8px;
  font-weight: 820;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.idx-home .timeline-card__title {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.18;
}

.idx-home .timeline-card__meta {
  display: block;
  margin-top: 3px;
  font-size: 8px;
}

.idx-home .timeline-card__watch-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 8;
  min-width: 28px;
  height: 17px;
  padding: 0 5px;
  border: 1px solid rgba(217, 244, 91, 0.52);
  border-radius: 0;
  color: #f4f7ee;
  background: rgba(4, 7, 5, 0.88);
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 8px;
  font-weight: 800;
  line-height: 15px;
  box-shadow: none;
}

.idx-home .timeline-card__watch-dot {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 8;
  width: 9px;
  height: 9px;
  border: 2px solid rgba(4, 7, 5, 0.88);
  border-radius: 0;
  background: var(--home3-signal-strong);
  box-shadow: 0 0 0 1px rgba(217, 244, 91, 0.48);
  transform: rotate(45deg);
}

.idx-home .timeline-card__bar {
  display: none;
  height: 2px;
  margin-top: 5px;
  background: rgba(239, 243, 233, 0.18);
}

.idx-home .timeline-card--in-progress .timeline-card__bar {
  display: block;
}

.idx-home .timeline-card__bar span {
  display: block;
  height: 100%;
  background: var(--home3-signal-strong);
}

.idx-home .idx-section--updates.is-update-armed:not(.is-update-revealed) .schedule-day::before,
.idx-home .idx-section--updates.is-update-armed:not(.is-update-revealed) .schedule-day__header,
.idx-home .idx-section--updates.is-update-armed:not(.is-update-revealed) .media-case__surface,
.idx-home .idx-section--updates.is-update-armed:not(.is-update-revealed) .media-case__info {
  opacity: 0;
}

/* home-v18 staged the outer group and card as well.  Web1 3.0 owns the
   reveal on the node, surface and planar info layers, so retaining that
   older animation makes later columns remain translucent for seconds. */
.idx-home .idx-section--updates.is-update-armed:not(.is-update-revealed) .schedule-day,
.idx-home .idx-section--updates.is-update-revealed .schedule-day,
.idx-home .idx-section--updates.is-update-armed:not(.is-update-revealed) .timeline-card,
.idx-home .idx-section--updates.is-update-revealed .timeline-card {
  opacity: 1;
  filter: none;
  transform: none !important;
  animation: none;
}

.idx-home .idx-section--updates.is-update-revealed .schedule-day::before {
  animation: home3-node-arrive 300ms calc(40ms + (var(--group-index, 0) * 25ms)) cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.idx-home .idx-section--updates.is-update-revealed .schedule-day__header {
  animation: home3-label-arrive 300ms calc(70ms + (var(--group-index, 0) * 25ms)) ease-out backwards;
}

.idx-home .idx-section--updates.is-update-revealed .schedule-day[data-lane="upper"] .media-case__surface,
.idx-home .idx-section--updates.is-update-revealed .schedule-day[data-lane="split"] .schedule-day__items--top .media-case__surface {
  animation: home3-update-upper-in 420ms calc(80ms + (var(--group-index, 0) * 25ms) + (var(--card-index, 0) * 12ms)) cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.idx-home .idx-section--updates.is-update-revealed .schedule-day[data-lane="lower"] .media-case__surface,
.idx-home .idx-section--updates.is-update-revealed .schedule-day[data-lane="split"] .schedule-day__items--bottom .media-case__surface {
  animation: home3-update-lower-in 420ms calc(80ms + (var(--group-index, 0) * 25ms) + (var(--card-index, 0) * 12ms)) cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.idx-home .idx-section--updates.is-update-revealed .media-case__info {
  animation: home3-case-info-in 260ms calc(180ms + (var(--group-index, 0) * 25ms) + (var(--card-index, 0) * 12ms)) ease-out backwards;
}

/* --------------------------------------------------------------------------
   Recently followed: equal-width two-row contact sheet
   -------------------------------------------------------------------------- */

.idx-home .follow-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-template-rows: none;
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 1.45vw, 26px);
  width: 100%;
  padding: 12px clamp(12px, 1.2vw, 20px) 26px;
  overflow: visible;
}

.idx-home .follow-grid .media-case__surface {
  animation: home3-case-surface-in 540ms calc(min(var(--card-index, 0), 11) * 32ms) cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.idx-home .follow-grid .media-case__info {
  animation: home3-case-info-in 340ms calc(170ms + (min(var(--card-index, 0), 11) * 32ms)) ease-out backwards;
}

.idx-home .follow-grid .media-case__cover,
.idx-home .follow-grid .follow-card__cover,
.idx-home .follow-grid .media-case:hover .media-case__cover,
.idx-home .follow-grid .media-case:focus-visible .media-case__cover,
.idx-home .follow-grid .media-case:hover .follow-card__cover,
.idx-home .follow-grid .media-case:focus-visible .follow-card__cover {
  filter: none;
}

.idx-home .media-case--follow .media-case__info {
  padding: 48px 9px 10px;
}

.idx-home .follow-card__body {
  min-width: 0;
}

.idx-home .follow-card__title {
  font-size: 11px;
  line-height: 1.22;
}

.idx-home .follow-card__meta {
  margin-top: 4px;
  font-size: 8.5px;
}

.idx-home .follow-card__arrow {
  display: none;
}

/* --------------------------------------------------------------------------
   All sections: three connected mechanical route bands
   -------------------------------------------------------------------------- */

.idx-home #mediaSection .sec-hd {
  align-items: flex-end;
}

.idx-home #mediaSection .sec-hd__summary {
  max-width: 580px;
}

.idx-home .tool-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: visible;
  border: 1px solid var(--home3-line);
  border-radius: 0;
  background: var(--home3-line);
}

.idx-home .tool-list--routes {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(112px, 1fr));
  min-height: min(55vh, 520px);
  margin: 0 clamp(12px, 1.2vw, 20px);
}

.idx-home .tool-list--routes .tool-item[data-route-group="activity"] {
  grid-column: span 4;
}

.idx-home .tool-list--routes .tool-item[data-route-group="catalog"] {
  grid-column: span 3;
}

.idx-home .tool-list--routes .tool-item[data-route-group="files"] {
  grid-column: span 4;
}

.idx-home .tool-item,
.idx-home .tool-item:last-child {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 88px;
  align-items: center;
  padding: 18px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: var(--home3-paper);
  background:
    repeating-linear-gradient(0deg, rgba(239, 243, 233, 0.02) 0 1px, transparent 1px 5px),
    var(--home3-surface);
  text-decoration: none;
  box-shadow: none;
  transition: color var(--home3-fast), background-color var(--home3-fast), box-shadow var(--home3-fast);
}

.idx-home .tool-list--routes .tool-item[data-route-label] {
  padding-top: 38px;
}

.idx-home .tool-list--routes .tool-item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--home3-signal);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform var(--home3-fast);
}

.idx-home .tool-list--routes .tool-item[data-route-label]::before {
  content: attr(data-route-label);
  top: 11px;
  right: auto;
  bottom: auto;
  left: 18px;
  width: auto;
  height: auto;
  color: var(--home3-signal-strong);
  background: transparent;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 9px;
  font-weight: 820;
  line-height: 1;
  letter-spacing: 0.12em;
  transform: none;
}

.idx-home .tool-list--routes .tool-item::after {
  content: attr(data-route-seq);
  position: absolute;
  top: 12px;
  right: 14px;
  color: var(--home3-dim);
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  transition: color var(--home3-fast), transform var(--home3-fast);
}

.idx-home .tool-list--routes .tool-item[data-route-group="activity"] {
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--home3-signal) 9%, transparent), transparent 48%),
    repeating-linear-gradient(0deg, rgba(239, 243, 233, 0.02) 0 1px, transparent 1px 5px),
    var(--home3-surface);
}

.idx-home .tool-list--routes .tool-item[data-route-group="catalog"] {
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--home3-signal) 5%, transparent), transparent 42%),
    repeating-linear-gradient(0deg, rgba(239, 243, 233, 0.02) 0 1px, transparent 1px 5px),
    var(--home3-surface-2);
}

.idx-home .tool-list--routes .tool-item[data-route-group="files"] {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--home3-paper) 3%, transparent), transparent 55%),
    repeating-linear-gradient(0deg, rgba(239, 243, 233, 0.02) 0 1px, transparent 1px 5px),
    var(--home3-surface);
}

.idx-home .tool-item:hover {
  color: var(--home3-paper);
  background-color: var(--home3-surface-2);
  box-shadow: inset 4px 0 0 var(--home3-signal);
}

.idx-home .tool-list--routes .tool-item:hover::after {
  color: var(--home3-signal-strong);
  transform: translateX(-4px);
}

.idx-home .tool-item:active {
  box-shadow: inset 7px 0 0 var(--home3-signal);
}

.idx-home .tool-item__icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 14px 0 0;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid var(--home3-line-strong);
  border-radius: 0;
  color: var(--home3-signal-strong);
  background: color-mix(in srgb, var(--home3-signal) 6%, var(--home3-surface-2));
  font-size: 13px;
  transition: color var(--home3-fast), border-color var(--home3-fast), background-color var(--home3-fast);
}

.idx-home .tool-item:hover .tool-item__icon {
  color: #0b0d09;
  border-color: var(--home3-signal);
  background: var(--home3-signal-strong);
}

.idx-home .tool-item__body {
  min-width: 0;
  flex: 1;
}

.idx-home .tool-item__name {
  overflow: hidden;
  color: inherit;
  font-family: Bahnschrift, "Arial Narrow", "Microsoft YaHei UI", sans-serif;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.idx-home .tool-item__desc {
  margin-top: 5px;
  overflow: hidden;
  color: var(--home3-dim);
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.idx-home .tool-item__arrow {
  margin-left: 12px;
  color: var(--home3-dim);
  font-size: 10px;
  transition: color var(--home3-fast), transform var(--home3-fast);
}

.idx-home .tool-item:hover .tool-item__arrow {
  color: var(--home3-signal-strong);
  transform: translateX(4px);
}

/* Template-controlled folder and admin lists remain content-sized. */
.idx-home .idx-body > .idx-section:not(#cwSection):not(#luSection):not(#lfSection):not(#mediaSection) {
  padding-top: clamp(42px, 6vh, 68px);
  padding-bottom: clamp(42px, 6vh, 68px);
}

.idx-home .idx-body > .idx-section:not(#cwSection):not(#luSection):not(#lfSection):not(#mediaSection)::after {
  inset: 28px var(--home3-edge);
}

.idx-home .idx-body > .idx-section:not(#cwSection):not(#luSection):not(#lfSection):not(#mediaSection) .tool-list {
  margin: 0 clamp(12px, 1.2vw, 20px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* --------------------------------------------------------------------------
   Rail indicators
   -------------------------------------------------------------------------- */

.idx-home .rail-dots {
  display: flex !important;
  min-height: 20px;
  margin-top: 4px;
  justify-content: center;
  gap: 7px;
}

.idx-home .rail-dots:empty,
.idx-home .rail-dots[style*="display: none"] {
  display: none !important;
}

.idx-home .rail-dots__dot {
  width: 18px;
  height: 3px;
  border: 0;
  border-radius: 0;
  background: var(--home3-line-strong);
  box-shadow: none;
  opacity: 0.72;
  transition: width var(--home3-fast), background-color var(--home3-fast), opacity var(--home3-fast);
}

.idx-home .rail-dots__dot.is-active {
  width: 34px;
  background: var(--home3-signal-strong);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Existing episode modal presented as a desktop right drawer
   -------------------------------------------------------------------------- */

.idx-home .modal {
  z-index: 1200;
  align-items: stretch;
  justify-content: flex-end;
  padding: 12px;
  background: rgba(2, 4, 3, 0.22);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition: opacity 220ms ease, background-color 260ms ease, backdrop-filter 260ms ease;
}

.idx-home .modal[style*="display: block"] {
  display: flex !important;
}

.idx-home .modal.is-open {
  background: rgba(2, 4, 3, 0.8);
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.idx-home .modal-content {
  width: min(560px, calc(100vw - 24px));
  max-width: 560px;
  height: calc(100dvh - 24px);
  max-height: none;
  margin: 0;
  border: 1px solid var(--home3-line-strong);
  border-top: 4px solid var(--home3-signal);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  color: var(--home3-paper);
  background:
    repeating-linear-gradient(0deg, rgba(239, 243, 233, 0.018) 0 1px, transparent 1px 5px),
    var(--home3-surface);
  box-shadow: 0 34px 100px var(--home3-shadow);
  transform: translate3d(90px, 0, 0) scale(0.985);
  transform-origin: right center;
  transition: transform 460ms cubic-bezier(0.16, 1, 0.3, 1), opacity 260ms ease;
  opacity: 0;
}

.idx-home .modal.is-open .modal-content {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

.idx-home .modal-visual {
  position: relative;
  height: 220px;
  min-height: 220px;
  overflow: hidden;
  border-bottom: 1px solid var(--home3-line-strong);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--home3-signal) 14%, transparent), transparent 46%),
    repeating-linear-gradient(135deg, rgba(239, 243, 233, 0.035) 0 1px, transparent 1px 8px),
    var(--home3-surface-2);
}

.idx-home .modal-visual::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 3;
  border: 1px solid rgba(239, 243, 233, 0.16);
  pointer-events: none;
}

.idx-home .modal-visual__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(0.9) contrast(1.08) brightness(0.82);
  transform: scale(1.035);
}

.idx-home .modal-visual__cover[hidden] {
  display: none;
}

.idx-home .modal-visual__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 7, 5, 0.2), transparent 56%),
    linear-gradient(180deg, transparent 36%, rgba(5, 7, 5, 0.94));
}

.idx-home .modal-visual__register {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(245, 247, 240, 0.82);
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 8px #000;
}

.idx-home .modal-visual__progress {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 4;
  padding: 7px 9px;
  border: 1px solid rgba(217, 244, 91, 0.56);
  color: #0b0d09;
  background: var(--home3-signal-strong);
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 9px;
  font-weight: 830;
  line-height: 1;
  box-shadow: 6px 7px 0 rgba(4, 7, 5, 0.38);
}

.idx-home .modal-header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--home3-line);
}

.idx-home .modal-header > div {
  min-width: 0;
}

.idx-home .modal-header h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 42px 5px 0;
  color: var(--home3-paper);
  font-family: Bahnschrift, "Arial Narrow", "Microsoft YaHei UI", sans-serif;
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.055em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.idx-home .modal-header small {
  color: var(--home3-muted) !important;
  font-size: 11px !important;
}

.idx-home .modal-content .close {
  position: absolute;
  top: 232px;
  right: 14px;
  z-index: 5;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--home3-line-strong);
  border-radius: 0;
  color: var(--home3-muted);
  background: var(--home3-surface-2);
  font-size: 22px;
  line-height: 1;
}

.idx-home .modal-content .close:hover {
  color: #0b0d09;
  border-color: var(--home3-signal);
  background: var(--home3-signal-strong);
}

.idx-home .modal-content .loading {
  color: var(--home3-signal-strong);
}

.idx-home .season-tabs {
  flex: 0 0 auto;
  padding: 12px 24px 4px;
  gap: 7px;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: thin;
}

.idx-home .season-tab {
  flex: 0 0 auto;
  border-radius: 0;
}

.idx-home .season-tab.active {
  border-color: var(--home3-signal);
  color: #0b0d09;
  background: var(--home3-signal-strong);
}

.idx-home .episode-list {
  min-height: 0;
  flex: 1 1 auto;
  padding: 8px 24px 24px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.idx-home .episode-item {
  border-radius: 0;
}

.idx-home .episode-item.last-watched {
  border-left-color: var(--home3-signal);
  background: color-mix(in srgb, var(--home3-signal) 10%, transparent);
}

/* --------------------------------------------------------------------------
   Footer and light theme adjustments
   -------------------------------------------------------------------------- */

.idx-home .app-footer {
  position: relative;
  min-height: 74px;
  padding: 26px var(--home3-edge);
  border-top: 1px solid var(--home3-line);
  color: var(--home3-dim);
  background: var(--home3-ink);
  font-family: Bahnschrift, "Arial Narrow", "Microsoft YaHei UI", sans-serif;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.idx-home .app-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: var(--home3-edge);
  width: clamp(70px, 8vw, 140px);
  height: 3px;
  background: var(--home3-signal);
}

[data-theme="light"] .idx-home .idx-nav {
  background:
    linear-gradient(90deg, rgba(109, 137, 53, 0.16) 0 4px, transparent 4px),
    color-mix(in srgb, var(--home3-ink) 94%, transparent);
  box-shadow: 0 16px 42px var(--home3-shadow);
}

[data-theme="light"] .idx-home .home-status {
  background: color-mix(in srgb, var(--home3-surface) 95%, transparent);
  box-shadow: 0 20px 52px var(--home3-shadow);
}

[data-theme="light"] .idx-home .media-case__surface {
  box-shadow: 0 18px 34px rgba(70, 84, 62, 0.14);
}

[data-theme="light"] .idx-home .media-case__shadow {
  background:
    repeating-linear-gradient(135deg, rgba(82, 107, 44, 0.08) 0 1px, transparent 1px 7px),
    rgba(83, 101, 75, 0.14);
}

[data-theme="light"] .idx-home .tool-item,
[data-theme="light"] .idx-home .tool-item:last-child {
  box-shadow: none;
}

[data-theme="light"] .idx-home .modal.is-open {
  background: rgba(36, 43, 32, 0.6);
}

/* --------------------------------------------------------------------------
   Compact desktop: explicit grids and horizontally scrollable timeline stage
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  body.idx-home {
    --home3-edge: clamp(18px, 3vw, 34px);
  }

  .idx-home .idx-nav__links {
    position: fixed;
    top: calc(var(--home3-nav-height) + 8px);
    right: 14px;
    left: 14px;
    display: none;
    max-height: calc(100dvh - var(--home3-nav-height) - 22px);
    padding: 12px;
    overflow: auto;
    border: 1px solid var(--home3-line-strong);
    border-top: 3px solid var(--home3-signal);
    border-radius: 0;
    color: var(--home3-paper);
    background: color-mix(in srgb, var(--home3-surface) 96%, transparent);
    box-shadow: 0 24px 72px var(--home3-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .idx-home .idx-nav__links.is-open {
    display: grid;
    gap: 10px;
  }

  .idx-home .idx-nav__group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .idx-home .idx-nav__group--sections {
    padding: 6px;
    border: 1px solid var(--home3-line);
  }

  .idx-home .idx-nav__group-label {
    display: block;
    grid-column: 1 / -1;
    padding: 2px 4px 5px;
  }

  .idx-home .idx-nav__divider {
    display: none;
  }

  .idx-home .idx-nav__link,
  .idx-home .idx-nav__page-link {
    justify-content: center;
    min-height: 40px;
    padding: 10px;
    border-color: var(--home3-line);
    text-align: center;
  }

  .idx-home .idx-nav__page-link--utility {
    margin-left: 0;
  }

  .idx-home .idx-nav__brand {
    margin-right: auto;
  }

  .idx-home .idx-nav__menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .idx-home .idx-section--updates {
    --updates-rail: clamp(176px, 22vw, 224px);
    --update-card-size: clamp(92px, 10.4vw, 108px);
  }

  .idx-home .idx-section--updates .sec-hd__title {
    font-size: clamp(52px, 7vw, 70px);
  }

  .idx-home .idx-section--updates #luCount {
    font-size: clamp(66px, 9vw, 90px);
  }

  .idx-home .update-timeline {
    min-height: 650px;
  }

  .idx-home .tool-list--routes {
    grid-template-rows: repeat(3, minmax(104px, 1fr));
  }

  .idx-home .tool-item,
  .idx-home .tool-item:last-child {
    padding-inline: 14px;
  }

  .idx-home .tool-list--routes .tool-item[data-route-label] {
    padding-top: 36px;
  }

  .idx-home .tool-list--routes .tool-item[data-route-label]::before {
    left: 14px;
  }

  .idx-home .tool-item__icon {
    width: 38px;
    height: 38px;
    margin-right: 10px;
    flex-basis: 38px;
  }

  .idx-home .tool-item__name {
    font-size: 13px;
  }
}

@media (min-width: 769px) and (max-height: 760px) {
  .idx-home #cwSection,
  .idx-home #luSection,
  .idx-home #lfSection,
  .idx-home #mediaSection {
    padding-top: 66px;
    padding-bottom: 20px;
  }

  .idx-home .sec-hd {
    min-height: 58px;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .idx-home .continue-row,
  .idx-home .follow-grid {
    gap: 12px;
    padding-top: 4px;
    padding-bottom: 12px;
  }

  .idx-home .idx-section--updates {
    --update-card-size: clamp(88px, 14vh, 104px);
  }

  .idx-home .update-timeline {
    min-height: calc(100dvh - 86px);
  }
}

/* --------------------------------------------------------------------------
   Tablet and mobile: natural-height ledgers and two-row horizontal case rails
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  body.idx-home {
    --home3-edge: 14px;
  }

  .idx-home .idx-nav {
    padding-inline: 14px;
  }

  .idx-home .idx-nav::after {
    right: 14px;
    width: 68px;
  }

  .idx-home .idx-nav__name {
    max-width: 180px;
    font-size: 13px;
  }

  .idx-home .idx-nav__links {
    right: 10px;
    left: 10px;
  }

  .idx-home .idx-nav__group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .idx-home .idx-nav__group--pages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .idx-home .idx-nav__group--sections .idx-nav__link:first-of-type {
    grid-column: 1 / -1;
  }

  .idx-home .home-status {
    top: calc(var(--home3-nav-height) + 10px);
    right: 10px;
    left: 10px;
    width: auto;
  }

  .idx-home .idx-body > .idx-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .idx-home #cwSection,
  .idx-home #luSection,
  .idx-home #lfSection,
  .idx-home #mediaSection {
    min-height: 100dvh;
    padding-top: 76px;
    padding-bottom: 40px;
    overflow: hidden visible;
  }

  .idx-home #luSection {
    overflow: visible;
  }

  .idx-home .idx-section::after {
    inset: 68px 8px 18px;
  }

  .idx-home .sec-hd {
    min-height: 64px;
    margin-bottom: 18px;
    padding: 0 8px 12px;
  }

  .idx-home .sec-hd::after {
    left: 8px;
    width: 72px;
  }

  .idx-home .sec-hd__title {
    font-size: clamp(30px, 9vw, 42px);
  }

  .idx-home .sec-hd__summary {
    margin-top: 6px;
    font-size: 10px;
  }

  .idx-home .sec-hd__more {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 10px;
  }

  .idx-home .continue-row,
  .idx-home .follow-grid {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: clamp(142px, 29vw, 174px);
    gap: 18px 12px;
    margin-right: -14px;
    padding: 10px 14px 24px 5px;
    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .idx-home .continue-row::-webkit-scrollbar,
  .idx-home .follow-grid::-webkit-scrollbar {
    display: none;
  }

  .idx-home .continue-row .media-case,
  .idx-home .follow-grid .media-case {
    scroll-snap-align: start;
  }

  .idx-home .media-case__info {
    padding-right: 8px;
    padding-bottom: 9px;
    padding-left: 8px;
  }

  .idx-home .media-case__title {
    font-size: 10.5px;
  }

  .idx-home .media-case__meta {
    font-size: 8px;
  }

  .idx-home .idx-section--updates {
    --updates-rail: 0px;
    --update-card-size: clamp(142px, 34vw, 182px);
    overflow: visible;
  }

  .idx-home .idx-section--updates .sec-hd {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 64px;
    margin: 0 0 18px;
    padding: 0 8px 12px;
    flex-direction: row;
    align-items: flex-end;
    border-bottom: 1px solid var(--home3-line-strong);
    pointer-events: auto;
  }

  .idx-home .idx-section--updates .sec-hd::after {
    display: block;
  }

  .idx-home .idx-section--updates .sec-hd > div {
    display: block;
    height: auto;
  }

  .idx-home .idx-section--updates .sec-hd__title {
    max-width: none;
    margin-top: 0;
    font-size: clamp(30px, 9vw, 42px);
    line-height: 0.92;
    letter-spacing: -0.055em;
    word-break: normal;
  }

  .idx-home .idx-section--updates .sec-hd__title::after {
    display: none;
  }

  .idx-home .idx-section--updates .sec-hd__summary {
    display: block;
    max-width: none;
    margin-top: 6px;
    font-size: 10px;
  }

  .idx-home .idx-section--updates #luCount {
    display: inline;
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: normal;
  }

  .idx-home .idx-section--updates .sec-hd__more {
    margin-top: 0;
    margin-left: auto;
    align-self: flex-end;
  }

  .idx-home .update-timeline {
    display: grid;
    width: 100%;
    min-height: 0;
    height: auto;
    flex: 0 0 auto;
    align-content: start;
    margin: 0;
    padding: 0 5px 26px;
    grid-auto-flow: row;
    grid-auto-rows: max-content;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: none;
    gap: 16px;
    overflow: visible;
    scroll-snap-type: none;
  }

  .idx-home .update-timeline::before,
  .idx-home .update-timeline::after {
    display: none;
  }

  .idx-home .schedule-day,
  .idx-home .schedule-day[data-update-count="1"],
  .idx-home .schedule-day[data-update-count="2"] {
    position: relative;
    inset: auto;
    left: auto;
    display: block;
    width: 100%;
    height: auto;
    grid-row: auto;
    padding: 14px;
    border: 1px solid var(--home3-line);
    border-radius: 1px;
    background: var(--home3-surface);
    box-shadow: 7px 8px 0 color-mix(in srgb, var(--home3-surface-3) 62%, transparent);
    transform: none;
    scroll-snap-align: none;
  }

  .idx-home .schedule-day::before,
  .idx-home .schedule-day::after {
    display: none;
  }

  .idx-home .schedule-day__header {
    display: flex;
    min-width: 0;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--home3-line);
    text-align: left;
  }

  .idx-home .schedule-day__label {
    font-size: 20px;
  }

  .idx-home .schedule-day__count {
    margin: 0;
    font-size: 9px;
  }

  .idx-home .schedule-day__items,
  .idx-home .schedule-day[data-lane] > .schedule-day__items,
  .idx-home .schedule-day[data-lane="split"] > .schedule-day__items--top,
  .idx-home .schedule-day[data-lane="split"] > .schedule-day__items--bottom,
  .idx-home .schedule-day[data-update-count="1"] > .schedule-day__items,
  .idx-home .schedule-day[data-update-count="2"] > .schedule-day__items {
    display: grid;
    grid-row: auto;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-template-rows: minmax(0, 1fr);
    grid-auto-columns: var(--update-card-size);
    justify-content: start;
    align-content: start;
    gap: 11px;
    padding: 2px 5px 12px;
    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .idx-home .schedule-day__items::-webkit-scrollbar {
    display: none;
  }

  .idx-home .timeline-card {
    width: var(--update-card-size);
    scroll-snap-align: start;
  }

  .idx-home .idx-section--updates.is-update-revealed .schedule-day {
    animation: home3-group-arrive 440ms calc(var(--group-index, 0) * 58ms) cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }

  .idx-home .idx-section--updates.is-update-revealed .schedule-day .media-case__surface {
    animation: home3-case-surface-in 480ms calc(100ms + (var(--group-index, 0) * 58ms) + (var(--card-index, 0) * 28ms)) cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }

  .idx-home .idx-section--updates.is-update-revealed .schedule-day .media-case__info {
    animation: home3-case-info-in 300ms calc(210ms + (var(--group-index, 0) * 58ms) + (var(--card-index, 0) * 28ms)) ease-out backwards;
  }

  .idx-home .tool-list--routes {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: none;
    min-height: 0;
    margin: 0 5px;
  }

  .idx-home .tool-list--routes .tool-item[data-route-group="activity"],
  .idx-home .tool-list--routes .tool-item[data-route-group="files"] {
    grid-column: span 2;
  }

  .idx-home .tool-list--routes .tool-item[data-route-group="catalog"] {
    grid-column: span 3;
  }

  .idx-home .tool-item__desc {
    display: none;
  }

  .idx-home .idx-body > .idx-section:not(#cwSection):not(#luSection):not(#lfSection):not(#mediaSection) .tool-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .idx-home .modal {
    align-items: flex-end;
    padding: 8px;
  }

  .idx-home .modal-content {
    width: calc(100vw - 16px);
    max-width: none;
    height: min(92dvh, 820px);
    max-height: calc(100dvh - 16px);
    transform: translate3d(0, 46px, 0) scale(0.99);
    transform-origin: bottom center;
  }

  .idx-home .modal-visual {
    height: 164px;
    min-height: 164px;
  }

  .idx-home .modal-content .close {
    top: 174px;
  }

  .idx-home .modal-header {
    padding: 18px 18px 14px;
  }

  .idx-home .modal-header h3 {
    font-size: clamp(26px, 8vw, 38px);
  }

  .idx-home .season-tabs {
    padding-inline: 18px;
  }

  .idx-home .episode-list {
    padding-inline: 18px;
  }
}

@media (max-width: 540px) {
  .idx-home .idx-nav__name {
    max-width: 128px;
  }

  .idx-home .idx-nav__avatar {
    display: none;
  }

  .idx-home .continue-row,
  .idx-home .follow-grid {
    grid-auto-columns: clamp(136px, 39vw, 154px);
  }

  .idx-home .idx-section--updates {
    --update-card-size: clamp(136px, 39vw, 154px);
  }

  .idx-home .tool-list--routes {
    grid-template-columns: minmax(0, 1fr);
  }

  .idx-home .tool-list--routes .tool-item[data-route-group="activity"],
  .idx-home .tool-list--routes .tool-item[data-route-group="catalog"],
  .idx-home .tool-list--routes .tool-item[data-route-group="files"] {
    grid-column: 1;
  }

  .idx-home .tool-item,
  .idx-home .tool-item:last-child {
    min-height: 72px;
    padding: 14px;
  }

  .idx-home .tool-list--routes .tool-item[data-route-label] {
    min-height: 94px;
    padding-top: 36px;
  }

  .idx-home .tool-list--routes .tool-item[data-route-label]::before {
    left: 14px;
  }

  .idx-home .tool-item__icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .idx-home .idx-body > .idx-section:not(#cwSection):not(#luSection):not(#lfSection):not(#mediaSection) .tool-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .idx-home .modal-visual__register {
    right: 14px;
    left: 14px;
    font-size: 8px;
  }

  .idx-home .modal-visual__progress {
    top: 14px;
    left: 14px;
  }
}

@media (max-width: 390px) {
  body.idx-home {
    --home3-edge: 10px;
  }

  .idx-home .idx-nav {
    padding-inline: 10px;
  }

  .idx-home .idx-nav__name {
    max-width: 104px;
    font-size: 12px;
  }

  .idx-home .idx-nav__end {
    gap: 4px;
  }

  .idx-home .idx-nav__search-btn,
  .idx-home .idx-nav__menu-btn,
  .idx-home .theme-toggle {
    width: 32px;
    height: 32px;
  }

  .idx-home #cwSection,
  .idx-home #luSection,
  .idx-home #lfSection,
  .idx-home #mediaSection {
    padding-right: 10px;
    padding-left: 10px;
  }

  .idx-home .idx-section::after {
    right: 5px;
    left: 5px;
  }

  .idx-home .continue-row,
  .idx-home .follow-grid {
    grid-auto-columns: 140px;
    margin-right: -10px;
    padding-right: 10px;
  }

  .idx-home .idx-section--updates {
    --update-card-size: 140px;
  }

  .idx-home .schedule-day {
    padding: 12px;
  }

  .idx-home .schedule-day__items,
  .idx-home .schedule-day[data-lane] > .schedule-day__items {
    padding-inline: 2px;
  }

  .idx-home .modal {
    padding: 5px;
  }

  .idx-home .modal-content {
    width: calc(100vw - 10px);
    height: calc(100dvh - 10px);
    max-height: calc(100dvh - 10px);
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .idx-home .media-case__surface,
  .idx-home .media-case__info,
  .idx-home .media-case__shadow,
  .idx-home .media-case__sheen,
  .idx-home .schedule-day,
  .idx-home .schedule-day::before,
  .idx-home .schedule-day__header,
  .idx-home .update-timeline::before,
  .idx-home .update-timeline::after,
  .idx-home .modal,
  .idx-home .modal-content {
    animation: none !important;
    transition: none !important;
  }

  .idx-home .media-case__surface,
  .idx-home .media-case:hover .media-case__surface,
  .idx-home .media-case:focus-visible .media-case__surface,
  .idx-home .media-case__info,
  .idx-home .idx-section--updates.is-update-armed:not(.is-update-revealed) .media-case__surface,
  .idx-home .idx-section--updates.is-update-armed:not(.is-update-revealed) .media-case__info,
  .idx-home .idx-section--updates.is-update-armed:not(.is-update-revealed) .schedule-day::before,
  .idx-home .idx-section--updates.is-update-armed:not(.is-update-revealed) .schedule-day__header {
    opacity: 1 !important;
    transform: none !important;
  }

  .idx-home .media-case:hover .media-case__shadow,
  .idx-home .media-case:focus-visible .media-case__shadow {
    inset: 8px -8px -9px 8px;
    transform: none;
  }

  .idx-home .media-case__sheen,
  .idx-home .update-timeline::after {
    display: none;
  }

  .idx-home .modal {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .idx-home .modal.is-open .modal-content {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Motion keyframes
   -------------------------------------------------------------------------- */

@keyframes home3-case-surface-in {
  from {
    opacity: 0;
    transform: translate3d(0, 26px, 0) rotateZ(2.5deg) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateZ(0) scale(1);
  }
}

@keyframes home3-case-info-in {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes home3-update-upper-in {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0) rotateZ(3deg) scale(0.82);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateZ(0) scale(1);
  }
}

@keyframes home3-update-lower-in {
  from {
    opacity: 0;
    transform: translate3d(0, -28px, 0) rotateZ(-3deg) scale(0.82);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateZ(0) scale(1);
  }
}

@keyframes home3-group-arrive {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes home3-node-arrive {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg) scale(0.5);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
  }
}

@keyframes home3-label-arrive {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes home3-rail-draw {
  from {
    opacity: 0.18;
    transform: translateY(-50%) scaleX(0);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scaleX(1);
  }
}

@keyframes home3-rail-pass {
  0% {
    opacity: 0;
    background-position: 0 0;
  }
  10% {
    opacity: 1;
  }
  84% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    background-position: 100% 0;
  }
}

/* --------------------------------------------------------------------------
   3.0 desktop structural pass: fixed seven-day spread + route switchboard

   Kept at the end of the sheet so the desktop-only composition can supersede
   the earlier continuous-group prototype without changing the <=768 stable UI.
   -------------------------------------------------------------------------- */

@media (min-width: 769px) {
  /* Recent updates: one viewport for seven stable dates, one for the archive. */
  .idx-home #luSection {
    box-sizing: border-box;
    height: 100dvh;
    /* The seven-day rail is a full-canvas instrument, not a prose column.
       Let it align with the section frame instead of inheriting the global
       1760px reading cap, which left almost 400px unused on each side at the
       user's 2556px viewport. */
    /* Include the CJK glyph ascent above the tight title line box. */
    padding: clamp(68px, 7.5vh, 86px) var(--home3-edge) clamp(10px, 1.35vh, 18px);
  }

  .idx-home #luSection .sec-hd {
    position: relative;
    inset: auto;
    display: flex;
    width: 100%;
    min-height: 58px;
    height: auto;
    margin: 0 0 6px;
    padding: 0 clamp(8px, 0.8vw, 14px) 4px;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: flex-end;
    gap: 20px;
    border-bottom: 1px solid var(--home3-line-strong);
    pointer-events: auto;
  }

  .idx-home #luSection .sec-hd::after {
    display: block;
    left: clamp(8px, 0.8vw, 14px);
    width: clamp(64px, 7vw, 112px);
  }

  .idx-home #luSection .sec-hd > div {
    display: flex;
    min-width: 0;
    height: auto;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: baseline;
    gap: clamp(14px, 1.8vw, 30px);
  }

  .idx-home #luSection .sec-hd__title {
    max-width: none;
    margin: 0;
    flex: 0 0 auto;
    font-size: clamp(38px, 4.25vw, 64px);
    line-height: 0.9;
    letter-spacing: -0.07em;
    white-space: nowrap;
    word-break: keep-all;
  }

  .idx-home #luSection .sec-hd__title::after {
    content: "7 DAY / NATIVE SNAP";
    display: inline-block;
    width: auto;
    margin: 0 0 0 14px;
    vertical-align: baseline;
    color: var(--home3-signal-strong);
    font-size: 8px;
    letter-spacing: 0.13em;
  }

  .idx-home #luSection .sec-hd__summary {
    display: block;
    max-width: none;
    margin: 0;
    color: var(--home3-muted);
    font-size: 10px;
    line-height: 1.35;
    white-space: nowrap;
  }

  .idx-home #luSection #luCount {
    display: inline;
    margin: 0 3px 0 0;
    color: var(--home3-signal-strong);
    font-size: inherit;
    font-weight: 850;
    line-height: inherit;
    letter-spacing: normal;
  }

  .idx-home #luSection .sec-hd__more {
    margin: 0 0 1px auto;
    align-self: flex-end;
    flex: 0 0 auto;
  }

  .idx-home #luSection .update-timeline {
    position: relative;
    display: grid;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    margin: 0;
    padding: 0;
    flex: 1 1 0;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    grid-template-columns: none !important;
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    overflow-x: auto;
    overflow-y: clip;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scroll-padding-inline: 0;
    scrollbar-color: color-mix(in srgb, var(--home3-signal) 45%, transparent) transparent;
    scrollbar-width: thin;
    background: transparent;
    background-image: none;
    isolation: isolate;
  }

  .idx-home #luSection .update-timeline::before,
  .idx-home #luSection .update-timeline::after {
    display: none;
  }

  .idx-home .update-timeline__page {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    min-width: 100%;
    min-height: 0;
    height: 100%;
    overflow: clip;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    isolation: isolate;
  }

  .idx-home .update-timeline__page::before {
    content: "";
    position: absolute;
    top: 50%;
    right: clamp(8px, 1vw, 18px);
    left: clamp(8px, 1vw, 18px);
    z-index: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--home3-line-strong) 3% 97%, transparent);
    transform: translateY(-50%);
    transform-origin: left center;
  }

  .idx-home .update-timeline__page::after {
    content: "";
    position: absolute;
    top: calc(50% - 1px);
    right: clamp(8px, 1vw, 18px);
    left: clamp(8px, 1vw, 18px);
    z-index: 2;
    height: 3px;
    pointer-events: none;
    background-image: linear-gradient(90deg, transparent, var(--home3-signal) 22% 78%, transparent);
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: clamp(120px, 12vw, 210px) 100%;
    opacity: 0;
  }

  .idx-home .idx-section--updates.is-update-armed:not(.is-update-revealed) .update-timeline__page::before {
    opacity: 0.18;
    transform: translateY(-50%) scaleX(0);
  }

  .idx-home .idx-section--updates.is-update-revealed .update-timeline__page::before {
    animation: home3-rail-draw 520ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }

  .idx-home .idx-section--updates.is-update-revealed .update-timeline__page::after {
    animation: home3-rail-pass 8.8s 460ms linear infinite;
  }

  .idx-home .update-week-grid {
    /* The balanced wide-screen case stays visibly above the former 166px
       scale without turning the weekly rail into a wall of posters. */
    --update-week-card-size: clamp(128px, min(11.5vw, 16vh), 188px);
    --update-week-single-size: var(--update-week-card-size);
    position: relative;
    z-index: 3;
    display: grid;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 0;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: clamp(4px, 0.45vw, 9px);
    padding: 0 clamp(5px, 0.65vw, 12px);
  }

  .idx-home .update-week-grid > .schedule-day--recent {
    position: relative;
    inset: auto;
    box-sizing: border-box;
    display: grid;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;
    grid-row: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 54px minmax(0, 1fr);
    padding: 0 clamp(2px, 0.25vw, 5px);
    overflow: visible;
    border-right: 1px solid color-mix(in srgb, var(--home3-line) 42%, transparent);
    scroll-snap-align: none;
  }

  .idx-home .update-week-grid > .schedule-day--recent:last-child {
    border-right-color: transparent;
  }

  .idx-home .update-week-grid > .schedule-day--recent::before {
    top: 50%;
    left: 50%;
    width: 13px;
    height: 13px;
    box-shadow: inset 0 0 0 4px var(--home3-ink);
  }

  .idx-home .update-week-grid > .schedule-day--recent::after {
    left: 50%;
    height: 24px;
  }

  .idx-home .update-week-grid > .schedule-day--recent[data-lane="upper"]::after {
    top: calc(50% - 24px);
  }

  .idx-home .update-week-grid > .schedule-day--recent[data-lane="lower"]::after {
    top: 50%;
  }

  .idx-home .update-week-grid > .schedule-day--recent .schedule-day__header {
    position: relative;
    display: flex;
    box-sizing: border-box;
    width: 100%;
    height: 54px;
    min-width: 0;
    grid-row: 2;
    grid-column: 1;
    align-items: center;
    justify-content: center;
    justify-self: stretch;
    margin: 0;
    padding: 0;
    overflow: visible;
    text-align: center;
  }

  .idx-home .update-week-grid > .schedule-day--recent .schedule-day__label {
    position: absolute;
    bottom: calc(50% + 11px);
    left: 50%;
    z-index: 2;
    width: max-content;
    max-width: calc(100% - 6px);
    height: auto;
    min-height: 1em;
    margin: 0;
    padding: 2px 6px 3px;
    flex: 0 0 auto;
    overflow: visible;
    color: var(--home3-paper);
    background: color-mix(in srgb, var(--home3-ink) 92%, transparent);
    font-size: clamp(10px, 0.82vw, 13px);
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    transform: translateX(-50%);
    white-space: nowrap;
    word-break: keep-all;
  }

  .idx-home .update-week-grid > .schedule-day--recent .schedule-day__count {
    position: absolute;
    top: calc(50% + 11px);
    left: 50%;
    width: max-content;
    margin: 0;
    font-size: 8px;
    line-height: 1;
    transform: translateX(-50%);
  }

  .idx-home .update-week-grid > .schedule-day--recent > .schedule-day__items,
  .idx-home .update-week-grid > .schedule-day--recent[data-lane] > .schedule-day__items {
    display: grid;
    width: max-content;
    max-width: none;
    min-width: 0;
    min-height: 0;
    grid-template-columns: repeat(2, var(--update-week-card-size));
    grid-auto-rows: max-content;
    align-content: end;
    justify-content: center;
    justify-self: center;
    column-gap: clamp(4px, 0.42vw, 7px);
    row-gap: 2px;
    padding: 3px 1px 25px;
    overflow: visible;
  }

  .idx-home .update-week-grid > .schedule-day--recent:first-child > .schedule-day__items {
    justify-self: start;
  }

  .idx-home .update-week-grid > .schedule-day--recent:last-child > .schedule-day__items {
    justify-self: end;
  }

  .idx-home .update-week-grid > .schedule-day--recent[data-lane="upper"] > .schedule-day__items,
  .idx-home .update-week-grid > .schedule-day--recent[data-lane="split"] > .schedule-day__items--top,
  .idx-home .update-week-grid > .schedule-day--recent > .schedule-day__items--empty[data-empty-lane="upper"] {
    grid-row: 1;
    align-content: end;
    padding-top: 3px;
    padding-bottom: 8px;
  }

  .idx-home .update-week-grid > .schedule-day--recent[data-lane="lower"] > .schedule-day__items,
  .idx-home .update-week-grid > .schedule-day--recent[data-lane="split"] > .schedule-day__items--bottom {
    grid-row: 3;
    align-content: start;
    padding-top: 8px;
    padding-bottom: 3px;
  }

  .idx-home .update-week-grid > .schedule-day--recent .schedule-day__items--empty {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    justify-self: stretch;
  }

  .idx-home .schedule-day__empty {
    align-self: center;
    justify-self: center;
    margin: 0;
    padding: 7px 8px;
    border: 1px solid var(--home3-line);
    color: var(--home3-dim);
    background: color-mix(in srgb, var(--home3-surface) 72%, transparent);
    font-family: Bahnschrift, "Arial Narrow", "Microsoft YaHei UI", sans-serif;
    font-size: 8px;
    line-height: 1;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .idx-home .update-week-grid .timeline-card {
    width: var(--update-week-card-size);
    justify-self: center;
  }

  /* The caption is a lower-third, never a full-card black veil. */
  .idx-home .media-case--update .media-case__info {
    box-sizing: border-box;
    top: auto;
    right: 1px;
    bottom: 1px;
    left: 1px;
    display: flex;
    width: auto;
    height: 38%;
    max-height: 38%;
    min-height: 0;
    padding: 9px 6px 5px;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background: linear-gradient(180deg, transparent 0, rgba(3, 5, 3, 0.78) 30%, rgba(3, 5, 3, 0.98) 68%);
  }

  .idx-home .media-case--update .timeline-card__time {
    flex: 0 0 auto;
    font-size: 8px;
    line-height: 1;
  }

  .idx-home .media-case--update .timeline-card__title {
    margin-top: 2px;
    flex: 0 0 auto;
    font-size: clamp(9.5px, 0.72vw, 11.5px);
    line-height: 1.08;
    -webkit-line-clamp: 2;
  }

  .idx-home .media-case--update .timeline-card__meta {
    display: none;
  }

  .idx-home .media-case--update .timeline-card__bar {
    position: absolute;
    right: 5px;
    bottom: 2px;
    left: 5px;
    margin: 0;
  }

  /* Archive owns the second snap page and cannot compete with the seven days. */
  .idx-home .update-timeline__page--archive {
    padding: clamp(14px, 2.2vw, 34px) clamp(12px, 1.8vw, 28px);
  }

  .idx-home .update-timeline__page--archive > .schedule-day--archive {
    position: relative;
    inset: auto;
    display: grid;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;
    grid-row: auto;
    grid-template-columns: clamp(150px, 17vw, 250px) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    overflow: clip;
    border: 1px solid var(--home3-line);
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--home3-signal) 6%, var(--home3-surface)) 0 clamp(150px, 17vw, 250px), transparent clamp(150px, 17vw, 250px)),
      repeating-linear-gradient(0deg, rgba(239, 243, 233, 0.015) 0 1px, transparent 1px 5px);
    scroll-snap-align: none;
  }

  .idx-home .update-timeline__page--archive > .schedule-day--archive::before,
  .idx-home .update-timeline__page--archive > .schedule-day--archive::after {
    display: none;
  }

  .idx-home .schedule-day--archive .schedule-day__header {
    position: relative;
    z-index: 4;
    pointer-events: auto;
    display: flex;
    min-width: 0;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    align-items: flex-start;
    justify-self: stretch;
    margin: 0;
    padding: clamp(18px, 2.4vw, 34px);
    text-align: left;
  }

  .idx-home .schedule-day--archive .schedule-day__header::before {
    content: "ARCHIVE / PAGE 02";
    display: block;
    margin-bottom: 12px;
    color: var(--home3-signal-strong);
    font-family: Bahnschrift, "Arial Narrow", sans-serif;
    font-size: 8px;
    font-weight: 820;
    letter-spacing: 0.13em;
  }

  .idx-home .schedule-day--archive .schedule-day__label {
    font-size: clamp(30px, 3.6vw, 56px);
    line-height: 0.9;
    letter-spacing: -0.06em;
    white-space: nowrap;
    word-break: keep-all;
  }

  .idx-home .schedule-day--archive .schedule-day__count {
    margin-top: 10px;
    font-size: 9px;
  }

  .idx-home .schedule-day--archive > .schedule-day__items,
  .idx-home .schedule-day--archive[data-lane] > .schedule-day__items {
    display: grid;
    min-width: 0;
    min-height: 0;
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: max-content;
    align-content: center;
    justify-content: stretch;
    gap: clamp(26px, 5vh, 54px) clamp(8px, 1.25vw, 22px);
    padding: clamp(12px, 1.8vw, 28px);
    overflow: clip;
  }

  .idx-home .schedule-day--archive .timeline-card {
    width: min(100%, clamp(88px, 7.2vw, 122px));
    justify-self: center;
  }

  .idx-home .schedule-day--archive .schedule-day__items--empty {
    grid-template-columns: minmax(0, 1fr);
  }

  .idx-home #luSection > .rail-dots {
    min-height: 14px;
    margin: 3px 0 0;
  }

  .idx-home #luSection > .rail-dots--labeled {
    order: 1;
    align-self: flex-end;
    min-height: 30px;
    gap: 6px;
    margin: 0 clamp(8px, 0.8vw, 14px) 4px 0;
    align-items: center;
  }

  .idx-home #luSection > .update-timeline {
    order: 2;
  }

  .idx-home #luSection > .rail-dots--labeled .rail-dots__dot,
  .idx-home #luSection > .rail-dots--labeled .rail-dots__dot.is-active {
    width: auto;
    min-height: 25px;
    height: auto;
    padding: 4px 9px;
    border: 1px solid var(--home3-line-strong);
    border-radius: 2px;
    background: var(--home3-surface);
    color: var(--home3-muted);
    box-shadow: none;
    font-family: Bahnschrift, "Arial Narrow", sans-serif;
    font-size: 10px;
    font-weight: 760;
    line-height: 1.25;
    white-space: nowrap;
    opacity: 1;
    transition: color var(--home3-fast), border-color var(--home3-fast), background-color var(--home3-fast);
  }

  .idx-home #luSection > .rail-dots--labeled .rail-dots__dot:hover {
    color: var(--home3-paper);
    border-color: var(--home3-signal);
    transform: none;
  }

  .idx-home #luSection > .rail-dots--labeled .rail-dots__dot:active {
    background: var(--home3-signal);
    color: var(--home3-surface);
  }

  .idx-home #luSection > .rail-dots--labeled .rail-dots__dot.is-active {
    color: var(--home3-paper);
    border-color: var(--home3-signal-strong);
    background: color-mix(in srgb, var(--home3-signal) 12%, var(--home3-surface));
  }

  .idx-home #luSection > .rail-dots--labeled .rail-dots__dot:focus-visible,
  .idx-home #luSection .update-timeline:focus-visible {
    outline: 2px solid var(--home3-signal-strong);
    outline-offset: 2px;
  }

  .idx-home #luSection > .rail-dots--labeled .rail-dots__dot:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

  /* All sections: three semantic districts, deliberately different in scale. */
  .idx-home #mediaSection {
    box-sizing: border-box;
    height: 100dvh;
    padding: clamp(66px, 7.2vh, 82px) var(--home3-section-x) clamp(18px, 2.6vh, 30px);
  }

  .idx-home #mediaSection .sec-hd {
    display: flex;
    min-height: 58px;
    margin: 0 0 clamp(9px, 1.3vh, 15px);
    padding: 0 clamp(8px, 0.8vw, 14px) 10px;
    flex: 0 0 auto;
    align-items: flex-end;
    border-bottom: 1px solid var(--home3-line-strong);
  }

  .idx-home #mediaSection .sec-hd--routes-v3.d-none {
    display: flex !important;
  }

  .idx-home #mediaSection .media-route-stable {
    display: none !important;
  }

  .idx-home #mediaSection .sec-hd > div {
    display: grid;
    min-width: 0;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    column-gap: clamp(16px, 2vw, 32px);
  }

  .idx-home #mediaSection .sec-hd__eyebrow {
    grid-column: 1 / -1;
    margin-bottom: 5px;
    color: var(--home3-signal-strong);
    font-family: Bahnschrift, "Arial Narrow", sans-serif;
    font-size: 8px;
    font-weight: 820;
    line-height: 1;
    letter-spacing: 0.13em;
  }

  .idx-home #mediaSection .sec-hd__title {
    margin: 0;
    font-size: clamp(38px, 4.25vw, 64px);
    line-height: 0.9;
    white-space: nowrap;
    word-break: keep-all;
  }

  .idx-home #mediaSection .sec-hd__summary {
    max-width: none;
    margin: 0;
    font-size: 10px;
    white-space: nowrap;
  }

  .idx-home #mediaSection .media-route-map {
    display: grid !important;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    margin: 0;
    padding: 0;
    flex: 1 1 0;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: clamp(8px, 0.8vw, 14px);
    overflow: clip;
    border: 0;
    background: transparent;
  }

  .idx-home .media-route-group {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
    padding: clamp(10px, 1vw, 16px);
    overflow: clip;
    border: 1px solid var(--home3-line-strong);
    background:
      linear-gradient(145deg, color-mix(in srgb, var(--home3-signal) 5%, transparent), transparent 38%),
      repeating-linear-gradient(0deg, rgba(239, 243, 233, 0.016) 0 1px, transparent 1px 5px),
      color-mix(in srgb, var(--home3-surface) 96%, transparent);
    isolation: isolate;
  }

  .idx-home .media-route-group::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: clamp(36px, 4vw, 70px);
    height: 3px;
    background: var(--home3-signal);
    opacity: 0.72;
  }

  .idx-home .media-route-group--activity {
    grid-column: 1 / 6;
    grid-row: 1 / 3;
  }

  .idx-home .media-route-group--catalog {
    grid-column: 6 / 13;
    grid-row: 1;
  }

  .idx-home .media-route-group--files {
    grid-column: 6 / 13;
    grid-row: 2;
  }

  .idx-home .media-route-group__header {
    display: flex;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    padding: 0 2px clamp(8px, 0.9vh, 12px);
    border-bottom: 1px solid var(--home3-line);
  }

  .idx-home .media-route-group__mark {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--home3-signal) 58%, var(--home3-line));
    color: var(--home3-signal-strong);
    background: color-mix(in srgb, var(--home3-signal) 6%, var(--home3-surface-2));
    font-size: 10px;
  }

  .idx-home .media-route-group__header > div {
    min-width: 0;
  }

  .idx-home .media-route-group__header h3 {
    margin: 0;
    color: var(--home3-paper);
    font-family: Bahnschrift, "Arial Narrow", "Microsoft YaHei UI", sans-serif;
    font-size: clamp(16px, 1.4vw, 22px);
    font-weight: 820;
    line-height: 1;
    letter-spacing: -0.035em;
    white-space: nowrap;
    word-break: keep-all;
  }

  .idx-home .media-route-group__header p {
    margin: 4px 0 0;
    overflow: hidden;
    color: var(--home3-dim);
    font-size: 8px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .idx-home .media-route-group__items {
    display: grid;
    min-width: 0;
    min-height: 0;
    gap: 1px;
    padding-top: clamp(8px, 0.8vw, 12px);
    background: var(--home3-line);
  }

  .idx-home .media-route-group--activity .media-route-group__items {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .idx-home .media-route-group--activity .tool-item[data-route-seq="01"] {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .idx-home .media-route-group--activity .tool-item[data-route-seq="02"] {
    grid-column: 2;
    grid-row: 1;
  }

  .idx-home .media-route-group--activity .tool-item[data-route-seq="03"] {
    grid-column: 2;
    grid-row: 2;
  }

  .idx-home .media-route-group--catalog .media-route-group__items {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .idx-home .media-route-group--catalog .tool-item[data-route-seq="04"],
  .idx-home .media-route-group--catalog .tool-item[data-route-seq="07"] {
    grid-column: span 2;
  }

  .idx-home .media-route-group--catalog .tool-item[data-route-seq="05"],
  .idx-home .media-route-group--catalog .tool-item[data-route-seq="06"] {
    grid-column: span 1;
  }

  .idx-home .media-route-group--files .media-route-group__items {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .idx-home .media-route-group--files .tool-item[data-route-seq="08"],
  .idx-home .media-route-group--files .tool-item[data-route-seq="10"] {
    grid-column: span 2;
  }

  .idx-home .media-route-group--files .tool-item[data-route-seq="09"] {
    grid-column: span 1;
  }

  .idx-home .media-route-map .tool-item,
  .idx-home .media-route-map .tool-item:last-child {
    position: relative;
    display: flex;
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    height: 100%;
    align-items: flex-end;
    padding: clamp(10px, 1vw, 16px);
    gap: 9px;
    overflow: hidden;
    color: var(--home3-paper);
    background:
      linear-gradient(160deg, color-mix(in srgb, var(--home3-signal) 4%, transparent), transparent 42%),
      var(--home3-surface-2);
    box-shadow: none;
    writing-mode: horizontal-tb;
    word-break: keep-all;
  }

  .idx-home .media-route-map .tool-item[data-route-label] {
    padding-top: clamp(10px, 1vw, 16px);
  }

  .idx-home .media-route-map .tool-item::before,
  .idx-home .media-route-map .tool-item[data-route-label]::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    height: auto;
    color: inherit;
    background: var(--home3-signal);
    transform: scaleY(0);
    transform-origin: bottom center;
    transition: transform var(--home3-fast);
  }

  .idx-home .media-route-map .tool-item:hover,
  .idx-home .media-route-map .tool-item:focus-visible {
    color: var(--home3-paper);
    background:
      linear-gradient(160deg, color-mix(in srgb, var(--home3-signal) 13%, transparent), transparent 48%),
      var(--home3-surface-2);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--home3-signal) 48%, transparent);
  }

  .idx-home .media-route-map .tool-item:hover::before,
  .idx-home .media-route-map .tool-item:focus-visible::before {
    transform: scaleY(1);
  }

  .idx-home .media-route-map .tool-item__icon {
    width: clamp(30px, 2.6vw, 42px);
    height: clamp(30px, 2.6vw, 42px);
    margin: 0;
    flex: 0 0 clamp(30px, 2.6vw, 42px);
    font-size: 11px;
  }

  .idx-home .media-route-group--activity .tool-item[data-route-seq="01"] .tool-item__icon {
    width: clamp(46px, 4vw, 64px);
    height: clamp(46px, 4vw, 64px);
    flex-basis: clamp(46px, 4vw, 64px);
    font-size: clamp(14px, 1.4vw, 20px);
  }

  .idx-home .media-route-map .tool-item__body {
    min-width: 0;
  }

  .idx-home .media-route-map .tool-item__name {
    overflow: hidden;
    font-size: clamp(12px, 1vw, 16px);
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: keep-all;
  }

  .idx-home .media-route-map .tool-item__desc {
    display: -webkit-box;
    margin-top: 4px;
    overflow: hidden;
    font-size: 8px;
    line-height: 1.25;
    white-space: normal;
    word-break: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .idx-home .media-route-map .tool-item__arrow {
    margin: 0 0 2px auto;
    flex: 0 0 auto;
  }

  .idx-home .media-route-group--activity .tool-item[data-route-seq="01"] {
    align-items: flex-end;
    background:
      linear-gradient(145deg, color-mix(in srgb, var(--home3-signal) 16%, transparent), transparent 56%),
      repeating-linear-gradient(0deg, rgba(239, 243, 233, 0.022) 0 1px, transparent 1px 6px),
      var(--home3-surface-2);
  }

  .idx-home .media-route-group--activity .tool-item[data-route-seq="01"] .tool-item__name {
    font-size: clamp(20px, 2vw, 31px);
    letter-spacing: -0.05em;
  }

  .idx-home .media-route-group--catalog .tool-item,
  .idx-home .media-route-group--files .tool-item {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
  }

  .idx-home .media-route-group--catalog .tool-item__arrow,
  .idx-home .media-route-group--files .tool-item__arrow {
    position: absolute;
    right: 10px;
    bottom: 10px;
  }

  .idx-home .media-route-group--catalog .tool-item__body,
  .idx-home .media-route-group--files .tool-item__body {
    width: 100%;
    flex: 0 0 auto;
    padding-right: 14px;
  }

  .idx-home .media-route-map .tool-item::after {
    top: 9px;
    right: 10px;
  }
}

@media (min-width: 769px) and (max-width: 1180px) {
  .idx-home #mediaSection .media-route-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .idx-home .media-route-group--activity {
    grid-column: 1;
  }

  .idx-home .media-route-group--catalog,
  .idx-home .media-route-group--files {
    grid-column: 2;
  }

  .idx-home .media-route-group--catalog .media-route-group__items {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .idx-home .media-route-group--catalog .tool-item[data-route-seq] {
    grid-column: span 1;
  }

  .idx-home .media-route-group--files .media-route-group__items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .idx-home .media-route-group--files .tool-item[data-route-seq] {
    grid-column: span 1;
  }

  .idx-home .media-route-map .tool-item,
  .idx-home .media-route-map .tool-item:last-child {
    padding: 9px;
  }

  .idx-home .media-route-map .tool-item__name {
    font-size: clamp(11px, 1.2vw, 14px);
  }

  .idx-home .media-route-map .tool-item__desc {
    -webkit-line-clamp: 1;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .idx-home .update-week-grid > .schedule-day--recent > .schedule-day__items,
  .idx-home .update-week-grid > .schedule-day--recent[data-lane] > .schedule-day__items {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .idx-home .update-week-grid .timeline-card {
    width: min(100%, clamp(58px, 7.6vw, 68px));
  }
}

@media (min-width: 1024px) and (max-width: 1359px) {
  .idx-home .update-week-grid {
    /* Four-card nodes still use two columns here. Cap their combined width so
       matching lanes two dates apart cannot intersect around 1280px. */
    --update-week-card-size: clamp(118px, min(10.3vw, 16.7vh), 132px);
    --update-week-single-size: var(--update-week-card-size);
  }
}

@media (min-width: 769px) and (max-height: 760px) {
  .idx-home .update-week-grid {
    --update-week-card-size: clamp(90px, min(8vw, 14vh), 100px);
    --update-week-single-size: var(--update-week-card-size);
  }

  .idx-home .update-week-grid > .schedule-day--recent[data-lane="upper"] > .schedule-day__items {
    padding-bottom: 0;
  }

  .idx-home .update-week-grid > .schedule-day--recent[data-lane="lower"] > .schedule-day__items {
    padding-top: 0;
  }

  .idx-home #luSection {
    padding-top: 68px;
    padding-bottom: 10px;
  }

  .idx-home #mediaSection {
    padding-top: 66px;
    padding-bottom: 18px;
  }

  .idx-home #luSection .sec-hd {
    min-height: 52px;
    margin-bottom: 6px;
    padding-bottom: 4px;
  }

  .idx-home #mediaSection .sec-hd {
    min-height: 52px;
    margin-bottom: 8px;
    padding-bottom: 8px;
  }

  .idx-home .media-route-group__header {
    min-height: 38px;
    padding-bottom: 7px;
  }

  .idx-home .media-route-group__header p {
    display: none;
  }
}

@media (min-width: 769px) and (prefers-reduced-motion: reduce) {
  .idx-home .idx-section--updates.is-update-revealed .update-timeline__page::before,
  .idx-home .idx-section--updates.is-update-revealed .update-timeline__page::after {
    animation: none;
  }

  .idx-home .update-timeline__page::after {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   3.0 update sequence refinement

   One compositor sequence owns the rail, nodes, labels and printed cases.
   The card wrappers remain in the grid for stable geometry, but stay visually
   absent until the card phase so their patterned depth plates never flash.
   -------------------------------------------------------------------------- */

@media (min-width: 769px) {
  .idx-home .update-timeline__page--week {
    --update-rail-progress: 1;
  }

  .idx-home .update-timeline__page--week::before {
    opacity: calc(0.18 + (var(--update-rail-progress, 1) * 0.82));
    transform: translateY(-50%) scaleX(var(--update-rail-progress, 1));
  }

  .idx-home .idx-section--updates.is-update-revealed .update-timeline__page::before,
  .idx-home .idx-section--updates.is-update-revealed .schedule-day::before,
  .idx-home .idx-section--updates.is-update-revealed .schedule-day__header,
  .idx-home .idx-section--updates.is-update-revealed .media-case__surface,
  .idx-home .idx-section--updates.is-update-revealed .media-case__info {
    animation: none !important;
  }

  .idx-home .update-week-grid {
    gap: clamp(2px, 0.22vw, 4px);
    /* Keep the wide rail, but stop the outer cases from visually touching the
       section frame when their cover shadow or focus treatment is active. */
    padding-inline: clamp(16px, 1.25vw, 30px);
  }

  .idx-home .update-week-grid > .schedule-day--recent {
    --update-node-opacity: 1;
    --update-node-scale: 1;
    padding-inline: clamp(1px, 0.1vw, 2px);
  }

  .idx-home .update-week-grid > .schedule-day--recent::before {
    opacity: var(--update-node-opacity, 1);
    transform: translate(-50%, -50%) rotate(45deg) scale(var(--update-node-scale, 1));
  }

  .idx-home .update-week-grid > .schedule-day--recent > .schedule-day__items,
  .idx-home .update-week-grid > .schedule-day--recent[data-lane] > .schedule-day__items {
    column-gap: clamp(4px, 0.42vw, 7px);
    row-gap: 2px;
    padding-right: 1px;
    padding-left: 1px;
  }

  .idx-home .update-week-grid > .schedule-day--recent[data-update-count="1"] > .schedule-day__items {
    grid-template-columns: var(--update-week-single-size);
  }

  .idx-home .update-week-grid .timeline-card {
    width: var(--update-week-card-size);
  }

  .idx-home .update-week-grid .media-case--update .media-case__shadow {
    inset: 4px 0 -5px 3px;
  }

  .idx-home .update-week-grid .media-case--update:hover .media-case__shadow,
  .idx-home .update-week-grid .media-case--update:focus-visible .media-case__shadow {
    inset: 6px 0 -7px 4px;
  }

  .idx-home .update-week-grid > .schedule-day--recent[data-update-count="1"] .timeline-card {
    width: var(--update-week-single-size);
  }

  .idx-home .idx-section--updates.is-update-armed:not(.is-update-sequence-complete) .update-timeline__page--week::after {
    opacity: 0;
    animation: none;
  }

  .idx-home .idx-section--updates.is-update-armed:not(.is-update-sequence-complete) .update-week-grid .timeline-card {
    visibility: hidden;
    opacity: 0;
  }

  .idx-home .idx-section--updates.is-update-sequence-complete .update-timeline__page--week::after {
    /* The settled rail is already illuminated. No perpetual paint sweep. */
    animation: none;
  }
}
@media (min-width: 769px) {
  /* These sections already occupy one viewport. Preserve their snap boxes
     while letting the browser skip distant card trees. Their existing border-
     box height/min-height reserves the viewport, including padding; using a
     100dvh content placeholder here would add that padding a second time. */
  .idx-home #cwSection,
  .idx-home #luSection,
  .idx-home #lfSection {
    content-visibility: auto;
    contain-intrinsic-size: auto 0px;
  }

  /* v3's reveal timeline owns node opacity/scale. The inherited v1.8
     box-shadow breathing loop also ran on all seven nodes before reveal. */
  .idx-home #luSection .schedule-day::before,
  .idx-home #luSection .update-timeline::after,
  .idx-home #luSection .update-timeline__page::after {
    animation: none;
  }

  .idx-home.is-home-motion-paused .hero3::before,
  .idx-home.is-home-motion-paused .hero3__status::after,
  .idx-home.is-home-motion-paused .hero3__art-switch i {
    animation-play-state: paused;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .idx-home .update-week-grid {
    --update-week-card-size: clamp(104px, min(14.5vw, 18vh), 132px);
    --update-week-single-size: var(--update-week-card-size);
  }

  .idx-home .update-week-grid .timeline-card,
  .idx-home .update-week-grid > .schedule-day--recent[data-update-count="1"] .timeline-card {
    width: var(--update-week-card-size);
  }

  .idx-home .update-week-grid > .schedule-day--recent[data-update-count="1"] .timeline-card {
    width: var(--update-week-single-size);
  }
}

@media (min-width: 769px) and (prefers-reduced-motion: reduce) {
  .idx-home .update-timeline__page--week {
    --update-rail-progress: 1 !important;
  }

  .idx-home .update-week-grid > .schedule-day--recent {
    --update-node-opacity: 1 !important;
    --update-node-scale: 1 !important;
  }

  .idx-home .idx-section--updates.is-update-armed .update-week-grid .timeline-card {
    visibility: visible;
    opacity: 1;
  }
}

/* Fit both rows inside a shorter desktop bay. Single and grouped posters
   retain one size, and the weekly grouping and section snap stay intact. */
@media (min-width: 1024px) and (max-height: 900px) {
  .idx-home .update-week-grid {
    --update-week-card-size: clamp(96px, min(11.5vw, 14vh), 126px);
    --update-week-single-size: var(--update-week-card-size);
  }
}

/* Keep crowded update days complete without changing the weekly bay geometry. */
.idx-home .schedule-day__all {
  color: var(--home3-signal, var(--accent));
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.idx-home .schedule-day__all:hover { color: var(--home3-paper, var(--text-1)); }
.idx-home .schedule-day__all:active { opacity: 0.75; }
.idx-home .schedule-day__all:focus-visible,
.idx-home .schedule-day--overflow > .schedule-day__items:focus-visible {
  outline: 2px solid var(--home3-signal, var(--accent));
  outline-offset: -2px;
}
@media (min-width: 769px) {
  .idx-home .update-week-grid > .schedule-day--overflow[data-lane] > .schedule-day__items,
  .idx-home .schedule-day--archive.schedule-day--overflow > .schedule-day__items {
    max-height: 100%;
    align-content: start;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--home3-signal) transparent;
  }
  .idx-home .schedule-day--archive[data-group-type="future"] .schedule-day__header::before {
    content: "UPCOMING / LOCAL DATE";
  }
  .idx-home .schedule-day--archive[data-group-type="archive"] .schedule-day__header::before {
    content: "ARCHIVE / EARLIER";
  }
  .idx-home .schedule-day--archive[data-group-type="undated"] .schedule-day__header::before {
    content: "UNDATED / SOURCE";
  }
}

@media (min-width: 769px) {
  /* The named archive pages already provide this route in v3. */
  html[data-ui-version="v3"] .idx-home #luSection #luArchiveLink {
    display: none !important;
  }

  html[data-ui-version="v3"] .idx-home #luSection .update-week-grid {
    padding-inline: clamp(20px, 2.1vw, 56px);
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  html[data-ui-version="v3"] .idx-home #luSection .update-week-grid {
    --update-week-card-size: clamp(78px, 10vw, 94px);
    --update-week-single-size: var(--update-week-card-size);
  }
}

@media (min-width: 1024px) and (max-width: 1359px) {
  html[data-ui-version="v3"] .idx-home #luSection .update-week-grid > .schedule-day--overflow {
    --update-week-card-size: clamp(94px, min(8.2vw, 13vh), 106px);
    --update-week-single-size: var(--update-week-card-size);
  }
}
