:root {
  color-scheme: dark;
  --bg: #101111;
  --panel: #1b1d1d;
  --muted: #939894;
  --text: #f1f3ee;
  --accent: #d6f46b;
  --line: #ffffff16;
  --page: 64px;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  color: inherit;
}
button,
select {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 16px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a,
button {
  touch-action: manipulation;
}
button:hover {
  background: #30342b;
}
img {
  display: block;
  max-width: 100%;
}
svg {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(38px, 5.1vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}
h2 {
  font-size: 27px;
  letter-spacing: -0.035em;
  line-height: 1.2;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
p {
  line-height: 1.65;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
video:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
main:focus {
  outline: none;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 200;
  background: var(--accent);
  color: #111;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.header {
  height: 88px;
  padding: 0 var(--page);
  display: flex;
  align-items: center;
  gap: 76px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
  background: var(--bg);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  font-size: 31px;
  font-weight: 900;
  letter-spacing: -2px;
  white-space: nowrap;
}
.brand span {
  color: var(--accent);
}
.brand i {
  display: block;
  width: 6px;
  height: 6px;
  margin-left: 4px;
  background: var(--accent);
  border-radius: 50%;
}
.header nav {
  display: flex;
  gap: 32px;
  height: 100%;
  align-items: center;
  font-size: 14px;
  color: #a9ada9;
}
.header nav a {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
}
.header nav a.active {
  color: var(--text);
}
.header nav a.active:after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}
.header-tools {
  margin-left: auto;
  display: flex;
  gap: 22px;
  align-items: center;
}
.icon-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  border-radius: 50%;
}
.icon-btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.profile {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #333a2a;
  border: 1px solid #d6f46b66;
  color: var(--accent);
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
}
.hero {
  height: min(650px, calc(100vw * 0.49));
  min-height: 510px;
  position: relative;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #101111f5 0%, #101111bf 29%, #1011112b 70%),
    linear-gradient(0deg, var(--bg) 0%, transparent 40%);
}
.hero-content {
  position: relative;
  padding: 82px var(--page) 80px;
  max-width: 700px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.3px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 21px;
}
.eyebrow > span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 7px;
}
.hero h1 {
  margin-bottom: 24px;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  color: #c0c4bd;
  font-size: 13px;
}
.meta strong {
  color: var(--accent);
  font-size: 15px;
}
.meta .age {
  font-size: 10px;
  border: 1px solid #ffffff45;
  padding: 2px 4px;
  border-radius: 4px;
}
.hero-description {
  margin: 23px 0 28px;
  max-width: 425px;
  color: #c8cbc4;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.button {
  min-height: 48px;
  padding: 14px 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  transition:
    background 0.2s,
    transform 0.2s;
}
.primary {
  background: var(--accent);
  color: #1a2110;
}
.primary:hover {
  background: #e4ff88;
  transform: translateY(-1px);
}
.glass {
  background: #ffffff14;
  border-color: #ffffff12;
}
.glass:hover {
  background: #ffffff25;
}
.button svg {
  width: 19px;
  height: 19px;
}
.hero-note {
  font-size: 10px;
  color: #999f94;
  margin-top: 17px;
}
.hero-bottom {
  position: absolute;
  bottom: 35px;
  left: var(--page);
  right: var(--page);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.editor-choice {
  font-size: 9px;
  letter-spacing: 2px;
  color: #adafa9;
}
.editor-choice i {
  font-style: normal;
  color: #6a7263;
  margin: 0 15px;
}
.hero-pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}
.hero-pagination button {
  border: 0;
  padding: 14px 5px;
  background: transparent;
  position: relative;
  width: 24px;
  height: 30px;
}
.hero-pagination button:after {
  content: '';
  display: block;
  background: #ffffff40;
  height: 3px;
  border-radius: 2px;
  width: 14px;
}
.hero-pagination button.selected {
  width: 42px;
}
.hero-pagination button.selected:after {
  width: 32px;
  background: var(--accent);
}
.hero-pagination .hero-next {
  font-size: 24px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  margin-left: 18px;
  border: 1px solid #ffffff33;
  border-radius: 50%;
}
.hero-pagination .hero-next:after {
  display: none;
}
.page-content {
  padding: 0 var(--page);
  max-width: 1800px;
  margin: auto;
}
.discovery {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0 32px;
  margin-bottom: 42px;
  overflow-x: auto;
}
.discovery-label {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  margin-right: 8px;
}
.discovery a {
  padding: 12px 17px;
  background: #1b1e1b;
  border: 1px solid #ffffff08;
  border-radius: 7px;
  font-size: 11px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 22px;
}
.discovery a span {
  color: #9aab82;
}
.section {
  margin-bottom: 48px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}
.section-heading > a {
  font-size: 11px;
  color: #a8afa1;
  white-space: nowrap;
}
.section-heading > a span {
  font-size: 17px;
  margin-left: 12px;
}
.section-heading .eyebrow {
  margin-bottom: 11px;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 0 4px 14px;
}
.rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 6px 14px;
  margin: -8px -6px -14px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #333831 transparent;
}
.card {
  position: relative;
  display: block;
  flex: 0 0 calc((100% - 100px) / 6);
  min-width: 145px;
  scroll-snap-align: start;
}
.poster {
  position: relative;
  aspect-ratio: 2/3;
  background: linear-gradient(130deg, #2b3026, #191c18);
  border-radius: 9px;
  overflow: hidden;
}
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.card:hover img {
  transform: scale(1.045);
}
.card:hover h3 {
  color: var(--accent);
}
.card h3 {
  margin-top: 13px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.card > p {
  color: var(--muted);
  font-size: 10px;
  margin-top: 6px;
}
.rating {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 4px;
  padding: 4px 6px;
  background: var(--accent);
  color: #17200d;
  font-size: 10px;
  font-weight: 800;
}
.badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: #1c221ed9;
  backdrop-filter: blur(6px);
  font-size: 9px;
  padding: 6px 8px;
  border-radius: 4px;
  color: #eff2ea;
}
.card-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  background: #0003;
  transition: opacity 0.2s;
}
.card-play svg {
  background: #d6f46be6;
  color: #18200e;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  padding: 11px;
}
.card:hover .card-play,
.card:focus-visible .card-play {
  opacity: 1;
}
.ranked {
  padding-left: 58px;
  flex-basis: calc((100% - 80px) / 5);
  min-width: 180px;
}
.rank {
  font-size: 58px;
  position: absolute;
  left: 0;
  bottom: 49px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -5px;
  line-height: 1;
  color: var(--accent);
  z-index: 1;
  text-shadow: 3px 1px 0 var(--bg);
}
.ranked h3,
.ranked > p {
  padding-left: 4px;
}
.no-poster {
  display: grid;
  place-items: center;
  height: 100%;
  font-weight: 900;
  letter-spacing: 2px;
  color: #657151;
  font-size: 12px;
}
.collections-rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 7px;
  margin: -7px;
  scrollbar-width: thin;
}
.collection-card {
  display: block;
  position: relative;
  aspect-ratio: 1.65;
  overflow: hidden;
  border-radius: 10px;
  background: #272b23;
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 260px;
}
.collection-card:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #050805e6, transparent 95%);
}
.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.collection-card:hover img {
  transform: scale(1.04);
}
.collection-card > div {
  position: absolute;
  z-index: 1;
  bottom: 20px;
  left: 22px;
  right: 34px;
}
.collection-card small {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #d0d6c6;
}
.collection-card h3 {
  font-size: 21px;
  margin-top: 9px;
  max-width: 250px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.collection-card > span {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 22px;
  color: var(--accent);
  font-size: 23px;
}
.banner-rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
}
.banner-rail > a {
  flex: 0 0 48%;
  border-radius: 10px;
  overflow: hidden;
}
.banner-rail img {
  width: 100%;
}
.device-panel {
  border: 1px solid #d6f46b17;
  background: radial-gradient(ellipse at 10% 40%, #303c20, #191d16 60%);
  border-radius: 14px;
  padding: 45px;
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 64px 0;
}
.device-art {
  font-size: 58px;
  color: var(--accent);
  width: 145px;
  height: 100px;
  border: 2px solid #b3ce6666;
  box-shadow: 8px 8px 0 #d6f46b09;
  border-radius: 12px;
  display: grid;
  place-items: center;
  transform: rotate(-8deg);
}
.device-panel h2 {
  font-size: 28px;
  margin-bottom: 14px;
}
.device-panel p:not(.eyebrow) {
  font-size: 12px;
  color: var(--muted);
}
.device-panel .eyebrow {
  font-size: 8px;
  margin-bottom: 14px;
}
.device-panel .button {
  margin-left: auto;
}
.page-heading {
  padding: 55px 0 34px;
}
.page-heading h1 {
  font-size: 48px;
}
.page-heading > p:last-child:not(.eyebrow) {
  color: var(--muted);
  margin-top: 18px;
  font-size: 14px;
}
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}
.chips a {
  font-size: 13px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 30px;
}
.chips .active {
  background: var(--accent);
  color: #17200d;
}
@media (min-width: 701px) {
  .catalog-categories {
    display: none;
  }
}
.grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 30px 20px;
  margin-bottom: 60px;
}
.grid .card {
  min-width: 0;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  margin-bottom: 60px;
}
.collection-grid .collection-card {
  min-width: 0;
}
.notice {
  background: #20251c;
  color: #c4cdb8;
  border: 1px solid #d6f46b19;
  border-radius: 9px;
  padding: 17px 22px;
  margin: 20px 0;
  font-size: 13px;
}
.loading,
.empty {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 24px;
  gap: 20px;
}
.loading {
  color: var(--muted);
}
.loading > span {
  width: 36px;
  height: 36px;
  border: 2px solid #d6f46b22;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.empty h1 {
  font-size: 32px;
}
.empty p {
  color: var(--muted);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.detail {
  min-height: 620px;
  position: relative;
  overflow: hidden;
}
.detail-background {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #101111fa, #101111ce 45%, #10111125),
    linear-gradient(0deg, var(--bg), transparent 45%);
}
.detail-content {
  position: relative;
  padding: 36px var(--page) 55px;
  max-width: 880px;
}
.back {
  font-size: 12px;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 40px;
}
.detail h1 {
  font-size: 60px;
  margin-bottom: 12px;
}
.original-title {
  font-size: 15px;
  color: #949a8e;
  margin-bottom: 20px;
}
.detail-description {
  font-size: 14px;
  color: #c4c9bf;
  max-width: 680px;
  margin: 24px 0;
  line-height: 1.8;
}
.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 30px;
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.episode {
  padding: 0;
  text-align: left;
  border: 0;
  background: none;
}
.episode > div {
  position: relative;
  aspect-ratio: 16/9;
  background: #22271d;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
}
.episode img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.episode > div > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #0003;
}
.episode svg {
  width: 40px;
  height: 40px;
}
.episode small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1px;
}
.episode h3 {
  margin: 8px 0;
  font-size: 13px;
}
.season-label {
  font-size: 12px;
  color: var(--muted);
}
.season-label select {
  margin-left: 8px;
}
#search-form {
  display: flex;
  gap: 12px;
  margin: 5px 0 40px;
}
#search-input {
  background: #1c201a;
  color: var(--text);
  border: 1px solid #ffffff25;
  border-radius: 9px;
  padding: 18px 22px;
  min-width: 0;
  flex: 1;
  font-size: 16px;
}
.continue-rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 7px;
  margin: -7px;
}
.continue-card {
  flex: 0 0 330px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #23271f;
}
.continue-card img {
  width: 100%;
  aspect-ratio: 16/8;
  object-fit: cover;
}
.continue-card > div {
  padding: 16px;
}
.continue-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 10px;
}
progress {
  accent-color: var(--accent);
  width: 100%;
  height: 4px;
  display: block;
}
footer {
  border-top: 1px solid var(--line);
  padding: 32px var(--page);
  display: flex;
  align-items: center;
  gap: 28px;
}
footer .brand {
  font-size: 23px;
}
footer p {
  font-size: 11px;
  color: var(--muted);
}
footer > span {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}
.mobile-nav {
  display: none;
}
.toast {
  position: fixed;
  z-index: 100;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 24px;
  max-width: 90%;
  width: max-content;
  background: var(--accent);
  color: #192010;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: 0 12px 60px #0008;
}
.playing {
  overflow: hidden;
}
dialog {
  border: 1px solid #ffffff30;
  border-radius: 15px;
  background: #101311;
  color: var(--text);
  padding: 20px;
  max-width: 1200px;
  width: 95vw;
  max-height: 96dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #030503eb;
  backdrop-filter: blur(15px);
}
.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.player-header small {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--accent);
}
.player-header h2 {
  font-size: 18px;
  margin-top: 7px;
}
video {
  display: block;
  width: 100%;
  max-height: 65dvh;
  background: #000;
  border-radius: 7px;
}
.player-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 15px;
}
.player-toolbar button,
.player-toolbar select {
  font-size: 11px;
  padding: 12px;
}
.player-toolbar label {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
#player-status {
  color: var(--muted);
  font-size: 12px;
  margin-top: 12px;
}
#player-retry {
  margin-top: 10px;
}
.tv {
  --page: 70px;
}
.tv .header {
  height: 100px;
}
.tv .header nav {
  font-size: 19px;
}
.tv .card {
  flex-basis: calc((100% - 60px) / 4);
}
.tv .card h3 {
  font-size: 20px;
}
.tv .card > p {
  font-size: 16px;
}
.tv .hero-description {
  font-size: 19px;
}
.tv .hero {
  min-height: 650px;
}
.tv .hero-content {
  max-width: 850px;
}
.tv .button,
.tv button,
.tv select,
.tv .discovery a {
  font-size: 18px;
  min-height: 54px;
}
.tv .grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tv :focus-visible {
  outline-width: 4px;
  outline-offset: 6px;
  box-shadow: 0 0 0 9px #d6f46b22;
}
.tv .player-toolbar button,
.tv .player-toolbar select {
  font-size: 17px;
}
.tv .meta,
.tv .meta strong {
  font-size: 20px;
}
.tv .hero-note {
  font-size: 14px;
}
.tv .section-heading > a {
  font-size: 17px;
}
.tv .episode small {
  font-size: 15px;
}
.tv .episode h3 {
  font-size: 19px;
}
.tv .hero-content {
  padding-top: 75px;
}
.load-more {
  display: flex;
  justify-content: center;
  margin: -20px 0 60px;
}
.image-unavailable {
  background: linear-gradient(145deg, #34412b, #151913);
}
.poster.image-unavailable:before {
  content: 'СМОТРИЯ';
  position: absolute;
  top: 45%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 2px;
  color: #9aa889;
}
@media (min-width: 1800px) {
  .hero {
    height: 740px;
  }
  .hero-content {
    padding-top: 135px;
    max-width: 860px;
  }
}
@media (max-width: 1100px) {
  :root {
    --page: 32px;
  }
  .header {
    gap: 40px;
  }
  .header nav {
    gap: 22px;
  }
  .header-tools {
    gap: 12px;
  }
  .hero {
    min-height: 520px;
  }
  .hero-content {
    padding-top: 70px;
  }
  .card {
    flex-basis: calc((100% - 60px) / 4);
  }
  .ranked {
    flex-basis: calc((100% - 40px) / 3.7);
  }
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .collection-card {
    flex-basis: 45%;
  }
  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .episode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .device-art {
    display: none;
  }
  .discovery-label {
    display: none;
  }
}
@media (max-width: 700px) {
  :root {
    --page: 20px;
  }
  .header {
    height: 70px;
    gap: 20px;
  }
  .header .brand {
    font-size: 28px;
  }
  .header nav {
    display: none;
  }
  .header-tools {
    gap: 8px;
  }
  .hero {
    height: 620px;
    min-height: 0;
  }
  .hero-image {
    object-position: 65% 0;
    height: 76%;
  }
  .hero-shade {
    background: linear-gradient(0deg, var(--bg) 13%, #101111ed 30%, #10111144 65%, #10111120);
  }
  .hero-content {
    position: absolute;
    bottom: 65px;
    padding: 0 var(--page);
    max-width: 100%;
  }
  .hero h1 {
    font-size: 48px;
    max-width: 85%;
    margin-bottom: 18px;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 1.7px;
    margin-bottom: 14px;
  }
  .meta {
    gap: 12px;
    font-size: 12px;
  }
  .hero-description {
    margin: 18px 0 21px;
    font-size: 13px;
    -webkit-line-clamp: 2;
    max-width: 90%;
  }
  .hero-note {
    font-size: 9px;
  }
  .hero-bottom {
    bottom: 20px;
  }
  .editor-choice {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .hero-pagination .hero-next {
    display: none;
  }
  .hero-pagination {
    gap: 0;
  }
  .hero-pagination button {
    width: 20px;
  }
  .hero-pagination button.selected {
    width: 30px;
  }
  .hero-pagination button.selected:after {
    width: 22px;
  }
  .button {
    padding: 13px 18px;
    min-height: 48px;
    font-size: 12px;
  }
  .discovery {
    margin-bottom: 30px;
    padding: 15px 0 24px;
    gap: 8px;
  }
  .discovery a {
    padding: 12px;
    font-size: 11px;
    gap: 14px;
  }
  .section {
    margin-bottom: 34px;
  }
  h2 {
    font-size: 22px;
  }
  .section-heading {
    margin-bottom: 17px;
    gap: 12px;
  }
  .section-heading > a {
    font-size: 10px;
  }
  .section-heading > a span {
    margin: 0;
  }
  .section-heading .eyebrow {
    font-size: 8px;
  }
  .card {
    flex-basis: 42%;
    min-width: 125px;
  }
  .rail {
    gap: 13px;
  }
  .ranked {
    flex-basis: 50%;
    padding-left: 45px;
  }
  .rank {
    font-size: 44px;
    letter-spacing: -4px;
  }
  .card h3 {
    font-size: 12px;
  }
  .poster {
    border-radius: 7px;
  }
  .collection-card {
    flex-basis: 85%;
    min-width: 240px;
  }
  .collection-card h3 {
    font-size: 22px;
  }
  .collection-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .collection-grid .collection-card {
    min-width: 0;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 14px;
  }
  .banner-rail > a {
    flex-basis: 75%;
  }
  .device-panel {
    padding: 26px;
    display: block;
    margin: 40px 0;
  }
  .device-panel h2 {
    font-size: 27px;
  }
  .device-panel .button {
    margin-top: 22px;
  }
  .page-heading {
    padding: 35px 0 26px;
  }
  .page-heading h1 {
    font-size: 38px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .chips {
    gap: 8px;
  }
  .chips a {
    font-size: 11px;
    padding: 10px 14px;
  }
  .detail {
    min-height: 620px;
  }
  .detail-background {
    height: 450px;
    object-position: 65% top;
  }
  .detail-shade {
    background: linear-gradient(0deg, var(--bg) 24%, #101111d9 57%, #10111133);
  }
  .detail-content {
    padding-top: 25px;
  }
  .detail .back {
    margin-bottom: 125px;
  }
  .detail h1 {
    font-size: 42px;
  }
  .detail-description {
    font-size: 13px;
  }
  .detail .eyebrow {
    font-size: 9px;
  }
  .episode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }
  #search-form {
    gap: 8px;
  }
  #search-input {
    font-size: 14px;
    padding: 15px 12px;
  }
  #search-form button {
    padding: 12px;
  }
  .continue-card {
    flex-basis: 82%;
  }
  footer {
    padding: 24px var(--page) 100px;
    flex-wrap: wrap;
    gap: 14px;
  }
  footer p {
    font-size: 10px;
  }
  footer > span {
    margin: 0;
    width: 100%;
  }
  .mobile-nav {
    position: fixed;
    z-index: 5;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #ffffff1a;
    background: #171a16f5;
    padding: 17px 8px calc(17px + env(safe-area-inset-bottom));
    backdrop-filter: blur(15px);
    font-size: 11px;
  }
  .toast {
    bottom: 85px;
  }
  dialog {
    padding: 14px;
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
    max-height: 100dvh;
  }
  .player-header h2 {
    font-size: 14px;
  }
  .player-toolbar {
    gap: 6px;
  }
  .player-toolbar button,
  .player-toolbar select {
    font-size: 11px;
    min-height: 44px;
  }
  .player-toolbar label {
    margin-left: 0;
  }
  video {
    max-height: 55dvh;
  }
  .tv {
    --page: 24px;
  }
  .tv .header nav {
    display: none;
  }
  .tv .hero {
    min-height: 680px;
  }
  .tv .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tv .card {
    flex-basis: 65%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.quality-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #101810e8;
  color: var(--accent);
  border: 1px solid #d6f46b75;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  z-index: 1;
}
.quality-tag {
  color: var(--accent);
  border: 1px solid #d6f46b70;
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.rank {
  width: 48px;
  text-align: right;
  pointer-events: none;
}
.ranked .badge {
  font-size: 9px;
  max-width: calc(100% - 20px);
}
.season-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 5px 16px;
  margin: 0 -5px 10px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.season-tabs button {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px 18px;
  scroll-snap-align: start;
  border-radius: 10px;
  background: #1c211b;
  font-size: 14px;
  min-height: 48px;
}
.season-tabs small {
  font-size: 11px;
  opacity: 0.65;
}
.season-tabs [aria-pressed='true'] {
  color: #17200d;
  background: var(--accent);
  border-color: var(--accent);
}
.episodes-note {
  color: var(--muted);
  font-size: 11px;
}
.episode .episode-progress {
  position: static;
  aspect-ratio: auto;
  background: transparent;
  border-radius: 0;
  margin: 9px 0 4px;
  overflow: visible;
}
.episode-state {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 9px;
}
.episode-state.completed {
  color: var(--accent);
}
.episode .episode-thumb > .episode-play {
  position: absolute;
  inset: 0;
}
.episode .episode-thumb > .quality-badge {
  inset: auto;
  top: 10px;
  right: 10px;
}
.episode-progress progress {
  height: 4px;
  border-radius: 8px;
  overflow: hidden;
}
.player-toolbar {
  padding-top: 14px;
  margin-top: 0;
  min-height: 62px;
  justify-content: space-between;
  gap: 15px;
}
.player-toolbar #player-status {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.3px;
  color: #a4af98;
  flex: 1;
}
.player-toolbar .quality-control {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  border: 1px solid #d6f46b26;
  background: #1b2218;
  border-radius: 12px;
  padding: 4px 5px 4px 16px;
}
.quality-control > span {
  font-size: 11px;
  color: #acb6a2;
}
.player-toolbar #quality {
  background: #d6f46b;
  color: #19210f;
  font-weight: 700;
  border: 0;
  border-radius: 8px;
  min-height: 38px;
  padding: 8px 30px 8px 12px;
  font-size: 12px;
  max-width: 170px;
}
@media (max-width: 700px) {
  .rank {
    width: 35px;
  }
  .episodes-note {
    display: none;
  }
  .season-tabs button {
    padding: 11px 14px;
    font-size: 13px;
  }
  .episode-state {
    font-size: 10px;
  }
  .player-toolbar {
    gap: 10px;
  }
  .player-toolbar .quality-control {
    gap: 7px;
    padding-left: 10px;
  }
  .quality-control > span {
    font-size: 10px;
  }
  .player-toolbar #quality {
    max-width: 145px;
  }
  .player-toolbar #player-status {
    font-size: 10px;
  }
}
.tv .season-tabs button {
  font-size: 21px;
}
.tv .episode-state,
.tv .season-tabs small {
  font-size: 16px;
}
.tv .player-toolbar #quality {
  font-size: 18px;
  max-width: 220px;
}
.tv .quality-control > span {
  font-size: 17px;
}
.episode .episode-progress>.episode-state{position:static;inset:auto;display:block;background:none}
/* Navigation remains usable when the editor enables more sections. */
.header nav { flex-wrap: wrap; gap: 12px 20px; min-width: 0; }
.header nav a { white-space: nowrap; }
.editor-shortcut { position: fixed; right: 20px; bottom: 22px; z-index: 6; padding: 12px 18px; background: var(--accent); color: #172009; border-radius: 14px; box-shadow: 0 6px 28px #0006; font-size: 13px; font-weight: 700; }
body:has(dialog[open]) .editor-shortcut { display: none; }
@media(max-width: 800px) { .editor-shortcut { bottom: 94px; right: 12px; } .mobile-nav a { min-width: 0; max-width: 22%; text-align: center; } .mobile-nav span { overflow: hidden; text-overflow: ellipsis; display: block; } }

.catalog-filters { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin-bottom:32px; }
.catalog-filters label { display:grid; gap:8px; color:var(--muted); font-size:13px; flex:1 1 140px; }
.catalog-filters input,.catalog-filters select { width:100%; min-width:0; padding:14px; color:var(--text); background:var(--surface,#141b16); border:1px solid var(--line); border-radius:12px; }
@media(max-width:700px){.catalog-filters label{flex-basis:calc(50% - 12px)}.catalog-filters label:first-child{flex-basis:100%}}

