/* =========================================================
   DIASTOMY_MOVIE_MAXSTREAM_HEADER_V1
   Movie detail desktop header
   ========================================================= */

.dm-movie-maxstream-shell {
    display: none;
}

@media (min-width: 768px) {
    body[data-page="movie-detail"] > header.dm-site-header-glass {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: min(1220px, calc(100% - 40px)) !important;
        max-width: calc(100% - 40px) !important;
        top: 18px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        z-index: 1000 !important;
    }

    body[data-page="movie-detail"] .dm-movie-maxstream-shell {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        width: 100%;
        min-height: 88px;
        padding: 18px 24px;
        border-radius: 28px;
        background:
            linear-gradient(
                135deg,
                rgba(20, 31, 49, 0.84) 0%,
                rgba(24, 35, 55, 0.74) 45%,
                rgba(58, 68, 84, 0.45) 100%
            );
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow:
            0 14px 45px rgba(0, 0, 0, 0.34),
            inset 0 1px 0 rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(28px) saturate(165%);
        -webkit-backdrop-filter: blur(28px) saturate(165%);
    }

    body[data-page="movie-detail"] .dm-site-desktop-brand-block,
    body[data-page="movie-detail"] .dm-site-header-actions {
        display: none !important;
    }

    body[data-page="movie-detail"] .dm-movie-maxstream__left {
        display: flex;
        align-items: center;
        gap: 30px;
        min-width: 0;
        flex: 1 1 auto;
    }

    body[data-page="movie-detail"] .dm-movie-maxstream__brand {
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
    }

    body[data-page="movie-detail"] .dm-movie-maxstream__brand img {
        height: 28px;
        width: auto;
        object-fit: contain;
        opacity: 0.97;
    }

    body[data-page="movie-detail"] .dm-movie-maxstream__nav {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    body[data-page="movie-detail"] .dm-movie-maxstream__nav-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 42px;
        padding: 0 18px;
        border-radius: 999px;
        color: rgba(255, 255, 255, 0.86);
        font-size: 14px;
        font-weight: 500;
        letter-spacing: -0.01em;
        text-decoration: none;
        transition:
            background 0.22s ease,
            color 0.22s ease,
            border-color 0.22s ease;
    }

    body[data-page="movie-detail"] .dm-movie-maxstream__nav-link:hover {
        background: rgba(255, 255, 255, 0.06);
        color: #ffffff;
    }

    body[data-page="movie-detail"] .dm-movie-maxstream__nav-link--accent {
        background: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(255, 255, 255, 0.09);
    }

    body[data-page="movie-detail"] .dm-movie-maxstream__right {
        display: flex;
        align-items: center;
        gap: 14px;
        flex: 0 0 auto;
    }

    body[data-page="movie-detail"] .dm-movie-maxstream__search {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 290px;
        height: 42px;
        padding: 0 16px 0 18px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.075);
        border: 1px solid rgba(255, 255, 255, 0.10);
        color: rgba(255, 255, 255, 0.62);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(20px) saturate(145%);
        -webkit-backdrop-filter: blur(20px) saturate(145%);
        transition:
            background 0.22s ease,
            color 0.22s ease,
            border-color 0.22s ease;
    }

    body[data-page="movie-detail"] .dm-movie-maxstream__search:hover {
        background: rgba(255, 255, 255, 0.10);
        color: rgba(255, 255, 255, 0.82);
    }

    body[data-page="movie-detail"] .dm-movie-maxstream__search svg {
        flex: 0 0 auto;
        opacity: 0.82;
    }

    body[data-page="movie-detail"] .dm-movie-maxstream__search-text {
        font-size: 13px;
        font-weight: 400;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body[data-page="movie-detail"] .dm-movie-maxstream__avatar {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: 999px;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.075);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    body[data-page="movie-detail"] .dm-movie-maxstream__avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    body[data-page="movie-detail"] .dm-movie-maxstream__avatar-fallback {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

    body[data-page="movie-detail"] .dm-movie-maxstream__avatar-fallback svg {
        width: 20px;
        height: 20px;
    }

    body[data-page="movie-detail"] .dm-movie-maxstream__avatar-mark {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        font-size: 16px;
        font-weight: 700;
        color: #fff;
    }
}

@media (min-width: 768px) and (max-width: 1060px) {
    body[data-page="movie-detail"] .dm-movie-maxstream__nav {
        gap: 4px;
    }

    body[data-page="movie-detail"] .dm-movie-maxstream__nav-link {
        padding: 0 12px;
        font-size: 13px;
    }

    body[data-page="movie-detail"] .dm-movie-maxstream__search {
        width: 220px;
    }
}
