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

html {
    scroll-behavior: smooth;
}

body {
    background: #0d0d0d;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

.nav-pill {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: min(92%, 1100px);

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 18px;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.7);
}

.nav-left {
    display: flex;
    gap: 10px;
}

.nav-item {
    color: #ff5a1a;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
    transition: 0.2s;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffb86b;
}

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

.search-wrapper {
    position: relative;
    width: 220px;
}

.search-form {
    display: flex;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    width: 160px;
}

.search-btn {
    border: none;
    background: linear-gradient(90deg, #ff5a1a, #ffb86b);
    padding: 8px 10px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: bold;
    color: black;
}

.suggestions {
    display: none;
    position: absolute;
    top: 48px;
    width: 100%;
    max-height: 240px;
    overflow-y: auto;
    background: rgba(15, 15, 15, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
    border-radius: 0 0 14px 14px;
    z-index: 10001;
    animation: slideDown 0.18s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-item,
.suggestion-empty {
    padding: 12px 14px;
    font-size: 0.95rem;
    cursor: pointer;
    color: #ffb86b;
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.suggestion-empty {
    opacity: 0.5;
    cursor: default;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 420px);
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    z-index: 9999;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    display: block;
    text-decoration: none;
    color: #ff5a1a;
    padding: 10px 14px;
    border-radius: 8px;
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

main#moviesContainer {
    width: min(92%, 1200px);
    margin: 100px auto 80px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

.film-card {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 28px;
    border-radius: 20px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    scroll-margin-top: 140px;
}

.film-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8);
}

.film-poster {
    width: 180px;
    flex-shrink: 0;
}

.film-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 16px;
    background: #111;
}

.film-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.film-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #ffb86b;
}

.film-infos {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #d0d0d0;
}

.film-infos strong {
    color: #ff5a1a;
    font-weight: 600;
}

footer {
    text-align: center;
    padding: 30px 0;
    opacity: 0.6;
}

.alphabet-sidebar {
    position: fixed;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;

    max-height: 90vh;
    overflow-y: auto;
    padding: 4px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
}

.alphabet-sidebar button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffb86b;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.alphabet-sidebar button.active {
    background: #ff5a1a;
    color: black;
}

@media (max-width: 780px) {
    .nav-left {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}

@media (max-width: 600px) {
    main#moviesContainer {
        padding: 24px;
    }

    .film-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        scroll-margin-top: 100px;
    }

    .film-poster {
        width: 200px;
    }

    .film-content {
        align-items: center;
    }

    .alphabet-sidebar {
        right: 5px;
        max-height: 70vh;
    }

    .alphabet-sidebar button {
        padding: 4px 6px;
        font-size: 0.85rem;
    }
}