/* PornGH Header V2: isolated from player, cards and plugin behaviour. */
.pgh-header-v2-active #site-header,
.pgh-header-v2-active #sidebar-secondary {
    display: none !important;
}

.pgh-header-v2-active .content-container-fluid.header-template-1 .site-main,
.pgh-header-v2-active .site-main {
    margin-top: 0 !important;
    padding-left: 0 !important;
}

.pgh-header-v2-active .site-footer {
    padding-left: 0 !important;
}

.pgh-header-v2 {
    --pgh-header-bg: #171719;
    --pgh-header-line: rgba(255, 255, 255, .09);
    --pgh-header-text: #f8f8f9;
    --pgh-header-muted: #b4b4b9;
    --pgh-header-accent: #e50914;
    position: sticky;
    top: 0;
    z-index: 1200;
    background: var(--pgh-header-bg);
    border-bottom: 1px solid var(--pgh-header-line);
    color: var(--pgh-header-text);
}

.pgh-header-v2__main {
    min-height: 68px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: max-content max-content minmax(260px, 1fr);
    align-items: center;
    gap: 38px;
}

.pgh-header-v2__brand {
    color: var(--pgh-header-text) !important;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
    text-decoration: none;
}

.pgh-header-v2__desktop-nav,
.pgh-header-v2__mobile-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.pgh-header-v2 a {
    color: var(--pgh-header-muted);
    text-decoration: none;
}

.pgh-header-v2__desktop-nav a {
	position: relative;
	padding: 24px 0;
	font-size: .92rem;
    font-weight: 700;
    white-space: nowrap;
}

.pgh-header-v2 a:hover,
.pgh-header-v2 a:focus-visible { color: #fff; }

.pgh-header-v2__desktop-nav a.is-active {
	color: #fff;
}

.pgh-header-v2__desktop-nav a.is-active::after {
	position: absolute;
	bottom: 13px;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 999px;
	background: var(--pgh-header-accent);
	content: '';
}

.pgh-header-v2__search {
    width: min(100%, 650px);
    justify-self: end;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: #252527;
}

.pgh-header-v2__search input {
    min-width: 0;
    flex: 1;
    height: 43px;
    padding: 0 17px;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: .93rem;
}

.pgh-header-v2__search input::placeholder { color: #9b9ba2; opacity: 1; }

.pgh-header-v2__search button,
.pgh-header-v2__mobile-search {
    width: 46px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 0;
    background: var(--pgh-header-accent);
    color: #fff;
    cursor: pointer;
}

.pgh-header-v2 svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.35; stroke-linecap: round; }
.pgh-header-v2__mobile-search,
.pgh-header-v2__mobile-nav { display: none; }

.pgh-header-v2__footer-links {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin: 0;
    padding: 14px 18px 24px;
    background: #191919;
    color: #aaa;
    font-size: .84rem;
}
.pgh-header-v2__footer-links a { color: inherit; text-decoration: none; }
.pgh-header-v2__footer-links a:hover { color: #fff; }

body.admin-bar .pgh-header-v2 { top: 32px; }

@media (max-width: 991px) {
    .pgh-header-v2__main {
        min-height: 58px;
        padding: 0 16px;
        grid-template-columns: 1fr max-content;
        gap: 12px;
    }
    .pgh-header-v2__brand { font-size: 1.3rem; }
    .pgh-header-v2__desktop-nav { display: none; }
    .pgh-header-v2__mobile-search { display: grid; width: 42px; height: 42px; border-radius: 50%; }
    .pgh-header-v2__search {
        position: absolute;
        top: calc(100% + 8px);
        left: 12px;
        right: 12px;
        width: auto;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity .16s ease, transform .16s ease;
        box-shadow: 0 14px 28px rgba(0,0,0,.34);
    }
    .pgh-header-v2.is-search-open .pgh-header-v2__search { opacity: 1; pointer-events: auto; transform: none; }
    .pgh-header-v2__mobile-nav {
        display: flex !important;
        visibility: visible;
        opacity: 1;
        min-height: 42px;
        height: 42px;
        padding: 0 16px;
        justify-content: space-around;
        gap: 0;
        overflow: hidden;
        border-top: 1px solid var(--pgh-header-line);
        transition: height .2s ease, opacity .2s ease, border-color .2s ease;
    }
    .pgh-header-v2__mobile-nav a { font-size: .86rem; font-weight: 700; color: #d2d2d5; }
    .pgh-header-v2__mobile-nav a.is-active { color: #fff; }
    .pgh-header-v2__mobile-nav a.is-active::after {
        display: block;
        width: 18px;
        height: 2px;
        margin: 4px auto 0;
        border-radius: 999px;
        background: var(--pgh-header-accent);
        content: '';
    }
    .pgh-header-v2.is-compact .pgh-header-v2__mobile-nav { height: 0; opacity: 0; border-color: transparent; }
    body.admin-bar .pgh-header-v2 { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
    .pgh-header-v2 *, .pgh-header-v2 { transition: none !important; }
}
