/* CLS skeleton placeholders — loaded before JS; mirrors feed/sound page layout */

/* FONT_FALLBACK_START */
@font-face {
    font-family: 'Anybody Fallback';
    src: local('Arial');
    size-adjust: 108%;
    ascent-override: 95%;
    descent-override: 25%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Hanken Grotesk Fallback';
    src: local('Arial');
    size-adjust: 100%;
    ascent-override: 92%;
    descent-override: 24%;
    line-gap-override: 0%;
}
/* FONT_FALLBACK_END */

/* SOUND_CRITICAL_START */
:root {
    --header-height: 60px;
    --space-section: 24px;
    --space-after-header: 16px;
    --label-zone-min-height: 64px;
    --margin-mobile: 16px;
    --margin-desktop: 32px;
    --pad-gap-mobile: 8px;
    --pad-gap-desktop: 12px;
    --mi-feed-cols: 4;
    --mi-feed-gap: var(--pad-gap-desktop);
  /*
   * Cap before JS bootstrap so ultrawide first paint is not full-bleed
   * (otherwise the centered column snaps ~half a viewport inward).
   */
  --mi-feed-grid-width: min(100%, 1000px);
  /* Pixel width set by mi-feed-layout — 1fr is invalid for element width and collapses the grid. */
  --mi-feed-cell-width: 160px;
  --mi-feed-pad-height: auto;
    --mi-sound-app-promo-min-height: 460px;
    --mi-sound-related-min-height: 520px;
    --mi-feed-label-line-clamp: 3;
}

@media (max-width: 399px) {
    :root {
        --label-zone-min-height: 94px;
        --mi-feed-label-line-clamp: 4;
    }
}

:root {
    --arcade-bg: #131313;
    --arcade-surface: #1e1e1e;
    --arcade-surface-border: #333333;
    --arcade-on-surface: #e5e2e1;
    --arcade-primary: #e85d04;
    --arcade-primary-strong: #c2410c;
    --arcade-radius-sm: 0.5rem;
    --arcade-font-display: 'Anybody', 'Montserrat', 'Anybody Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
    --arcade-font-body: 'Hanken Grotesk', 'Hanken Grotesk Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
    --soft-outline: #b8959d;
    --mi-font-body-fallback: 'Segoe UI', system-ui, sans-serif;
    --mi-font-display-fallback: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@supports (font-size-adjust: from-font) {
    body {
        font-size-adjust: from-font;
    }
}

body {
    margin: 0;
    background-color: var(--arcade-bg);
    color: var(--arcade-on-surface);
    font-family: var(--arcade-font-body);
}

.mi-skeleton-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    box-sizing: border-box;
}

/*
 * SSR skeleton is a fixed overlay from first paint so the SPA can mount as an
 * in-flow sibling underneath without CLS (hub field ~0.89 when this was in-flow
 * then yanked to fixed on --releasing). z-index above .app-header (1000) so SPA
 * chrome cannot paint through. Overlay drops once a live SPA tile exists
 * (see releaseSsrSkeletonWhenPadReady).
 *
 * display:block (not the .mi-skeleton-shell flex column): a viewport-tall flex
 * shell lets the unsized footer squeeze .mi-skeleton-feed (min-height:0) into
 * one 3-pad row — a broken “square of three”. Block layout paints the grid at
 * natural height and clips below the fold.
 */
#mi-ssr-skeleton {
    position: fixed;
    inset: 0;
    z-index: 1100;
    /*
     * Match .main-content scrollbar-gutter so the overlay feed column is
     * centered in the same width as the live SPA (avoids L/R jump on reveal).
     * overflow-y:auto (not hidden) is required for the gutter to apply.
     */
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
    display: block;
    min-height: 0;
    height: 100%;
    pointer-events: none;
    background-color: var(--arcade-surface, #121212);
    /*
     * Keep the overlay visually opaque without Chromium classifying the live
     * SPA beneath it as fully occluded. Otherwise revealing layout-matched live
     * tiles is scored as a full-viewport shift from a zero rectangle.
     */
    opacity: 0.999;
    transition: opacity 120ms linear;
}

#mi-ssr-skeleton.mi-ssr-skeleton--releasing {
    pointer-events: none;
}

/*
 * Descendants must not re-enable hit testing while the overlay is up. A duplicate
 * SSR .app-header sits above the live header (z-index 1100 vs 1000) during
 * --releasing; default pointer-events:auto on children steals Get App taps.
 */
#mi-ssr-skeleton,
#mi-ssr-skeleton * {
    pointer-events: none !important;
}

/*
 * Comparison SSR already paints the full article (links, CTAs). Keeping
 * pointer-events:none left a visible “dead layer” until the SPA twin mounted.
 * Allow hit-testing on comparison overlays so native <a href> works during hydrate.
 */
#mi-ssr-skeleton:has(article.comparison-page:not(.comparison-skeleton-page)),
#mi-ssr-skeleton:has(article.comparison-page:not(.comparison-skeleton-page)) * {
    pointer-events: auto !important;
}

/*
 * Reserve blocks are invisible spacers only. Keeping PE:auto here (from the
 * rule above) punched opaque hit-targets over the live DemoSoundButtons /
 * CTAs painted underneath — pads looked real but never played.
 */
#mi-ssr-skeleton:has(article.comparison-page:not(.comparison-skeleton-page)) .comparison-ssr-reserve,
#mi-ssr-skeleton:has(article.comparison-page:not(.comparison-skeleton-page)) .comparison-ssr-reserve * {
    pointer-events: none !important;
}

#mi-ssr-skeleton.mi-ssr-skeleton--releasing:has(article.comparison-page:not(.comparison-skeleton-page)),
#mi-ssr-skeleton.mi-ssr-skeleton--releasing:has(article.comparison-page:not(.comparison-skeleton-page)) * {
    pointer-events: none !important;
}

/*
 * Sound-detail fallback park only — must stay invisible. Never a fixed center
 * orb (that painted a ghost pad on hubs when park ran incorrectly).
 */
#mi-lcp-pad-host.mi-lcp-pad-host {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

#mi-lcp-pad-host .mi-lcp-pad__img {
    width: 1px;
    height: 1px;
    display: block;
}

.mi-skeleton-app-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: var(--header-height);
    flex-shrink: 0;
    box-sizing: border-box;
    background-color: #000000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mi-skeleton-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/*
 * Live SPA main also carries .mi-skeleton-main (class parity with the overlay).
 * Only the SSR overlay needs this padding — .main-content already clears the
 * fixed header (+ optional top-ad offset). Unscoped padding here doubles it.
 */
#mi-ssr-skeleton .mi-skeleton-main {
    padding-top: var(--header-height);
}

/* Static SSR header lives inside fixed .app-header — do not double-fix. */
#mi-ssr-skeleton .app-header .mi-static-app-header {
    position: static;
    top: auto;
    left: auto;
    z-index: auto;
    width: 100%;
    height: var(--header-height);
    box-shadow: none;
}

.mi-skeleton-app-header {
    background-color: #1e1e1e;
    border-bottom: 1px solid #333333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.mi-skeleton-page {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.mi-skeleton-page--sound {
    align-items: center;
    padding: 20px;
    justify-content: flex-start;
}

.sound-page-top-bar,
.mi-skeleton-sound-top-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    width: calc(100% + 40px);
    max-width: none;
    margin: 0 -20px 12px;
    padding: 0 var(--margin-mobile);
    box-sizing: border-box;
}

.sound-page-nav,
.mi-skeleton-sound-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    width: 100%;
    max-width: 380px;
    margin: 0 auto 12px;
    box-sizing: border-box;
}

.sound-page-nav .sound-page-top-bar,
.sound-page-nav .mi-skeleton-sound-top-bar,
.mi-skeleton-sound-nav .sound-page-top-bar,
.mi-skeleton-sound-nav .mi-skeleton-sound-top-bar {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

.sound-page-nav .sound-page-back,
.sound-page-nav .mi-skeleton-sound-back,
.mi-skeleton-sound-nav .sound-page-back,
.mi-skeleton-sound-nav .mi-skeleton-sound-back {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
}

.sound-page-nav .comparison-breadcrumb {
    margin-bottom: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.sound-page-back,
.mi-skeleton-sound-back {
    position: absolute;
    left: var(--margin-mobile);
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
    padding: 0;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.sound-page-back-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.mi-skeleton-sound-back--placeholder {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
}

/* Visually-hidden SEO chrome — reinforced after .mi-skeleton-h1 rules below. */
.sound-page-title--seo,
.mi-skeleton-h1--seo,
.mi-skeleton-h1--sound.sound-page-title--seo {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    background: transparent;
}

@media (max-width: 768px) {
    .sound-page-top-bar,
    .mi-skeleton-sound-top-bar {
        margin-bottom: 10px;
    }

    .sound-page-nav,
    .mi-skeleton-sound-nav {
        margin-bottom: 10px;
    }

    .sound-page-nav .comparison-breadcrumb {
        flex-basis: 100%;
    }

    .sound-page-back,
    .mi-skeleton-sound-back {
        width: 2.35rem;
        height: 2.35rem;
    }

    .sound-page-back-icon {
        width: 1rem;
        height: 1rem;
    }
}

@media (min-width: 768px) {
    .sound-page-top-bar,
    .mi-skeleton-sound-top-bar {
        padding-left: 40px;
        padding-right: var(--margin-desktop);
    }

    .sound-page-nav,
    .mi-skeleton-sound-nav {
        flex-wrap: nowrap;
    }

    .sound-page-back,
    .mi-skeleton-sound-back {
        left: 40px;
    }

    [dir="rtl"] .sound-page-back,
    [dir="rtl"] .mi-skeleton-sound-back {
        left: auto;
        right: 40px;
    }
}

@media (min-width: 720px) and (max-width: 1023px) {
    .sound-page-nav,
    .mi-skeleton-sound-nav {
        max-width: 800px;
    }
}

@media (min-width: 1024px) {
    .sound-page-nav,
    .mi-skeleton-sound-nav {
        max-width: 1080px;
    }
}

[dir="rtl"] .sound-page-back,
[dir="rtl"] .mi-skeleton-sound-back {
    left: auto;
    right: var(--margin-mobile);
}

/* LCP_CRITICAL_START */
.mi-lcp-pad {
    flex-shrink: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 200 / 190;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.mi-lcp-pad picture {
    display: block;
    width: 100%;
    height: 100%;
}

.mi-lcp-pad__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* LCP_CRITICAL_END */

/* SOUND_CRITICAL_END */

/* FEED_CRITICAL_START */
/*
 * The SPA can mount FeedScoreboardHeader before its route CSS chunk arrives on
 * Slow 4G. Keep its first computed box identical to the component stylesheet
 * so that late CSS cannot move the whole feed.
 */
.feed-scoreboard-header {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
    box-sizing: border-box;
    background-color: var(--arcade-surface, #1e1e1e);
    border: 1px solid var(--arcade-surface-border, #333);
    border-radius: 0;
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.45),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04),
        0 4px 0 rgba(0, 0, 0, 0.55);
}

.feed-scoreboard-header-inner,
.feed-scoreboard-hero {
    width: var(--mi-feed-grid-width, 100%);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.feed-scoreboard-header-inner {
    gap: 3px;
}

.feed-scoreboard-hero {
    gap: 0.35rem;
}

.feed-scoreboard-title-row {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

.feed-scoreboard-title {
    margin: 0;
    min-height: calc(1.1em * 1);
    font-family: var(--arcade-font-display, 'Anybody', 'Anybody Fallback', -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: 32px;
    font-weight: 800;
    font-style: italic;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--arcade-on-surface, #e5e2e1);
}

.feed-scoreboard-subtitle {
    width: 100%;
    min-height: calc(1.35em * 2);
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0 0.2em;
    font-family: var(--arcade-font-body, 'Hanken Grotesk', 'Hanken Grotesk Fallback', -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--soft-outline, rgba(255, 255, 255, 0.6));
}

.meme-buttons-feed {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0 var(--margin-mobile);
    box-sizing: border-box;
}

.meme-buttons-feed > .comparison-breadcrumb {
    width: var(--mi-feed-grid-width, 100%);
    max-width: 100%;
    min-width: 0;
    align-self: center;
    margin-top: var(--space-after-header);
    box-sizing: border-box;
}

.pagination-anchor {
    width: var(--mi-feed-grid-width, 100%);
    max-width: 100%;
    align-self: center;
}

.pagination-anchor--top {
    position: relative;
    min-height: 68px;
}

.pagination {
    flex-shrink: 0;
    width: var(--mi-feed-grid-width, 100%);
    max-width: 100%;
    margin-top: 16px;
    margin-bottom: 16px;
    padding: 0;
    box-sizing: border-box;
}

.meme-buttons-grid {
    display: grid;
    width: var(--mi-feed-grid-width, 100%);
    max-width: 100%;
    margin-top: var(--space-after-header);
    gap: var(--mi-feed-gap, var(--pad-gap-desktop));
    grid-template-columns: repeat(var(--mi-feed-cols, 4), var(--mi-feed-cell-width, 1fr));
    align-items: start;
    justify-content: center;
    box-sizing: border-box;
}

.meme-buttons-grid > .button-container {
    width: var(--mi-feed-cell-width, 100%);
    max-width: 100%;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
}

.manual-ad-slot-placement--below-top-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: var(--mi-feed-grid-width, 100%);
    max-width: 100%;
    height: 90px;
    min-height: 90px;
    max-height: 90px;
    margin-top: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .meme-buttons-feed > .comparison-breadcrumb {
        margin-top: 8px;
    }

    .manual-ad-slot-placement--below-top-pager {
        margin-top: 8px;
        margin-bottom: 8px;
    }

    .mi-skeleton-feed > .comparison-skeleton-breadcrumb {
        margin: 8px 0;
    }

    /* Mobile: above-header is a 320×50 fixed banner (same rhythm as below-pager). */
    .manual-ad-slot-placement--above-header.mi-skeleton-top-ad-reserve {
        display: flex !important;
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        margin-block: 8px !important;
        overflow: hidden;
    }

    .mi-skeleton-top-ad-reserve {
        margin-block: 8px;
        height: 50px;
        min-height: 50px;
        max-height: 50px;
    }
}

.mi-skeleton-header {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
    box-sizing: border-box;
    background-color: var(--arcade-surface, #1e1e1e);
    border: 1px solid var(--arcade-surface-border, #333);
    border-radius: 0;
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 0 rgba(0, 0, 0, 0.42);
}

/*
 * MUST follow the base .mi-skeleton-header { width: 100% } rule above.
 * Same specificity — later source order wins. The earlier media query was
 * overridden by width:100%, so SSR header stayed full-bleed and snapped
 * ~800–900px inward when live chrome mounted.
 */
@media (min-width: 1200px) {
    .feed-scoreboard-header,
    .mi-skeleton-header {
        width: var(--mi-feed-grid-width, min(100%, 1000px));
        max-width: 100%;
        align-self: center;
        /* margin-inline centers even before .meme-buttons-page flex CSS chunk loads
         * (align-self is a no-op while the parent is still display:block). */
        margin-inline: auto;
        box-sizing: border-box;
    }
}

.mi-skeleton-title {
    width: 70%;
    max-width: 320px;
    /* Match .feed-scoreboard-title 1-line min-height (32px × 1.1 × 1). */
    height: calc(32px * 1.1 * 1);
    margin: 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
}

.mi-skeleton-h1 {
    margin: 0;
    width: 100%;
    max-width: 1000px;
    min-height: calc(1.1em * 1);
    font-family: var(--arcade-font-display, 'Anybody', 'Anybody Fallback', -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: 28px;
    font-weight: 800;
    font-style: italic;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--arcade-on-surface, #e5e2e1);
    text-transform: uppercase;
    text-align: center;
}

.mi-skeleton-subtitle {
    width: 85%;
    max-width: 420px;
    /* Match .feed-scoreboard-subtitle 2-line min-height (16px × 1.35 × 2). */
    height: calc(16px * 1.35 * 2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
}

.mi-ssr-sound-links__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Homepage → locale hubs (LOC-460 / LOC-1101 / LOC-1102) — visible, matches LocaleHubLinks.css */
.mi-locale-hubs {
    width: min(100%, var(--mi-feed-grid-width, 1000px));
    margin: 24px auto 0;
    padding: 0 var(--margin-mobile, 16px);
    box-sizing: border-box;
    text-align: center;
}

.mi-locale-hubs__heading {
    margin: 0 0 10px;
    font-family: var(--arcade-font-display, 'Teko', 'Teko Fallback', Impact, sans-serif);
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--arcade-on-surface, #e5e2e1);
}

.mi-locale-hubs__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mi-locale-hubs__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-height: 44px;
    padding: 6px 14px;
    border: 1px solid var(--arcade-surface-border, #333);
    border-radius: 9999px;
    background: var(--arcade-surface, #1e1e1e);
    color: var(--arcade-on-surface, #e5e2e1);
    font-family: var(--arcade-font-body, 'Hanken Grotesk', sans-serif);
    line-height: 1.25;
    text-decoration: none;
    box-sizing: border-box;
}

.mi-locale-hubs__country {
    font-size: 0.95rem;
    font-weight: 700;
}

.mi-locale-hubs__label {
    font-size: 0.8rem;
    opacity: 0.75;
}

@media (min-width: 768px) {
    .mi-locale-hubs {
        padding: 0 var(--margin-desktop, 32px);
    }
}

.mi-skeleton-subtitle--text {
    width: 100%;
    max-width: 520px;
    height: calc(16px * 1.35 * 2);
    min-height: calc(16px * 1.35 * 2);
    margin: 0;
    background: none;
    border-radius: 0;
    color: var(--arcade-on-surface, #e5e2e1);
    font-family: var(--arcade-font-body, 'Hanken Grotesk', 'Hanken Grotesk Fallback', -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: 16px;
    line-height: 1.35;
    text-align: center;
    opacity: 0.85;
    box-sizing: border-box;
}

.mi-skeleton-search {
    width: min(100%, 420px);
    height: 2.75rem;
    margin-top: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
}

.mi-skeleton-grid {
    display: grid;
    width: var(--mi-feed-grid-width, 100%);
    max-width: 100%;
    margin-top: var(--space-after-header);
    gap: var(--mi-feed-gap, var(--pad-gap-desktop));
    grid-template-columns: repeat(var(--mi-feed-cols, 4), var(--mi-feed-cell-width, 1fr));
    align-items: start;
    justify-content: center;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .mi-skeleton-grid {
        width: 100%;
        grid-template-columns: repeat(var(--mi-feed-cols, 3), minmax(0, 1fr));
    }
}

.mi-skeleton-feed {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0 var(--margin-mobile);
    box-sizing: border-box;
}

.mi-skeleton-feed > .comparison-skeleton-breadcrumb {
    display: flex;
    align-items: center;
    width: var(--mi-feed-grid-width, 100%);
    max-width: 100%;
    height: 18px;
    margin: var(--space-after-header) 0;
    box-sizing: border-box;
}

.mi-skeleton-feed > .pagination-anchor--reserve {
    flex: 0 0 68px;
    width: var(--mi-feed-grid-width, 100%);
    max-width: 100%;
    min-height: 68px;
}

.mi-skeleton-top-ad-reserve {
    flex: 0 0 90px;
    width: var(--mi-feed-grid-width, 100%);
    max-width: 100%;
    height: 90px;
    min-height: 90px;
    max-height: 90px;
    margin-block: 16px;
    box-sizing: border-box;
}

.mi-skeleton-cell {
    display: flex;
    flex-direction: column;
    width: var(--mi-feed-cell-width, 100%);
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background-color: #474a51;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.mi-skeleton-pad {
    flex-shrink: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 200 / 190;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    /* Flat soft disc — not button-lq.webp (glossy grey pads pop hard into color tiles). */
    background-color: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.mi-skeleton-label {
    flex: 0 0 var(--label-zone-min-height);
    min-height: var(--label-zone-min-height);
    padding: 6px 10px 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mi-skeleton-label-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    flex: 1 1 auto;
}

.mi-skeleton-label-stats {
    flex-shrink: 0;
    margin-top: auto;
}

.mi-skeleton-label-line {
    width: 80%;
    height: 0.8rem;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.mi-skeleton-label-line--short {
    width: 50%;
    height: 0.6rem;
}

@media (min-width: 601px) {
    .feed-scoreboard-header {
        padding: 16px;
    }

    .feed-scoreboard-title {
        font-size: 40px;
    }

    .mi-skeleton-label {
        padding: 8px 12px 8px;
    }

    .mi-skeleton-h1 {
        font-size: 32px;
    }

    .mi-skeleton-header {
        padding: 16px;
        min-height: 123px;
        flex: 0 0 123px;
    }

    .mi-skeleton-title {
        height: calc(40px * 1.1 * 1);
    }
}

@media (min-width: 768px) {
    .meme-buttons-feed {
        padding: 0 var(--margin-desktop);
    }

    .mi-skeleton-feed {
        padding: 0 var(--margin-desktop);
    }
}

@media (max-width: 600px) {
    .meme-buttons-grid {
        width: 100%;
        grid-template-columns: repeat(var(--mi-feed-cols, 3), minmax(0, 1fr));
    }

    .feed-scoreboard-header {
        padding: 16px 14px;
    }

    .feed-scoreboard-title {
        font-size: 28px;
    }

    .feed-scoreboard-subtitle {
        min-height: calc(1.5em * 2);
        font-size: 14px;
        line-height: 1.5;
    }

    .mi-skeleton-header {
        padding: 16px 14px;
        min-height: 110px;
        flex: 0 0 110px;
    }

    .mi-skeleton-title {
        height: calc(32px * 1.1 * 1);
    }

    .mi-skeleton-h1 {
        font-size: 26px;
    }

    .mi-skeleton-subtitle {
        height: calc(14px * 1.35 * 2);
    }

    .mi-skeleton-subtitle--text {
        min-height: calc(14px * 1.35 * 2);
        font-size: 14px;
    }
}

.mi-skeleton-cell {
    background-color: #1e1e1e;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.55);
}

.mi-skeleton-header {
    background-color: var(--arcade-surface);
    border: 1px solid #333333;
    border-radius: 0;
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.45),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04),
        0 4px 0 rgba(0, 0, 0, 0.55);
}

.mi-skeleton-title {
    background: rgba(229, 226, 225, 0.12);
}

.mi-skeleton-h1 {
    color: #e5e2e1;
}

/*
 * Crawlable SSR H1 / intro / top-sound links stay in HTML for bots, but must
 * never paint. Placed AFTER .mi-skeleton-h1 (+ arcade) so width/margin/color
 * cannot un-hide the SEO chrome (cascade bug → visible blue link list).
 */
.mi-skeleton-h1.mi-skeleton-h1--seo,
.mi-skeleton-h1.mi-skeleton-h1--sound.sound-page-title--seo,
.sound-page-title.sound-page-title--seo,
.mi-ssr-intro,
.mi-ssr-sound-links {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    max-width: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    background: transparent !important;
    color: transparent !important;
    font-size: 1px !important;
    line-height: 0 !important;
    pointer-events: none;
}

/* Feed LCP pad stays a real <img> for CWV, but mute the glossy grey→color pop. */
.mi-skeleton-feed .mi-lcp-pad {
    background-color: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.mi-skeleton-feed .mi-lcp-pad__img {
    filter: grayscale(1) contrast(0.55) brightness(0.75);
    opacity: 0.45;
}

/* FEED_CRITICAL_END */

/* FOOTER_CRITICAL_START */
.mi-skeleton-footer-wrap {
    flex-shrink: 0;
    margin-top: 0;
}

.mi-skeleton-footer {
    padding: 10px 12px;
    background-color: var(--arcade-surface, #1e1e1e);
    border-top: 1px solid var(--arcade-surface-border, #333333);
    box-sizing: border-box;
}

.mi-skeleton-footer-promos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 12px 8px 16px;
    box-sizing: border-box;
}

.mi-skeleton-footer-promo-card {
    min-height: 148px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.mi-skeleton-footer-promo-card--explain {
    min-height: 360px;
}

.mi-skeleton-footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 0;
}

.mi-skeleton-footer-link {
    width: 42%;
    max-width: 220px;
    height: 14px;
    border-radius: 3px;
    background: rgba(172, 135, 143, 0.35);
}

.mi-skeleton-footer-link--short {
    width: 55%;
    max-width: 280px;
    height: 16px;
    margin-top: 8px;
}

@media (min-width: 720px) {
    .mi-skeleton-footer-promos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 800px;
    }
}
/* FOOTER_CRITICAL_END */

.mi-skeleton-main--unavailable {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: calc(100vh - var(--header-height));
    padding: calc(var(--header-height) + 16px) var(--margin-mobile) 32px;
    box-sizing: border-box;
}

.mi-sound-unavailable-page {
    width: min(100%, 36rem);
    margin: 0 auto;
}

.mi-sound-unavailable-card {
    padding: 1.25rem 1.5rem;
    border-radius: var(--arcade-radius-sm);
    background: var(--arcade-surface);
    border: 1px solid var(--arcade-surface-border);
    text-align: center;
}

.mi-sound-unavailable-card__title {
    margin: 0 0 0.5rem;
    font-family: var(--arcade-font-display);
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.35;
    color: var(--arcade-on-surface);
}

.mi-sound-unavailable-message {
    margin: 0 0 1.25rem;
    color: var(--soft-outline);
    font-size: 1rem;
    line-height: 1.5;
}

.mi-sound-unavailable-cta {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--arcade-radius-sm);
    background: var(--arcade-primary-strong);
    color: #fff;
    font-family: var(--arcade-font-body);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
    text-decoration: none;
    border: 1px solid color-mix(in srgb, var(--arcade-primary-strong) 70%, #fff);
    box-shadow: 0 2px 0 color-mix(in srgb, var(--arcade-primary-strong) 45%, #000);
}

.mi-sound-unavailable-cta:hover,
.mi-sound-unavailable-cta:focus-visible {
    filter: brightness(1.08);
}

.mi-static-app-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: var(--header-height);
    padding: 0 8px 0 4px;
    box-sizing: border-box;
    background-color: var(--arcade-surface);
    border-bottom: 1px solid var(--arcade-surface-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.mi-static-app-header-logo {
    display: flex;
    align-items: center;
    gap: var(--mi-brand-wordmark-gap, 7px);
    min-width: 0;
    margin-inline-start: 12px;
    color: inherit;
    text-decoration: none;
}

.mi-static-app-header-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    object-fit: cover;
    border: var(--mi-brand-logo-border, 1px solid rgba(255, 255, 255, 0.9));
    border-radius: 8px;
    box-sizing: border-box;
}

.mi-static-app-header-wordmark {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 40px;
    font-family: var(--mi-brand-wordmark-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif);
    font-weight: var(--mi-brand-wordmark-weight, 700);
    font-style: normal;
    font-size: var(--mi-brand-wordmark-size, 12px);
    line-height: 1;
    letter-spacing: var(--mi-brand-wordmark-letter-spacing, -1.5px);
    color: #fff;
    text-transform: uppercase;
}

.mi-static-app-header-wordmark-line {
    display: block;
    line-height: 1;
    white-space: nowrap;
    transform: scaleX(var(--mi-brand-wordmark-scale-x, 1.8));
    transform-origin: left center;
}

.mi-static-app-header-wordmark--ru {
    font-size: var(--mi-brand-wordmark-ru-size, 12px);
    letter-spacing: var(--mi-brand-wordmark-ru-letter-spacing, -0.06em);
    line-height: 1;
}

.mi-static-app-header-wordmark--ru .mi-static-app-header-wordmark-line {
    transform: scaleX(var(--mi-brand-wordmark-ru-scale-x, 1.35));
}

@media (max-width: 499px) {
    .mi-static-app-header-wordmark {
        display: none;
    }
}

.mi-sound-unavailable-get-app {
    flex-shrink: 0;
    margin-inline-end: 12px;
    padding: 8px 16px;
    border-radius: var(--arcade-radius-sm);
    background: var(--arcade-primary-strong);
    color: #fff;
    font-family: var(--arcade-font-body);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid color-mix(in srgb, var(--arcade-primary-strong) 70%, #fff);
    box-shadow: 0 2px 0 color-mix(in srgb, var(--arcade-primary-strong) 45%, #000);
}

.mi-sound-unavailable-get-app:hover,
.mi-sound-unavailable-get-app:focus-visible {
    filter: brightness(1.08);
}

@media (min-width: 768px) {
    .mi-skeleton-main--unavailable {
        padding-left: var(--margin-desktop);
        padding-right: var(--margin-desktop);
    }
}

/* SOUND_CRITICAL_START */
.mi-skeleton-sound-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: var(--mi-feed-cell-width);
    max-width: var(--mi-feed-cell-width);
    margin-top: 0;
}

.mi-skeleton-sound-cell {
    width: 100%;
}

/* Match live detail .button-bottom min-height so skeleton→MemeButton does not CLS. */
.mi-skeleton-sound-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    min-height: var(--label-zone-min-height, 64px);
    padding: var(--mi-feed-label-bottom-pad-top, 7px) var(--mi-feed-label-padding-x, 10px) 8px;
    box-sizing: border-box;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: none;
}

.mi-skeleton-sound-label .mi-skeleton-label-line {
    width: 78%;
    max-width: 100%;
}

.mi-skeleton-sound-label .mi-skeleton-label-line--short {
    width: 42%;
}

.mi-skeleton-action-bar {
    width: 100%;
    padding: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    box-sizing: border-box;
}

.mi-skeleton-meta {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    border-bottom-left-radius: var(--arcade-radius-lg, 10px);
    border-bottom-right-radius: var(--arcade-radius-lg, 10px);
    overflow: hidden;
}

.mi-skeleton-action-bar--feed {
    padding: 4px 5px 6px;
    border: none;
    border-radius: 0;
}

.mi-skeleton-action-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
}

.mi-skeleton-action-bar--feed .mi-skeleton-action-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mi-skeleton-action-bar--with-report .mi-skeleton-action-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mi-skeleton-action-icon {
    width: 100%;
    max-width: none;
    min-width: 0;
    aspect-ratio: 1;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
}

.mi-skeleton-action-icon {
    background: rgba(229, 226, 225, 0.1);
    border: 1px solid #333333;
    border-radius: 0.5rem;
}

.mi-skeleton-app-promo {
    width: 100%;
    max-width: 300px;
    min-height: var(--mi-sound-app-promo-min-height);
    margin: 30px auto 0;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mi-skeleton-app-promo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.mi-skeleton-app-promo-title {
    width: 70%;
    max-width: 200px;
    height: 18px;
    margin: 0 auto 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
}

.mi-skeleton-app-promo-subtitle {
    width: 85%;
    max-width: 240px;
    height: 14px;
    margin: 0 auto 16px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
}

.mi-skeleton-app-promo-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.mi-skeleton-app-promo-button {
    width: 100%;
    max-width: 200px;
    height: 67px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.mi-skeleton-related {
    width: 100%;
    max-width: 1000px;
    min-height: var(--mi-sound-related-min-height);
    margin: 48px auto 0;
    padding: 0 var(--margin-mobile);
    box-sizing: border-box;
}

.mi-skeleton-related-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.mi-skeleton-related-title {
    width: 60%;
    max-width: 280px;
    height: 26px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
}

.mi-skeleton-related-subtitle {
    width: 75%;
    max-width: 320px;
    height: 16px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
}

.sound-page-app-promo {
    width: 100%;
    display: flex;
    justify-content: center;
    min-height: var(--mi-sound-app-promo-min-height);
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .mi-skeleton-related {
        padding: 0 var(--margin-desktop);
    }
}

/* Comparison SSR reserves — mirror live demo/CTA/locale blocks (overlay handoff CLS) */
.comparison-ssr-reserve {
    visibility: hidden;
    pointer-events: none;
}

.demo-sound-buttons--reserve {
    min-height: 280px;
}

.comparison-ssr-reserve-label {
    height: 14px;
    margin: 0 0 0.75rem;
}

.comparison-ssr-reserve-grid {
    min-height: 190px;
}

.comparison-ssr-reserve-pad {
    aspect-ratio: 200 / 190;
    max-width: 200px;
    width: 100%;
    justify-self: center;
}

.comparison-cta-block--reserve {
    min-height: 148px;
}

.comparison-locale-switcher--reserve {
    min-height: 88px;
}
/* SOUND_CRITICAL_END */
