html {
    height: 100%;
}

body {
    font-family: Arial, sans-serif;

}


/* Прижатие футера к низу */
html {
    height: 100%;
}

.inav{
    display: block;
    margin-top: 20px;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
} 

.main-content {
    flex: 1;
    text-align: center;
    padding: 0px 0;
}

.ul-line{
    padding: 0;
    list-style: none;
}

.li-line{
    padding-bottom: 2px;
    margin-top: 10px;
    font-size: 14px;
}

.span-actor-meta-item{
    display: flex !important;
}

/* Footer */
.site-footer {
    padding: 30px 0 20px;
    margin-top: 40px;
}

.footer-content {
    text-align: left;
    padding-left: 30px;
    padding-right: 20px;
}

.footer-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    padding-left: 0;
    padding-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.footer-nav-section {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
}

.footer-nav-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav-list li {
    margin: 0;
}

.footer-nav-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-nav-list a:hover {
    color: #ff6b6b;
    transform: translateX(5px);
}

.footer-contact-link {
    cursor: pointer;
}

.footer-copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 992px) {
    .footer-content {
        padding-left: 30px;
        padding-right: 10px;
    }
    .footer-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .footer-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        margin-left: 16px;
    }
}

h1{
    margin-bottom: 20px;
    line-height: 1.2;
    font-size: 28px;
}


h3{
    font-size: 16px;
    font-weight: 600;
}

p{
    padding-bottom: 8px;
    font-size: 14px;
}


@media (max-width: 580px) {
    h1 {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    text-align: center;
    line-height: 1.2;
    font-size: 28px;
}
   }

.title-general-block{
    padding: 0px;
    text-align: left;
    margin-left: 20px;
}
.title-general-block h1{
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.title-general-block span{
    padding: 0px;
    font-size: 22px;
}

.title-block1{
    padding-left: 20px;
}

.description{
    margin-left: 20px;
    margin-bottom: 15px;
    text-align: left;
}

#theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    /* margin-right: 15px; */
}

#theme-toggle:hover {
    opacity: 0.8;
}

.seasons-button {
    text-decoration: none;
}

/* Контейнер для всего сайта */
.container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%; 
}

/* Header */
.site-header {
    padding: 15px 0;
}

.header-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}


/* Логотип */
.logo-link {
    text-decoration: none;
}

.logo-text {
    font-size: 34px;
    font-weight: bold;
    margin: 0;
}


/* Навигация */
.nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 10px;
}

.main-nav {
    display: flex;
}

/* Размеры для кнопки темы (чтобы была постоянной и всегда видна) */
.theme-toggle, #theme-toggle {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
}

@media (max-width: 919px) {
    .theme-toggle, #theme-toggle { width: 35px; height: 35px; }
}
@media (max-width: 600px) {
    .theme-toggle, #theme-toggle { width: 32px; height: 32px; }
}

/* Переключение видимости меню на 920px */
@media (min-width: 920px) {
    .main-nav { display: flex; }
    .circular-menu { display: none; }
    /* Скрываем пункт "АКТЕРЫ" на десктопе */
    .nav-item.mobile-only { display: none; }
}

@media (max-width: 919px) {
    .main-nav { display: none; }
    .circular-menu { display: flex; }
    /* Показываем пункт "АКТЕРЫ" на мобильных */
    .nav-item.mobile-only { display: list-item; }
}

/* ===== КРУГОВОЕ МЕНЮ (мобильное) ===== */
.circular-menu {
    display: none; 
    align-items: center;
    position: relative;
}

/* Единое круговое меню */
.circular-menu {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    position: static;
    transition: width 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55),
               height 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55),
               border-radius 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
              
}

/* БЫСТРОЕ ЗАКРЫТИЕ */
.circular-menu.closing {
    transition: width 0.25s ease-out,
               height 0.25s ease-out,
               border-radius 0.25s ease-out;
}

/* РАСКРЫТИЕ НА ВЕСЬ ЭКРАН */
.circular-menu.active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    z-index: 900;
        transition: width 0.25s ease-out,
               height 0.25s ease-out,
               border-radius 0.25s ease-out;

}

/* ИКОНКА ДОМИКА */
.home-icon {
    width: 18px;
    height: 18px;
    transition: all 0.2s ease;
}

.circular-menu:hover .home-icon {
    transform: scale(1.1);
}

.circular-menu.active .home-icon {
    opacity: 0;
    transform: scale(0);
}

/* ПУНКТЫ МЕНЮ */
.circular-menu-items {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease 0.3s, visibility 0.3s ease 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 70px 20px 40px 20px;
    overflow-y: auto;
    box-sizing: border-box;
}

.logo{
    padding-left: 20px;
}

.circular-menu.active .circular-menu-items {
    opacity: 1;
    visibility: visible;
}

.circular-menu.closing .circular-menu-items {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease, visibility 0.1s ease;
}

.circular-menu-item {
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    margin: 8px 0;
    padding: 16px 32px;
    border-radius: 12px;
    transition: all 0.2s ease;
    transform: translateY(20px) scale(0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    width: 100%;
    max-width: 280px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
}

.circular-menu.active .circular-menu-item {
    transform: translateY(0) scale(1);
}

.circular-menu.active .circular-menu-item:nth-child(1) { transition-delay: 0.4s; }
.circular-menu.active .circular-menu-item:nth-child(2) { transition-delay: 0.5s; }
.circular-menu.active .circular-menu-item:nth-child(3) { transition-delay: 0.6s; }

.circular-menu-item:hover,
.circular-menu-item:active {
    transform: translateY(-2px) scale(1.02);
}

/* Динамически созданные пункты меню */
.circular-menu-items .circular-menu-item {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s ease;
}

.circular-menu.active .circular-menu-items .circular-menu-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Анимация появления пунктов с задержкой */
.circular-menu.active .circular-menu-item:nth-child(1) { 
    transition-delay: 0.4s !important; 
}
.circular-menu.active .circular-menu-item:nth-child(2) { 
    transition-delay: 0.5s !important; 
}
.circular-menu.active .circular-menu-item:nth-child(3) { 
    transition-delay: 0.6s !important; 
}
.circular-menu.active .circular-menu-item:nth-child(4) { 
    transition-delay: 0.7s !important; 
}
.circular-menu.active .circular-menu-item:nth-child(5) { 
    transition-delay: 0.8s !important;
    margin-left: 10px;
    margin-right: 10px; 
}

/* КНОПКА ЗАКРЫТИЯ */
.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease 0.4s, visibility 0.25s ease 0.4s;
    backdrop-filter: blur(10px);
    border: 1px solid;
}

.circular-menu.active .close-button {
    opacity: 1;
    visibility: visible;
}

.circular-menu.closing .close-button {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease, visibility 0.1s ease;
}

.close-button:hover {
    transform: scale(1.1);
}

.close-icon {
    width: 18px;
    height: 18px;
    height: 20px;
}

/* РАЗМЕРЫ ПО ЭКРАНАМ */
@media (max-width: 919px) {
    .circular-menu { 
        width: 35px;
        height: 35px;
        display: flex;
        z-index: 2;
        }
    .home-icon { 
        width: 16px;
        height: 16px; }
}

@media (max-width: 600px) {
    .circular-menu { width: 32px; height: 32px; }
    .home-icon { width: 30px; height: 30px; }
    .circular-menu-item {
        font-size: 1em;
        margin: 6px 0;
        padding: 14px 24px;
        max-width: 90%;
        min-height: 48px;
    }
    .circular-menu-items {
        padding: 70px 16px 30px 16px;
    }
}


.nav-link {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.description-text{
    text-align: left;
    margin-left: 15px;
    margin-right: 15px;
    margin-top: 5px
}

.description2{
    margin-left: 20px;
    margin-bottom: 30px;
    text-align: left;
}


/* Адаптивность */
@media (max-width: 837px) {
    /* ранее здесь был .nav-list { gap: 0px } — удалено по запросу */
}

/* Main - стили перенесены выше к sticky footer */

/* Базовый блок контента */
.content-block {
    margin-bottom: 25px;
}

/* С сайдбаром - двухколоночная раскладка */
.content-block.with-sidebar {
    display: flex;
    gap: 30px;
}

/* С обводкой */
.content-block.with-border {
    border: 1px solid;
    border-radius: 8px;
    padding: 15px 10px;
    margin: 10px;
}

/* Основная область контента */
.content-area {
    flex: 1;
    min-width: 0;
    /* padding: 15px; */
    max-width: 100%; /* Добавьте ограничение */
    text-align: left;
    line-height: 1.6;
}

.content-area h2{
    margin-bottom: 15px;
    margin-top: 10px;
    font-size: 18px;
}

.content-area-review{
    padding: 0 !important;
}

.content-area-review h2 {
    margin-bottom: 0px !important;
    font-size: 18px;
}

/* Область сайдбара */
.sidebar-area {
    min-width: 300px;
    width: 300px;
    flex-shrink: 0; /* Не сжимается */
}

.title-h2-1{
    padding: 5px !important;
    margin-bottom: 0px !important;
    margin-top: 0px !important;
}
.title-h3-1{
    margin: auto;
    padding-left: 0 !important;
    padding-right: 10px;
}

.voting-area{
    padding: 0 !important;
}

.content-area-description{
    padding: 10px 15px 20px 15px !important;
}

.content-area-description h2{
    padding: 0px !important;
}


/* .content-area-review-navigation {
    padding: 10px 15px 20px 15px !important;
} */

/* Адаптивность */
@media (max-width: 768px) {
    .content-block.with-sidebar {
        flex-direction: column;
        gap: 20px;
    }
    
    .sidebar-area {
        min-width: 100%;
        width: 100%;
        order: 2; /* Сайдбар под контентом на мобильных */
    }

    .content-area-description{
        padding: 10px 0px 20px 0px !important;
    }
    
    .content-block.with-border {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .content-block {
        margin-bottom: 20px;
    }
    
    .content-block.with-border {
        padding: 15px;
    }
    
    .content-block.with-sidebar {
        gap: 15px;
    }
}

/* Вертикальная разделительная полоса */
.content-block.with-sidebar .content-area {
    border-right: 1px solid;
    padding-right: 12px;
    margin-left: 10px;
    margin-bottom: 10px;
}

.content-block.with-sidebar .sidebar-area {
    padding-left: 30px;
}

/* На мобильных устройствах убираем вертикальную полосу */
@media (max-width: 768px) {
    .content-block.with-sidebar .content-area {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid;
        padding-bottom: 20px;
    }
    
    .content-block.with-sidebar .sidebar-area {
        padding-left: 0;
        padding-top: 15px;
    }
}

/* Hero медиа блок */
.hero-media-block {
    display: flex;
    gap: 2px;
    align-items: flex-start;
    width: 100%; /* НЕ должно быть больше 100% */
    max-width: 100%; /* Добавьте это ограничение */
    overflow: hidden; /* Предотвращает выход за границы */
}

/* Постер блок */
.poster-block {
    flex: 0 1 25%; /* Занимает 25% ширины, может сжиматься */
    min-width: 150px; /* Минимальная ширина */
    max-width: 250px; /* Максимальная ширина */
}

.poster-container {
    position: relative;
    border-radius: 12px;
    border: 1px solid;
    overflow: hidden;
    height: 367px;
}

.poster-image {
    width: 100%; /* Добавьте это если нет */
    height: auto;
    display: block;
    height: 367px;
}

/* Видео плеер */
.trailer-video {
    width: 100%;
    height: auto; /* Изменено с height: 100% */
    object-fit: cover;
    border-radius: 10px;
    height: 367px;
    pointer-events: none; /* Видео не перехватывает клики, чтобы ссылка работала */
}



.mute-button-home {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    cursor: pointer;
    pointer-events: auto;
    z-index: 15; /* Выше чем ссылка, чтобы кнопка звука работала */
    padding: 0;
    background: none
}

.player-label-home {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
    pointer-events: none;
}

@media  (min-width: 501px) {
.watch-series-button {
    position: absolute;
    bottom: 7px;
    left: 15px;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    .tv-icon{
        padding-right: 0px;
        margin-right: 8px;
        margin-top: 0;
    }
}

.watch-series-button-link{
    display: flex;
    justify-content: center;
    text-decoration: none;
}

.watch-series-button:hover {
    transform: translateY(-3px);
}
}


@media screen and (max-width: 500px) {
    .watch-series-button2 {
        width: 98%;
        height: 40px;
        border-radius: 0px 0px 6px 6px;
        margin-bottom: 3px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .watch-series-button2 a{
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        width: 100%;
        height: 100%;
        .tv-icon{
            padding-right: 0px;
            margin-right: 2px;
            margin-top: 0;
        }
    }  
}

.mute-button-home svg {
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.8));
    transition: all 0.3s ease;
}

.mute-button-home:hover {
    background: none !important;
}

.mute-button-home:hover svg {
    transform: scale(1.2);
    filter: drop-shadow(2px 2px 6px rgba(0,0,0,1));
}

.mute-button-home.sound-on {
    background: none !important;
}


.poster-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
}

.series-info {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.4;
}

.series-info li {
    margin-bottom: 1px;
}

/* Плеер блок */
.player-block {
    flex: 1 1 60%; /* Занимает 60% ширины, может расти и сжиматься */
    min-width: 250px; /* Минимальная ширина для удобного просмотра */
}

.info-item {
    padding: 0;
}

.player-container {
    width: 100%; 
    height: auto;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Ссылка для кликабельности всего блока трейлера */
.player-container-link {
    position: absolute !important;
    top: 40px !important;
    right: 40px !important;
    bottom: 40px !important;
    left: 40px !important;
    z-index: 2 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    cursor: pointer !important;
    display: block !important;
    text-decoration: none !important;
    color: inherit !important;
}

/* На мобильных устройствах ссылка покрывает весь блок (меньше отступы) */
@media screen and (max-width: 768px) {
    .player-container-link {
        top: 0 !important;
        right: 60px !important; /* Оставляем место для кнопки звука */
        bottom: 0 !important;
        left: 0 !important;
    }
}

/* Для экранов 500px и меньше - ссылка покрывает весь блок */
@media screen and (max-width: 500px) {
    .player-container-link {
        position: absolute !important;
        top: 0 !important;
        right: 60px !important;
        bottom: 0 !important;
        left: 0 !important;
        z-index: 2 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        display: block !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

@media screen and (max-width: 500px) {
/* Стили применяются только к кнопке "Смотреть сериал", НЕ к player-container-link */
.player-container .watch-series-button,
.player-container .watch-series-button a,
.player-container .watch-series-button-link {
    display: flex;
    justify-content: center;
    text-decoration: none;
    width: 100%;
    height: 40px;
    /* background-color: #7f0909; */
    border-radius: 0px 0px 6px 6px;
    margin-bottom: 1px;
    margin-top: 2px;
    padding-top: 5px;
}

.player-container .watch-series-button svg,
.player-container .watch-series-button a svg,
.player-container .watch-series-button-link svg {
    width: 40px;
    margin-top: 3px;
}

.trailer-video {
    border-radius: 10px 10px 0px 0px;
}
}

.strong-title-class1 {
    margin-top: 10px;
    margin-bottom: 10px;
    display: block;
}

.modals-description-link{
    text-decoration: none;
}

.faq-answer-text p{
    padding-bottom: 8px;
}

.faq-answer-text a{
    text-decoration: none;
}

.play-button {
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
}

.play-icon {
    font-size: 48px;
}

.player-label {
    font-size: 14px;
    font-weight: 500;
}

/* Информационные блоки */
.info-blocks {
    flex: 0 1 15%;
    /* min-width: 100px; */
    max-width: 310px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 369px;
    flex-wrap: wrap;
}

.info-item {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 106px;
    max-height: 120px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}


.info-item:hover .info-text,
.info-item:hover .info-label,
.info-item:hover .info-icon,
.info-item:hover .gallery-count {
    font-size: 95%;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Активный эффект при клике */
.info-item:active {
    transition: all 0.1s ease;
}

/* Для мобильной версии */
@media (max-width: 970px) {
    .info-item:hover .info-text,
    .info-item:hover .info-label,
    .info-item:hover .info-icon,
    .info-item:hover .gallery-count {
        font-size: 95%;
    }
}







.info-icon {
    font-size: 14px;
    padding-top: 15px;
}

.info-text {
    font-size: 12px;
    font-weight: 500;
    margin: auto;
}

.info-label {
    font-size: 12px;
    font-weight: 500;
    margin: auto;
}

.gallery-thumb {
    width: 40px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
}

.gallery-preview-content {
    cursor: pointer;
    transition: all 0.3s ease;
    margin: auto;
}

/* Адаптивность */
@media (max-width: 970px) {
    .hero-media-block {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .poster-block {
        flex: 0 0 40%;
        order: 1;
    }
    
    .player-block {
        flex: 1;
        order: 2;
        margin-bottom: 5px;
    }
    
    .info-blocks {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
        flex-direction: row;
        justify-content: space-between;
        order: 3;
        max-height: none;
        gap: 10px;
        display: flex;
    }
    
    .info-item {
        flex: 1;
        max-width: calc(33.333% - 7px);
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 8px;
        text-align: center;
        min-height: 60px;
        display: flex;
    }

    .info-icon {
    font-size: 12px;
    padding-top: 0px;
}
}


/* @media (max-width: 1280px) {
    .hero-media-block {
        flex-wrap: wrap;
    }
    
    .info-blocks {
        flex: 1 1 100%; 
        order: 3; 
        flex-direction: row; 
        justify-content: space-between;
        margin-top: 20px;
    }
    
    .info-item {
        flex: 1;
        max-width: 150px;
    }
} */

/* Блок заголовка с рейтингом - ПОЛНЫЙ CSS */
.title-rating-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    margin-bottom: 20px;
}

@media (max-width: 416px) {
    .title-rating-block {
        padding: 0px 20px !important;
    }
}

.title-block-number {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    margin-bottom: 20px;

}

/* Заголовок слева */
.series-title {
    font-size: 20px;
    font-weight: 400;
    margin: 0;
    flex: 1;
    padding-right: 20px;
    line-height: 1.4;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.series-title4 {
    font-size: 20px;
    font-weight: 400;
    margin: 0;
    flex: 1;
    padding-right: 20px;
    line-height: 1.4;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.series-title4 h1{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    font-size: 24px;
    margin-left: 15px;
}


@media (max-width: 420px) {
.series-title4 {
    font-size: 17px;
    font-weight: 400;
    margin: 0;
    flex: 1;
    padding-right: 20px;
    line-height: 1.4;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}
}




/* Секция рейтингов справа */
.rating-section {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    flex-shrink: 0;
}


/* Каждый блок рейтинга (колонка) */
.rating-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

/* Надпись сверху (РЕЙТИНГ IMDB, ВАША ОЦЕНКА) */
.rating-label {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Контейнер для звезды и основного значения */
.rating-value {
    display: flex;
    align-items: center;
    gap: 0px;
    margin-bottom: 3px;
}

/* SVG звездочки */
.star-svg {
    display: inline-block;
    margin-right: 0;
    vertical-align: middle;
}

/* Заполненная желтая звездочка */
/* Пустая серая звездочка */

/* Интерактивные звезды голосования */
.star-rating {
    display: flex;
    gap: 4px;
    align-items: center;
}

.star-rating .star {
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.star-rating .star .star-svg {
    stroke-width: 1;
    transition: all 0.3s ease;
}

/* Состояние при наведении */
.star-rating .star:hover .star-svg,
.star-rating .star.hover .star-svg {
    transform: scale(1.1);
}

/* Выбранные звезды */

/* Анимация клика */
.star-rating .star.clicked .star-svg {
    animation: starPulse 0.3s ease;
}

/* Заблокированное состояние после голосования */
.star-rating.voted .star {
    cursor: default;
    pointer-events: none;
}




/* Анимация пульса при клике */
@keyframes starPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Блок рейтинга эпизода */
.episode-rating-block {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid;
}

.rating-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rating-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-text {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Иконка пользователя в рейтинге */
.user-icon {
    display: inline-block;
    vertical-align: text-top;
}

/* Иконка пользователя для голосования */
.user-icon-vote {
    display: inline-block;
    vertical-align: text-top;
    width: 20px;
    height: 20px;
    padding-bottom: 3px;
}

/* Контейнер для пользовательских голосов с подсказкой */
.user-votes-container {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    cursor: help;
}

/* Старые классы для совместимости */
.star-icon {
    font-size: 24px;
}

/* Пустая звезда для "Ваша оценка" */
.star-outline {
    font-size: 24px;
}

/* Числа рейтинга (9.5/10) */
.rating-score {
    font-size: 20px;
    font-weight: bold;
}

/* /10 часть */
.rating-max {
    font-size: 14px;
    font-weight: normal;
}

/* 2.4м под рейтингом */
.rating-votes {
    font-size: 12px;
    margin-top: -9px;
    padding-left: 24px;
}

/* Кнопка "Голосуйте" */
.rate-button {
    font-size: 16px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rate-button:hover {
    text-decoration: underline;
}


.number-element-reviews{
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}


.element-reviews{
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.number-reviews{
    font-size: 10px;
    margin-top: 0px;
    span{
        font-size: 18px;
    }
}

/* Адаптивность */


@media (max-width: 480px) {
    .series-title {
        font-size: 18px;
    }
    
    .rating-section {
        gap: 20px;
    }
    
    .rating-item {
        min-width: 80px;
    }
    
    .star-icon,
    .star-outline {
        font-size: 20px;
    }
    
    .rating-score {
        font-size: 16px;
    }
}



/* ===== СЛАЙДЕР ЭПИЗОДОВ ===== */
.episodes-slider-container {
    margin-top: 20px;
    margin-bottom: 0px;
    padding: 10px;
}

/* Вкладки сезонов */
.season-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    white-space: nowrap;
    overflow: hidden;
}

.season-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-right: 1px solid;
    flex-grow: 1;
    text-align: center;
    min-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none; /* Убираем подчеркивание у ссылки */
    display: flex; /* Для центрирования текста в ссылке */
    align-items: center;
    justify-content: center;
}

/* .season-tab:last-child {
    border-right: none;
} */


.season-tab.active {
    font-weight: 600;
}

.all-episodes-tab {
    display: none;
}

/* Контейнер слайдера */
.episodes-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Стрелки навигации */
.slider-arrow {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: 1px solid;
}

.slider-arrow:hover {
    transform: scale(1.05);
}

.slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* Контейнер трека */
.episodes-track-container {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
    padding-bottom: 15px;
}

/* Трек с карточками */
.episodes-track {
    display: flex;
    gap: 15px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Карточка эпизода */
.episode-card {
    flex: 0 0 calc(20% - 12px); /* 5 карточек на десктопе */
    border: 2px solid;
    padding: 4%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 0px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.episode-card:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); */
}

/* Прогресс просмотра */
.episode-progress {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    margin-top: 8px;
}

/* Контейнер плеера */
.episode-player {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.episode-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
}

/* Кнопка воспроизведения с градиентом */
.play-button-gradient {
    position: absolute;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-button-gradient:hover {
    transform: scale(1.1);
}

.play-button-gradient:active {
    transform: scale(0.95);
}

/* Информация об эпизоде */
.episode-info {
    text-align: center;
}

.episode-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
}

.episode-duration {
    font-size: 12px;
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Планшеты */
@media (max-width: 1199px) and (min-width: 768px) {
    .episode-card {
        flex: 0 0 calc(33.333% - 10px); /* 3 карточки */
    }
    
    .season-tabs {
        justify-content: center;
    }
    
    .season-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Мобильные устройства */
@media (max-width: 767px) {
    .episode-card {
        flex: 0 0 calc(50% - 7.5px); /* 2 карточки */
        min-height: 200px;
        /* padding: 12px; */
    }
    
    .season-tabs {
        gap: 5px;
        padding: 5px;
        flex-wrap: wrap;
    }
    
    .season-tab {
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 6px;
        border: 1px solid;
    }
    
    .season-tab:nth-child(n+4) {
        display: flex;
    }
/* ===== ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ 340px ===== */
@media (max-width: 340px) {
    .episode-card {
        flex: 0 0 calc(100% - 10px);
    }
    .episodes-track {
        padding: 0 5px;
    }
}
    
    .all-episodes-tab {
        display: block !important;
    }
    
    .slider-arrow {
        width: 35px;
        height: 35px;
    }
    
    .episodes-slider {
        gap: 10px;
    }
    
    .episodes-track {
        gap: 10px;
    }
    
    .play-button-gradient {
        width: 50px;
        height: 50px;
    }
    
    .play-button-gradient svg {
        width: 24px;
        height: 24px;
    }
    
    .episode-title {
        font-size: 12px;
    }
    
    .episode-duration {
        font-size: 11px;
    }
}

@media (max-width: 540px) {
    /* Скрываем стрелки */
    .slider-arrow {
        display: none !important;
    }
    /* Слайдер занимает всю ширину без стрелок */
    .episodes-slider {
        gap: 0;
    }
    /* Трек контейнер занимает всю ширину */
    .episodes-track-container {
        width: 100%;
        overflow: hidden;
        border-radius: 12px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .episodes-slider-container {

        margin-left: 8px;
    }
    .episode-card {
        min-height: 180px;
        padding: 10px;
    }
    .season-tab {
        padding: 6px 10px;
        font-size: 11px;
    }
    .play-button-gradient {
        width: 45px;
        height: 45px;
    }
    .play-button-gradient svg {
        width: 20px;
        height: 20px;
    }
}

/* ===== МОБИЛЬНЫЕ УСТРОЙСТВА БЕЗ СТРЕЛОК ===== */
@media (max-width: 540px) {

    .episodes-slider-container {
    padding: 0px;
    margin-left: 0px;
    }

    .episode-card {
        flex: 0 0 calc(50% - 7.5px); /* 2 карточки */
        min-height: 180px;
    }
    .season-tabs {
        /* width: 100%; */
        display: flex;
        gap: 10px;
        overflow: hidden;
        margin: 10px 1px 1px 1px;
    }
    .season-tabs::-webkit-scrollbar {
        display: none;
    }
    .season-tab {
        flex: 1 1 0;
        min-width: 0;
        padding: 8px 4px;
        font-size: 11px;
        border-radius: 6px;
        border: 1px solid;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .season-tab:nth-child(n+4) {
        display: none;
    }
    .all-episodes-tab {
        display: block !important;
    }
    .episodes-track {
        gap: 10px;
        padding: 0 15px;
    }
    .play-button-gradient {
        width: 45px;
        height: 45px;
    }
    .play-button-gradient svg {
        width: 20px;
        height: 20px;
    }
    .episode-title {
        font-size: 11px;
    }
    .episode-duration {
        font-size: 10px;
    }
}

@media (max-width: 320px) {

}


/* ===== ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ 320px ===== */
@media (max-width: 320px) {
    .episodes-slider-container {
        margin: 15px 0;
        margin-left: 8px;
    }
    
    /* Контейнер с отступами */
    .container {
        padding: 0 0px;
    }
    
    /* Вкладки сезонов */
    .season-tabs {
        gap: 3px;
        padding: 3px;
        margin-bottom: 15px;
    }
    
    .season-tab {
        padding: 5px 8px;
        font-size: 10px;
        border-radius: 4px;
        min-width: 60px;
        text-align: center;
    }
    
    /* Слайдер */
    .episodes-slider {
        gap: 8px;
    }
    
    /* Стрелки навигации */
    .slider-arrow {
        width: 30px;
        height: 30px;
        flex-shrink: 0;
    }
    
    .slider-arrow svg {
        width: 18px;
        height: 18px;
    }
    
    /* Контейнер трека */
    .episodes-track-container {
        overflow: hidden;
        border-radius: 8px;
    }
    
    /* Трек с карточками */
    .episodes-track {
        gap: 8px;
    }
    
    /* Карточки эпизодов */
    .episode-card {
        flex: 0 0 calc(50% - 4px); /* 2 карточки с учетом gap */
        min-height: 160px;
        padding: 8px;
        border-radius: 8px;
        gap: 8px;
    }
    
    /* Прогресс просмотра */
    .episode-progress {
        font-size: 9px;
        margin-bottom: 3px;
        line-height: 1.2;
    }
    
    /* Контейнер плеера */
    .episode-player {
        padding: 15px 8px;
        border-radius: 6px;
    }
    
    /* Кнопка воспроизведения */
    .play-button-gradient {
        width: 38px;
        height: 38px;
    }
    
    .play-button-gradient svg {
        width: 16px;
        height: 16px;
    }
    
    /* Информация об эпизоде */
    .episode-title {
        font-size: 10px;
        line-height: 1.2;
        margin-bottom: 2px;
    }
    
    .episode-duration {
        font-size: 9px;
        line-height: 1.2;
    }
}

/* ===== ЭКРАНЫ 280px И МЕНЬШЕ (для совсем маленьких устройств) ===== */
@media (max-width: 280px) {
    .container {
        padding: 0 5px;
    }
    
    .episodes-slider {
        gap: 5px;
    }
    
    .episodes-track {
        gap: 5px;
    }
    
    .episode-card {
        flex: 0 0 calc(50% - 2.5px);
        min-height: 140px;
        padding: 6px;
    }
    
    .slider-arrow {
        width: 25px;
        height: 25px;
    }
    
    .slider-arrow svg {
        width: 16px;
        height: 16px;
    }
    
    .play-button-gradient {
        width: 32px;
        height: 32px;
    }
    
    .play-button-gradient svg {
        width: 14px;
        height: 14px;
    }
    
    .season-tab {
        padding: 4px 6px;
        font-size: 9px;
        min-width: 50px;
    }
    
    .episode-title {
        font-size: 9px;
    }
    
    .episode-duration {
        font-size: 8px;
    }
    
    .episode-progress {
        font-size: 8px;
    }
}

/* ===== БЛОК АКТЕРОВ ===== */
.actors-section {
    width: 100%;
}

/* ===================== МОДАЛЬНОЕ ОКНО ПОЛНЫЙ КОНТЕНТ (СЮЖЕТ) ===================== */
/* ///// Модальное окно полный контент ///// */
.plot-more-btn, .season-more-btn {
    margin-top: 8px;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    margin-left: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.plot-more-btn:hover, .season-more-btn:hover { opacity: 0.95; }

.modal-full-content {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease; 
}
.modal-full-content.active {
    opacity: 1;
    visibility: visible;
}
.mfc-backdrop {
    position: absolute;
    inset: 0;
}
.mfc-dialog {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    border: 1px solid;
}
.mfc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid;
    margin-left: 5%;
    margin-right: 5%;
}
.mfc-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}
.mfc-close {
    background: none;
    border: 1px solid;
    border-radius: 8px;
    width: 36px;
    height: 32px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.mfc-body {
    padding: 16px;
    overflow-x: auto;
    overflow-y: auto;
    flex: 1;
    text-align: left;
}
.mfc-content { 
    /* white-space: pre-wrap; */
    line-height: 1.6;
    text-align: left;
    direction: ltr;
    padding-left: 10px;
    padding-right: 10px;
     }


.mfc-content p{
    margin-bottom: 14px;
    max-width: 980px;
    margin: auto;
    padding-bottom: 10px;
}
.modals-content{ 
    max-width: 1280px;
    margin: auto;
    }
@media (max-width: 520px) { .mfc-header{padding:12px;} .mfc-body{padding:12px;} }
/* =================== КОНЕЦ: МОДАЛЬНОЕ ОКНО ПОЛНЫЙ КОНТЕНТ =================== */

.actors-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid;
    padding-left: 20px;
    padding-right: 20px;
}

.actors-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.actors-all-link {
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid;
}


.actors-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.actor-card {
    flex: 0 0 120px;
    min-width: 120px;
    text-align: center;
    transition: all 0.3s ease;
}

.actor-photo {
    position: relative;
    margin-bottom: 10px;
    border-radius: 12px;
    border: 2px solid #730000;
    overflow: hidden;
    aspect-ratio: 1;
    transition: all 0.3s ease;
}

.actor-photo:hover {
    transform: translateY(-2px);
}

.actor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.actor-info {
    padding: 0 5px;
}

.actor-name {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.2;
}

.actor-role {
    font-size: 11px;
    line-height: 1.2;
}

/* Адаптивность */
@media (max-width: 480px) {
    .actors-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .actors-all-link {
        text-align: center;
    }
    
    .actors-container {
        gap: 10px;
        justify-content: space-around;
    }
    
    .actor-card {
        flex: 0 0 110px;
        min-width: 110px;
    }
}

.benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.benefits-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.benefits-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.benefits-text {
    font-size: 14px;
    margin: 0;
    padding: 0;
}

.benefits-text strong {
    font-weight: 600;
}

/* Адаптивность для преимуществ */
@media (max-width: 768px) {
    .benefits-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .benefits-list {
        gap: 12px;
    }
    
    .benefits-item {
        gap: 6px;
    }
    
    .benefits-icon {
        font-size: 14px;
    }
    
    .benefits-text {
        font-size: 12px;
    }
}

/* Скрываем постер в описании на desktop */
.poster-in-description {
    display: none;
}


/* ===== МЕДИА-ЗАПРОС ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ 740px ===== */
@media (max-width: 740px) {
    /* Скрываем постер из hero-блока */
    .hero-media-block .poster-block {
        display: none;
    }
    
    /* Секция описания с постером */
    /* .content-block.no-sidebar.no-border .content-area {
        display: flex;
        gap: 15px;
        align-items: flex-start;

    } */

    .rating-label {
        margin-left: 35px;
    }

    .rating-section {
        display: flex;
        gap: 0px;
        align-items: flex-start;
        flex-shrink: 0;
        justify-content: space-evenly;
        padding: 10px;
    }
    .area-reviews-container{
        align-items: normal !important;
        flex-direction: column !important;
    }

    .content-block-review-navigation{
        justify-content: space-around !important;
        align-items: none;
    }
    
    /* Постер в описании - показываем на mobile */
    .poster-in-description {
        display: block !important;
        flex: 0 0 200px;
        min-width: 200px;
    }
    
    .poster-in-description .poster-container {
        position: relative;
        border-radius: 12px;
        border: 2px solid;
        overflow: hidden;
    }
    
    .poster-in-description .poster-image {
        width: 100%;
        height: auto;
        display: block;
        max-height: 400px;
        object-fit: cover;
    }
    
    /* Текст описания */
    .description-text {
        flex: 1;
    }

    .rating-section {
    margin-left: 10px;
    margin-right: 10px;
}

}


/* ===== МОБИЛЬНЫЕ УСТРОЙСТВА - ВЕРТИКАЛЬНАЯ СТРУКТУРА ===== */
@media (max-width: 520px) {
    /* Секция описания - вертикальная структура */
    .content-block.no-sidebar.no-border .content-area {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    /* Постер сверху - адаптивный с фиксированной высотой */
    .poster-in-description {
        flex: 0 0 auto;
        width: 480px;
        min-width: 200px;
        max-width: 100%;
        height: 130px;
        order: 1;
    }

    /* Контейнер постера с фиксированной высотой */
    .poster-in-description .poster-container {
        height: 130px;
        overflow: hidden;
    }

    /* Изображение - показываем верхнюю часть */
    .poster-in-description .poster-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
    }
    
    /* Описание снизу */
    .description-text {
        flex: 1;
        width: 100%;
        padding-left: 0;
        text-align: left;
        order: 2;
        padding: 15px;
        text-align: left;
        margin-left: 0px;
    }

    /* Превью сюжета: показывать 3 строки на мобильных */
    #plot-text {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
}

/* Превью сюжета: на десктопе и планшетах всегда 4 строки */
@media (min-width: 521px) {
    #plot-text {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }
}

/* Превью описания сезона: показывать 3 строки на мобильных */
@media (max-width: 520px) {
    #season-description-text {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
}

/* Превью описания сезона: на десктопе и планшетах показывать 6 строк */
@media (min-width: 521px) {
    #season-description-text {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        -webkit-line-clamp: 6;
        line-clamp: 6;
    }
}

/* Стили для описания сезона с автоматическим обрезанием */
.season-description-preview {
    margin-bottom: 15px;
    padding-left: 5px;
    line-height: 1.5;
}

/* Стили для HTML-тегов внутри описания */
.season-description-preview h2 {
    margin: 10px 0 8px 0;
    font-size: 1.2em;
    font-weight: bold;
}

.season-description-preview p {
    margin: 8px 0;
}

/* ===== СТИЛИ ДЛЯ ОПИСАНИЯ ЭПИЗОДА ===== */

/* Стили для описания эпизода с автоматическим обрезанием */
.episode-description-preview {
    margin-bottom: 15px;
    line-height: 1.6;
    max-height: 120px;
    overflow: hidden;
    position: relative;
}

/* HTML-теги внутри описания эпизода */
.episode-description-preview h2 {
    margin: 12px 0 10px 0;
    font-size: 1.3em;
    font-weight: bold;
}

.episode-description-preview p {
    margin: 10px 0;
    /* text-align: justify; */
}

/* Кнопка "Читать далее" для эпизода */
.episode-more-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.episode-more-btn:hover {
    transform: translateY(-2px);
}

.episode-more-btn:active {
    transform: translateY(0);
}

/* ===== НОВЫЙ ПОИСКОВЫЙ ФУНКЦИОНАЛ ===== */

/* ПОИСКОВЫЙ БЛОК В HEADER */
.search-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.search-trigger:hover {
    transform: scale(1.05);
}

.search-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
    stroke: currentColor;
}

.contact-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
    stroke: currentColor;
    display: inline-block;
    vertical-align: middle;
}

.contact-admin-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
}

.contact-admin-btn:hover .contact-icon {
    transform: scale(1.1);
    stroke: #ff6b6b;
}


.search-label {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}


/* Скрываем текст на экранах 1043px и меньше */
@media (max-width: 1043px) {
    
    .search-trigger {
        /* gap: 0; */
        padding: 8px;
        min-width: auto;
    }
}

/* МОДАЛЬНОЕ ОКНО ПОИСКА */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(15px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 2147483500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding-top: 100px;
    overflow-y: auto;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transform: translateY(50px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding-bottom: 50px;
    position: relative;
    min-height: 100%;
}

.search-modal.active .search-modal-content {
    transform: translateY(0) scale(1);
}

/* ПОИСКОВАЯ СТРОКА В МОДАЛЬНОМ ОКНЕ */
.modal-search-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 15px;
    border: 2px solid;
}

.modal-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 24px;
    padding: 15px 0;
    font-weight: 300;
}

.modal-search-input::placeholder {
    font-weight: 300;
}

.modal-search-button {
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    min-width: 100px;
}

.modal-search-button:hover {
    transform: translateY(-2px);
}

/* КНОПКА ВИРТУАЛЬНОЙ КЛАВИАТУРЫ */
.virtual-keyboard-button {
    border: none;
    border-radius: 12px;
    padding: 15px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.virtual-keyboard-button:hover {
    transform: translateY(-2px);
}

/* КНОПКА ЗАКРЫТИЯ */
.close-search {
    position: absolute;
    top: 30px;
    right: 30px;
    border: 1px solid;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 24px;
}

.close-search:hover {
    transform: scale(1.1);
}

/* РЕЗУЛЬТАТЫ ПОИСКА */
.search-results {
    width: 100%;
    max-width: 800px;
    border-radius: 15px;
    padding: 15px;
    border: 2px solid;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-height: 70vh; /* Базовая высота */
    overflow-y: auto;
    overflow-x: hidden;
    display: none; /* по умолчанию не занимает место в макете */
    flex: 1 1 auto; /* Занимает доступное пространство */
    min-height: 0; /* Позволяет flex сжимать */
}

#resultsContainer {
    width: 100%;
    overflow-x: hidden;
}

.search-results.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    display: block; /* когда активен, занимает место между строкой поиска и клавиатурой */
}

.search-results h3 {
    font-size: 18px;
    /* margin-bottom: 20px; */
    text-align: center;
}

.search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    transform: translateY(-2px);
}

.search-result-image {
    flex-shrink: 0;
    width: 80px;
    height: 120px;
    max-width: 80px;
    max-height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid;
}

.search-result-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.search-result-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.search-result-description {
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Подсветка найденных слов в результатах поиска */
.search-highlight {
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 3px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.search-result-metadata {
    font-size: 12px;
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-results-group {
    margin-bottom: 20px;
}

.search-results-group-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    padding: 8px 15px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.no-results {
    text-align: center;
    font-size: 16px;
    padding: 30px;
}

.loading-results {
    text-align: center;
    font-size: 16px;
    padding: 30px;
}

/* ВИРТУАЛЬНАЯ КЛАВИАТУРА */
.virtual-keyboard {
    width: 100%;
    max-width: 800px;
    border-radius: 15px;
    padding: 20px;
    /* border: 2px solid #444; */
    transform: translateY(30px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: inherit;
    backdrop-filter: blur(10px);
    margin-top: auto; /* Прижимает к низу контейнера */
}

.virtual-keyboard.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.keyboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid;
}

.keyboard-title {
    font-size: 16px;
    font-weight: 600;
}

.language-switch {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
}

.language-button {
    background: none;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}


.keyboard-layout {
    display: none;
}

.keyboard-layout.active {
    display: block;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.keyboard-key {
    border: 1px solid;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: 500;
    min-width: 38px;
    text-align: center;
    user-select: none;
}

.keyboard-key:hover {
    transform: translateY(-1px);
}

.keyboard-key:active {
    transform: translateY(0);
}

.keyboard-key.space {
    flex: 1;
    max-width: 300px;
}

.keyboard-key.backspace,
.keyboard-key.enter {
    border-color: transparent;
    min-width: 80px;
}


/* АДАПТИВНОСТЬ НОВОГО ПОИСКА */
@media (max-width: 768px) {
    .search-trigger {
        padding: 6px;
    }

    .search-icon {
        width: 25px;
        height: 25px;
    }

    .search-label {
        font-size: 12px;
    }

    .modal-search-input {
        font-size: 20px;
        padding: 12px 0;
    }

    /* Мобильный вид: поле поиска на первой строке, кнопки на второй в один ряд */
    .modal-search-container {
        padding: 15px;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;          /* позволяем перенос на вторую строку */
        align-items: center;
        gap: 10px;
    }

    .modal-search-input {
        flex: 0 0 100%;           /* поле занимает всю первую строку */
    }

    .virtual-keyboard-button,
    .modal-search-button {
        flex: 1 0 auto;           /* две кнопки делят вторую строку */
        justify-content: center;
    }

    .virtual-keyboard {
        padding: 15px;
    }

    .keyboard-key {
        padding: 8px 10px;
        font-size: 14px;
        min-width: 32px;
    }

    .close-search {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .search-modal {
        padding-top: 80px;
    }

    .search-result-item {
        flex-direction: column;
        gap: 10px;
    }

    .search-result-image {
        width: 100%;
        height: auto;
        max-height: 200px;
        max-width: 100%;
        object-fit: contain;
    }

    .search-results {
        max-height: 60vh; /* Базовая высота на мобильных */
        padding: 10px;
    }
    
    /* Когда клавиатура неактивна на мобильных */
    .search-modal-content .virtual-keyboard:not(.active) ~ .search-results.active,
    .search-modal-content:not(:has(.virtual-keyboard.active)) .search-results.active {
        max-height: calc(100vh - 250px);
    }
}

@media (max-width: 520px) {
    .search-label {
        display: none;
    }
}

@media (max-width: 480px) {
    .keyboard-row {
        gap: 5px;
    }

    .keyboard-key {
        padding: 8px 10px;
        font-size: 12px;
        min-width: 30px;
    }

    .virtual-keyboard {
        max-width: 100%;
    }

    .language-button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 390px) {
    .keyboard-row {
        display: flex;
        flex-wrap: wrap;
        gap: 3px;
        margin-bottom: 8px;
        justify-content: flex-start;
    }

    .keyboard-key {
        padding: 5px 4px;
        font-size: 10px;
        min-width: 0;
        flex: 0 0 11.5%; /* Позволяет примерно 8-9 клавиш в ряду */
        max-width: 11.5%;
        box-sizing: border-box;
    }

    /* Для ряда с цифрами (10 клавиш) */
    .keyboard-row:first-child .keyboard-key {
        flex: 0 0 9.5%; /* Позволяет 10 клавиш в ряду */
        max-width: 9.5%;
    }

    /* Для последнего ряда с пробелом, backspace, enter */
    .keyboard-row:last-child {
        display: flex;
        flex-wrap: nowrap;
    }

    .keyboard-row:last-child .keyboard-key.space {
        flex: 1 1 auto;
        min-width: 80px;
        max-width: none;
        font-size: 9px;
    }

    .keyboard-row:last-child .keyboard-key.backspace,
    .keyboard-row:last-child .keyboard-key.enter {
        flex: 0 0 50px;
        min-width: 50px;
        max-width: 50px;
        font-size: 10px;
    }

    .virtual-keyboard {
        padding: 8px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .keyboard-layout {
        width: 100%;
    }
}

@media (max-width: 320px) {
    .keyboard-key {
        padding: 4px 3px;
        font-size: 9px;
        flex: 0 0 11%;
        max-width: 11%;
    }

    .keyboard-row:first-child .keyboard-key {
        flex: 0 0 9%;
        max-width: 9%;
    }

    .keyboard-row:last-child .keyboard-key.space {
        min-width: 60px;
        font-size: 8px;
    }

    .keyboard-row:last-child .keyboard-key.backspace,
    .keyboard-row:last-child .keyboard-key.enter {
        flex: 0 0 40px;
        min-width: 40px;
        max-width: 40px;
        font-size: 9px;
    }

    .keyboard-row {
        gap: 2px;
    }
}

@media (max-width: 420px) {
    .header-content {
        text-align: center;
        display: flex;
        flex-direction: column;
    }
    .header-right{
        justify-content: center;
        padding-top: 15px;
    }


}

@media (max-width: 380px) {
    
}

.circular-menu {
    transform-origin: calc(100% - 20px) 20px; /* Точка разворачивания справа вверху */
}



/* ===== FAQ БЛОК ===== */
.faq-container {
    margin-top: 30px;
}

.faq-item {
    border: 1px solid;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}


.faq-question {
    display: flex;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.faq-icon {
    font-size: 17px;
    margin-right: 15px;
    flex-shrink: 0;
}

.faq-icon img {
    width: 28px;
    height: 28px;
}

.faq-question h3 {
    flex: 1;
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.faq-toggle {
    font-size: 28px;
    transition: transform 0.3s ease;
    margin-left: 20px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-container .faq-item.active .faq-answer,
.faq-container.seasons-faq-container .faq-item.active .faq-answer {
    max-height: 400px;
    padding: 0 10px 20px 20px;
    overflow-y: auto;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
}

/* Стилизация скроллбара для FAQ */
.faq-answer::-webkit-scrollbar {
    width: 6px;
}

.faq-answer::-webkit-scrollbar-track {
    border-radius: 3px;
}

.faq-answer::-webkit-scrollbar-thumb {
    border-radius: 3px;
    transition: background 0.3s ease;
}


/* Для Firefox */
.faq-answer {
    scrollbar-width: thin;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .faq-question h3 {
        font-size: 16px;
    }
    
    .faq-item.active .faq-answer {
        max-height: 250px;
        padding: 0 20px 20px 20px;
        overflow-y: auto;
    }
    
    .faq-icon {
        font-size: 14px;
        margin-right: 10px;
    }
    
    .faq-icon img {
        width: 28px;
        height: 28px;
    }
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ СЕЗОНА ===== */
.season-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.season-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    border-bottom: 2px solid;
}

.season-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.season-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.season-meta span {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid;
}

.season-description {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.season-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

.season-description2{
    max-width: 1260px;
    padding: 15px;
    margin-top: 15px;
    margin-bottom: 25px;
        p{
            font-size: 1.1rem;
            line-height: 1.4;
            text-align: left; 
        }
}

.episodes-section {
    margin-left: 15px;
    margin-right: 15px;
}

.episodes-section h2 {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 30px;
    margin-left: 10px;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.episode-card {
    /* border-radius: 15px; */
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin-top: 0px;
    padding: 3px;
    border-radius: 0px;
}

.episode-card:hover {
    transform: translateY(-5px);
}

.episode-poster {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.episode-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.episode-card:hover .episode-poster img {
    transform: scale(1.05);
}

.episode-info {
    padding: 0px;
}

.episode-info h3 {
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    margin-top: 10px;
}

.episode-description {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
    text-align: left;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.episode-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.seasons-navigation {
    text-align: center;
    padding: 30px 0;
    border-top: 2px solid;
}

.seasons-navigation h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.seasons-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.season-link {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    border: 1px solid;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.season-link:hover {
    transform: translateY(-2px);
}


/* Мобильная версия для страницы сезона */
@media (max-width: 768px) {
    .season-container {
        padding: 15px;
    }
    
    .season-header h1 {
        font-size: 2rem;
    }
    
    .season-meta {
        gap: 15px;
    }
    
    .season-meta span {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .episodes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .episode-card {
        margin-top: 5px;
        margin-bottom: 20px;
    }
    
    .episode-info {
        padding: 0px;
    }
    
    .episode-info h3 {
        font-size: 1.1rem;
    }
    
    .seasons-links {
        gap: 10px;
    }
    
    .season-link {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}



/* Мобильная версия для карточек сезонов и всех компонентов */
@media (max-width: 768px) {
    /* Карточки сезонов */
    .season-card {
        flex-direction: column !important;
        padding: 20px !important;
    }
    
    .season-description {
        margin: 0;
    }
    
    .season-card .season-poster {
        flex: 0 0 auto !important;
        width: 100% !important;
        /* max-width: 300px !important; */
        margin: 0 auto 0px !important;
    }
    
    .season-card h2 {
        font-size: 1rem !important;
        text-align: left;
        margin-bottom: 2px;
    }
    
    .season-meta {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
        font-size: 0.9rem !important;
    }
    
    .season-key-episodes {
        font-size: 0.9rem !important;
    }
    
    .season-key-episodes div {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .season-key-episodes a {
        display: block !important;
    }
    
    .watch-series-button {
        /* width: 100% !important; */
        justify-content: center !important;
        /* padding: 8px 10px 35px 0px !important; */
        /* left: 0; */
    }
    
    /* Скрываем метаданные и заголовки */
    .watch-block-meta {
        display: none !important;
    }
    
    .season-info .season-title {
        display: none !important;
    }
    
    /* Новые блоки пользователя */
    .seasons-quick-nav {
        gap: 10px;
    }
    
    .season-nav-btn {
        padding: 10px 15px;
        min-width: 80px;
        font-size: 14px;
    }
    
    .seasons-summary {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .summary-item {
        min-width: auto;
        width: 100%;
        max-width: 280px;
    }
    
    .episodes-list {
        grid-template-columns: 1fr;
    }
    
    .order-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        align-self: center;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .season-card {
        padding: 15px !important;
        padding-bottom: 8px !important;
        margin-bottom: 20px !important;
    }

    .episodes-section h2 {
        text-align: center;
    }
    
    .season-card h2 {
        font-size: 1.1rem !important;
    }
    
    .season-card p {
        font-size: 0.9rem !important;
        margin: 15px 0 !important;
    }
    
    .season-meta span {
        font-size: 0.85rem !important;
    }


}

/* Адаптация для планшетов - убираем уменьшение постера */
@media (min-width: 769px) and (max-width: 1024px) {
    .season-card {
        gap: 25px !important;
    }
}

/* Мобильные постеры на всю ширину (≤490px) */
@media (max-width: 490px) {
    .season-card .season-poster {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: none !important;
        margin-bottom: 2px !important;
        position: relative !important;
    }
    
    /* Уменьшаем отступы у информационного блока */
    .season-info {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Уменьшаем отступы у описания на мобильных */
    .season-description {
        margin: 0px 0 !important;
    }
    
    /* Убираем большие отступы у карточки сезона на мобильных */
    .season-card-style {
        gap: 0 !important;
        padding: 20px !important;
        padding-bottom: 8px !important;
    }
    
    /* Скрываем заголовки и мета из основного контента на мобильных (они на overlay) */
    .season-info .season-title,
    .season-info .season-meta-style {
        display: none !important;
    }
    
}

/* Базовые стили для overlay (показываем по умолчанию) */
.mobile-poster-overlay {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1px 1px 10px 8px;
}

.mobile-overlay-title {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
}

.mobile-overlay-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    justify-content: flex-start;
    align-items: flex-start;
}

.mobile-overlay-meta span {
    background: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.content-block.list {
        padding: 5px;
        margin-left: 5px;
        margin-right: 5px;
    }

/* Скрываем мобильный overlay только на больших экранах >768px */
@media (min-width: 769px) {
    .mobile-poster-overlay {
        display: none !important;
    }
}

/* Блоки для ключевых серий и кнопки просмотра для экранов >490px */
@media (min-width: 491px) {
    /* Показываем заголовки только на больших экранах */
    
    /* Скрываем оригинальные элементы на больших экранах */
    .season-key-episodes-style,
    .season-info > .watch-series-button {
        display: none !important;
    }
    
    /* Скрываем только мета из основного контента (оно на overlay) */
    .season-info .season-meta-style {
        display: none !important;
    }
    
    /* Скрываем старый overlay */
    .desktop-episodes-overlay {
        display: none !important;
    }
    
    /* Контейнер для двух блоков */
    .season-action-blocks {
        display: flex;
        gap: 15px;
        margin-top: 20px;
    }
    
    /* Блок ключевых серий */
    .episodes-block {
        flex: 1;
        border: 1px solid;
        border-radius: 8px;
        padding: 15px;
        min-height: 120px;
        display: flex;
        flex-direction: column;
    }
    
    .episodes-block-title {
        font-size: 14px;
        font-weight: 600;
        margin: 0 0 12px 0;
        text-align: center;
    }
    
    .episodes-block-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
        flex: 1;
        justify-content: center;
    }
    
    .episode-block-link {
        text-decoration: none;
        font-size: 14px;
        line-height: 1.4;
        padding: 4px 8px;
        border-radius: 4px;
        transition: all 0.3s ease;
        text-align: left;
    }
    
    .episode-block-link:hover {
        transform: translateX(3px);
    }
    
    /* Блок кнопки просмотра */
    .watch-block {
        flex: 1;
        border: 1px solid;
        border-radius: 8px;
        padding: 15px;
        min-height: 120px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: all 0.3s ease;
        gap: 8px;
    }

    .watch-block:hover {
        transform: translateY(-2px);
    }

    .watch-block .tv-icon {
        margin-bottom: 5px;
    }

    .watch-block-text {
        font-size: 18px;
        font-weight: 600;
        text-align: center;
        margin-bottom: 8px;
    }
    
    .watch-block-meta {
        display: flex;
        flex-direction: row;
        gap: 8px;
        font-size: 14px;
        text-align: center;
        opacity: 0.9;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .watch-block-meta span {
        line-height: 1.2;
        white-space: nowrap;
    }

}

/* Скрываем новые блоки на мобильных (≤490px) */
@media (max-width: 490px) {
    .season-action-blocks {
        display: none !important;
    }
}

/* Убрали дублирование - теперь все в основном медиазапросе выше */

/* Показываем заголовки только на десктопах (>768px) */
@media (min-width: 769px) {
    .season-info .season-title {
        display: block !important;
    }
}



/* Стили для карточек сезонов */
.season-card-style {
    display: flex;
    gap: 30px;
    margin-bottom: 10px;
    padding: 5px 5px 5px;
    border-radius: 12px;
    border: 1px solid;
}

.season-poster-style {
    position: relative;
}

.season-poster-image {
    width: 100%;
    border-radius: 8px;
}

.season-info-style {
    flex: 1;
}

.season-title {
    margin-top: 0;
}

.season-meta-style {
    display: flex;
    gap: 20px;
    margin: 15px 0;
}

.season-description {
    margin: 0px 0;
    line-height: 1.6;
}

.season-key-episodes-style {
    margin: 20px 0;
}


.key-episodes-list {
    margin-top: 10px;
}

.key-episode-link {
    text-decoration: none;
    margin-right: 15px;
}

.key-episode-link:last-child {
    margin-right: 0;
}

.watch-button-style {
    display: flex;
    justify-content: center;
    text-decoration: none;
    width: 98%;
    border-radius: 0px 0px 6px 6px;
    margin-bottom: 3px;
    padding-top: 8px;
    svg{
        width: 40px;
        margin-top: 3px;
    }
}





@media (max-width: 361px) {
    .season-card h2 {
        font-size: 0.8rem !important;
    }

    .mobile-overlay-meta span {
        background: none;
        padding: 0;
        border-radius: 4px;
        font-weight: 500;
    }
    .mobile-overlay-meta {
        gap: 5px;
    }
    .mobile-poster-overlay {
        padding: 30px 10px 10px;
    }
}

/* Стили для сворачивания описаний */
.season-info .season-description {
    position: relative;
    line-height: 1.6 !important;
    transition: all 0.4s ease;
}

.season-info .season-description.collapsed {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-height: 4.8em !important; /* 3 строки * 1.6 line-height */
    text-align: left;
}

.season-info .season-description.expanded {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-line-clamp: none !important;
    line-clamp: none !important;
    -webkit-box-orient: initial !important;
}

/* Современная компактная кнопка "читать еще" */
.season-info .read-more-btn {
    display: inline !important;
    margin: 0 0 0 3px !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: inherit !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    position: relative !important;
    text-decoration: none !important;
    outline: none !important;
    vertical-align: baseline !important;
}

.season-info .read-more-btn:hover {
    text-decoration: none !important;
    background: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.season-info .read-more-btn:active {
    transform: none !important;
}

.breadcrumbs {
    text-align: left;
    margin-left: 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumbs {
    text-align: left !important;
    margin-bottom: 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: auto;
    max-width: 1280px !important;
    padding-left: 15px;
    padding-right: 8px;
}



.breadcrumbs a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    text-decoration: none;
}


/* Порядок просмотра */
.viewing-order {
    margin-top: 20px;
}

.order-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid;
    border-radius: 8px;
    gap: 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 10px;
}

.step-link {
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
    display: inline-block;
}



@media (max-width: 480px) {
    .comparison-table {
        font-size: 12px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
    }
}

.seasons-table-container {
    margin-top: 20px;
}

.season-table-block {
    border: 1px solid;
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 20px;
}

.season-table-block h3 {
    margin-bottom: 10px;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
    padding-bottom: 1px;
    margin-top: 10px;
    padding-left: 5px;
}

.episodes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 8px;
    text-align: left;
}

.episodes-list li {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    border-left: 3px solid;
}

/* Стили ссылок в разделе полного списка серий: светло-розовые, без подчеркивания */
.seasons-table-container a,
.seasons-table-container .episodes-list a,
.season-table-block .key-episode-link,
.season-table-block .episode-block-link {
    text-decoration: none;
    transition: color 0.15s ease, transform 0.12s ease;
}


.seasons-table-container a:hover,
.season-table-block .key-episode-link:hover,
.season-table-block .episode-block-link:hover {
    text-decoration: none;
    transform: translateX(2px);
}

/* Заголовок блока сезона и кнопка открытия серий */
.season-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.open-episodes-btn {
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
}


.season-episodes-hidden .episodes-list li { border-left-color: transparent; }

@media (max-width: 354px) {
    .episodes-list {
    grid-template-columns: 1fr;
}
}

/* Стили, специфичные для блока всех сезонов — не должны влиять на другие страницы */

@media (min-width: 1024px) {
    .seasons-table-container .episodes-list {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
        gap: 12px;
    }
    .seasons-table-container .episodes-list li {
        font-size: 15px;
        padding: 10px 14px;
    }
}

@media (max-width: 767px) {
    .seasons-table-container .episodes-list {
        grid-template-columns: 1fr; /* одна колонка на мобильных */
        gap: 6px;
    }
    .seasons-table-container .episodes-list li {
        font-size: 13px;
        padding: 8px 10px;
    }
}

/* Принудительно убираем синие подчёркнутые ссылки внутри блока сезонов и в модалке, где показываем список */
.seasons-table-container a,
.seasons-table-container .episodes-list a,
.season-table-block .key-episode-link,
.season-table-block .episode-block-link,
.mfc-content .episodes-list a,
.mfc-content .season-episodes-hidden a {
    text-decoration: none !important;
    padding-right: 5px;
}


.seasons-table-container a:hover,
.season-table-block .key-episode-link:hover,
.season-table-block .episode-block-link:hover,
.mfc-content .episodes-list a:hover {
    text-decoration: none !important;
}

/* Стили для модального контента — две колонки для десктопа внутри модалки */
.mfc-content .episodes-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.mfc-content h3{
    margin-bottom: 10px;
    margin-top: 10px;
}

@media (min-width: 900px) {
    .mfc-content .episodes-list {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
        gap: 12px;
    }
    .mfc-content .episodes-list li {
        font-size: 15px;
        padding: 8px 12px;
    }
}

/* Кнопка открытия эпизодов — фокус и доступность */
.open-episodes-btn:focus {
    outline: 2px solid;
    outline-offset: 2px;
}

/* Убедимся, что скрытый список не влияет на рендер вне модалки */
.season-episodes-hidden { display: none; }


/* Кнопка плей на постере - в верхнем левом углу */
.play-button {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
    border: 2px solid;
    backdrop-filter: blur(1px);
}

.play-button:hover {
    transform: scale(1.1);
}

.play-button svg {
    width: 20px;
    height: 20px;
    margin-left: 2px; /* Смещение треугольника для визуального центра */
}

/* Постер кликабельный */
.season-poster {
    position: relative;
    cursor: pointer;
}

/* Мобильная версия - скрываем кнопку плей, показываем надпись */
@media (max-width: 767px) {
    .play-button {
        display: none;
    }
    
    .watch-text-button {
        position: absolute;
        top: 30%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-decoration: none;
        font-weight: bold;
        font-size: 18px;
        letter-spacing: 2px;
        transition: all 0.3s ease;
        cursor: pointer;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        text-transform: uppercase;
    }
    
    .watch-text-button:hover {
        transform: translate(-50%, -50%) scale(1.1);
        text-decoration: none;
    }
    
    /* Адаптивные размеры шрифта */
    @media (max-width: 480px) {
        .watch-text-button {
            font-size: 14px;
            letter-spacing: 1px;
        }
    }
    
    @media (max-width: 360px) {
        .watch-text-button {
            font-size: 12px;
            letter-spacing: 0.5px;
        }
    }
}

/* Десктопная версия - показываем кнопку плей, скрываем надпись */
@media (min-width: 768px) {
    .watch-text-button {
        display: none;
    }
}

/* Планшетная версия */
@media (max-width: 1024px) and (min-width: 769px) {
    .play-button {
        width: 45px;
        height: 45px;
        top: 12px;
        left: 12px;
    }
    
    .play-button svg {
        width: 18px;
        height: 18px;
    }
}

/* Стили для ссылок на карточки серий */
.episode-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.episode-link:hover {
    text-decoration: none;
    color: inherit;
}

.episode-link:hover .episode-card {
    transform: translateY(-5px);
}

/* Стили для оверлея с иконкой воспроизведения */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.3s ease;
    border: 2px solid;
}

.episode-poster {
    position: relative;
}

.episode-link:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    transition: transform 0.2s ease;
    width: 24px;
    height: 24px;
}

.episode-link:hover .play-icon {
    transform: scale(1.1);
}

/* Адаптивность для иконки воспроизведения */
@media (max-width: 768px) {
    .play-overlay {
        width: 50px;
        height: 50px;
    }
    .play-icon {
        width: 20px !important;
        height: 20px !important;
    }
}

@media (max-width: 480px) {
    .play-overlay {
        width: 45px;
        height: 45px;
    }
    .play-icon {
        width: 18px !important;
        height: 18px !important;
    }
}

/* ///////////////////////////////////// */
/* Серии навигация */
 .episode-layout {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 20px;
        align-items: start;
    }
    .episode-player {
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        letter-spacing: .5px;
        border-radius: 6px;
        aspect-ratio: 16/9;
        position: relative; /* Для позиционирования плеера */
    }
    .series-slider-container {
        position: relative; /* Для позиционирования кнопок навигации */
        border-radius: 6px;
        padding: 0;
        height: 100%; /* Займет высоту родителя */
        overflow: hidden;
        overscroll-behavior: contain; /* Предотвращает скролл страницы при достижении края */
    }
    .series-slider {
        height: 100%;
    }
    .swiper-slide {
        position: relative;
        overflow: hidden;
        border-radius: 6px;
        cursor: pointer;
    }
    .episode-link {
        display: block;
        width: 100%;
        height: 100%;
        text-decoration: none;
        color: inherit;
    }
    .swiper-slide img {
        width: 320px;
        height: 190px;
        object-fit: cover;
    }
    /* Обводка и затемнение для текущего эпизода */
    .swiper-slide.current-episode {
        border: 2px solid #fffd07;
        box-sizing: border-box;
    }
    /* Затемнение только изображения текущего эпизода (не затрагивает обводку) */
    .swiper-slide.current-episode img {
        opacity: 0.5;
        filter: brightness(0.6);
    }
    .swiper-slide .play-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 1; /* Всегда видимая */
        transition: all 0.3s ease;
    }
    .swiper-slide:hover .play-overlay {
        transform: translate(-50%, -50%) scale(1.2);
    }
    /* Активный слайд с красной обводкой и треугольником */
    .swiper-slide-active .play-overlay {
        border: 2px solid;
    }
    .swiper-slide-active:hover .play-overlay {
        border: 2px solid;
    }
    /* Красный треугольник для активного слайда */
    
    
    .play-overlay svg {
        width: 12px;
        height: 12px;
        margin-left: 1px; /* Смещение для визуального центрирования треугольника */
    }

    /* Стили для скроллбара */
    .swiper-scrollbar {
        display: none; /* Скрываем по умолчанию */
        position: relative;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 5px;
        border-radius: 10px;
        margin-top: 15px;
    }
    .swiper-scrollbar-drag {
        border-radius: 10px;
    }

    /* Навигационные стрелки (десктоп) */
    .series-nav {
        position: absolute;
        right: 10px;
        width: 38px;
        height: 38px;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 20;
        transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease, box-shadow 0.2s ease;
        opacity: 0.96;
    border: 1px solid;
        backdrop-filter: saturate(120%) blur(3px);
    }
    .series-nav svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
        pointer-events: none;
        filter: drop-shadow(0 1px 1.5px rgba(0,0,0,0.6)) drop-shadow(0 0 2px rgba(0,0,0,0.45));
    }
    .series-nav:hover,
    .series-nav:focus-visible {
        outline: none;
    }
    .series-nav:active { transform: scale(0.96); }
    .series-nav[disabled],
    .series-nav.swiper-button-disabled { 
        opacity: 0.45; 
        cursor: not-allowed; 
        margin-top: 30px;
        border: 1px solid !important;
        pointer-events: none;
    }
    
    .series-nav[disabled]:hover,
    .series-nav.swiper-button-disabled:hover {
        transform: none !important;
    }

    .series-nav-prev { top: 18px; margin-top: 30px;}
    .series-nav-next { bottom: 18px; margin-bottom: 50px;}

    /* Прячем стрелки на мобильных */
    @media (max-width: 920px) {
        .series-nav { display: none; }
    }


    @media (max-width: 920px) {
        .episode-layout {
            grid-template-columns: 1fr;
        }
        .series-slider-container {
            margin-top: 0px;
            height: auto; /* Сбрасываем высоту для горизонтального режима */
            overflow: hidden; /* Исправлено: всегда скрываем */
        }
        .series-slider {
            height: 150px; /* Пример высоты для мобильной версии */
            padding-bottom: 20px; /* Место для скроллбара */
            position: relative;
        }

        .swiper-scrollbar {
            display: block; /* Показываем скроллбар на мобильных */
            position: absolute; /* Позиционируем внутри слайдера */
            bottom: 5px;
            left: 5%;
            width: 90%;
            height: 5px;
        }

        .episode-progress {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
            margin-top: 0px;
}
    }

    .span-episode-title {
        padding: 0;
    }

       .title-rating-block {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-rows: auto auto !important;
        column-gap: 16px !important;
        align-items: end !important;
    }
    .title-rating-block .series-title {
        grid-column: 1 / 2;
        grid-row: 1 / span 2; /* заголовок занимает обе строки */
        margin: 0;
    }
    /* Поднимаем содержимое карточек во внешнюю сетку */
    .rating-label-episode{
        margin-right: 15px;
    }
    /* Метки — одинаковый размер и на одной линии */
    .title-rating-block .rating-label {
        grid-row: 1 !important;
        font-size: 16px !important; /* одинаковый размер */
        line-height: 1.1 !important;
        text-transform: uppercase !important;
        letter-spacing: .3px !important;
        align-self: end !important;
        margin-right: 10px;
    }
    .title-rating-block .rating-label { grid-column: 2 !important; justify-self: center !important; text-align: center !important; }
    /* Значения — под своими метками */
    .title-rating-block .rating-value {
        grid-row: 2 !important;
        line-height: 1.1 !important;
        font-weight: 600 !important;
    }
    .title-rating-block .rating-value { grid-column: 2 !important; justify-self: center !important; text-align: center !important; }

    .episode-layout {
        display: grid;
        grid-template-columns: 1fr 320px;
        grid-template-rows: auto 1fr; /* заголовки сверху, контент растягивается */
        gap: 12px 20px; /* строки x колонки */
        align-items: start;
    }
    .episode-section-title {
        margin: 0;
        font-size: 16px;
        line-height: 1.2;
        font-weight: 700;
        letter-spacing: .2px;
    }
    
    /* Контейнер заголовка с кнопкой "все сезоны" */
    .episode-section-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-left: 5px;
        margin-right: 15px;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .all-seasons-btn {
        font-size: 14px !important;
        text-decoration: none !important;
        padding: 6px 12px !important;
        border-radius: 4px !important;
        border: none !important;
        background: transparent !important;
        transition: all 0.3s ease !important;
        white-space: nowrap !important;
        display: inline-block !important;
        font-weight: 500 !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
    }
    
    .all-seasons-btn:hover {
        text-decoration: none !important;
    }
    
    /* Заголовок внутри header'а должен не занимать всю ширину */
    .episode-section-header .episode-section-title {
        margin: 0 !important;
        flex-grow: 1 !important;
        flex-shrink: 1 !important;
    }
    
    .player-title { grid-column: 1 / 2; grid-row: 1; margin-left: 15px;}
    .episode-section-header   { grid-column: 2 / 3; grid-row: 1;}

    .episode-player { grid-column: 1 / 2; grid-row: 2; }
    .series-slider-container { grid-column: 2 / 3; grid-row: 2; }

    /* Контейнер слайдера без внешних отступов, высоту определим JS-скриптом как и ранее */
    .series-slider-container {
        position: relative;
        border-radius: 6px;
        padding: 0;
        height: 100%;
        overflow: hidden;
    }
    .series-slider-container .series-slider { height: 100%; }
    /* Десктоп: без правой рейки, со стрелками навигации */
    @media (min-width: 921px) {
        .series-slider-container { padding-right: 0; }
        .series-slider-container::after { display: none; }
        .series-slider-container .series-nav { display: block !important; }
        .series-slider-container .swiper-scrollbar { display: none !important; }
        /* Кнопка play в левом верхнем углу слайда */
        .series-slider-container .episode-link { position: relative; }
        .series-slider-container .mobile-topline {
            position: absolute; top: 6px; left: 6px; z-index: 3;
            display: inline-flex; align-items: center; gap: 8px;
        }
        .series-slider-container .mobile-topline .play-overlay {
            position: static !important; transform: none !important;
            display: inline-flex; align-items: center; justify-content: center;
            background: rgba(0,0,0,.55); border-radius: 999px; padding: 6px;
        }
    }

    /* Навигационные стрелки — используем базовые стили из style.css */

    /* Кнопка воспроизведения — немного больше */
    .series-slider-container .play-overlay svg {
        width: 36px !important;
        height: 36px !important;
    }
    

    /* Оверлеи на карточках эпизодов: прогресс и подпись */
    .episode-link { position: relative; display: block; }
    .episode-caption {
        position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
        font-size: 12px; line-height: 1.25; padding: 16px 10px; overflow: hidden;
        box-shadow: 0 -10px 16px rgba(0,0,0,.35) inset;
        display: grid; grid-template-columns: 1fr auto auto; row-gap: 4px; column-gap: 8px; align-items: center;
    }
    .episode-caption .caption-meta { grid-column: 1 / 4; font-weight: 700; }
    .episode-caption .caption-title { grid-column: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .episode-caption .progress-eye { grid-column: 2; justify-self: end; position: relative; display: inline-flex; align-items: center; opacity: .95; }
    .episode-caption .progress-value { grid-column: 3; justify-self: end; font-size: 11px; font-weight: 600; opacity: .95; }
    .episode-caption .eye-icon { display: inline-flex; }
    .episode-caption .eye-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }
    .episode-caption .tooltip { position: absolute; bottom: 130%; right: 0; font-size: 11px; padding: 6px 8px; border-radius: 4px; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease; pointer-events: none; z-index: 3; }
    .episode-caption .tooltip::after { content: ""; position: absolute; top: 100%; right: 8px; border: 6px solid transparent; }
    .episode-caption .progress-eye:hover .tooltip { opacity: 1; transform: translateY(0); }
    /* удалены устаревшие правила caption-row и episode-progress */

    /* Мобильная версия: одна колонка, правильный порядок */
    @media (max-width: 920px) {
        .episode-layout {
            grid-template-columns: 1fr;
            grid-template-rows: auto auto auto auto;
            gap: 0;
        }
        .player-title {
            grid-column: 1;
            grid-row: 1;
            margin: 0 0 12px; 
            }
        .episode-player { grid-column: 1; grid-row: 2; margin-bottom: 15px; }
        .episode-section-header { grid-column: 1; grid-row: 3; margin: 12px 0 12px; margin-left: 5px; gap: 8px; }
        .episode-section-header .episode-section-title { margin: 0 !important; }
        .episode-section-header .all-seasons-btn { align-self: flex-end; margin-top: -4px; }
        .series-slider-container { grid-column: 1; grid-row: 4; height: auto; overflow: hidden; padding-right: 0; }
        .series-slider-container::after, .series-slider-container .series-nav { display: none !important; }
    /* Контейнер верхней линии с play-иконкой */
        .series-slider-container .episode-link { position: relative; }
        .series-slider-container .mobile-topline {
            position: absolute; top: 6px; left: 6px; z-index: 3;
            display: inline-flex; align-items: center; gap: 8px;
        }
        .series-slider-container .mobile-topline .play-overlay {
            position: static !important; transform: none !important;
            display: inline-flex; align-items: center; justify-content: center;
            border-radius: 999px; padding: 6px;
        }
        .series-slider-container .mobile-topline .play-overlay svg { width: 28px !important; height: 28px !important; }
        
        
    }


    @media (max-width: 440px) {
        .title-rating-block {
            grid-template-columns: 1fr !important;
            grid-template-rows: auto auto !important;
            row-gap: 8px !important;
            align-items: start !important;
            padding-bottom: 2px !important;
            margin-bottom: 15px !important;
        }
        /* Рейтинг под заголовком — в один ряд, по центру */
        .title-rating-block .rating-item {
        grid-column: 1 !important;
        grid-row: 2 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        width: 100% !important;
        flex-direction: row;
        margin-bottom: 12px;
        }
        .title-rating-block .rating-label,
        .title-rating-block .rating-value {
            grid-column: auto !important;
            grid-row: auto !important;
            justify-self: auto !important;
            align-self: center !important;
            margin: 0 !important;
            text-align: center !important;
            display: inline-flex !important;
            align-items: center !important;
            place-self: auto !important;
        }
        .title-rating-block .rating-label { order: 0 !important; font-size: 16px !important;}
        .title-rating-block .rating-value { order: 1 !important; }
        .title-rating-block .rating-value .star-icon { display: inline-block !important; }
        .title-rating-block .series-title {
            grid-column: 1 !important;
            grid-row: 1 !important;
            margin: 0 !important;
            display: flex !important;
            flex-direction: column !important;
            text-align: center !important;
            font-size: 24px;
        }
        /* Сбрасываем старую раскладку строк для label/value */
    }

    /* Очень узкие: глаз сверху, 0% снизу в индикаторе */
    @media (max-width: 400px) {
        /* На узких: 2 строки — 1) meta + eye, 2) title + percent */
        .episode-caption { grid-template-columns: 1fr auto; grid-template-rows: auto auto; }
        .episode-caption .caption-meta { grid-column: 1; grid-row: 1; }
        .episode-caption .progress-eye { grid-column: 2; grid-row: 1; align-self: center; }
        .episode-caption .caption-title { grid-column: 1; grid-row: 2; line-height: 1.2; }
        .episode-caption .progress-value { grid-column: 2; grid-row: 2; align-self: center; }
    }

/* ===== СТИЛИ СТРАНИЦЫ СЕЗОНА (перенесены из stile-creators.css) ===== */

.content-block {
    margin-bottom: 25px;
    margin-left: 15px;
    margin-right: 15px;
}

.content-block-season1{
    margin-top: 18px;
    display: flex;
    border: 2px solid;
    border-radius: 8px;
    margin-left: 12px;
    margin-right: 12px;
    margin-bottom: 20px;
    padding-left: 10px;
    padding-right: 8px;
    padding-bottom: 10px;
}

.content-block-season1 .content-area {
    flex: 1;
    padding-right: 20px;
    margin-right: 20px;
    position: relative;
}

.content-block-season1 .content-area::after {
    content: '';
    position: absolute;
    top: 15px;
    right: -1px;
    bottom: 15px;
    width: 2px;
}

.content-block.with-border {
    border: 1px solid;
    border-radius: 8px;
    padding: 15px 10px;
    margin: 10px;
}

.content-block-season{
    margin-bottom: 25px;
    display: flex;
}

.sidebar-area-season1{
    border: 1px solid;
    min-width: 290px;
    height: 368px;
    border-radius: 10px;
    padding: 15px;
    margin-right: 0px;
    margin-left: 5px;
}

@media (max-width: 980px) {
    .sidebar-area-season1{
        margin-left: 0px;
}
}
.sidebar-area-season2{
    min-width: 320px;
    height: 340px;
    margin-top: 15px;
    border-radius: 10px;
    margin-right: 15px;
    padding: 15px;
    margin-top: 18px;
}

/* Стили для кнопки "Читать далее" */
.read-more-btn {
    display: none;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    transform: translateY(-2px);
}

/* Стили для модального окна описания сезона */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483647;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid;
    height: 10px;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    display: none;
}

.modal-close {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
    height: calc(66vh - 80px);
    overflow-y: auto;
    line-height: 1.6;
}

.modal-body h2 {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    text-align: center;
}

.modal-body p {
    margin: 0 0 15px 0;
    font-size: 16px;
    text-align: left;
}

/* Адаптивность для страницы сезона */
@media (max-width: 980px) {
    .content-block-season{
        margin-bottom: 25px;
        display: flex;
        flex-direction: column;
    }
.sidebar-area-season1{
    margin-top: 10px;
    height: auto;
}
    .sidebar-area-season2{
        margin-left: 15px;
        margin-right: 15px;
        height: auto;
    }
    .content-block-season1{
        flex-direction: column;
    }
    .content-block-season1 .content-area {
        padding-right: 0;
        padding-bottom: 20px;
        margin-right: 0;
        margin-bottom: 20px;
    }
    .content-block-season1 .content-area::after {
        top: auto;
        right: 15px;
        bottom: -1px;
        left: 15px;
        width: auto;
        height: 2px;
    }
    
    /* Показываем кнопку "Читать далее" на мобильных */
    .read-more-btn {
        display: inline-block;
    }
    
    /* .description-text {
        position: relative;
        overflow: hidden;
    } */
    
    .description-text::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        /* background: linear-gradient(transparent, #1a1a1a); */
        pointer-events: none;
    }
    
    .description-text p {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.5;
        max-height: 4.5em;
    }
}

@media (max-width: 768px) {
    .sidebar-area-season2{
        margin-left: 15px;
        margin-right: 15px;
        height: auto;
    }
    
    .modal-header {
        padding: 15px 20px;
        height: 50px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 20px;
        height: calc(68vh - 70px);
    }
    
    .modal-body p {
        font-size: 14px;
        text-align: left;
    }
}

.main-description.collapsed {
    max-height: 72px; /* 3 строки по 24px */
    overflow: hidden;
    display: block;
    position: relative;
}

/* Предотвращение мигания слайдов при загрузке на всех устройствах */
.series-slider-container .swiper-wrapper {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.series-slider-container .swiper-initialized .swiper-wrapper {
    opacity: 1;
}

/* Индикация достижения конца слайдера */
.series-slider-container.reached-end::after {
    content: "Конец списка";
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { 
        opacity: 0; 
        transform: translateX(-50%) translateY(-5px);
    }
    20%, 80% { 
        opacity: 1; 
        transform: translateX(-50%) translateY(0);
    }
}

/* На мобильных устройствах индикация меньше */
@media (max-width: 920px) {
    .series-slider-container.reached-end::after {
        font-size: 11px;
        padding: 6px 12px;
    }
}

.video-card {
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid;
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.video-card-image {
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden;
}

.video-card-description{
    padding-left: 10px;
    padding-right: 10px;
}
@media (min-width: 1030px) {
    .video-card-image img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        display: block;
    }
}
@media (min-width: 1030px) {
    .videos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 32px 0;
    width: 100%;
    box-sizing: border-box;
}
.video-card {
    border: 1px solid;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 20px 0;
    transition: box-shadow 0.2s;
}
.video-card-image {
    position: relative;
}

.video-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    display: block;
}

.video-card-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 2;
}

.video-card:hover .video-card-play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(0, 0, 0, 0.75);
}

.video-card-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 2;
}

.video-card:hover .video-card-play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(0, 0, 0, 0.75);
}
.video-card-title {
        font-size: 1.1rem;
        font-weight: 600;
        margin: 16px 12px 8px 12px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
}
.video-card-description {
    font-size: 0.98rem;
    margin: 0 12px 5px 12px;
    text-align: left;
}
.video-card-button {
        display: inline-block;
        border-radius: 8px;
        padding: 10px 28px;
        text-decoration: none;
        font-weight: 500;
        margin-top: auto;
        width: auto;
        margin-left: auto;
        margin-right: auto;
        transition: background 0.2s;
}
@media (max-width: 1200px) {
    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
    @media (max-width: 900px) {
        .videos-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }
    @media (max-width: 700px) {
        .videos-grid {
            grid-template-columns: repeat(2, 1fr);
        }
        .video-card-image img {
            height: 140px;
        }
        .video-card-play-button {
            width: 48px;
            height: 48px;
        }
        .video-card-play-button svg {
            width: 36px;
            height: 36px;
        }
        .video-card-title, .video-card-description {
            margin-left: 6px;
            margin-right: 6px;
        }
    }
    @media (max-width: 412px) {
        .videos-grid {
            grid-template-columns: 1fr;
        }
            .video-card-image img {
                width: 100%;
                height: auto;
                border-radius: 16px 16px 0 0;
                display: block;
            }
            .video-card-play-button {
                width: 56px;
                height: 56px;
            }
            .video-card-play-button svg {
                width: 40px;
                height: 40px;
            }
    }

.episodes-swiper .swiper-slide {
  width: calc(50% - 5px); /* Для мобильных - 2 слайда */
}

@media (min-width: 600px) {
  .episodes-swiper .swiper-slide {
    width: calc(33.333% - 7px); /* Для планшетов - 3 слайда */
  }
}

@media (min-width: 900px) {
  .episodes-swiper .swiper-slide {
    width: calc(25% - 8px); /* Для десктопа - 4 слайда */
  }
}
/* Анимация для динамического обновления рейтинга */
.rating-animate {
    animation: ratingPulse 0.7s;
}

@keyframes ratingPulse {
    0% { }
    50% { transform: scale(1.15); }
    100% { background: none; color: inherit; transform: scale(1); }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

    .info-blocks {
        display: flex;
        gap: 4px;
    }
    .info-item {
        position: relative;
        width: 180px;
        height: 120px;
        border-radius: 16px;
        overflow: hidden;
        cursor: pointer;
        transition: transform 0.2s;
    }
    .info-bg-soundtrack {
        background: url('/static/images/posters/home/poster-info-soundtrack.webp') center center/cover no-repeat;
    }
    .info-bg-gallery {
        background: url('/static/images/posters/home/poster-info-photo-gallery.webp') center center/cover no-repeat;
    }
    .info-bg-behind {
        background: url('/static/images/posters/home/poster-info-behind-the-scenes.webp') center center/cover no-repeat;
    }
    .info-overlay {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        z-index: 2;
    }
    .info-text, .info-label {
        font-size: 1.2em;
        font-weight: 600;
        padding: 0 8px;
    }
    .seasons-button {
        text-decoration: none;
        font-weight: 600;
        border-radius: 8px;

        transition: background 0.2s;
    }
    @media (max-width: 600px) {
        .info-blocks {
            flex-direction: row;
            gap: 8px;
            font-size: 12px;
        }
        .info-item {
            width: 100%;
            height: 90px;
            min-width: 0;
        }
    }

    .page-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    gap: 20px;
}

@media (max-width: 768px) {
    .page-actions {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
}

.add-comment-section {
    display: flex;
    align-items: center;
}

.add-comment-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.add-comment-btn:hover {
    transform: translateY(-1px);
}

.add-comment-btn svg {
    fill: none;
    stroke: currentColor;
}

.episode-info {
    font-size: 16px;
    margin: 0px 0;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
}

.comments-page-container {
    margin-top: 30px;
}

.comments-count-info {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid;
}

.comments-count-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.comments-count-info p {
    margin: 0;
    font-size: 14px;
}

/* Адаптивный заголовок для мобильных */
.page-header h1 {
    font-size: 28px;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 24px;
    }
    
    .page-header h1 .season-episode-info {
        font-weight: 500;
    }
    
    .page-actions {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 22px;
    }
}

@media (max-width: 360px) {
    .page-header h1 {
        font-size: 18px;
    }
}





/* Reviews pagination */
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    text-decoration: none;
    border: 1px solid;
    border-radius: 6px;
    font-size: 22px;
    font-weight: 600;
    transition: all 0.3s ease;
}


.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.videos-grid {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    width: 100%;
}

.video-card-rating {
    margin-bottom: 4px;
    text-align: center;
}
.video-card-rating span {
    font-size: 1em;
}

.video-card-rating .video-card-rating-value,
.video-card-rating .video-card-rating-votes,
.video-card-rating .video-card-rating-empty {
    font-size: 0.95em;
    margin-left: 3px;
}

.swiper-backface-hidden .swiper-slide {
    backface-visibility: hidden;
    transform: translateZ(0);
    margin-bottom: 5px;
}

@media (max-width: 486px) {
    .title-rating-block {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto !important;
        row-gap: 8px !important;
        align-items: start !important;
        padding-bottom: 2px !important;
        margin-bottom: 15px !important;
    }
}

@media (max-width: 486px) {
    .title-rating-block .rating-item {
        grid-column: 1 !important;
        grid-row: 2 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        width: 100% !important;
        flex-direction: row;
        margin-bottom: 12px;
    }
    .series-title4 {
        text-align: center;
    }
        .rating-label {
        margin-left: 0px;
    }
}

.overall-rating-value{
    padding: 0;
    font-size: 21px;
}

.description {
    margin-left: 6px !important;
    margin-right: 6px !important;
    padding: 15px !important;
}

/* ===== ПЕРЕЛИНКОВКА НА ВИКТОРИНУ ===== */
.quiz-promo-section {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 82, 82, 0.1) 0%, rgba(255, 107, 107, 0.05) 100%);
    border: 2px solid rgba(255, 82, 82, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.quiz-promo-section:hover {
    border-color: rgba(255, 82, 82, 0.5);
    background: linear-gradient(135deg, rgba(255, 82, 82, 0.15) 0%, rgba(255, 107, 107, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 82, 82, 0.2);
}

.quiz-promo-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.quiz-promo-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.quiz-promo-text {
    flex: 1;
    min-width: 200px;
}

.quiz-promo-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--quiz-text, #333);
}

.quiz-promo-description {
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    color: var(--quiz-text-secondary, #666);
}

.quiz-promo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: #ff5252;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255, 82, 82, 0.3);
}

.quiz-promo-button:hover {
    background: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 82, 82, 0.4);
}

.quiz-promo-button:active {
    transform: translateY(0);
}

/* Темная тема */
.dark-theme .quiz-promo-section {
    background: linear-gradient(135deg, rgb(255 82 82 / 2%) 0%, rgba(255, 107, 107, 0.08) 100%);
    border-color: rgba(255, 82, 82, 0.4);
}

.dark-theme .quiz-promo-title {
    color: #e0e0e0;
}

.dark-theme .quiz-promo-description {
    color: #b0b0b0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .quiz-promo-content {
        flex-direction: column;
        text-align: center;
    }
    
    .quiz-promo-icon {
        font-size: 40px;
    }
    
    .quiz-promo-title {
        font-size: 20px;
    }
    
    .quiz-promo-description {
        font-size: 14px;
    }
    
    .quiz-promo-button {
        width: 100%;
        padding: 12px 24px;
    }
}

@media (max-width: 480px) {
    .quiz-promo-section {
        padding: 20px;
    }
    
    .quiz-promo-icon {
        font-size: 36px;
    }
    
    .quiz-promo-title {
        font-size: 18px;
    }
}

.swiper-scrollbar {
    &.swiper-scrollbar-horizontal, .swiper-horizontal>& {
        z-index: 0 !important;
    }
}

.ul-span1{
    padding-left: 2px;
}
.li-span1{
    font-size: 16px;
    font-weight: 600;
}

.h2-title-review{
    font-size: 20px !important;
    border: none !important;
}

.game-promo-icon{
    max-width: 120px;
}

.game-promo-icon img{
    max-width: 120px;
}

/* ===== КЛЮЧЕВЫЕ ЭПИЗОДЫ АКТЕРА ===== */
.actor-key-episodes {
    max-width: 1920px;
    margin: 15px auto 0 auto;
    background: #191212;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.actor-key-episodes-title {
    margin-bottom: 20px;
}

.actor-key-episodes-title h2 {
    font-size: 19px;
    color: #cdc4c4;
    text-align: left;
    margin: 0;
    font-weight: 600;
}

.actor-key-episodes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.actor-key-episode-card {
    display: flex;
    flex-direction: column;
    background: #100101;
    border: 1px solid #750000;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.actor-key-episode-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: inherit;
}

.actor-key-episode-poster {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #222020;
    position: relative;
}

.actor-key-episode-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.actor-key-episode-poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    color: #666;
}

.actor-key-episode-play-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 2;
}

.actor-key-episode-card:hover .actor-key-episode-play-btn {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.75);
}

.actor-key-episode-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.actor-key-episode-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 0.9em;
    color: #fff;
    font-weight: 500;
    padding: 8px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
    backdrop-filter: blur(4px);
}

.actor-key-episode-title {
    font-size: 0.95em;
    font-weight: 600;
    color: #cdc4c4;
    margin-bottom: 8px;
    line-height: 1.3;
}

.actor-key-episode-description {
    font-size: 0.9em;
    color: #aaa;
    line-height: 1.4;
    margin-top: auto;
}

/* Адаптивность для ключевых эпизодов */
@media (max-width: 1024px) {
    .actor-key-episodes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .actor-key-episodes {
        padding: 20px 15px;
    }
    
    .actor-key-episodes-title h2 {
        font-size: 16px;
    }
    
    .actor-key-episodes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .actor-key-episode-content {
        padding: 12px;
    }
    
    .actor-key-episode-meta {
        font-size: 0.85em;
    }
    
    .actor-key-episode-title {
        font-size: 0.9em;
    }
    
    .actor-key-episode-description {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .actor-key-episodes {
        padding: 15px 10px;
        margin: 15px 10px 0 10px;
    }
    
    .actor-key-episodes-title h2 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .actor-key-episodes-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .actor-key-episode-card {
        min-width: 280px;
        max-width: 100%;
    }
    
    .actor-key-episode-content {
        padding: 12px;
    }
    
    .actor-key-episode-meta {
        font-size: 0.85em;
    }
    
    .actor-key-episode-title {
        font-size: 0.85em;
    }
    
    .actor-key-episode-description {
        font-size: 0.8em;
    }
}

@media (max-width: 360px) {
    .actor-key-episodes {
        padding: 12px 8px;
        margin: 12px 8px 0 8px;
    }
    
    .actor-key-episodes-title h2 {
        font-size: 16px;
    }
    
    .actor-key-episode-card {
        min-width: 280px;
    }
    
    .actor-key-episode-content {
        padding: 10px;
    }
    
    .actor-key-episode-meta {
        font-size: 0.8em;
    }
}

@media (max-width: 320px) {
    .actor-key-episodes {
        padding: 10px 5px;
        margin: 10px 5px 0 5px;
    }
    
    .actor-key-episodes-title h2 {
        font-size: 15px;
    }
    
    .actor-key-episode-card {
        min-width: 280px;
    }
    
    .actor-key-episode-meta {
        font-size: 0.8em;
    }
    
    .actor-key-episode-title {
        font-size: 0.8em;
    }
    
    .actor-key-episode-description {
        font-size: 0.75em;
    }
}

/* Навигация между актерами */
.actor-navigation {
    margin: 30px 0;
    padding: 0;
}

.actor-navigation-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-actor {
    padding: 12px;
    background: #160101;
    border: 1px solid #650404;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color, #cdc4c4);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    min-width: fit-content;
    width: auto;
}

.nav-actor:hover {
    border-color: var(--accent-color, #ff5252);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 82, 82, 0.2);
}

.nav-actor.prev-actor {
    text-align: left;
    justify-content: flex-start;
}

.nav-actor.next-actor {
    text-align: right;
    justify-content: flex-end;
}

.nav-actor-name {
    font-size: 0.85em;
    color: var(--text-color, #cdc4c4);
    line-height: 1.3;
    white-space: nowrap;
    flex: 0 1 auto;
}

.nav-actor-arrow {
    flex-shrink: 0;
    color: var(--text-color, #cdc4c4);
    transition: transform 0.3s ease;
}

.nav-actor.prev-actor:hover .nav-arrow-left {
    transform: translateX(-3px);
}

.nav-actor.next-actor:hover .nav-arrow-right {
    transform: translateX(3px);
}

/* Адаптивность для навигации актеров */
@media (max-width: 768px) {
    .actor-navigation-container {
        gap: 15px;
        justify-content: flex-start;
    }
    
    .nav-actor {
        max-width: calc(50% - 7.5px);
        flex: 0 1 calc(50% - 7.5px);
    }
    
    .nav-actor.next-actor {
        justify-content: flex-end;
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .actor-navigation-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-actor {
        max-width: 100%;
        flex: 1 1 100%;
    }
    
    .nav-actor.next-actor {
        justify-content: flex-end;
        margin-left: 0;
    }
}

@media (max-width: 540px) {
    .actor-navigation {
        margin: 20px 0;
    }
    
    .nav-actor {
        padding: 10px;
    }
    
    .nav-actor-name {
        font-size: 0.8em;
    }
}

@media (max-width: 540px) {
    .actor-navigation {
        margin: 20px 0;
    }
    
    .nav-actor {
        padding: 12px;
    }
    
    .nav-actor-name {
        font-size: 0.8em;
    }
}