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

body {
    background: #0d0d0d;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    scroll-behavior: smooth;
}

.nav-pill {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: min(92%, 1100px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.75);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

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

.nav-item {
    color: #ff5a1a;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.25s ease;
}

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

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

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

.search-form {
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease;
}

.search-form:hover {
    background: rgba(255, 255, 255, 0.09);
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    width: 180px;
    font-size: 0.95rem;
}

.search-btn {
    border: none;
    background: linear-gradient(90deg, #ff5a1a, #ffb86b);
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    color: #111;
    transition: transform 0.2s ease;
}

.search-btn:hover {
    transform: scale(1.05);
}

.suggestions {
    display: none;
    position: absolute;
    top: 50px;
    width: 100%;
    background: rgba(15, 15, 15, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 9999;
}

.suggestion-item,
.suggestion-empty {
    padding: 12px 16px;
    font-size: 0.95rem;
    cursor: pointer;
    color: #ffb86b;
    transition: background 0.2s ease;
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 420px);
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    transition: opacity 0.3s ease;
}

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

.mobile-menu a {
    display: block;
    text-decoration: none;
    color: #ff5a1a;
    padding: 12px 16px;
    border-radius: 10px;
    transition: background 0.25s ease;
}

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

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

    .menu-toggle {
        display: block;
    }

    .search-wrapper {
        width: 160px;
    }

    .search-input {
        width: 120px;
    }
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    filter: brightness(0.6);
    transition: filter 0.3s ease;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.1));
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 16px;
}

.hero-logo-big {
    width: 420px;
    max-width: 90%;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.cta-button {
    padding: 16px 32px;
    background: linear-gradient(90deg, #ffcc00, #ff7b00);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    color: #111;
    transition: transform 0.25s ease;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
}

.section-cat {
    padding: 60px 48px;
}

.section-header {
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 2rem;
    color: #ffcc66;
}

.cat-subtitle {
    font-size: 1rem;
    opacity: 0.75;
}

.categorie-liste {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 14px;
    transition: opacity 0.3s ease;
    scroll-behavior: smooth;
}

.categorie-liste.loading {
    opacity: 0.3;
}

.categorie-liste::-webkit-scrollbar {
    height: 8px;
}

.categorie-liste::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 6px;
}

.card {
    width: 170px;
    flex-shrink: 0;
    cursor: pointer;
    user-select: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 8px;
}

.card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
    background: rgba(255, 255, 255, 0.05);
}

.card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.card img:hover {
    transform: scale(1.05);
}

.card h3 {
    margin-top: 10px;
    font-size: 1rem;
    opacity: 0.95;
    text-align: center;
    min-height: 38px;
}

.card .btn-see {
    width: 100%;
    padding: 8px 0;
    margin-top: 8px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff5a1a, #ffb86b);
    color: #111;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.card .btn-see:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 18px rgba(255, 184, 107, 0.45);
    background: linear-gradient(90deg, #ff7b00, #ffd066);
}

.btn-more {
    margin-top: 16px;
    padding: 12px 24px;
    border-radius: 10px;
    background: #1f1f1f;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-more:hover {
    background: #333;
    transform: translateY(-2px);
}

.btn-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

footer {
    text-align: center;
    padding: 40px 0;
    opacity: 0.65;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 24px;
}

.modal-overlay.open {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: min(92%, 1100px);
    max-height: 90vh;
    background: #111;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.85);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.75;
    z-index: 10001;
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 28px;
    padding: 32px;
    overflow-y: auto;
}

.modal-left img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.modal-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-right h2 {
    font-size: 2.1rem;
    margin-bottom: 14px;
    color: #ffcc66;
}

.modal-meta {
    display: flex;
    gap: 16px;
    font-size: 1rem;
    align-items: center;
}

.modal-stars {
    color: #ffcc00;
    font-size: 1.1rem;
}

.modal-plot {
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 22px;
    opacity: 0.95;
}

@media (max-width: 900px) {
    .modal-body {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .modal-trailer iframe {
        height: 240px;
    }

    .modal-right h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 500px) {
    .modal-content {
        width: 100%;
        border-radius: 12px;
    }

    .modal-body {
        gap: 16px;
    }
}