.ml-line,
.ml-player-foot,
.ml-tools,
.ml-links,
.ml-edition {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}
.ml-line {
  margin: 0.6rem 0 1.2rem;
  border-inline-start: 2px solid var(--world-light, #bc9fd5);
  padding: 0.35rem 0.85rem;
  color: var(--gl-dim, #bfb4cc);
  font-size: 0.84rem;
}
.ml-line time {
  font-size: 0.72rem;
}
.ml-line button,
.ml-source {
  color: var(--world-light, #d3bde6);
  text-underline-offset: 3px;
}
.ml-line button {
  margin-left: auto;
  background: transparent;
  border: 1px solid #ffffff34;
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
}
.ml-line button:disabled {
  opacity: 0.55;
}
.ml-page {
  max-width: 1060px;
  margin: 0 auto;
  padding: 1rem 0 3rem;
}
.ml-page > a,
.ml-mast > small,
.ml-detail small {
  color: var(--world-light, #d3bde6);
}
.ml-mast {
  padding: 1.8rem 0 0.7rem;
}
.ml-page h1 {
  font-size: clamp(1.75rem, 3.5vw, 3.5rem);
  line-height: 1.12;
  margin: 0.45rem 0 1rem;
  letter-spacing: -0.04em;
}
.ml-screen,
.an-screen.ml-embedded {
  position: relative;
  display: block;
  overflow: hidden;
  background: #080910;
  border: 1px solid #fff2;
  border-radius: 12px;
  aspect-ratio: 16/9;
  min-height: 200px;
}
.ml-screen video,
.ml-screen iframe,
.ml-embedded iframe {
  display: block;
  height: 100%;
  width: 100%;
  border: 0;
  object-fit: contain;
}
.an-screen video[hidden] {
  display: none !important;
}
.ml-player-foot,
.ml-tools,
.ml-availability {
  padding: 1rem 0;
}
.ml-player-foot {
  justify-content: space-between;
  color: #c5bace;
  border-bottom: 1px solid #fff2;
}
.ml-screen + p {
  margin: 0.5rem 0;
}
.ml-detail {
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 4vw, 3.5rem);
  align-items: start;
  margin: 2rem 0;
}
.ml-detail > img {
  width: 100%;
  max-height: 530px;
  object-fit: contain;
  border-radius: 9px;
}
.ml-page p {
  line-height: 1.55;
}
.ml-availability {
  border-top: 1px solid #fff2;
}
.ml-availability h2 {
  font-size: 1.25rem;
}
.ml-availability [data-where] {
  display: block;
  margin-top: 0.8rem;
  color: #c7bfce;
}
.ml-availability [data-where] a + a {
  margin-inline-start: 0.6rem;
}
.ml-date {
  color: #c8bdd2;
}
.ml-wait {
  margin: 2rem auto;
  color: #c9bed4;
}
.ml-short-status {
  position: absolute;
  bottom: 6rem;
  left: 0.7rem;
  max-width: 260px;
  background: #151321e6;
  color: white;
  padding: 0.4rem;
  border-radius: 4px;
  pointer-events: none;
}
html[data-working] .tt-shell.tall .tt-frame {
  aspect-ratio: 9/16;
}
.tt-source-note {
  font-size: 0.75rem;
  color: #e5dbed;
}
.tt-source-note a {
  color: #fff;
}
.ml-source:focus-visible,
.ml-line button:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}
@media (max-width: 620px) {
  .ml-detail {
    grid-template-columns: 1fr;
  }
  .ml-detail > img {
    max-width: 170px;
    max-height: 236px;
  }
  .ml-line time {
    display: none;
  }
  .ml-screen {
    border-radius: 7px;
    min-height: 200px;
  }
  .ml-dubs label {
    align-items: flex-start;
    flex-direction: column;
  }
  .ml-page {
    padding-top: 0.5rem;
  }
}
galaxy-library[data-mode="releases"] .gl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(174px, 100%), 1fr));
  gap: 1.55rem 1rem;
}
galaxy-library[data-mode="releases"] .gl-card-cover {
  aspect-ratio: 2/3;
}
galaxy-library[data-mode="releases"] .gl-card-cover img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}
galaxy-library[data-mode="releases"] .gl-card-cap {
  padding-right: 0;
}
@media (max-width: 570px) {
  galaxy-library[data-mode="releases"] .gl-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem 0.7rem;
  }
}
/* Search is a separate remote shelf; the NEBULA library remains below. */
:is(nb-yt-search, nb-catalog-search) {
  display: block;
  margin: 1rem 0 1.8rem;
  padding: 1rem 0 1.2rem;
  border-block: 1px solid var(--gl-line, #393445);
}
:is(nb-yt-search, nb-catalog-search)[hidden] {
  display: none;
}
:is(nb-yt-search, nb-catalog-search) header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
:is(nb-yt-search, nb-catalog-search) h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
}
:is(nb-yt-search, nb-catalog-search) header a,
.ml-unavailable a {
  color: #e4c4fb;
  text-underline-offset: 3px;
}
:is(nb-yt-search, nb-catalog-search) [role="status"] {
  font-size: 0.85rem;
  color: #c9c1d1;
  margin: 0.45rem 0 0.8rem;
}
.ms-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.65rem, 2vw, 1.5rem);
}
.ms-results article {
  min-width: 0;
}
.ms-art {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 9px;
  background: #211e2d;
  border: 1px solid #ffffff28;
}
.ms-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ms-art span {
  position: absolute;
  right: 5px;
  bottom: 5px;
  border-radius: 3px;
  background: #17111ce0;
  padding: 2px 5px;
  color: white;
  font-size: 0.7rem;
}
.ms-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0.45rem 0 0.2rem;
  font-weight: 650;
  color: inherit;
  text-decoration: none;
}
.ms-results small {
  color: #bfb6c9;
}
.ml-probing,
.ml-unavailable {
  margin: auto;
  padding: clamp(1rem, 4vw, 2.5rem);
  max-width: 40rem;
}
.ml-screen:has(.ml-probing),
.ml-screen.ml-no-show {
  display: grid;
  place-items: center;
}
.ml-screen.ml-no-show {
  aspect-ratio: auto;
  min-height: 215px;
  background: linear-gradient(135deg, #211a2e, #15121f);
  color: #ede8f4;
}
.ml-unavailable h2 {
  margin: 0.5rem 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}
.ml-unavailable p {
  color: #d1c8d9;
}
.ml-unavailable .btn {
  display: inline-flex;
  white-space: normal;
}
.tt-footer {
  justify-content: flex-end;
}
@media (max-width: 700px) {
  .ms-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :is(nb-yt-search, nb-catalog-search) header {
    align-items: start;
    gap: 0.3rem;
  }
  :is(nb-yt-search, nb-catalog-search) header a {
    font-size: 0.78rem;
  }
  .ml-unavailable {
    padding: 1.2rem;
  }
  .ml-mast h1 {
    overflow-wrap: anywhere;
  }
}
/* The same player element stays mounted through native and in-preview expansion. */
nb-theatre {
  display: block;
  color: #eee9f3;
  margin: 0.7rem 0;
}
.me-theatre-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  flex-wrap: wrap;
  padding: 0.4rem 0;
}
.me-expand {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  min-height: 38px;
  padding: 0.38rem 0.8rem;
  background: #24202e;
  border: 1px solid #71647d;
  border-radius: 8px;
  color: #f6f0fa;
  cursor: pointer;
  font: inherit;
}
.me-expand b {
  font-size: 0.85rem;
  font-weight: 600;
}
.me-expand > span {
  font: 1.35rem/1 sans-serif;
}
.me-size-note {
  font-size: 0.76rem;
  color: #d9cde6;
}
.me-size-note:empty {
  display: none;
}
.me-native > .me-theatre-bar,
nb-theatre[hidden] {
  display: none !important;
}
.me-expanded {
  overflow: hidden;
}
nb-theatre:fullscreen,
nb-theatre[data-max] {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  color: #fff;
  margin: 0;
  padding: 0;
  border: 0;
  background: #08090e;
  z-index: 2147483600;
}
nb-theatre:is(:fullscreen, [data-max]) :is(.ml-screen, .an-screen) {
  flex: 1 1 0;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
}
nb-theatre:is(:fullscreen, [data-max]) .me-theatre-bar {
  flex: 0 0 auto;
  padding: 0.35rem max(0.7rem, env(safe-area-inset-right))
    max(0.35rem, env(safe-area-inset-bottom));
  background: #111018;
}
nb-theatre:is(:fullscreen, [data-max]) iframe {
  width: 100%;
  height: 100%;
}
nb-catalog-search .ms-art {
  aspect-ratio: 4/3;
}
nb-catalog-search .ms-art img {
  object-position: 50% 27%;
}
.ml-page :is(button, a, select):focus-visible {
  outline: 2px solid #dfc4ff;
  outline-offset: 3px;
}
html[data-working] .tt-frame-top {
  justify-content: flex-end;
}
html[data-working] .tt-shell.wide .tt-frame video {
  object-fit: contain;
  background: #09090d;
}
html[data-working] .tt-skip[hidden],
html[data-working] .tt-muted[hidden] {
  display: none !important;
}
.mp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 1.55rem 1.1rem;
}
.mp-card {
  min-width: 0;
}
.mp-image {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  background: #1f1c2b;
}
.mp-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.mp-image span {
  position: absolute;
  bottom: 6px;
  right: 6px;
  color: white;
  background: #17131ee8;
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  font-size: 0.73rem;
}
.mp-card h2 {
  font-size: 1.08rem;
  line-height: 1.35;
  margin: 0.55rem 0 0.25rem;
}
.mp-card h2 a {
  color: inherit;
  text-decoration: none;
}
.mp-card p,
.mp-card small {
  margin: 0.2rem 0;
  color: #bcb3c8;
  font-size: 0.8rem;
}
.mp-card small {
  color: #dec4ed;
}
.mp-page .ml-mast {
  padding-bottom: 1.5rem;
}
@media (max-width: 700px) {
  html[data-working] .tt-shell.wide .tt-frame {
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
    max-height: none;
  }
  .mp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem 0.7rem;
  }
  .mp-card h2 {
    font-size: 0.94rem;
  }
  .mp-page .btn {
    white-space: normal;
    margin-block: 0.3rem;
  }
}
@media (max-width: 700px) {
  html[data-working] .tt-mast {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Search occupies the page, not a horizontal strip of four featured picks. */
:is(nb-yt-search, nb-catalog-search) .ms-results {
  grid-template-columns: repeat(auto-fill, minmax(min(215px, 100%), 1fr));
  gap: 1.5rem clamp(0.8rem, 1.5vw, 1.6rem);
}
:is(nb-yt-search, nb-catalog-search) .ms-results small {
  display: block;
  overflow-wrap: anywhere;
}
.ms-scopes {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 0.6rem 0 1.3rem;
}
.ms-scopes a {
  color: #eadff4;
  border: 1px solid #b5a1cb4a;
  border-radius: 2em;
  padding: 0.44em 1em;
  text-decoration: none;
  background: #211b2b;
}
.ms-scopes a:hover,
.ms-scopes a:focus-visible {
  border-color: #cbb0df;
}
.ms-more:not([hidden]) {
  display: block;
  min-height: 42px;
  margin: 1.35rem auto 0;
  padding: 0.5rem 1.65rem;
}
.ms-more:disabled {
  opacity: 0.7;
}
@media (max-width: 600px) {
  :is(nb-yt-search, nb-catalog-search) .ms-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 0.7rem;
  }
}

/* The sign-up form remains usable with the on-screen keyboard or a long email address. */
#authForm {
  max-height: min(90dvh, 48rem);
  scroll-padding: 1rem;
}
#authForm h2 {
  padding-inline-end: 1.8rem;
}
.su-steps {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0.85rem 0;
}
.su-steps li {
  flex: 1;
  padding: 0.45rem 0.15rem;
  text-align: center;
  border-bottom: 2px solid #484361;
  color: #c6c0d9;
  font-size: 0.8rem;
}
.su-steps [aria-current="step"] {
  color: #ffdc9c;
  border-color: #f1b758;
  font-weight: 700;
}
#signupHint,
.su-small {
  overflow-wrap: anywhere;
  line-height: 1.5;
  font-size: 0.9rem;
  color: #d0cee0;
  margin: 0.65rem 0 1rem;
}
#signupCode {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.35em;
  font-size: 1.25rem;
}
.su-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  margin: 0.35rem 0;
}
.su-tools button {
  border: 0;
  background: transparent;
  color: #ffe0a6;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  min-height: 2.5rem;
  cursor: pointer;
}
.su-tools button:disabled {
  color: #bab7c6;
  text-decoration: none;
  cursor: default;
}
/* Reviewed editions, separated from external listings. */
nb-morevna {
  display: block;
  margin: 22px 0 32px;
}
nb-morevna[hidden] {
  display: none;
}
.nb-archive {
  border: 1px solid #39364e;
  border-radius: 20px;
  background: linear-gradient(135deg, #201e32, #141522 65%);
  padding: clamp(16px, 3vw, 32px);
  color: #f5f2fa;
}
.nb-archive header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.nb-archive h2 {
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.04em;
  margin: 6px 0;
}
.nb-archive header p,
.nb-window p {
  color: #d6d0dc;
  max-width: 68ch;
}
.nb-archive header a,
.nb-lic-note {
  font-size: 0.85rem;
  color: #d3c2ff;
}
.nb-cut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 12px;
}
.nb-cut-grid article {
  border-radius: 13px;
  background: #141422;
  border: 1px solid #454054;
  overflow: hidden;
  min-width: 0;
}
.nb-cut-art {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
}
.nb-cut-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nb-cut-art b {
  position: absolute;
  right: 8px;
  bottom: 7px;
  color: white;
  background: #161324d9;
  border-radius: 5px;
  padding: 3px 5px;
  font-size: 0.68rem;
}
.nb-cut-body {
  padding: 12px;
}
.nb-cut-body small,
.nb-window small {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #c9b5f3;
}
.nb-cut-body h3 {
  font-size: 1.08rem;
  margin: 5px 0 0;
}
.nb-cut-body p {
  font-size: 0.78rem;
  color: #c9c5d3;
  margin: 6px 0 14px;
}
.nb-screen-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.nb-hall-go,
.nb-source-out {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  border-radius: 8px;
  min-height: 40px;
  padding: 8px 12px;
  line-height: 1.2;
  font-weight: 650;
  font-size: 0.91rem;
}
.nb-hall-go {
  background: #dfd0ff;
  color: #21182d !important;
}
.nb-source-out {
  color: #eee3ff !important;
  background: #292435;
  border: 1px solid #6e607d;
}
.nb-window {
  background: #1d1b2a;
  border: 1px solid #484058;
  border-radius: 12px;
  padding: 16px;
  margin: 18px 0;
}
.nb-window .nb-lic-note {
  display: block;
  margin-top: 12px;
}
.nb-hall-go:focus-visible,
.nb-source-out:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.nb-archive .nb-source-out,
.nb-search-official {
  display: block;
  border: 0;
  color: #d3c2ff !important;
  background: transparent;
  text-align: start;
  text-decoration: underline !important;
  text-underline-offset: 0.22em;
  font-size: 0.82rem;
  line-height: 1.35;
  min-height: 0;
  padding: 9px 0 0;
}
.nb-search-official {
  margin-top: 4px;
  padding: 3px 0;
  overflow-wrap: anywhere;
}

/* First-party visual index of public episode pages; not film artwork or players. */
nb-ru-shows {
  display: block;
  margin: 20px 0 28px;
}
nb-ru-shows[hidden] {
  display: none;
}
.ru-shelf {
  color: #f2f3f6;
  padding: clamp(14px, 2.3vw, 29px);
  border: 1px solid #414b52;
  border-radius: 20px;
  background: linear-gradient(155deg, #192a2c, #171923 68%);
}
.ru-shelf header h2 {
  font-size: clamp(25px, 3.7vw, 44px);
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin: 8px 0;
}
.ru-shelf header .gl-micro,
.ru-detail header .gl-micro {
  color: #afd4ce;
  letter-spacing: 0.11em;
}
.ru-shelf header p,
.ru-hero p {
  max-width: 66ch;
  color: #cbd8dc;
  margin: 0 0 18px;
}
.ru-match-count {
  color: #cbd8dc;
  font-size: .9rem;
  margin: 0 0 12px;
}
.ru-no-match header p { margin: 0; overflow-wrap: anywhere; }
.ru-no-match .ru-fine, .ru-match-note:not(:empty) { display: block; margin-top: 6px; }
.ru-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.ru-grid article {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #3f484f;
  border-radius: 13px;
  background: #141822;
}
.ru-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 14px;
  height: 58px;
  flex: none;
  color: var(--ru-accent);
  background: linear-gradient(105deg, #24282c, #151921);
  border-bottom: 1px solid #3f484f;
}
.ru-art:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(
    125deg,
    transparent 0 17px,
    currentColor 18px,
    transparent 19px 29px
  );
  opacity: 0.09;
}
.ru-art svg {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 1px 5px #0006);
}
.ru-art b {
  font-size: 0.76rem;
  letter-spacing: 0.07em;
}
.ru-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 12px 13px 10px;
}
.ru-body small,
.ru-shelf footer,
.ru-fine {
  font-size: 0.83rem;
  color: #bcc8ce;
}
.ru-body h3 {
  font-size: clamp(1.03rem, 1.4vw, 1.22rem);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 6px 0 10px;
  overflow-wrap: anywhere;
}
.ru-body h3 a {
  color: #fcfcff;
  text-decoration: none;
}
.ru-scope {
  padding: 3px 6px;
  border-radius: 4px;
  background: #213538;
  color: #c6ede6;
  font-size: 0.8rem;
}
.ru-body p {
  margin: 8px 0 14px;
  color: #cad1d8;
  font-size: 0.85rem;
  line-height: 1.36;
}
.ru-links {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 3px 9px;
  flex-wrap: wrap;
  width: 100%;
}
.ru-links a,
.ru-shelf footer a {
  color: #bbe6dc;
  text-decoration: underline;
  text-underline-offset: 0.19em;
}
.ru-links a {
  display: inline-flex;
  align-items: center;
  font-size: 0.83rem;
  line-height: 1.24;
  min-height: 35px;
}
.ru-links [data-ru-first] {
  background: #d0ece3;
  color: #152923;
  font-weight: 700;
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 7px;
}
.ru-shelf footer {
  margin-top: 16px;
  line-height: 1.45;
}
.ru-hero {
  margin: 22px 0 10px;
  display: grid;
  grid-template-columns: clamp(76px, 11vw, 140px) minmax(0, 1fr);
  gap: clamp(15px, 2.5vw, 30px);
  align-items: center;
}
.ru-hero h1 {
  font-size: clamp(27px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 8px 0;
}
.ru-hero p {
  margin: 0;
}
.ru-hero .ru-art {
  height: auto;
  aspect-ratio: 1/1;
  border: 1px solid #455057;
  border-radius: 16px;
  display: grid;
  place-content: center;
}
.ru-hero .ru-art b {
  display: none;
}
.ru-hero .ru-art svg {
  width: clamp(46px, 8vw, 100px);
  height: auto;
}
.ru-window h2,
.ru-window h3 {
  margin: 6px 0;
}
.ru-window h3 {
  margin-top: 18px;
  font-size: 1rem;
}
.ru-episodes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 640px;
  margin: 10px 0 2px;
}
.ru-episodes a {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  border: 1px solid #506461;
  border-radius: 7px;
  color: #d2f2e7;
  background: #1a2a2b;
  text-decoration: none;
  font-weight: 600;
}
.ru-episodes a:hover,
.ru-links a:hover,
.ru-body h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.ru-shelf a:focus-visible,
.ru-detail a:focus-visible {
  outline: 3px solid #f5eee1;
  outline-offset: 2px;
}
@media (max-width: 1020px) {
  .ru-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .ru-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .ru-grid article {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .ru-grid .ru-art {
    height: 100%;
    padding: 7px;
    justify-content: center;
    border: 0;
    border-right: 1px solid #3f484f;
  }
  .ru-grid .ru-art b {
    display: none;
  }
  .ru-grid .ru-art svg {
    width: 32px;
  }
  .ru-body {
    padding: 10px 12px;
  }
  .ru-body h3 {
    margin: 3px 0 6px;
  }
  .ru-body p {
    margin: 5px 0;
  }
  .ru-links a {
    min-height: 40px;
  }
  .ru-hero {
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;
  }
  .ru-hero .ru-art svg {
    width: 40px;
  }
}
.ru-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  border: 0;
  margin: 0 0 16px;
}
.ru-filter label {
  display: inline-flex;
  align-items: center;
  position: relative;
  cursor: pointer;
}
.ru-filter input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  margin: 0;
}
.ru-filter span {
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  border: 1px solid #536566;
  background: #172528;
  color: #c9d8d8;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.87rem;
  gap: 5px;
}
.ru-filter span i {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  opacity: 0.82;
}
.ru-filter input:checked + span {
  color: #172725;
  background: #c2e3d9;
  border-color: #c2e3d9;
  font-weight: 700;
}
.ru-filter input:focus-visible + span {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.ru-grid article[hidden] {
  display: none;
}
.ru-hero .ru-original {
  font-size: 0.88rem;
  color: #b7d0ca;
  margin: 0 0 9px;
}
.ru-fine a {
  color: #bbdfd9;
  text-underline-offset: 0.18em;
}
/* Personal episode selection. No publisher frame until the watch route has passed preflight. */
.ru-more:not([hidden]) {
  display: inline-flex;
  margin: 16px 0 0;
}
.ru-episodes [aria-current] {
  background: #c1e6d9;
  color: #122823;
  border-color: #c1e6d9;
}
[data-offer-picker]:not(:empty) {
  margin: 22px 0 0;
  padding: 18px clamp(12px, 2.5vw, 24px);
  border: 1px solid #455e59;
  border-radius: 13px;
  background: linear-gradient(125deg, #1b302f, #19202a);
  color: #e8f3ef;
}
.ru-pick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ru-pick-head h3 {
  font-size: 1.52rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 5px 0 10px;
}
.ru-clock {
  color: #c9e0d7;
  font:
    600 0.9rem ui-monospace,
    monospace;
  font-variant-numeric: tabular-nums;
}
.ru-sources {
  margin: 8px 0;
}
.ru-sources legend {
  padding: 0 0 6px;
  color: #d5e1dc;
  font-size: 0.8rem;
}
.ru-window .ru-track {
  line-height: 1.4;
  margin: 12px 0 4px;
}
.ru-window .ru-access {
  font-weight: 600;
  color: #d8dfba;
  margin: 3px 0 12px;
}
.ru-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.ru-cta .nb-ep-watch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #c5eadb;
  border: 1px solid #d6eee5;
  color: #12261e;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  min-height: 44px;
}
.ru-cta .nb-ep-watch:hover {
  background: #dcf4ea;
}
.ru-cta .ru-direct {
  color: #c1ddd4;
  text-underline-offset: 0.2em;
  font-size: 0.88rem;
}
.ru-detail [data-offer-picker] .ru-fine {
  margin: 12px 0 0;
  color: #c0d0c9;
  font-size: 0.84rem;
}
.ru-detail :is(h1, p) {
  overflow-wrap: anywhere;
}
.ru-console {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(16px, 2.2vw, 30px);
  align-items: start;
}
.ru-console [data-offer-picker]:not(:empty) {
  margin: 0;
}
.ru-synopsis {
  margin: 7px 0 0;
}
.ru-synopsis summary {
  cursor: pointer;
  color: #bcd5cf;
  font-size: 0.88rem;
}
.ru-synopsis p {
  margin: 5px 0 0;
}
.ru-ep-select {
  display: none;
}
.ru-index {
  min-width: 0;
}
@media (max-width: 720px) {
  .ru-console {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 16px;
  }
  .ru-console [data-offer-picker]:not(:empty) {
    order: -1;
  }
  .ru-index {
    padding: 4px;
  }
  .ru-pick-head h3:has(+ .ru-ep-select) {
    display: none;
  }
  .ru-ep-select {
    display: block;
    margin: 5px 0 8px;
    min-height: 40px;
    padding: 4px 8px;
    border: 1px solid #53716a;
    color: #e6f6ee;
    background: #19302b;
    border-radius: 7px;
    font: inherit;
    line-height: 1.3;
    font-family: inherit;
    font-weight: 700;
    font-size: 1.14rem;
  }
  .ru-cta .nb-ep-watch {
    flex: 1 0 auto;
  }
  .ru-sources {
    gap: 5px;
  }
  .ru-console .ru-sources span {
    min-height: 36px;
  }
}
