/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cedarville+Cursive&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cedarville+Cursive&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Pacifico&family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&family=Playwrite+VN:wght@100..400&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cedarville+Cursive&family=Creepster&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Pacifico&family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&family=Playwrite+VN:wght@100..400&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Custom CSS Variables for Animations */
:root {
    --glow-color: #14c8ff;
    --primary-red: #1621e9;
    --animation-speed: 0.3s;
    --bounce-timing: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --smooth-timing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Poppins, Arial, sans-serif;
}

body {
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.8s ease-in-out;
    min-height: 100vh;
    overflow-x: hidden;
}
/* ... your full existing CSS ... */

/* === MY LIST SIDEBAR === */
.sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(15px);
    z-index: 10000;
    transition: right 0.4s ease;
    padding: 20px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    border-left: 1px solid rgba(255,255,255,0.1);
    overflow-y: auto;
}

.sidebar.open {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

.close-sidebar {
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
}

.close-sidebar:hover {
    color: #fff;
}

.sidebar-content {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.list-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.list-item img {
    width: 60px;
    height: 85px;
    object-fit: cover;
    border-radius: 8px;
}

.list-item .info h4 {
    font-size: 16px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item .info p {
    font-size: 12px;
    color: #aaa;
}
/* Enhanced Header with Higher Z-Index */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999999; /* Highest z-index for header */
    animation: slideDown 0.6s ease-out;
    transition: all 0.3s ease;
}

header:hover {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(45deg, #ff4d4d, #14c8ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logoGlow 2s ease-in-out infinite alternate;
    cursor: pointer;
    transition: transform 0.3s var(--bounce-timing);
}

.logo:hover {
    transform: scale(1.1) rotate(2deg);
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 77, 77, 0.5));
    }
    100% {
        filter: drop-shadow(0 0 15px rgba(20, 200, 255, 0.8));
    }
}

.nav-links {
    z-index: 10000; /* Higher than header */
}

.nav-links a {
    margin: 0 15px;
    color: white;
    text-decoration: none;
    position: relative;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all var(--animation-speed) var(--smooth-timing);
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
 
    transition: left 0.6s;
}

.nav-links a:hover::before {
    left: 100%;
}

.nav-links a:hover {
    color: var(--glow-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(20, 200, 255, 0.3);
}

.nav-links a.active {
    background: linear-gradient(45deg, #14c8ffcb, #ff4d4d);
    border-radius: 25px;
    animation: activeNavPulse 2s ease-in-out infinite;
}

@keyframes activeNavPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(20, 200, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(20, 200, 255, 0.8), 0 0 30px rgba(255, 77, 77, 0.4);
    }
}

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 8px 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--animation-speed) ease;
    position: relative;
    overflow: hidden;
}

.search-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s;
}

.search-bar:focus-within::before {
    left: 100%;
}

.search-bar:focus-within {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(20, 200, 255, 0.3);
    transform: scale(1.05);
}

/* Enhanced Search Icon Animation */
.search-icon img {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 7px;
    transition: all 0.3s ease;
    animation: searchIconFloat 3s ease-in-out infinite;
}

@keyframes searchIconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-2px) rotate(5deg);
    }
}

.search-bar:focus-within .search-icon img {
    transform: scale(1.2) rotate(360deg);
    filter: drop-shadow(0 0 8px rgba(20, 200, 255, 0.6));
}

.search-bar .search-icon {
    margin-right: 5px;
}

.search-bar input {
    padding: 5px;
    border: none;
    background: transparent;
    color: white;
    outline: none;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    transform: translateX(5px);
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.hamburger {
    display: none;
    font-size: 24px;
    margin-left:10px;
     margin-right:10px;
    cursor: pointer;
    transition: all 0.3s var(--bounce-timing);
    z-index: 10001; /* Highest for mobile menu toggle */
}

.hamburger:hover {
    transform: scale(1.2) rotate(90deg);
    color: var(--glow-color);
}

/* Enhanced Main Section */
#main-section {
    position: relative;
    min-height: 80vh;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 1;
}

.movie-details {
    max-width: 40%;
    position: relative;
    z-index: 10;
    animation: fadeInLeft 0.8s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.movie-meta span {
    margin-right: 10px;
    font-size: 14px;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.movie-meta span:nth-child(1) { animation-delay: 0.1s; }
.movie-meta span:nth-child(2) { animation-delay: 0.2s; }
.movie-meta span:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.movie-details .content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.movie-details .title {
    font-size: 18px;
    text-transform: uppercase;
    opacity: 0.8;
    animation: fadeInUp 0.6s ease-out 0.2s both;
    position: relative;
}

.movie-details .title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--glow-color), var(--primary-red));
    animation: underlineExpand 1s ease-out 0.8s forwards;
}

@keyframes underlineExpand {
    to {
        width: 100%;
    }
}

.movie-details .type1 {
    font-size: 48px;
    font-weight: bold;
    color: rgb(255, 255, 255);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    text-shadow: 0 0 10px rgba(7, 101, 129, 0.8), 0 0 20px rgba(84, 140, 192, 0.6), 0 0 30px rgba(4, 0, 255, 0.4);
    animation: titleGlow 0.8s ease-out 0.4s both, textShimmer 3s ease-in-out 1.5s infinite;
    cursor: default;
    transition: all 0.3s ease;
}

.movie-details .type1:hover {
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(7, 101, 129, 1), 0 0 25px rgba(84, 140, 192, 0.8), 0 0 35px rgba(4, 0, 255, 0.6);
}

@keyframes titleGlow {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes textShimmer {
    0%, 100% {
        text-shadow: 0 0 10px rgba(7, 101, 129, 0.8), 0 0 20px rgba(84, 140, 192, 0.6), 0 0 30px rgba(0, 200, 255, 0.4);
    }
    50% {
        text-shadow: 0 0 20px rgba(77, 255, 252, 0.8), 0 0 30px rgba(20, 200, 255, 0.8), 0 0 40px rgba(0, 229, 255, 0.6);
    }
}

.movie-details .description {
    margin: 20px 0;
    line-height: 1.6;
    font-size: 14px;
    opacity: 0.8;
    animation: fadeInUp 0.6s ease-out 0.6s both;
    position: relative;
}

.movie-details .description::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--glow-color), var(--primary-red));
    animation: sidebarGrow 0.8s ease-out 1.2s forwards;
}

@keyframes sidebarGrow {
    to {
        height: 100%;
    }
}

.category-search {
    margin: 20px 0;
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

.category-search select {
    padding: 10px 15px;
    border-radius: 25px;
    background: rgba(255, 234, 234, 0.1);
    color: white;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.category-search select:hover {
    border-color: var(--glow-color);
    background: rgba(255, 234, 234, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(20, 200, 255, 0.2);
}

.category-search select option {
    background: #333;
    padding: 10px;
}

.buttons {
    display: flex;
    gap: 15px;
    animation: fadeInUp 0.6s ease-out 1s both;
}

.watch-btn, .list-btn, .book-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--bounce-timing);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.watch-btn::before, .list-btn::before, .book-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.watch-btn:hover::before, .list-btn:hover::before, .book-btn:hover::before {
    width: 300px;
    height: 300px;
}

.watch-btn {
    background: linear-gradient(45deg, #ff4d4d, #ff6b6b);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.3);
    animation: buttonPulse 2s ease-in-out infinite;
}

.watch-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 77, 77, 0.5);
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 77, 77, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(255, 77, 77, 0.5);
    }
}

.list-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
    transition: all 0.3s ease;
}

.list-btn:hover {
    background: white;
    color: #333;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.book-btn {
    background: linear-gradient(45deg, #eee, #fff);
    color: #333;
    font-family: Poppins;
    font-weight: 500;
    transition: all 0.4s var(--bounce-timing);
    letter-spacing: 2px;
}

.book-btn:hover {
    letter-spacing: 3px;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(238, 238, 238, 0.4);
}
/* Slider */
.slider {
    width: 50%;
    height: 80vh;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}



.slider .list {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider .list .item {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
    z-index: 0;
    background: rgba(40, 40, 40, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.slider .list .item[style*="display: none"] {
    pointer-events: none;
}

.slider .list .item.active {
    opacity: 1;
    z-index: 1;

    transform: translateX(-50%) scale(1.1);
    background-color: white;
    border-radius: 10px;
    padding: 10px;
    backdrop-filter: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.slider .list .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* Indicate clickable areas for previous/next */
.slider .list .item::before,
.slider .list .item::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 2;
}

.slider .list .item::before {
    left: 0;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="white" viewBox="0 0 24 24"><path d="M15 18l-6-6 6-6"/></svg>'), auto;
}

.slider .list .item::after {
    right: 0;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="white" viewBox="0 0 24 24"><path d="M9 18l6-6-6-6"/></svg>'), auto;
}


/* Fallback for broken images */
.slider .list .item img:not([src]),
.slider .list .item img[src=""] {
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    text-align: center;
}

.thumbnail {
    position: absolute;
    bottom: 50px;
    left: 10%;
    transform: translateX(-40%);
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
    transition: transform 0.25s ease-in-out;
}

.thumbnail .item {
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
    opacity: 0.6;
    transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
    cursor: pointer; /* Indicate clickable thumbnails */
}

.thumbnail .item:hover:not([style*="display: none"]) {
    opacity: 0.8; /* Hover effect for visible thumbnails */
    transform: scale(1.1);
}

.thumbnail .item.active {
    opacity: 1;
    transform: scale(1.2);
    border-radius:20px;
    border: 2px solid white;
    animation: pulseOutline 1.5s infinite;
}

.thumbnail .item[style*="display: none"] {
    pointer-events: none; /* Prevent interaction with hidden thumbnails */
}

@keyframes pulseOutline {
    0% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 255, 255, 1);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
}

.thumbnail .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    display: block;
}

/* Fallback for broken thumbnail images */
.thumbnail .item img:not([src]),
.thumbnail .item img[src=""] {
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    text-align: center;
}

.nextPrevArrows {
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}

.nextPrevArrows.hidden {
    display: none;
}

.nextPrevArrows button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #14c8ffcb;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
    cursor: pointer;
}

.nextPrevArrows button:hover {
    background-color: #fff;
    color: #000;
}




/* Mobile View */
@media (max-width: 768px) {
 


    .search-bar input {
        width: 100%;
    }

    /* Main Section */
    #main-section {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .movie-details {
        max-width: 100%;
        margin-bottom: 40px;
        padding-bottom: 20px;
    }

    .movie-details .type1 {
        font-size: 32px;
    }

    .slider {
        order: 2;
        width: 100%;
        height: 50vh;
        position: relative;
    }
    .thumbnail {
        position: absolute;
        bottom: 50px;
        left: 30%;
        transform: translateX(-40%);
        width: max-content;
        z-index: 100;
        display: flex;
        gap: 20px;
        transition: transform 0.25s ease-in-out;
    }
    .slider .list {
        width: 100%;
        height: 100%;
    }

    .slider .list .item {
        position: absolute;
        width: 100%;
        height: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(40, 40, 40, 0.8);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
        cursor: pointer;
    }

    .slider .list .item[style*="display: none"] {
        pointer-events: none;
    }

    .slider .list .item.active {
        transform: translateX(-50%) scale(1.1);
        background-color: white;
        border-radius: 10px;
        padding: 10px;
        backdrop-filter: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }

    .slider .list .item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
    }

    /* Indicate clickable areas for previous/next in mobile view */
    .slider .list .item::before,
    .slider .list .item::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 50%;
        z-index: 2;
    }

    .slider .list .item::before {
        left: 0;
        cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="white" viewBox="0 0 24 24"><path d="M15 18l-6-6 6-6"/></svg>'), auto;
    }

    .slider .list .item::after {
        right: 0;
        cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="white" viewBox="0 0 24 24"><path d="M9 18l6-6-6-6"/></svg>'), auto;
    }

    .thumbnail .item {
        width: 80px;
        height: 120px;
        transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
        cursor: pointer; /* Indicate clickable thumbnails */
    }

    .thumbnail .item:hover:not([style*="display: none"]) {
        opacity: 0.8;
        transform: scale(1.1);
    }

    .thumbnail .item.active {
        transform: scale(1.2);
        border: 2px solid white;
        animation: pulseOutline 1.5s infinite;
    }

    .thumbnail .item[style*="display: none"] {
        pointer-events: none;
    }

     .nextPrevArrows {
        top: 90%;
        right: 50%;
        transform: translateX(50%);
        width: auto;
        gap: 20px;
    }

    .nextPrevArrows button {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    /* Enhanced Mobile Footer */
    footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}
    /* Footer */
    footer {
        flex-direction: column;
        gap: 20px;
    }

    
.thumbnail {
  position: absolute;
  bottom: 50px;
  left: -10%;
  transform: translateX(-30%);
  width: max-content;
  z-index: 100;
  display: flex;
  gap: 20px;
  transition: transform 0.45s ease-in-out; /* 2x faster: 0.5s -> 0.25s */
}


/* ...existing code... */

@media (max-width: 600px) {
  .nav-links {
    margin-top: 38px; /* Adjust this value as needed */
    /* Or use padding-top: 40px; */
  }
}

/* ...existing code... */

/* Enhanced Navigation Arrows */
.nextPrevArrows {
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 15px;
    align-items: center;
    animation: fadeInScale 0.8s ease-out 1s both;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.nextPrevArrows.hidden {
    display: none;
}

.nextPrevArrows button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #14c8ffcb, #14c8ff);
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: all 0.4s var(--bounce-timing);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(20, 200, 255, 0.3);
}

.nextPrevArrows button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.nextPrevArrows button:hover::before {
    width: 100px;
    height: 100px;
}

.nextPrevArrows button:hover {
    background: linear-gradient(45deg, #fff, #f0f0f0);
    color: #333;
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 8px 25px rgba(20, 200, 255, 0.5);
}

.nextPrevArrows button:active {
    transform: scale(0.95);
}

/* Enhanced Modal with Fancy Animations */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Higher than navigation */
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.4s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

.modal-content {
    background: linear-gradient(135deg, #1a2a44, #2d3561);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    color: white;
    max-width: 600px;
    width: 90%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.5s var(--bounce-timing);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(20, 200, 255, 0.05), transparent);
    animation: modalShimmer 3s linear infinite;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.7) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes modalShimmer {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.close-modal:hover {
    color: white;
    background: rgba(255, 77, 77, 0.8);
    transform: rotate(90deg) scale(1.1);
}

/* Enhanced Footer */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.8s ease-out;
    z-index: 10;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.trailer-btn {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid white;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s var(--bounce-timing);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.trailer-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.6s;
}

.trailer-btn:hover::before {
    left: 100%;
}

.trailer-btn:hover {
    background: white;
    color: #333;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons img {
    width: 28px;
    height: 28px;
    transition: all 0.3s var(--bounce-timing);
    cursor: pointer;
    filter: grayscale(100%);
    border-radius: 50%;
    padding: 2px;
}

.social-icons img:hover {
    filter: grayscale(0%) brightness(1.2);
    transform: scale(1.3) rotate(360deg);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Enhanced Mobile Styles */
@media (max-width: 768px) {
    /* Enhanced Mobile Header */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        padding: 20px;
        border-radius: 0 0 20px 20px;
        z-index: 10000;
        animation: mobileMenuSlide 0.4s ease-out;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    @keyframes mobileMenuSlide {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 12px 0;
        padding: 12px 20px;
        border-radius: 15px;
        transition: all 0.3s ease;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .nav-links a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(20, 200, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .nav-links a:hover::before {
        left: 100%;
    }

    .nav-links a:hover {
        background: rgba(20, 200, 255, 0.1);
        transform: translateX(10px);
    }

    .hamburger {
        display: block;
        z-index: 10001;
    }

    .search-bar {
        width: 100%;
        margin-top: 15px;
        order: 3;
    }

    .search-bar input {
        width: 100%;
        padding: 8px;
    }

    /* Enhanced Mobile Main Section */
    #main-section {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 30px;
    }

    .movie-details {
        max-width: 100%;
        margin-bottom: 20px;
        text-align: center;
        animation: fadeInUp 0.8s ease-out;
    }

    .movie-details .type1 {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

  

    @keyframes activeThumbnailPulseMobile {
        0%, 100% {
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 0 rgba(255, 255, 255, 0);
        }
        50% {
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 255, 255, 0.6);
        }
    }

    .nextPrevArrows {
        top: 85%;
        right: 40%;
        transform: translateX(50%);
        width: auto;
        gap: 20px;
    }

    .nextPrevArrows button {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    /* Enhanced Mobile Footer */
    footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

/* Enhanced Tablet Styles */
@media (min-width: 768px) and (max-width: 1024px) {


    .movie-details .type1 {
        font-size: 42px;
    }

}

/* Additional Fancy Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Loading Animation for Images */
.loading-placeholder {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Hover Effects for Interactive Elements */
.interactive-glow {
    transition: all 0.3s ease;
}

.interactive-glow:hover {
    filter: drop-shadow(0 0 10px rgba(20, 200, 255, 0.5));
}

/* Scroll Animations */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: slideInFromBottom 0.6s ease-out;
}

/* Enhanced Focus States for Accessibility */
*:focus {
    outline: 2px solid var(--glow-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--glow-color), var(--primary-red));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--primary-red), var(--glow-color));
}


























@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #14c8ff;
    --red: #ff4d4d;
    --dark: #0c0c0c;
    --text: #fff;
}



/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(45deg, #ff4d4d, #14c8ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    margin: 0 18px;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(20, 200, 255, 0.3);
}

.nav-links a.my-list-link {
    margin-left: 30px;
    font-weight: 600;
    color: #ff6b6b;
}

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    padding: 8px 15px;
    border: 1px solid rgba(255,255,255,0.2);
}

.search-icon img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.search-bar input {
    border: none;
    background: transparent;
    color: white;
    outline: none;
    margin-left: 10px;
    width: 150px;
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/* Mobile Nav */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(0,0,0,0.95);
        flex-direction: column;
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-links a {
        margin: 10px 0;
        text-align: center;
        padding: 12px;
        font-size: 18px;
    }
    .nav-links a.my-list-link {
        margin-left: 0;
        margin-top: 15px;
    }
}

/* My List Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(15px);
    z-index: 10000;
    transition: right 0.4s ease;
    padding: 20px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    border-left: 1px solid rgba(255,255,255,0.1);
    overflow-y: auto;
}

.sidebar.open { right: 0; }

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

.close-sidebar {
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
}

.close-sidebar:hover { color: #fff; }

.sidebar-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.sidebar-overlay.open { opacity: 1; visibility: visible; }

.list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.list-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.list-item img {
    width: 60px;
    height: 85px;
    object-fit: cover;
    border-radius: 8px;
}

.list-item .info h4 {
    font-size: 16px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item .info p {
    font-size: 12px;
    color: #aaa;
}

/* Slider, movie details, buttons, etc. — keep your existing styles below */