:root {
  --green: #85ba40;
  --green-dark: #6fa332;
  --green-soft: #eaf4d8;
  --green-chip: #d8ebc0;
  --green-chip-text: #4f7a22;
  --black: #1a1a1a;
  --text: #222;
  --muted: #8b8b8b;
  --muted-2: #a0a0a0;
  --line: #e8e8e8;
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --bg-page: #ffffff;
  --bg-wallpaper: #0a1208;
  --surface: #ffffff;
  --surface-2: #f7f7f7;
  --surface-3: #f8f8f8;
  --text-nav: #2a2a2a;
  --border: #e8e8e8;
  --border-strong: #e0e0e0;
  --input-bg: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.96);
  --control-hover: #f3f3f3;
  --chip-bg: #f1f1f1;
  --chip-text: #444444;
  --panel-shadow: 0 10px 32px rgba(40, 50, 30, 0.06);
  --site-max: 1280px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.08);
  --container: 1180px;
  --header-h: 72px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Oswald", "Manrope", sans-serif;
  color-scheme: light;
}

body[data-theme="dark"] {
  --green-soft: rgba(133, 186, 64, 0.14);
  --green-chip: rgba(133, 186, 64, 0.22);
  --green-chip-text: #b5db7a;
  --black: #f2f2f2;
  --text: #eaeaea;
  --muted: #8f8f8f;
  --muted-2: #9a9a9a;
  --line: #2a2a2a;
  --bg: #171717;
  --bg-soft: #1e1e1e;
  --bg-page: #171717;
  --bg-wallpaper: #050505;
  --surface: #171717;
  --surface-2: #1e1e1e;
  --surface-3: #1c1c1c;
  --text-nav: #dddddd;
  --border: #2a2a2a;
  --border-strong: #363636;
  --input-bg: #1e1e1e;
  --header-bg: rgba(23, 23, 23, 0.94);
  --control-hover: #2a2a2a;
  --chip-bg: #222222;
  --chip-text: #cfcfcf;
  --panel-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
  --shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-height: 100%;
  background-color: var(--bg-wallpaper);
  background-image: url("../images/lord/bg-site.svg");
  background-attachment: fixed;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.site {
  width: min(100%, var(--site-max));
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-page);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.55);
  position: relative;
}

h1, h2,
.logo__text,
.hero__title,
.section__title,
.catalog-page__title,
.catalog-page__title-text,
.title-hero__name,
.title-plot h2,
.title-comments__head h2,
.title-share h2,
.series-block__title,
.actor-page__name,
.actor-page__block-title {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

a,
button,
.chip,
.sort-btn,
.tabs__btn,
.card--poster {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:active,
.chip:active,
.sort-btn:active,
.pop-nav:active,
.series-rail__btn:active,
.hero__arrow:active,
.title-rate__star:active,
.title-share__btn:active,
.pager__btn:active,
.btn--outline:active,
.btn--primary:active {
  filter: brightness(0.92);
  transition: filter 0.08s ease;
}

.btn--primary:hover {
  filter: brightness(1.08);
  background: #78ad36;
}

.btn--outline:hover {
  background: var(--green-soft);
  color: var(--green-dark);
  border-color: var(--green);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.header__nav a:hover,
.footer__col a:hover,
.footer__links a:hover,
.footer__legal a:hover,
.crumbs a:hover {
  color: var(--green);
}

.header__search button:hover {
  color: var(--green-dark);
  background: var(--green-soft);
}

.tabs__btn:hover {
  color: var(--green);
}

.chip:hover {
  background: #ddd;
}

.chip.is-active:hover {
  background: #cfe6a8;
}

.card--poster:hover {
  transform: none;
  filter: none;
}

.card--poster .card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 10, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1;
  pointer-events: none;
}

.card--poster .card__media::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 6.8v10.4L18 12 9 6.8Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 30px 30px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

@media (hover: hover) and (pointer: fine) {
  .grid .card--poster:hover,
  .carousel .card--poster:hover {
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(133, 186, 64, 0.45);
  }

  .card--poster:hover .card__title {
    color: var(--green);
  }

  .card--poster:hover .card__media::before,
  .card--poster:hover .card__media::after {
    opacity: 1;
  }
}

.title-share__btn:hover {
  color: #222;
  border-color: #cfcfcf;
  background: #f3f3f3;
  transform: none;
  filter: none;
  box-shadow: none;
}

.title-share__btn[data-share="tg"]:hover {
  color: #2aabee;
  border-color: #2aabee;
  background: #eef8fd;
}

.title-share__btn[data-share="vk"]:hover {
  color: #0077ff;
  border-color: #0077ff;
  background: #eef5ff;
}

.title-share__btn[data-share="ok"]:hover {
  color: #ee8208;
  border-color: #ee8208;
  background: #fff6eb;
}

.title-share__btn[data-share="wa"]:hover {
  color: #25d366;
  border-color: #25d366;
  background: #eefbf3;
}

.title-share__btn[data-share="viber"]:hover {
  color: #7360f2;
  border-color: #7360f2;
  background: #f3f1fe;
}

.title-share__btn[data-share="x"]:hover {
  color: #111;
  border-color: #111;
  background: #f3f3f3;
}

.title-share__btn[data-share="copy"]:hover {
  color: var(--green-dark);
  border-color: var(--green);
  background: var(--green-soft);
}

.footer__social a:hover {
  color: #222;
  background: #f3f3f3;
  border-color: #cfcfcf;
  transform: none;
  box-shadow: none;
}

.footer__social a[data-share="tg"]:hover,
.footer__social a[data-share="telegram"]:hover {
  color: #2aabee;
  border-color: #2aabee;
  background: #eef8fd;
}

.footer__social a[data-share="vk"]:hover {
  color: #0077ff;
  border-color: #0077ff;
  background: #eef5ff;
}

.footer__social a[data-share="ok"]:hover {
  color: #ee8208;
  border-color: #ee8208;
  background: #fff6eb;
}

.footer__social a[data-share="wa"]:hover,
.footer__social a[data-share="whatsapp"]:hover {
  color: #25d366;
  border-color: #25d366;
  background: #eefbf3;
}

.footer__social a[data-share="viber"]:hover {
  color: #7360f2;
  border-color: #7360f2;
  background: #f3f1fe;
}

.footer__social a[data-share="x"]:hover {
  color: #111;
  border-color: #111;
  background: #f3f3f3;
}

.mobile-menu__nav a:hover {
  color: var(--green-dark);
  background: var(--green-soft);
}

.sort__menu button:hover {
  background: var(--green-soft);
  color: var(--green-dark);
}

.pager__btn:hover:not(:disabled) {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.title-player__tab:hover:not(.is-active) {
  background: #dce4cf;
}

.hero__arrow:hover {
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(133, 186, 64, 0.45);
  color: var(--green-dark);
  box-shadow: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.mobile-only {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--green);
  color: #fff;
}

.btn--outline {
  border: 1.5px solid var(--green);
  color: var(--green);
  background: transparent;
}

.btn--ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
}

.btn--lg {
  height: 46px;
  padding: 0 22px;
  font-size: 15px;
  border-radius: 10px;
}

.btn--block {
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo__icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 8px;
  display: block;
}

.logo__text {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--black);
  line-height: 1;
}

.logo__accent {
  color: var(--green);
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  position: relative;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.header__burger,
.header__search-btn {
  display: none;
  color: var(--black);
}

.header__burger {
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.header__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}

.header__nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-nav);
  transition: color 0.15s;
}

.header__search {
  margin-left: auto;
  display: flex;
  align-items: center;
  width: min(360px, 100%);
  height: 42px;
  padding: 0 8px 0 16px;
  background: var(--input-bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.header__search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text);
  min-width: 0;
}

.header__search input[type="search"]::-webkit-search-cancel-button,
.header__search input[type="search"]::-webkit-search-decoration,
.header__search input[type="search"]::-ms-clear {
  -webkit-appearance: none;
  appearance: none;
  display: none;
  width: 0;
  height: 0;
}

.header__search input::placeholder {
  color: #b0b0b0;
}

.header__search button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--green);
  border-radius: 50%;
}

.hero {
  padding: 20px 0 8px;
}

.hero__slider {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 440px;
  box-shadow: var(--shadow-soft);
}

.hero__track {
  position: relative;
  height: 100%;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  background: #0c1416;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 14, 16, 0.88) 0%, rgba(8, 14, 16, 0.55) 42%, rgba(8, 14, 16, 0.18) 72%, rgba(8, 14, 16, 0.28) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.3), transparent 50%);
  pointer-events: none;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100% - 140px));
  height: 100%;
  padding: 48px 72px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
}

.hero__title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  overflow: visible;
  max-width: 100%;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.hero__desc {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  max-width: 460px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(44, 51, 36, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: #5c6354;
  place-items: center;
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 3;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.hero__arrow:not([hidden]) {
  display: grid;
}

.hero__arrow svg {
  width: 16px;
  height: 16px;
}

.hero__arrow--prev {
  left: 18px;
}

.hero__arrow--next {
  right: 18px;
}

.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: 0.2s;
}

.hero__dots button.is-active {
  width: 22px;
  border-radius: 999px;
  background: var(--green);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
}

.badge--premiere {
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.badge--rating {
  position: absolute;
  top: 10px;
  left: 10px;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  gap: 4px;
  z-index: 2;
}

.badge--season {
  position: absolute;
  top: 10px;
  left: 10px;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  z-index: 2;
  text-transform: none;
}

.badge--rating-br {
  top: auto;
  left: auto;
  bottom: 10px;
  right: 10px;
}

.badge--hd {
  height: 20px;
  padding: 0 6px;
  border: 1.5px solid var(--green);
  border-radius: 4px;
  color: var(--green);
  font-size: 10px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.badge--hd-fill {
  position: absolute;
  top: 10px;
  left: 10px;
  height: 22px;
  padding: 0 7px;
  border-radius: 5px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  z-index: 2;
}

.section {
  padding: 28px 0 8px;
}

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section__head--tabs {
  margin-bottom: 20px;
}

.section__left {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
  flex-wrap: wrap;
}

.section__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.02em;
}

.section__icon {
  color: var(--green);
  display: grid;
  place-items: center;
}

.section__more {
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  transition: color 0.2s ease, gap 0.2s ease;
}

.section__more span {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.section__more:hover {
  color: var(--green-dark);
  gap: 8px;
}

.section__more:hover span {
  transform: translateX(3px);
}

.tabs {
  display: flex;
  align-items: center;
  gap: 18px;
}

.tabs__btn {
  position: relative;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s;
}

.tabs__btn.is-active {
  color: var(--green);
}

.tabs__btn.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

.card {
  display: block;
  min-width: 0;
  color: inherit;
}

.card--poster .card__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #1a1a1a;
}

.card--poster .card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.card__body {
  padding-top: 10px;
}

.card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card__meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card__row .card__meta {
  min-width: 0;
}

.grid .card--poster,
.carousel .card--poster {
  background: var(--surface);
  border-radius: 14px;
  overflow: visible;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.grid .card--poster .card__media,
.carousel .card--poster .card__media {
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  aspect-ratio: 2 / 3;
}

.grid .card--poster .card__body,
.carousel .card--poster .card__body {
  padding: 10px 12px 12px;
  background: var(--surface);
  border-radius: 0 0 14px 14px;
}

.grid .card--poster .card__title,
.carousel .card--poster .card__title {
  font-size: 14px;
  margin-bottom: 3px;
}

.grid .card--poster .card__meta,
.carousel .card--poster .card__meta {
  font-size: 12px;
  color: #8e8e8e;
}

.carousel {
  position: relative;
}

.carousel__viewport {
  overflow: hidden;
  padding: 8px 12px 20px;
  margin: -8px -12px -20px;
}

.carousel__track {
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: max-content;
  transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

.carousel__track > .card {
  flex: 0 0 auto;
  min-width: 0;
}

.pop-nav {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(44, 51, 36, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #5c6354;
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  place-items: center;
  z-index: 5;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pop-nav.is-on {
  display: grid;
}

.pop-nav svg {
  width: 16px;
  height: 16px;
}

.pop-nav--prev {
  left: 0;
}

.pop-nav--next {
  right: 0;
}

.pop-nav:hover {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(133, 186, 64, 0.45);
  color: var(--green-dark);
}

.grid {
  display: grid;
  gap: 18px 16px;
}

.grid--6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

#homeMoviesGrid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

#homeMoviesGrid:has(.card:only-child),
#homeMoviesGrid:has(.card:nth-child(2):last-child),
#homeMoviesGrid:has(.card:nth-child(3):last-child) {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.filters {
  padding: 18px 0 4px;
}

.filters__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.chip {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: 13px;
  font-weight: 600;
  transition: 0.15s;
}

.chip.is-active {
  background: var(--green-chip);
  color: var(--green-chip-text);
}

.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--chip-text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.sort {
  position: relative;
  flex-shrink: 0;
}

.sort.is-open .sort-btn {
  border-color: var(--green);
}

.sort__menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  z-index: 20;
}

.sort.is-open .sort__menu {
  display: grid;
  gap: 2px;
}

.sort__menu button {
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.sort__menu button.is-active {
  background: var(--green-soft);
  color: var(--green-dark);
}

.catalog-page {
  padding: 28px 0 48px;
}

.catalog-page__head {
  margin-bottom: 8px;
}

.catalog-page__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font);
  font-size: 28px;
  font-weight: 800;
  font-style: normal;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.catalog-page__title-text {
  font: inherit;
  font-weight: 800;
  letter-spacing: inherit;
}

.catalog-page__title .section__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--green);
  width: 28px;
  height: 28px;
}

.catalog-page__title .section__icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.catalog-page__count {
  margin-top: 8px;
  margin-left: 40px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
  letter-spacing: 0;
}

.catalog-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.search-page__form {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.search-page__form input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 18px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
}

.search-page__form input:focus {
  border-color: var(--green);
}

.search-page__form .btn {
  height: 48px;
  padding: 0 24px;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .search-page__form .btn {
    padding: 0 18px;
  }
}

.catalog-page .grid {
  margin-top: 8px;
}

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.pager__btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--chip-text);
  font-size: 14px;
  font-weight: 700;
  transition: 0.15s;
}

.pager__btn.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.pager__btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.pager__gap {
  color: var(--muted);
  padding: 0 4px;
}

.footer__bottom--simple {
  border-top: none;
  padding-top: 0;
}

.header__nav a.is-current {
  color: var(--green);
  font-weight: 700;
}

.features {
  padding: 36px 0 8px;
}

.features__bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 28px 28px;
  background: var(--surface-2);
  border-radius: 18px;
  border: 1px solid var(--border);
}

.features__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.features__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.features__item h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}

.features__item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.footer {
  margin-top: 40px;
  padding: 40px 0 24px;
  background: var(--surface-3);
  border-top: 1px solid var(--line);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 1.3fr;
  gap: 28px 40px;
  align-items: start;
  padding-bottom: 28px;
}

.footer__brand p {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  max-width: 240px;
  line-height: 1.5;
}

.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.footer__col h4,
.footer__news h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 12px;
}

.footer__col {
  display: block;
}

.footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
}

.footer__links a,
.footer__col a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
  line-height: 1.35;
}

.footer__news p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 14px;
}

.footer__form {
  display: flex;
  align-items: stretch;
  height: 44px;
  background: var(--input-bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  overflow: hidden;
}

.footer__form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 14px;
  font-size: 13px;
  min-width: 0;
  background: transparent;
  color: var(--text);
}

.footer__form input::placeholder {
  color: #b0b0b0;
}

.footer__form button {
  width: 44px;
  background: var(--green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted-2);
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  font-weight: 700;
  color: var(--muted);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.4);
}

.mobile-menu[hidden] {
  display: none !important;
}

.mobile-menu__panel {
  width: min(320px, 86vw);
  height: 100%;
  background: var(--surface);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: slideIn 0.25s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(-12px);
    opacity: 0.6;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.mobile-menu__close {
  align-self: flex-end;
  color: #444;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu__nav a {
  padding: 12px 8px;
  font-size: 17px;
  font-weight: 600;
  border-radius: 8px;
}

.features-mob {
  padding: 12px 0 8px;
}

.features-mob__list {
  border-top: 1px solid var(--border);
}

.features-mob__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.features-mob__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1.5px solid var(--green);
  color: var(--green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.features-mob__icon--text {
  font-size: 12px;
  font-weight: 800;
}

.features-mob__item h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 2px;
}

.features-mob__item p {
  font-size: 13px;
  color: var(--muted);
}

.footer__mobile {
  text-align: center;
  padding: 8px 0 20px;
}

.footer__mobile .logo {
  justify-content: center;
  margin-bottom: 18px;
}

.footer__social--center {
  justify-content: center;
  margin: 0 0 18px;
}

.footer__copy-mob {
  font-size: 12px;
  color: var(--muted-2);
}

@media (max-width: 1100px) {
  .grid--6 {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid--6 .card:nth-child(n + 5) {
    display: none;
  }

  .catalog-page .grid--6 .card:nth-child(n + 5) {
    display: block;
  }

  .catalog-page .grid--6 {
    grid-template-columns: repeat(4, 1fr);
  }

  .features__bar {
    grid-template-columns: 1fr 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .footer__news {
    grid-column: 1 / -1;
    max-width: 420px;
  }
}

@media (max-width: 900px) {
  .header__nav {
    display: none;
  }

  .header__search {
    width: min(280px, 40vw);
  }

  .hero__content {
    padding: 40px 48px;
  }

  .hero__title {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 58px;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  p.mobile-only.hero__desc {
    display: block !important;
  }

  .container {
    width: min(100% - 32px, var(--container));
  }

  .header__burger,
  .header__search-btn {
    display: inline-flex;
  }

  .header__search-btn {
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--black);
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
  }

  .header__search-btn svg {
    width: 28px;
    height: 28px;
  }

  .header__search-btn svg circle,
  .header__search-btn svg path {
    stroke-width: 2;
  }

  .header__search-btn:hover {
    color: var(--green-dark);
    background: transparent;
  }

  .header__search,
  .header__nav {
    display: none;
  }

  .header.is-search-open .header__search {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    width: auto;
    margin: 0;
    z-index: 60;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  }

  .header__inner {
    justify-content: space-between;
    gap: 12px;
  }

  .header .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .logo__text {
    font-size: 17px;
  }

  .logo__icon {
    width: 30px;
    height: 30px;
  }

  .hero {
    padding: 12px 0 4px;
  }

  .hero__slider {
    height: 480px;
    border-radius: 16px;
  }

  .hero__track {
    height: 100%;
  }

  .hero__slide::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 20%, rgba(0, 0, 0, 0.78) 72%, rgba(0, 0, 0, 0.9) 100%);
  }

  .hero__content {
    max-width: none;
    width: 100%;
    height: 100%;
    padding: 20px 18px 40px;
    justify-content: flex-end;
    gap: 10px;
  }

  .hero__content .badge--premiere {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
  }

  .hero__title {
    font-size: 26px;
  }

  .hero__desc {
    font-size: 13px;
    max-width: none;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__actions .btn--primary {
    width: 100%;
    height: 48px;
    font-size: 16px;
  }

  .hero__arrow,
  .hero__arrow:not([hidden]) {
    display: none !important;
  }

  .hero__dots {
    bottom: 12px;
  }

  .hero__dots button.is-active {
    width: 8px;
    background: var(--green);
  }

  .section {
    padding: 22px 0 4px;
  }

  .section__title {
    font-size: 18px;
  }

  .section__more {
    font-size: 13px;
  }

  .section__icon {
    width: 28px;
    height: 28px;
  }

  .section__head {
    margin-bottom: 14px;
  }

  .section__head--tabs {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "title more"
      "tabs tabs";
    align-items: center;
    gap: 12px;
  }

  .section__left {
    display: contents;
  }

  .section__head--tabs .section__title {
    grid-area: title;
  }

  .section__head--tabs .section__more {
    grid-area: more;
    justify-self: end;
  }

  .section__head--tabs .tabs {
    grid-area: tabs;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    padding: 0;
  }

  .tabs__btn {
    height: 40px;
    padding: 0 8px;
    border-radius: 10px;
    background: #f1f1f1;
    color: #555;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
  }

  .tabs__btn.is-active {
    background: var(--green-soft);
    color: var(--green-dark);
  }

  .tabs__btn.is-active::after {
    display: none;
  }

  .filters {
    padding: 10px 0 4px;
  }

  .filters__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .filters__chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 2px 2px 6px;
    scrollbar-width: none;
    margin: 0 -4px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .filters__chips::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex-shrink: 0;
    height: 40px;
    padding: 0 16px;
    font-size: 13px;
  }

  .sort {
    align-self: stretch;
    width: 100%;
  }

  .sort-btn {
    width: 100%;
    height: 44px;
    justify-content: space-between;
    padding: 0 14px 0 16px;
    border-radius: 12px;
    font-size: 14px;
  }

  .sort__menu {
    left: 0;
    right: 0;
    min-width: 0;
    width: 100%;
  }

  .sort__menu button {
    padding: 12px 14px;
    font-size: 14px;
    min-height: 44px;
  }

  .pop-nav,
  .pop-nav.is-on {
    display: none !important;
  }

  .carousel__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    touch-action: pan-x;
    padding: 6px 8px 16px;
    margin: -6px -8px -16px;
  }

  .carousel__viewport::-webkit-scrollbar {
    display: none;
  }

  .carousel__track {
    gap: 12px;
    transition: none;
    will-change: auto;
  }

  #homeMoviesGrid,
  #homeSeriesGrid,
  .grid--6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }

  .grid .card--poster .card__title,
  .carousel .card--poster .card__title {
    font-size: 13px;
  }

  .footer {
    margin-top: 16px;
    padding: 24px 0 20px;
    background: var(--surface-3);
    border-top: 1px solid var(--line);
  }

  .catalog-page .grid--6 {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-page .grid--6 .card:nth-child(n + 5) {
    display: block;
  }
}

@media (max-width: 480px) {
  .hero__slider {
    height: 460px;
  }

  .hero__title {
    font-size: 24px;
  }

  .catalog-page .grid--6 {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-page .grid--6 .card:nth-child(n + 5) {
    display: block;
  }

  .tabs__btn {
    font-size: 11px;
    padding: 0 4px;
  }
}

.page-title {
  background: #eef0eb;
}

.page-title .header {
  background: rgba(255, 255, 255, 0.98);
}

.page-title .footer {
  background: #e8ebe4;
  border-top: 1px solid #dde2d6;
  margin-top: 0;
}

.title-page {
  padding: 20px 0 56px;
}

.title-page__loading {
  padding: 48px 0;
  text-align: center;
  color: var(--muted);
}

.title-missing {
  background: var(--surface);
  border-radius: 18px;
  padding: 48px 28px;
  text-align: center;
  box-shadow: var(--panel-shadow);
}

.title-missing h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.title-missing p {
  color: var(--muted);
  margin-bottom: 22px;
}

.title-missing__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #7a7f74;
}

.crumbs__sep {
  opacity: 0.5;
}

.crumbs__current {
  color: #3a3f36;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--panel-shadow);
}

.rules-page {
  padding: 28px 0 48px;
}

.rules {
  padding: 32px 36px 40px;
  max-width: 860px;
}

.rules__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--black);
  margin-bottom: 22px;
  line-height: 1.15;
}

.rules__subtitle {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  margin: 28px 0 14px;
  line-height: 1.3;
}

.rules p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 14px;
}

.rules__list {
  margin: 0 0 18px;
  padding-left: 1.25em;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rules__list li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  padding-left: 4px;
}

.rules__list li::marker {
  color: var(--green);
}

@media (max-width: 700px) {
  .rules-page {
    padding: 16px 0 32px;
  }

  .rules {
    padding: 22px 18px 28px;
    border-radius: 14px;
  }

  .rules__title {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .rules__subtitle {
    font-size: 16px;
    margin: 22px 0 12px;
  }

  .rules p,
  .rules__list li {
    font-size: 14px;
  }
}

.title-hero {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  padding: 28px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.title-hero::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(133, 186, 64, 0.16), transparent 70%);
  pointer-events: none;
}

.title-hero__poster-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.title-poster {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #111;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.title-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.title-rate {
  display: grid;
  gap: 4px;
  padding: 2px 0 4px;
}

.title-rate__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-rate__score {
  font-size: 34px;
  font-weight: 800;
  color: var(--black);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  min-width: 1.6em;
}

.title-rate__pick {
  display: flex;
  gap: 0;
}

.title-rate__star {
  width: 30px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #cfcfcf;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.12s ease;
}

.title-rate__star.is-active {
  color: #e0c36a;
}

.title-rate__star.is-mine,
.title-rate__star.is-hover {
  color: #f0b429;
}

.title-rate__meta {
  margin: 0;
  font-size: 13px;
  color: #8a8a8a;
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.title-rate__dot {
  opacity: 0.6;
}

.title-actions {
  display: grid;
  gap: 8px;
}

.title-actions .btn {
  width: 100%;
  transform: none !important;
  box-shadow: none !important;
}

.title-actions .btn--primary:hover {
  background: #6fa32f;
  filter: none;
}

.title-actions .btn--outline:hover {
  background: var(--green-soft);
  color: var(--green-dark);
  border-color: var(--green);
  filter: none;
}

.title-actions .btn.is-active,
#favBtn.is-active {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green-dark);
}

#favBtn.is-active:hover {
  background: #d7ebba;
  color: var(--green-dark);
}

.hero__actions .btn {
  transform: none !important;
  box-shadow: none !important;
}

.hero__actions .btn--primary:hover {
  background: #6fa32f;
  filter: none;
}

.hero__actions .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  filter: none;
}

.title-hero__info {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.title-hero__name {
  font-family: var(--font);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 8px;
}

.title-hero__meta {
  font-size: 14px;
  color: #7a8074;
  margin-bottom: 14px;
}

.title-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.title-scores__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 6px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.title-scores__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1;
}

.title-scores__mark--site {
  min-width: 24px;
  padding: 0 4px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
}

.title-scores__mark--kp {
  min-width: 28px;
  padding: 0 6px;
  background: #ff6600;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.title-scores__mark--imdb {
  padding: 0 6px;
  background: #f5c518;
  color: #111;
  font-size: 11px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.title-scores__item strong {
  font-size: 15px;
  font-weight: 800;
  color: #222;
  font-variant-numeric: tabular-nums;
}

.title-hero__orig {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 14px;
  color: #6d7368;
}

.title-age {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid #d5d9cf;
  font-size: 12px;
  font-weight: 700;
  color: #555;
}

.title-specs {
  display: grid;
  gap: 0;
  margin-bottom: 18px;
  border-top: 1px solid #eef0ea;
}

.title-specs > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef0ea;
  font-size: 14px;
}

.title-specs dt {
  color: #8b9185;
  font-weight: 600;
}

.title-specs dd {
  color: #2c3028;
  min-width: 0;
}

.title-plot h2 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.title-plot p {
  font-size: 15px;
  line-height: 1.55;
  color: #4a5044;
}

.title-player {
  padding: 18px;
  margin-bottom: 20px;
}

.title-player__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.title-player__tab {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.15s;
}

.title-player__tab.is-active {
  background: var(--green);
  color: #fff;
}

.title-player__frame {
  border-radius: 14px;
  overflow: hidden;
  background: #121512;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
}

.title-player__placeholder {
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  padding: 24px;
}

.title-player__placeholder svg {
  margin: 0 auto 12px;
  color: var(--green);
}

.title-player__placeholder p {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.title-player__placeholder span {
  font-size: 13px;
  opacity: 0.7;
}

.title-player__episode {
  font-size: 16px !important;
  color: var(--green) !important;
  margin-bottom: 8px !important;
}

.series-block {
  padding: 22px 24px;
  margin-bottom: 20px;
}

.series-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.series-block__title {
  font-size: 18px;
  font-weight: 800;
}

.series-block__sub {
  font-size: 13px;
  color: #8b9185;
  font-weight: 600;
}

.series-rail {
  position: relative;
}

.series-rail__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(44, 51, 36, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: #5c6354;
  place-items: center;
  cursor: pointer;
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.series-rail__btn:not([hidden]) {
  display: grid;
}

.series-rail__btn svg {
  width: 16px;
  height: 16px;
}

.series-rail__btn:disabled {
  opacity: 0.25;
  background: rgba(255, 255, 255, 0.5);
  border-color: transparent;
  color: #9aa091;
  cursor: default;
}

.series-rail__btn--prev { left: -2px; }
.series-rail__btn--next { right: -2px; }

.series-rail__btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(133, 186, 64, 0.45);
  color: var(--green-dark);
  box-shadow: none;
}

.series-rail--cast {
  --cast-photo-h: 140px;
}

.series-rail--cast .series-cast-nav {
  top: calc(var(--cast-photo-h) / 2 + 4px);
}

.series-rail--cast .series-cast-nav__icon {
  display: grid;
  place-items: center;
  line-height: 0;
}

.series-seasons {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.series-seasons::-webkit-scrollbar {
  display: none;
  height: 0;
}

.series-seasons__btn {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 6px;
  align-items: center;
  min-width: 88px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.series-seasons__num {
  grid-row: 1 / 3;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.series-seasons__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.series-seasons__year {
  font-size: 12px;
  font-weight: 600;
  color: #667059;
}

.series-seasons__btn:hover {
  border-color: var(--green);
}

.series-seasons__btn.is-active {
  background: var(--green-soft);
  border-color: var(--green);
}

.series-seasons__btn.is-active .series-seasons__num {
  color: var(--green-dark);
}

.series-eps {
  display: grid;
  gap: 8px;
  border-left: 2px solid #e4e9d8;
  padding-left: 14px;
  margin-left: 6px;
}

.series-ep {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  position: relative;
}

.series-ep::before {
  content: "";
  position: absolute;
  left: -17px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--bg-page);
  box-shadow: 0 0 0 1px var(--border-strong);
}

.series-ep--soon::before {
  background: #c5cbb8;
}

.series-ep__num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
}

.series-ep__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.series-ep__date {
  font-size: 12px;
  color: #8b9185;
}

.series-ep__status {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.series-ep__status--out {
  background: var(--green-soft);
  color: var(--green-dark);
}

.series-ep__status--soon {
  background: #efefe8;
  color: #8a8f7e;
}

.series-ep__watch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  transition: filter 0.15s ease;
}

.series-ep__watch:hover {
  filter: brightness(1.08);
}

.series-ep__watch--disabled {
  background: transparent;
  color: #b7bdaa;
  font-weight: 700;
}

.series-ep.is-playing {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: 0 0 0 1px rgba(133, 186, 64, 0.35);
}

.series-ep.is-playing .series-ep__watch {
  background: var(--green-dark);
}

.series-cast {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 5 * 16px) / 6);
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.series-cast::-webkit-scrollbar {
  display: none;
  height: 0;
}

.series-actor {
  scroll-snap-align: start;
  text-align: center;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  display: block;
}

.series-actor__photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #e8ecdf;
  border: 2px solid transparent;
  outline: 1px solid #e3e7da;
  outline-offset: 0;
  transition: border-color 0.2s ease, outline-color 0.2s ease, box-shadow 0.2s ease;
}

.series-actor__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none;
  transition: filter 0.2s ease;
}

.series-actor:hover .series-actor__photo {
  border-color: var(--green);
  outline-color: var(--green);
  box-shadow: 0 0 0 3px rgba(133, 186, 64, 0.2);
}

.series-actor:hover .series-actor__photo img {
  filter: brightness(1.06);
}

.series-actor__name {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 3px;
  color: #222;
}

.series-actor__role {
  display: block;
  font-size: 12px;
  color: #8b9185;
  font-weight: 600;
  line-height: 1.35;
}

.series-stills {
  display: grid;
  gap: 12px;
}

.series-stills__main,
.series-stills__extra {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.series-stills__extra {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.35s ease;
}

.series-stills__extra.is-open {
  max-height: 1400px;
  opacity: 1;
}

.series-stills__extra .series-still {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.2s ease;
  transition-delay: 0s;
}

.series-stills__extra.is-open .series-still {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--i, 0) * 0.05s);
}

.series-still {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  cursor: pointer;
}

.series-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.series-still__zoom {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(28, 36, 20, 0.35);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.series-still:hover {
  border-color: var(--green);
}

.series-still:hover .series-still__zoom {
  opacity: 1;
}

.series-stills__more {
  margin-top: 14px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.still-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.still-lightbox[hidden] {
  display: none;
}

.still-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 20, 12, 0.78);
}

.still-lightbox__dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: 90vh;
  display: grid;
  place-items: center;
}

.still-lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  object-fit: contain;
  background: #111;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.still-lightbox__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.still-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  transform: scale(1.06);
}

.still-lightbox__close:active {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0.98);
}

.still-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: #5c6354;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.still-lightbox__nav[hidden] {
  display: none !important;
}

.still-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(133, 186, 64, 0.45);
  color: var(--green-dark);
}

.still-lightbox__nav svg {
  width: 16px;
  height: 16px;
}

.still-lightbox__nav--prev { left: -8px; }
.still-lightbox__nav--next { right: -8px; }

.still-lightbox__counter {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .series-block {
    padding: 16px;
  }

  .series-rail__btn {
    display: none !important;
  }

  .series-seasons,
  .series-cast {
    scrollbar-width: thin;
    scrollbar-color: #c5ceb6 transparent;
  }

  .series-seasons::-webkit-scrollbar,
  .series-cast::-webkit-scrollbar {
    display: block;
    height: 4px;
  }

  .series-seasons::-webkit-scrollbar-thumb,
  .series-cast::-webkit-scrollbar-thumb {
    background: #c5ceb6;
    border-radius: 999px;
  }

  .series-cast {
    grid-auto-columns: 42%;
    gap: 12px;
  }

  .series-ep {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    grid-template-areas:
      "num body watch"
      "num status watch";
    gap: 6px 10px;
    align-items: center;
    padding: 12px;
  }

  .series-ep__num {
    grid-area: num;
    align-self: start;
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .series-ep__body {
    grid-area: body;
    min-width: 0;
  }

  .series-ep__title {
    font-size: 13px;
    line-height: 1.3;
    word-break: break-word;
  }

  .series-ep__date {
    font-size: 11px;
  }

  .series-ep__status {
    grid-area: status;
    justify-self: start;
    font-size: 11px;
    padding: 4px 8px;
  }

  .series-ep__watch {
    grid-area: watch;
    align-self: center;
    justify-self: end;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  .series-stills__main,
  .series-stills__extra {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .still-lightbox__nav--prev { left: 4px; }
  .still-lightbox__nav--next { right: 4px; }
  .still-lightbox__close {
    top: 8px;
    right: 8px;
    z-index: 2;
  }
}

.title-comments,
.title-share {
  padding: 22px 24px;
  margin-bottom: 20px;
}

.title-comments__head h2,
.title-share h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
}

.title-comments__head span {
  color: #8b9185;
  font-weight: 600;
}

.title-comments__list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.title-comments__empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
}

.title-comments__form {
  display: grid;
  gap: 10px;
}

.title-comments__form input,
.title-comments__form textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  outline: none;
  resize: vertical;
}

.title-comments__form input:focus,
.title-comments__form textarea:focus {
  border-color: var(--green);
}

.title-comments__form .btn {
  justify-self: start;
}

.comments-form {
  margin-bottom: 22px;
}

.avatar-pick {
  display: grid;
  gap: 8px;
}

.avatar-pick__label {
  font-size: 13px;
  font-weight: 700;
  color: #5c6354;
}

.avatar-pick__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.avatar-pick__btn {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.avatar-pick__btn img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.avatar-pick__btn:hover {
  transform: scale(1.06);
  border-color: #c9d4b8;
}

.avatar-pick__btn.is-active {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(106, 153, 48, 0.22);
}

.comments-list {
  display: grid;
  gap: 14px;
}

.comments-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
}

.comments-best {
  margin-bottom: 18px;
}

.comment {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.comment--best {
  background: var(--surface-3);
  border-color: #c4b57a;
  box-shadow: 0 4px 16px rgba(74, 68, 36, 0.08);
}

.comment__best {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  padding: 5px 11px 5px 9px;
  border-radius: 6px;
  border: 1px solid #a89455;
  background: #4a4528;
  color: #e8e6df;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.comment__best-icon {
  flex-shrink: 0;
  color: #e8c84a;
}

.comment__main {
  display: flex;
  gap: 12px;
}

.comment__avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #e8ecdf;
}

.comment__avatar--sm {
  width: 34px;
  height: 34px;
}

.comment__body {
  flex: 1;
  min-width: 0;
}

.comment__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.comment__name {
  font-size: 14px;
  font-weight: 700;
  color: #222;
}

.comment__date {
  font-size: 12px;
  color: #9aa091;
}

.comment__text {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  word-wrap: break-word;
}

.comment__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.comment__like,
.comment__reply-btn {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #8b9185;
  transition: color 0.15s ease;
}

.comment__like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.comment__like svg {
  transition: transform 0.15s ease;
}

.comment__like:hover,
.comment__reply-btn:hover {
  color: var(--green);
}

.comment__like.is-liked {
  color: #e0576b;
}

.comment__like.is-liked svg {
  fill: #e0576b;
  stroke: #e0576b;
}

.comment__like.is-liked:hover {
  color: #c8455a;
}

.comment__replies {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  padding-left: 16px;
  border-left: 2px solid #e2e7d8;
}

.comment--reply {
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
  display: flex;
  gap: 10px;
}

#commentsPager {
  margin-top: 20px;
}

.reply-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.reply-modal[hidden] {
  display: none;
}

.reply-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 26, 16, 0.55);
  backdrop-filter: blur(2px);
  animation: replyFade 0.15s ease;
}

.reply-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  color: var(--text);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  animation: replyPop 0.18s ease;
}

@keyframes replyFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes replyPop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.reply-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.reply-modal__close:hover {
  background: var(--control-hover);
  color: var(--green);
}

.reply-modal__title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  padding-right: 36px;
}

.reply-modal__quote {
  display: grid;
  gap: 3px;
  margin: 0 0 16px;
  padding: 10px 14px;
  border-left: 3px solid var(--green);
  background: var(--green-soft);
  border-radius: 0 10px 10px 0;
}

.reply-modal__quote strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.reply-modal__quote span {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reply-modal__form {
  display: grid;
  gap: 10px;
}

.reply-modal__form input,
.reply-modal__form textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 11px 14px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  outline: none;
  resize: vertical;
}

.reply-modal__form input:focus,
.reply-modal__form textarea:focus {
  border-color: var(--green);
}

.reply-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 2px;
}

.title-share__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.title-share__btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  line-height: 0;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.title-share__btn svg {
  display: block;
}

.title-share__hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--green-dark);
  font-weight: 600;
}

.title-similar {
  margin-top: 8px;
}

.title-similar .section__head {
  margin-bottom: 14px;
}

.title-similar .grid--6 .card:nth-child(n + 5) {
  display: block;
}

@media (max-width: 900px) {
  .title-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .title-hero__poster-col {
    max-width: 280px;
    margin: 0 auto;
    width: 100%;
  }

  .title-specs > div {
    grid-template-columns: 100px minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .title-page {
    padding: 12px 0 40px;
  }

  .title-similar .grid--6 {
    grid-template-columns: repeat(2, 1fr);
  }

  .title-comments,
  .title-share,
  .title-player {
    padding: 16px;
  }
}

.actor-page {
  padding: 22px 24px;
  margin-bottom: 20px;
}

.actor-page__hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.actor-page__photo {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.actor-page__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.actor-page__name {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 4px;
}

.actor-page__orig {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 18px;
}

.actor-page__specs {
  display: grid;
  gap: 10px;
}

.actor-page__spec {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  font-size: 14px;
}

.actor-page__spec dt {
  color: #8b9185;
  font-weight: 600;
}

.actor-page__spec dd {
  color: #222;
  font-weight: 700;
}

.actor-page__block-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
}

.actor-page__bio {
  display: grid;
  gap: 12px;
}

.actor-page__bio p {
  font-size: 15px;
  line-height: 1.65;
  color: #333;
}

.actor-page__facts {
  list-style: none;
  display: grid;
  gap: 10px;
}

.actor-page__facts-extra {
  list-style: none;
  display: grid;
  gap: 10px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  transition:
    max-height 0.4s cubic-bezier(0.33, 0, 0.2, 1),
    opacity 0.28s ease,
    margin-top 0.28s ease;
}

.actor-page__facts-extra.is-open {
  opacity: 1;
  margin-top: 10px;
}

.actor-page__fact {
  position: relative;
  padding: 12px 14px 12px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.actor-page__more {
  margin-top: 14px;
}

@media (max-width: 768px) {
  .actor-page {
    padding: 16px;
  }

  .actor-page__hero {
    grid-template-columns: 1fr;
    gap: 18px;
    justify-items: center;
    text-align: center;
  }

  .actor-page__photo {
    width: min(220px, 70vw);
    border-radius: 18px;
  }

  .actor-page__info {
    width: 100%;
  }

  .actor-page__name {
    font-size: 24px;
  }

  .actor-page__specs {
    text-align: left;
  }

  .actor-page__spec {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .actor-page__spec dt {
    font-size: 12px;
  }
}

.header__theme {
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.header__theme:hover {
  background: var(--control-hover);
  color: var(--text);
}

.header__theme-icon {
  display: block;
  width: 20px;
  height: 20px;
}

.header__theme-icon--moon {
  color: #6b84b0;
}

.header__theme:hover .header__theme-icon--moon {
  color: #5574a8;
}

.header__theme-icon--sun {
  display: none;
  color: #f0c42e;
}

.header__theme:hover .header__theme-icon--sun {
  color: #f5c518;
}

body[data-theme="dark"] .header__theme-icon--moon {
  display: none;
}

body[data-theme="dark"] .header__theme-icon--sun {
  display: block;
}

body[data-theme="dark"] .page-title {
  background: var(--bg-page);
}

body[data-theme="dark"] .page-title .header {
  background: var(--header-bg);
}

body[data-theme="dark"] .card,
body[data-theme="dark"] .grid .card--poster .card__body,
body[data-theme="dark"] .carousel .card--poster .card__body {
  background: var(--surface);
}

body[data-theme="dark"] .chip {
  background: var(--chip-bg);
  color: var(--chip-text);
  border-color: var(--border);
}

body[data-theme="dark"] .chip.is-active {
  background: var(--green-chip);
  color: var(--green-chip-text);
}

body[data-theme="dark"] .sort-btn,
body[data-theme="dark"] .sort__menu,
body[data-theme="dark"] .pager__btn,
body[data-theme="dark"] .footer__form,
body[data-theme="dark"] .footer__form input,
body[data-theme="dark"] .title-comments__form input,
body[data-theme="dark"] .title-comments__form textarea,
body[data-theme="dark"] .comments-form input,
body[data-theme="dark"] .comments-form textarea {
  background: var(--input-bg);
  border-color: var(--border-strong);
  color: var(--text);
}

body[data-theme="dark"] .sort__menu {
  background: var(--surface-2);
  border-color: var(--border);
}

body[data-theme="dark"] .sort__menu button {
  color: var(--text);
}

body[data-theme="dark"] .sort__menu button:hover,
body[data-theme="dark"] .sort__menu button.is-active {
  background: var(--control-hover);
  color: var(--green);
}

body[data-theme="dark"] .footer__social a {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--muted);
}

body[data-theme="dark"] .features__bar,
body[data-theme="dark"] .series-ep,
body[data-theme="dark"] .comment,
body[data-theme="dark"] .comments-empty,
body[data-theme="dark"] .title-comment,
body[data-theme="dark"] .title-comments__empty,
body[data-theme="dark"] .mobile-menu__panel {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

body[data-theme="dark"] .mobile-menu {
  background: rgba(0, 0, 0, 0.65);
}

body[data-theme="dark"] .tabs__btn {
  color: var(--muted);
}

body[data-theme="dark"] .tabs__btn.is-active {
  color: var(--green);
}

body[data-theme="dark"] .section__title,
body[data-theme="dark"] .catalog-page__title,
body[data-theme="dark"] .rules__title,
body[data-theme="dark"] .crumbs__current {
  color: var(--black);
}

body[data-theme="dark"] .pop-nav,
body[data-theme="dark"] .hero__arrow {
  background: rgba(30, 30, 30, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  color: #cfcfcf;
}

body[data-theme="dark"] .title-player__frame,
body[data-theme="dark"] .title-player__placeholder {
  background: #111;
}

body[data-theme="dark"] .series-ep.is-playing {
  background: var(--green-soft);
  border-color: var(--green);
}

body[data-theme="dark"] .reply-modal__dialog,
body[data-theme="dark"] .still-lightbox__panel {
  background: var(--surface);
  color: var(--text);
}

body[data-theme="dark"] .title-share__btn[data-share="telegram"]:hover,
body[data-theme="dark"] .footer__social a[data-share="telegram"]:hover {
  background: rgba(42, 171, 238, 0.16);
}

body[data-theme="dark"] .title-share__btn[data-share="vk"]:hover,
body[data-theme="dark"] .footer__social a[data-share="vk"]:hover {
  background: rgba(0, 119, 255, 0.16);
}

body[data-theme="dark"] .title-share__btn[data-share="ok"]:hover,
body[data-theme="dark"] .footer__social a[data-share="ok"]:hover {
  background: rgba(238, 130, 8, 0.16);
}

body[data-theme="dark"] .title-share__btn[data-share="whatsapp"]:hover,
body[data-theme="dark"] .footer__social a[data-share="whatsapp"]:hover {
  background: rgba(37, 211, 102, 0.16);
}

body[data-theme="dark"] .title-share__btn[data-share="viber"]:hover,
body[data-theme="dark"] .footer__social a[data-share="viber"]:hover {
  background: rgba(115, 96, 242, 0.16);
}

body[data-theme="dark"] .title-share__btn[data-share="x"]:hover,
body[data-theme="dark"] .footer__social a[data-share="x"]:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .header__theme {
    display: grid;
    margin-left: auto;
  }
}

