/* Карточка фильма: широкий плеер и сведения рядом с постером. */
.title-detail {
    isolation: isolate;
    padding: 32px 16px 48px;
    color: #d8dbe1;
}
/* Поля задаёт секция: контейнер не добавляет отступы и не ограничивает ширину. */
.title-detail > .container { width: 100%; max-width: none; padding-inline: 0; }
.title-detail::before { background: rgba(15, 17, 21, .76); }
.title-detail::after { background: linear-gradient(180deg, rgba(20, 20, 20, .1), var(--hithd-base) 1200px); }
.title-detail .title-detail__backdrop { height: min(100%, 1400px); object-position: center top; }
.title-detail .movie__content { display: block; min-width: 0; }
.title-detail__heading { padding-bottom: 20px; border-bottom: 1px solid #ffffff1f; }
.title-detail .hero__title { margin: 0; padding: 0; font-size: clamp(28px, 3vw, 42px); line-height: 1.2; font-weight: 600; overflow-wrap: anywhere; }
.title-detail__original { margin: 8px 0 0; font-size: 18px; line-height: 1.4; color: #adb3be; overflow-wrap: anywhere; }
.title-detail__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.title-detail__badges:empty { display: none; }
.title-detail__badge { padding: 5px 12px; border: 1px solid #ffffff17; border-radius: 8px; background: #252932; color: #c4c9d3; font-size: 14px; font-weight: 600; line-height: 1.4; }
.title-detail__badge--media { border-color: #64c59155; background: #64c5910d; color: #75d5a0; }
.title-detail__badge--age { border-color: #eab85d55; background: #eab85d0d; color: #eab85d; }
.title-detail .movie__player { margin-top: 20px; }
.title-detail__details { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 28px; margin-top: 32px; }
.title-detail__sidebar, .title-detail__main { min-width: 0; }
.title-detail__sidebar { width: min(100%, 320px); margin-inline: auto; }
.title-detail__poster { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 14px; }
.title-detail__actions { display: grid; gap: 10px; margin-top: 14px; }
.title-detail__actions form { margin: 0; min-width: 0; }
.title-detail__action { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #ffffff1c; border-radius: 9px; background: #252932; color: #c9cdd6; font-size: 14px; font-weight: 600; line-height: 1.4; text-align: left; }
.title-detail__action svg { flex: 0 0 20px; }
.title-detail__action:hover, .title-detail__action[aria-pressed="true"] { color: #fff; background: #343a46; border-color: #ffffff40; }
.title-detail__votes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.title-detail__vote { justify-content: center; font-size: 16px; }
.title-detail__vote--like svg { color: #65c797; }
.title-detail__vote--dislike svg, .title-detail__report svg { color: #ea777f; }
.title-detail__vote:disabled { cursor: default; }
.title-detail__vote:disabled[aria-pressed="false"] { color: #969eac; background: #252932; border-color: #ffffff1c; }
.title-detail__vote--like[aria-pressed="true"], .title-detail__vote--like.title-detail__vote--selected { border-color: #65c79780; background: #65c7971a; color: #fff; }
.title-detail__vote--dislike[aria-pressed="true"], .title-detail__vote--dislike.title-detail__vote--selected { border-color: #ea777f80; background: #ea777f1a; color: #fff; }
.title-detail__vote-note { display: block; margin: 8px 0 0; color: #aeb6c3; font-size: 12px; line-height: 1.5; }
.title-detail__watching { display: grid; gap: 10px; }
.title-detail__watching .hero__btn { width: 100%; }
.title-detail .main__tabs-nav--movie { margin: 0; }
.title-detail .main__tabs-content { padding-top: 20px; }
.title-detail .section__text { margin: 0; max-width: none; color: #c0c5cf; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.title-detail .section__list { margin: 0; }
.title-detail__information { margin-top: 28px; padding-top: 24px; border-top: 1px solid #ffffff26; }
.title-detail__section-title, .title-detail__information .section__title { margin: 0 0 20px; color: #d8dbe1; font-size: 22px; line-height: 1.4; font-weight: 400; }
.title-detail .title-info { display: block; width: 100%; max-width: none; margin: 0; }
.title-info__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 15px 0; border-bottom: 1px solid #ffffff12; font-size: 15px; line-height: 1.65; }
.title-info__row:last-child { border-bottom: 0; }
.title-info__row dt { color: #969eac; font-weight: 600; }
.title-info__row dd { min-width: 0; margin: 0; color: #c0c5cf; overflow-wrap: anywhere; }
.title-detail .title-info :is(a, .person-preview__link) { display: inline; margin: 0; font-size: inherit; line-height: inherit; color: #c0c5cf; }
.title-detail .title-info :is(a, .person-preview__link):hover { color: #fff; }
.title-detail .title-info :is(a, .person-preview__link)::after { content: none; }
.title-detail .title-info dd > :is(a, .person-preview__link):not(:last-child)::after { content: ', '; display: inline; position: static; white-space: pre; }
.title-detail .title-ratings { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.title-detail__rating { display: inline-flex; align-items: center; gap: 8px; }
.title-detail__rating-icon { display: inline-flex; color: #68c797; }
.title-detail__rating--kinopoisk .title-detail__rating-icon { color: #fa7833; }
.title-detail__rating-icon svg { display: block; width: 22px; height: 22px; }
.title-detail__rating--imdb .title-detail__rating-icon svg { width: 40px; height: 20px; }
.title-detail__rating:has(svg) .rating__source { display: none; }
.title-detail .title-info .title-rating { margin: 0; font-weight: 400; }
.title-detail .title-info .title-rating span { margin: 0; }
.title-detail .title-info .rating__votes { color: #aeb6c3; font-size: 13px; }
.title-detail .title-info .rating__votes::before { content: '/ '; }
.title-detail .series-episodes { margin-top: 28px; }
.title-detail .series-episodes .hero__actions { flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.title-detail .series-episodes .hero__btn { margin: 0; }
.title-detail .series-episodes section { margin-top: 28px; }
.title-detail [data-series-information] > p { color: #c0c5cf; font-size: 15px; line-height: 1.6; }
@media (min-width: 576px) {
    .title-info__row { grid-template-columns: 150px minmax(0, 1fr); gap: 20px; }
}
@media (min-width: 768px) {
    .title-detail { padding-top: 40px; }
    .title-detail__details { grid-template-columns: minmax(180px, 25%) minmax(0, 1fr); gap: 28px; }
    .title-detail__sidebar { width: 100%; }
}
@media (min-width: 1200px) {
    .title-detail { padding-inline: 32px; }
}
@media (min-width: 1400px) {
    .title-detail__details { gap: 36px; }
    .title-info__row { grid-template-columns: 180px minmax(0, 1fr); }
}

.title-detail__action:disabled { cursor: default; }
.title-detail__action-status { margin: 8px 0 0; color: #c9cdd6; font-size: 13px; line-height: 1.5; }
.title-problem-dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 32px); margin: auto; padding: 24px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #ffffff26; border-radius: 14px; background: #1b1e24; color: #d8dbe1; }
html:has(.title-problem-dialog[open]) { overflow: hidden; }
.title-problem-dialog::backdrop { background: #000b; }
.title-problem-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.title-problem-dialog__header h2 { margin: 0; font-size: 22px; line-height: 1.4; }
.title-problem-dialog__close { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #ffffff26; border-radius: 8px; background: #252932; color: #fff; font-size: 28px; }
.title-problem-dialog .modal__form { max-width: none; margin: 0; padding: 0; background: transparent; }
.title-problem-dialog .modal__title { display: none; }
.title-problem-dialog .sign__group { width: 100%; }
.title-problem-dialog .sign__textarea { min-height: 140px; }
.title-problem-dialog .title-detail__action-status { margin-bottom: 16px; }
.title-problem-dialog [hidden] { display: none; }
@media (max-width: 575px) {
    .title-problem-dialog { padding: 16px; }
    .title-problem-dialog__header h2 { font-size: 20px; }
}
