@import "comments-ImbUpWV.css";
@import "collections-PF3SWwM.css";
/* Только кириллица, доступность и отсутствующие в демо состояния hithd. */
body { font-family: Arial, sans-serif; }
.header__logo img, .sidebar__logo img, .sign__logo img { width: auto; height: 48px; }
@media (prefers-reduced-motion: reduce) {
    .header__logo img, .sidebar__logo img, .sign__logo img { content: url("../images/logo-static-AAWcva8.svg"); }
}
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #fff !important; outline-offset: 4px !important; }
/* Контур фокуса полей совмещён с рамкой, чтобы не было двойной обводки. */
:is(input:not([type="checkbox"], [type="radio"], [type="range"]), textarea, select):focus-visible { outline-width: 1px !important; outline-offset: -1px !important; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 1100; padding: 12px; background: #fff; color: var(--hithd-base); }
.skip-link:focus { top: 8px; }
.footer { padding-top: 0; }
.footer__content { margin-top: 0; border-top: 0; }
.header__dropdown-menu--account {
    top: calc(100% + 12px);
    right: 0;
    width: 260px;
    min-width: 0;
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 96px);
    padding: 8px 0;
    background: var(--hithd-surface);
    border-color: var(--hithd-border);
    overscroll-behavior: contain;
}
.header__dropdown-menu--account li { margin: 0; }
.header__dropdown-menu--account .header__account-divider { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--hithd-border); }
.header__dropdown-menu--account a, .header__dropdown-menu--account button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 8px 20px;
    color: var(--hithd-text);
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    text-align: left;
}
.header__dropdown-menu--account svg { flex-shrink: 0; width: 20px; height: 20px; margin-right: 12px; stroke: currentColor; }
.header__dropdown-menu--account a svg { margin-right: 12px; stroke: currentColor; }
.header__dropdown-menu--account span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header__dropdown-menu--account a:hover, .header__dropdown-menu--account button:hover, .header__dropdown-menu--account a[aria-current="page"] { color: var(--hithd-accent); background: rgb(255 255 255 / 3%); }
.header__dropdown-menu--account :focus-visible { outline-offset: -4px !important; }
.header__sign-in--user { position: relative; }
.header__avatar { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.header__sign-in--user .header__account-notifications { display: contents; }
/* Счётчик из header__notices-btn исходного шаблона, на аватаре и в меню. */
.header__sign-in--user .header__account-notifications .header__notification-count,
.header__dropdown-menu--account .header__notification-count {
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 2px;
    border-radius: 10px;
    background: #e84142;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    line-height: 14px;
}
.header__sign-in--user .header__account-notifications .header__notification-count { position: absolute; top: -4px; right: -4px; }
.header__menu-notifications { flex-shrink: 0; margin-left: auto; padding-left: 12px; }
.header__sign-in--user .header__account-notifications .header__notification-count:empty,
.header__dropdown-menu--account .header__notification-count:empty { display: none; }
.title-poster { pointer-events: none; }
.item__cover > img { aspect-ratio: 2 / 3; object-fit: cover; height: auto; }
/* Продолжение просмотра использует затемнение и появление item__play из шаблона. */
.item__play.item__play--resume {
    inset: 0;
    width: auto;
    height: auto;
    margin: 0;
    padding: 12px;
    border: 0;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    color: var(--hithd-text);
    font-size: clamp(12px, 6cqw, 18px);
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    pointer-events: none;
}
.item__play--resume::before { display: none; }
.item--continue:is(:hover, :focus-within) .item__play--resume { opacity: 1; transform: scale(1); }
.item--continue:is(:hover, :focus-within) .item__cover img { opacity: .5; }
.item--continue:is(:hover, :focus-within) .item__cover::before { opacity: 1; }
.people-grid { row-gap: 24px; }
.people-grid .item__cover { width: 100%; aspect-ratio: 2 / 3; }
.people-grid .item__cover > img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.item__cover--badges { width: 100%; container-type: inline-size; }
.item__cover--badges .poster-badges {
    top: clamp(6px, 4cqw, 16px);
    bottom: auto;
    left: clamp(6px, 4cqw, 16px);
    right: clamp(6px, 4cqw, 16px);
    gap: clamp(4px, 2cqw, 8px);
    pointer-events: none;
}
.poster-badges .poster-badges__label {
    margin: 0;
    padding: 2px clamp(4px, 2cqw, 9px);
    border: 1px solid #3b3e44;
    border-radius: clamp(5px, 2.5cqw, 11px);
    background: rgb(9 13 18 / 82%);
    color: #b9bdc5;
    font-size: clamp(10px, 5cqw, 18px);
    font-weight: 700;
    line-height: 1.3;
}
.poster-badges--watch { padding-right: 44px; }
.poster-badges .poster-badges__label--progress { position: absolute; top: 0; right: 0; white-space: nowrap; }
.poster-ratings {
    position: absolute;
    z-index: 3;
    left: 6px;
    right: 6px;
    bottom: clamp(6px, 4cqw, 16px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(3px, 2cqw, 8px);
    pointer-events: none;
}
.poster-ratings .poster-rating {
    flex: 0 0 auto;
    gap: clamp(1px, calc(2cqw - 2px), 5px);
    padding: clamp(2px, 1cqw, 5px) clamp(1px, calc(5cqw - 6px), 10px);
    border: 1px solid #35383e;
    border-radius: 30px;
    background: rgb(9 13 18 / 88%);
    font-size: clamp(10px, 5cqw, 20px);
    line-height: 1.2;
    white-space: nowrap;
}
.poster-rating .rating__source { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.poster-rating .rating__icon { display: flex; flex: 0 0 auto; width: 1.1em; height: 1.1em; }
.poster-rating .rating__icon svg { display: block; width: 100%; height: 100%; }
.poster-rating[data-rating-source="hithd"] .rating__icon { color: #61bd88; }
.poster-rating[data-rating-source="КП"] .rating__icon { color: #f57319; }
.poster-rating[data-rating-source="IMDb"] .rating__icon { width: 1.9em; }
.poster-rating .rating__value { color: #b9bdc5; font-size: inherit; font-weight: 700; }
#home-heading + .section { padding-top: 24px; }
.movie__placeholder { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: #000; color: #fff; border-radius: 16px; }
.movie__placeholder p { margin: 0; }
.title-ratings { display: flex; flex-wrap: wrap; gap: 24px; }
.title-rating { display: inline-flex; align-items: center; gap: 6px; color: var(--hithd-muted); }
.rating__value { color: #fff; }
.rating__votes { font-size: 12px; }
.filter__dropdown-menu.show { top: calc(100% + 8px); right: 0; }
.filter__dropdown-list [role="option"]:focus-visible { color: #fff; }
.filter__dropdown-menu--fields { max-height: min(65svh, 600px); overflow-y: auto; }
.filter__dropdown-list a { color: inherit; display: block; width: 100%; }
.filter__range { display: flex; flex-direction: column; gap: 12px; color: #fff; }
.filter__range input { width: 100%; accent-color: #f9ab00; }
.filter__range input[type="number"] { background: var(--hithd-base); color: #fff; padding: 8px; border-radius: 8px; }
.seo-text h2, .seo-text h3, .seo-text p { max-width: 860px; overflow-wrap: break-word; }
.seo-text h2 { margin: 0; font-size: 22px; line-height: 30px; font-weight: 500; color: #fff; }
.seo-text h3 { margin: 20px 0 0; font-size: 16px; line-height: 24px; font-weight: 500; color: #fff; }
.seo-text p { margin: 8px 0 0; font-size: 14px; line-height: 24px; color: var(--hithd-muted); }
.seo-text__intro { max-height: 96px; overflow: hidden; mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); }
.seo-text:has([aria-controls="home-seo-more"][aria-expanded="true"]) .seo-text__intro { max-height: none; mask-image: none; }
.seo-text__more { max-width: 860px; }
.seo-text__more .accordion__card { margin: 0; border-radius: 0; background: transparent; }
.seo-text__more .accordion__card > button { display: inline-flex; width: auto; min-height: 36px; margin-top: 8px; padding: 4px 0; color: var(--hithd-accent); font-size: 14px; line-height: 24px; }
.seo-text__more .accordion__card > button:before, .seo-text__more .accordion__card > button:after { display: none; }
.seo-text__more .accordion__card > button:hover { text-decoration: underline; }
.seo-text__content p, .seo-text__content p:first-child { padding: 0; border: 0; }
.seo-text__collapse, .seo-text__more button[aria-expanded="true"] .seo-text__expand { display: none; }
.seo-text__more button[aria-expanded="true"] .seo-text__collapse { display: inline; }
@media (min-width: 1200px) { .sidebar--compact { width: 0; overflow: hidden; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.community { color: #fff; }
.community-comment, .community-review { margin: 1rem 0; padding: 1rem; border: 1px solid #45454b; border-radius: 8px; }
.community-replies { margin-left: min(5vw, 2rem); }
.community-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.community form { margin: 1rem 0; }
.community label { display: block; margin: .5rem 0; }
.community textarea { display: block; width: 100%; min-height: 7rem; }
.community textarea, .community input, .community select, .community button { color: #fff; background: #28282d; border: 1px solid #777; border-radius: 4px; padding: .4rem; }
.community a { color: #ffd880; }
.community summary { cursor: pointer; }
.community blockquote { border-left: 3px solid #777; padding-left: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Форма запроса фильма использует компоненты sign из шаблона. */
.film-request .sign__label { height: auto; line-height: 20px; }
.film-request .sign__btn { align-self: flex-start; }
.film-request__hint { margin-top: 8px; padding-left: 16px; }
.film-request__errors { width: 100%; margin-top: 8px; color: var(--hithd-danger); font-size: 14px; line-height: 24px; }
.film-request__errors:empty { display: none; }
.film-request__errors ul { margin: 0; padding-left: 16px; }
.film-request__details { width: 100%; margin: 24px 0 0; font-size: 14px; line-height: 24px; }
.film-request__details dt { color: var(--hithd-muted); font-weight: 400; }
.film-request__details dd { margin: 4px 0 16px; color: #fff; overflow-wrap: anywhere; }
.film-request__details dd:last-child { margin-bottom: 0; }

/* Подборки зрителей */
.community-collections { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.community-collection { margin: 20px 0; padding: 16px; border: 1px solid #333; border-radius: 8px; min-width: 0; }
.community-collection__collage { display: grid; grid-template-columns: repeat(4, 1fr); min-height: 100px; overflow: hidden; border-radius: 6px; }
.community-collection__collage img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.community-collection__text { white-space: pre-wrap; overflow-wrap: anywhere; }
.community-collection-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; margin-bottom: 24px; }

/* Десктоп использует окно поиска из темы; на мобильном поле остаётся в шапке. */
.header__content { min-width: 0; }
.multisearch__form { border-bottom: 0; }
.multisearch__input { min-width: 0; }
.multisearch__dropdown { width: 160px; }
.multisearch__dropdown-menu.show { top: calc(100% + 8px); left: 0; }
.search-open, .search-open .main__content { overflow: hidden; }
.search-open .header { z-index: 1001; }
@media (min-width: 768px) {
    .header__search { flex: 0.5; min-width: 0; width: auto; justify-content: flex-start; border-radius: 24px; background-color: var(--hithd-surface); padding: 0 16px; margin-left: 24px; margin-right: 24px; }
    .header__auth { margin-left: auto; }
    .header__search span { display: block; font-size: 14px; line-height: 24px; font-weight: 500; color: var(--hithd-muted); }
    .header__search svg { flex-shrink: 0; width: 20px; height: 20px; stroke: var(--hithd-muted); margin-right: 8px; }
}
@media (min-width: 1200px) {
    .header__search { margin-left: 0; }
}
@media (max-width: 767.98px) {
    .header, .header__content { height: 122px; }
    .header__content { flex-wrap: wrap; row-gap: 12px; padding: 12px 0; }
    .header__logo { display: flex; align-items: center; height: 40px; }
    .header__logo img { height: 40px; }
    .header__auth { margin-left: auto; }
    .sidebar { top: 122px; }
    .multisearch {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        flex: 0 0 100%;
        order: 3;
        transform: none;
        transition: none;
        background: transparent;
        z-index: auto;
    }
    .multisearch__content { height: auto; background: transparent; }
    .multisearch__form { height: 46px; padding: 0; border: 0; }
    .multisearch__input { font-size: 16px; }
    .multisearch__close, .multisearch__dropdown { display: none; }
    .multisearch__results {
        position: absolute;
        top: calc(100% + 8px);
        max-height: 50vh;
        max-height: calc(100dvh - 200px);
        padding: 8px;
        background: var(--hithd-surface);
        border-radius: 16px;
        overscroll-behavior: contain;
    }
}

/* Постер-ссылка показывает кнопку воспроизведения и при фокусе с клавиатуры. */
a.item__cover:focus-visible img { opacity: 0.5; }
a.item__cover:focus-visible:before { opacity: 1; }
a.item__cover:focus-visible .item__play { opacity: 1; transform: scale(1); }
.item__cover:has(> .item__play--watched) img { opacity: .6; }
.item__play.item__play--watched {
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 0;
    background: rgb(0 0 0 / 60%);
    backdrop-filter: none;
    opacity: 1;
    transform: scale(1);
}
.item__play--watched::before { display: none; }
.item__play--watched svg { width: 22px; height: 22px; stroke: var(--hithd-accent); }

/* Каталог премий: те же панели и таблицы, что во вкладке наград фильма. */
.awards-catalog .awards-catalog__title { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 18px; line-height: 30px; }
.awards-catalog__table { min-width: 0; table-layout: fixed; text-align: left; }
.awards-catalog__table thead th { padding: 18px 12px; font-size: 11px; letter-spacing: .06em; line-height: 18px; }
.awards-catalog__table thead th:first-child { padding-left: 0; }
.awards-catalog__table thead th:last-child { width: 100px; padding-right: 0; text-align: right; }
.awards-catalog__table tbody th,
.awards-catalog__table tbody td { padding: 20px 12px; border-bottom: 1px solid #303135; color: #a5a9b0; font-size: 14px; font-weight: 400; line-height: 23px; vertical-align: middle; overflow-wrap: anywhere; }
.awards-catalog__table tbody th { padding-left: 0; }
.awards-catalog__table tbody td { padding-right: 0; text-align: right; }
.awards-catalog__table tbody tr:last-child > * { border-bottom: 0; }
.awards-catalog__link { display: flex; align-items: center; gap: 12px; color: var(--hithd-text); }
.awards-catalog__link:hover { color: #fff; }
.awards-catalog .awards-catalog__empty { margin: 0; padding: 20px 0; color: #a5a9b0; }
@media (max-width: 575.98px) {
    .awards-catalog__link { flex-wrap: wrap; gap: 8px; }
    .awards-catalog__link > span:nth-child(2) { order: 1; width: 100%; }
}

/* Страница церемонии: фильтр каталога и общие таблицы наград. */
.award-ceremony__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.award-ceremony__filter { width: 100%; max-width: 420px; min-width: 0; }
.award-ceremony__filter .filter__dropdown { width: 100%; margin: 0; }
.award-ceremony__filter .filter__btn { justify-content: flex-start; gap: 12px; width: 100%; height: auto; min-height: 48px; padding: 12px 16px; border-radius: 16px; text-align: left; }
.award-ceremony__filter .filter__btn-name { display: block; min-width: 0; margin: 0; color: #fff; font-size: 14px; line-height: 24px; white-space: normal; overflow-wrap: anywhere; }
.award-ceremony__filter .filter__btn-icon { flex-shrink: 0; }
.award-ceremony__filter .filter__btn-arrow { display: flex; flex-shrink: 0; margin-left: auto; }
.award-ceremony__filter .filter__btn-arrow svg { width: 20px; height: 20px; stroke: var(--hithd-muted); }
.award-ceremony__filter .filter__dropdown-menu { min-width: 0; }
.award-ceremony__filter .filter__dropdown-list span { white-space: normal; overflow-wrap: anywhere; }
.award-ceremony .award-ceremony__total { margin: 0; color: #a5a9b0; }
.award-ceremony__title { color: var(--hithd-text); }
.award-ceremony__title:hover { color: #fff; }

/* Награды фильма: карточки и таблица из раздела профиля темы. */
.title-awards { display: grid; gap: 20px; margin-top: 24px; min-width: 0; }
.title-awards__edition { min-width: 0; margin-top: 0; }
.title-awards .dashbox__title h3 { width: 100%; min-width: 0; }
.title-awards__heading { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; color: #fff; }
.title-awards__heading:hover { color: var(--hithd-text); }
.title-awards .title-awards__trophy { flex: 0 0 22px; width: 22px; height: 22px; margin: 0; stroke: #d9b879; }
.title-awards__name { overflow-wrap: anywhere; }
.title-awards__year { flex-shrink: 0; padding: 2px 10px; border: 1px solid #393a3e; border-radius: 8px; color: #b7bbc2; font-size: 14px; line-height: 24px; }
.title-awards .title-awards__arrow { flex: 0 0 18px; width: 18px; height: 18px; margin: 0 0 0 auto; stroke: var(--hithd-muted); }
.title-awards .dashbox__table-wrap { padding-top: 0; padding-bottom: 0; }
.title-awards__table { min-width: 0; table-layout: fixed; text-align: left; }
.title-awards__table thead th { padding: 18px 12px; font-size: 11px; letter-spacing: .06em; line-height: 18px; }
.title-awards__table thead th:first-child { width: 40%; padding-left: 0; }
.title-awards__table thead th:last-child { width: 130px; padding-right: 0; text-align: right; }
.title-awards__table tbody th,
.title-awards__table tbody td { padding: 20px 12px; border-bottom: 1px solid #303135; color: #fff; font-size: 14px; font-weight: 400; line-height: 23px; vertical-align: top; overflow-wrap: anywhere; }
.title-awards__table tbody th { padding-left: 0; }
.title-awards__table tbody tr:last-child > * { border-bottom: 0; }
.title-awards__table .title-awards__people { color: #a5a9b0; }
.title-awards__people ul { padding: 0; margin: 0; list-style: none; }
.title-awards__people li { display: inline; }
.title-awards__people li:not(:last-child)::after { content: ', '; }
.title-awards__people a { color: var(--hithd-text); }
.title-awards__people a:hover { color: #fff; }
.title-awards__table .title-awards__result { padding-right: 0; text-align: right; }
.title-awards__status { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid #3b3d42; border-radius: 20px; color: #a5a9b0; font-size: 12px; line-height: 22px; white-space: nowrap; }
.title-awards__status--won { border-color: #655437; background: rgb(217 184 121 / 7%); color: #e4c58b; }
.title-awards__status--won::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
@media (max-width: 767.98px) {
    .title-awards { gap: 16px; margin-top: 20px; }
    .title-awards__heading { gap: 10px; }
    .title-awards .dashbox__title h3 { font-size: 17px; line-height: 26px; }
    .title-awards__year { padding: 1px 8px; font-size: 13px; }
    .title-awards__table,
    .title-awards__table tbody { display: block; width: 100%; }
    .title-awards__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .title-awards__table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px 12px; padding: 18px 0; border-bottom: 1px solid #303135; }
    .title-awards__table tbody tr:last-child { border-bottom: 0; }
    .title-awards__table tbody th,
    .title-awards__table tbody td { min-width: 0; padding: 0; border: 0; }
    .title-awards__table tbody th { grid-column: 1; grid-row: 1; }
    .title-awards__table .title-awards__people { grid-column: 1 / -1; grid-row: 2; font-size: 13px; line-height: 22px; }
    .title-awards__table .title-awards__people--empty { display: none; }
    .title-awards__table .title-awards__result { grid-column: 2; grid-row: 1; }
    .title-awards__status { padding: 1px 8px; font-size: 11px; }
}
