/* ============================================
   НОВЫЙ ДИЗАЙН ГЛАВНОЙ СТРАНИЦЫ
   ============================================ */

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    margin-bottom: 80px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 30%, #2b2b2c 70%, #1a1a1a 100%);
    border-bottom: 1px solid rgba(255, 140, 0, 0.1);
    z-index: 999;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255, 140, 0, 0.15) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-search-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

/* Анимация динозаврика с иконкой */
.hero-dinosaur-animation {
    display: inline-block;
    width: clamp(80px, 12vw, 120px);
    height: clamp(80px, 12vw, 120px);
    margin: 0 auto 15px;
    position: relative;
    filter: drop-shadow(0 6px 12px rgba(255, 140, 0, 0.3));
}

.hero-dinosaur-animation::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.2) 0%, transparent 70%);
    animation: pulseGlow 2s ease-in-out infinite;
    z-index: 0;
}

.dinosaur-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    animation: dinosaurFloat 3s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes dinosaurFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1);
        filter: drop-shadow(0 8px 16px rgba(255, 140, 0, 0.3)) brightness(1);
    }
    25% { 
        transform: translateY(-12px) rotate(-5deg) scale(1.05);
        filter: drop-shadow(0 12px 20px rgba(255, 140, 0, 0.4)) brightness(1.1);
    }
    50% { 
        transform: translateY(-20px) rotate(0deg) scale(1.1);
        filter: drop-shadow(0 16px 24px rgba(255, 140, 0, 0.5)) brightness(1.15);
    }
    75% { 
        transform: translateY(-12px) rotate(5deg) scale(1.05);
        filter: drop-shadow(0 12px 20px rgba(255, 140, 0, 0.4)) brightness(1.1);
    }
}

@keyframes pulseGlow {
    0%, 100% { 
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.hero-title-main {
    font-family: var(--font-family-graphik_lcg-medium);
    font-size: clamp(42px, 8vw, 72px);
    font-weight: 500;
    background: linear-gradient(135deg, var(--main-color) 0%, #FF6B00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title-sub {
    font-family: var(--font-family-graphik_lcg-regular);
    font-size: clamp(18px, 3vw, 28px);
    color: var(--white);
    font-weight: 400;
    opacity: 0.9;
}

.hero-description {
    font-family: var(--font-family-graphik_lcg-regular);
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--white);
    opacity: 0.85;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: var(--font-family-graphik_lcg-medium);
    font-size: var(--font-size-16);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.hero-btn:hover::before {
    left: 100%;
}

.hero-btn-primary {
    background: linear-gradient(135deg, var(--main-color) 0%, #FF6B00 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(255, 140, 0, 0.3);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 140, 0, 0.4);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 140, 0, 0.5);
    transform: translateY(-2px);
}

.hero-btn svg {
    transition: transform 0.3s ease;
}

.hero-btn:hover svg {
    transform: translateX(3px);
}

.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.hero-circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hero-circle-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.hero-circle-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-20px) scale(1.1); opacity: 0.5; }
}

/* Page Container */
.page-new {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* Content Sections */
.content-section {
    margin-bottom: 60px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
    position: relative;
    padding-top: 20px;
    z-index: 1;
}

/* Секции с анимацией при скролле */
.content-section.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

/* Блок "Вы хотели посмотреть" */
.later-movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Карусель для карточек фильмов с описанием */
.later-movies-carousel-wrapper {
    position: relative;
    padding: 10px 0;
    margin: 0 -20px;
}

.later-movies-carousel-wrapper .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 140, 0, 0.2);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 50%;
    color: var(--main-color);
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.later-movies-carousel-wrapper .carousel-arrow:hover {
    background: rgba(255, 140, 0, 0.4);
    border-color: rgba(255, 140, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.later-movies-carousel-wrapper .carousel-left {
    left: 10px;
}

.later-movies-carousel-wrapper .carousel-right {
    right: 10px;
}

.later-movies-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: 280px;
    gap: 20px;
    padding: 10px 60px 10px 60px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 60px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 140, 0, 0.4) rgba(255, 140, 0, 0.05);
}

.later-movies-carousel::-webkit-scrollbar {
    height: 6px;
}

.later-movies-carousel::-webkit-scrollbar-track {
    background: rgba(255, 140, 0, 0.05);
    border-radius: 6px;
    margin: 0 6px;
}

.later-movies-carousel::-webkit-scrollbar-thumb {
    background: rgba(255, 140, 0, 0.4);
    border-radius: 6px;
}

.later-movies-carousel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 140, 0, 0.6);
}

.later-movies-carousel .later-movie-card {
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    scroll-snap-align: start;
    height: auto;
    box-sizing: border-box;
}

@media (max-width: 850px) {
    .later-movies-carousel {
        grid-auto-columns: 240px;
        padding: 10px 50px;
        scroll-padding: 0 50px;
    }
    
    .later-movies-carousel-wrapper .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .later-movies-carousel-wrapper {
        margin: 0 -20px;
        padding: 10px 0;
        width: calc(100% + 40px);
        position: relative;
    }
    
    .later-movies-carousel {
        display: grid;
        grid-auto-flow: column;
        grid-template-rows: repeat(2, auto);
        grid-auto-columns: calc(100vw - 80px);
        min-width: calc(100vw - 80px);
        gap: 12px;
        padding: 0 40px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 40px;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        box-sizing: border-box;
    }
    
    .later-movies-carousel .later-movie-card {
        flex: none;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        scroll-snap-align: start;
        height: auto;
        box-sizing: border-box;
    }
    
    .later-movies-carousel-wrapper .carousel-arrow {
        display: flex;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

.later-movie-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.85) 0%, rgba(46, 46, 46, 0.85) 100%);
    border: 1.5px solid rgba(255, 140, 0, 0.15);
    border-radius: 14px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.later-movie-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.08) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.later-movie-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 140, 0, 0.4);
    box-shadow: 0 8px 28px rgba(255, 140, 0, 0.25);
}

.later-movie-card:hover::before {
    opacity: 1;
}

.later-movie-poster {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
    border: 1.5px solid rgba(255, 140, 0, 0.12);
    transition: all 0.3s ease;
}

.later-movie-card:hover .later-movie-poster {
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.3);
    border-color: rgba(255, 140, 0, 0.3);
    transform: scale(1.03);
}

.later-movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.later-movie-card:hover .later-movie-poster img {
    transform: scale(1.08);
}

.later-rating-badge {
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family-graphik_lcg-medium);
    font-size: 11px;
    font-weight: 700;
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.4),
        0 0 0 1.5px rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    z-index: 3;
    backdrop-filter: blur(3px);
}

.later-movie-rating {
    top: 5px;
    right: 5px;
}

.later-user-rating {
    top: 5px;
    left: 5px;
}

.later-rating-badge.good {
    background: linear-gradient(135deg, #00C853 0%, #00E676 100%);
    color: #fff;
    border-color: rgba(0, 200, 83, 0.4);
}

.later-rating-badge.medium {
    background: linear-gradient(135deg, #FFD600 0%, #FFEA00 100%);
    color: #212529;
    border-color: rgba(255, 214, 0, 0.4);
}

.later-rating-badge.bad {
    background: linear-gradient(135deg, #D50000 0%, #FF1744 100%);
    color: #fff;
    border-color: rgba(213, 0, 0, 0.4);
}

.later-movie-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.later-movie-title {
    font-family: var(--font-family-graphik_lcg-medium);
    font-size: 18px;
    font-weight: 500;
    color: var(--white);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.later-movie-card:hover .later-movie-title {
    color: var(--main-color);
}

.later-movie-year {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.later-movie-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 4px;
}

/* Адаптивность для блока "Вы хотели посмотреть" */
@media (max-width: 850px) {
    .later-movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .later-movie-card {
        padding: 14px;
        gap: 12px;
    }

    .later-movie-poster {
        width: 85px;
        height: 130px;
    }

    .later-movie-title {
        font-size: 16px;
    }

    .later-movie-description {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 600px) {
    .later-movies-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Компактные стили для карточек в карусели на мобильных */
    .later-movies-carousel .later-movie-card {
        padding: 12px;
        gap: 10px;
        height: auto;
    }

    .later-movies-carousel .later-movie-poster {
        width: 75px;
        height: 115px;
    }

    .later-movies-carousel .later-movie-title {
        font-size: 15px;
        line-height: 1.2;
    }

    .later-movies-carousel .later-movie-year {
        font-size: 12px;
    }

    .later-movies-carousel .later-movie-description {
        font-size: 11px;
        -webkit-line-clamp: 2;
        line-height: 1.3;
    }

    .later-movies-carousel .later-rating-badge {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    /* Обычные карточки в grid остаются без изменений */
    .later-movies-grid .later-movie-card {
        padding: 12px;
        gap: 10px;
    }

    .later-movies-grid .later-movie-poster {
        width: 75px;
        height: 115px;
    }

    .later-movies-grid .later-movie-title {
        font-size: 15px;
    }

    .later-movies-grid .later-movie-year {
        font-size: 12px;
    }

    .later-movies-grid .later-movie-description {
        font-size: 11px;
    }
}

/* Стили для коллекций на главной странице */
.lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 20px;
    align-items: stretch;
}

.lists-grid .list-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

.lists-grid .list-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(255, 140, 0, 0.3);
    border-color: rgba(255, 140, 0, 0.3);
}

.lists-grid .list-card-poster {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.9) 0%, rgba(46, 46, 46, 0.9) 100%);
}

.lists-grid .list-card-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.lists-grid .list-card:hover .list-card-poster img {
    transform: scale(1.1);
}

.lists-grid .list-card-poster-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 140, 0, 0.3);
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.9) 0%, rgba(46, 46, 46, 0.9) 100%);
}

.lists-grid .list-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    padding: 12px 10px 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lists-grid .list-card:hover .list-card-overlay {
    opacity: 1;
}

.lists-grid .list-card-content {
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 70px;
    width: 100%;
    box-sizing: border-box;
}

.lists-grid .list-title {
    font-weight: 600;
    color: white;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.lists-grid .list-card:hover .list-title {
    color: var(--main-color);
}

.lists-grid .list-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lists-grid .list-updated {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    margin-top: auto;
    padding-top: 6px;
}

.lists-grid .list-card-stats {
    color: white;
    font-size: 11px;
    font-weight: 500;
}

.lists-grid .list-movies-count::before {
    content: '🎬';
    margin-right: 5px;
}

/* Компактные секции для коллекций */
.content-section:has(.collections-grid) {
    margin-bottom: 40px;
}

.content-section:has(.collections-grid) .section-header-new {
    margin-bottom: 20px;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 140, 0, 0.2) 20%, rgba(255, 140, 0, 0.2) 80%, transparent 100%);
}

/* Section Headers */
.section-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
}

.section-title-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title-icon {
    font-size: 28px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(255, 140, 0, 0.3));
    animation: iconPulse 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
}

.section-title-icon svg {
    width: 28px;
    height: 28px;
    transition: all 0.3s ease;
}

.section-title-icon:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(255, 140, 0, 0.5));
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.section-title {
    font-family: var(--font-family-graphik_lcg-medium);
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 500;
    color: var(--white);
    margin: 0;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.section-title-underline {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--main-color) 0%, #FF6B00 100%);
    border-radius: 2px;
    animation: expandWidth 0.8s ease-out;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 60px; }
}

.section-more {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--main-color);
    font-family: var(--font-family-graphik_lcg-regular);
    font-size: var(--font-size-18);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 140, 0, 0.1);
}

.section-more:hover {
    color: var(--white);
    background: var(--main-color);
    transform: translateX(5px);
}

.section-more svg {
    transition: transform 0.3s ease;
}

.section-more:hover svg {
    transform: translateX(3px);
}

/* Movies Grid Wrapper */
.movies-grid-wrapper {
    position: relative;
    padding: 20px 0;
}

/* Movies Carousel Wrapper */
.movies-carousel-wrapper {
    position: relative;
    padding: 10px 0;
    margin: 0 -20px;
}

.movies-carousel-wrapper .carousel-wrapper {
    margin-top: 0;
    padding: 0 42px;
}

/* Lists Carousel Wrapper - компактные списки */
.lists-carousel-wrapper {
    position: relative;
    padding: 8px 0;
    margin: 0 -20px;
}

.lists-carousel-wrapper .carousel-wrapper {
    margin-top: 0;
    padding: 0 38px;
}

.lists-carousel-wrapper .carousel {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 6px 2px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 140, 0, 0.4) rgba(255, 140, 0, 0.05);
}

.lists-carousel-wrapper .carousel::-webkit-scrollbar {
    height: 5px;
}

.lists-carousel-wrapper .carousel::-webkit-scrollbar-track {
    background: rgba(255, 140, 0, 0.05);
    border-radius: 6px;
    margin: 0 6px;
}

.lists-carousel-wrapper .carousel::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(255, 140, 0, 0.4) 0%, rgba(255, 140, 0, 0.6) 100%);
    border-radius: 6px;
    transition: background 0.3s ease;
}

.lists-carousel-wrapper .carousel-item {
    flex: 0 0 auto;
    width: 75px;
    scroll-snap-align: start;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lists-carousel-wrapper .carousel-item:hover {
    transform: translateY(-3px);
}

.lists-carousel-wrapper .carousel-poster {
    position: relative;
    width: 75px;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.95) 0%, rgba(46, 46, 46, 0.95) 100%);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lists-carousel-wrapper .carousel-item:hover .carousel-poster {
    box-shadow: 
        0 6px 18px rgba(255, 140, 0, 0.25),
        0 0 0 1.5px rgba(255, 140, 0, 0.2);
    border-color: rgba(255, 140, 0, 0.35);
    transform: translateY(-1px) scale(1.02);
}

.lists-carousel-wrapper .carousel-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.25s ease;
    filter: brightness(0.95);
}

.lists-carousel-wrapper .carousel-item:hover .carousel-poster img {
    transform: scale(1.05);
    filter: brightness(1.02);
}

.lists-carousel-wrapper .carousel-info {
    margin-top: 0;
    text-align: center;
    padding: 0 1px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.lists-carousel-wrapper .carousel-info .carousel-name {
    display: block;
    font-family: var(--font-family-graphik_lcg-medium);
    font-size: 11px;
    font-weight: 500;
    color: var(--white);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.2em;
    max-height: 2.2em;
    transition: color 0.25s ease;
}

.lists-carousel-wrapper .carousel-item:hover .carousel-info .carousel-name {
    color: var(--main-color);
}

.lists-carousel-wrapper .carousel-info .carousel-year {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    transition: color 0.25s ease;
    line-height: 1.1;
}

.lists-carousel-wrapper .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.92) 0%, rgba(35, 35, 35, 0.92) 100%);
    border: 1.5px solid rgba(255, 140, 0, 0.25);
    color: var(--main-color);
    font-size: 18px;
    width: 32px;
    height: 32px;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.lists-carousel-wrapper .carousel-arrow:hover {
    background: linear-gradient(135deg, var(--main-color) 0%, #FF6B00 100%);
    color: var(--white);
    border-color: var(--main-color);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 3px 15px rgba(255, 140, 0, 0.3);
}

.lists-carousel-wrapper .carousel-left {
    left: 2px;
}

.lists-carousel-wrapper .carousel-right {
    right: 2px;
}

.lists-carousel-wrapper .carousel-wrapper:hover .carousel-arrow {
    opacity: 1;
}

@media (max-width: 768px) {
    .lists-carousel-wrapper {
        margin: 0 -15px;
    }

    .lists-carousel-wrapper .carousel-wrapper {
        padding: 0 14px;
    }

    .lists-carousel-wrapper .carousel-item {
        width: 65px;
    }

    .lists-carousel-wrapper .carousel-poster {
        width: 65px;
        height: 95px;
    }

    .lists-carousel-wrapper .carousel-info .carousel-name {
        font-size: 10px;
        min-height: 2em;
        max-height: 2em;
    }
}

@media (max-width: 480px) {
    .lists-carousel-wrapper {
        margin: 0 -10px;
    }

    .lists-carousel-wrapper .carousel-wrapper {
        padding: 0 6px;
    }

    .lists-carousel-wrapper .carousel-item {
        width: 60px;
    }

    .lists-carousel-wrapper .carousel-poster {
        width: 60px;
        height: 85px;
    }

    .lists-carousel-wrapper .carousel-info .carousel-name {
        font-size: 9px;
    }
}

/* Стили карусели для главной страницы */
.movies-carousel-wrapper .carousel {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 8px 2px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 140, 0, 0.4) rgba(255, 140, 0, 0.05);
}

.movies-carousel-wrapper .carousel::-webkit-scrollbar {
    height: 6px;
}

.movies-carousel-wrapper .carousel::-webkit-scrollbar-track {
    background: rgba(255, 140, 0, 0.05);
    border-radius: 8px;
    margin: 0 8px;
}

.movies-carousel-wrapper .carousel::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(255, 140, 0, 0.4) 0%, rgba(255, 140, 0, 0.6) 100%);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.movies-carousel-wrapper .carousel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, rgba(255, 140, 0, 0.6) 0%, rgba(255, 140, 0, 0.8) 100%);
}

.movies-carousel-wrapper .carousel-item {
    flex: 0 0 auto;
    width: 95px;
    scroll-snap-align: start;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.movies-carousel-wrapper .carousel-item:hover {
    transform: translateY(-4px);
}

.movies-carousel-wrapper .carousel-poster {
    position: relative;
    width: 95px;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.95) 0%, rgba(46, 46, 46, 0.95) 100%);
    box-shadow: 
        0 3px 12px rgba(0, 0, 0, 0.35),
        0 0 0 1.5px rgba(255, 140, 0, 0.1);
    border: 1.5px solid rgba(255, 140, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.movies-carousel-wrapper .carousel-item:hover .carousel-poster {
    box-shadow: 
        0 8px 24px rgba(255, 140, 0, 0.3),
        0 0 0 2px rgba(255, 140, 0, 0.25);
    border-color: rgba(255, 140, 0, 0.4);
    transform: translateY(-2px) scale(1.03);
}

.movies-carousel-wrapper .carousel-poster::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.08) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1;
    pointer-events: none;
}

.movies-carousel-wrapper .carousel-item:hover .carousel-poster::before {
    opacity: 1;
}

.movies-carousel-wrapper .carousel-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.25s ease;
    filter: brightness(0.96);
}

.movies-carousel-wrapper .carousel-item:hover .carousel-poster img {
    transform: scale(1.06);
    filter: brightness(1.03);
}

.movies-carousel-wrapper .carousel-info {
    margin-top: 0;
    text-align: center;
    padding: 0 2px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.movies-carousel-wrapper .carousel-info .carousel-name {
    display: block;
    font-family: var(--font-family-graphik_lcg-medium);
    font-size: 12px;
    font-weight: 500;
    color: var(--white);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.5em;
    max-height: 2.5em;
    transition: color 0.25s ease;
}

.movies-carousel-wrapper .carousel-item:hover .carousel-info .carousel-name {
    color: var(--main-color);
}

.movies-carousel-wrapper .carousel-info .carousel-year {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
    transition: color 0.25s ease;
    line-height: 1.2;
}

.movies-carousel-wrapper .carousel-item:hover .carousel-info .carousel-year {
    color: rgba(255, 140, 0, 0.75);
}

.movies-carousel-wrapper .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.92) 0%, rgba(35, 35, 35, 0.92) 100%);
    border: 1.5px solid rgba(255, 140, 0, 0.25);
    color: var(--main-color);
    font-size: 20px;
    width: 36px;
    height: 36px;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.movies-carousel-wrapper .carousel-arrow:hover {
    background: linear-gradient(135deg, var(--main-color) 0%, #FF6B00 100%);
    color: var(--white);
    border-color: var(--main-color);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 18px rgba(255, 140, 0, 0.35);
}

.movies-carousel-wrapper .carousel-arrow:active {
    transform: translateY(-50%) scale(0.96);
}

.movies-carousel-wrapper .carousel-left {
    left: 2px;
}

.movies-carousel-wrapper .carousel-right {
    right: 2px;
}

.movies-carousel-wrapper .carousel-wrapper:hover .carousel-arrow {
    opacity: 1;
}

.movies-carousel-wrapper .carousel-rating-badge {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family-graphik_lcg-medium);
    font-size: 10px;
    font-weight: 700;
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.35),
        0 0 0 1.5px rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    z-index: 3;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(3px);
}

.movies-carousel-wrapper .carousel-movie-rating {
    top: 4px;
    right: 4px;
}

.movies-carousel-wrapper .carousel-user-rating {
    top: 4px;
    left: 4px;
}

.movies-carousel-wrapper .carousel-rating-badge.good {
    background: linear-gradient(135deg, #00C853 0%, #00E676 100%);
    color: #fff;
    border-color: rgba(0, 200, 83, 0.35);
    box-shadow: 
        0 2px 6px rgba(0, 200, 83, 0.35),
        0 0 0 1.5px rgba(0, 200, 83, 0.15);
}

.movies-carousel-wrapper .carousel-rating-badge.medium {
    background: linear-gradient(135deg, #FFD600 0%, #FFEA00 100%);
    color: #212529;
    border-color: rgba(255, 214, 0, 0.35);
    box-shadow: 
        0 2px 6px rgba(255, 214, 0, 0.35),
        0 0 0 1.5px rgba(255, 214, 0, 0.15);
}

.movies-carousel-wrapper .carousel-rating-badge.bad {
    background: linear-gradient(135deg, #D50000 0%, #FF1744 100%);
    color: #fff;
    border-color: rgba(213, 0, 0, 0.35);
    box-shadow: 
        0 2px 6px rgba(213, 0, 0, 0.35),
        0 0 0 1.5px rgba(213, 0, 0, 0.15);
}

.movies-carousel-wrapper .carousel-item:hover .carousel-rating-badge {
    transform: scale(1.15) rotate(4deg);
    box-shadow: 
        0 3px 12px rgba(0, 0, 0, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.12);
}

.movies-carousel-wrapper .carousel-item:hover .carousel-rating-badge.good {
    box-shadow: 
        0 3px 12px rgba(0, 200, 83, 0.4),
        0 0 0 2px rgba(0, 200, 83, 0.25);
}

.movies-carousel-wrapper .carousel-item:hover .carousel-rating-badge.medium {
    box-shadow: 
        0 3px 12px rgba(255, 214, 0, 0.4),
        0 0 0 2px rgba(255, 214, 0, 0.25);
}

.movies-carousel-wrapper .carousel-item:hover .carousel-rating-badge.bad {
    box-shadow: 
        0 3px 12px rgba(213, 0, 0, 0.4),
        0 0 0 2px rgba(213, 0, 0, 0.25);
}

/* Адаптивность карусели на главной */
@media (max-width: 768px) {
    .movies-carousel-wrapper {
        margin: 0 -15px;
    }

    .movies-carousel-wrapper .carousel-wrapper {
        padding: 0 16px;
    }

    .movies-carousel-wrapper .carousel {
        gap: 8px;
        padding: 6px 2px;
    }

    .movies-carousel-wrapper .carousel-item {
        width: 80px;
        gap: 4px;
    }

    .movies-carousel-wrapper .carousel-poster {
        width: 80px;
        height: 115px;
        border-radius: 8px;
    }

    .movies-carousel-wrapper .carousel-info .carousel-name {
        font-size: 11px;
        min-height: 2.2em;
        max-height: 2.2em;
    }

    .movies-carousel-wrapper .carousel-info .carousel-year {
        font-size: 9px;
    }

    .movies-carousel-wrapper .carousel-rating-badge {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }

    .movies-carousel-wrapper .carousel-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .movies-carousel-wrapper {
        margin: 0 -10px;
    }

    .movies-carousel-wrapper .carousel-wrapper {
        padding: 0 8px;
    }

    .movies-carousel-wrapper .carousel {
        gap: 6px;
        padding: 5px 2px;
    }

    .movies-carousel-wrapper .carousel-item {
        width: 70px;
        gap: 3px;
    }

    .movies-carousel-wrapper .carousel-poster {
        width: 70px;
        height: 100px;
        border-radius: 7px;
    }

    .movies-carousel-wrapper .carousel-info .carousel-name {
        font-size: 10px;
        min-height: 2em;
        max-height: 2em;
    }

    .movies-carousel-wrapper .carousel-info .carousel-year {
        font-size: 8px;
    }

    .movies-carousel-wrapper .carousel-rating-badge {
        width: 18px;
        height: 18px;
        font-size: 8px;
    }
}

/* Компактный wrapper для коллекций */
.movies-grid-wrapper:has(.collections-grid) {
    padding: 10px 0;
}

/* Movie Grid */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
    padding: 20px 0;
}

/* Компактная сетка для коллекций */
.collections-wrapper .movie-grid {
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
    padding: 10px 0;
}

/* Компактный постер для коллекций */
.collections-wrapper .movie-grid-poster-wrapper {
    padding-top: 140%;
    border-radius: 6px;
}

.movie-grid-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--white);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.8) 0%, rgba(46, 46, 46, 0.8) 100%);
    border: 1px solid rgba(255, 140, 0, 0.15);
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Компактные карточки для коллекций */
.collections-wrapper .movie-grid-card {
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(35, 35, 35, 0.9) 100%);
    border: 1px solid rgba(255, 140, 0, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.movie-grid-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.movie-grid-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--main-color);
    box-shadow: 0 16px 48px rgba(255, 140, 0, 0.35);
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.95) 0%, rgba(46, 46, 46, 0.95) 100%);
}

/* Компактный hover для коллекций */
.collections-wrapper .movie-grid-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(255, 140, 0, 0.25);
}

.movie-grid-card:hover::before {
    opacity: 1;
}

.movie-grid-poster-wrapper {
    position: relative;
    width: 100%;
    padding-top: 150%; /* Соотношение сторон 2:3 */
    overflow: hidden;
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.9) 0%, rgba(46, 46, 46, 0.9) 100%);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 140, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.movie-grid-card:hover .movie-grid-poster-wrapper {
    box-shadow: 0 8px 24px rgba(255, 140, 0, 0.25);
    border-color: rgba(255, 140, 0, 0.3);
    transform: translateY(-2px);
}

.movie-grid-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.movie-grid-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.movie-grid-card:hover .movie-grid-poster img {
    transform: scale(1.1);
}

/* Рейтинги в виде круглых бейджей как в карусели */
.movie-grid-rating-badge {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family-graphik_lcg-medium);
    font-size: var(--font-size-12);
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.6);
    color: #fff;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-grid-movie-rating {
    top: 5px;
    right: 5px;
}

.movie-grid-user-rating {
    top: 5px;
    left: 5px;
}

/* Цвета рейтингов */
.movie-grid-rating-badge.good {
    background: linear-gradient(135deg, #00C853 0%, #00E676 100%);
    color: #fff;
}

.movie-grid-rating-badge.medium {
    background: linear-gradient(135deg, #FFD600 0%, #FFEA00 100%);
    color: #212529;
}

.movie-grid-rating-badge.bad {
    background: linear-gradient(135deg, #D50000 0%, #FF1744 100%);
    color: #fff;
}

/* Ховер эффект */
.movie-grid-card:hover .movie-grid-rating-badge {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.movie-grid-info {
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(28, 28, 28, 0.95) 0%, rgba(28, 28, 28, 1) 100%);
}

/* Компактная информация для коллекций */
.collections-wrapper .movie-grid-info {
    padding: 8px 6px;
    gap: 4px;
}

.movie-grid-title {
    font-family: var(--font-family-graphik_lcg-medium);
    font-size: var(--font-size-14);
    font-weight: 500;
    color: var(--white);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6em;
}

/* Компактный заголовок для коллекций */
.collections-wrapper .movie-grid-title {
    font-size: 12px;
    line-height: 1.2;
    min-height: 2.4em;
    -webkit-line-clamp: 2;
}

.movie-grid-year {
    font-size: var(--font-size-12);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* Friends Activity Grid */
.friends-activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.friend-activity-card {
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.85) 0%, rgba(46, 46, 46, 0.85) 100%);
    border: 1.5px solid rgba(255, 140, 0, 0.15);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.friend-activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.08) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.friend-activity-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 140, 0, 0.4);
    box-shadow: 0 8px 28px rgba(255, 140, 0, 0.25);
}

.friend-activity-card:hover::before {
    opacity: 1;
}

.friend-activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
    gap: 12px;
}

.friend-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.friend-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 140, 0, 0.3);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.2);
    transition: all 0.3s ease;
}

.friend-activity-card:hover .friend-avatar {
    border-color: var(--main-color);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
    transform: scale(1.05);
}

.friend-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--main-color) 0%, #FF6B00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 18px;
    border: 2px solid rgba(255, 140, 0, 0.3);
    transition: all 0.3s ease;
}

.friend-activity-card:hover .friend-avatar-placeholder {
    border-color: var(--main-color);
    transform: scale(1.05);
}

.friend-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.friend-name {
    font-family: var(--font-family-graphik_lcg-medium);
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    line-height: 1.3;
}

.activity-time-header {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    line-height: 1.2;
}

.rating-badge {
    padding: 6px 14px;
    border-radius: 18px;
    font-family: var(--font-family-graphik_lcg-medium);
    font-weight: 600;
    font-size: 16px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.friend-activity-card:hover .rating-badge {
    transform: scale(1.05);
}

.rating-badge.high-rating {
    background: linear-gradient(135deg, rgba(80, 165, 87, 0.2) 0%, rgba(80, 165, 87, 0.1) 100%);
    color: var(--fruit-salad);
    border: 1px solid rgba(80, 165, 87, 0.3);
}

.rating-badge.medium-rating {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.2) 0%, rgba(255, 140, 0, 0.1) 100%);
    color: var(--main-color);
    border: 1px solid rgba(255, 140, 0, 0.3);
}

.rating-badge.low-rating {
    background: linear-gradient(135deg, rgba(145, 145, 145, 0.2) 0%, rgba(145, 145, 145, 0.1) 100%);
    color: var(--gray);
    border: 1px solid rgba(145, 145, 145, 0.3);
}

.rating-value {
    display: block;
}

.friend-activity-content {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.movie-poster-wrapper {
    flex-shrink: 0;
    width: 70px;
    height: 105px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 140, 0, 0.1);
    transition: all 0.3s ease;
}

.friend-activity-card:hover .movie-poster-wrapper {
    box-shadow: 0 6px 18px rgba(255, 140, 0, 0.25);
    border-color: rgba(255, 140, 0, 0.3);
    transform: translateY(-2px);
}

.movie-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.friend-activity-card:hover .movie-poster {
    transform: scale(1.08);
}

.poster-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.9) 0%, rgba(46, 46, 46, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border: 2px solid rgba(255, 140, 0, 0.1);
    color: rgba(255, 140, 0, 0.3);
    transition: all 0.3s ease;
    border-radius: 12px;
}

.movie-grid-card:hover .poster-placeholder,
.friend-activity-card:hover .poster-placeholder {
    border-color: rgba(255, 140, 0, 0.3);
    color: rgba(255, 140, 0, 0.5);
}

.movie-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.movie-title {
    font-family: var(--font-family-graphik_lcg-medium);
    font-size: 17px;
    font-weight: 500;
    color: var(--white);
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.friend-activity-card:hover .movie-title {
    color: var(--main-color);
}

.movie-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    flex-wrap: wrap;
}

.movie-year {
    font-weight: 500;
}

.movie-genres {
    color: rgba(255, 255, 255, 0.45);
}

.movie-comment {
    margin-top: 6px;
    padding: 10px;
    background: rgba(255, 140, 0, 0.08);
    border-left: 2px solid var(--main-color);
    border-radius: 6px;
}

.movie-comment p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    font-style: italic;
    line-height: 1.4;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.6) 0%, rgba(46, 46, 46, 0.6) 100%);
    border-radius: 20px;
    border: 2px dashed rgba(255, 140, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.empty-state::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.7;
    position: relative;
    z-index: 1;
    animation: floatIcon 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
}

.empty-state-icon svg {
    width: 64px;
    height: 64px;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.empty-state-title {
    font-family: var(--font-family-graphik_lcg-medium);
    font-size: var(--font-size-24);
    color: var(--white);
    margin: 0 0 12px 0;
    position: relative;
    z-index: 1;
}

.empty-state-text {
    font-size: var(--font-size-16);
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media screen and (max-width: 1600px) {
    .movie-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 14px;
    }
}

@media screen and (max-width: 1300px) {
    .movie-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 14px;
    }

    .friends-activity-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media screen and (max-width: 1100px) {
    .movie-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
    }
}

@media screen and (max-width: 900px) {
    .movie-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

@media screen and (max-width: 850px) {
    .hero-section {
        min-height: 400px;
        margin-bottom: 50px;
        padding: 20px 0;
    }

    .hero-content {
        padding: 20px 15px;
    }

    .hero-dinosaur-animation {
        width: clamp(70px, 15vw, 100px);
        height: clamp(70px, 15vw, 100px);
        margin-bottom: 12px;
    }

    .hero-title-sub {
        font-size: clamp(16px, 4vw, 20px);
        padding: 0 10px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
        font-size: 15px;
    }

    .hero-title-main {
        font-size: 36px;
    }

    .hero-description {
        font-size: 15px;
        padding: 0 15px;
    }

    .page-new {
        padding: 0 15px 30px;
    }

    .content-section {
        margin-bottom: 40px;
        padding-top: 15px;
    }

    .section-header-new {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .section-title-wrapper {
        flex: 1;
        gap: 10px;
    }

    .section-title-icon {
        font-size: 24px;
    }

    .section-title-icon svg {
        width: 24px;
        height: 24px;
    }

    .section-title {
        font-size: clamp(22px, 5vw, 28px);
    }

    .section-title-underline {
        width: 50px;
        height: 2px;
    }

    .section-more {
        font-size: 15px;
        padding: 6px 12px;
        flex-shrink: 0;
    }

    .movies-grid-wrapper {
        padding: 15px 0;
    }

    .movie-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 15px 0;
    }

    .movie-grid-card {
        border-radius: 10px;
    }

    .movie-grid-poster-wrapper {
        border-radius: 10px;
        border-width: 1px;
    }

    .movie-grid-info {
        padding: 10px 6px;
        gap: 5px;
    }

    .movie-grid-title {
        font-size: 13px;
        line-height: 1.3;
        min-height: 2.5em;
    }

    .movie-grid-year {
        font-size: 11px;
    }

    .movie-grid-rating-badge {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .friends-activity-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 12px;
    }

    .lists-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    .lists-grid .list-card-content {
        padding: 10px;
        min-height: 60px;
    }

    .lists-grid .list-title {
        font-size: 13px;
        margin-bottom: 5px;
    }

    .lists-grid .list-description {
        font-size: 10px;
        margin-bottom: 5px;
    }

    .lists-grid .list-updated {
        font-size: 9px;
        padding-top: 5px;
    }

    .lists-grid .list-card-stats {
        font-size: 10px;
    }

    .friend-activity-card {
        padding: 14px;
        border-radius: 12px;
    }

    .friend-activity-header {
        margin-bottom: 12px;
    }

    .friend-profile {
        gap: 8px;
    }

    .friend-avatar,
    .friend-avatar-placeholder {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .friend-name {
        font-size: 15px;
    }

    .activity-time-header {
        font-size: 11px;
    }

    .rating-badge {
        padding: 5px 12px;
        font-size: 15px;
    }

    .friend-activity-content {
        flex-direction: row;
        gap: 10px;
    }

    .movie-poster-wrapper {
        width: 65px;
        height: 95px;
        flex-shrink: 0;
    }

    .movie-title {
        font-size: 16px;
    }

    .movie-meta {
        font-size: 12px;
    }

    .movie-comment {
        padding: 8px;
        margin-top: 5px;
    }

    .movie-comment p {
        font-size: 12px;
    }

    .empty-state {
        padding: 50px 15px;
        border-radius: 16px;
    }

    .empty-state-icon {
        font-size: 48px;
        margin-bottom: 15px;
    }

    .empty-state-icon svg {
        width: 48px;
        height: 48px;
    }

    .empty-state-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .empty-state-text {
        font-size: 14px;
    }
}

@media screen and (max-width: 600px) {
    .hero-section {
        min-height: 350px;
        margin-bottom: 40px;
    }

    .hero-dinosaur-animation {
        width: clamp(60px, 12vw, 80px);
        height: clamp(60px, 12vw, 80px);
        margin-bottom: 10px;
    }

    .hero-title-sub {
        font-size: 16px;
        padding: 0 15px;
    }

    .hero-search-container {
        margin-top: 25px;
    }

    .page-new {
        padding: 0 12px 25px;
    }

    .content-section {
        margin-bottom: 35px;
        padding-top: 12px;
    }

    .section-header-new {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .section-title {
        font-size: 20px;
    }

    .section-title-icon {
        font-size: 20px;
    }

    .section-title-icon svg {
        width: 20px;
        height: 20px;
    }

    .section-more {
        font-size: 14px;
        padding: 5px 10px;
    }

    .movies-grid-wrapper {
        padding: 12px 0;
    }

    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 12px 0;
    }

    .movie-grid-card {
        border-radius: 8px;
    }

    .movie-grid-poster-wrapper {
        border-radius: 8px;
        padding-top: 145%;
    }

    .movie-grid-info {
        padding: 8px 5px;
        gap: 4px;
    }

    .movie-grid-title {
        font-size: 12px;
        line-height: 1.25;
        min-height: 2.4em;
        -webkit-line-clamp: 2;
    }

    .movie-grid-year {
        font-size: 10px;
    }

    .movie-grid-rating-badge {
        width: 24px;
        height: 24px;
        font-size: 10px;
        top: 4px;
    }

    .movie-grid-movie-rating {
        right: 4px;
    }

    .movie-grid-user-rating {
        left: 4px;
    }

    .friends-activity-grid {
        gap: 12px;
    }

    .friend-activity-card {
        padding: 12px;
        border-radius: 10px;
    }

    .friend-activity-header {
        margin-bottom: 12px;
    }

    .friend-activity-content {
        gap: 10px;
    }

    .movie-poster-wrapper {
        width: 60px;
        height: 90px;
    }

    .friend-avatar,
    .friend-avatar-placeholder {
        width: 36px;
        height: 36px;
    }

    .friend-name {
        font-size: 15px;
    }

    .activity-time-header {
        font-size: 11px;
    }

    .rating-badge {
        padding: 6px 12px;
        font-size: 15px;
    }

    .movie-title {
        font-size: 16px;
    }

    .movie-meta {
        font-size: 12px;
    }

    .movie-comment {
        padding: 10px;
        margin-top: 6px;
    }

    .movie-comment p {
        font-size: 13px;
    }

    .activity-time {
        font-size: 11px;
        padding-top: 6px;
    }

    .empty-state {
        padding: 40px 12px;
        border-radius: 12px;
    }

    .empty-state-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }

    .empty-state-icon svg {
        width: 40px;
        height: 40px;
    }

    .empty-state-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .empty-state-text {
        font-size: 13px;
    }

    .lists-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }

    .lists-grid .list-card-content {
        padding: 8px;
        min-height: 55px;
    }

    .lists-grid .list-title {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .lists-grid .list-description {
        font-size: 9px;
        margin-bottom: 4px;
    }

    .lists-grid .list-updated {
        font-size: 8px;
        padding-top: 4px;
    }

    .lists-grid .list-card-stats {
        font-size: 9px;
    }
}

@media screen and (max-width: 450px) {
    .hero-section {
        min-height: 320px;
        margin-bottom: 30px;
        padding: 15px 0;
    }

    .hero-content {
        padding: 15px 10px;
    }

    .hero-dinosaur-animation {
        width: 60px;
        height: 60px;
        margin-bottom: 8px;
    }

    .hero-title-sub {
        font-size: 15px;
        padding: 0 10px;
        line-height: 1.4;
    }

    .hero-search-container {
        margin-top: 20px;
    }

    .page-new {
        padding: 0 10px 20px;
    }

    .content-section {
        margin-bottom: 30px;
        padding-top: 10px;
    }

    .section-header-new {
        margin-bottom: 12px;
        padding-bottom: 8px;
        gap: 8px;
    }

    .section-title-wrapper {
        gap: 8px;
    }

    .section-title-icon {
        font-size: 18px;
    }

    .section-title-icon svg {
        width: 18px;
        height: 18px;
    }

    .section-title {
        font-size: 18px;
    }

    .section-title-underline {
        width: 40px;
        height: 2px;
    }

    .section-more {
        font-size: 13px;
        padding: 4px 8px;
    }

    .section-more svg {
        width: 16px;
        height: 16px;
    }

    /* Карусель для блоков "Обновлённое" и "Мои оценки" на очень маленьких экранах */
    .later-movies-carousel-wrapper {
        width: calc(100% + 40px);
    }
    
    .later-movies-carousel {
        grid-auto-columns: calc(100vw - 70px);
        min-width: calc(100vw - 70px);
        padding: 0 35px;
        gap: 10px;
        scroll-padding: 0 35px;
    }

    .later-movies-carousel .later-movie-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .later-movies-carousel-wrapper .carousel-arrow {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .movies-grid-wrapper {
        padding: 10px 0;
    }

    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 10px 0;
    }

    .movie-grid-card {
        border-radius: 6px;
    }

    .movie-grid-poster-wrapper {
        border-radius: 6px;
        padding-top: 140%;
        border-width: 1px;
    }

    .movie-grid-info {
        padding: 6px 4px;
        gap: 3px;
    }

    .movie-grid-title {
        font-size: 11px;
        line-height: 1.2;
        min-height: 2.2em;
    }

    .movie-grid-year {
        font-size: 9px;
    }

    .movie-grid-rating-badge {
        width: 22px;
        height: 22px;
        font-size: 9px;
        top: 3px;
    }

    .movie-grid-movie-rating {
        right: 3px;
    }

    .movie-grid-user-rating {
        left: 3px;
    }

    .collections-wrapper .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .collections-wrapper .movie-grid-poster-wrapper {
        padding-top: 135%;
    }

    .collections-wrapper .movie-grid-title {
        font-size: 10px;
    }

    .friends-activity-grid {
        gap: 10px;
    }

    .friend-activity-card {
        padding: 10px;
        border-radius: 8px;
    }

    .friend-activity-header {
        margin-bottom: 10px;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 10px;
    }

    .friend-profile {
        flex: 1;
        gap: 8px;
    }

    .friend-activity-content {
        flex-direction: column;
        gap: 10px;
    }

    .movie-poster-wrapper {
        width: 100%;
        height: 180px;
    }

    .friend-avatar,
    .friend-avatar-placeholder {
        width: 32px;
        height: 32px;
    }

    .friend-name {
        font-size: 14px;
    }

    .activity-time-header {
        font-size: 10px;
    }

    .rating-badge {
        padding: 5px 10px;
        font-size: 14px;
        flex-shrink: 0;
        margin-left: auto;
    }

    .movie-title {
        font-size: 15px;
    }

    .movie-meta {
        font-size: 11px;
        gap: 6px;
    }

    .movie-comment {
        padding: 8px;
        margin-top: 6px;
    }

    .movie-comment p {
        font-size: 12px;
    }

    .activity-time {
        font-size: 10px;
        padding-top: 6px;
    }

    .empty-state {
        padding: 30px 10px;
        border-radius: 10px;
    }

    .empty-state-icon {
        font-size: 36px;
        margin-bottom: 10px;
    }

    .empty-state-icon svg {
        width: 36px;
        height: 36px;
    }

    .empty-state-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .empty-state-text {
        font-size: 12px;
    }
}

/* ============================================
   ПОИСКОВАЯ СТРОКА В HERO
   ============================================ */

.hero-search-section {
    min-height: 500px;
}

.hero-search-content {
    max-width: 900px;
}

/* Контейнер поиска */
.hero-search-container {
    position: relative;
    width: 100%;
    margin-top: 40px;
    z-index: 999;
}

/* Обертка поисковой строки */
.hero-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 140, 0, 0.2);
    border-radius: 16px;
    padding: 4px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-search-wrapper:focus-within {
    border-color: var(--main-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.3);
}

.hero-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    color: var(--main-color);
    flex-shrink: 0;
}

.hero-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-family: var(--font-family-graphik_lcg-regular);
    font-size: clamp(16px, 2.5vw, 20px);
    padding: 16px 12px;
    width: 100%;
}

.hero-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.hero-search-clear {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-right: 8px;
}

.hero-search-clear:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

/* Результаты поиска */
.hero-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    backdrop-filter: blur(20px);
}

.hero-search-results-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-search-result-item:last-child {
    border-bottom: none;
}

.hero-search-result-item:hover,
.hero-search-result-item:focus {
    background: rgba(255, 140, 0, 0.1);
    color: var(--white);
}

.hero-search-result-poster {
    width: 56px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
}

.hero-search-result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-search-result-title {
    font-family: var(--font-family-graphik_lcg-medium);
    font-size: var(--font-size-16);
    font-weight: 500;
    color: var(--white);
}

.hero-search-result-year {
    font-size: var(--font-size-14);
    color: rgba(255, 255, 255, 0.6);
}

.hero-search-result-arrow {
    color: var(--main-color);
    font-size: 20px;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.hero-search-result-item:hover .hero-search-result-arrow {
    opacity: 1;
    transform: translateX(4px);
}


/* История поиска */
.hero-search-history {
    position: relative;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 140, 0, 0.1);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    z-index: 998;
}

.hero-search-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.hero-search-history-title {
    font-family: var(--font-family-graphik_lcg-medium);
    font-size: var(--font-size-18);
    color: var(--white);
    font-weight: 500;
}

.hero-search-history-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.hero-search-history-clear:hover {
    color: var(--main-color);
    background: rgba(255, 140, 0, 0.1);
}

.hero-search-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px; /* Примерно 3 элемента (68px постер + 20px padding + 8px gap) */
    overflow-y: auto;
    overflow-x: hidden;
    /* Стилизация скроллбара */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 140, 0, 0.3) transparent;
}

.hero-search-history-list::-webkit-scrollbar {
    width: 6px;
}

.hero-search-history-list::-webkit-scrollbar-track {
    background: transparent;
}

.hero-search-history-list::-webkit-scrollbar-thumb {
    background: rgba(255, 140, 0, 0.3);
    border-radius: 3px;
}

.hero-search-history-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 140, 0, 0.5);
}

.hero-search-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 140, 0, 0.1);
    border-radius: 8px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.2s ease;
}

.hero-search-history-item:hover {
    background: rgba(255, 140, 0, 0.1);
    border-color: var(--main-color);
    transform: translateX(4px);
}

.hero-search-history-poster {
    width: 48px;
    height: 68px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
}

.hero-search-history-poster-placeholder {
    width: 48px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 140, 0, 0.1);
    border-radius: 6px;
    font-size: 24px;
    flex-shrink: 0;
}

.hero-search-history-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-search-history-title-text {
    font-family: var(--font-family-graphik_lcg-medium);
    font-size: var(--font-size-15);
    font-weight: 500;
    color: var(--white);
}

.hero-search-history-year {
    font-size: var(--font-size-13);
    color: rgba(255, 255, 255, 0.6);
}

/* Адаптивность для поиска */
@media (max-width: 768px) {
    .hero-search-section {
        min-height: 400px;
    }
    
    .hero-search-container {
        margin-top: 30px;
    }
    
    .hero-search-wrapper {
        border-radius: 12px;
        padding: 3px;
    }
    
    .hero-search-input {
        font-size: 16px;
        padding: 14px 10px;
    }
    
    .hero-search-icon {
        padding: 0 12px;
    }
    
    .hero-search-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .hero-search-results {
        max-height: 400px;
        border-radius: 10px;
    }
    
    .hero-search-result-item {
        padding: 10px 12px;
        gap: 12px;
    }
    
    .hero-search-result-poster {
        width: 48px;
        height: 68px;
    }
    
    .hero-search-history {
        padding: 16px;
        margin-top: 16px;
    }
    
    .hero-search-history-item {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .hero-search-section {
        min-height: 350px;
    }
    
    .hero-search-container {
        margin-top: 20px;
    }
    
    .hero-search-input {
        font-size: 16px;
        padding: 12px 8px;
    }
    
    .hero-search-results {
        max-height: 350px;
    }
    
    .hero-search-history {
        padding: 12px;
    }
    
    .hero-search-history-title {
        font-size: var(--font-size-16);
    }

    .friend-activity-header {
        flex-direction: row;
        gap: 12px;
    }

    .rating-badge {
        align-self: flex-start;
    }
}

/* Анимации для каруселей */
.carousel-wrapper .slick-slide {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.carousel-wrapper .slick-slide:hover {
    transform: scale(1.05);
}

/* Дополнительные эффекты */
.content-section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 140, 0, 0.15) 50%, transparent 100%);
}

/* Адаптивность для коллекций */
@media (max-width: 1400px) {
    .collections-wrapper .movie-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (max-width: 1200px) {
    .collections-wrapper .movie-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 768px) {
    .collections-wrapper .movie-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .collections-wrapper .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
}

