/* ===== HEADER ===== */
header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #121212;
    overflow: visible; /* QUAN TRỌNG */
}

/* ===== NAVBAR ===== */
.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 12px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: relative;
    overflow: visible; /* QUAN TRỌNG */
}

/* ===== LOGO ===== */
.logo a {
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
    color: #ff4500;
}

.logo span {
    color: #fff;
}

/* ===== SEARCH ===== */
.search-box {
    display: flex;
    align-items: center;
    background: #1e1e1e;
    border-radius: 20px;
    padding: 5px 12px;
}

.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    width: 180px;
}

.search-box button {
    background: none;
    border: none;
    color: #ff4500;
    cursor: pointer;
}

/* ===== NAV LINKS ===== */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 22px;
}

/* ===== ITEM ===== */
.nav-links li {
    position: relative; /* MỐC CHO DROPDOWN */
}

.nav-links a,
.dropdown-toggle {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a:hover,
.dropdown-toggle:hover {
    color: #ff4500;
}

/* ===== DROPDOWN ===== */
.dropdown-menu {
    position: absolute;
        top: 100%;

    left: 0;

    background: #1e1e1e;
    border-radius: 10px;
    padding: 10px 0;
    min-width: 220px;

    display: none;
    flex-direction: column;

    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    z-index: 99999;
}

/* link trong dropdown */
.dropdown-menu a {
    padding: 10px 16px;
    color: #eee;
    font-size: 14px;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: #ff4500;
    color: #fff;
}

/* ===== HOVER HIỆN DROPDOWN ===== */
.nav-item:hover > .dropdown-menu {
    display: flex;
}

/* ===== RIÊNG MENU THỂ LOẠI (dài) ===== */
.genre-menu {
    max-height: 320px;
    overflow-y: auto;
}

/* scrollbar đẹp */
.genre-menu::-webkit-scrollbar {
    width: 6px;
}
.genre-menu::-webkit-scrollbar-thumb {
    background: #ff4500;
    border-radius: 10px;
}

/* ===== USER MENU ===== */
.user-menu a {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .search-box {
        display: none;
    }

    .nav-links {
        gap: 14px;
    }
}
