/* CSS Variables for Theme Colors */
:root {
    /* Dark Theme (Default) */
    --bg-primary: #0a0a0a;
    --bg-secondary: #14171a;
    --bg-tertiary: #1a1d21;
    --bg-quaternary: #20242a;
    --bg-glass: rgba(20, 23, 26, 0.85);
    --bg-glass-heavy: rgba(20, 23, 26, 0.95);
    --bg-overlay: rgba(0, 0, 0, 0.7);
    
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-tertiary: #9e9e9e;
    --text-quaternary: #6c6c6c;
    
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-secondary: rgba(255, 255, 255, 0.05);
    --border-accent: rgba(255, 215, 0, 0.3);
    
    --accent-primary: #FFD700;
    --accent-secondary: #E50914;
    --accent-tertiary: #ff6b35;
    
    --hover-bg: rgba(255, 255, 255, 0.1);
    --hover-bg-light: rgba(255, 255, 255, 0.05);
    --hover-accent: rgba(255, 215, 0, 0.1);
    
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.3);
    --shadow-heavy: rgba(0, 0, 0, 0.7);
    
    --card-bg: linear-gradient(145deg, #1a1d21, #20242a);
    --card-hover-bg: linear-gradient(145deg, #242832, #2d3340);
    --movie-rating-bg: rgba(0, 0, 0, 0.8);
    --genre-card-bg: linear-gradient(145deg, #1a1d21, #20242a);
    --filter-bg: #1a1a1a;
    --filter-border: #333;
    --pagination-bg: rgba(255, 255, 255, 0.05);
    --pagination-border: rgba(255, 255, 255, 0.2);
}

/* Light Theme - ТІЛЬКИ ЗМІНИ КОЛЬОРІВ */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-quaternary: #e2e8f0;
    --bg-glass: rgba(59, 130, 246, 0.95);
    --bg-glass-heavy: rgba(37, 99, 235, 0.98);
    --bg-overlay: rgba(0, 0, 0, 0.1);
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-quaternary: #94a3b8;
    
    --border-primary: rgba(59, 130, 246, 0.2);
    --border-secondary: rgba(59, 130, 246, 0.1);
    --border-accent: rgba(239, 68, 68, 0.3);
    
    --accent-primary: #ef4444;
    --accent-secondary: #dc2626;
    --accent-tertiary: #f97316;
    
    --hover-bg: rgba(59, 130, 246, 0.1);
    --hover-bg-light: rgba(59, 130, 246, 0.05);
    --hover-accent: rgba(239, 68, 68, 0.1);
    
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-heavy: rgba(0, 0, 0, 0.3);
    
    --card-bg: linear-gradient(145deg, #ffffff, #f8fafc);
    --card-hover-bg: linear-gradient(145deg, #f1f5f9, #e2e8f0);
    --movie-rating-bg: rgba(255, 255, 255, 0.95);
    --genre-card-bg: linear-gradient(145deg, #ffffff, #f8fafc);
    --filter-bg: #ffffff;
    --filter-border: #cbd5e1;
    --pagination-bg: rgba(59, 130, 246, 0.05);
    --pagination-border: rgba(59, 130, 246, 0.2);
}

/* Додаткові покращення для світлої теми */
[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .theme-toggle .material-icons {
    color: #3b82f6;
}

[data-theme="light"] .sidebar {
    background: rgba(255, 255, 255, 0.98);
    border-right-color: rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .nav-item:hover,
[data-theme="light"] .nav-item.active {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
}

[data-theme="light"] header {
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 2px 20px rgba(59, 130, 246, 0.1);
}

[data-theme="light"] header.scrolled {
    box-shadow: 0 8px 40px rgba(59, 130, 246, 0.2);
    border-bottom-color: rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .icon-btn,
[data-theme="light"] .logo,
[data-theme="light"] .logo span {
    color: #ffffff;
}

/* Стилі для світлої теми */
[data-theme="light"] .search-container {
    background: rgba(255, 255, 255);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Неактивне поле - синій текст */
[data-theme="light"] .search-input {
    color: #3b82f6;
}

[data-theme="light"] .search-input::placeholder {
    color: rgba(59, 130, 246, 0.7);
}

/* Активне поле (фокус) - білий текст */
[data-theme="light"] .search-input:focus {
    color: #ffffff !important;
}

[data-theme="light"] .search-input:focus::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Коли поле заповнене - також білий текст */
[data-theme="light"] .search-input:not(:placeholder-shown) {
    color: #ffffff !important;
}

/* Активний контейнер при фокусі */
[data-theme="light"] .search-container:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 1);
}

[data-theme="light"] .search-icon {
    color: rgba(59, 130, 246, 0.8);
}

/* Активна іконка при фокусі */
[data-theme="light"] .search-container:focus-within .search-icon {
    color: rgba(255, 255, 255, 0.9);
}
[data-theme="light"] .genre-card:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

[data-theme="light"] .genre-card:hover .material-icons {
    color: var(--accent-primary);
}

[data-theme="light"] .genre-scroll-btn {
    background: rgba(239, 68, 68, 0.9);
    box-shadow: 0 3px 12px rgba(239, 68, 68, 0.3);
}

[data-theme="light"] .genre-scroll-btn:hover {
    background: #dc2626;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

[data-theme="light"] .movie-rating {
    color: #f59e0b;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

[data-theme="light"] .play-overlay {
    background: rgba(239, 68, 68, 0.9);
}

[data-theme="light"] .filter-select {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

[data-theme="light"] .filter-tag {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

[data-theme="light"] .results-info {
    background: rgba(59, 130, 246, 0.05);
    border-left-color: var(--accent-primary);
}







/* ==== БЛОК ДЕТАЛІ ФІЛЬМУ ==== */
.movie-details-block {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 0;
    border: 1px solid var(--border-secondary);
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow-medium);
    margin-bottom: 30px;
}

.movie-details-header {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
    color: #ffffff;
    padding: 18px 25px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.movie-details-content {
    padding: 25px;
    background: var(--bg-secondary);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-secondary);
    transition: all 0.3s ease;
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-row:hover {
    background: var(--hover-bg-light);
    border-radius: 8px;
    margin: 0 -12px;
    padding: 14px 12px;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
    font-weight: 500;
    font-size: 14px;
    flex-shrink: 0;
    min-width: 120px;
}

.detail-label .material-icons {
    font-size: 18px;
    color: var(--accent-primary);
}

.detail-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    text-align: right;
    flex-grow: 1;
    margin-left: 15px;
}

/* Спеціальні стилі для різних типів значень */
.detail-value.genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.genre-badge {
    background: var(--hover-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.genre-badge:hover {
    background: var(--hover-accent);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.detail-value.cast {
    font-size: 13px;
    line-height: 1.5;
    max-width: 300px;
}

.detail-value.duration {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--accent-primary);
    background: var(--hover-accent);
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid var(--border-accent);
}

.detail-value.age-rating {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px var(--shadow-light);
    text-align: center;
    min-width: 50px;
}

.detail-value.year {
    background: var(--hover-accent);
    color: var(--accent-primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 700;
    border: 1px solid var(--border-accent);
}

.detail-value.sound {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 13px;
}

/* ==== ВИПРАВЛЕННЯ КОЛЬОРІВ ЗАГОЛОВКІВ НА СВІТЛІЙ ТЕМІ ==== */

/* Заголовки секцій */
[data-theme="light"] .section-title,
[data-theme="light"] .rec-title,
[data-theme="light"] h2,
[data-theme="light"] h3 {
    color: var(--text-primary) !important;
}

/* Заголовок "Про фільм" */
[data-theme="light"] .content-section h2,
[data-theme="light"] .section-header h2 {
    color: var(--text-primary) !important;
}

/* Заголовок "Рекомендуємо подивитися" */
[data-theme="light"] .recommended-section .rec-title {
    color: var(--text-primary) !important;
}

/* Підзаголовки та мета інформація */
[data-theme="light"] .movie-subtitle {
    color: #f59e0b !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Заголовки в блоці деталей */
[data-theme="light"] .movie-details-header,
[data-theme="light"] .info-sidebar-header {
    color: #ffffff !important;
}

/* Назви фільмів в рекомендаціях */
[data-theme="light"] .unique-title,
[data-theme="light"] .movie-title {
    color: var(--text-primary) !important;
}

/* Додаткові виправлення для світлої теми */
[data-theme="light"] .detail-value.duration {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

[data-theme="light"] .detail-value.year {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

[data-theme="light"] .genre-badge:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* Responsive для блоку деталей */
@media (max-width: 768px) {
    .movie-details-content {
        padding: 20px;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 0;
    }
    
    .detail-label {
        min-width: auto;
        margin-bottom: 4px;
    }
    
    .detail-value {
        text-align: left;
        margin-left: 0;
        width: 100%;
    }
    
    .detail-value.genres {
        justify-content: flex-start;
    }
    
    .detail-value.cast {
        max-width: 100%;
        font-size: 12px;
    }
    
    .movie-details-header {
        padding: 16px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .movie-details-content {
        padding: 16px;
    }
    
    .detail-label {
        font-size: 13px;
    }
    
    .detail-label .material-icons {
        font-size: 16px;
    }
    
    .detail-value {
        font-size: 13px;
    }
    
    .genre-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .detail-value.cast {
        font-size: 11px;
    }
}










/* ==== ВИПРАВЛЕННЯ ТІЛЬКИ ДЛЯ СВІТЛОЇ ТЕМИ ==== */

/* Фон під секцією рекомендацій */
[data-theme="light"] .recommended-section {
    background: var(--bg-tertiary);
}

/* Фон для карточок рекомендацій */
[data-theme="light"] .unique-info {
    background: var(--bg-secondary);
}

/* Фон для контенту деталей фільму */
[data-theme="light"] .info-content {
    background: var(--bg-secondary);
}

/* Обводка для карточок рекомендацій */
[data-theme="light"] .unique-card {
    border-color: var(--border-primary);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .unique-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.2);
}

/* Обводка для деталей фільму */
[data-theme="light"] .info-sidebar {
    border-color: var(--border-primary);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

/* Обводка для рядків в деталях */
[data-theme="light"] .info-row {
    border-bottom-color: var(--border-secondary);
}

/* Текст в деталях фільму */
[data-theme="light"] .info-label {
    color: var(--text-secondary);
}

[data-theme="light"] .info-value {
    color: var(--text-primary);
}

/* Теги жанрів */
[data-theme="light"] .genre-tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--text-primary);
    border-color: rgba(59, 130, 246, 0.2);
}

/* Мета інформація в рекомендаціях */
[data-theme="light"] .unique-year {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-primary);
    border-color: rgba(239, 68, 68, 0.2);
}

[data-theme="light"] .unique-genre {
    background: rgba(59, 130, 246, 0.1);
    color: var(--text-secondary);
    border-color: rgba(59, 130, 246, 0.2);
}

/* Стрілки навігації */
[data-theme="light"] .unique-arrow {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .unique-arrow:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2);
}

/* Overlay для зображень рекомендацій на світлій темі */
[data-theme="light"] .unique-image::after {
    background: linear-gradient(to top, var(--bg-secondary) 0%, rgba(248, 250, 252, 0.3) 50%, transparent 100%);
}

/* Hover ефект для рядків деталей */
[data-theme="light"] .info-row:hover {
    background: rgba(59, 130, 246, 0.05);
}













/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

body.sidebar-open {
    margin-left: 280px;
}

/* Theme Toggle Button */
.theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hover-bg);
    border: 1px solid var(--border-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--hover-accent);
    border-color: var(--accent-primary);
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 4px 15px var(--shadow-medium);
}

.theme-toggle .material-icons {
    color: var(--text-primary);
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 2;
}

.theme-toggle:hover .material-icons {
    color: var(--accent-primary);
    transform: rotate(-10deg);
}

/* Animated background for theme toggle */
.theme-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    opacity: 0;
}

.theme-toggle:hover::before {
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

/* Theme transition animation */
.theme-switching {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.theme-switching * {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ==== SIDEBAR ==== */
.sidebar {
    position: fixed;
    top: 60px;
    left: -280px;
    width: 280px;
    height: calc(100vh - 60px);
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-primary);
    z-index: 90;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar.open {
    left: 0;
}

.sidebar-nav {
    padding: 15px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover, .nav-item.active {
    background: var(--hover-accent);
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
}

.nav-item .material-icons {
    font-size: 22px;
}

.nav-section {
    padding: 15px 16px 8px;
    color: var(--text-quaternary);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Overlay for mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(5px);
    z-index: 80;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==== HEADER ==== */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 16px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 20px var(--shadow-light);
}

header.scrolled {
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 8px 40px var(--shadow-medium);
    border-bottom-color: var(--border-primary);
}

.left, .right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 6px;
    border-radius: 6px;
    position: relative;
}

.icon-btn:hover {
    transform: scale(1.05);
    background: var(--hover-bg);
}

.icon-btn:hover .material-icons {
    color: var(--accent-primary);
}

a .logo {
    text-decoration: none;
}

/* або */

a:has(.logo) {
    text-decoration: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--accent-primary);
    cursor: pointer;
}

.logo span {
    color: var(--text-primary);
}

/* Search Field for Desktop */
.search-container {
    display: flex;
    align-items: center;
    background: var(--hover-bg);
    border-radius: 20px;
    padding: 6px 12px;
    width: 280px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-secondary);
}

.search-container:focus-within {
    background: var(--hover-bg);
    border-color: var(--border-accent);
    box-shadow: 0 0 0 2px var(--hover-accent);
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.search-icon {
    color: var(--text-tertiary);
    font-size: 18px;
    margin-right: 6px;
}

/* Mobile Search Overlay */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(20px);
    z-index: 200;
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.mobile-search-overlay.active {
    transform: translateY(0);
}

.mobile-search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.mobile-search-close {
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    background: var(--hover-bg);
    transition: all 0.2s ease;
}

.mobile-search-close:hover {
    background: var(--hover-accent);
}

.mobile-search-input {
    flex: 1;
    background: var(--hover-bg);
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
}

.mobile-search-input::placeholder {
    color: var(--text-tertiary);
}

/* Hide/Show elements based on screen size */
.desktop-search {
    display: none;
}

.mobile-search-btn {
    display: flex;
}

@media (min-width: 1024px) {
    .desktop-search {
        display: flex;
    }
    
    .mobile-search-btn {
        display: none;
    }
    
    .sidebar {
        left: 0;
        position: fixed;
        top: 60px;
        height: calc(100vh - 60px);
        z-index: 90;
    }
    
    body {
        margin-left: 280px;
    }
    
    header {
        left: 0;
        padding-left: 16px;
        z-index: 100;
    }
    
    .logo {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Прижимаємо пошук до правої частини */
    .header-center {
        display: flex;
        justify-content: flex-end;
        flex: 1;
        margin-left: 300px;
        margin-right: 16px;
    }
    
    .header-right {
        margin-left: 0;
    }
    
    .left {
        display: none;
    }
    
    @media (max-width: 1023px) {
        .header-center {
            display: none;
        }
        
        .logo {
            position: static;
            transform: none;
        }
        .logo a {
           text-decoration: none;
        }
    }
    
    .sidebar-overlay {
        display: none;
    }
}

/* ==== SLIDER ==== */
.slider-container {
    padding: 70px 15px 15px;
    background: var(--bg-primary);
}

.slider {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 12px;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 15px 40px var(--shadow-heavy);
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    color: #fff;
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1);
}

.slide::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 60%;
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #FFD700;
    font-size: 16px;
    filter: drop-shadow(0 0 3px rgba(255,215,0,0.5));
}

.rating-text {
    font-size: 13px;
    color: #ccc;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.slide p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 16px;
    color: #eee;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.slide-buttons {
    display: flex;
    gap: 10px;
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

.btn {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
}

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

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

.btn-watch {
    background: linear-gradient(135deg, #E50914 0%, #ff1744 100%);
    color: #fff;
    box-shadow: 0 3px 12px rgba(229, 9, 20, 0.3);
    text-decoration: none !important;
}

.btn-watch:hover {
    background: linear-gradient(135deg, #ff1744 0%, #E50914 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5);
    text-decoration: none !important;
}

.btn-trailer {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    box-shadow: 0 3px 12px rgba(255, 215, 0, 0.3);
    text-decoration: none !important;
}

.btn-trailer:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    text-decoration: none !important;
}

.dots {
    display: none;
}

/* Progress bar */
.slide-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(135deg, #e50914 0%, #ff6b35 100%);
    z-index: 4;
    transform-origin: left;
    animation: slideProgress 5s linear infinite;
}

@keyframes slideProgress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* ==== GENRES ==== */
.genres {
    padding: 15px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.section-header {
    margin-bottom: 15px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.section-line {
    display: none;
}

.genres-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;
}

.genres-list {
    display: flex;
    gap: 15px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 8px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 1200px;
    margin: 0 auto;
}

.genres-list::-webkit-scrollbar { 
    display: none; 
}

.genre-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    height: 100px;
    background: var(--genre-card-bg);
    border-radius: 12px;
    padding: 16px 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    color: var(--text-secondary);
    cursor: pointer;
    border: 1px solid var(--border-secondary);
    position: relative;
    overflow: hidden;
}

.genre-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.genre-card:hover::before {
    opacity: 1;
}

.genre-card:hover {
    background: var(--card-hover-bg);
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--shadow-medium);
    text-decoration: none !important;
}

.genre-card .material-icons {
    font-size: 28px;
    margin-bottom: 6px;
    transition: transform 0.3s ease;
    color: var(--text-quaternary);
    filter: drop-shadow(0 2px 4px var(--shadow-light));
}

.genre-card:hover .material-icons {
    transform: scale(1.1);
    color: #3b82f6;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}

.genre-card span:last-child {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    color: var(--text-primary);
    text-shadow: 0 1px 3px var(--shadow-light);
}

.genre-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.9);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 3px 12px rgba(59, 130, 246, 0.3);
}

.genre-scroll-btn:hover {
    background: #2563eb;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.genre-scroll-btn.visible {
    opacity: 1;
    visibility: visible;
}

.genre-scroll-btn.prev {
    left: 10px;
}

.genre-scroll-btn.next {
    right: 10px;
}

.genre-scroll-btn .material-icons {
    font-size: 20px;
}

/* ==== MOVIES SECTION ==== */
.movies-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px;
}

.section-header h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--text-primary);
}

/* ==== MOVIES GRID ==== */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.movie-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid var(--border-secondary);
    position: relative;
    group: hover;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.movie-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--hover-accent) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 12px;
}

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

.movie-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 30px var(--shadow-heavy);
    border-color: var(--border-accent);
    text-decoration: none;
    color: inherit;
}

.movie-poster {
    position: relative;
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    flex-shrink: 0;
}

.movie-poster::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 2;
}

.movie-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--movie-rating-bg);
    backdrop-filter: blur(10px);
    color: var(--accent-primary);
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 3;
}

[data-theme="light"] .movie-rating {
    color: #f59e0b;
}

.movie-rating .material-icons {
    font-size: 12px;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(229, 9, 20, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
}

.movie-card:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-overlay .material-icons {
    color: #fff;
    font-size: 20px;
    margin-left: 2px;
}

.movie-info {
    padding: 15px;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.movie-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
    line-height: 1.3;
    text-shadow: 0 1px 3px var(--shadow-light);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 1.3em;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 11px;
}

.movie-year {
    color: var(--text-secondary);
}

.movie-genre {
    color: var(--accent-primary);
}

.movie-description {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.3;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.movie-actions {
    display: flex;
    gap: 6px;
}

.action-btn {
    flex: 1;
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none !important;
}

.btn-watch {
    background: linear-gradient(135deg, #E50914 0%, #ff1744 100%);
    color: #fff;
    text-decoration: none !important;
}

.btn-watch:hover {
    background: linear-gradient(135deg, #ff1744 0%, #E50914 100%);
    transform: translateY(-1px);
    text-decoration: none !important;
}

.btn-favorite {
    background: var(--hover-bg);
    color: var(--text-tertiary);
    border: 1px solid var(--border-primary);
}

.btn-favorite:hover {
    background: var(--hover-accent);
    color: var(--accent-primary);
    border-color: var(--border-accent);
}

.btn-favorite.active {
    background: var(--hover-accent);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* ==== PAGINATION ==== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 25px;
    flex-wrap: nowrap;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: var(--pagination-bg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 13px;
    padding: 0 6px;
    flex-shrink: 0;
    border: 1px solid var(--pagination-border);
}

.pagination-btn:hover {
    background: var(--hover-accent);
    color: var(--accent-primary);
    transform: translateY(-1px);
}

.pagination-btn.active {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
    color: #fff;
    box-shadow: 0 3px 12px var(--shadow-medium);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.pagination-btn:disabled:hover {
    background: var(--pagination-bg);
    color: var(--text-secondary);
    transform: none;
}

.pagination-dots {
    color: var(--text-quaternary);
    padding: 0 6px;
    font-weight: bold;
    flex-shrink: 0;
}

.pagination-info {
    margin: 12px 0 0 0;
    font-size: 13px;
    color: var(--text-quaternary);
    text-align: center;
    width: 100%;
}

/* ==== FOOTER ==== */
.site-footer {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 50%, var(--bg-secondary) 100%);
    color: var(--text-secondary);
    padding: 30px 15px 15px;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.5;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.footer-section h3 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 25px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    border-radius: 1px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    padding: 4px 0;
    border-left: 3px solid transparent;
    padding-left: 8px;
    margin-left: -8px;
}

.footer-links a:hover {
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
    transform: translateX(4px);
}

.footer-about {
    line-height: 1.5;
    color: var(--text-secondary);
    font-size: 13px;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-icons a:hover::before {
    opacity: 1;
}

.social-icons a.instagram {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.social-icons a.telegram { 
    background: linear-gradient(135deg, #0088cc, #0088cc);
}

.social-icons a.tiktok { 
    background: linear-gradient(135deg, #000000, #ff0050);
}

.social-icons a:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.social-icons .material-icons {
    position: relative;
    z-index: 2;
    font-size: 20px;
}

.footer-bottom {
    border-top: 1px solid var(--border-primary);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-quaternary);
}

.footer-legal {
    display: flex;
    gap: 15px;
}

.footer-legal a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--accent-primary);
}

/* Filters Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 0;
}

.movies-filters {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-tertiary);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.filter-label .material-icons {
    font-size: 14px;
    color: var(--text-quaternary);
}

.filter-select {
    background: var(--filter-bg);
    border: 1px solid var(--filter-border);
    border-radius: 5px;
    color: var(--text-tertiary);
    padding: 6px 24px 6px 8px;
    font-size: 12px;
    cursor: pointer;
    appearance: none;
    outline: none;
    min-width: 70px;
    position: relative;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23666666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 6px center;
    background-repeat: no-repeat;
    background-size: 14px;
}

.filter-select:hover {
    border-color: var(--border-primary);
    color: var(--text-primary);
}

.filter-select option {
    background: var(--filter-bg);
    color: var(--text-tertiary);
}

.reset-btn {
    background: rgba(139, 69, 19, 0.2);
    border: 1px solid #8b4513;
    border-radius: 5px;
    color: #ff8c42;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 12px;
    display: none;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.reset-btn:hover {
    border-color: #ff8c42;
    background: rgba(255, 140, 66, 0.2);
    color: #ffaa66;
}

.reset-btn .material-icons {
    font-size: 14px;
}

/* Active Filters */
.active-filters {
    max-width: 1200px;
    margin: 8px auto;
    padding: 0;
    display: none;
}

.filters-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-tag {
    display: flex;
    align-items: center;
    background: rgba(26, 34, 54, 0.8);
    border: 1px solid #3b5998;
    border-radius: 12px;
    padding: 3px 6px;
    font-size: 11px;
    color: #87ceeb;
}

[data-theme="light"] .filter-tag {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    color: #1e40af;
}

.filter-tag .filter-label {
    color: #6b9bd8;
    margin-right: 3px;
    font-size: 11px;
}

[data-theme="light"] .filter-tag .filter-label {
    color: #3b82f6;
}

.filter-tag .filter-value {
    color: #b3d9ff;
    margin-right: 4px;
}

[data-theme="light"] .filter-tag .filter-value {
    color: #1e40af;
}

.filter-remove {
    background: transparent;
    border: none;
    color: #7db3e8;
    cursor: pointer;
    padding: 1px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-remove:hover {
    color: #b3d9ff;
}

[data-theme="light"] .filter-remove {
    color: #3b82f6;
}

[data-theme="light"] .filter-remove:hover {
    color: #1e40af;
}

.filter-remove .material-icons {
    font-size: 12px;
}

/* Results Info */
.results-info {
    color: var(--text-tertiary);
    font-size: 12px;
    margin: 15px 0 10px;
    text-align: left;
    padding: 6px 10px;
    background: var(--hover-bg-light);
    border-radius: 5px;
    border-left: 2px solid var(--border-primary);
    font-weight: 400;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Enhanced Loading States */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
    min-height: 200px;
    max-width: 1200px;
    margin: 0 auto;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-primary);
    border-top: 3px solid var(--accent-tertiary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

/* Enhanced Error States */
.error-message {
    text-align: center;
    padding: 30px 15px;
    color: var(--accent-tertiary);
    font-size: 14px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 10px;
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.error-message .material-icons {
    font-size: 40px;
    opacity: 0.7;
}

.no-movies {
    text-align: center;
    padding: 40px 15px;
    color: var(--text-tertiary);
    font-size: 16px;
    background: var(--hover-bg-light);
    border-radius: 10px;
    margin: 15px 0;
    line-height: 1.4;
}

/* Scroll to top button */
.scroll-up {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-tertiary), #f7931e);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px var(--shadow-medium);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    outline: none;
}

.scroll-up:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px var(--shadow-heavy);
    background: linear-gradient(135deg, #ff8c42, #ffb347);
}

.scroll-up:active {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 6px 15px var(--shadow-medium);
}

.scroll-up .material-icons {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.scroll-up:hover .material-icons {
    transform: translateY(-1px);
    animation: bounce 0.6s ease infinite alternate;
}

/* Анімація стрибання іконки */
@keyframes bounce {
    0% { transform: translateY(-1px); }
    100% { transform: translateY(-4px); }
}

/* Ефект пульсації */
.scroll-up::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-tertiary), #f7931e);
    opacity: 0;
    transform: scale(1.2);
    transition: all 0.3s ease;
}

.scroll-up:hover::before {
    opacity: 0.3;
    transform: scale(1.4);
}

/* ==== RESPONSIVE ==== */
@media (max-width: 1200px) {
    .movies-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

@media (max-width: 1023px) {
    body.sidebar-open {
        margin-left: 0;
    }
    
    .sidebar {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    header {
        padding-left: 16px;
    }
    
    .genres-container {
        padding: 0px;
    }
    
    .genre-scroll-btn {
        display: none !important;
    }
    
    .genres-list {
        overflow-x: auto;
        padding-bottom: 15px;
    }
}

@media (max-width: 1000px) {
    .movies-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .slider-container { 
        padding: 65px 10px 10px; 
    }
    
    .slider { 
        height: 300px; 
    }
    
    .slide-content { 
        max-width: 85%; 
        padding-bottom: 50px;
    }
    
    .slide h1 { 
        font-size: 20px; 
    }
    
    .slide p { 
        font-size: 12px; 
    }
    
    .btn { 
        padding: 8px 16px; 
        font-size: 12px; 
    }
    
    .genres { 
        padding: 10px; 
    }
    
    .genre-card { 
        min-width: 85px;
        height: 85px;
        padding: 12px 8px; 
    }
    
    .genre-card .material-icons {
        font-size: 24px;
        margin-bottom: 4px;
    }
    
    .genre-card span:last-child {
        font-size: 10px;
    }
    
    .movies-section {
        padding: 0px 10px;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 10px;
        padding: 0;
    }
    
    .movie-poster {
        height: 200px;
    }
    
    .movie-info {
        padding: 12px;
    }
    
    .movie-title {
        font-size: 13px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 0px;
        align-items: flex-start;
        padding: 0px 0;
    }

    .movies-filters {
        gap: 6px;
    }

    .filter-select {
        font-size: 11px;
        padding: 5px 20px 5px 6px;
        min-width: 60px;
    }
    
    .pagination {
        gap: 3px;
        justify-content: center;
        margin: 20px 0 10px;
    }
    
    .pagination-btn {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
        padding: 8px 10px;
    }
    
    .pagination-info {
        font-size: 11px;
        margin-top: 8px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .site-footer {
        padding: 25px 10px 10px;
    }
    
    .results-info {
        font-size: 11px;
        margin: 8px 0;
    }
}

@media (max-width: 480px) {
    .slider { 
        height: 250px; 
    }
    
    .slide h1 { 
        font-size: 18px; 
    }
    
    .slide-content { 
        max-width: 90%; 
        
    }
    
    .genre-card { 
        min-width: 75px;
        height: 75px;
        padding: 10px 6px;
    }
    
    .genre-card .material-icons {
        font-size: 20px;
    }
    
    .movies-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .movie-poster {
        height: 180px;
    }
    
    .movie-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .section-header h2 {
        font-size: 18px;
    }

    .movies-filters {
        width: 100%;
        justify-content: space-between;
    }

    .filter-group {
        flex: 1;
    }

    .filter-select {
        width: 100%;
        min-width: auto;
    }

    .reset-btn {
        flex-shrink: 0;
    }
    
    .pagination {
        gap: 2px;
    }
    
    .pagination-btn {
        min-width: 28px;
        height: 28px;
        font-size: 11px;
        padding: 6px 8px;
    }
    
    .pagination-dots {
        padding: 0 3px;
        font-size: 14px;
    }
    
    .social-icons a {
        width: 36px;
        height: 36px;
    }
    
    .social-icons .material-icons {
        font-size: 16px;
    }
    
    .scroll-up {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .scroll-up .material-icons {
        font-size: 20px;
    }
}

/* Animation for theme switch */
@keyframes themeSwitch {
    0% { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% { 
        transform: scale(0.8) rotate(180deg);
        opacity: 0.7;
    }
    100% { 
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

.theme-switching .theme-toggle {
    animation: themeSwitch 0.5s ease-in-out;
}

[data-theme="light"] .search-container:focus-within {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 193, 7, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.1);

}

[data-theme="light"] .sidebar {
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(20px);
}

[data-theme="light"] .filter-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23999999' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}
/* ==== MOVIE HERO SECTION ==== */
.movie-hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 0 20px;
  margin-top: 60px;
  overflow: hidden;
}

.movie-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.1) 60%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
}

.movie-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.8) 0%, transparent 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
}

.movie-poster-large {
  width: 280px;
  height: 420px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.movie-poster-large:hover {
  transform: translateY(-8px);
}

.movie-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.movie-title-hero {
  font-size: 48px;
  font-weight: 700;
  margin: 0;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
  line-height: 1.1;
  color: #fff;
}

.movie-subtitle {
  font-size: 24px;
  color: #FFD700;
  font-weight: 600;
  margin: 0;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.movie-meta-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  font-size: 16px;
}

.rating-hero {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars-hero {
  display: flex;
  gap: 2px;
}

.star-hero {
  color: #FFD700;
  font-size: 24px;
  filter: drop-shadow(0 0 3px rgba(255,215,0,0.5));
}

.rating-text-hero {
  font-weight: 600;
  color: #fff;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ccc;
}

.meta-item .material-icons {
  font-size: 18px;
  color: #FFD700;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.btn-hero {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
}

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

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

.btn-watch-hero {
  background: linear-gradient(135deg, #E50914 0%, #ff1744 100%);
  color: #fff;
  box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
}

.btn-watch-hero:hover {
  background: linear-gradient(135deg, #ff1744 0%, #E50914 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(229, 9, 20, 0.6);
}

.btn-trailer-hero {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

.btn-trailer-hero:hover {
  background: rgba(255,215,0,0.2);
  border-color: rgba(255,215,0,0.5);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 215, 0, 0.3);
}

.btn-favorite-hero {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  padding: 16px;
  min-width: auto;
}

.btn-favorite-hero:hover {
  background: rgba(255,215,0,0.2);
  border-color: rgba(255,215,0,0.5);
  color: #FFD700;
}

.btn-favorite-hero.active {
  background: rgba(255,215,0,0.2);
  border-color: rgba(255,215,0,0.5);
  color: #FFD700;
}

/* ==== CONTENT SECTIONS ==== */
.movie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #fff;
}

/* Movie Info Grid */
.movie-info-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.info-main {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* ПОЛІПШЕНІ ДЕТАЛІ ФІЛЬМУ */
.info-sidebar {
  background: rgba(15, 15, 20, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 0;
  height: fit-content;
 
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.info-sidebar-header {
  padding: 20px 25px;
  background: linear-gradient(135deg, #E50914 0%, #FFD700 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-content {
  padding: 25px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: all 0.3s ease;
}

.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-row:hover {
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  margin: 0 -10px;
  padding: 12px 10px;
}

.info-label {
  color: #a8a8a8;
  font-weight: 500;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 80px;
}

.info-label .material-icons {
  font-size: 16px;
  color: #FFD700;
}

.info-value {
  color: #fff;
  font-weight: 600;
  text-align: right;
  font-size: 13px;
  line-height: 1.4;
  flex-grow: 1;
  margin-left: 15px;
}

.genres-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.genre-tag {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.age-rating {
  background: linear-gradient(135deg, #E50914 0%, #FFD700 100%);
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Player Section Styles */
.player-section {
  margin: 30px 0;
}

.player-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  align-items: center;
  flex-wrap: wrap;
  overflow-x: auto;
  padding-bottom: 5px;
}

.tab-button {
  padding: 10px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #b8b8b8;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-button:hover {
  background: rgba(255,215,0,0.15);
  border-color: rgba(255,215,0,0.3);
  color: #FFD700;
}

.tab-button.active {
  background: linear-gradient(135deg, #E50914 0%, #FFD700 100%);
  border-color: transparent;
  color: #fff;
}

.tab-alert {
  color: #FFD700;
  font-size: 16px;
  margin-left: 8px;
  flex-shrink: 0;
}

.player-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 54.25%; /* 16:9 aspect ratio */
  border-radius: 12px;
  overflow: hidden;

}

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

/* Posters Grid Enhancement */
.posters-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 25px 0;
}

.poster-thumbnail {
  width: 200px; 
  height: 110px;
  overflow: hidden;
  background: linear-gradient(145deg, #1a1d21, #20242a);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.04);
}

.poster-thumbnail:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.4);
  border-color: rgba(255,215,0,0.2);
}

.poster-thumbnail img {
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  border-radius: 10px;
}

/* Modal Enhancement */
.modal_poster {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.95);
  backdrop-filter: blur(10px);
}

.modal_poster-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease;
}

.close:hover {
  color: #FFD700;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: none;
  font-size: 24px;
  padding: 15px 20px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 1001;
}

.nav-btn:hover {
  background: rgba(255,215,0,0.3);
  color: #FFD700;
}

.nav-btn.prev {
  left: 20px;
}

.nav-btn.next {
  right: 20px;
}

.modal_poster-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

/* ПОКРАЩЕНА КАРУСЕЛЬ РЕКОМЕНДАЦІЙ */
.recommended-section {
  margin-top: 0;
  padding: 40px 0;
  background: rgba(15, 15, 20, 0.3);
}

.rec-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #fff;
  padding: 0 20px;
}

.unique-carousel {
  position: relative;
  margin: 0;
  padding: 0 0px;
}

.unique-container {
  overflow: hidden;
  position: relative;
  margin: 0 60px; /* Відступи для стрілок */
}

.unique-track {
  display: flex;
  gap: 20px;
  transition: none;
  will-change: transform;
}

/* ПОЛІПШЕНА КАРТОЧКА РЕКОМЕНДАЦІЙ */
.unique-card {
  flex: 0 0 220px;
  background: linear-gradient(145deg, #1a1d21, #1c2026);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
  height: 380px; /* Фіксована висота для рівності */
}

.unique-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border-color: rgba(255,215,0,0.4);
}

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

.unique-card:hover::before {
  opacity: 1;
}

.unique-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
}

.unique-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  pointer-events: none;
}

.unique-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.unique-card:hover .unique-image img {
  transform: scale(1.1);
}

.unique-info {
  padding: 16px;
  position: relative;
  z-index: 2;
  height: 100px; /* Фіксована висота для тексту */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.unique-title {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 8px;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 36px; /* Мінімальна висота для 2 рядків */
}

.unique-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 12px;
  color: #a8a8a8;
}

.unique-year {
  background: rgba(255,215,0,0.15);
  color: #FFD700;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid rgba(255,215,0,0.2);
}

.unique-genre {
  background: rgba(255,255,255,0.08);
  color: #ccc;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.1);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* СТІЛЬНІ СТРІЛКИ КАРУСЕЛЬКИ */
.unique-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.9);
  border: 2px solid rgba(255,215,0,0.5);
  color: #FFD700;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  backdrop-filter: blur(20px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.unique-arrow:hover {
  background: rgba(255,215,0,0.3);
  border-color: rgba(255,215,0,0.8);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(255,215,0,0.4);
}

.unique-arrow.left {
  left: 15px;
}

.unique-arrow.right {
  right: 15px;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 1023px) {
  .movie-info-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 25px;
  }
  
  .movie-poster-large {
    width: 200px;
    height: 300px;
    margin: 0 auto;
  }
  
  .unique-container {
    margin: 0 50px;
  }
  
  .unique-card {
    flex: 0 0 200px;
    height: 360px;
  }
  
  .unique-image {
    height: 260px;
  }
}

@media (max-width: 768px) {
  .movie-hero {
    height: 80vh;
    min-height: 500px;
    padding: 20px 15px;
  }
  
  .hero-content {
    gap: 20px;
  }
  
  .movie-title-hero {
    font-size: 28px;
  }
  
  .movie-subtitle {
    font-size: 16px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn-hero {
    padding: 14px 24px;
    font-size: 14px;
    justify-content: center;
  }
  
  .movie-content {
    padding: 30px 15px;
  }
  
  .section-title {
    font-size: 22px;
  }
  
  .content-section {
    margin-bottom: 30px;
  }
  
  .info-sidebar {
    border-radius: 12px;
  }
  
  .info-content {
    padding: 20px;
  }
  
  .info-sidebar-header {
    padding: 18px 20px;
    font-size: 16px;
  }
  
  .poster-thumbnail {
    width: calc(50% - 8px);
  }
  
  .unique-card {
    flex: 0 0 170px;
    height: 330px;
  }
  
  .unique-image {
    height: 240px;
  }
  
  .unique-info {
    padding: 12px;
    height: 90px;
  }
  
  .unique-title {
    font-size: 13px;
    min-height: 32px;
  }
  
  .unique-container {
    margin: 0 40px;
  }
  
  .unique-arrow {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  
  .unique-arrow.left {
    left: 10px;
  }
  
  .unique-arrow.right {
    right: 10px;
  }
  
  /* Поліпшуємо табси плеєра */
  .player-tabs {
    gap: 6px;
    margin-bottom: 12px;
  }
  
  .tab-button {
    padding: 8px 14px;
    font-size: 12px;
  }
  
  .tab-alert {
    font-size: 14px;
    margin-left: 6px;
  }
}

@media (max-width: 480px) {
  .movie-hero {
    min-height: 400px;
    padding-bottom: 30px;
  }
  
  .movie-poster-large {
    width: 160px;
    height: 240px;
  }
  
  .movie-title-hero {
    font-size: 24px;
  }
  
  .movie-subtitle {
    font-size: 14px;
  }
  
  .poster-thumbnail {
    width: calc(50% - 8px);
  }
  
  .unique-card {
    flex: 0 0 150px;
    height: 310px;
  }
  
  .unique-image {
    height: 220px;
  }
  
  .unique-info {
    padding: 10px;
    height: 90px;
  }
  
  .unique-title {
    font-size: 12px;
    min-height: 30px;
  }
  
  .unique-meta {
    font-size: 10px;
  }
  
  .unique-year,
  .unique-genre {
    padding: 3px 6px;
    font-size: 10px;
  }
  
  .unique-container {
    margin: 0 35px;
  }
  
  /* ПРИХОВУЄМО стрілки на дуже маленьких екранах */
  .unique-arrow {
    display: none !important;
  }
  
  /* Ще менші табси плеєра */
  .tab-button {
    padding: 7px 12px;
    font-size: 11px;
  }
  
  .tab-alert {
    font-size: 13px;
    margin-left: 5px;
  }
}

@media (min-width: 1080px) {
  .poster-thumbnail {
    width: calc(25% - 12px);
  }
  
  .unique-card {
    flex: 0 0 240px;
    height: 400px;
  }
  
  .unique-image {
    height: 300px;
  }
}

@media (min-width: 768px) and (max-width: 1079px) {
  .poster-thumbnail {
    width: calc(33.33% - 12px);
  }
}

@media (min-width: 1200px) {
  .unique-container {
    margin: 0 70px;
  }
  
  .unique-arrow.left {
    left: 20px;
  }
  
  .unique-arrow.right {
    right: 20px;
  }
}

/* ПОКРАЩЕННЯ ДЛЯ SMART TV */
@media (min-width: 1920px) {
  .unique-card {
    flex: 0 0 280px;
    height: 450px;
  }
  
  .unique-image {
    height: 340px;
  }
  
  .unique-info {
    height: 110px;
    padding: 20px;
  }
  
  .unique-title {
    font-size: 16px;
  }
  
  .unique-meta {
    font-size: 14px;
  }
}




/* Favorites button */
.favorites-btn {
    position: relative;
    text-decoration: none;
    color: inherit;
}

.favorites-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e50914;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.favorites-count.updated {
    animation: favCountPulse 0.3s ease;
}

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





