
* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;

    overflow: hidden;

    background: #080b0a;
    color: #f5f7f4;

    font-family:
        Inter,
        system-ui,
        sans-serif;
}

body {
    overscroll-behavior: none;
}

/* Immersive Android WebView: avoid painting a pale page slab behind the
   native transparent status bar/toolbar. Media remains full-bleed beneath it. */
html, body {
    background: #080b0a;
}

@supports (height: 100dvh) {
    .feed, .item {
        height: 100dvh;
        min-height: 100dvh;
    }
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:root {
    --background: #080b0a;
    --text: #f5f7f4;
    --muted: #9ca7a0;
    --green: #25d366;
    --line: rgba(255,255,255,.14);
    --glass: rgba(10,15,12,.58);
}


/* ============================================================
   FEED
   ============================================================ */

.feed {
    position: relative;
    z-index: 1;

    width: 100%;
    height: 100dvh;

    overflow-y: auto;
    overflow-x: hidden;

    scroll-snap-type: y mandatory;

    overscroll-behavior-y: contain;

    -webkit-overflow-scrolling: touch;
}


/* ============================================================
   ITEM
   ============================================================ */

.item {
    position: relative;

    display: flex;
    align-items: flex-end;

    width: 100%;
    height: 100dvh;
    min-height: 100dvh;

    overflow: hidden;

    scroll-snap-align: start;
    scroll-snap-stop: always;

    background: #111613;
}


/* ============================================================
   INFINITE SCROLL SENTINEL
   ============================================================ */

.feed-sentinel {
    width: 100%;
    height: 40px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-sentinel.loading::after {
    content: '';

    width: 22px;
    height: 22px;

    border: 2px solid rgba(255, 255, 255, .25);
    border-top-color: rgba(255, 255, 255, .85);
    border-radius: 50%;

    animation: feed-sentinel-spin .7s linear infinite;
}

@keyframes feed-sentinel-spin {
    to {
        transform: rotate(360deg);
    }
}

.feed-sentinel.error {
    height: 56px;

    cursor: pointer;
    pointer-events: auto;
}

.feed-sentinel.error::after {
    content: 'Couldn\'t load more â€” tap to retry';

    padding: 8px 16px;

    border-radius: 999px;

    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);

    color: rgba(255, 255, 255, .85);
    font-size: 13px;
    font-weight: 500;
}

.media {
    position: absolute;
    inset: 0;

    z-index: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center center;

    background: #000;
}


/* YouTube click-to-play layer */
/* ============================================================
   YOUTUBE FACADE
   ============================================================
   The iframe ships with no src and stays hidden until the
   visitor taps play, so an untouched YouTube post costs only
   its thumbnail instead of ~1 MB of player.
   ============================================================ */

.youtube-facade-thumb {
    z-index: 1;
    object-fit: cover;
}

iframe.youtube-player[hidden] {
    display: none;
}

iframe.youtube-player {
    z-index: 2;
    border: 0;
}

/* Once mounted, the player covers the still frame. */
.item.youtube-mounted .youtube-facade-thumb {
    opacity: 0;
    pointer-events: none;
}

.youtube-play-overlay {
    position: absolute;
    inset: 0;
    z-index: 14;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: transparent;
}

.youtube-play-button {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 50%;
    background: rgba(0,0,0,.52);
    color: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,.28);
    backdrop-filter: blur(10px);
    transition: transform .18s ease, opacity .18s ease;
}

.youtube-play-button svg {
    width: 31px;
    height: 31px;
    margin-left: 3px;
}

.youtube-play-overlay.is-hidden {
    pointer-events: none;
    opacity: 0;
}

/* Playing but muted (autoplay-with-sound was blocked, or this is a
   scroll-triggered autoplay that always starts muted first â€” see
   startYouTubeAutoplay() in app.js). The overlay stays fully clickable
   and covers the whole item, same as the "not started" state, but shows
   a small hint instead of the big play button. Tapping anywhere unmutes;
   once unmuted the overlay switches to .is-hidden so YouTube's own
   native controls become reachable again. */
.youtube-play-overlay.is-muted-hint .youtube-play-button {
    display: none;
}

.youtube-play-overlay.is-muted-hint::after {
    content: '🔊  Tap to unmute';

    padding: 11px 19px;

    color: #fff;
    font: 600 16px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    background:
        linear-gradient(
            135deg,
            rgba(255,70,120,.22),
            rgba(100,80,255,.22)
        ),
        rgba(15,15,20,.62);

    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow:
        0 0 25px rgba(255,70,120,.12),
        0 0 35px rgba(80,80,255,.12),
        0 12px 40px rgba(0,0,0,.35);

    pointer-events: none;
    animation: gradient-hint 2.5s ease-in-out infinite;
}

.youtube-play-overlay:focus-visible .youtube-play-button,
.youtube-play-overlay:hover .youtube-play-button {
    transform: scale(1.06);
}

/* ============================================================
   VIDEO
   ============================================================ */

.video-play-indicator {
    position: absolute;

    top: 50%;
    left: 50%;

    z-index: 15;

    display: grid;
    place-items: center;

    width: 74px;
    height: 74px;

    margin:
        -37px
        0
        0
        -37px;

    border:
        1px solid
        rgba(255,255,255,.35);

    border-radius: 50%;

    background:
        rgba(0,0,0,.48);

    color: #fff;

    opacity: 0;

    transform: scale(.75);

    pointer-events: none;

    backdrop-filter: blur(10px);

    transition:
        opacity .18s ease,
        transform .18s ease;
}

.video-play-indicator.show {
    opacity: 1;
    transform: scale(1);
}

.video-play-indicator svg {
    width: 30px;
    height: 30px;
}


/* ============================================================
   VIDEO MUTED BADGE
   Shown when a video had to fall back to a silent autoplay
   because the browser blocked audible autoplay (no user
   interaction yet this session). Tapping the video unmutes it.
   ============================================================ */

.video-muted::after {
    content: '🔊  Tap to unmute';

    padding: 11px 19px;

    color: #fff;
    font: 600 16px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    background:
        linear-gradient(
            135deg,
            rgba(255,70,120,.22),
            rgba(100,80,255,.22)
        ),
        rgba(15,15,20,.62);

    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow:
        0 0 25px rgba(255,70,120,.12),
        0 0 35px rgba(80,80,255,.12),
        0 12px 40px rgba(0,0,0,.35);

    pointer-events: none;
    animation: gradient-hint 2.5s ease-in-out infinite;
}
@keyframes gradient-hint {
    0%,100% {
        opacity: .7;
        filter: saturate(100%);
    }

    50% {
        opacity: 1;
        filter: saturate(140%);
    }
}




/* ============================================================
   SCRIM
   ============================================================ */

.scrim {
    position: absolute;
    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,.08) 0%,
            rgba(0,0,0,0) 35%,
            rgba(0,0,0,.90) 100%
        );
}


/* ============================================================
   MOBILE QUOTE CARD
   Existing Like / View / Share / Download buttons untouched
   ============================================================ */

.quote-screen {
    width: 100%;
    height: 100dvh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 70px 18px 90px;

    overflow: hidden;
}


/* ============================================================
   COMPACT QUOTE CARD
   ============================================================ */

.item.quote {
    position: relative;

    width: min(88vw, 370px);
    min-height: 235px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 25px;

    background:
        radial-gradient(
            circle at 12% 10%,
            rgba(120, 255, 200, 0.11),
            transparent 38%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(100, 130, 255, 0.10),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            #1b211e,
            #0b0f0d
        );

    border: 1px solid rgba(255,255,255,0.12);

    box-shadow:
        0 25px 65px rgba(0,0,0,0.48),
        inset 0 1px 0 rgba(255,255,255,0.08);

    isolation: isolate;
}


/* ============================================================
   GLOWING OUTER FRAME
   ============================================================ */

.item.quote::before {
    content: "";

    position: absolute;
    inset: 0;

    border-radius: inherit;

    padding: 1px;

    background:
        linear-gradient(
            135deg,
            rgba(130,255,205,0.60),
            transparent 35%,
            transparent 65%,
            rgba(110,140,255,0.45)
        );

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);

    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;

    z-index: 3;
}


/* ============================================================
   INNER FRAME
   ============================================================ */

.item.quote::after {
    content: "";

    position: absolute;

    inset: 10px;

    border-radius: 17px;

    border: 1px solid rgba(255,255,255,0.055);

    pointer-events: none;

    z-index: 1;
}


/* ============================================================
   CONTENT
   ============================================================ */

.quote-content {
    position: relative;

    z-index: 5;

    width: 100%;
    min-height: 235px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 38px 30px;

    text-align: center;

    pointer-events: none;
}


/* ============================================================
   DECORATIVE QUOTE
   ============================================================ */

.quote-content::before {
    content: "\201C";

    position: absolute;

    top: 5px;
    left: 17px;

    font-family: Georgia, serif;

    font-size: 75px;

    color: rgba(130,255,205,0.08);

    line-height: 1;
}


/* ============================================================
   QUOTE TEXT
   ============================================================ */

.quote-text {
    width: 100%;
    max-width: 310px;

    margin: 0 auto;

    color: #f7faf8;

    font-family:
        Fraunces,
        Georgia,
        serif;

    font-size: clamp(22px, 6vw, 29px);

    font-weight: 600;

    line-height: 1.32;

    letter-spacing: -0.025em;

    text-align: center;

    text-wrap: balance;

    text-shadow:
        0 3px 18px rgba(0,0,0,0.55);
}


/* ============================================================
   AUTHOR — IF PRESENT
   ============================================================ */

.quote-author {
    margin-top: 14px;

    color: rgba(255,255,255,0.58);

    font-size: 11px;

    text-align: center;
}


/* ============================================================
   SMALL DECORATIVE LINE
   ============================================================ */

.quote-text::after {
    content: "";

    display: block;

    width: 36px;
    height: 2px;

    margin: 17px auto 0;

    border-radius: 10px;

    background: #82ffcd;

    box-shadow:
        0 0 12px rgba(130,255,205,0.5);
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767px) {

    .quote-screen {
        padding:
            65px
            16px
            85px;
    }

    .item.quote {
        width: min(88vw, 360px);

        min-height: 230px;

        border-radius: 23px;
    }

    .quote-content {
        min-height: 230px;

        padding: 35px 26px;
    }

    .quote-text {
        max-width: 300px;

        font-size: clamp(21px, 6.2vw, 27px);
    }
}


/* ============================================================
   SMALL PHONES
   ============================================================ */

@media (max-width: 380px) {

    .quote-screen {
        padding-left: 13px;
        padding-right: 13px;
    }

    .item.quote {
        width: 310px;

        min-height: 210px;
    }

    .quote-content {
        min-height: 210px;

        padding: 30px 22px;
    }

    .quote-text {
        max-width: 270px;

        font-size: 21px;
    }
}


/* ============================================================
   CAPTION
   ============================================================ */

.caption {
    position: relative;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 5;

    width: 100%;

    padding:
        0
        70px
        max(
            28px,
            calc(
                env(safe-area-inset-bottom) +
                20px
            )
        )
        12px;

    pointer-events: none;
}

.meta {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;

    padding: 4px 8px;

    border:
        1px solid
        var(--line);

    border-radius: 6px;

    background:
        rgba(255,255,255,.12);

    font-family:
        JetBrains Mono,
        monospace;

    font-size: 10px;

    letter-spacing: .05em;
}

.badge.video {
    border-color:
        rgba(37,211,102,.45);

    background:
        rgba(37,211,102,.16);

    color: #8cf3b4;
}

.post-title {
    margin:
        0
        0
        7px;

    max-width:
        min(
            600px,
            calc(100% - 10px)
        );

    color: #fff;

    font-size: 13px;
    font-weight: 500;

    line-height: 1.35;

    text-shadow:
        0 2px 12px
        rgba(0,0,0,.55);
}

.category-name {
    color:
        rgba(255,255,255,.82);

    font-size: 13px;
    font-weight: 600;

    line-height: 1.4;
}

.subcategory-name {
    margin-top: 3px;

    color:
        rgba(255,255,255,.58);

    font-size: 11px;
    font-weight: 500;
}


/* ============================================================
   FRONT POST SCROLL HINT
   ============================================================ */

.post-scroll-hint {
    position: absolute;

    left: 50%;

    bottom:
        max(
            22px,
            calc(
                env(safe-area-inset-bottom) +
                14px
            )
        );

    z-index: 10;

    transform: translateX(-50%);

    color:
        rgba(255,255,255,.72);

    font-family:
        JetBrains Mono,
        monospace;

    font-size: 11px;
    font-weight: 500;

    letter-spacing: .04em;

    white-space: nowrap;

    text-shadow:
        0 2px 10px
        rgba(0,0,0,.65);

    pointer-events: none;

    animation:
        scrollHint 1.8s ease-in-out infinite;
}


/* ============================================================
   ACTIONS
   ============================================================ */

.actions {
    position: absolute;

    right: 50vw;

    bottom:
        max(
            105px,
            calc(
                env(safe-area-inset-bottom) +
                85px
            )
        );

    z-index: 20;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 18px;
}

.action {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 5px;
}

.action button {
    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    padding: 0;

    border: 0;


    background:
        transparent;

    color:
        #fff;

    cursor: pointer;

    backdrop-filter: blur(0px);

    transition:
        transform .15s ease,
        background .15s ease;
}

.action button:active {
    transform: scale(.91);
}

.action button:disabled {
    opacity: .7;
}

.action button svg {
    width: 21px;
    height: 21px;
}

.like-btn.liked {
    border-color: #ff3b30;
    background: #ff3b30;
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.like-btn.liked svg {
    fill: currentColor;
}

.view-button {
    cursor: default !important;
}

.view-button:hover {
    transform: none !important;
}

.view-count,
.like-count,
.download-count,
.share-count {
    color: #fff;

    font-family:
        JetBrains Mono,
        monospace;

    font-size: 10px;
    font-weight: 600;

    line-height: 1;
}

.action-label {
    color: var(--muted);

    font-family:
        JetBrains Mono,
        monospace;

    font-size: 9px;
}


/* ============================================================
   SHARE
   ============================================================ */

.share-menu {
    position: absolute;

    right: 58px;
    bottom: 0;

    z-index: 100;

    display: none;

    width: 190px;

    padding: 8px;

    border:
        1px solid
        rgba(255,255,255,.14);

    border-radius: 16px;

    background:
        rgba(10,15,12,.97);

    box-shadow:
        0 15px 45px
        rgba(0,0,0,.55);

    backdrop-filter: blur(20px);
}

.share-menu.open {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.share-menu a,
.share-menu button {
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 40px;

    padding: 9px 11px;

    border: 0;

    border-radius: 10px;

    background: transparent;

    color: #fff;

    font-size: 12px;
    font-weight: 600;

    text-align: left;
    text-decoration: none;

    cursor: pointer;
}

.share-menu a:hover,
.share-menu button:hover {
    background:
        rgba(255,255,255,.10);
}



/* ============================================================
   TOP NAV
   ============================================================ */

.bottom-nav {
    position: fixed;

    left: 0;
    right: 0;

    /* The Android native toolbar overlays the WebView. Keep the category
       controls directly below it, while the feed itself continues behind
       both layers for an immersive image/video view. */
    top: calc(24px + env(safe-area-inset-top));
    bottom: auto;

    z-index: 5000;

    display: flex;
    align-items: center;
    justify-content: space-around;

    width: 100%;

    height: 24px;

    padding: 2px 5px 3px;

    /* Transparent glass: the status image/video remains visible behind tabs. */
    background: rgba(5, 8, 7, .18);

    border-bottom: 1px solid rgba(255,255,255,.10);
    box-shadow: none;

    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.bottom-nav-item {
    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 2px;

    height: 41px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #7f8983;

    font-size: 9px;
    line-height: 1;
    font-weight: 600;

    cursor: pointer;
}

.bottom-nav-item svg {
    width: 15px;
    height: 15px;

    pointer-events: none;
}

.bottom-nav-item.active {
    color: #fff;
}

.bottom-nav-item.active svg {
    color: var(--green);
}

.bottom-nav-item:active {
    transform: scale(.90);
}


/* ============================================================
   CATEGORY PANEL
   ============================================================ */

.category-panel {
    position: fixed;

    left: 12px;
    right: 12px;

    top:
        calc(
            48px +
            env(safe-area-inset-top) +
            54px
        );

    z-index: 6000;

    display: none;

    padding: 16px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius: 20px;

    background:
        rgba(10,15,12,.96);

    box-shadow:
        0 20px 60px
        rgba(0,0,0,.55);

    backdrop-filter: blur(24px);
}

.category-panel.open {
    display: block;
}

.category-panel-title {
    margin:
        0
        0
        13px;

    color:
        rgba(255,255,255,.65);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;
}

.category-list {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.category-filter {
    padding:
        9px
        14px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius: 999px;

    background:
        rgba(255,255,255,.065);

    color:
        rgba(255,255,255,.88);

    font-size: 11px;
    font-weight: 600;

    cursor: pointer;
}

.category-filter.active {
    background: var(--green);

    border-color:
        var(--green);

    color: #06210f;
}


/* ============================================================
   SCROLL HINT â€” TIKTOK STYLE
   ============================================================ */

.scroll-next-hint {
    /* Full-width flex row => the pill is always dead-centre,
       regardless of animation transforms. */
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(44px + env(safe-area-inset-bottom, 0px));
    z-index: 5400;

    display: flex;
    justify-content: center;

    pointer-events: none;

    opacity: 1;
    transition: opacity .3s ease, transform .3s ease;
}

.scroll-next-pill {
    display: inline-flex;
    align-items: center;
    gap: 14px;

    padding: 10px 26px 10px 12px;

    color: #fff;
    font: 600 17px/1.2 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    letter-spacing: .2px;
    white-space: nowrap;

    background:
        linear-gradient(135deg, rgba(37,211,102,.22), rgba(13,148,78,.14)),
        rgba(8, 12, 10, .82);

    border: 1px solid rgba(37,211,102,.55);
    border-radius: 999px;

    box-shadow:
        0 14px 38px rgba(0,0,0,.45),
        0 0 28px rgba(37,211,102,.18),
        inset 0 1px 0 rgba(255,255,255,.08);

    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);

    animation: scrollHintFloat 2s ease-in-out infinite;
}

.scroll-next-icon {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 auto;

    width: 42px;
    height: 42px;

    color: #06210f;
    background: #25d366;
    border-radius: 50%;

    box-shadow: 0 0 0 0 rgba(37,211,102,.55);
    animation: scrollHintPulse 2s ease-out infinite;
}

.scroll-next-icon svg {
    width: 22px;
    height: 22px;
    animation: scrollHintArrow 1.2s ease-in-out infinite;
}

@keyframes scrollHintFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

@keyframes scrollHintArrow {
    0%, 100% { transform: translateY(2px);  opacity: .65; }
    50%      { transform: translateY(-3px); opacity: 1; }
}

@keyframes scrollHintPulse {
    0%   { box-shadow: 0 0 0 0   rgba(37,211,102,.55); }
    70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0   rgba(37,211,102,0); }
}

.scroll-next-hint.hidden {
    opacity: 0;
    transform: translateY(14px);
}

.scroll-next-hint.hidden .scroll-next-pill,
.scroll-next-hint.hidden .scroll-next-icon,
.scroll-next-hint.hidden .scroll-next-icon svg {
    animation: none;
}

@media (max-width: 768px) {
    .scroll-next-hint { bottom: calc(36px + env(safe-area-inset-bottom, 0px)); }
    .scroll-next-pill { font-size: 16px; padding: 9px 22px 9px 10px; gap: 12px; }
    .scroll-next-icon { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-next-pill,
    .scroll-next-icon,
    .scroll-next-icon svg {
        animation: none;
    }
}



/* ============================================================
   SEARCH
   ============================================================ */

.search-bar-wrap {
    position: fixed;

    left: 12px;
    right: 12px;

    top:
        calc(
            32px +
            env(safe-area-inset-top) +
            54px
        );

    z-index: 5500;

    pointer-events: none;
}




.search-bar-wrap .search-bar {
    display: none;
}

.search-bar-wrap.search-open .search-bar {
    display: flex;
}

.search-bar-wrap.search-open {
    pointer-events: auto;
}

.search-bar {
    display: flex;
    align-items: center;

    gap: 9px;

    width: 100%;

    min-height: 44px;

    padding:
        0
        10px
        0
        13px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius: 14px;

    background:
        rgba(10,15,12,.78);

    color:
        rgba(255,255,255,.72);

    box-shadow:
        0 12px 35px
        rgba(0,0,0,.28);

    backdrop-filter:
        blur(18px);
}

.search-bar svg {
    flex: 0 0 auto;

    width: 18px;
    height: 18px;
}

.search-submit {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    height: 30px;

    margin: 0;
    padding: 0 12px;

    border:
        1px solid
        rgba(255,255,255,.14);

    border-radius: 10px;

    background:
        rgba(255,255,255,.08);

    color:
        rgba(255,255,255,.85);

    font:
        600 11px
        Inter,
        system-ui,
        sans-serif;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background .15s ease,
        color .15s ease,
        transform .15s ease;
}

.search-submit:hover {
    background:
        rgba(255,255,255,.14);

    color: #fff;
}

.search-submit:active {
    transform: scale(.95);
}

.search-bar input {
    width: 100%;

    min-width: 0;

    height: 42px;

    padding: 0;

    border: 0;

    outline: 0;

    background: transparent;

    color: #fff;

    font:
        500 12px
        Inter,
        system-ui,
        sans-serif;
}

.search-bar input::placeholder {
    color:
        rgba(255,255,255,.48);
}

.search-clear {
    display: grid;
    place-items: center;

    flex: 0 0 auto;

    width: 28px;
    height: 28px;

    padding: 0;

    border:
        1px solid
        rgba(255,255,255,.10);

    border-radius: 50%;

    background:
        rgba(255,255,255,.07);

    color:
        rgba(255,255,255,.75);

    font-size: 18px;

    line-height: 1;

    cursor: pointer;
}

.search-clear[hidden] {
    display: none;
}

.search-bar:focus-within {
    border-color:
        rgba(37,211,102,.42);

    box-shadow:
        0 12px 35px
        rgba(0,0,0,.28),
        0 0 0 1px
        rgba(37,211,102,.08);
}

.search-close {
    display: grid;
    place-items: center;

    flex: 0 0 auto;

    width: 32px;
    height: 32px;

    padding: 0;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius: 50%;

    background:
        rgba(255,255,255,.07);

    color:
        rgba(255,255,255,.82);

    font-size: 20px;
    font-weight: 400;

    line-height: 1;

    cursor: pointer;

    transition:
        background .15s ease,
        transform .15s ease;
}

.search-close:hover {
    background:
        rgba(255,255,255,.14);
}

.search-close:active {
    transform: scale(.90);
}

/* ============================================================
   EMPTY
   ============================================================ */

.empty {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100dvh;

    padding: 30px;

    text-align: center;
}

.empty-box {
    max-width: 340px;
}

.empty-box h2 {
    margin:
        0
        0
        8px;
}

.empty-box p {
    margin:
        0
        0
        20px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.6;
}

.empty-box a {
    color: var(--green);

    font-weight: 700;

    text-decoration: none;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767px) {

    .search-bar-wrap {
        left: 10px;
        right: 10px;

        top:
            calc(
                48px +
                env(safe-area-inset-top) +
                54px
            );
    }

    .category-panel {
        left: 10px;
        right: 10px;

        top:
            calc(
                48px +
                env(safe-area-inset-top) +
                54px
            );

        padding: 14px;
    }

    .quote-content {
        padding:
            0
            78px
            max(
                150px,
                calc(
                    env(safe-area-inset-bottom) +
                    130px
                )
            )
            18px;
    }

    .quote-text {
        max-width: none;

        font-size: 18px;

        line-height: 1.18;

        overflow-wrap: anywhere;
    }

    .caption {
        position: absolute;

        left: 2px;
        right: 2px;
        bottom: 0;

        z-index: 5;

        padding:
            0
            70px
            max(
                24px,
                calc(
                    env(safe-area-inset-bottom) +
                    18px
                )
            )
            10px;
    }

    .post-title {
        width: 100%;
        max-width: none;

        font-size: 12px;

        line-height: 1.25;
    }

    .category-name {
        font-size: 12px;
    }

    .subcategory-name {
        font-size: 10px;
    }

    .actions {
        right: 9px;
    }

    .post-scroll-hint {
        bottom:
            max(
                90px,
                calc(
                    env(safe-area-inset-bottom) +
                    82px
                )
            );

        font-size: 10px;
    }
}


/* ============================================================
   DESKTOP
   ============================================================ */

@media (min-width: 768px) {

    .search-bar-wrap {
        left: 50%;
        right: auto;

        width: 600px;

        transform:
            translateX(-50%);
    }

    .bottom-nav {
        left: 50%;
        right: auto;

        width: 620px;

        transform:
            translateX(-50%);

        border-radius:
            0
            0
            20px
            20px;
    }

    .category-panel {
        left: 50%;
        right: auto;

        top:
            calc(
                24px +
                24px
            );

        width: 600px;

        transform:
            translateX(-50%);
    }

    .caption {
        padding-left: 62dvh;
    }

    .actions {
        right: 62dvh;
    }

    .post-scroll-hint {
        bottom: 24px;
    }
}


/* ============================================================
   SEARCH RESULT EMPTY
   ============================================================ */

.search-no-results {
    position: fixed;

    left: 50%;
    top: 50%;

    z-index: 7000;

    width: calc(100% - 40px);

    max-width: 360px;

    padding: 22px;

    transform:
        translate(-50%, -50%);

    border:
        1px solid
        rgba(255,255,255,.10);

    border-radius: 20px;

    background:
        rgba(10,15,12,.94);

    color: #fff;

    text-align: center;

    box-shadow:
        0 20px 70px
        rgba(0,0,0,.55);

    backdrop-filter:
        blur(20px);

    display: none;
}

.search-no-results.show {
    display: block;
}

.search-no-results strong {
    display: block;

    margin-bottom: 7px;

    font-size: 15px;
}

.search-no-results span {
    color:
        rgba(255,255,255,.55);

    font-size: 12px;
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}


/* ============================================================
   SCREEN-READER-ONLY
   Visually hidden but still present for assistive technology and
   crawlers: the page <h1>, the category <a> links and each item's
   permalink. (display:none would hide them from both.)
   ============================================================ */

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}


/* ============================================================
   PROGRESSIVE FEED ADDITIONS
   ============================================================ */

/* <picture> wraps the WebP <img>; it must not become a layout box,
   or the absolutely-positioned .media would lose its .item parent. */
.item picture {
    display: contents;
}

/* "You're all caught up" - shown at the true end of the feed
   instead of redirecting to Home. */
.feed-end {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;

    width: 100%;
    height: 100dvh;
    min-height: 100dvh;

    scroll-snap-align: start;

    background: #111613;
    color: rgba(255, 255, 255, .85);
    font: 500 16px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.feed-end[hidden] {
    display: none;
}

.feed-end p {
    margin: 0;
}

.feed-end-top {
    padding: 11px 22px;

    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;

    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;

    cursor: pointer;
}


/* ============================================================
   QUOTE CARDS ON DESKTOP / TABLET (>= 768px)
   ============================================================
   The desktop rules above offset .caption (padding-left: 62dvh) and
   .actions (right: 62dvh) to sit beside a full-width, centred 9:16
   image/video. A quote is only a 370px card, so those offsets pushed
   the caption and buttons outside the card and squeezed the quote
   text out of view: an empty card. Quote cards use the same in-card
   layout as the phone view instead.
   ============================================================ */
@media (min-width: 768px) {

    .item.quote .quote-content {
        padding: 0 78px max(150px, calc(env(safe-area-inset-bottom) + 130px)) 18px;
    }

    .item.quote .quote-text {
        max-width: none;
        font-size: 22px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .item.quote .caption {
        position: absolute;
        left: 2px;
        right: 2px;
        bottom: 0;
        width: auto;
        padding: 0 70px max(24px, calc(env(safe-area-inset-bottom) + 18px)) 10px;
    }

    .item.quote .actions {
        right: 9px;
    }
}


/* ============================================================
   QUOTE CARD WIDTH = MENU WIDTH
   ============================================================
   .bottom-nav is full width on phones and 620px (centred) from
   768px up. The quote card uses exactly the same widths.
   ============================================================ */
.item.quote {
    width: 100%;
    max-width: 100%;
}

@media (min-width: 768px) {

    .item.quote {
        width: 620px;
    }

    .item.quote .quote-text {
        font-size: 26px;
    }
}


/* ============================================================
   SEARCH IN THE MENU
   ============================================================
   The Search icon is a normal menu item (#searchToggle). Its bar
   opens directly UNDER the menu, at the menu's width (full width on
   phones, 620px centred from 768px up), with "Click to find" on
   the right.
   ============================================================ */

.bottom-nav-item.nav-search[aria-expanded="true"] {
    color: #fff;
}

.bottom-nav-item.nav-search[aria-expanded="true"] svg {
    color: var(--green);
}

.search-bar-wrap {
    left: 0;
    right: 0;
    top: calc(48px + env(safe-area-inset-top) + 54px);
    padding: 0 10px;
    box-sizing: border-box;
}

.search-bar {
    gap: 8px;
    padding: 0 8px;
}

.search-bar .search-submit {
    margin-left: auto;          /* always the right-most control */
}

@media (min-width: 768px) {

    .search-bar-wrap {
        left: 50%;
        right: auto;
        width: 620px;           /* = .bottom-nav width */
        padding: 0;
        transform: translateX(-50%);
    }
}

/* The bar has its own clear (Ã—) button; hide the browser's native one. */
.search-bar input[type="search"]::-webkit-search-cancel-button,
.search-bar input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}


/* ============================================================
   QUOTE CARD - MODERN, CENTRED ON ALL SIDES
   ============================================================
   top     : badge + category chip, centred under the menu
   centre  : glass quote mark, the quote, a gradient rule, the author
   bottom  : like / views / download / share as one centred glass pill
   Padding is the same above and below the text, so the quote sits
   in the true middle of the card.
   ============================================================ */

.item.quote .quote-content {
    position: absolute;
    inset: 0;
    z-index: 5;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: auto;
    min-height: 0;
    /* Equal left/right padding keeps the text centred, and is wide enough
       that a long line never runs under the action buttons on the right
       (48px button + 9px edge gap + breathing room). */
    padding: 130px 66px;
    box-sizing: border-box;

    text-align: center;
    pointer-events: none;
}

/* soft light behind the quote */
.item.quote .quote-content::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(88%, 480px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, .11) 0%,
            rgba(255, 255, 255, .035) 42%,
            transparent 70%
        );
    z-index: -1;
}

.item.quote .quote-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 0 24px;
    padding-top: 15px;
    box-sizing: border-box;

    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, .28),
        inset 0 1px 0 rgba(255, 255, 255, .2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);

    color: #9dffd8;
    font: 700 36px/1 Georgia, "Times New Roman", serif;
}

.item.quote .quote-text {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;

    color: #fff;
    font-family: Fraunces, Georgia, "Times New Roman", serif;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.28;
    text-align: center;
    text-wrap: balance;
    overflow-wrap: anywhere;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .45);
}

/* the old underline drawn by ::after is replaced by .quote-rule */
.item.quote .quote-text::after {
    display: none;
}

.item.quote .quote-text.is-sm { font-size: clamp(28px, 8vw, 38px); }
.item.quote .quote-text.is-md { font-size: clamp(25px, 7vw, 33px); }
.item.quote .quote-text.is-lg { font-size: clamp(21px, 5.8vw, 27px); line-height: 1.34; }
.item.quote .quote-text.is-xl { font-size: clamp(18px, 4.8vw, 22px); line-height: 1.4; }

.item.quote .quote-rule {
    display: block;
    width: 48px;
    height: 3px;
    margin: 28px auto 0;
    border-radius: 99px;
    background: linear-gradient(90deg, #82ffcd, #7aa2ff);
    box-shadow: 0 0 16px rgba(130, 255, 205, .55);
}

.item.quote .quote-author {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .74);
    font: 600 12px/1.4 Inter, system-ui, sans-serif;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-align: center;
}

.item.quote .quote-author::before {
    content: "\2014\00a0";
    color: #82ffcd;
}

/* ---- top: badge + category, centred under the menu ---------- */

.item.quote .caption {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(40px + env(safe-area-inset-top) + 24px);
    bottom: auto;
    z-index: 6;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: auto;
    padding: 0 20px;
}

.item.quote .caption .meta {
    margin: 0;
}

.item.quote .caption .badge {
    padding: 6px 10px;
    border-radius: 999px;
    letter-spacing: .12em;
}

.item.quote .caption .category-name {
    margin: 0;
    padding: 6px 13px;

    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);

    color: #fff;
    font: 600 12px/1 Inter, system-ui, sans-serif;
    letter-spacing: .02em;
}

/* ---- actions: right side, vertical, transparent -------------- */

.item.quote .actions {
    position: absolute;
    left: auto;
    right: 9px;
    top: auto;
    bottom: max(105px, calc(env(safe-area-inset-bottom) + 85px));
    transform: none;
    z-index: 20;

    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 0;

    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.item.quote .action {
    min-width: 0;
    gap: 5px;
}

.item.quote .action button {
    width: 48px;
    height: 48px;
    border-radius: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.item.quote .action button:active {
    background: transparent;
}

/* ============================================================
   COPY-QUOTE BUTTON  (replaces Download on quote cards)
   ============================================================ */

.copy-label {
    color: #fff;
    font-family: JetBrains Mono, monospace;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.copy-quote svg {
    width: 24px;
    height: 24px;
}

.copy-quote .copied-icon {
    display: none;
}

.copy-quote.is-copied .copy-icon {
    display: none;
}

.copy-quote.is-copied .copied-icon {
    display: block;
    color: #82ffcd;
}

.copy-quote.is-copied + .copy-label,
.copy-action:has(.is-copied) .copy-label {
    color: #82ffcd;
}

/* Android WebView fullscreen feed: prevent the document/header background from obscuring media. */
html, body { min-height: 100%; }
#feed.feed { position: fixed; inset: 0; width: 100%; height: 100dvh; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior-y: contain; }
#feed .item { min-height: 100%; min-height: 100dvh; }

/* Fullscreen Android/WebView feed overlay refinement (v3). */
@media (max-width: 768px) {
  .app-header .brand, .app-header .site-title, .app-header .logo-text,
  header .site-title, header .brand-title, .navbar-brand .brand-text { display: none !important; }
  .app-header, .site-header, header { background: transparent !important; }
}


/* Mobile refinement: place category navigation in the empty header space
   between the hamburger and overflow menu, instead of a separate row. */
@media (max-width: 768px) {
  .bottom-nav {
    top: calc(env(safe-area-inset-top, 0px) + 62px) !important;
    bottom: auto !important;
    height: 66px !important;
    padding: 2px 38px 3px !important;
    background: rgba(5, 8, 7, .12) !important;
    border-bottom: 0 !important;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 5001 !important;
  }
  .bottom-nav-item {
    height: 60px !important;
    gap: 3px !important;
    font-size: 10px !important;
    color: rgba(255,255,255,.78);
    text-shadow: 0 1px 3px rgba(0,0,0,.55);
  }
  .bottom-nav-item svg {
    width: 17px !important;
    height: 17px !important;
  }
}


/* FIX: place category tabs in the header gap between hamburger and overflow menu.
   Keep this in BOTH app.css and app.min.css because layout.php serves minified CSS first. */
@media (max-width: 768px) {
  .bottom-nav {
    position: fixed !important;
    top: 24px !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    height: 64px !important;
    padding: 0 38px !important;
    box-sizing: border-box !important;
    background: rgba(5, 8, 7, .12) !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 5001 !important;
  }
  .bottom-nav-item {
    min-width: 0 !important;
    height: 62px !important;
    gap: 3px !important;
    font-size: 10px !important;
    color: rgba(255,255,255,.82) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.55);
  }
  .bottom-nav-item svg {
    width: 17px !important;
    height: 17px !important;
  }
}


/* CATEGORY / SEARCH RESULTS GRID */
.status-results-grid {
    position: fixed;
    inset: 0;
    z-index: 8000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #080b0a;
    color: #f5f7f4;
    padding-top: calc(24px + env(safe-area-inset-top));
}
.status-results-grid[hidden] { display: none !important; }
.results-grid-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    background: rgba(8,11,10,.98);
}
.results-grid-heading { display:flex; flex-direction:column; gap:3px; min-width:0; }
.results-grid-heading strong { font-size:16px; font-weight:700; }
.results-grid-heading span { font-size:11px; color:#9ca7a0; }
.results-grid-close {
    flex:0 0 40px; width:40px; height:40px; border:1px solid rgba(255,255,255,.18);
    border-radius:50%; background:#151b17; color:#fff; font-size:28px; line-height:1; cursor:pointer;
}
.results-grid-filters { flex:0 0 auto; display:flex; gap:8px; overflow-x:auto; padding:12px 16px; border-bottom:1px solid rgba(255,255,255,.10); background:#0b100d; scrollbar-width:none; }
.results-grid-filters::-webkit-scrollbar { display:none; }
.results-filter { flex:0 0 auto; border:1px solid rgba(255,255,255,.16); border-radius:999px; padding:9px 16px; background:#141b16; color:#d5ddd7; font:600 12px/1.2 inherit; cursor:pointer; transition:background .15s,border-color .15s,color .15s; }
.results-filter.active { background:#e8f5ec; border-color:#e8f5ec; color:#102016; }
.results-filter:focus-visible, .result-grid-card:focus-visible { outline:2px solid #9fe5b6; outline-offset:2px; }
.result-grid-card-details { display:flex; flex-direction:column; gap:5px; padding:9px 10px 11px; }
.result-grid-title { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; font-size:13px; line-height:1.35; font-weight:650; color:#f5f7f4; }
.result-grid-card .result-grid-meta { padding:0; line-height:1.4; letter-spacing:.04em; overflow-wrap:anywhere; }
.results-grid-body {
    flex:1 1 auto; min-height:0; overflow:auto; overscroll-behavior:contain;
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-content:start;
    gap:10px; padding:12px; padding-bottom:calc(20px + env(safe-area-inset-bottom));
}
.result-grid-card {
    min-width:0; overflow:hidden; padding:0; border:1px solid rgba(255,255,255,.12);
    border-radius:12px; background:#111613; color:#f5f7f4; text-align:left; cursor:pointer;
}
.result-grid-preview {
    position:relative; display:flex; align-items:center; justify-content:center; overflow:hidden;
    width:100%; aspect-ratio:3/4; background:#171e19;
}
.result-grid-preview img { display:block; width:100%; height:100%; object-fit:cover; }
.result-grid-preview.quote-preview { padding:14px; background:linear-gradient(145deg,#183b2b,#101714); }
.result-grid-preview.quote-preview span {
    display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:7; overflow:hidden;
    white-space:pre-wrap; font-family:Fraunces,Georgia,serif; font-size:clamp(12px,3.5vw,18px); line-height:1.35;
}
.result-grid-preview.empty-preview { color:#c8d0ca; font-size:13px; }
.result-grid-play { position:absolute; right:9px; bottom:9px; display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:rgba(0,0,0,.7); color:#fff; font-size:12px; }
.result-grid-meta { display:block; padding:8px 9px; color:#b5c1b9; font-size:10px; font-weight:700; letter-spacing:.08em; }
.results-grid-empty { grid-column:1/-1; padding:36px 12px; color:#b5c1b9; text-align:center; }
body.results-grid-open { overflow:hidden; }
@media (min-width:640px) { .results-grid-body { grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; padding:18px; } .result-grid-preview { aspect-ratio:4/5; } }
@media (min-width:1000px) { .results-grid-body { grid-template-columns:repeat(4,minmax(0,1fr)); max-width:1440px; width:100%; margin:0 auto; } }

/* AdSense interstitial is a real feed item (not a fixed overlay), so the
   feed's scroll-snap and previous/next gestures keep working after the ad. */
.feed-adsense-item {
    position:relative !important; inset:auto !important; z-index:2 !important;
    display:flex; flex:0 0 100%; flex-direction:column; align-items:center; justify-content:center;
    width:100% !important; height:100dvh !important; min-height:100dvh !important;
    margin:0 !important; padding:calc(18px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom)) !important;
    box-sizing:border-box;
    /* No inner scrolling and no scroll trapping: the ad screen must hand every
       swipe / wheel / trackpad gesture to the feed, in both directions. */
    overflow:hidden; overscroll-behavior:auto; touch-action:pan-y;
    scroll-snap-align:start; scroll-snap-stop:normal;
    background:#080b0a !important; color:#f5f7f4; isolation:isolate;
}
.feed-adsense-label { flex:0 0 auto; margin:0 0 12px; color:#aab5ad; font-size:12px; text-align:center; letter-spacing:.06em; }
.feed-adsense-content { display:flex; align-items:center; justify-content:center; width:100%; max-width:728px; min-height:250px; max-height:70dvh; overflow:hidden; touch-action:pan-y; }
.feed-adsense-content .adsbygoogle { display:block; width:100%; max-width:728px; min-height:250px; }
.feed-adsense-content .adsbygoogle iframe { touch-action:pan-y; }
/* Escape hatch: always-visible way to move on, kept well away from the ad itself. */
.feed-adsense-next { flex:0 0 auto; margin-top:48px; padding:10px 22px; border:1px solid rgba(255,255,255,.25); border-radius:999px; background:transparent; color:#cfd8d2; font:600 13px/1 inherit; letter-spacing:.04em; cursor:pointer; }
.feed-adsense-next:active { background:rgba(255,255,255,.1); }
/* Keep the feed scrollable while an ad is active; hide post visuals and chrome only. */
body.browser-adsense-active .feed .item:not(.feed-adsense-item) { visibility:hidden !important; }
body.browser-adsense-active .feed .feed-adsense-item { visibility:visible !important; }
body.browser-adsense-active .search-bar-wrap,
body.browser-adsense-active .status-results-grid { visibility:hidden !important; }
@media (min-width:700px) { .feed-adsense-content { max-height:70dvh; } }

/* Standard browser: there is no native toolbar above the page, so the menu
   sits at the very top instead of leaving a 48px gap. (Android app unchanged.) */
html.is-browser .bottom-nav { top: env(safe-area-inset-top, 0px) !important; }
html.is-browser .category-panel { top: calc(env(safe-area-inset-top, 0px) + 56px) !important; }
html.is-browser .status-results-grid { padding-top: env(safe-area-inset-top, 0px); }

/* Category grid pagination */
.results-grid-footer { flex:0 0 auto; display:flex; justify-content:center; padding:10px 16px calc(12px + env(safe-area-inset-bottom)); border-top:1px solid rgba(255,255,255,.10); background:#080b0a; }
.results-grid-load-more { min-width:180px; border:1px solid rgba(159,229,182,.45); border-radius:999px; padding:11px 20px; background:#14251a; color:#e8f5ec; font:600 13px/1.2 inherit; cursor:pointer; }
.results-grid-load-more:disabled { opacity:.65; cursor:wait; }
.results-grid-load-more[hidden] { display:none !important; }


/* Category filter entry in the primary navigation */
.bottom-nav-item[data-filter="categories"] { min-width: 58px; }
.category-panel { max-height: min(70vh, 620px); overflow-y: auto; overscroll-behavior: contain; }
.category-list { display: flex; flex-wrap: wrap; gap: 8px; }
.category-filter { cursor: pointer; }
.bottom-nav-item[data-filter="categories"].active { color: #fff; }
@media (max-width: 520px) {
  .bottom-nav { gap: 2px; }
  .bottom-nav-item[data-filter="categories"] span { font-size: 9px; }
}

/* Grid pagination stability: prevent newly appended cards from collapsing */
.status-results-grid .results-grid-body {
    grid-auto-rows: max-content !important;
    align-items: start !important;
    align-content: start !important;
}
.status-results-grid .result-grid-card {
    display: flex !important;
    flex-direction: column !important;
    align-self: start !important;
    height: auto !important;
    min-height: 0 !important;
    flex-shrink: 0 !important;
}
.status-results-grid .result-grid-preview {
    display: flex !important;
    position: relative !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 180px !important;
    aspect-ratio: 3 / 4 !important;
}
.status-results-grid .result-grid-preview img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.status-results-grid .result-grid-card-details { flex: 0 0 auto !important; width: 100%; }
@media (min-width: 640px) {
    .status-results-grid .result-grid-preview { min-height: 220px !important; aspect-ratio: 4 / 5 !important; }
}
@media (min-width: 1000px) {
    .status-results-grid .result-grid-preview { min-height: 240px !important; }
}

/* Professional AdSense feed interstitial — visual polish only; ad markup remains Google-controlled. */
.feed-adsense-item {
    background:
      radial-gradient(ellipse at 50% 38%, rgba(36, 83, 58, .22) 0%, rgba(8, 11, 10, 0) 52%),
      linear-gradient(180deg, #0b100d 0%, #080b0a 58%, #060807 100%) !important;
    padding: calc(24px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom)) !important;
}
.feed-adsense-label {
    position:absolute;
    top:calc(76px + env(safe-area-inset-top));
    left:50%;
    transform:translateX(-50%);
    margin:0;
    padding:7px 12px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:999px;
    background:rgba(255,255,255,.035);
    color:#b7c5bc;
    font-size:11px;
    font-weight:600;
    line-height:1;
    letter-spacing:.12em;
    text-transform:uppercase;
    white-space:nowrap;
}
.feed-adsense-content {
    position:relative;
    width:min(100%, 728px);
    min-height:250px;
    max-height:70dvh;
    border:1px solid rgba(255,255,255,.09);
    border-radius:18px;
    background:rgba(255,255,255,.018);
    box-shadow:0 18px 60px rgba(0,0,0,.16);
}
.feed-adsense-content .adsbygoogle { border-radius:16px; }
.feed-adsense-next {
    margin-top:clamp(28px, 7vh, 58px);
    min-width:116px;
    min-height:44px;
    padding:12px 24px;
    border:1px solid rgba(151,218,174,.42);
    border-radius:999px;
    background:linear-gradient(180deg, #183323 0%, #102419 100%);
    color:#f0fff4;
    font:600 14px/1.1 inherit;
    letter-spacing:.01em;
    box-shadow:0 8px 24px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.06);
    transition:background .18s ease, border-color .18s ease, transform .18s ease;
}
.feed-adsense-next:hover { background:linear-gradient(180deg, #21452f 0%, #163321 100%); border-color:rgba(151,218,174,.65); }
.feed-adsense-next:active { transform:scale(.98); }
.feed-adsense-next:focus-visible { outline:2px solid #a8e7ba; outline-offset:4px; }
@media (max-width:520px) {
    .feed-adsense-item { padding-left:14px !important; padding-right:14px !important; }
    .feed-adsense-content { border-radius:14px; }
    .feed-adsense-next { margin-top:32px; }
}
@media (prefers-reduced-motion:reduce) { .feed-adsense-next { transition:none; } }

/* AdSense interstitial: keep the real navigation (.bottom-nav) visible at the top. */
body.browser-adsense-active .bottom-nav {
    visibility: visible !important;
    display: flex !important;
    position: fixed !important;
    top: env(safe-area-inset-top, 0px) !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10020 !important;
}
body.browser-adsense-active .feed-adsense-item {
    padding-top: calc(62px + env(safe-area-inset-top, 0px)) !important;
}
body.browser-adsense-active .feed-adsense-label {
    position: static !important;
    transform: none !important;
    align-self: center !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 0 12px !important;
}
body.browser-adsense-active .feed-adsense-content { margin-inline: auto !important; }



/* ============================================================
   PROFESSIONAL CATEGORY DRAWER
   ============================================================ */
.category-panel {
    left: max(14px, env(safe-area-inset-left));
    right: max(14px, env(safe-area-inset-right));
    top: calc(54px + env(safe-area-inset-top));
    max-height: min(72dvh, 620px);
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 22px;
    background:
        radial-gradient(ellipse at top left, rgba(37,211,102,.13), transparent 48%),
        rgba(9,14,12,.97);
    box-shadow: 0 24px 80px rgba(0,0,0,.62), 0 0 0 1px rgba(255,255,255,.025) inset;
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
}
.category-panel.open {
    display: flex;
    flex-direction: column;
    animation: categoryDrawerIn .18s ease-out;
}
@keyframes categoryDrawerIn {
    from { opacity: 0; transform: translateY(-7px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.category-panel-title {
    flex: 0 0 auto;
    margin: 0;
    padding: 17px 18px 14px;
    color: #f7fbf8;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .015em;
    text-transform: none;
    border-bottom: 1px solid rgba(255,255,255,.09);
}
.category-panel-title::after {
    content: "Browse status categories";
    display: block;
    margin-top: 4px;
    color: #8e9b93;
    font-size: 11px;
    font-weight: 450;
    letter-spacing: 0;
}
.category-list {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 8px;
    padding: 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.2) transparent;
}
.category-filter {
    position: relative;
    min-width: 0;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 13px;
    background: rgba(255,255,255,.045);
    color: #e7eee9;
    text-align: left;
    font: 600 12px/1.35 Inter, system-ui, sans-serif;
    overflow-wrap: anywhere;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.category-filter::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #66766c;
    box-shadow: 0 0 0 3px rgba(255,255,255,.035);
}
.category-filter:hover {
    border-color: rgba(37,211,102,.4);
    background: rgba(37,211,102,.09);
}
.category-filter:active { transform: scale(.985); }
.category-filter.active {
    border-color: rgba(37,211,102,.6);
    background: linear-gradient(135deg, rgba(37,211,102,.2), rgba(37,211,102,.08));
    color: #f5fff8;
    box-shadow: 0 0 0 1px rgba(37,211,102,.07) inset;
}
.category-filter.active::before {
    background: #25d366;
    box-shadow: 0 0 0 3px rgba(37,211,102,.13), 0 0 12px rgba(37,211,102,.35);
}
@media (max-width: 380px) {
    .category-list { grid-template-columns: 1fr; }
    .category-panel { max-height: 76dvh; }
}
@media (prefers-reduced-motion: reduce) {
    .category-panel.open { animation: none; }
    .category-filter { transition: none; }
}


/* FINAL PLATFORM-SPECIFIC NAVIGATION FIX
   Native Android WebView: transparent top navigation without Categories.
   Normal browsers: keep the independent floating navigation at the bottom. */
html.is-native .bottom-nav {
    position: fixed !important;
    top: calc(env(safe-area-inset-top, 0px) + 12px) !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 54px !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    z-index: 5001 !important;
}
html.is-native .bottom-nav-item {
    height: 50px !important;
    background: transparent !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.65) !important;
}
html.is-native .bottom-nav-item[data-filter="categories"] { display: none !important; }
html.is-native .category-panel { display: none !important; }
html.is-native .bottom-nav-item.nav-search { background: transparent !important; }

html.is-browser .bottom-nav {
    position: fixed !important;
    top: auto !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    height: 64px !important;
    padding: 5px 8px !important;
    box-sizing: border-box !important;
    background: rgba(12, 16, 14, .88) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 22px !important;
    box-shadow: 0 10px 35px rgba(0,0,0,.35) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    backdrop-filter: blur(18px) !important;
    z-index: 5001 !important;
}
html.is-browser .bottom-nav-item { height: 52px !important; }
@media (min-width: 769px) {
    html.is-browser .bottom-nav {
        left: 50% !important;
        right: auto !important;
        width: 620px !important;
        transform: translateX(-50%) !important;
        bottom: 18px !important;
    }
}



/* PROFESSIONAL MOBILE HEADER ALIGNMENT
   Keep the hamburger on the left and center the navigation within the
   remaining header width, so the first tab no longer sits underneath it. */
@media (max-width: 768px) {
  html.is-native .bottom-nav {
    left: 68px !important;
    right: 10px !important;
    width: auto !important;
    justify-content: center !important;
    gap: 2px !important;
    padding: 0 2px !important;
    box-sizing: border-box !important;
  }
  html.is-native .bottom-nav-item {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 82px !important;
    height: 50px !important;
    gap: 3px !important;
    font-size: 10px !important;
    white-space: nowrap !important;
  }
  html.is-native .bottom-nav-item svg {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 auto !important;
  }
}
@media (max-width: 360px) {
  html.is-native .bottom-nav { left: 60px !important; right: 4px !important; gap: 0 !important; }
  html.is-native .bottom-nav-item { font-size: 9px !important; }
}

/* Final mobile header placement: keep category tabs on the top row. */
@media (max-width: 768px) {
  html.is-native .bottom-nav,
  html.is-browser .bottom-nav {
    top: calc(env(safe-area-inset-top, 0px) + 4px) !important;
    bottom: auto !important;
    height: 52px !important;
    min-height: 52px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    z-index: 5001 !important;
  }
  html.is-native .bottom-nav-item,
  html.is-browser .bottom-nav-item {
    height: 50px !important;
    min-height: 50px !important;
  }
}

/* Native app header: raise the tab row so its icons sit level with the
   hamburger (three-line) button. Tune --nav-lift if you need +/- a few px. */
@media (max-width: 768px) {
  html.is-native { --nav-lift: 14px; }
  html.is-native .bottom-nav {
    top: calc(env(safe-area-inset-top, 0px) + 4px - var(--nav-lift)) !important;
  }
}

/* Native app header v2: text-only tabs (no icons), icon-only Search,
   underline under the selected tab. Tab text is level with the hamburger. */
@media (max-width: 768px) {
  html.is-native { --nav-lift: 26px; }
  html.is-native .bottom-nav-item { position: relative !important; color: rgba(255,255,255,.72) !important; }
  html.is-native .bottom-nav-item:not(.nav-search) svg { display: none !important; }
  html.is-native .bottom-nav-item:not(.nav-search) span {
    position: relative; display: inline-block; padding: 6px 1px;
    font-size: clamp(12px, 3.6vw, 15px) !important; font-weight: 600 !important;
    letter-spacing: .01em; line-height: 1.2;
  }
  html.is-native .bottom-nav-item.nav-search { flex: 0 0 44px !important; max-width: 44px !important; }
  html.is-native .bottom-nav-item.nav-search span { display: none !important; }
  html.is-native .bottom-nav-item.nav-search svg { display: block !important; width: 22px !important; height: 22px !important; }
  html.is-native .bottom-nav-item.nav-search[aria-expanded="true"] svg { color: #fff !important; }
  html.is-native .bottom-nav-item.active,
  html.is-native .bottom-nav-item.nav-search[aria-expanded="true"] { color: #fff !important; }
  /* underline for the selected tab (text width) */
  html.is-native .bottom-nav-item.active:not(.nav-search) span::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px; border-radius: 2px; background: #fff;
  }
  /* underline under Search icon while search is open */
  html.is-native .bottom-nav-item.nav-search[aria-expanded="true"]::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 8px;
    height: 2px; border-radius: 2px; background: #fff;
  }
}
@media (max-width: 360px) {
  html.is-native .bottom-nav-item:not(.nav-search) span { font-size: 11.5px !important; }
}

/* Native header v3: tabs level with hamburger, prominent Search button. */
@media (max-width: 768px) {
  html.is-native { --nav-lift: 16px; }
  html.is-native .bottom-nav, html.is-native .bottom-nav-item { pointer-events: auto !important; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  html.is-native .bottom-nav-item.nav-search {
    flex: 0 0 40px !important; max-width: 40px !important; width: 40px !important;
    height: 40px !important; min-height: 40px !important; align-self: center !important;
    margin-left: 6px !important; border-radius: 50% !important;
    background: rgba(255,255,255,.18) !important;
    border: 1px solid rgba(255,255,255,.35) !important;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px rgba(0,0,0,.35) !important;
  }
  html.is-native .bottom-nav-item.nav-search svg { width: 22px !important; height: 22px !important; stroke-width: 2.6; color: #fff !important; }
  html.is-native .bottom-nav-item.nav-search[aria-expanded="true"] { background: #fff !important; border-color: #fff !important; }
  html.is-native .bottom-nav-item.nav-search[aria-expanded="true"] svg { color: #101614 !important; }
  html.is-native .bottom-nav-item.nav-search[aria-expanded="true"]::after { display: none !important; }
}

/* ============================================================
   PREMIUM NIGHT UI — visual-only layer; feed/navigation logic unchanged
   ============================================================ */
:root {
  --background: #050b16;
  --text: #f4f8ff;
  --muted: #a9bad2;
  --green: #044a37;
  --line: rgba(92, 205, 255, .24);
  --glass: rgba(5, 18, 34, .78);
  --premium-cyan: #25d9f5;
  --premium-mint: #0c4a39;
}
html, body { background-color:#050b16; color:var(--text); }
button, a { transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease; }
/* Existing controls gain a restrained glass / cyan finish without changing layout. */
.search-panel, .search-box, .search-input, input[type="search"], input[type="text"] {
  border-color:rgba(84,197,244,.28);
}
.bottom-nav {
  background:linear-gradient(180deg,rgba(7,19,36,.90),rgba(3,10,21,.97)) !important;
  border-color:rgba(47,221,244,.22) !important;
  box-shadow:0 -10px 34px rgba(0,0,0,.25),0 0 22px rgba(18,205,232,.06) !important;
  -webkit-backdrop-filter:blur(18px); backdrop-filter:blur(18px);
}
.bottom-nav-item.active { color:#42f7cb !important; }
.bottom-nav-item.active svg { filter:drop-shadow(0 0 7px rgba(54,245,194,.38)); }
.category, .category-item, .category-card, .drawer-item, .menu-item, .search-result {
  border-color:rgba(71,174,224,.22);
}
button:focus-visible, a:focus-visible, input:focus-visible {
  outline:2px solid #36f5c2; outline-offset:3px;
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { transition:none !important; animation:none !important; scroll-behavior:auto !important; }
}


/* Desktop navigation: move the main tabs to a top-centered bar and add Play Store.
   Mobile and native-app navigation keep their existing platform-specific behavior. */
html.is-browser .bottom-nav-item.nav-playstore {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 14px;
    color: #07140c !important;
    background: #25d366 !important;
    font-weight: 800;
    padding: 0 16px !important;
    min-width: 126px;
    box-shadow: 0 5px 18px rgba(37,211,102,.22);
}
html.is-browser .bottom-nav-item.nav-playstore svg {
    display: block;
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
}
html.is-browser .bottom-nav-item.nav-playstore:hover {
    background: #39e477 !important;
    transform: translateY(-1px);
}
@media (min-width: 769px) {
    html.is-browser .bottom-nav {
        top: 0px !important;
        bottom: auto !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: max-content !important;
        max-width: calc(100vw - 48px) !important;
        height: 66px !important;
        padding: 7px 10px !important;
        gap: 4px !important;
        border-radius: 20px !important;
        background: rgba(9, 13, 11, .88) !important;
        border: 1px solid rgba(255,255,255,.13) !important;
        box-shadow: 0 12px 38px rgba(0,0,0,.38) !important;
        -webkit-backdrop-filter: blur(18px) !important;
        backdrop-filter: blur(18px) !important;
    }
    html.is-browser .bottom-nav-item {
        flex: 0 0 auto !important;
        min-width: 76px;
        height: 50px !important;
        padding: 0 12px !important;
        border-radius: 13px;
        font-size: 12px;
    }
    html.is-browser .bottom-nav-item svg {
        width: 18px;
        height: 18px;
    }
    html.is-browser .bottom-nav-item.nav-search {
        min-width: 76px;
    }
    html.is-browser .bottom-nav-item.nav-playstore {
        margin-left: 4px;
        min-width: 126px;
    }
    /* Reserve space so the fixed top bar never covers the status artwork/text. */
    html.is-browser body {
        --desktop-top-nav-space: 14px;
    }
    html.is-browser .feed-shell,
    html.is-browser .feed-container,
    html.is-browser main {
        scroll-margin-top: var(--desktop-top-nav-space);
    }
}
@media (max-width: 768px) {
    html.is-browser .bottom-nav-item.nav-playstore {
        display: none !important;
    }
}
html.is-native .bottom-nav-item.nav-playstore {
    display: none !important;
}


/* Theme-matched YouTube tap-to-unmute hint (WhatsApp/TikTok green theme). */
.youtube-play-overlay.is-muted-hint::after {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(37,211,102,.30), rgba(13,148,78,.24)), rgba(8,11,10,.84) !important;
    border: 1px solid rgba(37,211,102,.72) !important;
    box-shadow: 0 0 0 1px rgba(37,211,102,.08), 0 8px 28px rgba(0,0,0,.42), 0 0 24px rgba(37,211,102,.16) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Desktop polish: remove the bright focus rectangle around search and center
   the category drawer directly beneath the top navigation. */
html.is-browser .search-bar input#feedSearch,
html.is-browser .search-bar input#feedSearch:focus,
html.is-browser .search-bar input#feedSearch:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
    -webkit-appearance: none;
    appearance: none;
}
html.is-browser .search-bar:focus-within {
    outline: none !important;
    box-shadow: none !important;
    border-color: rgba(255,255,255,.14) !important;
}
html.is-browser .search-bar-wrap,
html.is-browser .search-bar-wrap:focus-within {
    outline: none !important;
    box-shadow: none !important;
}
@media (min-width: 769px) {
    html.is-browser .category-panel {
        left: 50% !important;
        right: auto !important;
        width: min(900px, calc(100vw - 48px)) !important;
        max-width: calc(100vw - 48px) !important;
        top: 94px !important;
        max-height: min(72vh, 620px) !important;
        margin-left: 0 !important;
        transform: translateX(-50%);
        border-radius: 20px !important;
    }
    html.is-browser .category-panel.open {
        animation: desktopCategoryPanelIn .18s ease-out !important;
    }
    @keyframes desktopCategoryPanelIn {
        from { opacity: 0; translate: 0 -7px; }
        to { opacity: 1; translate: 0 0; }
    }
    html.is-browser .category-panel .category-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 1200px) {
    html.is-browser .category-panel .category-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}


/* Use Google's official “Get it on Google Play” badge on desktop. */
html.is-browser .bottom-nav-item.nav-playstore {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 0 !important;
    width: 154px;
    height: 50px !important;
    padding: 0 !important;
    margin-left: 4px;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    box-shadow: none !important;
    text-decoration: none;
    overflow: hidden;
}
html.is-browser .bottom-nav-item.nav-playstore img {
    display: block;
    width: 154px;
    height: auto;
    max-height: 50px;
    object-fit: contain;
}
html.is-browser .bottom-nav-item.nav-playstore:hover {
    background: transparent !important;
    transform: translateY(-1px);
    opacity: .94;
}


/* Google Play badge: clickable normally and available in browser navigation on mobile. */
html.is-browser .bottom-nav-item.nav-playstore { cursor:pointer; pointer-events:auto !important; z-index:2; }
html.is-browser .bottom-nav-item.nav-playstore img { pointer-events:none; }
@media (max-width: 768px) {
  html.is-browser .bottom-nav {
    display:flex !important;
    width:calc(100vw - 12px) !important;
    max-width:calc(100vw - 12px) !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    justify-content:flex-start !important;
    gap:2px !important;
    scrollbar-width:none !important;
    -webkit-overflow-scrolling:touch;
  }
  html.is-browser .bottom-nav::-webkit-scrollbar { display:none !important; }
  html.is-browser .bottom-nav-item.nav-playstore {
    display:flex !important;
    flex:0 0 108px !important;
    width:108px !important;
    min-width:108px !important;
    max-width:108px !important;
    height:42px !important;
    margin:0 3px !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    border-radius:6px !important;
    overflow:hidden !important;
  }
  html.is-browser .bottom-nav-item.nav-playstore img {
    display:block !important;
    width:108px !important;
    height:auto !important;
    max-height:42px !important;
    object-fit:contain !important;
  }
  html.is-browser .bottom-nav-item { flex-shrink:0 !important; }
}
html.is-native .bottom-nav-item.nav-playstore { display:none !important; }


/* Mobile spacing fix: keep the results title closer to the top navigation. */
@media (max-width: 768px) {
  html .status-results-grid {
    padding-top: 0 !important;
  }
  html .status-results-grid .results-grid-header {
    margin-top: 0 !important;
    padding-top: 68px !important;
    padding-bottom: 8px !important;
  }
}

/* Never show the browser-only Play Store badge inside the native WebView. */
html.is-native .bottom-nav-item.nav-playstore {
  display: none !important;
}


/* ============================================================
   TAP TO UNMUTE — centred, always visible while a video is muted
   ============================================================ */

.youtube-play-overlay.is-muted-hint {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

.youtube-play-overlay.is-muted-hint::after,
.video-muted::after {
    content: '🔊  Tap to unmute';

    display: inline-block;
    padding: 14px 26px;

    color: #fff !important;
    font: 600 18px/1 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    letter-spacing: .2px;
    white-space: nowrap;

    background:
        linear-gradient(135deg, rgba(37,211,102,.30), rgba(13,148,78,.24)),
        rgba(8,11,10,.86) !important;
    border: 1px solid rgba(37,211,102,.72) !important;
    border-radius: 999px;

    box-shadow:
        0 10px 32px rgba(0,0,0,.5),
        0 0 28px rgba(37,211,102,.22) !important;

    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);

    pointer-events: none;
    animation: gradient-hint 2.2s ease-in-out infinite;
}

/* Local <video>: the badge lives on .item itself, so centre it. */
.video-muted::after {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 16;
    translate: -50% -50%;
}

@media (max-width: 768px) {
    .youtube-play-overlay.is-muted-hint::after,
    .video-muted::after {
        font-size: 16px;
        padding: 12px 22px;
    }
}


/* ============================================================
   GLOBAL TAP-TO-UNMUTE BUTTON (see unmuteHint in app.js)
   Replaces the per-item pseudo-element hints.
   ============================================================ */

.youtube-play-overlay.is-muted-hint::after,
.video-muted::after {
    content: none !important;
    display: none !important;
}

.unmute-hint[hidden] { display: none !important; }

.unmute-hint {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 5450;

    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 11px 26px 11px 12px;
    margin: 0;

    color: #fff;
    font: 700 18px/1 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    letter-spacing: .2px;
    white-space: nowrap;

    background:
        linear-gradient(135deg, rgba(37,211,102,.30), rgba(13,148,78,.22)),
        rgba(8, 12, 10, .88);
    border: 1px solid rgba(37,211,102,.75);
    border-radius: 999px;

    box-shadow:
        0 14px 40px rgba(0,0,0,.55),
        0 0 30px rgba(37,211,102,.25);

    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);

    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;

    transform: translate(-50%, -50%);
    animation: unmuteHintPop .35s ease-out both, unmuteHintPulse 2.2s ease-in-out .35s infinite;
}

.unmute-hint-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    color: #06210f;
    background: #25d366;
    border-radius: 50%;
}

.unmute-hint-icon svg { width: 22px; height: 22px; }

@keyframes unmuteHintPop {
    from { opacity: 0; transform: translate(-50%, -50%) scale(.85); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes unmuteHintPulse {
    0%, 100% { box-shadow: 0 14px 40px rgba(0,0,0,.55), 0 0 18px rgba(37,211,102,.20); }
    50%      { box-shadow: 0 14px 40px rgba(0,0,0,.55), 0 0 40px rgba(37,211,102,.50); }
}

@media (max-width: 768px) {
    .unmute-hint { font-size: 16px; padding: 9px 22px 9px 10px; gap: 10px; }
    .unmute-hint-icon { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
    .unmute-hint { animation: none; }
}

/* Compact share grid with bundled SVG platform icons. */
.share-action .modern-share-menu{position:fixed;left:50%;top:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);box-sizing:border-box;width:min(360px,calc(100vw - 32px));min-width:0;padding:22px 16px 18px;border:1px solid #dce8df;border-radius:24px;background:#fff;color:#183b28;box-shadow:0 24px 80px #0004;max-height:calc(100dvh - 160px);overflow-y:auto;overflow-x:hidden;backdrop-filter:none;z-index:10021;gap:12px 2px;grid-template-columns:repeat(4,minmax(0,1fr));text-align:left}
.share-action .modern-share-menu.open,.share-action .modern-share-menu:not([hidden]){display:grid}
/* For You uses .open rather than the hidden attribute. */
.share-action .modern-share-menu:not(.open):not([hidden]){display:none}
.share-action.share-action--open .modern-share-menu:not([hidden]){display:grid}
.share-action .modern-share-menu[hidden]{display:none!important}
.share-action .modern-share-menu::before{display:none;content:none}
.modern-share-menu .share-menu__heading{display:flex;grid-column:1/-1;align-items:center;justify-content:space-between;gap:16px;padding:0 5px 18px;margin-bottom:3px;border-bottom:1px solid #eaf0ec}
.modern-share-menu .share-menu__eyebrow{display:block;color:#308058;font:700 9px/1.4 Arial,sans-serif;letter-spacing:.16em}
.modern-share-menu .share-menu__heading p{color:#173c28;font:700 20px/1.3 Arial,sans-serif;letter-spacing:-.035em;margin:5px 0 0}
.share-action .modern-share-menu .share-close{display:grid;place-items:center;position:static;width:34px;height:34px;min-height:34px;padding:9px;background:#f1f6f3;border:1px solid #e2ebe5;border-radius:50%;color:#42634e;transform:none;cursor:pointer;box-shadow:none;flex-shrink:0;backdrop-filter:none}
.share-action .modern-share-menu .share-close svg{width:14px!important;height:14px!important}
.share-action .modern-share-menu .share-menu__item{display:flex;position:static;flex-direction:column;align-items:center;justify-content:flex-start;width:100%;height:auto;min-height:90px;padding:8px 2px;border:0;border-radius:14px;background:transparent;color:#3d5144;text-decoration:none;text-align:center;transform:none;box-shadow:none;backdrop-filter:none;gap:9px;cursor:pointer;transition:background .15s ease}
.share-action .modern-share-menu .share-menu__item:hover{background:#f0f7f3;color:#183b28}
.modern-share-menu .share-menu__icon{display:grid;place-items:center;width:48px;height:48px;min-width:48px;flex-shrink:0;border-radius:16px;color:white;background:#142b1e}
.share-action .modern-share-menu .share-menu__icon svg{position:static;width:23px!important;height:23px!important;max-width:24px;max-height:24px;fill:currentColor;stroke:none;filter:none;transform:none}
.modern-share-menu .share-menu__label{display:block;font:600 11px/1.4 Arial,sans-serif;overflow-wrap:anywhere;color:inherit}
.modern-share-menu .share-menu__icon--whatsapp{background:#20b85a}.modern-share-menu .share-menu__icon--facebook{background:#1877f2}.modern-share-menu .share-menu__icon--instagram{background:linear-gradient(35deg,#ffca56,#ee2a7b 55%,#6228d7)}.modern-share-menu .share-menu__icon--tiktok,.modern-share-menu .share-menu__icon--x{background:#101712}.modern-share-menu .share-menu__icon--telegram{background:#299ed8}.modern-share-menu .share-menu__icon--linkedin{background:#0a66c2}.modern-share-menu .share-menu__icon--link,.modern-share-menu .share-menu__icon--device{background:#e9f4ed;color:#27754d}
.share-action .modern-share-menu .share-menu__icon--tiktok svg{filter:drop-shadow(1px 0 #fe2c55) drop-shadow(-1px 0 #25f4ee)}
.modern-share-menu a:focus-visible,.modern-share-menu button:focus-visible{outline:2px solid #25935b;outline-offset:2px}
@media(max-width:360px){.share-action .modern-share-menu{padding-inline:12px;width:calc(100vw - 24px)}.modern-share-menu .share-menu__icon{width:44px;height:44px;min-width:44px}.modern-share-menu .share-menu__label{font-size:10px}}
@media(prefers-reduced-motion:reduce){.share-action .modern-share-menu .share-menu__item{transition:none}}

/* Nine destinations fit a balanced 3-by-3 grid in the For You menu. */
.share-action .modern-share-menu{grid-template-columns:repeat(3,minmax(0,1fr))}

/* Mobile browser: transparent toolbar and expandable navigation. */
.browser-menu-toggle{display:none}
.browser-nav-links{display:contents}
@media(max-width:768px){
 html.is-browser .bottom-nav{
  display:flex!important;align-items:center!important;justify-content:flex-end!important;
  position:fixed!important;top:calc(env(safe-area-inset-top,0px) + 8px)!important;
  left:12px!important;right:12px!important;bottom:auto!important;transform:none!important;
  width:calc(100% - 24px)!important;max-width:calc(100% - 24px)!important;
  height:48px!important;min-height:48px!important;padding:0!important;gap:10px!important;
  overflow:visible!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;z-index:5001!important;
 }
 html.is-browser .bottom-nav::before,html.is-browser .bottom-nav-item::after{display:none!important}
 html.is-browser .bottom-nav .browser-menu-toggle{
  display:flex;align-items:center;justify-content:center;position:static;width:44px;height:44px;flex:0 0 44px;margin-right:auto;
  padding:10px;color:white;background:#08130d55;border:1px solid #ffffff25;border-radius:12px;cursor:pointer;
 }
 html.is-browser .browser-menu-toggle svg{width:24px;height:24px;display:block}
 html.is-browser .bottom-nav .bottom-nav-item.nav-search{
  display:flex!important;position:static!important;inset:auto!important;flex:0 0 44px!important;
  width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;
  align-items:center!important;justify-content:center!important;margin:0!important;padding:10px!important;
  background:#08130d55!important;border:1px solid #ffffff25!important;border-radius:12px!important;box-shadow:none!important;transform:none!important;
 }
 html.is-browser .bottom-nav .nav-search>span{display:none!important}
 html.is-browser .bottom-nav .nav-search svg{display:block!important;width:23px!important;height:23px!important;color:white!important;filter:none!important}
 html.is-browser .bottom-nav .bottom-nav-item.nav-playstore{
  display:flex!important;position:static!important;inset:auto!important;flex:0 0 116px!important;
  width:116px!important;min-width:116px!important;max-width:116px!important;height:44px!important;min-height:44px!important;
  margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;transform:none!important;
 }
 html.is-browser .bottom-nav .nav-playstore img{width:116px!important;max-width:116px!important;height:auto!important;max-height:44px!important;object-fit:contain!important}
 html.is-browser .bottom-nav .browser-nav-links{
  display:none;position:absolute;top:56px;left:0;width:min(260px,calc(100vw - 24px));padding:8px;box-sizing:border-box;
  background:rgba(9,22,15,.92);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  border:1px solid #ffffff24;border-radius:16px;box-shadow:0 12px 32px #0005;
  max-height:calc(100dvh - 100px);overflow-y:auto;
 }
 html.is-browser .bottom-nav.menu-open .browser-nav-links{display:flex;flex-direction:column;gap:4px}
 html.is-browser .bottom-nav .browser-nav-links .bottom-nav-item{
  display:flex!important;position:static!important;inset:auto!important;flex:none!important;align-items:center!important;justify-content:flex-start!important;
  width:100%!important;min-width:0!important;max-width:none!important;height:46px!important;min-height:46px!important;margin:0!important;padding:0 16px!important;
  border:0!important;border-radius:10px!important;background:transparent!important;color:#e5eee8!important;
  font:600 14px/1.2 Arial,sans-serif!important;box-shadow:none!important;transform:none!important;
 }
 html.is-browser .bottom-nav .browser-nav-links .bottom-nav-item svg{display:none!important}
 html.is-browser .bottom-nav .browser-nav-links .bottom-nav-item>span{display:block!important;white-space:nowrap!important;font:inherit!important}
 html.is-browser .bottom-nav .browser-nav-links .bottom-nav-item.active{background:#29593e!important;color:#a0efc0!important}
 html.is-browser .search-bar-wrap,html.is-browser .category-panel{top:calc(env(safe-area-inset-top,0px) + 72px)!important;left:12px!important;right:12px!important;width:auto!important;max-width:calc(100% - 24px)!important;margin:0!important;transform:none!important}
 html.is-browser .category-panel{max-height:calc(100dvh - 100px)!important}
 html.is-browser .status-results-grid .results-grid-header{padding-top:82px!important}
 html.is-browser body.browser-adsense-active .feed-adsense-item{padding-top:calc(env(safe-area-inset-top,0px) + 82px)!important}
 html.is-browser .bottom-nav button:focus-visible,html.is-browser .bottom-nav a:focus-visible{outline:2px solid #9aefbd!important;outline-offset:2px!important}
}

/* Keep mobile browser utilities above category/search results. */
@media(max-width:768px){
 html.is-browser body.results-grid-open .bottom-nav{z-index:8100!important}
 html.is-browser .status-results-grid{
  top:calc(env(safe-area-inset-top,0px) + 64px)!important;
  padding-top:0!important;
 }
 html.is-browser .status-results-grid .results-grid-header{
  margin-top:0!important;padding:10px 16px!important;
 }
 html.is-browser body.results-grid-open .search-bar-wrap,
 html.is-browser body.results-grid-open .category-panel{z-index:8200!important}
}

/* Make room for a visible Google bottom anchor in browsers only. */
html.is-browser.has-bottom-anchor #feed.feed{height:calc(100vh - var(--fy-anchor-gap,0px))!important;height:calc(100dvh - var(--fy-anchor-gap,0px))!important;bottom:var(--fy-anchor-gap,0px)!important}
html.is-browser.has-bottom-anchor #feed .item,
html.is-browser.has-bottom-anchor #feed .ad-item,
html.is-browser.has-bottom-anchor #feed .feed-adsense-item{height:calc(100dvh - var(--fy-anchor-gap,0px))!important;min-height:calc(100dvh - var(--fy-anchor-gap,0px))!important}
html.is-browser.has-bottom-anchor #feed .quote-screen{height:100%!important}
html.is-browser.has-bottom-anchor .scroll-next-hint{bottom:calc(var(--fy-anchor-gap,0px) + 36px)!important}
html.is-browser.has-bottom-anchor .status-results-grid{bottom:var(--fy-anchor-gap,0px)!important}

/* Compact browser navigation: two-column destinations, native app unaffected. */
@media (max-width:768px){
 html.is-browser #bottomNav.bottom-nav{left:14px!important;right:14px!important;width:calc(100% - 28px)!important;max-width:calc(100% - 28px)!important;gap:9px!important}
 html.is-browser #bottomNav .browser-menu-toggle,
 html.is-browser #bottomNav .bottom-nav-item.nav-search{
  width:44px!important;height:44px!important;min-height:44px!important;flex:0 0 44px!important;
  padding:11px!important;border:1px solid rgba(255,255,255,.17)!important;border-radius:14px!important;
  color:#f3f8f5!important;background:rgba(8,18,14,.52)!important;
  box-shadow:0 3px 14px rgba(0,0,0,.10)!important;
  backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important;
 }
 html.is-browser #bottomNav .browser-menu-toggle{margin-right:auto!important}
 html.is-browser #bottomNav .browser-menu-toggle[aria-expanded="true"]{background:rgba(18,63,44,.82)!important;border-color:rgba(121,213,164,.45)!important}
 html.is-browser #bottomNav .browser-menu-toggle svg,
 html.is-browser #bottomNav .bottom-nav-item.nav-search svg{width:21px!important;height:21px!important;stroke-width:1.8!important}
 html.is-browser #bottomNav .bottom-nav-item.nav-playstore{width:110px!important;min-width:110px!important;max-width:110px!important;flex:0 0 110px!important;height:44px!important}
 html.is-browser #bottomNav .nav-playstore img{width:110px!important;max-width:110px!important;max-height:44px!important}
 html.is-browser #bottomNav #browserNavLinks{
  display:none!important;left:0!important;top:58px!important;width:min(272px,calc(100vw - 28px))!important;
  padding:10px!important;border:1px solid rgba(218,242,229,.18)!important;border-radius:20px!important;
  background:rgba(10,24,18,.84)!important;box-shadow:0 18px 44px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.04)!important;
  backdrop-filter:blur(22px) saturate(125%)!important;-webkit-backdrop-filter:blur(22px) saturate(125%)!important;
  max-height:calc(100dvh - 100px)!important;overflow-y:auto!important;overscroll-behavior:contain;
 }
 html.is-browser #bottomNav.menu-open #browserNavLinks{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
 html.is-browser #bottomNav #browserNavLinks::before{
  content:"EXPLORE";display:block;grid-column:1/-1;padding:4px 7px 9px;margin:0 0 2px;
  border-bottom:1px solid rgba(229,245,235,.10);color:#9bb6a7;
  font:650 9px/1.4 Arial,sans-serif;letter-spacing:.16em;text-align:left;
 }
 html.is-browser #bottomNav #browserNavLinks .bottom-nav-item{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  gap:9px!important;width:100%!important;min-width:0!important;height:46px!important;min-height:46px!important;
  padding:0 11px!important;border:1px solid rgba(255,255,255,.055)!important;border-radius:12px!important;
  background:rgba(255,255,255,.025)!important;color:#e2eae5!important;
  font:550 13px/1.25 Arial,sans-serif!important;text-align:left!important;letter-spacing:0!important;
  box-sizing:border-box!important;transition:background .15s ease,border-color .15s ease!important;
 }
 html.is-browser #bottomNav #browserNavLinks .bottom-nav-item>svg{
  display:block!important;flex:0 0 18px!important;width:18px!important;height:18px!important;
  color:#a4bdaf!important;stroke-width:1.7!important;filter:none!important;transform:none!important;
 }
 html.is-browser #bottomNav #browserNavLinks .bottom-nav-item>span{font:inherit!important;white-space:nowrap!important}
 html.is-browser #bottomNav #browserNavLinks .bottom-nav-item.active{
  background:rgba(68,147,103,.20)!important;border-color:rgba(127,208,161,.32)!important;color:#c0f1d2!important;
 }
 html.is-browser #bottomNav #browserNavLinks .bottom-nav-item.active>svg{color:#8cddb0!important}
 html.is-browser #bottomNav #browserNavLinks .bottom-nav-item:hover{background:rgba(117,176,143,.12)!important;border-color:rgba(181,222,197,.22)!important}
 html.is-browser #bottomNav #browserNavLinks .bottom-nav-item[data-filter="categories"]{grid-column:1/-1!important;margin-top:2px!important}
 html.is-browser #bottomNav #browserNavLinks .bottom-nav-item[data-filter="categories"]::after{
  display:block!important;content:""!important;position:static!important;inset:auto!important;
  width:6px!important;height:6px!important;margin-left:auto!important;border:0!important;
  border-top:1.5px solid #93ac9d!important;border-right:1.5px solid #93ac9d!important;
  border-radius:0!important;background:none!important;transform:rotate(45deg)!important;box-shadow:none!important;
 }
}
@media (prefers-reduced-motion:reduce){html.is-browser #bottomNav #browserNavLinks .bottom-nav-item{transition:none!important}}
