/* NewMovies account + Watchlist global controls — account dropdown v2.3 */

.header-actions{
    display:flex;
    align-items:center;
    gap:10px;
}

.nm-account-signin,
.nm-account-trigger{
    min-height:38px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(255,255,255,.08);
    border-radius:999px;
    background:rgba(255,255,255,.02);
    color:#d9dfe4;
    text-decoration:none;
    transition:border-color .18s ease,background .18s ease,color .18s ease,transform .18s ease;
}

.nm-account-signin{
    padding:0 15px;
    font-size:11px;
    font-weight:850;
    letter-spacing:.02em;
}

/* ---------------------------------------------------------
   Signed-in account dropdown
--------------------------------------------------------- */

.nm-account-menu{
    position:relative;
    display:block;
}

.nm-account-menu > summary{
    list-style:none;
}

.nm-account-menu > summary::-webkit-details-marker{
    display:none;
}

.nm-account-trigger{
    gap:9px;
    padding:4px 10px 4px 5px;
    cursor:pointer;
    user-select:none;
    outline:none;
}

.nm-account-trigger:focus-visible{
    outline:2px solid rgba(229,58,75,.8);
    outline-offset:3px;
}

.nm-account-avatar,
.nm-account-dropdown-avatar{
    display:grid;
    place-items:center;
    border-radius:50%;
    background:linear-gradient(145deg,#d73b49,#7e1323);
    color:#fff;
    font-weight:950;
    box-shadow:0 0 0 1px rgba(255,255,255,.06),0 7px 18px rgba(0,0,0,.25);
}

.nm-account-avatar{
    width:28px;
    height:28px;
    flex:0 0 28px;
    font-size:11px;
}

.nm-account-trigger-copy{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:1px;
    line-height:1;
    text-align:left;
}

.nm-account-trigger-copy small{
    color:#68737d;
    font-size:7px;
    font-weight:900;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.nm-account-trigger-copy strong{
    max-width:90px;
    overflow:hidden;
    color:#dce2e7;
    font-size:10px;
    font-weight:850;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.nm-account-chevron{
    width:7px;
    height:7px;
    margin:0 2px 3px 1px;
    border-right:1.5px solid #7f8992;
    border-bottom:1.5px solid #7f8992;
    transform:rotate(45deg);
    transition:transform .18s ease,margin .18s ease,border-color .18s ease;
}

.nm-account-menu[open] .nm-account-chevron{
    margin-top:5px;
    margin-bottom:0;
    transform:rotate(225deg);
    border-color:#fff;
}

.nm-account-signin:hover,
.nm-account-trigger:hover,
.nm-account-menu[open] .nm-account-trigger{
    transform:translateY(-1px);
    border-color:rgba(220,56,72,.33);
    background:rgba(220,56,72,.06);
    color:#fff;
}

.nm-account-dropdown{
    position:absolute;
    z-index:10020;
    top:calc(100% + 10px);
    right:0;
    width:225px;
    padding:8px;
    border:1px solid rgba(255,255,255,.09);
    border-radius:14px;
    background:rgba(14,17,21,.98);
    box-shadow:0 22px 55px rgba(0,0,0,.48);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
}

.nm-account-dropdown:before{
    content:"";
    position:absolute;
    top:-5px;
    right:24px;
    width:9px;
    height:9px;
    border-left:1px solid rgba(255,255,255,.09);
    border-top:1px solid rgba(255,255,255,.09);
    background:#0e1115;
    transform:rotate(45deg);
}

.nm-account-dropdown-head{
    position:relative;
    display:flex;
    align-items:center;
    gap:10px;
    padding:9px 9px 11px;
}

.nm-account-dropdown-avatar{
    width:34px;
    height:34px;
    flex:0 0 34px;
    font-size:12px;
}

.nm-account-dropdown-head > div{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:3px;
}

.nm-account-dropdown-head small{
    color:#68737d;
    font-size:8px;
    font-weight:850;
    letter-spacing:.09em;
    text-transform:uppercase;
}

.nm-account-dropdown-head strong{
    max-width:150px;
    overflow:hidden;
    color:#f1f4f6;
    font-size:11px;
    font-weight:850;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.nm-account-dropdown-links{
    display:grid;
    gap:3px;
}

.nm-account-dropdown-links a,
.nm-account-signout{
    width:100%;
    min-height:39px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:0 10px;
    border:0;
    border-radius:9px;
    background:transparent;
    color:#cfd6dc;
    font:inherit;
    font-size:11px;
    font-weight:800;
    line-height:1;
    text-align:left;
    text-decoration:none;
    cursor:pointer;
    transition:background .16s ease,color .16s ease,transform .16s ease;
}

.nm-account-dropdown-links a:hover,
.nm-account-dropdown-links a:focus-visible{
    background:rgba(255,255,255,.055);
    color:#fff;
    outline:none;
}

.nm-menu-icon{
    width:20px;
    height:20px;
    display:grid;
    place-items:center;
    flex:0 0 20px;
    border-radius:6px;
    background:rgba(255,255,255,.045);
    color:#8d98a1;
    font-size:10px;
    line-height:1;
}

.nm-account-dropdown-divider{
    height:1px;
    margin:7px 4px;
    background:rgba(255,255,255,.07);
}

.nm-account-signout-form{
    margin:0;
}

.nm-account-signout{
    color:#ef7884;
}

.nm-account-signout:hover,
.nm-account-signout:focus-visible{
    background:rgba(225,54,71,.09);
    color:#ff9aa4;
    outline:none;
}

.nm-account-signout .nm-menu-icon{
    background:rgba(225,54,71,.08);
    color:#ef7884;
}

/* Watchlist buttons used by movie/TV detail pages and catalog cards. */
.site-watchlist-button{
    min-height:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    padding:0 15px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:10px;
    background:rgba(255,255,255,.025);
    color:#dce2e7;
    font:inherit;
    font-size:11px;
    font-weight:850;
    cursor:pointer;
    transition:border-color .18s ease,background .18s ease,color .18s ease,transform .18s ease;
}

.site-watchlist-button:hover{
    transform:translateY(-1px);
    border-color:rgba(224,62,76,.42);
    background:rgba(224,62,76,.07);
    color:#fff;
}

.site-watchlist-button.is-saved{
    border-color:rgba(224,62,76,.72);
    background:linear-gradient(180deg,#d43b49,#951827);
    color:#fff;
}

.site-watchlist-icon{
    width:16px;
    height:16px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.site-watchlist-button.is-saved .site-watchlist-icon{
    fill:currentColor;
}

.site-watchlist-detail-button{
    width:100%;
    margin-top:10px;
}

.site-watchlist-card-wrap{
    position:relative;
}

.site-watchlist-card-button{
    position:absolute;
    z-index:6;
    top:8px;
    right:8px;
    width:34px;
    height:34px;
    min-height:34px;
    padding:0;
    border-radius:50%;
    background:rgba(5,8,12,.84);
    backdrop-filter:blur(4px);
}

.site-watchlist-card-button .site-watchlist-label{
    display:none;
}

.site-watchlist-toast{
    position:fixed;
    z-index:99999;
    left:50%;
    bottom:28px;
    transform:translate(-50%,16px);
    opacity:0;
    pointer-events:none;
    padding:11px 15px;
    border:1px solid rgba(255,255,255,.09);
    border-radius:10px;
    background:#10161d;
    color:#fff;
    font-size:11px;
    font-weight:800;
    box-shadow:0 18px 45px rgba(0,0,0,.38);
    transition:.2s ease;
}

.site-watchlist-toast.is-visible{
    opacity:1;
    transform:translate(-50%,0);
}

@media(max-width:760px){
    .header-actions{
        gap:6px;
    }

    .nm-account-trigger{
        min-width:38px;
        padding:4px;
    }

    .nm-account-trigger-copy,
    .nm-account-chevron{
        display:none;
    }

    .nm-account-signin{
        padding:0 11px;
        font-size:10px;
    }

    .nm-account-dropdown{
        right:-2px;
        width:min(225px,calc(100vw - 24px));
    }

    .nm-account-dropdown:before{
        right:18px;
    }
}

