/* BASIC LAYOUT
----------------------------------------------- */
html {
	overflow-x: hidden;
	scrollbar-gutter: stable;
}
body {position: relative; overflow-x: hidden;}
.fredc {min-width: 0; width: 100%; overflow: visible;}
.fredc__container {max-width: var(--max-width); width: 100%; margin: 0 auto; position: relative; z-index: 20;}
.fredc__container--main {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: transparent;
	box-shadow: none;
	border-radius: 0;
}
.sdud {
	flex-shrink: 0;
	align-self: stretch;
	width: 100%;
	max-width: none;
	padding: 12px var(--indent);
	position: sticky;
	z-index: 100;
	left: 0;
	top: 10px;
	margin: 12px 0 14px;
	border-radius: var(--radius-lg);
	background: rgba(var(--bg-rgb), 0.82);
	backdrop-filter: blur(20px) saturate(1.3);
	-webkit-backdrop-filter: blur(20px) saturate(1.3);
	outline: 1px solid rgba(var(--bdc-rgb), 0.34);
	border-bottom: none;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.55) inset,
		var(--bsh-block),
		0 14px 40px rgba(15, 23, 42, 0.08);
	transition: transform 0.35s var(--ease-out), background-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), outline-color 0.35s var(--ease-out);
	box-sizing: border-box;
	overflow: visible;
}

.dt .sdud {
	background: rgba(var(--bg-rgb), 0.78);
	outline-color: rgba(255, 255, 255, 0.1);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.06) inset,
		0 0 0 1px rgba(0, 0, 0, 0.35),
		0 14px 40px rgba(0, 0, 0, 0.34),
		0 28px 52px -18px rgba(0, 0, 0, 0.4);
}

.sdud__inner {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: visible;
}

.sdud__row {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.sdud__row--top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px 16px;
    padding-bottom: 10px;
}

.sdud__top-spacer {
    min-width: 0;
}

.sdud__row--top .sdud__brand {
    justify-self: center;
    grid-column: 2;
}

.sdud__row--top .sdud__actions {
    justify-self: end;
    grid-column: 3;
    margin-left: 0;
    padding-left: 0;
}

.sdud__row--nav {
    margin: 0 calc(-1 * var(--indent));
    padding: 0 var(--indent);
    border-top: 1px solid rgba(var(--bdc-rgb), 0.28);
    overflow: visible;
    position: relative;
    z-index: 2;
}

.dt .sdud__row--nav {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.sdud__catnav {
    width: 100%;
    min-width: 0;
    overflow: visible;
}

.sdud__catnav-scroll {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sdud__catnav-scroll::-webkit-scrollbar {
    display: none;
}

.sdud__catnav-list {
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 0;
    flex-wrap: nowrap !important;
    overflow: visible;
    justify-content: center;
}

.sdud__catnav-list::-webkit-scrollbar {
    display: none;
}

.sdud__catnav-item {
    position: relative;
    flex: 0 0 auto;
}

.sdud__catnav-item--drop:hover,
.sdud__catnav-item--drop.is-open {
    z-index: 5;
}

.sdud__catnav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 46px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: rgba(var(--tt-rgb), 0.72);
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.sdud__catnav-item--drop > .sdud__catnav-link::after {
    content: "\f078";
    font-family: "Font Awesome 5 Pro";
    font-weight: 300;
    font-size: 10px;
    opacity: 0.55;
    transition: transform 0.2s ease;
}

.sdud__catnav-link:hover,
.sdud__catnav-item:hover > .sdud__catnav-link,
.sdud__catnav-item.is-open > .sdud__catnav-link {
    color: var(--tt);
    background: rgba(var(--accent-rgb), 0.08);
}

.sdud__catnav-item:hover > .sdud__catnav-link::after,
.sdud__catnav-item.is-open > .sdud__catnav-link::after {
    transform: rotate(180deg);
}

.sdud__catnav-panel {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 250;
    min-width: min(720px, calc(100vw - 48px));
    padding-top: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.sdud__catnav-panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
}

.sdud__catnav-item--drop:nth-last-child(-n+2) .sdud__catnav-panel {
    left: auto;
    right: 0;
}

.sdud__catnav-item--drop:hover > .sdud__catnav-panel,
.sdud__catnav-item--drop.is-open > .sdud__catnav-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.sdud__catnav-panel-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 18px 24px;
    padding: 18px 20px;
    border-radius: 0 0 14px 14px;
    background: var(--bg-darker);
    border: 1px solid rgba(var(--bdc-rgb), 0.42);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.dt .sdud__catnav-panel-inner {
    background: var(--bg-darker);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.sdud__catnav-group-title {
    display: block;
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(var(--tt-rgb), 0.48);
}

.sdud__catnav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sdud__catnav-links--genres {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr));
    gap: 6px;
}

.sdud__catnav-links--years {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 6px;
}

.sdud__catnav-panel .catnav__link {
    padding: 7px 11px;
    font-size: 13px;
}

.sdud__catnav-all {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    padding-top: 12px;
    border-top: 1px solid rgba(var(--bdc-rgb), 0.24);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

.sdud__catnav-all:hover {
    color: var(--accent-dark);
}

.dt .sdud__catnav-link {
    color: rgba(var(--tt-rgb), 0.68);
}

.dt .sdud__catnav-link:hover,
.dt .sdud__catnav-item:hover > .sdud__catnav-link,
.dt .sdud__catnav-item.is-open > .sdud__catnav-link {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

@media (min-width: 761px) {
    .sdud__catnav-scroll {
        overflow: visible;
    }
}

@media (max-width: 760px) {
    .sdud__catnav-list {
        justify-content: flex-start;
    }
}

.sdud__search {
    min-width: 0;
    position: relative;
}

.flex-grow-1 {flex: 1 1 0; max-width: 100%; min-width: 50px;}

.toasts {
	position: fixed;
	top: max(16px, env(safe-area-inset-top, 0px));
	right: max(12px, env(safe-area-inset-right, 0px));
	z-index: 10050;
	display: grid;
	gap: 12px;
	width: min(380px, calc(100vw - 24px));
	pointer-events: none;
}

.toast {
	--toast-accent: var(--accent);
	--toast-accent-rgb: var(--accent-rgb);
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
	max-width: 100%;
	padding: 14px 14px 18px;
	border-radius: var(--radius-lg, 14px);
	overflow: hidden;
	color: var(--tt);
	font-family: var(--font-body, 'Onest', system-ui, sans-serif);
	background: rgba(var(--bg-rgb), 0.94);
	border: 1px solid rgba(var(--bdc-rgb), 0.42);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.55) inset,
		var(--bsh-block),
		0 16px 36px rgba(15, 23, 42, 0.12);
	-webkit-backdrop-filter: blur(18px) saturate(1.25);
	backdrop-filter: blur(18px) saturate(1.25);
	pointer-events: auto;
	animation: toastIn 0.38s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.toast__icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	font-size: 16px;
	line-height: 1;
	color: var(--toast-accent);
	background: rgba(var(--toast-accent-rgb), 0.12);
	border: 1px solid rgba(var(--toast-accent-rgb), 0.2);
}

.toast__descr {
	min-width: 0;
	padding-top: 1px;
}

.toast__title {
	margin: 0 0 4px;
	font-size: var(--qapo-fs-sm, 14px);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: var(--tt);
}

.toast__text {
	margin: 0;
	font-size: var(--qapo-fs-ui, 13px);
	font-weight: 400;
	line-height: 1.45;
	color: rgba(var(--tt-rgb), 0.78);
}

.toast__close {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	margin: -2px -2px 0 0;
	padding: 0;
	border: none;
	border-radius: 8px;
	display: grid;
	place-items: center;
	font-size: 14px;
	line-height: 1;
	color: rgba(var(--tt-rgb), 0.52);
	background: rgba(var(--bdc-rgb), 0.16);
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.toast__close:hover {
	color: var(--tt);
	background: rgba(var(--bdc-rgb), 0.28);
}

.toast__close:focus-visible {
	outline: 2px solid rgba(var(--accent-rgb), 0.75);
	outline-offset: 2px;
}

.toast::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, var(--toast-accent), rgba(var(--toast-accent-rgb), 0.55));
	transform-origin: left center;
	animation: toastProgress var(--toast-timer) linear forwards;
}

.toast--info {
	--toast-accent: var(--accent);
	--toast-accent-rgb: var(--accent-rgb);
}

.toast--success {
	--toast-accent: var(--green);
	--toast-accent-rgb: var(--green-rgb);
}

.toast--warning {
	--toast-accent: var(--yellow, #E8B35A);
	--toast-accent-rgb: 232, 179, 90;
}

.toast--error {
	--toast-accent: var(--red);
	--toast-accent-rgb: var(--red-rgb);
}

.toast--is-hiding {
	animation: toastOut 0.32s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.dt .toast {
	color: rgba(var(--tt-rgb), 0.96);
	background: rgba(var(--bg-rgb), 0.9);
	border-color: rgba(255, 255, 255, 0.1);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.06) inset,
		0 0 0 1px rgba(0, 0, 0, 0.32),
		0 16px 40px rgba(0, 0, 0, 0.42);
}

.dt .toast__title {
	color: rgba(var(--tt-rgb), 0.96);
}

.dt .toast__text {
	color: rgba(var(--tt-rgb), 0.72);
}

.dt .toast__close {
	color: rgba(var(--tt-rgb), 0.58);
	background: rgba(255, 255, 255, 0.08);
}

.dt .toast__close:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 767px) {
	.toasts {
		top: auto;
		bottom: max(14px, env(safe-area-inset-bottom, 0px));
		right: 50%;
		transform: translateX(50%);
		width: min(420px, calc(100vw - 20px));
	}

	.toast {
		padding: 13px 13px 17px;
		border-radius: 12px;
	}
}

@keyframes toastProgress {
	from {
		transform: scaleX(1);
	}
	to {
		transform: scaleX(0);
	}
}

@keyframes toastIn {
	from {
		opacity: 0;
		transform: translate3d(18px, 0, 0) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0) scale(1);
	}
}

@keyframes toastOut {
	from {
		opacity: 1;
		transform: translate3d(0, 0, 0) scale(1);
	}
	to {
		opacity: 0;
		transform: translate3d(14px, 0, 0) scale(0.98);
	}
}

@media (max-width: 767px) {
	@keyframes toastIn {
		from {
			opacity: 0;
			transform: translate3d(0, 14px, 0) scale(0.98);
		}
		to {
			opacity: 1;
			transform: translate3d(0, 0, 0) scale(1);
		}
	}

	@keyframes toastOut {
		from {
			opacity: 1;
			transform: translate3d(0, 0, 0) scale(1);
		}
		to {
			opacity: 0;
			transform: translate3d(0, 10px, 0) scale(0.98);
		}
	}
}

/* Десктоп и планшет: поиск — иконка, поле появляется ниже только по клику */
@media screen and (min-width: 761px) {
    .sdud__search.search-block {
        flex: 0 0 auto;
        min-width: 0;
    }

    .search-block__header-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        font-size: 18px;
        color: var(--accent);
        border-radius: 10px;
        flex-shrink: 0;
    }

    .search-block__header-toggle:hover,
    .sdud__search.is-search-open .search-block__header-toggle {
        background: rgba(var(--accent-rgb), 0.1);
    }

    .search-block__backdrop,
    .search-block__surface-close {
        display: none;
    }

    .search-block__surface {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: auto;
        transform: translateY(-6px);
        width: min(480px, calc(100vw - 48px));
        max-width: calc(100vw - 48px);
        padding: 12px;
        box-sizing: border-box;
        z-index: 130;
        background: var(--bg-darker);
        border: 1px solid rgba(var(--bdc-rgb), 0.45);
        border-radius: 14px;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    }

    .sdud__search.is-search-open .search-block__surface {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .search-block__surface .search-block__form {
        flex: 1 1 0;
        min-width: 0;
    }

    .search-block__surface .search-block__input {
        width: 100%;
        min-width: 0;
    }
}

@media screen and (min-width: 1221px) {
    .sdud__actions .sdud__search.search-block {
        margin-left: 4px;
    }
}

.sdud__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    flex-shrink: 0;
    padding-left: 16px;
}

.dt .sdud__actions {
    border-left-color: rgba(255, 255, 255, 0.1);
}

.sdud__user-rail {
    display: flex;
    align-items: center;
}

.sdud__tools {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 12px;
    margin-left: 2px;
    border-left: 1px solid rgba(var(--bdc-rgb), 0.28);
}

.dt .sdud__tools {
    border-left-color: rgba(255, 255, 255, 0.08);
}

.sdud__theme-slot {
    display: flex;
    align-items: center;
}

.sdud__theme-select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    min-height: 36px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tt);
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.22);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    cursor: pointer;
}

.sdud__theme-select:hover {
    background: rgba(var(--accent-rgb), 0.15);
    border-color: rgba(var(--accent-rgb), 0.38);
    transform: translateY(-1px);
}

.dt .sdud__theme-select {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--tt);
}

.dt .sdud__theme-select:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sdud__theme-ico {
    font-size: 16px;
    width: 1.1em;
    text-align: center;
    color: var(--yellow);
}

.dt .sdud__theme-ico {
    color: #fde68a;
}

.sdud__theme-label {
    white-space: nowrap;
}

@media screen and (max-width: 1220px) {
    .sdud .sdud__theme-label {
        display: none;
    }

    .sdud__theme-select {
        padding: 8px 10px;
    }
}

@media screen and (max-width: 760px) {
    .sdud .sdud__theme-slot {
        display: none !important;
    }

    .sdud .sdud__acatalog {
        display: none !important;
    }
}

/* Буквенный каталог в шапке */
.sdud__acatalog.acatalog-block {
    position: relative;
    flex: 0 0 auto;
}

.acatalog-block__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 18px;
    color: var(--accent);
    border-radius: 10px;
    flex-shrink: 0;
}

.acatalog-block__toggle:hover,
.sdud__acatalog.is-acatalog-open .acatalog-block__toggle {
    background: rgba(var(--accent-rgb), 0.1);
}

.acatalog-block__backdrop {
    display: none;
}

.acatalog-block__surface {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    transform: translateY(-6px);
    width: min(720px, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
    max-height: min(70vh, 640px);
    overflow: auto;
    padding: 14px;
    box-sizing: border-box;
    z-index: 140;
    background: var(--bg-darker);
    border: 1px solid rgba(var(--bdc-rgb), 0.45);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.dt .acatalog-block__surface {
    background: var(--bg-darker);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.sdud__acatalog.is-acatalog-open .acatalog-block__surface {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.acatalog-block__surface-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.acatalog-block__title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--tt);
}

.acatalog-block__close {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: rgba(var(--tt-rgb), 0.65);
    border-radius: 8px;
}

.acatalog-block__close:hover {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
}

.acatalog-block__surface .ajax-catalog,
.acatalog-block__surface .ac-wrap {
    margin: 0;
    width: 100%;
}

.acatalog-block__surface .ac-toolbar {
    margin-bottom: 10px;
}

.acatalog-block__surface .ac-catalog li a {
    min-height: 40px;
}

/* Буквенный каталог в бургер-меню не показываем */
.mobile-menu__acatalog {
    display: none !important;
}

.mobile-menu__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 18px 24px;
}

.mobile-menu__profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(var(--accent-rgb), 0.09);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.mobile-menu__user-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.mobile-menu__user-stack .mobile-menu__profile {
    margin: 0;
}

.mobile-menu__user-stack .sdud__theme-slot {
    margin: 0;
}

.mobile-menu__profile-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(var(--tt-rgb), 0.55);
}

.mobile-menu__profile .sdud__ava {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    margin-left: auto;
}

.mobile-menu__quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-bottom: 4px;
    margin-top: -4px;
}

.mobile-menu__quick .sdud__btns {
    width: 100%;
    justify-content: center;
}

.mobile-menu__content .sdud__menu,
.mobile-menu__content .mobile-menu__catnav {
    margin: 0;
    padding: 4px 0 8px;
    border-top: 1px solid rgba(var(--bdc-rgb), 0.35);
    border-bottom: 1px solid rgba(var(--bdc-rgb), 0.35);
}

.mobile-menu__content .sdud__catnav-list {
    display: block;
    overflow: visible;
}

.mobile-menu__content .sdud__catnav-item {
    border-bottom: 1px solid rgba(var(--bdc-rgb), 0.18);
}

.mobile-menu__content .sdud__catnav-item:last-child {
    border-bottom: none;
}

.mobile-menu__content .sdud__catnav-link {
    display: flex;
    align-items: center;
    height: auto;
    min-height: 46px;
    padding: 12px 0;
    background: none !important;
}

.mobile-menu__content .sdud__catnav-item--drop > .sdud__catnav-link::after {
    margin-left: auto;
}

.mobile-menu__content .sdud__catnav-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    padding: 0 0 12px;
    min-width: 0;
    display: none;
}

.mobile-menu__content .sdud__catnav-item.is-open > .sdud__catnav-panel {
    display: block;
}

.mobile-menu__content .sdud__catnav-panel-inner {
    display: block;
    padding: 0 0 4px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.mobile-menu__content .sdud__catnav-group + .sdud__catnav-group {
    margin-top: 12px;
}

.mobile-menu__content .sdud__catnav-links--genres {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-menu__content .sdud__catnav-all {
    margin-top: 10px;
    padding-top: 10px;
}

.mobile-menu__content > .sdud__menu:first-child,
.mobile-menu__content > .mobile-menu__catnav:first-child {
    border-top: 0;
    padding-top: 0;
}

.mobile-menu__content .sdud__search {
    width: 100%;
    margin: 0;
}

.mobile-menu__content .search-block__header-toggle,
.mobile-menu__content .search-block__backdrop,
.mobile-menu__content .search-block__surface-close {
    display: none !important;
}

.mobile-menu__content .search-block__surface {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    display: block !important;
}

.mobile-menu__content .sdud__theme-slot {
    display: flex !important;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}

.mobile-menu__content .sdud__theme-select {
    width: 100%;
    justify-content: center;
}

.mobile-menu__content .sdud__btn-login {
    width: 100%;
    justify-content: center;
    height: 44px;
    margin: 0;
}

.dt .mobile-menu__profile {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.dt .mobile-menu__content .sdud__menu {
    border-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu__brand {
    margin-right: auto;
    min-width: 0;
    flex: 1 1 auto;
}

.mobile-menu__brand .sdud__logo-inner {
    max-width: 100%;
}

.mobile-menu__brand .sdud__tagline {
    font-size: 12px;
}

.mobile-menu__header {
    width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap;
    gap: 12px;
}

.sdud-is-sticky .sdud {
	translate: 0 calc(-100% - 24px);
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.sdud-is-sticky .sdud {
		translate: none;
		pointer-events: auto;
	}
}
.taskir:not(.float-surface) {
	background-color: var(--bg-blackest);
	margin: 0;
	padding: 20px var(--indent);
	border-top: 1px solid rgba(var(--accent-rgb), 0.14);
	border-bottom: 1px solid rgba(0, 0, 0, 0.35);
	box-shadow: none;
	width: 100%;
	box-sizing: border-box;
}
.taskir--lastviewed:not(.float-surface) {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.glv {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	gap: 16px;
	padding: 0;
	background: transparent;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.gribs {
	flex-shrink: 0;
	padding: 28px var(--indent) 18px;
	background: linear-gradient(180deg, var(--bg-black) 0%, #050608 100%);
	color: var(--tt-fade);
	--tt: #f1f5f9;
	--tt-fade: #94a3b8;
	--bdc: rgba(255,255,255,0.1);
	content-visibility: auto;
	contain-intrinsic-size: auto 220px;
}
.gribs__two {border-top: 1px solid var(--bdc); padding-top: 24px; margin-top: 36px; opacity: 0.95;}
.glv:has(.descr), .glv:has(.qapo__related), .glv:has(.taskir--lastviewed) {padding-bottom: 0;}

/* Без бокового padding у .glv — все блоки на ширину контейнера, без breakout */
.glv > * {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.glv > .taskir.float-surface,
.glv > .taskir.float-surface.float-surface--dark,
.glv > .nuks.float-surface,
.glv > .glv-fallback-grid.float-surface,
.glv > .descr,
.glv > .glv-cols,
.glv > .catnav.float-surface,
.glv > .showfull-wrap {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Fullstory внутри колонок — без отрицательных отступов */
.glv .showfull-wrap > article.qapo,
.glv .showfull-wrap > article.nws-post {
	margin-inline: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
}

/* FLOATING PANELS (общие «парящие» поверхности: главная, каталог, футер)
----------------------------------------------- */
.float-surface {
	position: relative;
	z-index: 1;
	border-radius: var(--radius-lg);
	background: var(--bg);
	outline: 1px solid rgba(var(--bdc-rgb), 0.38);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.55) inset,
		var(--bsh-block),
		0 18px 44px rgba(15, 23, 42, 0.07);
	box-sizing: border-box;
}
.dt .float-surface {
	z-index: 1;
	background: var(--bg-darker);
	outline-color: rgba(255, 255, 255, 0.08);
	box-shadow:
		0 0 0 1px rgba(0, 0, 0, 0.32),
		0 14px 40px rgba(0, 0, 0, 0.34),
		0 28px 56px -20px rgba(0, 0, 0, 0.42);
}
.float-surface--dark {
	background: linear-gradient(165deg, #141824 0%, #0c0e14 45%, #080a0f 100%);
	color: var(--tt-fade);
	--tt: #f1f5f9;
	--tt-fade: #94a3b8;
	--bdc: rgba(255, 255, 255, 0.1);
	outline-color: rgba(255, 255, 255, 0.09);
	box-shadow:
		0 0 0 1px rgba(0, 0, 0, 0.45),
		0 16px 42px rgba(0, 0, 0, 0.4),
		0 36px 64px -22px rgba(0, 0, 0, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.dt .float-surface--dark {
	box-shadow:
		0 0 0 1px rgba(0, 0, 0, 0.5),
		0 18px 48px rgba(0, 0, 0, 0.48),
		inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.nuks.float-surface {
	margin-left: 0;
	margin-right: 0;
	padding: 22px var(--indent) 26px;
	margin-bottom: 20px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.nuks.float-surface:not(:last-child) {
	margin-bottom: 20px;
}

/* Остальные разделы (поиск, статика и т.д.): та же сетка отступов, что у nuks */
.glv-fallback-grid.float-surface {
	margin-left: 0;
	margin-right: 0;
	padding: 22px var(--indent) 26px;
	margin-bottom: 20px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* Карусель taskir + float-surface + float-surface--dark: в светлой теме как карточки nuks; в .dt — тёмная полоса */
.taskir.float-surface.float-surface--dark {
	/* Иначе .float-surface--dark оставляет --tt светлым: .lodyt__title и др. с var(--tt) читаются как белые на светлом фоне */
	--tt: #1a1f2e;
	--tt-rgb: 26, 31, 46;
	--tt-fade: #5c6578;
	--tt-fade-0: #3d4556;
	--bdc-rgb: 203, 213, 225;
	margin-left: 0;
	margin-right: 0;
	padding: 20px var(--indent) 20px;
	border: none;
	border-radius: var(--radius-lg);
	background: var(--bg);
	color: rgba(var(--tt-rgb), 0.82);
	outline: 1px solid rgba(var(--bdc-rgb), 0.38);
	box-shadow: none;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
}

.dt .taskir.float-surface.float-surface--dark {
	--tt: #e4e7ef;
	--tt-rgb: 228, 231, 239;
	--tt-fade: #94a3b8;
	--tt-fade-0: #cbd5e1;
	--bdc-rgb: 71, 85, 105;
	background: linear-gradient(165deg, #12151f 0%, #0b0d14 48%, #060708 100%);
	color: rgba(var(--tt-rgb), 0.88);
	outline-color: rgba(255, 255, 255, 0.1);
	box-shadow: none;
}

.glv > .taskir.float-surface.float-surface--dark {
	margin-top: 0;
	margin-bottom: 0;
}

.taskir--lastviewed.float-surface.float-surface--dark {
	margin-top: 20px !important;
	margin-bottom: 0 !important;
}

.taskir.float-surface:not(.float-surface--dark) {
	border: none;
	border-radius: var(--radius-lg);
}
footer.gribs.float-surface {
	position: relative;
	z-index: 1;
	margin: 22px 0 0;
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	border-radius: var(--radius-lg);
	box-sizing: border-box;
}
footer.gribs.float-surface.float-surface--dark {
	--tt-rgb: 241, 245, 249;
	background: linear-gradient(180deg, var(--bg-black) 0%, #050608 100%);
	outline-color: rgba(255, 255, 255, 0.1);
}

.lt footer.gribs.float-surface.float-surface--dark {
	--tt: #1a1f2e;
	--tt-rgb: 26, 31, 46;
	--tt-fade: #5c6578;
	background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg) 100%);
	outline-color: rgba(var(--bdc-rgb), 0.38);
	color: var(--tt-fade);
	box-shadow: var(--bsh-block);
}

.lt footer.gribs.float-surface.float-surface--dark .gribs__logo-link,
.lt footer.gribs.float-surface.float-surface--dark .gribs__col-all {
	color: var(--tt);
}

.lt footer.gribs.float-surface.float-surface--dark .gribs__col-title {
	color: var(--accent-play);
}

/* Footer: компактная сетка */
.gribs--redesign {
	contain-intrinsic-size: auto 220px;
}
.gribs__inner {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
	min-width: 0;
}
.gribs__main {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px 32px;
}
.gribs__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	min-width: 0;
	max-width: min(100%, 320px);
}
.gribs__logo-link {
	align-self: flex-start;
	text-decoration: none;
	color: inherit;
	height: auto;
	min-height: 0;
	padding-left: 0;
	font-family: var(--font-logo);
	font-size: 20px;
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

footer.gribs .gribs__logo-link.logo {
	padding-left: 0;
	height: auto;
	min-height: 0;
}

footer.gribs .gribs__logo-link.logo::before {
	display: none;
}
.gribs__logo-link:hover {
	opacity: 0.88;
}
.gribs__logo-link span,
.gribs__logo-link .sdud__logo-accent {
	color: var(--accent-play);
}
.gribs__catalog {
	display: grid;
	grid-template-columns: repeat(2, minmax(140px, 1fr));
	gap: 8px 28px;
	align-items: start;
	flex: 1 1 280px;
	max-width: min(100%, 420px);
}
.gribs__col-title {
	margin: 0 0 6px;
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--accent-play);
	opacity: 1;
}
.gribs__col-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 13px;
	line-height: 1.35;
}
.gribs__col-all {
	display: inline-flex;
	align-items: center;
	min-height: 0;
	padding: 3px 0;
	font-weight: 500;
	color: rgba(var(--tt-rgb), 0.78);
	text-decoration: none;
	margin-bottom: 0;
	transition: opacity 0.2s ease, color 0.2s ease;
}
.gribs__col-all:hover {
	opacity: 1;
	color: var(--accent-play);
}
.gribs__f-link {
	color: rgba(var(--tt-rgb), 0.78);
	text-decoration: none;
	transition: color 0.2s ease;
}
.gribs__f-link:hover {
	color: var(--accent);
}
.gribs__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	padding-top: 12px;
	border-top: 1px solid var(--bdc);
	margin-top: 0;
	opacity: 0.96;
}

/* Без верхнего бренд-баннера (bg.jpg): псевдоэлементы отключены */
.fredc::before,
.fredc::after {
	content: none;
	display: none;
}

/* Холст страницы — один градиент на всю высоту; между парящими блоками нет «второй плиты» */
body.lt {
	min-height: 100vh;
	background:
		radial-gradient(ellipse 125% 72% at 50% -12%, rgba(var(--accent-play-rgb), 0.12), transparent 56%),
		radial-gradient(ellipse 50% 40% at 0% 35%, rgba(var(--accent-link-rgb), 0.06), transparent 52%),
		linear-gradient(168deg, #F2F0EB 0%, #E8E5DE 38%, #DDD9D0 100%);
}

body.dt {
	min-height: 100vh;
	background:
		radial-gradient(ellipse 120% 78% at 50% -18%, rgba(var(--accent-play-rgb), 0.1), transparent 58%),
		radial-gradient(ellipse 48% 42% at 102% 22%, rgba(var(--accent-play-rgb), 0.05), transparent 48%),
		linear-gradient(180deg, #0A0D12 0%, #060910 45%, #030406 100%);
}

.lt .fredc,
.dt .fredc {
	background: transparent;
	min-height: 100vh;
}

html:has(body.lt) {
	background: #DDD9D0;
}

html:has(body.dt) {
	background: #030406;
}

.scrolltop {position: fixed; width: 44px; height: 44px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); padding: 0;
	z-index: 990; border-radius: 12px; font-size: 18px; opacity: 0; scale: 0 0;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);}
.scrolltop.is-active {scale: 1 1; opacity: 1;}

body:has(.qapo__watch-sticky.is-visible) .scrolltop.is-active {
	bottom: calc(78px + env(safe-area-inset-bottom, 0px));
}
.overlay {position: fixed; z-index: 998; left: 0; top: 0; width: 100%; height: 100%; 
	opacity: 1; background-color: rgba(10, 12, 18, 0.55); backdrop-filter: blur(10px); 
	-webkit-backdrop-filter: blur(10px); cursor: pointer; display: none;}


/* HEADER, TOPMENU, CAROU
----------------------------------------------- */
.logo {
    display: flex; 
    align-items: center; 
    font-family: var(--font-logo); 
    font-weight: 400; 
    color: var(--tt);
    padding-left: 50px; 
    text-transform: uppercase; 
    position: relative; 
    font-size: 22px; 
    height: 40px; 
    letter-spacing: 0.04em;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo::before {
    content: ''; 
    width: 40px; 
    height: 40px; 
    position: absolute; 
    left: 0; 
    top: 50%; 
    background: url(../images/logo.svg) 0 center / contain no-repeat; 
    translate: 0 -50%;
    transition: transform 0.3s ease;
}

.logo:hover::before {
    transform: scale(1.05);
}

.lt .sdud__logo {
    --tt: #0f172a;
}

.sdud__brand {
    flex-shrink: 0;
    width: fit-content;
    max-width: min(100%, 320px);
}

.sdud__row--top .sdud__logo .sdud__logo-inner {
    align-items: center;
    text-align: center;
    padding-left: 50px;
}

.sdud__logo.logo {
    display: block;
    height: auto;
    min-height: 40px;
    padding-left: 0;
}

.sdud__logo .sdud__logo-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    padding-left: 50px;
    min-height: 40px;
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
}

.sdud__logo-title {
    display: block;
    white-space: nowrap;
    line-height: 1.1;
    font-family: var(--font-logo);
    font-weight: 400;
    text-transform: uppercase;
}

.sdud__logo-accent {
    color: var(--accent-play);
    font-weight: 400;
}

.sdud__logo .sdud__tagline {
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    color: var(--tt-fade);
    font-family: var(--font-body);
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dt .sdud__logo .sdud__tagline {
    color: rgba(var(--tt-rgb), 0.45);
}

.logo:has(img) {
    background: none; 
    min-width: 200px;
}

.logo:has(img)::before {
    display: none;
}

.logo img {
    display: block; 
    position: absolute; 
    left: 0; 
    top: 50%; 
    translate: 0 -50%; 
    max-height: 100%;
    transition: all 0.3s ease;
}

.logo:has(img):hover img {
    transform: scale(1.05);
}

.sdud__btn-login {
    flex-shrink: 0;
    height: 34px; 
    padding: 0 20px;
    margin-left: 2px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.25);
}

.sdud__btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.35);
}

.sdud__btns {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sdud__btn1 {
    height: 30px; 
    font-size: 12px;
    padding: 0 14px;
    border-radius: 6px;
    background: rgba(var(--accent-rgb), 0.1);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    color: var(--tt);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.sdud__btn1:hover {
    background: rgba(var(--accent-rgb), 0.15);
    border-color: rgba(var(--accent-rgb), 0.3);
    transform: translateY(-1px);
}

.sdud__ava {
    width: 40px; 
    cursor: pointer;
    border-radius: 50%;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    padding: 0;
    overflow: hidden;
    background: none;
    display: block;
    font: inherit;
    color: inherit;
}

.sdud__ava:hover {
    transform: scale(1.05);
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
}

.sdud__btn1 span {
    position: absolute; 
    right: -5px; 
    top: -10px; 
    padding: 2px 3px; 
    font-size: 10px; 
    border-radius: 3px; 
    background-color: var(--accent); 
    color: #fff; 
    display: inline-block; 
    text-align: center; 
    min-width: 20px; 
    line-height: 1;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(var(--accent-rgb), 0.4);
}

.sdud__menu {
    margin: 0px;
    display: flex;
    gap: 4px;
}

.sdud__menu li {
    position: relative;
}

.sdud__menu > li > a {
    display: flex; 
    align-items: center; 
    height: 70px; 
    text-transform: none;
    font-size: 15px; 
    font-weight: 600; 
    opacity: 0.72; 
    font-family: var(--font-body);
    padding: 0 16px;
    transition: color 0.3s ease, opacity 0.3s ease;
    position: relative;
    letter-spacing: -0.01em;
}

.sdud__menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.sdud__menu > li > a:hover {
    opacity: 1;
}

.sdud__menu > li > a:hover::after {
    width: 100%;
}

.sdud__menu > li:hover > a {
    opacity: 1;
}

.sdud__menu-hidden {
    background-color: var(--bg); 
    border-top: 3px solid var(--accent); 
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    position: absolute; 
    left: 0; 
    top: 99%; 
    width: 240px; 
    z-index: 10; 
    padding: 20px 26px; 
    display: grid; 
    gap: 6px 26px; 
    opacity: 0; 
    visibility: hidden; 
    translate: 0 30px;
    border-radius: 0 0 12px 12px;
    transition: all 0.3s ease;
}

.sdud__menu li:hover .sdud__menu-hidden {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
}

div.sdud__menu-hidden {
    grid-template-columns: repeat(3, 1fr); 
    width: 660px;
}

.sdud__menu-hidden-col {
    display: grid; 
    gap: 6px;
}

.sdud__menu-hidden li:not(:has(a)) {
    font-weight: 600;
    font-size: 13px;
    color: rgba(var(--tt-rgb), 0.9);
    margin-bottom: 4px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(var(--bdc-rgb), 0.2);
}

.sdud__menu-hidden a {
    opacity: 0.8;
    font-size: 14px;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sdud__menu-hidden a:hover {
    opacity: 1;
    background: rgba(var(--accent-rgb), 0.08);
    padding-left: 12px;
}

.sdud .sdud__menu li:has(.sdud__menu-hidden)::before {
    content: ''; 
    position: absolute; 
    left: 50%; 
    bottom: 0%; 
    border: 6px solid transparent; 
    border-bottom-color: var(--accent); 
    margin-left: -6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sdud .sdud__menu li:hover:has(.sdud__menu-hidden)::before {
    opacity: 1;
}

/* Статическая навигация по подкатегориям (страницы сериалов / мультов / аниме) */
.catnav.float-surface {
	margin-left: 0;
	margin-right: 0;
	padding: 22px var(--indent) 26px;
	margin-bottom: 20px;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
}

.catnav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(var(--bdc-rgb), 0.25);
}

.catnav__heading {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.catnav__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--accent);
    transition: background 0.2s ease, color 0.2s ease;
}

.catnav__all:hover {
    background: rgba(var(--accent-rgb), 0.2);
}

.catnav__groups {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.catnav__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.55;
}

.catnav__title::before {
    content: '';
    width: 4px;
    height: 1em;
    border-radius: 2px;
    background: var(--accent);
    flex-shrink: 0;
}

.catnav__group {
	min-width: 0;
}

.catnav__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.catnav__links--genres {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.75rem), 1fr));
    gap: 8px;
}

.catnav__links--genres .catnav__link {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.35;
}

.catnav__links--years {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 8px;
}

.catnav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    background: rgba(var(--tt-rgb), 0.05);
    border: 1px solid rgba(var(--bdc-rgb), 0.2);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.catnav__link:hover {
    background: rgba(var(--accent-rgb), 0.1);
    border-color: rgba(var(--accent-rgb), 0.35);
    color: var(--accent);
}

.catnav__count {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.55;
}

.catnav__links--years .catnav__link {
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    padding: 10px 8px;
    text-align: center;
    font-size: 13px;
}

.catnav__links--years .catnav__count {
    font-size: 11px;
}

.dt .catnav__link {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.dt .catnav__link:hover {
    background: rgba(var(--accent-rgb), 0.15);
    border-color: rgba(var(--accent-rgb), 0.4);
}

.search-block__form {
    position: relative;
    width: 100%;
}

.search-block {
    position: relative;
}

body.header-search-open {
    overflow: hidden;
}

.search-block__input, 
.search-block__input:focus {
    padding: 0 40px 0 14px; 
    border: 0; 
    box-shadow: none; 
    height: 34px; 
    line-height: 34px; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    border: 1.5px solid rgba(var(--bdc-rgb), 0.3);
    transition: all 0.3s ease;
    background: var(--bg);
    font-size: 13px;
}

.search-block__input:focus {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.15);
}

.search-block__input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.search-block__input:not(:focus)::placeholder {
    color: rgba(var(--tt-rgb), 0.5); 
    opacity: 1; 
    font-size: 13px;
}

.search-block__btn {
    position: absolute; 
    right: 0; 
    top: 0; 
    height: 34px; 
    font-size: 16px; 
    width: 40px; 
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 8px 8px 0;
}

.search-block__btn:hover {
    background: rgba(var(--accent-rgb), 0.1);
    transform: scale(1.1);
}

/* SECTION
----------------------------------------------- */
.nuks:not(:last-child) {
    margin-bottom: 32px;
}

.nuks__header {
    margin-bottom: 20px;
}

.nuks__title {
    font-size: 20px; 
    font-weight: 700; 
    text-transform: none;
    color: var(--tt);
    letter-spacing: -0.03em;
}

.nuks__title :is(h1, h2, h3) {
    font-size: inherit;
}

.nuks__header:has(.nuks__tabs) {
    margin-bottom: 10px;
}

.nuks__tabs button {
    background: rgba(var(--bdc-rgb), 0.25); 
    color: rgba(var(--tt-rgb), 0.72); 
    text-transform: none; 
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(var(--bdc-rgb), 0.4);
}

.nuks__tabs button:hover {
    color: var(--tt);
    background: rgba(var(--accent-rgb), 0.1);
    border-color: rgba(var(--accent-rgb), 0.25);
}

.nuks__tabs button.is-active {
    background: rgba(var(--accent-rgb), 0.15); 
    color: var(--accent);
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(var(--accent-rgb), 0.2);
    border-color: rgba(var(--accent-rgb), 0.35);
}
.dt .nuks__tabs button {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(var(--tt-rgb), 0.75);
}
.dt .nuks__tabs button:hover {
    background: rgba(var(--accent-rgb), 0.12);
    border-color: rgba(var(--accent-rgb), 0.3);
}
.dt .nuks__tabs button.is-active {
    background: rgba(var(--accent-rgb), 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.nuks__tabs button.is-active:hover {
    background: rgba(var(--accent-rgb), 0.18);
    color: var(--accent);
    filter: none;
}
.dt .nuks__tabs button.is-active:hover {
    background: rgba(var(--accent-rgb), 0.28);
    color: #fff;
}

/* COLLECTIONS PAGE (kpdn)
----------------------------------------------- */
.kpdn .nuks.float-surface:last-of-type:not(.kpdn__seo) {
	margin-bottom: 20px;
}

.kpdn__intro .nuks__header {
	margin-bottom: 0;
}

.kpdn__grid {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: 12px;
}

.kpdn-card {
	min-width: 0;
}

.kpdn-card__link {
	width: 100%;
	min-height: 58px;
	padding: 12px 14px;
	border-radius: var(--radius-md);
	background: rgba(var(--bdc-rgb), 0.18);
	border: 1px solid rgba(var(--bdc-rgb), 0.42);
	color: var(--tt);
	text-decoration: none;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset;
}

.dt .kpdn-card__link {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.1);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.kpdn-card__link:focus-visible {
	outline: 2px solid rgba(var(--accent-rgb), 0.55);
	outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
	.kpdn-card__link:hover {
		background: rgba(var(--accent-rgb), 0.1);
		border-color: rgba(var(--accent-rgb), 0.35);
		color: var(--tt);
		transform: translateY(-1px);
		box-shadow:
			0 1px 0 rgba(255, 255, 255, 0.45) inset,
			0 8px 22px rgba(var(--accent-rgb), 0.14);
	}

	.dt .kpdn-card__link:hover {
		background: rgba(var(--accent-rgb), 0.14);
		border-color: rgba(var(--accent-rgb), 0.4);
		box-shadow:
			inset 0 1px 0 rgba(255, 255, 255, 0.06),
			0 10px 28px rgba(0, 0, 0, 0.28);
	}

	.kpdn-card__link:hover .kpdn-card__go {
		color: var(--accent);
		transform: translateX(2px);
	}
}

.kpdn-card__icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	font-size: 15px;
	color: var(--accent);
	background: rgba(var(--accent-rgb), 0.14);
}

.kpdn-card__body {
	min-width: 0;
}

.kpdn-card__label {
	font-size: 15px;
	font-weight: 600;
	margin-left: 5px;
}

.kpdn-card__count {
	font-size: 12px;
	line-height: 1.3;
	color: rgba(var(--tt-rgb), 0.55);
}

.kpdn-card__go {
	flex-shrink: 0;
	font-size: 18px;
	color: rgba(var(--tt-rgb), 0.38);
	transition: color 0.2s, transform 0.2s;
}

.kpdn__seo {
	margin-bottom: 0;
}

.taskir__head {
	display: flex;
	align-items: center;
	gap: 14px 18px;
	margin: 0 0 18px;
	min-width: 0;
}

.taskir__caption {
	color: #fff;
	font-size: 19px;
	font-weight: 700;
	margin-top: 0;
	margin-bottom: 0;
	flex: 0 1 auto;
	min-width: 0;
	letter-spacing: -0.03em;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.taskir__rail {
	display: none;
	align-items: center;
	gap: 10px;
	flex: 1 1 auto;
	min-width: 48px;
}

.taskir__rail-line {
	display: block;
	flex: 1 1 auto;
	min-width: 24px;
	height: 1px;
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.28) 0%,
		rgba(255, 255, 255, 0.1) 72%,
		transparent 100%
	);
}

.taskir.float-surface.float-surface--dark .taskir__rail-line,
.qapo__float--related.taskir .taskir__rail-line {
	background: linear-gradient(
		90deg,
		rgba(var(--bdc-rgb), 0.55) 0%,
		rgba(var(--bdc-rgb), 0.22) 70%,
		transparent 100%
	);
}

.dt .taskir.float-surface.float-surface--dark .taskir__rail-line,
.dt .qapo__float--related.taskir .taskir__rail-line {
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.22) 0%,
		rgba(255, 255, 255, 0.08) 70%,
		transparent 100%
	);
}

.taskir__nav {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
}

.taskir__nav .owl-nav {
	position: static;
	left: auto;
	right: auto;
	top: auto;
	display: flex;
	align-items: center;
	gap: 6px;
	pointer-events: auto;
}

.taskir__nav .owl-prev,
.taskir__nav .owl-next {
	position: static;
	top: auto;
	left: auto;
	right: auto;
	margin: 0;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 0;
	background: transparent;
	background-color: transparent;
	box-shadow: none;
	font-size: 18px;
	color: rgba(var(--tt-rgb), 0.55);
	opacity: 0.85;
	transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.taskir__nav .owl-prev:hover,
.taskir__nav .owl-next:hover {
	background: transparent;
	background-color: transparent;
	border: 0;
	box-shadow: none;
	color: var(--tt);
	opacity: 1;
	transform: none;
}

.dt .taskir__nav .owl-prev,
.dt .taskir__nav .owl-next {
	background: transparent;
	background-color: transparent;
	border: 0;
	box-shadow: none;
	color: rgba(255, 255, 255, 0.55);
}

.dt .taskir__nav .owl-prev:hover,
.dt .taskir__nav .owl-next:hover {
	background: transparent;
	background-color: transparent;
	color: #fff;
	box-shadow: none;
}

.taskir__nav .owl-prev.disabled,
.taskir__nav .owl-next.disabled {
	opacity: 0.28;
	box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
	.taskir__nav .owl-prev:hover,
	.taskir__nav .owl-next:hover {
		background: transparent !important;
		background-color: transparent !important;
		border-color: transparent !important;
		color: var(--tt);
	}
	.dt .taskir__nav .owl-prev:hover,
	.dt .taskir__nav .owl-next:hover {
		color: #fff;
	}
}

@media screen and (min-width: 761px) {
	.taskir__rail {
		display: flex;
	}
}

.taskir.float-surface.float-surface--dark .taskir__caption,
.qapo__float--related.taskir .taskir__caption {
	color: var(--tt);
	margin-bottom: 0;
	text-shadow: none;
	font-weight: 700;
	font-family: var(--qapo-font-display, var(--font-display));
	letter-spacing: -0.03em;
}

.dt .taskir.float-surface.float-surface--dark .taskir__caption,
.dt .qapo__float--related.taskir .taskir__caption {
	color: #f1f5f9;
	text-shadow: 0 1px 14px rgba(0, 0, 0, 0.42);
}

.taskir--lastviewed:not(:has(.lodyt)) {
    display: none;
}

.speedbar {
	position: relative;
	z-index: 2;
	color: rgba(var(--tt-rgb), 0.52);
	font-size: 13px;
	line-height: 1.45;
	letter-spacing: 0.01em;
	margin: 0;
	padding: 8px var(--indent) 10px;
	display: flex;
	align-items: center;
	gap: 0;
	flex-wrap: wrap;
	box-sizing: border-box;
	border-radius: 0;
	background: transparent;
	outline: none;
	border: none;
	box-shadow: none;
	width: 100%;
	max-width: 100%;
}

/* ws-nowrap в common.css ставит display:block — ломает flex и отступы крошек */
nav.speedbar.ws-nowrap {
	display: flex;
	flex-wrap: nowrap;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.speedbar::before {
	display: none;
}

.dt .speedbar {
	color: rgba(var(--tt-rgb), 0.56);
	background: transparent;
	outline: none;
	box-shadow: none;
}

.dt .speedbar::before {
	display: none;
}

.showfull-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

/* Fullstory: ширина = контейнер (без breakout — у .glv нет бокового padding) */
.showfull-wrap > article.qapo {
    margin-inline: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.showfull-wrap .qapo__bg {
    margin-top: 0;
    border-radius: 0;
}

.qapo__article-body {
    display: flex;
    flex-direction: column;
    gap: var(--qapo-gap-lobby, 18px);
    min-width: 0;
}

.speedbar a,
.speedbar__current,
.speedbar__divider {
	display: inline-flex;
	align-items: center;
	border-radius: 0;
	padding: 2px 0;
	margin: 0;
	flex-shrink: 0;
}

.speedbar a {
	color: rgba(var(--tt-rgb), 0.88);
	font-weight: 500;
	text-decoration: none;
	transition: color 0.18s ease;
}

.speedbar a .speedbar__home {
	color: var(--accent);
	margin-right: 0.42em;
	font-size: 0.92em;
	line-height: 1;
	flex-shrink: 0;
}

.speedbar a:hover {
	color: var(--accent);
	background: none;
}

.speedbar a:hover .speedbar__home {
	color: var(--accent);
}

.speedbar__divider {
	padding: 0 0.55em;
	color: rgba(var(--tt-rgb), 0.46);
	font-weight: 400;
	pointer-events: none;
	user-select: none;
}

.speedbar__current {
	color: var(--accent);
	font-weight: 600;
}

.dt .speedbar {
	color: rgba(var(--tt-rgb), 0.56);
}

.dt .speedbar a {
	color: rgba(var(--tt-rgb), 0.92);
}

.dt .speedbar a .speedbar__home {
	color: var(--accent-light, var(--accent));
}

.dt .speedbar a:hover {
	color: var(--accent-light);
	background: none;
}

.dt .speedbar a:hover .speedbar__home {
	color: var(--accent-light, var(--accent));
}

.dt .speedbar__divider {
	color: rgba(var(--tt-rgb), 0.5);
}

.dt .speedbar__current {
	color: var(--accent-light, var(--accent));
}

.descr {
	position: relative;
	z-index: 1;
	color: rgba(var(--tt-rgb), 0.78);
	display: grid;
	gap: 14px;
	background: var(--bg);
	padding: 22px var(--indent) 26px;
	margin: 22px 0 24px;
	border-radius: var(--radius-lg);
	outline: 1px solid rgba(var(--bdc-rgb), 0.38);
	border: none;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.55) inset,
		var(--bsh-block),
		0 18px 44px rgba(15, 23, 42, 0.07);
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
}

.dt .descr {
	background: var(--bg-darker);
	color: rgba(var(--tt-rgb), 0.82);
	outline-color: rgba(255, 255, 255, 0.08);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.05) inset,
		0 0 0 1px rgba(0, 0, 0, 0.32),
		0 14px 40px rgba(0, 0, 0, 0.34),
		0 28px 56px -20px rgba(0, 0, 0, 0.42);
}

.descr :is(h1, h2, h3) {
    font-size: 18px; 
    font-weight: 600; 
    color: var(--tt);
    letter-spacing: -0.2px;
}

.descr a {
    text-decoration: none; 
    color: var(--accent);
    font-weight: 500;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.25);
    transition: all 0.2s ease;
}

.descr a:hover {
    border-bottom-color: var(--accent);
}

.descr ul {
    display: grid;
    gap: 10px;
}

.descr ul li {
    position: relative; 
    padding-left: 28px; 
    margin-left: 0;
    line-height: 1.6;
}

.descr ul li::before {
    content: "\f00c"; 
    font-family: 'Font Awesome 5 Pro';
    color: var(--accent); 
    position: absolute; 
    left: 0; 
    top: 1px;
    font-size: 12px;
    font-weight: 600;
}

.descr p {
    line-height: 1.7;
    margin-bottom: 10px;
}

.descr p:last-child {
    margin-bottom: 0;
}

/* HOT UPDATES — компактный горизонтальный блок обновлений
----------------------------------------------- */
.hwupd {
    --hwupd-card-h: 54px;
    --hwupd-thumb-w: 30px;
    --hwupd-thumb-h: 44px;
    --hwupd-card-gap: 5px;
    --hwupd-slots: 5;
    display: grid;
    gap: 12px;
    min-width: 0;
}

.hwupd--compact {
    gap: 0;
}

.descr:has(.hwupd) {
    gap: 0;
    padding: 12px var(--indent) 14px;
    margin: 14px 0 16px;
}

.hwupd__accordion {
    display: block;
    min-width: 0;
}

.hwupd__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 2px 0;
    cursor: pointer;
    list-style: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.2s ease;
}

.hwupd__trigger::-webkit-details-marker {
    display: none;
}

.hwupd__trigger::marker {
    content: "";
    display: none;
}

.hwupd__trigger:hover {
    opacity: 0.88;
}

.hwupd__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--tt);
    letter-spacing: -0.15px;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.hwupd__arrow {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 12px;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.14);
    flex-shrink: 0;
    transition:
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
    animation: hwupd-arrow-bounce 1.4s ease-in-out infinite;
}

.hwupd__trigger:hover .hwupd__arrow {
    background: rgba(var(--accent-rgb), 0.24);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.08);
}

.hwupd__accordion[open] .hwupd__arrow {
    animation: none;
    transform: rotate(180deg);
    background: rgba(var(--accent-rgb), 0.2);
}

@keyframes hwupd-arrow-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

.hwupd__title-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.14);
    flex-shrink: 0;
}

.hwupd__timeline {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    min-width: 0;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
    transition:
        max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease,
        margin-top 0.35s ease;
}

.hwupd__accordion[open] .hwupd__timeline {
    max-height: 360px;
    opacity: 1;
    margin-top: 10px;
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .hwupd__arrow {
        animation: none;
    }

    .hwupd__timeline {
        transition: none;
    }
}

.hwupd__day {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    min-height: 100%;
}

.hwupd__day-head {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 32px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(var(--bg-darker-1-rgb), 0.65);
    outline: 1px solid rgba(var(--bdc-rgb), 0.42);
    color: var(--tt);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    flex-shrink: 0;
}

.dt .hwupd__day-head {
    background: rgba(255, 255, 255, 0.05);
    outline-color: rgba(255, 255, 255, 0.1);
}

.hwupd__day.is-active .hwupd__day-head {
    color: var(--tt-btn);
    background: linear-gradient(145deg, var(--accent), var(--accent-dark));
    outline-color: rgba(var(--accent-rgb), 0.55);
    box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.22);
}

.hwupd__day-date {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.hwupd__list {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-content: flex-start;
    justify-content: flex-start;
    gap: var(--hwupd-card-gap);
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 0;
    height: calc(var(--hwupd-card-h) * var(--hwupd-slots) + var(--hwupd-card-gap) * (var(--hwupd-slots) - 1));
}

.descr ul.hwupd__list {
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    justify-content: flex-start;
    gap: var(--hwupd-card-gap);
}

.descr .hwupd__list .hwupd-card {
    padding-left: 0;
    margin-left: 0;
    line-height: inherit;
}

.descr .hwupd__list .hwupd-card::before {
    content: none;
    display: none;
}

.hwupd-card {
    flex: 0 0 auto;
    height: var(--hwupd-card-h);
    max-height: var(--hwupd-card-h);
}

.hwupd-card__link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    width: 100%;
    height: var(--hwupd-card-h);
    max-height: var(--hwupd-card-h);
    min-width: 0;
    padding: 5px 7px 5px 5px;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: var(--bg);
    outline: 1px solid rgba(var(--bdc-rgb), 0.38);
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
    transition: outline-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.dt .hwupd-card__link {
    background: rgba(255, 255, 255, 0.04);
    outline-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
}

.hwupd-card__link:hover {
    outline-color: rgba(var(--accent-rgb), 0.45);
    box-shadow:
        0 0 0 1px rgba(var(--accent-rgb), 0.14),
        0 6px 16px rgba(var(--accent-rgb), 0.12);
}

.hwupd-card__thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 var(--hwupd-thumb-w);
    width: var(--hwupd-thumb-w);
    height: var(--hwupd-thumb-h);
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-darker);
    align-self: center;
    flex-shrink: 0;
    --hwupd-ph-hue: 210deg;
}

.hwupd-card__ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 2px;
    border-radius: inherit;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        hsl(var(--hwupd-ph-hue), 38%, 28%) 0%,
        hsl(calc(var(--hwupd-ph-hue) + 22), 34%, 16%) 100%
    );
}

.hwupd-card__ph-text {
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    line-height: 1.15;
    text-align: center;
}

.hwupd-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.hwupd-card__title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--tt);
    word-break: break-word;
}

.hwupd-card__meta {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}

.hwupd-card__badge {
    display: inline-block;
    max-width: 100%;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--accent-dark);
    background: rgba(var(--accent-rgb), 0.14);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
}

.dt .hwupd-card__badge {
    color: var(--accent-light);
}

.hwupd-card__year {
    font-size: 12px;
    color: rgba(var(--tt-rgb), 0.5);
    white-space: nowrap;
    flex-shrink: 0;
}


/* ITEM CAROUSEL, SHORTSTORY — карточка каталога (превью + блок текста снизу)
----------------------------------------------- */
.lodyt {
    position: relative;
    z-index: 0;
    height: 100%;
    transform: none;
}

.lodyt:hover,
.lodyt:focus-within {
    z-index: 5;
    transform: none;
}

.lodyt:active {
    transform: none;
}

.lodyt:has(.lodyt__info.is-open) {
    z-index: 50;
    transform: none;
}

/* Единая карточка-ссылка (shortstory, relatednews) */
.lodyt__card-link {
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg);
    border: 1px solid rgba(var(--bdc-rgb), 0.45);
    box-shadow: none;
    outline: none;
    transform: none;
    transition: border-color 0.28s var(--ease-out), background-color 0.28s ease, color 0.2s ease;
}

.lodyt__card-link:active {
    transform: none;
    translate: none;
}

.lodyt__card-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.dt .lodyt__card-link {
    background: var(--bg-darker);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.lodyt:hover .lodyt__card-link {
    border-color: rgba(var(--accent-rgb), 0.4);
    box-shadow: none;
}

.dt .lodyt:hover .lodyt__card-link {
    border-color: rgba(var(--accent-rgb), 0.38);
    box-shadow: none;
}

/* Вкладки главной: карточка без общей ссылки */
.lodyt__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg);
    border: 1px solid rgba(var(--bdc-rgb), 0.45);
    box-shadow: none;
    transition: border-color 0.28s var(--ease-out), background-color 0.28s ease;
}

.dt .lodyt__card {
    background: var(--bg-darker);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.lodyt:hover .lodyt__card {
    border-color: rgba(var(--accent-rgb), 0.52);
    box-shadow: none;
}

.dt .lodyt:hover .lodyt__card {
    border-color: rgba(var(--accent-rgb), 0.48);
    box-shadow: none;
}

.lodyt__thumb {
    position: relative;
    flex-shrink: 0;
    background: #0a0a12;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow: hidden;
}

/* Обрезка постера внутри */
.lodyt__thumb > .lodyt__img {
    border-radius: inherit;
    overflow: hidden;
}

.lodyt__thumb > .lodyt__img img,
.lodyt__poster-img {
    border-radius: inherit;
}

.lodyt__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 45%);
    opacity: 0.65;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lodyt__thumb:has(.lodyt__caption)::after,
.lodyt__thumb:has(+ .lodyt__body)::after,
.lodyt__card-link:has(.lodyt__body) .lodyt__thumb::after,
.lodyt__card:has(.lodyt__body) .lodyt__thumb::after {
    opacity: 0;
}

.lodyt:hover .lodyt__thumb:not(:has(.lodyt__caption)):not(:has(+ .lodyt__body))::after {
    opacity: 0.9;
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(var(--accent-play-rgb), 0.22), transparent 70%);
}

.lodyt:hover .lodyt__thumb:has(.lodyt__caption)::after,
.lodyt:hover .lodyt__thumb:has(+ .lodyt__body)::after,
.lodyt:hover .lodyt__card-link:has(.lodyt__body) .lodyt__thumb::after,
.lodyt:hover .lodyt__card:has(.lodyt__body) .lodyt__thumb::after {
    opacity: 0;
}

.lodyt__play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 9;
    translate: -50% -50%;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 16px;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: none;
    transition: opacity 0.22s ease, background 0.2s ease;
    pointer-events: none;
}

.lodyt:hover .lodyt__play {
    opacity: 1;
    transform: none;
}

/* Невидимая зона клика по постеру (custom-tabs) */
.lodyt__cover {
    position: absolute;
    inset: 0;
    z-index: 5;
}

.lodyt__cover.expand-link__trg::after {
    z-index: 6;
}

.lodyt__img {
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    outline: none;
    box-shadow: none;
}

.lodyt:focus-within .lodyt__img,
.lodyt:hover .lodyt__img,
.lodyt:active .lodyt__img {
    box-shadow: none;
}

.lodyt__img img {
    transition: filter 0.35s ease;
    transform: none;
}

.lodyt:hover .lodyt__img img {
    transform: none;
    filter: brightness(0.9);
}

@media (prefers-reduced-motion: reduce) {
    .lodyt__img img {
        transition-duration: 0.01ms;
    }

    .lodyt:hover .lodyt__img img {
        filter: none;
    }
}

/* Плейсхолдер постера (инициалы + градиент) до загрузки картинки — меньше «пустой» LCP на сетках, стабильные размеры */
.lodyt__img--poster {
	--lodyt-ph-hue: 158deg;
}

.lodyt__poster-ph {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	background: linear-gradient(
		145deg,
		hsl(var(--lodyt-ph-hue), 38%, 22%) 0%,
		hsl(calc(var(--lodyt-ph-hue) + 22), 34%, 12%) 100%
	);
	transition: opacity 0.35s ease;
	pointer-events: none;
}

.lodyt__img--poster.is-poster-loaded .lodyt__poster-ph {
	opacity: 0;
}

.lodyt__img--poster.is-poster-error .lodyt__poster-ph {
	opacity: 1;
}

.lodyt__poster-ph-text {
	font-family: 'Onest', system-ui, sans-serif;
	font-size: clamp(26px, 8.5vw, 42px);
	font-weight: 700;
	letter-spacing: 0.05em;
	color: rgba(255, 255, 255, 0.88);
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
	line-height: 1.05;
	max-width: 92%;
	text-align: center;
	word-break: break-word;
}

.lodyt__img--poster .lodyt__poster-img {
	z-index: 2;
	transition: opacity 0.4s ease;
}

html.js-lodyt-poster .lodyt__img--poster:not(.is-poster-loaded):not(.is-poster-error) .lodyt__poster-img {
	opacity: 0;
}

html.js-lodyt-poster .lodyt__img--poster.is-poster-loaded .lodyt__poster-img {
	opacity: 1;
}

html.js-lodyt-poster .lodyt__img--poster.is-poster-error .lodyt__poster-img {
	opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
	.lodyt__poster-ph,
	.lodyt__img--poster .lodyt__poster-img {
		transition-duration: 0.01ms;
	}
}

.lodyt__label {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 7;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: calc(100% - 16px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lodyt__label--year {
    left: 8px;
    right: auto;
    text-transform: none;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    background: rgba(8, 10, 16, 0.72);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lodyt__img--poster:has(.lodyt__label--year) .lodyt__label:not(.lodyt__label--year) {
    left: auto;
    right: 8px;
}

/* KP / IMDb на постере (нижняя полоса) */
.lodyt__rates-strip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 8;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 5px;
    padding: 14px 8px 7px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.4) 55%, transparent 100%);
    pointer-events: none;
}

.lodyt__rates-item--poster {
    flex: 1 1 0;
    min-width: 0;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    padding: 5px 6px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lodyt__rates-strip .lodyt__rates-item--poster:only-child {
    flex: 0 1 100%;
    max-width: 100%;
}

.lodyt__rates-item--poster::before {
    content: attr(data-text);
    display: block;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.06em;
    opacity: 0.9;
    margin-bottom: 1px;
}

.lodyt__rates-item--poster.kp::before {
    color: #fdba74;
}

.lodyt__rates-item--poster.imdb::before {
    color: #fcd34d;
}

.lodyt__rates-item--poster.kinorium::before {
    color: #00aaea;
}

/* Кнопка «i» с тултипом на карточке каталога */
.lodyt__info {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 15;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    cursor: help;
    outline: none;
    backdrop-filter: blur(6px);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.lodyt__info:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.lodyt__info:hover,
.lodyt__info:focus-visible,
.lodyt__info.is-open {
    background: rgba(37, 99, 235, 0.88);
    border-color: rgba(147, 197, 253, 0.55);
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.42);
}

.lodyt__info-icon {
    font-size: 13px;
    font-weight: 800;
    font-style: italic;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1;
    pointer-events: none;
}

@media (hover: none), (pointer: coarse), (max-width: 767px) {
    .lodyt__info {
        top: 6px;
        right: 6px;
        width: 44px;
        height: 44px;
    }

    .lodyt__info-icon {
        font-size: 16px;
    }
}

/* Источник данных в кнопке — скрыт, показывается только общий float */
.js-lodyt-info > .lodyt__info-tip {
    display: none !important;
}

/* Попап карточки — по образцу .th-text */
.lodyt__info-float {
    display: none;
    position: absolute;
    z-index: 1000;
    width: 360px;
    max-width: min(360px, calc(100vw - 24px));
    max-height: min(360px, calc(100vh - 24px));
    overflow: auto;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--tt);
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    background: var(--bg);
    border: 1px solid rgba(var(--bdc-rgb), 0.42);
    border-left: 3px solid var(--accent);
    box-shadow: var(--bsh-long, 0 10px 28px rgba(15, 23, 42, 0.14));
    cursor: auto;
    -webkit-overflow-scrolling: touch;
}

.lodyt__info-float--touch {
    position: fixed;
    z-index: 10060;
}

.lodyt__info-tip {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 40;
    width: max-content;
    max-width: min(360px, calc(100vw - 24px));
    max-height: min(360px, calc(100vh - 24px));
    overflow: auto;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--tt);
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    background: var(--bg);
    border: 1px solid rgba(var(--bdc-rgb), 0.42);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    -webkit-overflow-scrolling: touch;
}

.lodyt__info-tip::before {
    content: '';
    position: absolute;
    right: 8px;
    bottom: 100%;
    border: 6px solid transparent;
    border-bottom-color: var(--bg);
    filter: drop-shadow(0 -1px 0 rgba(var(--bdc-rgb), 0.28));
}

.lodyt__info-tip-row {
    display: block;
    margin: 0 0 8px;
}

.lodyt__info-tip-row:last-child {
    margin-bottom: 0;
}

.lodyt__info-tip-row--desc {
    margin-top: 2px;
    padding-top: 8px;
    border-top: 1px solid rgba(var(--bdc-rgb), 0.28);
}

.lodyt__info-tip-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    margin: 0 0 8px;
}

.lodyt__info-tip-meta-item:only-child {
    grid-column: 1 / -1;
}

.lodyt__info-tip-meta-item {
    min-width: 0;
}

.lodyt__info-tip-meta-item .lodyt__info-tip-label {
    margin-bottom: 3px;
}

.lodyt__info-tip-meta-item .lodyt__info-tip-val {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 479px) {
    .lodyt__info-tip-meta {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .lodyt__info-tip-meta-item:only-child {
        grid-column: auto;
    }
}

.lodyt__info-tip-label {
    display: block;
    margin-bottom: 2px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(var(--tt-rgb), 0.55);
}

.lodyt__info-tip-val {
    display: block;
    color: var(--tt);
}

.lodyt__info-tip-rates {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lodyt__info-tip-rate {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 52px;
    padding: 4px 7px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    background: rgba(var(--bdc-rgb), 0.12);
    border: 1px solid rgba(var(--bdc-rgb), 0.22);
    text-align: center;
}

.lodyt__info-tip-rate::before {
    content: attr(data-text);
    display: block;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.88;
    margin-bottom: 2px;
}

.lodyt__info-tip-rate--kp {
    color: #c2410c;
}

.lodyt__info-tip-rate--kp::before {
    color: #c2410c;
}

.lodyt__info-tip-rate--imdb {
    color: #a16207;
}

.lodyt__info-tip-rate--imdb::before {
    color: #a16207;
}

.lodyt__info-tip-rate--kinorium {
    color: #0284c7;
}

.lodyt__info-tip-rate--kinorium::before {
    color: #0284c7;
}

.dt .lodyt__info-tip,
.dt .lodyt__info-float {
    color: rgba(var(--tt-rgb), 0.92);
    background: var(--bg-darker);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}

.dt .lodyt__info-tip::before {
    border-bottom-color: var(--bg-darker);
}

.dt .lodyt__info-tip-rate--kp {
    color: #fdba74;
}

.dt .lodyt__info-tip-rate--kp::before {
    color: #fdba74;
}

.dt .lodyt__info-tip-rate--imdb {
    color: #fcd34d;
}

.dt .lodyt__info-tip-rate--imdb::before {
    color: #fcd34d;
}

.dt .lodyt__info-tip-rate--kinorium {
    color: #38bdf8;
}

.dt .lodyt__info-tip-rate--kinorium::before {
    color: #38bdf8;
}

@media (hover: none), (pointer: coarse), (max-width: 767px) {
    .lodyt__info-float {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lodyt__info,
    .lodyt__info-tip,
    .lodyt__info-float {
        transition: none;
    }
}

/* Логотип на карточке: при hover — метки и рейтинги скрываются, лого сверху; play и title остаются */
.lodyt__img--poster .lodyt__poster-logo {
    position: absolute;
    inset: 0 0 auto;
    z-index: 10;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10px 8px 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(8, 10, 16, 0.9) 0%,
        rgba(8, 10, 16, 0.5) 48%,
        rgba(8, 10, 16, 0) 100%
    );
    transition:
        opacity 0.28s ease,
        visibility 0.28s ease,
        transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.lodyt__img--poster .lodyt__poster-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(92%, 148px);
    max-height: 48px;
    object-fit: contain;
    object-position: center top;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
}

.lodyt__img--poster .lodyt__label,
.lodyt__thumb .lodyt__rates-strip,
.lodyt__img--poster .lodyt__rate-badge {
    transition:
        opacity 0.22s ease,
        visibility 0.22s ease,
        transform 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
    .lodyt:has(.lodyt__poster-logo):hover .lodyt__poster-logo,
    .lodyt:has(.lodyt__poster-logo):focus-within .lodyt__poster-logo {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .lodyt:has(.lodyt__poster-logo):hover .lodyt__img--poster .lodyt__label,
    .lodyt:has(.lodyt__poster-logo):hover .lodyt__rates-strip,
    .lodyt:has(.lodyt__poster-logo):hover .lodyt__rate-badge,
    .lodyt:has(.lodyt__poster-logo):focus-within .lodyt__img--poster .lodyt__label,
    .lodyt:has(.lodyt__poster-logo):focus-within .lodyt__rates-strip,
    .lodyt:has(.lodyt__poster-logo):focus-within .lodyt__rate-badge {
        opacity: 0;
        visibility: hidden;
        transform: translateY(4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lodyt__img--poster .lodyt__poster-logo,
    .lodyt__img--poster .lodyt__label,
    .lodyt__thumb .lodyt__rates-strip {
        transition: none;
    }
}

/* Подпись на постере: единый радиус, без backdrop-bleed */
.lodyt__thumb {
    border-radius: inherit;
}

.lodyt__card-link:not(:has(.lodyt__body)),
.lodyt__card:not(:has(.lodyt__body)) {
    border-radius: var(--radius-md);
    overflow: hidden;
    isolation: isolate;
    transform: translateZ(0);
}

.lodyt__card-link:not(:has(.lodyt__body)) .lodyt__thumb,
.lodyt__card:not(:has(.lodyt__body)) .lodyt__thumb {
    border-radius: inherit;
    overflow: hidden;
}

.lodyt__card-link:not(:has(.lodyt__body)) .lodyt__thumb > .lodyt__img,
.lodyt__card:not(:has(.lodyt__body)) .lodyt__thumb > .lodyt__img,
.lodyt__card-link:not(:has(.lodyt__body)) .lodyt__thumb > .lodyt__img img,
.lodyt__card:not(:has(.lodyt__body)) .lodyt__thumb > .lodyt__img img,
.lodyt__card-link:not(:has(.lodyt__body)) .lodyt__poster-img,
.lodyt__card:not(:has(.lodyt__body)) .lodyt__poster-img {
    border-radius: inherit;
}

.lodyt__card-link:not(:has(.lodyt__body)) .lodyt__caption,
.lodyt__card:not(:has(.lodyt__body)) .lodyt__caption {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    overflow: hidden;
}

.lodyt__card-link:not(:has(.lodyt__body)) .lodyt__caption::before,
.lodyt__card:not(:has(.lodyt__body)) .lodyt__caption::before {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(6, 7, 12, 0.18);
    mask-image: linear-gradient(
        0deg,
        #000 0%,
        rgba(0, 0, 0, 0.7) 35%,
        rgba(0, 0, 0, 0.25) 70%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        0deg,
        #000 0%,
        rgba(0, 0, 0, 0.7) 35%,
        rgba(0, 0, 0, 0.25) 70%,
        transparent 100%
    );
}

.lodyt__card-link:not(:has(.lodyt__body)) .lodyt__caption::after,
.lodyt__card:not(:has(.lodyt__body)) .lodyt__caption::after {
    display: none;
}

.lodyt__rate-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 8;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 4px 6px 5px;
    border-radius: 8px;
    background: rgba(8, 10, 16, 0.72);
    border: 1px solid rgba(253, 186, 116, 0.42);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    line-height: 1.1;
    pointer-events: none;
}

.lodyt__rate-badge-lab {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fdba74;
    margin-bottom: 2px;
}

.lodyt__rate-badge-val {
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.lodyt__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 8;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
    padding: 34px 10px 9px;
    pointer-events: none;
    isolation: isolate;
    /* Короткая мягкая вуаль — читаемый текст, живой постер */
    background:
        linear-gradient(
            0deg,
            rgba(8, 7, 10, 0.82) 0%,
            rgba(8, 7, 10, 0.52) 38%,
            rgba(8, 7, 10, 0.18) 68%,
            transparent 100%
        ),
        linear-gradient(
            105deg,
            rgba(var(--qapo-lamp-rgb, 196, 138, 46), 0.1) 0%,
            transparent 55%
        );
    transition: background 0.28s ease, padding 0.28s ease;
}

.lodyt:hover .lodyt__caption,
.lodyt__card-link:hover .lodyt__caption,
.lodyt__card:hover .lodyt__caption {
    background:
        linear-gradient(
            0deg,
            rgba(8, 7, 10, 0.55) 0%,
            rgba(8, 7, 10, 0.28) 42%,
            rgba(8, 7, 10, 0.08) 72%,
            transparent 100%
        ),
        linear-gradient(
            105deg,
            rgba(var(--qapo-lamp-rgb, 196, 138, 46), 0.16) 0%,
            transparent 55%
        );
}

.lodyt__caption::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(6, 7, 12, 0.14);
    backdrop-filter: blur(6px) saturate(1.04);
    -webkit-backdrop-filter: blur(6px) saturate(1.04);
    mask-image: linear-gradient(
        0deg,
        #000 0%,
        rgba(0, 0, 0, 0.75) 30%,
        rgba(0, 0, 0, 0.3) 65%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        0deg,
        #000 0%,
        rgba(0, 0, 0, 0.75) 30%,
        rgba(0, 0, 0, 0.3) 65%,
        transparent 100%
    );
    pointer-events: none;
    transition: background 0.28s ease, opacity 0.28s ease;
}

.lodyt:hover .lodyt__caption::before,
.lodyt__card-link:hover .lodyt__caption::before,
.lodyt__card:hover .lodyt__caption::before {
    background: rgba(6, 7, 12, 0.06);
    opacity: 0.7;
}

.lodyt__caption::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    top: 28%;
    height: 1px;
    z-index: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(var(--qapo-lamp-rgb, 196, 138, 46), 0.28) 40%,
        rgba(255, 255, 255, 0.18) 50%,
        rgba(var(--qapo-lamp-rgb, 196, 138, 46), 0.22) 60%,
        transparent 100%
    );
    opacity: 0.55;
    pointer-events: none;
}

/* Текстовый блок под постером */
.lodyt__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 9px 10px 11px;
    text-align: left;
    min-width: 0;
    min-height: 0;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background: transparent;
}

.lodyt__card .lodyt__body {
    padding-bottom: 11px;
}

.lodyt__title {
    position: relative;
    z-index: 1;
    font-family: var(--qapo-font-display, var(--font-display), system-ui, sans-serif);
    font-weight: 700;
    font-size: 13px;
    line-height: 1.28;
    letter-spacing: -0.015em;
    color: #fff;
    margin: 0;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.85),
        0 0 18px rgba(0, 0, 0, 0.55),
        0 0 1px rgba(0, 0, 0, 1);
    transition: color 0.2s ease, text-shadow 0.2s ease;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    min-width: 0;
}

.lodyt__caption .lodyt__title {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.lodyt__body .lodyt__title {
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.3;
    color: var(--tt);
    text-shadow: none;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

a.lodyt__title {
    text-decoration: none;
    color: inherit;
    transform: none;
}

a.lodyt__title:active {
    transform: none;
}

.lodyt:hover .lodyt__caption .lodyt__title,
.lodyt__card-link:hover .lodyt__caption .lodyt__title {
    color: #fff7e8;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(var(--qapo-lamp-rgb, 196, 138, 46), 0.35),
        0 0 1px rgba(0, 0, 0, 1);
}

.lodyt:hover .lodyt__body .lodyt__title,
.lodyt__card-link:hover .lodyt__body .lodyt__title {
    color: var(--accent-play);
    text-shadow: none;
}

.lodyt__signals {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    row-gap: 2px;
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.78);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

.lodyt__signals:empty {
    display: none;
}

.lodyt__signal {
    display: inline;
    min-width: 0;
}

.lodyt__signal:empty {
    display: none;
}

.lodyt__signals .lodyt__signal:not(:first-child)::before {
    content: "·";
    display: inline;
    margin: 0 0.35em;
    color: rgba(255, 255, 255, 0.38);
    font-weight: 400;
}

/* если предыдущий пустой — точка у следующего всё равно ок за счёт порядка в DOM */

.lodyt__signal--year {
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.7);
}

.lodyt__signal--season {
    color: rgba(255, 247, 232, 0.92);
}

.lodyt__signal--status {
    color: rgba(var(--qapo-lamp-rgb, 196, 138, 46), 0.98);
    font-weight: 700;
}

.lodyt__body .lodyt__signals {
    flex-wrap: nowrap;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
    color: rgba(var(--tt-rgb), 0.58);
    text-shadow: none;
}

.lodyt__body .lodyt__signal {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lodyt__body .lodyt__signals .lodyt__signal:not(:first-child)::before {
    color: rgba(var(--tt-rgb), 0.28);
}

.lodyt__body .lodyt__signal--genres {
    flex: 1 1 auto;
    color: rgba(var(--tt-rgb), 0.55);
}

.lodyt__body .lodyt__signal--status {
    flex: 0 0 auto;
    overflow: visible;
    color: rgba(var(--tt-rgb), 0.72);
    font-weight: 600;
}

.dt .lodyt__body .lodyt__signals {
    color: rgba(var(--tt-rgb), 0.62);
}

.dt .lodyt__body .lodyt__signal--genres {
    color: rgba(var(--tt-rgb), 0.58);
}

.dt .lodyt__body .lodyt__signal--status {
    color: rgba(var(--qapo-lamp-rgb, 196, 138, 46), 0.92);
}

.lodyt__year {
    display: block;
    flex-shrink: 0;
    margin-top: auto;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: rgba(var(--tt-rgb), 0.52);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dt .lodyt__year {
    color: rgba(var(--tt-rgb), 0.55);
}

/* Совместимость, если рейтинги останутся вне постера (старые вставки) */
.lodyt__rates {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.lodyt__rates-item:not(.lodyt__rates-item--poster) {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--tt);
    border: 1px solid rgba(var(--bdc-rgb), 0.35);
}

.dt .lodyt__rates-item:not(.lodyt__rates-item--poster) {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.lodyt__rates-item:not(.lodyt__rates-item--poster)::before {
    content: attr(data-text);
    display: inline;
    margin-right: 4px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

.lodyt__rates-item.kp:not(.lodyt__rates-item--poster)::before {
    color: #ea580c;
}

.lodyt__rates-item.imdb:not(.lodyt__rates-item--poster)::before {
    color: #d97706;
}

/* Кнопка «i» на превью (custom-tabs): поверх обложки-ссылки */
.lodyt__btn-info {
    cursor: pointer;
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 20;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 10px;
    translate: none;
    opacity: 0.88;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.lodyt:hover .lodyt__btn-info {
    opacity: 1;
}

.lodyt__btn-info:hover {
    background: rgba(var(--accent-rgb), 0.45);
    transform: scale(1.05);
}

/* Сетка каталога (shortstory, relatednews, custom): тень не режется overflow и не соседями */
.grid-items {
    overflow: visible;
    padding: 8px;
    margin: -8px;
    position: relative;
    z-index: 0;
}

/* Блог новостей: горизонтальные карточки, 2 колонки на десктопе */
.news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.nws-card {
    min-width: 0;
    height: 100%;
}

.nws-card__link {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 14px;
    height: 100%;
    min-height: 112px;
    padding: 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    background: var(--bg);
    outline: 1px solid rgba(var(--bdc-rgb), 0.45);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: border-color 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), background-color 0.28s ease, transform 0.28s var(--ease-out);
}

.dt .nws-card__link {
    background: var(--bg-darker);
    outline-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.nws-card__link:hover,
.nws-card__link:focus-visible {
    outline-color: rgba(var(--accent-rgb), 0.52);
    box-shadow:
        0 0 0 1px rgba(var(--accent-rgb), 0.22),
        0 14px 36px rgba(var(--accent-rgb), 0.16);
    transform: translateY(-1px);
}

.nws-card__link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.nws-card__thumb {
    flex: 0 0 108px;
    width: 108px;
    align-self: stretch;
    border-radius: calc(var(--radius-md) - 4px);
    background: var(--bg-darker-1);
    overflow: hidden;
}

.nws-card__img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    display: block;
}

.nws-card__ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 72px;
    font-size: 26px;
    color: rgba(var(--accent-rgb), 0.55);
    background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.14), rgba(var(--accent-rgb), 0.04));
}

.nws-card__body {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 2px 0;
}

.nws-card__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--tt);
}

.nws-card__excerpt {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(var(--tt-rgb), 0.62);
}

.nws-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-top: auto;
    font-size: 11px;
    color: rgba(var(--tt-rgb), 0.5);
}

.nws-card__cat {
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.12);
}

.nws-card__cat:empty {
    display: none;
}

.nws-card__arrow {
    flex-shrink: 0;
    align-self: center;
    font-size: 14px;
    color: rgba(var(--tt-rgb), 0.28);
    transition: color 0.2s ease, transform 0.2s ease;
}

.nws-card__link:hover .nws-card__arrow {
    color: var(--accent);
    transform: translateX(2px);
}

@media screen and (max-width: 760px) {
    .nws-card__link {
        gap: 12px;
        min-height: 96px;
        padding: 10px;
    }

    .nws-card__thumb {
        flex-basis: 88px;
        width: 88px;
    }

    .nws-card__title {
        font-size: 14px;
    }

    .nws-card__excerpt {
        font-size: 12px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

@media screen and (max-width: 590px) {
    .news-grid {
        gap: 12px;
    }

    .nws-card__arrow {
        display: none;
    }
}

/* Полная новость (fullstory-news) */
.showfull-wrap > article.nws-post {
    margin-inline: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.nws-post__shell {
    padding-bottom: 8px;
}

.nws-post__header {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(var(--bdc-rgb), 0.45);
}

.nws-post__title {
    margin: 0 0 12px;
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--tt);
}

.nws-post__header .qapo__edit {
    margin-left: 8px;
}

.nws-post__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    font-size: 13px;
    color: rgba(var(--tt-rgb), 0.58);
}

.nws-post__cat {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.12);
}

.nws-post__cat:empty {
    display: none;
}

.nws-post__content {
    color: rgba(var(--tt-rgb), 0.88);
    font-size: 15px;
    line-height: 1.72;
}

.nws-post__content > :first-child {
    margin-top: 0;
}

.nws-post .qapo__comments-wrap {
    margin-top: 0;
}

@media screen and (max-width: 760px) {
    .nws-post__header {
        margin-bottom: 18px;
        padding-bottom: 14px;
    }

    .nws-post__title {
        font-size: clamp(20px, 5.5vw, 26px);
    }

    .nws-post__meta {
        gap: 6px 10px;
        font-size: 12px;
    }
}


/* TRAILER, POPUP DESC
----------------------------------------------- */
.trl {background-color: rgba(0,0,0,0.9); position: fixed; z-index: 990; left: 0; top: 0; 
	width: 100%; height: 100%; overflow-x: hidden; overflow-y: auto; backdrop-filter: blur(10px);}
.trl__close {position: absolute; right: 20px; top: 20px; font-size: 40px; color: #fff;}
.trl__inner {width: 100%; max-width: 700px; margin: 0 auto; color: #fff; padding: 80px 20px 20px 20px;}
.trl__btn {height: 40px; padding: 0 40px; margin: 15px 0; width: 100%;}
.trl h1 {margin-bottom: 15px; margin-top: 20px; font-size: 24px;}
.trl .qapo__text, .trl .full-text {color: #ccc; margin: 0px; padding: 0; background: none;}
.trl-is-opened {overflow: hidden;}

.th-active {z-index: 100;}
.th-text {display: none; background-color: var(--bg); border-left: 3px solid var(--accent); cursor: auto; 
	padding: 20px; text-align: left; position: absolute; z-index: 1000; 
	width: 460px; box-shadow: var(--bsh-long); min-height: 100px; font-size: 12px;}
.pop-left .th-text {border-left: 0; border-right: 3px solid var(--accent);}
.th-text-loader {text-align: center; font-size: 18px; color: var(--accent); padding-top: 20px;}
.th-text .not-shown-ajax, .th-text h1 a, .th-text h1 small {display: none;}
.th-text h1 {font-size: 18px;}
.th-text .full-text {display: -webkit-box; -webkit-line-clamp: 6; line-clamp: 6; 
	-webkit-box-orient: vertical; overflow: hidden; margin: 15px 0;}
.th-text .qapo__seo-lead {display: none;}
.th-text .qapo__meta {font-size: 12px; margin-top: 12px;}
.th-text .qapo__meta-row {grid-template-columns: minmax(0, 90px) 1fr; padding: 6px 0; gap: 8px;}
.th-text .qapo__btn-trailer {width: 100%; margin-top: 20px;}


/* FOOTER, PAGINATION
----------------------------------------------- */
.gribs__notify {
    font-size: 12px;
    line-height: 1.35;
    color: rgba(var(--tt-rgb), 0.55);
}

footer.gribs--redesign .gribs__notify {
	margin: 0;
	max-width: 28ch;
	font-size: 12px;
	line-height: 1.35;
	color: rgba(var(--tt-rgb), 0.55);
	border-left: 0;
	padding-left: 0;
}
footer.gribs--redesign .gribs__notify::before {
	display: none;
}

.gribs__copyright {
    font-size: 12px;
    color: rgba(var(--tt-rgb), 0.6);
    line-height: 1.6;
}

.gribs__menu {
    font-size: 16px; 
    font-weight: 700; 
    text-transform: uppercase; 
    font-family: 'Onest', system-ui, sans-serif;
}

.gribs__menu a {
    transition: all 0.2s ease;
    opacity: 0.7;
}

.gribs__menu a:hover {
    opacity: 1;
    color: var(--accent);
}

.pagination {
    gap: 20px 10px; 
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination__pages a, 
.pagination__pages span, 
.pagination > a, 
.pagination > span {
    display: grid; 
    place-items: center; 
    color: rgba(var(--tt-rgb), 0.7);
    height: 40px; 
    min-width: 40px; 
    padding: 0 12px; 
    border-radius: 8px; 
    background-color: var(--bg);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1.5px solid rgba(var(--bdc-rgb), 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.pagination__pages a:hover,
.pagination > a:hover {
    background: rgba(var(--accent-rgb), 0.08);
    border-color: rgba(var(--accent-rgb), 0.3);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(var(--accent-rgb), 0.15);
}

.pagination__pages {
    gap: 8px; 
    font-size: 14px;
    display: flex;
    align-items: center;
}

.pagination__pages span:not(.nav_ext) {
    color: #fff; 
    background: var(--accent);
    border-color: var(--accent);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
}

.pagination__btns {
    height: 40px; 
    border-radius: 8px; 
    overflow: hidden; 
    background-color: var(--bg); 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    border: 1.5px solid rgba(var(--bdc-rgb), 0.3);
}

.pagination__btns > * {
    width: 44px; 
    display: grid; 
    place-items: center; 
    color: var(--accent); 
    font-size: 18px;
    transition: all 0.2s ease;
    cursor: pointer;
    border-right: 1px solid rgba(var(--bdc-rgb), 0.2);
}

.pagination__btns > *:last-child {
    border-right: none;
}

.pagination__btns > *:hover {
    background: rgba(var(--accent-rgb), 0.1);
}

.pagination__btns > span {
    color: rgba(var(--tt-rgb), 0.3);
    cursor: not-allowed;
}

.pagination__btns > span:hover {
    background: none;
}

.pm th{
    text-align: left;
    font-weight: 500;
    white-space: nowrap;
}
.pm th.pm_checkbox {
	text-align: center;
}
.pm_list.pm_subj, .pm_list.pm_icon, .pm_list.pm_last_user {
 cursor: pointer;
}
.pm_list.pm_icon svg {
	width: 1.4rem;
	height: 1.4rem;
	vertical-align: middle;
}

.pm_list.pm_icon.pm-unread-image {
 color: #3394e6;
}
.pm td.pm_list.pm_icon, .userstop td, th.pm_head.pm_icon {
	border-bottom: none;
}
.pm_list.pm_icon.pm-reply-image {
	color: #087e02c4;
}
.pm_list.pm_icon.pm-read-image {
	color: #afafaf;
}

.pm_list .pm_last_message, .pm_list .pm_last_date, .pm_list .pm_with_user {
	color: #64748b;
	font-size: .8rem;
}
.pm tbody > tr:hover {
    background-color: #e2e8f099;
}
.pm_navigation {
	margin-top: 1rem;
}
.pm_navigation .navigation {
	display: inline-block;
	color: #333333;
	background-color: #f5f5f5;
	border-radius: 0.188rem;
	padding: .4rem;
}

.pm_navigation .navigation a, .pm_navigation .navigation span {
    padding: 0.5rem;
    min-width: 2.25rem;
}
.pm_navigation .navigation span {
    background-color: #4581d0;
    color: #fff;
}
.pm_navigation .navigation a {
    text-decoration: none;
    color: #000;
}
.pm_navigation .navigation a:hover {
    background-color: #e2e8f0;
}

.pagination__btn-loader.hide-if-no-icon,
.pagination__btn-loader:not(:has(a[href])) {
    display: none !important;
}

.pagination__btn-loader a {
    min-width: 360px;
    height: 44px;
    padding: 0 24px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
    border: none;
}

.pagination__btn-loader a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.4);
    background: var(--accent);
    filter: brightness(1.05);
}


/* INNER PAGE — Late-night screening identity
----------------------------------------------- */
article.qapo {
    /* Palette: cool stage ink + warm projection lamp */
    --qapo-ink: #0c1018;
    --qapo-ink-rgb: 12, 16, 24;
    --qapo-stage: #141a24;
    --qapo-stage-rgb: 20, 26, 36;
    --qapo-fog: #7d8aa0;
    --qapo-fog-rgb: 125, 138, 160;
    --qapo-lamp: #c48a2e;
    --qapo-lamp-rgb: 196, 138, 46;
    --qapo-ember: #a86818;
    --qapo-screen: rgba(255, 252, 246, 0.94);
    --qapo-glass: rgba(255, 252, 246, 0.78);
    --qapo-glass-edge: rgba(20, 24, 32, 0.1);
    --qapo-pad-x: var(--indent);
    --qapo-pad-y: clamp(20px, 4.2vw, 28px);
    --qapo-gap-stage: 6px;
    --qapo-gap-lobby: 18px;
    /* Единая типографика fullstory */
    --qapo-font-display: "Bricolage Grotesque", var(--font-display), system-ui, sans-serif;
    --qapo-fs-h1: clamp(24px, 4.4vw, 32px);
    --qapo-fs-h2: clamp(18px, 2.4vw, 22px);
    --qapo-fs-body: 15px;
    --qapo-fs-sm: 14px;
    --qapo-fs-ui: 13px;
    --qapo-fs-xs: 12px;
    --qapo-fs-2xs: 12px;
    --qapo-lh-body: 1.65;
    --qapo-lh-ui: 1.45;
    --qapo-lh-heading: 1.28;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--qapo-gap-lobby);
    min-width: 0;
    max-width: 100%;
    isolation: isolate;
}

.qapo__bg {
    position: relative;
    margin: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    border-radius: 0;
    overflow: visible;
    z-index: 0;
}

/* Signature: soft poster glow (no hard rect silhouette) */
.qapo__ambient {
    position: absolute;
    left: 50%;
    top: -18%;
    z-index: 0;
    width: min(160%, 1680px);
    height: min(78vh, 860px);
    transform: translateX(-50%);
    pointer-events: none;
    overflow: visible;
    border-radius: 0;
    mask-image: radial-gradient(ellipse 68% 62% at 50% 28%, #000 0%, rgba(0, 0, 0, 0.55) 42%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 68% 62% at 50% 28%, #000 0%, rgba(0, 0, 0, 0.55) 42%, transparent 72%);
}

.qapo__ambient-img {
    position: absolute;
    left: 50%;
    top: 8%;
    width: 92%;
    height: 92%;
    max-width: none;
    object-fit: cover;
    object-position: center 20%;
    transform: translateX(-50%) scale(1.35);
    filter: blur(80px) saturate(1.4) brightness(1.02);
    opacity: 0.42;
    border-radius: 50%;
}

.qapo__ambient-veil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 58% 48% at 50% 26%, rgba(var(--qapo-lamp-rgb), 0.28) 0%, transparent 68%),
        radial-gradient(ellipse 80% 70% at 50% 40%, rgba(var(--qapo-ink-rgb), 0.04) 0%, transparent 70%);
}

.qapo__ambient-grain {
    display: none;
}

.dt .qapo__ambient-img {
    filter: blur(88px) saturate(1.5) brightness(0.62);
    opacity: 0.58;
}

.dt .qapo__ambient-veil {
    background:
        radial-gradient(ellipse 55% 45% at 50% 22%, rgba(var(--qapo-lamp-rgb), 0.32) 0%, transparent 64%),
        radial-gradient(ellipse 75% 65% at 50% 38%, rgba(var(--qapo-ink-rgb), 0.45) 0%, transparent 72%);
}

.dt .qapo__ambient-grain {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .qapo__ambient-img {
        filter: blur(64px) saturate(1.2) brightness(1);
        transform: translateX(-50%) scale(1.2);
    }
}

@media (max-width: 767px) {
    .qapo__ambient {
        top: -10%;
        width: 180%;
        height: min(62vh, 560px);
        mask-image: radial-gradient(ellipse 78% 68% at 50% 24%, #000 0%, rgba(0, 0, 0, 0.45) 40%, transparent 70%);
        -webkit-mask-image: radial-gradient(ellipse 78% 68% at 50% 24%, #000 0%, rgba(0, 0, 0, 0.45) 40%, transparent 70%);
    }

    .qapo__ambient-img {
        filter: blur(64px) saturate(1.3) brightness(1.02);
        opacity: 0.36;
        transform: translateX(-50%) scale(1.45);
    }

    .dt .qapo__ambient-img {
        opacity: 0.5;
    }

    article.qapo {
        --qapo-gap-lobby: 14px;
        --qapo-gap-stage: 4px;
    }
}

.qapo__bg > main,
.qapo__article-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--qapo-gap-lobby);
    min-width: 0;
}

/* Stage: hero + player sit closer as one watch unit */
.qapo__article-body > .qapo__float--hero {
    margin-bottom: 0;
}

.qapo__article-body > .qapo__float--hero + .qapo__float--player {
    margin-top: calc(var(--qapo-gap-stage) - var(--qapo-gap-lobby));
}

/* Fullstory: заголовки секций и «брови» блоков */
article.qapo .qapo__heading {
    font-family: var(--qapo-font-display);
    font-size: var(--qapo-fs-h2);
    font-weight: 700;
    line-height: var(--qapo-lh-heading);
    letter-spacing: -0.03em;
    position: relative;
    padding-left: 14px;
    max-width: none;
    text-wrap: wrap;
}

article.qapo h1,
article.qapo h2,
article.qapo h3,
article.qapo h4 {
    text-wrap: wrap;
}

article.qapo .qapo__heading::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18em;
    bottom: 0.18em;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--qapo-lamp) 0%, var(--qapo-ember) 100%);
    box-shadow: 0 0 12px rgba(var(--qapo-lamp-rgb), 0.35);
}

article.qapo :is(.qapo__section-title, .qapo__rating-panel-label) {
    font-family: var(--qapo-font-display);
    font-size: var(--qapo-fs-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.3;
    color: rgba(var(--qapo-fog-rgb), 0.95);
}

article.qapo .qapo__text-body,
article.qapo .qapo__text .full-text,
article.qapo .full-text.qapo__text {
    font-size: var(--qapo-fs-body);
    line-height: var(--qapo-lh-body);
}

article.qapo .qapo__text-muted {
    font-size: var(--qapo-fs-sm);
    line-height: var(--qapo-lh-ui);
}

article.qapo .qapo__text-ui {
    font-size: var(--qapo-fs-ui);
    line-height: var(--qapo-lh-ui);
}

/* Fullstory: без «тёмных канав» между карточками в тёмной теме */
.dt article.qapo {
    gap: var(--qapo-gap-lobby);
    --qapo-glass: rgba(18, 22, 32, 0.72);
    --qapo-glass-edge: rgba(255, 255, 255, 0.08);
    --qapo-screen: rgba(16, 20, 28, 0.88);
}

.dt article.qapo .qapo__float,
.dt article.qapo .qapo__float--related.taskir {
    background-color: var(--qapo-screen);
    background-image: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, transparent 42%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 12px 36px rgba(0, 0, 0, 0.28);
}

.dt article.qapo .qapo__float--related.taskir {
    background: var(--qapo-screen);
}

.qapo__float {
	position: relative;
	z-index: 1;
    width: 100%;
    max-width: 100%;
    border-radius: calc(var(--radius-lg) + 2px);
    background-color: var(--qapo-screen);
    outline: 1px solid var(--qapo-glass-edge);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.55) inset,
        0 10px 32px rgba(var(--qapo-ink-rgb), 0.07),
        0 2px 6px rgba(var(--qapo-ink-rgb), 0.04);
    overflow: visible;
    box-sizing: border-box;
}

body:not(.dt) article.qapo .qapo__float {
    outline-color: rgba(var(--bdc-rgb), 0.55);
    background: rgba(255, 252, 246, 0.92);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92) inset,
        0 12px 36px rgba(var(--qapo-ink-rgb), 0.08),
        0 2px 8px rgba(var(--qapo-ink-rgb), 0.04);
}

body:not(.dt) article.qapo .qapo__float--hero,
body:not(.dt) article.qapo .qapo__float--player {
    background: var(--qapo-glass);
    backdrop-filter: blur(12px) saturate(1.1);
    -webkit-backdrop-filter: blur(12px) saturate(1.1);
}

.dt .qapo__float {
	z-index: 1;
    background-color: var(--qapo-screen);
    outline-color: rgba(255, 255, 255, 0.07);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 0 0 1px rgba(0, 0, 0, 0.35),
        0 16px 48px rgba(0, 0, 0, 0.38);
}

/* Hero + player: elevated stage panels */
article.qapo .qapo__float--hero,
article.qapo .qapo__float--player {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.65) inset,
        0 18px 48px rgba(var(--qapo-ink-rgb), 0.1),
        0 0 0 1px rgba(var(--qapo-lamp-rgb), 0.08);
}

article.qapo .qapo__float--player:has(.qapo__player-share-menu[open]) {
    z-index: 12;
}

.dt article.qapo .qapo__float--hero,
.dt article.qapo .qapo__float--player {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 20px 56px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(var(--qapo-lamp-rgb), 0.12),
        0 0 40px -12px rgba(var(--qapo-lamp-rgb), 0.18);
}

/* Скругление контента героя без overflow:hidden на самой карточке — тень не режется */
.qapo__float--hero > .qapo__cols {
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.qapo__float--hero:has(.mylists-dropdown.is-open),
.qapo__float--hero:has(.qapo__parental-hint.is-open),
.qapo__float--hero:has(.qapo__parental-hint:focus-within) {
	z-index: 40;
	position: relative;
}

.mylists-page__header {flex-direction:column;}

.qapo__float--hero:has(.qapo__age-badge.is-open),
.qapo__float--hero:has(.qapo__age-badge:hover),
.qapo__float--hero:has(.qapo__age-badge:focus-within) {
	z-index: 40;
	position: relative;
}

.qapo__float--hero > .qapo__cols:has(.mylists-dropdown.is-open),
.qapo__float--hero > .qapo__cols:has(.qapo__age-badge:hover),
.qapo__float--hero > .qapo__cols:has(.qapo__age-badge:focus-within),
.qapo__float--hero > .qapo__cols:has(.qapo__age-badge.is-open),
.qapo__float--hero > .qapo__cols:has(.qapo__parental-hint:hover),
.qapo__float--hero > .qapo__cols:has(.qapo__parental-hint:focus-within),
.qapo__float--hero > .qapo__cols:has(.qapo__parental-hint.is-open) {
	overflow: visible;
}

.qapo__info:has(.qapo__parental-hint.is-open),
.qapo__info:has(.qapo__parental-hint:focus-within),
.qapo__info:has(.qapo__parental-hint:hover),
.qapo__dossier:has(.qapo__parental-hint.is-open),
.qapo__dossier:has(.qapo__parental-hint:focus-within),
#qapo-info-panel-meta:has(.qapo__parental-hint.is-open),
#qapo-info-panel-meta:has(.qapo__parental-hint:focus-within),
.qapo__main-parental:has(.qapo__parental-hint.is-open),
.qapo__main-parental:has(.qapo__parental-hint:focus-within),
.qapo__parental-section:has(.qapo__parental-hint.is-open),
.qapo__parental-section:has(.qapo__parental-hint:focus-within) {
	overflow: visible;
	position: relative;
	z-index: 5;
}

.qapo__float--comments {
	position: relative;
	z-index: 1;
    margin: 0;
}

.qapo__float--schedule {
    position: relative;
    z-index: 1;
    margin: 0;
    overflow-x: clip;
    max-width: 100%;
}

.qapo__float--schedule .qapo__cols-left {
    padding-bottom: var(--qapo-pad-y, 28px);
    min-width: 0;
    overflow-x: clip;
}

.qapo__float--comments .qapo__cols-left {
    padding-bottom: var(--qapo-pad-y, 28px);
}

.qapo__float--related.taskir {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: var(--qapo-pad-y, 24px) var(--indent) calc(var(--qapo-pad-y, 24px) + 4px);
	border: none;
	border-radius: calc(var(--radius-lg) + 2px);
	overflow: visible;
	box-sizing: border-box;
	background:
		radial-gradient(ellipse 70% 55% at 12% 0%, rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.12) 0%, transparent 58%),
		var(--qapo-screen, var(--bg));
	content-visibility: auto;
	contain-intrinsic-size: auto 320px;
	color: rgba(var(--tt-rgb), 0.82);
	outline: 1px solid rgba(var(--bdc-rgb), 0.38);
	box-shadow: none;
}

.dt .qapo__float--related.taskir {
	background:
		radial-gradient(ellipse 65% 50% at 10% 0%, rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.16) 0%, transparent 55%),
		linear-gradient(165deg, #12151f 0%, #0b0d14 48%, #060708 100%);
	color: rgba(var(--tt-rgb), 0.88);
	outline-color: rgba(255, 255, 255, 0.1);
	box-shadow: none;
}

/* П.7: витрина «после просмотра» */
.qapo__related-head.taskir__head {
	margin: 0 0 14px;
}

.qapo__float--related.taskir .taskir__caption {
	margin-bottom: 0;
	padding-left: 0;
	font-size: clamp(16px, 2vw, 19px);
	font-weight: 700;
	line-height: var(--qapo-lh-heading, 1.25);
	letter-spacing: -0.02em;
	color: rgba(var(--tt-rgb), 0.78);
}

.qapo__related-rail {
	margin-inline: calc(var(--indent) * -0.15);
	padding-inline: calc(var(--indent) * 0.15);
}

.qapo__float--related .lodyt {
	transform: none;
}

.qapo__float--related .lodyt:hover,
.qapo__float--related .lodyt:focus-within {
	transform: none;
}

.qapo__float--related .lodyt__title {
	font-family: var(--qapo-font-display, var(--font-display));
	font-weight: 600;
	letter-spacing: -0.02em;
}

.qapo__float--related .lodyt__play {
	background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.92);
	color: #1a1208;
}

.qapo__cols {
    display: block;
}

.qapo__cols-left {
    padding: var(--qapo-pad-y, 28px) var(--qapo-pad-x, 28px) 0;
    box-sizing: border-box;
}

/* Слева постер, справа заголовок + факты; снизу сюжет на всю ширину */
.qapo__main {
    display: grid;
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    grid-template-areas:
        "poster header"
        "poster info"
        "plot plot";
    gap: 18px 32px;
    align-items: start;
    margin-bottom: 28px;
}

.qapo__main-plot {
    grid-area: plot;
    min-width: 0;
}

.qapo__main-parental {
    min-width: 0;
}

@media (max-width: 1100px) and (min-width: 761px) {
    .qapo__main {
        grid-template-columns: minmax(168px, 200px) minmax(0, 1fr);
        gap: 16px 22px;
    }

    .qapo__poster-shell {
        max-width: 200px;
    }
}

.qapo__poster-shell {
    grid-area: poster;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 240px;
}

.qapo__header {
    grid-area: header;
    min-width: 0;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qapo__info {
    grid-area: info;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.qapo__poster {
    position: relative;
    margin: 0;
    border-radius: calc(var(--radius-md) + 2px); 
    overflow: visible; 
    box-shadow:
        0 18px 44px rgba(var(--qapo-ink-rgb, 15, 23, 42), 0.18),
        0 2px 8px rgba(var(--qapo-ink-rgb, 15, 23, 42), 0.08),
        0 0 0 1px rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.12);
    border: 1px solid rgba(var(--bdc-rgb), 0.4);
    background: var(--bg);
}

.qapo__poster .qapo__img {
    overflow: hidden;
    border-radius: inherit;
}

/* Логотип на постере: по hover вместо рейтинга, сезона и возраста */
.qapo__poster .qapo__poster-logo {
    position: absolute;
    inset: 0 0 auto;
    z-index: 11;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 14px 12px 28px;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(8, 10, 16, 0.88) 0%,
        rgba(8, 10, 16, 0.52) 52%,
        rgba(8, 10, 16, 0) 100%
    );
    transition:
        opacity 0.28s ease,
        visibility 0.28s ease,
        transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.qapo__poster .qapo__poster-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(88%, 196px);
    max-height: 76px;
    object-fit: contain;
    object-position: center top;
    filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.55));
}

.qapo__poster .qapo__poster-quality,
.qapo__poster .qapo__poster-rating,
.qapo__poster .qapo__age-badge {
    transition:
        opacity 0.22s ease,
        visibility 0.22s ease,
        transform 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
    .qapo__poster:has(.qapo__poster-logo):hover .qapo__poster-logo,
    .qapo__poster:has(.qapo__poster-logo):focus-within .qapo__poster-logo {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .qapo__poster:has(.qapo__poster-logo):hover .qapo__poster-quality,
    .qapo__poster:has(.qapo__poster-logo):hover .qapo__poster-rating,
    .qapo__poster:has(.qapo__poster-logo):hover .qapo__age-badge,
    .qapo__poster:has(.qapo__poster-logo):focus-within .qapo__poster-quality,
    .qapo__poster:has(.qapo__poster-logo):focus-within .qapo__poster-rating,
    .qapo__poster:has(.qapo__poster-logo):focus-within .qapo__age-badge {
        opacity: 0;
        visibility: hidden;
        transform: translateY(4px);
        pointer-events: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qapo__poster .qapo__poster-logo,
    .qapo__poster .qapo__poster-quality,
    .qapo__poster .qapo__poster-rating,
    .qapo__poster .qapo__age-badge {
        transition: none;
    }
}

.dt .qapo__poster {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.qapo__header .qapo__tagline {
    font-size: var(--qapo-fs-sm);
    line-height: 1.5;
    color: rgba(var(--tt-rgb), 0.72);
    font-weight: 400;
    margin: 10px 0 0;
    max-width: 52ch;
}

.qapo__header .qapo__title-row {
    position: relative;
    z-index: 2;
    margin-top: 8px;
    min-width: 0;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px 10px;
    overflow: visible;
}

.qapo__header .qapo__title-row .qapo__title-en {
    margin: 0;
    font-family: var(--qapo-font-display, 'Onest', system-ui, sans-serif);
    font-size: clamp(17px, 2.6vw, 21px);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: rgba(var(--tt-rgb), 0.78);
    max-width: none;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qapo__header .qapo__title-row .qapo__title-en-wrap {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}

.qapo__header .qapo__title-meta {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    min-width: 0;
    max-width: 100%;
}

.qapo__header .qapo__title-row:has(.qapo__title-meta) .qapo__title-en-wrap {
    max-width: none;
}

.qapo__header:has(.qapo__age-badge.is-open),
.qapo__header:has(.qapo__age-badge:hover),
.qapo__header:has(.qapo__age-badge:focus-within) {
    z-index: 8;
    overflow: visible;
}

.qapo__header .qapo__title-row--rates-only {
    justify-content: flex-start;
}

.qapo__header .qapo__scoreboard {
    display: inline-flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    grid-template-columns: none;
}

.qapo__header .qapo__scoreboard-item {
    min-height: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    background: rgba(var(--tt-rgb), 0.06);
    border: 1px solid rgba(var(--bdc-rgb), 0.4);
    gap: 5px;
}

.dt .qapo__header .qapo__scoreboard-item {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

.qapo__header .qapo__scoreboard-logo {
    width: 16px;
    height: 16px;
}

.qapo__header .qapo__scoreboard-item.imdb .qapo__scoreboard-logo {
    width: 24px;
}

.qapo__header .qapo__scoreboard-value {
    font-size: 13px;
}

.qapo__header-rates {
    margin-top: 0;
    flex: 0 0 auto;
}

.qapo__header-rates .qapo__rating-external-list {
    flex-wrap: nowrap;
    gap: 10px 14px;
    justify-content: flex-end;
}

.qapo__header-rates .qapo__rating-external-item {
    font-size: 14px;
    padding-left: 24px;
    background-size: 18px;
}

@media (max-width: 1100px) {
    .qapo__header .qapo__title-row {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .qapo__header .qapo__title-row .qapo__title-en-wrap {
        flex: 1 1 100%;
        min-width: 0;
        max-width: 100%;
    }

    .qapo__header .qapo__title-meta {
        flex: 1 1 100%;
        width: 100%;
        justify-content: flex-start;
    }

    .qapo__header .qapo__scoreboard {
        flex: 0 1 auto;
        width: auto;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .qapo__header .qapo__title-row {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        row-gap: 8px;
    }

    .qapo__header .qapo__title-row--rates-only {
        align-items: center;
    }

    .qapo__header .qapo__title-row .qapo__title-en {
        width: auto;
        max-width: 100%;
    }

    .qapo__header .qapo__title-row .qapo__title-en-wrap {
        justify-content: center;
        width: 100%;
        flex: 1 1 100%;
        min-width: 0;
        max-width: 100%;
    }

    .qapo__header .qapo__title-meta {
        justify-content: center;
    }

    .qapo__header .qapo__scoreboard {
        justify-content: center;
        flex-wrap: wrap;
    }

    .qapo__header-rates .qapo__rating-external-list {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.qapo__meta-tags--inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

.qapo__meta-season-ep {
    display: inline;
}

.qapo__meta-ep-total {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: var(--qapo-fs-2xs, 11px);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.95);
    background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.12);
    border: 1px solid rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.28);
}

.qapo__info-tabs .qapo__meta-row--parental-flat {
    column-span: all;
    display: grid !important;
    grid-template-columns: 1fr !important;
    column-gap: 0 !important;
    row-gap: 8px;
    align-items: stretch;
    padding: 8px 0 4px;
}

.qapo__info-tabs .qapo__meta-row--parental-flat dt,
.qapo__info-tabs .qapo__meta-row--parental-flat .qapo__parental-heading {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(var(--tt-rgb), 0.5);
    line-height: 1.35;
}

.qapo__parental-heading-text {
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
}

.qapo__parental-hint {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.35em;
    height: 1.35em;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    cursor: help;
    outline: none;
    vertical-align: middle;
    text-transform: none;
    letter-spacing: 0;
}

.qapo__parental-hint:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.qapo__parental-hint-icon {
    display: block;
    color: var(--accent);
    font-size: 12px;
    line-height: 1;
    width: 1em;
    height: 1em;
    text-align: center;
    opacity: 0.88;
    transition: opacity 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.qapo__parental-hint:hover .qapo__parental-hint-icon,
.qapo__parental-hint:focus-visible .qapo__parental-hint-icon,
.qapo__parental-hint.is-open .qapo__parental-hint-icon {
    opacity: 1;
    color: var(--accent-dark, var(--accent));
    transform: scale(1.06);
}

.qapo__parental-hint-tip {
    position: absolute;
    left: 50%;
    right: auto;
    top: calc(100% + 8px);
    bottom: auto;
    z-index: 10060;
    width: max-content;
    max-width: min(280px, calc(100vw - 24px));
    padding: 10px 12px;
    border-radius: 10px;
    font-size: var(--qapo-fs-xs, 12px);
    font-weight: 500;
    line-height: 1.45;
    color: #1a1f2e;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    background: #ffffff;
    border: 1px solid rgba(20, 24, 32, 0.14);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateX(calc(-50% + var(--pc-tip-shift, 0px)));
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    isolation: isolate;
}

.qapo__parental-hint.is-tip-above .qapo__parental-hint-tip {
    top: auto;
    bottom: calc(100% + 8px);
}

.qapo__parental-hint-tip::after {
    content: '';
    position: absolute;
    left: calc(50% - var(--pc-tip-shift, 0px));
    right: auto;
    top: auto;
    bottom: 100%;
    border: 6px solid transparent;
    border-bottom-color: #ffffff;
    transform: translateX(-50%);
    filter: drop-shadow(0 -1px 0 rgba(var(--bdc-rgb), 0.28));
}

.qapo__parental-hint.is-tip-above .qapo__parental-hint-tip::after {
    top: 100%;
    bottom: auto;
    border-bottom-color: transparent;
    border-top-color: #ffffff;
    filter: drop-shadow(0 1px 0 rgba(var(--bdc-rgb), 0.28));
}

.qapo__parental-hint:hover .qapo__parental-hint-tip,
.qapo__parental-hint:focus-visible .qapo__parental-hint-tip,
.qapo__parental-hint:focus-within .qapo__parental-hint-tip,
.qapo__parental-hint.is-open .qapo__parental-hint-tip {
    opacity: 1;
    visibility: visible;
}

.dt .qapo__parental-hint-tip {
    color: #f1f5f9;
    background: #1a2030;
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}

.dt .qapo__parental-hint-tip::after {
    border-bottom-color: #1a2030;
}

.dt .qapo__parental-hint.is-tip-above .qapo__parental-hint-tip::after {
    border-top-color: #1a2030;
    border-bottom-color: transparent;
}

.dt .qapo__parental-hint-icon {
    color: var(--accent-light, var(--accent));
}

@media (prefers-reduced-motion: reduce) {
    .qapo__parental-hint-tip {
        transition: none;
    }
}

@media (hover: none), (pointer: coarse), (max-width: 767px) {
    .qapo__float--player {
        position: relative;
        z-index: 1;
    }
}

.qapo__info-tabs .qapo__meta-row--parental-flat dd,
.qapo__parental-flat {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    min-width: 0;
}

/* Родительский контроль — всегда видимая сетка с уровнями */
.qapo__parental-board {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(var(--bdc-rgb), 0.22);
    border-radius: 12px;
    background: rgba(var(--bdc-rgb), 0.05);
    box-sizing: border-box;
}

.dt .qapo__parental-board {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.qapo__parental-board > .qapo__parental-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
    padding: 0 0 8px;
    border-bottom: 1px solid rgba(var(--bdc-rgb), 0.14);
}

.qapo__parental-board .qapo__parental-rows {
    padding: 0;
}

/* legacy accordion (если останется в кэше) */
.qapo__parental-acc {
    margin: 0;
    border: 1px solid rgba(var(--bdc-rgb), 0.22);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(var(--bdc-rgb), 0.05);
}

.dt .qapo__parental-acc {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.qapo__parental-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.qapo__parental-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    box-sizing: border-box;
    cursor: pointer;
    user-select: none;
    transition: background 0.18s ease;
}

.qapo__parental-trigger-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.qapo__parental-trigger-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(var(--tt-rgb), 0.72);
    line-height: 1.3;
}

.qapo__parental-summary {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.qapo__parental-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    border: 1px solid transparent;
}

.qapo__parental-chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.qapo__parental-chip--low {
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.28);
}

.qapo__parental-chip--low .qapo__parental-chip-dot {
    background: var(--green, #10b981);
}

.qapo__parental-chip--medium {
    color: #b45309;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.32);
}

.qapo__parental-chip--medium .qapo__parental-chip-dot {
    background: #f59e0b;
}

.qapo__parental-chip--high {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.28);
}

.qapo__parental-chip--high .qapo__parental-chip-dot {
    background: var(--red, #ef4444);
}

.qapo__parental-chip--neutral {
    color: rgba(var(--tt-rgb), 0.6);
    background: rgba(var(--bdc-rgb), 0.12);
    border-color: rgba(var(--bdc-rgb), 0.28);
}

.dt .qapo__parental-chip--low {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(52, 211, 153, 0.32);
}

.dt .qapo__parental-chip--medium {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(251, 191, 36, 0.35);
}

.dt .qapo__parental-chip--high {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(248, 113, 113, 0.35);
}

.qapo__parental-trigger-action {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    line-height: 1.2;
}

.qapo__parental-trigger-close {
    display: none;
}

.qapo__parental-input:checked + .qapo__parental-trigger {
    background: rgba(var(--accent-rgb), 0.06);
    border-bottom: 1px solid rgba(var(--bdc-rgb), 0.16);
}

.qapo__parental-input:checked + .qapo__parental-trigger .qapo__parental-trigger-open {
    display: none;
}

.qapo__parental-input:checked + .qapo__parental-trigger .qapo__parental-trigger-close {
    display: inline;
}

@media (hover: hover) {
    .qapo__parental-trigger:hover {
        background: rgba(var(--accent-rgb), 0.05);
    }
}

.qapo__parental-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
}

.qapo__parental-input:checked + .qapo__parental-trigger + .qapo__parental-panel {
    max-height: 480px;
}

.qapo__parental-rows {
    list-style: none;
    margin: 0;
    padding: 6px 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qapo__parental-row {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(52px, 0.85fr) auto;
    align-items: center;
    gap: 8px 10px;
    min-height: 28px;
    padding: 4px 0;
    border: 0;
    background: none;
}

.qapo__parental-row-label {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(var(--tt-rgb), 0.78);
    min-width: 0;
}

.qapo__parental-row-meter {
    display: block;
    min-width: 0;
}

.qapo__parental-row-meter-track {
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(var(--bdc-rgb), 0.28);
    overflow: hidden;
}

.qapo__parental-row-meter-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    width: 12%;
    background: rgba(var(--tt-rgb), 0.35);
    transition: width 0.25s ease, background 0.2s ease;
}

.qapo__parental-row--low .qapo__parental-row-meter-fill {
    width: 33%;
    background: var(--green, #10b981);
}

.qapo__parental-row--medium .qapo__parental-row-meter-fill {
    width: 66%;
    background: #f59e0b;
}

.qapo__parental-row--high .qapo__parental-row-meter-fill {
    width: 100%;
    background: var(--red, #ef4444);
}

.qapo__parental-row--neutral .qapo__parental-row-meter-fill {
    width: 16%;
    background: rgba(var(--tt-rgb), 0.35);
}

.qapo__parental-row-value {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: lowercase;
    letter-spacing: 0.01em;
    white-space: nowrap;
    color: rgba(var(--tt-rgb), 0.55);
}

.qapo__parental-row--low .qapo__parental-row-value {
    color: #047857;
}

.qapo__parental-row--medium .qapo__parental-row-value {
    color: #b45309;
}

.qapo__parental-row--high .qapo__parental-row-value {
    color: #b91c1c;
}

.dt .qapo__parental-row-label {
    color: rgba(var(--tt-rgb), 0.78);
}

.dt .qapo__parental-row--low .qapo__parental-row-value {
    color: #6ee7b7;
}

.dt .qapo__parental-row--medium .qapo__parental-row-value {
    color: #fcd34d;
}

.dt .qapo__parental-row--high .qapo__parental-row-value {
    color: #fca5a5;
}

@media (max-width: 719px) {
    .qapo__info-tabs .qapo__meta-row--parental-flat {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 10px;
        padding: 10px 0 4px;
    }

    .qapo__info-tabs .qapo__meta-row--parental-flat dt,
    .qapo__info-tabs .qapo__meta-row--parental-flat .qapo__parental-heading {
        padding: 0;
        margin: 0 0 2px;
        gap: 5px;
    }

    .qapo__parental-heading-text {
        white-space: nowrap;
    }

    .qapo__parental-board {
        padding: 10px;
    }

    .qapo__parental-acc {
        margin-top: 0;
    }

    .qapo__parental-trigger {
        padding: 8px 9px;
        gap: 8px;
    }

    .qapo__parental-trigger-title {
        display: none;
    }

    .qapo__parental-row {
        grid-template-columns: minmax(0, 1fr) minmax(48px, 0.7fr) auto;
        gap: 6px 8px;
        min-height: 26px;
        padding: 3px 0;
    }

    .qapo__parental-rows {
        padding: 0;
        gap: 2px;
    }

    .qapo__parental-acc .qapo__parental-rows {
        padding: 4px 9px 7px;
    }
}

.qapo__plot-acc {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(var(--bdc-rgb), 0.28);
}

.qapo__plot-acc-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.qapo__plot-acc-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    color: var(--tt-fade);
    cursor: pointer;
    user-select: none;
    transition: color 0.18s ease;
}

.qapo__plot-acc-trigger::after {
    content: "\f078";
    font-family: "Font Awesome 5 Pro";
    font-weight: 300;
    font-size: 12px;
    color: rgba(var(--tt-rgb), 0.45);
    transition: transform 0.22s ease, color 0.18s ease;
}

.qapo__plot-acc-input:checked + .qapo__plot-acc-trigger {
    color: var(--tt);
}

.qapo__plot-acc-input:checked + .qapo__plot-acc-trigger::after {
    transform: rotate(180deg);
    color: var(--accent);
}

.qapo__plot-acc-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.qapo__plot-acc-input:checked + .qapo__plot-acc-trigger + .qapo__plot-acc-panel {
    max-height: 4000px;
}

.qapo__plot-acc-panel .qapo__desc-text-wrap {
    padding-top: 10px;
    max-height: none;
}

.dt .qapo__plot-acc {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.dt .qapo__header .qapo__title-row .qapo__title-en {
    color: rgba(var(--tt-rgb), 0.88);
}

.qapo__slogan {
    margin: 4px 0 0;
    font-family: var(--qapo-font-display, var(--font-display));
    font-size: clamp(14px, 2.2vw, 16px);
    font-style: normal;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: rgba(var(--tt-rgb), 0.68);
    max-width: 46ch;
    padding-left: 12px;
    border-left: 2px solid rgba(var(--qapo-lamp-rgb, var(--accent-play-rgb)), 0.55);
}

.dt .qapo__slogan {
    color: rgba(var(--tt-rgb), 0.78);
    border-left-color: rgba(var(--qapo-lamp-rgb, var(--accent-play-rgb)), 0.65);
}

.dt .qapo__header .qapo__tagline {
    color: rgba(var(--tt-rgb), 0.78);
}

.qapo__edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.75rem;
    font-size: 14px;
    opacity: 0.5;
    color: rgba(var(--tt-rgb), 0.62);
    border-radius: 8px;
    transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.qapo__edit:hover {
    opacity: 1;
    color: var(--accent);
    background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.12);
}

.qapo__title-en-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}

.qapo__title-en-wrap .qapo__title-en {
    flex: 0 1 auto;
    min-width: 0;
}

.qapo__title-en-wrap > a,
.qapo__title-row > a:has(.qapo__edit) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    text-decoration: none;
    color: inherit;
}

.qapo__title-row > .qapo__edit,
.qapo__title-row > a:has(.qapo__edit) {
    margin-right: auto;
}

.qapo__section-title {
    color: rgba(var(--tt-rgb), 0.55);
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(var(--accent-rgb), 0.35);
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

body:not(.dt) .qapo__section-title {
    color: rgba(var(--tt-rgb), 0.78);
    border-bottom-color: rgba(var(--accent-rgb), 0.55);
}

.dt .qapo__section-title {
    color: rgba(var(--tt-rgb), 0.65);
}

.qapo__meta-block {
    flex-shrink: 0;
}

.qapo__meta-block > .qapo__section-title {
    margin-bottom: 10px;
}

/* Табы производственной информации — минималистичный стиль (Kinorium) */
.qapo__info-tabs {
    min-width: 0;
    font-family: 'Onest', system-ui, sans-serif;
    font-size: var(--qapo-fs-sm);
    line-height: var(--qapo-lh-ui);
}

article.qapo .qapo__info-tabs .tabs-block__content {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.qapo__info-tabs-nav {
    gap: 0;
    margin: 0 0 18px;
    padding: 0;
    border-bottom: 1px solid rgba(var(--bdc-rgb), 0.55);
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.qapo__info-tabs-nav:has(button:only-child) {
    display: none;
    margin-bottom: 0;
    border-bottom: none;
}

.qapo__info-tabs-nav::-webkit-scrollbar {
    display: none;
}

.qapo__info-tabs-nav button {
    flex: 0 0 auto;
    margin: 0;
    padding: 12px 16px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: rgba(var(--tt-rgb), 0.55);
    font-family: inherit;
    font-size: var(--qapo-fs-sm);
    font-weight: 600;
    line-height: 1.35;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    position: relative;
    transition: color 0.2s ease;
}

.qapo__info-tabs-nav button::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: -1px;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: transparent;
    transition: background 0.2s ease;
}

.qapo__info-tabs-nav button:hover {
    color: var(--tt);
    background: transparent;
}

.qapo__info-tabs-nav button:focus-visible {
    outline: 2px solid rgba(var(--accent-rgb), 0.85);
    outline-offset: -2px;
}

.qapo__info-tabs-nav button.is-active {
    color: var(--tt);
    font-weight: 800;
    background: transparent;
    box-shadow: none;
}

.qapo__info-tabs-nav button.is-active::after {
    background: var(--accent);
}

.dt .qapo__info-tabs-nav {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.dt .qapo__info-tabs-nav button {
    color: rgba(var(--tt-rgb), 0.62);
}

.dt .qapo__info-tabs-nav button:hover,
.dt .qapo__info-tabs-nav button.is-active {
    color: #fff;
}

.qapo__info-tabs .tabs-block__content {
    min-height: 0;
    max-height: none;
    overflow: visible;
}

.qapo__info-tabs .tabs-block__content::before {
    content: none;
    display: none;
}

.qapo__meta--flat {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    font-size: var(--qapo-fs-sm, 14px);
    line-height: 1.45;
}

.qapo__meta--flat .qapo__meta-row {
    display: grid;
    grid-template-columns: 8.25rem minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 4px;
    padding: 10px 0;
    margin: 0;
    border: none;
    border-bottom: 1px solid rgba(var(--bdc-rgb), 0.28);
    border-radius: 0;
    background: none;
    box-shadow: none;
    align-items: start;
    min-width: 0;
}

.qapo__meta--flat .qapo__meta-row:last-child {
    border-bottom: none;
    padding-bottom: 2px;
}

.qapo__meta--flat .qapo__meta-row--wide {
    grid-template-columns: 8.25rem minmax(0, 1fr);
    column-gap: 16px;
}

.qapo__meta--flat .qapo__meta-row dt {
    margin: 0;
    padding-top: 2px;
    font-size: var(--qapo-fs-2xs, 11px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(var(--tt-rgb), 0.58);
    line-height: 1.35;
}

body:not(.dt) .qapo__meta--flat .qapo__meta-row dt {
    color: rgba(var(--tt-rgb), 0.55);
}

.qapo__meta--flat .qapo__meta-row dd {
    margin: 0;
    min-width: 0;
    font-weight: 500;
    font-size: var(--qapo-fs-sm, 14px);
    line-height: 1.5;
    color: rgba(var(--tt-rgb), 0.92);
    word-break: break-word;
}

body:not(.dt) .qapo__meta--flat .qapo__meta-row dd {
    color: var(--tt);
}

.qapo__meta--flat .qapo__meta-tags {
    display: block;
    gap: 0;
}

.qapo__meta--flat .qapo__meta-tags a {
    display: inline;
    position: relative;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    min-width: 0;
    font-size: inherit;
    font-weight: 500;
    line-height: inherit;
    letter-spacing: 0;
    text-transform: none;
    color: var(--accent);
    text-decoration: none;
    animation: none;
    transition: color 0.15s ease;
}

.qapo__meta--flat .qapo__meta-tags a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.06em;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.qapo__meta--flat .qapo__meta-tags .status__info {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.01em;
    text-transform: none;
    vertical-align: baseline;
    min-width: 0;
    box-shadow: none;
    backdrop-filter: none;
    animation: none;
    text-decoration: none;
    opacity: 1;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.qapo__meta--flat .qapo__meta-tags .status__info::before,
.qapo__meta--flat .qapo__meta-tags .status__info::after {
    display: none;
}

.qapo__meta--flat .qapo__meta-tags .status__completed {
    color: #047857;
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.28);
}

.qapo__meta--flat .qapo__meta-tags .status__airing {
    color: var(--green);
    background: rgba(var(--green-rgb), 0.16);
    border-color: rgba(var(--green-rgb), 0.32);
}

.qapo__meta--flat .qapo__meta-tags .status__paused {
    color: #b45309;
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.32);
}

.qapo__meta--flat .qapo__meta-tags .status__upcoming {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(59, 130, 246, 0.28);
}

.qapo__meta--flat .qapo__meta-tags .status__cancelled {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.28);
    text-decoration: none;
}

.qapo__meta--flat .qapo__meta-tags .status__production {
    color: #6d28d9;
    background: rgba(139, 92, 246, 0.14);
    border-color: rgba(139, 92, 246, 0.28);
}

body.dt .qapo__meta--flat .qapo__meta-tags .status__completed {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(52, 211, 153, 0.35);
}

body.dt .qapo__meta--flat .qapo__meta-tags .status__airing {
    color: var(--green);
    background: rgba(var(--green-rgb), 0.2);
    border-color: rgba(var(--green-rgb), 0.35);
}

body.dt .qapo__meta--flat .qapo__meta-tags .status__paused {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(251, 191, 36, 0.38);
}

body.dt .qapo__meta--flat .qapo__meta-tags .status__upcoming {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(96, 165, 250, 0.38);
}

body.dt .qapo__meta--flat .qapo__meta-tags .status__cancelled {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(248, 113, 113, 0.35);
}

body.dt .qapo__meta--flat .qapo__meta-tags .status__production {
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(167, 139, 250, 0.38);
}

.qapo__meta--flat .qapo__meta-tags a:hover {
    color: var(--accent-dark, var(--accent));
    text-decoration: none;
    background: none;
}

.qapo__meta--flat .qapo__meta-tags a:hover::after {
    transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
    .qapo__meta--flat .qapo__meta-tags a::after {
        transition: none;
        transform: scaleX(1);
    }
}

.qapo__info-plot {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(var(--bdc-rgb), 0.28);
}

/* Один dossier: сюжет + производственная инфа в общей рамке */
.qapo__dossier {
    position: relative;
    margin-top: 8px;
    padding: 16px 18px 14px;
    border-radius: 14px;
    border: 1px solid rgba(var(--bdc-rgb), 0.32);
    background:
        linear-gradient(160deg, rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.06) 0%, transparent 40%),
        rgba(var(--bg-rgb), 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.dt .qapo__dossier {
    border-color: rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(160deg, rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.1) 0%, transparent 42%),
        rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.qapo__info-tabs > .qapo__dossier > .qapo__info-plot,
.qapo__dossier > .qapo__info-plot {
    margin: 0 0 16px;
    padding: 0 0 16px;
    border-top: none;
    border-bottom: 1px solid rgba(var(--bdc-rgb), 0.28);
}

.dt .qapo__dossier > .qapo__info-plot {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.qapo__info-tabs > .qapo__info-plot {
    margin: 0 0 24px;
    padding: 0;
    border-top: none;
    border-bottom: none;
}

.qapo__info-tabs > .qapo__info-plot .qapo__desc-expand-wrap,
.qapo__info-tabs > .qapo__info-plot.qapo__desc-expand-wrap {
    margin-bottom: 0;
}

.qapo__info-tabs > .qapo__info-plot .qapo__desc-text-wrap,
.qapo__dossier > .qapo__info-plot .qapo__desc-text-wrap,
.qapo__main-plot .qapo__desc-text-wrap {
    max-height: var(--qapo-desc-collapsed, 9.75rem);
}

.qapo__info-tabs > .qapo__info-plot.is-expanded .qapo__desc-text-wrap,
.qapo__dossier > .qapo__info-plot.is-expanded .qapo__desc-text-wrap,
.qapo__main-plot.is-expanded .qapo__desc-text-wrap {
    max-height: none;
}

.dt .qapo__info-plot {
    border-top-color: rgba(255, 255, 255, 0.08);
}

#qapo-info-panel-meta {
    position: relative;
    margin-top: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.dt #qapo-info-panel-meta {
    border: 0;
    background: transparent;
    box-shadow: none;
}

/* Внутри dossier slate без второй «карточки» */
.qapo__dossier #qapo-info-panel-meta .qapo__slate {
    background: none;
    border: 0;
}

.dt .qapo__dossier #qapo-info-panel-meta .qapo__slate {
    background: none;
    border: 0;
}

/* Сюжет внутри табов — та же типографика, что у мета / графика / актёров */
.qapo__info-tabs .qapo__info-plot {
    font-family: 'Onest', system-ui, sans-serif;
    font-size: var(--qapo-fs-sm);
    line-height: var(--qapo-lh-ui);
    color: var(--tt);
}

/* Заголовки блоков dossier — один стиль */
.qapo__info-meta-title,
.qapo__info-tabs .qapo__info-plot-title,
.qapo__main-plot .qapo__info-plot-title,
#qapo-info-panel-meta .qapo__info-meta-title {
    display: block;
    margin: 0 0 8px;
    padding: 0;
    border: none;
    font-family: var(--font-body, 'Onest', system-ui, sans-serif);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.01em;
    text-transform: none;
    color: rgba(var(--tt-rgb), 0.78);
    gap: 0;
}

#qapo-info-panel-meta .qapo__info-meta-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.55em;
    row-gap: 2px;
}

.qapo__info-meta-title::before {
    content: none;
    display: none;
}

.dt .qapo__info-meta-title,
.dt .qapo__info-tabs .qapo__info-plot-title,
.dt .qapo__main-plot .qapo__info-plot-title,
.dt #qapo-info-panel-meta .qapo__info-meta-title {
    color: rgba(var(--tt-rgb), 0.84);
}

#qapo-info-panel-meta .qapo__info-meta-title-text {
    flex: 0 0 auto;
    min-width: 0;
}

#qapo-info-panel-meta .qapo__info-meta-title-sep {
    display: none;
}

#qapo-info-panel-meta .qapo__info-meta-facts {
    display: none;
    flex: 1 1 12rem;
    min-width: 0;
    flex-wrap: wrap;
    align-items: baseline;
    font-weight: 500;
    color: rgba(var(--tt-rgb), 0.62);
}

#qapo-info-panel-meta .qapo__info-meta-title:has(.qapo__info-meta-fact) .qapo__info-meta-facts {
    display: inline-flex;
}

#qapo-info-panel-meta .qapo__info-meta-title:has(.qapo__info-meta-fact) .qapo__info-meta-facts::before {
    content: "·";
    flex: 0 0 auto;
    margin-right: 0.4em;
    font-weight: 600;
    color: rgba(var(--tt-rgb), 0.34);
}

#qapo-info-panel-meta .qapo__info-meta-fact {
    display: inline;
    min-width: 0;
}

#qapo-info-panel-meta .qapo__info-meta-fact + .qapo__info-meta-fact::before {
    content: "·";
    display: inline-block;
    margin: 0 0.4em;
    font-weight: 600;
    color: rgba(var(--tt-rgb), 0.34);
}

.dt #qapo-info-panel-meta .qapo__info-meta-facts {
    color: rgba(var(--tt-rgb), 0.58);
}

.dt #qapo-info-panel-meta .qapo__info-meta-title:has(.qapo__info-meta-fact) .qapo__info-meta-facts::before,
.dt #qapo-info-panel-meta .qapo__info-meta-fact + .qapo__info-meta-fact::before {
    color: rgba(var(--tt-rgb), 0.32);
}

/*
 * Meta sheet — единый скан label|value как у HDRezka, без rail/фонов на dl.
 * Общая ширина метки → факты и съёмка в одной колонке.
 */
#qapo-info-panel-meta {
    --qapo-label-w: 7.75rem;
}

/* Единый sheet-контракт: label | value, без tint/rail/!important */
#qapo-info-panel-meta .qapo__sheet,
#qapo-info-panel-meta .qapo__sheet-list,
#qapo-info-panel-meta .qapo__sheet-row,
#qapo-info-panel-meta .qapo__sheet-label,
#qapo-info-panel-meta .qapo__sheet-value {
    background: transparent;
}

#qapo-info-panel-meta .qapo__sheet {
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
}

#qapo-info-panel-meta .qapo__sheet-list {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
}

#qapo-info-panel-meta .qapo__sheet-row {
    display: grid;
    grid-template-columns: var(--qapo-label-w) minmax(0, 1fr);
    column-gap: 16px;
    align-items: baseline;
    margin: 0;
    padding: 7px 0;
    min-width: 0;
    border: 0;
    border-bottom: 1px solid rgba(var(--bdc-rgb), 0.11);
}

#qapo-info-panel-meta .qapo__sheet-list > .qapo__sheet-row:last-child {
    border-bottom: 0;
}

#qapo-info-panel-meta .qapo__sheet-label {
    margin: 0;
    padding: 0;
    font-family: var(--font-body, 'Onest', system-ui, sans-serif);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(var(--tt-rgb), 0.5);
}

.dt #qapo-info-panel-meta .qapo__sheet-label {
    color: rgba(var(--tt-rgb), 0.48);
}

#qapo-info-panel-meta .qapo__sheet-value {
    margin: 0;
    padding: 0;
    min-width: 0;
    font-family: var(--font-body, 'Onest', system-ui, sans-serif);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
    color: rgba(var(--tt-rgb), 0.92);
}

#qapo-info-panel-meta .qapo__meta-compose {
    display: inline;
    line-height: 1.45;
}

#qapo-info-panel-meta .qapo__meta-compose-item,
#qapo-info-panel-meta .qapo__meta-compose-sep {
    display: inline;
    vertical-align: baseline;
}

#qapo-info-panel-meta .qapo__meta-compose-sep {
    color: rgba(var(--tt-rgb), 0.34);
    font-weight: 600;
    user-select: none;
}

#qapo-info-panel-meta .qapo__meta-compose-item--status {
    display: inline;
    white-space: nowrap;
}

/* Статус в sheet — только цвет текста, без pill/emoji/min-width из .status__* */
#qapo-info-panel-meta .qapo__meta-compose .status__info,
#qapo-info-panel-meta .qapo__sheet-value .status__info {
    display: inline;
    align-items: unset;
    justify-content: unset;
    position: static;
    margin: 0;
    padding: 0;
    min-width: 0;
    max-width: none;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    font-size: inherit;
    font-weight: 700;
    line-height: inherit;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    text-align: inherit;
    opacity: 1;
    animation: none;
    transition: color 0.15s ease;
    vertical-align: baseline;
}

#qapo-info-panel-meta .qapo__meta-compose .status__info::before,
#qapo-info-panel-meta .qapo__meta-compose .status__info::after,
#qapo-info-panel-meta .qapo__sheet-value .status__info::before,
#qapo-info-panel-meta .qapo__sheet-value .status__info::after {
    content: none;
    display: none;
    margin: 0;
}

#qapo-info-panel-meta .status__completed,
#qapo-info-panel-meta .status__airing,
#qapo-info-panel-meta .status__paused,
#qapo-info-panel-meta .status__upcoming,
#qapo-info-panel-meta .status__cancelled,
#qapo-info-panel-meta .status__production {
    background: none;
    border: 0;
    box-shadow: none;
    animation: none;
    text-decoration: none;
    opacity: 1;
    transform: none;
}

#qapo-info-panel-meta .status__completed { color: #059669; }
#qapo-info-panel-meta .status__airing { color: #2563eb; }
#qapo-info-panel-meta .status__paused { color: #d97706; }
#qapo-info-panel-meta .status__upcoming { color: #7c3aed; }
#qapo-info-panel-meta .status__cancelled { color: #dc2626; }
#qapo-info-panel-meta .status__production { color: #0f766e; }

.dt #qapo-info-panel-meta .status__completed { color: #34d399; }
.dt #qapo-info-panel-meta .status__airing { color: #60a5fa; }
.dt #qapo-info-panel-meta .status__paused { color: #fbbf24; }
.dt #qapo-info-panel-meta .status__upcoming { color: #a78bfa; }
.dt #qapo-info-panel-meta .status__cancelled { color: #f87171; }
.dt #qapo-info-panel-meta .status__production { color: #2dd4bf; }

#qapo-info-panel-meta .qapo__sheet-row--links .qapo__meta-tags {
    display: inline;
    font-size: inherit;
    line-height: 1.5;
    font-weight: 600;
}

#qapo-info-panel-meta .qapo__sheet-row--links .qapo__meta-tags a {
    color: rgba(var(--tt-rgb), 0.9);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.3);
    background: none;
    padding: 0;
}

#qapo-info-panel-meta .qapo__sheet-row--links .qapo__meta-tags a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

#qapo-info-panel-meta .qapo__sheet-row--links .qapo__meta-tags a::after {
    display: none;
}

#qapo-info-panel-meta .qapo__sheet-row--genres:not(.is-expanded) .js-genre-tags > a:nth-of-type(n+5),
#qapo-info-panel-meta .qapo__sheet-row--genres:not(.is-expanded) .qapo__genre-extra {
    display: none !important;
}

#qapo-info-panel-meta .qapo__sheet-row--genres.is-expanded .qapo__genre-extra {
    display: inline;
}

#qapo-info-panel-meta .qapo__genre-extra[hidden] {
    display: none !important;
}

#qapo-info-panel-meta .qapo__genre-more,
.qapo__genre-more {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    height: 20px !important;
    min-height: 20px;
    margin-left: 0.45em;
    padding: 0 7px !important;
    gap: 0 !important;
    border: 1px solid rgba(var(--bdc-rgb), 0.7);
    border-radius: 999px;
    background: rgba(var(--tt-rgb), 0.05);
    background-color: rgba(var(--tt-rgb), 0.05);
    box-shadow: none;
    font: inherit;
    font-size: 11px !important;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: none;
    color: rgba(var(--tt-rgb), 0.62);
    cursor: pointer;
    white-space: nowrap;
}

.dt #qapo-info-panel-meta .qapo__genre-more,
.dt .qapo__genre-more {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    background-color: rgba(255, 255, 255, 0.06);
    color: rgba(var(--tt-rgb), 0.7);
}

#qapo-info-panel-meta .qapo__genre-more:hover,
.qapo__genre-more:hover {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
    background-color: rgba(var(--accent-rgb), 0.1);
    border-color: rgba(var(--accent-rgb), 0.35);
}

#qapo-info-panel-meta .qapo__genre-more:focus-visible,
.qapo__genre-more:focus-visible {
    outline: 2px solid rgba(var(--accent-rgb), 0.55);
    outline-offset: 2px;
    color: var(--accent);
}

/* Binge-hint: справа от длительности, не второй строкой */
#qapo-info-panel-meta .qapo__sheet-value--time {
    display: inline;
}

#qapo-info-panel-meta .qapo__sheet-time-main {
    display: inline;
}

#qapo-info-panel-meta .qapo__binge {
    display: inline;
    max-width: none;
    margin: 0;
    overflow: visible;
    opacity: 1;
    white-space: normal;
    vertical-align: baseline;
    font-size: 12.5px;
    font-weight: 500;
    line-height: inherit;
    color: rgba(var(--tt-rgb), 0.48);
}

#qapo-info-panel-meta .qapo__binge-sep {
    color: rgba(var(--tt-rgb), 0.34);
    font-weight: 600;
}

#qapo-info-panel-meta .qapo__sheet-value--time:focus-visible {
    outline: 2px solid rgba(var(--accent-rgb), 0.45);
    outline-offset: 2px;
    border-radius: 2px;
}

@media (max-width: 560px) {
    #qapo-info-panel-meta .qapo__meta-compose-item--status {
        white-space: normal;
    }

    #qapo-info-panel-meta .qapo__binge {
        white-space: normal;
        max-width: none;
        margin-left: 0.15em;
        opacity: 1;
    }
}

/* Parental — pc-grid (в meta или на всю ширину .qapo__main-parental) */
.qapo__parental-section {
    margin: 12px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid rgba(var(--bdc-rgb), 0.14);
    background: transparent;
}

.qapo__parental-section > .qapo__parental-heading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    padding: 0;
    font-family: var(--font-body, 'Onest', system-ui, sans-serif);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(var(--tt-rgb), 0.78);
    background: none;
}

.qapo__parental .qapo__pc-grid,
.qapo__pc-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: transparent;
}

.qapo__pc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    flex: 1 1 52px;
    min-width: 48px;
    max-width: 72px;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: help;
}

.qapo__pc-ico {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    font-size: 15px;
    line-height: 1;
    color: rgba(var(--tt-rgb), 0.72);
}

.qapo__pc-item--low .qapo__pc-ico { color: #047857; }
.qapo__pc-item--mid .qapo__pc-ico { color: #b45309; }
.qapo__pc-item--high .qapo__pc-ico { color: #b91c1c; }

.dt .qapo__pc-item--low .qapo__pc-ico { color: #6ee7b7; }
.dt .qapo__pc-item--mid .qapo__pc-ico { color: #fcd34d; }
.dt .qapo__pc-item--high .qapo__pc-ico { color: #fca5a5; }

.qapo__pc-name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(var(--tt-rgb), 0.72);
}

.qapo__pc-bar {
    display: none;
}

.qapo__pc-scale {
    display: flex;
    align-items: center;
    gap: 3px;
    width: 100%;
    max-width: 36px;
}

.qapo__pc-tick {
    flex: 1 1 0;
    height: 3px;
    border-radius: 999px;
    background: rgba(var(--bdc-rgb), 0.28);
}

.dt .qapo__pc-tick {
    background: rgba(255, 255, 255, 0.14);
}

.qapo__pc-item--low .qapo__pc-tick.is-on {
    background: var(--green, #10b981);
}

.qapo__pc-item--mid .qapo__pc-tick.is-on {
    background: #f59e0b;
}

.qapo__pc-item--high .qapo__pc-tick.is-on {
    background: var(--red, #ef4444);
}

.qapo__pc-fill {
    display: block;
    height: 100%;
    width: 16%;
    border-radius: inherit;
    background: rgba(var(--tt-rgb), 0.35);
}

.qapo__pc-item--low .qapo__pc-fill {
    width: 33%;
    background: var(--green, #10b981);
}

.qapo__pc-item--mid .qapo__pc-fill {
    width: 66%;
    background: #f59e0b;
}

.qapo__pc-item--high .qapo__pc-fill {
    width: 100%;
    background: var(--red, #ef4444);
}

.qapo__pc-item--neutral .qapo__pc-fill {
    width: 16%;
    background: rgba(var(--tt-rgb), 0.35);
}

.qapo__pc-val {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: capitalize;
    min-width: 4.5em;
    text-align: right;
    color: rgba(var(--tt-rgb), 0.55);
}

.qapo__pc-item--low .qapo__pc-val { color: #047857; }
.qapo__pc-item--mid .qapo__pc-val { color: #b45309; }
.qapo__pc-item--high .qapo__pc-val { color: #b91c1c; }

.dt .qapo__pc-item--low .qapo__pc-val { color: #6ee7b7; }
.dt .qapo__pc-item--mid .qapo__pc-val { color: #fcd34d; }
.dt .qapo__pc-item--high .qapo__pc-val { color: #fca5a5; }

.qapo__parental:not(:has(.qapo__pc-grid)):not(:has(.qapo__parental-board)) {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 13px;
    line-height: 1.35;
}

.qapo__parental:not(:has(.qapo__pc-grid)):not(:has(.qapo__parental-board)) b {
    font-weight: 500;
    color: rgba(var(--tt-rgb), 0.72);
}

.qapo__info .qapo__parental-section {
    margin: 4px 0 0;
    padding: 12px 0 0;
}

@media (min-width: 560px) {
    .qapo__pc-grid {
        gap: 10px 12px;
    }

    .qapo__pc-item {
        flex: 1 1 56px;
        max-width: 80px;
    }
}

@media (min-width: 1100px) {
    #qapo-info-panel-meta {
        --qapo-label-w: 8.25rem;
    }
}

/* Краткие факты: плотная строка без фона контейнера, разделитель · */
#qapo-info-panel-meta .qapo__slate {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

#qapo-info-panel-meta .qapo__slate-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    row-gap: 6px;
    font-family: var(--font-body, 'Onest', system-ui, sans-serif);
    font-size: 13.5px;
    line-height: 1.4;
}

#qapo-info-panel-meta .qapo__slate-chip,
#qapo-info-panel-meta .qapo__slate-watch {
    display: inline;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    line-height: inherit;
    letter-spacing: 0.01em;
    color: rgba(var(--tt-rgb), 0.78);
}

#qapo-info-panel-meta .qapo__slate-row > :not(:last-child)::after {
    content: "·";
    display: inline;
    margin: 0 0.45em;
    color: rgba(var(--tt-rgb), 0.34);
    font-weight: 400;
    pointer-events: none;
}

/* У бейджей точка снаружи фона, не внутри padding-box */
#qapo-info-panel-meta .qapo__slate-chip--total:not(:last-child),
#qapo-info-panel-meta .qapo__slate-chip--status:not(:last-child) {
    position: relative;
    margin-right: 0.9em;
}

#qapo-info-panel-meta .qapo__slate-chip--total:not(:last-child)::after,
#qapo-info-panel-meta .qapo__slate-chip--status:not(:last-child)::after {
    position: absolute;
    left: calc(100% + 0.35em);
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

#qapo-info-panel-meta .qapo__slate-chip--season {
    font-weight: 700;
    color: rgba(var(--tt-rgb), 0.94);
}

/* «всего N» — компактный бейдж */
#qapo-info-panel-meta .qapo__slate-chip--total {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 2px 9px;
    border-radius: 999px;
    border: 1px solid rgba(var(--bdc-rgb), 0.36);
    background: rgba(var(--bdc-rgb), 0.12);
    font-weight: 600;
    font-size: var(--qapo-fs-xs, 12px);
    line-height: 1.25;
    color: rgba(var(--tt-rgb), 0.72);
}

/* Статус — цветной бейдж */
#qapo-info-panel-meta .qapo__slate-chip--status {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    min-height: 0;
    vertical-align: middle;
}

#qapo-info-panel-meta .qapo__slate-chip--status .status__info {
    display: inline-flex;
    align-items: center;
    margin: 0;
    min-height: 26px;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: var(--qapo-fs-xs, 12px);
    font-weight: 600;
    line-height: 1.25;
    vertical-align: baseline;
}

#qapo-info-panel-meta .qapo__slate-chip--status .status__info::before {
    display: none;
}

#qapo-info-panel-meta .qapo__slate-chip--status .status__info::after {
    margin-left: 4px;
    font-size: 11px;
}

#qapo-info-panel-meta .qapo__slate-chip--duration {
    font-weight: 500;
    color: rgba(var(--tt-rgb), 0.72);
}

#qapo-info-panel-meta .qapo__slate-chip--duration:has(+ .qapo__slate-watch)::after {
    content: "·";
    display: inline;
    margin: 0 0.45em;
    color: rgba(var(--tt-rgb), 0.34);
    font-weight: 400;
}

#qapo-info-panel-meta .qapo__slate-watch {
    color: rgba(var(--tt-rgb), 0.62);
}

#qapo-info-panel-meta .qapo__slate-watch strong {
    font-weight: 700;
    margin-left: 0.2em;
    color: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.95);
}

.dt #qapo-info-panel-meta .qapo__slate {
    background: none;
    border: 0;
}

.dt #qapo-info-panel-meta .qapo__slate-chip--total {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(var(--tt-rgb), 0.78);
}

@media (prefers-reduced-motion: no-preference) {
    #qapo-info-panel-meta .qapo__slate-chip {
        animation: qapo-slate-in 0.42s ease both;
    }
    #qapo-info-panel-meta .qapo__slate-chip:nth-child(2) { animation-delay: 0.04s; }
    #qapo-info-panel-meta .qapo__slate-chip:nth-child(3) { animation-delay: 0.08s; }
    #qapo-info-panel-meta .qapo__slate-chip:nth-child(4) { animation-delay: 0.12s; }
}

@keyframes qapo-slate-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

#qapo-info-panel-meta .qapo__meta--flat {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-size: 13px;
    line-height: 1.45;
}

/* Пары не группируем в колонки — каждый пункт как обычная строка dt | dd */
#qapo-info-panel-meta .qapo__meta-pair,
#qapo-info-panel-meta .qapo__meta-pair--facts,
#qapo-info-panel-meta .qapo__meta-pair--people,
#qapo-info-panel-meta .qapo__meta-pair--chips,
#qapo-info-panel-meta .qapo__meta-pair--context,
#qapo-info-panel-meta .qapo__meta-pair--links {
    display: contents;
}

#qapo-info-panel-meta .qapo__meta-pair:not(:has(.qapo__meta-row)) {
    display: none;
}

/* Facts / crew legacy — панель использует .qapo__sheet-row; meta-row оставлен вне sheet */
#qapo-info-panel-meta .qapo__meta-row {
    display: grid;
    grid-template-columns: var(--qapo-label-w, 7.25rem) minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 0;
    align-items: start;
    padding: 5px 0;
    min-width: 0;
    border-bottom: 1px solid rgba(var(--bdc-rgb), 0.16);
}

#qapo-info-panel-meta .qapo__meta-row--full,
#qapo-info-panel-meta .qapo__meta-row--wide {
    grid-column: auto;
}

#qapo-info-panel-meta .qapo__meta-row dt {
    padding-top: 1px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(var(--tt-rgb), 0.5);
    line-height: 1.35;
}

.dt #qapo-info-panel-meta .qapo__meta-row dt {
    color: rgba(var(--tt-rgb), 0.48);
}

#qapo-info-panel-meta .qapo__meta-row dd {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
}


/* Жанр / коллекция / год — тот же шрифт, явные ссылки */
#qapo-info-panel-meta .qapo__meta-row--chips .qapo__meta-tags,
#qapo-info-panel-meta .qapo__meta-pair--links .qapo__meta-row--chips .qapo__meta-tags {
    display: inline;
    flex-wrap: unset;
    gap: 0;
    align-items: unset;
    font-family: var(--font-body, 'Onest', system-ui, sans-serif);
    font-size: 13.5px;
    line-height: 1.4;
}

#qapo-info-panel-meta .qapo__meta-row--chips .qapo__meta-tags a,
#qapo-info-panel-meta .qapo__meta-pair--links .qapo__meta-row--chips .qapo__meta-tags a,
#qapo-info-panel-meta .qapo__meta-pair--links .qapo__meta-row--collection .qapo__meta-tags a,
#qapo-info-panel-meta .qapo__meta-tags a,
#qapo-info-panel-meta .qapo__person-name {
    display: inline;
    position: static;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    font-family: var(--font-body, 'Onest', system-ui, sans-serif);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    color: var(--qapo-lamp, var(--accent));
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-color: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.85);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

#qapo-info-panel-meta .qapo__meta-row--chips .qapo__meta-tags a::after,
#qapo-info-panel-meta .qapo__meta-pair--links .qapo__meta-row--chips .qapo__meta-tags a::after,
#qapo-info-panel-meta .qapo__meta-pair--links .qapo__meta-row--chips .qapo__meta-tags a:hover::after,
#qapo-info-panel-meta .qapo__meta-pair--links .qapo__meta-row--chips .qapo__meta-tags a:focus-visible::after,
#qapo-info-panel-meta .qapo__meta-tags a::after {
    content: none;
    display: none;
}

#qapo-info-panel-meta .qapo__meta-row--chips .qapo__meta-tags a:hover,
#qapo-info-panel-meta .qapo__meta-row--chips .qapo__meta-tags a:focus-visible,
#qapo-info-panel-meta .qapo__meta-pair--links .qapo__meta-row--chips .qapo__meta-tags a:hover,
#qapo-info-panel-meta .qapo__meta-pair--links .qapo__meta-row--chips .qapo__meta-tags a:focus-visible,
#qapo-info-panel-meta .qapo__meta-pair--links .qapo__meta-row--collection .qapo__meta-tags a:hover,
#qapo-info-panel-meta .qapo__meta-pair--links .qapo__meta-row--collection .qapo__meta-tags a:focus-visible,
#qapo-info-panel-meta .qapo__meta-tags a:hover,
#qapo-info-panel-meta .qapo__meta-tags a:focus-visible,
#qapo-info-panel-meta .qapo__person:hover .qapo__person-name,
#qapo-info-panel-meta .qapo__person.is-open .qapo__person-name,
#qapo-info-panel-meta .qapo__person:focus-visible .qapo__person-name {
    background: none;
    border: 0;
    color: var(--accent-dark, var(--accent));
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-color: var(--accent-dark, var(--accent));
    text-decoration-thickness: 2px;
    box-shadow: none;
}

.dt #qapo-info-panel-meta .qapo__meta-row--chips .qapo__meta-tags a,
.dt #qapo-info-panel-meta .qapo__meta-pair--links .qapo__meta-row--chips .qapo__meta-tags a,
.dt #qapo-info-panel-meta .qapo__meta-pair--links .qapo__meta-row--collection .qapo__meta-tags a,
.dt #qapo-info-panel-meta .qapo__meta-tags a,
.dt #qapo-info-panel-meta .qapo__person-name {
    background: none;
    border: 0;
    color: var(--accent-light, var(--accent));
    text-decoration-color: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.9);
}

.dt #qapo-info-panel-meta .qapo__meta-row--chips .qapo__meta-tags a:hover,
.dt #qapo-info-panel-meta .qapo__meta-row--chips .qapo__meta-tags a:focus-visible,
.dt #qapo-info-panel-meta .qapo__meta-pair--links .qapo__meta-row--chips .qapo__meta-tags a:hover,
.dt #qapo-info-panel-meta .qapo__meta-pair--links .qapo__meta-row--chips .qapo__meta-tags a:focus-visible,
.dt #qapo-info-panel-meta .qapo__meta-tags a:hover,
.dt #qapo-info-panel-meta .qapo__meta-tags a:focus-visible {
    color: #fff7e8;
    text-decoration-color: #fff7e8;
}

#qapo-info-panel-meta .qapo__sheet-row--voice {
    padding: 7px 0;
    margin: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
}

#qapo-info-panel-meta .qapo__sheet-row--voice .qapo__sheet-value {
    font-weight: 600;
    color: rgba(var(--tt-rgb), 0.9);
}

#qapo-info-panel-meta .qapo__meta-row--parental,
#qapo-info-panel-meta .qapo__meta-row--parental-flat {
    display: grid !important;
    grid-template-columns: 1fr !important;
    column-gap: 0 !important;
    row-gap: 8px;
    align-items: stretch;
    border-bottom: none;
    padding: 8px 0 4px;
    margin-top: 2px;
    border-top: 1px dashed rgba(var(--bdc-rgb), 0.22);
    opacity: 1;
}

/* Имена актёров — текстовый список; портрет на hover не трогаем */
#qapo-info-panel-meta .qapo__persons-inline,
#qapo-info-panel-meta .qapo__persons-inline--clamp {
    display: inline;
    flex-wrap: unset;
    gap: 0;
    align-items: unset;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    font-size: 0; /* убирает пробел перед запятой из whitespace между нодами */
    line-height: 0;
}

#qapo-info-panel-meta .qapo__person {
    display: inline;
    font-size: 13px;
    line-height: 1.45;
}

#qapo-info-panel-meta .qapo__person + .qapo__person::before {
    content: none;
}

#qapo-info-panel-meta .qapo__person-sep {
    color: rgba(var(--tt-rgb), 0.55);
    font-size: 13px;
    line-height: 1.45;
}

#qapo-info-panel-meta .qapo__person:last-child .qapo__person-sep {
    display: none;
}

#qapo-info-panel-meta .qapo__person-name {
    display: inline;
    align-items: unset;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: none;
    border: 0;
    font-family: var(--font-body, 'Onest', system-ui, sans-serif);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--qapo-lamp, var(--accent));
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-color: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.85);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
}

#qapo-info-panel-meta .qapo__person:hover .qapo__person-name,
#qapo-info-panel-meta .qapo__person.is-open .qapo__person-name,
#qapo-info-panel-meta .qapo__person:focus-visible .qapo__person-name {
    background: none;
    border: 0;
    color: var(--accent);
    text-decoration-color: var(--accent);
}

#qapo-info-panel-meta .qapo__meta-row--parental .qapo__parental-heading,
#qapo-info-panel-meta .qapo__meta-row--parental-flat .qapo__parental-heading {
    margin: 0;
    padding: 0;
}

#qapo-info-panel-meta .qapo__parental-flat {
    min-width: 0;
}

.dt #qapo-info-panel-meta .qapo__sheet-row--voice {
    background: transparent;
    border: 0;
}

.qapo__info-tabs .qapo__info-plot .qapo__text,
.qapo__info-tabs .qapo__info-plot .qapo__text .full-text,
.qapo__info-tabs .qapo__info-plot .full-text,
.qapo__info-tabs .qapo__info-plot .full-text.qapo__text,
article.qapo .qapo__info-tabs .qapo__info-plot .qapo__text .full-text,
article.qapo .qapo__info-tabs .qapo__info-plot .full-text.qapo__text {
    margin-bottom: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
    color: inherit;
    word-wrap: break-word;
}

.qapo__info-tabs .qapo__info-plot .full-text :is(p, ul, ol, li, blockquote, td, th) {
    margin: 0 0 0.65em;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    letter-spacing: normal;
}

.qapo__info-tabs .qapo__info-plot .full-text :is(h1, h2, h3, h4, h5) {
    margin: 0 0 0.65em;
    padding: 0;
    border: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    color: inherit;
    letter-spacing: normal;
}

.qapo__info-tabs .qapo__info-plot .full-text :is(h1, h2)::after {
    display: none;
    content: none;
}

.qapo__info-tabs .qapo__info-plot .full-text :is(p, ul, ol, blockquote):last-child {
    margin-bottom: 0;
}

.qapo__info-tabs .qapo__info-plot .full-text a {
    color: var(--accent);
    font-weight: 400;
    border-bottom: none;
    text-decoration: none;
}

.qapo__info-tabs .qapo__info-plot .full-text a:hover {
    color: var(--accent-dark, var(--accent));
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.qapo__info-tabs .qapo__info-plot .qapo__desc-expand-wrap {
    margin-bottom: 0;
}

.qapo__info-tabs > .qapo__info-plot .qapo__desc-expand-wrap .qapo__meta-expand {
    font-size: inherit;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: normal;
}

/* Обёртка: кнопка «Читать полностью» в правом нижнем углу */
.qapo__meta-scroll-wrap {
    position: relative;
    margin-bottom: 0;
}

.qapo__meta-scroll-wrap.is-expanded .qapo__meta-scroll {
    max-height: none;
    overflow: visible;
}

/* Запас под компактную кнопку, чтобы текст не заезжал под неё */
.qapo__meta-scroll-wrap.has-meta-expand-btn .qapo__meta-scroll {
    padding-bottom: 38px;
}

.qapo__meta-expand {
    position: absolute;
    right: 6px;
    bottom: 6px;
    z-index: 2;
    padding: 6px 11px;
    font-size: var(--qapo-fs-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.25;
    color: var(--accent);
    background: rgba(var(--bg-rgb), 0.92);
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.qapo__meta-expand:hover {
    background: rgba(var(--accent-rgb), 0.12);
    border-color: rgba(var(--accent-rgb), 0.5);
    color: var(--accent-dark);
}

.qapo__meta-expand:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.dt .qapo__meta-expand {
    color: var(--accent-light);
    background: rgba(18, 21, 28, 0.92);
    border-color: rgba(var(--accent-rgb), 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.dt .qapo__meta-expand:hover {
    background: rgba(var(--accent-rgb), 0.18);
    border-color: rgba(var(--accent-rgb), 0.55);
    color: #fff;
}

/* Блок фактов: единая сетка карточек, без обёртки-рамки */
.qapo__meta-scroll {
    overflow: visible;
    overscroll-behavior: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.qapo__meta-scroll:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.qapo__meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    font-size: var(--qapo-fs-sm);
    line-height: var(--qapo-lh-ui);
}

@media screen and (min-width: 1221px) {
    .qapo__meta:not(.qapo__meta--flat) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 12px;
        row-gap: 8px;
    }

    .qapo__meta:not(.qapo__meta--flat) .qapo__meta-row--wide {
        grid-column: 1 / -1;
    }

    .qapo__meta:not(.qapo__meta--flat) .qapo__meta-row:not(.qapo__meta-row--wide):last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

.qapo__meta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 11px 12px;
    border-radius: 10px;
    background: rgba(var(--bdc-rgb), 0.1);
    border: 1px solid transparent;
    align-items: start;
    min-width: 0;
}

body:not(.dt) .qapo__meta-row {
    background: #fff;
    border-color: rgba(var(--bdc-rgb), 0.72);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.dt .qapo__meta-row {
    background: rgba(255, 255, 255, 0.04);
}

.qapo__meta-row dt {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.045em;
    color: rgba(var(--tt-rgb), 0.7);
    margin: 0;
}

body:not(.dt) .qapo__meta-row dt {
    color: rgba(var(--tt-rgb), 0.58);
}

body:not(.dt) .qapo__meta dd {
    color: var(--tt);
    font-weight: 500;
}

.qapo__meta-row--rates .qapo__meta-rates {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 0;
    margin: 0;
}

.qapo__meta-row--rates dt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.qapo__meta-rates-icon {
    color: #f59e0b;
    font-size: 0.92em;
    line-height: 1;
}

.qapo__meta-row--rates .qapo__meta-rates-external {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.qapo__meta dd {
    margin: 0;
    color: rgba(var(--tt-rgb), 0.92);
    min-width: 0;
    word-break: break-word;
}

.qapo__meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.qapo__meta a {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 500;
    font-size: var(--qapo-fs-ui);
    line-height: 1.35;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.22);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.qapo__meta a:hover {
    background: rgba(var(--accent-rgb), 0.18);
    color: var(--accent);
    border-color: rgba(var(--accent-rgb), 0.4);
}

body:not(.dt) .qapo__meta--flat .qapo__meta-row,
.dt .qapo__meta--flat .qapo__meta-row {
    background: none;
    box-shadow: none;
    border-radius: 0;
}

.qapo__meta--flat .qapo__meta-row dd:not(.qapo__meta-tags) a {
    display: inline;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: none;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

.qapo__meta--flat .qapo__meta-row dd:not(.qapo__meta-tags) a:hover {
    color: var(--accent);
    background: none;
    border-color: transparent;
}

/* Flat-мета в блоке фактов — одна колонка, сканируемые строки */
.qapo__info-tabs .qapo__meta.qapo__meta--flat {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    font-family: inherit;
    font-size: var(--qapo-fs-sm);
    line-height: var(--qapo-lh-ui);
}

.qapo__info-tabs .qapo__meta.qapo__meta--flat .qapo__meta-row {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    column-gap: 18px;
    row-gap: 4px;
    align-items: start;
    padding: 11px 0;
    margin: 0;
    background: none;
    border-bottom: 1px solid rgba(var(--bdc-rgb), 0.28);
    box-shadow: none;
    border-radius: 0;
    min-width: 0;
}

.qapo__info-tabs .qapo__meta.qapo__meta--flat .qapo__meta-row:last-child {
    border-bottom: none;
}

.qapo__info-tabs .qapo__meta.qapo__meta--flat .qapo__meta-row--wide {
    grid-template-columns: 8.5rem minmax(0, 1fr);
    column-gap: 18px;
}

.qapo__info-tabs .qapo__meta.qapo__meta--flat .qapo__meta-row dt {
    margin: 0;
    padding-top: 2px;
    font-family: inherit;
    font-size: var(--qapo-fs-2xs, 11px);
    font-weight: 700;
    line-height: 1.35;
    color: rgba(var(--tt-rgb), 0.56);
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.qapo__info-tabs .qapo__meta.qapo__meta--flat .qapo__meta-row dd {
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: var(--qapo-fs-sm, 14px);
    font-weight: 500;
    line-height: 1.5;
    color: var(--tt);
}

.qapo__info-tabs .qapo__meta--flat .qapo__meta-tags {
    line-height: 1.5;
}

.qapo__info-tabs .qapo__meta--flat .qapo__meta-row--chips .qapo__meta-tags a,
.qapo__info-tabs .qapo__meta--flat .qapo__meta-tags--inline .status__info {
    text-decoration: none;
}

.qapo__info-tabs .qapo__meta--flat .qapo__meta-row:not(.qapo__meta-row--chips) .qapo__meta-tags a {
    display: inline;
    position: relative;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

.qapo__info-tabs .qapo__meta--flat .qapo__meta-row:not(.qapo__meta-row--chips) .qapo__meta-tags a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.06em;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.qapo__info-tabs .qapo__meta--flat .qapo__meta-row:not(.qapo__meta-row--chips) .qapo__meta-tags a:hover {
    color: var(--accent-dark, var(--accent));
    background: none;
    border-color: transparent;
    text-decoration: none;
}

.qapo__info-tabs .qapo__meta--flat .qapo__meta-row:not(.qapo__meta-row--chips) .qapo__meta-tags a:hover::after {
    transform: scaleX(1);
}

body.dt .qapo__info-tabs .qapo__meta--flat .qapo__meta-row:not(.qapo__meta-row--chips) .qapo__meta-tags a {
    color: var(--accent-light, var(--accent));
    background: none;
    border: none;
}

body.dt .qapo__info-tabs .qapo__meta--flat .qapo__meta-tags a:hover {
    color: #fff;
    background: none;
    border: none;
    text-decoration: none;
}

.qapo__info-tabs .qapo__meta--flat .qapo__meta-tags .status__info {
    font-size: 12px;
}

/* Жанры, год, статус и коллекции — отдельный блок под производственной информацией */
.qapo__catalog-tags {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
    padding: 14px 14px 12px;
    border-radius: 12px;
    border: 1px dashed rgba(var(--bdc-rgb), 0.55);
    background: linear-gradient(165deg, rgba(var(--accent-rgb), 0.04) 0%, rgba(var(--bg-darker-1-rgb), 0.35) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

body:not(.dt) .qapo__catalog-tags {
    border-style: solid;
    border-color: rgba(var(--bdc-rgb), 0.72);
    background: linear-gradient(180deg, #fff 0%, rgba(var(--bg-darker-1-rgb), 0.45) 100%);
    box-shadow:
        0 2px 10px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.dt .qapo__catalog-tags {
    border-color: rgba(255, 255, 255, 0.12);
    background: linear-gradient(165deg, rgba(var(--accent-rgb), 0.08) 0%, rgba(0, 0, 0, 0.22) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.qapo__catalog-tags-row {
    display: grid;
    grid-template-columns: minmax(88px, 104px) minmax(0, 1fr);
    gap: 10px 12px;
    align-items: start;
}

.qapo__catalog-tags-label {
    display: block;
    margin: 4px 0 0;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    color: rgba(var(--tt-rgb), 0.62);
    line-height: 1.35;
}

body:not(.dt) .qapo__catalog-tags-label {
    color: rgba(var(--tt-rgb), 0.52);
}

.qapo__catalog-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    min-width: 0;
}

.qapo__catalog-tags-row--genre .qapo__catalog-tags-list a {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 5px 11px;
    border-radius: 999px;
    font-weight: 600;
    font-size: var(--qapo-fs-ui);
    line-height: 1.35;
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.28);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.qapo__catalog-tags-row--genre .qapo__catalog-tags-list a:hover {
    background: rgba(var(--accent-rgb), 0.2);
    border-color: rgba(var(--accent-rgb), 0.45);
    color: var(--accent-dark);
}

body:not(.dt) .qapo__catalog-tags-row--genre .qapo__catalog-tags-list a {
    background: rgba(var(--accent-rgb), 0.1);
    border-color: rgba(var(--accent-rgb), 0.38);
    color: var(--accent-dark);
    box-shadow: 0 1px 2px rgba(var(--accent-rgb), 0.12);
}

.qapo__catalog-tags-row--year .qapo__catalog-tags-list {
    font-weight: 700;
    font-size: var(--qapo-fs-ui);
    color: var(--tt);
}

.qapo__catalog-tags-row--year .qapo__catalog-tags-list a {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: var(--qapo-fs-ui);
    line-height: 1.35;
    background: rgba(var(--tt-rgb), 0.05);
    color: var(--tt);
    border: 1px solid rgba(var(--bdc-rgb), 0.65);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body:not(.dt) .qapo__catalog-tags-row--year .qapo__catalog-tags-list a {
    background: #fff;
    border-color: rgba(var(--bdc-rgb), 0.78);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.qapo__catalog-tags-row--year .qapo__catalog-tags-list a:hover {
    background: rgba(var(--accent-rgb), 0.08);
    border-color: rgba(var(--accent-rgb), 0.35);
    color: var(--accent-dark);
}

.qapo__catalog-tags-row--status .qapo__catalog-tags-list {
    align-items: center;
}

.qapo__catalog-tags-row--status .status__info {
    margin: 0;
}

.qapo__catalog-tags-row--collection .qapo__catalog-tags-list a {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 5px 11px;
    border-radius: 8px;
    font-weight: 600;
    font-size: var(--qapo-fs-ui);
    line-height: 1.35;
    background: rgba(var(--tt-rgb), 0.06);
    color: rgba(var(--tt-rgb), 0.88);
    border: 1px solid rgba(var(--bdc-rgb), 0.55);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.qapo__catalog-tags-row--collection .qapo__catalog-tags-list a:hover {
    background: rgba(var(--accent-rgb), 0.1);
    border-color: rgba(var(--accent-rgb), 0.35);
    color: var(--accent);
}

body:not(.dt) .qapo__catalog-tags-row--collection .qapo__catalog-tags-list a {
    background: rgba(var(--bg-darker-1-rgb), 0.55);
    border-color: rgba(var(--bdc-rgb), 0.72);
    color: rgba(var(--tt-rgb), 0.92);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dt .qapo__catalog-tags-row--collection .qapo__catalog-tags-list a {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

.qapo__description .qapo__text {
    margin-bottom: 0;
}

.qapo__seo-lead {
    font-size: var(--qapo-fs-sm);
    line-height: var(--qapo-lh-body);
    color: rgba(var(--tt-rgb), 0.68);
    margin: 16px 0 0;
    padding-top: 16px;
    border-top: 1px dashed rgba(var(--bdc-rgb), 0.45);
}

.dt .qapo__seo-lead {
    color: rgba(var(--tt-rgb), 0.62);
}

.full-text .qapo__seo-lead {
    margin-top: 20px;
}

.qapo__img::after {
    opacity: 0.5; 
    height: 33%;
}

/* Возрастной рейтинг у оригинального названия: значок, текст — по hover/focus/tap */
.qapo__header .qapo__age-badge,
.qapo__age-badge {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 28px;
    margin: 0;
    padding: 0;
    border-radius: 8px;
    background: rgba(var(--tt-rgb), 0.06);
    border: 1px solid rgba(var(--bdc-rgb), 0.4);
    box-shadow: none;
    cursor: help;
    outline: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.dt .qapo__header .qapo__age-badge,
.dt .qapo__age-badge {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

.qapo__age-badge:hover,
.qapo__age-badge.is-open {
    background: rgba(var(--tt-rgb), 0.1);
}

.dt .qapo__age-badge:hover,
.dt .qapo__age-badge.is-open {
    background: rgba(255, 255, 255, 0.12);
}

.qapo__age-badge:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.qapo__age-badge-icon {
    display: block;
    width: 21px;
    height: 12px;
    flex-shrink: 0;
    background: url(../images/age-rate.svg) no-repeat;
    background-size: auto;
    transform: scale(1.4);
    transform-origin: center center;
    filter: none;
}

.qapo__age-badge-tip {
    position: absolute;
    left: 50%;
    right: auto;
    top: calc(100% + 8px);
    bottom: auto;
    z-index: 10060;
    width: max-content;
    max-width: min(260px, calc(100vw - 24px));
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: #fff;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    background: rgba(12, 14, 20, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateX(calc(-50% + var(--age-tip-shift, 0px)));
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.qapo__age-badge.is-tip-above .qapo__age-badge-tip {
    top: auto;
    bottom: calc(100% + 8px);
}

.qapo__age-badge-tip::after {
    content: '';
    position: absolute;
    left: calc(50% - var(--age-tip-shift, 0px));
    right: auto;
    top: auto;
    bottom: 100%;
    border: 6px solid transparent;
    border-bottom-color: rgba(12, 14, 20, 0.96);
    transform: translateX(-50%);
}

.qapo__age-badge.is-tip-above .qapo__age-badge-tip::after {
    top: 100%;
    bottom: auto;
    border-bottom-color: transparent;
    border-top-color: rgba(12, 14, 20, 0.96);
}

.qapo__age-badge:hover .qapo__age-badge-tip,
.qapo__age-badge:focus-visible .qapo__age-badge-tip,
.qapo__age-badge:focus-within .qapo__age-badge-tip,
.qapo__age-badge.is-open .qapo__age-badge-tip {
    opacity: 1;
    visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
    .qapo__age-badge-tip {
        transition: none;
    }
}

/* Оценка зрителей — нижний левый угол постера */
.qapo__poster-rating {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 8;
    display: inline-flex;
    align-items: stretch;
    min-height: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.12);
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    pointer-events: none;
}

.qapo__poster-rating-star {
    display: grid;
    place-items: center;
    width: 30px;
    flex-shrink: 0;
    background: rgba(8, 10, 16, 0.72);
    color: yellow;
    font-size: 12px;
}

.qapo__poster-rating-value {
    display: grid;
    place-items: center;
    min-width: 34px;
    padding: 0 10px;
    color: #fff;
    background: rgba(var(--bdc-rgb), 0.55);
}

.qapo__poster-rating.is-score-high .qapo__poster-rating-value {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
}

.qapo__poster-rating.is-score-mid .qapo__poster-rating-value {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

.qapo__poster-rating.is-score-low .qapo__poster-rating-value {
    background: linear-gradient(135deg, rgba(var(--red-rgb), 0.88) 0%, rgb(var(--red-rgb)) 100%);
}

.qapo__rating-panel:not(:has(.qapo__rating-vote, .qapo__scoreboard-item)) {
    display: none;
}

.qapo__rating-panel {
    width: 100%;
    padding: 10px 12px 12px;
    border-radius: 12px;
    border: 1px solid rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.22);
    background: rgba(var(--bg-rgb), 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

body:not(.dt) .qapo__rating-panel {
    background: rgba(255, 252, 246, 0.72);
    border-color: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.28);
}

.dt .qapo__rating-panel {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.qapo__rating-panel-label {
    color: rgba(var(--tt-rgb), 0.48);
    text-align: left;
    margin: 0;
}

.qapo__rating-vote {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qapo__rating-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.qapo__rating-panel-score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--tt);
}

.qapo__rating-panel-star {
    font-size: 14px;
    line-height: 1;
}

.qapo__rating-panel-score-value {
    line-height: 1;
}

.qapo__rating-vote.is-score-high .qapo__rating-panel-star,
.qapo__rating-vote.is-score-high .qapo__rating-panel-score-value {
    color: var(--accent);
}

.qapo__rating-vote.is-score-mid .qapo__rating-panel-star,
.qapo__rating-vote.is-score-mid .qapo__rating-panel-score-value {
    color: #d97706;
}

.qapo__rating-vote.is-score-low .qapo__rating-panel-star,
.qapo__rating-vote.is-score-low .qapo__rating-panel-score-value {
    color: rgb(var(--red-rgb));
}

.dt .qapo__rating-vote.is-score-mid .qapo__rating-panel-star,
.dt .qapo__rating-vote.is-score-mid .qapo__rating-panel-score-value {
    color: #fbbf24;
}

.qapo__rating-panel--empty .qapo__rating-panel-score {
    display: none;
}

.qapo__scoreboard {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.qapo__scoreboard:has(> :only-child) {
    grid-template-columns: 1fr;
}

.qapo__scoreboard:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qapo__rating-vote + .qapo__scoreboard {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(var(--bdc-rgb), 0.4);
}

.dt .qapo__rating-vote + .qapo__scoreboard {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.qapo__scoreboard-item {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(var(--tt-rgb), 0.035);
    border: 1px solid rgba(var(--bdc-rgb), 0.32);
}

.dt .qapo__scoreboard-item {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.qapo__scoreboard-logo {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.qapo__scoreboard-item.kp .qapo__scoreboard-logo {
    background-image: url(../images/kp.svg);
}

.qapo__scoreboard-item.imdb .qapo__scoreboard-logo {
    background-image: url(../images/imdb.svg);
    width: 28px;
}

.qapo__scoreboard-item.kinorium .qapo__scoreboard-logo {
    background-image: url(../images/kinorium.svg);
}

.qapo__scoreboard-value {
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--tt);
}

.qapo__scoreboard-name {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Внешние рейтинги (КП, IMDb, Кинориум) — внизу панели оценки */
.qapo__rating-external {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(var(--bdc-rgb), 0.45);
}

body:not(.dt) .qapo__rating-external {
    border-top-color: rgba(var(--bdc-rgb), 0.65);
}

.dt .qapo__rating-external {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.qapo__rating-external-label {
    margin: 0 0 10px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    color: rgba(var(--tt-rgb), 0.48);
}

body:not(.dt) .qapo__rating-external-label,
body:not(.dt) .qapo__rating-panel-label {
    color: rgba(var(--tt-rgb), 0.55);
}

.qapo__rating-external-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.qapo__rating-external-item {
    flex: 0 0 auto;
    min-width: 0;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    min-height: auto;
    padding: 0 0 0 22px;
    border: none;
    border-radius: 0;
    font-size: var(--qapo-fs-ui);
    font-weight: 700;
    line-height: 1.2;
    color: rgba(var(--tt-rgb), 0.92);
    background-color: transparent;
    box-shadow: none;
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 16px;
}

.qapo__rating-external-item.kp {
    background-image: url(../images/kp.svg);
}

.qapo__rating-external-item.imdb {
    background-image: url(../images/imdb.svg);
}

.qapo__rating-external-item.kinorium {
    background-image: url(../images/kinorium.svg);
    background-size: 15px;
}

.qapo__rating-external-value {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    width: auto;
    text-align: left;
    font-size: 13px;
}

.dt .qapo__rating-panel-label {
    color: rgba(var(--tt-rgb), 0.5);
}

/* Под рейтингом в колонке постера: переход к плееру */
.qapo__poster-shell .qapo__to-watch {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.qapo__poster-shell .qapo__to-watch > .qapo__to-watch-btn--primary,
.qapo__poster-shell .qapo__to-watch > .mylists-dropdown {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
}

.qapo__to-watch-btn {
    width: 100%;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 16px;
    font-family: var(--qapo-font-display, var(--font-display));
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    text-transform: none;
    color: #fff;
    cursor: pointer;
    border-radius: 12px;
    border: 1px solid rgba(var(--accent-rgb), 0.45);
    background: linear-gradient(145deg, var(--accent) 0%, var(--accent-dark) 100%);
    box-shadow: 0 4px 18px rgba(var(--accent-rgb), 0.38);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.qapo__to-watch-btn--primary {
    min-height: 52px;
    font-size: 15px;
    box-shadow:
        0 6px 22px rgba(var(--accent-rgb), 0.42),
        0 0 0 1px rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.2);
}

.qapo__to-watch-btn--secondary,
.mylists-dropdown__toggle.qapo__to-watch-btn--secondary {
    color: rgba(var(--tt-rgb), 0.88);
    background: rgba(var(--bg-rgb), 0.55);
    border: 1px solid rgba(var(--bdc-rgb), 0.55);
    box-shadow: none;
    font-weight: 600;
}

.dt .qapo__to-watch-btn--secondary,
.dt .mylists-dropdown__toggle.qapo__to-watch-btn--secondary {
    color: rgba(var(--tt-rgb), 0.9);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

.qapo__to-watch-btn:hover {
    filter: brightness(1.06);
    box-shadow: 0 6px 22px rgba(var(--accent-rgb), 0.45);
}

.qapo__to-watch-btn--secondary:hover,
.mylists-dropdown__toggle.qapo__to-watch-btn--secondary:hover {
    filter: none;
    background: rgba(var(--accent-rgb), 0.1);
    border-color: rgba(var(--accent-rgb), 0.4);
    box-shadow: none;
    color: var(--tt);
}

.dt .qapo__to-watch-btn--secondary:hover,
.dt .mylists-dropdown__toggle.qapo__to-watch-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.qapo__to-watch-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.qapo__to-watch-btn .fal {
    font-size: var(--qapo-fs-sm);
    opacity: 0.95;
}

.qapo__rating-empty {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: rgba(var(--tt-rgb), 0.62);
    text-align: center;
}

.qapo__rating-empty.is-hidden {
    display: none;
}

.qapo__rating-panel--empty .qapo__rating-count.is-zero {
    display: none;
}

.qapo__rating-panel--empty .qapo__rating-ext a {
    gap: 0;
}

.qapo__watch-sticky {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 992;
    width: auto;
    min-width: 48px;
    min-height: 48px;
    height: 48px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--qapo-lamp, var(--accent)) 0%, var(--qapo-ember, var(--accent-dark)) 100%);
    color: #1a1208;
    font-family: var(--qapo-font-display, var(--font-display));
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow:
        0 10px 28px rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.18) inset;
    opacity: 0;
    transform: translateX(-50%) translateY(12px) scale(0.92);
    pointer-events: none;
    touch-action: manipulation;
    transition:
        opacity 0.22s ease,
        transform 0.28s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
        filter 0.2s ease;
}

.qapo__watch-sticky .fal {
    font-size: 15px;
}

.qapo__watch-sticky-label {
    line-height: 1;
}

.qapo__watch-sticky.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}

.qapo__watch-sticky:hover {
    filter: brightness(1.05);
}

.qapo__watch-sticky:focus-visible {
    outline: 2px solid var(--qapo-lamp, var(--accent));
    outline-offset: 3px;
}

@media (min-width: 761px) {
    .qapo__watch-sticky {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qapo__watch-sticky {
        transition: none;
        transform: translateX(-50%) translateY(0) scale(1);
    }

    .qapo__watch-sticky:not(.is-visible) {
        opacity: 0;
        pointer-events: none;
    }
}

/* П.8: якоря под sticky-хедер + фокус на плеере */
#qapo__player,
.qapo__float--player,
.qapo__float--hero,
.qapo__float--schedule,
.qapo__float--comments,
.qapo__float--related {
    scroll-margin-top: max(72px, calc(56px + env(safe-area-inset-top, 0px)));
}

#qapo__player:focus {
    outline: none;
}

#qapo__player:focus-visible {
    outline: 2px solid rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.75);
    outline-offset: 4px;
}

article.qapo .qapo__rating-ext a,
article.qapo .qapo__schedule-tabs.qapo__info-tabs-nav button,
article.qapo .qapo__toolbar-btn,
article.qapo .qapo__meta-expand,
article.qapo .qapo__player-share-toggle,
article.qapo .qapo__player-schedule-btn {
    min-height: 44px;
    touch-action: manipulation;
}

article.qapo .qapo__share-link {
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
}


article.qapo :is(a, button, summary, [role="button"], [tabindex="0"]):focus-visible {
    outline-color: var(--qapo-lamp, var(--accent));
}

/* П.9: motion — появление героя, hover постера, прибытие к плееру */
@keyframes qapo-hero-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes qapo-ambient-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes qapo-player-arrived {
    0%,
    100% {
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.55) inset,
            0 10px 32px rgba(var(--qapo-ink-rgb), 0.07),
            0 2px 6px rgba(var(--qapo-ink-rgb), 0.04);
    }
    40% {
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.65) inset,
            0 0 0 1px rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.45),
            0 18px 48px rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.22);
    }
}

.qapo__ambient {
    animation: qapo-ambient-in 0.9s var(--ease-out, ease) both;
}

.qapo__float--hero {
    animation: qapo-hero-in 0.55s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) 0.06s both;
}

.qapo__float--player {
    animation: qapo-hero-in 0.55s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) 0.14s both;
}

.qapo__poster {
    transition:
        transform 0.35s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
        box-shadow 0.35s ease,
        border-color 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
    .qapo__poster:hover {
        transform: translateY(-4px) scale(1.015);
        box-shadow:
            0 26px 52px rgba(var(--qapo-ink-rgb, 15, 23, 42), 0.22),
            0 4px 12px rgba(var(--qapo-ink-rgb, 15, 23, 42), 0.1),
            0 0 0 1px rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.28);
    }

    .dt .qapo__poster:hover {
        box-shadow:
            0 24px 56px rgba(0, 0, 0, 0.55),
            0 0 0 1px rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.32);
    }
}

.qapo__float--player.is-player-arrived {
    animation: qapo-player-arrived 0.85s ease;
}

@media (prefers-reduced-motion: reduce) {
    .qapo__ambient,
    .qapo__float--hero,
    .qapo__float--player {
        animation: none;
    }

    .qapo__poster {
        transition: none;
    }

    .qapo__poster:hover {
        transform: none;
    }

    .qapo__float--player.is-player-arrived {
        animation: none;
    }

    .qapo__float--related .lodyt {
        transition: none;
    }

    .qapo__float--related .lodyt:hover {
        transform: none;
    }
}

/* Кольцо сверху по центру, кнопки — две колонки снизу */
.qapo__rating-ext {
    position: relative;
    z-index: 10;
    font-size: var(--qapo-fs-ui);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
    padding: 0;
    min-height: 0;
    box-sizing: border-box;
}

.qapo__ratingscore-ring {
    grid-column: 1 / -1;
    justify-self: center;
    width: 68px;
    min-height: 68px;
    font-weight: 700;
    font-size: 18px;
    background-color: var(--bg);
    color: var(--tt);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(var(--bdc-rgb), 0.25);
    position: relative;
    left: auto;
    top: auto;
    translate: none;
    isolation: isolate;
    border-radius: 50%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}

.dt .qapo__ratingscore-ring {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.qapo__ratingscore-ring::before {
    content: '';
    position: absolute;
    z-index: -2;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent-light) 0%, var(--accent) var(--p), rgba(var(--bdc-rgb), 0.35) var(--p));
}

.qapo__ratingscore-ring::after {
    content: '';
    position: absolute;
    z-index: -1;
    background-color: var(--bg);
    inset: 4px;
    border-radius: 50%;
}

.qapo__rating-ext a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 0 10px;
    font-weight: 600;
    gap: 8px;
    border-radius: 10px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.28);
    color: var(--tt);
}

.qapo__rating-ext a + a {
    background: rgba(var(--red-rgb), 0.08);
    border-color: rgba(var(--red-rgb), 0.28);
}

.qapo__rating-ext a:hover {
    transform: translateY(-1px);
}

.qapo__rating-ext a:first-child:hover {
    background: rgba(249, 115, 22, 0.16);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
}

.qapo__rating-ext a + a:hover {
    background: rgba(var(--red-rgb), 0.14);
    box-shadow: 0 4px 12px rgba(var(--red-rgb), 0.12);
}

.qapo__rating-ext a .fal {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.35);
    flex-shrink: 0;
}

.qapo__rating-ext a + a .fal {
    background-color: var(--red);
    background-image: none;
    box-shadow: 0 2px 10px rgba(var(--red-rgb), 0.35);
}

.qapo__header h1 {
	font-family: var(--qapo-font-display, var(--font-display));
	font-size: var(--qapo-fs-h1);
	font-weight: 800;
	line-height: 1.22;
	letter-spacing: -0.035em;
	color: var(--tt);
	text-shadow: none;
	background: none;
	-webkit-text-fill-color: currentColor;
	-webkit-background-clip: border-box;
	background-clip: border-box;
}

.dt .qapo__header h1 {
	color: transparent;
	text-shadow: none;
	background: linear-gradient(118deg, #ffffff 8%, #e8eef6 48%, #c5d0de 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.qapo__header h1 a {
    font-size: var(--qapo-fs-ui);
    margin-left: 15px;
    color: #ff2d74;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 45, 116, 0.1);
    border: 1px solid rgba(255, 45, 116, 0.2);
}

.qapo__header h1 a:hover {
    color: #ff5599;
    text-decoration: none;
    background: rgba(255, 45, 116, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 45, 116, 0.2);
}

.qapo__text .full-text {
    color: rgba(var(--tt-rgb), 0.8);
}

.qapo__text {
    margin-bottom: 0;
    position: relative;
}

/* Сюжет и описание: плавное раскрытие без прыжка страницы и теней */
.qapo__desc-expand-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 24px;
    overflow-anchor: none;
}

.qapo__desc-text-wrap {
    --qapo-desc-collapsed: 9.75rem;
    position: relative;
    max-height: var(--qapo-desc-collapsed);
    overflow: hidden;
    overflow-anchor: none;
    border-radius: 0;
    transition: max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.qapo__desc-expand-wrap.is-expanded .qapo__desc-text-wrap {
    max-height: none;
    -webkit-mask-image: none;
    mask-image: none;
}

.qapo__desc-expand-wrap.is-animating .qapo__desc-text-wrap {
    max-height: var(--qapo-desc-anim, var(--qapo-desc-collapsed));
}

@media (prefers-reduced-motion: reduce) {
    .qapo__desc-text-wrap {
        transition: none;
    }
}

.qapo__desc-body {
    margin: 0;
}

.qapo__desc-body p {
    margin: 0 0 0.85em;
}

.qapo__desc-body p:last-child {
    margin-bottom: 0;
}

/* Обрезка через маску — только когда текст длиннее лимита */
.qapo__desc-expand-wrap.has-desc-expand-btn:not(.is-expanded) .qapo__desc-text-wrap {
    -webkit-mask-image: linear-gradient(
        to bottom,
        #000 0,
        #000 calc(100% - 2.75rem),
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        #000 0,
        #000 calc(100% - 2.75rem),
        transparent 100%
    );
}

.qapo__desc-expand-wrap.has-desc-expand-btn .qapo__desc-text-wrap {
    padding-bottom: 0;
}

.qapo__desc-expand-wrap .qapo__meta-expand[hidden] {
    display: none !important;
}

.qapo__desc-expand-wrap .qapo__meta-expand {
    position: static;
    display: inline-flex;
    align-self: flex-start;
    margin-top: 10px;
    padding: 0;
    font-size: var(--qapo-fs-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.35;
    color: var(--accent);
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    overflow-anchor: none;
    transition: color 0.2s ease;
}

.qapo__desc-expand-wrap .qapo__meta-expand:hover {
    color: var(--accent-dark, var(--accent));
    background: none;
    border-color: transparent;
    box-shadow: none;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.qapo__desc-expand-wrap .qapo__meta-expand:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

.dt .qapo__desc-expand-wrap .qapo__meta-expand {
    color: var(--accent-light, var(--accent));
    background: none;
    border: none;
    box-shadow: none;
}

.dt .qapo__desc-expand-wrap .qapo__meta-expand:hover {
    color: #fff;
    background: none;
    border-color: transparent;
}

@supports not ((mask-image: linear-gradient(#000, transparent)) or (-webkit-mask-image: linear-gradient(#000, transparent))) {
    .qapo__desc-expand-wrap.has-desc-expand-btn:not(.is-expanded) .qapo__desc-text-wrap {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .qapo__desc-expand-wrap.has-desc-expand-btn:not(.is-expanded) .qapo__desc-text-wrap::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 48%;
        pointer-events: none;
        z-index: 1;
        background: linear-gradient(to top, #fff 14%, transparent 100%);
    }

    body.dt .qapo__desc-expand-wrap.has-desc-expand-btn:not(.is-expanded) .qapo__desc-text-wrap::after {
        background: linear-gradient(to top, var(--bg-darker) 14%, transparent 100%);
    }

    .qapo__desc-expand-wrap.is-expanded .qapo__desc-text-wrap::after {
        display: none;
    }
}

/* Табы «Сюжет и описание» / «Серии» */
.qapo__description.tabs-block {
    min-width: 0;
}

.qapo__desc-tabs {
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.qapo__desc-tabs button {
    flex: 1 1 0;
    min-width: max-content;
    background: rgba(var(--bdc-rgb), 0.25);
    color: rgba(var(--tt-rgb), 0.72);
    text-transform: none;
    font-weight: 500;
    font-size: var(--qapo-fs-ui);
    padding: 10px 16px;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s, border-color 0.2s;
    border: 1px solid rgba(var(--bdc-rgb), 0.4);
    cursor: pointer;
}

.qapo__desc-tabs button:hover {
    color: var(--tt);
    background: rgba(var(--accent-rgb), 0.1);
    border-color: rgba(var(--accent-rgb), 0.25);
}

.qapo__desc-tabs button.is-active {
    background: rgba(var(--accent-rgb), 0.15);
    color: var(--accent);
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(var(--accent-rgb), 0.2);
    border-color: rgba(var(--accent-rgb), 0.35);
}

.dt .qapo__desc-tabs button {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(var(--tt-rgb), 0.75);
}

.dt .qapo__desc-tabs button:hover {
    background: rgba(var(--accent-rgb), 0.12);
    border-color: rgba(var(--accent-rgb), 0.3);
}

.dt .qapo__desc-tabs button.is-active {
    background: rgba(var(--accent-rgb), 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    color: #fff;
}

/* Съёмочная команда — чипы + «люминовый» портрет */
.qapo__persons-inline {
    display: inline;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.qapo__person {
    display: inline;
    position: relative;
    cursor: help;
    color: var(--tt);
    outline: none;
}

.qapo__person-name {
    color: inherit;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-color: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.72);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.qapo__person:hover .qapo__person-name,
.qapo__person.is-open .qapo__person-name,
.qapo__person:focus-visible .qapo__person-name {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

.qapo__person:focus-visible {
    outline: 2px solid rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.85);
    outline-offset: 2px;
    border-radius: 2px;
}

.qapo__person + .qapo__person::before {
    content: none;
}

.qapo__person-sep {
    color: rgba(var(--tt-rgb), 0.72);
}

.qapo__person:last-child .qapo__person-sep {
    display: none;
}

.js-qapo-person > .qapo__person-tip {
    display: none !important;
}

.qapo__person-float {
    --person-card-w: 132px;
    display: none;
    position: absolute;
    z-index: 1000;
    width: var(--person-card-w);
    max-width: min(var(--person-card-w), calc(100vw - 24px));
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: auto;
    transform-origin: 50% 0;
}

.qapo__person-float.is-visible {
    display: block;
    animation: qapo-person-lumen-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.qapo__person-float--touch {
    position: fixed;
    z-index: 10060;
}

.qapo__person-tip-frame {
    position: relative;
    display: block;
    width: 100%;
    padding: 5px;
    border-radius: 14px;
    background:
        linear-gradient(155deg, rgba(255, 252, 246, 0.96) 0%, rgba(245, 236, 220, 0.92) 100%);
    border: 1px solid rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.42);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.35) inset,
        0 14px 36px rgba(var(--qapo-ink-rgb, 12, 16, 24), 0.28),
        0 0 28px rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.28);
}

.qapo__person-tip-frame::before,
.qapo__person-tip-frame::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.85);
    border-style: solid;
    pointer-events: none;
    z-index: 2;
}

.qapo__person-tip-frame::before {
    top: 8px;
    left: 8px;
    border-width: 2px 0 0 2px;
    border-radius: 3px 0 0 0;
}

.qapo__person-tip-frame::after {
    right: 8px;
    bottom: 8px;
    border-width: 0 2px 2px 0;
    border-radius: 0 0 3px 0;
}

.qapo__person-tip-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 50% 20%, rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.35) 0%, transparent 55%),
        #141a24;
}

.qapo__person-tip-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 45%, rgba(12, 16, 24, 0.55) 100%),
        radial-gradient(ellipse 90% 70% at 50% 0%, rgba(255, 252, 246, 0.14) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.qapo__person-tip-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    transform: scale(1.02);
    transition: transform 0.45s ease;
}

.qapo__person-float:hover .qapo__person-tip-media img {
    transform: scale(1.06);
}

.qapo__person-tip-glow {
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: -6px;
    height: 18px;
    border-radius: 50%;
    background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.45);
    filter: blur(10px);
    pointer-events: none;
    z-index: 0;
}

.qapo__person-tip-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: var(--qapo-font-display, var(--font-display));
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: rgba(255, 252, 246, 0.92);
    background:
        linear-gradient(160deg, rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.85) 0%, rgba(168, 104, 24, 0.95) 55%, #141a24 120%);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.dt .qapo__person-tip-frame {
    background:
        linear-gradient(155deg, rgba(28, 34, 46, 0.98) 0%, rgba(18, 22, 30, 0.96) 100%);
    border-color: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.38);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 16px 40px rgba(0, 0, 0, 0.55),
        0 0 32px rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.22);
}

@keyframes qapo-person-lumen-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.92);
        filter: saturate(0.7);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qapo__person-float.is-visible {
        animation: none;
    }

    .qapo__person-tip-media img,
    .qapo__person-float:hover .qapo__person-tip-media img {
        transform: none;
        transition: none;
    }
}

/* График / список серий */
.qapo__schedule {
    min-width: 0;
}

.qapo__schedule-scroll {
    overflow-x: auto;
    overflow-y: auto;
    max-height: min(480px, 58vh);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--bdc-rgb), 0.55) transparent;
    border-radius: 12px;
    border: 1px solid rgba(var(--bdc-rgb), 0.42);
    background: rgba(var(--bg-darker-1-rgb), 0.35);
    padding: 12px 14px;
    font-family: inherit;
    font-size: var(--qapo-fs-body);
    line-height: var(--qapo-lh-body);
}

.qapo__schedule-scroll::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

.qapo__schedule-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(var(--bdc-rgb), 0.55);
}

.dt .qapo__schedule-scroll {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.dt .qapo__schedule-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.28);
}

.qapo__schedule-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: var(--qapo-fs-ui);
    line-height: var(--qapo-lh-ui);
}

.qapo__schedule-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 12px 14px;
    text-align: left;
    font-size: var(--qapo-fs-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(var(--tt-rgb), 0.55);
    background: rgba(var(--bg-rgb), 0.95);
    border-bottom: 2px solid rgba(var(--accent-rgb), 0.25);
    white-space: nowrap;
}

.dt .qapo__schedule-table thead th {
    background: rgba(18, 21, 31, 0.98);
    color: rgba(var(--tt-rgb), 0.65);
}

.qapo__schedule-table tbody tr {
    border-bottom: 1px solid rgba(var(--bdc-rgb), 0.28);
    transition: background 0.15s ease;
}

.qapo__schedule-table tbody tr:hover {
    background: rgba(var(--accent-rgb), 0.06);
}

.qapo__schedule-table tbody td,
.qapo__schedule-table tbody th {
    padding: 11px 14px;
    vertical-align: middle;
    color: rgba(var(--tt-rgb), 0.82);
}

.qapo__schedule-table .season-badge,
.qapo__schedule-table .episode-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: var(--qapo-fs-2xs);
    font-weight: 600;
    background: rgba(var(--accent-rgb), 0.12);
    border: 1px solid rgba(var(--accent-rgb), 0.22);
    color: var(--accent);
    white-space: nowrap;
}

.qapo__schedule-table .episode-status {
    font-weight: 600;
    font-size: var(--qapo-fs-xs);
}

.qapo__schedule-table tr:not(.has_episode) .episode-status,
.qapo__schedule-table tr:not(.has-episode) .episode-status {
    color: rgba(var(--tt-rgb), 0.45);
}

.qapo__schedule-table tr.has_episode .episode-status,
.qapo__schedule-table tr.has-episode .episode-status {
    color: var(--green);
}

/* Эмодзи-рейтинг внутри панели плеера */
.qapo__player-emote .qapo__emote.dle_emote_block,
.qapo__player-emote .dle_emote_block--rating {
    margin: 0;
}

/* FAQ — аккуратный аккордеон, не «SEO-свалка» (п.7) */
.qapo__float--faq {
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
    content-visibility: auto;
    contain-intrinsic-size: auto 480px;
}

.qapo__float--faq .qapo__cols-left {
    padding-bottom: var(--qapo-pad-y, 28px);
}

.qapo__subtitle--faq {
    margin: 0 0 18px;
    padding: 0 0 14px 14px;
    border-top: none;
    border-bottom: 1px solid rgba(var(--bdc-rgb), 0.28);
    text-align: left;
    background: none;
    font-family: var(--qapo-font-display, var(--font-display));
}

.qapo__subtitle--faq .qapo__subtitle-inner {
    max-width: none;
}

.qapo__faq {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    border-top: 1px solid rgba(var(--bdc-rgb), 0.22);
}

.dt .qapo__faq {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.qapo__faq-item {
    position: relative;
    border: none;
    border-bottom: 1px solid rgba(var(--bdc-rgb), 0.22);
    border-radius: 0;
    background: transparent;
    overflow: hidden;
    transition: background 0.2s ease;
}

.dt .qapo__faq-item {
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.qapo__faq-item:has(.qapo__faq-input:checked) {
    border-color: transparent;
    border-bottom-color: rgba(var(--bdc-rgb), 0.22);
    box-shadow: none;
    background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.05);
}

.dt .qapo__faq-item:has(.qapo__faq-input:checked) {
    box-shadow: none;
    background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.08);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.qapo__faq-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.qapo__faq-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 40px 14px 4px;
    font-family: var(--qapo-font-display, var(--font-display));
    font-size: var(--qapo-fs-sm);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--tt);
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
    position: relative;
}

.qapo__faq-title::before {
    content: "";
    flex-shrink: 0;
    width: 3px;
    height: 1.1em;
    border-radius: 2px;
    background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.35);
    box-shadow: none;
    transition: background 0.2s ease, height 0.2s ease;
}

.qapo__faq-input:checked + .qapo__faq-title::before {
    background: linear-gradient(180deg, var(--qapo-lamp, var(--accent)) 0%, var(--qapo-ember, var(--accent-dark)) 100%);
    box-shadow: 0 0 10px rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.35);
    transform: none;
}

.qapo__faq-title::after {
    content: "\f078";
    font-family: "Font Awesome 5 Pro";
    font-weight: 300;
    position: absolute;
    right: 4px;
    top: 50%;
    translate: 0 -50%;
    font-size: 12px;
    color: rgba(var(--tt-rgb), 0.4);
    transition: transform 0.25s ease, color 0.2s ease;
}

.qapo__faq-input:checked + .qapo__faq-title {
    color: var(--tt);
}

.qapo__faq-input:checked + .qapo__faq-title::after {
    transform: rotate(180deg);
    color: var(--qapo-lamp, var(--accent));
}

@media (hover: hover) and (pointer: fine) {
    .qapo__faq-title:hover {
        background: transparent;
        color: var(--qapo-lamp, var(--accent-dark));
    }
}

.qapo__faq-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s ease;
}

.qapo__faq-input:checked + .qapo__faq-title + .qapo__faq-content {
    grid-template-rows: 1fr;
}

.qapo__faq-answer {
    overflow: hidden;
    min-height: 0;
    padding: 0 4px;
    color: rgba(var(--tt-rgb), 0.72);
    font-size: var(--qapo-fs-sm);
    line-height: var(--qapo-lh-body);
}

.qapo__faq-input:checked + .qapo__faq-title + .qapo__faq-content .qapo__faq-answer {
    padding: 0 4px 16px 19px;
}

.qapo__faq-answer p {
    margin: 0;
}

.qapo__faq-answer p + p {
    margin-top: 10px;
}

.qapo__list {
    line-height: var(--qapo-lh-body);
    font-size: var(--qapo-fs-body);
    display: grid;
    gap: 5px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.qapo__list li {
    padding: 3px;
    border-bottom: 1px dashed rgba(var(--bdc-rgb), 0.3);
}

.qapo__list li > span:first-child {
    font-weight: 600;
    color: var(--tt);
    margin-right: 5px;
    display: inline-block;
}

.qapo__list a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 3px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: 8px;
    font-weight: 600;
}

.qapo__list a:hover {
    color: var(--tt);
}

.qapo__list-wide {
    grid-column: 1 / -1;
}

.qapo__list-rates-item {
    font-size: var(--qapo-fs-body);
    min-height: 24px;
    padding-left: 32px;
    line-height: 24px;
    background-size: 24px !important;
    background-repeat: no-repeat;
    background-position: 0 center;
}

.qapo__list-rates-item.kp {
    background: url(../images/kp.svg) 0 center / 24px no-repeat;
}

.qapo__list-rates-item.imdb {
    background: url(../images/imdb.svg) 0 center / 24px no-repeat;
}

.qapo__list-rates-item.tmdb {
    background: url(../images/tmdb.svg) 0 center / 24px no-repeat;
}

.qapo__list-rates-item.kinorium {
    background-image: url(../images/kinorium.svg);
    background-size: 22px !important;
}

.qapo__subtitle {
    border-top: 1px solid rgba(var(--bdc-rgb), 0.35);
    margin-inline: calc(-1 * var(--qapo-pad-x, 28px));
    padding: 20px var(--qapo-pad-x, 28px);
    text-align: center;
    font-weight: 700;
    background: linear-gradient(90deg, transparent 0%, rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.1) 50%, transparent 100%);
    box-sizing: border-box;
}

.qapo__subtitle-inner {
    display: block;
    max-width: none;
    width: 100%;
    text-wrap: wrap;
}

.qapo__float--player .qapo__subtitle {
    margin-inline: 0;
    border-top: none;
    border-bottom: 1px solid rgba(var(--bdc-rgb), 0.28);
    padding: 18px var(--qapo-pad-x, 28px);
    text-align: center;
}

.qapo__float--player .qapo__cols:last-child .qapo__cols-left {
    padding-top: var(--qapo-pad-y, 24px);
}


/* Блок плеера: «карточка» + segmented tabs + зона видео + нижняя панель */
.qapo__player {
    position: relative;
    padding: 0;
    overflow: visible;
    scroll-margin-top: max(16px, env(safe-area-inset-top, 0px));
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.qapo__player-surface {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 0;
	width: 100%;
	max-width: 100%;
	border: none;
	box-shadow: none;
	border-radius: 0;
	overflow: visible;
	box-sizing: border-box;
}

/* Табы + iframe: отдельная «парящая» плита внутри карточки страницы */
.qapo__player-viewport {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 100%;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: linear-gradient(165deg, #141824 0%, #0c0e14 45%, #080a0f 100%);
	box-sizing: border-box;
}

.qapo__player-controls {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    flex-wrap: nowrap;
    padding: 10px 12px;
    gap: 8px;
    margin: 0;
    border-bottom: none;
    background: transparent;
    border-radius: 0;
    box-sizing: border-box;
}

.qapo__player-view-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    align-items: stretch;
    flex: none;
    gap: 6px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-sizing: border-box;
}

.qapo__player-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.qapo__player-view-btn .fal {
    font-size: 13px;
}

.qapo__player-view-btn:hover {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.06);
}

.qapo__player-view-btn.is-active {
    color: #fff;
    background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.42);
    box-shadow: 0 0 0 1px rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.35);
}

.qapo__player-view-btn:focus-visible {
    outline: 2px solid rgba(var(--accent-rgb), 0.85);
    outline-offset: 2px;
}

/* Развёрнутый вид: подпись над плеером, на всю ширину как табы */
.qapo__player--stack .qapo__player-stage {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: #0a0c12;
    overflow: visible;
}

.qapo__player--stack .qapo__player-stage .tabs-block__content {
    display: flex !important;
    flex-direction: column;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #0a0c12;
    overflow: hidden;
    aspect-ratio: auto !important;
    max-height: none !important;
    height: auto !important;
    min-height: 0 !important;
}

.qapo__player--stack .qapo__player-stage .tabs-block__content:first-child {
    border-top: 0;
}

.qapo__player--stack .qapo__player-stage .tabs-block__content::before {
    content: attr(data-player-label);
    display: block;
    position: static;
    order: -1;
    width: 100%;
    margin: 0;
    padding: 10px 14px;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.01em;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.78);
    box-sizing: border-box;
    pointer-events: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.qapo__player--stack .qapo__player-stage .tabs-block__content::after {
    content: none !important;
    display: none !important;
}

.qapo__player--stack .qapo__player-stage .tabs-block__content > video-player,
.qapo__player--stack .qapo__player-stage .tabs-block__content > iframe {
    position: relative !important;
    inset: auto !important;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    flex: 0 0 auto;
    border-radius: 0;
}

.qapo__player--stack .qapo__player-stage .tabs-block__content.video-responsive {
    padding-top: 0 !important;
    height: auto !important;
}

.qapo__player--stack .qapo__player-stage .tabs-block__content.video-responsive > iframe,
.qapo__player--stack .qapo__player-stage .tabs-block__content.video-responsive > video,
.qapo__player--stack .qapo__player-stage .tabs-block__content.video-responsive > video-player {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
}

.qapo__player--stack .qapo__player-tabs button.is-active {
    box-shadow: inset 0 0 0 1px rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.45);
}

@media screen and (min-width: 761px) {
    .qapo__player--stack.qapo__player .qapo__player-stage .tabs-block__content:has(> video-player),
    .qapo__player--stack.qapo__player .qapo__player-stage .tabs-block__content.video-inside.video-responsive,
    .qapo__player--stack.qapo__player .qapo__player-stage .tabs-block__content:has(> iframe[src]),
    .qapo__player--stack.qapo__player .qapo__player-stage .tabs-block__content:has(> iframe[data-src]) {
        --qapo-player-h: none;
        max-height: none;
        aspect-ratio: auto;
    }

    .qapo__player--stack.qapo__player .qapo__player-stage .tabs-block__content > video-player,
    .qapo__player--stack.qapo__player .qapo__player-stage .tabs-block__content > iframe {
        max-height: min(34vh, 320px);
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }
}

@media screen and (max-width: 760px) {
    .qapo__player-controls {
        padding: 10px;
        gap: 8px;
    }

    .qapo__player .tabs-block__select.qapo__player-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .qapo__player-view-btn .fal {
        display: none;
    }

    .qapo__player--stack .qapo__player-stage {
        padding: 0;
        gap: 0;
    }

    .qapo__schedule-section {
        margin: 16px 0 4px;
    }

    .qapo__schedule-tabs {
        margin-bottom: 12px;
    }
}

.qapo__player--tabs .qapo__player-stage {
    display: block;
}

.qapo__player-bookmark-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 9px clamp(10px, 2vw, 16px);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0;
    background: rgba(0, 0, 0, 0.32);
    box-sizing: border-box;
}

.qapo__player-bookmark-hint-ico {
    flex-shrink: 0;
    width: 1.25rem;
    font-size: 14px;
    line-height: 1;
    text-align: center;
    color: var(--accent-light, var(--accent));
}

.qapo__player-bookmark-hint-text {
    margin: 0;
    min-width: 0;
    font-size: var(--qapo-fs-xs, 12px);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.8);
}

.qapo__player .tabs-block__select.qapo__player-tabs,
.qapo__player .qapo__player-tabs {
    grid-column: 1;
    gap: 6px;
    margin: 0;
    padding: 2px;
    width: 100%;
    min-width: 0;
    flex: none;
    flex-wrap: nowrap;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    box-sizing: border-box;
}

.qapo__player .tabs-block__select button {
    flex: 1 1 0;
    max-width: none;
    min-width: 0;
    min-height: 44px;
    position: relative;
    border-radius: 8px;
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.62);
    background: transparent;
    text-transform: none;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.15s ease;
}

.qapo__player .tabs-block__select button.is-active::after,
.qapo__player .tabs-block__select button.is-active::before {
    display: none;
    content: none;
}

.qapo__player .tabs-block__select button:hover {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.06);
}

.qapo__player .tabs-block__select button:focus-visible {
    outline: 2px solid rgba(var(--accent-rgb), 0.85);
    outline-offset: 2px;
}

.qapo__player .tabs-block__select button.is-active {
    color: #fff;
    background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.45) 0%, rgba(var(--accent-rgb), 0.22) 100%);
    box-shadow: 0 4px 18px rgba(var(--accent-rgb), 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Жалоба + «Свет»: общая группа в шапке плеера; на мобильных — кнопка «Ещё» и выпадающая панель */
.qapo__player-extras.qapo__player-actions {
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: min(100%, 320px);
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: 35;
}

.qapo__extras-trigger {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.qapo__extras-trigger .fal {
    font-size: 16px;
    opacity: 0.95;
}

.qapo__extras-trigger:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.22);
}

.qapo__extras-trigger:focus-visible {
    outline: 2px solid rgba(var(--accent-rgb), 0.85);
    outline-offset: 2px;
}

.qapo__player-extras.is-open .qapo__extras-trigger {
    background: rgba(var(--accent-rgb), 0.22);
    border-color: rgba(var(--accent-rgb), 0.45);
    color: #fff;
}

.qapo__extras-panel {
    display: inline-flex;
    align-items: stretch;
    flex-direction: row;
    flex-wrap: nowrap;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.qapo__extras-complaint {
    display: flex;
    align-items: stretch;
    padding: 0;
}

.qapo__complaint.qapo__extras-complaint a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 14px;
    color: #fecdd3;
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.qapo__complaint.qapo__extras-complaint a:hover {
    background: rgba(251, 113, 133, 0.18);
    color: #ffe4e6;
    text-decoration: none !important;
}

.qapo__complaint-label {
    letter-spacing: 0.01em;
}

.qapo__complaint.qapo__extras-complaint {
    padding: 0;
    color: inherit;
}

/* Разделитель между жалобой и светом */
.qapo__player .qapo__extras-light.has-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 8px 12px 8px 44px;
    border: none;
    border-radius: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.qapo__player .qapo__extras-light.has-checkbox:hover {
    background: rgba(255, 255, 255, 0.08);
}

.qapo__player .qapo__extras-light.has-checkbox input {
    left: 10px;
    top: 50%;
    margin-top: 0;
    transform: translateY(-50%);
    width: 36px;
    height: 22px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.qapo__player .qapo__extras-light.has-checkbox input::before {
    width: 18px;
    height: 18px;
    top: 2px;
    left: 2px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.qapo__player .qapo__extras-light.has-checkbox input:checked {
    background: rgba(var(--accent-rgb), 0.55);
}

.qapo__player .qapo__extras-light.has-checkbox input:checked::before {
    left: 16px;
}

@media screen and (max-width: 760px) {
    .qapo__extras-trigger {
        display: inline-flex;
        min-height: 36px;
        padding: 0 12px;
        font-size: 12px;
        border-radius: 10px;
    }

    .qapo__extras-panel {
        display: none;
        position: absolute;
        right: 0;
        top: calc(100% + 8px);
        z-index: 30;
        flex-direction: column;
        align-items: stretch;
        min-width: min(100vw - 32px, 280px);
        max-width: min(100vw - 32px, 320px);
        padding: 8px;
        gap: 6px;
        border-radius: 16px;
        background: rgba(18, 21, 28, 0.97);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow:
            0 0 0 1px rgba(0, 0, 0, 0.4),
            0 16px 40px rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .qapo__player-extras.is-open .qapo__extras-panel {
        display: flex;
    }

    .qapo__complaint.qapo__extras-complaint a {
        width: 100%;
        justify-content: flex-start;
        min-height: 46px;
        padding: 10px 14px;
        border-radius: 12px;
        background: rgba(251, 113, 133, 0.1);
        border: 1px solid rgba(251, 113, 133, 0.22);
    }

    .qapo__complaint.qapo__extras-complaint a:hover {
        background: rgba(251, 113, 133, 0.18);
    }

    .qapo__player .qapo__extras-light.has-checkbox {
        width: 100%;
        box-sizing: border-box;
        justify-content: space-between;
        padding: 12px 14px 12px 52px;
        border-left: none;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .qapo__player .qapo__extras-light.has-checkbox input {
        left: 14px;
    }
}

.qapo__player-stage {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: #000;
    isolation: isolate;
    overflow: hidden;
    box-sizing: border-box;
}

.qapo__player-ad-toast {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 10px;
    z-index: 25;
    margin: 0;
    padding: 12px 38px 12px 14px;
    border-radius: 12px;
    text-align: left;
    background: rgba(16, 18, 24, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    max-height: min(38vh, 200px);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.qapo__player-ad-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.qapo__player-ad-toast-text {
    margin: 0;
    font-size: var(--qapo-fs-xs);
    line-height: var(--qapo-lh-ui);
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.01em;
}

.qapo__player-ad-toast-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.qapo__player-ad-toast-close:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.qapo__player-ad-toast-close:focus-visible {
    outline: 2px solid rgba(var(--accent-rgb), 0.85);
    outline-offset: 2px;
}

.qapo__player-stage .tabs-block__content {
	min-height: 0;
	max-height: none;
	width: 100%;
	overflow: visible;
}

.qapo__player-stage .tabs-block__content:has(> video-player) {
	aspect-ratio: 16 / 9;
	width: 100%;
	background-color: #000;
}

.qapo__player-stage .tabs-block__content.video-inside.video-responsive,
.qapo__player-stage .tabs-block__content:has(> iframe[src]),
.qapo__player-stage .tabs-block__content:has(> iframe[data-src]) {
	aspect-ratio: 16 / 9;
	width: 100%;
	height: auto;
	padding-top: 0;
	max-height: none;
	min-height: 0;
	overflow: hidden;
	position: relative;
	background-color: #000;
}

/* Десктоп и планшет: полная ширина, высота ограничена — не на весь экран */
@media screen and (min-width: 761px) {
	.qapo__float--player:not(.is-cinema-active) .qapo__player-stage .tabs-block__content:has(> video-player),
	.qapo__float--player:not(.is-cinema-active) .qapo__player-stage .tabs-block__content.video-inside.video-responsive,
	.qapo__float--player:not(.is-cinema-active) .qapo__player-stage .tabs-block__content:has(> iframe[src]),
	.qapo__float--player:not(.is-cinema-active) .qapo__player-stage .tabs-block__content:has(> iframe[data-src]) {
		--qapo-player-h: min(40vh, 380px);
		width: 100%;
		max-width: 100%;
		max-height: var(--qapo-player-h);
		aspect-ratio: 16 / 9;
		height: auto;
		flex-shrink: 0;
	}

	.qapo__float--player:not(.is-cinema-active) .qapo__player-stage .tabs-block__content > video-player,
	.qapo__float--player:not(.is-cinema-active) .qapo__player-stage .tabs-block__content > iframe {
		display: block;
		width: 100%;
		height: 100%;
		min-height: 0;
	}
}

.qapo__player-stage .tabs-block__content:has(> video-player)::before,
.qapo__player-stage .tabs-block__content:has(iframe[src])::before,
.qapo__player-stage .tabs-block__content.is-native-player::before,
.qapo__player-stage .tabs-block__content.is-media-ready::before {
	content: none;
	display: none;
}

/* Стек: подпись над плеером не должна гаситься правилом is-media-ready */
.qapo__player--stack .qapo__player-stage .tabs-block__content::before,
.qapo__player--stack .qapo__player-stage .tabs-block__content:has(> video-player)::before,
.qapo__player--stack .qapo__player-stage .tabs-block__content:has(iframe[src])::before,
.qapo__player--stack .qapo__player-stage .tabs-block__content:has(iframe[data-src])::before,
.qapo__player--stack .qapo__player-stage .tabs-block__content.is-native-player::before,
.qapo__player--stack .qapo__player-stage .tabs-block__content.is-media-ready::before {
	content: attr(data-player-label) !important;
	display: block !important;
	position: static !important;
	inset: auto !important;
	order: -1;
	width: 100%;
	margin: 0;
	padding: 10px 14px;
	border: 0;
	border-radius: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(255, 255, 255, 0.04);
	font-size: 12px;
	font-weight: 650;
	letter-spacing: 0.01em;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.78);
	box-sizing: border-box;
	pointer-events: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	z-index: auto;
}

.qapo__player--stack .qapo__player-stage .tabs-block__content.video-responsive > iframe,
.qapo__player--stack .qapo__player-stage .tabs-block__content.video-responsive > video,
.qapo__player--stack .qapo__player-stage .tabs-block__content.video-responsive > video-player {
	position: relative !important;
	inset: auto !important;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 16 / 9;
}

.qapo__player-stage .tabs-block__content > video-player {
	display: block;
	position: relative;
	z-index: 5;
	width: 100%;
	height: 100%;
	min-height: 200px;
}

.qapo__player-stage .tabs-block__content iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 0;
}

.qapo__player-stage .video-responsive {
	border-radius: 0;
	box-shadow: none;
	padding-top: 0;
}

.qapo__player-stage .video-responsive > iframe,
.qapo__player-stage .video-responsive > video,
.qapo__player-stage .video-responsive > video-player {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
}

.qapo__player-viewport .tabs-block__content::before {
	font-size: 56px;
}

@media (prefers-reduced-motion: reduce) {
    .qapo__player .tabs-block__select button,
    .qapo__complaint a,
    .qapo__extras-trigger,
    .qapo__player-ad-toast,
    .qapo__fav a,
    .qapo__likes a,
    .qapo__share-link,
    .qapo__toolbar-btn,
    .qapo__player-toolbar {
        transition-duration: 0.01ms !important;
    }

    .qapo__share-link:hover {
        transform: none;
    }
}

.ya-share2 {
    min-height: 24px;
}

/* Нижняя панель плеера: тулбар + эмодзи-рейтинг одним блоком */
.qapo__player-bottom {
    padding: 10px 0 0;
    background: transparent;
    border: none;
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.qapo__player-bottom > .qapo__player-actions {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    background: linear-gradient(165deg, #141824 0%, #0c0e14 45%, #080a0f 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
    overflow: visible;
    position: relative;
    z-index: 5;
}

.qapo__player-bottom > .qapo__player-actions > .qapo__player-toolbar {
    border: none;
    border-radius: 12px 12px 0 0;
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: visible;
    position: relative;
    z-index: 6;
}

.qapo__player-mylists {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 8px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.28);
}

.qapo__player-mylists:empty,
.qapo__player-mylists:not(:has(.mylists-switch li)) {
    display: none;
}

.qapo__player-emote {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

/* Эмоции под плеером — опросные ряды (тёмная зона плеера) */
.qapo__player-emote .qapo__emote.dle_emote_block,
.qapo__player-emote .dle_emote_block--rating {
    --emote-surface: transparent;
    --emote-surface-2: transparent;
    --emote-border: rgba(255, 255, 255, 0.1);
    --emote-border-strong: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.5);
    --emote-text: rgba(255, 255, 255, 0.94);
    --emote-muted: rgba(255, 255, 255, 0.52);
    --emote-accent: var(--qapo-lamp, #c48a2e);
    --emote-shadow: none;
}

.qapo__player-emote .dle_emote_block--rating .dle_emote_shell {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.qapo__player-emote .dle_emote_block--rating .dle_emote_header {
    justify-content: flex-start;
    align-content: flex-start;
    padding: 10px 12px 8px;
    border: none;
    background: transparent;
}

.qapo__player-emote .dle_emote_block--rating .dle_emote_title {
    color: #fff;
}

.qapo__player-emote .dle_emote_block--rating .dle_emote_prompt {
    color: rgba(255, 255, 255, 0.52);
}

.qapo__player-emote .dle_emote_block--rating .dle_emote_stat {
    color: rgba(255, 255, 255, 0.5);
}

.qapo__player-emote .dle_emote_block--rating .dle_emote_stat strong,
.qapo__player-emote .dle_emote_block--rating .dle_emote_label,
.qapo__player-emote .dle_emote_block--rating .dle_emote_vote {
    color: #fff;
}

.qapo__player-emote .dle_emote_block--rating .dle_emote_lead,
.qapo__player-emote .dle_emote_block--rating .dle_emote_pct {
    color: rgba(255, 255, 255, 0.48);
}

.qapo__player-emote .dle_emote_block--rating .dle_emote_distribution {
    background: rgba(255, 255, 255, 0.08);
}

/* Сброс глобальных button-стилей внутри зоны плеера */
.qapo__player-emote .dle_emote_block--rating .dle_emote_item {
    display: grid !important;
    height: auto !important;
    min-height: 56px;
    padding: 10px 12px !important;
    white-space: normal;
    background-color: rgba(255, 255, 255, 0.045);
    color: inherit;
    box-shadow: none;
}

.qapo__player-emote .dle_emote_block--rating.dle_emote_block--compact .dle_emote_item {
    display: inline-flex !important;
    min-height: 44px;
    padding: 8px 10px !important;
}

@media (min-width: 720px) {
    .qapo__player-emote .dle_emote_block--rating.dle_emote_block--compact .dle_emote_item {
        display: grid !important;
        min-height: 58px;
        padding: 10px 12px !important;
    }
}

.qapo__player-emote .dle_emote_block--rating .dle_emote_item::after {
    display: none !important;
}

.qapo__player-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px 12px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    flex-wrap: wrap;
}

.qapo__player-toolbar-primary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.qapo__player-toolbar-secondary {
    opacity: 0.72;
}

.qapo__player-toolbar-secondary:hover,
.qapo__player-toolbar-secondary:focus-within {
    opacity: 1;
}

.qapo__toolbar-devices {
    flex: 1 1 220px;
    min-width: 0;
    margin: 0;
    font-size: var(--qapo-fs-xs, 12px);
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.58);
}

/* П.3: шаринг в details — панель под кнопкой, без клиппинга */
.qapo__player-share-menu {
    position: relative;
    flex: 0 0 auto;
    margin: 0;
    min-width: 0;
    z-index: 8;
}

.qapo__player-share-toggle {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.qapo__player-share-toggle::-webkit-details-marker {
    display: none;
}

.qapo__player-share-toggle .fal {
    font-size: 14px;
    opacity: 0.9;
}

.qapo__player-share-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}

.qapo__player-share-toggle:focus-visible {
    outline: 2px solid rgba(var(--accent-rgb), 0.85);
    outline-offset: 2px;
}

.qapo__player-share-menu[open] .qapo__player-share-toggle {
    background: rgba(var(--accent-rgb), 0.22);
    border-color: rgba(var(--accent-rgb), 0.45);
    color: #fff;
}

.qapo__player-share-menu > .qapo__toolbar-social {
    display: none;
}

.qapo__player-share-menu[open] > .qapo__toolbar-social {
    display: flex;
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    bottom: auto;
    z-index: 60;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px;
    min-width: min(100vw - 32px, 320px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #12151f;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.qapo__player-share-menu .qapo__toolbar-social-label {
    display: none;
}

.qapo__toolbar-social {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
}

.qapo__player-toolbar > .qapo__player-side-actions {
    margin-left: auto;
}


.qapo__player-toolbar > .qapo__toolbar-sep:not(.qapo__toolbar-sep--inner) {
    flex-shrink: 0;
}

.qapo__player-side-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    flex: 0 0 auto;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* Жалоба / график — тот же силуэт, что «Поделиться» (не квадрат 36×36) */
.qapo__player-schedule-btn,
.qapo__toolbar-btn.qapo__toolbar-btn--complaint {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    box-sizing: border-box;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.qapo__player-schedule-btn .fal,
.qapo__toolbar-btn.qapo__toolbar-btn--complaint .fal {
    font-size: 14px;
    opacity: 0.9;
}

.qapo__toolbar-btn.qapo__toolbar-btn--complaint .qapo__toolbar-btn-label {
    font-size: 13px;
    font-weight: 600;
}

.qapo__player-schedule-btn:hover,
.qapo__toolbar-btn.qapo__toolbar-btn--complaint:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.qapo__player-schedule-btn:focus-visible,
.qapo__toolbar-btn.qapo__toolbar-btn--complaint:focus-visible {
    outline: 2px solid rgba(var(--accent-rgb), 0.85);
    outline-offset: 2px;
}

.qapo__toolbar-btn.qapo__toolbar-btn--complaint:hover,
.qapo__complaint-link:hover {
    background: rgba(251, 113, 133, 0.18);
    border-color: rgba(251, 113, 133, 0.4);
    color: #ffe4e6;
}

@media (max-width: 479px) {
    .qapo__player-schedule-btn,
    .qapo__toolbar-btn.qapo__toolbar-btn--complaint {
        width: 40px;
        min-width: 40px;
        padding: 0;
        gap: 0;
    }

    .qapo__player-schedule-btn > span:not(.fal),
    .qapo__toolbar-btn.qapo__toolbar-btn--complaint .qapo__toolbar-btn-label {
        display: none;
    }
}

.qapo__toolbar-social-label {
    flex-shrink: 0;
    font-size: var(--qapo-fs-xs, 12px);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
}

.qapo__schedule-player {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: clip;
}

.qapo__schedule-section {
    min-width: 0;
    max-width: 100%;
}

.qapo__schedule-player-title {
    margin: 0 0 14px;
    padding: 0 0 0 14px;
    font-family: var(--qapo-font-display, var(--font-display));
    font-size: var(--qapo-fs-h2);
    font-weight: 700;
    line-height: var(--qapo-lh-heading);
    letter-spacing: -0.03em;
    color: var(--tt);
}

/* Горизонтальный скролл сезонов — без своего фона и лишних полей */
.qapo__schedule-tabs-rail {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 14px;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    cursor: grab;
    background: transparent;
    box-shadow: none;
}

.qapo__schedule-tabs-rail.is-drag-scrolling {
    cursor: grabbing;
    user-select: none;
}

.qapo__schedule-tabs-rail::-webkit-scrollbar {
    height: 4px;
}

.qapo__schedule-tabs-rail::-webkit-scrollbar-thumb {
    background: rgba(var(--tt-rgb), 0.22);
    border-radius: 99px;
}

.qapo__schedule-tabs-rail::-webkit-scrollbar-track {
    background: transparent;
}

.qapo__schedule-tabs-rail .qapo__schedule-tabs {
    margin: 0;
    width: max-content;
    max-width: none;
    overflow: visible;
}

.qapo__schedule-tabs.qapo__info-tabs-nav {
    display: inline-flex;
    width: max-content;
    max-width: none;
    max-height: none;
    margin-bottom: 0;
    padding: 4px;
    overflow: visible;
    flex-wrap: nowrap !important;
    gap: 4px;
    border-bottom: none;
    border-radius: 12px;
    background: rgba(var(--bdc-rgb), 0.14);
    border: 1px solid rgba(var(--bdc-rgb), 0.28);
}

.dt .qapo__schedule-tabs.qapo__info-tabs-nav {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.qapo__schedule-tabs.qapo__info-tabs-nav::-webkit-scrollbar {
    display: none;
}

.qapo__schedule-tabs.qapo__info-tabs-nav button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    max-height: none;
    margin: 0;
    padding: 8px 14px;
    border-radius: 9px;
    font-family: var(--qapo-font-display, var(--font-display));
    font-size: var(--qapo-fs-sm);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: rgba(var(--tt-rgb), 0.62);
    background: transparent;
    border: none;
    border-bottom: none;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.qapo__schedule-tabs.qapo__info-tabs-nav button .qapo__schedule-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5em;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    color: rgba(var(--tt-rgb), 0.55);
    background: rgba(var(--bdc-rgb), 0.28);
}

.qapo__schedule-tabs.qapo__info-tabs-nav button.is-active {
    color: var(--tt);
    background: rgba(var(--bg-rgb, 255, 252, 246), 0.95);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.qapo__schedule-tabs.qapo__info-tabs-nav button.is-active .qapo__schedule-tab-count {
    color: var(--accent-dark, var(--accent));
    background: rgba(var(--accent-rgb), 0.16);
}

.dt .qapo__schedule-tabs.qapo__info-tabs-nav button.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.dt .qapo__schedule-tabs.qapo__info-tabs-nav button.is-active .qapo__schedule-tab-count {
    color: var(--accent-light, var(--accent));
    background: rgba(var(--accent-rgb), 0.22);
}

.qapo__schedule-player .qapo__schedule,
.qapo__schedule-player .qapo__schedule-scroll {
    min-width: 0;
    max-height: none;
    overflow: visible;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    scrollbar-width: auto;
}

.qapo__schedule-expand-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.qapo__schedule-clip {
    position: relative;
    width: 100%;
    max-height: 420px;
    overflow: hidden;
}

.qapo__schedule-expand-wrap.is-expanded .qapo__schedule-clip {
    max-height: none;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
}

.qapo__schedule-expand-wrap.has-schedule-expand-btn:not(.is-expanded) .qapo__schedule-clip {
    -webkit-mask-image: linear-gradient(
        to bottom,
        #000 0,
        #000 calc(100% - 2.75rem),
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        #000 0,
        #000 calc(100% - 2.75rem),
        transparent 100%
    );
}

.qapo__schedule-expand-wrap .qapo__meta-expand[hidden] {
    display: none !important;
}

.qapo__schedule-expand-wrap .qapo__meta-expand {
    position: static;
    display: inline-flex;
    align-self: flex-start;
    margin-top: 12px;
    padding: 0;
    font-size: var(--qapo-fs-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.35;
    color: var(--accent);
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.qapo__schedule-expand-wrap .qapo__meta-expand:hover {
    color: var(--accent-dark, var(--accent));
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.qapo__schedule-expand-wrap .qapo__meta-expand:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

.dt .qapo__schedule-expand-wrap .qapo__meta-expand {
    color: var(--accent-light, var(--accent));
}

.dt .qapo__schedule-expand-wrap .qapo__meta-expand:hover {
    color: #fff;
}

.qapo__schedule-player .b-post__schedule_header {
    margin: 0 0 14px;
}

.qapo__schedule-player .b-post__schedule_next {
    position: relative;
    padding: 14px 16px 14px 18px;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.16) 0%, rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.05) 55%, transparent 100%),
        rgba(var(--bg-rgb), 0.55);
    border: 1px solid rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.32);
    box-shadow: 0 8px 22px rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.08);
    overflow: hidden;
}

.qapo__schedule-player .b-post__schedule_next::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--qapo-lamp, var(--accent)) 0%, var(--accent-dark, var(--accent)) 100%);
}

/* «Ближайшая серия» — якорь в шапке модалки */
.qapo__schedule-player--modal .b-post__schedule_header {
    position: sticky;
    top: 0;
    z-index: 3;
    margin: 0 0 12px;
    padding-bottom: 2px;
    background: var(--ui-bg, var(--bg, #fff));
}

.qapo__schedule-player--modal .b-post__schedule_next {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 12px 14px 12px 16px;
}

.dle-popup-schedule .qapo__schedule-player--modal .b-post__schedule_header {
    background: transparent;
}

.dt .dle-popup-schedule .qapo__schedule-player--modal .b-post__schedule_header,
.dt .qapo__schedule-player--modal .b-post__schedule_header {
    background: transparent;
}

.qapo__schedule-player .b-post__schedule_block {
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: none;
    overflow: visible;
}

.qapo__schedule-player .b-post__schedule_list {
    border-top: none !important;
    background: transparent !important;
}

/* График серий — плоский список: без фона/скролл-коробки */
.qapo__schedule-section {
    margin: 20px 0 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    scroll-margin-top: 88px;
}

.dt .qapo__schedule-section {
    background: transparent !important;
    border: 0;
}

.qapo__schedule-head {
    display: block;
    margin: 0 0 10px;
    min-width: 0;
}

.qapo__schedule-caption {
    margin: 0;
    font-family: var(--qapo-font-display, var(--font-display));
    font-size: clamp(17px, 2.1vw, 20px);
    font-weight: 750;
    letter-spacing: -0.02em;
    color: var(--tt);
}

.qapo__schedule-head-rail,
.qapo__schedule-head-line {
    display: none !important;
}

.qapo__schedule-tabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    margin: 0 0 14px;
    padding: 0;
    max-height: 44px;
    border-bottom: 1px solid rgba(var(--bdc-rgb), 0.28);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scrollbar-gutter: auto;
}

.qapo__schedule-tabs::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.dt .qapo__schedule-tabs {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.qapo__schedule-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    min-height: 40px;
    max-height: 44px;
    margin: 0 0 -1px;
    padding: 0 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: rgba(var(--tt-rgb), 0.55);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.16s ease, border-color 0.16s ease;
}

.qapo__schedule-tab:hover {
    color: var(--tt);
    background: transparent;
    border-color: transparent;
}

.qapo__schedule-tab.is-active {
    color: var(--tt);
    background: transparent;
    border-bottom-color: var(--qapo-lamp, var(--accent));
    box-shadow: none;
}

.qapo__schedule-tab:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.qapo__schedule-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.45em;
    height: 1.3em;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.01em;
    line-height: 1;
    color: rgba(var(--tt-rgb), 0.72);
    background: rgba(var(--bdc-rgb), 0.2);
    border: 1px solid rgba(var(--bdc-rgb), 0.26);
}

.qapo__schedule-tab.is-active .qapo__schedule-tab-count {
    color: var(--accent-dark, var(--accent));
    background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.16);
    border-color: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.36);
}

.dt .qapo__schedule-tab-count {
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.dt .qapo__schedule-tab.is-active .qapo__schedule-tab-count {
    color: #fff7e8;
    background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.28);
    border-color: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.45);
}

.qapo__schedule-player--inline {
    width: 100%;
}

.qapo__schedule-player--inline .qapo__schedule {
    max-height: none !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
}

.qapo__schedule-player--inline .qapo__schedule-scroll {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    overscroll-behavior: auto;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    scrollbar-gutter: auto !important;
}

.dt .qapo__schedule-player--inline .qapo__schedule-scroll {
    border: 0 !important;
    background: transparent !important;
}

.qapo__schedule-player--inline .b-post__schedule_header {
    position: static;
    margin: 0 0 12px;
    padding: 0;
    background: transparent !important;
}

.qapo__schedule-player--inline .b-post__schedule_next {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    margin: 0;
    padding: 0 0 12px;
    border: 0 !important;
    border-bottom: 1px solid rgba(var(--bdc-rgb), 0.2) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible;
}

.qapo__schedule-player--inline .b-post__schedule_next::before {
    display: none !important;
    content: none !important;
}

.dt .qapo__schedule-player--inline .b-post__schedule_next {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    background: transparent !important;
}

.qapo__schedule-player--inline .b-post__schedule_next-label {
    width: 100%;
    margin: 0 0 2px;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(var(--tt-rgb), 0.45);
}

.qapo__schedule-player--inline .b-post__schedule_next-code {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--tt);
}

.qapo__schedule-player--inline .b-post__schedule_next-name,
.qapo__schedule-player--inline .b-post__schedule_next-name-en {
    font-size: 14px;
    font-weight: 600;
    color: var(--tt);
}

.qapo__schedule-player--inline .b-post__schedule_next-date,
.qapo__schedule-player--inline .b-post__schedule_next-status {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-size: 12px;
    font-weight: 500;
    color: rgba(var(--tt-rgb), 0.55);
}

.qapo__schedule-player--inline .b-post__schedule_list {
    display: block !important;
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
}

.qapo__schedule-player--inline .b-post__schedule_block {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.qapo__schedule-player--inline .b-post__schedule_block:not(.is-open) > .b-post__schedule_list,
.qapo__schedule-player--inline .b-post__schedule_block.is-collapsed > .b-post__schedule_list {
    display: none !important;
}

.qapo__schedule-player--inline .b-post__schedule_block.is-open > .b-post__schedule_list {
    display: block !important;
}

.qapo__schedule-player--inline .b-post__schedule_block_title,
.qapo__schedule-player--inline .b-post__schedule_block_title .act {
    display: none !important;
}

.qapo__schedule-player--inline .b-post__schedule_table {
    width: 100%;
    min-width: 0 !important;
}

.qapo__schedule-player--inline .b-post__schedule_table tbody {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 900px) {
    .qapo__schedule-player--inline .b-post__schedule_table tbody {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 32px;
    }
}

.qapo__schedule-player--inline .b-post__schedule_table tr {
    display: grid !important;
    grid-template-columns: 4.5rem minmax(0, 1fr) auto !important;
    grid-template-areas: "num title status" !important;
    gap: 2px 12px !important;
    align-items: start !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 10px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(var(--bdc-rgb), 0.14) !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    transition: color 0.15s ease;
}

/* Старый HTML модуля: дата ещё в правой колонке — раскладываем без JS */
.qapo__schedule-player--inline .b-post__schedule_table tr:has(.ep-date-col > .ep-date) {
    grid-template-areas:
        "num title status"
        "num date status" !important;
    row-gap: 2px !important;
}

.qapo__schedule-player--inline .b-post__schedule_table tr:has(.ep-date-col > .ep-date) .td-4,
.qapo__schedule-player--inline .b-post__schedule_table tr:has(.ep-date-col > .ep-date) .ep-date-col {
    display: contents !important;
}

.qapo__schedule-player--inline .b-post__schedule_table tr:has(.ep-date-col > .ep-date) > .td-4 .ep-date,
.qapo__schedule-player--inline .b-post__schedule_table tr:has(.ep-date-col > .ep-date) .ep-date-col > .ep-date {
    grid-area: date !important;
    justify-self: start !important;
    align-self: start !important;
    margin: 0 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    color: rgba(var(--tt-rgb), 0.48) !important;
}

.qapo__schedule-player--inline .b-post__schedule_table tr:has(.ep-date-col > .ep-date) .ep-status,
.qapo__schedule-player--inline .b-post__schedule_table tr:has(.ep-date-col > .ep-date) .ep-days {
    grid-area: status !important;
    justify-self: end !important;
    align-self: start !important;
    text-align: right !important;
}

.qapo__schedule-player--inline .b-post__schedule_table tr:hover {
    border-color: rgba(var(--bdc-rgb), 0.14) !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.qapo__schedule-player--inline .b-post__schedule_table tr:last-child {
    border-bottom: 1px solid rgba(var(--bdc-rgb), 0.14) !important;
}

.qapo__schedule-player--inline .b-post__schedule_table tr.is-released,
.qapo__schedule-player--inline .b-post__schedule_table tr.is-upcoming {
    border-color: rgba(var(--bdc-rgb), 0.14) !important;
    background: transparent !important;
    background-image: none !important;
}

.dt .qapo__schedule-player--inline .b-post__schedule_table tr,
.dt .qapo__schedule-player--inline .b-post__schedule_table tr:last-child,
.dt .qapo__schedule-player--inline .b-post__schedule_table tr.is-released,
.dt .qapo__schedule-player--inline .b-post__schedule_table tr.is-upcoming {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    background: transparent !important;
    background-image: none !important;
}

.qapo__schedule-player--inline .b-post__schedule_table .td-1 {
    grid-area: num;
    align-self: start;
    padding-top: 2px;
}

.qapo__schedule-player--inline .b-post__schedule_table .td-2 {
    grid-area: title;
    min-width: 0;
}

.qapo__schedule-player--inline .b-post__schedule_table tr:not(:has(.ep-date-col > .ep-date)) .td-4,
.qapo__schedule-player--inline .b-post__schedule_table tr:not(:has(.ep-date-col > .ep-date)) .td-5 {
    grid-area: status;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-self: end;
    align-self: start;
    gap: 2px;
    text-align: right;
    padding-top: 2px;
}

.qapo__schedule-player--inline .ep-num-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qapo__schedule-player--inline .ep-num-col .ep-code {
    display: inline-block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-family: var(--qapo-font-display, var(--font-display), inherit);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.03em;
    line-height: 1.3;
    color: rgba(var(--tt-rgb), 0.62);
    white-space: nowrap;
}

.qapo__schedule-player--inline .ep-num-col .ep-num {
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: rgba(var(--tt-rgb), 0.5);
    white-space: nowrap;
}

.qapo__schedule-player--inline .ep-num-col:has(.ep-code) .ep-num {
    display: none;
}

.qapo__schedule-player--inline .ep-title-col b,
.qapo__schedule-player--inline .ep-title-col .ep-name-ru.qapo__ep-title-toggle {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--tt);
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.qapo__schedule-player--inline .ep-title-col .ep-name-ru:not(.qapo__ep-title-toggle) {
    display: block;
    margin-top: 1px;
    font-size: 12px;
    line-height: 1.3;
    color: rgba(var(--tt-rgb), 0.48);
}

.qapo__schedule-player--inline .ep-title-col .ep-date {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(var(--tt-rgb), 0.48);
    white-space: nowrap;
}

.qapo__schedule-player--inline .ep-date-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 2px;
}

.qapo__schedule-player--inline .ep-status {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: rgba(var(--tt-rgb), 0.5);
    white-space: nowrap;
}

.qapo__schedule-player--inline .ep-status::before {
    content: none !important;
}

.qapo__schedule-player--inline .is-released .ep-status {
    color: rgba(var(--tt-rgb), 0.5);
    background: transparent;
    border: 0;
}

.qapo__schedule-player--inline .is-upcoming .ep-status {
    color: var(--accent-dark, var(--accent));
    background: transparent;
    border: 0;
}

.qapo__schedule-player--inline .ep-days {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-dark, var(--accent));
}

.qapo__schedule-player--inline .is-released .ep-days {
    color: rgba(var(--tt-rgb), 0.45);
}

.qapo__schedule-player--inline .ep-synopsis {
    display: none;
    margin: 5px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(var(--tt-rgb), 0.58);
}

.qapo__schedule-player--inline .ep-synopsis.is-open {
    display: block;
}

.qapo__schedule-player .b-post__schedule_table {
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: rgba(var(--tt-rgb), 0.88);
}

.qapo__schedule-player:not(.qapo__schedule-player--modal):not(.qapo__schedule-player--inline) .b-post__schedule_block_title {
    display: none;
}

/* Аккордеон сезонов в модалке (legacy) */
.qapo__schedule-modal[hidden] {
    display: none !important;
}

.qapo__schedule-player--modal {
    overflow: visible;
}

.qapo__schedule-player--modal .qapo__schedule-scroll {
    max-height: none;
    overflow: visible;
}

.qapo__schedule-player--modal .b-post__schedule_block {
    margin: 0 0 10px;
    border: 1px solid rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.18);
    border-radius: 14px;
    background:
        linear-gradient(160deg, rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.06) 0%, transparent 45%),
        rgba(var(--bg-rgb), 0.5);
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(20, 24, 32, 0.04);
}

.qapo__schedule-player--modal .b-post__schedule_block:last-child {
    margin-bottom: 0;
}

.qapo__schedule-player--modal .b-post__schedule_block_title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    box-sizing: border-box;
    cursor: pointer;
    user-select: none;
    background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.06);
    transition: background 0.15s ease;
}

.qapo__schedule-player--modal .b-post__schedule_block_title:hover,
.qapo__schedule-player--modal .b-post__schedule_block.is-open > .b-post__schedule_block_title {
    background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.12);
}

.qapo__schedule-player--modal .b-post__schedule_block_title:focus-visible {
    outline: 2px solid rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.75);
    outline-offset: -2px;
}

.qapo__schedule-player--modal .b-post__schedule_block_title .title {
    flex: 1 1 auto;
    min-width: 0;
    float: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--tt);
}

.qapo__schedule-player--modal .b-post__schedule_block_title .act {
    display: none;
}

.qapo__schedule-player--modal .b-post__schedule_block_title .qapo__schedule-tab-count {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    color: rgba(var(--tt-rgb), 0.72);
    background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.14);
    border: 1px solid rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.22);
}

.qapo__schedule-player--modal .b-post__schedule_block.is-open > .b-post__schedule_block_title .qapo__schedule-tab-count {
    color: var(--accent-dark, var(--accent));
    background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.2);
    border-color: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.34);
}

.qapo__schedule-player--modal .b-post__schedule_block_title::after {
    content: "";
    flex-shrink: 0;
    width: 0.45em;
    height: 0.45em;
    margin-left: 4px;
    border-right: 2px solid rgba(var(--tt-rgb), 0.45);
    border-bottom: 2px solid rgba(var(--tt-rgb), 0.45);
    transform: rotate(45deg);
    transition: transform 0.18s ease;
}

.qapo__schedule-player--modal .b-post__schedule_block.is-open > .b-post__schedule_block_title::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.qapo__schedule-player--modal .b-post__schedule_list {
    border-top: 1px solid rgba(var(--bdc-rgb), 0.22);
    padding: 10px;
    background: transparent !important;
}

.qapo__schedule-player--modal .b-post__schedule_block.is-open > .b-post__schedule_list {
    display: block !important;
}

.qapo__schedule-player--modal .b-post__schedule_block.is-collapsed > .b-post__schedule_list,
.qapo__schedule-player--modal .b-post__schedule_block:not(.is-open) > .b-post__schedule_list {
    display: none !important;
}

/* В модалке серии всегда в одну колонку */
.qapo__schedule-player--modal .b-post__schedule_table tbody {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px;
}

@media (min-width: 900px) {
    .qapo__schedule-player--modal .b-post__schedule_table tbody {
        grid-template-columns: 1fr !important;
    }
}

.dle-popup-schedule.ui-dialog {
    max-width: min(820px, calc(100vw - 20px)) !important;
    border: 1px solid rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.28) !important;
    border-radius: 16px !important;
    overflow: hidden;
    background:
        linear-gradient(165deg, rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.07) 0%, transparent 38%),
        var(--ui-bg, var(--bg)) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.45) inset,
        0 28px 64px rgba(20, 24, 32, 0.28) !important;
}

.dt .dle-popup-schedule.ui-dialog {
    border-color: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.32) !important;
    background:
        linear-gradient(165deg, rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.12) 0%, transparent 42%),
        var(--ui-bg, #1a1d24) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 28px 64px rgba(0, 0, 0, 0.55) !important;
}

.dle-popup-schedule .ui-dialog-titlebar {
    padding: 14px 18px 14px 20px;
    background:
        linear-gradient(135deg, rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.22) 0%, rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.08) 48%, rgba(20, 24, 32, 0.92) 100%) !important;
    border-bottom: 1px solid rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.28);
    color: #fff7e8;
}

.dt .dle-popup-schedule .ui-dialog-titlebar {
    background:
        linear-gradient(135deg, rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.28) 0%, rgba(16, 20, 28, 0.96) 100%) !important;
}

.dle-popup-schedule .ui-dialog-content {
    padding: 14px 16px 18px;
    background: transparent;
}

.dle-popup-schedule .ui-dialog-title {
    font-family: var(--qapo-font-display, var(--font-display), inherit);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff7e8;
}

.dle-popup-schedule .ui-dialog-titlebar-close {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.dle-popup-schedule .ui-dialog-titlebar-close:hover {
    background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.45);
}

.qapo__schedule-player .b-post__schedule_table tbody {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
    background: transparent;
}

/* Карточки серий — только модалка/legacy, НЕ inline fullstory */
.qapo__schedule-player:not(.qapo__schedule-player--inline) .b-post__schedule_table tr {
    display: grid;
    grid-template-columns: 4.75rem minmax(0, 1fr) auto;
    grid-template-areas: "num title meta";
    gap: 6px 12px;
    padding: 12px 14px;
    margin: 0;
    border: 1px solid rgba(var(--bdc-rgb), 0.38) !important;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.04) 0%, transparent 55%),
        rgba(var(--bg-rgb), 0.72) !important;
    box-sizing: border-box;
    align-items: center;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.qapo__schedule-player:not(.qapo__schedule-player--inline) .b-post__schedule_table tr:hover {
    border-color: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.36) !important;
    box-shadow: 0 6px 18px rgba(20, 24, 32, 0.06);
}

.qapo__schedule-player:not(.qapo__schedule-player--inline) .b-post__schedule_table tr:last-child {
    border-bottom: 1px solid rgba(var(--bdc-rgb), 0.38) !important;
}

.qapo__schedule-player:not(.qapo__schedule-player--inline) .b-post__schedule_table tr.is-released {
    border-color: rgba(var(--green-rgb), 0.32) !important;
    background:
        linear-gradient(135deg, rgba(var(--green-rgb), 0.08) 0%, transparent 60%),
        rgba(var(--bg-rgb), 0.7) !important;
}

.qapo__schedule-player:not(.qapo__schedule-player--inline) .b-post__schedule_table tr.is-upcoming {
    border-color: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.34) !important;
    background:
        linear-gradient(135deg, rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.1) 0%, transparent 58%),
        rgba(var(--bg-rgb), 0.72) !important;
}

.qapo__schedule-player .b-post__schedule_table .td-1 {
    grid-area: num;
    align-self: start;
}

.qapo__schedule-player .b-post__schedule_table .td-2 {
    grid-area: title;
    min-width: 0;
}

.qapo__schedule-player .b-post__schedule_table .td-4 {
    grid-area: meta;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    justify-self: end;
}

.qapo__schedule-player .b-post__schedule_table .td-5 {
    grid-area: meta;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    align-self: start;
    margin-top: 0;
    padding: 0;
}

.qapo__schedule-player .ep-date-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.qapo__schedule-player .ep-date {
    font-size: var(--qapo-fs-xs);
    color: rgba(var(--tt-rgb), 0.58);
    white-space: nowrap;
}

.qapo__schedule-player .ep-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--qapo-fs-xs);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(var(--bdc-rgb), 0.16);
    color: rgba(var(--tt-rgb), 0.62);
}

.qapo__schedule-player .is-released .ep-status {
    color: var(--green);
    background: rgba(var(--green-rgb), 0.14);
    border-color: rgba(var(--green-rgb), 0.28);
}

.qapo__schedule-player .is-released .ep-status::before {
    content: "✓";
    font-weight: 700;
}

.qapo__schedule-player .is-upcoming .ep-status {
    color: var(--accent-dark, var(--accent));
    background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.14);
    border-color: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.28);
}

.qapo__schedule-player .ep-release-state {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(var(--tt-rgb), 0.55);
}

.qapo__schedule-player .ep-days {
    display: block;
    margin-top: 1px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--qapo-lamp, var(--accent));
    white-space: nowrap;
}

.qapo__schedule-player .is-released .ep-days {
    color: rgba(var(--green-rgb), 0.95);
}

.qapo__schedule-player .ep-code {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--accent-dark, var(--accent));
    background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.12);
    border: 1px solid rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.24);
}

.qapo__schedule-player .ep-num-col .ep-num {
    font-size: var(--qapo-fs-xs);
    font-weight: 600;
    color: rgba(var(--tt-rgb), 0.55);
}

.qapo__schedule-player .b-post__schedule_table td {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-top: none !important;
    text-align: left;
}

.qapo__schedule-player .b-post__schedule_table .td-1,
.qapo__schedule-player .b-post__schedule_table .td-4,
.qapo__schedule-player .b-post__schedule_table .td-5 {
    width: auto !important;
}

.qapo__schedule-player .ep-num-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qapo__schedule-player .qapo__ep-title-toggle.is-open {
    white-space: normal;
    overflow: visible;
}

.qapo__schedule-player .ep-title-col {
    min-width: 0;
}

.qapo__schedule-player .ep-title-col b,
.qapo__schedule-player .ep-title-col .ep-name-ru.qapo__ep-title-toggle {
    display: block;
    margin-bottom: 0;
    font-size: var(--qapo-fs-sm);
    font-weight: 600;
    line-height: 1.35;
    color: var(--tt);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qapo__schedule-player .qapo__ep-title-toggle {
    cursor: pointer;
    position: relative;
    padding-right: 18px;
    user-select: none;
}

.qapo__schedule-player .qapo__ep-title-toggle::after {
    content: "\f078";
    font-family: "Font Awesome 5 Pro";
    font-weight: 300;
    font-size: 10px;
    position: absolute;
    right: 0;
    top: 0.35em;
    opacity: 0.55;
    transition: transform 0.2s ease;
}

.qapo__schedule-player .qapo__ep-title-toggle.is-open::after {
    transform: rotate(180deg);
}

.qapo__schedule-player .qapo__ep-title-toggle:hover {
    color: var(--accent);
}

.qapo__schedule-player .ep-name-ru {
    display: block;
    font-size: var(--qapo-fs-ui);
    line-height: var(--qapo-lh-ui);
    color: rgba(var(--tt-rgb), 0.62);
}

.qapo__schedule-player .ep-synopsis {
    display: block;
    max-height: 0;
    margin: 0;
    overflow: hidden;
    opacity: 0;
    font-size: var(--qapo-fs-ui);
    line-height: var(--qapo-lh-body);
    color: rgba(var(--tt-rgb), 0.62);
    transition: max-height 0.25s ease, opacity 0.2s ease, margin 0.2s ease;
}

.qapo__schedule-player .ep-synopsis.is-open {
    max-height: 240px;
    margin-top: 6px;
    opacity: 1;
}

.qapo__schedule-player .b-post__schedule_episode.is-upcoming {
    background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.06) !important;
}

@media (min-width: 900px) {
    .qapo__schedule-player .b-post__schedule_table tbody {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 12px;
        position: relative;
        align-items: start;
    }

    .qapo__schedule-player .b-post__schedule_table tbody::before {
        display: none;
    }

    .qapo__schedule-player .b-post__schedule_table tr {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 639px) {
    .qapo__schedule-player:not(.qapo__schedule-player--inline) .b-post__schedule_table tr {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "num meta"
            "title title";
        gap: 8px 10px;
        padding: 12px;
        align-items: start;
    }

    .qapo__schedule-player:not(.qapo__schedule-player--inline) .b-post__schedule_table .td-4,
    .qapo__schedule-player:not(.qapo__schedule-player--inline) .ep-date-col {
        align-items: flex-end;
    }

    .qapo__schedule-player:not(.qapo__schedule-player--inline) .ep-num-col {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 8px;
    }

    .qapo__schedule-tabs.qapo__info-tabs-nav button {
        min-height: 44px;
        padding: 8px 12px;
        font-size: 13px;
    }
}

.dt .qapo__schedule-player-title {
    color: rgba(var(--tt-rgb), 0.96);
}

.dt .qapo__schedule-player:not(.qapo__schedule-player--inline) .b-post__schedule_table tr {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dt .qapo__schedule-player:not(.qapo__schedule-player--inline) .b-post__schedule_table tr.is-released {
    background: rgba(var(--green-rgb), 0.08) !important;
    border-color: rgba(var(--green-rgb), 0.28) !important;
}

.dt .qapo__schedule-player:not(.qapo__schedule-player--inline) .b-post__schedule_table tr.is-upcoming {
    background: rgba(var(--accent-rgb), 0.08) !important;
    border-color: rgba(var(--accent-rgb), 0.24) !important;
}

.dt .qapo__schedule-player .qapo__schedule .b-post__schedule_block,
.dt .qapo__schedule-player .qapo__schedule .b-post__schedule_list {
    background: transparent !important;
    border: none !important;
}

.dt .qapo__schedule-player .b-post__schedule_episode.is-upcoming {
    background: rgba(var(--accent-rgb), 0.08) !important;
}

.dt .qapo__schedule-player .ep-synopsis {
    color: rgba(var(--tt-rgb), 0.58);
}

.dt .qapo__schedule-player .ep-code {
    color: var(--accent-light, var(--accent));
    background: rgba(var(--accent-rgb), 0.16);
    border-color: rgba(var(--accent-rgb), 0.28);
}

.dt .qapo__schedule-player .is-upcoming .ep-status {
    color: var(--accent-light, var(--accent));
}

.qapo__toolbar-sep {
    flex-shrink: 0;
    width: 1px;
    height: 26px;
    margin: 0 2px;
    background: rgba(255, 255, 255, 0.1);
}

.qapo__toolbar-sep--inner {
    height: 22px;
    margin: 0 1px;
}

.qapo__share {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.qapo__share-list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.qapo__share-list::-webkit-scrollbar {
    display: none;
}

.qapo__share-list > li {
    display: flex;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.qapo__share-link {
    box-sizing: border-box;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 9px;
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.62);
    background: transparent;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease;
}

/* Иконки через fal, как в теме; в webfonts только solid (400) — не 300, иначе глифы пропадают */
.qapo__share-link .qapo__share-ico.fal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15em;
    height: 1.15em;
    font-size: 18px;
    line-height: 1;
}

.qapo__share-link .qapo__share-ico.fal:before {
    font-family: 'Font Awesome 5 Pro', 'FontAwesome';
    font-weight: 400;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

/* Соцкнопки: inline SVG из images/social/ (Font Awesome + официальный VK), native viewBox */
.qapo__share-link .qapo__share-ico--svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    line-height: 0;
    flex-shrink: 0;
}

.qapo__share-link .qapo__share-ico--svg svg {
    display: block;
    width: 18px;
    height: 18px;
    max-width: 100%;
    max-height: 100%;
    fill: currentColor;
    overflow: visible;
}

/* Общее правило .fal { display:inline-flex } перебивает display:none у второй иконки */
.qapo__share-link.qapo__share-link--copy:not(.is-copied) .qapo__share-ico--done.fal {
    display: none !important;
}

.qapo__share-link.qapo__share-link--copy.is-copied .qapo__share-ico--link.fal {
    display: none !important;
}

.qapo__share-link.qapo__share-link--copy.is-copied .qapo__share-ico--done.fal {
    display: inline-flex !important;
}

.qapo__share-link:hover {
    transform: none;
    filter: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.qapo__share-link:focus {
    outline: none;
}

.qapo__share-link:focus-visible {
    outline: 2px solid rgba(var(--accent-rgb), 0.85);
    outline-offset: 1px;
}

.qapo__share-link--vk:hover { background: rgba(0, 119, 255, 0.28); color: #fff; }
.qapo__share-link--tg:hover { background: rgba(34, 158, 217, 0.28); color: #fff; }
.qapo__share-link--ok:hover { background: rgba(238, 130, 8, 0.28); color: #fff; }
.qapo__share-link--wa:hover { background: rgba(37, 211, 102, 0.28); color: #fff; }
.qapo__share-link--fb:hover { background: rgba(24, 119, 242, 0.28); color: #fff; }
.qapo__share-link--tw:hover { background: rgba(29, 155, 240, 0.28); color: #fff; }

.qapo__share-link--copy {
    color: rgba(255, 255, 255, 0.72);
}

.qapo__share-link--copy:hover {
    background: rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

.qapo__share-link--copy.is-copied {
    background: rgba(34, 197, 94, 0.22);
    color: #ecfdf5;
}

.qapo__toolbar-btn,
.qapo__fav a,
.qapo__fav > span {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    gap: 0;
    border: none;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 18px;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.qapo__toolbar-btn:hover,
.qapo__fav a:hover,
.qapo__fav > span:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}


.qapo__fav a:has(.fav-added) {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.45);
}

.qapo__toolbar-btn--light {
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.qapo__toolbar-btn--light .qapo__toolbar-light-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
}

.qapo__toolbar-btn--light .qapo__toolbar-light-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    pointer-events: none;
}

.qapo__toolbar-btn--light:has(input:not(:checked)) {
    color: rgba(255, 255, 255, 0.45);
}

.qapo__toolbar-btn--light:has(input:not(:checked)) .qapo__toolbar-light-ico {
    opacity: 0.55;
}

.qapo__toolbar-btn--light:has(input:checked) {
    color: #fde68a;
}

.qapo__toolbar-btn--light:has(input:checked):hover {
    background: rgba(253, 224, 71, 0.14);
    color: #fef08a;
}

.qapo__likes {
    display: flex;
    align-items: center;
    gap: 2px;
}

.qapo__likes a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    height: 36px;
    padding: 0 11px;
    border: none;
    border-radius: 9px;
    font-weight: 600;
    font-size: var(--qapo-fs-ui);
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.65);
    background: transparent;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.qapo__likes a:hover {
    transform: none;
    filter: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: none;
}

.qapo__likes a:first-child:hover {
    background: rgba(249, 115, 22, 0.18);
    color: #f97316;
}

.qapo__likes a:last-child:hover {
    background: rgba(var(--red-rgb), 0.18);
    color: var(--red);
}

.qapo__side-btn-count {
    font-size: var(--qapo-fs-ui);
    font-weight: 600;
    line-height: 1;
}

/* Кино-режим: затемнение четырьмя панелями вокруг блока плеера (не поверх него) */
.cinema-shades {
    position: fixed;
    inset: 0;
    z-index: 9990;
    pointer-events: none;
}

.cinema-shade {
    position: fixed;
    background: rgba(0, 0, 0, 0.92);
    pointer-events: auto;
    cursor: pointer;
    backdrop-filter: blur(14px) saturate(1.05);
    -webkit-backdrop-filter: blur(14px) saturate(1.05);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cinema-shades.is-visible .cinema-shade {
    opacity: 1;
}

body.light-off {
    overflow: hidden;
}

.light-off #scrolltop {
    visibility: hidden;
}

.qapo__float--player.is-cinema-active {
    position: fixed;
    z-index: 9995;
    isolation: isolate;
    transform: translateZ(0);
    background-color: var(--bg);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 24px 80px rgba(0, 0, 0, 0.65);
}

.dt .qapo__float--player.is-cinema-active {
    background-color: var(--bg-darker);
}

.qapo__player-cinema-ph {
    width: 100%;
    pointer-events: none;
    flex-shrink: 0;
}

.kirpi.is-active {
    padding-right: 60px;
}

.kirpi__img {
    width: 56px;
    border-radius: 8px;
    overflow: hidden;
}

.kirpi__title {
    font-weight: 600;
    font-size: 15px;
}

.kirpi__subtitle, .kirpi__meta {
    font-size: 13px; 
    color: var(--tt-fade);
}

.kirpi__meta::before {
    color: #FFD700;
}

.kirpi.is-active:after {
    content: attr(data-text); 
    font-size: 11px; 
    font-weight: 600; 
    color: var(--accent); 
    border-left: 1px solid rgba(var(--accent-rgb), 0.3); 
    width: 40px; 
    padding-left: 12px; 
    padding-right: 0; 
    text-transform: uppercase;
    position: absolute; 
    right: 0; 
    top: 50%; 
    transform: translateY(-50%);
}

.chak {
    padding: 24px; 
    margin-bottom: 24px; 
    background: var(--bg);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.chak__title {
    font-size: 20px; 
    font-weight: 600; 
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(var(--accent-rgb), 0.2);
}

.chak__content {
    display: grid; 
    gap: 16px; 
    grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); 
    counter-reset: n; 
    font-size: 13px; 
    font-weight: 600; 
    line-height: 1.2;
}

.byrj:not(:last-child) {
    padding-bottom: 12px; 
    border-bottom: 1px solid var(--bdc);
}

.byrj::before {
    content: counter(n, decimal-leading-zero); 
    counter-increment: n; 
    color: var(--accent);
    font-weight: 700;
    font-size: 15px;
    margin-right: 12px;
}

.byrj__ava {
    width: 28px;
    border-radius: 50%;
    border: 2px solid var(--accent);
}

.byrj__rating {
    height: 24px; 
    font-size: 11px; 
    padding: 0 12px; 
    border-radius: 12px; 
    font-weight: 600;
    border: 1px solid var(--bdc); 
    color: var(--tt-fade); 
    line-height: 1; 
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.byrj__rating::before {
    color: #FFD700;
}

.rkl--holder {
    display: grid; 
    place-items: center; 
    font-weight: 600; 
    font-size: 28px;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg) 100%); 
    color: rgba(0,0,0,0.1); 
    height: 500px;
    border-radius: 12px;
    border: 2px dashed var(--bdc);
}

.tabs-block__content {
    position: relative;
    min-height: 200px;
    max-height: 450px;
}

/* Прелоадер только у видео-вкладок плеера, не у текстовых табов описания */
.tabs-block__content.video-inside {

}

.tabs-block__content.video-inside::before {
    font-weight: 300;
    font-family: 'Font Awesome 5 Pro';
    content: "\f110";
    font-size: 100px;
    color: var(--accent);
    position: absolute;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    z-index: 3;
    animation: fa-spin 2s infinite linear;
    opacity: 0.7;
}

/* Стек-режим: вместо спиннера — текстовая подпись над видео */
.qapo__player--stack .tabs-block__content.video-inside::before,
.qapo__player--stack .qapo__player-stage .tabs-block__content.video-inside::before {
    content: attr(data-player-label) !important;
    font-family: var(--qapo-font-display, var(--font-display), inherit) !important;
    font-weight: 650 !important;
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.78) !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    translate: none !important;
    z-index: auto !important;
    animation: none !important;
    opacity: 1 !important;
    display: block !important;
    width: 100%;
    padding: 10px 14px;
    margin: 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.04);
    letter-spacing: 0.01em;
    line-height: 1.3;
    box-sizing: border-box;
    pointer-events: none;
}

.qapo__description .tabs-block__content {
    min-height: 0;
    max-height: none;
    overflow: visible;
}

.qapo__description .tabs-block__content::before {
    content: none;
    display: none;
}

.tabs-block__content iframe:not([src]) {
    opacity: 0;
}

.tabs-block__content iframe {
    transition: opacity 0.3s linear; 
    z-index: 5;
    border-radius: 8px;
}

@keyframes fa-spin{
    0%{transform:rotate(0deg)}
    100%{transform:rotate(360deg)}
}


/* TEXT BLOCK, TYPOGRAPHY, VIDEO BLOCK
----------------------------------------------- */
.qapo__title {
    margin-bottom: 30px; 
    font-size: 28px;
    font-weight: 700;
    color: var(--tt);
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.full-text {
    line-height: 1.75; 
    font-size: 15px; 
    word-wrap: break-word; 
    color: rgba(var(--tt-rgb), 0.85);
}

.full-text a {
    text-decoration: none; 
    color: var(--accent);
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.3);
    transition: all 0.2s ease;
    font-weight: 500;
}

.full-text a:hover {
    border-bottom-color: var(--accent);
    color: var(--accent);
}

.full-text img:not(.emoji), 
.full-text p, 
.full-text h1, 
.full-text h2, 
.full-text h3, 
.full-text h4, 
.full-text h5, 
.full-text > ul, 
.full-text > ol, 
.full-text table {
    margin-bottom: 25px;
}

.full-text > img[style*="left"], 
.full-text > .highslide img[style*="left"] {
    margin: 0 20px 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.full-text > img[style*="right"], 
.full-text > .highslide img[style*="right"] {
    margin: 0 0 20px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.full-text > ul li, 
.full-text > ol li {
    padding-left: 40px; 
    position: relative;
    line-height: 1.7;
}

.full-text > ul li:before {
    content: ''; 
    width: 6px; 
    height: 6px; 
    border-radius: 50%; 
    background: var(--accent);
    position: absolute; 
    top: 10px; 
    left: 16px;
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.full-text > ol {
    counter-reset: num;
}

.full-text > ol li:before {
    content: counter(num); 
    counter-increment: num; 
    background-color: var(--accent); 
    color: #fff; 
    position: absolute; 
    top: 2px; 
    left: 0; 
    width: 24px; 
    height: 24px; 
    font-size: 12px; 
    font-weight: 700;
    display: flex; 
    justify-content: center; 
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(var(--accent-rgb), 0.3);
}

.full-text > ol li:after {
    display: none;
}

.full-text > ul li + li, 
.full-text > ol li + li {
    margin-top: 12px;
}

.full-text table, 
.video-inside > * {
    width: 100%;
}

.full-text table {
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.full-text table th {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--tt);
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid rgba(var(--accent-rgb), 0.2);
}

.full-text table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(var(--bdc-rgb), 0.2);
}

.full-text table tr:last-child td {
    border-bottom: none;
}

.full-text table tr:hover {
    background: rgba(var(--accent-rgb), 0.03);
}

.full-text > *:last-child {
    margin-bottom: 0;
}

.video-responsive {
    padding-top: 37.25%; 
    position: relative; 
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.video-responsive > iframe, 
.video-responsive > video,
.video-responsive > video-player {
    position: absolute; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%;
    min-height: 450px;
}

.full-text h1, 
.full-text h2, 
.full-text h3, 
.full-text h4, 
.full-text h5 {
    font-size: 22px; 
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--tt);
    letter-spacing: -0.3px;
    line-height: 1.4;
    position: relative;
    padding-bottom: 12px;
}

.full-text h1::after, 
.full-text h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.full-text h3, 
.full-text h4, 
.full-text h5 {
    font-size: 19px;
}

.full-text h1 {
    font-size: 26px;
}

.full-text h2 {
    font-size: 24px;
}

.full-text p {
    line-height: 1.8;
}

/* Fullstory: описание в производственной информации — приоритет над глобальным .full-text */
article.qapo .qapo__info-tabs .qapo__info-plot .full-text,
article.qapo .qapo__info-tabs .qapo__info-plot .full-text.qapo__text,
article.qapo .qapo__info-tabs .qapo__info-plot .qapo__text .full-text {
    font-family: 'Onest', system-ui, sans-serif;
    font-size: var(--qapo-fs-sm);
    font-weight: 400;
    line-height: var(--qapo-lh-ui);
    color: var(--tt);
}

article.qapo .qapo__info-tabs .qapo__info-plot .full-text :is(p, ul, ol, li, blockquote, td, th, h1, h2, h3, h4, h5) {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    letter-spacing: normal;
}

article.qapo .qapo__info-tabs .qapo__info-plot .full-text p {
    line-height: inherit;
    margin-bottom: 0.65em;
}

article.qapo .qapo__info-tabs .qapo__info-plot .full-text :is(h1, h2)::after {
    display: none;
    content: none;
}

.full-text blockquote {
    margin: 25px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--accent);
    background: rgba(var(--accent-rgb), 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: rgba(var(--tt-rgb), 0.8);
}

.full-text code {
    background: rgba(var(--bdc-rgb), 0.15);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--accent);
}

.full-text pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.full-text pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: 14px;
}

.full-text hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(var(--bdc-rgb), 0.3) 50%, transparent 100%);
    margin: 30px 0;
}

.full-text img:not(.emoji) {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.full-text img:not(.emoji):hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}


/* COMMENTS — «зал обсуждения»: лампа-акцент, форма как primary CTA
----------------------------------------------- */
.qapo__comments {
	padding-bottom: 6px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	scroll-margin-top: 88px;
}

.qapo__comments-head {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-bottom: 0;
	border-bottom: none;
}

.qapo__comments-head-row.taskir__head {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	margin: 0;
	gap: 10px 12px;
	min-width: 0;
}

.qapo__comments-head .taskir__caption,
.qapo__comments-head .nuks__title.taskir__caption {
	margin: 0;
	flex: 0 1 auto;
	min-width: 0;
	max-width: none;
	color: var(--tt);
	text-shadow: none;
	font-size: clamp(17px, 2.2vw, 22px);
	white-space: nowrap;
}

.qapo__comments-rail.taskir__rail {
	display: flex !important;
	align-items: center;
	flex: 1 1 auto;
	gap: 10px;
	min-width: 32px;
	width: auto;
}

.qapo__comments-rail .taskir__rail-line {
	flex: 1 1 auto;
	min-width: 16px;
	background: linear-gradient(
		90deg,
		rgba(var(--bdc-rgb), 0.55) 0%,
		rgba(var(--bdc-rgb), 0.22) 70%,
		transparent 100%
	);
}

.qapo__comments-rail .qapo__comments-write {
	flex: 0 0 auto;
}

.dt .qapo__comments-rail .taskir__rail-line {
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.22) 0%,
		rgba(255, 255, 255, 0.08) 70%,
		transparent 100%
	);
}

.qapo__comments-head-main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
}

.qapo__comments .nuks__title {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin: 0;
	padding: 0;
	font-family: var(--qapo-font-display, var(--font-display));
	letter-spacing: -0.02em;
}

.qapo__comments-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.75em;
	padding: 2px 9px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0;
	color: rgba(var(--tt-rgb), 0.72);
	background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.12);
	border: 1px solid rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.22);
}

.dt .qapo__comments-count {
	color: rgba(var(--tt-rgb), 0.82);
	background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.16);
	border-color: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.28);
}

.qapo__comments-write {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 14px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	color: var(--tt);
	background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.12);
	border: 1px solid rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.28);
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.qapo__comments-write:hover {
	color: var(--tt);
	background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.2);
	border-color: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.42);
}

.qapo__comments-write:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.qapo__comments-info {
	margin: 0;
	font-size: var(--qapo-fs-xs, 12px);
	line-height: 1.4;
	color: rgba(var(--tt-rgb), 0.5);
}

.qapo__comments-compose {
	position: relative;
	padding: 18px 18px 20px;
	border-radius: 16px;
	border: 1px solid rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.32);
	background:
		linear-gradient(165deg, rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.12) 0%, transparent 46%),
		rgba(var(--bg-rgb), 0.62);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.4),
		0 12px 32px rgba(var(--qapo-ink-rgb, 15, 23, 42), 0.08);
	scroll-margin-top: 96px;
}

.qapo__comments-compose::before {
	content: '';
	position: absolute;
	left: 18px;
	right: 18px;
	top: 0;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: linear-gradient(90deg, transparent, rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.85), transparent);
	opacity: 0.95;
}

body:not(.dt) .qapo__comments-compose {
	background:
		linear-gradient(165deg, rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.1) 0%, transparent 42%),
		rgba(255, 255, 255, 0.88);
	border-color: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.34);
}

.dt .qapo__comments-compose {
	background:
		linear-gradient(165deg, rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.16) 0%, transparent 46%),
		rgba(255, 255, 255, 0.055);
	border-color: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.34);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.06),
		0 14px 36px rgba(0, 0, 0, 0.22);
}

.qapo__comments-feed {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 0;
}

.qapo__comments-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.qapo__ac {
	margin-bottom: 0;
}

.ac-form {position: relative;}
.ac-form__header {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 12px;
}
.ac-form__editor {gap: 10px; margin-bottom: 12px;}

.ac-form__header .ac-form__input {
	flex: 1 1 160px;
	min-width: 0;
	min-height: 44px;
	padding: 0 14px;
	border-radius: 10px;
}

.ac-form__header .ac-form__input--optional {
	flex: 1 1 180px;
	opacity: 0.92;
}

.ac-form__protect {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 2px 0 0;
	padding: 12px 14px 14px;
	border-radius: 12px;
	border: 1px solid rgba(var(--bdc-rgb, 203, 213, 225), 0.45);
	background: rgba(var(--bg-darker-1-rgb, 248, 250, 252), 0.65);
}

.ac-form__protect-title {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: rgba(var(--tt-rgb), 0.48);
}

.dt .ac-form__protect {
	border-color: rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.04);
}

.ac-form .form__row--protect {
	display: grid;
	gap: 8px;
	grid-template-columns: minmax(0, 1fr);
	margin: 0;
	align-items: start;
}

.ac-form .form__row--protect .form__label {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	color: rgba(var(--tt-rgb), 0.72);
}

.dt .ac-form .form__row--protect .form__label {
	color: rgba(var(--tt-rgb), 0.68);
}

.ac-form .form__sec-code {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 10px;
	width: 100%;
}

.ac-form .form__sec-code > input {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 220px;
	height: 48px;
	line-height: 48px;
	margin: 0;
	padding: 0 14px;
	text-align: center;
	letter-spacing: 0.14em;
	font-size: 16px;
	font-weight: 600;
	border-radius: 10px;
}

.ac-form .form__sec-code a {
	flex: 0 0 auto;
	line-height: 0;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(var(--bdc-rgb, 203, 213, 225), 0.45);
}

.ac-form .form__sec-code img {
	display: block;
	height: 48px;
	width: auto;
	max-width: 140px;
	object-fit: cover;
	border-radius: 10px;
	cursor: pointer;
}

.ac-form__protect-hint {
	margin: 0;
	font-size: 12px;
	line-height: 1.4;
	color: rgba(var(--tt-rgb), 0.48);
}

.ac-form .form__row--protect .form__input {
	width: 100%;
	min-height: 44px;
	border-radius: 10px;
}

.qapo__comments-list .message-info,
.qapo__comments-list .qapo__comments-empty {
    margin: 0;
    font-size: var(--qapo-fs-sm, 14px);
    align-items: flex-start;
}

.qapo__comments-list .message-info::before,
.qapo__comments-list .qapo__comments-empty::before {
    content: "\f4ad";
    width: 44px;
    height: 44px;
    font-size: 19px;
    flex-shrink: 0;
}

.qapo__comments-list--not-comments .message-info,
.qapo__comments-list .qapo__comments-empty {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 4px;
    align-items: start;
    margin-bottom: 0;
    padding: 16px 18px;
    background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.06);
    border: 1px dashed rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.28);
    box-shadow: none;
    text-align: left;
    border-radius: 14px;
}

.qapo__comments-list--not-comments .message-info::before,
.qapo__comments-list .qapo__comments-empty::before {
    grid-row: 1 / span 3;
    align-self: center;
    background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.14);
}

.qapo__comments-empty-title {
	grid-column: 2;
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--tt);
}

.qapo__comments-empty-text {
	grid-column: 2;
	margin: 0;
	font-size: 13.5px;
	line-height: 1.45;
	color: rgba(var(--tt-rgb), 0.62);
}

.qapo__comments-empty-cta {
	grid-column: 2;
	margin-top: 6px;
	display: inline-flex;
	align-items: center;
	width: fit-content;
	min-height: 34px;
	padding: 0 12px;
	border-radius: 9px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	color: var(--tt);
	background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.14);
	border: 1px solid rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.28);
	transition: background 0.18s ease, border-color 0.18s ease;
}

.qapo__comments-empty-cta:hover {
	color: var(--tt);
	background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.22);
	border-color: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.4);
}

.qapo__comments-empty-cta:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.dt .qapo__comments-list--not-comments .message-info,
.dt .qapo__comments-list .qapo__comments-empty {
    background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.08);
    border-color: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.26);
}
.ac-form__btn {
	padding: 0 28px;
	min-height: 48px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(145deg, var(--accent) 0%, var(--accent-dark, var(--accent)) 100%);
	border: 1px solid rgba(var(--accent-rgb), 0.45);
	box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.28);
	border-radius: 12px;
}

.ac-form__btn:hover {
	filter: brightness(1.05);
	color: #fff;
}

.dt .ac-form__btn {
	color: #0c1018;
	background: linear-gradient(145deg, var(--accent-play, var(--accent-light, var(--accent))) 0%, var(--accent) 100%);
	border-color: rgba(var(--accent-rgb), 0.5);
}
.ac-form__bottom {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 20px;
	margin-top: 16px;
}
.ac-form__bottom .ac-form__btn {
	flex: 0 0 auto;
}
.ac-form__bottom .has-checkbox {
	flex: 1 1 180px;
	min-width: 0;
}
.confidential-check {font-size: 14px;}
.ac-form__header > span {margin-left: 15px;}
.ac-form .comments_subscribe {margin-top: 0px;}

.ac-toggle.ac-form {cursor: pointer;}
.ac-form__header1 input, .ac-form__editor1 textarea {background-color: rgba(0,0,0,0.02);}
.ac-toggle, .ac-toggle .ac-form__editor {position: relative;}
.ac-toggle .ac-form__bottom button {position: absolute; bottom: 20px; right: 10px; z-index: 10; pointer-events: none;}
.ac-form .bb-btn {display: none;}
.ac-form .bb-pane {background: none; box-shadow: none; border: 0; position: absolute; left: 0; bottom: 0; right: 0;}
.ac-form #b_emo, .ac-form #b_leech, .ac-form #b_quote, .ac-form #b_spoiler, 
.ac-form #b_b, .ac-form #b_u, .ac-form #b_s, .ac-form #b_color, .ac-form #b_hide {display: grid;}
.ac-toggle .bb-btn {pointer-events: none;}
.ac-toggle .ac-form__editor .bb-editor textarea {height: 140px; resize: none;}
.ac-form__editor .bb-editor textarea,
.ac-form__editor textarea {
	height: 140px;
	min-height: 120px;
	line-height: 1.45;
	padding: 14px 16px 40px;
	border-radius: 12px;
	font-size: 15px;
	resize: vertical;
}
.comments_subscribe + br, .ac-form .bb-editor + br {display: none;}
.ac-toggle .has-checkbox {display: none;}

.mass_comments_action {display: none; align-items: center; flex-wrap: wrap; gap: 10px;}
.mass_comments_action select {flex: 1 1 0; margin: 0 -28px 0 0; border-radius: 0; box-shadow: none; min-width: 60%;}
.mass_comments_action .bbcodes {border-radius: 0; padding: 0 10px;}

.comm__title {
	margin: 0;
	padding: 14px 16px 0 18px;
	font-family: var(--font-body, 'Onest', system-ui, sans-serif);
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.35;
}

.comm__title + .comm__layout {
	padding-top: 10px;
}

.comm {
	--comm-rail: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.55);
	position: relative;
	margin: 0 0 14px;
	padding: 0;
	border-radius: 14px;
	background:
		linear-gradient(135deg, rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.05) 0%, transparent 46%),
		rgba(var(--bg-rgb), 0.42);
	border: 1px solid rgba(var(--bdc-rgb), 0.38);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset;
	overflow: visible;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comm::before {
	content: '';
	position: absolute;
	left: 0;
	top: 12px;
	bottom: 12px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: linear-gradient(180deg, var(--comm-rail), rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.15));
	pointer-events: none;
}

body:not(.dt) .comm {
	background:
		linear-gradient(135deg, rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.04) 0%, transparent 50%),
		rgba(255, 252, 246, 0.55);
}

.dt .comm {
	background:
		linear-gradient(135deg, rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.08) 0%, transparent 48%),
		rgba(255, 255, 255, 0.035);
	border-color: rgba(255, 255, 255, 0.1);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.comm:hover {
	border-color: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.35);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.3) inset,
		0 8px 22px rgba(var(--qapo-ink-rgb, 15, 23, 42), 0.07);
}

.comm.pos {
	--comm-rail: rgba(var(--accent-rgb), 0.85);
	background:
		linear-gradient(135deg, rgba(var(--accent-rgb), 0.12) 0%, transparent 55%),
		rgba(var(--bg-rgb), 0.42);
}

.comm.neg {
	--comm-rail: rgba(235, 77, 75, 0.85);
	background:
		linear-gradient(135deg, rgba(235, 77, 75, 0.1) 0%, transparent 55%),
		rgba(var(--bg-rgb), 0.42);
}

.comm__layout {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 12px 14px;
	padding: 14px 16px 14px 18px;
	align-items: start;
}

.comm__avatar {
	position: relative;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	overflow: visible;
	box-shadow:
		0 0 0 2px rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.28),
		0 4px 12px rgba(var(--qapo-ink-rgb, 15, 23, 42), 0.12);
}

.comm__avatar img,
.comm__letter {
	border-radius: 50%;
}

.comm__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.comm__user-rating {
	position: absolute;
	left: 50%;
	bottom: -7px;
	translate: -50% 0;
	z-index: 2;
	height: 18px;
	min-width: 34px;
	padding: 0 6px;
	width: auto;
	font-size: 10px;
	background: var(--bg);
	border-color: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.35);
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}

.comm__letter {
	width: 100%;
	height: 100%;
	text-transform: uppercase;
	position: absolute;
	inset: 0;
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	font-family: var(--qapo-font-display, var(--font-display));
}

.comm__main {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.comm__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px 14px;
	min-width: 0;
}

.comm__meta {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.comm__author {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	min-width: 0;
}

.comm__name,
.comm__author,
.comm__author a {
	color: var(--tt);
	font-family: var(--qapo-font-display, var(--font-display));
	font-weight: 700;
	font-size: var(--qapo-fs-sm, 14px);
	letter-spacing: -0.015em;
	line-height: 1.25;
	text-decoration: none;
}

.comm__author a:hover {
	color: var(--accent);
}

.comm__group {
	height: 20px;
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	font-size: 10px;
	border: 1px solid rgba(var(--bdc-rgb), 0.55);
	padding: 0 8px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: rgba(var(--bg-rgb), 0.35);
}

.comm__group,
.comm__group * {
	font-weight: 600;
	color: rgba(var(--tt-rgb), 0.65) !important;
}

.comm__group.adm,
.comm__group.adm * {
	color: #fff !important;
	background: var(--accent);
	border-color: var(--accent);
}

.comm__date {
	color: rgba(var(--tt-rgb), 0.48);
	font-size: var(--qapo-fs-2xs, 11px);
	line-height: 1.3;
}

.comm__rating {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	min-height: 32px;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(var(--bg-rgb), 0.55);
	border: 1px solid rgba(var(--bdc-rgb), 0.4);
}

.dt .comm__rating {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.1);
}

.comm__rating a {
	color: rgba(var(--tt-rgb), 0.45);
	font-size: 14px;
	line-height: 1;
	transition: color 0.15s ease, transform 0.15s ease;
}

.comm__rating a:first-child {
	color: var(--green);
}

.comm__rating a:last-child {
	color: var(--red);
}

.comm__rating a:hover {
	transform: scale(1.08);
}

.comm__rating > span {
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	min-width: 1ch;
	text-align: center;
}

.comm__rating span .ratingplus {color: var(--green);}
.comm__rating span .ratingminus {color: var(--red);}

.comm__text {
	margin: 0;
	font-size: var(--qapo-fs-body, 15px);
	line-height: var(--qapo-lh-body, 1.65);
	color: rgba(var(--tt-rgb), 0.9);
}

.comm__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 2px;
	padding-top: 8px;
	border-top: 1px dashed rgba(var(--bdc-rgb), 0.35);
}

.comm__action {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--qapo-fs-xs, 12px);
	font-weight: 600;
}

.comm__action-item a,
.comm__action a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	color: rgba(var(--tt-rgb), 0.52);
	text-decoration: none;
	transition: color 0.15s ease;
}

.comm__action-item a:hover,
.comm__action a:hover {
	color: var(--accent);
}

.comm__action-item .fal {
	font-size: 12px;
	opacity: 0.85;
}

.comm__ctrl-btn {
	font-size: 16px;
	width: 32px;
	height: 32px;
	color: rgba(var(--tt-rgb), 0.45);
	border-radius: 8px;
}

.comm__ctrl-btn:hover {
	color: var(--tt);
	background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.1);
}

.comm__ctrl-menu li + li {margin-top: 10px;}

.comments-tree-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.comments-tree-list > .comm:last-child,
.comments-feed > .comm:last-child,
.comments-feed > #dle-content > .comm:last-child {
	margin-bottom: 0;
}

.comments-tree-list > .comm,
.qapo__comments-list .comm,
.comments-feed .comm,
.nuks--comments .comm {
	margin-bottom: 0;
}

/* Лента последних комментариев (не grid-items) */
.comments-feed,
.comments-feed > #dle-content,
.nuks--comments .nuks__content,
.nuks--comments .nuks__content > #dle-content {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.qapo__comments-list .comments-tree-list .comments-tree-list,
.comments-tree-list .comments-tree-list {
	margin-top: 12px;
	padding-left: 18px;
	border-left: 1px solid rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.2);
}

body:has(.pwidget) #dropmenudiv {z-index: 1000 !important;}


/* POPUP WIDGET
----------------------------------------------- */
.pwidget {background-color: var(--bg); color: var(--tt); 
	border-radius: 20px; overflow: hidden; z-index: 999; padding: 20px; padding-top: 24px; 
	position: fixed; left: 20px; bottom: 20px; right: 20px; box-shadow: 0 0 60px rgba(0,0,0,0.5);}
.pwidget::before {content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); 
	background-color: rgba(0,0,0,0.2); height: 4px; width: 40px; border-radius: 2px;}
.pwidget .wctrl__content {display: block; margin-bottom: 20px;}
@media screen and (min-width: 760px) {
	.pwidget {left: 50%; bottom: 50%; right: auto; translate: -50% 50%; width: 400px;}
	.pwidget::before {display: none;}
}


/* LOGIN
----------------------------------------------- */
.lgn {
	position: fixed;
	z-index: 999;
	left: 50%;
	top: 50%;
	translate: -50% -50%;
	width: 420px;
	max-width: calc(100% - 32px);
	max-height: calc(100vh - 32px);
}
.lgn--logged {width: 380px;}
.lgn__content {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 28px 24px 24px;
	border-radius: 18px;
	background: var(--bg);
	border: 1px solid rgba(var(--bdc-rgb), 0.35);
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
	-webkit-overflow-scrolling: touch;
}
.dt .lgn__content {
	background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0.12) 100%), var(--bg);
	border-color: rgba(255, 255, 255, 0.1);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.lgn__btn-close {
	position: absolute;
	right: 12px;
	top: 12px;
	z-index: 10;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	font-size: 20px;
	color: rgba(var(--tt-rgb), 0.55);
	transition: background 0.18s ease, color 0.18s ease;
}
.lgn__btn-close:hover {
	color: var(--tt);
	background: rgba(var(--bdc-rgb), 0.18);
}
.lgn__btn-close:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
.lgn__header {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 4px 28px 4px 0;
}
.lgn__header--guest {
	padding-right: 28px;
}
.lgn__avatar {
	flex: 0 0 64px;
	width: 64px;
	background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-rgb), 0.08));
	color: var(--accent);
	font-size: 26px;
	overflow: hidden;
	border-radius: 50%;
	border: 2px solid rgba(var(--accent-rgb), 0.28);
	box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.18);
}
.lgn__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.lgn__header-text {
	min-width: 0;
	flex: 1 1 auto;
}
.lgn__title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--tt);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.lgn__caption {
	margin-top: 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--accent);
}
.lgn__caption b,
.lgn__caption span {
	font-weight: inherit;
	color: inherit;
}
.lgn--logged .lgn__caption {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(var(--accent-rgb), 0.12);
	border: 1px solid rgba(var(--accent-rgb), 0.22);
}
.lgn__input input {
	height: 48px;
	line-height: 48px;
	border-radius: 12px;
	padding: 0 16px;
	border: 1px solid rgba(var(--bdc-rgb), 0.45);
	background: rgba(var(--bg-darker-1-rgb, 0, 0, 0), 0.04);
}
.lgn__input input::placeholder {font-size: 15px;}
.lgn__input input + .lgn__field-label {margin-top: 12px;}
.lgn__input input:focus {
	position: relative;
	z-index: 5;
	border-color: rgba(var(--accent-rgb), 0.55);
	box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}
.lgn__field-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: rgba(var(--tt-rgb), 0.62);
	margin-bottom: 6px;
}
.lgn__btn button {
	height: 48px;
	border-radius: 12px;
	font-weight: 700;
	background: linear-gradient(145deg, var(--accent) 0%, var(--accent-dark) 100%);
	border: none;
	box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.28);
}
.lgn__btn button:hover {filter: brightness(1.05);}
.lgn__cell a,
.lgn__link,
.lgn__register a {color: var(--accent);}
.lgn__cell--row {margin-top: 2px;}
.lgn__register {
	margin: 0;
	text-align: center;
	font-size: 13px;
	color: rgba(var(--tt-rgb), 0.62);
}
.lgn__social {
	flex-wrap: wrap;
	justify-content: center;
}
.lgn__social-caption {
	font-size: 12px;
	color: rgba(var(--tt-rgb), 0.55);
	margin: 4px 0 2px;
}
.lgn__social-caption::before,
.lgn__social-caption::after {
	content: '';
	flex-grow: 1;
	background: rgba(var(--bdc-rgb), 0.45);
	height: 1px;
}
.lgn__social a {
	border-radius: 50%;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	transition: transform 0.15s ease, filter 0.15s ease;
}
.lgn__social a:hover {transform: translateY(-1px); filter: brightness(1.08);}
.lgn__social a img {height: 18px; width: 18px; display: block; filter: invert(1);}
.lgn__social-vk {background-color: #587ba1;}
.lgn__social-ok {background-color: #ff9800;}
.lgn__social-fb {background-color: #3b5998;}
.lgn__social-ml {background-color: #2196f3;}
.lgn__social-gg {background-color: #f44336;}
.lgn__social-ya {background-color: #fc3f1d;}
.lgn__social:not(:has(a)) {display: none;}
.lgn__menu {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.lgn__menu a {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 12px;
	color: var(--tt);
	text-decoration: none;
	transition: background 0.18s ease, color 0.18s ease;
}
.lgn__menu a:hover {
	background: rgba(var(--accent-rgb), 0.1);
	color: var(--accent);
}
.lgn__menu a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
.lgn__menu-badge {
	margin-left: auto;
	min-width: 1.4em;
	padding: 2px 8px;
	font-size: 12px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1.35;
	text-align: center;
	border-radius: 999px;
	background: rgba(var(--accent-rgb), 0.14);
	color: var(--accent);
}
.lgn__menu-link--pm.c-0 .lgn__menu-badge,
.lgn__menu-link--fav.c-0 .lgn__menu-badge {display: none;}
.lgn__footer {
	margin-top: 2px;
	padding-top: 14px;
	border-top: 1px solid rgba(var(--bdc-rgb), 0.35);
}
.lgn__logout {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 14px;
	border-radius: 12px;
	font-weight: 600;
	color: rgba(var(--red-rgb, 239, 68, 68), 0.95);
	background: rgba(var(--red-rgb, 239, 68, 68), 0.08);
	border: 1px solid rgba(var(--red-rgb, 239, 68, 68), 0.18);
	text-decoration: none;
	transition: background 0.18s ease, color 0.18s ease;
}
.lgn__logout:hover {
	background: rgba(var(--red-rgb, 239, 68, 68), 0.14);
	color: #ef4444;
}
body.modal-is-opened {
	overflow: hidden;
}


/**
 * Owl Carousel v2.3.4
 * Copyright 2013-2018 David Deutsch
 * Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
 */
.owl-carousel {
	width: 100%;
	position: relative;
	z-index: 1;
	overflow: visible;
}

.owl-stage {
	position: relative;
	display: flex;
	justify-content: flex-start;
	align-items: stretch;
	overflow: visible;
}

/* Без запаса под тени — карточки плоские */
.owl-stage-outer {
	--owl-shadow-pad-top: 0px;
	--owl-shadow-pad-bottom: 0px;
	--owl-shadow-pad-x: 0px;
	position: relative;
	overflow: hidden;
	transform: translate3d(0, 0, 0);
	padding: 0;
	margin: 0;
	box-sizing: content-box;
}

.owl-item {
	position: relative;
	min-height: 10px;
	overflow: visible;
	/* stage — flex: без этого крайние слайды сжимаются и «сужаются» */
	flex: 0 0 auto;
}

.owl-carousel .lodyt {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.owl-nav.disabled, .owl-dots.disabled, .owl-carousel.owl-refresh .owl-item {display: none;}
.owl-carousel.owl-drag .owl-item {user-select: none;}
.owl-carousel.owl-grab {cursor: move; cursor: grab;}

/* Стрелки карусели: по бокам по центру (как lordserials.fan), в дизайне шаблона */
.owl-carousel.owl-loaded {
	position: relative;
}

.owl-nav {
	position: absolute;
	left: 0;
	right: 0;
	top: 42%;
	margin: 0;
	display: block;
	pointer-events: none;
	z-index: 6;
}

.owl-prev,
.owl-next {
	position: absolute;
	top: 0;
	margin-top: -20px;
	pointer-events: auto;
	cursor: pointer;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	font-size: 16px;
	color: #1a1f2e;
	background-color: rgba(var(--bg-rgb), 0.96);
	border: 1px solid rgba(var(--bdc-rgb), 0.42);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.65) inset,
		0 4px 14px rgba(15, 23, 42, 0.12);
	border-radius: 12px;
	opacity: 1;
	transition:
		background 0.25s var(--ease-out),
		color 0.2s ease,
		border-color 0.2s ease,
		transform 0.2s ease,
		opacity 0.2s ease,
		box-shadow 0.2s ease;
}

.owl-prev {
	left: -18px;
}

.owl-next {
	right: -18px;
}

.owl-prev .fal,
.owl-next .fal {
	color: currentColor;
}

.dt .owl-prev,
.dt .owl-next {
	color: #fff;
	background-color: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.16);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.08) inset,
		0 4px 18px rgba(0, 0, 0, 0.38);
}

.owl-prev:hover,
.owl-next:hover {
	background-color: rgba(var(--accent-rgb), 0.18);
	color: #1a1f2e;
	border-color: rgba(var(--accent-rgb), 0.35);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.5) inset,
		0 6px 20px rgba(var(--accent-rgb), 0.22);
	transform: scale(1.04);
}

.dt .owl-prev:hover,
.dt .owl-next:hover {
	background-color: rgba(var(--accent-rgb), 0.32);
	color: #fff;
	border-color: rgba(var(--accent-rgb), 0.45);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.1) inset,
		0 8px 24px rgba(0, 0, 0, 0.4);
}

.owl-prev.disabled,
.owl-next.disabled {
	opacity: 0.32;
	cursor: default;
	pointer-events: none;
	transform: none;
}

@media screen and (max-width: 760px) {
	.owl-prev {
		left: 4px;
	}

	.owl-next {
		right: 4px;
	}

	.owl-prev,
	.owl-next {
		width: 36px;
		height: 36px;
		margin-top: -18px;
		border-radius: 10px;
		font-size: 14px;
	}
}


/* CLS FIX
----------------------------------------------- */
.has-carousel:not(.owl-carousel) {
	display: flex;
	flex-wrap: nowrap;
	gap: 16px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 0;
	margin: 0;
	width: 100%;
	max-width: 100%;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.has-carousel:not(.owl-carousel)::-webkit-scrollbar { display: none; }
.has-carousel:not(.owl-carousel) > * {flex-shrink: 0;}
.has-carousel:not(.owl-carousel) > .lodyt {width: calc((100% - 80px) / 6);}

@media screen and (max-width: 1220px) {
	.has-carousel:not(.owl-carousel) > .lodyt {width: calc((100% - 64px) / 5);}
}
@media screen and (max-width: 950px) {
	.has-carousel:not(.owl-carousel) > .lodyt {width: calc((100% - 48px) / 4);}
}
@media screen and (max-width: 760px) {
	.has-carousel:not(.owl-carousel) > .lodyt {width: calc((100% - 32px) / 3);}
}
@media screen and (max-width: 470px) {
	.has-carousel:not(.owl-carousel) > .lodyt {width: calc((100% - 16px) / 2);}
}

.taskir__content.has-carousel,
.taskir__content.has-carousel.owl-carousel {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin-left: 0;
	margin-right: 0;
	overflow-x: clip;
	overflow-y: visible;
}

.taskir__content.has-carousel.owl-carousel .owl-stage-outer {
	overflow: hidden;
	max-width: 100%;
}

.taskir.float-surface .taskir__content.has-carousel.owl-carousel,
.qapo__float--related .taskir__content.has-carousel.owl-carousel {
	padding-left: 0;
	padding-right: 0;
}

/* Родители каруселей: клип по X, чтобы stage не раздувал страницу */
.taskir.float-surface,
.qapo__cast-carou,
.qapo__cast-panel .ep-role-group {
	overflow-x: clip;
	overflow-y: visible;
	max-width: 100%;
}

.owl-carousel:not(.owl-loaded) {
	overflow: hidden;
}

.vyrf-block {
	background: var(--bg);
	margin: 0 0 20px;
	padding: 22px var(--indent) 24px;
	border-radius: var(--radius-lg);
	outline: 1px solid rgba(var(--bdc-rgb), 0.38);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.55) inset,
		var(--bsh-block),
		0 18px 44px rgba(15, 23, 42, 0.07);
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
}

.dt .vyrf-block {
	background: var(--bg-darker);
	outline-color: rgba(255, 255, 255, 0.08);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.05) inset,
		0 0 0 1px rgba(0, 0, 0, 0.32),
		0 14px 40px rgba(0, 0, 0, 0.34),
		0 28px 56px -20px rgba(0, 0, 0, 0.42);
}
.vyrf {gap: 10px 20px;}
.vyrf-block__title {font-size: 16px; font-weight: 500; margin-bottom: 20px;}
.vyrf__col:not(.vyrf__col--submit) {flex: 1 0 240px; max-width: 100%; min-width: 240px; display: flex; flex-direction: column; gap: 10px;}
.vyrf__cell select {
	height: 40px;
	box-shadow: none;
	border: 1px solid rgba(var(--bdc-rgb), 0.45);
	background-color: var(--bg);
	color: var(--tt);
	border-radius: var(--ui-bdrs, 10px);
}

.dt .vyrf__cell select {
	border-color: rgba(255, 255, 255, 0.12);
	background-color: rgba(255, 255, 255, 0.04);
}
.vyrf__cell input[type="text"] {opacity: 0;}
.vyrf__cell [data-dlefilter="reset"]:not(:hover) {background-color: var(--bg-darker); color: var(--tt-fade);}
.vyrf__col--ranges {padding: 0 20px;}
.vyrf-block--full .vyrf__col--submit {width: 100%;}

.vyrf-block.vyrf-block--full,
.dt .vyrf-block.vyrf-block--full {
	background: none;
	box-shadow: none;
	outline: none;
	padding: 0;
	margin: 0;
	border-radius: 0;
}

.tail-select, .tail-select * {outline: none; user-select: none;}
.tail-select {position: relative;}
.tail-select-container, .select-label {
	border: 1px solid rgba(var(--bdc-rgb), 0.45);
	background-color: var(--bg);
	padding: 5px 5px;
	min-height: 40px;
	position: relative;
	cursor: pointer;
	color: var(--tt);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	padding-right: 40px;
	border-radius: var(--ui-bdrs, 10px);
}

.dt .tail-select-container,
.dt .select-label {
	border-color: rgba(255, 255, 255, 0.12);
	background-color: rgba(255, 255, 255, 0.04);
}
.tail-select .label-inner {margin-left: 5px; font-size: 14px;}
.tail-select-container .select-handle {display: flex; align-items: center; height: 28px; padding: 0 8px; border-radius: 2px; 
	background-color: var(--accent); color: #fff; cursor: pointer; font-size: 12px; text-transform: uppercase;}
.tail-select .select-label::before, .tail-select .select-label::after {position: absolute; top: 50%; right: 10px;
	content:"\f0d8"; color: var(--tt); margin-top: -15px; opacity: 0.5;}
.tail-select .select-label::after {margin-top: -5px; transform: rotate(180deg);}

.tail-select .select-dropdown {
	top: 100%;
	left: 0;
	width: 100%;
	z-index: 100;
	display: none;
	position: absolute;
	background-color: var(--bg);
	border: 1px solid rgba(var(--bdc-rgb), 0.4);
	box-shadow: var(--bsh);
	border-radius: var(--ui-bdrs, 10px);
}

.dt .tail-select .select-dropdown {
	border-color: rgba(255, 255, 255, 0.12);
	background-color: var(--bg-darker);
}
.tail-select .select-dropdown .dropdown-inner {padding: 1px 0; overflow-x: hidden; overflow-y: auto; max-height: 300px;}
.tail-select .dropdown-optgroup {padding: 15px;}
.tail-select .select-dropdown .dropdown-empty {padding: 20px; font-size: 14px; text-align: center;}
.tail-select .select-dropdown ul li + li {margin-top: 10px;}
.tail-select .select-dropdown ul li {display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px;}
.tail-select .select-dropdown ul li.dropdown-option::before {content: ""; background-color: var(--bg-darker);
    width: 18px; height: 18px; border-radius: 1px; box-shadow: inset 0 1px 2px rgba(0,0,0,0.2); 
	display: flex; justify-content: center; font-size: 14px; color: #000; flex-shrink: 0; 
	box-sizing: border-box; padding-bottom: 3px;}
.tail-select .select-dropdown ul li.dropdown-option.selected {color: var(--accent);}
.tail-select .select-dropdown ul li.dropdown-option.selected::before 
{background-color: var(--accent); color: #fff; content:"\f00c"; box-shadow: none;}
.tail-select .select-dropdown ul li:hover {color: var(--blue);}
.tail-select-container:hover, .select-label:hover {border-color: var(--accent);}
.tail-select-container .select-handle:hover {background-color: var(--red);}

.irs {position: relative; display: block; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none;
	-moz-user-select: none; -ms-user-select: none; user-select: none;}
.irs-line {position: relative; display: block; overflow: hidden; outline: none !important;}
.irs-line-left, .irs-line-mid, .irs-line-right {position: absolute; display: block; top: 0;}
.irs-line-left {left: 0; width: 11%;}
.irs-line-mid {left: 9%; width: 82%;}
.irs-line-right {right: 0; width: 11%;}
.irs-bar {position: absolute; display: block; left: 0; width: 0;}
.irs-bar-edge {position: absolute; display: block; top: 0; left: 0;}
.irs-shadow {position: absolute; display: none; left: 0; width: 0;}
.irs-handle {position: absolute; display: block; cursor: default; z-index: 1;}
.irs-handle.type_last {z-index: 2;}
.irs-min {position: absolute; display: block; left: 0; cursor: default;}
.irs-max {position: absolute; display: block; right: 0; cursor: default;}
.irs-from, .irs-to, .irs-single {position: absolute; display: block; top: 0; left: 0; cursor: default; white-space: nowrap;}
.irs-grid {position: absolute; display: none; bottom: 0; left: 0; width: 100%; height: 20px;}
.irs-with-grid .irs-grid {display: block;}
.irs-grid-pol {position: absolute; top: 0; left: 0; width: 1px; height: 8px; background: #ec2828;}
.irs-grid-pol.small {height: 4px;}
.irs-grid-text {position: absolute; bottom: 0; left: 0; white-space: nowrap; text-align: center;
font-size: 9px; line-height: 9px; padding: 0 3px; color: #ec2828;}
.irs-disable-mask {position: absolute; display: block; top: 0; left: -1%; width: 102%; height: 100%;
cursor: default; background: rgba(0,0,0,0.0); z-index: 2;}
.irs-disabled {opacity: 0.4;}
.lt-ie9 .irs-disabled {filter: alpha(opacity=40);}
.irs-hidden-input {position: absolute !important; display: block !important; top: 0 !important; left: 0 !important;
width: 0 !important; height: 0 !important; font-size: 0 !important; line-height: 0 !important; padding: 0 !important;
margin: 0 !important; outline: none !important; z-index: -9999 !important; background: none !important;
border-style: solid !important; border-color: transparent !important;}

.irs {height: 40px;}
.irs-line {height: 6px; top: 25px; background-color: var(--bg); border-radius: 3px; 
	box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);}
.irs-bar {height: 6px; top: 25px; background-color:var(--blue); border-radius:3px;}
.irs-bar-edge {top: 25px; height: 8px; width: 11px; background-color:var(--bg);}
.irs-handle {width: 20px; height: 20px; top: 18px; background-color:var(--bg); border-radius:10px; 
	border: 4px solid var(--blue); box-shadow: 0 1px 3px rgba(0,0,0,0.3); cursor: pointer;}
.irs-from, .irs-to, .irs-single {font-size: 10px; margin-top: -5px; border: 1px solid var(--bdc);
	padding: 0 5px; height: 22px; display: flex; align-items: center; 
	background: var(--bg); color: var(--tt); border-radius: 3px;}
.status__info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    transition: all 0.25s ease;
    min-width: 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.status__info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.status__completed {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    border-color: rgba(var(--accent-dark-rgb), 0.95);
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.status__completed::after {
    content: '✅';
    margin-left: 6px;
    font-size: 12px;
    opacity: 0.9;
}

.status__airing {
    background: linear-gradient(135deg, rgba(var(--green-rgb), 0.85) 0%, var(--green) 100%);
    color: #0f1a12;
    border-color: rgba(var(--green-rgb), 0.85);
    box-shadow: 0 4px 12px rgba(var(--green-rgb), 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.35);
    animation: pulse-airing 2s infinite;
}

@keyframes pulse-airing {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(var(--green-rgb), 0.28);
    }
    50% {
        box-shadow: 0 4px 20px rgba(var(--green-rgb), 0.45);
    }
}

.status__airing::after {
    content: '📺';
    margin-left: 6px;
    font-size: 12px;
    opacity: 0.9;
}

.status__paused {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-color: #b45309;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.status__paused::after {
    content: '⏸️';
    margin-left: 6px;
    font-size: 12px;
    opacity: 0.9;
}

.status__upcoming {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    color: #0f1a12;
    border-color: rgba(var(--accent-dark-rgb), 0.9);
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.35);
    animation: float-upcoming 3s ease-in-out infinite;
}

@keyframes float-upcoming {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.status__upcoming::after {
    content: '⏳';
    margin-left: 6px;
    font-size: 12px;
    opacity: 0.9;
}

.status__cancelled {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-color: #b91c1c;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-decoration: line-through;
    opacity: 0.9;
}

.status__cancelled::after {
    content: '❌';
    margin-left: 6px;
    font-size: 12px;
    opacity: 0.9;
    text-decoration: none;
}

.status__production {
    background: linear-gradient(135deg, #4a6b45 0%, #355a32 100%);
    color: white;
    border-color: #2d4a2a;
    box-shadow: 0 4px 12px rgba(45, 74, 42, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.status__production::after {
    content: '🎬';
    margin-left: 6px;
    font-size: 12px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .status__info {
        padding: 5px 12px;
        font-size: 12px;
        min-width: 85px;
    }
    
    li span:first-child {
        padding-left: 0px;
    }
}

/* Стилизация скроллбара */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.telegram-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.telegram-modal-overlay--active {
    opacity: 1;
    visibility: visible;
}


.telegram-modal {
    background: #fff;
    border-radius: 24px;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.telegram-modal-overlay--active .telegram-modal {
    transform: scale(1) translateY(0);
}


.telegram-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
    z-index: 10;
}

.telegram-modal__close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    transform: rotate(90deg);
}


.telegram-modal__content {
    padding: 48px 40px 40px;
    text-align: center;
}


.telegram-modal__icon {
    margin: 0 auto 24px;
    width: 80px;
    height: 80px;
    animation: pulse-telegram 2s ease-in-out infinite;
}

@keyframes pulse-telegram {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}


.telegram-modal__title {
    font-size: 28px;
    font-weight: 700;
    color: #2AABEE;
    margin: 0 0 16px;
    line-height: 1.3;
}


.telegram-modal__text {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 32px;
}


.telegram-modal__features {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}

.telegram-modal__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(42, 171, 238, 0.05);
    border-radius: 12px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.telegram-modal__feature:hover {
    background: rgba(42, 171, 238, 0.1);
    transform: translateX(4px);
}

.telegram-modal__feature-icon {
    font-size: 24px;
    line-height: 1;
}


.telegram-modal__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(42, 171, 238, 0.3);
}

.telegram-modal__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 171, 238, 0.4);
    background: linear-gradient(135deg, #229ED9 0%, #2AABEE 100%);
}

.telegram-modal__button:active {
    transform: translateY(0);
}

.telegram-modal__button svg {
    flex-shrink: 0;
}


.telegram-modal__channel {
    margin-top: 16px;
    font-size: 14px;
    color: #2AABEE;
    font-weight: 600;
}


.telegram-modal__skip {
    margin-top: 16px;
    background: none;
    border: none;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
}

.telegram-modal__skip:hover {
    color: #666;
    text-decoration: underline;
}

.iframe-click-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.iframe-click-wrapper iframe {
    width: 100%;
    height: 100%;
}

@media (max-width: 640px) {
    .telegram-modal {
        max-width: 100%;
        border-radius: 20px;
        margin: 0 12px;
    }
    
    .telegram-modal__content {
        padding: 40px 24px 32px;
    }
    
    .telegram-modal__title {
        font-size: 24px;
    }
    
    .telegram-modal__text {
        font-size: 15px;
    }
    
    .telegram-modal__icon {
        width: 64px;
        height: 64px;
    }
    
    .telegram-modal__features {
        gap: 12px;
    }
    
    .telegram-modal__feature {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .telegram-modal__feature-icon {
        font-size: 20px;
    }
    
    .telegram-modal__button {
        padding: 14px 24px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .telegram-modal__content {
        padding: 36px 20px 28px;
    }
    
    .telegram-modal__title {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .telegram-modal__text {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .telegram-modal__features {
        margin-bottom: 24px;
    }
}

.dt .telegram-modal {
    background: #1a1a1a;
}

.dt .telegram-modal__title {
    color: #2AABEE;
}

.dt .telegram-modal__text {
    color: #aaa;
}

.dt .telegram-modal__feature {
    background: rgba(42, 171, 238, 0.1);
    color: #ddd;
}

.dt .telegram-modal__feature:hover {
    background: rgba(42, 171, 238, 0.15);
}

.dt .telegram-modal__close {
    background: rgba(255, 255, 255, 0.05);
    color: #aaa;
}

.dt .telegram-modal__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dt .telegram-modal__skip {
    color: #666;
}

.dt .telegram-modal__skip:hover {
    color: #999;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.telegram-modal__button {
    position: relative;
    overflow: hidden;
}

.telegram-modal__button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.telegram-modal__button:hover::before {
    width: 300px;
    height: 300px;
}

@keyframes pulse-icon {
    0% {
        box-shadow: 0 0 0 0 rgba(42, 171, 238, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(42, 171, 238, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(42, 171, 238, 0);
    }
}

.telegram-modal__icon svg circle {
    animation: pulse-icon 2s ease-in-out infinite;
}

/* График серий — b-post__schedule (контент grafik-serii.php) внутри карточки qapo */
.qapo__schedule .b-post__schedule_empty {
    margin: 0;
    padding: 20px 16px;
    color: rgba(var(--tt-rgb), 0.62);
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    text-align: center;
    background: transparent;
    border-radius: 0;
}

.qapo__schedule .b-post__schedule_header {
    margin-bottom: 12px;
}

.qapo__schedule .b-post__schedule_next {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 14px 16px 14px 18px;
    position: relative;
    background:
        linear-gradient(135deg, rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.14) 0%, rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.04) 60%, transparent 100%),
        rgba(var(--bg-rgb), 0.4);
    border: 1px solid rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.3);
    border-radius: 14px;
    overflow: hidden;
}

.qapo__schedule .b-post__schedule_next::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--qapo-lamp, var(--accent)) 0%, var(--accent-dark, var(--accent)) 100%);
}

.qapo__schedule .b-post__schedule_next-label {
    flex: 1 1 100%;
    color: var(--accent-dark, var(--accent));
    font-family: inherit;
    font-size: var(--qapo-fs-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.3;
}

.qapo__schedule .b-post__schedule_next-code {
    display: inline-block;
    padding: 3px 9px;
    color: var(--tt);
    font-family: inherit;
    font-size: var(--qapo-fs-ui);
    font-weight: 600;
    line-height: 1.3;
    background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.14);
    border: 1px solid rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.28);
    border-radius: 999px;
}

.qapo__schedule .b-post__schedule_next-name {
    color: var(--tt);
    font-family: inherit;
    font-size: var(--qapo-fs-body);
    font-weight: 600;
    line-height: var(--qapo-lh-ui);
}

.qapo__schedule .b-post__schedule_next-name-en {
    color: rgba(var(--tt-rgb), 0.55);
    font-family: inherit;
    font-size: var(--qapo-fs-sm);
    line-height: var(--qapo-lh-ui);
}

.qapo__schedule .b-post__schedule_next-date {
    color: rgba(var(--tt-rgb), 0.72);
    font-family: inherit;
    font-size: var(--qapo-fs-sm);
    line-height: var(--qapo-lh-ui);
    white-space: nowrap;
}

.qapo__schedule .b-post__schedule_next-status {
    display: inline-block;
    padding: 4px 10px;
    color: var(--accent-dark, var(--accent));
    font-family: inherit;
    font-size: var(--qapo-fs-xs);
    font-weight: 600;
    line-height: 1.25;
    background: rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.14);
    border: 1px solid rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.26);
    border-radius: 999px;
    white-space: nowrap;
}

.qapo__schedule .b-post__schedule_block {
    margin-bottom: 8px;
    background: rgba(var(--bdc-rgb), 0.06);
    border: 1px solid rgba(var(--bdc-rgb), 0.28);
    border-radius: 10px;
    overflow: hidden;
}

.qapo__schedule-player--inline .qapo__schedule .b-post__schedule_block,
.qapo__schedule-player--inline .qapo__schedule .b-post__schedule_list,
.qapo__schedule-player--inline .qapo__schedule-scroll {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    max-height: none !important;
}

.qapo__schedule-player--inline .qapo__schedule .b-post__schedule_block_title,
.qapo__schedule-player--inline .qapo__schedule .b-post__schedule_block_title .act {
    display: none !important;
}

.qapo__schedule .b-post__schedule_block:last-child {
    margin-bottom: 0;
}

.qapo__schedule .b-post__schedule_block_title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    overflow: hidden;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.qapo__schedule .b-post__schedule_block_title:hover {
    background: rgba(var(--accent-rgb), 0.06);
}

.qapo__schedule .b-post__schedule_block_title .title {
    color: var(--tt);
    float: none;
    font-family: inherit;
    font-size: var(--qapo-fs-sm);
    font-weight: 600;
    line-height: var(--qapo-lh-heading);
}

.qapo__schedule .b-post__schedule_block_title .act {
    flex-shrink: 0;
    color: rgba(var(--tt-rgb), 0.52);
    font-family: inherit;
    font-size: var(--qapo-fs-ui);
    line-height: 1.35;
}

.qapo__schedule .b-post__schedule_list {
    overflow: hidden;
    border-top: 1px solid rgba(var(--bdc-rgb), 0.22);
}

.qapo__schedule .b-post__schedule_table {
    color: rgba(var(--tt-rgb), 0.88);
    font-family: inherit;
    font-size: var(--qapo-fs-sm);
    line-height: var(--qapo-lh-ui);
    width: 100%;
    border-collapse: collapse;
}

.qapo__schedule .b-post__schedule_table td {
    padding: 11px 14px;
    border-top: 1px solid rgba(var(--bdc-rgb), 0.22);
    vertical-align: middle;
}

.qapo__schedule-player .qapo__schedule .b-post__schedule_list,
.qapo__schedule-player .qapo__schedule .b-post__schedule_table td,
.qapo__schedule-player .qapo__schedule .b-post__schedule_table tr,
.qapo__schedule-player .qapo__schedule .b-post__schedule_table tr:first-child td {
    border-top: none !important;
}

.qapo__schedule-player .qapo__schedule .b-post__schedule_list {
    overflow: visible;
    border-top: none !important;
}

.dt .qapo__schedule-player .qapo__schedule .b-post__schedule_list,
.dt .qapo__schedule-player .qapo__schedule .b-post__schedule_table td {
    border-top: none !important;
}

.qapo__schedule-player .qapo__schedule .b-post__schedule_block {
    background: transparent !important;
    border: none !important;
    overflow: visible;
    box-shadow: none;
}

.qapo__schedule-player--modal .qapo__schedule .b-post__schedule_block,
.qapo__schedule-player.qapo__schedule-player--modal .b-post__schedule_block {
    margin: 0 0 10px !important;
    border: 1px solid rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.2) !important;
    border-radius: 14px !important;
    background:
        linear-gradient(160deg, rgba(var(--qapo-lamp-rgb, var(--accent-rgb)), 0.07) 0%, transparent 48%),
        rgba(var(--bg-rgb), 0.52) !important;
    overflow: hidden !important;
    box-shadow: 0 4px 14px rgba(20, 24, 32, 0.04) !important;
}

.qapo__schedule .b-post__schedule_table tr:first-child td {
    border-top: none;
}

.qapo__schedule .b-post__schedule_episode.is-upcoming {
    background: rgba(var(--accent-rgb), 0.06);
}

.qapo__schedule .b-post__schedule_episode.is-upcoming .td-4 {
    color: var(--accent-dark);
}

.qapo__schedule .b-post__schedule_episode.is-released .ep-status {
    color: rgba(var(--tt-rgb), 0.45);
}

.qapo__schedule .b-post__schedule_table .td-1 {
    width: 18%;
    min-width: 72px;
}

.qapo__schedule .ep-num-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qapo__schedule .ep-code {
    display: inline-block;
    color: var(--blue);
    font-family: inherit;
    font-size: var(--qapo-fs-xs);
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.3;
}

.qapo__schedule .ep-num-col .ep-num {
    color: var(--tt);
    font-family: inherit;
    font-size: var(--qapo-fs-sm);
    font-weight: 600;
    line-height: 1.35;
}

.qapo__schedule .b-post__schedule_table .td-2 {
    width: 42%;
}

.qapo__schedule .ep-title-col b {
    display: block;
    margin-bottom: 4px;
    color: var(--tt);
    font-family: inherit;
    font-size: var(--qapo-fs-sm);
    font-weight: 600;
    line-height: var(--qapo-lh-ui);
}

.qapo__schedule .ep-name-ru {
    display: block;
    color: rgba(var(--tt-rgb), 0.62);
    font-family: inherit;
    font-size: var(--qapo-fs-ui);
    line-height: var(--qapo-lh-ui);
}

.qapo__schedule .ep-synopsis {
    margin: 8px 0 0;
    color: rgba(var(--tt-rgb), 0.48);
    font-family: inherit;
    font-size: var(--qapo-fs-ui);
    line-height: var(--qapo-lh-body);
}

.qapo__schedule .b-post__schedule_table .td-4 {
    width: 22%;
    min-width: 110px;
    text-align: right;
}

.qapo__schedule .ep-date-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.qapo__schedule .ep-date {
    color: rgba(var(--tt-rgb), 0.78);
    font-family: inherit;
    font-size: var(--qapo-fs-ui);
    line-height: 1.35;
    white-space: nowrap;
}

.qapo__schedule .ep-status {
    display: inline-block;
    font-family: inherit;
    font-size: var(--qapo-fs-xs);
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

.qapo__schedule .is-upcoming .ep-status {
    padding: 3px 8px;
    color: var(--accent-dark);
    background: rgba(var(--accent-rgb), 0.14);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 999px;
}

.qapo__schedule .ep-days {
    display: block;
    color: var(--accent);
    font-family: inherit;
    font-size: var(--qapo-fs-2xs);
    line-height: 1.25;
}

.qapo__schedule .b-post__schedule_table .td-5 {
    width: 8%;
    min-width: 36px;
    padding-right: 14px;
    text-align: center;
    vertical-align: middle;
}

.qapo__schedule .b-post__schedule_table .exists-episode {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    color: var(--green);
    font-size: 15px;
    line-height: 1;
}

.qapo__schedule .is-upcoming .exists-episode {
    color: rgba(var(--tt-rgb), 0.35);
    font-size: var(--qapo-fs-sm);
}

.dt .qapo__schedule .b-post__schedule_block {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.dt .qapo__schedule-player .qapo__schedule .b-post__schedule_block {
    background: transparent !important;
    border: none !important;
}

.dt .qapo__schedule .b-post__schedule_list,
.dt .qapo__schedule .b-post__schedule_table td {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.dt .qapo__schedule .b-post__schedule_next {
    background: rgba(var(--accent-rgb), 0.1);
    border-color: rgba(var(--accent-rgb), 0.32);
}

.dt .qapo__schedule .b-post__schedule_next-code {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.dt .qapo__schedule .b-post__schedule_episode.is-upcoming {
    background: rgba(var(--accent-rgb), 0.08);
}

.dt .qapo__schedule .is-upcoming .ep-status {
    color: #8fd4a8;
    background: rgba(var(--accent-rgb), 0.18);
    border-color: rgba(var(--accent-rgb), 0.28);
}

@media (max-width: 767px) {
    .qapo__schedule-scroll {
        padding: 10px 12px;
    }

    .qapo__schedule-player .qapo__schedule-scroll {
        padding: 0;
        max-height: none;
        overflow: visible;
    }

    .qapo__schedule-tabs-rail {
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        max-width: 100%;
    }

    .qapo__schedule-tabs.qapo__info-tabs-nav {
        min-width: 0;
        width: max-content;
        max-width: none;
    }

    .qapo__schedule .b-post__schedule_next {
        padding: 12px 14px;
        gap: 6px 10px;
    }

    .qapo__schedule .b-post__schedule_next-name {
        flex: 1 1 100%;
        font-size: var(--qapo-fs-sm);
    }

    .qapo__schedule .b-post__schedule_table,
    .qapo__schedule .b-post__schedule_table tbody,
    .qapo__schedule .b-post__schedule_table tr,
    .qapo__schedule .b-post__schedule_table td {
        display: block;
        width: 100%;
    }

    /* Карточки графика на мобайле — не трогаем flat inline */
    .qapo__schedule-player:not(.qapo__schedule-player--inline) .b-post__schedule_table,
    .qapo__schedule-player:not(.qapo__schedule-player--inline) .b-post__schedule_table tbody {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .qapo__schedule-player:not(.qapo__schedule-player--inline) .b-post__schedule_table tr {
        display: grid;
        width: 100%;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "num meta"
            "title title";
        gap: 8px 10px;
        padding: 12px;
        align-items: start;
        border: 1px solid rgba(var(--bdc-rgb), 0.32) !important;
        border-radius: 12px;
        background: rgba(var(--bg-rgb), 0.55) !important;
    }

    .qapo__schedule-player:not(.qapo__schedule-player--inline) .b-post__schedule_table .td-1 {
        grid-area: num;
    }

    .qapo__schedule-player:not(.qapo__schedule-player--inline) .b-post__schedule_table .td-2 {
        grid-area: title;
    }

    .qapo__schedule-player:not(.qapo__schedule-player--inline) .b-post__schedule_table .td-4 {
        grid-area: meta;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }

    .qapo__schedule-player:not(.qapo__schedule-player--inline) .b-post__schedule_table td {
        width: auto !important;
        border-top: none !important;
        padding: 0 !important;
    }

    .dt .qapo__schedule-player:not(.qapo__schedule-player--inline) .b-post__schedule_table tr {
        background: rgba(255, 255, 255, 0.03) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
    }

    /* Inline-график на мобайле: без карточек, дата под названием */
    .qapo__schedule-player--inline .b-post__schedule_table,
    .qapo__schedule-player--inline .b-post__schedule_table tbody {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .qapo__schedule-player--inline .b-post__schedule_table tr {
        display: grid !important;
        grid-template-columns: 4.25rem minmax(0, 1fr) auto !important;
        grid-template-areas: "num title status" !important;
        gap: 2px 10px !important;
        padding: 10px 0 !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(var(--bdc-rgb), 0.14) !important;
        border-radius: 0 !important;
        background: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
    }

    .qapo__schedule-player--inline .b-post__schedule_table tr:has(.ep-date-col > .ep-date) {
        grid-template-areas:
            "num title status"
            "num date status" !important;
    }

    .qapo__schedule-player--inline .qapo__schedule-scroll {
        max-height: none !important;
        overflow: visible !important;
        border: 0 !important;
        background: transparent !important;
        padding: 0 !important;
    }

    .dt .qapo__schedule-player--inline .b-post__schedule_table tr {
        background: transparent !important;
        border-color: transparent !important;
        border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    }

    .qapo__schedule-player--inline .b-post__schedule_next {
        padding: 0 0 12px !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(var(--bdc-rgb), 0.22) !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    .qapo__schedule-tab {
        padding: 0 12px;
        min-height: 38px;
        font-size: 13px;
    }
}

/* Финальный каскад: плоский inline-график не перебивается legacy-карточками */
.qapo__schedule-player--inline .b-post__schedule_table .td-1,
.qapo__schedule-player--inline .b-post__schedule_table .td-2,
.qapo__schedule-player--inline .b-post__schedule_table .td-4,
.qapo__schedule-player--inline .b-post__schedule_table .td-5,
.qapo__schedule-player--inline .b-post__schedule_table td {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.qapo__schedule-player--inline .ep-code {
    display: inline-block !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--tt) !important;
    padding: 0 !important;
}

.qapo__schedule-player--inline .ep-status,
.qapo__schedule-player--inline .is-released .ep-status,
.qapo__schedule-player--inline .is-released .ep-days,
.qapo__schedule-player--inline .ep-days {
    color: rgba(var(--tt-rgb), 0.48) !important;
    background: transparent !important;
    border: 0 !important;
}

.qapo__schedule-player--inline .is-upcoming .ep-status,
.qapo__schedule-player--inline .is-upcoming .ep-days {
    color: var(--accent-dark, var(--accent)) !important;
    background: transparent !important;
}

.qapo__schedule-player--inline .ep-status::before {
    content: none !important;
}

.qapo__schedule-player--inline .b-post__schedule_table tr:not(:has(.ep-date-col > .ep-date)) .td-4,
.qapo__schedule-player--inline .b-post__schedule_table tr:not(:has(.ep-date-col > .ep-date)) .td-5 {
    grid-area: status !important;
    justify-self: end !important;
    align-items: flex-end !important;
    text-align: right !important;
}

.qapo__schedule-player--inline .b-post__schedule_table tr,
.qapo__schedule-player--inline .b-post__schedule_table tr.is-released,
.qapo__schedule-player--inline .b-post__schedule_table tr.is-upcoming,
.dt .qapo__schedule-player--inline .b-post__schedule_table tr,
.dt .qapo__schedule-player--inline .b-post__schedule_table tr.is-released,
.dt .qapo__schedule-player--inline .b-post__schedule_table tr.is-upcoming {
    background: transparent !important;
    background-image: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.qapo__schedule-player--inline .qapo__schedule-scroll {
    max-height: none !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}



/* Модуль рейтинг ожидания премьер */
.movie-rate-watchlist .watchlist_btn_success i {
    color: #f60;
}

.movie-rating__green-number {
    color: #093;
}

.movie-rating__grey-number {
    color: #aaa;
}

.movie-rating__red-number {
    color: red;
}

.movie-expected__actions {display: flex;}

.movie-expected__wrapper {
    display: flex;
}

.movie-expected__percent {
    color: #093;
    font-size: 20px;
    font-weight: 500;
}

.movie-expected__count {
    margin-left: 8px;
    font-size: 16px;
    align-self: flex-end;
}

.movie-expected__btns {
    margin: 0 0 0 20px;
    align-self: flex-end;
}

.movie-expected__btns button {
    margin-right: 10px;
    padding: 5px 11px 5px 8px;
    border-radius: 3px;
    color: #333;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 16px;
    border: 1px solid rgba(0, 0, 0, .1);
    -webkit-box-shadow: 0 1px 2px rgb(0 0 0 / 4%);
    box-shadow: 0 1px 2px rgb(0 0 0 / 4%);
    cursor: pointer;
    text-transform: none;
}

.movie-expected__btns button:hover {
    opacity: 0.8;
}

.movie-expected__btns button:active {
    -webkit-transform: translateY(1px);
    transform: translateY(1px);
}

.movie-expected__wait.success {
    background-color: #093;
    color: white;
}

.movie-expected__nowait.success {
    background-color: #f66600;
    color: white;
}

.movie-expected__wait.success i,
.movie-expected__nowait.success i {
    color: white;
}

.movie-expected__wait i {
    color: #093;
    margin-right: 3px;
}

.movie-expected__nowait i {
    color: #f66600;
    margin-right: 3px;
}

.movie-expected__most {
    margin-top: 9px;
    font-size: 14px;
    text-decoration: none;
    margin-left: auto;
}

.movie-expected__most:hover {
    color: #f66600;
}

.movie-expected__bar {
    height: 15px;
    width: 100%;
    color: #fe000b;
    border-radius: 0 2px 2px 0;
    background-color: rgb(255 206 173);
    margin-bottom: 8px;
}

.movie-expected__green {
    height: 15px;
    width: 90%;
    position: relative;
    color: #093;
    border-radius: 2px 0 0 2px;
    background-color: rgb(134 199 156);
}

.movie-expected__green::after {
    display: block;
    width: 2px;
    height: 22px;
    content: "";
    background: #093;
    position: absolute;
    right: 0;
    top: -3px;
}



@media only screen and (max-width:525px) {
    .movie-expected__most {
        margin-left: 0;
    }

    .movie-expected__actions {
        flex-direction: column;
        align-items: flex-start;
    }
}


@media only screen and (max-width:768px) {
    .movie-info {position: absolute;bottom: 25px;right: 15px;left: 15px;}
    .movie-rated__item {height: 180px;}
}


@media only screen and (max-width:480px) {
    .movie-expected {
        /* margin-bottom: 25px; */
    }
}

@media only screen and (max-width:360px) {
    .movie-expected__percent {
        font-size: 21px;
    }

    .movie-expected__count {
        font-size: 16px;
    }
}

.movie-rated__list {
    margin-bottom: 35px;
}

.movie-rated__list .watchlist_parent {
    border-radius: unset;
    cursor: unset;
    width: unset;
    display: flex;
}

.movie-rated__item {
    display: flex;
    padding: 20px;
    position: relative;
    border-radius: 5px;
}

.movie-rated__list .movie-rated__item.movie-rated__item-is-watching {
    background-color: rgba(255, 102, 0, 0.13);
}

.movie-rated__item .movie-item__rating {
    top: 6px;
    left: -7px;
}

.movie-rated__item::before {
    content: '';
    display: block;
    background: rgba(0, 0, 0, 0.08);
    position: absolute;
    left: 20px;
    right: 20px;
    height: 1px;
    width: calc(100% - 40px);
    top: 0;
    -webkit-transition: opacity 0.15s ease-out;
    transition: opacity 0.15s ease-out;
}

.movie-rated__item:hover::before,
.movie-rated__item:hover+.movie-rated__item::before {
    opacity: 0;
}

.movie-rated__item:hover {
    background: #f7f7f7;
}

.movie-rated__item:last-of-type {
    border-bottom: none;
}

.movie-rated__parent {
    display: flex;
    margin-right: auto;
}

.movie-rated__img {
    height: 95px;
    width: 65px;
    margin-right: 15px;
    position: relative;
    flex-shrink: 0;
}

.movie-rated__parent .movie-rated__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

.movie-rated__info {
    flex: 1 0 0;
}

.movie-info {
    display: flex;
    height: 30px;
    justify-content: space-between;
    align-items: center;
}


.short {
    margin-right: 20px;
}

.movie-rated__name {
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    margin-bottom: 4px;
    color: #1f1f1f;
}

.movie-rated__other-names {
    line-height: 18px;
    font-size: 13px;
    color: #333;
    margin-bottom: 3px;
}

.movie-rated__genres {
    font-size: 13px;
    color: #777;
}

.movie-rated__number {
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    margin-right: 15px;
    min-width: 28px;
}

.movie-rated__rating {
    margin-right: 20px;
    margin-left: 10px;
    margin-top: 5px;
    flex-shrink: 0;
}

.profile__movie-list .movie-rated-rating {
    text-align: right;
}

.movie-rated-rating__number {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    margin-right: 6px;
}

.movie-rated-rating__count {
    color: #777;
    font-size: 11px;
}

.movie-rated__buttons {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    color: #333;
    border-radius: 3px;
    border: 1px solid #cccccc7a;
    font-weight: 500;
}

.movie-rated__buttons .fal.fa-star {
    margin-right: 5px;
}
.fav-del {
    color: #f60;
}

.movie-rated__plus,
.movie-rated__minus {
    background-color: #fff;
    height: 28px;
    width: 28px;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3px;
    border: 1px solid #cccccc7a;
    font-weight: 500;
}

.movie-rated__plus:hover,
.movie-rated__minus:hover {
    background-color: #f7f7f7;
}

.movie-rated__rating-count {
    margin: 0 10px;
    color: #093;
    font-size: 0.8em;
}

.movie-rate-watchlist {
    color: #333;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.23;
    display: flex;
    flex-shrink: 0;
}

.movie-rate-watchlist i {
    font-size: 0.8em;
    color: #333;
}

.movie-rate-watchlist button {
    border: solid 1px rgba(0, 0, 0, 0.1);
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    background: #fff;
    height: 33px;
    color: #1f1f1f;
    text-transform: none;
}

.movie-rate-watchlist button:hover {
    background-color: #f7f7f7;
}

.movie-rate-watchlist .movie-rate-watchlist__will {
    border-right-color: rgba(0, 0, 0, 0.1);
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    border-right: none;
}

.movie-rated__watchlist .movie-rate-watchlist__remove {
    width: 207px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.movie-rate-watchlist__will i {
    margin-right: 7px;
}

.movie-rate-watchlist .movie-rate-watchlist__seen {
    margin-right: 7px;
    border-top-left-radius: unset;
    border-bottom-left-radius: unset;
}

.movie-rated__upcoming .movie-rate-watchlist__remove {
    width: 159px;
}

.movie-rated__upcoming .movie-rate-watchlist__seen {
    margin-right: 0;
}

@media only screen and (max-width:768px) {
    .movie-rated__item {
        flex-direction: row;
        padding: 20px 0;
        border-radius: 0;
    }

    .movie-rated__parent {
        display: flex;
        margin-bottom: 10px;
    }

    .movie-rated__item-is-watching {
        margin: 0 -15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .movie-rated__item-is-watching .movie-rated__buttons,
    .movie-rated__item-is-watching .movie-rated__number {
        /* right: 15px; */
    }

    .movie-rated__buttons {
        /* position: absolute; */
        /* bottom: 20px; */
        /* right: 0; */
    }

    .movie-rate-watchlist button {
        height: 28px;
        padding: 5px 7px;
    }

    .movie-rated__name {
        padding-right: 35px;
    }

    .movie-rated__number {
        color: #595959;
        background-color: rgba(89, 89, 89, .05);
        text-align: center;
        position: absolute;
        top: 20px;
        right: 15px;
        font-size: 14px;
        font-weight: 400;
        margin-right: 0;
        border-radius: 3px;
    }

    .movie-rate-watchlist__remove {
        width: 155px;
    }
}

@media only screen and (max-width:320px) {
    .movie-rate-watchlist .movie-rate-watchlist__seen {
        margin-right: 5px;
    }
}

.movie-rated__rating__favor {
    display: flex;
}

.count-items {counter-reset: num;}
.count-items .movie-rated__number::before {content: counter(num); counter-increment: num;}


/* Темный стиль для рейтинга ожидания премьер */
.dt .movie-rated__item {
    background: var(--bg);
}

