/* ===== 08. Single title page ===== */
/* ===== 08. Single title page ===== */
/* ===== 08. Single title page ===== */

.single .base.fullstory {
    padding: 0;
    background: transparent;
    border: 0;
}

.single-title-layout {
    display: grid;
    grid-template-columns: 936px 280px;
    gap: 20px;
    max-width: 1196px;
    margin: 0 auto;
    align-items: start;
}

.single-title-main {
    min-width: 0;
    padding: 20px;
    background: var(--so-surface);
    border: 1px solid var(--so-border);
    border-radius: 18px;
    overflow: hidden;
}

.single-title-aside,
.single-title-sidebar,
.single-title-sidebar.home-sidebar {
    min-width: 0;
    align-self: start;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

@media (min-width: 1100px) {
    .single-title-aside,
    .single-title-sidebar,
    .single-title-sidebar.home-sidebar {
        position: sticky;
        top: 20px;
        height: fit-content;
    }
}

.single-title-aside > *:first-child,
.single-title-sidebar > *:first-child,
.single-title-sidebar.home-sidebar > *:first-child,
.single-title-sidebar .home-widget:first-child,
.single-title-sidebar .home-widget--promo:first-child {
    margin-top: 0 !important;
}

.release_info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
    gap: 24px;
}

.release_title_block {
    min-width: 0;
    color: var(--so-text);
    font-size: 16px;
    line-height: 1.6;
}

.release_title_block > div {
    margin-bottom: 4px;
}

.release_title_block .full-text {
    padding-top: 18px;
}

.release_title_block .full-text p:first-child {
    margin-top: 0;
}

.release_title {
    display: block;
    margin: 0 0 15px;
    color: var(--so-text);
    font-size: 28px;
    line-height: 1.2;
}

.release_title_block .title-status-badge {
	margin: -4px 0 14px;
}

.release_poster {
    min-width: 0;
    width: 280px;
    max-width: 280px;
    flex: 0 0 280px;
}

.release_poster_link {
    display: block;
    cursor: zoom-in;
    border-radius: 8px;
}

.release_poster_link img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.full-text,
.release-extra-blocks {
    padding-top: 20px;
}

.release-extra-block {
    margin-bottom: 20px;
    border: 1px solid #d8d8d8;
    background: #f7f7f7;
}

.release-extra-title {
    display: inline-block;
    padding: 10px 16px;
    border-bottom: 1px solid #d8d8d8;
    background: #f1f1f1;
    color: #222;
    font-weight: 700;
}

.release-extra-title--green {
    background: var(--so-accent);
    color: #ffffff;
}

.release-extra-content {
    padding: 15px 18px;
    color: var(--so-text);
    line-height: 1.6;
}

.release-extra-content > div {
    margin-bottom: 4px;
}

.single-title__watch-card {
    margin: 20px 0 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.single-title__watch-head {
    margin: 0 0 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #d7e0ea;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbfe 0%, #eef4f9 100%);
    box-shadow: 0 10px 24px rgba(18, 38, 63, 0.08);
}

.single-title__rating-box {
    min-width: 0;
    justify-self: start;
}

.single-title__watch-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
    position: relative;
    z-index: 5;
    overflow: visible;
}

.single-title__watch-menu {
    position: relative;
    flex: 0 0 auto;
}

.single-title__watch-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
	font-size: 13px;
    border: 1px solid #d8e0e8;
    border-radius: 12px;
    background: #fff;
    color: #2d3748;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    font: inherit;
    line-height: 1;
    transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.single-title__watch-action:hover,
.single-title__watch-action:focus-visible {
    background: #f6fafd;
    border-color: #b8d7f3;
    text-decoration: none;
    outline: none;
}

.single-title__watch-action--menu {
    position: relative;
    padding-right: 24px;
}

.single-title__watch-action--menu::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    width: 8px;
    height: 8px;
    margin-top: -5px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: .7;
    transition: transform .18s ease, margin-top .18s ease, opacity .18s ease;
}

.single-title__watch-menu.is-open .single-title__watch-action--menu::after {
    transform: rotate(-135deg);
    margin-top: -1px;
    opacity: .75;
}

/* Поделиться — светлая */
.single-title__watch-menu--share > .single-title__watch-action--menu {
    background: #eef6ff;
    border-color: #cfe1f6;
    color: #2f76bf;
}

.single-title__watch-menu--share > .single-title__watch-action--menu:hover,
.single-title__watch-menu--share > .single-title__watch-action--menu:focus-visible {
    background: #e6f1fe;
    border-color: #bdd6f1;
    color: #2869ab;
    outline: none;
}

/* Скачать — зелёная */
.single-title__watch-menu--download > .single-title__watch-action--menu {
    background: #2fc8b5;
    border-color: #2fc8b5;
    color: #fff;
    box-shadow: 0 8px 18px rgba(47, 200, 181, 0.18);
}

.single-title__watch-menu--download > .single-title__watch-action--menu:hover,
.single-title__watch-menu--download > .single-title__watch-action--menu:focus-visible {
    background: #28b8a7;
    border-color: #28b8a7;
    color: #fff;
    box-shadow: 0 10px 22px rgba(47, 200, 181, 0.24);
    outline: none;
}

/* Подписаться — обычная светлая, даже если в PHP остался --accent */
.single-title-subscribe-form .single-title__watch-action--accent,
.single-title__watch-actions > a.single-title__watch-action--accent {
    background: #fff;
    border-color: #d8e0e8;
    color: #2d3748;
    box-shadow: none;
}

.single-title-subscribe-form .single-title__watch-action--accent:hover,
.single-title-subscribe-form .single-title__watch-action--accent:focus-visible,
.single-title__watch-actions > a.single-title__watch-action--accent:hover,
.single-title__watch-actions > a.single-title__watch-action--accent:focus-visible {
    background: #f6fafd;
    border-color: #b8d7f3;
    color: #2d3748;
    box-shadow: none;
    outline: none;
}

/* Поповеры — вверх */
.single-title__watch-popover {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    position: absolute;
    top: auto;
    bottom: calc(100% + 8px);
    max-width: none;
    opacity: 0;
    visibility: hidden;
    z-index: 40;
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.single-title__watch-menu--share .single-title__watch-popover {
    left: 0;
    right: auto;
    transform: translateY(6px);
}

.single-title__watch-menu--download .single-title__watch-popover {
    right: 0;
    left: auto;
    transform: translateY(6px);
}

.single-title__watch-menu.is-open .single-title__watch-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
    .single-title__watch-menu:hover .single-title__watch-popover,
    .single-title__watch-menu:focus-within .single-title__watch-popover {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .single-title__watch-menu:hover .single-title__watch-action--menu::after,
    .single-title__watch-menu:focus-within .single-title__watch-action--menu::after {
        transform: rotate(-135deg);
        margin-top: -1px;
        opacity: .75;
    }
}

/* fix watch actions layout */

.single-title__watch-actions {
    flex-wrap: nowrap;
    gap: 8px;
}

.single-title__watch-menu,
.single-title-subscribe-form,
.single-title__watch-actions > a.single-title__watch-action {
    flex: 0 0 auto;
}

.single-title-subscribe-form {
    display: flex;
    align-items: center;
    margin: 0;
}

.single-title-subscribe-form .single-title__watch-action {
    width: auto;
}

@media (max-width: 900px) {
    .single-title__watch-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.single-title__watch-popover {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 6px;
    border: 1px solid #d7e3ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(18, 38, 63, 0.12);
    position: absolute;
    top: auto;
    bottom: calc(100% + 8px);
    max-width: none;
    opacity: 0;
    visibility: hidden;
    z-index: 40;
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.single-title__watch-popover-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 48px;
    flex: 0 0 52px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    color: #28415c;
    text-decoration: none;
    background: transparent;
    box-shadow: none;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.single-title__watch-popover-link::before {
    content: "";
    width: 38px;
    height: 38px;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex: 0 0 auto;
}

.single-title__watch-popover-link--telegram {
    color: #2f76bf;
}

.single-title__watch-popover-link--vk {
    color: #3a6fbe;
}

.single-title__watch-popover-link--boosty {
    color: #dd8a16;
}

.single-title__watch-popover-link--telegram::before {
    background-image: url("../icons/telegram.svg");
	width: 40px;
}

.single-title__watch-popover-link--vk::before {
    background-image: url("../icons/vk.svg");
	width: 40px;
}

.single-title__watch-popover-link--boosty::before {
    background-image: url("../icons/boosty.svg");
	width: 40px;
}

.single-title__watch-popover-link:hover,
.single-title__watch-popover-link:focus-visible {
    text-decoration: none;
    background: #f5f9fe;
    box-shadow: none;
    outline: none;
}

.single-title-subscribe-form {
    margin: 0;
}


/* ===== trailer + review ===== */
.single-title__trailer {
    margin: 12px 0 18px;
    border: 1px solid #d6e6f6;
    border-radius: 18px;
    background: #f3f9ff;
    overflow: hidden;
    transition: background .15s ease, border-color .15s ease;
}

.single-title__trailer:hover {
    background: #eef7ff;
    border-color: #bed8f1;
}

.single-title__trailer-head {
    display: block;
}

.single-title__trailer-toggle {
    width: 100%;
    min-height: 56px;
    padding: 14px 18px;
    border: 0;
    background: transparent;
    color: #2f5f91;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    box-shadow: none;
    appearance: none;
}

.single-title__trailer-toggle:hover {
    background: transparent;
    color: #245d9c;
}

.single-title__trailer-icon {
    display: block;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    object-fit: contain;
}

.single-title__trailer-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .18s ease;
}

.single-title__trailer-toggle[aria-expanded="true"]::after {
    transform: rotate(225deg) translateY(1px);
}

.single-title__trailer-body {
    margin: 0 14px 14px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
    text-align: left;
}

.single-title__trailer-body iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.single-title__video-bubble {
    padding: 0;
}

.single-title__video-bubble:hover {
    background: #f3f9ff;
    border-color: #d6e6f6;
}

.single-title__video-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
}

.single-title__video-actions--count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.single-title__video-bubble .single-title__trailer-head + .single-title__trailer-head {
    border-left: 1px solid #d6e6f6;
}

.single-title__video-bubble .single-title__trailer-toggle {
    border-radius: 0;
}

.single-title__video-bubble .single-title__trailer-toggle:hover,
.single-title__video-bubble .single-title__trailer-toggle[aria-expanded="true"] {
    background: #eef7ff;
    color: #245d9c;
}

.single-title__video-bubble .single-title__trailer-body {
    border-top: 1px solid #d6e6f6;
}

/* ===== player ===== */
.single-title__player {
    position: relative;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 20px;
    background: #000;
}

.single-title__player iframe {
    display: block;
    width: 100%;
    min-height: 600px;
    border: 0;
    background: #000;
}

.single-title__player-shield {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 24px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-align: center;
}

.single-title__player-shield-text {
    display: none;
}

.single-title__player.is-login-required .single-title__player-shield {
    background: rgba(10, 16, 24, .68);
    backdrop-filter: blur(2px);
    cursor: default;
}

.single-title__player.is-login-required .single-title__player-shield-text {
    display: block;
    width: min(500px, 100%);
    box-sizing: border-box;
    padding: 24px 28px;
    border: 1px solid var(--so-border);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0)),
        var(--so-surface);
    color: var(--so-text);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .34);
    font-size: 16px;
    line-height: 1.45;
}

.single-title__player-login-title {
    display: block;
    margin-bottom: 12px;
    color: var(--so-heading);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
}

.single-title__player-login-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.single-title__player-login-actions a,
.single-title__player-login-actions a:link,
.single-title__player-login-actions a:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    box-sizing: border-box;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--so-border);
    background: rgba(255, 255, 255, .08);
    color: var(--so-heading) !important;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.single-title__player-login-actions a:first-child,
.single-title__player-login-actions a:first-child:link,
.single-title__player-login-actions a:first-child:visited {
    background: var(--so-accent);
    border-color: var(--so-accent);
    color: #ffffff !important;
}

.single-title__player-login-actions a:hover,
.single-title__player-login-actions a:focus,
.single-title__player-login-actions a:active {
    text-decoration: none !important;
    transform: translateY(-1px);
}

.single-title__player-login-actions a:first-child:hover,
.single-title__player-login-actions a:first-child:focus,
.single-title__player-login-actions a:first-child:active {
    color: #ffffff !important;
    filter: brightness(1.05);
}

.single-title__player-login-actions a:last-child:hover,
.single-title__player-login-actions a:last-child:focus,
.single-title__player-login-actions a:last-child:active {
    background: rgba(255, 255, 255, .14);
    border-color: var(--so-accent);
    color: var(--so-heading) !important;
}

.single-title__player.is-active .single-title__player-shield {
    display: none;
}

@media (max-width: 760px) {
    .single-title__player {
        width: 100%;
        margin-top: 12px;
        border-radius: 14px;
        overflow: hidden;
        background: #000;
    }

    .single-title__player iframe {
        display: block;
        width: 100%;
        height: auto !important;
        aspect-ratio: 16 / 9;
        min-height: 0;
        border: 0;
    }

    .single-title__player-shield {
        padding: 16px;
    }

    .single-title__player.is-login-required .single-title__player-shield-text {
        padding: 18px 16px;
        font-size: 14px;
    }

    .single-title__player-login-title {
        font-size: 16px;
    }

    .single-title__player-login-actions a,
    .single-title__player-login-actions a:link,
    .single-title__player-login-actions a:visited {
        min-height: 38px;
        padding: 0 14px;
    }
}

.release-tech {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.release-tech__col {
    min-width: 0;
}

.release-tech__heading {
    margin: 0 0 14px;
    color: var(--so-text);
    font-size: 22px;
    line-height: 1.2;
}

.release-tech__col > div {
    margin-bottom: 8px;
}

.so-lightbox[hidden] {
    display: none;
}

.so-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.82);
}

.so-lightbox__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.so-lightbox__close {
    position: absolute;
    top: 14px;
    right: 18px;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.title-share {
    margin: 14px 0 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.title-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #d8e0e8;
    background: #fff;
    color: #2d3748;
    text-decoration: none;
    cursor: pointer;
    transition: .2s ease;
}

.title-share__btn:hover {
    background: #f3f7fa;
}

.title-share__btn--copy {
    font: inherit;
}

@media (max-width: 1220px) {
    .single-title-layout {
        grid-template-columns: 1fr;
    }

    .single-title-sidebar,
    .single-title-sidebar.home-sidebar,
    .single-title-aside {
        width: 100%;
        max-width: none;
    }

    .title-side-meta {
        text-align: left;
    }

    .release-tech {
        grid-template-columns: 1fr;
    }

    .single-title__watch-head {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .single-title__rating-box {
        width: 100%;
        text-align: center;
        justify-self: stretch;
    }

    .single-title__watch-actions {
        width: 100%;
        justify-self: stretch;
        justify-content: center;
        flex-wrap: wrap;
    }
}


@media (max-width: 760px) {
    .page_wrap {
        padding-left: 6px;
        padding-right: 6px;
    }

    .single-title-main {
        padding: 10px;
        border-radius: 16px;
    }

    .release_info {
        grid-template-columns: 1fr;
    }

    .release_poster {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .single-title__watch-actions {
        gap: 8px;
    }

    .single-title__watch-popover {
        top: calc(100% + 8px);
        bottom: auto;
        min-width: 150px;
        max-width: 170px;
    }

    .single-title__watch-menu--share .single-title__watch-popover,
    .single-title__watch-menu--download .single-title__watch-popover {
        left: auto;
        right: 0;
        transform: translateY(6px);
    }

    .single-title__watch-menu.is-open .single-title__watch-popover,
    .single-title__watch-menu:hover .single-title__watch-popover,
    .single-title__watch-menu:focus-within .single-title__watch-popover {
        transform: translateY(0);
    }
}

.home-random-title__body {
    display: block;
    min-width: 0;
}

.single-similar-titles .home-random-title__body {
    grid-column: 2;
    min-width: 0;
}

.single-similar-titles .home-random-title__title,
.single-similar-titles .home-random-title__subtitle,
.single-similar-titles .home-random-title__rating {
    display: block;
}

.home-random-title__title {
    display: block;
    margin: 0 0 6px;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    text-decoration: none;
}

.home-random-title__subtitle {
    margin: 0 0 8px;
    font-size: 14px;
    color: #6b7280;
}

.home-random-title__rating {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    color: #1f3f63;
}

.home-random-title__rating::first-letter {
    font-size: 25px;
    color: #f4c44d;
}

.single-title-sidebar .home-widget,
.single-title-aside .home-widget {
    max-width: 100%;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid #cfd9e3;
    border-radius: 14px;
    background: #f7f9fc;
}

.single-title-sidebar .home-widget__title,
.single-title-aside .home-widget__title {
    max-width: 100%;
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 700;
    color: #1f3f63;
}

.single-title-sidebar .home-promo__buttons,
.single-title-aside .home-promo__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.single-title-sidebar .home-promo__btn,
.single-title-aside .home-promo__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    text-decoration: none;
    color: #1f3f63;
    background: #fff;
    border: 1px solid #cfd9e3;
}

.single-title-sidebar .home-promo__btn--accent,
.single-title-aside .home-promo__btn--accent {
    background: #2fc8b5;
    border-color: #2fc8b5;
    color: #fff;
}

.single-title-sidebar .home-promo__buttons--icons,
.single-title-aside .home-promo__buttons--icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
}

.single-title-sidebar .home-promo__btn--icon,
.single-title-aside .home-promo__btn--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    padding: 0;
    border-radius: 14px;
	border: 1px solid #cfd9e3;
	background: #fff;
    min-width: 0;
    box-sizing: border-box;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.single-title-sidebar .home-promo__btn--icon img,
.single-title-aside .home-promo__btn--icon img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.single-title-sidebar .home-promo__btn--icon:hover,
.single-title-aside .home-promo__btn--icon:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.07);
}

.single-title-sidebar .home-promo__btn--telegram:hover,
.single-title-aside .home-promo__btn--telegram:hover {
    border-color: rgba(34, 158, 217, 0.40);
}

.single-title-sidebar .home-promo__btn--boosty:hover,
.single-title-aside .home-promo__btn--boosty:hover {
    border-color: rgba(255, 122, 26, 0.40);
}

.single-title-sidebar .home-promo__btn--vk:hover,
.single-title-aside .home-promo__btn--vk:hover {
    border-color: rgba(0, 119, 255, 0.40);
}

.single-title-sidebar .home-promo__btn--donationalerts:hover,
.single-title-aside .home-promo__btn--donationalerts:hover {
    border-color: rgba(243, 115, 53, 0.40);
}

.title-meta-box {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #d9e0e7;
    border-radius: var(--so-radius-md);
    background: linear-gradient(180deg, #fbfcfe 0%, #f4f7fa 100%);
}

.title-meta-box__title {
    margin-bottom: 10px;
    color: var(--so-heading);
    font-size: 15px;
    font-weight: 700;
}

.title-meta-box--favorites {
    padding: 10px 12px;
}

.title-favorites {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.title-favorites__chip {
    position: relative;
    display: block;
    width: 100%;
    cursor: pointer;
}

.title-favorites__chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.title-favorites__chip span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #ccd6e0;
    border-radius: 12px;
    background: #ffffff;
    color: #3b4f63;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    transition: .18s ease;
}

.title-favorites__chip:hover span {
    border-color: #7aa7d6;
    color: var(--so-link-hover);
}

.title-favorites__chip input:checked + span {
    background: var(--so-blue);
    border-color: var(--so-blue);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(47, 137, 217, 0.18);
}

.title-favorites__login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--so-blue);
    border: 1px solid var(--so-blue);
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    transition: .18s ease;
}

.title-favorites__login:hover,
.title-favorites__login:focus,
.title-favorites__login:active {
    background: var(--so-blue-dark);
    border-color: var(--so-blue-dark);
    color: #ffffff;
    text-decoration: none;
}

.title-favorites__login:visited {
    color: #ffffff;
    text-decoration: none;
}

.title-favorites__login:visited:hover,
.title-favorites__login:visited:focus,
.title-favorites__login:visited:active {
    color: #ffffff;
}

.single-similar-titles {
    display: grid;
    gap: 10px;
}

.single-similar-titles .home-random-title {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    width: 100%;
    margin: 0;
    padding: 8px;
    box-sizing: border-box;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #dbe3eb;
    box-shadow: 0 2px 10px rgba(18, 38, 63, 0.04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.single-similar-titles .home-random-title:hover {
    transform: translateY(-1px);
    background: #ffffff;
    border-color: #c9d7e4;
    box-shadow: 0 8px 20px rgba(18, 38, 63, 0.08);
}

.single-similar-titles .home-random-title__thumb {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 92px;
    margin: 0;
}

.single-similar-titles .home-random-title__thumb img {
    width: 100%;
    height: 132px;
    object-fit: cover;
    border-radius: 10px;
}

.single-similar-titles .home-random-title__title {
    grid-column: 2;
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.22;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.single-similar-titles .home-random-title__title:hover {
    text-decoration: none;
}

.single-similar-titles .home-random-title,
.single-similar-titles .home-random-title:hover,
.single-similar-titles .home-random-title:focus,
.single-similar-titles .home-random-title:active,
.single-similar-titles .home-random-title:visited,
.single-similar-titles .home-random-title *,
.single-similar-titles .home-random-title:hover *,
.single-similar-titles .home-random-title:focus *,
.single-similar-titles .home-random-title:active * {
    text-decoration: none !important;
}

.single-similar-titles .home-random-title__subtitle {
    grid-column: 2;
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.single-similar-titles .home-random-title__rating {
    grid-column: 2;
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
}

.single-similar-titles .home-random-title__rating::first-letter {
    font-size: 20px;
}



/* ===== 09. Ratings / external links / type chips =====*/
.title-ratings,
.title-source-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.title-ratings {
    margin: 10px 0 12px;
}

.title-source-links {
    margin: 10px 0 12px;
}


.title-ratings__item,
.title-source-links__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: var(--so-radius-pill);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: .18s ease;
}

.title-ratings__item {
    gap: 8px;
    border: 1px solid #d9e0e7;
    background: #f7fafc;
}

.title-ratings__label {
    color: #5d6d7d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
}

.title-ratings__value {
    color: #1f4f7c;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.title-ratings__value:hover {
    color: var(--so-link);
}

.title-source-links__item {
    border: 1px solid #d9e0e7;
    background: #f7fafc;
    color: var(--so-heading);
}

.title-source-links__item:hover {
    background: #ffffff;
    border-color: #7aa7d6;
    color: var(--so-link-hover);
}

.title-source-links__item--imdb {
    background: #fff8d9;
    border-color: #f0d76a;
    color: #5e4b00;
}

.title-source-links__item--mdl {
    background: #eef7ff;
    border-color: #b8d7f3;
    color: #1f5f92;
}

.title-source-links__item--mal {
    background: #eef3ff;
    border-color: #b8c7ef;
    color: #244f9a;
}

.title-user-rating {
    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
}

.single-title__rating-box .title-user-rating {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
    width: auto;
    max-width: 100%;
}

.single-title__rating-box .title-user-rating__stars {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.single-title__rating-box .title-user-rating__summary {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    white-space: nowrap;
    padding-left: 0;
}

.single-title__rating-box .title-user-rating__star {
    width: 36px;
    height: 36px;
}

.single-title__rating-box .title-user-rating__star svg {
    width: 34px;
    height: 34px;
}

.title-user-rating__stars,
.title-user-rating__summary {
    white-space: nowrap;
}

.title-user-rating__stars {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0px;
    transform: none;
    flex-wrap: nowrap;
}

.title-user-rating__star {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    color: #d8dee6;
    cursor: pointer;
    opacity: 0.98;
    transition: color .15s ease, transform .15s ease, filter .15s ease;
}

.title-user-rating__star svg {
    width: 38px;
    height: 38px;
    display: block;
    fill: currentColor;
}

.title-user-rating__star:hover {
    transform: translateY(-1px) scale(1.04);
}

.title-user-rating__star.is-active {
    color: #f4c44d;
    filter: drop-shadow(0 0 6px rgba(244, 196, 77, 0.18));
}

.title-user-rating.has-user-rating .title-user-rating__star.is-user-rating {
    filter:
        drop-shadow(0 0 5px rgba(244, 196, 77, 0.45))
        drop-shadow(0 0 12px rgba(244, 196, 77, 0.22));
}

.title-user-rating.has-user-rating .title-user-rating__star.is-user-rating svg {
    transform: scale(1.08);
}

.title-user-rating__star[data-login-required="1"] {
    cursor: pointer;
}

.title-user-rating__summary {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
}

.title-user-rating__avg {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    color: #3e4a57;
}

.title-user-rating__count {
    color: #8f9aa6;
    font-size: 13px;
    line-height: 1;
}


.title-user-rating__notice {
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    z-index: 200;
    display: inline-block;
    width: max-content;
    min-width: 0;
    max-width: min(420px_ calc(100vw - 32px));
	padding: 14px 14px 10px 14px;
    border-radius: 12px;
    background: #eef6ff;
    border: 1px solid #cfe1f6;
    color: #2f76bf;
    box-shadow: 0 10px 22px rgba(18, 38, 63, 0.12);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
	overflow-wrap: normal;
    opacity: 0;
    visibility: hidden;
	transform: translateY(-4px);
    pointer-events: none;
    transition: opacity .25s ease, visibility .18s ease;
}

.title-user-rating__notice.is-visible {
    opacity: 1;
    visibility: visible;
	transform: translateY(0);
}

@media (max-width: 700px) {
    .single-title__watch-head {
        padding: 10px 8px;
    }

    .single-title__rating-box .title-user-rating {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .single-title__rating-box .title-user-rating__stars {
        max-width: 100%;
        justify-content: center;
        gap: 1px;
    }

    .single-title__rating-box .title-user-rating__star {
        width: 30px;
        height: 30px;
    }

    .single-title__rating-box .title-user-rating__star svg {
        width: 26px;
        height: 26px;
    }

    .single-title__rating-box .title-user-rating__summary {
        justify-content: center;
        padding-left: 0;
    }

    .single-title__rating-box .title-user-rating__avg {
        font-size: 16px;
    }

    .single-title__rating-box .title-user-rating__count {
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .single-title__rating-box .title-user-rating__star {
        width: 28px;
        height: 28px;
    }

    .single-title__rating-box .title-user-rating__star svg {
        width: 24px;
        height: 24px;
    }
}

/*в линию и текстом

.title-source-links-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	margin: 12px 0 0;
	font-size: 15px;
	line-height: 1.4;
}

.title-source-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	white-space: nowrap;
}

.title-source-separator {
	display: inline-block;
	margin: 0 10px;
	opacity: 0.55;
	pointer-events: none;
}

*/

/* ===== 10. Release extra tabs ===== */

.release-extra-tabs {
    margin-top: 20px;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

.release-extra-tabs__nav {
    display: flex;
    gap: 10px;
    padding: 0 0 10px;
    background: transparent;
    border-bottom: 0;
}

.release-extra-tabs__tab {
    appearance: none;
    border: 1px solid #b9c9da;
    background: #fff;
    color: var(--so-heading);
    border-radius: 14px;
    padding: 10px 18px;
    min-height: 42px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
    cursor: pointer;
    transition: .18s ease;
}

.release-extra-tabs__tab:hover {
    border-color: #7aa7d6;
    color: var(--so-link);
    background: #fff;
}

.release-extra-tabs__tab.is-active {
    background: #dfecff;
    border-color: #9cbbe0;
    color: #244e7b;
}

.release-extra-tabs__body {
    padding: 0;
    background: transparent;
}
.release-extra-tabs__panel {
    display: none;
}

.release-extra-tabs__panel.is-active {
    display: block;
}

/* ===== prep ===== */

.release-extra-content--prep {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0 20px;
    align-items: start;
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d8e3ee;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(18, 38, 63, 0.04);
}

.release-extra-content--prep > .release-extra-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 8px 12px;
    align-items: start;
    padding: 10px 0;
    margin: 0;
    border: 0;
    border-top: 1px dashed #dbe5ef;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    line-height: 1.4;
    color: var(--so-text);
}

.release-extra-content--prep > .release-extra-row:first-child {
    grid-column: 1 / -1;
    border-top: 0;
    padding-top: 0;
    padding-bottom: 6px;
}

.release-extra-content--prep > .release-extra-row b {
    display: block;
    color: var(--so-heading);
    font-weight: 700;
}

.release-extra-row__value {
    min-width: 0;
    line-height: 1.5;
    overflow-wrap: break-word;
}

.release-extra-row__value a {
    display: inline;
    white-space: normal;
    word-break: normal;
}

/* ===== tech ===== */

.release-tech {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 8px;
    padding: 0;
}

.release-tech__col {
    display: block;
    padding: 14px 16px;
    border: 1px solid #d8e3ee;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(18, 38, 63, 0.04);
}

.release-tech__heading {
    margin: 0 0 8px;
    padding-bottom: 0;
    border-bottom: 0;
    color: var(--so-heading);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.release-tech__col .release-extra-row {
    padding: 7px 0;
    border: 0;
    border-top: 1px dashed #e4ebf2;
    border-radius: 0;
    background: none;
    box-shadow: none;
    line-height: 1.35;
}

.release-tech__col .release-extra-row:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.release-tech__col .release-extra-row:last-child {
    padding-bottom: 0;
}

/* ===== responsive ===== */
@media (max-width: 640px) {
    .release-extra-tabs__body {
        padding: 0px;
    }

    .release-extra-content--prep {
        grid-template-columns: 1fr;
        padding: 12px 14px;
    }

    .release-extra-content--prep > .release-extra-row {
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 6px 10px;
        padding: 10px 0;
    }

    .release-extra-content--prep > .release-extra-row:first-child {
        grid-column: auto;
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 6px 10px;
        padding-bottom: 8px;
    }

    .release-tech {
        padding: 0;
    }

    .release-tech__col {
        padding: 12px 14px;
    }

    .release-tech__heading {
        margin-bottom: 8px;
        font-size: 17px;
    }

    .release-tech__col .release-extra-row {
        padding: 6px 0;
    }
}

@media (max-width: 420px) {
    .release-extra-content--prep > .release-extra-row,
    .release-extra-content--prep > .release-extra-row:first-child {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}




/* ===== description tab + separate favorites bubble ===== */
.release-extra-tabs__nav {
    flex-wrap: wrap;
}

.release-extra-content--description {
    padding: 14px 18px;
    border: 1px solid #d8e3ee;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(18, 38, 63, 0.04);
    color: var(--so-text);
    line-height: 1.6;
}

.release-extra-content--description > :first-child {
    margin-top: 0;
}

.release-extra-content--description > :last-child {
    margin-bottom: 0;
}

/* ===== single title top grid: tabs raised, but attached to content ===== */

.single-title-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    column-gap: 36px;
    row-gap: 0;
    align-items: start;
}

.single-title-top > .release_info {
    display: contents;
}

.single-title-top .release_title_block {
    grid-column: 1;
    grid-row: 1;
}

.single-title-top .release_poster {
    grid-column: 2;
    grid-row: 1 / span 2;
    padding-bottom: 16px;
}

.single-title-top > .release-extra-tabs {
    display: contents;
    margin-top: 0;
}

.single-title-top .release-extra-tabs__nav {
    grid-column: 1;
    grid-row: 2;
    align-self: end;

    margin: 30px 0 0;
    padding: 0 0 6px;

    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.single-title-top .release-extra-tabs__body {
    grid-column: 1 / -1;
    grid-row: 3;
}

/* mobile: обычный поток */
@media (max-width: 760px) {
    .single-title-top {
        display: block;
    }

    .single-title-top > .release_info {
        display: grid;
    }

    .single-title-top > .release-extra-tabs {
        display: block;
        margin-top: 20px;
    }

    .single-title-top .release_title_block,
    .single-title-top .release_poster,
    .single-title-top .release-extra-tabs__nav,
    .single-title-top .release-extra-tabs__body {
        grid-column: auto;
        grid-row: auto;
        padding-bottom: 0;
    }

    .single-title-top .release-extra-tabs__nav {
        margin: 0;
        padding: 0 0 10px;
    }
}