@import url('fonts.css');
  
        /* CSS переменные - светлая тема (как на оригинале) */
        :root {
            --bg-body: #FFF;
            --bg-main: #F8F8F8;
            --bg-nav: #FFF;
            --bg-raiting: #FFF;
            --bg-comments: #FFF;
            --bg-player: #FFF;
            --text-black: #000;
            --text-gray-32: #323232;
            --text-gray-64: #646464;
            --text-gray-96: #969696;
            --main-green: #79C142;
            --main-green-dark: #66AA33;
            --active-player-text: #FFF;
            --border-gray: #EEE;
            --border-green: #79C142;
            --border-green-dark: #66AA33;
            --gradient-menu: linear-gradient(#79C14200, rgba(121, 193, 66, 0.03));
            --rating-plus: #70BF6C;
            --rating-plus-opacity: #70BF6C30;
            --rating-plus-hover: #33A42D;
            --rating-minus: #E7825F;
            --rating-minus-opacity: #E7825F30;
            --rating-minus-hover: #DD4D1B;
            --slider-btn: #79C142;
            --slider-btn-hover: #66AA33;
            --slider-part: #66AA33;
            --player-dark-16: #161616;
            --player-dark-24: #242424;
            --player-dark-32: #323232;
            --player-dark-48: #484848;
            --player-dark-64: #646464;
            --player-green: #79C142;
            --player-green-dark: #66AA33;
            --emotions-gradient: linear-gradient(#79C14200, rgba(121, 193, 66, 0.2));
            --emotions-gradient-active: linear-gradient(#e7c93000, rgba(231, 201, 48, 0.4));
            --emotions-border: #66AA33;
            --emotions-border-active: #e7c930;
            --comments-green: #79C142;
            --buttons-green: #79C142;
            --buttons-green-dark: #66AA33;
            --main-gradient: linear-gradient(135deg, rgb(95 170 33) 0%, rgba(101, 173, 46, 1) 100%);
            --body-bg-pattern: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92U2hXHF/C1M8uP/ZtYdiuj26UdAdQQSXQErwSOMzt/XWRWAz5GuSBIkwG1H3FabJ2OsUOUhGC6tK4EMtJO0ttC6IBD3kM0ve0tJwMdSfjZo+EEISaeTr9P3wYrGjXqyC1krcKdhMpxEnt5JetoulscpyzhXN5FRpuPHvbeQaKxFAEB6EN+cYN6xD7RYGpXpNndMmZgM5Dcs3YSNFDHUo2LGfZuukSWyUYirJAdYbF3MfqEKmjM+I2EfhA94iG3L7uKrR+GdWD73ydlIB+6hgref1QTlmgmbM3/LeX5GI1Ux1RWpgxpLuZ2+I+IjzZ8wqE4nilvQdkUdfhzI5QDWy+kw5Wgg2pGpeEVeCCA7b85BO3F9DzxB3cdqvBzWcmzbyMiqhzuYqtHRVG2y4x+KOlnyqla8AoWWpuBoYRxzXrfKuILl6SfiWCbjxoZJUaCBj1CjH7GIaDbc9kqBY3W/Rgjda1iqQcOJu2WW+76pZC9QG7M00dffe9hNnseupFL53r8F7YHSwJWUKP2q+k7RdsxyOB11n0xtOvnW4irMMFNV4H0uqwS5ExsmP9AxbDTc9JwgneAT5vTiUSm1E7BSflSt3bfa1tv8Di3R8n3Af7MNWzs49hmauE2wP+ttrq+AsWpFG2awvsuOqbipWHgtuvuaAE+A1Z/7gC9hesnr+7wqCwG8c5yAg3AL1fm8T9AZtp/bbJGwl1pNrE7RuOX7PeMRUERVaPpEs+yqeoSmuOlokqw49pgomjLeh7icHNlG19yjs6XXOMedYm5xH2YxpV2tc0Ro2jJfxC50ApuxGob7lMsxfTbeUv07TyYxpeLucEH1gNd4IKH2LAg5TdVhlCafZvpskfncCfx8pOhJzd76bJWeYFnFciwcYfubRc12Ip/ppIhA1/mSZ/RxjFDrJC5xifFjJpY2Xl5zXdguFqYyTR1zSp1Y9p+tktDYYSNflcxI0iyO4TPBdlRcpeqjK/piF5bklq77VSEaA+z8qmJTFzIWiitbnzR794USKBUaT0NTEsVjZqLaFVqJoPN9ODG70IPbfBHKK+/q/AWR0tJzYHRULOa4MP+W/HfGadZUbfw177G7j/OGbIs8TahLyynl4X4RinF793Oz+BU0saXtUHrVBFT/DnA3ctNPoGbs4hRIjTok8i+algT1lTHi4SxFvONKNrgQFAq2/gFnWMXgwffgYMJpiKYkmW3tTg3ZQ9Jq+f8XN+A5eeUKHWvJWJ2sgJ1Sop+wwhqFVijqWaJhwtD8MNlSBeWNNWTa5Z5kPZw5+LbVT99wqTdx29lMUH4OIG/D86ruKEauBjvH5xy6um/Sfj7ei6UUVk4AIl3MyD4MSSTOFgSwsH/QJWaQ5as7ZcmgBZkzjjU1UrQ74ci1gWBCSGHtuV1H2mhSnO3Wp/3fEV5a+4wz//6qy8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==);
            
            --news-accent: #8DD556;
            --news-accent-2: #65AD2E;
            --news-card-bg: #ffffff;
            --news-card-border: #eaeaea;
                
            /* Новые переменные для блока серий */
            --episodes-bg: #FFF;
            --episodes-title-h2: #000;
        }


  
        /* Базовые стили */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'PT Sans', Arial, sans-serif;
        }

        body {
            background-color: var(--bg-body);
            background-image: var(--body-bg-pattern);
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        h1, h2, h3, h4, .modal-title, .rating-title, .news-title {font-family: "Bebas Neue", Arial, sans-serif;letter-spacing: 1px;}
        
        .app-container {
            width: 100%;
            max-width: 1100px;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* Шапка / Навигация */
        .header {
            margin-top: 80px;
            position: sticky;
            top: 0;
            width: 100%;
            height: 80px;
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            border-bottom: 1px solid var(--border-gray);
            background: var(--bg-nav);
            z-index: 100;
        }

        @media (max-width: 500px) {
            .header { margin-top: 0; }
        }

        .logo-area {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 20px;
            padding: 0 20px;
        }

        .logo-icon svg {
            height: 40px;
        }

        .logo-text-block {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .logo-title {
            font-size: 18px;
            text-transform: uppercase;
            font-weight: bold;
            line-height: 1;
            color: var(--text-black);
            transition: color 0.2s;
        }

        @media (max-width: 500px) { .logo-title { font-size: 20px; } }
        @media (max-width: 400px) { .logo-title { font-size: 18px; } }

        .logo-area:hover .logo-title {
            color: var(--main-green);
        }

        .logo-brand {
            font-size: 11px;
            text-transform: uppercase;
            font-weight: bold;
            line-height: 1;
            color: var(--text-gray-64);
        }

        /* Меню */
        .nav-menu {
            height: 100%;
            display: flex;
            flex-direction: row;
            align-items: center;
            padding: 0 20px 0 0;
            list-style: none;
            gap: 0;
        }

        .nav-item {
            height: 100%;
            display: flex;
            align-items: center;
        }

        .nav-link,
        .nav-btn {
            height: 80px;
            display: inline-flex;
            flex-direction: row;
            align-items: center;
            gap: 10px;
            padding: 0 20px;
            border: none;
            border-bottom: 1px solid var(--border-gray);
            text-decoration: none;
            background: var(--bg-nav);
            transition: 0.2s;
            color: var(--text-gray-32);
            cursor: pointer;
            font-size: 15px;
            font-weight: 500;
            text-transform: uppercase;
        }

        .nav-link:hover,
        .nav-btn:hover {
            border-bottom-color: var(--border-green-dark);
        }

        .nav-link svg,
        .nav-btn svg {
            stroke: var(--text-gray-32);
        }

        .nav-link:hover svg,
        .nav-btn:hover svg {
            stroke: var(--main-green-dark);
        }

        .nav-link:hover span,
        .nav-btn:hover span {
            color: var(--main-green-dark);
        }

        .nav-right {
            display: flex;
            align-items: center;
            gap: 16px;
            padding-right: 10px;
        }

        /* Таймер "до новой серии" (в стилистике) */
        .countdown {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 0 10px 0 0;
            user-select: none;
        }

        .countdown-label {
            font-size: 13px;
            color: var(--text-gray-64);
            text-transform: uppercase;
            letter-spacing: 0.4px;
            white-space: nowrap;
        }

        .countdown-boxes {
            display: flex;
            align-items: flex-end;
            gap: 6px;
        }

        .digit-group {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            min-width: 62px;
        }

        .digits {
            display: flex;
            gap: 4px;
        }

        .digit {
            width: 22px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            color: var(--main-green-dark);
            font-weight: 700;
            font-size: 20px;
            line-height: 1;
            border:1px solid var(--main-green-dark);
        }

        .digit-caption {
            font-size: 12px;
            text-transform: lowercase;
            letter-spacing: 0.2px;
            line-height: 1;
            opacity: 0.95;
        }

        @media (max-width: 980px) {
            .countdown-label { display: none; }
        }
        @media (max-width: 860px) {
            .digit-group { min-width: 60px; }
            .digit { width: 24px; height: 32px; font-size: 18px; }
        }
        @media (max-width: 760px) {
            .nav-right { display: none; } /* на узких экранах, чтобы не ломать шапку */
        }

        /* Выпадающее меню сезонов под шапкой */
        .seasons-dropdown {
            position: sticky;
            top: 80px;
            z-index: 99;
            width: 100%;
            border-bottom: 1px solid var(--border-gray);
            background: rgba(255,255,255,0.92);
            backdrop-filter: blur(10px);
            display: none;
        }

        .seasons-dropdown.open { display: block; }

        .seasons-dropdown-inner {
            padding: 16px 20px 18px;
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 14px;
        }

        .season-dd-card {
            text-decoration: none;
            display: flex;
            flex-direction: column;
            gap: 8px;
            border-radius: 8px;
            overflow: hidden;
            background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient(90deg, rgb(116 189 61), rgb(204 204 204)) border-box;
            border: 1px solid transparent;
            transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
        }

        .season-dd-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.08);
        }

        .season-dd-thumb {
            width: 100%;
            aspect-ratio: 8 / 5;
            object-fit: cover;
            background: #ddd;
        }

        .season-dd-meta {
            padding: 10px 10px 12px;
            display: flex;
            flex-direction: column;
            gap: 2px;
            text-align: center;
        }

        .season-dd-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-gray-32);
            line-height: 1.2;
        }

        .season-dd-sub {
            font-size: 12px;
            color: var(--text-gray-64);
            line-height: 1.2;
        }

        @media (max-width: 980px) {
            .seasons-dropdown-inner { grid-template-columns: repeat(4, 1fr); }
        }
        @media (max-width: 760px) {
            .seasons-dropdown-inner { grid-template-columns: repeat(2, 1fr); }
        }

        /* Баннер с рекламой */
        .ad-banner {
            width: 100%;
            display: flex;
            justify-content: center;
            border-top: 1px solid var(--border-gray);
            background: #FFF;
        }

        .ad-placeholder {
            width: 600px;
            height: 320px;
            background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-gray-64);
            font-size: 18px;
        }

        /* Основной контент */
        .main-content {
            width: 100%;
            background: var(--bg-main);
            padding-bottom: 20px;
        }

        /* --- НОВАЯ КАРТОЧКА ФИЛЬМА --- */
        /* --- ИСПРАВЛЕННЫЙ БЛОК film-card --- */
        .film-card {
            display: flex;
            flex-direction: row;
            gap: 30px;
            padding: 20px;
            align-items: flex-start;
            position: relative;
            background-image: url('');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }

        /* Затемняющий слой для читаемости текста */
        .film-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9); /* Оставляем как есть */
            z-index: 0;
            pointer-events: none;
        }

        /* Поднимаем контент над затемнением */
        .film-card > * {
            position: relative;
            z-index: 1;
        }

        /* --- ИСПРАВЛЕНИЯ ЦВЕТА ТЕКСТА --- */
        .film-card .film-title { color: #FFFFFF; }
        .film-card .film-title-alt { color: #CCCCCC; }
        .film-card .prop-name { color: #AAAAAA; }
        .film-card .prop-value { color: #FFFFFF; }
        .film-card .prop-value a { color: #79C142; }
        .film-card .prop-value a:hover {backdrop-filter:blur(12px); color: #8DD556; text-decoration: none; }
        .film-card .seasons-title { color: #FFFFFF; }
        .film-card .seasons-link { color: #79C142; }
        .film-card .seasons-link:hover { color: #8DD556; }
        .film-card .season-card h3 { color: #FFFFFF; }

        .seasons-section {border-top:1px solid #242424!important;}

        /* Левая колонка (постер + трейлер + рейтинг) */
        .poster-column {
            display: flex;
            flex-direction: column;
            gap: 20px;
            width: 240px; /* Фиксированная ширина под постер */
            flex-shrink: 0;
            position: sticky;
            top: 100px;
            align-self: flex-start;
            height: fit-content;
        }

        .poster-wrapper {
            display: flex;
            flex-direction: column;
            border-radius: 6px;
            overflow: hidden;
            position: relative;
            box-shadow: 0 10px 25px rgba(0,0,0,0.35);
        }

        .poster-img {
            width: 100%;
            height: auto;
            aspect-ratio: 2 / 3;
            object-fit: cover;
            background: #ddd;
        }

        /* --- РЕЙТИНГ НА ПОСТЕРЕ (как на примере) --- */
        .poster-rating {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 60px;
            gap:10px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 35%, rgba(0,0,0,0.92) 100%);
        }

        .poster-rate-btn {
            height: 40px;
            min-width: 86px;
            padding: 0 12px;
            border: none;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            cursor: pointer;
            background: rgba(0,0,0,0.08);
            backdrop-filter: blur(3px);
        }

        .poster-rate-btn:hover {
            background: rgba(255,255,255,0.24);
            transform: translateY(-1px);
        }

        .poster-rate-btn svg {
            width: 18px;
            height: 18px;
            stroke: #FFF;
        }

        .poster-rate-count {
            font-size: 13px;
            font-weight: 600;
            color: #FFF;
            letter-spacing: 0.2px;
        }

        .poster-rate-badge {
            width: 60px;
            height: 50px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0,0,0,0.55);
            backdrop-filter: blur(8px);
            box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 10px 20px rgba(0,0,0,0.25);
            color: #FFF;
            font-weight: 800;
            font-size: 22px;
            line-height: 1;
            margin-top: -28px; /* чуть "выпирает" вверх как на примере */
        }

        /* Правая колонка (информация) */
        .info-column {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .film-title {
            font-size: 28px;
            font-weight: bold;
            color: var(--text-black);
            line-height: 1.2;
            
        }

        .film-title-alt {
            font-size: 16px;
            color: var(--text-gray-64);
            margin-top: -15px;
            font-weight: 400;
        }

        /* Сетка для свойств */
        .film-props-grid {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-top: 5px;
        }

        .film-props-grid2 {
            display: flex;
            flex-direction: row;
            gap: 40px;
            margin-top: 5px;
            padding:12px 0;
            border-top:1px solid #242424;
            border-bottom:1px solid #242424;
        }

        .props-column {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .last-episode-link a {text-decoration:none;color:var(--main-green-dark)!important}

        /* Адаптивность - на мобильных схлопываем в одну колонку */
        @media (max-width: 700px) {
            .film-props-grid {
                flex-direction: column;
                gap: 12px;
            }
        }

        .prop-item {
            display: flex;
            flex-direction: row;
            line-height: 1.5;
            font-size: 15px;
        }

        .prop-name {
            width: 110px; /* Фиксированная ширина для лейбла */
            flex-shrink: 0;
            font-weight: 500;
            color: var(--text-gray-32);
        }

        .prop-value {
            flex-grow: 1;
            color: var(--text-gray-64);
        }

        .prop-value a {
            color: var(--main-green-dark);
            text-decoration: none;
        }
        .prop-value a:hover { text-decoration: underline; }

        /* Блок с сезонами (как у вас) */
        .seasons-section {
            display: flex;
            flex-direction: column;
            gap: 20px;
            padding-top: 20px;
            margin-top: 10px;
            border-top: 1px solid var(--border-gray);
        }

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

        .seasons-title {
            font-size: 18px;
            font-weight: bold;
            color: var(--text-gray-32);
        }

        .seasons-link {
            display: flex;
            align-items: center;
            font-size: 15px;
            font-weight: 500;
            text-decoration: none;
            color: var(--text-gray-32);
        }

        .seasons-link:hover { color: var(--main-green-dark); }

        .seasons-slider {
            position: relative;
            max-width: 800px;
        }

        .slider-track {
            white-space: nowrap;
            overflow: hidden;
            scroll-behavior: smooth;
            font-size: 0;
        }

        .season-card {
            width: calc(20% - 8px);
            display: inline-flex;
            flex-direction: column;
            gap: 10px;
            margin-left: 10px;
            text-decoration: none;
            vertical-align: top;
        }

        .season-card:first-child { margin-left: 0; }

        .season-card img {
            width: 100%;
            aspect-ratio: 2 / 3;
            border-radius: 5px;
            background: #ccc;
        }

        .season-card h3 {
            font-size: 16px;
            font-weight: 500;
            color: var(--text-gray-32);
            white-space: normal;
            word-break: break-word;
            line-height: 1.3;
        }

        .slider-btn {
            width: 48px;
            height: 48px;
            position: absolute;
            top: 50%;
            transform: translateY(-100%);
            border: none;
            background: var(--main-gradient);
            border-radius: 0 5px 5px 0;
            cursor: pointer;
            opacity: 0.9;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .slider-btn.right { right: 0; border-radius: 5px 0 0 5px; }
        .slider-btn.disabled { opacity: 0; visibility: hidden; }
        .slider-btn svg { stroke: white; }

    
        /* ====== NEW: News block (before Cast) ====== */
    .news-section{
      padding:40px 20px 0;
    }
    .news-section h2{
          padding-bottom: 20px;
    font-size: 22px;
    font-weight: bold;
    color: var(--text-gray-32);
    border-bottom: 1px solid var(--border-gray);
    margin-bottom: 30px;
    }

    .news-list{
      display:flex;
      flex-direction:column;
      gap:14px;
    }

    .news-item{
      display:grid;
      grid-template-columns: 140px 1fr;
      gap:14px;
      align-items:stretch;
      border:1px solid var(--news-card-border);
      border-radius:6px;
      box-shadow: 0 12px 24px rgba(0,0,0,0.04);
      overflow:hidden;
      transition: transform .12s ease, box-shadow .12s ease;
    }

    .news-thumb{
      background:#111;
      display:flex;
      align-items:center;
      justify-content:center;
      overflow:hidden;
      border-right:1px solid rgba(0,0,0,0.04);
    }
    .news-thumb img{
      width:100%;
      height:100%;
      object-fit:cover;
      display:block;
    }

    .news-body{
      padding:14px 14px 14px 0;
      display:flex;
      flex-direction:column;
      gap:8px;
      justify-content:center;
    }
    .news-title{
          color: var(--text-black);
        font-size: 20px;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 4px;
    }
    .news-excerpt{
      font-size:14px;
      color: var(--text-gray-64);
      line-height:1.55;
      display:-webkit-box;
      -webkit-box-orient:vertical;
      -webkit-line-clamp:2;
      overflow:hidden;
      padding-right:14px;
    }
    .news-meta{
      display:flex;
      align-items:center;
      gap:10px;
      font-size:12px;
      color: var(--text-gray-96);
      font-weight:700;
    }
    .news-pill{
      display:inline-flex;
      align-items:center;
      gap:8px;
      padding:6px 10px;
      border-radius:999px;
      background: rgba(121,193,66,0.10);
      border:1px solid rgba(121,193,66,0.20);
      color: var(--main-green-dark);
      font-weight:900;
      letter-spacing:.2px;
    }

    @media (max-width: 820px){
      .news-item{
        grid-template-columns: 92px 100px 1fr;
      }
      .news-day{ font-size:38px; }
    }
    @media (max-width: 560px){
      .news-item{
        grid-template-columns: 92px 1fr;
        grid-template-rows: auto auto;
      }
      .news-thumb{ grid-column: 2; grid-row: 1 / span 2; border-right:none; border-left:1px solid rgba(0,0,0,0.04); }
      .news-body{ grid-column: 1; grid-row: 2; padding: 0 14px 14px; }
    }




/* ====== NEW: Rating/Share block directly under player (per screenshot) ====== */
    .rating-share-wrap{
    }
    .rating-share-card{
      background: #0f0f0f;
      color:#fff;
      box-shadow: 0 18px 40px rgba(0,0,0,0.16);
      border: 1px solid rgba(255,255,255,0.06);
      overflow:hidden;
    }
    .rating-share-inner{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:18px;
      padding: 16px 16px;
    }
    .rating-left{
      display:flex; align-items:center; gap:14px;
    }
    .rating-badge{
      width:92px;
      height:56px;
      border-radius:14px;
      background: rgba(255,255,255,0.08);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
      display:flex;
      align-items:center;
      justify-content:center;
      gap:10px;
      padding: 0 10px;
    }
    .rating-score{
      font-size:28px;
      font-weight:900;
      line-height:1;
    }
    .rating-emoji{
      font-size:22px;
      transform: translateY(1px);
    }
    .rating-meta{
      display:flex;
      flex-direction:column;
      gap:2px;
    }
    .rating-title{
      font-size:22px;
      line-height:1;
    }
    .rating-votes{
      font-size:13px;
      color: rgba(255,255,255,0.70);
    }
    .share-right{
      display:flex;
      align-items:center;
      gap:12px;
    }
    .share-label{
      font-size:13px;
      color: rgba(255,255,255,0.65);
      text-transform:uppercase;
      letter-spacing:.4px;
      white-space:nowrap;
    }
    .share-buttons{
      display:flex;
      align-items:center;
      gap:8px;
    }
    .share-btn{
      width:40px; height:40px;
      border-radius:12px;
      border:none;
      cursor:pointer;
      background: rgba(255,255,255,0.10);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
      display:flex; align-items:center; justify-content:center;
      transition: transform .12s ease, background .12s ease;
    }
    .share-btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,0.16); }
    .share-btn svg{ width:18px; height:18px; fill:#fff; opacity:.92; }

    @media (max-width: 820px){
      .rating-share-inner{ flex-direction:column; align-items:flex-start; }
      .share-right{ width:100%; justify-content:space-between; }
    }
        
        /* --- НОВЫЙ БЛОК "О ЧЕМ СЕРИАЛ" (перед плеером) --- */
        .about-series-section {
            padding: 20px;
        }
        .about-series-section h2 {
            font-size: 24px;
            font-weight: bold;
            
            margin-bottom: 20px;
        }
        .info-column .about-series-section h2 {color: var(--episodes-bg);}
        .about-series-content {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        .about-series-content p {
            font-size: 16px;
            color: var(--text-gray-96);
            line-height: 1.6;
            margin: 0;
        }

        /* Плеер (без изменений) */
        .player-section {
            display: flex;
            flex-direction: column;
            padding-top: 20px;
        }

        .player-title {
            padding: 0 20px 20px;
            font-size: 22px;
            font-weight: bold;
            color: var(--text-gray-32);
        }

        .player-container { display: flex; flex-direction: column; }

        .video-wrapper { width: 100%; display: flex; flex-direction: column; }

        .source-tabs {
            display: flex;
            flex-direction: row;
        }
        
        .season-tabs {margin-bottom:15px;}

        .source-tab {
            display: flex;
            align-items: center;
            padding: 0 20px;
            border: none;
            height: 50px;
            font-size: 15px;
            font-weight: 500;
            color: #FFF;
            background: var(--player-dark-16);
            cursor: pointer;
        }

        .source-tab:hover { background: var(--player-dark-32); }
        .source-tab.active { background: var(--main-gradient); color: var(--active-player-text); }

        .video-frame {
            position: relative;
            width: 100%;
            height: 460px;
            background: var(--player-dark-16);
        }

        .video-frame iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }

        /* Блок серий (без изменений) */
        .episodes-grid-section {
            padding: 20px;
            box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.05);
        }

        .season-block { margin-bottom: 30px; }
        .season-block:last-child { margin-bottom: 0; }

        .season-header {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
        }

        .season-header svg { width: 20px; height: 20px; fill: var(--main-green); }
        .season-header h2 { font-size: 22px; text-transform: uppercase; color: var(--episodes-title-h2); margin-top:15px;}

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

        .episode-card {
            position: relative;
            display: flex;
            flex-direction: column;
            gap: 10px;
            text-decoration: none;
            text-align: center;
            font-size: 15px;
            font-weight: 500;
            color: #FFF;
        }

        .episode-card img {
            width: 100%;
            aspect-ratio: 8 / 5;
            object-fit: cover;
            border-radius: 5px;
        }

        .episode-card p {
            position: absolute;
            width: 100%;
            padding: 0 10px;
            bottom: 10px;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 3;
            overflow: hidden;
            line-height: 1.5;
            z-index: 30;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
        }
        .episode-duration {
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: rgba(0, 0, 0, .7);
            padding: 6px;
            border-radius: 4px;
            font-size: 12px;
        }

        .episode-hover {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            z-index: 20;
            background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,1) 100%);
            backdrop-filter: blur(0);
            transition: 0.3s;
            border-radius: 5px;
        }

        .episode-card:hover .episode-hover { backdrop-filter: blur(2px); }
        .episode-hover svg { opacity: 0; transition: 0.3s; }
        .episode-card:hover .episode-hover svg { opacity: 1; }

        @media (max-width: 860px) { .episodes-row { grid-template-columns: repeat(5, 1fr); } }
        @media (max-width: 720px) { .episodes-row { grid-template-columns: repeat(4, 1fr); } }
        @media (max-width: 600px) { .episodes-row { grid-template-columns: repeat(3, 1fr); } }
        @media (max-width: 460px) { .episodes-row { grid-template-columns: repeat(2, 1fr); } }
        @media (max-width: 300px) { .episodes-row { grid-template-columns: repeat(1, 1fr); } }

        /* Отзывы (без изменений) */
        .reviews-section {
            display: flex;
            flex-direction: column;
            gap: 20px;
            padding: 40px 0 0;
        }

        .reviews-container { display: flex; flex-direction: row; }
        .comments-panel { width: 65%; display: flex; flex-direction: column; gap: 20px; }
        .comments-panel h2 { padding: 0 20px; font-size: 20px; font-weight: bold; color: var(--text-gray-32); }
        .comments-list { display: flex; flex-direction: column; gap: 20px; padding: 0 20px; }

        .comment-item { display: flex; flex-direction: row; gap: 10px; }

        .comment-avatar {
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 5px;
            background: var(--main-gradient);
            width:40px;
            height:40px;
        }
        
        .comment-avatar img {width:60px;height:60px;}

        .comment-avatar svg { width: 20px; height: 20px; stroke: white; margin: 10px; }

        .comment-body {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 0 20px 10px;
            border: 1px solid var(--border-gray);
            border-radius: 5px;
            background: var(--bg-comments);
        }

        .comment-header {
            height: 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--border-gray);
        }

        .comment-author { font-size: 15px; font-weight: 500; color: var(--text-gray-32); }
        .comment-date { font-size: 13px; color: var(--text-gray-96); }
        .comment-text { font-size: 15px; color: var(--text-gray-64); line-height: 1.5; }

        .load-more-btn { display: flex; justify-content: center; }
        .load-more-btn button {
            height: 40px;
            padding: 0 40px;
            border: none;
            border-radius: 5px;
            font-size: 15px;
            font-weight: 500;
            color: white;
            background: var(--main-gradient);
            cursor: pointer;
        }

        /* Форма комментария */
        .add-comment-panel { width: 35%; padding: 0 20px; }
        .comment-form-sticky {
            position: sticky;
            top: 100px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        .comment-form-sticky h2 { font-size: 22px; font-weight: bold; color: var(--text-gray-32); }
        .comment-form { display: flex; flex-direction: column; gap: 20px; }

        .form-row { display: flex; flex-direction: column; gap: 10px; }
        .form-row label { font-size: 13px; font-weight: 500; color: var(--text-gray-64); }
        .form-row input,
        .form-row textarea {
            width: 100%;
            padding: 10px 20px;
            border: 1px solid var(--border-gray);
            border-radius: 5px;
            font-size: 15px;
            color: var(--text-gray-32);
            background: var(--bg-comments);
        }
        .form-row textarea { min-height: 100px; resize: vertical; }
        .form-row input:focus,
        .form-row textarea:focus { border-color: var(--border-green); outline: none; }

        .captcha-placeholder {
            width: 100%;
            height: 78px;
            background: #f0f0f0;
            border: 1px dashed #79C142;
            border-radius: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-gray-64);
        }

        .submit-btn {
            height: 40px;
            border: none;
            border-radius: 5px;
            font-size: 15px;
            font-weight: 500;
            color: white;
            background: var(--main-gradient);
            cursor: pointer;
        }

        /* Краткое содержание */
        .content-section { padding: 40px 20px 0; }

        .content-section h2 {
            padding-bottom: 20px;
            font-size: 22px;
            font-weight: bold;
            color: var(--text-gray-32);
            border-bottom: 1px solid var(--border-gray);
            margin-bottom: 20px;
        }

        .content-section p {
            font-size: 15px;
            color: var(--text-gray-32);
            line-height: 1.6;
            margin-top: 15px;
        }
        .content-section p:first-of-type { margin-top: 0; }

        
        /* ===== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ БЛОКА АКТЕРОВ НА ГЛАВНОЙ ===== */
    .cast-grid-section {
        padding: 40px 20px 0;
    }
    
    /* Заголовок с ссылкой */
    .cast-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--border-gray);
        margin-bottom: 30px;
    }
    
    .cast-header h2 {
        font-size: 22px;
        font-weight: bold;
        color: var(--text-gray-32);
        margin: 0;
    }
    
    .cast-header-link {
        font-size: 15px;
        font-weight: 500;
        text-decoration: none;
        color: var(--text-gray-32);
        transition: color 0.2s;
    }
    
    .cast-header-link:hover {
        color: var(--main-green-dark);
    }
    
    /* Футер с кнопкой "Показать всех" */
    .cast-footer {
        display: flex;
        justify-content: center;
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid var(--border-gray);
    }
    
    .cast-footer-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 30px;
        background: var(--main-gradient);
        color: white;
        text-decoration: none;
        border-radius: 8px;
        font-weight: 600;
        font-size: 15px;
        transition: all 0.2s ease;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .cast-footer-link:hover {
        transform: translateY(-2px);
        filter: brightness(1.05);
        box-shadow: 0 10px 20px rgba(101, 173, 46, 0.3);
    }
    
    .cast-footer-link:active {
        transform: translateY(1px);
        box-shadow: 0 5px 10px rgba(101, 173, 46, 0.2);
    }
    
    /* Адаптивность для заголовка */
    @media (max-width: 800px) {
        .cast-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
        }
    }
    
    @media (max-width: 500px) {
        .cast-footer-link {
            width: 100%;
            text-align: center;
        }
    }

        /* Футер */
        .footer {
            border-top: 1px solid var(--border-gray);
            padding: 20px;
            font-size: 14px;
            color: var(--text-gray-64);
            line-height: 1.5;
            background: var(--bg-main);
        }

        .footer a {
            color: var(--text-gray-32);
            text-decoration: none;
            font-weight: 500;
        }

        .footer a:hover { color: var(--main-green-dark); }

        /* Адаптивность */
        @media (max-width: 950px) {
            .reviews-container { flex-direction: column-reverse; }
            .comments-panel { width: 100%; }
            .add-comment-panel { width: 100%; }
        }

        @media (max-width: 800px) {
            .poster-column { position: static; }
        }

        @media (max-width: 700px) {
            .film-card { flex-direction: column; align-items: center; }
            .poster-column { width: 240px; }
            .info-column { width: 100%; }
        }

        @media (max-width: 600px) {
            .prop-item { flex-direction: column; gap: 2px; }
            .prop-name { width: 100%; }
        }
        
        
        /* ===== Блок Hero в стилистике hul.html ===== */
:root {
    --hero-h: 440px;
    --hero-green: #79C142;
    --hero-green-dark: #66AA33;
    --hero-orange: #FF8A00;
}

.hero {
    position: relative;
    width: 100%;
    border-radius: 28px;
    min-height: auto;
    margin: 30px 0;
    background-color: #0f0f0f;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    border-radius: 10px;
    overflow: hidden;
    font-family: 'PT Sans', Arial, sans-serif;
}

/* Затемнение в стиле hul (как на film-card) */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.85) 50%,
        rgba(0, 0, 0, 0.6) 80%,
        rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    padding: 30px 28px 34px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.hero__left {
    max-width: 700px;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero__logo {
    height: 60px;
    width: auto;
    display: block;
    margin-bottom: 5px;
    filter: brightness(1.05);
    object-fit: contain;
}

.hero__desc {
    font-family: 'PT Sans', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 15px 0;
    max-width: 600px;
}

.hero__meta {
    font-family: 'PT Sans', Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
        color: var(--text-gray-96);
    margin: 0 0 8px 0;
}

.hero__metaLabel {
    font-family: 'PT Sans', Arial, sans-serif;
    font-weight: 700;
    color: #FFFFFF;
    margin-right: 8px;
}

.hero__buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Главная кнопка в стиле hul (зеленый градиент) */
.hero__btn {
        display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: var(--main-gradient);
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #97E05E 0%, #6FB83A 100%);
}

.hero__btn:active {
    transform: translateY(1px);
    filter: brightness(0.98);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Правая колонка просто для фона */
.hero__right {
    /* Пусто, только для сетки */
}

/* ===== Адаптивность в стиле hul ===== */
@media (max-width: 980px) {
    .hero__inner {
        grid-template-columns: 1fr;
        padding: 30px 24px;
    }
    .hero {
        background-position: 70% center;
    }
    .hero__desc {
        font-size: 15px;
    }
    .hero__meta {
        font-size: 14px;
    }
}

@media (max-width: 700px) {
    .hero__inner {
        padding: 20px 16px;
    }
    .hero__logo {
        height: 50px;
    }
    .hero__btn {
        padding: 12px 24px;
        font-size: 15px;
    }
    .hero__buttons {
        gap: 12px;
    }
}

@media (max-width: 500px) {
    .hero__desc, .hero__meta {
        font-size: 14px;
    }
    .hero__btn {
        width: 100%;
        justify-content: center;
    }
    .hero__buttons {
        flex-direction: column;
        align-items: stretch;
    }
}
.actor-facts {position:relative;}
.actor-facts li:before {
    content: "•";
    color: var(--main-green);
    position: absolute;
    left: 0;
}

/* ===== ХЛЕБНЫЕ КРОШКИ (BREADCRUMBS) ===== */
.breadcrumbs {
    width: 100%;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-gray);
    padding: 12px 20px;
    margin-top: 0;
    font-size: 14px;
}

.breadcrumbs__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    color: var(--text-gray-64);
}

.breadcrumbs__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-gray-64);
    text-decoration: none;
    transition: color 0.2s;
    padding: 4px 0;
}

.breadcrumbs__link:hover {
    color: var(--main-green);
}

.breadcrumbs__current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-gray-32);
    font-weight: 500;
}

.breadcrumbs__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.breadcrumbs__icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
}

.breadcrumbs__separator {
    display: inline-flex;
    align-items: center;
    color: var(--text-gray-96);
    font-size: 18px;
    line-height: 1;
    margin: 0 2px;
    user-select: none;
}

/* Адаптивность */
@media (max-width: 700px) {
    .breadcrumbs {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .breadcrumbs__icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 500px) {
    .breadcrumbs {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .breadcrumbs__separator {
        font-size: 16px;
    }
}

/* Изображение постера для серии (16:9) */
.episode-poster-img {
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Пустой плеер */
.video-frame-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--player-dark-16);
}

.video-frame-empty p {
    color: var(--text-gray-64);
}

.episode-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    background: var(--player-dark-16);
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}


.nav-arrow-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-gray-32);
    transition: color 0.2s;
    flex: 1;
}

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

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

.nav-arrow-link:hover {
    color: var(--main-green) !important;
}


.nav-arrow-link:hover .nav-arrow-icon {
    background: var(--main-green) !important;
}

.nav-arrow-link:hover svg {
    stroke: white !important;
}

.nav-arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(121, 193, 66, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
    transition: background 0.2s;
}

.nav-next .nav-arrow-icon {
    order: 2;
}

.nav-episode-info {
    display: flex;
    flex-direction: column;
}

.nav-prev .nav-episode-info {
    align-items: flex-start;
}

.nav-next .nav-episode-info {
    align-items: flex-end;
}

.nav-episode-label {
    font-size: 12px;
    color: var(--text-gray-96);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-episode-title {
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.nav-current-episode {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    min-width: 120px;
}

.nav-current-label {
    font-size: 13px;
    color: var(--text-gray-96);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-current-number {
    font-weight: 700;
    font-size: 18px;
    color: var(--main-green);
}

.nav-placeholder {
    flex: 1;
    visibility: hidden;
}

/* Адаптивность для навигации */
@media (max-width: 700px) {
    .episode-navigation {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .nav-arrow-link {
        justify-content: space-between;
        width: 100%;
    }
    
    .nav-prev {
        order: 2;
    }
    
    .nav-next {
        order: 3;
    }
    
    .nav-current-episode {
        order: 1;
        margin-bottom: 5px;
    }
    
    .nav-placeholder {
        display: none;
    }
    
    .nav-episode-title {
        max-width: 150px;
    }
}

/* Текущая серия в списке */
.episode-card.current-episode {
    position: relative;
    border: 2px solid var(--main-green);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #FFF;
    background: transparent;
    cursor: default;
}

.episode-card.current-episode img {
    width: 100%;
    aspect-ratio: 8 / 5;
    object-fit: cover;
    border-radius: 5px;
}

.episode-card.current-episode p {
    position: absolute;
    width: 100%;
    padding: 0 10px;
    bottom: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    line-height: 1.5;
    z-index: 30;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.episode-hover-current {
    opacity: 0.5;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.5) 70%, rgba(0,0,0,0.8) 100%);
}

.episode-hover-current svg {
    opacity: 0.5;
}

.episode-current-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: var(--main-green);
    color: white;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    z-index: 30;
}

/* Кнопка "Показать все" */
.show-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.show-more-btn {
    padding: 10px 30px;
    background: var(--main-gradient);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

/* Ссылка на все серии сезона */
.season-header .seasons-link {
    margin-left: auto;
}

/* Адаптивность для навигации */
@media (max-width: 700px) {
    .episode-navigation {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .nav-arrow-link {
        max-width: 100%;
        justify-content: space-between;
    }
    
    .nav-prev {
        order: 2;
    }
    
    .nav-next {
        order: 3;
    }
    
    .nav-current-episode {
        order: 1;
        margin-bottom: 5px;
    }
    
    .nav-placeholder {
        display: none;
    }
}

.film-title small {font-family: "Bebas Neue", Arial, sans-serif;
    color: var(--text-gray-96);}
    
    
/* Блок "О сериале" */
.about-series-section {
    padding: 20px;
}

.about-series-container {
    padding: 20px;
    margin:-20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background:var(--bg-player);
}

.about-series-title {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.about-series-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--main-gradient);
    border-radius: 2px;
}

.about-series-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.about-series-text {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.about-series-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: var(--main-gradient);
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
}

.about-series-button:active {
    transform: translateY(1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.about-series-button svg {
    transition: transform 0.2s ease;
}

.about-series-button:hover svg {
    transform: scale(1.1);
}

/* Адаптивность */
@media (max-width: 600px) {
    .about-series-container {
        padding: 20px;
    }
    
    .about-series-title {
        font-size: 24px;
    }
    
    .about-series-text {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .about-series-button {
        width: 100%;
        justify-content: center;
    }
}

/* Сериал карточка в стиле movie-card */
.series-card {
    background: #0a0a0a;
    color: #fff;
    padding: 40px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.series-card__inner {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 50px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Постер */
.series-card__poster {
    position: relative;
}

.series-card__poster img {
    width: 100%;
    border-radius: 12px;
    display: block;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    aspect-ratio: 2/3;
    object-fit: cover;
}

.series-card__season-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--main-gradient);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 5;
}

/* Заголовок */
.series-card__title {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 5px;
    letter-spacing: 1px;
    color: #fff;
    line-height: 1.2;
}

.series-card__subtitle {
    font-size: 18px;
    color: var(--main-green);
    margin-bottom: 15px;
    font-weight: 500;
}


/* Верхняя мета */
.series-card__metaTop {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 25px;
}

.series-card__rating {
    font-weight: 700;
    color: var(--main-green);
    background: rgba(121, 193, 66, 0.15);
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid rgba(121, 193, 66, 0.3);
}

/* Кнопки */
.series-card__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.series-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: var(--main-gradient);
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.series-card__btn:hover {
    filter: brightness(1.05);
}

.series-card__btn:active {
    transform: translateY(1px);
    box-shadow: 0 8px 20px rgba(101, 173, 46, 0.3);
}

.series-card__btnIcon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.series-card__circle {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1a1a1a;
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.series-card__circle:hover {
    background: #2a2a2a;
    transform: translateY(-2px);
    border-color: var(--main-green);
    color: var(--main-green);
}

.series-card__circle:active {
    transform: translateY(1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Инфо */
.series-card__info {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.series-card__info p {
    margin: 0;
}

.series-card__info strong {
    color: #fff;
    font-weight: 600;
    margin-right: 8px;
}

/* Мини-список серий */
.series-card__episodes-mini {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 10px;
}

.series-card__episodes-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.series-card__episodes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.series-card__episode-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.series-card__episode-mini:hover {
    background: rgba(121, 193, 66, 0.1);
    border-color: rgba(121, 193, 66, 0.3);
    color: #fff;
    transform: translateX(5px);
}

.series-card__episode-number {
    font-weight: 700;
    color: var(--main-green);
    min-width: 30px;
}

.series-card__episode-title {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Адаптив */
@media (max-width: 1024px) {
    .series-card {
        padding: 30px 20px;
    }

    .series-card__inner {
        grid-template-columns: 240px 1fr;
        gap: 30px;
    }

    .series-card__title {
        font-size: 36px;
    }

    .series-card__btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .series-card__inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .series-card__poster {
        max-width: 260px;
        margin: 0 auto;
    }

    .series-card__title {
        font-size: 32px;
        text-align: center;
    }

    .series-card__metaTop {
        justify-content: center;
    }

    .series-card__actions {
        justify-content: center;
    }

    .series-card__random-label {
        margin: 0 auto 15px;
    }

    .series-card__info {
        text-align: center;
    }

    .series-card__episodes-list {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .series-card__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .series-card__btn {
        justify-content: center;
    }

    .series-card__circle {
        width: 48px;
        height: 48px;
    }

    .series-card__metaTop {
        font-size: 14px;
        gap: 10px;
    }

    .series-card__episodes-list {
        max-width: 100%;
    }
}

/* --- НОВЫЙ БЛОК ТРЕЙЛЕРА (модалка) --- */
        .trailer-section {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .trailer-label {
            font-size: 13px;
            font-weight: 500;
            color: var(--text-gray-64);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .trailer-video {
            width: 100%;
            aspect-ratio: 16 / 9;
            background-color: #2a2a2a;
            border-radius: 6px;
            overflow: hidden;
            position: relative;
            cursor: pointer;
            box-shadow: 0 8px 18px rgba(0,0,0,0.25);
        }
        .trailer-thumbnail {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .play-button-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0,0,0,0.4);
            transition: background 0.2s;
        }
        .trailer-video:hover .play-button-overlay {
            background: rgba(0,0,0,0.5);
        }
        .play-button-overlay svg {
            width: 68px;
            height: 68px;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
        }


.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.modal {
    width: 1140px;
    height: 560px;
    display: flex;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    background: #0f0f0f;
    border: 1px solid rgba(255,255,255,0.1);
    position:relative;
}

.modal-close-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgb(0 0 0 / 87%);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
}


/* LEFT SIDE (video error) */
.modal-left {
    flex: 1;
    background: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px;
    text-align: center;
}

.modal-left iframe{width:100%;height:100%}

.modal-left h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
}

.modal-left p {
    font-size: 18px;
    color: #aaa;
    max-width: 420px;
    line-height: 1.5;
    margin-bottom: 32px;
}

.refresh-btn {
    background: #2a2a2a;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.refresh-btn:hover {
    background: #3a3a3a;
}

/* RIGHT SIDE (white panel) */
.modal-right {
    width: 320px;
    background: #ffffff;
    color: #111;
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-sizing: border-box;
}

.movie-main {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.movie-main img {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.movie-main h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.movie-main span {
    display: block;
    margin-top: 8px;
    color: #777;
    font-size: 14px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.recommend-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.recommend-item {
    display: flex;
    gap: 12px;
    cursor: pointer;
}

.recommend-item img {
    width: 96px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
}

.recommend-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recommend-info h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.recommend-info span {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}
.recommend-item.active .recommend-info h4 {
    color: var(--main-green);
}

@media (max-width: 1000px) {
    .modal {
        width: 95%;
        height: 90vh;
    }
}
@media (max-width: 800px) {
    .modal {
        flex-direction: column;
        height: auto;
    }
    .modal-left {
        height: 50vh;
    }
    .modal-right {
        width: 100%;
        height: auto;
    }
}

    /* ===== СТРАНИЦА ВСЕХ АКТЕРОВ (actors.php) ===== */
.actors-page {
    padding: 20px;
}

.actors-page__header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 20px;
}

.actors-page__title {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 36px;
    color: var(--text-black);
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.actors-page__subtitle {
    font-size: 16px;
    color: var(--text-gray-64);
    margin: 0;
}

/* Сетка актеров (2 колонки как на главной) */
.actors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 40px;
    margin-bottom: 40px;
}

/* Карточка актера как ссылка */
.actor-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}


/* Сама карточка (копия cast_card) */
.actor-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-gray);
    height: 100%;
}

.actor-card__photo {
    flex-shrink: 0;
    width: 100px;
    height: 125px;
    border-radius: 6px;
    overflow: hidden;
    background: #e0e0e0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

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

.actor-card-link:hover .actor-card__photo img {
    transform: scale(1.05);
}

.actor-card__info {
    flex: 1;
}

.actor-card__name {
    color: var(--text-black);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 4px 0;
}

.actor-card__original-name {
    color: var(--text-gray-96);
    font-size: 14px;
    margin-bottom: 5px;
}

.actor-card__role {
    color: var(--main-green-dark);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: inline-block;
}

.actor-card__synopsis {
    color: var(--text-gray-64);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Пустое состояние */
.actors-empty {
    grid-column: span 2;
    text-align: center;
    padding: 60px;
    background: #f9f9f9;
    border-radius: 8px;
    color: var(--text-gray-64);
    border: 1px dashed var(--border-gray);
}

/* Статистика внизу */
.actors-stats {
    margin-top: 20px;
    padding: 20px;
    border-top: 1px solid var(--border-gray);
    text-align: center;
    color: var(--text-gray-64);
}

.actors-stats strong {
    color: var(--main-green-dark);
    font-weight: 600;
}

/* Адаптивность */
@media (max-width: 800px) {
    .actors-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .actors-empty {
        grid-column: span 1;
    }
    
    .actors-page__title {
        font-size: 30px;
    }
}

@media (max-width: 500px) {
    .actor-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .actor-card__photo {
        width: 120px;
        height: 150px;
    }
    
    .actors-page__title {
        font-size: 26px;
    }
}

/* SEO блоки */
.seo-block {
    margin: 20px;
    padding: 20px;
    background: var(--player-dark-16);
    transition: all 0.2s ease;
}

.seo-block p {
    margin: 0;
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.5;
    font-size: 15px;
}

.seo-highlight {
    font-weight: 700;
    color: var(--main-green);
}

.seo-highlight-translations {
    font-weight: 600;
    color: #FFA500; /* Оранжевый для озвучек */
}

/* Адаптивность */
@media (max-width: 600px) {
    .seo-block {
        padding: 15px;
        margin: 20px 0;
    }
    
    .seo-block p {
        font-size: 14px;
    }
}

.gallery-btn {
                    display: block;
                    text-align: center;
                    padding: 12px 24px;
                    background: rgba(255, 255, 255, 0.1);
                    border: 1px solid rgba(255, 255, 255, 0.15);
                    color: white;
                    font-size: 14px;
                    text-decoration: none;
                    border-radius: 8px;
                    font-weight: 600;
                    transition: transform 0.2s, box-shadow 0.2s;
                }


