:root {
    --bg-color: #1a1a1a;
    --sidebar-red: #b90b2a;
    --hover-red: #8a081e;
    --text-white: #fff;
    --text-hover: #ccc;
    --caption-grey: #999;
    --shadow-red: rgba(185, 11, 42, 0.5);
}
html {
    scroll-behavior: smooth;
}
a,
button,
img,
video {
    transition: all 0.1s ease-in-out;
}
body {
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: Oswald, sans-serif;
    line-height: 1.6;
    position: relative;
    text-align: center;
}
.container,
body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 0;
}
.container {
    box-sizing: border-box;
    display: flex;
    width: 100%;
}
@media (min-width: 481px) {
    @keyframes neonPulse {
        0% {
            box-shadow:
                2px 0 10px rgba(0, 0, 0, 0.5),
                0 0 15px rgba(82, 153, 82, 0.3);
        }
        50% {
            box-shadow:
                2px 0 15px rgba(0, 0, 0, 0.7),
                0 0 25px rgba(185, 11, 42, 0.5);
        }
        to {
            box-shadow:
                2px 0 10px rgba(0, 0, 0, 0.5),
                0 0 15px rgba(82, 153, 82, 0.3);
        }
    }
    .mobile .mobile-only {
        display: none;
    }
    body .sticky-header p {
        display: block;
    }
    body .sticky-header:has(#latest-btn[aria-label*="Bobo collections"]) p,
    body .sticky-header:has(#latest-btn[aria-label*="Bobo videos"]) p {
        display: none;
    }
    body .sticky-header:has(#latest-btn[aria-label*="Bobo collections"]) .button-group,
    body .sticky-header:has(#latest-btn[aria-label*="Bobo videos"]) .button-group {
        padding-top: 25px;
    }
    body #search-container {
        display: none;
        width: 100%;
    }
    body #search-container:not(.hidden) {
        display: flex;
    }
    .search-line {
        display: none !important;
    }
    .sticky-header {
        background-color: var(--bg-color);
        box-shadow: none;
        flex-direction: column;
        padding: 0;
        position: static;
        width: 100%;
        z-index: 1000;
    }
    .button-group,
    .sticky-header {
        align-items: center;
        display: flex;
        margin: 0;
        min-width: 600px;
    }
    .button-group {
        gap: 15px;
        justify-content: center;
    }
    body:has(#latest-btn[aria-label*="Bobo collections"]) .sticky-header #collection-filter {
        display: flex;
        margin: 10px auto;
        width: auto;
    }
    body:has(#latest-btn[aria-label*="Bobo collections"]) .button-group {
        min-width: 400px;
    }
    body:has(#latest-btn[aria-label*="Bobo collections"]) .button-group .red-button {
        box-sizing: border-box;
        font-size: 1.2em;
        justify-content: center;
        padding: 12px 24px;
        text-align: center;
        width: 150px;
    }
    #gallery {
        contain-intrinsic-size: 180px 180px;
        content-visibility: auto;
        display: grid;
        gap: 15px;
        grid-template-columns: repeat(5, 1fr);
        justify-items: center;
        margin-top: 20px;
        padding: 20px;
    }
    #gallery img,
    #gallery video {
        border: 2px solid var(--sidebar-red);
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        cursor: pointer;
        height: 180px;
        max-width: 180px;
        object-fit: cover;
        object-position: center;
        position: relative;
        transform: translateZ(0);
        transition:
            transform 0.3s ease-in-out,
            box-shadow 0.3s ease-in-out,
            opacity 0.3s ease-in-out;
        width: 180px;
        will-change: transform, opacity;
        z-index: 3;
    }
    @media (min-width: 2560px) and (max-aspect-ratio: 7/3) {
        #gallery {
            contain-intrinsic-size: 250px 250px;
            grid-template-columns: repeat(7, 1fr);
        }
        #gallery img,
        #gallery video {
            height: 250px;
            max-width: 250px;
            width: 250px;
        }
    }
    @media (min-width: 3840px) and (max-aspect-ratio: 32/9) {
        #gallery {
            contain-intrinsic-size: 250px 250px;
            grid-template-columns: repeat(9, 1fr);
        }
        #gallery img,
        #gallery video {
            height: 250px;
            max-width: 250px;
            width: 250px;
        }
    }
}
.menu-toggle {
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    display: none;
    font-size: 1.5em;
    left: 10px;
    padding: 10px;
    position: absolute;
    top: 10px;
    transition: outline 0.3s ease-in-out;
}
.menu-toggle:focus {
    outline: 2px solid var(--text-white);
    outline-offset: 2px;
}
main {
    flex: 1;
    margin-left: 220px;
    padding: 20px;
}
.header-content {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
    width: 100%;
}
main h1 {
    font-size: 2.5em;
    letter-spacing: 1px;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
main p {
    font-size: 1.1em;
    letter-spacing: 0.5px;
    line-height: 1.8;
    margin: 0;
    transition: text-shadow 0.3s ease-in-out;
}
main a {
    color: var(--text-white);
    text-decoration: none;
    transition:
        color 0.3s ease-in-out,
        text-shadow 0.3s ease-in-out;
}
main a:focus,
main a:hover {
    color: var(--text-hover);
    text-decoration: underline;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
#gallery img:focus,
#gallery .media-item:hover img,
#gallery .media-item:focus-within img,
#gallery video:focus,
#gallery .media-item:hover video,
#gallery .media-item:focus-within video {
    box-shadow: 0 6px 12px var(--shadow-red);
    opacity: 0.9;
    outline: none;
    transform: scale(1.05);
}
#gallery video {
    display: none;
}
#gallery.crashing .media-item {
    animation: marketCrash 0.3s ease-out forwards;
}
#gallery.crashing .media-item {
    will-change: transform, opacity;
}
.fade-in {
    animation: fadeIn 0.5s ease-in;
}
.loading-spinner {
    animation: spin 1s linear infinite;
    border-top: 3px solid var(--caption-grey);
    border: 3px solid var(--caption-grey);
    border-radius: 50%;
    border-top-color: var(--sidebar-red);
    display: inline-block;
    height: 20px;
    vertical-align: middle;
    width: 20px;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(1turn);
    }
}
#dump-collections-btn,
#dump-it,
#dump-pics-btn,
#dump-videos-btn,
#latest-btn,
#random-meme-btn,
#search-btn {
    background-color: var(--sidebar-red);
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: var(--text-white);
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2em;
    margin: 0;
    overflow: hidden;
    padding: 12px 24px;
    position: relative;
    transform: translateZ(0);
    transition:
        background-color 0.2s ease-in-out,
        box-shadow 0.2s ease-in-out;
    will-change: transform, box-shadow;
}
#dump-collections-btn img,
#dump-it img,
#dump-pics-btn img,
#dump-videos-btn img,
#latest-btn img,
#random-meme-btn img,
#search-btn img {
    margin-left: 10px;
    transition: transform 0.2s ease-in-out;
    vertical-align: middle;
    width: 45px;
}
#dump-collections-btn:focus img,
#dump-collections-btn:hover img,
#dump-it:focus img,
#dump-it:hover img,
#dump-pics-btn:focus img,
#dump-pics-btn:hover img,
#dump-videos-btn:focus img,
#dump-videos-btn:hover img,
#latest-btn:focus img,
#latest-btn:hover img,
#random-meme-btn:focus img,
#random-meme-btn:hover img,
#search-btn:focus img,
#search-btn:hover img {
    transform: scale(1.1);
}
.pulse {
    animation: pulse 0.1s ease-in-out;
    transform: translateZ(0);
    will-change: transform;
}
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    to {
        transform: scale(1);
    }
}
.media-item {
    margin-bottom: 20px;
    padding: 10px;
    position: relative;
    text-align: center;
}

/* ---- premium gallery hover actions (copy / download) ----
   Frosted-glass circular buttons, revealed purely by CSS :hover so the timing
   is flawless (no JS mouseover race). Each button eases in with a slight
   overshoot + stagger; hovering a button lifts it and fills with the brand red. */
.card-hover-btns {
    position: absolute;
    bottom: 16px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 20;
    pointer-events: none;
}
.media-item:hover .card-hover-btns,
.media-item:focus-within .card-hover-btns {
    pointer-events: auto;
}
.card-hover-btn {
    pointer-events: auto;
    cursor: pointer;
}
/* Index / still galleries: keep utilities inside the thumb, above the edge. */
body.page-bobo:not(.page-bobo-videos) #gallery .media-item .media-thumb .card-hover-btns {
    top: auto;
    right: 12px;
    bottom: 16px;
}
.card-hover-btn {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    background: rgba(8, 8, 10, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(10px) saturate(1.15);
    backdrop-filter: blur(10px) saturate(1.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.18s ease,
                transform 0.2s ease,
                background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.card-hover-btn svg {
    width: 14px;
    height: 14px;
    display: block;
}
/* reveal on card hover / keyboard focus */
.media-item:hover .card-hover-btns,
.media-item:focus-within .card-hover-btns {
    pointer-events: auto;
}
.media-item:hover .card-hover-btn,
.media-item:focus-within .card-hover-btn {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.media-item:hover .card-hover-btn:nth-child(2),
.media-item:focus-within .card-hover-btn:nth-child(2) {
    transition-delay: 0.04s;
}
/* hover a control: just brighten — no red fill, no scale */
.media-item:hover .card-hover-btn:hover,
.media-item .card-hover-btn:focus-visible {
    background: rgba(12, 12, 14, 0.62);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.34);
}
.media-item:hover .card-hover-btn:active {
    transform: scale(0.94);
}
/* copied-success flash (BoboCut green) */
.card-hover-btn.copied,
.media-item:hover .card-hover-btn.copied:hover {
    background: rgba(47, 158, 111, 0.72);
    border-color: rgba(255, 255, 255, 0.32);
    color: #fff;
}
@media (prefers-reduced-motion: reduce) {
    .card-hover-btn { transition: opacity 0.15s ease, background 0.16s ease; transform: none; }
    .media-item:hover .card-hover-btn,
    .media-item:focus-within .card-hover-btn { transform: none; }
}
.media-caption {
    color: var(--caption-grey);
    font-size: 0.9em;
    margin-top: 5px;
    text-align: center;
    word-wrap: break-word;
    letter-spacing: 0.5px;
    line-height: 1.4;
    margin-left: auto;
    margin-right: auto;
    max-width: 180px;
    padding: 5px;
}
.download-btn {
    background-color: var(--sidebar-red);
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: var(--text-white);
    cursor: pointer;
    font-family: Oswald, sans-serif;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    margin-top: 10px;
    padding: 10px 18px;
    transform: translateZ(0);
    transition:
        background-color 0.2s ease-in-out,
        box-shadow 0.2s ease-in-out;
    will-change: transform, box-shadow, background-color;
}
.download-btn:focus,
.download-btn:hover {
    background-color: var(--hover-red);
    box-shadow: 0 4px 8px var(--shadow-red);
    outline: 2px solid var(--text-white);
    outline-offset: 2px;
}
.button-container {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    max-width: 512px;
    width: 100%;
}
.meme-viewer-content {
    justify-content: center;
    margin: 0 auto;
    max-width: 1200px;
    min-height: calc(100vh - 120px);
    padding: 20px;
    text-align: center;
}
.meme-viewer,
.meme-viewer-content {
    align-items: center;
    display: flex;
    flex-direction: column;
}
.meme-viewer {
    max-width: 800px;
    overflow: visible;
    width: 100%;
}
.meme-viewer img,
.meme-viewer video {
    border: 2px solid var(--sidebar-red);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: block;
    margin: 20px auto;
    max-height: 100%;
    max-width: 100%;
    transform: translateZ(0);
    transition:
        transform 0.05s ease-in-out,
        box-shadow 0.1s ease-in-out;
    will-change: transform, box-shadow;
}
.meme-viewer img:hover,
.meme-viewer video:hover {
    box-shadow: 0 6px 12px var(--shadow-red);
    transform: scale(1.02);
}
.meme-viewer .media-caption {
    color: var(--caption-grey);
    font-size: 0.85em;
    letter-spacing: 0.5px;
    letter-spacing: 0.5px;
    line-height: 1.4;
    margin-top: 10px;
    padding: 8px;
}
.button-group {
    align-items: center;
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 0;
}
#search-btn {
    background-color: var(--sidebar-red);
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: var(--text-white);
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2em;
    margin: 0;
    overflow: hidden;
    padding: 12px 24px;
    position: relative;
    transform: translateZ(0);
    transition:
        background-color 0.3s ease-in-out,
        box-shadow 0.3s ease-in-out;
    will-change: transform, box-shadow, background-color;
}
#search-btn:focus,
#search-btn:hover {
    background-color: var(--hover-red);
    box-shadow: 0 6px 12px var(--shadow-red);
    outline: 2px solid var(--text-white);
    outline-offset: 2px;
}
#search-btn img {
    margin-left: 10px;
    transition: transform 0.3s ease-in-out;
    vertical-align: middle;
    width: 45px;
}
#search-btn:focus img,
#search-btn:hover img {
    transform: scale(1.1);
}
.search-btn-active {
    box-shadow: 0 6px 12px var(--shadow-red);
    transform: scale(1.05);
    transform: translateZ(0);
    will-change: transform, box-shadow;
}
#search-container {
    align-items: center;
    display: flex;
    gap: 8px;
    height: auto;
    justify-content: center;
    margin: 20px auto;
    max-width: 600px;
    padding: 0;
    position: static;
    text-align: center;
    width: 100%;
    z-index: 1001;
}
#search-input {
    background-color: var(--text-white);
    border: 2px solid var(--sidebar-red);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: var(--bg-color);
    font-family: Oswald, sans-serif;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    margin: 0 5px;
    max-width: 100%;
    padding: 10px 30px 10px 15px;
    transition:
        border-color 0.3s ease-in-out,
        box-shadow 0.3s ease-in-out;
    width: 300px;
}
#search-input:focus {
    border-color: var(--hover-red);
    box-shadow: 0 4px 8px var(--shadow-red);
    outline: none;
}
#search-input::placeholder {
    color: var(--caption-grey);
    opacity: 0.8;
}
#tags-btn {
    background-color: var(--text-white);
    border: 2px solid var(--sidebar-red);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: var(--bg-color);
    cursor: pointer;
    display: none;
    font-family: Oswald, sans-serif;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 10px;
    transform: translateZ(0);
    transition:
        border-color 0.3s ease-in-out,
        box-shadow 0.3s ease-in-out;
    width: 80px;
    will-change: transform, box-shadow, border-color;
}
#tags-btn:focus,
#tags-btn:hover {
    border-color: var(--hover-red);
    box-shadow: 0 4px 8px var(--shadow-red);
    outline: none;
}
#tags-menu {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border: 2px solid var(--sidebar-red);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    display: none;
    left: 0;
    padding: 15px;
    position: absolute;
    top: 100%;
    width: 480px;
    z-index: 1002;
}
.tags-columns {
    display: flex;
    gap: 6px;
    justify-content: space-between;
}
.tags-column {
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 0;
}
.tags-column li {
    margin: 5px 0;
}
.tags-column .tag-option {
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    font-family: Oswald, sans-serif;
    font-size: 0.85em;
    padding: 8px;
    text-align: left;
    transform: translateZ(0);
    transition: background-color 0.3s ease-in-out;
    width: 100%;
    will-change: background-color;
}
.tags-column .tag-option:focus,
.tags-column .tag-option:hover {
    background-color: var(--hover-red);
    outline: none;
}
#tags-menu .close-tags-btn {
    background: none;
    border: none;
    color: var(--sidebar-red);
    cursor: pointer;
    font-size: 1.2em;
    height: 20px;
    line-height: 20px;
    padding: 0;
    position: absolute;
    right: 5px;
    text-align: center;
    top: 5px;
    width: 20px;
}
#tags-menu .close-tags-btn:hover {
    color: var(--hover-red);
}
.search-line {
    background-color: var(--sidebar-red);
    box-shadow: 0 0 8px rgba(82, 153, 82, 0.3);
    height: 6px;
    margin: 10px auto;
    max-width: 400px;
    width: 100%;
}
.search-active {
    animation: searchPop 0.3s ease-out;
    transform: translateZ(0);
    will-change: transform, opacity;
}
@keyframes searchPop {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.search-input-container {
    max-width: 450px;
    position: relative;
    width: 100%;
    width: 450px;
}
.clear-search-btn {
    background: none;
    border: none;
    color: var(--sidebar-red);
    cursor: pointer;
    display: none;
    font-size: 1.2em;
    height: 20px;
    line-height: 20px;
    margin: 0 5px;
    padding: 0;
    position: absolute;
    right: 10px;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
}
.clear-search-btn:hover {
    color: var(--hover-red);
}
.back-to-top-btn {
    background-color: var(--sidebar-red);
    border: none;
    border-radius: 8px;
    bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: var(--text-white);
    cursor: pointer;
    font-family: Impact, sans-serif;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    position: fixed;
    right: 20px;
    transform: translateZ(0);
    transition:
        background-color 0.3s ease-in-out,
        box-shadow 0.3s ease-in-out;
    will-change: transform, box-shadow, background-color;
    z-index: 1000;
}
.back-to-top-btn:focus,
.back-to-top-btn:hover {
    background-color: var(--hover-red);
    box-shadow: 0 4px 8px var(--shadow-red);
    outline: none;
}
.back-to-top-btn.hidden,
.menu-btn {
    display: none;
}
.menu-btn {
    background-color: var(--sidebar-red);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: var(--text-white);
    cursor: pointer;
    font-family: Impact, sans-serif;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    position: static;
    transform: translateZ(0);
    transition:
        background-color 0.3s ease-in-out,
        box-shadow 0.3s ease-in-out;
    will-change: transform, box-shadow, background-color;
    z-index: 1001;
}
.menu-btn:focus,
.menu-btn:hover {
    background-color: var(--hover-red);
    box-shadow: 0 4px 8px var(--shadow-red);
    outline: none;
}
.latest-btn-mobile,
.random-meme-btn-mobile {
    background-color: var(--sidebar-red);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: var(--text-white);
    cursor: pointer;
    display: none;
    font-family: 'Space Grotesk', Impact, sans-serif;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    transform: translateZ(0);
    transition:
        background-color 0.3s ease-in-out,
        box-shadow 0.3s ease-in-out;
    will-change: transform, box-shadow, background-color;
    z-index: 1001;
}
.latest-btn-mobile:focus,
.latest-btn-mobile:hover,
.random-meme-btn-mobile:focus,
.random-meme-btn-mobile:hover {
    background-color: var(--hover-red);
    box-shadow: 0 6px 12px var(--shadow-red);
    outline: none;
}
.magnify-btn,
.magnify-btn-mobile {
    align-items: center;
    background-color: var(--sidebar-red);
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    height: 45px;
    justify-content: center;
    padding: 12px;
    transform: translateZ(0);
    transition:
        background-color 0.3s ease-in-out,
        box-shadow 0.3s ease-in-out;
    width: 45px;
    will-change: transform, box-shadow, background-color;
}
.magnify-btn-mobile:focus,
.magnify-btn-mobile:hover,
.magnify-btn:focus,
.magnify-btn:hover {
    background-color: var(--hover-red);
    box-shadow: 0 6px 12px var(--shadow-red);
    outline: 2px solid var(--text-white);
    outline-offset: 2px;
}
.magnify-icon {
    height: 24px;
    width: 24px;
}
.button-footer {
    display: none;
}
.council-content {
    margin: 25px auto 0;
    max-width: 1200px;
    padding: 20px;
}
.widget-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}
.market-cap-widget,
.stats-widget {
    background: #2a2a2a;
    border: 2px solid var(--sidebar-red);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 400px;
    justify-content: space-between;
    max-width: 400px;
    padding: 15px;
    position: relative;
    text-align: center;
    transition:
        box-shadow 0.3s ease-in-out,
        border-color 0.3s ease-in-out;
    width: 100%;
    z-index: 1;
}
.market-cap-widget:focus-within,
.market-cap-widget:hover,
.stats-widget:focus-within,
.stats-widget:hover {
    border-color: var(--hover-red);
    box-shadow: 0 0 15px var(--shadow-red);
}
.market-cap-widget h2,
.stats-widget h2 {
    color: #fff;
    font-family: Impact, sans-serif;
    font-size: 1.5em;
    margin: 0 0 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.market-cap-widget p {
    color: #999;
    font-family: Oswald, sans-serif;
    font-size: 1.2em;
    margin: 0 0 10px;
}
.market-cap-widget img {
    display: block;
    flex-grow: 1;
    height: auto;
    margin: 10px auto;
    max-width: 72%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}
#scoreboard-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 5px;
    justify-content: flex-start;
}
#scoreboard-content p {
    color: #fff;
    font-family: Oswald, sans-serif;
    font-size: 1.1em;
    margin: 0;
}
#scoreboard-content p strong {
    color: var(--sidebar-red);
}
#scoreboard-content .holder-memes-row {
    align-items: center;
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 5px;
}
#scoreboard-content p.holder-memes {
    font-size: 0.9em;
}
#dextools-widget {
    background: #000;
    border: none;
    border-radius: 4px;
    box-sizing: border-box;
    flex-shrink: 0;
    height: 300px;
    margin: 20px auto 0;
    max-width: 100%;
    width: 500px;
}
.gain {
    color: #0f0;
}
.gain,
.loss {
    font-weight: 700;
    margin-left: 10px;
}
.loss {
    color: red;
}
.council-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    position: relative;
    text-align: center;
    z-index: 2;
}
.council-links p {
    width: 100%;
}
.council-links .address-text,
.council-links p {
    color: var(--sidebar-red);
    margin-top: 20px;
    text-align: center;
}
.council-links .address-text {
    line-height: 1.4;
}
.council-links .target-text {
    color: var(--text-white);
    line-height: 1.4;
    margin-top: 0;
    text-align: center;
}
.council-links .target-text a {
    color: var(--text-white);
    text-decoration: underline;
    transition:
        color 0.3s ease-in-out,
        text-shadow 0.3s ease-in-out;
}
.council-links .target-text a:focus,
.council-links .target-text a:hover {
    color: var(--text-hover);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.council-btn {
    background-color: var(--sidebar-red);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: var(--text-white);
    font-family: Impact, sans-serif;
    font-size: 1.1em;
    padding: 12px 24px;
    text-decoration: none;
    transform: translateZ(0);
    transition:
        background-color 0.3s ease-in-out,
        box-shadow 0.3s ease-in-out;
    will-change: transform, box-shadow, background-color;
}
.council-btn:focus,
.council-btn:hover {
    background-color: var(--hover-red);
    box-shadow: 0 6px 12px var(--shadow-red);
    outline: none;
}
.play-button {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: none;
    font-size: 20px;
    height: 40px;
    left: 50%;
    outline: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease-in-out;
    width: 40px;
    z-index: 10;
}
.play-button:focus {
    outline: 2px solid var(--text-white);
    outline-offset: 2px;
}
.media-item:focus-within .play-button,
.media-item:hover .play-button {
    display: block;
}
.download-counter {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    bottom: 10px;
    color: var(--text-white);
    font-size: 0.7em;
    opacity: 0;
    padding: 2px 6px;
    position: fixed;
    right: 10px;
    transition: opacity 0.3s ease-in-out;
    z-index: 1000;
}
.social-btn {
    align-items: center;
    background-color: #000;
    border-radius: 4px;
    display: inline-flex;
    height: 1.4em;
    justify-content: center;
    margin: 0 10px;
    overflow: hidden;
    padding: 0;
    text-decoration: none;
    transition:
        transform 0.3s ease-in-out,
        box-shadow 0.3s ease-in-out;
    vertical-align: middle;
    width: 5.6em;
}
.social-btn:focus,
.social-btn:hover {
    box-shadow: 0 4px 8px var(--shadow-red);
    outline: none;
    transform: scale(1.1);
}
.social-icon {
    display: block;
    height: 60%;
    max-height: 48px;
    max-width: 48px;
    object-fit: contain;
    width: 60%;
}
.target-text {
    gap: 6px;
    justify-content: center;
}
.red-button,
.target-text {
    align-items: center;
    display: flex;
}
.red-button {
    background-color: var(--sidebar-red);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: var(--text-white);
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2em;
    gap: 5px;
    margin: 0 5px;
    overflow: hidden;
    padding: 12px 24px;
    position: relative;
    transform: translateZ(0);
    transition:
        background-color 0.3s ease-in-out,
        box-shadow 0.3s ease-in-out;
    will-change: transform, box-shadow, background-color;
}
.red-button:focus,
.red-button:hover {
    background-color: var(--hover-red);
    box-shadow: 0 6px 12px var(--shadow-red);
    outline: 2px solid var(--text-white);
    outline-offset: 2px;
}
.red-button img {
    transition: transform 0.3s ease-in-out;
    vertical-align: middle;
    width: 45px;
}
.red-button:focus img,
.red-button:hover img {
    transform: scale(1.1);
}
.toggle-media-btn {
    padding: 12px 24px;
}
.toggle-videos-gifs-btn {
    box-sizing: border-box;
    justify-content: space-between;
    padding: 12px 24px;
    transform: translateZ(0);
    width: 150px;
    will-change: transform, box-shadow, background-color;
}
.overlay {
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    touch-action: none;
    width: 100%;
    z-index: 1049;
}
.keyboard-trigger {
    height: 1px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 1px;
    z-index: -1;
}
@media (min-width: 481px) {
    .sticky-header {
        background-color: var(--bg-color);
        box-shadow: none;
        flex-direction: column;
        padding: 0;
        position: static;
        width: 100%;
        z-index: 1000;
    }
    .button-group,
    .sticky-header {
        align-items: center;
        display: flex;
        margin: 0;
        min-width: 600px;
    }
    .button-group {
        gap: 15px;
        justify-content: center;
    }
    body .sticky-header:has(#latest-btn[aria-label*="Bobo collections"]) p,
    body .sticky-header:has(#latest-btn[aria-label*="Bobo memes"]) p,
    body .sticky-header:has(#latest-btn[aria-label*="Bobo videos"]) p {
        display: none;
    }
    body .sticky-header:has(#latest-btn[aria-label*="Bobo collections"]) .button-group,
    body .sticky-header:has(#latest-btn[aria-label*="Bobo memes"]) .button-group,
    body .sticky-header:has(#latest-btn[aria-label*="Bobo videos"]) .button-group {
        padding-top: 25px;
    }
}
@media (max-width: 1040px) {
    body {
        background-color: var(--bg-color);
        box-sizing: border-box;
        margin: 0 !important;
        overflow-x: hidden;
        padding: 0 !important;
        position: relative;
        width: 100%;
    }
    .red-bar {
        display: none;
    }
    .container {
        box-sizing: border-box;
        display: block;
        margin: 0 !important;
        min-height: auto;
        padding: 0 !important;
        position: relative;
        width: 100%;
    }
    .overlay.active {
        background-color: rgba(0, 0, 0, 0.5);
        cursor: pointer;
        display: block;
        height: 100%;
        left: 0;
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1049 !important;
    }
    main {
        background: transparent;
        box-sizing: border-box;
        margin: 0 !important;
        min-height: 100vh;
        overflow-y: auto !important;
        padding: 0 0 70px !important;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }
    body:has(.council-content) main {
        height: auto;
        overflow-y: auto;
    }
    body:not(:has(#latest-btn[aria-label*="Bobo collections"])) main {
        height: calc(100vh - 60px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    body:not(:has(#latest-btn[aria-label*="Bobo collections"])) .container {
        height: 100vh;
        overflow: hidden;
    }
    .latest-btn-mobile,
    .menu-btn,
    .random-meme-btn-mobile,
    .top-btn-mobile {
        background-color: var(--sidebar-red);
        display: block !important;
        opacity: 0.9;
        pointer-events: auto !important;
    }
    .header-content {
        gap: 0 !important;
    }
    .header-content,
    .sticky-header {
        margin: 0 !important;
        padding: 0 !important;
    }
    .sticky-header {
        align-items: center;
        background-color: var(--bg-color);
        box-shadow: none;
        display: flex;
        flex-direction: column;
        position: static;
        position: relative;
        width: 100%;
        z-index: 1001;
    }
    .sticky-header h1 {
        display: none;
    }
    .sticky-header #search-line {
        background-color: var(--sidebar-red);
        box-shadow:
            0 0 12px rgba(185, 11, 42, 0.6),
            0 0 20px rgba(185, 11, 42, 0.4);
        height: 6px;
        left: 0;
        margin: 0 auto;
        max-width: 100%;
        position: fixed;
        right: 0;
        top: 0;
        transform: scale(1.5, 1.2);
        transform-origin: center;
        width: 100%;
        z-index: 1002;
    }
    body:has(#latest-btn[aria-label*="Bobo pics"]) .sticky-header p {
        display: none;
    }
    .sticky-header p {
        display: none;
    }
    .sticky-header .button-group {
        display: none !important;
    }
    .button-group #dump-it,
    .button-group #dump-pics-btn,
    .button-group #dump-videos-btn,
    .button-group #latest-btn,
    .button-group #random-meme-btn,
    .button-group #search-btn,
    .button-group #toggle-media-btn {
        display: none;
    }
    body:not(:has(#latest-btn[aria-label*="Bobo collections"])) .sticky-header #search-container {
        align-items: center;
        display: flex !important;
        flex-direction: row;
        gap: 8px;
        height: auto;
        justify-content: center;
        left: 50%;
        margin: 0;
        max-width: 400px;
        opacity: 1 !important;
        padding: 0;
        position: absolute;
        top: 6px !important;
        transform: translateX(-50%);
        transition: top 0.2s ease-out;
        width: 100%;
        z-index: 1000;
    }
    body:not(:has(#latest-btn[aria-label*="Bobo collections"])) .sticky-header #search-container.active {
        animation: dropDown 0.2s ease-out forwards;
        display: flex;
        top: 6px;
    }
    body:not(:has(#latest-btn[aria-label*="Bobo collections"])) .sticky-header #search-container:not(.active) {
        animation: closeUp 0.2s ease-in forwards;
        display: none;
        top: -40px;
    }
    @keyframes dropDown {
        0% {
            opacity: 0;
            top: -40px;
        }
        to {
            opacity: 1;
            top: 6px;
        }
    }
    @keyframes closeUp {
        0% {
            opacity: 1;
            top: 6px;
        }
        to {
            opacity: 0;
            top: -40px;
        }
    }
    body:not(:has(#latest-btn[aria-label*="Bobo collections"])):not(:has(#latest-btn[aria-label*="Bobo Council"]))
        .gallery-wrapper {
        margin-top: 48px !important;
        max-height: calc(100vh - 98px);
        min-height: calc(100vh - 98px);
    }
    body:has(#latest-btn[aria-label*="Bobo collections"]) .sticky-header #collection-filter {
        display: block !important;
        margin: 30px auto 10px !important;
        padding: 0 !important;
        position: static !important;
        width: 65vw !important;
        z-index: 1001 !important;
    }
    #search-input:not(:focus) {
        background-color: var(--bg-color);
        opacity: 0.8;
    }
    #search-input {
        background-color: var(--bg-color);
        border: 2px solid var(--sidebar-red);
        border-radius: 8px;
        box-shadow:
            0 2px 4px rgba(0, 0, 0, 0.5),
            inset 0 0 5px var(--shadow-red);
        color: var(--text-white);
        display: block;
        font-family: Oswald, sans-serif;
        height: 35px;
        margin: 0;
        padding: 4px 30px 4px 12px;
        transition:
            border-color 0.3s ease-in-out,
            box-shadow 0.3s ease-in-out;
        width: 100%;
    }
    #search-input:focus {
        border-color: var(--hover-red);
        box-shadow: 0 4px 8px var(--shadow-red);
        outline: none;
    }
    #search-input::placeholder {
        color: var(--text-white);
        opacity: 0.6;
    }
    #search-line {
        height: 6px;
        margin-top: -25px;
        max-width: 100%;
        transform: scale(1.5, 1.2);
        transform-origin: center;
    }
    .new-collection-select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-color: var(--bg-color);
        background-image: url('data:image/svg+xml;utf8,<svg fill="%23529952" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
        background-position: right 10px center;
        background-repeat: no-repeat;
        border: 2px solid var(--sidebar-red);
        border-radius: 8px;
        box-shadow:
            0 2px 4px rgba(0, 0, 0, 0.5),
            inset 0 0 5px var(--shadow-red);
        box-sizing: border-box;
        color: var(--text-white);
        font-family: Oswald, sans-serif;
        font-size: 0.9em;
        margin: 5px auto;
        max-width: 350px;
        padding: 8px 12px;
        transition:
            border-color 0.3s ease-in-out,
            box-shadow 0.3s ease-in-out;
        width: 100%;
    }
    .new-collection-select:focus,
    .new-collection-select:hover {
        border-color: var(--hover-red);
        box-shadow: 0 4px 8px var(--shadow-red);
        outline: none;
    }
    .new-collection-select option {
        background-color: var(--bg-color);
        color: var(--text-white);
        font-family: Oswald, sans-serif;
    }
    .sticky-header:has(#latest-btn[aria-label*="Bobo Council"]) #search-container {
        display: none;
    }
    .sticky-header:has(#latest-btn[aria-label*="Bobo Council"]) ~ .gallery-wrapper {
        margin-top: 106px !important;
    }
    .gallery-wrapper:after,
    .gallery-wrapper:before {
        display: none !important;
    }
    #gallery {
        box-sizing: border-box;
        column-gap: 6px;
        contain-intrinsic-size: 140px 140px;
        content-visibility: auto;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        justify-items: center;
        margin: 0 !important;
        max-width: 100%;
        overflow-x: hidden;
        padding: 5px !important;
        row-gap: 15px;
        width: 100%;
    }
    #gallery.blurred {
        filter: blur(5px);
        opacity: 0.5;
        pointer-events: auto;
    }
    #gallery .media-item {
        box-sizing: border-box;
        height: auto;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    #gallery img,
    #gallery video {
        border: 2px solid var(--sidebar-red);
        border-radius: 4px;
        display: block;
        height: 140px !important;
        object-fit: cover;
        transform: translateZ(0);
        width: 140px !important;
        will-change: transform, opacity;
    }
    .media-caption {
        display: none;
    }
    .council-content {
        background: transparent;
        height: auto;
        margin-top: 80px;
        min-height: auto;
    }
    main.blurred {
        opacity: 0.5;
        pointer-events: none;
    }
    .back-to-top-btn {
        background-color: var(--sidebar-red);
        border: none;
        border-radius: 8px;
        bottom: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        color: var(--text-white);
        cursor: pointer;
        display: block !important;
        font-family: Impact, sans-serif;
        font-size: 0.85em;
    letter-spacing: 0.5px;
        padding: 10px 20px;
        pointer-events: auto !important;
        position: fixed;
        right: 20px;
        transition:
            background-color 0.3s ease-in-out,
            box-shadow 0.3s ease-in-out;
        z-index: 1000;
    }
    .back-to-top-btn:focus,
    .back-to-top-btn:hover {
        background-color: var(--hover-red);
        box-shadow: 0 4px 8px var(--shadow-red);
        outline: none;
    }
    .back-to-top-btn.hidden {
        display: none;
    }
    .button-footer {
        align-items: center;
        bottom: 20px;
        display: flex;
        gap: 6px;
        justify-content: center;
        left: 50%;
        pointer-events: auto !important;
        position: fixed;
        transform: translateX(-50%);
        transition: opacity 0.3s ease-in-out;
        z-index: 1001;
    }
    .button-footer .top-btn-mobile {
        background-color: var(--sidebar-red);
        border: none;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        cursor: pointer;
        display: block;
        height: 30px;
        padding: 5px;
        pointer-events: auto !important;
        transition:
            background-color 0.3s ease-in-out,
            box-shadow 0.3s ease-in-out;
        width: 30px;
    }
    .button-footer .top-btn-mobile:active,
    .button-footer .top-btn-mobile:focus,
    .button-footer .top-btn-mobile:hover {
        background-color: var(--hover-red);
        box-shadow: 0 6px 12px var(--shadow-red);
        outline: none;
    }
    .button-footer .top-btn-mobile.active {
        background-color: var(--hover-red);
        box-shadow: 0 6px 12px var(--shadow-red);
    }
    .button-footer .top-btn-mobile:not(.active) {
        background-color: var(--sidebar-red);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
    .button-footer .latest-btn-mobile {
        height: 40px;
        width: 80px;
    }
    .button-footer .menu-btn {
        background-color: var(--sidebar-red);
        border: none;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        color: var(--text-white);
        cursor: pointer;
        display: block !important;
        font-family: Impact, sans-serif;
        font-size: 0.85em;
    letter-spacing: 0.5px;
        height: 40px;
        padding: 10px 20px;
        pointer-events: auto !important;
        text-align: center;
        text-transform: uppercase;
        transition:
            background-color 0.3s ease-in-out,
            box-shadow 0.3s ease-in-out;
        width: 80px;
        z-index: 1001;
    }
    .button-footer .menu-btn:focus,
    .button-footer .menu-btn:hover {
        background-color: var(--hover-red);
        box-shadow: 0 6px 12px var(--shadow-red);
        outline: none;
    }
    .button-footer .random-meme-btn-mobile {
        height: 40px;
        width: 90px;
    }
    .button-footer .magnify-btn-mobile {
        display: block;
        height: 30px;
        padding: 5px;
        width: 30px;
    }
    .magnify-btn {
        display: none !important;
    }
    .menu-toggle {
        display: none;
    }
    main {
        margin-left: 0;
        padding: 10px;
    }
    .container {
        flex-direction: column;
    }
    .meme-viewer-content {
        min-height: calc(100vh - 60px);
        padding-bottom: 60px;
    }
    .meme-viewer img,
    .meme-viewer video {
        margin: 10px auto;
        max-height: 300px;
        max-width: 300px;
    }
    .header-content {
        gap: 6px;
    }
    h1 {
        font-size: 1.5em;
    }
    .button-group {
        align-items: center;
        flex-direction: row;
        gap: 15px;
        justify-content: center;
        margin-top: 20px;
        padding: 0;
        width: 100%;
    }
    #dump-collections-btn img,
    #dump-it img,
    #dump-pics-btn img,
    #dump-videos-btn img,
    #latest-btn img,
    #random-meme-btn img,
    #search-btn img {
        height: auto;
        margin-left: 8px;
        width: 40px;
    }
    #search-input {
        font-size: 0.9em;
        max-width: 350px;
        padding: 4px 12px;
    }
    #tags-btn {
        background-color: var(--bg-color);
        border: 2px solid var(--sidebar-red);
        border-radius: 8px;
        box-shadow:
            0 2px 4px rgba(0, 0, 0, 0.5),
            inset 0 0 5px var(--shadow-red);
        color: var(--text-white);
        cursor: pointer;
        display: block !important;
        font-family: Oswald, sans-serif;
        font-size: 0.8em;
        height: 35px;
        padding: 4px 8px;
        transition:
            border-color 0.3s ease-in-out,
            box-shadow 0.3s ease-in-out;
        width: 60px;
        z-index: 1001;
    }
    #tags-btn:focus,
    #tags-btn:hover {
        border-color: var(--hover-red);
        box-shadow: 0 4px 8px var(--shadow-red);
        outline: none;
    }
}
@media (max-width: 480px) {
    body {
        background-color: var(--bg-color);
        box-sizing: border-box;
        margin: 0 !important;
        overflow-x: hidden;
        padding: 0 !important;
    }
    .container {
        box-sizing: border-box;
        display: block;
        margin: 0 !important;
        min-height: auto;
        padding: 0 !important;
        position: relative;
        width: 100%;
    }
    .overlay.active {
        background-color: rgba(0, 0, 0, 0.5);
        cursor: pointer;
        display: block;
        height: 100%;
        left: 0;
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1049 !important;
    }
    main {
        background: transparent;
        box-sizing: border-box;
        margin: 0 !important;
        min-height: 100vh;
        padding: 0 0 70px !important;
        width: 100%;
    }
    body:has(.council-content) main {
        height: auto;
        overflow-y: auto;
    }
    .latest-btn-mobile,
    .menu-btn,
    .random-meme-btn-mobile {
        background-color: var(--sidebar-red);
        display: block;
        opacity: 0.9;
    }
    .header-content {
        gap: 0 !important;
    }
    .header-content,
    .sticky-header {
        margin: 0 !important;
        padding: 0 !important;
    }
    .sticky-header {
        background-color: var(--bg-color);
        box-shadow: none;
        position: static;
        position: relative;
        width: 100%;
        z-index: 1001;
    }
    .sticky-header h1 {
        display: none;
    }
    .sticky-header #search-line {
        background-color: var(--sidebar-red);
        box-shadow:
            0 0 12px rgba(185, 11, 42, 0.6),
            0 0 20px rgba(185, 11, 42, 0.4);
        height: 6px;
        left: 0;
        margin: 0 auto;
        max-width: 100%;
        position: fixed;
        right: 0;
        top: 0;
        transform: scale(1.5, 1.2);
        transform-origin: center;
        width: 100%;
        z-index: 1002;
    }
    .sticky-header p {
        display: none;
    }
    .sticky-header .button-group {
        display: none !important;
    }
    .button-group #dump-it,
    .button-group #dump-pics-btn,
    .button-group #dump-videos-btn,
    .button-group #latest-btn,
    .button-group #random-meme-btn,
    .button-group #search-btn,
    .button-group #toggle-media-btn {
        display: none;
    }
    body:not(:has(#latest-btn[aria-label*="Bobo collections"])) .sticky-header #search-container {
        align-items: center;
        display: flex !important;
        flex-direction: row;
        gap: 8px;
        height: auto;
        justify-content: center;
        left: 50%;
        margin: 0;
        max-width: 300px;
        opacity: 1 !important;
        padding: 0;
        position: absolute;
        top: 6px !important;
        transform: translateX(-50%);
        transition: top 0.2s ease-out;
        width: 100%;
        z-index: 1000;
    }
    body:not(:has(#latest-btn[aria-label*="Bobo collections"])) .sticky-header #search-container.active {
        animation: dropDown 0.2s ease-out forwards;
        display: flex;
        top: 6px;
    }
    body:not(:has(#latest-btn[aria-label*="Bobo collections"])) .sticky-header #search-container:not(.active) {
        animation: closeUp 0.2s ease-in forwards;
        display: none;
        top: -40px;
    }
    @keyframes dropDown {
        0% {
            opacity: 0;
            top: -40px;
        }
        to {
            opacity: 1;
            top: 6px;
        }
    }
    @keyframes closeUp {
        0% {
            opacity: 1;
            top: 6px;
        }
        to {
            opacity: 0;
            top: -40px;
        }
    }
    body:not(:has(#latest-btn[aria-label*="Bobo collections"])):not(:has(#latest-btn[aria-label*="Bobo Council"]))
        .gallery-wrapper {
        margin-top: 48px !important;
        max-height: calc(100vh - 98px);
        min-height: calc(100vh - 98px);
    }
    body:has(#latest-btn[aria-label*="Bobo collections"]) .sticky-header #collection-filter {
        display: block !important;
        margin: 30px auto 10px !important;
        padding: 0 !important;
        position: static !important;
        width: 65vw !important;
        z-index: 1001 !important;
    }
    #search-input:not(:focus) {
        background-color: var(--bg-color);
        opacity: 0.8;
    }
    #search-input {
        background-color: var(--bg-color);
        border: 2px solid var(--sidebar-red);
        border-radius: 8px;
        box-shadow:
            0 2px 4px rgba(0, 0, 0, 0.5),
            inset 0 0 5px var(--shadow-red);
        color: var(--text-white);
        display: block;
        font-family: Oswald, sans-serif;
        height: 30px;
        margin: 0;
        padding: 4px 30px 4px 12px;
        transition:
            border-color 0.3s ease-in-out,
            box-shadow 0.3s ease-in-out;
        width: 100%;
    }
    #search-input:focus {
        border-color: var(--hover-red);
        box-shadow: 0 4px 8px var(--shadow-red);
        outline: none;
    }
    #search-input::placeholder {
        color: var(--text-white);
        opacity: 0.6;
    }
    #search-line {
        height: 6px;
        margin-top: -25px;
        max-width: 100%;
        transform: scale(1.5, 1.2);
        transform-origin: center;
    }
    .new-collection-select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-color: var(--bg-color);
        background-image: url('data:image/svg+xml;utf8,<svg fill="%23529952" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
        background-position: right 10px center;
        background-repeat: no-repeat;
        border: 2px solid var(--sidebar-red);
        border-radius: 8px;
        box-shadow:
            0 2px 4px rgba(0, 0, 0, 0.5),
            inset 0 0 5px var(--shadow-red);
        box-sizing: border-box;
        color: var(--text-white);
        font-family: Oswald, sans-serif;
        font-size: 0.9em;
        margin: 5px auto;
        max-width: 250px;
        padding: 8px 12px;
        transition:
            border-color 0.3s ease-in-out,
            box-shadow 0.3s ease-in-out;
        width: 100%;
    }
    .new-collection-select:focus,
    .new-collection-select:hover {
        border-color: var(--hover-red);
        box-shadow: 0 4px 8px var(--shadow-red);
        outline: none;
    }
    .new-collection-select option {
        background-color: var(--bg-color);
        color: var(--text-white);
        font-family: Oswald, sans-serif;
    }
    .sticky-header:has(#latest-btn[aria-label*="Bobo Council"]) #search-container {
        display: none;
    }
    .sticky-header:has(#latest-btn[aria-label*="Bobo Council"]) ~ .gallery-wrapper {
        margin-top: 106px !important;
    }
    .gallery-wrapper:after,
    .gallery-wrapper:before {
        display: none !important;
    }
    #gallery {
        box-sizing: border-box;
        column-gap: 8px;
        contain-intrinsic-size: 110px 110px;
        content-visibility: auto;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        justify-items: center;
        margin: 0 !important;
        max-width: 100%;
        padding: 5px !important;
        row-gap: 12px;
        width: 100%;
    }
    #gallery.blurred {
        filter: blur(5px);
        opacity: 0.5;
        pointer-events: auto;
    }
    #gallery .media-item {
        box-sizing: border-box;
        height: auto;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    #gallery img,
    #gallery video {
        border: 2px solid var(--sidebar-red);
        border-radius: 4px;
        display: block;
        height: 110px !important;
        object-fit: cover;
        transform: translateZ(0);
        width: 110px !important;
        will-change: transform, opacity;
    }
    .media-caption {
        display: none;
    }
    .council-content {
        background: transparent;
        height: auto;
        margin-top: 80px;
        min-height: auto;
    }
    main.blurred {
        opacity: 0.5;
        pointer-events: none;
    }
    .back-to-top-btn {
        display: none !important;
    }
    .button-footer {
        align-items: center;
        bottom: 20px;
        display: flex;
        gap: 6px;
        justify-content: center;
        left: 50%;
        position: fixed;
        transform: translateX(-50%);
        transition: opacity 0.3s ease-in-out;
        z-index: 1001;
    }
    .button-footer .top-btn-mobile {
        background-color: var(--sidebar-red);
        border: none;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        cursor: pointer;
        display: block;
        height: 30px;
        padding: 5px;
        transform: translateZ(0);
        transition:
            background-color 0.3s ease-in-out,
            box-shadow 0.3s ease-in-out;
        width: 30px;
        will-change: transform, box-shadow, background-color;
    }
    .button-footer .top-btn-mobile:active,
    .button-footer .top-btn-mobile:focus,
    .button-footer .top-btn-mobile:hover {
        background-color: var(--hover-red);
        box-shadow: 0 6px 12px var(--shadow-red);
        outline: none;
    }
    .button-footer .top-btn-mobile.active {
        background-color: var(--hover-red);
        box-shadow: 0 6px 12px var(--shadow-red);
    }
    .button-footer .top-btn-mobile:not(.active) {
        background-color: var(--sidebar-red);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
    .button-footer .latest-btn-mobile,
    .button-footer .menu-btn {
        height: 40px;
        width: 80px;
    }
    .button-footer .random-meme-btn-mobile {
        height: 40px;
        width: 90px;
    }
    .button-footer .magnify-btn-mobile {
        display: block;
        height: 30px;
        padding: 5px;
        width: 30px;
    }
    .magnify-btn {
        display: none !important;
    }
    .menu-toggle {
        display: none;
    }
    main {
        margin-left: 0;
        padding: 10px;
    }
    .container {
        flex-direction: column;
    }
    .meme-viewer-content {
        min-height: calc(100vh - 60px);
        padding-bottom: 60px;
    }
    .meme-viewer img,
    .meme-viewer video {
        margin: 10px auto;
        max-height: 200px;
        max-width: 200px;
        transform: translateZ(0);
        will-change: transform, box-shadow;
    }
    .header-content {
        gap: 6px;
    }
    h1 {
        font-size: 1.5em;
    }
    .button-group {
        align-items: center;
        flex-direction: row;
        gap: 15px;
        justify-content: center;
        margin-top: 20px;
        padding: 0;
        width: 100%;
    }
    #dump-collections-btn img,
    #dump-it img,
    #dump-pics-btn img,
    #dump-videos-btn img,
    #latest-btn img,
    #random-meme-btn img,
    #search-btn img {
        height: auto;
        margin-left: 8px;
        width: 40px;
    }
    #search-input {
        font-size: 0.8em;
        max-width: 250px;
        padding: 4px 12px;
    }
    #tags-btn {
        background-color: var(--bg-color);
        border: 2px solid var(--sidebar-red);
        border-radius: 8px;
        box-shadow:
            0 2px 4px rgba(0, 0, 0, 0.5),
            inset 0 0 5px var(--shadow-red);
        color: var(--text-white);
        cursor: pointer;
        display: block !important;
        font-family: Oswald, sans-serif;
        font-size: 0.7em;
        height: 30px;
        padding: 4px 8px;
        transform: translateZ(0);
        transition:
            border-color 0.3s ease-in-out,
            box-shadow 0.3s ease-in-out;
        width: 50px;
        will-change: transform, box-shadow, border-color;
        z-index: 1001;
    }
    #tags-btn:focus,
    #tags-btn:hover {
        border-color: var(--hover-red);
        box-shadow: 0 4px 8px var(--shadow-red);
        outline: none;
    }
    #toggle-videos-gifs-btn-mobile {
        align-items: center;
        background-color: var(--bg-color);
        border: 2px solid var(--sidebar-red);
        border-radius: 8px;
        box-shadow:
            0 2px 4px rgba(0, 0, 0, 0.5),
            inset 0 0 5px var(--shadow-red);
        box-sizing: border-box;
        color: var(--text-white);
        cursor: pointer;
        display: block !important;
        display: flex;
        font-family: Oswald, sans-serif;
        font-size: 0.7em;
        height: 30px;
        justify-content: space-between;
        padding: 4px 8px;
        transform: translateZ(0);
        transition:
            border-color 0.3s ease-in-out,
            box-shadow 0.3s ease-in-out;
        width: 50px;
        will-change: transform, box-shadow, background-color;
        z-index: 1001;
    }
    #toggle-videos-gifs-btn-mobile:focus,
    #toggle-videos-gifs-btn-mobile:hover {
        border-color: var(--hover-red);
        box-shadow: 0 4px 8px var(--shadow-red);
        outline: none;
    }
    #toggle-videos-gifs-btn-mobile img {
        height: 16px;
        margin-left: 4px;
        width: 16px;
    }
    #tags-menu {
        background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
        border: 2px solid var(--sidebar-red);
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
        display: none;
        height: auto;
        left: 0;
        max-width: 360px;
        padding: 15px;
        position: absolute;
        top: 100%;
        width: 100%;
        z-index: 1002;
    }
    .tags-columns {
        display: flex;
        gap: 5px;
        justify-content: space-between;
    }
    .tags-column {
        flex: 1;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .tags-column li {
        margin: 5px 0;
    }
    .tags-column .tag-option {
        background: none;
        border: none;
        color: var(--text-white);
        cursor: pointer;
        font-family: Oswald, sans-serif;
        font-size: 0.65em;
        padding: 6px;
        text-align: center;
        transform: translateZ(0);
        transition: background-color 0.3s ease-in-out;
        width: 100%;
        will-change: background-color;
    }
    .tags-column .tag-option:focus,
    .tags-column .tag-option:hover {
        background-color: var(--hover-red);
        outline: none;
    }
    #tags-menu .close-tags-btn {
        background: none;
        border: none;
        color: var(--sidebar-red);
        cursor: pointer;
        font-size: 1.2em;
        height: 20px;
        line-height: 20px;
        padding: 0;
        position: absolute;
        right: 5px;
        text-align: center;
        top: 5px;
        transform: translateZ(0);
        width: 20px;
        will-change: color;
    }
    #tags-menu .close-tags-btn:hover {
        color: var(--hover-red);
    }
    .market-cap-widget,
    .stats-widget {
        height: auto;
        max-width: 100%;
    }
    .council-links {
        align-items: center;
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 6px;
    }
    .council-links p {
        text-align: center;
    }
    .council-links .button-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    .council-btn {
        font-size: 0.8em;
        max-width: 100px;
        padding: 8px 16px;
        white-space: nowrap;
    }
    .market-cap-widget {
        display: none !important;
    }
    #scoreboard-content .holder-memes-row {
        flex-direction: column;
        gap: 5px;
    }
    #scoreboard-content p.holder-memes {
        display: block;
    }
    #dextools-widget {
        display: none !important;
    }
    .mobile-only {
        display: block;
    }
    .bobo-of-the-day h2 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    .bobo-of-the-day-img {
        border: 2px solid var(--sidebar-red);
        border-radius: 8px;
        box-sizing: border-box;
        display: block;
        height: auto !important;
        margin: 0 auto;
        max-height: 150px !important;
        max-width: 100% !important;
        object-fit: contain;
        transform: translateZ(0);
        width: 150px !important;
        will-change: transform, opacity;
    }
    .bobo-of-the-day {
        margin-top: 15px;
        max-width: 150px;
        overflow: hidden;
    }
    .bobo-of-the-day,
    .stats-widget {
        height: auto;
        text-align: center;
        width: 100%;
    }
    .stats-widget {
        background: #2a2a2a;
        border: 2px solid var(--sidebar-red);
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        max-width: 400px;
        padding: 15px;
        position: relative;
        transition:
            box-shadow 0.3s ease-in-out,
            border-color 0.3s ease-in-out;
        z-index: 1;
    }
    @media (min-width: 481px) {
        .bobo-of-the-day-img {
            height: auto !important;
            max-height: 200px !important;
            max-width: 100% !important;
            width: 200px !important;
        }
        .bobo-of-the-day {
            max-width: 200px;
        }
    }
    #search-container {
        display: block;
        margin: 10px auto 0;
        text-align: center;
    }
    .media-item {
        padding: 5px;
    }
    .media-caption {
        font-size: 0.8em;
        margin: 3px 0 0;
        max-width: 200px;
        padding: 3px;
    }
    .play-button {
        font-size: 14px;
        height: 28px;
        padding: 0;
        width: 28px;
    }
    .social-btn {
        height: 1.2em;
        margin: 0 5px;
        width: 4.8em;
    }
    .social-icon {
        max-height: 42px;
        max-width: 42px;
    }
    .target-text {
        gap: 5px;
    }
    .sticky-header {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    #toggle-media-btn-mobile.random-meme-btn-mobile {
        background-color: var(--sidebar-red);
        border: none;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        color: var(--text-white);
        cursor: pointer;
        font-family: Impact, sans-serif;
        font-size: 0.85em;
    letter-spacing: 0.5px;
        height: 40px;
        padding: 10px 20px;
        text-align: center;
        text-transform: uppercase;
        transform: translateZ(0);
        transition:
            background-color 0.3s ease-in-out,
            box-shadow 0.3s ease-in-out;
        width: 90px;
        will-change: transform, box-shadow, background-color;
        z-index: 1001;
    }
    #toggle-media-btn-mobile.random-meme-btn-mobile:focus,
    #toggle-media-btn-mobile.random-meme-btn-mobile:hover {
        background-color: var(--hover-red);
        box-shadow: 0 6px 12px var(--shadow-red);
        outline: none;
    }
    .clear-search-btn {
        display: block !important;
        right: 10px;
    }
    #collection-select {
        background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
        background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
        background-position: right 15px center;
        background-repeat: no-repeat;
        border: 2px solid hsla(0, 0%, 100%, 0.2);
        border-radius: 20px;
        box-shadow:
            0 0 15px rgba(82, 153, 82, 0.3),
            inset 0 0 5px hsla(0, 0%, 100%, 0.1);
        color: var(--text-white);
        font-size: 1.3em;
        font-weight: 600;
        height: 50px;
        margin: 0 !important;
        padding: 8px 30px;
        transition: box-shadow 0.3s ease-in-out;
        width: 65vw !important;
    }
    #collection-select:focus,
    #collection-select:hover {
        box-shadow:
            0 0 20px rgba(185, 11, 42, 0.5),
            inset 0 0 8px hsla(0, 0%, 100%, 0.2);
        outline: none;
    }
    #collection-select option {
        background: rgba(185, 11, 42, 0.6);
        color: var(--text-white);
        font-size: 1.3em;
    }
    .keyboard-trigger {
        pointer-events: auto;
    }
    .chrome-extension-btn {
        margin: 10px auto;
        max-width: 300px;
        width: 60%;
    }
    .chrome-extension-img {
        border: 2px solid var(--sidebar-red);
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        display: block;
        height: auto;
        transform: translateZ(0);
        width: 100%;
        will-change: transform, opacity;
    }
}
@media (max-width: 768px) {
    #gallery {
        contain-intrinsic-size: 150px 150px;
        content-visibility: auto;
        grid-template-columns: repeat(3, 1fr);
    }
    #gallery img,
    #gallery video {
        height: 150px;
        max-width: 150px;
        transform: translateZ(0);
        width: 150px;
        will-change: transform, opacity;
    }
/* Wider phones: keep same gaps as narrow phones, just fill columns fully */
@media (min-width: 390px) and (max-width: 768px) {
    #gallery img,
    #gallery video {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
    }
}
    .market-cap-widget,
    .stats-widget {
        box-sizing: border-box;
        height: auto;
        max-width: 100%;
        overflow: hidden;
        padding: 15px;
    }
    .council-links {
        align-items: center;
        flex-direction: row !important;
    }
    .council-links p {
        text-align: center;
    }
    #scoreboard-content .holder-memes-row {
        flex-direction: column;
        gap: 5px;
    }
    #scoreboard-content p.holder-memes {
        display: block;
    }
    .download-counter {
        bottom: 5px;
        font-size: 0.6em;
        right: 5px;
    }
    .bobo-of-the-day {
        margin-top: 15px;
        max-width: 100%;
        overflow: hidden;
        text-align: center;
    }
}
body:has(.meme-viewer-content) .overlay.active {
    pointer-events: all !important;
    z-index: 1049 !important;
}
#sentinel {
    clear: both;
    height: 1px;
    position: relative;
    width: 100%;
    z-index: 1;
}
#collection-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23529952" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-position: right 15px center;
    background-repeat: no-repeat;
    border: 2px solid var(--sidebar-red);
    border-radius: 12px;
    box-shadow:
        0 0 15px rgba(82, 153, 82, 0.3),
        inset 0 0 5px hsla(0, 0%, 100%, 0.1);
    color: var(--text-white);
    cursor: pointer;
    font-family: Oswald, sans-serif;
    font-size: 1.2em;
    font-weight: 600;
    max-width: 400px;
    padding: 10px 40px 10px 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    transition:
        box-shadow 0.3s ease-in-out,
        border-color 0.3s ease-in-out;
    width: 100%;
}
#collection-select:focus,
#collection-select:hover {
    border-color: var(--hover-red);
    box-shadow:
        0 0 20px rgba(185, 11, 42, 0.5),
        inset 0 0 8px hsla(0, 0%, 100%, 0.2);
    outline: none;
}
#collection-select option {
    background: rgba(185, 11, 42, 0.6);
    color: var(--text-white);
    font-family: Oswald, sans-serif;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    padding: 10px;
}
@media (max-width: 480px) {
    #collection-select {
        background-image: url('data:image/svg+xml;utf8,<svg fill="%23529952" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
        background-position: right 15px center;
        background-repeat: no-repeat;
        border-radius: 20px;
        font-size: 1.3em;
        font-weight: 600;
        height: 50px;
        max-width: 65vw;
        padding: 8px 30px 8px 12px;
        width: 65vw !important;
    }
    #collection-select option {
        font-size: 1.3em;
    }
}
@media (max-width: 1040px) {
    .rss-ticker-wrapper {
        display: none !important;
    }
}
@media (max-width: 1040px) {
    #collection-select {
        background-image: url('data:image/svg+xml;utf8,<svg fill="%23529952" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
        background-position: right 15px center;
        background-repeat: no-repeat;
        border-radius: 20px;
        font-size: 1.3em;
        font-weight: 600;
        height: 50px;
        max-width: 400px;
        padding: 8px 30px 8px 12px;
        width: 65vw !important;
    }
    #collection-select option {
        font-size: 1.3em;
    }
    .button-footer {
        align-items: center;
        bottom: 20px;
        display: flex;
        gap: 6px;
        justify-content: center;
        left: 50%;
        pointer-events: auto;
        position: fixed;
        transform: translateX(-50%);
        z-index: 1001;
    }
    .button-footer .menu-btn,
    .button-footer .top-btn-mobile {
        cursor: pointer;
        pointer-events: auto;
    }
    main {
        height: calc(100vh - 60px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    .stats-widget {
        max-width: 100%;
        overflow: hidden;
        padding: 15px;
    }
    .bobo-of-the-day {
        align-items: center;
        display: flex;
        flex-direction: column;
        margin-top: 15px;
        position: relative;
    }
    .bobo-of-the-day h2 {
        font-size: 2.5em;
        margin-bottom: 10px;
        position: relative;
    }
    .bobo-of-the-day h2:before {
        background-color: var(--sidebar-red);
        content: "";
        height: 2px;
        left: 50%;
        position: absolute;
        top: -10px;
        transform: translateX(-50%);
        width: 50%;
    }
    .bobo-of-the-day-img {
        height: auto !important;
        max-height: 300px !important;
        max-width: 100% !important;
        transform: translateZ(0);
        width: 300px !important;
        will-change: transform, opacity;
    }
    .widget-container {
        align-items: center;
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .market-cap-widget {
        box-sizing: border-box;
        margin-bottom: 15px;
        max-width: 600px;
        overflow: hidden;
        width: 100%;
    }
    .market-cap-widget img {
        display: block !important;
        height: auto !important;
        margin: 10px auto !important;
        max-height: 200px !important;
        max-width: 100% !important;
        transform: translateZ(0);
        width: auto !important;
        will-change: transform, opacity;
    }
    .stats-widget {
        box-sizing: border-box;
        margin-top: 15px;
        max-width: 600px;
        width: 100%;
    }
    .holder-memes-row p,
    .scoreboard-content p {
        font-size: 0.85em;
        white-space: normal;
        word-break: break-word;
    }
    .holder-memes-row {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .chrome-extension-btn {
        display: block;
        margin: 15px auto;
        max-width: 500px;
        width: 80%;
    }
    .chrome-extension-img {
        border: 2px solid var(--sidebar-red);
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        display: block;
        height: auto;
        transform: translateZ(0);
        width: 100%;
        will-change: transform, opacity;
    }
    .council-links {
        margin-top: 20px;
    }
    .council-btn {
        font-size: 0.99em;
        padding: 10.8px 21.6px;
    }
}
@media (min-width: 1041px) {
    .council-content {
        align-items: center !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .council-content .chrome-extension-btn {
        display: block !important;
        margin: 10px auto 20px !important;
        max-width: 400px !important;
        width: 80% !important;
    }
    .council-content .chrome-extension-img {
        border: 2px solid var(--sidebar-red) !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
        display: block !important;
        height: auto !important;
        transform: translateZ(0);
        width: 100% !important;
        will-change: transform, opacity;
    }
    .council-content .chrome-extension-btn:hover {
        box-shadow: 0 4px 8px var(--shadow-red) !important;
        transform: scale(1.05) !important;
    }
    .council-content .council-buttons {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        margin: 0 auto 10px !important;
    }
    .council-content .council-btn {
        font-size: 0.99em;
        margin: 0 !important;
        padding: 10.8px 21.6px;
    }
    .council-content .council-contracts {
        margin: 10px 0 !important;
        text-align: center !important;
    }
    .council-content .widget-container {
        align-items: flex-start !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 20px !important;
        justify-content: center !important;
        margin: 20px 0 !important;
        max-width: 1200px !important;
        width: 100% !important;
    }
    .council-content .market-cap-widget,
    .council-content .stats-widget {
        box-sizing: border-box !important;
        flex: 1 1 400px !important;
        max-width: 500px !important;
        min-width: 400px !important;
        overflow: hidden !important;
        padding: 15px !important;
    }
    .council-content .market-cap-widget img {
        display: block !important;
        height: auto !important;
        margin: 10px auto !important;
        max-height: 200px !important;
        max-width: 100% !important;
        transform: translateZ(0);
        width: auto !important;
        will-change: transform, opacity;
    }
    .council-content .bobo-of-the-day {
        align-items: center !important;
        display: flex !important;
        flex-direction: column !important;
        margin-top: 15px !important;
    }
    .council-content .bobo-of-the-day h2 {
        margin-bottom: 5px !important;
    }
    .council-content .bobo-of-the-day-img {
        height: auto !important;
        margin: 0 auto !important;
        max-height: 200px !important;
        max-width: 100% !important;
        transform: translateZ(0);
        width: 200px !important;
        will-change: transform, opacity;
    }
    .council-content .council-social-links {
        align-items: center !important;
        display: flex !important;
        flex-direction: column !important;
        margin-top: 20px !important;
    }
    .council-content .target-text {
        display: flex !important;
        gap: 10px !important;
        justify-content: center !important;
        margin-top: 10px !important;
    }
}
.council-links .button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
@media (max-width: 480px) {
    .council-links .button-row {
        flex-wrap: wrap;
        gap: 8px;
    }
}
@media (max-width: 1040px) {
    body:not(:has(#latest-btn[aria-label*="Bobo collections"])) .sticky-header #search-container {
        align-items: center;
        display: flex !important;
        flex-direction: row;
        gap: 8px;
        height: auto;
        justify-content: center;
        left: 48%;
        margin: 0;
        max-width: 300px;
        opacity: 1 !important;
        padding: 0;
        position: absolute;
        top: 6px;
        transform: translateX(calc(-50% - 15px));
        transition: top 0.2s ease-out;
        width: 90%;
        z-index: 1000;
    }
}
@media (max-width: 1040px) {
    .clear-search-btn {
        right: 999px;
    }
}
@media (min-width: 1041px) {
    .sticky-header {
        background-color: var(--bg-color);
        box-shadow: none;
        flex-direction: column;
        margin: 0;
        padding: 0;
        position: static;
        width: 100%;
        z-index: 1000;
    }
    .button-group,
    .sticky-header {
        align-items: center;
        display: flex;
        min-width: 600px;
    }
    .button-group {
        gap: 15px;
        justify-content: center;
        margin: 10px 0 0;
    }
    #search-container.active,
    #search-container:not(.hidden) {
        align-items: center;
        display: flex !important;
        gap: 6px;
        justify-content: center;
        margin: 30px auto;
        max-width: 600px;
        padding: 0;
        position: static;
        width: 100%;
        z-index: 1001;
    }
    #search-container.active #tags-btn,
    #search-container:not(.hidden) #tags-btn {
        display: block !important;
        margin: 0;
    }
    #search-container.active .search-input-container .clear-search-btn,
    #search-container:not(.hidden) .search-input-container .clear-search-btn {
        display: block !important;
        margin: 0 !important;
        right: 12px !important;
    }
    #search-input {
        background-color: var(--text-white);
        border: 2px solid var(--sidebar-red);
        border-radius: 8px;
        color: var(--bg-color);
        font-size: 0.85em;
    letter-spacing: 0.5px;
        padding: 10px 40px 10px 15px;
        width: 400px;
    }
    .clear-search-btn {
        right: 8px !important;
    }
}
@media (max-width: 480px) {
    .clear-search-btn {
        background: none;
        border: none;
        color: var(--sidebar-red);
        cursor: pointer;
        display: block !important;
        font-size: 1.2em;
        height: 20px;
        line-height: 20px;
        margin: 0;
        padding: 0;
        position: absolute;
        right: 10px;
        text-align: center;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
    }
    #search-input {
        padding-right: 40px;
    }
    .search-input-container {
        max-width: 250px;
        position: relative;
        width: 100%;
    }
}
@media (max-width: 1040px) {
    .clear-search-btn {
        background: none;
        border: none;
        color: var(--sidebar-red);
        cursor: pointer;
        display: block !important;
        font-size: 1.2em;
        height: 20px;
        line-height: 20px;
        margin: 0;
        padding: 0;
        position: absolute;
        right: 20px;
        text-align: center;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
    }
    #search-input {
        padding-right: 60px;
    }
    .search-input-container {
        max-width: 350px;
        position: relative;
        width: 100%;
    }
}
@keyframes ghostlyFade {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}


.notification-badge {
    background: none;
    border-radius: 0;
    box-shadow: none;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    line-height: normal;
    min-width: auto;
    padding: 0;
    text-align: center;
}
#dump-collections-btn:active,
#dump-it:active,
#dump-pics-btn:active,
#dump-videos-btn:active,
#latest-btn:active,
#random-meme-btn:active,
#search-btn:active {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition:
        transform 0.1s ease-in-out,
        box-shadow 0.1s ease-in-out;
}
@media (min-width: 1041px) {
    #dump-collections-btn:active,
    #dump-it:active,
    #dump-pics-btn:active,
    #dump-videos-btn:active,
    #latest-btn:active,
    #random-meme-btn:active,
    #search-btn:active {
        background-color: var(--hover-red);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        outline: none;
        transform: scale(0.95);
    }
    #gallery.no-animations .media-item,
    #gallery.no-animations img,
    #gallery.no-animations video {
        animation: none !important;
        transition: none !important;
    }
    #gallery img,
    #gallery video {
        transition:
            transform 0.1s ease-in-out,
            box-shadow 0.1s ease-in-out,
            opacity 0.1s ease-in-out;
    }
    #gallery img:active,
    #gallery video:active {
        transition: none;
    }
    #gallery.crashing .media-item {
        animation: marketCrash 0.2s ease-out forwards;
    }
    @keyframes marketCrash {
        0% {
            opacity: 0;
            transform: translateY(-50px);
        }
        70% {
            opacity: 1;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    .fade-in {
        animation: fadeIn 0.3s ease-in;
    }
    @keyframes fadeIn {
        0% {
            opacity: 0;
            transform: translateY(5px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
.media-item.loading {
    filter: brightness(0.8);
    opacity: 0.7;
    transition:
        opacity 0.02s ease-in-out,
        filter 0.02s ease-in-out;
}
body.loading {
    overflow: hidden;
    visibility: hidden;
}
body {
    overflow: auto;
    visibility: visible;
}
#gallery.no-animations .media-item,
#gallery.no-animations img,
#gallery.no-animations video {
    animation: none !important;
    transition: none !important;
}
#gallery img,
#gallery video {
    transition:
        transform 0.1s ease-in-out,
        box-shadow 0.1s ease-in-out,
        opacity 0.1s ease-in-out;
}
#gallery img:active,
#gallery video:active {
    transition: none;
}
#gallery.crashing .media-item {
    animation: marketCrash 0.2s ease-out forwards;
}
@keyframes marketCrash {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    70% {
        opacity: 1;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in {
    animation: fadeIn 0.3s ease-in;
}
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 480px) {
    @supports (-webkit-overflow-scrolling: touch) {
        main {
            overflow-x: hidden;
            overscroll-behavior-x: none;
            touch-action: pan-y;
            -webkit-overflow-scrolling: touch;
        }
    }
}
/* Ensure meme viewer container allows scrolling if needed */
#meme-viewer-container.active {
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    background: rgba(185, 11, 42, 0.6);
    z-index: 9999;
    overflow-y: auto;
}

/* Center the meme viewer content vertically */
.meme-viewer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Allow meme viewer to adjust to image size */
.meme-viewer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    width: auto;
    height: auto;
}

/* Safety constraints for images, but allow dynamic resizing */
.meme-viewer img, .meme-viewer video {
    max-height: 600px !important;
    max-width: 800px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border: 5px solid #b90b2a;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
    margin: 10px auto;
    transition: transform 0.3s ease-in-out;
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

/* Ensure buttons are visible and centered below the image */
.button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

/* Responsive adjustments */
@media (min-width: 481px) and (max-width: 1040px) {
    .meme-viewer img, .meme-viewer video {
        max-height: 300px !important;
        max-width: 400px !important;
        border: 3px solid #b90b2a;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
    }
}
@media (max-width: 480px) {
    .meme-viewer img, .meme-viewer video {
        max-height: 300px !important;
        max-width: 400px !important;
        border: 3px solid #b90b2a;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
    }
    .meme-viewer-content {
        min-height: calc(100vh - 60px);
        padding-bottom: 60px;
    }
    .button-container {
        flex-direction: column;
        gap: 6px;
    }
}

/* Ensure header remains below the meme viewer */
.sticky-header,
.header-content,
.button-group {
    z-index: 1000;
}

/* Ensure gallery container doesn’t interfere */
#gallery-container.active {
    display: block !important;
    position: relative;
    z-index: 1;
}

/* Hide the gallery completely while the meme viewer is open.
   The viewer is a fixed full-screen overlay, so the gallery must not
   remain visible underneath it. */
body.meme-viewer-active #gallery-container {
    display: none !important;
}
/* Ensure meme viewer container is positioned correctly */
#meme-viewer-container.active {
    display: block !important;
    width: 100%;
    min-height: 100vh;
    background: rgba(185, 11, 42, 0.6);
    z-index: 9999;
    overflow-y: auto;
}

/* Center the meme viewer content vertically */
.meme-viewer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Allow meme viewer to adjust to image size */
.meme-viewer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    width: auto;
    height: auto;
}

/* Safety constraints for images, but allow dynamic resizing */
.meme-viewer img, .meme-viewer video {
    max-height: 600px !important;
    max-width: 800px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border: 5px solid #b90b2a;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
    margin: 10px auto;
    transition: transform 0.3s ease-in-out;
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

/* Ensure buttons are visible and centered below the image */
.button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

/* Responsive adjustments */
@media (min-width: 481px) and (max-width: 1040px) {
    .meme-viewer img, .meme-viewer video {
        max-height: 300px !important;
        max-width: 400px !important;
        border: 3px solid #b90b2a;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
    }
}
@media (max-width: 480px) {
    #meme-viewer-container.active {
        position: fixed !important; /* Override dynamic position set by JS */
        top: 0 !important;
        left: 0 !important;
        height: 100dvh; /* Use dynamic viewport height for mobile */
        min-height: 100vh;
    }
    .meme-viewer img, .meme-viewer video {
        max-height: 300px !important;
        max-width: 400px !important;
        border: 3px solid #b90b2a;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
    }
    .meme-viewer-content {
        min-height: calc(100dvh - 60px);
        padding-bottom: 60px;
    }
    .button-container {
        flex-direction: column;
        gap: 6px;
    }
}

/* Ensure header remains below the meme viewer */
.sticky-header,
.header-content,
.button-group {
    z-index: 1000;
}

/* Ensure gallery container doesn’t interfere */
#gallery-container.active {
    display: block !important;
    position: relative;
    z-index: 1;
}

/* Ensure meme viewer container allows scrolling if needed */
#meme-viewer-container.active {
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    background: rgba(185, 11, 42, 0.6);
    z-index: 9999;
    overflow-y: auto;
}

/* Center the meme viewer content vertically */
.meme-viewer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Allow meme viewer to adjust to image size */
.meme-viewer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    width: auto;
    height: auto;
}

/* Safety constraints for images, but allow dynamic resizing */
.meme-viewer img, .meme-viewer video {
    max-height: 600px !important;
    max-width: 800px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border: 5px solid #b90b2a;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
    margin: 10px auto;
    transition: transform 0.3s ease-in-out;
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

/* Ensure buttons are visible and centered below the image */
.button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

/* Responsive adjustments */
@media (min-width: 481px) and (max-width: 1040px) {
    .meme-viewer img, .meme-viewer video {
        max-height: 300px !important;
        max-width: 400px !important;
        border: 3px solid #b90b2a;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
    }
}
@media (max-width: 480px) {
    .meme-viewer img, .meme-viewer video {
        max-height: 300px !important;
        max-width: 400px !important;
        border: 3px solid #b90b2a;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
    }
    .meme-viewer-content {
        min-height: calc(100vh - 60px);
        padding-bottom: 60px;
    }
    .button-container {
        flex-direction: column;
        gap: 6px;
    }
}

/* Ensure header remains below the meme viewer */
.sticky-header,
.header-content,
.button-group {
    z-index: 1000;
}

/* Ensure gallery container doesn’t interfere */
#gallery-container.active {
    display: block !important;
    position: relative;
    z-index: 1;
}
/* Ensure meme viewer container is positioned correctly */
#meme-viewer-container.active {
    display: block !important;
    width: 100%;
    min-height: 100vh;
    background: rgba(185, 11, 42, 0.6);
    z-index: 9999;
    overflow-y: auto;
}

/* Center the meme viewer content vertically */
.meme-viewer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Allow meme viewer to adjust to image size */
.meme-viewer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    width: auto;
    height: auto;
}

/* Safety constraints for images, but allow dynamic resizing */
.meme-viewer img, .meme-viewer video {
    max-height: 600px !important;
    max-width: 800px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border: 5px solid #b90b2a;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
    margin: 10px auto;
    transition: transform 0.3s ease-in-out;
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

/* Ensure buttons are visible and centered below the image */
.button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

/* Responsive adjustments */
@media (min-width: 481px) and (max-width: 1040px) {
    .meme-viewer img, .meme-viewer video {
        max-height: 300px !important;
        max-width: 400px !important;
        border: 3px solid #b90b2a;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
    }
}
@media (max-width: 480px) {
    #meme-viewer-container.active {
        position: fixed !important; /* Override dynamic position set by JS */
        top: 0 !important;
        left: 0 !important;
        height: 100dvh; /* Use dynamic viewport height for mobile */
        min-height: 100vh;
    }
    .meme-viewer img, .meme-viewer video {
        max-height: 300px !important;
        max-width: 400px !important;
        border: 3px solid #b90b2a;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
    }
    .meme-viewer-content {
        min-height: calc(100dvh - 60px);
        padding-bottom: 60px;
    }
    .button-container {
        flex-direction: column;
        gap: 6px;
    }
}

/* Ensure header remains below the meme viewer */
.sticky-header,
.header-content,
.button-group {
    z-index: 1000;
}

/* Ensure gallery container doesn’t interfere */
#gallery-container.active {
    display: block !important;
    position: relative;
    z-index: 1;
}

/* Global scroll lock when meme viewer is active */
body.meme-viewer-active {
    overflow: hidden !important;
    height: 100vh !important;
}

/* Ensure meme viewer container is fixed and full-screen */
#meme-viewer-container.active {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: rgba(185, 11, 42, 0.6);
    z-index: 9999;
    overflow: hidden !important;
}

/* Center the meme viewer content vertically */
.meme-viewer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Allow meme viewer to adjust to image size */
.meme-viewer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    width: auto;
    height: auto;
}

/* Safety constraints for images, but allow dynamic resizing */
.meme-viewer img, .meme-viewer video {
    max-height: 600px !important;
    max-width: 800px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border: 5px solid #b90b2a;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
    margin: 10px auto;
    transition: transform 0.3s ease-in-out;
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

/* Ensure buttons are visible and centered below the image */
.button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

/* Responsive adjustments */
@media (min-width: 481px) and (max-width: 1040px) {
    .meme-viewer img, .meme-viewer video {
        max-height: 300px !important;
        max-width: 400px !important;
        border: 3px solid #b90b2a;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
    }
}
@media (max-width: 480px) {
    #meme-viewer-container.active {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        height: 100dvh !important;
        min-height: 100vh;
    }
    .meme-viewer img, .meme-viewer video {
        max-height: 300px !important;
        max-width: 400px !important;
        border: 3px solid #b90b2a;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
    }
    .meme-viewer-content {
        min-height: calc(100dvh - 60px);
        padding-bottom: 60px;
    }
    .button-container {
        flex-direction: column;
        gap: 6px;
    }
}

/* Ensure header remains below the meme viewer */
.sticky-header,
.header-content,
.button-group {
    z-index: 1000;
}

/* Ensure gallery container doesn’t interfere */
#gallery-container.active {
    display: block !important;
    position: relative;
    z-index: 1;
}

@media (max-width:768px) {
    #gallery {
        contain-intrinsic-size: 150px 150px;
        content-visibility: auto;
        grid-template-columns: repeat(3, 1fr);
    }
    #gallery img, #gallery video {
        height: 150px;
        max-width: 150px;
        transform: translateZ(0);
        width: 150px;
        will-change: transform, opacity;
    }
    /* ... */
}

.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.toast {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: var(--text-white);
    font-family: 'Oswald', sans-serif;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    padding: 12px 20px;
    border: 2px solid var(--sidebar-red);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-red), inset 0 0 5px rgba(82, 153, 82, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 350px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.toast.show {
    opacity: 1;
    transform: translateY(0);
}
.toast.info {
    border-color: var(--sidebar-red);
}
.toast.success {
    border-color: #00cc00;
    box-shadow: 0 4px 12px rgba(0, 204, 0, 0.5), inset 0 0 5px rgba(0, 204, 0, 0.3);
}
.toast.error {
    border-color: #ff3333;
    box-shadow: 0 4px 12px rgba(255, 51, 51, 0.5), inset 0 0 5px rgba(255, 51, 51, 0.3);
}
.toast-icon {
    font-size: 1.2em;
}
.iphone-save-instructions {
    color: var(--text-white);
    font-family: 'Oswald', sans-serif;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    text-align: center;
    margin-top: 10px;
    display: none;
}
@media only screen and (max-width: 480px) {
    .toast-container {
        bottom: 70px;
        right: 10px;
        left: 10px;
    }
    .toast {
        font-size: 0.9em;
        padding: 10px 15px;
        max-width: 100%;
    }
    .toast-icon {
        font-size: 0.85em;
    letter-spacing: 0.5px;
    }
    .iphone-save-instructions {
        font-size: 0.9em;
    }
}
/* Override sidebar z-index */


/* Meme viewer styles */
.meme-viewer-content {
    justify-content: center;
    margin: 0 auto;
    max-width: 1200px;
    min-height: calc(100vh - 120px);
    padding: 20px;
    text-align: center;
}

.meme-viewer {
    align-items: center;
    display: flex;
    flex-direction: column;
    max-width: 800px;
    overflow: visible;
    width: 100%;
    background: rgba(185, 11, 42, 0.6);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(82, 153, 82, 0.3);
}

.meme-viewer img,
.meme-viewer video {
    border: 5px solid #b90b2a;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
    display: block;
    margin: 20px auto;
    max-height: 100%;
    max-width: 100%;
    transform: translateZ(0);
    transition: transform 0.05s ease-in-out, box-shadow 0.1s ease-in-out;
    will-change: transform, box-shadow;
}

.meme-viewer img:hover,
.meme-viewer video:hover {
    box-shadow: 0 6px 12px rgba(185, 11, 42, 0.5);
    transform: scale(1.02);
}

.meme-viewer .media-caption {
    color: #fff;
    font-size: 1.2em;
    letter-spacing: 0.5px;
    line-height: 1.4;
    margin-top: 10px;
    padding: 8px;
}

.loading-spinner {
    border: 4px solid #1a1a1a;
    border-top: 4px solid #b90b2a;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.iphone-save-instructions {
    display: none;
    color: #fff;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    margin-top: 10px;
    text-align: center;
}

@media (max-width: 480px) {
    .meme-viewer {
        background: rgba(185, 11, 42, 0.6);
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 0 15px rgba(82, 153, 82, 0.3);
    }

    .meme-viewer img,
    .meme-viewer video {
        border: 3px solid #b90b2a;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
        margin: 10px auto;
        max-height: 300px;
        max-width: 300px;
        transform: translateZ(0);
        will-change: transform, box-shadow;
    }
}

/* Override sidebar z-index for all views */




/* Meme viewer styles */
#meme-viewer-container {
    background: #000 !important;
}

.meme-viewer-content {
    justify-content: center;
    margin: 0 auto;
    max-width: 1200px;
    min-height: calc(100vh - 120px);
    padding: 20px;
    text-align: center;
    background: #000;
}

.meme-viewer {
    align-items: center;
    display: flex;
    flex-direction: column;
    max-width: 800px;
    overflow: visible;
    width: 100%;
    background: rgba(185, 11, 42, 0.6);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(82, 153, 82, 0.3);
    z-index: 2000; /* Ensure it's below sidebar but above other elements */
}

.meme-viewer img,
.meme-viewer video {
    border: 5px solid #b90b2a;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
    display: block;
    margin: 20px auto;
    max-height: 100%;
    max-width: 100%;
    transform: translateZ(0);
    transition: transform 0.05s ease-in-out, box-shadow 0.1s ease-in-out;
    will-change: transform, box-shadow;
}

.meme-viewer img:hover,
.meme-viewer video:hover {
    box-shadow: 0 6px 12px rgba(185, 11, 42, 0.5);
    transform: scale(1.02);
}

.meme-viewer .media-caption {
    color: #fff;
    font-size: 1.2em;
    letter-spacing: 0.5px;
    line-height: 1.4;
    margin-top: 10px;
    padding: 8px;
}

.loading-spinner {
    border: 4px solid #1a1a1a;
    border-top: 4px solid #b90b2a;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.iphone-save-instructions {
    display: none;
    color: #fff;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    margin-top: 10px;
    text-align: center;
}

@media (max-width: 480px) {
    .meme-viewer {
        background: rgba(185, 11, 42, 0.6);
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 0 15px rgba(82, 153, 82, 0.3);
    }

    .meme-viewer img,
    .meme-viewer video {
        border: 3px solid #b90b2a;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
        margin: 10px auto;
        max-height: 300px;
        max-width: 300px;
        transform: translateZ(0);
        will-change: transform, box-shadow;
    }
}
/* Idle video thumbs: just a small white ▶. No dark circle — the red
   card border already marks it as video, and hover playback is the
   real affordance. Hidden by .is-previewing once the clip starts. */
.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.16s ease;
}
.video-play-overlay svg {
    width: 30px;
    height: 30px;
    display: block;
    /* triangle sits optically left of center; nudge it */
    transform: translateX(1px);
    filter:
        drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8))
        drop-shadow(0 0 1px rgba(0, 0, 0, 0.7));
}
@media (max-width: 1040px) {
    .video-play-overlay {
        width: 28px;
        height: 28px;
    }
    .video-play-overlay svg {
        width: 26px;
        height: 26px;
    }
}

@media (min-width:1041px) {
    .gallery-download-btn {
        background-color: var(--sidebar-red);
        border: none;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        color: var(--text-white);
        cursor: pointer;
        font-family: Oswald, sans-serif;
        font-size: 0.9em;
        padding: 8px 12px;
        position: absolute;
        bottom: 10px;
        left: 10px;
        transform: translateZ(0);
        transition: none;
        will-change: display;
        z-index: 5;
    }

    .gallery-download-btn:hover,
    .gallery-download-btn:focus {
        background-color: var(--hover-red);
        box-shadow: 0 4px 8px var(--shadow-red);
        outline: none;
    }

    .media-item {
        position: relative; /* Ensure positioning context for download button */
    }
}

@media (max-width:1040px) {
    .button-footer {
        transition: opacity 0.3s ease-in-out;
    }

    .gallery-wrapper.blurred {
        filter: blur(5px);
        opacity: 0.5;
        pointer-events: none;
    }

    .button-footer.blurred {
        filter: blur(5px);
        opacity: 0.5;
        pointer-events: none;
    }

    #search-container.blurred {
        filter: blur(5px);
        opacity: 0.5;
        pointer-events: none;
    }

    .overlay.active {
        background-color: rgba(0, 0, 0, 0.5);
        display: block;
        height: 100%;
        left: 0;
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1049;
        pointer-events: auto;
    }
}

.gallery-download-btn:hover,
.gallery-download-btn:focus {
    background-color: var(--hover-red);
    box-shadow: 0 2px 4px var(--shadow-red);
    outline: none;
}

.media-item {
    position: relative; /* Ensure positioning context for download button and caption */
}

.media-caption {
    display: none; /* Hidden by default, shown on hover */
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--caption-grey);
    font-size: 0.9em;
    padding: 5px;
    text-align: center;
    word-wrap: break-word;
    letter-spacing: 0.5px;
    line-height: 1.4;
    z-index: 4;
}

@media (min-width:1041px) {
    .gallery-download-btn {
        background-color: var(--sidebar-red);
        border: none;
        border-radius: 4px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        cursor: pointer;
        padding: 4px;
        position: absolute;
        bottom: 32px;
        left: 19px;
        transform: translateZ(0);
        transition: none;
        will-change: display;
        z-index: 5;
        opacity: 0.8;
    }

    .gallery-download-btn:hover,
    .gallery-download-btn:focus {
        background-color: var(--hover-red);
        box-shadow: 0 2px 4px var(--shadow-red);
        outline: none;
    }

    .media-item {
        position: relative;
    }

    .media-caption {
        display: none;
        position: absolute;
        bottom: -26px;
        left: 0;
        right: 0;
        background-color: transparent;
        color: var(--caption-grey);
        font-size: 0.9em;
        padding: 5px;
        text-align: center;
        word-wrap: break-word;
        letter-spacing: 0.5px;
        line-height: 1.4;
        z-index: 4;
    }
}
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
.overlay.active {
    display: block;
}
#gallery {
    overflow-x: hidden;
    touch-action: pan-y pinch-zoom;
    transform-origin: center;
}
@media (max-width: 1040px) {
    .standalone-sidebar .menu-toggle {
        display: block !important;
        background-color: var(--sidebar-red) !important;
        color: var(--text-white) !important;
        border: 2px solid var(--hover-red) !important;
        border-radius: 5px !important;
        cursor: pointer !important;
        font-size: 1.5em !important;
        padding: 8px 12px !important;
        position: fixed !important;
        top: 10px !important;
        top: calc(10px + env(safe-area-inset-top)) !important; /* Account for safe areas */
        left: 10px !important;
        left: calc(10px + env(safe-area-inset-left)) !important;
        z-index: 10002 !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        width: 40px !important;
        height: 40px !important;
        line-height: 1 !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
        transition: background-color 0.3s ease-in-out !important;
    }
    .standalone-sidebar .menu-toggle:hover,
    .standalone-sidebar .menu-toggle:focus {
        background-color: var(--hover-red) !important;
        outline: 2px solid var(--text-white) !important;
        outline-offset: 2px !important;
    }
    /* Prevent content overlap with menu button */
    .meme-viewer-content.standalone {
        padding-left: 0 !important;
        padding-top: 60px !important; /* Space for menu button */
    }
}
/* Toast notification styles */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.toast {
    background: rgba(0, 0, 0, 0.8); /* Semi-transparent black background */
    color: var(--text-white);
    font-family: 'Oswald', sans-serif;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 350px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.download-started {
    border: 2px solid var(--sidebar-red);
    box-shadow: 0 4px 12px var(--shadow-red);
}

.toast.download-complete {
    border: 2px solid #00cc00; /* Changed border to green */
    box-shadow: 0 4px 12px rgba(0, 204, 0, 0.5);
}

@media (max-width: 480px) {
    .toast-container {
        bottom: 70px;
        right: 10px;
        left: 10px;
    }
    .toast {
        font-size: 0.9em;
        padding: 10px 15px;
        max-width: 100%;
    }
}

@media (min-width: 1041px) {
    #tags-menu {
        background: var(--bg-color);
        border: 2px solid var(--sidebar-red);
        border-radius: 8px;
        padding: 10px;
        max-width: 600px;
        width: 100%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        pointer-events: auto;
    }
    .tag-option {
        background: var(--sidebar-red);
        color: var(--text-white);
        border: none;
        border-radius: 5px;
        padding: 8px 12px;
        margin: 5px;
        cursor: pointer;
        font-family: 'Oswald', sans-serif;
        font-size: 0.85em;
    letter-spacing: 0.5px;
        pointer-events: auto;
    }
    .tag-option:hover {
        background: var(--hover-red);
    }
    .tags-columns {
        display: flex;
        justify-content: space-between;
    }
    .tags-column {
        flex: 1;
        margin: 0 5px;
    }
}

.caption-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    display: none;
    z-index: 10;
    white-space: nowrap;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
.overlay.active {
    display: block;
}
#gallery {
    overflow-x: hidden;
    touch-action: pan-y pinch-zoom;
    transform-origin: center;
}
@media (max-width: 1040px) {
    .standalone-sidebar .menu-toggle {
        display: block !important;
        background-color: var(--sidebar-red) !important;
        color: var(--text-white) !important;
        border: 2px solid var(--hover-red) !important;
        border-radius: 5px !important;
        cursor: pointer !important;
        font-size: 1.5em !important;
        padding: 8px 12px !important;
        position: fixed !important;
        top: 10px !important;
        top: calc(10px + env(safe-area-inset-top)) !important; /* Account for safe areas */
        left: 10px !important;
        left: calc(10px + env(safe-area-inset-left)) !important;
        z-index: 10002 !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        width: 40px !important;
        height: 40px !important;
        line-height: 1 !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
        transition: background-color 0.3s ease-in-out !important;
    }
    .standalone-sidebar .menu-toggle:hover,
    .standalone-sidebar .menu-toggle:focus {
        background-color: var(--hover-red) !important;
        outline: 2px solid var(--text-white) !important;
        outline-offset: 2px !important;
    }
    /* Prevent content overlap with menu button */
    .meme-viewer-content.standalone {
        padding-left: 0 !important;
        padding-top: 60px !important; /* Space for menu button */
    }
    /* Position toast at top for mobile/tablet */
    .toast-container.top-position {
        bottom: auto;
        top: 70px; /* Below the menu button (40px height + padding) */
        right: 10px;
        left: 10px;
    }
    .toast-container.top-position .toast {
        transform: translateY(-20px); /* Fade in from above */
    }
    .toast-container.top-position .toast.show {
        transform: translateY(0); /* Fade to position */
    }
}
/* Toast notification styles */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.toast {
    background: rgba(0, 0, 0, 0.8); /* Semi-transparent black background */
    color: var(--text-white);
    font-family: 'Oswald', sans-serif;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 350px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.download-started {
    border: 2px solid var(--sidebar-red);
    box-shadow: 0 4px 12px var(--shadow-red);
}

.toast.download-complete {
    border: 2px solid #00cc00; /* Changed border to green */
    box-shadow: 0 4px 12px rgba(0, 204, 0, 0.5);
}

@media (max-width: 480px) {
    .toast-container {
        bottom: 70px;
        right: 10px;
        left: 10px;
    }
    .toast {
        font-size: 0.9em;
        padding: 10px 15px;
        max-width: 100%;
    }
    /* Ensure top positioning takes precedence on smaller mobile devices */
    .toast-container.top-position {
        bottom: auto;
        top: 70px;
        right: 10px;
        left: 10px;
    }
}

@media (min-width: 1041px) {
    #tags-menu {
        background: var(--bg-color);
        border: 2px solid var(--sidebar-red);
        border-radius: 8px;
        padding: 10px;
        max-width: 600px;
        width: 100%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        pointer-events: auto;
    }
    .tag-option {
        background: var(--sidebar-red);
        color: var(--text-white);
        border: none;
        border-radius: 5px;
        padding: 8px 12px;
        margin: 5px;
        cursor: pointer;
        font-family: 'Oswald', sans-serif;
        font-size: 0.85em;
    letter-spacing: 0.5px;
        pointer-events: auto;
    }
    .tag-option:hover {
        background: var(--hover-red);
    }
    .tags-columns {
        display: flex;
        justify-content: space-between;
    }
    .tags-column {
        flex: 1;
        margin: 0 5px;
    }
}

.caption-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    display: none;
    z-index: 10;
    white-space: nowrap;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
.overlay.active {
    display: block;
}
#gallery {
    overflow-x: hidden;
    touch-action: pan-y pinch-zoom;
    transform-origin: center;
}
@media (max-width: 1040px) {
    .standalone-sidebar .menu-toggle {
        display: block !important;
        background-color: var(--sidebar-red) !important;
        color: var(--text-white) !important;
        border: 2px solid var(--hover-red) !important;
        border-radius: 5px !important;
        cursor: pointer !important;
        font-size: 1.5em !important;
        padding: 8px 12px !important;
        position: fixed !important;
        top: 10px !important;
        top: calc(10px + env(safe-area-inset-top)) !important; /* Account for safe areas */
        left: 10px !important;
        left: calc(10px + env(safe-area-inset-left)) !important;
        z-index: 10002 !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        width: 40px !important;
        height: 40px !important;
        line-height: 1 !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
        transition: background-color 0.3s ease-in-out !important;
    }
    .standalone-sidebar .menu-toggle:hover,
    .standalone-sidebar .menu-toggle:focus {
        background-color: var(--hover-red) !important;
        outline: 2px solid var(--text-white) !important;
        outline-offset: 2px !important;
    }
    /* Prevent content overlap with menu button */
    .meme-viewer-content.standalone {
        padding-left: 0 !important;
        padding-top: 60px !important; /* Space for menu button */
    }
    /* Position toast at top for mobile/tablet */
    .toast-container.top-position {
        bottom: auto;
        top: 70px; /* Below the menu button (40px height + padding) */
        right: 10px;
        left: 10px;
    }
    .toast-container.top-position .toast {
        transform: translateY(-20px); /* Fade in from above */
    }
    .toast-container.top-position .toast.show {
        transform: translateY(0); /* Fade to position */
    }
}
/* Toast notification styles */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.toast {
    background: rgba(0, 0, 0, 0.8); /* Semi-transparent black background */
    color: var(--text-white);
    font-family: 'Oswald', sans-serif;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 350px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.download-started {
    border: 2px solid var(--sidebar-red);
    box-shadow: 0 4px 12px var(--shadow-red);
}

.toast.download-complete {
    border: 2px solid #00cc00; /* Changed border to green */
    box-shadow: 0 4px 12px rgba(0, 204, 0, 0.5);
}

@media (max-width: 480px) {
    .toast-container {
        bottom: 70px;
        right: 10px;
        left: 10px;
    }
    .toast {
        font-size: 0.9em;
        padding: 10px 15px;
        max-width: 100%;
    }
    /* Ensure top positioning takes precedence on smaller mobile devices */
    .toast-container.top-position {
        bottom: auto;
        top: 70px;
        right: 10px;
        left: 10px;
    }
}

@media (min-width: 1041px) {
    #tags-menu {
        background: var(--bg-color);
        border: 2px solid var(--sidebar-red);
        border-radius: 8px;
        padding: 10px;
        max-width: 600px;
        width: 100%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        pointer-events: auto;
    }
    .tag-option {
        background: var(--sidebar-red);
        color: var(--text-white);
        border: none;
        border-radius: 5px;
        padding: 8px 12px;
        margin: 5px;
        cursor: pointer;
        font-family: 'Oswald', sans-serif;
        font-size: 0.85em;
    letter-spacing: 0.5px;
        pointer-events: auto;
    }
    .tag-option:hover {
        background: var(--hover-red);
    }
    .tags-columns {
        display: flex;
        justify-content: space-between;
    }
    .tags-column {
        flex: 1;
        margin: 0 5px;
    }
    /* Always show captions on desktop without animation */
    .caption-tooltip {
        display: block !important;
        bottom: -35px; /* Adjusted spacing */
        font-size: 12px; /* Smaller font for subtlety */
        color: #b0b0b0; /* Softer gray for less contrast */
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3); /* Softer shadow for readability */
        opacity: 0.6; /* Even less opaque to be less distracting */
    }
}

.caption-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    display: none;
    z-index: 10;
    white-space: nowrap;
}


/* Remove borders and effects in full-screen mode */
:fullscreen,
:-webkit-full-screen,
:-moz-full-screen {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    height: 100% !important;
    background: #000 !important;
}

/* Ensure video-specific styles are applied in full-screen */
.meme-viewer video:fullscreen,
.meme-viewer video:-webkit-full-screen,
.meme-viewer video:-moz-full-screen {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    height: 100% !important;
    background: #000 !important;
}

/* Meme viewer container for both injected and standalone */
#meme-viewer-container.active,
.meme-viewer-content.standalone {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    background: #000 !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
}

/* Center meme viewer content */
.meme-viewer-content,
.meme-viewer-content.standalone {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: calc(100dvh - 60px) !important;
    padding: 60px 10px 60px !important;
    box-sizing: border-box !important;
    background: #000 !important;
}

/* Meme viewer grey container */
.meme-viewer {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 800px !important;
    background: #1a1a1a !important;
    padding: 15px !important;
    border-radius: 10px !important;
    box-shadow: 0 0 15px rgba(82, 153, 82, 0.3) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Media constraints */
.meme-viewer img,
.meme-viewer video {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border: 3px solid #b90b2a !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7) !important;
    margin: 0 auto !important;
    transform: translateZ(0) !important;
    will-change: transform, box-shadow !important;
}

/* Caption */
.meme-viewer .media-caption {
    color: #fff !important;
    font-size: 1.2em !important;
    font-family: 'Oswald', sans-serif !important;
    text-transform: uppercase !important;
    text-shadow: 0 0 5px rgba(185, 11, 42, 0.7) !important;
    margin: 10px 0 !important;
    text-align: center !important;
}

/* Button container */
.button-container {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 15px !important;
    flex-direction: column !important;
    width: 100% !important;
}

/* Desktop-specific adjustments */
@media (min-width: 1041px) {
    #meme-viewer-container.active {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        background: #000 !important;
    }
    .meme-viewer-content {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 20px !important;
        background: #000 !important;
    }
    .meme-viewer-content.standalone {
        position: static !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 20px !important;
        background: #000 !important;
        min-height: 100vh !important;
    }
    .meme-viewer {
        width: 100%;
        max-width: 800px;
        margin: 0 auto !important;
        background: #1a1a1a !important;
        padding: 20px !important;
        border-radius: 15px !important;
        box-shadow: 0 0 20px rgba(82, 153, 82, 0.3) !important;
    }
    .meme-viewer img,
    .meme-viewer video {
        max-width: 800px;
        max-height: 600px;
    }
    .button-container {
        flex-direction: row !important;
    }
}

/* Mobile-specific adjustments */
@media (max-width: 1040px) {
    #meme-viewer-container.active,
    .meme-viewer-content.standalone {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        background: #000 !important;
    }
    .meme-viewer-content {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
        align-items: center !important;
        background: #000 !important;
    }
    .meme-viewer {
        max-height: calc(100dvh - 150px) !important;
        overflow: hidden !important;
        background: #1a1a1a !important;
    }
}

@media (max-width: 480px) {
    .meme-viewer img,
    .meme-viewer video {
        max-width: calc(100% - 20px);
    }
    .meme-viewer {
        padding: 10px !important;
        background: #1a1a1a !important;
    }
}
/* Override styles to ensure consistent red border wrapping in injected viewer */
#media-container .media-item video {
    width: auto !important;
    max-width: 100% !important;
    border: 2px solid #b90b2a !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    margin: 20px auto !important;
    display: block !important;
}

/* Ensure the container doesn’t interfere with video dimensions */
#media-container .media-item {
    width: auto !important;
    max-width: 800px !important;
    margin: 0 auto !important;
}

/* Remove border in full-screen mode for both standalone and injected viewers */
video:-webkit-full-screen,
video:fullscreen {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Additional browser-specific full-screen selectors */
video:-moz-full-screen,
video:-ms-fullscreen,
video:full-screen {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
/* Ensure consistent border wrapping for both images and videos in injected and standalone viewers */
#media-container .media-item img,
#media-container .media-item video,
.meme-viewer-content .media-item img,
.meme-viewer-content .media-item video {
    width: auto !important;
    max-width: 100% !important;
    border: 2px solid #b90b2a !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    margin: 20px auto !important;
    display: block !important;
}

/* Ensure the container doesn’t interfere with media dimensions */
#media-container .media-item,
.meme-viewer-content .media-item {
    width: auto !important;
    max-width: 800px !important;
    margin: 0 auto !important;
}

/* Remove border in full-screen mode for both standalone and injected viewers */
video:-webkit-full-screen,
video:fullscreen,
img:-webkit-full-screen,
img:fullscreen {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Additional browser-specific full-screen selectors */
video:-moz-full-screen,
video:-ms-fullscreen,
video:full-screen,
img:-moz-full-screen,
img:-ms-fullscreen,
img:full-screen {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Ensure consistent border wrapping for both images and videos in injected and standalone viewers */
#media-container .media-item img,
#media-container .media-item video,
.meme-viewer-content .media-item img,
.meme-viewer-content .media-item video {
    width: auto !important;
    max-width: 100% !important;
    border: 2px solid #b90b2a !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    margin: 20px auto !important;
    display: block !important;
}

/* Ensure the container doesn’t interfere with media dimensions */
#media-container .media-item,
.meme-viewer-content .media-item {
    width: auto !important;
    max-width: 800px !important;
    margin: 0 auto !important;
}

/* Remove border in full-screen mode with higher specificity */
.meme-viewer-content .media-item video:-webkit-full-screen,
.meme-viewer-content .media-item video:fullscreen,
.meme-viewer-content .media-item img:-webkit-full-screen,
.meme-viewer-content .media-item img:fullscreen,
#media-container .media-item video:-webkit-full-screen,
#media-container .media-item video:fullscreen,
#media-container .media-item img:-webkit-full-screen,
#media-container .media-item img:fullscreen {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Additional browser-specific full-screen selectors */
.meme-viewer-content .media-item video:-moz-full-screen,
.meme-viewer-content .media-item video:-ms-fullscreen,
.meme-viewer-content .media-item video:full-screen,
.meme-viewer-content .media-item img:-moz-full-screen,
.meme-viewer-content .media-item img:-ms-fullscreen,
.meme-viewer-content .media-item img:full-screen,
#media-container .media-item video:-moz-full-screen,
#media-container .media-item video:-ms-fullscreen,
#media-container .media-item video:full-screen,
#media-container .media-item img:-moz-full-screen,
#media-container .media-item img:-ms-fullscreen,
#media-container .media-item img:full-screen {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Override rules for slideshow in about.html to ensure centering and border removal */
.slideshow-container .slideshow-slide {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.slideshow-container .slideshow-slide.active {
    display: flex !important;
}

.slideshow-container .slideshow-slide img,
.slideshow-container .slideshow-slide .video-container {
    border: 0 !important;
    border-color: transparent !important;
}
/* Override rules for slideshow in about.html to ensure correct visibility and transitions */
.slideshow-container .slideshow-slide {
    display: none !important;
    opacity: 0 !important;
    transform: scale(0.95) !important;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out !important;
}

.slideshow-container .slideshow-slide.active {
    display: flex !important;
    opacity: 1 !important;
    transform: scale(1) !important;
}
/* Ensure Videos button and search bar are properly positioned on bobo-videos.html */
body:has(> div.container > main > header > div.sticky-header > div#search-container) #videos-btn,
body:has(> div.container > main > header > div.sticky-header > div#search-container) .search-input-container {
    position: static !important; /* Override any absolute positioning */
    margin: 0 auto !important; /* Ensure consistent centering */
    width: auto !important; /* Prevent width constraints from causing overlap */
}

/* Ensure search-input-container behaves as a block element within flex */
body:has(> div.container > main > header > div.sticky-header > div#search-container) .search-input-container {
    display: block !important;
}

/* Ensure search-controls maintains proper spacing and horizontal layout */
body:has(> div.container > main > header > div.sticky-header > div#search-container) .search-controls {
    display: flex !important;
    flex-direction: row !important; /* Restore side-by-side layout */
    gap: 10px !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    left: -25px; /* Maintain the 25px left shift from previous adjustments */
}

/* Mobile adjustments for Videos button */
@media (max-width: 1040px) {
    body:has(> div.container > main > header > div.sticky-header > div#search-container) #videos-btn {
        transform: scale(1) !important; /* Set scale to 1 on mobile/tablet */
        transform-origin: center !important;
    }
}

/* Hide clear search button on mobile/tablet */
@media (max-width: 1040px) {
    .clear-search-btn {
        display: none !important; /* Hide the red X button on mobile/tablet */
    }
}

/* Fix search container positioning and z-index */
#search-container {
    z-index: 1002 !important; /* Higher than .button-footer (1000) */
}

/* Simplify mobile positioning for search container */
@media (max-width: 1040px) {
    body:not(:has(#latest-btn[aria-label*="Bobo collections"])) .sticky-header #search-container {
        position: absolute;
        top: 6px;
        left: 50%;
        transform: translateX(-50%) !important; /* Remove complex calc */
        margin: 0 auto;
        max-width: 300px;
        width: 90%;
        display: flex !important;
        flex-direction: row;
        gap: 8px;
        justify-content: center;
        z-index: 1002 !important;
    }
    #search-container.active {
        animation: dropDown 0.2s ease-out forwards;
        display: flex !important;
        top: 6px;
    }
    #search-container:not(.active) {
        animation: closeUp 0.2s ease-in forwards;
        display: none !important;
        top: -40px;
    }
}

/* Remove left shift from search-controls */
.search-controls {
    left: 0 !important; /* Prevent misalignment */
}

/* Style manual search button */
#manual-search-btn {
    background-color: var(--sidebar-red);
    border: none;
    border-radius: 8px;
    color: var(--text-white);
    font-family: 'Oswald', sans-serif;
    font-size: 0.8em;
    padding: 4px 8px;
    cursor: pointer;
    position: absolute;
    right: 30px; /* After clear button */
    top: 50%;
    transform: translateY(-50%);
    z-index: 1003;
}
#manual-search-btn:hover,
#manual-search-btn:focus {
    background-color: var(--hover-red);
    outline: none;
}

/* Adjust search input and clear button for manual button */
@media (max-width: 480px) {
    .search-input-container {
        max-width: 250px;
        width: 100%;
        position: relative;
    }
    #search-input {
        padding-right: 50px; /* Space for clear and manual buttons */
    }
    .clear-search-btn {
        right: 30px; /* Shift left for manual button */
    }
    #manual-search-btn {
        right: 10px;
    }
}

/* Ensure button-footer has lower z-index */
.button-footer {
    z-index: 1000 !important;
}

/* Ensure search-controls positioning is respected and consistent */
.search-controls {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 auto;
    width: auto;
}

/* Remove any forced left override and allow HTML style to take effect */
.search-controls {
    left: unset !important;
}

/* Ensure search container is centered without affecting search-controls */
@media (max-width: 1040px) {
    body:not(:has(#latest-btn[aria-label*="Bobo collections"])) .sticky-header #search-container {
        position: absolute;
        top: 6px;
        left: 50%;
        transform: translateX(-50%) !important;
        margin: 0 auto;
        max-width: 300px;
        width: 90%;
        display: flex !important;
        flex-direction: row;
        gap: 8px;
        justify-content: center;
        z-index: 1002 !important;
    }
    #search-container.active {
        animation: dropDown 0.2s ease-out forwards;
        display: flex !important;
        top: 6px;
    }
    #search-container:not(.active) {
        animation: closeUp 0.2s ease-in forwards;
        display: none !important;
        top: -40px;
    }
}

/* Ensure buttons and search input are properly sized and aligned */
#tags-btn,
#videos-btn {
    width: auto;
    min-width: 60px;
    padding: 4px 8px;
    font-size: 0.8em;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    #tags-btn,
    #videos-btn {
        min-width: 50px;
        font-size: 0.7em;
        height: 30px;
        padding: 4px 8px;
    }
    #search-input {
        max-width: 250px;
        width: 100%;
        padding-right: 40px;
    }
    .search-input-container {
        max-width: 250px;
        width: 100%;
    }
}

@media (min-width: 481px) and (max-width: 1040px) {
    #tags-btn,
    #videos-btn {
        min-width: 60px;
        font-size: 0.8em;
        height: 35px;
        padding: 4px 8px;
    }
    #search-input {
        max-width: 350px;
        width: 100%;
        padding-right: 60px;
    }
    .search-input-container {
        max-width: 350px;
        width: 100%;
    }
}
/* Adjust only the placeholder text to prevent clipping */
#search-input::placeholder {
    font-size: 0.7em; /* Reduce font size to fit the placeholder text */
    color: var(--caption-grey);
    opacity: 0.8;
}

/* Ensure the input field itself isn't causing the issue */
#search-input {
    padding-right: 40px; /* Ensure space for buttons like clear-search-btn */
}

/* Mobile-specific adjustments (max-width: 480px) */
@media (max-width: 480px) {
    #search-input::placeholder {
        font-size: 0.65em; /* Further reduce for mobile to fit "Search 5000+ Bobo Memes" */
    }
    #search-input {
        padding-right: 40px; /* Maintain space for buttons */
        max-width: 250px; /* Keep the existing width */
    }
}

/* Tablet adjustments (min-width: 481px and max-width: 1040px) */
@media (min-width: 481px) and (max-width: 1040px) {
    #search-input::placeholder {
        font-size: 0.7em;
    }
    #search-input {
        padding-right: 60px;
        max-width: 350px;
    }
}

/* Desktop adjustments (min-width: 1041px) */
@media (min-width: 1041px) {
    #search-input::placeholder {
        font-size: 0.9em;
    }
    #search-input {
        padding-right: 40px;
        width: 400px;
    }
}

/* Fix for desktop standalone sidebar */
@media (min-width: 1041px) {
    .standalone-sidebar {
        pointer-events: auto !important;
    }
}

/* ============================================
   TOPNAV - DESKTOP ONLY
   ============================================ */

@media (min-width: 1041px) {
    .topnav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100vw !important;
        height: 58px;
        background: #0e0e0e;
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        flex-wrap: nowrap;
        padding: 0 28px;
        border-bottom: 1px solid rgba(185, 11, 42, 0.4);
        z-index: 9999 !important;
        animation: none;
        box-shadow: 0 1px 12px rgba(0,0,0,0.6);
        border-right: none;
        border-image: none;
        box-sizing: border-box;
    }

    .topnav .menu-toggle {
        display: none !important;
    }

    .topnav-logo {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        margin-left: 32px;
        margin-right: 16px;
        gap: 6px;
        text-decoration: none;
    }
    .topnav-logotype {
        height: 26px;
        width: auto;
        object-fit: contain;
        display: block;
        filter: invert(1) brightness(2);
    }

    .topnav-logo-img {
        height: 52px;
        width: 52px;
        object-fit: contain;
        display: block;
        filter: drop-shadow(0 1px 4px rgba(185,11,42,0.35));
    }

    /* Spacer: takes all remaining space, pushes right group flush right */
    .topnav-spacer {
        flex: 1 1 auto;
        min-width: 0;
    }

    .topnav-primary,
    .topnav-secondary {
        display: flex;
        align-items: center;
        gap: 0;
        list-style: none;
        margin: 0;
        padding: 0;
        flex-shrink: 0;
    }

    .topnav-secondary {
        margin-right: 32px;
    }

    .topnav-divider-grey {
        width: 1px;
        height: 16px;
        background: rgba(255, 255, 255, 0.15);
        margin: 0 14px;
        flex-shrink: 0;
        display: inline-block;
    }

    .topnav-primary li,
    .topnav-secondary li {
        list-style: none;
        margin: 0;
    }

    .topnav-primary li a,
    .topnav-secondary li a,
    .topnav-more-btn {
        color: rgba(255, 255, 255, 0.6);
        text-decoration: none;
        font-family: Oswald, sans-serif;
        font-size: 0.82em;
        font-weight: 500;
        letter-spacing: 1.5px;
        padding: 6px 14px;
        border-radius: 4px;
        transition: color 0.15s;
        white-space: nowrap;
        text-transform: uppercase;
        cursor: pointer;
        background: none;
        border: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .topnav-primary li a:hover,
    .topnav-secondary li a:hover,
    .topnav-primary li a[aria-current="page"],
    .topnav-secondary li a[aria-current="page"],
    .topnav-more-btn:hover,
    .topnav-more-btn.open {
        color: var(--text-white);
    }

    .topnav-more-btn svg {
        opacity: 0.5;
        transition: transform 0.2s;
    }

    .topnav-more-btn.open svg {
        transform: rotate(180deg);
        opacity: 1;
    }

    .topnav-divider {
        width: 1px;
        height: 24px;
        background: rgba(185, 11, 42, 0.6);
        margin: 0 16px;
        flex-shrink: 0;
    }

    .topnav-more {
        position: relative;
        list-style: none;
    }

    .topnav-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        background: #161616;
        border: 1px solid rgba(185, 11, 42, 0.35);
        border-radius: 8px;
        padding: 8px;
        width: 260px;
        display: flex;
        flex-direction: column;
        gap: 2px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-6px);
        transition: opacity 0.15s, transform 0.15s;
        z-index: 10000 !important;
    }

    .topnav-dropdown.open {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }

    .topnav-dd-label {
        font-size: 0.68em;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: rgba(185, 11, 42, 0.8);
        padding: 8px 12px 4px;
        font-weight: 500;
        text-align: left;
    }

    .topnav-dd-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2px;
    }

    .topnav-dd-logo {
        width: 20px;
        height: 20px;
        object-fit: contain;
        border-radius: 4px;
        flex-shrink: 0;
        background: rgba(255,255,255,0.06);
    }

    .topnav-dd-item {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 8px 12px;
        border-radius: 5px;
        color: rgba(255, 255, 255, 0.65);
        font-size: 0.8em;
        letter-spacing: 1px;
        text-transform: uppercase;
        cursor: pointer;
        transition: background 0.1s, color 0.1s;
        text-decoration: none;
    }

    a.topnav-dd-item:hover {
        background: rgba(185, 11, 42, 0.18);
        color: var(--text-white);
    }

    .topnav-dd-item.coming-soon {
        color: rgba(255, 255, 255, 0.3);
        cursor: default;
    }

    .topnav-dot {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        flex-shrink: 0;
        background: var(--sidebar-red);
        display: inline-block;
    }

    .topnav-dd-divider {
        height: 1px;
        background: rgba(255, 255, 255, 0.06);
        margin: 6px 0;
    }

    /* Page title in center of topnav */
    .topnav-page-title {
        color: rgba(255, 255, 255, 0.9);
        font-family: Impact, sans-serif;
        font-size: 1.85em;
        font-weight: 400;
        letter-spacing: 3px;
        text-transform: uppercase;
        white-space: nowrap;
        flex-shrink: 0;
        padding: 0 20px;
        user-select: none;
        text-shadow: 0 0 16px rgba(185,11,42,0.5);
    }

    /* Title group: absolutely centered, independent of left/right group widths */
    .topnav-center {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        align-items: center;
        pointer-events: none;
    }

    /* Hide h1 on desktop — page title is in the nav */
    main h1,
    .sticky-header h1 {
        display: none !important;
    }

    /* Red glow line disabled */
    .sticky-header::after {
        display: none !important;
        content: none !important;
    }


    /* Desktop footer search bar */
    .footer-search-bar {
        position: fixed;
        bottom: 90px;
        left: 50%;
        transform: translateX(-50%);
        background: #161616;
        border: 1px solid rgba(185,11,42,0.4);
        border-radius: 10px;
        padding: 10px 14px;
        display: flex;
        align-items: center;
        gap: 6px;
        z-index: 9998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
        transform: translateX(-50%) translateY(10px);
        min-width: 320px;
    }
    .footer-search-bar.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
        transition: opacity 0.7s ease, transform 0.2s ease;
    }
    .footer-search-bar.open.search-dimmed {
        opacity: 0.3;
        transition: opacity 0.2s ease;
    }
    #footer-tags-funnel-btn {
        background: none;
        border: none;
        color: var(--sidebar-red);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 32px;
        width: 32px;
        padding: 0;
        flex-shrink: 0;
        border-radius: 6px;
        transition: background 0.2s, color 0.2s;
    }
    #footer-tags-funnel-btn:hover {
        background: rgba(185,11,42,0.15);
        color: #fff;
    }
    #footer-tags-funnel-btn svg {
        pointer-events: none;
    }
    #footer-search-input {
        background: #222;
        border: 1px solid rgba(185,11,42,0.3);
        border-radius: 6px;
        color: #fff;
        font-family: Oswald, sans-serif;
        font-size: 0.9em;
        letter-spacing: 1px;
        outline: none;
        padding: 7px 12px;
        flex: 1;
    }
    #footer-search-input:focus {
        border-color: rgba(185,11,42,0.8);
    }
    .footer-tags-btn {
        background: rgba(185,11,42,0.2);
        border: 1px solid rgba(185,11,42,0.4);
        border-radius: 6px;
        color: rgba(255,255,255,0.7);
        cursor: pointer;
        font-family: Oswald, sans-serif;
        font-size: 0.8em;
        letter-spacing: 1.5px;
        padding: 7px 14px;
        text-transform: uppercase;
        transition: background 0.15s, color 0.15s;
        white-space: nowrap;
    }
    .footer-tags-btn:hover {
        background: rgba(185,11,42,0.4);
        color: #fff;
    }

    /* Tags menu opened from footer: fixed center overlay */
    #tags-menu.footer-tags-open {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 99999 !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
    }

    .magnify-btn-desktop {
        background: rgba(255,255,255,0.06);
        border: 2px solid rgba(255,255,255,0.15);
        border-radius: 12px;
        cursor: pointer;
        padding: 10px;
        transition: background 0.15s, border-color 0.15s;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .magnify-btn-desktop:hover {
        background: rgba(185,11,42,0.2);
        border-color: rgba(185,11,42,0.6);
    }
    .magnify-btn-desktop .magnify-icon {
        width: 28px;
        height: 28px;
        object-fit: contain;
    }

    /* Main content sits below the fixed topnav instead of beside a sidebar */
    main {
        margin-left: 0;
        margin-top: 58px;
    }

    /* Tighten header spacing on desktop */
    .header-content {
        padding-top: 16px !important;
        gap: 12px !important;
    }

    .sticky-header {
        padding-top: 0 !important;
    }

    #gallery {
        grid-template-columns: repeat(6, minmax(180px, 1fr)) !important;
    }

    /* Search button visible on desktop */
    #search-btn {
        display: inline-flex !important;
    }

    /* Sticky header fades out on scroll */
    .sticky-header {
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    }
    .sticky-header.scrolled-away {
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
    }

    /* Desktop floating footer */
    .button-footer {
        display: flex !important;
        align-items: center;
        bottom: 28px;
        gap: 12px;
        justify-content: center;
        left: 50%;
        position: fixed;
        transform: translateX(-50%);
        z-index: 9998;
        opacity: 1 !important;
        pointer-events: auto !important;
        transition: filter 0.6s ease;
        background: rgba(14, 14, 14, 0.55);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(185, 11, 42, 0.25);
        border-radius: 12px;
        padding: 8px 16px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    }
    .button-footer.desktop-visible {
        opacity: 1 !important;
        pointer-events: auto !important;
        transition: opacity 0.15s ease !important;
        animation: none !important;
    }
    .button-footer .menu-btn {
        display: none !important;
    }
    .button-footer .top-btn-mobile,
    .button-footer .latest-btn-mobile,
    .button-footer .random-meme-btn-mobile,
    .button-footer .magnify-btn-mobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

/* Hide on mobile */


/* Make Invest Like Bobo image 40% larger */
.stats-widget img {
    max-width: 392px !important;
}

@media (max-width: 1040px) {
    .stats-widget img {
        max-width: 308px !important;
    }
}

@media (max-width: 480px) {
    .stats-widget img {
        max-width: 252px !important;
    }
}

/* * BOBO COUNCIL IMAGE SIZING OVERRIDES 
 * -----------------------------------
 * These rules override the fixed dimensions set earlier in the <style> block 
 * to allow the 'Invest like Bobo' image to display larger. 
 */

/* 1. Allow the stats/image widgets to grow taller (desktop/general) */
.market-cap-widget,
.stats-widget {
    /* Override max-height: 400px !important; */
    max-height: none !important; 
    height: auto !important;
}

/* 2. Maximize the image size (desktop/general) */
.stats-widget img {
    /* Override max-width: 280px !important; */
    max-width: 100% !important; 
}

/* 3. Mobile overrides: Maximize image size on smaller screens */
@media (max-width: 1040px) {
    .stats-widget img {
        /* Override max-width: 220px !important; */
        max-width: 100% !important;
        max-height: none !important; 
    }
    
    /* Optional: If the widget is too small, increase its padding or min-height */
    .market-cap-widget,
    .stats-widget {
        min-height: 250px !important; /* Adjust if the image is still too small due to container size */
    }
}

/* ========================================
   EXTREME BRUTE FORCE MODAL OVERFLOW FIX
   This is a highly aggressive fix targeting the 
   modal content container to force scrolling.
   ======================================== */

   .roadmap-modal-content {
    /* 1. Force the container to respect the maximum viewport height */
    max-height: 85vh !important;
    
    /* 2. Force scrolling on the container if the content exceeds max-height */
    overflow-y: auto !important;
    
    /* 3. Ensure no minimum height is interfering */
    min-height: 0 !important;
    
    /* 4. Improve touch scrolling on mobile */
    -webkit-overflow-scrolling: touch !important;
    
    /* 5. Ensure it is displayed as a block element */
    display: block !important;
}

/* 6. Target the immediate text paragraphs/divs and prevent them 
      from expanding the parent if they have fixed heights/margins */
.roadmap-content,
.roadmap-modal-content > div,
.roadmap-modal-content p {
    box-sizing: border-box !important;
    max-height: 100% !important;
    height: auto !important;
    overflow-y: visible !important;
}

/* 7. Final, general fallback to ensure the parent container (the overlay) 
      doesn't cause the body to scroll */
.roadmap-modal {
    max-height: 100vh !important;
    overflow-y: auto !important; /* Allow the overlay to scroll if needed */
    overflow-x: hidden !important;
}

/* ========================================
   ULTRA-AGGRESSIVE GLOBAL MODAL CONTAINMENT FIX
   Forcibly ensures the modal fits the screen and manages its own scroll.
   ======================================== */

   .roadmap-modal {
    height: 100vh !important; /* Force the overlay to use exactly 100% of the viewport height */
    overflow-y: hidden !important; /* Stop the overlay from scrolling the entire body */
    align-items: center !important; /* Ensure content is centered vertically */
}

.roadmap-modal-content {
    /* Force the modal box to respect the new 100vh limit, minus margin/padding/header */
    max-height: calc(100vh - 40px) !important; 
    overflow-y: auto !important; /* Force content inside the box to scroll */
    min-height: 0 !important;
    box-sizing: border-box !important;
    -webkit-overflow-scrolling: touch !important;
}
.video-wrapper {
    max-width: 1280px;
    margin: 0 auto;
}

.video-wrapper .video-js {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
    max-height: 720px;
}

/* Responsive sizing */
@media (max-width: 1400px) {
    .video-wrapper {
        max-width: 960px;
    }
    
    .video-wrapper .video-js {
        max-height: 540px;
    }
}

@media (max-width: 768px) {
    .video-wrapper {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .video-wrapper .video-js {
        max-height: auto;
    }
}
.bobo-show-container .video-wrapper {
    width: 100%;
    max-width: 100%;
}

.bobo-show-container .video-js {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
}

/* Override Video.js default dimensions */
.video-js.vjs-fluid,
.video-js.vjs-16-9,
.video-js.vjs-4-3 {
    width: 100% !important;
    height: auto !important;
    padding-top: 0 !important;
}
@media only screen and (max-width: 767px) {
    /* Target the container with extremely high specificity */
    body div.council-content div.bobo-show-container {
        display: flex !important;
        flex-direction: column !important;
        order: 1 !important;
        margin-top: 20px !important;
        
        /* Force centering and prevent overflow */
        width: 100% !important;
        max-width: 100vw !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 10px !important;  /* Safety gutter */
        padding-right: 10px !important; /* Safety gutter */
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
    }

    /* Target the Video Wrapper and VideoJS element specifically */
    div.bobo-show-container .video-wrapper,
    div.bobo-show-container .video-js {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        left: 0 !important;
        right: 0 !important;
        box-sizing: border-box !important;
    }

    /* Ensure the video-js internal component doesn't force a width */
    .video-js.vjs-fluid {
        padding-top: 56.25% !important; /* Forces 16:9 Aspect Ratio */
        width: 100% !important;
    }

    /* Fix the status bar to ensure it doesn't push the width out */
    div.bobo-show-container .bobo-status-bar {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important; /* Allows items to wrap if screen is too narrow */
        justify-content: space-between !important;
        box-sizing: border-box !important;
    }
    /* Target the first status-item (Status: LIVE) */
    .bobo-status-bar .status-item:nth-child(1) {
        display: none !important;
    }

    /* Target the second status-item (Bobo Chat) */
    .bobo-status-bar .status-item:nth-child(2) {
        display: none !important;
    }

    /* Ensure the remaining "Current Phase" item centers itself */
    .bobo-status-bar .status-item:nth-child(3) {
        width: 100% !important;
        text-align: center !important;
    }

    /* Completely remove the entire status bar area on mobile */
    div.bobo-show-container .bobo-status-bar {
        display: none !important;
    }

}

/* Hide the CSS pseudo-element when JS link is active */

/* Mobile sidebar link styling */




/* ========================================
   FIX: body has position:relative + overflow-x:hidden
   which creates a containing block for fixed elements on some browsers.
   ======================================== */
body:has(.sticker-modal.active),
body:has(.bobros-modal.active) {
    position: static !important;
}

.sticker-modal.active,
.bobros-modal.active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: none !important;
}


/* ============================================
   DESKTOP SCROLL EFFECTS
   ============================================ */
@media (min-width: 1041px) {

    /* Topnav blurs on scroll */
    .topnav {
        transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease !important;
    }
    .topnav.scrolled {
        background: rgba(14, 14, 14, 0.72) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        box-shadow: 0 2px 24px rgba(0,0,0,0.7) !important;
    }

    /* Footer container: hidden by default, flex when scrolled */
    .button-footer {
        display: flex !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transition: filter 0.6s ease !important;
    }
    /* Glow: 24hr intro pulse */
    .button-footer.dock-glow {
        animation: dockNeonPulse 1.2s ease-in-out infinite alternate !important;
    }
    @keyframes dockNeonPulse {
        from { filter: drop-shadow(0 0 10px rgba(185,11,42,1)) drop-shadow(0 0 25px rgba(185,11,42,0.65)); }
        to   { filter: drop-shadow(0 0 28px rgba(185,11,42,1)) drop-shadow(0 0 55px rgba(185,11,42,1)); }
    }
    /* Legacy state classes — all kept visible */
    .button-footer.desktop-pulse,
    .button-footer.desktop-resting,
    .button-footer.desktop-gone,
    .button-footer.desktop-visible {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    /* Hover handled by JS mouseenter/mouseleave only */
    @keyframes footerPulseIn {
        0%   { opacity: 0; box-shadow: none; }
        15%  { opacity: 1; box-shadow: 0 0 20px rgba(185,11,42,0.8), 0 0 40px rgba(185,11,42,0.4); }
        40%  { opacity: 1; box-shadow: 0 0 10px rgba(185,11,42,0.3); }
        65%  { opacity: 1; box-shadow: 0 0 20px rgba(185,11,42,0.8), 0 0 40px rgba(185,11,42,0.4); }
        100% { opacity: 0.3; box-shadow: none; }
    }
    .button-footer .top-btn-mobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
        height: 48px !important;
        width: 48px !important;
        padding: 10px !important;
        background-color: var(--sidebar-red) !important;
        border-radius: 12px !important;
        border: none !important;
    }
    .button-footer .top-btn-mobile svg {
        width: 22px !important;
        height: 22px !important;
    }
    .button-footer .top-btn-mobile svg path {
        fill: #ffffff !important;
    }
    .button-footer .latest-btn-mobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
        height: 48px !important;
        width: auto !important;
        padding: 10px 22px !important;
        font-size: 1.05em !important;
    }
    .button-footer .random-meme-btn-mobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
        height: 48px !important;
        width: auto !important;
        padding: 10px 22px !important;
        font-size: 0.85em !important;
    }

    .button-footer .magnify-btn-desktop {
        height: 48px !important;
        width: 48px !important;
        padding: 10px !important;
        border-radius: 12px !important;
    }
    .button-footer .menu-btn {
        display: none !important;
    }
}

/* ── Hide top button group on desktop ── */
@media (min-width: 1041px) {
    .sticky-header .button-group {
        display: none !important;
    }
}

/* ══ DESKTOP DOCK: stealth/visible/glow states ══ */
@media (min-width: 1041px) {
    .button-footer.dock-stealth {
        opacity: 0.3 !important;
        transition: opacity 0.6s ease !important;
    }
    .button-footer.dock-visible {
        opacity: 1 !important;
        transition: opacity 0.15s ease !important;
    }
    .button-footer.dock-glow {
        opacity: 1 !important;
        animation: dockNeonPulse2 1.2s ease-in-out infinite alternate !important;
        transition: none !important;
    }
    @keyframes dockNeonPulse2 {
        from { filter: drop-shadow(0 0 8px rgba(185,11,42,0.8)) drop-shadow(0 0 20px rgba(185,11,42,0.5)); }
        to   { filter: drop-shadow(0 0 24px rgba(185,11,42,1))  drop-shadow(0 0 48px rgba(185,11,42,0.9)); }
    }
    

    .FIXME-SELECTOR-1:hover {
        background-color: var(--hover-red) !important;
        outline: none !important;
    }
}


/* ══ FEELS MODAL ══ */
.feels-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.feels-modal.active {
    display: flex;
}
.feels-modal-content {
    background: #1a1a1a;
    border: 1px solid var(--sidebar-red);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    max-width: 560px;
    width: 90%;
    padding: 40px;
    position: relative;
}
.feels-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(185,11,42,0.3);
}
.feels-modal-title {
    color: #fff;
    font-family: Impact, sans-serif;
    font-size: 2em;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    text-align: center;
    flex: 1;
}
.modal-divider-feels {
    width: 80px; height: 3px;
    background: linear-gradient(90deg, transparent, var(--sidebar-red), transparent);
    margin: 16px auto;
    border-radius: 2px;
}
.feels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0;
}
.feels-option {
    background: rgba(185,11,42,0.08);
    border: 2px solid rgba(185,11,42,0.35);
    border-radius: 6px;
    color: #ccc;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05em;
    font-weight: 400;
    padding: 14px 8px;
    text-align: center;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.feels-option:hover, .feels-option:focus {
    background: rgba(185,11,42,0.25);
    border-color: var(--sidebar-red);
    box-shadow: 0 0 10px rgba(185,11,42,0.4);
    color: #fff;
    outline: none;
}
.feels-option.active-feel {
    background: var(--sidebar-red);
    border-color: var(--sidebar-red);
    color: #fff;
    box-shadow: 0 0 14px rgba(185,11,42,0.6);
}
.feels-hint {
    color: #666;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85em;
    text-align: center;
    margin: 0;
}


@media (min-width: 1041px) {
    /* FIX: Added missing selector here */
    .FIXME-SELECTOR-2 {
        background-color: var(--sidebar-red) !important;
        color: #fff !important;
        font-family: Impact, sans-serif !important;
        font-size: 16px !important;
        letter-spacing: 1px !important;
        padding: 6px 16px !important;
        height: auto !important;
        width: auto !important;
        border: none !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
    
    /* FIX: Added missing selector and closing bracket here */
    .FIXME-SELECTOR-2:hover {
        background-color: var(--hover-red) !important;
        outline: none !important;
    }
}


/* --- Bobo Memes Red Toggle Design Clean Up --- */
.sticky-header, .topnav {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.red-nav-active .sticky-header,
body.red-nav-active .topnav {
    background-color: var(--sidebar-red, #b90b2a) !important;
    border-bottom: 2px solid #1a1a1a !important;
}

/* Isolate the center title text with clean dark dividing lines */
body.red-nav-active .topnav-center,
body.red-nav-active .sticky-header h1 {
    border-left: 2px solid #1a1a1a !important;
    border-right: 2px solid #1a1a1a !important;
    padding: 0 30px !important;
    background: #111111 !important;
}

/* Give the nav lists a distinct look so the red acts as structural framing */
body.red-nav-active .topnav-primary,
body.red-nav-active .topnav-secondary {
    background: #161616 !important;
    border-radius: 4px;
    padding: 4px 12px !important;
}


/* FEELS BTN FINAL */
@media (min-width: 1041px) {
    /* FIX: Added missing selector here (likely your feels button class) */
    .FIXME-SELECTOR-3 {
        height: 40px !important;
        width: 90px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
}
/* --- Smart Auto-Hiding Navigation Bar --- */
.topnav {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease !important;
    border-bottom: 1px solid var(--sidebar-red, #b90b2a) !important;
}

/* Slide it completely out of view except for the bottom 6px red boundary border */
.topnav.nav-collapsed {
    transform: translateY(calc(-100% + 1px)) !important;
}

/* Ensure Bobo logo or center text element anchors cleanly at the top of the collapsed sliver if needed */
.topnav.nav-collapsed .topnav-logo-img {
    transform: translateY(12px) scale(0.6);
    transition: transform 0.4s ease;
    cursor: pointer;
}

/* ══ MORE SIDEBAR ══ */
.more-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10998;
    backdrop-filter: blur(2px);
}
.more-overlay.active { display: block; }

.more-sidebar {
    position: fixed;
    top: 0; right: 0;
    width: 360px;
    height: 100vh;
    background: #111;
    border-left: 1px solid rgba(185,11,42,0.4);
    z-index: 10999;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    padding: 0 0 40px;
    box-shadow: -8px 0 40px rgba(0,0,0,0.7);
}
.more-sidebar.open { transform: translateX(0); }

.more-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(185,11,42,0.25);
    position: sticky;
    top: 0;
    background: #111;
    z-index: 1;
}
.more-sidebar-title {
    font-family: Impact, sans-serif;
    font-size: 1.6em;
    letter-spacing: 2px;
    color: #fff;
}
.more-sidebar-close {
    background: transparent;
    border: none;
    color: #999;
    font-size: 1.4em;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}
.more-sidebar-close:hover { color: var(--sidebar-red); }

.more-sidebar-section-label {
    font-size: 0.68em;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(185,11,42,0.8);
    padding: 16px 24px 8px;
    font-weight: 500;
}
.more-sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 16px 24px;
}

/* 3x2 cards grid */
.more-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 16px;
}
.more-card {
    position: relative;
    aspect-ratio: 3 / 2;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
	background-repeat: no-repeat;
	background-color: #5e5e5e47;
    background-position: center;
    text-decoration: none;
    display: block;
    border: 1px solid rgba(185,11,42,0.2);
    transition: border-color 0.2s, transform 0.2s;
}
.more-card:hover {
    border-color: var(--sidebar-red);
    transform: scale(1.02);
}
.more-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.05));
    transition: background 0.2s;
}
.more-card:hover .more-card-overlay {
    background: transparent !important;
}
.more-card-row {
    position: absolute;
    bottom: 8px;
    left: 0; right: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0 10px;
    gap: 8px;
}
.more-card-label {
    color: #fff;
    font-family: Impact, sans-serif;
    font-size: 0.85em;
    letter-spacing: 1px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    text-align: left;
}
.more-card-count {
    color: #e05555;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7em;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    text-align: right;
    white-space: nowrap;
}

/* Bobo Show card */
.more-boboshow-card {
    margin: 0 16px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(185,11,42,0.35);
    background: rgba(185, 11, 42, 0.6);
}
.more-boboshow-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.more-boboshow-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Shrinks the full banner artwork to fit completely */
    background-color: #000000; /* Rich black sidebars */
    transition: opacity 0.5s ease;
}
.more-boboshow-thumb.fade-out .more-boboshow-thumb-img {
    opacity: 0;
}
.more-boboshow-live-badge {
    position: absolute;
    top: 8px; left: 8px;
    background: rgba(185,11,42,0.9);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75em;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}
.more-boboshow-embed {
    aspect-ratio: 16/9;
}
.more-boboshow-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.more-boboshow-link {
    display: block;
    padding: 12px 16px;
    color: #ccc;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9em;
    text-decoration: none;
    text-align: center;
    transition: color 0.2s;
}
.more-boboshow-link:hover { color: #fff; }


/* ══ SIDEBAR CORNER THUMBNAIL FIX ══ */
.more-card {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #55555522 !important;
    border: 1px solid #000000 !important; /* Sharp black card border */
    overflow: hidden !important;
}

.more-card-overlay {
    /* Past the card edge so a hover-scale can't leave a bright strip.
       The card clips the extra. */
    position: absolute;
    inset: -12px;
    height: auto;
    background: rgba(0, 0, 0, 0.15) !important;
    transition: background 0.2s ease;
}
.more-card:hover .more-card-overlay {
    background: transparent !important;
}
.more-card.gt-current {
    outline: 1px solid #b90b2a;
    outline-offset: -1px;
}

.more-card-label {
    font-size: 0.85em !important;
    letter-spacing: 0.5px !important;
}

.more-card-count {
    font-size: 0.78em !important;
}


/* Dimensions Hotfix Override */
.more-coin-wrapper { 
    margin: 0 16px !important; 
    padding: 0 !important; 
}

.more-coin-card { 
    aspect-ratio: 1280 / 427 !important; 
}

.more-coin-img { 
    object-fit: cover !important; 
    width: 100% !important; 
    height: 100% !important;
    opacity: 1 !important;           /* full colour (was 0.3) */
    
    /* Optional smooth hover effect */
    transition: opacity 0.3s ease !important;
}

.more-coin-img:hover {
    opacity: 1 !important;              /* Becomes fully visible on hover */
}

.more-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(102px, 1fr));
    gap: 13px;
    padding: 10px;
}

.more-card {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

header.header-content, 
.sticky-header {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

header.header-content::after, 
.sticky-header::after {
    display: none !important;

}

/* 1. Target the button via its class */
.feels-btn {
    font-size: 0; /* Hides the original text "Feels" */
}

/* 2. Inject the new text only on the index page */
.theme-red .feels-btn::before {
    content: "Sentiment";
    font-size: 14px; /* Restore the font size for the new text */
}

/* 3. Ensure other pages keep the original text */
body:not(.theme-red) .feels-btn {
    font-size: 16px; /* Reset font size for non-index pages */
}
/* ── MOBILE: hide tags btn from search bar ── */
@media (max-width: 1040px) {
    #tags-btn { display: none !important; }
}

/* ── MOBILE: gallery-only scroll via flex layout ── */
@media (max-width: 1040px) {
    main {
        display: flex !important;
        flex-direction: column !important;
        height: 100vh !important;
        overflow: hidden !important;
        padding: 0 0 70px !important;
        box-sizing: border-box !important;
    }
    .header-content {
        flex-shrink: 0 !important;
        position: relative !important;
        z-index: 1002 !important;
        background-color: var(--bg-color) !important;
    }
    .gallery-wrapper {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        min-height: 0 !important;
    }
}

/* ── MOBILE: hide search container when not active ── */
@media (max-width: 1040px) {
    #search-container:not(.active) {
        display: none !important;
    }
}


/* ── MOBILE: hide up arrow and magnify from footer ── */
@media (max-width: 1040px) {
    .button-footer .top-btn-mobile { display: none !important; }
}

/* ── MOBILE: hide desktop top button ── */
@media (max-width: 1040px) {
    #top-btn-desktop { display: none !important; }
}

/* ── MOBILE: feels modal fix ── */
@media (max-width: 1040px) {
    .feels-modal {
        padding: 12px !important;
        box-sizing: border-box !important;
    }
    .feels-modal-content {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 20px 16px !important;
        overflow-y: auto !important;
        max-height: 85vh !important;
    }
    .feels-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
    .feels-option {
        padding: 10px 4px !important;
        font-size: 0.9em !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(185,11,42,0.3) !important;
    }
    .curated-liquidation-row {
        grid-column: span 3 !important;
    }
}

/* ── MOBILE: hide desktop topnav elements inside the sidebar card ── */
@media (max-width: 1040px) {
    .topnav-logo,
    .topnav-primary,
    .topnav-secondary,
    .topnav-spacer,
    .topnav-center,
    .topnav-more,
    .topnav-divider,
    .topnav-divider-grey,
    .topnav-page-title {
        display: none !important;
    }
}

/* --- "MORE" NAV IMAGE BRIGHTNESS ON HOVER --- */
/* Target images within the mobile navigation/more panel */
.mobile-nav-cards .mobile-nav-card,
.mobile-nav-coin img {
    /* Set a muted base brightness, e.g., 80% */
    filter: brightness(80%);
    /* Add a smooth transition */
    transition: filter 0.3s ease-in-out;
}

/* On hover, restore to full brightness */
.mobile-nav-cards .mobile-nav-card:hover,
.mobile-nav-coin:hover img {
    filter: brightness(100%);
}

/* --- "MORE" NAV IMAGE BRIGHTNESS HOVER --- */
.more-card {
    transition: filter 0.3s ease, transform 0.2s ease;
}

.more-card:hover {
    transform: scale(1.02);
}
.more-cards-grid .more-card:nth-child(1):hover {
    box-shadow: 0 0 24px 4px rgba(185, 11, 42, 0.7);
    border-color: rgba(185, 11, 42, 0.9);
}
.more-cards-grid .more-card:nth-child(2):hover {
    box-shadow: 0 0 24px 4px rgba(82, 153, 82, 0.7);
    border-color: rgba(82, 153, 82, 0.9);
}
.more-cards-grid .more-card:nth-child(3):hover {
    box-shadow: 0 0 24px 4px rgba(232, 156, 174, 0.7);
    border-color: rgba(232, 156, 174, 0.9);
}
.more-cards-grid .more-card:nth-child(4):hover {
    box-shadow: 0 0 24px 4px rgba(200, 120, 58, 0.7);
    border-color: rgba(200, 120, 58, 0.9);
}

.more-card-overlay {
    pointer-events: none;
}

/* ── MORE SIDEBAR: 2x2 cards grid ── */
.more-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
}
.more-card {
    aspect-ratio: 16/9 !important;
}

/* ── MORE SIDEBAR: taller cards ── */
.more-card {
    aspect-ratio: 4/3 !important;
}

/* ══ MORE SIDEBAR: Bobo Council Resources (feels-style buttons) ══ */
.more-resources-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 0 16px;
}
.more-resource-btn {
    background: rgba(185,11,42,0.08);
    border: 2px solid rgba(185,11,42,0.35);
    border-radius: 6px;
    color: #ccc;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85em;
    font-weight: 600;
    padding: 12px 8px;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.more-resource-btn:hover,
.more-resource-btn:focus {
    background: rgba(185,11,42,0.25);
    border-color: var(--sidebar-red);
    box-shadow: 0 0 10px rgba(185,11,42,0.4);
    color: #fff;
    outline: none;
}

/* Social icon row */
.more-social-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px 16px 0;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 30px;
    padding: 8px;
}
.more-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.2s;
}
.more-social-icon:hover {
    background: rgba(185,11,42,0.25);
}
.more-social-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* ══ MORE SIDEBAR: Resource grid + tracker-btn (feels-style) ══ */
.more-sidebar .resource-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 0 16px;
}
.more-sidebar .tracker-btn {
    background: rgba(185,11,42,0.08);
    border: 2px solid rgba(185,11,42,0.35);
    border-radius: 6px;
    color: #ccc;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85em;
    font-weight: 600;
    padding: 14px 8px;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.more-sidebar .tracker-btn:hover,
.more-sidebar .tracker-btn:focus {
    background: rgba(185,11,42,0.25);
    border-color: var(--sidebar-red);
    box-shadow: 0 0 10px rgba(185,11,42,0.4);
    color: #fff;
    outline: none;
}

/* Social pill row */
.more-sidebar .social-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 20px 16px 24px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 30px;
    padding: 8px;
}
.more-sidebar .social-pill a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.2s;
}
.more-sidebar .social-pill a:hover {
    background: rgba(185,11,42,0.25);
}
.more-sidebar .social-pill img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* ══ TELEGRAM / MERCH / COLLECTIONS MODALS (ported from bobo-council) ══ */
.sticker-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.sticker-modal.active {
    display: flex;
}
.sticker-modal-content {
    background: linear-gradient(145deg, #2d2d2d, #1f1f1f);
    border: 3px solid var(--sidebar-red);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(185, 11, 42, 0.6);
    width: 95%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
}
.sticker-modal-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--sidebar-red), #ff4d4d, var(--sidebar-red));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}
.sticker-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}
.sticker-modal-header h2 {
    color: var(--text-white);
    font-family: Impact, sans-serif;
    font-size: 1.8em;
    margin: 0;
    text-shadow: 0 2px 8px rgba(185, 11, 42, 0.8);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.sticker-modal .close-modal {
    background: var(--sidebar-red);
    border: 2px solid var(--hover-red);
    border-radius: 50%;
    color: var(--text-white);
    cursor: pointer;
    font-size: 1.5em;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.sticker-modal .close-modal:hover {
    background: var(--hover-red);
    transform: scale(1.1);
}
.sticker-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.sticker-link {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(185, 11, 42, 0.6);
    border-radius: 10px;
    color: var(--text-white);
    font-family: 'Oswald', sans-serif;
    font-size: 0.95em;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 14px 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
    text-align: center;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 2px 8px rgba(0,0,0,0.3);
}
.sticker-link:hover {
    background: rgba(185, 11, 42, 0.45);
    border-color: rgba(255, 77, 77, 0.9);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(185, 11, 42, 0.55), inset 0 1px 0 rgba(255,255,255,0.1);
    color: #fff;
}

/* ── More sidebar: don't blur modals that open on top ── */
.more-sidebar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
/* Ensure modals always render above the sidebar */
.sticker-modal, .bobros-modal, .roadmap-modal, .feels-modal,
.contract-addr-modal, #feels-modal {
    z-index: 99999 !important;
}

/* ══ Sticker modal: 3-column override (wider modal, longer list) ══ */
#sticker-modal .sticker-modal-content {
    max-width: 760px;
}
#sticker-modal .sticker-links {
    grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 767px) {
    #sticker-modal .sticker-links {
        grid-template-columns: 1fr 1fr;
    }
}

/* ══ Equal-width resource buttons ══ */
.more-sidebar .resource-grid {
    grid-template-columns: 1fr 1fr !important;
}
.more-sidebar .tracker-btn {
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
    line-height: 1.3;
}

/* ── DESKTOP DOCK: match up arrow + magnify to red buttons ── */
@media (min-width: 1041px) {
    #top-btn-desktop,
    #magnify-btn-desktop {
        background-color: var(--sidebar-red) !important;
        border: none !important;
    }
    #top-btn-desktop svg path {
        fill: #ffffff !important;
    }
    #magnify-btn-desktop .magnify-icon,
    #magnify-btn-desktop svg {
        filter: brightness(0) invert(1) !important;
    }
}

/* ══ MOBILE NAV CARD PANEL (slide-down dropdown, no bg image) ══ */
.mobile-nav-card-panel { display: none; }

@media (max-width: 1040px) {
    .mobile-nav-card-panel {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background: #161616;
        border-bottom: 1px solid rgba(185,11,42,0.4);
        box-shadow: 0 8px 24px rgba(0,0,0,0.6);
        z-index: 9997;
        opacity: 0;
        transition: max-height 0.32s ease, opacity 0.25s ease;
        padding: 0 16px;
        box-sizing: border-box;
    }
    .mobile-nav-card-panel.active {
        max-height: 85vh;
        overflow-y: auto;
        opacity: 1;
        padding: 70px 16px 24px;
    }

    .mnav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    .mnav-link {
        display: block;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.06);
        border-radius: 8px;
        color: #fff;
        font-family: Oswald, sans-serif;
        font-size: 1.1em;
        font-weight: 600;
        padding: 14px 16px;
        text-align: center;
        text-decoration: none;
        transition: background 0.2s, border-color 0.2s;
    }
    .mnav-link:hover, .mnav-link.active {
        background: rgba(185,11,42,0.2);
        border-color: var(--sidebar-red);
    }

    .mnav-more-toggle {
        background: var(--sidebar-red);
        border: none;
        border-radius: 8px;
        color: #fff;
        cursor: pointer;
        font-family: Impact, sans-serif;
        font-size: 1.15em;
        letter-spacing: 1px;
        margin-top: 12px;
        padding: 12px 20px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        transition: background 0.2s;
    }
    .mnav-more-toggle:hover { background: var(--hover-red); }
    .mnav-more-toggle .mnav-chevron {
        transition: transform 0.25s ease;
        font-size: 0.7em;
    }
    .mnav-more-toggle.open .mnav-chevron {
        transform: rotate(180deg);
    }

    .mnav-more-panel {
        display: grid;
        grid-template-rows: 0fr;
        overflow: hidden;
        transition: grid-template-rows 0.3s ease;
        width: 100%;
    }
    .mnav-more-panel.open {
        grid-template-rows: 1fr;
        margin-top: 10px;
    }
    .mnav-more-panel > .mnav-cards-grid {
        min-height: 0;
    }

    .mnav-cards-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        width: 100%;
    }
    .mnav-card {
        position: relative;
        aspect-ratio: 4/3;
        background-size: cover;
        background-position: center;
        border-radius: 8px;
        border: 1px solid rgba(185,11,42,0.4);
        display: flex;
        align-items: flex-end;
        justify-content: center;
        overflow: hidden;
        text-decoration: none;
        transition: border-color 0.2s, transform 0.2s;
    }
    .mnav-card:active {
        border-color: var(--sidebar-red);
        transform: scale(0.97);
    }
    .mnav-card::before { content: none; }
    .mnav-card-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 40px;
        background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 100%);
        pointer-events: none;
        z-index: 1;
    }
    .mnav-card span {
        position: relative;
        z-index: 2;
    }
    .mnav-card-row {
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
    padding: 8px 10px;
    gap: 8px;
}
.mnav-card-label {
    color: #fff;
    font-family: Impact, sans-serif;
    font-size: 1em;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    text-align: left;
}
}

/* Update Bobo Council Resources to a 2-column grid */
.resource-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
}

.resource-grid .tracker-btn {
    width: 100% !important;
    margin: 0 !important;
}


/* ══ Hide hamburger icon — MORE dock button opens mobile nav instead ══ */
@media (max-width: 1040px) {
    .menu-toggle {
        display: none !important;
    }
}

/* ── mnav safety guard removed ── */


/* ══ MOBILE NAV MODAL ══ */
.mnav-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    background: rgba(0,0,0,0.85) !important;
    z-index: 10000 !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}
.mnav-modal.active {
    display: flex !important;
}
.mnav-modal-content {
    background: #1a1a1a !important;
    border: 1px solid var(--sidebar-red) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8) !important;
    width: 90% !important;
    max-width: 420px !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    padding: 30px !important;
    position: relative !important;
    box-sizing: border-box !important;
}
.mnav-modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 24px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid rgba(185,11,42,0.3) !important;
}
.mnav-modal-header h2 {
    color: #fff !important;
    font-family: Impact, sans-serif !important;
    font-size: 1.7em !important;
    margin: 0 !important;
    text-shadow: 0 2px 8px rgba(185,11,42,0.6) !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    flex: 1 !important;
    text-align: center !important;
}
.close-modal {
    background: transparent !important;
    border: none !important;
    color: #999 !important;
    font-size: 1.1em !important;
    cursor: pointer !important;
    padding: 2px 6px !important;
    line-height: 1 !important;
    transition: color 0.2s !important;
}
.close-modal:hover { color: var(--sidebar-red) !important; }

.mnav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-bottom: 8px;
}
.mnav-link {
    display: block;
    background: rgba(185,11,42,0.08);
    border: 2px solid rgba(185,11,42,0.35);
    border-radius: 8px;
    color: #ccc;
    font-family: Oswald, sans-serif;
    font-size: 1.05em;
    font-weight: 600;
    padding: 13px 16px;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.mnav-link:hover {
    background: rgba(185,11,42,0.25);
    border-color: var(--sidebar-red);
    color: #fff;
}
.mnav-link.active {
    background: var(--sidebar-red);
    border-color: var(--sidebar-red);
    color: #fff;
}

.mnav-more-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--sidebar-red);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-family: Impact, sans-serif;
    font-size: 1.15em;
    letter-spacing: 1px;
    margin-top: 12px;
    padding: 13px 20px;
    width: 100%;
    transition: background 0.2s;
}
.mnav-more-toggle:hover { background: #a00; }
.mnav-chevron {
    transition: transform 0.25s ease;
    font-size: 0.8em;
    display: inline-block;
}
.mnav-more-toggle.open .mnav-chevron {
    transform: rotate(180deg);
}

.mnav-cards-grid {
    display: grid;
    grid-template-rows: 0fr;
    grid-template-columns: 1fr 1fr;
    gap: 0 10px;
    width: 100%;
    overflow: hidden;
    transition: grid-template-rows 0.3s ease, margin-top 0.3s ease, gap 0.3s ease;
    margin-top: 0;
}
.mnav-cards-grid.open {
    grid-template-rows: 1fr;
    margin-top: 14px;
    gap: 6px;
}
.mnav-cards-grid > * {
    min-height: 0;
    overflow: hidden;
}
.mnav-card {
    position: relative;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    border: 1px solid rgba(185,11,42,0.4);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}
.mnav-card:active {
    transform: scale(0.96);
    border-color: var(--sidebar-red);
}
.mnav-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.1));
}
.mnav-card span {
    position: relative;
    color: #fff;
    font-family: Impact, sans-serif;
    font-size: 1em;
    letter-spacing: 1px;
    padding: 8px;
    text-align: center;
    width: 100%;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}


/* ── mnav: always-visible cards (no accordion) ── */
.mnav-cards-always {
    grid-template-rows: 1fr !important;
    margin-top: 16px !important;
    gap: 10px !important;
    overflow: visible !important;
}
.mnav-cards-always .mnav-card {
    visibility: visible !important;
}
/* header: just the close button, no title */
.mnav-modal-header {
    justify-content: flex-end !important;
    border-bottom: none !important;
    margin-bottom: 8px !important;
    padding-bottom: 0 !important;
}
/* hide more-toggle since we removed it */
.mnav-more-toggle { display: none !important; }


/* ══ mnav redesign v2 ══ */
.mnav-modal-content {
    padding: 20px !important;
    border-radius: 12px !important;
}
.mnav-modal-header {
    margin-bottom: 12px !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}
.mnav-link {
    padding: 10px 16px !important;
    font-size: 1em !important;
    letter-spacing: 0.5px !important;
    border-width: 1.5px !important;
}
.mnav-galleries-divider {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 16px 0 14px;
}
.mnav-galleries-divider::before,
.mnav-galleries-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(185,11,42,0.35);
}
.mnav-galleries-divider span {
    color: #666;
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.mnav-card {
    aspect-ratio: 1/1 !important;
    border-radius: 10px !important;
    border-width: 1.5px !important;
}
.mnav-cards-always {
    gap: 8px !important;
    margin-top: 0 !important;
}


/* ── mnav card borders - solid ── */
.mnav-card {
    border: 1.5px solid #b90b2a !important;
}
.mnav-card:hover {
    border-color: #e0102f !important;
}


/* ── mnav card overlay - shorter + smaller label ── */
.mnav-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 22%, rgba(0,0,0,0.05) 48%) !important;
}
.mnav-card span {
    font-size: 0.75em !important;
    padding: 6px !important;
    letter-spacing: 1.5px !important;
}



/* ══ mnav modal: locked to red theme regardless of page brand colors ══ */
#mnav-modal .mnav-modal-content {
    border-color: #b90b2a !important;
}
#mnav-modal .mnav-link.active {
    background: #b90b2a !important;
    border-color: #b90b2a !important;
    color: #fff !important;
}
#mnav-modal .mnav-link:hover {
    background: rgba(185,11,42,0.25) !important;
    border-color: #b90b2a !important;
    color: #fff !important;
}
#mnav-modal .mnav-galleries-divider::before,
#mnav-modal .mnav-galleries-divider::after {
    background: rgba(185,11,42,0.35) !important;
}
#mnav-modal .mnav-card {
    border-color: #b90b2a !important;
}

/* ══ blur via backdrop-filter on the overlay — no layout shift ══ */
#mnav-modal {
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 99999 !important;
}

/* search-container hard-hide removed: bringing top search bar back */


/* ══ collapse sticky-header on mobile — no ghost space ══ */
@media (max-width: 1040px) {
    .sticky-header {
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        border: none !important;
        box-shadow: none !important;
    }
    .header-content {
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }
}


/* ══ mobile: fix topnav pushing gallery down ══ */
@media (max-width: 1040px) {
    .topnav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9000 !important;
    }
    main {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}


/* ══ mobile: remove gallery-container top margin ══ */
@media (max-width: 1040px) {
    #gallery-container {
        margin-top: 0 !important;
    }
}


/* ══ mobile: gallery bottom clearance for search bar + footer ══ */
@media (max-width: 1040px) {
    #gallery-container {
        padding-bottom: 160px !important;
    }
}


/* ══ mobile search bar: no auto-focus blink, ghostly styling ══ */
@media (max-width: 1040px) {
    #footer-search-input {
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        color: rgba(255,255,255,0.35) !important;
        font-family: Oswald, sans-serif !important;
        font-size: 0.95em !important;
        font-weight: 400 !important;
        letter-spacing: 0.5px !important;
        outline: none !important;
        padding: 4px 0 !important;
        width: 100% !important;
        caret-color: transparent !important;
    }
    #footer-search-input:focus {
        color: rgba(255,255,255,0.85) !important;
        caret-color: #b90b2a !important;
    }
    #footer-search-input::placeholder {
        color: rgba(255,255,255,0.25) !important;
        font-style: italic !important;
    }
    /* prevent page jumping to input on mobile */
    #footer-search-bar {
        pointer-events: auto !important;
    }
    #footer-search-input:not(:focus) {
        pointer-events: none !important;
    }
    #footer-search-bar:active #footer-search-input,
    #footer-search-bar:focus-within #footer-search-input {
        pointer-events: auto !important;
        caret-color: #b90b2a !important;
        color: rgba(255,255,255,0.85) !important;
    }
}



/* ══ mobile: frosted glass dock ══ */
@media (max-width: 1040px) {
    .button-footer {
        background: rgba(18,18,18,0.85) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(185,11,42,0.35) !important;
        border-radius: 20px !important;
        padding: 8px 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-around !important;
        gap: 4px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 94% !important;
        max-width: 480px !important;
        box-sizing: border-box !important;
        box-shadow: none !important;
    }

    .button-footer > button,
    .button-footer > a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: none !important;
        border-radius: 12px !important;
        color: rgba(255,255,255,0.55) !important;
        font-family: Oswald, sans-serif !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        letter-spacing: 1.5px !important;
        text-transform: uppercase !important;
        padding: 8px 10px !important;
        min-width: 52px !important;
        cursor: pointer !important;
        transition: color 0.2s, background 0.2s !important;
        box-shadow: none !important;
    }

    .button-footer > button:hover,
    .button-footer > button:active {
        color: #fff !important;
        background: rgba(185,11,42,0.2) !important;
    }

    /* magnify button keeps its icon, hide text */
    #magnify-btn-mobile {
        font-size: 0 !important;
    }
    #magnify-btn-mobile svg {
        display: block !important;
        width: 20px !important;
        height: 20px !important;
    }
}


/* ══ mobile dock: menu-btn = hamburger icon, no text ══ */
@media (max-width: 1040px) {
    #menu-btn {
        font-size: 0 !important;
        color: transparent !important;
        align-items: center !important;
        justify-content: center !important;
    }
    #menu-btn::before {
        content: "";
        display: block;
        width: 20px;
        height: 14px;
        margin: 0 auto;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='14' viewBox='0 0 20 14'%3E%3Cline x1='0' y1='1' x2='20' y2='1' stroke='rgba(255,255,255,0.55)' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='0' y1='7' x2='20' y2='7' stroke='rgba(255,255,255,0.55)' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='0' y1='13' x2='20' y2='13' stroke='rgba(255,255,255,0.55)' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
    }
}


/* ══ bobo index: red buttons ══ */
@media (max-width: 1040px) {
    body.page-bobo .button-footer > button,
    body.page-bobo .button-footer > a {
        color: #fff !important;
        background: rgba(185,11,42,0.75) !important;
        border: 1px solid rgba(185,11,42,0.9) !important;
        border-radius: 12px !important;
    }
    body.page-bobo .button-footer > button:active {
        background: #b90b2a !important;
    }
}

/* hide-magnify-on-mobile removed: icon restored */


/* mobile magnify button hide removed: bringing icon back */


/* ══ hide desktop magnify on mobile ══ */
@media (max-width: 1040px) {
    #magnify-btn-desktop {
        display: none !important;
    }
}

/* ══ FINAL: hide the desktop floating footer-search-bar on mobile (search moved back to top) ══ */
@media (max-width: 1040px) {
    #footer-search-bar,
    .footer-search-bar {
        display: none !important;
    }
}
#mobile-tags-funnel-btn {
    background: none;
    border: none;
    color: var(--sidebar-red);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 32px;
    padding: 0;
    flex-shrink: 0;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
#mobile-tags-funnel-btn:active {
    background: rgba(185,11,42,0.15);
    color: #fff;
}
#mobile-tags-funnel-btn svg {
    pointer-events: none;
}
/* mobile-top-search-bar removed: reusing existing #search-container instead */

/* ══ MOBILE: clean restyle of existing #search-container, top-positioned, desktop-matched look ══ */
@media (max-width: 1040px) {
    body:not(:has(#latest-btn[aria-label*="Bobo collections"])) .sticky-header #search-container,
    body .sticky-header #search-container,
    #search-container {
        position: fixed !important;
        top: 56px !important;
        left: 16px !important;
        right: 16px !important;
        transform: none !important;
        width: auto !important;
        max-width: none !important;
        background: #161616 !important;
        border: 1px solid rgba(185,11,42,0.4) !important;
        border-radius: 10px !important;
        padding: 8px 10px !important;
        z-index: 1002 !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        height: auto !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
    }
    body:not(:has(#latest-btn[aria-label*="Bobo collections"])) .sticky-header #search-container.hidden,
    body .sticky-header #search-container.hidden,
    #search-container.hidden {
        display: none !important;
    }
    body:not(:has(#latest-btn[aria-label*="Bobo collections"])) .sticky-header #search-container.active,
    body .sticky-header #search-container.active,
    #search-container.active {
        display: flex !important;
        opacity: 1 !important;
    }
    body:not(:has(#latest-btn[aria-label*="Bobo collections"])) .sticky-header #search-container:not(.active),
    body .sticky-header #search-container:not(.active) {
        display: none !important;
    }
    #search-container .search-controls {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    #search-container #tags-btn {
        display: none !important;
    }
    #search-container .search-input-container {
        flex: 1 !important;
        position: relative !important;
    }
    #search-container .search-input-container form {
        display: flex !important;
        width: 100% !important;
    }
    #search-container #search-input {
        width: 100% !important;
        background: #222 !important;
        border: 1px solid rgba(185,11,42,0.3) !important;
        border-radius: 6px !important;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
        font-family: Oswald, sans-serif !important;
        font-size: 0.85em !important;
        letter-spacing: 0.5px !important;
        outline: none !important;
        padding: 7px 30px 7px 10px !important;
        box-sizing: border-box !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        opacity: 1 !important;
        height: auto !important;
    }
    #search-container #custom-placeholder {
        display: none !important;
    }
    #search-container .clear-search-btn {
        position: absolute !important;
        right: 6px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        background: transparent !important;
        border: none !important;
        color: rgba(255,255,255,0.5) !important;
        font-size: 0.8em !important;
    }
}

/* ══ BOBO THEME: red buttons, white text, red glow ══ */
@media (max-width: 1040px) {
    body.page-bobo .button-footer > button,
    body.page-bobo .button-footer > a {
        color: #fff !important;
        background: #b90b2a !important;
        border: none !important;
        box-shadow: 0 0 8px rgba(185,11,42,0.5) !important;
    }
    body.page-bobo .button-footer > button:active {
        background: #8a081e !important;
        box-shadow: 0 0 16px rgba(185,11,42,0.9) !important;
    }
    body.page-bobo .button-footer > button:focus,
    body.page-bobo .button-footer > button:focus-visible {
        background: #b90b2a !important;
        color: #fff !important;
        outline: none !important;
    }
    body.page-bobo .button-footer svg,
    body.page-bobo .button-footer svg path,
    body.page-bobo .button-footer svg circle,
    body.page-bobo .button-footer svg line {
        stroke: #fff !important;
        fill: none !important;
    }
}

/* ══ mobile nav: overlay on gallery cards ══ */
@media (max-width: 1040px) {
    .mnav-card-overlay {
        display: block !important;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50px;
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%) !important;
        inset: unset !important;
    }
}


/* ══ mnav: Option A — outlined inactive, solid red active ══ */
#mnav-modal .mnav-link {
    background: transparent !important;
    border: 1.5px solid rgba(255,255,255,0.15) !important;
    border-radius: 8px !important;
    color: rgba(255,255,255,0.7) !important;
    font-size: 13px !important;
    padding: 12px !important;
}
#mnav-modal .mnav-link:hover {
    border-color: rgba(255,255,255,0.35) !important;
    color: #fff !important;
    background: rgba(255,255,255,0.05) !important;
}
#mnav-modal .mnav-link.active {
    background: #b90b2a !important;
    border-color: #b90b2a !important;
    color: #fff !important;
}
#mnav-modal .mnav-galleries-divider::before,
#mnav-modal .mnav-galleries-divider::after {
    background: rgba(255,255,255,0.1) !important;
}
#mnav-modal .mnav-galleries-divider span {
    color: #555 !important;
}



/* ══ more-sidebar: Option B — ghost pill with red glow ══ */
.more-sidebar .tracker-btn {
    background: transparent !important;
    border: 1px solid rgba(185,11,42,0.5) !important;
    border-radius: 20px !important;
    color: #fff !important;
    font-size: 11px !important;
    padding: 10px !important;
    text-align: center !important;
    box-shadow: 0 0 8px rgba(185,11,42,0.2) !important;
    transition: background 0.2s, box-shadow 0.2s !important;
}
.more-sidebar .tracker-btn:hover {
    background: rgba(185,11,42,0.15) !important;
    box-shadow: 0 0 14px rgba(185,11,42,0.5) !important;
    border-color: #b90b2a !important;
}

/* ══ TRUE FINAL: kill dropDown/closeUp animation fighting our search bar position ══ */
@media (max-width: 1040px) {
    body:not(:has(#latest-btn[aria-label*="Bobo collections"])) .sticky-header #search-container.active,
    body .sticky-header #search-container.active,
    #search-container.active {
        animation: none !important;
        position: fixed !important;
        top: 56px !important;
        left: 16px !important;
        right: 16px !important;
        transform: none !important;
        opacity: 1 !important;
    }
    body:not(:has(#latest-btn[aria-label*="Bobo collections"])) .sticky-header #search-container:not(.active),
    body .sticky-header #search-container:not(.active) {
        animation: none !important;
    }
}

/* ══ NUCLEAR FINAL: guarantee #search-container is visible and positioned, no exceptions ══ */
@media (max-width: 1040px) {
    html body div.sticky-header div#search-container.active,
    html body #search-container.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        top: 56px !important;
        left: 16px !important;
        right: 16px !important;
        width: auto !important;
        min-width: 200px !important;
        min-height: 40px !important;
        height: auto !important;
        max-width: none !important;
        transform: none !important;
        margin: 0 !important;
        background: #161616 !important;
        border: 1px solid rgba(185,11,42,0.4) !important;
        border-radius: 10px !important;
        padding: 8px 10px !important;
        z-index: 99999 !important;
        box-sizing: border-box !important;
        animation: none !important;
    }
    html body div.sticky-header div#search-container.active .search-controls,
    html body #search-container.active .search-controls {
        position: static !important;
        left: auto !important;
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        gap: 8px !important;
    }
    html body div.sticky-header div#search-container.active .search-input-container,
    html body #search-container.active .search-input-container {
        position: static !important;
        display: block !important;
        width: 100% !important;
        flex: 1 !important;
    }
    html body div.sticky-header div#search-container.active #search-input,
    html body #search-container.active #search-input {
        display: block !important;
        width: 100% !important;
        min-height: 36px !important;
        background: #222 !important;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
        border: 1px solid rgba(185,11,42,0.3) !important;
        border-radius: 6px !important;
        padding: 0 30px 0 12px !important;
        box-sizing: border-box !important;
        font-size: 0.9em !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* ══ MTB: brand new, conflict-free mobile top search bar wrapper ══ */
@media (max-width: 1040px) {
    #mtb-wrap {
        position: fixed;
        top: 56px;
        left: 16px;
        right: 16px;
        z-index: 99999;
        display: none;
        background: #161616;
        border: 1px solid rgba(185,11,42,0.4);
        border-radius: 10px;
        padding: 8px 10px;
        box-sizing: border-box;
    }
    #mtb-wrap.mtb-open {
        display: block;
    }
    #mtb-inner {
        width: 100%;
    }
    #mtb-inner {
        position: relative !important;
        display: block !important;
        width: 100% !important;
    }
    #mtb-inner form#search-form {
        all: revert !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        position: relative !important;
        margin: 0 !important;
    }
    #mtb-inner #tags-btn {
        display: none !important;
    }
    #mtb-inner #custom-placeholder {
        display: none !important;
    }
    #mtb-inner input#search-input {
        all: revert !important;
        width: 100% !important;
        background: #222 !important;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
        border: 1px solid rgba(185,11,42,0.3) !important;
        border-radius: 6px !important;
        padding: 8px 30px 8px 12px !important;
        font-size: 0.9em !important;
        font-family: Oswald, sans-serif !important;
        outline: none !important;
        box-sizing: border-box !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        height: auto !important;
        margin: 0 !important;
    }
    #mtb-inner .clear-search-btn {
        all: revert !important;
        position: absolute !important;
        right: 8px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        background: transparent !important;
        border: none !important;
        color: rgba(255,255,255,0.5) !important;
        font-size: 0.8em !important;
        cursor: pointer !important;
    }
}

/* ══ MTB FOLLOWUP: original #search-container always hidden on mobile now (its input lives in #mtb-wrap) ══ */
@media (max-width: 1040px) {
    html body #search-container,
    html body .sticky-header #search-container,
    html body div.sticky-header div#search-container {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        pointer-events: none !important;
    }
}


/* ══ hide captions on curated liquidation items ══ */
.media-item[data-hide-caption="true"] .caption,
.media-item[data-hide-caption="true"] .meme-caption,
.media-item[data-hide-caption="true"] figcaption,
.media-item[data-hide-caption="true"] p {
    display: none !important;
}


/* ══ topnav page title: clickable, same look as before ══ */
a.topnav-page-title {
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer !important;
}
a.topnav-page-title:hover {
    opacity: 0.75 !important;
    transition: opacity 0.2s !important;
}


/* ══ topnav page title: clickable, same look as before ══ */
a.topnav-page-title {
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer !important;
}
a.topnav-page-title:hover {
    opacity: 0.75 !important;
    transition: opacity 0.2s !important;
}


/* ══ topnav-center: allow clicks through to page title link ══ */
.topnav-center {
    pointer-events: none !important;
}
.topnav-center a,
a.topnav-page-title {
    pointer-events: auto !important;
}


/* ══ hide longs/shorts rekt buttons on all pages except index ══ */
body:not(.page-bobo) .curated-liquidation-row,
body:not(.page-bobo) .liquid-longs,
body:not(.page-bobo) .liquid-shorts {
    display: none !important;
}


/* ══ ULTRAWIDE: bigger memes, optimized columns ══ */

/* 1440p ultrawide (2560px) — 7 columns, 320px images */
@media (min-width: 2560px) {
    #gallery {
        grid-template-columns: repeat(7, 1fr) !important;
    }
    #gallery img,
    #gallery video {
        height: 320px !important;
        max-width: 320px !important;
        width: 320px !important;
    }
}

/* Super ultrawide (3200px) — 8 columns, 360px images */
@media (min-width: 3200px) {
    #gallery {
        grid-template-columns: repeat(8, 1fr) !important;
    }
    #gallery img,
    #gallery video {
        height: 360px !important;
        max-width: 360px !important;
        width: 360px !important;
    }
}

/* 4K (3840px) — 10 columns, 400px images */
@media (min-width: 3840px) {
    #gallery {
        grid-template-columns: repeat(10, 1fr) !important;
    }
    #gallery img,
    #gallery video {
        height: 400px !important;
        max-width: 400px !important;
        width: 400px !important;
    }
}


/* ══ feels modal: tabs ══ */
.feels-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.feels-tab {
    flex: 1;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-family: Oswald, sans-serif;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 10px;
    text-transform: uppercase;
    transition: all 0.2s;
}
.feels-tab.active {
    background: #b90b2a;
    border-color: #b90b2a;
    color: #fff;
}


/* ══ feels modal: tighter header when title hidden ══ */
.feels-modal-header:has(.feels-modal-title[style*="none"]) {
    margin-bottom: 4px !important;
    padding-bottom: 0 !important;
}
.feels-tabs {
    margin-top: 4px !important;
}


/* ══ feels modal: always hide title + divider, tabs handle context ══ */
.feels-modal .feels-modal-title,
.feels-modal .modal-divider-feels {
    display: none !important;
}


/* ══ search loading spinner ══ */
.search-loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}
.search-loading-overlay.active {
    display: flex;
}
.search-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(185,11,42,0.2);
    border-top: 4px solid #b90b2a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.search-loading-text {
    color: rgba(255,255,255,0.7);
    font-family: Oswald, sans-serif;
    font-size: 0.95em;
    letter-spacing: 2px;
    text-transform: uppercase;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ══ feels modal: smaller tag buttons to fit more ══ */
.feels-grid-tags .feels-option {
    padding: 8px 6px !important;
    font-size: 0.78em !important;
    letter-spacing: 0.5px !important;
}
.feels-grid-tags {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
}


/* ══ mnav: social links ══ */
.mnav-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin-top: 18px;
    padding: 16px 8px 4px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.mnav-social-link {
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    padding: 6px;
    transition: color 0.2s;
}
.mnav-social-link svg {
    width: 18px;
    height: 18px;
}
.mnav-social-link:hover {
    color: #fff;
}

/* Site destinations under the social row — Games + Bobo Videos */
.mnav-site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
    padding: 14px 4px 4px;
    border-top: 1px solid rgba(255,255,255,0.10);
}
.mnav-site-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(245,245,248,0.88);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.mnav-site-link svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
}
.mnav-site-link:hover,
.mnav-site-link:active {
    color: #fff;
}
.mnav-site-link.mnav-site-current { color: #fff; }
.mnav-site-rule {
    width: 1px;
    height: 13px;
    background: rgba(255,255,255,0.14);
    flex: 0 0 1px;
}


/* ══ Space Grotesk: menus, modals, buttons ══ */
.mnav-link,
.mnav-more-toggle,
.mnav-galleries-divider span,
.feels-modal-title,
.feels-option,
.feels-tab,
/* Primary action buttons — Space Grotesk Bold */
.button-footer > button,
.button-footer > a,
.mfd-tab,
.close-modal {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700 !important;
}
/* Secondary interactive elements — Space Grotesk Regular */
.tag-option,
.more-sidebar-section-label,
.more-card-label,
.tracker-btn,
.last-updated-link,
#footer-search-input,
#search-input,
.search-loading-text,
.mfd-option,
.mnav-social-link {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 400 !important;
}



/* ══ mobile dock: smaller button font ══ */
@media (max-width: 1040px) {
    .button-footer > button,
    .button-footer > a {
        font-size: 9.9px !important;
    }
}

/* =============================================
   Desktop footer button font standardization
   ============================================= */
@media (min-width: 1041px) {
    #feels-btn::before {
        font-family: 'Space Grotesk', sans-serif !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px !important;
    }
    #latest-btn-mobile {
        font-family: 'Space Grotesk', sans-serif !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px !important;
    }
    #random-meme-btn-mobile {
        font-family: 'Space Grotesk', sans-serif !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px !important;
    }
}

/* ══ Hide native search input clear button ══ */
#footer-search-input::-webkit-search-cancel-button {
    display: none !important;
    -webkit-appearance: none !important;
}
#footer-search-input[type="search"]::-webkit-search-cancel-button {
    display: none !important;
}

/* ══ Hide native search input clear button on all search inputs ══ */
input[type="search"]::-webkit-search-cancel-button {
    display: none !important;
    -webkit-appearance: none !important;
}


/* ══ desktop gallery: tighter gaps, 10% larger images ══ */
@media (min-width: 1041px) and (max-width: 2559px) {
    #gallery {
        gap: 6px !important;
    }
    #gallery img,
    #gallery video {
        height: 188px !important;
        max-width: 188px !important;
        width: 188px !important;
    }
}


/* ══ TABLET: bigger footer dock ══ */
@media (min-width: 769px) and (max-width: 1040px) {
    .button-footer {
        padding: 10px 16px !important;
        gap: 8px !important;
        border-radius: 28px !important;
        width: 94% !important;
        max-width: 860px !important;
        bottom: 28px !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .button-footer > button,
    .button-footer > a {
        font-size: 16px !important;
        padding: 14px 20px !important;
        border-radius: 16px !important;
        min-width: 0 !important;
        flex: 1 1 0 !important;
        height: 54px !important;
    }
}

/* ══ TABLET: nav modal cards larger ══ */
@media (min-width: 769px) and (max-width: 1040px) {
    .mnav-modal-inner,
    .mnav-modal-content {
        width: 62vw !important;
        max-width: 62vw !important;
        padding: 24px !important;
    }
    .mnav-cards-grid {
        gap: 12px !important;
    }
    .mnav-card {
        aspect-ratio: 5/3 !important;
        border-radius: 12px !important;
    }
    .mnav-card-label {
        font-size: 1.1em !important;
        padding: 9px !important;
    }
    .mnav-link {
        font-size: 1.15em !important;
        padding: 15px !important;
    }
    .mnav-social-row a,
    .mnav-social-row svg {
        width: 30px !important;
        height: 30px !important;
    }
}

/* ══ TABLET: gallery layout fix (769px-1024px) ══ */
@media (min-width: 769px) and (max-width: 1040px) {
    #gallery {
        grid-template-columns: repeat(4, 1fr) !important;
        column-gap: 4px !important;
        row-gap: 4px !important;
        justify-items: stretch !important;
        padding: 4px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    #gallery img,
    #gallery video {
        width: 100% !important;
        height: calc((100vw - 32px) / 4) !important;
        max-width: 100% !important;
        object-fit: cover !important;
    }
}

@media (max-width: 768px) {
    #gallery {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        padding: 4px !important;
    }
    #gallery img,
    #gallery video {
        width: 100% !important;
        height: calc((100vw - 32px) / 3) !important;
        max-width: 100% !important;
        object-fit: cover !important;
    }
}

/* ── FINAL OVERRIDE: kill dead space above mobile nav links, guaranteed win via source order + !important ── */
#mnav-modal .mnav-modal-header {
    margin-bottom: -8px !important;
    padding-bottom: 0 !important;
}
#mnav-modal .mnav-modal-content {
    gap: 10px !important;
    padding: 22px 22px 20px !important;
}

/* ── Remove the mobile nav close button entirely -- tap outside to close instead ── */
#mnav-modal-close, #mnav-modal .close-modal {
    display: none !important;
}

/* Lock the page behind the mobile nav — gallery pages scroll `main`,
   council/about scroll the document. Studio already does this locally. */
html.sidebar-active,
html.sidebar-active body,
body.sidebar-active {
    overflow: hidden !important;
    overscroll-behavior: none !important;
    touch-action: none;
}
body.sidebar-active {
    position: fixed !important;
    width: 100% !important;
    left: 0;
    right: 0;
}
body.sidebar-active main,
body.sidebar-active .container,
body.sidebar-active .gallery-wrapper,
body.sidebar-active .bc-main {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}
body.sidebar-active #mnav-modal,
body.sidebar-active #mnav-modal * {
    touch-action: auto;
}

/* Dock dims in sync with the search bar while scrolling, restores slowly */
.button-footer.search-dimmed {
    opacity: 0.3 !important;
    transition: opacity 0.7s ease !important;
}

/* ── Cross-page nav row at the bottom of the feels/tags modal ── */
.modal-page-nav {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(224, 85, 85, 0.25);
}
.modal-page-nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 8px;
    background: rgba(224, 85, 85, 0.07);
    border: 1px solid rgba(224, 85, 85, 0.35);
    border-radius: 8px;
    color: #eee;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}
.modal-page-nav-btn:hover {
    background: rgba(224, 85, 85, 0.18);
    border-color: rgba(224, 85, 85, 0.7);
}
.modal-page-nav-btn img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}
@media (max-width: 768px) {
    .modal-page-nav { display: none !important; }
}

/* bobo-icon-scale */
.modal-page-nav-btn img[src*="bobomemescom"] {
    transform: scale(1.45);
}


/* ===== GAMES MODAL (added by patch script) ===== */
#games-nav-link {
    position: relative;
}
#games-nav-link::after {
    content: "NEW";
    font-size: 0.5em;
    background: var(--sidebar-red);
    color: #fff;
    padding: 2px 5px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: 2px;
}

#games-nav-link.games-seen::after {
    display: none;
}

/* GAMES MODAL REDESIGN v2 */
body.games-modal-open {
    overflow: hidden;
}

.games-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(13px) saturate(140%);
    -webkit-backdrop-filter: blur(13px) saturate(140%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.games-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.games-modal {
    width: 100%;
    max-width: 1180px;
    height: 620px;
    max-height: 80vh;
    background: linear-gradient(180deg, rgba(26,26,26,1) 0%, rgba(15,15,15,1) 100%);
    border: 1px solid rgba(185, 11, 42, 0.22);
    border-radius: 18px;
    box-shadow: 0 0 40px rgba(185, 11, 42, 0.15), 0 20px 60px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transform: scale(0.97);
    transition: transform 0.25s ease;
}

.games-modal::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(185, 11, 42, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(185, 11, 42, 0.06) 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 0%, transparent 62%);
    mask-image: radial-gradient(ellipse at 50% 40%, black 0%, transparent 62%);
    pointer-events: none;
    z-index: 0;
}

.games-modal-header,
.games-carousel-wrap,
.games-footer-tag {
    position: relative;
    z-index: 1;
}

.games-modal-backdrop.active .games-modal {
    transform: scale(1);
}

.games-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 32px 18px;
}

.games-header-divider {
    height: 1px;
    margin: 0 32px;
    background: rgba(185, 11, 42, 0.14);
}

.games-modal-header h2 {
    margin: 0;
    font-family: Oswald, sans-serif;
    font-size: 1.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-white);
}

.games-modal-header p {
    margin: 4px 0 0;
    color: var(--sidebar-red);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: Oswald, sans-serif;
}

.games-close-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.games-close-btn:hover {
    background: var(--sidebar-red);
    border-color: var(--sidebar-red);
}

.games-carousel-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.games-carousel-track {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 24px 64px;
    scrollbar-width: none;
    width: 100%;
}

.games-carousel-track::-webkit-scrollbar {
    display: none;
}

.game-card {
    flex: 0 0 400px;
    background: #161616;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: block;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(185, 11, 42, 0.6);
    box-shadow: 0 10px 26px rgba(185, 11, 42, 0.22);
}

.game-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    background-color: #222;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease;
}

.game-card:hover .game-thumb {
    transform: scale(1.02);
}

.game-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.55) 100%);
}

.game-info {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.game-info-text h3 {
    margin: 0 0 3px;
    font-family: Oswald, sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    color: var(--text-white);
}

.game-info-text span {
    color: var(--caption-grey);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: Oswald, sans-serif;
}

.game-play-link {
    flex-shrink: 0;
    color: var(--sidebar-red);
    font-family: Oswald, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease, color 0.2s ease;
}

.game-play-link i {
    font-style: normal;
    transition: transform 0.2s ease;
}

.game-card:hover .game-play-link {
    color: #ff2d4d;
    gap: 8px;
}

.games-footer-tag {
    padding: 0 32px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.28);
    text-transform: uppercase;
}

.games-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(20,20,20,0.8);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.games-arrow:hover {
    background: var(--sidebar-red);
    border-color: var(--sidebar-red);
    color: #fff;
}

.games-arrow-left { left: 14px; }
.games-arrow-right { right: 14px; }

@media (max-width: 768px) {
    .games-modal-backdrop {
        align-items: center;
        justify-content: center;
        padding: 18px 12px;
        background: rgba(0, 0, 0, 0.62);
    }
    .games-modal {
        height: auto;
        max-height: 82vh;
        width: 100%;
        max-width: 440px;
        border-radius: 16px;
        justify-content: flex-start;
        overflow: hidden;
    }
    .games-modal::before {
        background-size: 28px 28px;
        opacity: 0.55;
    }
    .games-modal-header {
        padding: 14px 16px 8px;
        flex: 0 0 auto;
    }
    .games-modal-header h2 {
        font-size: 1.05rem;
        letter-spacing: 0.8px;
    }
    .games-header-divider {
        margin: 0 16px;
        height: 1px;
        background: rgba(255, 255, 255, 0.08);
    }
    .games-carousel-wrap {
        flex: 0 1 auto;
        align-items: stretch;
        padding: 0;
        min-height: 0;
    }
    .games-carousel-track {
        padding: 12px 16px 18px;
        gap: 12px;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scroll-snap-type: x mandatory;
        align-items: stretch;
    }
    .game-card {
        flex: 0 0 calc(100% - 28px);
        max-width: 380px;
        scroll-snap-align: start;
        border-radius: 12px;
    }
    .game-card:hover { transform: none; }
    .game-info {
        padding: 12px 14px;
    }
    .game-info-text h3 { font-size: 0.98rem; }
    .games-footer-tag {
        padding: 0 16px 12px;
    }
    /* Swipe is the interaction — overlay arrows sit on the art. */
    .games-arrow { display: none; }
}

/* ============================================================
   BOBO VIDEOS PAGE ONLY
   Nothing below affects index.html or other pages.
   ============================================================ */


/* ------------------------------------------------------------
   DESKTOP GRID
   ------------------------------------------------------------ */

body.page-bobo-videos #gallery-container.active #gallery {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    justify-items: stretch !important;
    align-items: start !important;
}


/* ------------------------------------------------------------
   REMOVE ARTIFICIAL EMPTY SPACE
   The Videos page currently has inline min-height:1000px.
   ------------------------------------------------------------ */

body.page-bobo-videos #gallery-container {
    min-height: 0 !important;
    height: auto !important;
}

body.page-bobo-videos #gallery-container.active #gallery {
    min-height: 0 !important;
}


/* ------------------------------------------------------------
   VIDEO CARDS
   ------------------------------------------------------------ */

body.page-bobo-videos #gallery-container.active #gallery .media-item {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}


/* ------------------------------------------------------------
   THUMBNAILS
   Responsive 16:9 instead of the old fixed 180/210px height.
   ------------------------------------------------------------ */

body.page-bobo-videos #gallery-container.active #gallery .media-item img,
body.page-bobo-videos #gallery-container.active #gallery .media-item video {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    box-sizing: border-box !important;
}


/* ------------------------------------------------------------
   ACTUAL VIDEO ELEMENTS
   Prevent the global gallery video rule from hiding them.
   ------------------------------------------------------------ */

body.page-bobo-videos #gallery-container.active #gallery .media-item video {
    display: block !important;
}


/* ------------------------------------------------------------
   CAPTIONS
   ------------------------------------------------------------ */

body.page-bobo-videos #gallery-container.active #gallery .media-item .media-thumb,
body.page-bobo-videos #gallery-container.active #gallery .media-item > img,
body.page-bobo-videos #gallery-container.active #gallery .media-item > video {
    order: 1 !important;
}

body.page-bobo-videos #gallery-container.active #gallery .media-item .caption-tooltip {
    order: 2 !important;
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 10px 12px 12px !important;
    transform: none !important;
    white-space: normal !important;
    text-align: left !important;
}

body.page-bobo-videos #gallery .video-title-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-bobo-videos #gallery .video-title-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    pointer-events: auto;
}

body.page-bobo-videos #gallery .video-title-actions .video-title-btn {
    position: static !important;
    width: 30px !important;
    height: 30px !important;
    opacity: 0.72 !important;
    transform: none !important;
    pointer-events: auto !important;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

body.page-bobo-videos #gallery .media-item:hover .video-title-actions .video-title-btn,
body.page-bobo-videos #gallery .media-item:focus-within .video-title-actions .video-title-btn {
    opacity: 1 !important;
    transform: none !important;
}

body.page-bobo-videos #gallery .video-title-actions .video-title-btn:hover,
body.page-bobo-videos #gallery .video-title-actions .video-title-btn:focus-visible {
    background: var(--sidebar-red);
    border-color: rgba(255, 255, 255, 0.4);
    transform: none !important;
}

.video-share-menu {
    position: fixed;
    z-index: 2147483646;
    display: none;
    min-width: 168px;
    padding: 6px;
    background: #161616;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
    box-sizing: border-box;
}
.video-share-menu.open {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
#meme-viewer-container.active .video-share-menu {
    z-index: 30;
}
.video-share-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-family: Oswald, sans-serif;
    font-size: 0.86rem;
    letter-spacing: 0.02em;
    text-align: left;
    cursor: pointer;
}
.video-share-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.video-share-item:hover,
.video-share-item:focus-visible {
    background: rgba(185, 11, 42, 0.22);
    outline: none;
}

body.page-bobo-videos #gallery .video-edit-pencil {
    font-size: 15px;
    line-height: 1;
    transform: translateY(1px);
}


/* ------------------------------------------------------------
   LARGE DESKTOP
   ------------------------------------------------------------ */

@media (min-width: 1920px) {

    body.page-bobo-videos #gallery-container.active #gallery {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 26px !important;
        padding: 26px !important;
    }

}


/* ------------------------------------------------------------
   ULTRAWIDE
   Keep 4 large video cards instead of tiny 7/8/10 columns.
   ------------------------------------------------------------ */

@media (min-width: 2560px) {

    body.page-bobo-videos #gallery-container.active #gallery {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 28px !important;
        padding: 28px !important;
    }

}


/* ------------------------------------------------------------
   TABLET
   ------------------------------------------------------------ */

@media (min-width: 700px) and (max-width: 1040px) {

    body.page-bobo-videos #gallery-container.active #gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px !important;
        padding: 18px !important;
    }

}


/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */

@media (max-width: 699px) {

    body.page-bobo-videos #gallery-container.active #gallery {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        padding: 14px !important;
    }

    body.page-bobo-videos #gallery-container.active #gallery .media-item img,
    body.page-bobo-videos #gallery-container.active #gallery .media-item video {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        object-fit: cover !important;
    }

}


/* ------------------------------------------------------------
   GENTLE HOVER
   ------------------------------------------------------------ */

body.page-bobo-videos #gallery-container.active #gallery .media-item:hover {
    transform: translateY(-3px) !important;
}


/* ============================================================
   BOBO VIDEOS — DISCOVERY UI
   Videos page ONLY
   ============================================================ */


/* ------------------------------------------------------------
   DISCOVERY PANEL
   ------------------------------------------------------------ */

body.page-bobo-videos .videos-discovery {
    width: 100%;
    max-width: 1500px;
    margin: 28px auto 8px;
    padding: 0 28px;
    box-sizing: border-box;
}


/* ------------------------------------------------------------
   SECTION LABELS
   ------------------------------------------------------------ */

body.page-bobo-videos .videos-discovery-section {
    margin-bottom: 22px;
}

body.page-bobo-videos .videos-discovery-label {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 12px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    opacity: 0.58;
}

body.page-bobo-videos .videos-discovery-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: currentColor;
    opacity: 0.15;
}


/* ------------------------------------------------------------
   SENTIMENT BUTTONS
   ------------------------------------------------------------ */

body.page-bobo-videos .videos-sentiment-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}


body.page-bobo-videos .videos-discovery-button {
    appearance: none;
    border: 1px solid rgba(127, 127, 127, 0.22);

    background: rgba(127, 127, 127, 0.055);

    color: inherit;

    min-height: 52px;
    padding: 12px 16px;

    border-radius: 10px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 800;

    letter-spacing: 0.06em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        transform 0.16s ease,
        box-shadow 0.16s ease;
}


body.page-bobo-videos .videos-discovery-button:hover {
    background: rgba(127, 127, 127, 0.12);
    border-color: rgba(127, 127, 127, 0.4);

    transform: translateY(-2px);

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.08);
}


body.page-bobo-videos .videos-discovery-button:active {
    transform: translateY(0);
}


/* ------------------------------------------------------------
   EXPLORE TAGS
   ------------------------------------------------------------ */

body.page-bobo-videos .videos-tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}


body.page-bobo-videos .videos-tag-button {
    appearance: none;

    border: 1px solid rgba(127, 127, 127, 0.20);

    background: transparent;

    color: inherit;

    padding: 9px 14px;

    border-radius: 999px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.035em;

    cursor: pointer;

    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        transform 0.16s ease;
}


body.page-bobo-videos .videos-tag-button:hover {
    background: rgba(127, 127, 127, 0.10);
    border-color: rgba(127, 127, 127, 0.38);

    transform: translateY(-1px);
}


/* ------------------------------------------------------------
   SEARCH ALL TAGS
   ------------------------------------------------------------ */

body.page-bobo-videos .videos-search-tags {
    display: flex;
    justify-content: flex-end;

    margin-top: 2px;
}


body.page-bobo-videos .videos-search-tags-button {
    appearance: none;

    border: 0;
    background: transparent;

    color: inherit;

    padding: 8px 0;

    font-family: inherit;
    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    opacity: 0.58;

    cursor: pointer;

    transition:
        opacity 0.16s ease,
        transform 0.16s ease;
}


body.page-bobo-videos .videos-search-tags-button:hover {
    opacity: 1;
    transform: translateX(3px);
}


/* ------------------------------------------------------------
   SEPARATOR BEFORE GALLERY
   ------------------------------------------------------------ */

body.page-bobo-videos .videos-discovery-divider {
    width: 100%;
    height: 1px;

    margin-top: 26px;

    background: currentColor;
    opacity: 0.10;
}


/* ------------------------------------------------------------
   DARK MODE FRIENDLY
   ------------------------------------------------------------ */

body.page-bobo-videos .videos-discovery-button,
body.page-bobo-videos .videos-tag-button {
    -webkit-tap-highlight-color: transparent;
}


/* ------------------------------------------------------------
   TABLET
   ------------------------------------------------------------ */

@media (min-width: 700px) and (max-width: 1040px) {

    body.page-bobo-videos .videos-discovery {
        padding: 0 18px;
    }

    body.page-bobo-videos .videos-sentiment-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */

@media (max-width: 699px) {

    body.page-bobo-videos .videos-discovery {
        margin-top: 18px;
        padding: 0 14px;
    }

    body.page-bobo-videos .videos-sentiment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    body.page-bobo-videos .videos-discovery-button {
        min-height: 46px;
        padding: 10px 8px;
        font-size: 11px;
    }

    body.page-bobo-videos .videos-tag-grid {
        gap: 7px;
    }

    body.page-bobo-videos .videos-tag-button {
        padding: 8px 11px;
        font-size: 11px;
    }

}


/* ============================================================
   END BOBO VIDEOS DISCOVERY UI
   ============================================================ */



/* ============================================================
   BOBO VIDEOS — DISCOVERY RIGHT COLUMN FIX
   ============================================================ */

/*
 * The discovery UI was previously inserted into normal flow,
 * which placed it underneath the featured video.
 *
 * On the Videos page we actually want it occupying the large
 * empty area TO THE RIGHT of the featured video.
 */


/* ------------------------------------------------------------
   DESKTOP
   ------------------------------------------------------------ */

@media (min-width: 1100px) {

    body.page-bobo-videos .videos-discovery {

        position: absolute;

        /*
         * Header is roughly 70px tall.
         * Keep discovery comfortably below it.
         */
        top: 92px;

        /*
         * Featured video occupies roughly the first 38%.
         * Discovery begins just after it.
         */
        left: 39%;

        right: 3.5%;

        width: auto;

        max-width: none;

        margin: 0;

        padding: 18px 0 0;

        box-sizing: border-box;

        z-index: 2;
    }


    /* --------------------------------------------------------
       SENTIMENT
       -------------------------------------------------------- */

    body.page-bobo-videos .videos-discovery-section:first-child {

        margin-bottom: 30px;
    }


    body.page-bobo-videos .videos-discovery-label {

        font-size: 12px;

        margin-bottom: 13px;

        letter-spacing: 0.18em;
    }


    body.page-bobo-videos .videos-sentiment-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 10px;
    }


    body.page-bobo-videos .videos-discovery-button {

        min-height: 58px;

        font-size: 12px;

        border-radius: 9px;
    }


    /* --------------------------------------------------------
       EXPLORE TAGS
       -------------------------------------------------------- */

    body.page-bobo-videos .videos-tag-grid {

        gap: 9px;
    }


    body.page-bobo-videos .videos-tag-button {

        padding: 10px 15px;

        font-size: 12px;
    }


    /* --------------------------------------------------------
       SEARCH
       -------------------------------------------------------- */

    body.page-bobo-videos .videos-search-tags {

        margin-top: 18px;

        justify-content: flex-start;
    }


    /* --------------------------------------------------------
       REMOVE THE OLD FULL-WIDTH DIVIDER
       -------------------------------------------------------- */

    body.page-bobo-videos .videos-discovery-divider {

        display: none;
    }

}


/* ------------------------------------------------------------
   VERY LARGE SCREENS
   ------------------------------------------------------------ */

@media (min-width: 1500px) {

    body.page-bobo-videos .videos-discovery {

        left: 40%;

        right: 4.5%;

        padding-top: 20px;
    }

}


/* ------------------------------------------------------------
   TABLET / MOBILE
   ------------------------------------------------------------ */

@media (max-width: 1099px) {

    body.page-bobo-videos .videos-discovery {

        position: relative;

        top: auto;
        left: auto;
        right: auto;

        width: 100%;

        margin: 28px auto 8px;

        padding: 0 18px;

        box-sizing: border-box;
    }

}


/* ============================================================
   END RIGHT COLUMN FIX
   ============================================================ */


/* ============================================================
   BOBO MEME VIEWER — FINAL OVERLAY FIX
   This intentionally comes LAST so it overrides all of the
   older duplicate meme-viewer rules in styles.css.
   ============================================================ */

/* Gallery MUST disappear while viewer is open */
body.meme-viewer-active #gallery-container,
body.meme-viewer-active #gallery,
body.meme-viewer-active #sentinel {
    display: none !important;
}

/* Full-viewport overlay. Flex-center the card so it cannot hug the left. */
#meme-viewer-container.active {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 24px 16px !important;
    background: #000 !important;
    z-index: 100000 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
}
#meme-viewer-container.active::before {
    content: '';
    position: fixed;
    inset: -18%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse 58% 48% at 50% 42%,
        rgba(var(--mv-glow, 90, 90, 100), 0.13) 0%,
        rgba(var(--mv-glow, 90, 90, 100), 0.05) 40%,
        transparent 72%);
    filter: blur(90px);
    opacity: 0;
    transition: opacity 0.7s ease;
}
#meme-viewer-container.active.has-ambient-glow::before {
    opacity: 1;
}

#meme-viewer-container.active .meme-viewer-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    width: 100% !important;
    max-width: 820px !important;
    min-width: 0 !important;
    margin: auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

#meme-viewer-container.active .meme-viewer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: 720px !important;
    margin: 0 auto !important;
    padding: 20px 20px 24px !important;
    overflow: visible !important;
    max-height: none !important;
    box-sizing: border-box !important;
}

#meme-viewer-container.active .meme-viewer img,
#meme-viewer-container.active .meme-viewer video {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    max-height: min(70vh, 640px) !important;
    object-fit: contain !important;
}

#meme-viewer-container.active #media-caption,
.meme-viewer #media-caption {
    width: 100% !important;
    margin: 14px 0 0 !important;
    padding: 0 !important;
    text-align: center !important;
    color: rgba(235,235,238,0.92) !important;
    font-family: 'Space Grotesk', Oswald, sans-serif !important;
    font-size: 19px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    line-height: 1.3;
}
#meme-viewer-container.active .mv-controls,
.meme-viewer .mv-controls {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding-top: 12px;
    padding-right: 0;
    border-top: 1px solid rgba(255,255,255,0.10);
    box-sizing: border-box;
}
#meme-viewer-container.active .mv-caption-actions,
.meme-viewer .mv-caption-actions {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-shrink: 0;
}
#meme-viewer-container.active .mv-dl-btn[style*="inline-block"],
.meme-viewer .mv-dl-btn[style*="inline-block"] {
    display: flex !important;
}
#meme-viewer-container.active .mv-dl-btn,
.meme-viewer .mv-dl-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 44px;
    padding: 0;
    border: none;
    background: none;
    color: #fff;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}
#meme-viewer-container.active .mv-dl-btn .mv-dl-icon,
.meme-viewer .mv-dl-btn .mv-dl-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.05);
    box-sizing: border-box;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
#meme-viewer-container.active .mv-dl-btn .mv-dl-icon svg,
.meme-viewer .mv-dl-btn .mv-dl-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}
#meme-viewer-container.active .mv-dl-btn .mv-dl-ext,
.meme-viewer .mv-dl-btn .mv-dl-ext {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.62);
    line-height: 1;
}
#meme-viewer-container.active .mv-dl-btn:hover .mv-dl-icon,
.meme-viewer .mv-dl-btn:hover .mv-dl-icon {
    background: rgba(185,11,42,0.88);
    border-color: rgba(255,255,255,0.35);
    box-shadow: 0 0 16px rgba(185,11,42,0.35);
}
#meme-viewer-container.active .mv-dl-btn:hover .mv-dl-ext,
.meme-viewer .mv-dl-btn:hover .mv-dl-ext {
    color: #fff;
}
#meme-viewer-container.active .mv-icon-btn,
.meme-viewer .mv-icon-btn {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.05);
    color: #fff;
    cursor: pointer;
    box-sizing: border-box;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
#meme-viewer-container.active .mv-icon-btn svg,
.meme-viewer .mv-icon-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}
#meme-viewer-container.active .mv-icon-btn:hover,
.meme-viewer .mv-icon-btn:hover {
    background: rgba(185,11,42,0.88);
    border-color: rgba(255,255,255,0.35);
    box-shadow: 0 0 16px rgba(185,11,42,0.35);
}
#meme-viewer-container.active .mv-back-link,
.meme-viewer .mv-back-link {
    appearance: none;
    background: none !important;
    border: none !important;
    color: rgba(255,255,255,0.62) !important;
    margin: 0 4px 0 0 !important;
    padding: 0 4px !important;
    width: auto !important;
    height: 44px;
    cursor: pointer;
    font-family: Oswald, sans-serif !important;
    font-size: 0.92rem !important;
    letter-spacing: 0.06em;
    text-transform: none;
    box-shadow: none !important;
    text-align: left;
    line-height: 44px;
}
#meme-viewer-container.active .mv-back-link:hover,
.meme-viewer .mv-back-link:hover {
    color: #fff !important;
}

@media (max-width: 1040px) {
    #meme-viewer-container.active {
        align-items: flex-start !important;
        padding: 16px 12px 28px !important;
    }
    #meme-viewer-container.active .meme-viewer-content {
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    #meme-viewer-container.active .meme-viewer {
        max-width: 100% !important;
        padding: 14px 14px 18px !important;
    }
    #meme-viewer-container.active .meme-viewer img,
    #meme-viewer-container.active .meme-viewer video {
        max-height: min(58vh, 520px) !important;
    }
    #meme-viewer-container.active #remix-btn.remix-btn,
    #meme-viewer-container.active .mv-edit-frame #remix-btn {
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
    }
}

/* Absolutely nothing from the gallery should sit above viewer */
#meme-viewer-container.active ~ * {
    /* intentionally empty — viewer owns the top layer */
}

/* Prevent the page itself from scrolling behind viewer */
body.meme-viewer-active {
    overflow: hidden !important;
    height: 100vh !important;
}

/* Header must remain underneath viewer */
body.meme-viewer-active .sticky-header,
body.meme-viewer-active .header-content,
body.meme-viewer-active .button-group,
body.meme-viewer-active #footer-search-bar,
body.meme-viewer-active .button-footer {
    z-index: 1 !important;
}

/* ============================================================
   GALLERY HOVER VIDEO PREVIEW
   The MP4 preview must replace the thumbnail in-place.
   Never stack a second video over the still, and never let
   it cover the caption / pop out of the card.
   ============================================================ */

#gallery .media-item,
#gallery .media-item .media-thumb {
    cursor: pointer;
}
#gallery .media-item .media-thumb {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    background: #111;
}

#gallery .media-item .media-thumb > img,
#gallery .media-item .media-thumb > video {
    display: block;
    width: 100%;
}

#gallery .media-item .hover-preview-video,
body.page-bobo-videos #gallery-container.active #gallery .media-item .hover-preview-video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: 2;
    background: #111;
}

#gallery .media-item.is-previewing .hover-preview-video,
body.page-bobo-videos #gallery-container.active #gallery .media-item.is-previewing .hover-preview-video {
    opacity: 1 !important;
    visibility: visible !important;
}

#gallery .media-item.is-previewing .media-thumb > img,
body.page-bobo-videos #gallery-container.active #gallery .media-item.is-previewing .media-thumb > img {
    opacity: 0 !important;
    visibility: hidden !important;
}

#gallery .media-item.is-previewing .video-play-overlay,
body.page-bobo-videos #gallery-container.active #gallery .media-item.is-previewing .video-play-overlay {
    opacity: 0 !important;
    visibility: hidden !important;
}


/* ===== gallery-tiles (rotating gallery thumbnails) ===== */
.gt-stack { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; border-radius: inherit; }
.gt-layer { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; opacity: 0; transition: opacity 0.9s ease; will-change: opacity; }
.gt-layer.gt-on { opacity: 1; }
.gt-layer.gt-top { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .gt-layer { transition: none; } }

/* ===== gallery-tiles labels ===== */
.more-card-label, .more-card-count, .mnav-card > span { transition: opacity 0.35s ease; }
.gt-fade { opacity: 0 !important; }
.gt-hide { opacity: 0 !important; }

/* ===== gallery-tiles v3 ===== */
.gt-layer { background-position: 50% 35%; }

/* ===== gallery-tiles v4 ===== */
.more-card-count { display: none !important; }

/* ===== gallery-tiles v5 ===== */
.more-sidebar-section-label.gt-stat { letter-spacing: 1.5px; white-space: nowrap; }

/* ══ TABLET-GRID-FIX v4: 4 fluid columns for 1025-1180px (iPad Pro 13 portrait etc.) ══
   Root cause: #gallery is content-box with 20px side padding AND width:100%, so it is 40px
   wider than its container and runs off the right edge. border-box fixes that.
   Triple-ID selector so it beats the page's other #gallery rules. Captions are kept inside
   their column with an ellipsis. */
@media (min-width: 1041px) and (max-width: 1180px) {
    #gallery#gallery#gallery {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 6px !important;
        justify-items: stretch !important;
    }
    #gallery#gallery#gallery .media-item { width: 100% !important; max-width: none !important; min-width: 0 !important; }
    #gallery#gallery#gallery img,
    #gallery#gallery#gallery video {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }
    #gallery#gallery#gallery .caption-tooltip {
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
}

/* ══ QUEST-FIX: Meta Quest browser (gallery.js adds html.is-quest) ══
   Quest reports a desktop-sized viewport, so it got the 6-column desktop grid with the
   right edge clipped. Give it 4 bigger, evenly spaced columns that are easier to point at. */
html.is-quest #gallery#gallery#gallery {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
    justify-items: stretch !important;
}
html.is-quest #gallery#gallery#gallery .media-item { width: 100% !important; max-width: none !important; min-width: 0 !important; }
html.is-quest #gallery#gallery#gallery img,
html.is-quest #gallery#gallery#gallery video {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
html.is-quest #gallery#gallery#gallery .caption-tooltip {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 15px !important;
}
/* ══ QUEST-FIX END ══ */

/* Safari fix: center icon in #download-btn */
#meme-viewer-container.active #download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  gap: 0;
  font-size: 0;
  line-height: 0;
}
#meme-viewer-container.active #download-btn > :not(svg) { display: none !important; }
#meme-viewer-container.active #download-btn svg { flex: 0 0 18px; margin: 0; }

/* BOBO-ULTRAWIDE-NAV:START */
:root{--nav-z:1}
@media (min-width:2200px){:root{--nav-z:1.1}}
@media (min-width:2400px){:root{--nav-z:1.25}}
@media (min-width:2560px){:root{--nav-z:1.55}}
@media (min-width:3200px){:root{--nav-z:1.8}}
@media (min-width:3840px){:root{--nav-z:2.1}}
@media (min-width:2200px){
  html body .topnav{zoom:var(--nav-z);width:calc(100vw / var(--nav-z))!important}
  main{margin-top:calc(58px * var(--nav-z))}
}
/* BOBO-ULTRAWIDE-NAV:END */

/* BOBO-DOCK-GLOW:START */
/* While the dock is pulsing it stays at 100%, whatever the scroll-dimming states say.
   Not applied while the landing hero hides the dock (bh-pre / bh-hero-on). */
html:not(.bh-pre) body:not(.bh-hero-on) .button-footer:is(.dock-glow,.desktop-pulse,.bh-dock-intro){
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
html:not(.bh-pre) body:not(.bh-hero-on):has(.button-footer:is(.dock-glow,.desktop-pulse,.bh-dock-intro)) #footer-search-bar{
  opacity:1!important;
}
/* BOBO-DOCK-GLOW:END */

/* BOBO-DOCSCROLL:START — let the document scroll on phones/tablets so Chrome/Brave collapse their bars.
   Opt-out: ?docscroll=0 once (sets localStorage bhDocScroll=0), or ?docscroll=1 to turn back on. */
@media (max-width: 1040px) {
  html.bh-docscroll body:not(.meme-viewer-active):not(#_x) { height: auto !important; }
  html.bh-docscroll body .container:not(#_x) {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
  }
  html.bh-docscroll body main:not(#_x) {
    display: block !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
  }
  html.bh-docscroll body #gallery-container:not(#_x) {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    flex: none !important;
  }
}
/* BOBO-DOCSCROLL:END */

/* BOBO-DOCK-DIM:START - enforces the scroll dim on phones even if another script resets inline opacity.
   The pulse/glow rule (BOBO-DOCK-GLOW) is more specific, so a pulsing dock still stays at 100%. */
@media (max-width: 1040px) {
  html.bh-dock-scrolling body .button-footer,
  html.bh-dock-scrolling body #footer-search-bar.open {
    opacity: var(--bh-dock-o, 0.1) !important;
    transition: opacity 0.1s linear !important;
  }
}
/* BOBO-DOCK-DIM:END */

/* BOBO-BCDOCK:START - about + council: dock attached to the bottom of the viewport (phones/tablets), never dimmed */
@media (max-width: 1040px) {
  html body .button-footer.bc-dock:not(#_x) {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    box-sizing: border-box !important;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    justify-content: space-around !important;
  }
  html body main.bc-main:not(#_x) {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
/* BOBO-BCDOCK:END */

/* BOBO-FLUSHDOCK:START - trial: gallery dock attached to the bottom of the viewport (phones/tablets). Dimming still applies.
   Remove with: sed -i '' '/BOBO-FLUSHDOCK:START/,/BOBO-FLUSHDOCK:END/d' styles.css */
@media (max-width: 1040px) {
  html body .button-footer:not(.bc-dock):not(#_x) {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    box-sizing: border-box !important;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    justify-content: space-around !important;
  }
}
/* BOBO-FLUSHDOCK:END */

/* BOBO-BCDOCK-STYLE:START - about + council dock: dark, own surface, red only where it means something
   Remove with: sed -i '' '/BOBO-BCDOCK-STYLE:START/,/BOBO-BCDOCK-STYLE:END/d' styles.css */
@media (max-width: 1040px) {
  html body .button-footer.bc-dock:not(#_x) {
    background: #18171a !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    border-top: 1px solid #b90b2a !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    gap: 6px !important;
  }
  /* every dock button: no fill, just text or icon */
  html body .button-footer.bc-dock:not(#_x) button {
    position: relative !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    color: #b5b0aa !important;
    font-family: 'Space Grotesk', Impact, sans-serif !important;
    font-size: 0.85em !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    height: 44px !important;
    padding: 0 12px !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.15s ease !important;
  }
  /* active label: red + small red underline */
  html body .button-footer.bc-dock:not(#_x) button.is-active {
    color: #e0173b !important;
  }
  html body .button-footer.bc-dock:not(#_x) button.is-active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 18px;
    height: 2px;
    margin-left: -9px;
    background: #b90b2a;
    border-radius: 2px;
  }
  /* menu + up arrow: plain icons */
  html body .button-footer.bc-dock:not(#_x) .bc-dock-menu,
  html body .button-footer.bc-dock:not(#_x) .bc-dock-up {
    width: 44px !important;
    padding: 0 !important;
  }
  html body .button-footer.bc-dock:not(#_x) svg {
    width: 22px;
    height: 22px;
  }
  html body .button-footer.bc-dock:not(#_x) svg line {
    stroke: #b5b0aa;
  }
  html body .button-footer.bc-dock:not(#_x) .bc-dock-up svg path {
    fill: #b5b0aa;
    stroke: none;
  }
  /* up arrow hidden until the page is scrolled */
  html body .button-footer.bc-dock:not(#_x) .bc-dock-up {
    display: none !important;
  }
  html.bc-scrolled body .button-footer.bc-dock:not(#_x) .bc-dock-up {
    display: flex !important;
  }
  /* past the hero: JOIN becomes a small red pill (the big CTA is off screen) */
  html.bc-past-hero body .button-footer.bc-dock:not(#_x) .bc-dock-join {
    background: #b90b2a !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    height: 34px !important;
    padding: 0 16px !important;
  }
}
/* BOBO-BCDOCK-STYLE:END */

/* BOBO-BCTOPBAR:START - about + council: phone top bar (logo, links, socials, menu); dock hidden on phones
   Remove with: sed -i '' '/BOBO-BCTOPBAR:START/,/BOBO-BCTOPBAR:END/d' styles.css */
.bc-topbar { display: none; }
@media (max-width: 1040px) {
  html body:has(.bc-topbar) .bc-mobile-header:not(#_x),
  html body:has(.bc-topbar) .button-footer.bc-dock:not(#_x) {
    display: none !important;
  }
  html body:has(.bc-topbar) main.bc-main:not(#_x) {
    padding-top: calc(52px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: 20px !important;
  }
  html body .bc-topbar:not(#_x) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9600;
    box-sizing: border-box;
    height: calc(52px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 8px 0;
    background: #18171a;
    border-bottom: 1px solid #b90b2a;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  }
  html body .bc-topbar.nav-collapsed:not(#_x) {
    transform: translateY(calc(-100% + 1px));
  }
  html body .bc-topbar:not(#_x) .bc-topbar-logo {
    display: flex;
    align-items: center;
    padding: 0 6px;
  }
  html body .bc-topbar:not(#_x) .bc-topbar-logo img {
    height: 32px;
    width: auto;
    display: block;
  }
  html body .bc-topbar:not(#_x) .bc-tb-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 12px;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 8px;
    color: #b5b0aa !important;
    font-family: 'Space Grotesk', Impact, sans-serif;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.15s ease;
  }
  html body .bc-topbar:not(#_x) .bc-tb-menu {
    width: 44px;
    padding: 0;
  }
  html body .bc-topbar:not(#_x) .bc-tb-menu svg {
    width: 22px;
    height: 22px;
  }
  html body .bc-topbar:not(#_x) .bc-tb-btn.is-active {
    color: #e0173b !important;
  }
  html body .bc-topbar:not(#_x) .bc-tb-btn.is-active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 18px;
    height: 2px;
    margin-left: -9px;
    background: #b90b2a;
    border-radius: 2px;
  }
}
/* BOBO-BCTOPBAR:END */

/* BOBO-TOPBAR-THEMED:START - top bar on gallery pages (phones/tablets): footer-dock surface, collapses on scroll down, returns on scroll up, hidden while the nav menu is open
   Remove with: sed -i '' '/BOBO-TOPBAR-THEMED:START/,/BOBO-TOPBAR-THEMED:END/d' styles.css */
@media (max-width: 1040px) {
  html body:has(.bc-topbar) main:not(.bc-main):not(#_x) {
    padding-top: calc(52px + env(safe-area-inset-top, 0px)) !important;
  }
  /* same surface as the footer dock */
  html body .bc-topbar.bc-tb-themed:not(#_x) {
    background: rgba(18, 18, 18, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--sidebar-red, #b90b2a);
    transition: transform 0.2s ease-out;
  }
  /* collapses as fast as the footer dims */
  html body .bc-topbar.bc-tb-themed.nav-collapsed:not(#_x) {
    transition: transform 0.1s linear;
  }
  html body .bc-topbar.bc-tb-themed:not(#_x) .bc-tb-btn {
    color: #b5b0aa !important;
    color: color-mix(in srgb, var(--text-white, #ffffff) 72%, var(--bg-color, #1a1a1a)) !important;
  }
  html body .bc-topbar.bc-tb-themed:not(#_x) .bc-tb-btn.is-active {
    color: #e0173b !important;
    color: color-mix(in srgb, var(--sidebar-red, #b90b2a) 75%, #ffffff) !important;
  }
  html body .bc-topbar.bc-tb-themed:not(#_x) .bc-tb-btn.is-active::after {
    background: var(--sidebar-red, #b90b2a);
  }
  /* not shown while the nav menu is open */
  html.sidebar-active body .bc-topbar:not(#_x),
  html body.sidebar-active .bc-topbar:not(#_x) {
    display: none !important;
  }
}
/* BOBO-TOPBAR-THEMED:END */

/* BOBO-GALLERY-FOOTER:START - gallery footer on phones: Sentiment, Tags, Latest, Dump It, Search (hamburger is in the top bar)
   Remove with: sed -i '' '/BOBO-GALLERY-FOOTER:START/,/BOBO-GALLERY-FOOTER:END/d' styles.css */
@media (max-width: 1040px) {
  html body .button-footer #menu-btn:not(#_x) { display: none !important; }
}
@media (min-width: 1041px) {
  html body .button-footer #tags-footer-btn:not(#_x) { display: none !important; }
}
/* BOBO-GALLERY-FOOTER:END */

/* BOBO-MNAV-TABLET:START - scale the mobile nav modal on tablets (700-1024px). Phones/desktop untouched.
   Remove with: sed -i '' '/BOBO-MNAV-TABLET:START/,/BOBO-MNAV-TABLET:END/d' styles.css */
@media (min-width: 700px) and (max-width: 1040px) {
  #mnav-modal .mnav-modal-content { width: min(70vw, 620px) !important; max-width: none !important; }

  /* page links (BoboMemes.com / Bear Council / AI Meme Studio) */
  #mnav-modal .mnav-link { font-size: clamp(15px, 2vw, 18px) !important; padding: clamp(13px, 1.7vw, 17px) !important; }

  /* gallery tiles: keep the phone's squarish look instead of stretching wide */
  #mnav-modal .mnav-cards-grid { gap: clamp(8px, 1.2vw, 12px) !important; }
  #mnav-modal .mnav-card { aspect-ratio: 1 / 1 !important; border-radius: 10px !important; }
  #mnav-modal .mnav-card-overlay { height: 38% !important; }
  #mnav-modal .mnav-card span { font-size: clamp(15px, 2.1vw, 21px) !important; }
  #mnav-modal .mnav-card-label { font-size: clamp(15px, 2.1vw, 21px) !important; }

  /* Games | Videos */
  #mnav-modal .mnav-site-link { font-size: clamp(18px, 2.5vw, 23px) !important; gap: 10px !important; padding: 12px 18px !important; }
  #mnav-modal .mnav-site-link svg { width: clamp(22px, 3vw, 28px) !important; height: clamp(22px, 3vw, 28px) !important; }

  /* socials + "+10 galleries"/count dividers */
  #mnav-modal .mnav-social-link svg { width: clamp(22px, 3vw, 28px) !important; height: clamp(22px, 3vw, 28px) !important; }
  #mnav-modal .mnav-galleries-divider span { font-size: clamp(13px, 1.7vw, 16px) !important; }
}
/* landscape tablets: shorter tiles so the whole modal fits without scrolling */
@media (min-width: 700px) and (max-width: 1040px) and (orientation: landscape) {
  #mnav-modal .mnav-card { aspect-ratio: 16 / 9 !important; }
}
/* BOBO-MNAV-TABLET:END */

/* BOBO-MNAV-TABLET-TEXT:START - slightly larger text in the mobile nav on tablets (700-1024px)
   Remove with: sed -i '' '/BOBO-MNAV-TABLET-TEXT:START/,/BOBO-MNAV-TABLET-TEXT:END/d' styles.css */
@media (min-width: 700px) and (max-width: 1040px) {
  #mnav-modal .mnav-link { font-size: clamp(17px, 2.3vw, 21px) !important; }
  #mnav-modal .mnav-card span,
  #mnav-modal .mnav-card-label { font-size: clamp(17px, 2.4vw, 24px) !important; }
  #mnav-modal .mnav-galleries-divider span { font-size: clamp(15px, 2vw, 18px) !important; }
  #mnav-modal [class*="galler"] span,
  #mnav-modal [class*="more"]:not(.mnav-more-toggle):not(.mnav-more-panel) { font-size: clamp(14px, 1.9vw, 17px) !important; }
  #mnav-modal .mnav-site-link { font-size: clamp(20px, 2.8vw, 25px) !important; }
  #mnav-modal .mnav-site-link svg { width: clamp(24px, 3.3vw, 30px) !important; height: clamp(24px, 3.3vw, 30px) !important; }
  #mnav-modal .mnav-social-link svg { width: clamp(24px, 3.3vw, 30px) !important; height: clamp(24px, 3.3vw, 30px) !important; }
}
/* BOBO-MNAV-TABLET-TEXT:END */

/* BOBO-MNAV-TABLET-LINKS:START - one size knob for every link/label in the mobile nav on tablets
   Remove with: sed -i '' '/BOBO-MNAV-TABLET-LINKS:START/,/BOBO-MNAV-TABLET-LINKS:END/d' styles.css */
@media (min-width: 700px) and (max-width: 1040px) {
  html body #mnav-modal:not(#_x) { --mnav-t: clamp(18px, 2.5vw, 22px); }

  html body #mnav-modal:not(#_x) .mnav-links a.mnav-link,
  html body #mnav-modal:not(#_x) a.mnav-link {
    font-size: var(--mnav-t) !important;
    letter-spacing: 0.4px !important;
    padding: clamp(14px, 1.9vw, 18px) 16px !important;
  }
  html body #mnav-modal:not(#_x) .mnav-card span,
  html body #mnav-modal:not(#_x) .mnav-card-label {
    font-size: calc(var(--mnav-t) + 2px) !important;
  }
  html body #mnav-modal:not(#_x) .mnav-site-link,
  html body #mnav-modal:not(#_x) .mnav-site-link span {
    font-size: calc(var(--mnav-t) + 2px) !important;
  }
  html body #mnav-modal:not(#_x) .mnav-galleries-divider span,
  html body #mnav-modal:not(#_x) .mnav-more-toggle,
  html body #mnav-modal:not(#_x) .mnav-more-toggle span {
    font-size: calc(var(--mnav-t) - 3px) !important;
  }
}
/* BOBO-MNAV-TABLET-LINKS:END */

/* BOBO-TOPBAR-LOGO:START - bigger Bobo bear logo in the phone top bar (anchors the left, balances the hamburger)
   Remove with: sed -i '' '/BOBO-TOPBAR-LOGO:START/,/BOBO-TOPBAR-LOGO:END/d' styles.css */
@media (max-width: 700px) {
  html body .bc-topbar.bc-tb-themed:not(#_x) .bc-topbar-logo {
    display: inline-flex !important;
    align-items: center !important;
    align-self: center !important;
    height: auto !important;
    margin-left: 4px !important;
    margin-right: 6px !important;
    flex: 0 0 auto !important;
  }
  html body .bc-topbar.bc-tb-themed:not(#_x) .bc-topbar-logo img {
    height: 30px !important;
    width: auto !important;
    max-height: none !important;
    display: block !important;
    object-fit: contain !important;
  }
}
/* BOBO-TOPBAR-LOGO:END */

/* ---- tile outline: pure black by default, red on press/tap (phones + tablets, all gallery pages) ---- */
@media (max-width: 1040px) {
    html body #gallery img,
    html body #gallery video {
        border-color: #000 !important;
        transition: border-color .12s ease-out, box-shadow .12s ease-out;
    }
    html body #gallery img:active,
    html body #gallery video:active,
    html body #gallery img:focus,
    html body #gallery video:focus {
        border-color: #b90b2a !important;
        box-shadow: 0 0 0 1px #b90b2a, 0 0 14px rgba(185, 11, 42, .45);
    }
}

/* ---- top bar "More Memes": styled in CSS so it paints with the page (the button itself is in the HTML) ---- */
@media (max-width: 1040px) {
    #bc-topbar .bc-tb-btn { white-space: nowrap; }
    #bc-topbar #bc-more-memes { flex: 0 0 auto; letter-spacing: .05em; padding-left: 6px; padding-right: 6px; }
}
@media (max-width: 600px) {
    #bc-topbar #bc-more-memes { flex: 1 1 auto; }
}

/* ---- phone top bar: the Bobo logo image reads small, so it gets 39px; the other galleries' logos stay 30px ---- */
@media (max-width: 700px) {
    html body .bc-topbar.bc-tb-themed:not(#_x) .bc-topbar-logo img[src*="bobomemescom"] {
        height: 39px !important;
    }
}

/* BOBO-MNAV-TABLET-FIT:START - iPad mini and friends: make the mobile nav fit the screen without scrolling.
   Remove with: sed -i '' '/BOBO-MNAV-TABLET-FIT:START/,/BOBO-MNAV-TABLET-FIT:END/d' styles.css */
@media (min-width: 700px) and (max-width: 1040px) {
  html body #mnav-modal:not(#_x) .mnav-modal-content { width: min(64vw, 560px) !important; }
  html body #mnav-modal:not(#_x) .mnav-card { aspect-ratio: 3 / 2 !important; }
  html body #mnav-modal:not(#_x) .mnav-links a.mnav-link,
  html body #mnav-modal:not(#_x) a.mnav-link { padding: clamp(10px, 1.4vw, 13px) 14px !important; }
  html body #mnav-modal:not(#_x) .mnav-site-link { padding: 8px 14px !important; }
}
@media (min-width: 700px) and (max-width: 1040px) and (orientation: landscape) {
  html body #mnav-modal:not(#_x) .mnav-modal-content { width: min(88vw, 900px) !important; }
  html body #mnav-modal:not(#_x) .mnav-cards-grid { grid-template-columns: repeat(4, 1fr) !important; }
  html body #mnav-modal:not(#_x) .mnav-card { aspect-ratio: 4 / 3 !important; }
}
/* big iPads in portrait (Air 13", Pro 13"): tall screen, so square tiles fit without cropping */
@media (min-width: 960px) and (max-width: 1040px) and (orientation: portrait) {
  html body #mnav-modal:not(#_x) .mnav-modal-content { width: min(56vw, 520px) !important; }
  html body #mnav-modal:not(#_x) .mnav-card { aspect-ratio: 1 / 1 !important; }
}
/* BOBO-MNAV-TABLET-FIT:END */
@media (min-width: 700px) and (max-width: 1040px) {
  html body #mnav-modal:not(#_x) .mnav-modal-content { width: min(64vw, 560px) !important; }
  html body #mnav-modal:not(#_x) .mnav-card { aspect-ratio: 3 / 2 !important; }
  html body #mnav-modal:not(#_x) .mnav-links a.mnav-link,
  html body #mnav-modal:not(#_x) a.mnav-link { padding: clamp(10px, 1.4vw, 13px) 14px !important; }
  html body #mnav-modal:not(#_x) .mnav-site-link { padding: 8px 14px !important; }
}
@media (min-width: 700px) and (max-width: 1040px) and (orientation: landscape) {
  html body #mnav-modal:not(#_x) .mnav-modal-content { width: min(88vw, 900px) !important; }
  html body #mnav-modal:not(#_x) .mnav-cards-grid { grid-template-columns: repeat(4, 1fr) !important; }
  html body #mnav-modal:not(#_x) .mnav-card { aspect-ratio: 4 / 3 !important; }
}
/* BOBO-MNAV-TABLET-FIT:END */

/* BOBO-MNAV-IPADPRO:START - big iPads in portrait (Air 13", Pro 13"): square, uncropped tiles. Last in the file on purpose.
   Remove with: sed -i '' '/BOBO-MNAV-IPADPRO:START/,/BOBO-MNAV-IPADPRO:END/d' styles.css */
@media (min-width: 960px) and (max-width: 1040px) and (orientation: portrait) {
  html body #mnav-modal#mnav-modal:not(#_x):not(#_y) .mnav-modal-content,
  html body #mnav-modal#mnav-modal:not(#_x):not(#_y) .mnav-modal-inner { width: min(56vw, 520px) !important; max-width: 520px !important; }
  html body #mnav-modal#mnav-modal:not(#_x):not(#_y) .mnav-card { aspect-ratio: 1 / 1 !important; height: auto !important; }
}
/* BOBO-MNAV-IPADPRO:END */

/* BOBO-MNAV-MINI:START - iPad mini and other small tablets in portrait: square, uncropped tiles in a narrower menu. Last in the file on purpose.
   Remove with: sed -i '' '/BOBO-MNAV-MINI:START/,/BOBO-MNAV-MINI:END/d' styles.css */
@media (min-width: 700px) and (max-width: 959px) and (orientation: portrait) {
  html body #mnav-modal#mnav-modal:not(#_x):not(#_y) .mnav-modal-content,
  html body #mnav-modal#mnav-modal:not(#_x):not(#_y) .mnav-modal-inner { width: min(54vw, 470px) !important; max-width: 470px !important; }
  html body #mnav-modal#mnav-modal:not(#_x):not(#_y) .mnav-card { aspect-ratio: 1 / 1 !important; height: auto !important; }
}
/* BOBO-MNAV-MINI:END */

/* BOBO-SIDEBAR-ULTRAWIDE:START - scale the right-hand "more" sidebar on ultra-wide screens, same --nav-z steps as the top nav.
   Remove with: sed -i '' '/BOBO-SIDEBAR-ULTRAWIDE:START/,/BOBO-SIDEBAR-ULTRAWIDE:END/d' styles.css */
@media (min-width: 2200px) {
  html body .more-sidebar {
    zoom: var(--nav-z);
    height: calc(100vh / var(--nav-z));
  }
}
/* BOBO-SIDEBAR-ULTRAWIDE:END */

/* BOBO-NO-CHARSTRIP:START - hide the character strip at the bottom of the Sentiment / Tags modal (script still runs for auto-search).
   Remove with: sed -i '' '/BOBO-NO-CHARSTRIP:START/,/BOBO-NO-CHARSTRIP:END/d' styles.css */
html body #feels-modal .modal-page-nav,
html body #feels-modal .modal-page-nav.gt-chars {
  display: none !important;
}
/* BOBO-NO-CHARSTRIP:END */

/* BOBO-WOJAK-REDBAR:START - Wojak page: the thin top strip is black (not pink) on phones/tablets.
   Remove with: sed -i '' '/BOBO-WOJAK-REDBAR:START/,/BOBO-WOJAK-REDBAR:END/d' styles.css */
@media (max-width: 1040px) {
  html body.page-wojak .red-bar { background-color: #000 !important; }
}
/* BOBO-WOJAK-REDBAR:END */

/* BOBO-WOJAK-LINES:START - Wojak page on phones/tablets: top strip and the line under the top bar are black.
   Remove with: sed -i '' '/BOBO-WOJAK-LINES:START/,/BOBO-WOJAK-LINES:END/d' styles.css */
@media (max-width: 1040px) {
  html body.page-wojak .red-bar:not(#_x),
  html body.page-wojak .nav-sliver:not(#_x) { background-color: #000 !important; border-color: #000 !important; }
  html body.page-wojak #bc-topbar:not(#_x):not(#_y) { border-bottom-color: #000 !important; border-top-color: #000 !important; }
}
/* BOBO-WOJAK-LINES:END */

/* ---- BOBO-MNAV-TABS: Links + Socials live in the mnav menu (phones/tablets); top bar = logo + hamburger ---- */
#mnav-modal .mt-tabs,#mnav-modal .mt-pane{display:none}
@media (max-width:1040px){
  /* top bar: logo + hamburger only (gallery pages; About/Council keep the full bar) */
  html body:has(#mnav-modal):not(:has(main.bc-main)) #bc-topbar [data-bobo-modal],
  html body:has(#mnav-modal):not(:has(main.bc-main)) #bc-topbar #bc-more-memes{display:none !important}
  html body:has(#mnav-modal):not(:has(main.bc-main)) #bc-topbar > :last-child{margin-left:auto !important}
  /* menu: tab strip */
  html body #mnav-modal.mt-ready .mt-tabs{display:flex;align-items:center;gap:4px;margin:0 0 14px;padding:0 0 10px;border-bottom:1px solid #2a2a2a}
  html body #mnav-modal.mt-ready .mt-tab{appearance:none;-webkit-appearance:none;margin:0;padding:8px 12px;border:0;border-radius:8px;background:transparent;color:#7d7d7d;cursor:pointer;
    font:700 12px/1 'JetBrains Mono',monospace;letter-spacing:.16em;text-transform:uppercase;-webkit-tap-highlight-color:transparent}
  html body #mnav-modal.mt-ready .mt-tab.mt-on{background:#a7242f;color:#fff}
  html body #mnav-modal.mt-ready .mt-x{appearance:none;-webkit-appearance:none;margin:0 0 0 auto;width:30px;height:30px;padding:0 0 2px;border:1px solid #333;border-radius:50%;background:transparent;color:#aaa;font-size:20px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
  html body #mnav-modal.mt-ready .mt-x:active{background:#a7242f;color:#fff;border-color:#a7242f}
  html body #mnav-modal.mt-ready .mnav-modal-header,
  html body #mnav-modal.mt-ready .mnav-socials{display:none !important}
  /* panes */
  html body #mnav-modal.mt-ready [data-mt-tab="links"] > :not(.mt-tabs):not(.mt-links),
  html body #mnav-modal.mt-ready [data-mt-tab="socials"] > :not(.mt-tabs):not(.mt-socials){display:none !important}
  html body #mnav-modal.mt-ready [data-mt-tab="links"] > .mt-links,
  html body #mnav-modal.mt-ready [data-mt-tab="socials"] > .mt-socials{display:flex !important;flex-direction:column;gap:10px;max-height:calc(100vh - 200px);max-height:calc(100dvh - 200px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 2px 2px}
  html body #mnav-modal .mt-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;box-sizing:border-box;min-height:48px;padding:10px 12px;border:2px solid #333;border-radius:10px;background:#1b1b1b;color:#c9c9c9 !important;text-decoration:none !important;text-align:center}
  html body #mnav-modal .mt-item:active{border-color:#a7242f;background:#2a1417}
  html body #mnav-modal .mt-name{font-size:15px;font-weight:700;line-height:1.2}
  html body #mnav-modal .mt-tag{font:600 10px/1.2 'JetBrains Mono',monospace;letter-spacing:.12em;text-transform:uppercase;color:#7d7d7d}
}
/* About + Council: no More Memes button */
body:has(main.bc-main) #bc-more-memes{display:none !important}
/* BOBO-MNAV-TABS-Z: Links/Socials modals always sit above the menu */
html body .bm-root{z-index:2147483000 !important}
/* BOBO-NO-BARDIM: top bar never blurs/dims */
html body #bc-topbar.bc-bar-dim{filter:none !important;opacity:1 !important}

/* ---- BOBO-MNAV-PILLS: Links/Socials read as buttons (icon + faint pill), black outline on menu gallery tiles ---- */
@media (max-width:1040px){
  html body #mnav-modal.mt-ready .mt-tabs{gap:8px;margin:0 0 14px;padding:0;border-bottom:0}
  html body #mnav-modal.mt-ready .mt-tab{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(255,255,255,.04);color:#e4e4e4;
    font:700 14px/1 'Space Grotesk',system-ui,sans-serif;letter-spacing:.01em;text-transform:none}
  html body #mnav-modal.mt-ready .mt-tab svg{flex:0 0 auto;opacity:.9}
  html body #mnav-modal.mt-ready .mt-tab:active{background:rgba(167,36,47,.28);border-color:rgba(167,36,47,.7);color:#fff}
}
html body #mnav-modal .mnav-card{border-color:#000 !important;box-shadow:none !important;outline-color:#000 !important}

/* BOBO-MNAV-SITEROW:START - mnav menu (phones): floating X, tighter spacing, readable gallery labels, Games / Videos / Links / Socials as small outlined buttons in two rows of two
   Remove with: sed -i '' '/BOBO-MNAV-SITEROW:START/,/BOBO-MNAV-SITEROW:END/d' styles.css */
@media (max-width: 1040px) {
  /* close X floats in the panel's top-right corner, 16px in from the edges, above the first button */
  html body #mnav-modal.mt-ready .mt-tabs:not(#_x) {
    display: contents !important;
  }
  html body #mnav-modal.mt-ready .mt-x:not(#_x) {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    margin: 0 !important;
    z-index: 3;
  }
  html body #mnav-modal.mt-ready .mnav-modal-content:not(#_x) {
    padding-top: 60px !important;
  }
  /* tighter dividers */
  html body #mnav-modal.mt-ready .mnav-galleries-divider:not(#_x) {
    margin: 10px 0 8px !important;
    padding: 0 !important;
  }
  html body #mnav-modal.mt-ready .mt-gal:not(#_x) {
    margin-top: 6px !important;
    margin-bottom: 4px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
  /* gallery tiles: darker gradient + bolder labels so white images (Wojaks) stay readable */
  html body #mnav-modal.mt-ready .mnav-card .mnav-card-overlay:not(#_x) {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.5) 34%, rgba(0, 0, 0, 0) 68%) !important;
  }
  html body #mnav-modal.mt-ready .mnav-card span:not(#_x) {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 8px rgba(0, 0, 0, 0.6) !important;
  }
  /* four small outlined buttons, 2 x 2 */
  html body #mnav-modal.mt-ready .mnav-site-nav:not(#_x) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    margin: 0 !important;
    padding: 10px 0 0 !important;
  }
  html body #mnav-modal.mt-ready .mnav-site-nav:not(#_x) .mnav-site-rule {
    display: none !important;
  }
  html body #mnav-modal.mt-ready .mnav-site-nav:not(#_x) .mnav-site-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px !important;
    box-sizing: border-box;
    height: 38px;
    margin: 0 !important;
    padding: 0 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    box-shadow: none !important;
    color: #cfcfcf !important;
    font-size: 13px !important;
    font-weight: 700;
    letter-spacing: 0.02em !important;
    white-space: nowrap;
    cursor: pointer;
  }
  html body #mnav-modal.mt-ready .mnav-site-nav:not(#_x) .mnav-site-link span {
    font-size: 13px !important;
    letter-spacing: 0.02em !important;
  }
  html body #mnav-modal.mt-ready .mnav-site-nav:not(#_x) .mnav-site-link svg {
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 auto;
  }
  html body #mnav-modal.mt-ready .mnav-site-nav:not(#_x) .mnav-site-link:active {
    background: rgba(167, 36, 47, 0.28) !important;
    border-color: rgba(167, 36, 47, 0.7) !important;
    color: #ffffff !important;
  }
}
/* BOBO-MNAV-SITEROW:END */

/* BOBO-MNAV-CURRENT:START - the menu item for the page you are on is red (gallery tiles + Videos button)
   Remove with: sed -i '' '/BOBO-MNAV-CURRENT:START/,/BOBO-MNAV-CURRENT:END/d' styles.css */
@media (max-width: 1040px) {
  html body #mnav-modal.mt-ready .mnav-card.mt-current span:not(#_x) {
    color: #ff3347 !important;
  }
  html body #mnav-modal.mt-ready .mnav-site-nav:not(#_x) .mnav-site-link.mt-current,
  html body #mnav-modal.mt-ready .mnav-site-nav:not(#_x) .mnav-site-link.mt-current span {
    color: #ff3347 !important;
  }
  html body #mnav-modal.mt-ready .mnav-site-nav:not(#_x) .mnav-site-link.mt-current {
    border-color: rgba(255, 51, 71, 0.55) !important;
  }
}
/* BOBO-MNAV-CURRENT:END */

/* BOBO-MODAL-X:START - one look for every modal close button: 32px ghost circle in a 44px tap box, drawn X, no spin or scale, accent tint on press / mouse hover
   Covers .bm-x (Links/Socials), .games-close-btn, .close-modal (sticker, merch, collections, feels) and the mnav menu X (.mt-x)
   Remove with: sed -i '' '/BOBO-MODAL-X:START/,/BOBO-MODAL-X:END/d' styles.css */
html body :is(button.bm-x, button.games-close-btn, button.close-modal, #mnav-modal.mt-ready button.mt-x):not(#_x) {
  box-sizing: border-box !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 6px solid transparent !important;
  border-radius: 50% !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 3l10 10M13 3L3 13' fill='none' stroke='%23b8b8b8' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat, rgba(255, 255, 255, 0.04) !important;
  background-clip: padding-box !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
  color: #b8b8b8 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  transform: none !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent !important;
  transition: background-color 0.12s ease, box-shadow 0.12s ease !important;
}
html body :is(button.bm-x, button.games-close-btn, button.close-modal, #mnav-modal.mt-ready button.mt-x):not(#_x):active {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 3l10 10M13 3L3 13' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat, rgba(185, 11, 42, 0.4) !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 3l10 10M13 3L3 13' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat, color-mix(in srgb, var(--sidebar-red, #b90b2a) 45%, transparent) !important;
  background-clip: padding-box !important;
  box-shadow: inset 0 0 0 1px var(--sidebar-red, #b90b2a) !important;
  transform: none !important;
}
@media (hover: hover) {
  html body :is(button.bm-x, button.games-close-btn, button.close-modal, #mnav-modal.mt-ready button.mt-x):not(#_x):hover {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 3l10 10M13 3L3 13' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat, rgba(185, 11, 42, 0.4) !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 3l10 10M13 3L3 13' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat, color-mix(in srgb, var(--sidebar-red, #b90b2a) 45%, transparent) !important;
    background-clip: padding-box !important;
    box-shadow: inset 0 0 0 1px var(--sidebar-red, #b90b2a) !important;
    transform: none !important;
  }
}
html body :is(button.bm-x, button.games-close-btn, button.close-modal, #mnav-modal.mt-ready button.mt-x):not(#_x):focus:not(:focus-visible) {
  outline: none !important;
}
html body :is(button.bm-x, button.games-close-btn, button.close-modal, #mnav-modal.mt-ready button.mt-x):not(#_x):focus-visible {
  outline: 2px solid var(--sidebar-red, #b90b2a) !important;
  outline-offset: 0 !important;
}
/* BOBO-MODAL-X:END */

/* ---- BOBO-MNAV-FOOT: Games | Videos | Links | Socials in one footer row; top strip is just the X ---- */
@media (max-width:1040px){
  html body #mnav-modal.mt-ready .mt-tabs{display:flex;align-items:center;margin:0 0 10px;padding:0;border-bottom:0}
  html body #mnav-modal .mt-row4{display:flex !important;flex-wrap:nowrap !important;align-items:center !important;justify-content:space-between !important;gap:0 !important}
  html body #mnav-modal .mt-row4 > .mt-foot-item{box-sizing:border-box !important;flex:1 1 0 !important;min-width:0 !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;gap:5px !important;padding:8px 2px !important;margin:0 !important;white-space:nowrap !important;text-decoration:none}
  html body #mnav-modal .mt-row4 > .mt-foot-item,
  html body #mnav-modal .mt-row4 > .mt-foot-item *{font-size:12px !important;letter-spacing:0 !important}
  html body #mnav-modal .mt-row4 > .mt-foot-item svg{width:15px !important;height:15px !important;flex:0 0 auto}
  html body #mnav-modal .mt-row4 > .mt-foot-sep{flex:0 0 auto !important;margin:0 !important}
  html body #mnav-modal .mt-row4.mt-measure > .mt-foot-item{flex:0 0 auto !important}
  html body #mnav-modal .mt-row4.mt-2x2{flex-wrap:wrap !important}
  html body #mnav-modal .mt-row4.mt-2x2 > .mt-foot-item{flex:0 0 50% !important;font-size:14px !important}
  html body #mnav-modal .mt-row4.mt-2x2 > .mt-foot-sep{display:none !important}
}

/* ---- BOBO-FEELS-SHEET: Feelings / Tags picker. Bottom sheet on phones+tablets, centered modal on desktop ---- */
@keyframes fsFade{from{opacity:0}to{opacity:1}}
@keyframes fsSheetUp{from{transform:translateY(100%)}to{transform:translateY(0)}}
@keyframes fsPop{from{opacity:0;transform:translateY(10px) scale(.96)}to{opacity:1;transform:none}}

/* shared: hide the old header, the segmented control, chips, market strip */
html body #feels-modal .feels-modal-header,
html body #feels-modal .modal-divider-feels{display:none !important}
html body #feels-modal.active{animation:fsFade .2s ease}
html body #feels-modal .fs-head{background:#161618}
html body #feels-modal .fs-handle{display:block;width:40px;height:5px;border-radius:3px;background:rgba(255,255,255,.22)}
html body #feels-modal .fs-row{display:flex;align-items:center;gap:10px}
html body #feels-modal .feels-tabs{display:flex !important;flex:1 1 auto;gap:0 !important;margin:0 !important;padding:4px;background:#0b0b0d;border:1px solid rgba(255,255,255,.06);border-radius:999px}
html body #feels-modal .feels-tab{flex:1 1 0;margin:0;padding:11px 10px !important;border:0 !important;border-radius:999px !important;background:transparent !important;color:#8b8b90 !important;
  font:700 14px/1 'Space Grotesk',system-ui,sans-serif !important;letter-spacing:.02em !important;text-transform:none !important;transition:background .2s,color .2s}
html body #feels-modal .feels-tab.active{background:#b90b2a !important;color:#fff !important}
html body #feels-modal .fs-x{flex:0 0 auto;appearance:none;-webkit-appearance:none;margin:0;width:32px;height:32px;padding:0 0 2px;border:1px solid rgba(255,255,255,.14);border-radius:50%;background:transparent;color:#b9b9be;font-size:21px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
html body #feels-modal .fs-x:active{background:#b90b2a;border-color:#b90b2a;color:#fff}
html body #feels-modal .feels-grid{margin:14px 0 4px !important}
html body #feels-modal .feels-option{box-sizing:border-box;width:auto !important;margin:0;border:0 !important;border-radius:999px !important;background:#27272b !important;box-shadow:none !important;color:#e2e2e5 !important;
  font:600 15px/1 'Space Grotesk',system-ui,sans-serif !important;letter-spacing:0 !important;text-transform:none !important;cursor:pointer;outline:none;transition:background .15s,color .15s}
html body #feels-modal .feels-option[data-emo]::before{content:attr(data-emo);margin-right:7px;font-size:1.05em}
html body #feels-modal .feels-option:active,
html body #feels-modal .feels-option.active-feel{background:#b90b2a !important;color:#fff !important}
html body #feels-modal .feels-option:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media (hover:hover){html body #feels-modal .feels-option:hover{background:#34343a !important;color:#fff !important}}
html body #feels-modal .fs-market-label{flex:0 0 100%;grid-column:1/-1;margin:20px 2px 8px;font:700 11px/1 'JetBrains Mono',monospace;letter-spacing:.22em;text-transform:uppercase;color:#7d7d84}
html body #feels-modal .curated-liquidation-row{flex:0 0 100% !important;grid-column:1/-1 !important;display:flex !important;width:100%;box-sizing:border-box;gap:10px !important;margin:0 !important;padding:0 !important;border-top:0 !important}
html body #feels-modal .curated-liquidation-row .curated-btn{display:flex !important;align-items:center;justify-content:center;min-height:58px !important;padding:0 6px !important;border-radius:14px !important;font-size:16px !important;letter-spacing:.5px !important;white-space:nowrap !important}

/* phones + tablets: bottom sheet */
@media (max-width:1040px){
  html body #feels-modal{padding:0 !important;align-items:flex-end !important;justify-content:center !important}
  html body #feels-modal .feels-modal-content{width:100% !important;max-width:640px !important;max-height:88vh !important;max-height:88dvh !important;box-sizing:border-box !important;
    padding:0 16px calc(18px + env(safe-area-inset-bottom)) !important;border:0 !important;border-top:1px solid rgba(185,11,42,.45) !important;border-radius:22px 22px 0 0 !important;
    background:#161618 !important;box-shadow:0 -12px 40px rgba(0,0,0,.6) !important;overflow-y:auto !important;overscroll-behavior:contain;touch-action:pan-y;will-change:transform}
  html body #feels-modal.active .feels-modal-content{animation:fsSheetUp .32s cubic-bezier(.2,.9,.25,1)}
  html body #feels-modal .fs-head{position:sticky;top:0;z-index:2;margin:0 -16px;padding:0 16px 12px;touch-action:none}
  html body #feels-modal .fs-grab{display:flex;justify-content:center;padding:10px 0 12px}
  html body #feels-modal .fs-face,html body #feels-modal .fs-title{display:none}
  html body #feels-modal .feels-grid{display:flex !important;flex-wrap:wrap;gap:8px !important}
  html body #feels-modal .feels-option{flex:0 0 auto;padding:11px 15px !important}
  html body #feels-modal .feels-grid-tags .feels-option{padding:10px 14px !important;font-size:14px !important}
}

/* desktop: centered modal, feelings as tiles */
@media (min-width:1041px){
  html body #feels-modal .feels-modal-content{width:min(640px,92vw) !important;max-width:640px !important;min-height:min(600px,88vh);max-height:88vh !important;box-sizing:border-box !important;padding:22px 26px 26px !important;
    border:1px solid rgba(185,11,42,.4) !important;border-radius:20px !important;background:#161618 !important;box-shadow:0 30px 80px rgba(0,0,0,.7) !important;overflow-y:auto !important}
  html body #feels-modal.active .feels-modal-content{animation:fsPop .24s cubic-bezier(.2,.9,.25,1)}
  html body #feels-modal .fs-grab{display:none}
  html body #feels-modal .fs-row{flex-wrap:wrap;gap:14px 12px}
  html body #feels-modal .fs-face{display:block;width:42px;height:42px;border-radius:50%;object-fit:cover;background:#0b0b0d}
  html body #feels-modal .fs-title{display:block;flex:1 1 auto;font:600 28px/1.1 Oswald,Impact,sans-serif;letter-spacing:.01em;color:#fff}
  html body #feels-modal .feels-tabs{order:3;flex:0 0 100%}
  html body #feels-modal #feels-panel-feels .feels-grid{display:grid !important;grid-template-columns:repeat(4,1fr) !important;gap:10px !important}
  html body #feels-modal #feels-panel-feels .feels-option{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;height:96px;padding:0 6px !important;border-radius:16px !important;font-size:15px !important}
  html body #feels-modal #feels-panel-feels .feels-option[data-emo]::before{display:block;margin:0;font-size:30px;line-height:1}
  html body #feels-modal .feels-grid-tags{display:flex !important;flex-wrap:wrap;gap:8px !important}
  html body #feels-modal .feels-grid-tags .feels-option{flex:0 0 auto;padding:11px 16px !important;font-size:15px !important}
  html body #feels-modal .curated-liquidation-row .curated-btn{min-height:62px !important;font-size:20px !important;letter-spacing:1px !important}
}
@media (prefers-reduced-motion:reduce){html body #feels-modal.active,html body #feels-modal.active .feels-modal-content{animation:none}}

/* ---- BOBO-FEELS-V2: no emoji, no face/title; tabs + X share one row on desktop too ---- */
html body #feels-modal .fs-face,html body #feels-modal .fs-title{display:none !important}
html body #feels-modal .feels-option[data-emo]::before{content:none !important;display:none !important}
@media (min-width:1041px){
  html body #feels-modal .fs-row{flex-wrap:nowrap;gap:10px}
  html body #feels-modal .feels-tabs{order:0;flex:1 1 auto}
  html body #feels-modal #feels-panel-feels .feels-option{height:64px}
  html body #feels-modal .feels-modal-content{min-height:0}
}

/* ---- BOBO-FEELS-MARKET: Market Reactions tab (Bobo page): third tab, its own panel with just the two buttons ---- */
html body #feels-modal .feels-tab{flex:1 1 auto;white-space:nowrap}
@media (max-width:380px){html body #feels-modal .feels-tab{font-size:12.5px !important;padding:11px 7px !important}}
html body #feels-modal #feels-panel-market .curated-liquidation-row{margin:14px 0 4px !important;gap:12px !important}
html body #feels-modal #feels-panel-market .curated-liquidation-row .curated-btn{min-height:120px !important;font-size:20px !important;line-height:1.25 !important;white-space:normal !important;text-align:center;border-radius:18px !important}
@media (min-width:1041px){
  html body #feels-modal #feels-panel-market .curated-liquidation-row .curated-btn{min-height:150px !important;font-size:26px !important}
}

/* ---- BOBO-FEELS-MARKET: Market Reactions tab (Bobo page): third tab, its own panel with just the two buttons ---- */
html body #feels-modal .feels-tab{flex:1 1 auto;white-space:nowrap}
@media (max-width:380px){html body #feels-modal .feels-tab{font-size:12.5px !important;padding:11px 7px !important}}
html body #feels-modal #feels-panel-market .curated-liquidation-row{margin:14px 0 4px !important;gap:12px !important}
html body #feels-modal #feels-panel-market .curated-liquidation-row .curated-btn{min-height:120px !important;font-size:20px !important;line-height:1.25 !important;white-space:normal !important;text-align:center;border-radius:18px !important}
@media (min-width:1041px){
  html body #feels-modal #feels-panel-market .curated-liquidation-row .curated-btn{min-height:150px !important;font-size:26px !important}
}

/* ---- BOBO-FEELS-FOOT: Market Reactions pinned under the content on every tab (Bobo page); two equal tabs again ---- */
html body #feels-modal .feels-tab{flex:1 1 0;white-space:nowrap;font-size:14px !important;padding:11px 10px !important}
html body #feels-modal .feels-modal-content.fs-has-foot{padding-bottom:0 !important}
html body #feels-modal .fs-foot{position:sticky;bottom:0;z-index:2;margin:14px -16px 0;padding:12px 16px calc(14px + env(safe-area-inset-bottom));background:#161618;border-top:1px solid rgba(255,255,255,.07);touch-action:manipulation}
html body #feels-modal .fs-foot .fs-market-label{margin:0 2px 8px}
@media (min-width:1041px){
  html body #feels-modal .fs-foot{margin:18px -26px 0;padding:14px 26px 22px}
}

/* ---- BOBO-FEELS-HIDDEN: honor inline display:none (page scripts hide/show the feelings + tags panels that way) ---- */
html body #feels-modal#feels-modal [style*="display: none"],
html body #feels-modal#feels-modal [style*="display:none"],
html body #feels-modal#feels-modal [hidden]{display:none !important}
