/* Design: see new-design-php/docs/design-system.md + page-patterns.md */
/* ==========================================================================
   HOTPIC — /videos/ (TikTok-style feed) — new design
   Loaded by tiktok/head.php after pages.css. Restyles the existing feed
   markup without changing its JS/layout behaviour.
   ========================================================================== */

/* ---------- sponsored promo strip ---------- */
.hp-promo-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: linear-gradient(180deg, rgba(var(--hp-color-overlay-mid-rgb), 0.92), rgba(var(--hp-color-overlay-bottom-rgb), 0.92));
    border-bottom: 1px solid rgba(var(--hp-color-white-rgb), 0.08);
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
}

.hp-promo-bar:hover {
    background: linear-gradient(180deg, rgba(var(--hp-color-overlay-strong-rgb), 0.94), rgba(var(--hp-color-overlay-bottom-rgb), 0.94));
}

.hp-promo-cta {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--hp-color-accent) 0%, var(--hp-color-accent-mid) 48%, var(--hp-color-accent-deep) 100%);
    color: var(--hp-color-white);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(var(--hp-color-accent-deep-rgb), 0.3);
}

.hp-promo-bar:hover .hp-promo-cta {
    box-shadow: 0 8px 20px rgba(var(--hp-color-accent-deep-rgb), 0.45);
}

.hp-promo-text {
    color: rgba(var(--hp-color-white-rgb), 0.68);
    font-size: 12.5px;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* ---------- floating filter row ---------- */
.header .header__topbar {
    gap: 10px;
    padding: 4px 10px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    padding: 7px 14px !important;
    border-radius: 999px !important;
    border: 1px solid var(--hp-color-border) !important;
    background: rgba(var(--hp-color-white-rgb), 0.05) !important;
    color: var(--hp-color-white) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(var(--hp-color-white-rgb), 0.08);
}

.filter-btn:hover,
.filter-btn:focus {
    background: var(--hp-color-border-soft) !important;
    border-color: rgba(var(--hp-color-white-rgb), 0.2) !important;
    color: var(--hp-color-white) !important;
}

.filter-btn img {
    width: 15px !important;
    height: 15px !important;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.filter-btn .menu-text {
    font-size: 13px;
    font-weight: 600;
}

.filter-btn::after {
    margin-left: 6px;
    border-top-color: rgba(var(--hp-color-white-rgb), 0.7);
}

.simple-menu {
    min-width: 180px;
    margin-top: 6px !important;
    padding: 8px !important;
    border-radius: 16px !important;
    border: 1px solid var(--hp-color-border-on-glass) !important;
    background: linear-gradient(180deg,
            rgba(var(--hp-color-overlay-top-rgb), 0.78) 0%,
            rgba(var(--hp-color-overlay-mid-rgb), 0.88) 60%,
            rgba(var(--hp-color-overlay-bottom-rgb), 0.94) 100%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(135%);
    backdrop-filter: blur(28px) saturate(135%);
    box-shadow: 0 18px 48px rgba(var(--hp-color-black-rgb), 0.45) !important;
}

.simple-menu .dropdown-item,
.simple-menu .menu-text {
    padding: 9px 12px !important;
    border-radius: 9px !important;
    color: rgba(var(--hp-color-white-rgb), 0.7) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    background: transparent !important;
}

.simple-menu .dropdown-item:hover,
.simple-menu .dropdown-item:focus {
    background: rgba(var(--hp-color-accent-rgb), 0.16) !important;
    color: var(--hp-color-white) !important;
}

/* kill the old red hover filter from the header inline styles */
.nav_hover:hover {
    filter: none !important;
}

/* ---------- feed stage ---------- */
.postlist_container__0vHo5 {
    background: var(--hp-color-black);
}

.post_wrapper__4yQFk {
    background: var(--hp-color-black);
}

/* fullscreen button — glass circle.
   `position` is what makes the top/right offsets land top-right of the video
   (the offsets were already !important but inert on a static element). */
.fullscreen-button {
    position: absolute;
    top: 12px !important;
    right: 12px !important;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(var(--hp-color-white-rgb), 0.16) !important;
    background: rgba(var(--hp-color-canvas-rgb), 0.55) !important;
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    backdrop-filter: blur(10px) saturate(140%);
}

.fullscreen-icon {
    width: 17px !important;
    height: 17px !important;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* progress line — violet.
   Must be the positioned 3px track: the ::after fill is inset:0 + width:var(--progress),
   so without this it resolves against .post_image__bBnIl and floods the whole video. */
.progress-bar-line {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px !important;
    background: rgba(var(--hp-color-white-rgb), 0.16) !important;
}

.progress-bar-line::after {
    content: "";
    position: absolute;
    inset: 0;
    right: auto;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, var(--hp-color-accent), var(--hp-color-accent-soft));
    border-radius: 999px;
}

/* loading spinner — the markup element is an empty div, so the whole visual is
   CSS (no icon file; /assets/img/icons/loading.svg that the legacy sheet used is
   not shipped). Centred with inset/margin, not transform, because the shared
   spinner-border keyframes rotate via `transform` and would cancel a translate(). */
.loading-icon {
    position: absolute;
    inset: 0;
    margin: auto;
    z-index: 2;
    width: 56px;
    height: 56px;
    box-sizing: border-box;
    border: 3px solid rgba(var(--hp-color-white-rgb), 0.24);
    border-top-color: var(--hp-color-white);
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

/* pagination.js toggles these: `hide` once the video plays, `show` again while it
   re-buffers. `hide` is never removed, so show must win when both are present. */
.loading-icon.hide {
    display: none !important;
}

.loading-icon.show {
    display: block !important;
}

/* pause icon keeps its data-URI glyph from the component sheet */
.pause_icon {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

/* ---------- overlay ---------- */
.overlay_container__DOCw_ {
    padding: 3.2rem 1rem 1.1rem !important;
    background: linear-gradient(180deg,
            rgba(var(--hp-color-black-rgb), 0) 0%,
            rgba(var(--hp-color-black-rgb), 0.35) 38%,
            rgba(var(--hp-color-black-rgb), 0.78) 100%);
}

.overlay_content__7piAd {
    font-size: 14.5px !important;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 10px rgba(var(--hp-color-black-rgb), 0.6);
}

.overlay_content__7piAd a {
    color: var(--hp-color-white) !important;
    text-decoration: none;
}

.overlay_user__WeSKF {
    margin-top: 6px;
}

.overlay_user__WeSKF a {
    color: var(--hp-color-accent-soft) !important;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
}

/* tag chips — .hp-tags is the stable hook on the wrapper (PHP cards + the AJAX
   cards built by tiktok/pagination.js); the .row .col chain is kept for
   templates that do not carry the hook yet */
.overlay_container__DOCw_ .row .col a,
.overlay_container__DOCw_ .hp-tags a {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 4px 9px !important;
    margin: 0 6px 6px 0 !important;
    border-radius: 999px !important;
    border: 1px solid var(--hp-color-border-on-glass) !important;
    background: rgba(var(--hp-color-white-rgb), 0.08) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: rgba(var(--hp-color-white-rgb), 0.82) !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    white-space: nowrap;
}

.overlay_container__DOCw_ .row .col a:hover,
.overlay_container__DOCw_ .hp-tags a:hover {
    background: rgba(var(--hp-color-accent-rgb), 0.22) !important;
    border-color: rgba(var(--hp-color-accent-rgb), 0.45) !important;
    color: var(--hp-color-white) !important;
}

.overlay_container__DOCw_ .row .col a img,
.overlay_container__DOCw_ .hp-tags a img {
    width: 11px !important;
    height: 11px !important;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

/* page-1 PHP cards draw the chip's hash icon as an inline hp_icon SVG (18px
   attribute), which `a img` cannot reach; size it to match. The SVG strokes
   with currentColor, so it takes the chip colour — no invert filter needed. */
.overlay_container__DOCw_ .row .col a svg,
.overlay_container__DOCw_ .hp-tags a svg {
    width: 11px !important;
    height: 11px !important;
}

/* video counter top-left */
.overlay_overlay__Y1a_f .position-absolute.top-0.start-0 > div {
    padding: 5px 11px !important;
    border-radius: 999px !important;
    border: 1px solid var(--hp-color-border-strong) !important;
    background: rgba(var(--hp-color-canvas-rgb), 0.5) !important;
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    backdrop-filter: blur(10px) saturate(140%);
    font-size: 10.5px !important;
    letter-spacing: 0.02em;
}

/* ---------- action rail (right-side buttons) ---------- */
/* Sits above the floating bottom nav on every page family: the old
   top:50% / height:50% box from fab.css let the last button overlap the nav. */
.interactions_interactions__L8kQf {
    position: absolute !important;
    top: auto !important;
    right: 16px !important;
    bottom: calc(var(--hp-nav-height, 64px) + 28px) !important;
    height: auto !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    overflow: visible !important;
    z-index: 3;
}

/* one action = glass circle + optional count underneath */
.interactions_interactions__L8kQf .interaction_interaction__kEcc2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-bottom: 0 !important;
    cursor: pointer;
}

/* the glass circle — share gets the identical surface through its anchor */
.interaction_icon__hcYZ3,
.share-button a {
    display: grid !important;
    place-items: center;
    width: 44px !important;
    height: 44px !important;
    box-sizing: border-box !important;
    border-radius: 50%;
    border: 1px solid var(--hp-color-border-strong);
    background: linear-gradient(180deg,
            rgba(var(--hp-color-overlay-top-rgb), 0.62) 0%,
            rgba(var(--hp-color-overlay-mid-rgb), 0.74) 60%,
            rgba(var(--hp-color-overlay-bottom-rgb), 0.86) 100%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    backdrop-filter: blur(24px) saturate(140%);
    box-shadow:
        0 8px 22px rgba(var(--hp-color-black-rgb), 0.38),
        inset 0 1px 0 var(--hp-color-border);
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.15s ease;
}

/* icons: one size, white, crisp over any video frame */
.interaction_icon__hcYZ3 img,
.share-button a img {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

/* inline SVG icons (hp_icon) in the action rail — same 20px white treatment;
   without this the share anchor inherited the link colour (violet) and the raw
   30px SVG attribute size */
.interaction_icon__hcYZ3 svg,
.share-button a svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    color: var(--hp-color-white);
    opacity: 0.95;
}

.share-button a {
    color: var(--hp-color-white);
}

/* count under the circle */
.interaction_text__Ygi4u {
    margin-top: 0 !important;
    color: rgba(var(--hp-color-white-rgb), 0.88) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(var(--hp-color-black-rgb), 0.85);
}

/* share has no count — its old text wrapper must not add height */
.share-button .interaction_text__Ygi4u {
    margin-top: 0 !important;
    line-height: 0 !important;
}

/* hover / press */
@media (hover: hover) {
    .interaction_icon__hcYZ3:hover,
    .share-button a:hover {
        /* violet layer sits over an opaque-enough glass base so the hue stays
           on-brand even over red/warm video frames */
        background:
            linear-gradient(180deg,
                rgba(var(--hp-color-accent-rgb), 0.55) 0%,
                rgba(var(--hp-color-accent-mid-rgb), 0.48) 55%,
                rgba(var(--hp-color-accent-deep-rgb), 0.45) 100%),
            linear-gradient(180deg,
                rgba(var(--hp-color-overlay-mid-rgb), 0.86) 0%,
                rgba(var(--hp-color-overlay-bottom-rgb), 0.92) 100%);
        border-color: rgba(var(--hp-color-accent-soft-rgb), 0.55);
        box-shadow:
            0 10px 26px rgba(var(--hp-color-accent-deep-rgb), 0.35),
            inset 0 1px 0 rgba(var(--hp-color-white-rgb), 0.18);
        transform: translateY(-1px);
    }
}

.interaction_icon__hcYZ3:active,
.share-button a:active {
    transform: scale(0.94);
}

/* liked state — same violet gradient as the FAB / active nav */
.like-btn.liked,
.like-btn.is-liked {
    background: linear-gradient(180deg, var(--hp-color-accent) 0%, var(--hp-color-accent-mid) 48%, var(--hp-color-accent-deep) 100%);
    border-color: rgba(var(--hp-color-accent-soft-rgb), 0.65);
    box-shadow:
        0 8px 24px rgba(var(--hp-color-accent-deep-rgb), 0.45),
        inset 0 1px 0 rgba(var(--hp-color-white-rgb), 0.25);
}

.like-btn.liked img,
.like-btn.is-liked img {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.share-button a:focus-visible,
.interaction_icon__hcYZ3:focus-visible {
    outline: 2px solid var(--hp-color-accent);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .interaction_icon__hcYZ3,
    .share-button a {
        transition: none;
    }
}


/* desktop: floating glass bottom nav instead of the legacy full-width bar */

/* desktop filter row: shrink to content instead of a full-width bar */
@media screen and (min-width: 768px) {
    .header .header__topbar {
        width: fit-content;
        min-width: 0;
        padding: 6px 14px;
    }
}
/* desktop: keep the video inside the centered column (fixes the split look) */
@media screen and (min-width: 768px) {
    .post_wrapper__4yQFk .post_image__bBnIl {
        width: 100%;
        height: 100%;
    }

    .post_wrapper__4yQFk .display_video__UdZxy {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        object-fit: contain;
    }

    .post_wrapper__4yQFk .post_thumbnail__932uO {
        opacity: 0.35;
    }
}
/* ==========================================================================
   /videos/ bottom nav — the main mobile footer menu, shown on ALL widths
   (Albums · Photos · Upload FAB · Videos · Search)
   ========================================================================== */
.hp-videos-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin-inline: auto;
    width: 100%;
    max-width: 30rem;
    height: auto;
    padding: 0 16px max(10px, env(safe-area-inset-bottom));
    display: block;
    pointer-events: none;
    background: none;
    border: 0;
    box-shadow: none;
    z-index: 1030;
}

.hp-videos-bottom::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(7.25rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(transparent 0%,
            rgba(var(--hp-color-black-rgb), 0.62) 48%,
            rgba(var(--hp-color-black-rgb), 0.92) 100%);
    pointer-events: none;
    z-index: 0;
}

.hp-videos-bottom .nav__list {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    margin: 0;
    padding: 4px 8px;
    min-height: 64px;
    border-radius: 27px;
    background: linear-gradient(180deg,
            rgba(var(--hp-color-overlay-top-rgb), 0.66) 0%,
            rgba(var(--hp-color-overlay-mid-rgb), 0.76) 60%,
            rgba(var(--hp-color-overlay-bottom-rgb), 0.84) 100%);
    -webkit-backdrop-filter: blur(28px) saturate(135%);
    backdrop-filter: blur(28px) saturate(135%);
    border: 1px solid var(--hp-color-border-on-glass);
    box-shadow: 0 18px 48px rgba(var(--hp-color-black-rgb), 0.42);
    pointer-events: auto;
    isolation: isolate;
    overflow: visible;
    column-gap: 0;
}

.hp-videos-bottom .nav__item {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.hp-videos-bottom .nav__item--albums { order: 1; }
.hp-videos-bottom .nav__item--photos { order: 2; }
.hp-videos-bottom .nav__item--upload { order: 3; }
.hp-videos-bottom .nav__item--videos { order: 4; }
.hp-videos-bottom .nav__item--search { order: 5; }

.hp-videos-bottom .nav__link {
    position: relative;
    top: -2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    max-width: 4.5rem;
    min-height: 56px;
    min-width: 0;
    margin: 0 auto;
    padding: 0 2px;
    border-radius: 16px;
    color: rgba(var(--hp-color-white-rgb), 0.4);
    text-decoration: none;
}

.hp-videos-bottom .nav__link img {
    display: block;
    box-sizing: content-box;
    width: 24px;
    height: 24px;
    padding: 4px 0;
    filter: brightness(0) invert(1);
    opacity: 0.4;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

/* inline SVG icons (hp_icon) — the /videos/ bottom nav is visible at every width,
   so it must override chrome.css's desktop rule that hides .nav__icon in the
   site header nav */
.hp-videos-bottom .nav__list .nav__link .hp-icon {
    display: block !important;
    box-sizing: content-box;
    width: 24px;
    height: 24px;
    padding: 4px 0;
    color: var(--hp-color-white);
    opacity: 0.4;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.hp-videos-bottom .nav__list .nav__item.is-active > .nav__link .hp-icon {
    opacity: 1;
}

.hp-videos-bottom .nav__list .nav__item--upload .nav__link .hp-icon {
    position: absolute;
    top: 4px;
    left: calc(50% - 12px);
    width: 24px;
    height: 24px;
    padding: 0;
    box-sizing: border-box;
    opacity: 1;
    z-index: 1;
}

.hp-videos-bottom .nav__name {
    display: block;
    max-width: 100%;
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hp-videos-bottom .nav__item.is-active > .nav__link {
    color: var(--hp-color-white);
}

.hp-videos-bottom .nav__item.is-active > .nav__link img {
    opacity: 1;
}

.hp-videos-bottom .nav__thumb {
    display: none;
}

/* upload FAB in the centre slot */
.hp-videos-bottom .nav__item--upload .nav__link {
    gap: 0;
    padding: 0;
}

.hp-videos-bottom .nav__item--upload .nav__link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 52px;
    height: 52px;
    transform: translate(-50%, -10px);
    border-radius: 50%;
    background: linear-gradient(180deg, var(--hp-color-accent) 0%, var(--hp-color-accent-mid) 48%, var(--hp-color-accent-deep) 100%);
    box-shadow:
        0 4px 8px rgba(var(--hp-color-black-rgb), 0.28),
        0 10px 22px rgba(var(--hp-color-accent-deep-rgb), 0.22),
        0 18px 36px rgba(var(--hp-color-accent-rgb), 0.12);
}

.hp-videos-bottom .nav__item--upload .nav__link img {
    position: absolute;
    top: 4px;
    left: calc(50% - 12px);
    width: 24px;
    height: 24px;
    padding: 0;
    box-sizing: border-box;
    opacity: 1;
    z-index: 1;
}

.hp-videos-bottom .nav__item--upload .nav__name {
    display: none;
}

@media screen and (min-width: 768px) {
    .hp-videos-bottom {
        max-width: 26rem;
        bottom: 14px;
        padding: 0 8px;
    }

    .hp-videos-bottom .nav__list {
        min-height: 60px;
    }
}

/* keep the video text/tags above the floating nav */
.overlay_container__DOCw_ {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
}

/* compact, solid filter pill */
.header .header__topbar {
    min-height: 44px !important;
    padding: 4px 8px !important;
}

.filter-btn {
    height: 36px;
    padding: 0 14px !important;
    background: rgba(var(--hp-color-canvas-rgb), 0.62) !important;
    border: 1px solid var(--hp-color-border-strong) !important;
}
/* ---------- desktop: app-like centered feed column ---------- */
@media screen and (min-width: 768px) {
    .header .header__topbar {
        position: relative;
        isolation: isolate;
        max-width: 860px;
        margin: 10px auto 0;
        padding: 6px 12px;
        border-radius: 999px;
    }

    .header .header__topbar::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 999px;
        background: linear-gradient(180deg,
                rgba(var(--hp-color-overlay-top-rgb), 0.72) 0%,
                rgba(var(--hp-color-overlay-mid-rgb), 0.84) 60%,
                rgba(var(--hp-color-overlay-bottom-rgb), 0.92) 100%);
        -webkit-backdrop-filter: blur(28px) saturate(135%);
        backdrop-filter: blur(28px) saturate(135%);
        border: 1px solid var(--hp-color-border-on-glass);
        box-shadow: 0 18px 48px rgba(var(--hp-color-black-rgb), 0.42);
        pointer-events: none;
        z-index: -1;
    }

    .header .header__topbar > * {
        position: relative;
        z-index: 1;
    }

    .post_wrapper__4yQFk {
        width: 100%;
        max-width: 860px;
        margin: 0 auto;
    }

    .post_wrapper__4yQFk .overlay_container__DOCw_ {
        padding: 4.5rem 1.6rem 1.6rem !important;
    }

    /* the rail is positioned by the shared rule above (right 16px, clears the
       floating bottom nav), so no desktop-specific offset is needed here */

    .overlay_content__7piAd {
        font-size: 16px !important;
        max-width: 26rem;
    }
}
/* force the main mobile nav layout on desktop (desktop chrome rules target the same classes) */
.hp-videos-bottom .nav__list {
    display: grid !important;
}

.hp-videos-bottom .nav__link {
    height: auto !important;
    padding: 0 2px !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.hp-videos-bottom .nav__link img {
    display: block !important;
}

.hp-videos-bottom .nav__item--upload .nav__link::before {
    display: block !important;
}
/* video filter menu — match the main feed filter menu */
.simple-menu.fd-menu {
    min-width: 200px;
    padding: 8px !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg,
            rgba(var(--hp-color-overlay-top-rgb), 0.78) 0%,
            rgba(var(--hp-color-overlay-mid-rgb), 0.88) 60%,
            rgba(var(--hp-color-overlay-bottom-rgb), 0.94) 100%) !important;
    border: 1px solid var(--hp-color-border-on-glass) !important;
    -webkit-backdrop-filter: blur(28px) saturate(135%);
    backdrop-filter: blur(28px) saturate(135%);
    box-shadow: 0 18px 48px rgba(var(--hp-color-black-rgb), 0.45) !important;
}

.simple-menu.fd-menu .fd-menu__head {
    list-style: none;
    padding: 4px 10px 9px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(var(--hp-color-white-rgb), 0.08);
    color: var(--hp-color-accent-soft);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.simple-menu.fd-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px !important;
    border-radius: 9px !important;
    color: rgba(var(--hp-color-white-rgb), 0.72) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    background: rgba(var(--hp-color-white-rgb), 0.035) !important;
    border: 1px solid rgba(var(--hp-color-white-rgb), 0.06) !important;
    margin-bottom: 6px;
}

.simple-menu.fd-menu li:last-child .dropdown-item {
    margin-bottom: 0;
}

.simple-menu.fd-menu .dropdown-item::before {
    content: "";
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(var(--hp-color-accent-soft-rgb), 0.65);
}

.simple-menu.fd-menu .dropdown-item:hover,
.simple-menu.fd-menu .dropdown-item:focus {
    background: rgba(var(--hp-color-accent-rgb), 0.18) !important;
    border-color: rgba(var(--hp-color-accent-rgb), 0.4) !important;
    color: var(--hp-color-white) !important;
}

/* full-bleed video stage: fill the viewport, header + nav float above it */
html,
body {
    height: 100%;
    overflow: hidden !important;
}

.postlist_container__0vHo5 {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 1 !important;
}

.post_wrapper__4yQFk,
.post_image__bBnIl {
    height: 100vh !important;
    max-height: 100vh !important;
}

.display_video__UdZxy {
    height: 100vh !important;
    max-height: 100vh !important;
}

.header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1040 !important;
    background: transparent !important;
}

.hp-videos-bottom {
    z-index: 1050 !important;
}

/* keep overlay text above the floating nav on desktop too */
.post_wrapper__4yQFk .overlay_container__DOCw_ {
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
}
/* desktop: show the WHOLE video inside the centred column (contain, not crop) —
   the blurred .post_thumbnail backdrop fills the letterbox area */
@media screen and (min-width: 768px) {
    .post_wrapper__4yQFk .display_video__UdZxy {
        object-fit: contain !important;
    }

    .post_wrapper__4yQFk .post_thumbnail__932uO {
        opacity: 0.45;
    }
}
/* header on /videos/: only a centered Filter (no login/account actions) */
.header__actions {
    display: none !important;
}

.header .header__topbar {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: none !important;
    margin: 8px 0 0 !important;
    padding: 0 16px !important;
    min-height: 44px !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

.header .header__topbar::before {
    display: none !important;
}

.header .header__topbar .filter-btn {
    margin: 0 auto !important;
}

/* desktop: same floating mobile footer menu as mobile */
.hp-videos-bottom {
    max-width: 30rem !important;
    bottom: 0 !important;
    padding: 0 16px max(10px, env(safe-area-inset-bottom, 0px)) !important;
}

.hp-videos-bottom .nav__list {
    width: 100% !important;
    min-height: 64px !important;
    padding: 4px 8px !important;
    border-radius: 27px !important;
    background: linear-gradient(180deg,
            rgba(var(--hp-color-overlay-top-rgb), 0.66) 0%,
            rgba(var(--hp-color-overlay-mid-rgb), 0.76) 60%,
            rgba(var(--hp-color-overlay-bottom-rgb), 0.84) 100%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(135%) !important;
    backdrop-filter: blur(28px) saturate(135%) !important;
    border: 1px solid var(--hp-color-border-on-glass) !important;
    box-shadow: 0 18px 48px rgba(var(--hp-color-black-rgb), 0.42) !important;
}

.hp-videos-bottom .nav__link {
    height: 56px !important;
    min-height: 56px !important;
    max-width: 4.5rem !important;
    gap: 2px !important;
}

.hp-videos-bottom .nav__link img {
    width: 24px !important;
    height: 24px !important;
    padding: 4px 0 !important;
}

.hp-videos-bottom .nav__name {
    font-size: 10px !important;
}

@media screen and (min-width: 768px) {
    .hp-videos-bottom {
        max-width: 30rem !important;
        bottom: 0 !important;
        padding: 0 16px max(10px, env(safe-area-inset-bottom, 0px)) !important;
    }

    .hp-videos-bottom .nav__list {
        min-height: 64px !important;
    }
}
/* transparent nav stage — the glass pill is the only surface (no dark rectangle) */
.hp-videos-bottom {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

@media screen and (min-width: 768px) {
    .hp-videos-bottom::before {
        display: none !important;
    }
}
/* mute/no-audio: the hidden 0x0 volume icon must stay hidden */
.interaction_icon__hcYZ3 img[height="0"],
.interaction_icon__hcYZ3 img[width="0"] {
    display: none !important;
}

/* upload FAB icon: same as the main footer menu (18px, centred in the 52px circle) */
.hp-videos-bottom .nav__item--upload .nav__link img {
    position: absolute !important;
    top: -3px !important;
    left: calc(50% - 9px) !important;
    width: 18px !important;
    height: 18px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* keep the generic 24px icon rule away from the FAB slot */
.hp-videos-bottom .nav__item:not(.nav__item--upload) .nav__link img {
    width: 24px !important;
    height: 24px !important;
    padding: 4px 0 !important;
}
/* hidden 0x0 audio icon (markup uses 0px) */
.interaction_icon__hcYZ3 img[height="0px"],
.interaction_icon__hcYZ3 img[width="0px"] {
    display: none !important;
}
/* videos filter menu: width under the button + readable dark hover */
.simple-menu.fd-menu {
    min-width: 200px !important;
    margin-top: 0 !important;
}

.filter-btn:hover,
.filter-btn:focus {
    background: rgba(var(--hp-color-surface-rgb), 0.82) !important;
    border-color: rgba(var(--hp-color-white-rgb), 0.24) !important;
    color: var(--hp-color-white) !important;
}
/* filter pill: dark glass so it never washes out over bright video */
.filter-btn {
    background: linear-gradient(180deg, rgba(var(--hp-color-surface-rgb), 0.78) 0%, rgba(var(--hp-color-canvas-rgb), 0.88) 100%) !important;
    border-color: rgba(var(--hp-color-white-rgb), 0.16) !important;
}

.filter-btn:hover,
.filter-btn:focus {
    background: linear-gradient(180deg, rgba(var(--hp-color-overlay-strong-rgb), 0.88) 0%, rgba(var(--hp-color-overlay-bottom-rgb), 0.94) 100%) !important;
    border-color: rgba(var(--hp-color-white-rgb), 0.24) !important;
}
/* compact dropdown for the videos filter */
.simple-menu.fd-menu {
    min-width: 168px !important;
    padding: 6px !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg,
            rgba(var(--hp-color-overlay-strong-rgb), 0.96) 0%,
            rgba(var(--hp-color-overlay-soft-rgb), 0.98) 100%) !important;
    border: 1px solid var(--hp-color-border-on-glass) !important;
    box-shadow: 0 14px 34px rgba(var(--hp-color-black-rgb), 0.45) !important;
}

.simple-menu.fd-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 8px 10px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: transparent !important;
    color: rgba(var(--hp-color-white-rgb), 0.78) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.simple-menu.fd-menu .dropdown-item::before {
    content: none !important;
}

.simple-menu.fd-menu .dropdown-item:hover,
.simple-menu.fd-menu .dropdown-item:focus {
    background: rgba(var(--hp-color-white-rgb), 0.08) !important;
    border: 0 !important;
    color: var(--hp-color-white) !important;
}

.simple-menu.fd-menu li + li {
    margin-top: 0;
}
/* shadcn-style dropdown for the videos filter */
.simple-menu.fd-menu {
    min-width: 0 !important;
    width: max-content !important;
    max-width: calc(100vw - 24px) !important;
    padding: 4px !important;
    border-radius: 8px !important;
    background: var(--hp-color-surface-2) !important;
    border: 1px solid var(--hp-color-border) !important;
    box-shadow: 0 10px 30px rgba(var(--hp-color-black-rgb), 0.5) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.simple-menu.fd-menu .dropdown-item {
    display: flex;
    align-items: center;
    height: 32px;
    padding: 0 8px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: transparent !important;
    color: rgba(var(--hp-color-white-rgb), 0.78) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    white-space: nowrap;
}

.simple-menu.fd-menu .dropdown-item:hover,
.simple-menu.fd-menu .dropdown-item:focus {
    background: rgba(var(--hp-color-white-rgb), 0.06) !important;
    color: var(--hp-color-white) !important;
}
/* center the dropdown labels in the trigger-width menu */
.simple-menu.fd-menu .dropdown-item {
    justify-content: center !important;
    text-align: center !important;
    padding: 0 4px !important;
}
/* brand glass styling for the videos dropdown (keeps trigger width + centred labels) */
.simple-menu.fd-menu {
    padding: 5px !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg,
            rgba(var(--hp-color-overlay-top-rgb), 0.78) 0%,
            rgba(var(--hp-color-overlay-mid-rgb), 0.88) 60%,
            rgba(var(--hp-color-overlay-bottom-rgb), 0.94) 100%) !important;
    border: 1px solid var(--hp-color-border-on-glass) !important;
    -webkit-backdrop-filter: blur(28px) saturate(135%) !important;
    backdrop-filter: blur(28px) saturate(135%) !important;
    box-shadow:
        0 18px 48px rgba(var(--hp-color-black-rgb), 0.45),
        inset 0 1px 0 rgba(var(--hp-color-white-rgb), 0.06) !important;
}

.simple-menu.fd-menu .dropdown-item {
    height: 34px !important;
    border-radius: 9px !important;
    color: rgba(var(--hp-color-white-rgb), 0.72) !important;
    font-weight: 500 !important;
}

.simple-menu.fd-menu .dropdown-item:hover,
.simple-menu.fd-menu .dropdown-item:focus {
    background: linear-gradient(180deg,
            rgba(var(--hp-color-accent-rgb), 0.26) 0%,
            rgba(var(--hp-color-accent-mid-rgb), 0.16) 100%) !important;
    color: var(--hp-color-white) !important;
    box-shadow: inset 0 1px 0 var(--hp-color-border-on-glass);
}
/* filter button glass — matches the nav/modal design */
.filter-btn {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 16px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg,
            rgba(var(--hp-color-overlay-top-rgb), 0.66) 0%,
            rgba(var(--hp-color-overlay-mid-rgb), 0.76) 60%,
            rgba(var(--hp-color-overlay-bottom-rgb), 0.84) 100%) !important;
    border: 1px solid var(--hp-color-border-on-glass) !important;
    -webkit-backdrop-filter: blur(28px) saturate(135%) !important;
    backdrop-filter: blur(28px) saturate(135%) !important;
    box-shadow:
        inset 0 1px 0 rgba(var(--hp-color-white-rgb), 0.08),
        0 8px 20px rgba(var(--hp-color-black-rgb), 0.25) !important;
    color: var(--hp-color-white) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.filter-btn:hover,
.filter-btn:focus {
    background: linear-gradient(180deg,
            rgba(var(--hp-color-overlay-hover-rgb), 0.80) 0%,
            rgba(var(--hp-color-overlay-strong-rgb), 0.88) 60%,
            rgba(var(--hp-color-overlay-bottom-rgb), 0.94) 100%) !important;
    border-color: rgba(var(--hp-color-white-rgb), 0.22) !important;
    box-shadow:
        inset 0 1px 0 var(--hp-color-border-on-glass),
        0 10px 26px rgba(var(--hp-color-black-rgb), 0.30) !important;
}

.filter-btn:focus-visible {
    outline: 2px solid rgba(var(--hp-color-accent-rgb), 0.6);
    outline-offset: 2px;
}

.filter-btn[aria-expanded="true"] {
    border-color: rgba(var(--hp-color-accent-rgb), 0.45) !important;
    box-shadow:
        inset 0 1px 0 var(--hp-color-border-on-glass),
        0 8px 24px rgba(var(--hp-color-accent-deep-rgb), 0.25) !important;
}

.filter-btn img {
    opacity: 0.85;
    filter: brightness(0) invert(1);
}


/* liked heart: inline hp_icon svg must fill like the old heart-like.svg did */
.like-btn.liked svg.hp-icon,
.like-btn.is-liked svg.hp-icon {
    fill: currentColor;
}
