/* ==========================================
   СВОЙ ПЛЕЕР AnimeHub — HLS + кастомный UI
   ========================================== */
.aw-page {
    width: 100%;
    box-sizing: border-box;
    max-width: 1060px;
    margin: 0 auto;
    padding: 26px 40px 80px;
    color: #fff;
    font-family: 'MyCustomFont';
    transition: max-width .35s ease;
}

.aw-page.aw-theater {
    max-width: 1600px;
}

.aw-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.aw-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c9ccd4;
    text-decoration: none;
    font-size: 13px;
    padding: 9px 14px;
    border-radius: 10px;
    background: rgba(13, 14, 17, .45);
    border: 1px solid #2c2e36;
    backdrop-filter: blur(6px);
    transition: all .2s;
}

@media (hover: hover) and (pointer: fine) {
    .aw-back:hover {
        color: #ff8fa3;
        border-color: rgba(255, 77, 109, .5);
    }
}

.aw-back:active {
    transform: scale(0.94);
    opacity: 0.85;
}

.aw-back svg {
    width: 15px;
    height: 15px;
}

.aw-top-actions {
    display: flex;
    gap: 8px;
}

.aw-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1d1e24;
    border: 1px solid #2c2e36;
    color: #8b8e98;
    cursor: pointer;
    transition: all .2s;
}

@media (hover: hover) and (pointer: fine) {
    .aw-icon-btn:hover {
        color: #fff;
        border-color: #3a3d46;
        transform: translateY(-1px);
    }
}

.aw-icon-btn:active {
    transform: scale(0.92);
}

.aw-icon-btn.active {
    color: #ff8fa3;
    border-color: rgba(255, 77, 109, .6);
    background: rgba(255, 77, 109, .1);
    box-shadow: 0 0 14px rgba(255, 77, 109, .25);
}

.aw-icon-btn.loading svg {
    animation: awpSpin 1s linear infinite;
    color: #ff4757;
}

@keyframes awpSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.aw-icon-btn svg {
    width: 16px;
    height: 16px;
}

/* ---------- Оболочка плеера ---------- */
.awp-shell {
    position: relative;
    margin: 18px 0 24px;
    width: 100%;
    min-width: 0;
}

/* Ambilight-canvas: живое свечение за плеером без резких границ */
.awp-ambient {
    position: absolute;
    left: -120px;
    top: -90px;
    width: calc(100% + 240px);
    height: calc(100% + 180px);
    z-index: 0;
    pointer-events: none;
    filter: blur(80px) brightness(1.2);
    opacity: .65;
    transform: translateZ(0);
    transition: opacity .5s ease;
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

.awp-shell.amb-off .awp-ambient,
.room-shell.amb-off .awp-ambient,
html .awp-shell.amb-off .awp-ambient,
html .room-shell.amb-off .awp-ambient,
.awp-ambient.amb-off,
.awp-shell.amb-off .awp-ambient.is-pulling-down,
.room-shell.amb-off .awp-ambient.is-pulling-down {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.awp-shell {
    position: relative;
    margin: 18px 0 24px;
    width: 100%;
    min-width: 0;
    background: transparent;
    border-radius: 18px;
}

.awp-player {
    position: relative;
    z-index: 1;
    width: 100%;
    background: #000;
    border: 1px solid rgba(255, 77, 109, .35);
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    user-select: none;
    cursor: pointer;
}

/* В оконном режиме при включённой подсветке: боковые черные полосы 3:4 / 4:3 пропускают свечение */
.awp-player:not(.amb-off),
.awp-player:not(.amb-off) .awp-screen {
    background: transparent !important;
}

.awp-shell.amb-off,
.awp-player.amb-off,
.awp-player.amb-off .awp-screen {
    background: #000 !important;
}

.awp-shell.is-fs,
.awp-shell:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    background: #000 !important;
    overflow: hidden !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
}

.awp-player.is-fs {
    border-radius: 0 !important;
    border: none !important;
    aspect-ratio: auto !important;
    width: 100vw !important;
    height: 100vh !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.awp-player.is-fs .awp-screen,
.awp-shell.is-fs .awp-screen,
.awp-shell:fullscreen .awp-screen {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.awp-player video {
    width: auto;
    height: 100%;
    max-width: 100%;
    aspect-ratio: var(--vid-ar, 16 / 9);
    display: block;
    object-fit: contain;
    background: #000;
    margin: 0 auto;
}

.awp-player.is-fs video,
.awp-shell.is-fs video,
.awp-shell:fullscreen video {
    width: 100% !important;
    height: 100% !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: contain !important;
    aspect-ratio: auto !important;
    display: block;
    margin: 0 !important;
}

/* На ПК в полноэкранном режиме: чистый чёрный кинематографичный фон без ореолов */
html:not(.is-mobile-device) .awp-player.is-fs,
html:not(.is-mobile-device) .awp-player.is-fs .awp-screen,
html:not(.is-mobile-device) .awp-shell.is-fs .awp-screen,
html:not(.is-mobile-device) .awp-shell:fullscreen .awp-screen,
html:not(.is-mobile-device) .awp-player.is-fs video,
html:not(.is-mobile-device) .awp-shell.is-fs video,
html:not(.is-mobile-device) .awp-shell:fullscreen video {
    background: #000 !important;
}

html:not(.is-mobile-device) .awp-shell.is-fs .awp-ambient,
html:not(.is-mobile-device) .awp-shell:fullscreen .awp-ambient {
    display: none !important;
    opacity: 0 !important;
}

/* Большой центральный play/pause */
.awp-big-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.70) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
    color: #fff;
    cursor: pointer;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.25s ease, background 0.2s ease, border-color 0.2s ease;
    z-index: 4;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    touch-action: manipulation;
}

.awp-big-play svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
    transition: transform 0.18s ease;
}

.awp-big-play svg.ic-play {
    margin-left: 2px;
    /* Оптическое центрирование треугольника в круге */
}

.awp-big-play svg.ic-pause {
    width: 26px;
    height: 26px;
    margin-left: 0;
}

@media (hover: hover) and (pointer: fine) {
    .awp-big-play:hover {
        transform: scale(1.08);
        background: rgba(0, 0, 0, 0.82) !important;
        border-color: rgba(255, 77, 109, 0.8) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 77, 109, 0.3) !important;
    }
}

.awp-big-play:active {
    transform: scale(0.92) !important;
    background: rgba(0, 0, 0, 0.90) !important;
    border-color: rgba(255, 77, 109, 0.9) !important;
    transition: transform 0.08s ease, background 0.08s ease;
}

.awp-big-play.pop-anim {
    animation: awpBigPlayPop 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes awpBigPlayPop {
    0% {
        transform: scale(0.9);
    }

    50% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1);
    }
}

.awp-big-play.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Loading */
.awp-loading {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(0, 0, 0, .3);
    color: #c9ccd4;
    font-size: 13.5px;
    pointer-events: none;
    transition: opacity .3s;
}

.awp-loading.hidden {
    opacity: 0;
}

.awp-spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid rgba(255, 77, 109, .2);
    border-top-color: #ff4d6d;
    animation: awSpin .8s linear infinite;
}

@keyframes awSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Error */
.awp-error {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    padding: 10px 14px;
    font-size: 12.5px;
    background: rgba(248, 113, 113, .15);
    color: #f87171;
    backdrop-filter: blur(6px);
}

.awp-error:empty {
    display: none;
}

/* Skip Intro */
.awp-skip {
    position: absolute;
    right: 20px;
    bottom: 90px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(13, 14, 17, .85);
    border: 1px solid rgba(255, 77, 109, .6);
    color: #fff;
    font-family: 'MyCustomFont';
    font-size: 13px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 18px rgba(255, 77, 109, .3);
    transition: all .25s;
    animation: awSkipIn .3s ease both;
}

@keyframes awSkipIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (hover: hover) and (pointer: fine) {
    .awp-skip:hover {
        background: rgba(255, 77, 109, .15);
        transform: translateY(-2px);
    }
}

.awp-skip:active {
    transform: scale(0.94);
}

.awp-skip svg {
    width: 14px;
    height: 14px;
}

.awp-skip[hidden] {
    display: none;
}

/* Top bar с названием и серией */
.awp-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 12px 18px 24px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .35) 60%, transparent 100%);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .9);
    pointer-events: none;
    transition: opacity .25s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Контролы */
.awp-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    padding: 0 0 12px;
    background: linear-gradient(0deg, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .35) 60%, transparent 100%);
    transition: opacity .3s ease;
}

.awp-player.menu-open .awp-controls,
.awp-controls:has(.awp-settings-menu.open) {
    z-index: 50 !important;
}

/* Автоскрытие панелей через 5 с бездействия (JS: player_idle.js) */
.awp-player.ui-hidden .awp-controls,
.awp-player.ui-hidden .awp-controls *,
.awp-player.ui-hidden .awp-top-bar,
.awp-player.ui-hidden .awp-top-bar *,
.awp-player.ui-hidden .awp-progress-wrap,
.awp-player.ui-hidden .awp-progress,
.awp-player.ui-hidden .awp-bar,
.awp-player.ui-hidden .awp-ctrl,
.awp-player.ui-revealing .awp-controls,
.awp-player.ui-revealing .awp-controls *,
.awp-player.ui-revealing .awp-top-bar,
.awp-player.ui-revealing .awp-top-bar *,
.awp-player.ui-revealing .awp-progress-wrap,
.awp-player.ui-revealing .awp-progress,
.awp-player.ui-revealing .awp-bar,
.awp-player.ui-revealing .awp-ctrl {
    pointer-events: none !important;
}

.awp-controls,
.awp-top-bar {
    transition: opacity .25s ease, visibility .25s ease;
}

.awp-player.ui-hidden .awp-controls,
.awp-player.ui-hidden .awp-controls *,
.awp-player.ui-hidden .awp-top-bar,
.awp-player.ui-hidden .awp-top-bar *,
.awp-player.ui-hidden .awp-progress-wrap,
.awp-player.ui-hidden .awp-progress,
.awp-player.ui-hidden .awp-bar,
.awp-player.ui-hidden .awp-ctrl {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: none;
}

.awp-player:not(.ui-hidden) .awp-controls,
.awp-player:not(.ui-hidden) .awp-top-bar {
    visibility: visible !important;
}

/* Курсор над «чистым» видео тоже прячем — но только на устройствах с мышью,
   на тачах это ничего не даёт и может мешать. */
@media (hover: hover) and (pointer: fine) {

    .awp-player.ui-hidden,
    .awp-player.ui-hidden .awp-screen {
        cursor: none;
    }
}

/* На паузе панель всегда на виду. Класс ui-hidden в этот момент снимает
   player_idle.js (слушатель 'pause'), поэтому отдельного CSS-правила
   с :not(.is-playing) здесь намеренно нет: оно перебивало бы ui-hidden
   равной специфичностью и панель гасла бы на паузе. */

/* Прогресс */
.awp-progress {
    position: relative;
    height: 4px;
    margin: 0 14px 10px;
    background: rgba(255, 255, 255, .15);
    border-radius: 2px;
    cursor: pointer;
    transition: height .15s;
}

@media (hover: hover) and (pointer: fine) {
    .awp-progress:hover {
        height: 7px;
    }
}

.awp-buffer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, .18);
    border-radius: 2px;
}

.awp-played {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #ff4d6d, #ff8fa3);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 77, 109, .6);
}

.awp-thumb {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    background: #ff4d6d;
    border: 2px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity .2s;
    box-shadow: 0 0 10px rgba(255, 77, 109, .7);
}

@media (hover: hover) and (pointer: fine) {
    .awp-progress:hover .awp-thumb {
        opacity: 1;
    }
}

/* Нижняя панель */
.awp-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
}

.awp-ctrl {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all .2s;
}

@media (hover: hover) and (pointer: fine) {
    .awp-ctrl:hover {
        background: rgba(255, 255, 255, .12);
        color: #ff8fa3;
    }
}

.awp-ctrl:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, .16);
    color: #ff8fa3;
    transition: transform 0.08s ease;
}

.awp-ctrl svg {
    width: 18px;
    height: 18px;
}

/* play/pause иконки */
.awp-player .ic-pause {
    display: none;
}

.awp-player.is-playing .ic-play {
    display: none;
}

.awp-player.is-playing .ic-pause {
    display: block;
}

/* звук on/off */
.awp-player .ic-off {
    display: none;
}

.awp-player.muted .ic-on {
    display: none;
}

.awp-player.muted .ic-off {
    display: block;
}

/* fullscreen in/out */
.awp-player .ic-out {
    display: none;
}

.awp-player.is-fs .ic-in {
    display: none;
}

.awp-player.is-fs .ic-out {
    display: block;
}

/* громкость */
.awp-vol {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.awp-vol-track {
    width: 0;
    height: 4px;
    background: rgba(255, 255, 255, .2);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    overflow: visible;
    transition: width .25s ease;
}

@media (hover: hover) and (pointer: fine) {

    .awp-vol:hover .awp-vol-track,
    .awp-vol.is-dragging .awp-vol-track {
        width: 80px;
    }
}

.awp-vol-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #ff4d6d;
    border-radius: 2px;
    pointer-events: none;
    width: 100%;
}

.awp-vol-thumb {
    position: absolute;
    top: 50%;
    left: 100%;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border: 2.5px solid #ff4d6d;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 1px 5px rgba(0, 0, 0, .6);
    cursor: grab;
    pointer-events: auto;
    opacity: 0;
    transition: opacity .2s ease, transform .12s ease, background-color .15s ease;
    z-index: 4;
}

@media (hover: hover) and (pointer: fine) {

    .awp-vol:hover .awp-vol-thumb,
    .awp-vol.is-dragging .awp-vol-thumb {
        opacity: 1;
    }
}

.awp-vol-thumb:hover,
.awp-vol-thumb:active,
.awp-vol.is-dragging .awp-vol-thumb {
    transform: translate(-50%, -50%) scale(1.25);
    background: #ff8fa3;
    border-color: #fff;
    cursor: grabbing;
}

/* Всплывающий индикатор громкости на ПК при ArrowUp / ArrowDown */
.awp-vol-hud {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(18, 20, 26, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55), 0 0 20px rgba(255, 77, 109, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    font-family: 'MyCustomFont', sans-serif;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
}

.awp-vol-hud svg {
    width: 18px;
    height: 18px;
    color: #ff4d6d;
    flex-shrink: 0;
}

.awp-vol-hud.hud-up {
    top: 20%;
    animation: awpVolUpAnim 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.awp-vol-hud.hud-down {
    bottom: 20%;
    animation: awpVolDownAnim 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes awpVolUpAnim {
    0% {
        opacity: 0;
        transform: translate(-50%, 14px) scale(0.92);
    }

    18% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1.04);
    }

    35% {
        opacity: 1;
        transform: translate(-50%, -3px) scale(1);
    }

    70% {
        opacity: 1;
        transform: translate(-50%, -6px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -18px) scale(0.94);
    }
}

@keyframes awpVolDownAnim {
    0% {
        opacity: 0;
        transform: translate(-50%, -14px) scale(0.92);
    }

    18% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1.04);
    }

    35% {
        opacity: 1;
        transform: translate(-50%, 2px) scale(1);
    }

    70% {
        opacity: 1;
        transform: translate(-50%, 5px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 18px) scale(0.94);
    }
}

/* время */
.awp-time {
    font-size: 12.5px;
    color: #e8e8ec;
    font-variant-numeric: tabular-nums;
    padding: 0 4px;
    white-space: nowrap;
}

.awp-spacer {
    flex: 1;
}

/* меню качества/скорости */
.awp-menu-wrap {
    position: relative;
}

.awp-pill {
    width: auto !important;
    padding: 0 10px;
    font-family: 'MyCustomFont';
    font-size: 12.5px;
    font-weight: 700;
    color: #e8e8ec;
}

.awp-pill.active {
    color: #ff8fa3;
    background: rgba(255, 77, 109, .18);
    box-shadow: 0 0 12px rgba(255, 77, 109, .3);
}

.awp-menu {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: rgba(13, 14, 17, .95);
    border: 1px solid #2c2e36;
    border-radius: 10px;
    padding: 6px;
    min-width: 110px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
    display: none;
    flex-direction: column;
    gap: 2px;
    backdrop-filter: blur(12px);
    animation: awMenuIn .15s ease both;
}

@keyframes awMenuIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.awp-menu.open {
    display: flex;
}

.awp-menu button {
    background: none;
    border: none;
    color: #c9ccd4;
    font-family: 'MyCustomFont';
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: all .15s;
}

@media (hover: hover) and (pointer: fine) {
    .awp-menu button:hover {
        background: rgba(255, 77, 109, .15);
        color: #fff;
    }
}

.awp-menu button:active {
    background: rgba(255, 77, 109, .22);
    transform: scale(0.97);
}

.awp-menu button.active {
    color: #ff4d6d;
}

/* Компактное меню настроек плеера (шестерёнка) */
.awp-settings-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.awp-settings-wrap:has(.awp-settings-menu.open),
.awp-player.menu-open .awp-settings-wrap {
    z-index: 100 !important;
}

.awp-settings-menu {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    background: rgba(18, 19, 24, .96);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 12px;
    padding: 6px;
    min-width: 220px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .85);
    display: none;
    flex-direction: column;
    backdrop-filter: blur(14px);
    animation: awMenuIn .15s ease both;
    z-index: 150;
}

.awp-settings-menu.open {
    display: flex;
}

.awp-set-panel {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}

.awp-set-panel[hidden] {
    display: none !important;
}

.awp-set-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: none;
    border: none;
    color: #e8e8ec;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: background .15s, color .15s;
    width: 100%;
}

@media (hover: hover) and (pointer: fine) {
    .awp-set-row:hover {
        background: rgba(255, 77, 109, .15);
        color: #fff;
    }
}

.awp-set-row:active {
    background: rgba(255, 77, 109, .22);
    transform: scale(0.98);
}

.awp-set-title {
    flex: 1;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.awp-set-val {
    font-size: 12px;
    color: #a0a4b0;
    font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
    .awp-set-row:hover .awp-set-val {
        color: #ff8fa3;
    }
}

.awp-set-chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #727682;
    transition: transform .15s;
}

@media (hover: hover) and (pointer: fine) {
    .awp-set-row:hover .awp-set-chevron {
        color: #fff;
    }
}

.awp-set-header {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: #ff8fa3;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 10px 10px;
    margin-bottom: 4px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: background .15s;
    border-radius: 6px 6px 0 0;
}

@media (hover: hover) and (pointer: fine) {
    .awp-set-header:hover {
        background: rgba(255, 77, 109, .1);
    }
}

.awp-set-header:active {
    background: rgba(255, 77, 109, .18);
    transform: scale(0.98);
}

.awp-set-back-icon {
    width: 16px;
    height: 16px;
}

.awp-set-options {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 240px;
    overflow-y: auto;
}

.awp-set-options button {
    background: none;
    border: none;
    color: #c9ccd4;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: all .15s;
}

@media (hover: hover) and (pointer: fine) {
    .awp-set-options button:hover {
        background: rgba(255, 77, 109, .15);
        color: #fff;
    }
}

.awp-set-options button:active {
    background: rgba(255, 77, 109, .22);
    transform: scale(0.97);
}

.awp-set-options button.active {
    color: #ff4d6d;
    background: rgba(255, 77, 109, .12);
    font-weight: 700;
}

/* ---------- Панель серий под плеером ---------- */
.aw-controls {
    background: #1d1e24;
    border: 1px solid #2c2e36;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Равномерное гармоничное расстояние между секциями таба серий (Photo 3) */
#aw-tab-episodes {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.aw-ep-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aw-ep-block-now {
    padding-bottom: 2px;
}

.aw-voice-select-wrap {
    position: relative;
    display: inline-block;
    max-width: 320px;
    width: 100%;
}

.aw-voice-select,
.aw-row select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: #181922 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='%23c9ccd4'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1.5px solid rgba(255, 255, 255, 0.11);
    color: #ffffff;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 38px 10px 14px;
    border-radius: 12px;
    outline: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.aw-voice-select:hover,
.aw-row select:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background-color: #1e1f2a;
}

.aw-voice-select:focus,
.aw-row select:focus {
    border-color: rgba(255, 77, 109, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.15), 0 4px 16px rgba(0, 0, 0, 0.35);
}

.aw-seasons-row,
.aw-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.aw-row label {
    font-size: 13px;
    color: #8b8e98;
    display: flex;
    align-items: center;
    gap: 10px;
}

.aw-eps-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #6f727c;
}

.aw-chip {
    background: #262831;
    border: 1px solid #33363f;
    color: #c9ccd4;
    font-family: 'MyCustomFont';
    font-size: 12.5px;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .2s;
}

@media (hover: hover) and (pointer: fine) {
    .aw-chip:hover {
        border-color: #3a3d46;
        color: #fff;
    }
}

.aw-chip:active {
    transform: scale(0.95);
}

.aw-chip.active {
    background: linear-gradient(135deg, #ff4d6d, #d63a6a);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 77, 109, .35);
}

.aw-eps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 8px;
    max-height: 380px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: #32353f transparent;
    -webkit-overflow-scrolling: touch;
}

.aw-eps::-webkit-scrollbar {
    width: 6px;
}

.aw-eps::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.aw-eps::-webkit-scrollbar-thumb {
    background: #32353f;
    border-radius: 4px;
    transition: background .2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .aw-eps::-webkit-scrollbar-thumb:hover {
        background: #ff4d6d;
    }
}

.aw-ep {
    background: #20212a;
    border: 1px solid #2c2e36;
    color: #c9ccd4;
    font-family: 'MyCustomFont';
    font-size: 13px;
    padding: 10px 0;
    border-radius: 10px;
    cursor: pointer;
    transition: all .15s;
}

@media (hover: hover) and (pointer: fine) {
    .aw-ep:hover {
        border-color: #3a3d46;
        color: #fff;
        transform: translateY(-1px);
    }
}

.aw-ep:active {
    transform: scale(0.95);
    border-color: rgba(255, 77, 109, .6);
    background: rgba(255, 77, 109, .18);
}

.aw-ep.active {
    background: rgba(255, 77, 109, .14);
    border-color: rgba(255, 77, 109, .6);
    color: #ff8fa3;
    box-shadow: 0 0 12px rgba(255, 77, 109, .2);
}

/* Кино-режим: фон сайта полностью чёрный */
body.aw-cinema {
    background: #000 !important;
}

body.aw-cinema::before,
body.aw-cinema::after {
    display: none !important;
}

body.aw-cinema .page-fade {
    opacity: 0 !important;
    pointer-events: none;
}

body.aw-cinema .aw-controls,
body.aw-cinema .aw-top {
    opacity: .3;
    transition: opacity .3s;
}

body.aw-cinema .aw-controls:hover,
body.aw-cinema .aw-top:hover {
    opacity: 1;
}

body.aw-cinema footer,
body.aw-cinema .about {
    opacity: .2;
}

/* Театр-режим: кнопка просто увеличивает плеер до прежнего широкого формата (1600px) без скрытия интерфейса */
body.aw-theater-mode .aw-top {
    margin-bottom: 4px;
}

@media (max-width: 800px) {
    .aw-page {
        padding: 16px 14px 60px;
    }

    .awp-ambient {
        inset: -30px -20px;
    }

    .awp-bar {
        gap: 2px;
        padding: 0 8px;
    }

    .awp-ctrl {
        width: 34px;
        height: 34px;
    }

    .awp-time {
        font-size: 11.5px;
    }

    .awp-big-play {
        width: 70px;
        height: 70px;
    }

    .awp-big-play svg {
        width: 30px;
        height: 30px;
    }
}

/* ---------- Iframe-режим (резервный плеер Kodik) ---------- */
.awp-player.iframe-mode .awp-controls,
.awp-player.iframe-mode .awp-big-play,
.awp-player.iframe-mode .awp-loading {
    display: none;
}

.awp-screen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.awp-screen iframe.awp-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.awp-iframe-note {
    position: absolute;
    top: 10px;
    left: 12px;
    z-index: 4;
    font-size: 11px;
    color: #c9ccd4;
    background: rgba(13, 14, 17, .7);
    border: 1px solid #2c2e36;
    padding: 4px 10px;
    border-radius: 8px;
    backdrop-filter: blur(6px);
}

.awp-open-tab {
    display: none !important;
}

/* Canvas апскейлера поверх видео, под контролами */
.awp-upcanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    display: none;
}

/* ---------- Центральная плашка автооткрытия в новой вкладке ---------- */
.awp-open-overlay {
    display: none !important;
}

@keyframes awFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.awp-open-box {
    max-width: 420px;
    width: 90%;
    background: linear-gradient(145deg, #1d1e24, #14151a);
    border: 1px solid rgba(255, 77, 109, .4);
    border-radius: 18px;
    padding: 28px 32px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 30px rgba(255, 77, 109, .2);
}

.awp-open-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.awp-open-title {
    font-family: 'MyCustomFont';
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.awp-open-sub {
    font-size: 13px;
    color: #a0a3ad;
    line-height: 1.55;
    margin-bottom: 20px;
}

.awp-open-sub b {
    color: #ff8fa3;
    font-weight: 700;
}

.awp-open-now {
    display: block;
    width: 100%;
    font-family: 'MyCustomFont';
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ff4d6d, #d63a6a);
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 6px 18px rgba(255, 77, 109, .35);
}

@media (hover: hover) and (pointer: fine) {
    .awp-open-now:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 22px rgba(255, 77, 109, .5);
    }
}

.awp-open-now:active {
    transform: scale(0.96);
}

.awp-open-cancel {
    font-family: 'MyCustomFont';
    font-size: 12px;
    font-weight: 600;
    color: #8b8e98;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
}

@media (hover: hover) and (pointer: fine) {
    .awp-open-cancel:hover {
        color: #c9ccd4;
    }
}

.awp-open-cancel:active {
    opacity: 0.7;
}

/* ---------- Чипы переключения источников ---------- */
.awp-src-chips {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.awp-src-chip {
    font-family: 'MyCustomFont';
    font-size: 11px;
    font-weight: 700;
    color: #c9ccd4;
    cursor: pointer;
    background: rgba(13, 14, 17, .7);
    border: 1px solid #2c2e36;
    padding: 5px 11px;
    border-radius: 8px;
    backdrop-filter: blur(6px);
    transition: all .15s;
}

@media (hover: hover) and (pointer: fine) {
    .awp-src-chip:hover {
        color: #fff;
        border-color: #3a3d46;
    }
}

.awp-src-chip:active {
    transform: scale(0.94);
}

.awp-src-chip.active {
    color: #ff8fa3;
    border-color: rgba(255, 77, 109, .6);
    background: rgba(255, 77, 109, .08);
}

/* ---------- Превью времени при наведении ---------- */
.awp-progress-wrap {
    position: relative;
    padding: 8px 0;
}

.awp-thumb-tooltip {
    position: absolute;
    bottom: 100%;
    left: 0;
    padding: 4px 8px;
    background: rgba(20, 20, 20, 0.95);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity 0.15s;
    white-space: nowrap;
    z-index: 10;
    margin-bottom: 6px;
}

.awp-thumb-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(20, 20, 20, 0.95);
}

@media (hover: hover) and (pointer: fine) {
    .awp-progress-wrap:hover .awp-thumb-tooltip {
        opacity: 1;
    }
}

/* ---------- Скелетон персонажей (используется карточкой) ---------- */
.ad-chars-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 14px;
}

.ad-char-sk {
    height: 190px;
    border-radius: 12px;
    background: linear-gradient(90deg, #1c1f26 25%, #262a33 50%, #1c1f26 75%);
    background-size: 200% 100%;
    animation: ad-sk 1.2s infinite;
}

@keyframes ad-sk {
    to {
        background-position: -200% 0;
    }
}

.ad-chars-sentinel {
    grid-column: 1 / -1;
    text-align: center;
    color: #8b8e98;
    font-size: 12.5px;
    padding: 12px 0 4px;
}

/* ---------- Топлайн: назад к информации + название ---------- */
.awp-topline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    pointer-events: auto;
}

.awp-backlink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(18, 18, 24, .55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #e8e8ec;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
    flex-shrink: 0;
}

@media (hover: hover) and (pointer: fine) {
    .awp-backlink:hover {
        background: rgba(255, 59, 91, .18);
        border-color: rgba(255, 59, 91, .5);
        color: #fff;
    }
}

.awp-backlink:active {
    transform: scale(0.95);
}

.awp-backlink svg {
    width: 16px;
    height: 16px;
}

.awp-topline-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    opacity: .92;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    max-width: none;
}

/* ---------- Оверлей «Продолжить?» ---------- */
.awp-resume {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 8, 12, .78);
    backdrop-filter: blur(10px);
}

.awp-resume.hidden {
    display: none;
}

.awp-resume-card {
    text-align: center;
    max-width: 420px;
    width: calc(100% - 40px);
    background: rgba(22, 22, 30, .94);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px;
    padding: 30px 34px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.awp-resume-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.awp-resume-sub {
    font-size: 14px;
    color: #ff8fa3;
    font-weight: 700;
    margin-bottom: 20px;
}

.awp-resume-btn {
    display: block;
    width: 100%;
    margin: 8px auto 0;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: filter .15s, border-color .15s, color .15s;
}

.awp-resume-btn.primary {
    background: linear-gradient(135deg, #ff3b5b, #ff7a8f);
    color: #fff;
}

@media (hover: hover) and (pointer: fine) {
    .awp-resume-btn.primary:hover {
        filter: brightness(1.12);
    }

    .awp-resume-btn.ghost:hover {
        border-color: rgba(255, 255, 255, .35);
        color: #fff;
    }
}

.awp-resume-btn:active {
    transform: scale(0.97);
}

/* ---------- Тост авто-скипа ---------- */
.awp-skip-toast {
    position: absolute;
    top: 64px;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    z-index: 8;
    pointer-events: none;
    background: rgba(13, 14, 17, .9);
    border: 1px solid rgba(255, 77, 109, .5);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .5), 0 0 18px rgba(255, 77, 109, .25);
    opacity: 0;
    transition: opacity .25s, transform .25s;
}

.awp-skip-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================
   МОБИЛЬНЫЙ АДАПТИВ ПЛЕЕРА АНИМЕ (screens <= 768px)
   ========================================== */
@media (max-width: 768px) {
    .aw-page {
        padding: 14px 12px 24px !important;
    }

    .aw-topline-title {
        max-width: 60vw !important;
        font-size: 12.5px !important;
    }

    .aw-page {
        max-width: 100% !important;
    }

    .awp-shell {
        margin: 10px 0 14px !important;
        position: relative;
        overflow: visible;
    }

    /* На мобильных Ambilight светит сверху и снизу */
    .awp-ambient {
        display: block !important;
        position: absolute;
        left: 6px;
        right: 6px;
        width: calc(100% - 12px);
        top: -26px;
        height: calc(100% + 52px);
        filter: blur(34px) brightness(1.3);
        opacity: 0.75;
        z-index: 0;
        pointer-events: none;
        transform: translateZ(0);
        transition: opacity .4s ease;
    }

    .awp-shell.amb-off .awp-ambient {
        opacity: 0 !important;
        display: none !important;
    }

    .awp-player {
        border-radius: 12px !important;
    }

    .awp-vol-track {
        display: none !important;
    }

    .awp-time {
        font-size: 11px !important;
    }

    .awp-bar {
        padding: 0 8px !important;
        gap: 2px !important;
    }

    .awp-ctrl {
        width: 32px !important;
        height: 32px !important;
    }

    .awp-skip {
        right: 12px !important;
        bottom: 60px !important;
        padding: 10px 18px !important;
        font-size: 13.5px !important;
        min-height: 44px !important;
        border-radius: 999px !important;
    }

    .awp-episodes-wrap {
        padding: 12px !important;
    }

    .aw-ep-btn {
        min-width: 40px !important;
        height: 36px !important;
        font-size: 12px !important;
    }

    /* На мобильных прячем кнопки действий в шапке (Ambilight, Кино, Театр) */
    .aw-top-actions {
        display: none !important;
    }

    /* На мобильных табы активны */
    .aw-nav-tabs {
        display: flex !important;
    }

    /* На мобильных прячем кнопки эффектов и подсветки из нижней полосы плеера — они вынесены в отдельную вкладку */
    .awp-bar #aw-up,
    .awp-bar #aw-sp,
    .awp-bar #aw-sk,
    .awp-bar #awp-ambient-btn,
    #awp-ambient-btn {
        display: none !important;
    }

    /* На мобильных в полноэкранном режиме свечение доступно по бокам вытянутого экрана */
    .awp-shell.is-fs:not(.amb-off) .awp-ambient,
    .awp-shell:fullscreen:not(.amb-off) .awp-ambient {
        display: block !important;
        position: absolute;
        inset: -30px !important;
        width: calc(100% + 60px) !important;
        height: calc(100% + 60px) !important;
        filter: blur(40px) brightness(1.25) !important;
        opacity: 0.8 !important;
        z-index: 0 !important;
        pointer-events: none !important;
    }

    .awp-player.is-fs,
    .awp-player.is-fs .awp-screen {
        background: transparent !important;
    }

    .awp-player.is-fs video {
        background: #000 !important;
    }
}

/* ==========================================
   МОБИЛЬНЫЕ УСТРОЙСТВА: html.is-mobile-device И @media (pointer: coarse)
   ========================================== */

/* 1. Громкость: на смартфонах регулируется кнопками корпуса — убираем ползунок громкости */
html.is-mobile-device .awp-vol,
html.is-mobile-device .awp-vol-track,
.is-mobile-device .awp-vol,
.is-mobile-device .awp-vol-track {
    display: none !important;
}

/* 2. Верхняя строка действий ПК (Ambilight, Кино, Театр) скрыта на смартфонах */
html.is-mobile-device .aw-top-actions,
.is-mobile-device .aw-top-actions {
    display: none !important;
}

/* 3. Мобильные табы всегда активны */
html.is-mobile-device .aw-nav-tabs,
.is-mobile-device .aw-nav-tabs {
    display: flex !important;
}

/* 4. Компактная панель и кнопки на мобильном */
html.is-mobile-device .awp-controls,
.is-mobile-device .awp-controls {
    padding: 0 0 7px !important;
    background: linear-gradient(0deg, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .32) 65%, transparent 100%) !important;
}

html.is-mobile-device .awp-progress-wrap,
.is-mobile-device .awp-progress-wrap {
    padding: 6px 14px 7px !important;
    margin: 0 !important;
    cursor: pointer;
    touch-action: none;
}

html.is-mobile-device .awp-progress,
.is-mobile-device .awp-progress {
    height: 5px !important;
    margin: 0 !important;
    border-radius: 3px !important;
}

html.is-mobile-device .awp-thumb,
.is-mobile-device .awp-thumb {
    width: 14px !important;
    height: 14px !important;
    opacity: 1 !important;
}

html.is-mobile-device .awp-bar,
.is-mobile-device .awp-bar {
    padding: 0 12px 0 !important;
    gap: 6px !important;
    align-items: center !important;
}

/* На смартфонах кнопка Play/Pause доступна в нижней панели */
html.is-mobile-device .awp-bar #awp-play,
.is-mobile-device .awp-bar #awp-play {
    display: inline-flex !important;
}

html.is-mobile-device .awp-ctrl,
.is-mobile-device .awp-ctrl {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    -webkit-tap-highlight-color: transparent;
}

html.is-mobile-device .awp-ctrl svg,
.is-mobile-device .awp-ctrl svg {
    width: 20px !important;
    height: 20px !important;
}

html.is-mobile-device .awp-time,
.is-mobile-device .awp-time {
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

/* В обычном (неполноэкранном) режиме на мобильном скрываем кнопки функций из панели плеера
   (они вынесены отдельно на страницу во вкладку «Эффекты и звук») */
html.is-mobile-device:not(.is-fullscreen-active) .awp-player:not(.is-fs) #aw-up,
html.is-mobile-device:not(.is-fullscreen-active) .awp-player:not(.is-fs) #aw-sp,
html.is-mobile-device:not(.is-fullscreen-active) .awp-player:not(.is-fs) #aw-sk,
html.is-mobile-device:not(.is-fullscreen-active) .awp-shell:not(.is-fs) #aw-up,
html.is-mobile-device:not(.is-fullscreen-active) .awp-shell:not(.is-fs) #aw-sp,
html.is-mobile-device:not(.is-fullscreen-active) .awp-shell:not(.is-fs) #aw-sk,
html.is-mobile-device:not(.is-fullscreen-active) #aw-up,
html.is-mobile-device:not(.is-fullscreen-active) #aw-sp,
html.is-mobile-device:not(.is-fullscreen-active) #aw-sk,
html.is-mobile-device #awp-ambient-btn,
html.is-mobile-device .awp-bar #awp-ambient-btn {
    display: none !important;
}

/* Кнопки Anime4K, 3D звук, авто-скип скрыты из панели плеера на смартфонах */
html.is-mobile-device .awp-bar #aw-up,
html.is-mobile-device .awp-bar #aw-sp,
html.is-mobile-device .awp-bar #aw-sk,
html.is-mobile-device.is-fullscreen-active .awp-bar #aw-up,
html.is-mobile-device.is-fullscreen-active .awp-bar #aw-sp,
html.is-mobile-device.is-fullscreen-active .awp-bar #aw-sk,
html.is-mobile-device .awp-player.is-fs .awp-bar #aw-up,
html.is-mobile-device .awp-player.is-fs .awp-bar #aw-sp,
html.is-mobile-device .awp-player.is-fs .awp-bar #aw-sk,
html.is-mobile-device .awp-shell.is-fs .awp-bar #aw-up,
html.is-mobile-device .awp-shell.is-fs .awp-bar #aw-sp,
html.is-mobile-device .awp-shell.is-fs .awp-bar #aw-sk,
html.is-mobile-device .awp-shell:fullscreen .awp-bar #aw-up,
html.is-mobile-device .awp-shell:fullscreen .awp-bar #aw-sp,
html.is-mobile-device .awp-shell:fullscreen .awp-bar #aw-sk,
html.is-mobile-device:fullscreen .awp-bar #aw-up,
html.is-mobile-device:fullscreen .awp-bar #aw-sp,
html.is-mobile-device:fullscreen .awp-bar #aw-sk {
    display: none !important;
}

html.is-mobile-device .awp-bar .awp-pill {
    padding: 0 8px;
    font-size: 11px;
    height: 30px;
}

/* Центральная кнопка Play / Pause на мобильном */
html.is-mobile-device .awp-player:not(.ui-hidden) .awp-big-play {
    opacity: 1 !important;
    pointer-events: auto !important;
    display: flex !important;
}

html.is-mobile-device .awp-player.ui-hidden .awp-big-play,
html.is-mobile-device .awp-player.ui-revealing .awp-big-play {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(0.85);
}

html.is-mobile-device .awp-big-play {
    width: 58px !important;
    height: 58px !important;
    background: rgba(0, 0, 0, 0.70) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html.is-mobile-device .awp-big-play svg {
    width: 32px !important;
    height: 32px !important;
}

html.is-mobile-device .awp-big-play svg.ic-play {
    margin-left: 2px !important;
}

html.is-mobile-device .awp-big-play svg.ic-pause {
    width: 26px !important;
    height: 26px !important;
    margin-left: 0 !important;
}

.awp-player.is-pulling-down,
.awp-ambient.is-pulling-down {
    transition: none !important;
    transform-origin: center top !important;
    will-change: transform, opacity, border-radius;
}

/* Анимация двойного тапа (перемотка ±10 сек) */
.awp-seek-ripple {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none !important;
    z-index: 6;
    opacity: 0;
    transition: opacity .18s ease;
}

.awp-seek-left {
    left: 0;
    border-radius: 0 120px 120px 0;
    background: radial-gradient(circle at 12% 50%, rgba(255, 77, 109, .32), transparent 75%);
}

.awp-seek-right {
    right: 0;
    border-radius: 120px 0 0 120px;
    background: radial-gradient(circle at 88% 50%, rgba(255, 77, 109, .32), transparent 75%);
}

.awp-seek-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: rgba(18, 19, 24, .88);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .55);
    padding: 10px 18px;
    border-radius: 24px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    transform: scale(0.8);
    transition: transform .2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.awp-seek-badge svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.awp-seek-ripple.active {
    opacity: 1;
}

.awp-seek-ripple.active .awp-seek-badge {
    transform: scale(1.05);
}

html.is-mobile-device .aw-top-actions {
    display: none !important;
}

html.is-mobile-device .aw-nav-tabs {
    display: flex !important;
}

/* На мобильных в полноэкранном режиме:
   - Ambilight красиво светится по бокам экрана
   - Плеер и экран прозрачные за пределами 16:9 видео, пропуская свечение */
html.is-mobile-device .awp-shell.is-fs:not(.amb-off) .awp-ambient,
html.is-mobile-device .awp-shell:fullscreen:not(.amb-off) .awp-ambient {
    display: block !important;
    position: absolute !important;
    inset: -100px !important;
    width: calc(100% + 200px) !important;
    height: calc(100% + 200px) !important;
    filter: blur(70px) brightness(1.15) saturate(1.2) !important;
    opacity: 0.8;
    z-index: 0 !important;
    pointer-events: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

html.is-mobile-device .awp-player.is-fs,
html.is-mobile-device .awp-player.is-fs .awp-screen,
html.is-mobile-device .awp-shell.is-fs .awp-screen,
html.is-mobile-device .awp-shell:fullscreen .awp-screen {
    background: transparent !important;
}

html.is-mobile-device .awp-player.is-fs video,
html.is-mobile-device .awp-shell.is-fs video,
html.is-mobile-device .awp-shell:fullscreen video {
    background: #000 !important;
    width: auto !important;
    height: 100% !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    aspect-ratio: var(--vid-ar, 16 / 9) !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}

@media (pointer: coarse) {

    .awp-vol,
    .awp-vol-track {
        display: none !important;
    }

    /* На тачах в обычном режиме скрываем Anime4K, 3D, авто-скип */
    html:not(.is-fullscreen-active) .awp-player:not(.is-fs) #aw-up,
    html:not(.is-fullscreen-active) .awp-player:not(.is-fs) #aw-sp,
    html:not(.is-fullscreen-active) .awp-player:not(.is-fs) #aw-sk {
        display: none !important;
    }

    #awp-ambient-btn,
    .awp-bar #awp-ambient-btn {
        display: none !important;
    }

    /* В полноэкранном режиме на мобильных кнопки дополнительных фич скрыты */
    .awp-player.is-fs .awp-bar #aw-up,
    .awp-player.is-fs .awp-bar #aw-sp,
    .awp-player.is-fs .awp-bar #aw-sk,
    .awp-shell.is-fs .awp-bar #aw-up,
    .awp-shell.is-fs .awp-bar #aw-sp,
    .awp-shell.is-fs .awp-bar #aw-sk,
    .awp-shell:fullscreen .awp-bar #aw-up,
    .awp-shell:fullscreen .awp-bar #aw-sp,
    .awp-shell:fullscreen .awp-bar #aw-sk,
    html.is-fullscreen-active .awp-bar #aw-up,
    html.is-fullscreen-active .awp-bar #aw-sp,
    html.is-fullscreen-active .awp-bar #aw-sk {
        display: none !important;
    }

    .awp-shell.is-fs:not(.amb-off) .awp-ambient,
    .awp-shell:fullscreen:not(.amb-off) .awp-ambient {
        display: block !important;
        position: absolute !important;
        inset: -100px !important;
        width: calc(100% + 200px) !important;
        height: calc(100% + 200px) !important;
        filter: blur(70px) brightness(1.15) saturate(1.2) !important;
        opacity: 0.75 !important;
        z-index: 0 !important;
        pointer-events: none !important;
        mask-image: none !important;
        -webkit-mask-image: none !important;
        transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
    }

    .awp-player.is-fs,
    .awp-player.is-fs .awp-screen,
    .awp-shell.is-fs .awp-screen,
    .awp-shell:fullscreen .awp-screen {
        background: transparent !important;
    }

    .awp-player.is-fs video,
    .awp-shell.is-fs video,
    .awp-shell:fullscreen video {
        background: #000 !important;
        width: auto !important;
        height: 100% !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        aspect-ratio: var(--vid-ar, 16 / 9) !important;
        object-fit: contain !important;
        margin: 0 auto !important;
    }
}

/* ==========================================
   ПК ВЕРСИЯ (screens >= 769px): оригинальный вид без табов
   ========================================== */
@media (min-width: 769px) {
    html:not(.is-mobile-device) .aw-nav-tabs {
        display: none !important;
    }

    html:not(.is-mobile-device) #aw-tab-episodes {
        display: block !important;
    }

    html:not(.is-mobile-device) #aw-tab-fx {
        display: none !important;
    }

    /* На ПК кнопка подсветки есть в верхней панели над плеером — скрываем дубль в панели плеера */
    html:not(.is-mobile-device) #awp-ambient-btn {
        display: none !important;
    }

    /* На ПК кнопки функций (Anime4K, 3D звук, авто-скип) показываем в нижней полосе плеера ВСЕГДА (и в обычном, и в полноэкранном режиме) */
    html:not(.is-mobile-device) .awp-bar #aw-up,
    html:not(.is-mobile-device) .awp-bar #aw-sp,
    html:not(.is-mobile-device) .awp-bar #aw-sk {
        display: inline-flex !important;
    }

    /* На ПК кнопка плей в нижней полосе плеера также всегда доступна */
    html:not(.is-mobile-device) .awp-bar #awp-play {
        display: inline-flex !important;
    }

    /* Плеер всегда занимает полную ширину — в том числе во время загрузки */
    .aw-page {
        width: 100% !important;
        box-sizing: border-box;
        display: block;
    }

    .awp-shell {
        width: 100% !important;
        margin: 18px 0 24px;
    }

    .awp-player {
        width: 100% !important;
        aspect-ratio: 16 / 9 !important;
    }

    .awp-player.is-fs {
        aspect-ratio: auto !important;
    }
}

/* ==========================================
   ВКЛАДКИ СЕРИИ / ЭФФЕКТЫ И ЗВУК
   ========================================== */
.aw-nav-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.aw-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(29, 30, 36, 0.6);
    color: #8b8e98;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .aw-tab-btn:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.06);
    }
}

.aw-tab-btn:active {
    transform: scale(0.96);
}

.aw-tab-btn.active {
    color: #fff;
    background: rgba(255, 59, 92, 0.15);
    border-color: rgba(255, 59, 92, 0.45);
    box-shadow: 0 0 12px rgba(255, 59, 92, 0.2);
}

.aw-tab-btn svg {
    color: #ff4d6d;
}

.aw-tab-pane {
    animation: awTabIn 0.25s ease both;
}

@keyframes awTabIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Карточки настроек эффектов */
.aw-fx-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aw-fx-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(23, 24, 28, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: border-color 0.2s ease, transform 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
    .aw-fx-item:hover {
        border-color: rgba(255, 77, 109, 0.35);
    }
}

.aw-fx-icon-col {
    width: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.aw-fx-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aw-fx-name {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.aw-fx-desc {
    font-size: 12px;
    color: #8c8f9c;
    line-height: 1.4;
    margin: 0;
}

.aw-fx-right-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 56px;
    align-self: stretch;
    padding: 2px 0 2px 0;
}

.aw-fx-right-col:has(.aw-fx-badge),
.aw-fx-item .aw-fx-right-col {
    justify-content: space-between;
}

.aw-fx-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: rgba(255, 59, 92, 0.2);
    color: #ff4d6d;
    border: 1px solid rgba(255, 59, 92, 0.4);
    text-align: center;
    white-space: nowrap;
}

.aw-fx-badge.audio {
    background: rgba(112, 243, 248, 0.15);
    color: #70f3f8;
    border-color: rgba(112, 243, 248, 0.4);
}

.aw-fx-badge.amb {
    background: rgba(255, 179, 71, 0.18);
    color: #ffb347;
    border-color: rgba(255, 179, 71, 0.45);
}

.aw-fx-badge.aniplus {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.28), rgba(255, 51, 75, 0.35));
    color: #ff4757;
    border-color: rgba(255, 71, 87, 0.7);
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.45);
    margin-bottom: auto;
    margin-top: 1px;
}

.awp-pill .awp-lock-ico {
    font-size: 10px;
    margin-left: 3px;
    opacity: 0.85;
}

.awp-pill .awp-star-ico {
    font-size: 10px;
    margin-left: 3px;
    color: #ff4757;
    filter: drop-shadow(0 0 5px rgba(255, 71, 87, 0.85));
}

/* Модальное окно продвижения фишек AniPlus в плеере */
.ah-aniplus-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(8, 9, 13, 0.82);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.ah-aniplus-modal-overlay.open {
    display: flex;
    opacity: 1;
}

.ah-aniplus-modal-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: linear-gradient(150deg, #1b1d25, #111319);
    border: 1px solid rgba(255, 71, 87, 0.55);
    border-radius: 20px;
    padding: 28px 24px 24px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(255, 71, 87, 0.28);
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ah-aniplus-modal-overlay.open .ah-aniplus-modal-card {
    transform: scale(1);
}

.ah-aniplus-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #a2a6b5;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.ah-aniplus-modal-close:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.ah-aniplus-modal-crown {
    display: inline-flex;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 16px rgba(255, 71, 87, 0.8));
    animation: ahAniplusPulse 3s ease-in-out infinite alternate;
}

.ah-aniplus-modal-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    background: rgba(255, 71, 87, 0.16);
    border: 1px solid rgba(255, 71, 87, 0.55);
    color: #ff4757;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.ah-aniplus-modal-title {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 8px;
}

.ah-aniplus-modal-desc {
    color: #b3b7c7;
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0 0 18px;
}

.ah-aniplus-modal-perks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 22px;
    text-align: left;
    font-size: 12.5px;
    color: #e2e4f0;
}

.ah-aniplus-modal-perks span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ah-aniplus-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ah-aniplus-modal-btn {
    display: block;
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.ah-aniplus-modal-btn.primary {
    background: linear-gradient(135deg, #ff4757, #e81948);
    color: #fff;
    border: none;
    box-shadow: 0 4px 18px rgba(255, 71, 87, 0.45);
}

.ah-aniplus-modal-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 71, 87, 0.65);
}

.ah-aniplus-modal-btn.ghost {
    background: transparent;
    color: #8c90a2;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ah-aniplus-modal-btn.ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

#awp-ambient-btn.active {
    color: #ff8fa3;
}

.aw-fx-desc {
    font-size: 12px;
    color: #8b8f9e;
    line-height: 1.45;
}


/* Свитч переключатель */
.aw-fx-switch {
    position: relative;
    width: 48px;
    height: 28px;
    border-radius: 14px;
    background: #252833;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    flex-shrink: 0;
    padding: 2px;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.aw-fx-switch .aw-fx-slider {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #8b8f9e;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease;
}

.aw-fx-switch.active {
    background: rgba(255, 59, 92, 0.3);
    border-color: #ff3b5c;
    box-shadow: 0 0 10px rgba(255, 59, 92, 0.35);
}

.aw-fx-switch.active .aw-fx-slider {
    transform: translateX(20px);
    background: #ff3b5c;
    box-shadow: 0 0 8px rgba(255, 59, 92, 0.7);
}

.aw-fx-switch:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ---------- Верхний баннер тайтла (Hero Banner) ---------- */
.aw-hero-banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #111217;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.aw-hero-backdrop {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center top;
    filter: blur(28px) saturate(1.4);
    opacity: 0.35;
    transform: scale(1.08);
    pointer-events: none;
}

.aw-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 15, 20, 0.6) 0%, rgba(14, 15, 20, 0.92) 85%, #0e0f14 100%);
    pointer-events: none;
}

.aw-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
}

.aw-hero-poster-link {
    flex-shrink: 0;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aw-hero-poster-link:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(255, 77, 109, 0.25);
}

.aw-hero-poster {
    width: 68px;
    height: 96px;
    object-fit: cover;
    display: block;
}

.aw-hero-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aw-hero-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.aw-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.aw-hero-badge.score {
    background: linear-gradient(135deg, rgba(255, 179, 71, 0.25), rgba(255, 140, 0, 0.3));
    color: #ffb84d;
    border: 1px solid rgba(255, 179, 71, 0.5);
}

.aw-hero-badge.year,
.aw-hero-badge.status,
.aw-hero-badge.studio {
    background: rgba(255, 255, 255, 0.08);
    color: #c8cbd2;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.aw-hero-title {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aw-hero-genres {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.aw-hero-genre-tag {
    font-size: 11px;
    color: #9da0aa;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 7px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.aw-hero-actions {
    flex-shrink: 0;
}

.aw-hero-about-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 77, 109, 0.15);
    border: 1px solid rgba(255, 77, 109, 0.38);
    color: #ff6b85;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 15px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.aw-hero-about-btn:hover {
    background: #ff4d6d;
    color: #fff;
    box-shadow: 0 4px 18px rgba(255, 77, 109, 0.4);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .aw-hero-banner {
        margin-bottom: 12px;
        border-radius: 16px;
    }
    .aw-hero-content {
        padding: 14px 16px;
        gap: 14px;
    }
    .aw-hero-poster {
        width: 54px;
        height: 76px;
    }
    .aw-hero-title {
        font-size: 15.5px;
    }
    .aw-hero-actions {
        display: none;
    }
}

.aw-cinema .aw-hero-banner,
.aw-theater .aw-hero-banner {
    display: none !important;
}

/* ---------- Превью и подсказка отмены перемотки при скраббинге ---------- */
.awp-scrub-preview {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 120;
}

.awp-scrub-preview.visible {
    opacity: 1;
    visibility: visible;
}

.awp-scrub-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(18, 19, 25, 0.94);
    backdrop-filter: blur(14px);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 8px 14px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 16px rgba(255, 77, 109, 0.2);
    min-width: 140px;
    text-align: center;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.awp-scrub-preview.is-canceling .awp-scrub-card {
    border-color: rgba(255, 77, 109, 0.85);
    background: rgba(35, 12, 18, 0.96);
    box-shadow: 0 12px 36px rgba(255, 77, 109, 0.35);
}

.awp-scrub-time {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

.awp-scrub-cancel-hint {
    font-size: 11px;
    color: #a0a4b0;
    margin-top: 3px;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.awp-scrub-preview.is-canceling .awp-scrub-cancel-hint {
    color: #ff4d6d;
    font-weight: 700;
}