* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0a;
    background-image: 
        radial-gradient(at 20% 30%, rgba(91, 141, 238, 0.1) 0px, transparent 50%),
        radial-gradient(at 80% 70%, rgba(168, 85, 247, 0.08) 0px, transparent 50%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 100%);
    backdrop-filter: blur(0px);
}

header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 4%;
    max-width: 2000px;
    margin: 0 auto;
}

.left-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-image {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(91, 141, 238, 0.5));
    transition: filter 0.3s ease;
}

.logo:hover .logo-image {
    filter: drop-shadow(0 0 20px rgba(91, 141, 238, 0.8));
}

.logo-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #5B8DEE 0%, #A855F7 50%, #22D3EE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 0 0 30px rgba(91, 141, 238, 0.5);
}

.logo-tagline {
    font-size: 0.65rem;
    font-weight: 600;
    color: #999;
    letter-spacing: 1px;
    text-transform: lowercase;
    line-height: 1;
    margin-top: 2px;
}

/* Browse Button */
.browse-btn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    white-space: nowrap;
}

.browse-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(91, 141, 238, 0.5);
    transform: scale(1.05);
}

.browse-btn.active {
    background: rgba(91, 141, 238, 0.8);
    border-color: rgba(91, 141, 238, 0.8);
}

.arrow-down {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.browse-btn.active .arrow-down {
    transform: rotate(180deg);
}

/* Hide browse text on mobile when search is active */
@media (max-width: 768px) {
    .browse-btn.search-active {
        padding: 0.6rem;
        min-width: 40px;
        justify-content: center;
    }
    
    .browse-btn.search-active::before {
        content: '';
        width: 0;
    }
    
    .browse-btn.search-active {
        font-size: 0;
    }
    
    .browse-btn.search-active .arrow-down {
        font-size: 0.8rem;
    }
}

nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #5B8DEE, #A855F7);
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover {
    color: #fff;
    text-shadow: 0 0 20px rgba(91, 141, 238, 0.5);
}

.nav-link:hover::before, .nav-link.active::before {
    width: 100%;
}

.nav-link.active {
    color: #fff;
}

.nav-link.keyboard-focus {
    color: #fff;
    background: rgba(91, 141, 238, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    outline: 2px solid rgba(91, 141, 238, 0.6);
    outline-offset: 2px;
}

.nav-link.keyboard-focus::before {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    padding: 80px 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu .nav-link:hover {
    padding-left: 10px;
    border-bottom-color: rgba(91, 141, 238, 0.5);
}

.mobile-menu .nav-link::before {
    display: none;
}

.mobile-menu .nav-link.active {
    color: #5B8DEE;
    border-bottom-color: #5B8DEE;
}

/* Mobile Menu Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-overlay.active {
    opacity: 1;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 0;
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.search-input.active {
    width: 250px;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(91, 141, 238, 0.5);
    box-shadow: 0 4px 20px rgba(91, 141, 238, 0.2);
    opacity: 1;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-icon {
    cursor: pointer;
    font-size: 1.3rem;
    position: absolute;
    right: 8px;
    transition: transform 0.3s ease;
}

.search-icon:hover {
    transform: scale(1.2);
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: flex-end;
    margin-top: 70px;
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(10, 10, 10, 0.7) 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 250px;
    background: linear-gradient(to top, #0a0a0a, transparent);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: 0;
    transition: opacity 1.5s ease-out;
}

.hero-poster.fade-out {
    opacity: 0;
    pointer-events: none;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    opacity: 0;
    object-fit: cover;
    transition: opacity 1.5s ease-in;
    z-index: 0;
}

.hero-video.fade-in {
    opacity: 0.35;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 4% 4rem;
    max-width: 650px;
    display: flex;
    flex-direction: column;
}

/* TOP 10 Badge */
.top10-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #5B8DEE 0%, #A855F7 100%);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(91, 141, 238, 0.6), 0 0 30px rgba(91, 141, 238, 0.3);
    animation: fadeInUp 1s ease-out;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.top10-badge-top {
    font-size: 0.75rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.top10-badge-number {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
    line-height: 1.1;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.9), 0 0 40px rgba(91, 141, 238, 0.3);
    animation: fadeInUp 1s ease-out;
    transition: font-size 0.8s cubic-bezier(0.4, 0, 0.2, 1), margin-bottom 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-title.compact {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-description {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #e5e5e5;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.9);
    animation: fadeInUp 1s ease-out 0.2s both;
    opacity: 1;
    max-height: 500px;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.5rem;
}

.hero-description.hidden-desc {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn {
    padding: 0.9rem 2.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-play {
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.4);
}

.btn-info {
    background: rgba(109, 109, 110, 0.7);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-info:hover {
    background: rgba(109, 109, 110, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Main Content */
main {
    padding: 2rem 4% 4rem;
    position: relative;
    z-index: 10;
    background: linear-gradient(to bottom, transparent 0%, #0a0a0a 50px, #0a0a0a 100%);
}

.content-section {
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #5B8DEE, #A855F7, transparent);
    border-radius: 2px;
}

/* Top 10 Header with Toggle */
.top10-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-btn {
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #999;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(91, 141, 238, 0.5);
    color: #fff;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #5B8DEE 0%, #A855F7 100%);
    border-color: rgba(91, 141, 238, 0.8);
    color: #fff;
    box-shadow: 0 4px 15px rgba(91, 141, 238, 0.3);
}

@media (max-width: 768px) {
    .top10-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .section-title {
        margin-bottom: 0;
    }

    .toggle-container {
        width: auto;
        justify-content: flex-end;
    }
    
    /* Mobile toggle - show only one button */
    .toggle-btn {
        padding: 0.6rem 0.8rem;
        border-radius: 8px;
        font-size: 1.3rem;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .toggle-btn:hover {
        transform: scale(1.05);
    }
    
    .toggle-btn span {
        display: none;
    }
    
    /* Hide the active button on mobile, show only the inactive one */
    .toggle-btn.active {
        display: none;
    }
    
    /* Show browse button on mobile */
    .browse-btn {
        display: flex;
    }
    
    /* Hide desktop nav on mobile */
    #desktopNav {
        display: none;
    }
    
    /* Mobile search improvements */
    .search-input.active {
        width: 180px;
        padding: 0.6rem 2.5rem 0.6rem 1rem;
    }
    
    .search-icon {
        position: absolute;
        right: 10px;
        z-index: 1;
    }
    
    .header-content {
        padding: 1rem 3%;
    }
    
    .left-nav {
        gap: 1rem;
    }
    
    .logo-image {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-tagline {
        font-size: 0.55rem;
    }
    
    /* Hero section adjustments for mobile */
    .hero {
        height: 75vh;
        margin-top: 60px;
        align-items: flex-end;
    }
    
    .hero-content {
        padding: 0 5% 3rem;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-title.compact {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }
    
    .hero-buttons {
        position: relative;
        z-index: 3;
        margin-top: 0.5rem;
    }
    
    .btn {
        padding: 0.65rem 1.3rem;
        font-size: 0.9rem;
    }
    
    /* TOP 10 Badge mobile adjustments */
    .top10-badge {
        width: 45px;
        height: 45px;
        margin-bottom: 0.8rem;
    }
    
    .top10-badge-top {
        font-size: 0.6rem;
    }
    
    .top10-badge-number {
        font-size: 1.4rem;
    }
    
    /* Mobile Movie Card - Always Show Info */
    .movie-item {
        position: relative;
    }
    
    .movie-item .movie-overlay {
        opacity: 1 !important;
        transform: translateY(0) !important;
        padding: 0;
        background: none;
        pointer-events: none;
    }
    
    .movie-item .movie-title {
        position: absolute;
        bottom: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
        margin: 0;
        font-size: 0.85rem;
        line-height: 1.2;
        text-align: left;
        background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
        padding: 0.5rem;
        border-radius: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        z-index: 2;
    }
    
    .movie-item .movie-meta {
        position: absolute;
        top: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
        display: flex !important;
        justify-content: space-between;
        align-items: flex-start;
        margin: 0;
        z-index: 2;
    }
    
    .movie-item .movie-rating {
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
        font-size: 0.75rem;
        border: 1px solid rgba(255, 215, 0, 0.3);
        display: inline-flex !important;
        align-items: center;
        gap: 0.2rem;
    }
    
    .movie-item .movie-year {
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
        font-size: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #e5e5e5;
        display: inline-block !important;
    }
}

/* Row Container with Navigation */
.row-container {
    position: relative;
    padding: 0 50px;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
}

.row-container:hover .nav-button {
    opacity: 1;
    visibility: visible;
}

.nav-button:hover {
    background: rgba(91, 141, 238, 0.9);
    border-color: rgba(91, 141, 238, 0.8);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(91, 141, 238, 0.5);
}

.nav-button:active {
    transform: translateY(-50%) scale(0.95);
}

.nav-button.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-button-left {
    left: 5px;
}

.nav-button-right {
    right: 5px;
}

/* Top 10 Section */
.top10-row {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: #555 transparent;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.top10-row::-webkit-scrollbar {
    height: 8px;
}

.top10-row::-webkit-scrollbar-track {
    background: transparent;
}

.top10-row::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.top10-item {
    position: relative;
    min-width: 180px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.top10-item:hover {
    transform: scale(1.15) translateY(-10px);
    z-index: 10;
}

.top10-poster {
    width: 100%;
    height: 270px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    transition: all 0.4s ease;
}

.top10-item:hover .top10-poster {
    box-shadow: 0 12px 40px rgba(91, 141, 238, 0.4), 0 0 60px rgba(34, 211, 238, 0.2);
}

.top10-rank {
    position: absolute;
    bottom: -20px;
    left: -20px;
    font-size: 10rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 3px #2a2a2a;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8));
}

.top10-item:hover .top10-rank {
    -webkit-text-stroke: 2px #5B8DEE;
    -webkit-text-fill-color: #5B8DEE;
    color: #5B8DEE;
    bottom: -10px;
    left: -10px;
    filter: drop-shadow(0 0 30px rgba(91, 141, 238, 0.6));
}

.top10-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.98), transparent);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    border-radius: 0 0 8px 8px;
}

.top10-item:hover .top10-info {
    opacity: 1;
    transform: translateY(0);
}

.top10-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.top10-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: #46d369;
    font-weight: 600;
}

/* Movies Row */
.movies-row {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: #555 transparent;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.movies-row::-webkit-scrollbar {
    height: 8px;
}

.movies-row::-webkit-scrollbar-track {
    background: transparent;
}

.movies-row::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

/* Hide navigation buttons on mobile/tablet */
@media (max-width: 1024px) {
    .nav-button {
        display: none;
    }
    
    .row-container {
        padding: 0;
    }
}

.movie-item {
    position: relative;
    min-width: 180px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    overflow: hidden;
}

.movie-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    .movie-item:hover {
        transform: none;
    }

    .top10-item:hover {
        transform: none;
    }

    .top10-item:hover .top10-info {
        opacity: 0;
        transform: translateY(10px);
    }

    .top10-item:hover .top10-rank {
        -webkit-text-stroke: 3px #2a2a2a;
        color: transparent;
        bottom: -20px;
        left: -20px;
        filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8));
    }

    .top10-item:hover .top10-poster,
    .movie-item:hover .movie-poster {
        box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    }
}

.movie-poster {
    width: 100%;
    height: 270px;
    object-fit: cover;
    display: block;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    transition: all 0.4s ease;
    border-radius: 8px;
}

.movie-item:hover .movie-poster {
    box-shadow: 0 12px 40px rgba(91, 141, 238, 0.3), 0 0 60px rgba(34, 211, 238, 0.15);
}

.movie-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.movie-item:hover .movie-overlay {
    opacity: 1;
    transform: translateY(0);
}

.movie-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.movie-rating {
    color: #ffd700;
    font-size: 0.85rem;
    font-weight: 600;
}

.movie-year {
    color: #999;
    font-size: 0.85rem;
}

/* Loading Spinner */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #5B8DEE;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
footer {
    background: linear-gradient(to top, #000 0%, #0a0a0a 50%, #0f0f0f 100%);
    padding: 4rem 4% 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(91, 141, 238, 0.2);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #5B8DEE, #A855F7, transparent);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Footer Top - Logo & About */
.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-logo-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(91, 141, 238, 0.6));
}

.footer-logo-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.footer-logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #5B8DEE 0%, #A855F7 50%, #22D3EE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    text-transform: uppercase;
    line-height: 1;
}

.footer-logo-tagline {
    font-size: 0.7rem;
    font-weight: 600;
    color: #999;
    letter-spacing: 1px;
    text-transform: lowercase;
}

.footer-about {
    max-width: 600px;
    color: #999;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Social Media Links */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.social-message {
    color: #999;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    margin: 0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
    border: 1px solid rgba(34, 158, 217, 0.3);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.social-link:hover::before {
    width: 300px;
    height: 300px;
}

.social-link:hover {
    background: linear-gradient(135deg, #229ED9 0%, #0088cc 100%);
    border-color: rgba(34, 158, 217, 0.6);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 136, 204, 0.5);
}

.social-link:active {
    transform: translateY(-1px) scale(1.02);
}

.social-link svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.social-link span {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.telegram-link {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(0, 136, 204, 0.5);
    }
}

/* Footer Links Grid */
.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #e5e5e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #5B8DEE, #A855F7);
    border-radius: 2px;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-link {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #5B8DEE, #A855F7);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #fff;
    padding-left: 10px;
    text-shadow: 0 0 10px rgba(91, 141, 238, 0.3);
}

.footer-link:hover::before {
    width: 30px;
}

/* Newsletter Section */
.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-description {
    color: #999;
    font-size: 0.85rem;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(91, 141, 238, 0.5);
    box-shadow: 0 0 0 3px rgba(91, 141, 238, 0.1);
}

.newsletter-btn {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #5B8DEE 0%, #A855F7 100%);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(91, 141, 238, 0.4);
}

.newsletter-btn:active {
    transform: translateY(0);
}

/* Support Button */
.support-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1.8rem;
    background: linear-gradient(135deg, #5B8DEE 0%, #A855F7 100%);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(91, 141, 238, 0.3);
    position: relative;
    overflow: hidden;
    max-width: fit-content;
}

.support-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.support-btn:hover::before {
    width: 300px;
    height: 300px;
}

.support-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(91, 141, 238, 0.5);
}

.support-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.coffee-icon {
    animation: steam 2s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

@keyframes steam {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-2px) rotate(-2deg);
    }
    75% {
        transform: translateY(-2px) rotate(2deg);
    }
}

.support-btn:hover .coffee-icon {
    animation: steamHover 0.6s ease-in-out infinite;
}

@keyframes steamHover {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(-4px) rotate(5deg) scale(1.1);
    }
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: #808080;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.legal-link {
    color: #808080;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.legal-link:hover {
    color: #5B8DEE;
}

/* Footer Responsive */
@media (max-width: 768px) {
    footer {
        padding: 3rem 5% 2rem;
        margin-top: 3rem;
    }

    .footer-top {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }

    .footer-logo-image {
        width: 40px;
        height: 40px;
    }

    .footer-logo-text {
        font-size: 1.4rem;
    }

    .footer-logo-tagline {
        font-size: 0.6rem;
    }

    .footer-about {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .footer-social {
        gap: 0.8rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }

    .footer-title {
        font-size: 1rem;
    }

    .footer-link {
        font-size: 0.85rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-btn {
        width: 100%;
    }

    .support-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding-top: 1.5rem;
    }

    .copyright {
        font-size: 0.85rem;
    }

    .footer-legal-links {
        justify-content: center;
        gap: 1rem;
    }

    .legal-link {
        font-size: 0.8rem;
    }
}

/* Hidden class */
.hidden {
    display: none;
}

/* Hover Preview Modal */
.hover-modal {
    position: fixed;
    width: 350px;
    background: #181818;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.9), 0 0 0 2px rgba(91, 141, 238, 0.5);
    z-index: 9999 !important;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    visibility: hidden;
    display: block !important;
}

.hover-modal.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.hover-modal.show {
    opacity: 1 !important;
    transform: scale(1) !important;
    pointer-events: auto !important;
    visibility: visible !important;
    display: block !important;
}

.hover-modal-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    overflow: hidden;
}

.hover-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

.hover-video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(24, 24, 24, 1) 0%, transparent 100%);
    pointer-events: none;
}

.hover-unmute-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    z-index: 10;
}

.hover-unmute-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: #fff;
    transform: scale(1.1);
}

.hover-unmute-btn svg {
    width: 18px;
    height: 18px;
}

.hover-modal-content {
    padding: 1rem 1.2rem 1.2rem;
}

.hover-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hover-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.hover-buttons-left {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.hover-buttons-right {
    display: flex;
    align-items: center;
}

.hover-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(42, 42, 42, 0.6);
    backdrop-filter: blur(10px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hover-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.hover-btn:hover::before {
    width: 100px;
    height: 100px;
}

.hover-btn:hover {
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(42, 42, 42, 0.9);
    transform: scale(1.1);
}

.hover-btn-play {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.95);
}

.hover-btn-play svg {
    fill: #000;
}

.hover-btn-play:hover {
    background: #fff;
    border-color: #fff;
    transform: scale(1.15);
}

.hover-btn-expand {
    border-color: rgba(255, 255, 255, 0.5);
}

.hover-btn-expand:hover {
    border-color: rgba(91, 141, 238, 0.8);
    background: rgba(91, 141, 238, 0.2);
}

.hover-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.genre-tag {
    padding: 0.3rem 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
    color: #fff;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Disable hover modal on touch devices */
@media (hover: none) and (pointer: coarse) {
    .hover-modal {
        display: none !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hover-modal {
        width: 300px;
    }
    
    .hover-title {
        font-size: 1rem;
    }
    
    .hover-btn {
        width: 32px;
        height: 32px;
    }
    
    .hover-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    position: relative;
    transform: scale(0.9);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: #181818;
    border-radius: 12px;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-container::-webkit-scrollbar {
    width: 8px;
}

.modal-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-container::-webkit-scrollbar-thumb {
    background: rgba(91, 141, 238, 0.5);
    border-radius: 4px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
    background: rgba(91, 141, 238, 0.7);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(91, 141, 238, 0.8);
    transform: scale(1.1);
}

.modal-video-section {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    background: #000;
    overflow: hidden;
}

.modal-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

.modal-video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.7) 70%, transparent);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.modal-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.9);
    line-height: 1.1;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.modal-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.modal-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.modal-btn:hover::before {
    width: 300px;
    height: 300px;
}

.modal-btn-play {
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.modal-btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.4);
}

.modal-btn-icon {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem;
    width: auto;
    min-width: 50px;
    justify-content: center;
}

.modal-btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.modal-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-details-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.modal-match {
    color: #46d369;
    font-weight: 600;
    font-size: 0.95rem;
}

.modal-year, .modal-rating, .modal-duration {
    color: #999;
    font-size: 0.9rem;
}

.modal-description {
    color: #e5e5e5;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

.modal-details-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.modal-info-label {
    color: #999;
    font-size: 0.9rem;
    font-weight: 500;
}

.modal-info-value {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* More Like This, Episodes & About Sections */
.modal-more-section,
.modal-episodes-section,
.modal-about-section {
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about-content {
    color: #e5e5e5;
    line-height: 1.8;
    font-size: 1rem;
}

.about-content p {
    margin-bottom: 1rem;
}

.about-content strong {
    color: #fff;
    font-weight: 600;
}

.modal-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.recommendation-grid::-webkit-scrollbar {
    width: 6px;
}

.recommendation-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.recommendation-grid::-webkit-scrollbar-thumb {
    background: rgba(91, 141, 238, 0.5);
    border-radius: 3px;
}

.recommendation-item,
.episode-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.recommendation-item:hover,
.episode-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(91, 141, 238, 0.5);
    box-shadow: 0 8px 24px rgba(91, 141, 238, 0.3);
}

.recommendation-thumbnail,
.episode-thumbnail {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #000;
}

.recommendation-thumbnail img,
.episode-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommendation-item:hover .recommendation-thumbnail img,
.episode-item:hover .episode-thumbnail img {
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recommendation-item:hover .play-overlay,
.episode-item:hover .play-overlay {
    opacity: 1;
}

.play-button {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.play-button svg {
    width: 20px;
    height: 20px;
    fill: #000;
    margin-left: 3px;
}

.recommendation-item:hover .play-button,
.episode-item:hover .play-button {
    transform: scale(1.15);
    background: #fff;
}

.recommendation-info,
.episode-info {
    padding: 1rem;
}

.recommendation-title,
.episode-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.episode-number {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.recommendation-meta,
.episode-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.recommendation-year,
.recommendation-rating,
.episode-duration {
    font-size: 0.85rem;
    color: #999;
}

.recommendation-rating {
    color: #46d369;
    font-weight: 600;
}

.recommendation-description,
.episode-description {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.season-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.season-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.season-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(91, 141, 238, 0.5);
}

.season-btn.active {
    background: rgba(91, 141, 238, 0.8);
    border-color: #5B8DEE;
}

@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        padding: 0;
    }
    
    .modal-video-section {
        padding-bottom: 85%;
    }
    
    .modal-video-overlay {
        padding: 0.5rem 0.7rem 0.7rem;
        background: linear-gradient(to top, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.4) 25%, transparent 100%);
        height: 15%;
    }
    
    .modal-title {
        font-size: 1rem;
        margin-bottom: 0.4rem;
        line-height: 1.05;
    }
    
    .modal-buttons {
        gap: 0.25rem;
    }
    
    .modal-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }
    
    .modal-btn-icon {
        padding: 0.4rem;
        min-width: 32px;
    }
    
    .modal-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .modal-details {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    .recommendation-grid {
        grid-template-columns: 1fr;
        max-height: 400px;
    }
    .modal-more-section,
    .modal-episodes-section {
        padding: 1.5rem;
    }
}
