/* ==========================================================================
   MovieFlix — design tokens, reset and layout primitives
   Loaded first: everything else builds on these variables.
   ========================================================================== */

:root {
    /* Surfaces (dark-first) */
    --mf-bg: #08080c;
    --mf-surface: #101018;
    --mf-surface-2: #171722;
    --mf-border: rgba(255, 255, 255, .08);

    /* Text */
    --mf-text: #f2f2f7;
    --mf-text-muted: #9a9aae;

    /* Brand */
    --mf-accent: #e11d48;
    --mf-accent-2: #f59e0b;

    /* Shape */
    --mf-radius: 14px;
    --mf-radius-lg: 22px;

    /* Elevation */
    --mf-shadow: 0 10px 30px rgba(0, 0, 0, .45);
    --mf-shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);

    /* Motion */
    --mf-ease: cubic-bezier(.22, .61, .36, 1);
    --mf-fast: .18s;
    --mf-base: .32s;

    /* Rhythm — locked to a mobile-app width on purpose (see .mf-app-frame):
       this is a phone UI, not a responsive website that reflows to desktop. */
    --mf-gap: 14px;
    --mf-container: 460px;
    --mf-navbar-h: 62px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: #000;
    color: var(--mf-text);
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   App frame — the whole app renders as a fixed-width mobile view at every
   screen size, centered with letterboxing on anything wider than a phone.
   -------------------------------------------------------------------------- */

.mf-app-frame {
    max-width: var(--mf-container);
    margin-inline: auto;
    min-height: 100vh;
    background: var(--mf-bg);
    position: relative;
    box-shadow: 0 0 80px rgba(0, 0, 0, .6);
}

h1, h2, h3 {
    font-family: 'Montserrat', system-ui, sans-serif;
    line-height: 1.2;
    margin: 0 0 .5em;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* Visible, consistent keyboard focus — required for accessibility. */
:focus-visible {
    outline: 2px solid var(--mf-accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.mf-container {
    width: 100%;
    padding-inline: 16px;
}

/* --------------------------------------------------------------------------
   Page progress bar — shown by page-progress.js during full navigations.
   -------------------------------------------------------------------------- */

.mf-page-progress {
    position: fixed;
    top: 0; left: 50%;
    max-width: var(--mf-container);
    transform: translateX(-50%);
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--mf-accent), var(--mf-accent-2));
    z-index: 999;
    opacity: 0;
    transition: width .3s ease, opacity .2s ease;
}

/* --------------------------------------------------------------------------
   Scroll reveal — replaces the AOS library (it was loaded but never used):
   same visual idea, zero extra network weight since it's plain CSS + the
   IntersectionObserver already used for infinite scroll.
   -------------------------------------------------------------------------- */

@keyframes mf-fade-in-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mf-hero-banner__content,
.mf-auth__card {
    animation: mf-fade-in-up .6s var(--mf-ease) both;
}

.mf-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s var(--mf-ease), transform .6s var(--mf-ease);
}

.mf-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Navbar — transparent over the hero, frosted once the page scrolls.
   -------------------------------------------------------------------------- */

.mf-navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--mf-navbar-h);
    display: flex;
    align-items: center;
    transition: background var(--mf-base) var(--mf-ease),
                border-color var(--mf-base) var(--mf-ease),
                backdrop-filter var(--mf-base) var(--mf-ease);
    border-bottom: 1px solid transparent;
}

.mf-navbar.is-scrolled {
    background: rgba(10, 10, 16, .72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom-color: var(--mf-border);
}

.mf-navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.mf-brand { display: flex; align-items: center; gap: 10px; }

.mf-brand__mark {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--mf-accent), var(--mf-accent-2));
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: #fff;
}

.mf-brand__text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: -.3px;
    font-size: 19px;
}

.mf-brand__text span { color: var(--mf-accent); }

/* Right-hand icon cluster: language toggle, plus the bell once authenticated. */
.mf-navbar__icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --------------------------------------------------------------------------
   Search box — lives inside the search overlay (see below).
   -------------------------------------------------------------------------- */

.mf-search {
    position: relative;
    max-width: 640px;
    margin-inline: auto;
}

.mf-search__icon {
    position: absolute;
    left: 22px; top: 50%;
    transform: translateY(-50%);
    color: var(--mf-text-muted);
    pointer-events: none;
}

.mf-search__input {
    width: 100%;
    padding: 15px 46px 15px 48px;
    border-radius: 999px;
    border: 1px solid var(--mf-border);
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--mf-text);
    font-family: inherit;
    font-size: 15px;
    transition: border-color var(--mf-base) var(--mf-ease),
                box-shadow var(--mf-base) var(--mf-ease),
                background var(--mf-base) var(--mf-ease);
}

.mf-search__input::placeholder { color: var(--mf-text-muted); }

.mf-search__input:focus {
    outline: none;
    border-color: rgba(225, 29, 72, .6);
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 0 0 5px rgba(225, 29, 72, .13);
}

/* The browser's own built-in clear button on type="search" inputs sat right
   next to our custom .mf-search-overlay__close button — two "X" controls
   side by side that did almost the same thing. Suppressed in favor of the
   one custom button, which also closes the whole overlay, not just the text. */
.mf-search__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

/* --------------------------------------------------------------------------
   Year dropdown — used inside the .mf-pills row (see below).
   -------------------------------------------------------------------------- */

.mf-dropdown { position: relative; }

.mf-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--mf-border);
    background: rgba(255, 255, 255, .05);
    color: var(--mf-text);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: border-color var(--mf-fast) var(--mf-ease),
                background var(--mf-fast) var(--mf-ease);
}

.mf-dropdown__trigger:hover,
.mf-dropdown.is-open .mf-dropdown__trigger {
    border-color: rgba(225, 29, 72, .55);
    background: rgba(255, 255, 255, .08);
}

.mf-dropdown__trigger i:first-child { color: var(--mf-text-muted); font-size: 12px; }

.mf-dropdown__chevron {
    font-size: 10px;
    color: var(--mf-text-muted);
    transition: transform var(--mf-fast) var(--mf-ease);
}

.mf-dropdown.is-open .mf-dropdown__chevron { transform: rotate(180deg); }

.mf-dropdown__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    min-width: 170px;
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
    padding: 6px;
    background: var(--mf-surface);
    border: 1px solid var(--mf-border);
    border-radius: var(--mf-radius);
    box-shadow: var(--mf-shadow-lg);
    /* Above .mf-bottom-nav (z-index: 60) — on a short viewport the year
       list's max-height can reach down into the bottom nav's screen area,
       and options must never render behind it. */
    z-index: 65;
    opacity: 0;
    transform: translateX(-50%) translateY(-6px) scale(.97);
    animation: mf-dropdown-in .16s var(--mf-ease) forwards;
}

.mf-dropdown__panel--scroll { max-height: 280px; }

@keyframes mf-dropdown-in {
    to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.mf-dropdown__option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    border: none;
    background: none;
    border-radius: 8px;
    color: var(--mf-text);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: background var(--mf-fast) var(--mf-ease), color var(--mf-fast) var(--mf-ease);
}

.mf-dropdown__option:hover { background: rgba(255, 255, 255, .07); }

.mf-dropdown__option.is-active {
    background: rgba(225, 29, 72, .15);
    color: var(--mf-accent);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Notification bell
   -------------------------------------------------------------------------- */

.mf-navbar__bell {
    position: relative;
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border: none;
    background: rgba(255, 255, 255, .06);
    border-radius: 50%;
    color: var(--mf-text);
    cursor: pointer;
    transition: background var(--mf-fast) var(--mf-ease);
}

.mf-navbar__bell:hover { background: rgba(255, 255, 255, .12); }
.mf-navbar__bell i { font-size: 15px; }

.mf-navbar__lang {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: var(--mf-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2px;
    text-decoration: none;
    transition: background var(--mf-fast) var(--mf-ease);
}

.mf-navbar__lang:hover { background: rgba(255, 255, 255, .12); }

.mf-navbar__bell-badge {
    position: absolute;
    top: -3px; right: -3px;
    min-width: 17px;
    height: 17px;
    padding: 0 3px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--mf-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border: 2px solid var(--mf-bg);
}

/* The [hidden] attribute and this rule's own `display: grid` are the same
   specificity — without this, the badge never actually disappears when JS
   (or Blade, on a fresh page load with 0 unread) sets `hidden`, because
   this class's display wins the tie by coming later in the cascade. */
.mf-navbar__bell-badge[hidden] {
    display: none;
}

.mf-notif__panel {
    left: auto;
    right: 0;
    transform: translateY(-6px) scale(.97);
    transform-origin: top right;
    width: 300px;
    max-height: 360px;
    padding: 8px;
}

@keyframes mf-dropdown-in-right {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.mf-notif__panel { animation-name: mf-dropdown-in-right; }

.mf-notif__heading {
    padding: 8px 10px 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--mf-text-muted);
    text-transform: uppercase;
    letter-spacing: .4px;
}

.mf-notif__item {
    position: relative;
    padding: 10px 10px 10px 20px;
    border-radius: 8px;
}

.mf-notif__item + .mf-notif__item { margin-top: 2px; }

.mf-notif__item.is-unread::before {
    content: '';
    position: absolute;
    left: 8px; top: 16px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--mf-accent);
}

.mf-notif__message { font-size: 13px; line-height: 1.4; margin: 0 0 4px; }

.mf-notif__time { font-size: 11px; color: var(--mf-text-muted); }

.mf-notif__empty {
    padding: 24px 10px;
    text-align: center;
    font-size: 13px;
    color: var(--mf-text-muted);
}

.mf-search__spinner {
    position: absolute;
    right: 22px; top: 50%;
    width: 18px; height: 18px;
    margin-top: -9px;
    border: 2px solid rgba(255, 255, 255, .18);
    border-top-color: var(--mf-accent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--mf-fast) var(--mf-ease);
}

.mf-search.is-loading .mf-search__spinner {
    opacity: 1;
    animation: mf-spin .7s linear infinite;
}

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

/* --------------------------------------------------------------------------
   Results grid
   -------------------------------------------------------------------------- */

.mf-results { padding-bottom: 80px; }

/* Pages without a hero above them (e.g. favorites) need their own top gap. */
.mf-results--page { padding-top: 48px; }

.mf-results__head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 22px;
}

/* Without this, the element's own `display: flex` above ties with the
   [hidden] attribute's specificity and wins, so it never actually
   disappears when JS/Blade sets `hidden`. */
.mf-results__head[hidden] { display: none; }

.mf-results__title { font-size: 20px; margin: 0; }

.mf-results__count {
    font-size: 13px;
    color: var(--mf-text-muted);
}

.mf-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--mf-gap);
}

.mf-grid[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Infinite scroll sentinel
   -------------------------------------------------------------------------- */

.mf-sentinel {
    display: flex;
    justify-content: center;
    padding-top: 36px;
    min-height: 1px;
}

.mf-sentinel[hidden] { display: none; }

.mf-sentinel__spinner {
    width: 26px; height: 26px;
    border: 3px solid rgba(255, 255, 255, .18);
    border-top-color: var(--mf-accent);
    border-radius: 50%;
    animation: mf-spin .7s linear infinite;
}

/* --------------------------------------------------------------------------
   Auth — login / register
   -------------------------------------------------------------------------- */

.mf-auth {
    position: relative;
    min-height: calc(100vh - var(--mf-navbar-h));
    display: flex;
    align-items: center;
    padding: 48px 0;
    overflow: hidden;
}

.mf-auth__glow {
    position: absolute;
    inset: -30% 30% auto;
    height: 460px;
    background: radial-gradient(closest-side, rgba(225, 29, 72, .25), transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}

.mf-auth__inner { position: relative; display: flex; justify-content: center; }

.mf-auth__card {
    width: 100%;
    max-width: 420px;
    background: var(--mf-surface);
    border: 1px solid var(--mf-border);
    border-radius: var(--mf-radius-lg);
    box-shadow: var(--mf-shadow-lg);
    padding: 30px 22px;
}

.mf-auth__title { font-size: 26px; margin-bottom: 6px; }
.mf-auth__subtitle { color: var(--mf-text-muted); margin-bottom: 28px; }

.mf-form-group { margin-bottom: 18px; }

.mf-form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--mf-text-muted);
}

.mf-form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--mf-radius);
    border: 1px solid var(--mf-border);
    background: rgba(255, 255, 255, .05);
    color: var(--mf-text);
    font-family: inherit;
    font-size: 14px;
    transition: border-color var(--mf-fast) var(--mf-ease), box-shadow var(--mf-fast) var(--mf-ease);
}

.mf-form-input:focus {
    outline: none;
    border-color: rgba(225, 29, 72, .6);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, .13);
}

.mf-form-input.is-invalid { border-color: #f87171; }

.mf-input-group { position: relative; }

.mf-input-group .mf-form-input { padding-right: 46px; }

/* Edge/IE inject their own built-in reveal-password "eye" (and a clear
   "x") inside every type="password" field once it has text — sitting
   right on top of our own custom .mf-input-toggle button. Suppressed so
   only the one custom icon shows. */
.mf-form-input[type="password"]::-ms-reveal,
.mf-form-input[type="password"]::-ms-clear {
    display: none;
}

.mf-input-toggle {
    position: absolute;
    top: 50%; right: 6px;
    transform: translateY(-50%);
    width: 32px; height: 32px;
    display: grid;
    place-items: center;
    border: none;
    background: none;
    border-radius: 50%;
    color: var(--mf-text-muted);
    cursor: pointer;
    transition: color var(--mf-fast) var(--mf-ease), background var(--mf-fast) var(--mf-ease);
}

.mf-input-toggle:hover { color: var(--mf-text); background: rgba(255, 255, 255, .06); }

.mf-form-error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #f87171;
}

.mf-form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 13px;
    color: var(--mf-text-muted);
}

.mf-auth__submit { width: 100%; justify-content: center; }

.mf-auth__switch {
    text-align: center;
    margin: 22px 0 0;
    font-size: 13px;
    color: var(--mf-text-muted);
}

.mf-auth__switch a { color: var(--mf-accent); font-weight: 600; }

.mf-auth--page { min-height: auto; padding: 32px 0 80px; }

.mf-auth__subtitle--tight { font-size: 13px; margin: -6px 0 18px; }

.mf-form-status {
    padding: 10px 14px;
    margin-bottom: 20px;
    border-radius: var(--mf-radius);
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .35);
    color: #4ade80;
    font-size: 13px;
}

.mf-form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--mf-text-muted);
}

.mf-auth__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--mf-border);
}

.mf-auth__links .mf-auth__switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--mf-text);
    font-weight: 500;
}

.mf-auth__logout {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: #f87171;
}

/* --------------------------------------------------------------------------
   Filter pills — persistent type/year chips above the hero banner.
   -------------------------------------------------------------------------- */

.mf-pills {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 18px 16px 6px;
    -webkit-overflow-scrolling: touch;
}

.mf-pills::-webkit-scrollbar { display: none; }

.mf-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--mf-border);
    background: rgba(255, 255, 255, .07);
    color: var(--mf-text-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--mf-fast) var(--mf-ease),
                color var(--mf-fast) var(--mf-ease),
                border-color var(--mf-fast) var(--mf-ease);
}

.mf-pill:hover { color: var(--mf-text); }

.mf-pill.is-active,
.mf-pills .mf-dropdown.is-open .mf-pill {
    background: var(--mf-text);
    color: #08080c;
    border-color: var(--mf-text);
}

.mf-pill.is-active .mf-dropdown__chevron,
.mf-pills .mf-dropdown.is-open .mf-dropdown__chevron { color: inherit; }

/* --------------------------------------------------------------------------
   Search overlay — hidden by default; opened by the bottom nav "Search"
   link (#search) via JS, or by plain CSS :target if JS never loads.
   -------------------------------------------------------------------------- */

.mf-search-overlay {
    padding: 8px 0 22px;
    animation: mf-fade-in-up .25s var(--mf-ease) both;
}

#search.mf-search-overlay:target { display: block !important; }

.mf-search-overlay__inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mf-search-overlay__inner .mf-search { flex: 1; max-width: none; margin: 0; }

.mf-search-overlay__close {
    flex-shrink: 0;
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--mf-text-muted);
    transition: background var(--mf-fast) var(--mf-ease), color var(--mf-fast) var(--mf-ease);
}

.mf-search-overlay__close:hover { background: rgba(255, 255, 255, .08); color: var(--mf-text); }

/* --------------------------------------------------------------------------
   Hero banner — featured title, Netflix-style full-bleed poster with a
   bottom scrim so the title/genres/actions stay readable over any image.
   -------------------------------------------------------------------------- */

.mf-hero-banner {
    position: relative;
    /* Edge-to-edge, square corners: the app is a fixed-width mobile frame
       at every screen size, so the hero always spans it fully. */
    width: 100%;
    margin: 4px 0 24px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    max-height: 78vh;
    background-size: cover;
    background-position: center 20%;
}

.mf-hero-banner__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 8, 12, .96) 0%, rgba(8, 8, 12, .55) 40%, transparent 70%);
}

.mf-hero-banner__content {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 24px;
}

.mf-hero-banner__title {
    /* A fixed px size, not vw-based: vw tracks the real browser window, not
       the ~460px .mf-app-frame this renders inside, so it needs a value
       that already assumes a narrow frame rather than scaling with it. */
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.4px;
    text-transform: uppercase;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mf-hero-banner__genres {
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    margin: 0 0 20px;
}

.mf-hero-banner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mf-hero-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 0;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: filter var(--mf-fast) var(--mf-ease), transform var(--mf-fast) var(--mf-ease);
}

.mf-hero-banner__btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

.mf-hero-banner__btn--play { background: #fff; color: #08080c; }

.mf-hero-banner__btn--fav {
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
}

.mf-hero-banner__btn--fav.is-active { background: rgba(225, 29, 72, .85); }

/* --------------------------------------------------------------------------
   Curated collections — Netflix-style horizontal rows on the homepage.
   -------------------------------------------------------------------------- */

.mf-collections { padding-bottom: 24px; }

.mf-row + .mf-row { margin-top: 40px; }

.mf-row__title {
    font-size: 19px;
    margin-bottom: 16px;
}

.mf-row__track {
    display: flex;
    gap: var(--mf-gap);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 2px 2px 12px;
    /* Scrollbar stays visible but unobtrusive instead of forcing native chrome. */
    scrollbar-width: thin;
}

.mf-row__item {
    flex: 0 0 130px;
    scroll-snap-align: start;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.mf-footer {
    border-top: 1px solid var(--mf-border);
    padding: 32px 0;
    background: var(--mf-surface);
}

.mf-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

/* Sits above the fixed bottom nav instead of being hidden behind it. */
body.has-bottom-nav .mf-footer { margin-bottom: 58px; }

.mf-footer__brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    margin: 0;
}

.mf-footer__brand span { color: var(--mf-accent); }

.mf-footer__note { color: var(--mf-text-muted); font-size: 13px; margin: 0; }

.mf-footer__note a { color: var(--mf-text); text-decoration: underline; }

/* Respect users who ask the OS to reduce motion. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}
