.mobile-only { display: none; }

@media (max-width: 767px) {
    .mobile-only { display: block; }
    .desktop-only { display: none !important; }


    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 767px) {
    .nav {
        min-height: 60px;
        padding-block: 0.6rem;
    }
}


@media (max-width: 767px) {
    .hero {
        min-height: 78dvh;
    }

    .hero-video {
        opacity: 0.55;
        webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9) 0%, rgba(0,0,0,.35) 70%, transparent 100%);
        mask-image: linear-gradient(to bottom, rgba(0,0,0,.9) 0%, rgba(0,0,0,.35) 70%, transparent 100%);
    }
}


#mobileTimeline { display: none; }

@media (max-width: 767px) {
    #reel, .vault { display: none; }

    #mobileTimeline {
        display: block;
        padding: 8px 16px 32px;
        max-width: 100%;
    }

    .mt-head {
        padding: 24px 0 16px;
    }

    .mt-head .eyebrow {
        color: var(--gold);
        font-size: 11px;
        letter-spacing: 0.18em;
        text-transform: uppercase;
    }

    .mt-head h2 {
        font-size: clamp(28px, 8vw, 36px);
        margin: 4px 0 2px;
    }

    .mt-head .sub {
        color: var(--cream-dim);
        font-size: 13px;
    }

    .mt-year-block {
        margin-top: 28px;
        opacity: 0;
        transform: translateY(18px);
        transition: opacity .5s ease, transform .5s ease;
    }

    .mt-year-block.in-view {
        opacity: 1;
        transform: translateY(0);
    }

    .mt-year-label {
        display: flex;
        align-items: baseline;
        gap: 10px;
        margin-bottom: 12px;
        position: sticky;
        top: 64px;
        z-index: 2;
        padding: 6px 0;
        background: linear-gradient(180deg, var(--void) 65%, transparent);
    }

    .mt-year-label .yr {
        font-family: 'Bebas Neue', sans-serif;
        font-size: clamp(38px, 13vw, 56px);
        letter-spacing: 0.03em;
        line-height: 1;
        background: linear-gradient(180deg, var(--cream), var(--gold-dim));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .mt-year-label .yr-count {
        color: var(--cream-dim);
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .mt-row {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 6px;
        margin: 0 -16px;
        padding-inline: 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .mt-row::-webkit-scrollbar { display: none; }

    .mt-card {
        flex: 0 0 auto;
        width: 44vw;
        max-width: 200px;
        scroll-snap-align: start;
        cursor: pointer;
    }

    .mt-card .mt-poster {
        position: relative;
        width: 100%;
        aspect-ratio: 2 / 3;
        border-radius: 10px;
        background-size: cover;
        background-position: center;
        background-color: var(--card);
        border: 1px solid var(--line);
        box-shadow: 0 10px 24px -12px rgba(0,0,0,.65);
        overflow: hidden;
    }

    .mt-card .mt-rating {
        position: absolute;
        right: 8px;
        bottom: 8px;
        padding: 3px 7px;
        border-radius: 6px;
        font-size: 11px;
        font-weight: 700;
        background: rgba(8,6,10,.72);
        backdrop-filter: blur(4px);
        color: var(--gold);
    }

    .mt-card .mt-rank {
        position: absolute;
        left: 8px;
        top: 8px;
        font-family: 'Bebas Neue', sans-serif;
        font-size: 13px;
        color: var(--cream-dim);
        opacity: .85;
    }

    .mt-card .mt-title {
        margin-top: 8px;
        font-size: 13.5px;
        font-weight: 600;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .mt-card .mt-meta {
        margin-top: 2px;
        font-size: 11.5px;
        color: var(--cream-dim);
    }

    .mt-card:active .mt-poster {
        transform: scale(0.97);
    }

    .mt-card .mt-poster {
        transition: transform .15s ease;
    }

    .mt-empty {
        color: var(--cream-dim);
        padding: 24px 0;
        font-size: 14px;
    }
}


@media (max-width: 767px) {
    .card {
        min-height: 44px;
    }


    .card {
        transform: none !important;
    }
}

@media (hover: none) {
    .card:hover, .mt-card:hover {
        transform: none;
    }
}


@media (max-width: 767px) {
    .details-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .details-overlay .details-modal {
        width: 100%;
        max-width: 100%;
        max-height: 88dvh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        transition: transform .35s cubic-bezier(.32,.72,0,1);
        margin: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .details-overlay.open .details-modal {
        transform: translateY(0);
    }


    .details-modal::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        border-radius: 2px;
        background: var(--line);
        margin: 10px auto 4px;
        position: relative;
        z-index: 3;
    }

    .movie-modal-content {
        display: block;
        position: relative;
    }

    .movie-modal-left {
        width: 100%;
        /* was getting capped to 160-180px by the desktop/tablet poster
           breakpoints in style.css (max-width:359px / 360-480 / 481-768)
           since those rules load first and this file only overrode
           aspect-ratio/width, not max-width — the property that was
           actually clamping it. Reset explicitly here so the cinematic
           backdrop is truly full-bleed on mobile. */
        max-width: none;
        margin: 0;
    }

    .details-poster {
        /* Was `aspect-ratio: 4 / 3` — a landscape-ish box mismatched with
           real movie posters (~2:3 portrait). Combined with `background-size:
           cover` leaking in from the desktop rule (never overridden here),
           that forced an aggressive crop that cut off the top/bottom of
           every poster. Fixed by matching the box to actual poster
           proportions and switching to `contain` so the full image is
           always visible; `background-color` fills any leftover letterbox
           strip with the same tone the fade gradient below already ends
           on, so it reads as intentional, not as empty space. */
        aspect-ratio: 2 / 3;
        max-height: 46vh;
        background-size: contain;
        background-repeat: no-repeat;
        background-color: #1a1014;
        border-radius: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        position: relative;
    }

    /* Cinematic fade from the backdrop into the sheet's own background,
       so the poster reads as a "backdrop" rather than a cropped photo
       with a hard edge — same visual language as .hero-overlay. */
    .movie-modal-left {
        position: relative;
    }

    .movie-modal-left::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 60%;
        background: linear-gradient(180deg, transparent 0%, rgba(26, 16, 20, 0.55) 55%, #1a1014 100%);
        pointer-events: none;
    }

    .movie-modal-right {
        padding: 14px 18px calc(24px + env(safe-area-inset-bottom));
        margin-top: -28px;
        position: relative;
        z-index: 2;
    }

    .details-title {
        font-size: clamp(24px, 7vw, 30px);
    }

    /* The desktop favorite heart is absolutely positioned top-right of
       .movie-modal-right; on mobile it now lives inside .mma-btn actions
       instead, so hide the standalone one to avoid a duplicate control. */
    .movie-modal-right > .favorite-heart-btn {
        display: none;
    }

    /* "Back" pill over the backdrop, replacing the plain desktop ✕. */
    .details-overlay .modal-close {
        top: calc(14px + env(safe-area-inset-top));
        left: 14px !important;
        right: auto;
        width: 40px;
        height: 40px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(12, 10, 16, 0.55);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(243, 237, 226, 0.14);
        font-size: 18px;
        z-index: 4;
    }
}

/* ---------- Movie Details: action row (Favorite / Watched / Comments) --- */
@media (max-width: 767px) {
    .movie-modal-actions {
        display: flex;
        gap: 8px;
        margin: 4px 0 2px;
    }

    .mma-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 44px;
        padding: 0 10px;
        border-radius: 10px;
        border: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.03);
        color: var(--cream-dim);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        transition: transform .15s, border-color .2s, color .2s, background .2s;
    }

    .mma-btn:active {
        transform: scale(0.96);
    }

    .mma-btn svg {
        flex-shrink: 0;
        width: 15px;
        height: 15px;
    }

    .mma-watched.is-watched {
        border-color: var(--gold);
        color: var(--gold);
        background: rgba(212, 175, 55, 0.1);
    }

    .mma-comments {
        opacity: 0.85;
    }
}

/* ---------- Comments entry point: bottom sheet (desktop: centered modal) ------ */
.comments-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(8, 6, 10, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.comments-sheet-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.comments-sheet {
    width: 100%;
    max-width: 520px;
    background: linear-gradient(160deg, var(--curtain), #150d11);
    border: 1px solid var(--border);
    border-radius: 20px 20px 0 0;
    padding: 10px 24px calc(36px + env(safe-area-inset-bottom));
    position: relative;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(.32, .72, 0, 1);
    text-align: center;
}

.comments-sheet-overlay.open .comments-sheet {
    transform: translateY(0);
}

.comments-sheet-handle {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--line);
    margin: 10px auto 18px;
}

/* Block 5 — real comment content replaces the old "Coming soon" placeholder.
   text-align reset to left here on purpose: .comments-sheet (the shared
   base this sheet AND the Add-to-Collection sheet both use) sets
   text-align:center for that other sheet's centered rows; comment threads
   read left-aligned, like every chat/comment UI. */
.comments-sheet-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px 2px 4px;
    color: var(--cream-dim);
    text-align: left;
}

.comments-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 6px;
}

.comments-header h3 {
    margin: 0;
    color: var(--cream);
    font-size: clamp(17px, 4vw, 20px);
}

.comments-count-badge {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 14px;
}

/* Mirrors .add-to-collection-list's own scroll pattern exactly (same
   parent .comments-sheet, which isn't itself scrollable) — proven safe
   for this shared sheet shell already. */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 46vh;
    overflow-y: auto;
    padding: 4px 2px;
}

.comments-empty-state {
    color: var(--cream-dim);
    font-size: 0.85rem;
    text-align: center;
    padding: 20px 10px;
}

.comments-empty-state-small {
    padding: 8px 4px;
    font-size: 0.78rem;
}

.comment-item {
    display: flex;
    gap: 10px;
    padding: 10px 6px;
    border-radius: 10px;
}

.comment-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.comment-item-reply {
    margin-left: 34px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.comment-avatar {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.06);
}

.comment-item-reply .comment-avatar {
    width: 26px;
    height: 26px;
}

.comment-avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-weight: 700;
    font-size: 13px;
}

.comment-body {
    flex: 1 1 auto;
    min-width: 0;
}

.comment-meta-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.comment-author-name {
    color: var(--cream);
    font-weight: 700;
    font-size: 0.85rem;
}

.comment-timestamp {
    color: var(--cream-dim);
    font-size: 0.72rem;
}

.comment-edited-tag {
    font-style: italic;
}

.comment-text {
    color: var(--cream);
    font-size: 0.88rem;
    line-height: 1.4;
    margin-top: 2px;
    word-break: break-word;
    white-space: pre-wrap;
}

.comment-text-deleted {
    color: var(--cream-dim);
    font-style: italic;
}

/* Block 7 — the 6-emoji reaction bar. Touch targets sized well above the
   ~24px danger zone (min 36px tall including padding) for mobile touch
   UX; chips wrap onto a second row instead of overflowing horizontally
   on narrow screens since there's no fixed width anywhere here. */
.comment-reactions-zone {
    margin-top: 6px;
}

.comment-reaction-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 30px;
    padding: 4px 8px;
    margin: 0 4px 4px 0;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    color: var(--cream-dim);
    font-size: 0.78rem;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.comment-reaction-chip:hover {
    border-color: var(--gold-dim);
}

.comment-reaction-chip:disabled {
    opacity: .6;
    cursor: default;
}

.comment-reaction-chip--active {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    color: var(--cream);
}

.comment-reaction-emoji {
    font-size: 1rem;
    line-height: 1;
}

.comment-reaction-count {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--cream-dim);
}

.comment-reaction-chip--active .comment-reaction-count {
    color: var(--gold);
}

.comment-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.comment-action {
    background: none;
    border: none;
    padding: 2px 0;
    color: var(--cream-dim);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
}

.comment-action:hover {
    color: var(--gold);
}

.comment-show-replies-btn {
    background: none;
    border: none;
    color: var(--gold-dim);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
}

.comment-show-replies-btn:hover {
    color: var(--gold);
}

.comment-replies-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}


.comment-item--selected {
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 10px;
}

@keyframes commentFreshFlash {
    0% { background: rgba(212, 175, 55, 0.16); }
    100% { background: transparent; }
}

.comment-item-fresh {
    animation: commentFreshFlash 1.5s ease-out both;
}


.comments-new-pill {
    align-self: center;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.comments-new-pill[hidden] {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .comment-item-fresh { animation: none; }
}

.reply-preview {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-left: 3px solid var(--gold);
    border-radius: 8px;
    padding: 8px 10px;
    margin-top: 8px;
}


.reply-preview[hidden] {
    display: none;
}

.reply-preview-info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.reply-preview-icon {
    color: var(--gold);
    font-size: 0.9rem;
    flex-shrink: 0;
    line-height: 1.3;
}

.reply-preview-text-block {
    min-width: 0;
}

.reply-preview-label {
    font-size: 0.76rem;
    color: var(--cream-dim);
}

.reply-preview-label b {
    color: var(--cream);
}

.reply-preview-text {
    font-size: 0.8rem;
    color: var(--cream-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.reply-preview-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--cream-dim);
    font-size: 13px;
    cursor: pointer;
    padding: 2px 4px;
}

.reply-preview-close:hover {
    color: var(--cream);
}

.comment-inline-form,
.comment-composer {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    margin-top: 8px;
}

.comment-textarea {
    flex: 1 1 auto;
    min-height: 38px;
    max-height: 120px;
    resize: vertical;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--cream);
    font-family: inherit;
    font-size: 0.85rem;
    padding: 8px 10px;
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--gold-dim);
}

.comment-inline-form-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.comment-inline-form-actions .btn-ghost,
.comment-inline-form-actions .btn-primary,
.comment-composer-submit {
    padding: 8px 14px;
    font-size: 0.78rem;
    white-space: nowrap;
}

.comments-load-more {
    align-self: center;
    background: none;
    border: 1px solid var(--line);
    color: var(--cream-dim);
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 0.78rem;
    cursor: pointer;
    margin-top: 4px;
}

.comments-load-more:hover {
    border-color: var(--gold-dim);
    color: var(--cream);
}

.comments-inline-error {
    color: #ff6b6b;
    font-size: 0.78rem;
    text-align: center;
    margin-top: 4px;
}

.comments-inline-error-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 10, 12, 0.95);
    border: 1px solid rgba(255, 107, 107, 0.4);
    padding: 8px 16px;
    border-radius: 20px;
    z-index: 300;
}

@media (max-width: 480px) {
    .comment-item-reply {
        margin-left: 20px;
    }
}

@media (min-width: 768px) {
    .comments-sheet-overlay {

        align-items: center;
    }

    .comments-sheet {
        border-radius: 16px;
        transform: scale(0.92) translateY(20px);
    }

    .comments-sheet-overlay.open .comments-sheet {
        transform: scale(1) translateY(0);
    }
}

.add-to-collection-sheet { max-width: 420px; }
.add-to-collection-sheet h3 {
    margin: 0 0 12px;
    color: var(--cream);
    font-size: clamp(18px, 4vw, 22px);
}
.add-to-collection-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 46vh;
    overflow-y: auto;
    text-align: left;
}
.add-to-collection-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    color: var(--cream);
    cursor: pointer;
    font-size: 14px;
    transition: border-color .2s, background .2s;
}
.add-to-collection-row:hover { border-color: var(--gold-dim); }
.add-to-collection-row.in-collection {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
}
.add-to-collection-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.add-to-collection-check {
    flex: 0 0 auto;
    color: var(--gold);
    font-weight: 700;
}
.add-to-collection-empty {
    color: var(--cream-dim);
    font-size: 13.5px;
    text-align: center;
    padding: 20px 10px;
}
.add-to-collection-create { margin-top: 14px; width: 100%; }

@media (prefers-reduced-motion: reduce) {
    .comments-sheet {
        transition: none !important;
    }
}

@media (max-width: 767px) {
    .vote-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .vote-modal {
        width: 100%;
        max-width: 100%;
        max-height: 92dvh;
        border-radius: 20px 20px 0 0;
        padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
    }

    .vote-stage {
        transform: scale(0.8);
        margin-block: -10px;
    }

    .vote-actions {
        flex-direction: column;
        gap: 10px;
    }

    .vote-actions button {
        width: 100%;
    }

    .vote-fab {
        bottom: calc(76px + env(safe-area-inset-bottom));
    }
}

.mobile-bottom-nav { display: none; }

@media (max-width: 767px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        justify-content: space-around;
        align-items: center;
        height: calc(58px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: rgba(12, 10, 16, 0.86);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        border-top: 1px solid var(--line);
    }

    .mbn-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        flex: 1 1 0;
        min-width: 44px;
        min-height: 44px;
        background: none;
        border: none;
        color: var(--cream-dim);
        font-family: inherit;
        font-size: 10px;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .mbn-item svg {
        width: 20px;
        height: 20px;
    }

    .mbn-item.active {
        color: var(--gold);
    }
}


@media (max-width: 767px) {
    #searchInput {
        font-size: 16px;
    }

    .chip, .pill, .apply-btn, .sidebar-toggle {
        min-height: 44px;
    }

    .year-range input[type="number"] {
        min-height: 44px;
    }
}


@media (max-width: 767px) {
    .side-drawer {
        width: min(86vw, 360px);
        z-index: 95;
    }

    .drawer-item--logout {
        margin-bottom: calc(58px + env(safe-area-inset-bottom));
    }
}


@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
    .mt-year-block {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .details-overlay .details-modal,
    .mt-card .mt-poster {
        transition: none !important;
    }

    .mma-btn:active {
        transform: none;
    }
}

@media (max-width: 767px) {
    html, body {
        overflow-x: hidden;
    }
}

/* ==========================================================================
   Mobile Voting screen (Stage 3) — immersive fullscreen, single poster +
   swipe. Same visual language as the Movie Details / My Cinema mobile
   sheets (dark void background, slide-up-from-bottom, circular back
   button, gold accents) rather than a copy of any external reference.
   Business logic lives entirely in js/vote_func.js; this only styles it.
   ========================================================================== */
@media (max-width: 767px) {
    .mv-overlay {
        position: fixed;
        inset: 0;
        z-index: 96;
        background: var(--void);
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(.32, .72, 0, 1);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .mv-overlay.open {
        transform: translateY(0);
    }

    .mv-screen {
        min-height: 100%;
        display: flex;
        flex-direction: column;
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }

    .mv-back {
        position: sticky;
        top: calc(14px + env(safe-area-inset-top));
        left: 14px;
        margin: calc(14px + env(safe-area-inset-top)) 0 0 14px;
        width: 40px;
        height: 40px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(243, 237, 226, 0.14);
        color: var(--cream);
        z-index: 3;
        flex-shrink: 0;
    }

    .mv-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 4px 20px 0;
        margin-top: -36px;
    }

    .mv-loading,
    .mv-state {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 10px;
        color: var(--cream-dim);
        padding: 40px 12px;
    }

    .mv-state-icon {
        font-size: 34px;
    }

    .mv-state h3 {
        margin: 0;
        color: var(--cream);
        font-family: 'Bebas Neue', sans-serif;
        font-size: 22px;
        letter-spacing: 0.03em;
    }

    #onboardingSkipBtnMobile {
        display: inline-flex;
    }

    .mv-progress {
        text-align: center;
        font-size: 0.72rem;
        color: var(--cream-dim);
        letter-spacing: 0.05em;
        text-transform: uppercase;
        margin: 0 0 10px;
    }


    .mv-poster-stage {
        position: relative;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        touch-action: pan-y;
    }

    .mv-poster-track {
        aspect-ratio: 2 / 3;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
        animation: mvPosterEnter 0.35s cubic-bezier(.22, .8, .32, 1) both;
    }

    .mv-poster-track.mv-poster-swap {
        opacity: 0;
        transition: opacity 0.15s ease;
    }

    .mv-poster {
        position: relative;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
    }

    .mv-done-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: rgba(12, 4, 6, 0.75);
        color: var(--gold);
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(2px);
    }

    .mv-info {
        text-align: center;
        margin: 16px 0 6px;
    }

    .mv-title {
        margin: 0 0 4px;
        font-family: 'Bebas Neue', sans-serif;
        font-size: clamp(22px, 6vw, 28px);
        letter-spacing: 0.02em;
        color: var(--cream);
    }

    .mv-meta {
        color: var(--cream-dim);
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .mv-star-row {
        margin: 8px 0 22px;
    }

    .mv-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: auto;
        padding-bottom: 10px;
    }

    .mv-vote-btn {
        min-height: 48px;
        border: none;
        border-radius: 10px;
        background: var(--crimson);
        color: var(--cream);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        font-size: 14px;
        transition: transform 0.15s ease, opacity 0.2s ease;
    }

    .mv-vote-btn:active {
        transform: scale(0.97);
    }

    .mv-vote-btn:disabled {
        opacity: 0.55;
    }

    .mv-finish-btn {
        min-height: 44px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: transparent;
        color: var(--cream-dim);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-size: 12px;
    }
}

@keyframes mvPosterEnter {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .mv-overlay,
    .mv-poster-track,
    .mv-poster-track.mv-poster-swap,
    .mv-vote-btn {
        transition: none !important;
        animation: none !important;
    }
}

@media (max-width: 767px) {
    .nav {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: #0c0a10;
    }

    .mobile-bottom-nav {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: #0c0a10;
    }


    .grain {
        display: none;
    }
}

@media (max-width: 600px) {
    .tv-watch-controls {
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
    }
    .tv-season-select {
        width: 100%;
        min-height: 44px;
    }
    .tv-episode-list {
        max-height: 42vh;
    }
    .tv-episode-row {
        min-height: 48px;
    }
}
