/* ===== СТРАНИЦА КАРТОЧКИ ФИЛЬМА/СЕРИАЛА ===== */

/* Десктопный хедер */
.movie-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    margin-bottom: 40px;
}

.movie-header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.movie-header-left .logo {
    margin-bottom: 0;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1000px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Убираем стандартные стили ссылок */
.back-button:link,
.back-button:visited,
.back-button:active,
.back-button:focus {
    text-decoration: none;
    color: #fff;
    outline: none;
}

.back-button:focus-visible {
    outline: 2px solid rgba(255, 107, 53, 0.5);
    outline-offset: 2px;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-4px);
}

.back-button svg {
    width: 20px;
    height: 20px;
}

.movie-header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}


.rate-button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    display: none;
}

/* Мобильные кнопки */
.mobile-back-button,
.mobile-share-button {
    display: none;
}

/* Основной контент */
.movie-card-content {
    display: flex;
    gap: 40px;
    padding: 0 40px 40px;
    max-width: 1400px;
    width: 100%;
}

/* Обертка для постера и рейтинга (Desktop) */
.poster-wrapper {
    flex-shrink: 0;
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Постер */
.movie-poster {
    width: 100%;
    position: relative;
}

.poster-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
    display: block;
}

/* Overlay на постере для мобилки */
.poster-overlay {
    display: none;
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

/* Информация о фильме */
.movie-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.movie-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.movie-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0;
    flex: 1;
}

/* Мобильная мета-информация */
.mobile-movie-meta {
    display: none;
}

/* Кнопки действий */
.action-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.action-buttons-row {
    display: flex;
    gap: 16px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1000px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset -1px 0 2px rgba(255, 255, 255, 0.2),
        inset 1px 0 2px rgba(255, 255, 255, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.3);
}

.action-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    filter: blur(24px);
    animation: glassBlob 15s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes glassBlob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(10%, -10%) scale(1.2);
    }
}

.action-btn > * {
    position: relative;
    z-index: 1;
}

.action-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-2px);
    box-shadow: 
        inset -1px 0 3px rgba(255, 255, 255, 0.3),
        inset 1px 0 3px rgba(255, 255, 255, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.4);
}

.action-btn.active {
    background: rgba(255, 107, 53, 0.25);
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 
        inset -1px 0 2px rgba(255, 107, 53, 0.3),
        inset 1px 0 2px rgba(255, 107, 53, 0.3),
        0 2px 8px rgba(255, 107, 53, 0.2);
}

.action-btn.active::before {
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 107, 53, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255, 107, 53, 0.15) 0%, transparent 50%);
}

/* Более насыщенный и блестящий фон для активных кнопок will-watch и watched */
.action-btn.will-watch-btn.active,
.action-btn.watched-btn.active {
    background: linear-gradient(
        135deg,
        rgba(255, 107, 53, 0.5) 0%,
        rgba(255, 107, 53, 0.6) 50%,
        rgba(255, 107, 53, 0.5) 100%
    );
    border-color: rgba(255, 107, 53, 0.7);
    box-shadow: 
        0 0 20px rgba(255, 107, 53, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        inset -1px 0 3px rgba(255, 107, 53, 0.5),
        inset 1px 0 3px rgba(255, 107, 53, 0.5),
        0 4px 16px rgba(255, 107, 53, 0.3);
    position: relative;
}

.action-btn.will-watch-btn.active::before,
.action-btn.watched-btn.active::before {
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.6) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 53, 0.5) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 30%);
    filter: blur(20px);
    animation: glassBlob 12s ease-in-out infinite;
}

/* Эффект блеска поверх кнопки */
.action-btn.will-watch-btn.active::after,
.action-btn.watched-btn.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-btn.will-watch-btn.active:hover::after,
.action-btn.watched-btn.active:hover::after {
    opacity: 1;
    animation: shine 1.5s ease-in-out;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.action-btn svg,
.action-btn img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
}

.action-icon {
    filter: brightness(0) invert(1);
}

/* Описание */
.movie-description {
    position: relative;
}

.description-text {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    overflow: hidden;
}

.description-text.collapsed {
    max-height: 4.8em; /* Примерно 3 строки при line-height 1.6 */
    position: relative;
}

.description-text.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2em;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.95));
    pointer-events: none;
}

.description-text.expanded {
    max-height: 2000px;
}

.show-more-btn {
    margin-top: 12px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1000px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none; /* По умолчанию скрыта, показывается только если текст длинный */
}

.show-more-btn.visible {
    display: inline-block;
}

.show-more-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Рейтинг сериала */
.series-rating-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 100%;
    overflow: hidden;
}

.series-rating-section.desktop-rating {
    display: flex;
}

.series-rating-section.mobile-rating {
    display: none;
}

.rating-label {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 100%;
}

.popcorn-rating.interactive .popcorn-icon {
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.popcorn-rating.interactive .popcorn-icon[data-active="true"] {
    opacity: 1 !important;
    transform: translateY(-2px) scale(1.05);
}

.popcorn-rating.interactive .popcorn-icon[data-active="false"] {
    opacity: 0.25 !important;
}

.popcorn-rating {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    max-width: 100%;
}

/* Стили для интерактивной системы рейтинга */
.user-rating-input .rating-icon {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
    opacity: 0.3;
}

.user-rating-input .rating-icon:hover {
    transform: translateY(-3px) scale(1.1);
    opacity: 1;
    filter: brightness(1.2);
}

.user-rating-input .rating-icon.active {
    opacity: 1;
    transform: scale(1.05);
}

.popcorn-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    object-fit: contain;
}

.popcorn-icon.half {
    opacity: 0.5;
}

.iconic-badge {
    display: inline-block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.3;
    transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

/* Стили для интерактивной иконки iconic */
.user-rating-input .iconic-icon {
    cursor: pointer;
    opacity: 0.3;
}

.user-rating-input .iconic-icon:hover {
    transform: translateY(-3px) scale(1.1);
    opacity: 1;
    filter: brightness(1.2);
}

.user-rating-input .iconic-icon.active {
    opacity: 1;
    transform: scale(1.05);
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0px 5px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
}

.rating-display[data-user-rating="6"] .iconic-badge {
    opacity: 1;
    transform: translateY(-2px) scale(1.05);
}

.user-rating-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

.user-rating-label {
    font-weight: 500;
}

.user-rating-value {
    font-weight: 600;
    color: #ff6b35;
}

.user-rating-max {
    opacity: 0.7;
}

/* О сериале */
.about-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.about-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.about-value {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* В главных ролях */
.cast-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cast-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cast-item {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cast-item:last-child {
    border-bottom: none;
}

.show-more-cast-btn {
    align-self: flex-start;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1000px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.show-more-cast-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}


/* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */
@media (max-width: 480px) {
    /* Скрываем десктопный хедер */
    .movie-card-header {
        display: none;
    }

    /* Показываем мобильные кнопки */
    .mobile-back-button,
    .mobile-share-button {
        position: fixed;
        top: 30px;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(3px) saturate(180%);
        -webkit-backdrop-filter: blur(3px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 
            0 4px 16px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
        color: #fff;
        cursor: pointer;
        z-index: 150;
        transition: all 0.3s ease;
        padding: 0;
        text-decoration: none;
    }

    /* Убираем стандартные стили ссылок для мобильных кнопок */
    .mobile-back-button:link,
    .mobile-back-button:visited,
    .mobile-back-button:active,
    .mobile-back-button:focus {
        text-decoration: none;
        color: #fff;
        outline: none;
    }

    .mobile-back-button:focus-visible {
        outline: 2px solid rgba(255, 107, 53, 0.5);
        outline-offset: 2px;
    }

    .mobile-back-button {
        left: 20px;
    }

    .mobile-share-button {
        right: 20px;
    }

    .mobile-back-button:hover,
    .mobile-share-button:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: scale(1.05);
    }

    .mobile-back-button:active,
    .mobile-share-button:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.2);
    }

    .mobile-back-button svg,
    .mobile-share-button svg,
    .mobile-share-button img {
        width: 20px;
        height: 20px;
        display: block;
        object-fit: contain;
    }

    .share-icon {
        filter: brightness(0) invert(1);
    }

    /* Убираем padding у main-content для мобилки на странице карточки */
    .main-content {
        padding: 0 !important;
    }

    /* ===== СПИСОК РЕЗУЛЬТАТОВ ПОИСКА (как на странице каталога) ===== */
    /* Блок результатов поиска */
    #search-results-block {
        padding: 0;
    }

    .catalog-grid {
        display: flex;
        flex-direction: column;
        gap: 22px;
        margin-top: 35px;
        padding: 0 20px;
        position: relative;
    }

    .catalog-item {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        width: 100%;
        max-width: 100%;
        padding: 0;
        gap: 30px;
        background: transparent;
        border: none;
        border-radius: 10px;
        box-shadow: none;
        position: relative;
    }

    .catalog-item::before {
        display: none;
    }

    /* Разделительная линия под карточкой на уровне нижней границы обложки */
    .catalog-divider {
        position: absolute;
        left: 99px;
        right: 0;
        bottom: 1px;
        height: 1px;
        background: rgba(255, 255, 255, 0.3);
        z-index: 1;
    }

    /* Скрываем разделитель у последней карточки */
    .catalog-item:last-child .catalog-divider {
        display: none;
    }

    /* Постер слева */
    .catalog-item .poster-image {
        width: 85px;
        height: 119px;
        border-radius: 13px;
        border: none;
        overflow: hidden;
        flex-shrink: 0;
        background: #2a2a2a;
    }

    /* Отключаем hover эффекты для мобильной версии */
    .catalog-item:hover {
        transform: none;
        box-shadow: none;
    }

    .catalog-item:hover .poster-image {
        border-color: transparent;
        border-radius: 13px;
    }

    .catalog-item:hover .poster-image img {
        transform: none;
    }

    .catalog-item .poster-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .catalog-item .poster-tag,
    .catalog-item .poster-seasons-tag {
        display: none;
    }

    /* Текстовый блок справа */
    .poster-content {
        flex: 1;
        padding: 0;
        background: transparent;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-width: 0;
    }

    .poster-details {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    /* Тип контента (только для мобильной версии) */
    .detail-type-mobile {
        display: block;
        font-size: 16px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.85);
        margin-bottom: 4px;
        order: -1;
    }

    /* Название */
    .detail-title {
        font-size: 18px;
        font-weight: 500;
        color: #fff;
        line-height: 1.3;
        margin: 0;
        order: 0;
    }

    /* Описание */
    .detail-meta {
        font-size: 12px;
        color: #B4B4B4;
        font-weight: 400;
        line-height: 1.4;
        order: 1;
        margin-top: 2px;
    }

    .detail-genres {
        font-size: 12px;
        color: #B4B4B4;
        font-weight: 400;
        line-height: 1.4;
        order: 2;
        margin-top: 0;
    }

    /* Основной контент на мобилке */
    .movie-card-content {
        flex-direction: column;
        padding: 0 0 100px;
        gap: 4px;
        position: relative;
    }


    /* Обертка для постера на мобилке */
    .poster-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        position: relative;
    }

    /* Постер на мобилке (основной постер фильма) */
    .movie-poster {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Скрываем десктопный рейтинг на мобилке */
    .series-rating-section.desktop-rating {
        display: none;
    }

    /* Показываем мобильный рейтинг */
    .series-rating-section.mobile-rating {
        display: flex;
    }

    /* Основной постер фильма на мобилке */
    .movie-poster .poster-image {
        width: 100%;
        border-radius: 0;
        margin: 0;
        display: block;
    }

    /* Overlay под постером для мобилки */
    .poster-overlay {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        padding: 20px;
        margin-top: -60px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
        z-index: 1;
        border-radius: 0 0 16px 16px;
    }

    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }

    /* Название на постере (мобилка) */
    .mobile-title {
        font-size: 24px;
        font-weight: 700;
        color: #fff;
        text-align: center;
        margin: 0 0 12px 0;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }

    /* Мобильная мета-информация на постере */
    .poster-overlay .mobile-movie-meta {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
        width: 100%;
    }

    .poster-overlay .movie-genres {
        font-size: 15px;
        color: rgba(255, 255, 255, 0.9);
        text-align: center;
    }

    .poster-overlay .movie-year-duration {
        font-size: 15px;
        color: rgba(255, 255, 255, 0.8);
        text-align: center;
    }

    .poster-overlay .movie-badges {
        display: flex;
        gap: 8px;
        align-items: center;
        justify-content: center;
    }

    /* Добавляем отступ сверху для постера, чтобы не перекрывать кнопки */
    .poster-wrapper {
        margin-top: 0;
    }

    /* Информация о фильме на мобилке - добавляем padding */
    .movie-info {
        padding: 0 20px;
        gap: 20px;
    }

    .movie-title-wrapper {
        display: none;
    }

    .rate-button {
        display: block;
    }

    .movie-genres {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.8);
        text-align: center;
    }

    .movie-year-duration {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.8);
    }

    .movie-badges {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    /* Кнопки действий на мобилке */
    .action-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .action-buttons-row {
        display: flex;
        flex-direction: row;
        gap: 10px;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .action-buttons-row .action-btn {
        flex: 1;
        max-width: 45%;
    }

    .action-btn {
        width: auto;
        max-width: 80%;
        min-width: fit-content;
        justify-content: center;
        padding: 10px 14px;
        font-size: 14px;
        position: relative;
        overflow: hidden;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(var(--blur-amount)) saturate(180%);
        -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 
            inset -1px 0 2px rgba(255, 255, 255, 0.2),
            inset 1px 0 2px rgba(255, 255, 255, 0.2),
            0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .action-btn::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: 
            radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
        filter: blur(24px);
        animation: glassBlob 15s ease-in-out infinite;
        z-index: 0;
        pointer-events: none;
    }

    .action-btn.active::before {
        background: 
            radial-gradient(circle at 30% 40%, rgba(255, 107, 53, 0.25) 0%, transparent 50%),
            radial-gradient(circle at 70% 60%, rgba(255, 107, 53, 0.15) 0%, transparent 50%);
    }

    .action-btn.active {
        background: rgba(255, 107, 53, 0.25);
        border-color: rgba(255, 107, 53, 0.4);
        box-shadow: 
            inset -1px 0 2px rgba(255, 107, 53, 0.3),
            inset 1px 0 2px rgba(255, 107, 53, 0.3),
            0 2px 8px rgba(255, 107, 53, 0.2);
    }

    /* Более насыщенный и блестящий фон для активных кнопок will-watch и watched (мобильная версия) */
    .action-btn.will-watch-btn.active,
    .action-btn.watched-btn.active {
        background: linear-gradient(
            135deg,
            rgba(255, 107, 53, 0.5) 0%,
            rgba(255, 107, 53, 0.6) 50%,
            rgba(255, 107, 53, 0.5) 100%
        );
        border-color: rgba(255, 107, 53, 0.7);
        box-shadow: 
            0 0 20px rgba(255, 107, 53, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2),
            inset -1px 0 3px rgba(255, 107, 53, 0.5),
            inset 1px 0 3px rgba(255, 107, 53, 0.5),
            0 4px 16px rgba(255, 107, 53, 0.3);
    }

    .action-btn.will-watch-btn.active::before,
    .action-btn.watched-btn.active::before {
        background: 
            radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.6) 0%, transparent 40%),
            radial-gradient(circle at 80% 70%, rgba(255, 107, 53, 0.5) 0%, transparent 40%),
            radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 30%);
        filter: blur(20px);
        animation: glassBlob 12s ease-in-out infinite;
    }

    /* Эффект блеска поверх кнопки (мобильная версия) */
    .action-btn.will-watch-btn.active::after,
    .action-btn.watched-btn.active::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 100%
        );
        z-index: 2;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .action-btn.will-watch-btn.active:hover::after,
    .action-btn.watched-btn.active:hover::after {
        opacity: 1;
        animation: shine 1.5s ease-in-out;
    }

    .action-btn > * {
        position: relative;
        z-index: 1;
    }

    .action-btn svg,
    .action-btn img {
        width: 24px;
        height: 24px;
    }

    /* Описание на мобилке */
    .description-text {
        font-size: 14px;
    }

    /* Рейтинг сериала на мобилке */
    .series-rating-section {
        gap: 16px;
    }

    .rating-label {
        font-size: 16px;
    }

    .rating-display {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .user-rating-input .iconic-icon {
        width: 45px;
        height: 45px;
    }

    .popcorn-icon {
        width: 40px;
        height: 40px;
    }

    .iconic-badge {
        opacity: 0.5;
        width: 40px;
        height: 40px;
    }

    /* О сериале на мобилке */
    .about-section {
        gap: 16px;
    }

    .section-title {
        font-size: 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .about-label {
        font-size: 13px;
    }

    .about-value {
        font-size: 14px;
    }

    /* В главных ролях на мобилке */
    .cast-section {
        gap: 16px;
    }

    .cast-item {
        font-size: 14px;
    }

}

/* ===== ДЕСКТОПНАЯ ВЕРСИЯ ===== */
@media (min-width: 481px) {
    .mobile-back-button,
    .mobile-share-button {
        display: none;
    }

    .mobile-only {
        display: none !important;
    }

    .desktop-only {
        display: block !important;
    }

    .poster-overlay {
        display: none !important;
    }

    /* Прямоугольная обложка на десктопе (вертикальная) */
    .poster-image {
        aspect-ratio: 2 / 3;
        object-fit: cover;
    }
}

/* ===== АДАПТАЦИЯ ДЛЯ 2K МОНИТОРОВ (2560x1440) ===== */
@media (min-width: 2560px) {
    .movie-card-header {
        padding: 32px 60px;
        margin-bottom: 50px;
    }

    .movie-header-left {
        gap: 50px;
    }

    .back-button {
        padding: 14px 28px;
        font-size: 18px;
    }

    .back-button svg {
        width: 24px;
        height: 24px;
    }

    .movie-card-content {
        gap: 50px;
        padding: 0 60px 60px;
        max-width: 1800px;
    }

    .poster-wrapper {
        width: 400px;
        gap: 32px;
    }

    .movie-title {
        font-size: 60px;
    }

    .action-btn {
        padding: 14px 24px;
        font-size: 18px;
    }

    .action-btn svg,
    .action-btn img {
        width: 28px;
        height: 28px;
    }

    .description-text {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .about-label {
        font-size: 16px;
    }

    .about-value {
        font-size: 18px;
    }

    .cast-item {
        font-size: 18px;
    }

    .rating-label {
        font-size: 20px;
    }

    .popcorn-icon {
        width: 56px;
        height: 56px;
    }

    .iconic-badge {
        width: 56px;
        height: 56px;
    }

    .user-rating-display {
        font-size: 20px;
    }
}

/* ===== АДАПТАЦИЯ ДЛЯ 4K МОНИТОРОВ (3840x2160) ===== */
@media (min-width: 3840px) {
    .movie-card-header {
        padding: 40px 80px;
        margin-bottom: 60px;
    }

    .movie-header-left {
        gap: 60px;
    }

    .back-button {
        padding: 18px 36px;
        font-size: 20px;
    }

    .back-button svg {
        width: 28px;
        height: 28px;
    }

    .movie-card-content {
        gap: 60px;
        padding: 0 80px 80px;
        max-width: 2200px;
    }

    .poster-wrapper {
        width: 480px;
        gap: 40px;
    }

    .movie-title {
        font-size: 72px;
    }

    .action-btn {
        padding: 18px 30px;
        font-size: 20px;
    }

    .action-btn svg,
    .action-btn img {
        width: 32px;
        height: 32px;
    }

    .description-text {
        font-size: 20px;
    }

    .section-title {
        font-size: 32px;
    }

    .about-label {
        font-size: 18px;
    }

    .about-value {
        font-size: 20px;
    }

    .cast-item {
        font-size: 20px;
    }

    .rating-label {
        font-size: 24px;
    }

    .popcorn-icon {
        width: 64px;
        height: 64px;
    }

    .iconic-badge {
        width: 64px;
        height: 64px;
    }

    .user-rating-display {
        font-size: 22px;
    }
}

/* ===== МОДАЛЬНОЕ ОКНО ВЫБОРА СПИСКА ===== */
.add-to-list-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.add-to-list-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.add-to-list-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.add-to-list-modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    background: rgba(15, 15, 20, 0.4);
    backdrop-filter: blur(5px) saturate(180%);
    -webkit-backdrop-filter: blur(5px) saturate(180%);
    border-radius: 24px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        inset 0 8px 32px rgba(255, 255, 255, 0.05),
        inset 0 -6px 20px rgba(0, 0, 0, 0.45),
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transform: translateY(12px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    overflow: hidden;
}

.add-to-list-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent
    );
    pointer-events: none;
}

.add-to-list-modal.active .add-to-list-modal-content {
    transform: translateY(0);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        inset 0 8px 32px rgba(255, 255, 255, 0.05),
        inset 0 -6px 20px rgba(0, 0, 0, 0.45),
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 80px rgba(255, 255, 255, 0.05);
}

.add-to-list-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    z-index: 2;
}

.add-to-list-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.add-to-list-modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.add-to-list-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.add-to-list-modal-close:active {
    transform: scale(0.95);
}

.add-to-list-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(80vh - 100px);
    position: relative;
    z-index: 2;
}

.add-to-list-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

.add-to-list-items {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
}

.add-to-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.add-to-list-item .list-count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 12px;
}

.add-to-list-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.add-to-list-item.selected {
    background: linear-gradient(
        135deg,
        rgba(255, 107, 53, 0.5) 0%,
        rgba(255, 107, 53, 0.6) 50%,
        rgba(255, 107, 53, 0.5) 100%
    );
    border-color: rgba(255, 107, 53, 0.7);
    box-shadow: 
        0 0 20px rgba(255, 107, 53, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        inset -1px 0 3px rgba(255, 107, 53, 0.5),
        inset 1px 0 3px rgba(255, 107, 53, 0.5),
        0 4px 16px rgba(255, 107, 53, 0.3);
}

.add-to-list-item.selected::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.6) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 53, 0.5) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 30%);
    filter: blur(20px);
    animation: glassBlob 12s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.add-to-list-item.selected::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.add-to-list-item.selected:hover::after {
    opacity: 1;
    animation: shine 1.5s ease-in-out;
}

.add-to-list-item.selected > * {
    position: relative;
    z-index: 2;
}

.add-to-list-item-name {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    flex: 1;
}

.add-to-list-item-count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 12px;
}

.add-to-list-item-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.add-to-list-item.selected .add-to-list-item-check {
    opacity: 1;
}

.add-to-list-item-check svg {
    width: 20px;
    height: 20px;
    stroke: #FF6B35;
}

/* Мобильная версия модального окна */
@media (max-width: 480px) {
    .add-to-list-modal-content {
        width: 95%;
        max-height: 85vh;
        border-radius: 20px;
    }

    .add-to-list-modal-header {
        padding: 20px;
    }

    .add-to-list-modal-title {
        font-size: 20px;
    }

    .add-to-list-modal-body {
        padding: 20px;
        max-height: calc(85vh - 90px);
    }

    .add-to-list-item {
        padding: 14px 16px;
    }

    .add-to-list-item-name {
        font-size: 15px;
    }
}

/* Адаптация модального окна для 2K */
@media (min-width: 2560px) {
    .add-to-list-modal-content {
        max-width: 600px;
    }

    .add-to-list-modal-header {
        padding: 28px;
    }

    .add-to-list-modal-title {
        font-size: 28px;
    }

    .add-to-list-modal-body {
        padding: 28px;
    }

    .add-to-list-item {
        padding: 18px 24px;
    }

    .add-to-list-item-name {
        font-size: 18px;
    }

    .add-to-list-item-count {
        font-size: 16px;
    }

    .add-to-list-item-check {
        width: 28px;
        height: 28px;
    }

    .add-to-list-item-check svg {
        width: 24px;
        height: 24px;
    }
}

/* Адаптация модального окна для 4K */
@media (min-width: 3840px) {
    .add-to-list-modal-content {
        max-width: 700px;
    }

    .add-to-list-modal-header {
        padding: 36px;
    }

    .add-to-list-modal-title {
        font-size: 32px;
    }

    .add-to-list-modal-body {
        padding: 36px;
    }

    .add-to-list-item {
        padding: 22px 30px;
    }

    .add-to-list-item-name {
        font-size: 20px;
    }

    .add-to-list-item-count {
        font-size: 18px;
    }

    .add-to-list-item-check {
        width: 32px;
        height: 32px;
    }

    .add-to-list-item-check svg {
        width: 28px;
        height: 28px;
    }
}

