body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #141414;
    color: #fff;
    min-height: 100vh;
}
header {
    background: linear-gradient(90deg, #111 60%, #e50914 100%);
    padding: 0 0 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.logo-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 40px;
}
header h1 {
    font-size: 2rem;
    color: #fff;
    margin: 0;
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 0 2px 8px #e50914;
}
.search-bar {
    display: flex;
    align-items: center;
    gap: 0;
    padding-right: 40px;
}
.search-bar input {
    padding: 12px 16px;
    border-radius: 4px 0 0 4px;
    border: none;
    width: 260px;
    font-size: 1rem;
    background: #222;
    color: #fff;
    outline: none;
}
.search-bar button {
    background: #e50914;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 0 4px 4px 0;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
}
.search-bar button:hover {
    background: #b0060f;
}
.material-icons {
    font-size: 1.4rem;
}
.section-title {
    margin: 32px 0 0 40px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
}
.movie-carousel {
    display: flex;
    overflow-x: auto;
    gap: 28px;
    padding: 32px 40px 80px 40px;
    scroll-behavior: smooth;
}
.movie-carousel:focus {
    outline: 2px solid #e50914;
    outline-offset: 4px;
}
.row {
    position: relative;
    display: flex;
    align-items: center;
}
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20,20,20,0.8);
    border: 1px solid #333;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 3;
    transition: background 0.2s, transform 0.1s;
}
.nav-btn:hover { background: rgba(229,9,20,0.85); }
.nav-btn:active { transform: translateY(-50%) scale(0.96); }
.nav-btn.left { left: 8px; }
.nav-btn.right { right: 8px; }
.movie-card {
    background: #222;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.7);
    min-width: 180px;
    max-width: 180px;
    flex: 0 0 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    cursor: pointer;
}
.movie-card:hover {
    transform: scale(1.08) translateY(-8px);
    box-shadow: 0 8px 32px #e50914aa;
    z-index: 2;
}
.movie-card:focus-within, .movie-card:focus {
    outline: 2px solid #e50914;
    outline-offset: 2px;
}
.movie-card img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    background: #333;
    border-bottom: 2px solid #e50914;
}
.movie-card h2 {
    font-size: 1.08rem;
    margin: 12px 0 4px 0;
    text-align: center;
    color: #fff;
    font-weight: 600;
    text-shadow: 0 2px 8px #000a;
}
.movie-card p {
    font-size: 0.98rem;
    color: #bbb;
    margin: 0 0 12px 0;
    text-align: center;
}
footer {
    background: #111;
    text-align: center;
    padding: 16px;
    color: #888;
    font-size: 0.95rem;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    z-index: 10;
    box-shadow: 0 -2px 8px #000a;
}
@media (max-width: 900px) {
    .movie-carousel {
        padding: 24px 10px 80px 10px;
        gap: 16px;
    }
    .logo-nav {
        padding-left: 10px;
    }
    .search-bar {
        padding-right: 10px;
    }
    .section-title {
        margin-left: 10px;
    }
}
@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 10px 0;
    }
    .logo-nav {
        padding-left: 10px;
    }
    .search-bar {
        padding-right: 10px;
        width: 100%;
        margin-top: 8px;
    }
    .search-bar input {
        width: 100%;
    }
    .section-title {
        margin-left: 10px;
    }
    .movie-carousel {
        padding: 12px 2px 80px 2px;
        gap: 8px;
    }
    .movie-card {
        min-width: 130px;
        max-width: 130px;
        flex: 0 0 130px;
    }
    .movie-card img {
        height: 180px;
    }
}
