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

html {
    scroll-behavior: smooth;
}

body {
    background: #000000;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 56px;
    background-color: #0000004d;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid #ffffff1a;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    width: 100%;
}

.left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo h3 {
    font-size: 28px;
    color: #ffffff;
}

.right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.menu ul li {
    margin-right: 20px;
}

.menu ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 400;
    font-size: 14px;
}


.search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 30px;
    background-color: #2b2b3a66;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid #ffffff1a;
    padding: 10px 16px;
    margin-right: 20px;
    position: relative;
}

.search input {
    width: 440px;
    height: 24px;
    border: none;
    outline: none;
    background-color: transparent;
    color: #ffffff;
    flex: 1;
    margin-right: 10px;
}

.search-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ffffff;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.search:focus-within .search-btn {
    display: flex;
}

.search-btn:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

.search-btn-icon {
    width: 16px;
    height: 16px;
    color: #000000;
    stroke: #000000;
}


.profile {
    width: 40px;
    height: 40px; 
    border-radius: 30px;
    overflow: visible;
    cursor: pointer;
    position: relative;
}

.profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

.profile-dropdown {
    position: absolute;
    top: 80px;
    right: 0;
    min-width: 250px;
    background-color: #2b2b3a66;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid #ffffff1a;
    border-radius: 15px;
    padding: 20px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px #00000033;
}

.profile-dropdown.profile-dropdown-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-info h4 {
    font-size: 18px;
    color: #ffffff;
    margin: 0 0 5px 0;
}

.profile-info p {
    font-size: 14px;
    color: #cccccc;
    margin: 0;
}

.profile-divider {
    border: none;
    height: 1px;
    background-color: #ffffff1a;
    margin: 15px 0;
}

.logout-btn {
    width: 100%;
    background-color: #ffffff1a;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logout-btn:hover {
    background-color: #ffffff33;
    transform: translateY(-1px);
}

.logout-icon {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
}


.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 120px 56px 60px 56px;
    background-color: #000000;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    scroll-margin-top: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 580px;
}

.hero-content p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #ffffff;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content button {
    padding: 12px 24px;
    margin: 10px;
    border: none;
    border-radius: 25px;
    background-color: #ffffff;
    color: #000000;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.play-button {
    background-color: #ffffff !important;
    color: #000000 !important;
}

.play-icon {
    font-size: 14px;
    margin-right: 4px;
}

.hero-content button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    filter: blur(10px);
    z-index: 1;
}

.hero-navigation {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 15px;
    z-index: 1;
}

.nav-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px #0000004d;
}

.nav-arrow:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px #00000066;
}

.arrow-icon {
    width: 20px;
    height: 20px;
    color: #000000;
    stroke: #000000;
}


.moviecategory {
    padding: 60px 56px;
    background-color: #000000;
    scroll-margin-top: 100px;
    position: relative;
}

.moviecategory h1 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #ffffff;
}

.cardcontainer {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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


.moviecard {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
    min-width: 300px;
    height: 400px;
    flex-shrink: 0;
}

.moviecard:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px #00000080;
}

.moviecard img {
    width: 350px;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.moviecard .text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #00000066;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid #ffffff1a;
    padding: 20px;
}

.moviecard h2 {
    font-size: 20px;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.moviecard p {
    font-size: 14px;
    color: #cccccc;
    margin: 0;
    line-height: 1.4;
}

.add-to-list-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
    box-shadow: 0 2px 8px #00000033;
}

.add-to-list-btn:hover {
    background: #f0f0f0;
    transform: scale(1.1);
    box-shadow: 0 4px 12px #0000004d;
}

.add-to-list-btn.remove {
    background: #fd1010;
}

.add-to-list-btn.remove:hover {
    background: #fd1010;
}

.add-icon,
.remove-icon {
    width: 24px;
    height: 24px;
    color: #000000;
    stroke: #000000;
}


.container-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ffffff;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px #0000004d;
    z-index: 10;
}

.container-nav-arrow:hover {
    background-color: #f0f0f0;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 15px #00000066;
}

.container-nav-arrow.left {
    left: 10px;
}

.container-nav-arrow.right {
    right: 10px;
}

.container-nav-arrow.visible {
    display: flex;
}

.container-nav-arrow .arrow-icon {
    width: 20px;
    height: 20px;
    color: #000000;
    stroke: #000000;
}


.hamburger-menu {
    display: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-icon {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
}

.search-icon {
    display: none;
    cursor: pointer;
    padding: 8px;
}

.search-icon-svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
}

.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 100px;
    left: 20px;
    right: 20px;
    background-color: #2b2b3a66;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid #ffffff1a;
    border-radius: 20px;
    padding: 20px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.mobile-search-overlay.mobile-search-open {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.mobile-search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #2b2b3a66;
    border-radius: 15px;
    padding: 12px 16px;
    border: 1px solid #ffffff1a;
}

.mobile-search-input {
    flex: 1;
    border: none;
    outline: none;
    background-color: transparent;
    color: #ffffff;
    font-size: 16px;
}

.mobile-search-input::placeholder {
    color: #cccccc;
}

.mobile-search-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-search-btn:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

.mobile-search-btn-icon {
    width: 16px;
    height: 16px;
    color: #000000;
    stroke: #000000;
}

.mobile-search-results {
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.mobile-search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #ffffff1a;
    cursor: pointer;
    transition: background 0.2s;
}

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

.mobile-search-result-item:hover {
    background: #ffffff1a;
}

.mobile-search-result-thumb {
    width: 35px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    background: #222;
}

.mobile-search-result-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mobile-search-result-title {
    font-size: 16px;
    color: #fff;
    margin-bottom: 2px;
}

.mobile-search-result-genre {
    font-size: 12px;
    color: #cccccc;
}


.search-results-dropdown {
    position: absolute;
    top: 55px;
    left: 0;
    width: 100%;
    background: #2b2b3a66;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid #ffffff1a;
    border-radius: 18px;
    box-shadow: 0 8px 24px #00000033;
    z-index: 1001;
    padding: 10px 0;
    max-height: 350px;
    overflow-y: auto;
    display: none;
}

.search-results-dropdown.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #ffffff1a;
}

.search-result-thumb {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    background: #222;
}

.search-result-info {
    display: flex;
    flex-direction: column;
}

.search-result-title {
    font-size: 18px;
    color: #fff;
    margin-bottom: 2px;
}

.search-result-genre {
    font-size: 13px;
    color: #cccccc;
}


.movie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.movie-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000cc;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: #1a1a1a;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 60px #00000066;
    border: 1px solid #ffffff1a;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #555555;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #777777;
}

.movie-modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff1a;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-close-btn:hover {
    background: #ffffff33;
    transform: scale(1.1);
}

.modal-close-icon {
    width: 20px;
    height: 20px;
    color: #ffffff;
    stroke: #ffffff;
}

.modal-body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.modal-poster {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.modal-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.modal-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modal-title {
    font-size: 32px;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.1;
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.modal-year,
.modal-genre,
.modal-rating {
    font-size: 14px;
    color: #cccccc;
    padding: 4px 12px;
    background: #ffffff1a;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-plot {
    font-size: 16px;
    color: #ffffff;
    line-height: 1.6;
    margin: 0 0 24px 0;
    flex: 1;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.modal-watch-btn,
.modal-add-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    flex: 1;
    justify-content: center;
}

.modal-watch-btn {
    background: #ffffff;
    color: #000000;
}

.modal-watch-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px #00000033;
}

.modal-add-btn {
    background: #ffffff1a;
    color: #ffffff;
    border: 1px solid #ffffff33;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-add-btn:hover {
    background: #ffffff33;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px #00000033;
}

.watch-icon,
.add-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}


.footer {
    background-color: #000000;
    padding: 40px 56px;
    border-top: 1px solid #ffffff1a;
    text-align: center;
}

.footer-content {
    margin-bottom: 20px;
}

.footer div:last-child {
    font-size: 14px;
    color: #888888;
}

.footer-logo h1 {
    font-size: 32px;
    color: #ffffff;
    margin: 0;
}


@media (max-width: 1040px) {
    .navbar {
        padding: 16px 20px;
        background-color: #2b2b3a66;
        border-radius: 30px;
        margin: 20px;
        width: calc(100% - 40px);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid #ffffff1a;
    }

    .left {
        gap: 20px;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .menu {
        display: none;
        position: fixed;
        top: 100px;
        left: 20px;
        right: 20px;
        background-color: #2b2b3a66;
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid #ffffff1a;
        border-radius: 20px;
        padding: 20px;
        z-index: 1000;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }
    
    .menu.mobile-menu-open {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
    
    .menu ul {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .menu ul li {
        margin-right: 0;
        width: 100%;
    }
    
    .menu ul li a {
        display: block;
        padding: 12px 16px;
        border-radius: 10px;
        transition: background-color 0.3s ease;
        font-size: 16px;
    }
    
    .menu ul li a:hover {
        background-color: #ffffff1a;
    }
}

@media (max-width: 768px) {
    .logo h3 {
        font-size: 24px;
    }
    
    .search {
        display: none;
    }
    
    .search-btn {
        display: none;
    }
    
    .search-icon {
        display: block;
        transition: transform 0.3s ease;
    }
    
    .mobile-search-overlay {
        position: fixed;
        top: 100px;
    }
    
    .mobile-search-container {
        background-color: transparent;
        border: none;
        padding: 0;
    }
    
    .right {
        gap: 15px;
    }
    
    .profile {
        width: 35px;
        height: 35px;
    }
    
    .profile-dropdown {
        top: 64px;
        right: -20px;
        min-width: 220px;
        padding: 15px;
    }
    
    .profile-info h4 {
        font-size: 16px;
    }
    
    .profile-info p {
        font-size: 13px;
    }
    
    .logout-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .hero {
        padding: 100px 20px 40px 20px;
    }
    
    .hero-content {
        max-width: 90%;
    }
    
    .hero-content h1 {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .hero-content button {
        padding: 10px 20px;
        font-size: 14px;
        margin: 5px;
    }
    
    .hero-navigation {
        position: absolute;
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    
    .nav-arrow {
        width: 45px;
        height: 45px;
    }
    
    .arrow-icon {
        width: 18px;
        height: 18px;
    }
    
    .moviecategory {
        padding: 40px 20px;
    }
    
    .moviecategory h1 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .cardcontainer {
        gap: 15px;
    }
    
    .moviecard {
        min-width: 250px;
        height: 350px;
        margin-bottom: 15px;
    }
    
    .moviecard .text-overlay {
        padding: 15px;
    }
    
    .moviecard h2 {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .moviecard p {
        font-size: 13px;
    }
    
    .add-to-list-btn {
        width: 40px;
        height: 40px;
        top: 12px;
        right: 12px;
    }
    
    .add-icon {
        width: 20px;
        height: 20px;
    }
    
    .container-nav-arrow {
        display: none !important;
    }
    
    .footer {
        padding: 30px 20px;
    }

    .movie-modal {
        padding: 10px;
    }
    
    .modal-content {
        max-height: 95vh;
        border-radius: 12px;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .modal-poster {
        height: 350px;
    }
    
    .modal-info {
        padding: 16px;
    }
    
    .modal-title {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .modal-meta {
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .modal-year,
    .modal-genre,
    .modal-rating {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    .modal-plot {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-watch-btn,
    .modal-add-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .modal-close-btn {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }
    
    .modal-close-icon {
        width: 18px;
        height: 18px;
    }
}