@charset "UTF-8";

/* Lordfilm Classic: canonical public visual layer. */
@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-v53-cyrillic_latin-700.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

:root,
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f6f2;
  --surface: #ffffff;
  --surface-2: #e9efe9;
  --text: #162019;
  --muted: #687369;
  --border: #d8e1da;
  --accent: #2f8f55;
  --accent-hover: #267847;
  --accent-soft: rgba(47, 143, 85, 0.09);
  --on-accent: #ffffff;
  --status-error: #a12f3e;
  --status-success: #267847;
  --shadow: 0 3px 12px rgba(14, 22, 17, 0.08);
  --header-bg: #ffffff;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c110e;
  --surface: #131a16;
  --surface-2: #19231d;
  --text: #eef5f0;
  --muted: #9aaba0;
  --border: #28342c;
  --accent: #57c77a;
  --accent-hover: #6bd78b;
  --accent-soft: rgba(87, 199, 122, 0.1);
  --on-accent: #07100a;
  --status-error: #ff9ba7;
  --status-success: #6bd78b;
  --shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
  --header-bg: #131a16;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--text);
  background: var(--bg);
  font: 400 16px/1.62 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

body.mobile-menu-active { overflow: hidden; }
body.cinema-mode::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.78);
  pointer-events: none;
}
body.cinema-mode .bohfilm-player-block { position: relative; z-index: 91; }

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 0.6em; color: var(--text); line-height: 1.2; }
h1, h2, .section-heading h2 {
  font-family: "Oswald", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h3 { font-size: 1.15rem; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

[hidden] { display: none !important; }
.is-hidden { display: none !important; }
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-container { width: min(calc(100% - 32px), 1240px); margin-inline: auto; }
.site-shell { position: relative; min-height: 100vh; display: flex; flex-direction: column; }
.site-main { position: relative; z-index: 1; flex: 1 0 auto; padding: 0 0 48px; }
.site-main > .site-container {
  display: flow-root;
  min-height: 260px;
  padding: 20px;
  background: var(--surface);
}
.home-heading { max-width: 760px; margin: 0 0 24px; }
.home-heading h1,
.home-heading p { margin-bottom: 8px; }
.home-heading h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
.home-heading__eyebrow { color: var(--accent); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--on-accent);
  background: var(--accent-hover);
  border-radius: 8px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.button,
button.button,
.filter-toggle,
.comment-submit,
.load-more,
.load-more-comments {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  color: var(--on-accent);
  background: var(--accent-hover);
  border: 0;
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}
:where(.button, button.button, .filter-toggle, .comment-submit, .load-more, .load-more-comments):hover { background: var(--accent-hover); }
:where(.button, button.button, .filter-toggle, .comment-submit, .load-more, .load-more-comments)[aria-busy="true"] { cursor: progress; opacity: 0.75; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
}
.site-header__inner {
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr) minmax(240px, 300px) auto;
  align-items: center;
  gap: 16px;
  padding-inline: 20px;
  background: var(--header-bg);
  box-shadow: var(--shadow);
}
.site-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; max-width: 220px; }
.site-brand__mark, .site-brand__mark > * { display: block; flex: 0 0 auto; }
.site-brand__mark img { width: 40px; height: 30px; object-fit: contain; }
.site-brand__mark--custom, .site-brand__mark--custom > * { max-width: 36px; max-height: 32px; overflow: hidden; }
.site-brand__mark--custom img { width: 36px; height: 32px; object-fit: contain; }
.site-brand__name { font: 700 1.25rem/1.1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0.035em; white-space: nowrap; }
.header-menu { min-width: 0; }
.primary-menu__head { display: none; }
.header-menu ul { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.header-menu li { position: relative; }
.header-menu a,
.header-menu .nolink {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  white-space: nowrap;
}
.header-menu a:hover, .header-menu .current-menu-item > a, .header-menu .nolink { color: var(--text); background: var(--surface-2); }
.header-menu .sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  display: none;
  min-width: 220px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.header-menu li:hover > .sub-menu, .header-menu li:focus-within > .sub-menu { display: block; }
.header-menu .sub-menu a { white-space: normal; }

.header-search { min-width: 0; }
.search-block-inner { position: relative; }
.search-form { position: relative; display: flex; min-width: 0; }
.search-form .input-text { position: relative; flex: 1 1 auto; min-width: 0; }
.search-form label { flex: 1 1 auto; min-width: 0; }
.search-field,
.search-form input[type="search"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 50px 10px 16px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.search-submit {
  position: absolute;
  inset: 1px 1px 1px auto;
  width: 46px;
  min-height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.search-submit svg { color: inherit; fill: currentColor; stroke: currentColor; }
.search-results-wrap {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 120;
  max-height: min(60vh, 520px);
  overflow: auto;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.search-results a { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 8px; border-radius: 8px; }
.search-results a:hover { background: var(--surface-2); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-action, .header-menu-toggle, .primary-menu__close, .header-liked-episodes__close {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 11px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
}
.header-menu .primary-menu__random { display: none; }
.header-action:hover { background: var(--surface-2); }
.header-action--random svg { fill: currentColor; stroke: currentColor; }
.header-action__label { font-size: 0.88rem; font-weight: 700; }
.header-action--random { color: var(--muted); }
.header-liked-episodes { position: relative; }
.header-liked-episodes__count {
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  display: inline-grid;
  place-items: center;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 800;
}
.header-liked-episodes__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 130;
  width: min(360px, calc(100vw - 32px));
  max-height: min(65vh, 540px);
  overflow: auto;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.header-liked-episodes__panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.header-liked-episodes__empty { color: var(--muted); font-size: 0.9rem; }
.header-liked-episodes__list a { display: block; padding: 10px; border-radius: 8px; }
.header-liked-episodes__list a:hover { background: var(--surface-2); }
.theme-toggle__moon, html[data-theme="dark"] .theme-toggle__sun { display: none; }
html[data-theme="dark"] .theme-toggle__moon { display: block; }
.theme-toggle--mobile { display: none; }
.theme-toggle { min-width: 70px; }
.theme-toggle::after { content: "День"; font-size: 0.68rem; font-weight: 750; letter-spacing: 0.03em; }
html[data-theme="dark"] .theme-toggle::after { content: "Ночь"; }
.header-menu-toggle { display: none; padding: 11px; flex-direction: column; gap: 4px; }
.header-menu-toggle span { width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.menu-overlay { position: fixed; inset: 0; z-index: 98; background: rgba(0, 0, 0, 0.48); }

/* Main sections */
.content-wrap, .content-sidebar-wrap, .content-wrap-inner { min-width: 0; }
.content-wrap.full-width, .content-wrap-inner { width: 100%; }
.main-block, .film-player-wrap, .film-related, .bohfilm-episodes, .comments-wrap, .bohfilm-article-block, .rating-scores, .gallery-block, .card-bg {
  margin-block: 28px;
}
.section-heading { margin-bottom: 18px; }
.section-heading--row, .tabs-block > header, .archive-info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-heading p, .tabs-block > header p, .archive-description, .content-none { color: var(--muted); }
.breadcrumbs, .breadcrumb,
.breadcrumbs :where(ul, ol), .breadcrumb :where(ul, ol) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0 0 14px;
  padding: 0;
  color: var(--muted);
  font-size: 0.88rem;
  list-style: none;
}
.breadcrumbs :where(ul, ol), .breadcrumb :where(ul, ol) { margin: 0; }
.breadcrumbs li, .breadcrumb li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.breadcrumbs li::marker, .breadcrumb li::marker { content: ""; }
.breadcrumbs a:hover, .breadcrumb a:hover { color: var(--accent); }

.single .content-wrap-inner > :where(.film-player-wrap, .film-related, .bohfilm-episodes, .comments-wrap, .bohfilm-article-block, .rating-scores, .gallery-block, .bohfilm-rating-scores, .bohfilm-parts-carousel, .bohfilm-trailer),
.single-serial .content-wrap-inner > :where(.film-player-wrap, .film-related, .bohfilm-episodes, .comments-wrap, .bohfilm-article-block, .rating-scores, .gallery-block, .bohfilm-rating-scores, .bohfilm-parts-carousel, .bohfilm-trailer) {
  margin-block: 0;
  padding: 20px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

/* Cards and grids */
.articles-list, .card-view, .grid-view {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 16px;
  align-items: start;
}
.material-card { min-width: 0; }
.material-card__link { display: block; border-radius: 11px; }
.material-card__poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--surface-2);
  border: 0;
  border-radius: 11px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.material-card__poster img { width: 100%; height: 100%; object-fit: cover; }
.material-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 0.85rem; }
.material-card__link:hover .material-card__poster,
.material-card__link:focus-visible .material-card__poster { transform: translateY(-2px); box-shadow: var(--shadow); }
.material-card__rating, .material-card__status {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  color: var(--on-accent);
  background: var(--accent-hover);
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 800;
}
.material-card__rating span { margin-right: 4px; opacity: 1; font-size: 0.82rem; }
.material-card__status { top: auto; bottom: 10px; background: rgba(12, 17, 14, 0.82); color: #fff; }
.material-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(5, 10, 7, 0.28);
  opacity: 0;
  transition: opacity 180ms ease;
}
.material-card__play svg { width: 52px; height: 52px; padding: 13px; color: var(--on-accent); fill: currentColor; background: var(--accent-hover); border-radius: 50%; }
.material-card__link:hover .material-card__play,
.material-card__link:focus-visible .material-card__play { opacity: 1; }
.material-card__body { display: block; padding: 11px 2px 0; }
.material-card__title {
  display: -webkit-box;
  min-height: 2.7em;
  overflow: hidden;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.material-card__meta { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 0.84rem; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.load-more { margin: 24px auto 0; border: 0; background: transparent; padding: 0; display: flex; }
.load-more .button { pointer-events: none; }

/* Tabs */
.tabs-block { padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.tabs-wrap { max-width: 100%; overflow: auto; }
.tabs { display: flex; gap: 4px; padding: 3px; background: var(--surface-2); border-radius: 9px; }
.tab-item { min-height: 44px; padding: 8px 13px; color: var(--muted); background: transparent; border: 0; border-radius: 7px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.tab-item.active { color: var(--on-accent); background: var(--accent); }
.tab-content { display: none; min-height: 350px; padding-top: 20px; }
.tab-content.active { display: block; }

/* Featured slider */
.featured-carousel { padding: 0; background: transparent; border: 0; border-radius: 0; }
.splide__slide { min-width: 0; }
.splide__arrows { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.splide__arrow {
  position: static;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  opacity: 1;
  transform: none;
}

/* Filter */
.main-filter { padding: 28px 0; background: transparent; border-block: 1px solid var(--border); border-radius: 0; }
#anime-filter-form { padding-top: 22px; border-top: 1px solid var(--border); }
.bohfilm-filter-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.bohfilm-filter-category { position: relative; cursor: pointer; }
.bohfilm-filter-category input { position: absolute; opacity: 0; pointer-events: none; }
.bohfilm-filter-category span { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 13px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; }
.bohfilm-filter-category.is-active span, .bohfilm-filter-category input:checked + span { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.input-select, .input-range { position: relative; min-width: 0; }
.input-select label, .input-range label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 0.86rem; font-weight: 700; }
.input-select select, .input-range input, .comment-form input, .comment-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.input-select > svg { display: none; }
.bohfilm-year-range__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#anime-filter-form > .button, #anime-filter-form button[type="submit"] { margin-top: 20px; }
#filter-results.active { margin-top: 24px; }

/* Archive, search, 404 */
.archive-info { margin-bottom: 24px; }
.archive-description, .seo, .content-prose, .bohfilm-article-block {
  max-width: 820px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.archive-description { margin-bottom: 28px; }
.content-prose, .bohfilm-article-block { margin-inline: auto; }
.content-prose :where(p, li), .post-content :where(p, li) { max-width: 72ch; }
.content-prose a, .post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.pagination a, .pagination span { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 8px; border: 1px solid var(--border); border-radius: 8px; }
.pagination .current { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.content-none { padding: 32px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.description404 .num { font: 700 clamp(5rem, 16vw, 12rem)/0.9 "Oswald", sans-serif; color: var(--accent); }
.bohfilm-404-actions { margin: 20px 0 36px; }

/* Film and serial hero */
.film-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  grid-template-areas:
    "poster heading"
    "poster summary"
    "poster facts"
    "actions facts"
    "secondary facts";
  grid-template-rows: auto auto 1fr auto auto;
  gap: 0 24px;
  align-items: start;
  padding: 4px 0 24px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.film-card--episode { display: block; padding: 4px 0 24px; }
.film-card--episode .film-heading h1 { max-width: 38ch; font-size: clamp(1.55rem, 2.2vw, 1.9rem); }
.film-card__heading { grid-area: heading; min-width: 0; }
.film-card-left { grid-area: poster; min-width: 0; }
.film-card__summary { grid-area: summary; min-width: 0; }
.film-card__facts { grid-area: facts; min-width: 0; }
.film-poster-media { position: relative; display: block; overflow: visible; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px 9px 0 0; box-shadow: none; }
.poster-zoom-wrap { position: relative; display: block; overflow: hidden; border-radius: 8px 8px 0 0; }
.poster-image { width: 200px; height: 300px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 0; }
.poster-zoom-icon { position: absolute; right: 6px; bottom: 6px; width: 36px; height: 36px; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, 0.62); border-radius: 50%; opacity: 0; transition: opacity 180ms ease; }
.poster-zoom-wrap:hover .poster-zoom-icon, .poster-zoom-wrap:focus-visible .poster-zoom-icon { opacity: 1; }
.film-heading h1 { max-width: 34ch; margin: 0 0 10px; font: 700 clamp(1.7rem, 2.3vw, 2.15rem)/1.16 "Oswald", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0.005em; }
.film-desc-wrap { color: var(--muted); font-size: 0.95rem; line-height: 1.62; }
.film-desc-inner { max-width: 76ch; }
.film-desc-inner.collapsed { position: relative; max-height: 6.4em; overflow: hidden; }
.film-desc-inner.collapsed::after { content: ""; position: absolute; inset: auto 0 0; height: 2.6em; background: linear-gradient(transparent, var(--surface)); pointer-events: none; }
.film-desc-more {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 0 12px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
}
.film-desc-more:hover,
.film-desc-more:focus-visible {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--accent);
  text-decoration: none;
}
.film-desc-disclosure { max-width: 76ch; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.film-desc-disclosure > summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-weight: 750; list-style: none; }
.film-desc-disclosure > summary::-webkit-details-marker { display: none; }
.film-desc-disclosure > summary::after { content: "+"; flex: 0 0 auto; color: var(--muted); font-size: 1.15rem; line-height: 1; }
.film-desc-disclosure[open] > summary::after { content: "−"; }
.film-desc-disclosure__body { padding: 10px 2px 0; }
.film-desc-disclosure__body > :first-child { margin-top: 0; }
.film-desc-disclosure__body > :last-child { margin-bottom: 0; }
.film-info { display: flex; min-width: 0; flex-direction: column; }
.film-info__ratings { order: 2; display: flex; align-items: center; gap: 10px; width: 100%; margin: 14px 0 0; }
.film-info__ratings-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.film-info__grid { order: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; padding-top: 8px; }
.film-info__column, .film-info__column-list { min-width: 0; }
.film-info__column-list { display: flex; flex-direction: column; }
.film-fact {
  min-width: 0;
  display: block;
  padding: 3px 0;
  border: 0;
  line-height: 1.42;
}
.film-fact--wide { grid-column: auto; }
.film-fact__label { display: inline; margin-right: 6px; color: var(--text); font-size: 0.86rem; font-weight: 750; }
.film-fact__label::after { content: ":"; }
.film-fact__value { display: inline; min-width: 0; overflow-wrap: anywhere; color: var(--muted); font-size: 0.86rem; }
.film-fact__value > * { display: inline; }
.film-info a { text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.film-info a:hover { color: var(--accent); }
.film-info__details { display: block; grid-column: auto; }
.film-info__details > summary { display: none; }
.film-info__details-content { display: flex; flex-direction: column; }
.bohfilm-genre-list { display: flex; flex-wrap: wrap; gap: 6px; }
.bohfilm-genre-list a { color: var(--text); text-decoration: none; }
.bohfilm-genre-list a:not(:last-child)::after { content: ","; color: var(--muted); }
.film-poster-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 200px;
  min-height: 44px;
  margin: 0;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 9px 9px;
}
.poster-action {
  position: relative;
  width: auto;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  text-align: center;
}
.poster-action:hover { color: var(--text); background: var(--surface-2); }
.film-poster-actions .poster-action { min-width: 0; min-height: 44px; color: var(--text); border-radius: 0; font-size: 0.78rem; }
.film-poster-actions .poster-action + .poster-action { border-left: 1px solid var(--border); }
.film-poster-actions .poster-action--watch { color: var(--on-accent); background: var(--accent-hover); }
.film-secondary-actions { grid-area: secondary; display: grid; grid-template-columns: repeat(4, 44px); gap: 6px; justify-content: start; padding-top: 8px; }
.film-secondary-actions .poster-action { width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); box-sizing: border-box; }
.film-secondary-actions .poster-action svg { width: 18px; height: 18px; flex: 0 0 18px; }
.film-secondary-actions .action-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.poster-action--bookmark { color: var(--muted); background: var(--surface); border-color: var(--border); font-weight: 700; }
.poster-action--bookmark:hover { color: var(--accent); background: var(--surface-2); border-color: var(--accent); }
.poster-action--bookmark.saved, .poster-action--bookmark.saved:hover { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.poster-action--bookmark svg { fill: transparent; transition: fill 180ms ease; }
.poster-action--bookmark.saved svg { fill: currentColor; }
.poster-action--report { margin-left: 0; }
.likes { position: relative; height: 56px; display: grid; grid-template-columns: 74px 52px 74px; align-items: center; gap: 0; margin: 0; padding: 0; color: var(--text); border-top: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.likes-item { width: auto; display: flex; align-items: center; justify-content: center; gap: 3px; }
.likes-item.dislike { flex-direction: row-reverse; }
.like-button { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 50%; cursor: pointer; }
.like-button svg { fill: currentColor; }
.like-button:hover { color: var(--text); background: var(--surface-2); }
.like-button.active { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.like-button.dislike svg, .like-button-icon.dislike { transform: rotate(180deg); }
.like-count { min-width: 3ch; text-align: center; font-size: 0.84rem; font-weight: 700; line-height: 1; }
.likes-circle-count { position: static; width: 52px; height: 52px; display: grid; place-items: center; color: var(--text); background: var(--surface); border: 4px solid var(--surface-2); border-radius: 50%; transform: none; }
.likes-circle-count::before { content: attr(data-score); display: grid; width: 42px; height: 42px; place-items: center; border: 3px solid var(--accent); border-radius: 50%; font-size: 1rem; font-weight: 800; line-height: 1; }
.rating-other, .content-ref-ids { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.film-info__ratings .rating-other { display: flex; flex-wrap: wrap; width: 100%; gap: 8px; }
.rating-other > * { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; font-variant-numeric: tabular-nums; }
.rating-source { color: var(--muted); font-size: 0.82rem; font-weight: 800; }
.rating-value { min-width: 3ch; text-align: center; font-weight: 750; font-variant-numeric: tabular-nums; }

/* Player outer, related and galleries */
.film-player-wrap__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 28px; margin-bottom: 14px; }
.film-player-wrap__title, .film-related > h2, .bohfilm-episodes h2, .rating-scores h2, .gallery-block h2 { margin: 0; font: 700 clamp(1.35rem, 2vw, 1.6rem)/1.2 "Oswald", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0.005em; }
.film-player-wrap__heading h2,
.film-player-wrap__context { max-width: 68ch; margin: 0; color: var(--muted); font: 400 0.88rem/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; text-align: right; }
.bohfilm-player, .bohfilm-player--legacy .post-video { overflow: hidden; background: #080b0d; border-radius: 4px; }
.post-video { aspect-ratio: 16 / 9; }
.post-video iframe { width: 100%; height: 100%; border: 0; }
.bohfilm-parts-carousel, .gallery-block, .bohfilm-gallery-strip, .rating-scores, .bohfilm-episodes, .film-related, .comments-wrap, .bohfilm-article-block, .bohfilm-trailer {
  padding: 32px 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
}
.bohfilm-trailer__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.bohfilm-trailer__heading h2 {
  margin: 0;
  font: 700 clamp(1.35rem, 2vw, 1.6rem)/1.2 "Oswald", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.bohfilm-trailer__heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
  max-width: 36ch;
}
.bohfilm-trailer__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b0f0c;
  border: 1px solid var(--border);
  border-radius: 9px;
}
.bohfilm-trailer__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.film-related .articles-list { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.bohfilm-related-title + h2 { display: none; }
.gallery-block__list, .film-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery-block img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.bohfilm-gallery-strip__scroll { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bohfilm-gallery-strip__item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }

/* Episodes */
.bohfilm-episodes, .film-player-wrap { scroll-margin-top: 72px; }
.bohfilm-episodes__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bohfilm-episodes__title-group { min-width: min(100%, 320px); display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-right: auto; }
.bohfilm-episodes__head h2 { margin: 0; }
.bohfilm-episodes__summary { color: var(--muted); font-size: 0.84rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bohfilm-sort-wrap { position: relative; }
.sort-current, .bohfilm-season-order-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.sort-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  display: none;
  min-width: 190px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  box-shadow: var(--shadow);
}
.bohfilm-sort-wrap.is-open .sort-list { display: grid; }
.bohfilm-sort-wrap .sort-list[hidden] { display: none; }
.sort-list-item { min-height: 44px; padding: 8px 10px; text-align: left; background: transparent; border: 0; border-radius: 6px; cursor: pointer; }
.sort-list-item:hover, .sort-list-item.active { color: var(--on-accent); background: var(--accent); }
.bohfilm-episodes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; margin-top: 16px; }
.bohfilm-episodes__season-heading { grid-column: 1 / -1; margin: 14px 0 0; font-size: 1.3rem; }
.bohfilm-episodes__card { min-width: 0; display: flex; overflow: hidden; flex-direction: column; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; transition: transform 180ms ease, border-color 180ms ease; }
.bohfilm-episodes__card:hover { transform: translateY(-2px); border-color: var(--muted); }
.bohfilm-episodes__card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.bohfilm-episodes__image-wrap { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.bohfilm-episodes__thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 180ms ease; }
.bohfilm-episodes__card:hover .bohfilm-episodes__thumb { transform: scale(1.015); }
.bohfilm-episodes__thumb--placeholder { width: 100%; height: auto; aspect-ratio: 16 / 9; display: grid; place-items: center; color: var(--muted); }
.bohfilm-episodes__badge { position: absolute; top: 8px; left: 8px; z-index: 2; min-height: 26px; display: inline-flex; align-items: center; padding: 4px 8px; color: #fff; background: rgba(7, 13, 9, 0.78); border-radius: 6px; font-size: 0.8125rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.bohfilm-episodes__body { height: 74px; display: flex; flex-direction: column; gap: 4px; padding: 10px 11px 12px; }
.bohfilm-episodes__body--compact { height: 62px; justify-content: center; }
.bohfilm-episodes__meta { color: var(--muted); font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bohfilm-episodes__title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 0.94rem; font-weight: 800; line-height: 1.32; }
.bohfilm-episodes__card .item-play { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.28); opacity: 0; transition: opacity 180ms ease; }
.bohfilm-episodes__card:hover .item-play, .bohfilm-episodes__card:focus-visible .item-play { opacity: 1; }
.bohfilm-episodes__footer { display: flex; justify-content: center; margin-top: 20px; }
.bohfilm-episodes__show-more.is-gone { display: none; }
html:not(.js) .bohfilm-episodes--single-season .bohfilm-episodes__card.is-hidden { display: flex !important; }
html:not(.js) .bohfilm-episodes--single-season .bohfilm-episodes__footer { display: none; }
.bohfilm-episode-nav { margin: 20px 0 32px; }
.bohfilm-episode-nav__current { margin-bottom: 10px; color: var(--muted); }
.bohfilm-episode-nav__adjacent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.bohfilm-episode-nav__adjacent--single { grid-template-columns: minmax(0, 1fr); }
.bohfilm-episode-nav__adjacent-link { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; color: var(--text); font-weight: 750; text-align: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px; }
.bohfilm-episode-nav__adjacent-link:hover { color: var(--accent); border-color: var(--accent); }
.bohfilm-episode-nav__chips { position: relative; padding-right: 98px; }
.bohfilm-episode-nav__chips .splide__arrows { position: absolute; top: 0; right: 0; display: flex; gap: 6px; }
.bohfilm-episode-nav__chips .splide__arrow { position: static; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 7px; opacity: 1; transform: none; }
.bohfilm-episode-nav__chips .splide__arrow:hover:not(:disabled) { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.bohfilm-episode-nav__chips .splide__arrow:disabled { color: var(--muted); opacity: .45; }
.serial-pagination__item { min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; white-space: nowrap; }
.serial-pagination__item--active { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.bohfilm-episode-description { padding: 24px 0; }
.bohfilm-episode-description__lead { margin: 0 0 12px; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.bohfilm-episode-related { padding-top: 28px; border-top: 1px solid var(--border); }
.bohfilm-episode-feedback { padding: 28px 0; border-top: 1px solid var(--border); }
.bohfilm-episode-feedback__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 14px; }
.bohfilm-episode-likes { justify-content: flex-start; margin: 0; }

/* Ratings and comments */
.bohfilm-rating-scores {
  margin-block: 18px 0;
  padding: 18px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.film-player-wrap .bohfilm-rating-scores {
  margin-top: 12px;
}
/* Same footprint as «Поделиться с друзьями» under the player. */
.bohfilm-rating-scores--under-player {
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  margin-block-end: 0;
  padding: 12px 14px;
  border-radius: 9px;
}
.bohfilm-rating-scores--under-player .bohfilm-rating-bar {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.bohfilm-rating-scores--under-player .bohfilm-rating-bar__header {
  margin-bottom: 10px;
}
.bohfilm-rating-scores--under-player .bohfilm-rating-bar__name {
  font-size: 0.88rem;
  font-weight: 750;
}
.bohfilm-rating-scores--under-player .bohfilm-rating-bar__val {
  font-size: 0.82rem;
}
.bohfilm-rating-scores--under-player .bohfilm-rating-bar__track {
  display: none;
}
.bohfilm-rating-scores--under-player .bohfilm-rating-bar__inputs {
  margin-top: 0;
  gap: 8px;
  grid-template-columns: repeat(10, minmax(0, 1fr));
}
.bohfilm-rating-scores--under-player .bohfilm-rating-btn {
  min-height: 44px;
  border-radius: 8px;
}
.bohfilm-rating-scores--overall .bohfilm-rating-scores__inner {
  grid-template-columns: 140px minmax(0, 1fr);
}
.bohfilm-rating-scores--overall .bohfilm-rating-scores__bars {
  grid-template-columns: 1fr;
}
.bohfilm-rating-scores--overall .bohfilm-rating-bar[data-max="10"] {
  grid-column: auto;
}
.bohfilm-rating-scores__heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.bohfilm-rating-scores__heading h2 { margin: 0; font-size: clamp(1.45rem, 2.2vw, 1.85rem); }
.bohfilm-rating-scores__heading p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }
.bohfilm-rating-scores__inner { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 12px; align-items: stretch; }
.bohfilm-rating-scores__summary {
  min-height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.bohfilm-rating-scores__number { font: 700 2.6rem/1 "Oswald", sans-serif; color: var(--accent); }
.bohfilm-rating-scores__label { margin-top: 6px; color: var(--muted); font-size: 0.85rem; }
.bohfilm-rating-scores__summary--empty .bohfilm-rating-scores__number { color: var(--muted); font-size: 2rem; }
.bohfilm-rating-scores__summary--empty .bohfilm-rating-scores__label { max-width: 12ch; color: var(--text); font-weight: 700; line-height: 1.3; }
.bohfilm-rating-scores__bars { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bohfilm-rating-bar { min-width: 0; padding: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.bohfilm-rating-bar[data-max="10"] { grid-column: 1 / -1; }
.bohfilm-rating-bar__header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.bohfilm-rating-bar__name { font-weight: 750; }
.bohfilm-rating-bar__val { color: var(--muted); font-size: 0.88rem; white-space: nowrap; }
.bohfilm-rating-bar__track { height: 6px; overflow: hidden; background: var(--border); border-radius: 99px; }
.bohfilm-rating-bar__fill { height: 100%; background: var(--accent); border-radius: inherit; }
.bohfilm-rating-bar__inputs { display: grid; grid-template-columns: repeat(5, minmax(44px, 1fr)); gap: 6px; justify-content: stretch; margin-top: 12px; }
.bohfilm-rating-bar[data-max="10"] .bohfilm-rating-bar__inputs { grid-template-columns: repeat(10, minmax(44px, 1fr)); }
.bohfilm-rating-btn {
  min-width: 0;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
}
.bohfilm-rating-btn,
.bohfilm-rating-scores__number,
.bohfilm-rating-bar__val,
.rating-score,
.rating-scores__item,
.material-card__rating,
.material-card__status,
.serial-pagination__item,
.bohfilm-episode-nav__current {
  font-variant-numeric: tabular-nums;
}
.bohfilm-rating-btn:hover, .bohfilm-rating-btn.active { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.rating-scores__grid, .rating-scores-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rating-score, .rating-scores__item { padding: 16px; background: var(--surface-2); border-radius: 9px; }
.comments-wrap { scroll-margin-top: 96px; }
.comments-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.comments-header__title-group { min-width: 0; }
.comments-title { margin: 0; font: 700 clamp(1.45rem, 2.2vw, 1.85rem)/1.2 "Oswald", sans-serif; }
.comments-number { margin: 4px 0 0; color: var(--muted); font-size: 0.88rem; }
.comment-sorting-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.sort-comments { min-height: 44px; padding: 8px 12px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.sort-comments:hover { color: var(--text); }
.sort-comments.active { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.comment-respond { margin-bottom: 22px; padding: 20px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.comment-respond__intro { margin-bottom: 16px; }
.comment-respond__intro h3 { margin: 0; font-size: 1.08rem; }
.comment-respond__intro p { margin: 4px 0 0; color: var(--muted); font-size: 0.88rem; }
.comment-form { margin: 0; }
.comment-form p { margin-bottom: 12px; }
.comment-form .form-row.col-2 { max-width: 860px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.comment-form-author { max-width: 420px; }
.comment-login-name { margin-bottom: 12px; color: var(--muted); font-size: 0.88rem; }
.comment-login-name a { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 4px; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.comment-form-comment-bg { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; }
.comment-form-comment-bg:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.format-buttons { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.format-button,
.emoji-item,
.comment-reaction,
.comment-reply-link,
.comment-replies-toggle,
.comment-spoiler__toggle,
.bohfilm-emoji-extended__tab,
.bohfilm-gif-picker__tab,
.comment-avatar-picker__item {
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 7px;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
}
.format-button:hover,
.emoji-item:hover,
.comment-reaction:hover,
.comment-reply-link:hover,
.comment-replies-toggle:hover { background: var(--surface); border-color: var(--border); }
.format-button svg { display: none; }
.format-button[data-format="b"]::before { content: "B"; font-weight: 800; }
.format-button[data-format="i"]::before { content: "I"; font-style: italic; }
.format-button[data-format="u"]::before { content: "U"; text-decoration: underline; }
.format-button[data-format="s"]::before { content: "S"; text-decoration: line-through; }
.comment-form textarea { height: 150px; min-height: 150px; padding: 14px; resize: vertical; background: var(--surface); border: 0; border-radius: 0; line-height: 1.58; }
.comment-form textarea:focus-visible { outline: 0; }
.emoji-picker { display: flex; gap: 3px; max-width: 100%; margin-top: 8px; overflow-x: auto; padding: 2px 0 7px; scrollbar-width: none; }
.emoji-picker::-webkit-scrollbar { display: none; }
.emoji-item { flex: 0 0 44px; font-size: 1.24rem; }
.emoji-item img { width: 25px; height: 25px; object-fit: contain; }
.bohfilm-emoji-extended,
.bohfilm-gif-picker { position: relative; display: inline-block; margin: 2px 8px 0 0; }
.bohfilm-emoji-extended__toggle,
.bohfilm-gif-picker__toggle { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; list-style: none; }
.bohfilm-emoji-extended__toggle::-webkit-details-marker,
.bohfilm-gif-picker__toggle::-webkit-details-marker { display: none; }
.bohfilm-emoji-extended__panel,
.bohfilm-gif-picker__panel { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 25; width: min(560px, calc(100vw - 48px)); max-height: 360px; overflow: auto; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.bohfilm-emoji-extended__tabs,
.bohfilm-gif-picker__tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 8px; }
.bohfilm-emoji-extended__tab,
.bohfilm-gif-picker__tab { min-width: auto; white-space: nowrap; }
.bohfilm-emoji-extended__tab.is-active,
.bohfilm-gif-picker__tab.is-active { color: var(--on-accent); background: var(--accent); }
.bohfilm-emoji-extended__grid,
.bohfilm-gif-picker__grid { display: none; grid-template-columns: repeat(8, 44px); gap: 4px; }
.bohfilm-emoji-extended__grid.is-active,
.bohfilm-gif-picker__grid.is-active { display: grid; }
.bohfilm-gif-picker__item { min-width: 80px; min-height: 60px; padding: 2px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px; cursor: pointer; }
.bohfilm-gif-picker__item img { width: 100%; height: 100%; object-fit: cover; }
.comment-avatar-picker { margin: 12px 0; }
.comment-avatar-picker__label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 0.86rem; font-weight: 700; }
.comment-avatar-picker__scroll { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 6px; }
.comment-avatar-picker__item { flex: 0 0 52px; width: 52px; height: 52px; padding: 2px; border-color: var(--border); border-radius: 50%; }
.comment-avatar-picker__item.is-active { border-color: var(--accent); background: var(--accent-soft); }
.comment-avatar-picker__item img { width: 44px; height: 44px; object-fit: cover; border-radius: inherit; }
.comment-form-submit { display: flex; justify-content: flex-end; margin-top: 14px; }
#commentform .comment-submit { min-width: 220px; min-height: 44px; }
.comment-reply-info { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 9px 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.comment-reply-info[hidden] { display: none; }
.comment-reply-info button { min-height: 44px; margin-left: auto; padding: 8px 12px; color: var(--text); background: transparent; border: 1px solid var(--border); border-radius: 7px; cursor: pointer; }
.comment-list, .children { margin: 0; padding: 0; list-style: none; }
.comment-list > .comment,
.children > .comment { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-top: 1px solid var(--border); }
.comment > .avatar { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; }
.comment-inner { min-width: 0; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; color: var(--muted); font-size: 0.82rem; }
.comment-author { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 750; }
.comment-text-wrap { margin-top: 7px; overflow-wrap: anywhere; }
.comment-text .text { max-width: 72ch; }
.comment-text .text > :last-child { margin-bottom: 0; }
.comment-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; }
.comment-reactions { display: flex; gap: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.comment-reactions::-webkit-scrollbar { display: none; }
.comment-reaction { grid-auto-flow: column; gap: 4px; flex: 0 0 auto; }
.comment-reaction--active { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.comment-reply-link,
.comment-replies-toggle { grid-auto-flow: column; gap: 7px; width: auto; color: var(--muted); }
.comment-replies-shell,
.children { grid-column: 2; min-width: 0; margin-top: 8px; }
.children { padding-left: 14px; border-left: 2px solid var(--border); }
.comment-reply-item.is-hidden { display: none; }
.comment-spoiler__content { display: inline-block; margin-left: 8px; }
.comment-gif { max-width: min(100%, 420px); border-radius: 8px; }
.load-more-comments { display: flex; justify-content: center; margin: 18px auto 0; padding: 0; background: transparent; }
.load-more-comments > .button { min-width: 190px; }

/* Viewer polls */
.single-poll {
  margin-block: 32px 0;
  padding: 30px 0 0;
  background: transparent;
  border-top: 1px solid var(--border);
}
.single-poll__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.single-poll__title { margin: 0; font-size: clamp(1.45rem, 2.3vw, 1.9rem); }
.single-poll__heading p { max-width: 500px; margin: 0; color: var(--muted); font-size: 0.9rem; text-align: right; }
.single-poll__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.single-poll__item {
  min-width: 0;
  height: 100%;
  padding: 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 180ms ease, transform 180ms ease;
}
.single-poll__item:hover, .single-poll__item:focus-within { border-color: var(--accent); }
.single-poll__item:hover { transform: translateY(-2px); }
.single-poll__question { min-height: 2.7em; margin-bottom: 14px; font-family: inherit; font-size: 1rem; line-height: 1.35; }
.single-poll__form { height: calc(100% - 3.75em); display: flex; flex-direction: column; gap: 8px; }
.single-poll__options { display: flex; flex-direction: column; gap: 8px; }
.single-poll__option {
  min-height: 54px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto auto;
  grid-template-rows: auto 6px;
  align-items: center;
  gap: 5px 8px;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.single-poll__option:hover,
.single-poll__option:has(input:focus-visible),
.single-poll__option:has(input:checked) { border-color: var(--accent); }
.single-poll__option:has(input:checked) { background: var(--accent-soft); }
.single-poll__option input {
  grid-row: 1 / 3;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}
.single-poll__option input:focus-visible { outline-offset: 2px; }
.single-poll__option-label { min-width: 0; overflow-wrap: anywhere; font-size: 0.9rem; font-weight: 700; line-height: 1.25; }
.single-poll__option-percent, .single-poll__option-count, .single-poll__total { font-variant-numeric: tabular-nums; }
.single-poll__option-percent { min-width: 3.2ch; text-align: right; font-size: 0.82rem; font-weight: 800; }
.single-poll__option-count { min-width: 3.2ch; color: var(--muted); font-size: 0.78rem; text-align: right; }
.single-poll__option-bar { grid-column: 2 / -1; height: 6px; overflow: hidden; background: var(--border); border-radius: 99px; }
.single-poll__option-bar-fill { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width 180ms ease; }
.single-poll__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: auto; padding-top: 8px; }
.single-poll__submit { flex: 1 1 150px; padding-inline: 12px; white-space: nowrap; }
.single-poll__submit:disabled { cursor: default; opacity: 0.68; }
.single-poll__total { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.single-poll__message { min-height: 1.5em; margin: 0; color: var(--muted); font-size: 0.82rem; }
.single-poll__message.is-error { color: var(--status-error); }
.single-poll__message.is-success { color: var(--status-success); }
.single-poll__item.is-loading { cursor: progress; }
.single-poll__item[data-already-voted="1"] .single-poll__option { cursor: default; }
.single-poll__item[data-already-voted="1"] .single-poll__option:not(:has(input:checked)) { color: var(--muted); }

/* Footer */
.site-footer { position: relative; z-index: 1; flex: 0 0 auto; background: transparent; border: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 40px; min-height: 108px; padding: 22px 20px 16px; background: var(--surface); border-top: 1px solid var(--border); }
.site-footer__grid--without-support { grid-template-columns: minmax(0, 1.5fr) minmax(200px, 0.7fr); }
.site-footer__grid--without-support .site-footer__nav { justify-self: end; }
.site-footer h2 { margin-bottom: 12px; font-family: inherit; font-size: 0.92rem; text-transform: none; }
.site-footer p { max-width: 42ch; margin-top: 12px; color: var(--muted); font-size: 0.9rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer__nav a, .site-footer__support a, .site-footer__legal a { display: inline-flex; width: fit-content; min-height: 44px; align-items: center; padding-block: 5px; color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.bohfilm-share--under-player {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
}
.bohfilm-share__label { margin-right: auto; color: var(--text); font-size: 0.88rem; font-weight: 750; }
.bohfilm-share__btn {
  width: auto;
  min-width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  color: var(--share-color, var(--muted));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}
.bohfilm-share--under-player .bohfilm-share__btn { color: var(--share-color, var(--muted)); background: var(--surface); }
.bohfilm-share__btn svg { width: 20px; height: 20px; flex: 0 0 20px; }
.bohfilm-share__name { color: var(--text); font-size: 0.78rem; font-weight: 750; line-height: 1; white-space: nowrap; }
.bohfilm-share__btn:hover,
.bohfilm-share__btn:focus-visible {
  color: var(--share-color, var(--accent));
  background: var(--surface-2);
  border-color: var(--share-color, var(--accent));
  transform: translateY(-2px);
}
.bohfilm-share__btn--copy {
  cursor: pointer;
  font: inherit;
}
.bohfilm-share__btn--copy.is-copied {
  color: #128c4a;
  border-color: #128c4a;
}
.site-footer__bottom { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 20px; background: var(--surface); border-top: 1px solid var(--border); color: var(--muted); font-size: 0.84rem; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 16px; }

/* Responsive */
@media (max-width: 1120px) {
  .bohfilm-share__btn { width: 44px; flex-basis: 44px; padding: 0; }
  .bohfilm-share__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .site-header__inner { grid-template-columns: auto minmax(220px, 1fr) auto auto; gap: 12px; }
  .header-menu { position: fixed; inset: 0 0 0 auto; z-index: 101; width: min(390px, 88vw); overflow-y: auto; padding: 20px; background: var(--surface); visibility: hidden; opacity: 0; pointer-events: none; transition: opacity 180ms ease; }
  .header-menu.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
  .primary-menu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
  .primary-menu__title { font: 700 1.4rem/1 "Oswald", sans-serif; }
  .header-menu .primary-menu__random { display: flex; width: 100%; justify-content: flex-start; margin-top: 12px; }
  .header-menu ul { display: grid; gap: 4px; }
  .header-menu .sub-menu { position: static; display: grid; margin-left: 12px; padding: 4px; box-shadow: none; }
  .header-menu-toggle { display: inline-flex; grid-column: 4; grid-row: 1; }
  .header-search { grid-column: 2; grid-row: 1; }
  .header-actions { grid-column: 3; grid-row: 1; padding-right: 0; }
  .header-actions > .header-action--random { display: none; }
  .articles-list, .card-view, .grid-view, .film-related .articles-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bohfilm-episodes__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .site-header__inner { min-height: 64px; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; }
  .site-brand { max-width: 190px; }
  .site-brand__mark img { width: 36px; height: 29px; }
  .site-brand__name { font-size: 1.24rem; }
  .header-search { grid-column: 2; }
  .header-actions { grid-column: 3; padding-right: 0; }
  .header-menu-toggle { grid-column: 4; }
  .header-action__label { display: none; }
  .film-player-wrap__heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .film-player-wrap__heading p { text-align: left; }
  .film-card { grid-template-columns: 200px minmax(0, 1fr); gap: 0 20px; }
  .poster-action--report { margin-left: 0; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .articles-list, .card-view, .grid-view, .film-related .articles-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .single-poll__heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .single-poll__heading p { text-align: left; }
  .bohfilm-trailer__heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .bohfilm-trailer__heading p { text-align: left; }
  .single-poll__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(86vw, 380px);
    align-items: stretch;
    overflow-x: auto;
    padding: 0 1px 9px;
    scroll-snap-type: inline proximity;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }
  .single-poll__item { scroll-snap-align: start; }
}

@media (max-width: 760px) {
  .bohfilm-rating-scores__inner { grid-template-columns: 1fr; gap: 14px; }
  .bohfilm-rating-scores__summary { min-height: 82px; grid-auto-flow: column; align-items: center; justify-content: center; gap: 10px; }
  .bohfilm-rating-scores__label { margin-top: 0; }
  .bohfilm-rating-scores__bars { grid-template-columns: 1fr; }
  .bohfilm-rating-bar[data-max="10"] { grid-column: auto; }
  .bohfilm-rating-bar__inputs { width: 100%; max-width: 100%; grid-template-columns: repeat(5, 44px); justify-content: center; overflow: visible; padding-bottom: 0; }
  .bohfilm-rating-bar[data-max="10"] .bohfilm-rating-bar__inputs { grid-template-columns: repeat(5, 44px); }
  .bohfilm-rating-scores--under-player .bohfilm-rating-bar__inputs,
  .bohfilm-rating-scores--under-player .bohfilm-rating-bar[data-max="10"] .bohfilm-rating-bar__inputs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-content: stretch;
  }
}

@media (max-width: 620px) {
  .site-container { width: 100%; }
  .site-main { padding: 0 0 28px; }
  .site-main > .site-container { padding: 12px; }
  .site-header__inner { min-height: 118px; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: 64px 54px; gap: 0 8px; padding-inline: 10px; }
  .site-brand { grid-column: 1; grid-row: 1; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .header-menu-toggle { grid-column: 3; grid-row: 1; }
  .site-brand { gap: 6px; }
  .site-brand__mark img { width: 36px; height: 28px; }
  .site-brand__name { font-size: 1.12rem; }
  .header-actions { gap: 4px; }
  .header-actions > .theme-toggle { display: none; }
  .header-menu .theme-toggle--mobile { display: flex; width: 100%; justify-content: flex-start; margin-top: 8px; }
  .header-search { grid-column: 1 / -1; grid-row: 2; display: block; align-self: start; }
  .header-menu { padding: 76px 20px 20px; }
  .primary-menu__head { position: absolute; top: 18px; right: 20px; left: 20px; }
  .header-liked-episodes__panel { position: fixed; top: 122px; right: 10px; left: 10px; width: auto; }
  .articles-list, .card-view, .grid-view { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .film-related .articles-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: inline proximity;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .film-related .articles-list::-webkit-scrollbar { display: none; }
  .film-related .material-card { flex: 0 0 calc((100% - 12px) / 2); scroll-snap-align: start; }
  .breadcrumbs { flex-wrap: nowrap; overflow-x: auto; margin-bottom: 10px; padding-bottom: 2px; white-space: nowrap; scrollbar-width: none; }
  .breadcrumbs li:not(:first-child):not(:last-child), .breadcrumb li:not(:first-child):not(:last-child) { display: none; }
  .single-serial_episode .breadcrumbs li:nth-child(2) { display: inline-flex; min-width: 0; }
  .single-serial_episode .breadcrumbs li:nth-child(2) a { min-width: 0; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
  .single-serial_episode .breadcrumbs li:last-child { display: none; }
  .home-heading { margin-bottom: 18px; }
  .home-heading h1 { font-size: 1.75rem; }
  .tabs-block, .featured-carousel { padding: 0; }
  .main-filter { padding: 24px 0; }
  .bohfilm-parts-carousel, .gallery-block, .bohfilm-gallery-strip, .rating-scores, .bohfilm-episodes, .film-related, .comments-wrap, .bohfilm-article-block, .bohfilm-trailer { padding: 20px 0 0; border-radius: 0; }
  .tabs-block > header, .section-heading--row, .archive-info { align-items: stretch; flex-direction: column; gap: 12px; }
  .tabs { width: max-content; min-width: 100%; }
  .tab-content { min-height: 240px; }
  .film-card {
    grid-template-columns: 144px minmax(0, 1fr);
    grid-template-areas:
      "poster heading"
      "poster summary"
      "actions summary"
      "secondary secondary"
      "facts facts";
    grid-template-rows: auto;
    gap: 0 14px;
    padding: 0 0 18px;
  }
  .film-card--episode { display: block; padding: 4px 0 20px; }
  .film-card--episode .film-heading h1 { font-size: clamp(1.6rem, 7.2vw, 1.85rem); }
  .film-card-left { width: 144px; justify-self: start; }
  .poster-image { width: 144px; height: 216px; }
  .likes { width: 142px; height: 52px; grid-template-columns: 49px 44px 49px; }
  .likes-circle-count { width: 44px; height: 44px; border-width: 3px; }
  .likes-circle-count::before { width: 36px; height: 36px; border-width: 2px; font-size: 0.86rem; }
  .likes-item { gap: 0; }
  .like-count { min-width: 2ch; font-size: 0.75rem; }
  .film-heading { margin-top: 0; }
  .film-heading h1 { max-width: none; font-size: clamp(1.4rem, 6.8vw, 1.75rem); line-height: 1.15; }
  .film-desc-wrap { font-size: 0.88rem; line-height: 1.5; }
  .film-desc-inner.collapsed { max-height: 6em; }
  .film-desc-more { min-height: 44px; font-size: 0.84rem; }
  .film-desc-disclosure { font-size: 0.86rem; }
  .film-desc-disclosure > summary { min-height: 44px; gap: 6px; padding: 7px 9px; font-size: 0.82rem; line-height: 1.2; white-space: nowrap; }
  .film-card__facts { margin-top: 16px; }
  .film-info__grid, .film-info__columns { grid-template-columns: 1fr; gap: 8px; padding-top: 0; }
  .film-info__column--primary .film-info__column-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .film-info__column--primary .film-fact { min-width: 0; padding: 8px; background: var(--surface-2); border-radius: 8px; }
  .film-info__column--primary .film-fact:first-child { grid-column: 1 / -1; }
  .film-info__details { display: block; }
  .film-info__details > summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 0.88rem; font-weight: 750; list-style: none; }
  .film-info__details > summary::-webkit-details-marker { display: none; }
  .film-info__details > summary::after { content: "+"; color: var(--muted); font-size: 1.15rem; }
  .film-info__details[open] > summary::after { content: "−"; }
  .film-info__details-content { display: flex; flex-direction: column; }
  .film-fact, .film-fact--wide { display: block; padding: 3px 0; }
  .film-fact__label { min-width: 0; overflow-wrap: anywhere; line-height: 1.4; }
  .film-fact__value { font-size: 0.86rem; }
  .film-info__ratings { width: 100%; margin-top: 12px; }
  .film-poster-actions { width: 144px; justify-self: start; }
  .film-poster-actions .poster-action { gap: 4px; padding-inline: 4px; font-size: 0.72rem; }
  .film-secondary-actions { width: max-content; max-width: 100%; justify-self: start; padding-top: 10px; grid-template-columns: repeat(4, 44px); gap: 8px; }
  .film-secondary-actions .poster-action { width: 44px; height: 44px; min-height: 44px; padding: 0; }
  .poster-action { min-height: 44px; }
  .poster-action--report { margin-left: 0; border-color: var(--border); }
  .form-grid { grid-template-columns: 1fr; }
  .gallery-block__list, .film-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bohfilm-gallery-strip__scroll { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bohfilm-episodes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bohfilm-episodes__head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .bohfilm-episodes__title-group { grid-column: 1 / -1; width: 100%; display: block; }
  .bohfilm-episodes__summary { display: block; margin-top: 5px; }
  .bohfilm-sort-wrap { width: 100%; min-width: 0; }
  .bohfilm-episodes__head .bohfilm-sort-wrap { display: flex; min-height: 56px; }
  .bohfilm-episodes--single-season .bohfilm-sort-wrap--order { grid-column: 1 / -1; }
  .bohfilm-sort-wrap--season-order { grid-column: 1 / -1; }
  .sort-current, .bohfilm-season-order-toggle { width: 100%; height: 100%; justify-content: center; line-height: 1.25; }
  .bohfilm-episodes__body { height: 72px; padding: 9px 9px 10px; }
  .bohfilm-episodes__body--compact { height: 60px; }
  .bohfilm-episodes__title { font-size: 0.86rem; }
  .bohfilm-rating-scores { padding: 24px 0 0; border-radius: 0; }
  .bohfilm-rating-scores--under-player {
    padding: 12px;
    border-radius: 9px;
    background: var(--surface-2);
    border: 1px solid var(--border);
  }
  .bohfilm-rating-scores__inner { grid-template-columns: 1fr; gap: 14px; }
  .bohfilm-rating-scores__summary { min-height: 82px; grid-auto-flow: column; align-items: center; justify-content: center; gap: 10px; }
  .bohfilm-rating-scores__label { margin-top: 0; }
  .bohfilm-rating-bar__header { align-items: flex-start; flex-direction: column; gap: 2px; }
  .bohfilm-rating-scores--under-player .bohfilm-rating-bar__header { flex-direction: row; align-items: baseline; }
  .bohfilm-rating-bar__inputs { width: 100%; max-width: 100%; grid-template-columns: repeat(5, 44px); justify-content: center; overflow: visible; padding-bottom: 0; }
  .bohfilm-rating-bar[data-max="10"] .bohfilm-rating-bar__inputs { grid-template-columns: repeat(5, 44px); }
  .bohfilm-rating-scores--under-player .bohfilm-rating-bar__inputs,
  .bohfilm-rating-scores--under-player .bohfilm-rating-bar[data-max="10"] .bohfilm-rating-bar__inputs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-content: stretch;
  }
  .rating-scores__grid, .rating-scores-list { grid-template-columns: 1fr; }
  .comments-wrap { scroll-margin-top: 130px; }
  .comments-header { align-items: flex-start; flex-direction: column; }
  .comment-sorting-buttons { margin-left: 0; }
  .comment-respond { padding: 14px; }
  .comment-form .form-row.col-2 { grid-template-columns: 1fr; }
  .format-buttons { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .format-buttons::-webkit-scrollbar { display: none; }
  .comment-form textarea { height: 126px; min-height: 126px; }
  #commentform .comment-submit { width: 100%; min-width: 0; }
  .comment-list > .comment, .children > .comment { grid-template-columns: 40px minmax(0, 1fr); gap: 9px; }
  .comment > .avatar { width: 40px; height: 40px; }
  .children { grid-column: 1 / -1; margin-left: 12px; padding-left: 9px; }
  .comment-replies-shell { grid-column: 1 / -1; margin-left: 12px; }
  .bohfilm-emoji-extended__panel, .bohfilm-gif-picker__panel { left: -14px; width: calc(100vw - 28px); }
  .bohfilm-emoji-extended__grid, .bohfilm-gif-picker__grid { grid-template-columns: repeat(6, 44px); }
  .single-poll { padding-top: 22px; }
  .single-poll__item { padding: 14px; }
  .single-poll__form { height: auto; min-height: 385px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 14px; min-height: 0; padding: 20px 10px 14px; }
  .site-footer__brand { grid-column: auto; }
  .site-footer h2 { margin-bottom: 4px; }
  .site-footer p { margin-top: 8px; }
  .site-footer__nav ul, .site-footer__support ul { display: flex; flex-wrap: wrap; gap: 0 16px; }
  .site-footer__grid--without-support .site-footer__nav { justify-self: start; }
  .bohfilm-share--under-player { grid-template-columns: repeat(4, minmax(44px, 1fr)); display: grid; justify-content: stretch; gap: 8px; padding: 12px; width: 100%; box-sizing: border-box; }
  .bohfilm-share--under-player .bohfilm-share__label { grid-column: 1 / -1; margin-right: 0; }
  .bohfilm-share--under-player .bohfilm-share__btn { width: 100%; min-width: 44px; flex-basis: auto; }
  .bohfilm-episodes, .film-player-wrap { scroll-margin-top: 130px; }
  .film-player-wrap__heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .film-player-wrap__heading h2, .film-player-wrap__context { font-size: 0.82rem; text-align: left; }
  .site-footer__bottom { min-height: 0; align-items: flex-start; flex-direction: column; gap: 6px; padding: 12px 10px; }
}

@media (max-width: 380px) {
  .film-card { grid-template-columns: 132px minmax(0, 1fr); column-gap: 12px; }
  .film-card-left, .film-poster-actions { width: 132px; }
  .poster-image { width: 132px; height: 198px; }
  .likes { width: 130px; grid-template-columns: 43px 44px 43px; }
  .film-heading h1 { font-size: 1.27rem; line-height: 1.12; }
  .film-desc-wrap { font-size: 0.84rem; line-height: 1.45; }
  .film-desc-disclosure > summary { gap: 4px; padding-inline: 7px; font-size: 0.78rem; }
}

@media (hover: none) {
  .material-card__play { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
