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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #141414;
    color: #fff;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: background-color 0.3s;
    padding: 20px 4%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 10%, transparent);
}

.header.black-bg {
    background-color: #141414;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .nav-logo {
    height: 25px;
}

.nav-menu {
    margin-left: 20px;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    margin-left: 20px;
}

.nav-list a {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-list a:hover,
.nav-list a.active {
    color: #fff;
}

.nav-options {
    display: flex;
    align-items: center;
}

.search-box {
    position: relative;
    margin-right: 15px;
}

.search-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
}

.search-input {
    position: absolute;
    right: 0;
    background: #141414;
    border: 1px solid #fff;
    color: #fff;
    padding: 5px 10px;
    width: 0;
    opacity: 0;
    transition: width 0.3s, opacity 0.3s;
}

.search-box.active .search-input {
    width: 300px;
    padding: 8px 40px 8px 10px;
    opacity: 1;
}

.nav-item {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
}

.profile-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
}

/* Banner Styles */
.banner {
    position: relative;
    height: 100vh;
    background: url('https://image.tmdb.org/t/p/original/sample-backdrop.jpg') no-repeat center center;
    background-size: cover;
    padding: 0 4%;
    margin-bottom: 20px;
}

.banner-content {
    position: relative;
    padding-top: 45vh;
    max-width: 650px;
    z-index: 2;
}

.banner-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.banner-description {
    font-size: 1.1rem;
    max-width: 360px;
    line-height: 1.3;
    padding-top: 1rem;
    margin-bottom: 1rem;
}

.banner-buttons {
    display: flex;
    gap: 1rem;
}

.banner button {
    cursor: pointer;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 2rem;
    margin-right: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.play-button {
    background-color: #fff;
    color: #000;
}

.more-info-button {
    background-color: rgba(109, 109, 110, 0.7);
    color: #fff;
}

.banner-fadeBottom {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 7.4rem;
    background-image: linear-gradient(180deg, transparent, rgba(37, 37, 37, 0.61), #141414);
    left: 0;
}

/* Row Styles */
.main-content {
    position: relative;
    z-index: 1;
    padding-top: 20px;
}

.row {
    margin: 40px 0;
    padding: 0 4%;
    position: relative;
}

.row-header {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #e5e5e5;
}

.row-posters {
    display: flex;
    overflow-x: scroll;
    padding: 20px 0;
    scroll-behavior: smooth;
    gap: 10px;
    position: relative;
}

.row-posters::-webkit-scrollbar {
    display: none;
}

.row-poster {
    min-width: 200px;
    height: 300px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    object-fit: cover;
    position: relative;
}

.row-poster:hover {
    transform: scale(1.08);
    z-index: 2;
}

/* Movie Overview Styles */
.movie-overview {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(20, 20, 20, 0.95);
    width: 80%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 8px;
    padding: 20px;
    z-index: 1000;
    display: none;
    overflow-y: auto;
}

.movie-overview.active {
    display: block;
}

.movie-overview-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.movie-poster img {
    width: 100%;
    border-radius: 4px;
}

.movie-details {
    color: #fff;
}

.movie-details h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.movie-details p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.movie-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.movie-meta span {
    color: #46d369;
}

.close-overview {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

/* Footer Styles */
.footer {
    padding: 70px 4%;
    color: #757575;
    margin-top: 20px;
}

.footer-content {
    max-width: 980px;
    margin: 0 auto;
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    color: #757575;
    font-size: 20px;
    margin-right: 20px;
    text-decoration: none;
}

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

.footer-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.footer-row ul {
    list-style: none;
}

.footer-row a {
    color: #757575;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-row a:hover {
    text-decoration: underline;
}

.service-code {
    color: #757575;
    background: transparent;
    border: 1px solid #757575;
    padding: 8px 12px;
    font-size: 13px;
    margin: 20px 0;
    cursor: pointer;
}

.copyright {
    font-size: 11px;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .banner-content {
        padding-top: 35vh;
    }

    .banner-title {
        font-size: 2rem;
    }

    .banner-description {
        font-size: 1rem;
    }

    .movie-overview-content {
        grid-template-columns: 1fr;
    }

    .movie-poster img {
        max-width: 300px;
        margin: 0 auto;
    }

    .footer-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .banner-buttons {
        flex-direction: column;
    }

    .footer-row {
        grid-template-columns: 1fr;
    }
}

.no-results {
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 1.2em;
}

.empty-list {
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.empty-list h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.empty-list p {
    font-size: 1.2em;
    color: #999;
}

#search-results {
    margin-top: 80px;
    min-height: 400px;
}

#search-results .row-posters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    padding: 20px;
}

.search-box {
    position: relative;
    margin-right: 15px;
}

.search-box .search-input {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: #141414;
    border: 1px solid #fff;
    color: #fff;
    padding: 8px 40px 8px 10px;
    width: 0;
    opacity: 0;
    transition: width 0.3s, opacity 0.3s;
}

.search-box.active .search-input {
    width: 300px;
    opacity: 1;
    right: 100%;
}

.search-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    z-index: 2;
    position: relative;
}

.add-list-button.in-list {
    background-color: rgba(255,255,255,0.3);
}

.movie-item {
    position: relative;
    min-width: 200px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.movie-item:hover {
    transform: scale(1.08);
    z-index: 2;
}

.movie-item .movie-title {
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 14px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-item:hover .movie-title {
    opacity: 1;
} 