/* ═══════════════════════════════════════════════════════════════
   MOVIEFLIX — Design System (Desktop + Mobile)
   ═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg:         #0a0a0f;
    --bg-surface: #111118;
    --bg-card:    #18181f;
    --bg-hover:   #22222c;
    --red:        #E50914;
    --red-glow:   rgba(229, 9, 20, 0.35);
    --text:       #ffffff;
    --text-muted: #9999aa;
    --text-dim:   #444455;
    --border:     rgba(255,255,255,0.07);
    --border-hov: rgba(255,255,255,0.15);
    --glass:      rgba(255,255,255,0.04);
    --glass-brd:  rgba(255,255,255,0.08);
    --nav-h:      65px;
    --mob-nav-h:  64px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; min-height: 100vh; }
a { text-decoration: none; color: inherit; }
img { display: block; }
button { font-family: inherit; cursor: pointer; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ─── NAVBAR (Desktop) ───────────────────────────────────────── */
.navbar {
    position: fixed; top: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 100%;
    height: var(--nav-h); padding: 0 4%;
    display: flex; align-items: center; justify-content: space-between;
    z-index: 500; background: transparent;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid transparent;
}
.navbar.scrolled {
    top: 16px;
    width: 92%; max-width: 1400px;
    border-radius: 20px;
    background: rgba(20,20,28,0.85);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    padding: 0 3%;
}
.nav-left { display: flex; align-items: center; gap: 36px; }
.logo { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.5px; color: var(--red); text-shadow: 0 0 30px var(--red-glow); user-select: none; }
.logo span { color: #fff; }
.nav-links { list-style: none; display: flex; gap: 4px; }
.nav-links li a { padding: 6px 12px; border-radius: 6px; font-size: 0.85rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s, background 0.2s; }
.nav-links li a:hover, .nav-links li a.active { color: var(--text); background: var(--glass); }
.nav-right { display: flex; align-items: center; gap: 8px; }

#search-input {
    width: 0; opacity: 0; padding: 7px 14px;
    border-radius: 6px; border: 1px solid var(--border);
    background: rgba(0,0,0,0.5); color: var(--text);
    font-size: 0.85rem; font-family: inherit; outline: none;
    transition: width 0.3s, opacity 0.3s, border-color 0.2s;
    pointer-events: none;
}
#search-input.open { width: 220px; opacity: 1; pointer-events: auto; border-color: var(--border-hov); }
#search-input:focus { border-color: var(--red); }

.nav-icon-btn {
    width: 38px; height: 38px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: var(--glass); border: 1px solid var(--glass-brd);
    color: var(--text-muted); font-size: 0.95rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-icon-btn:hover { background: var(--bg-hover); color: var(--text); border-color: var(--border-hov); }

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
    position: relative; height: 90vh; min-height: 580px;
    background: #000 center/cover no-repeat;
    display: flex; align-items: flex-end;
    padding: 0 5% 80px; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at center top, transparent 30%, rgba(10,10,15,0.6) 100%),
        linear-gradient(to right, rgba(10,10,15,0.85) 0%, rgba(10,10,15,0.35) 55%, transparent 100%),
        linear-gradient(to top, var(--bg) 0%, transparent 55%);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 560px; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; margin-bottom: 14px; }
.hero-title { font-size: 3.6rem; font-weight: 800; line-height: 1.05; margin-bottom: 16px; letter-spacing: -1px; text-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.hero-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 0.85rem; flex-wrap: wrap; }
.hero-meta .match { color: #46d369; font-weight: 700; }
.hero-meta .badge-pill { padding: 2px 8px; border-radius: 3px; border: 1px solid rgba(255,255,255,0.3); color: #ccc; font-size: 0.75rem; }
.hero-description { font-size: 0.95rem; line-height: 1.6; color: rgba(255,255,255,0.85); margin-bottom: 28px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-buttons { display: flex; gap: 12px; }

.btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 28px; border-radius: 6px; border: none; font-size: 1rem; font-weight: 700; cursor: pointer; transition: transform 0.15s, opacity 0.15s, box-shadow 0.2s; letter-spacing: 0.2px; }
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(0.97); }
.btn-play { background: #fff; color: #0a0a0f; box-shadow: 0 4px 20px rgba(255,255,255,0.15); }
.btn-play:hover { box-shadow: 0 6px 30px rgba(255,255,255,0.25); }
.btn-more { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.15); backdrop-filter: blur(10px); }
.btn-more:hover { background: rgba(255,255,255,0.2); }

/* ─── CONTENT ROWS ───────────────────────────────────────────── */
.content { padding: 0 0 80px; position: relative; z-index: 10; margin-top: -60px; }
.row { margin-bottom: 50px; }
.row-header { display: flex; align-items: center; gap: 12px; padding: 0 4% 16px; }
.row-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.3px; }
.row-accent { width: 3px; height: 20px; background: var(--red); border-radius: 2px; box-shadow: 0 0 8px var(--red-glow); }

.row-container { position: relative; }
.row-posters { display: flex; gap: 10px; padding: 6px 4% 16px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; width: 100%; }
.row-posters::-webkit-scrollbar { display: none; }

.scroll-btn {
    position: absolute; top: 6px; bottom: 16px; width: 4%; min-width: 40px;
    background: rgba(10,10,15,0.7); border: none; color: #fff; font-size: 1.5rem;
    cursor: pointer; z-index: 15; opacity: 0.5;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px); transition: opacity 0.2s, background 0.2s;
}
.row-container:hover .scroll-btn { opacity: 0.9; }
.scroll-btn:hover { background: rgba(10,10,15,0.9); }
.scroll-btn i { transition: transform 0.2s; }
.scroll-btn:hover i { transform: scale(1.2); color: var(--red); }
.scroll-left { left: 0; border-radius: 0 8px 8px 0; }
.scroll-right { right: 0; border-radius: 8px 0 0 8px; }

/* ─── POSTER CARDS ───────────────────────────────────────────── */
.poster-wrapper {
    position: relative; flex-shrink: 0; width: 160px;
    border-radius: 8px; overflow: hidden; cursor: pointer;
    background: var(--bg-card); border: 1px solid var(--border);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    display: flex; flex-direction: column;
}
.poster-wrapper:hover { transform: translateY(-6px) scale(1.04); border-color: rgba(255,255,255,0.25); box-shadow: 0 12px 40px rgba(0,0,0,0.6); z-index: 10; }
.poster-img-wrap { position: relative; flex-shrink: 0; overflow: hidden; }
.row-poster { width: 100%; height: 230px; object-fit: cover; display: block; transition: filter 0.25s; }
.poster-wrapper:hover .row-poster { filter: brightness(0.7); }
.poster-play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0.8); width: 44px; height: 44px; background: rgba(229,9,20,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; opacity: 0; transition: opacity 0.25s, transform 0.25s; }
.poster-wrapper:hover .poster-play-icon { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* Always-visible info strip below poster */
.poster-info {
    padding: 8px 10px 10px;
    background: var(--bg-card);
    border-top: 1px solid rgba(255,255,255,0.06);
    flex: 1;
    display: flex; flex-direction: column; gap: 4px;
}
.poster-title {
    font-size: 0.78rem; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    color: #eee;
}
.poster-meta {
    font-size: 0.68rem; color: var(--text-muted);
    display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.poster-meta .pm-rating { color: #f5c518; font-weight: 600; }
.poster-meta .pm-runtime { color: var(--text-muted); }
.poster-meta .pm-dot { color: rgba(255,255,255,0.2); }

/* TOP 10 BADGE */
.top10-badge {
    position: absolute; top: 8px; left: 8px;
    background: var(--red); color: #fff;
    font-size: 0.7rem; font-weight: 800;
    padding: 2px 7px; border-radius: 3px;
    letter-spacing: 0.5px; z-index: 2;
    box-shadow: 0 2px 8px var(--red-glow);
}
/* My List heart indicator */
.poster-mylist-dot {
    position: absolute; top: 8px; right: 8px;
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(229,9,20,0.9);
    display: none; align-items: center; justify-content: center;
    font-size: 0.65rem; z-index: 2;
}
.poster-wrapper.in-list .poster-mylist-dot { display: flex; }

/* ─── LOADING ────────────────────────────────────────────────── */
.loading-spinner { width: 44px; height: 44px; border: 3px solid rgba(255,255,255,0.07); border-top: 3px solid var(--red); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 80px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.glass-footer {
    width: 92%; max-width: 1400px; margin: 0 auto 30px;
    background: rgba(20,20,28,0.7);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border-radius: 20px;
    padding: 30px 4%;
    position: relative; z-index: 10;
}
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer-logo { font-size: 1.5rem; margin-bottom: 6px; }
.footer-disclaimer { color: var(--text-dim); font-size: 0.8rem; line-height: 1.6; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.footer-links { display: flex; gap: 16px; font-size: 0.85rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-social { display: flex; gap: 16px; font-size: 1.2rem; color: var(--text-muted); }
.footer-social a:hover { color: #fff; transform: translateY(-2px); }
.footer-social a { transition: transform 0.2s, color 0.2s; }
@media (max-width: 768px) {
    .glass-footer { width: 95%; padding: 24px; border-radius: 16px; margin-bottom: 20px; }
    .footer-content { flex-direction: column; align-items: center; text-align: center; }
    .footer-right { align-items: center; }
}

/* ═══════════════════════════════════════════════════════════════
   DETAIL MODAL
   ═══════════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal-card {
    background: #1a1a24;
    border-radius: 14px; overflow: hidden;
    width: 90%; max-width: 750px; max-height: 92vh;
    overflow-y: auto; overflow-x: hidden;
    transform: scale(0.94) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 24px 80px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.08);
    scrollbar-width: none;
}
.modal-card::-webkit-scrollbar { display: none; }
.modal-overlay.open .modal-card { transform: scale(1) translateY(0); }

.modal-backdrop-wrap { position: relative; width: 100%; height: 300px; overflow: hidden; }
.modal-backdrop-wrap img { width: 100%; height: 100%; object-fit: cover; }
.modal-backdrop-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 60%; background: linear-gradient(transparent, #1a1a24); }

.modal-close-btn {
    position: absolute; top: 12px; right: 12px; z-index: 10;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(0,0,0,0.7); border: 1px solid rgba(255,255,255,0.15);
    color: #fff; font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.2s;
}
.modal-close-btn:hover { background: rgba(255,255,255,0.15); }

.modal-body { padding: 0 24px 28px; }
.modal-title { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 10px; }
.modal-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; font-size: 0.82rem; }
.modal-meta .green { color: #46d369; font-weight: 700; }
.modal-meta .pill { padding: 2px 8px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.2); color: #bbb; font-size: 0.75rem; }
.modal-actions { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.modal-play-btn { display: flex; align-items: center; gap: 8px; padding: 11px 28px; background: #fff; color: #000; border: none; border-radius: 6px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.modal-play-btn:hover { background: #e5e5e5; }
.modal-list-btn { display: flex; align-items: center; gap: 8px; padding: 11px 20px; background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.modal-list-btn:hover { background: rgba(255,255,255,0.18); }
.modal-list-btn.in-list { background: var(--red); border-color: var(--red); }
.modal-desc { font-size: 0.9rem; color: rgba(255,255,255,0.8); line-height: 1.6; margin-bottom: 16px; }
.modal-genres { display: flex; gap: 6px; flex-wrap: wrap; }
.genre-tag { padding: 4px 12px; border-radius: 20px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); font-size: 0.75rem; color: #aaa; }
.modal-section-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 10px; margin-top: 20px; }
.modal-cast { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.modal-cast::-webkit-scrollbar { display: none; }
.cast-chip { flex-shrink: 0; text-align: center; }
.cast-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--bg-hover); }
.cast-name { font-size: 0.68rem; color: var(--text-muted); margin-top: 4px; max-width: 60px; text-align: center; }

/* ═══════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV (Only on mobile)
   ═══════════════════════════════════════════════════════════════ */
.mob-bottom-nav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    height: var(--mob-nav-h);
    background: rgba(10,10,15,0.97);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 600;
    padding: 0 4px;
}
.mob-bottom-nav-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 100%;
}
.mob-nav-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; background: transparent; border: none; color: #555;
    font-size: 0.62rem; font-weight: 600; letter-spacing: 0.3px;
    cursor: pointer; transition: color 0.2s; padding: 8px;
    -webkit-tap-highlight-color: transparent;
}
.mob-nav-btn i { font-size: 1.3rem; transition: color 0.2s, transform 0.2s; }
.mob-nav-btn.active { color: #fff; }
.mob-nav-btn.active i { color: var(--red); transform: scale(1.1); }

/* Mobile screens (shown when tab is active) */
.mob-screen {
    display: none;
    position: fixed;
    inset: 0;
    bottom: var(--mob-nav-h); /* don't go below bottom nav */
    z-index: 560; /* above navbar (500) below bottom-nav (600) */
    background: var(--bg);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    transition: opacity 0.18s ease;
}
.mob-screen.active { display: block; }
.mob-screen.visible { opacity: 1; }

/* Hide desktop navbar when a mobile overlay screen is active */
body.mob-overlay-active .navbar {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}

/* MOBILE SEARCH SCREEN */
.mob-search-top {
    position: sticky; top: 0;
    background: var(--bg);
    padding: 20px 16px 14px;
    border-bottom: 1px solid var(--border);
    z-index: 2;
}
.mob-search-header-row {
    display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.mob-screen-title {
    font-size: 1.3rem; font-weight: 800; flex: 1;
}
.mob-search-input-wrap { position: relative; }
.mob-search-input-wrap i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.9rem; }
#mob-search-input {
    width: 100%; padding: 11px 14px 11px 38px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; color: var(--text); font-size: 0.95rem;
    font-family: inherit; outline: none;
    -webkit-appearance: none;
}
#mob-search-input:focus { border-color: var(--red); }

#mob-search-results { padding: 14px 16px 20px; }
.mob-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.mob-results-grid .poster-wrapper {
    width: 100%; min-width: unset;
}

/* MOBILE MY LIST SCREEN */
.mob-screen-header { padding: 18px 16px 14px; border-bottom: 1px solid var(--border); }
.mob-screen-header h2 { font-size: 1.3rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.mob-screen-header .red-icon { color: var(--red); }
#mob-mylist-grid { padding: 14px 16px 20px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
#mob-mylist-grid .poster-wrapper { width: 100%; min-width: unset; }
.mob-empty-state { grid-column: 1/-1; text-align: center; padding: 60px 20px; color: var(--text-muted); }
.mob-empty-state i { font-size: 3rem; margin-bottom: 16px; display: block; color: var(--text-dim); }
.mob-empty-state p { font-size: 0.9rem; line-height: 1.6; }

/* MOBILE COMING SOON SCREEN */
#mob-soon-list { padding: 14px 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.soon-card {
    display: flex; gap: 12px;
    background: var(--bg-card); border-radius: 10px;
    overflow: hidden; border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color 0.2s;
}
.soon-card:hover { border-color: rgba(255,255,255,0.2); }
.soon-card-img { width: 95px; flex-shrink: 0; object-fit: cover; aspect-ratio: 2/3; }
.soon-card-body { padding: 12px 12px 12px 0; flex: 1; min-width: 0; }
.soon-card-date { font-size: 0.68rem; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.soon-card-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.soon-card-desc { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile overrides (≤ 768px)
   Desktop layout completely untouched above this breakpoint.
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── Show mobile bottom nav ─────────────────────────────── */
    .mob-bottom-nav { display: block; }
    .nav-links { display: none; }
    /* hide desktop search/bell icons on mobile (we have the bottom tabs) */
    .nav-icon-btn { display: none; }
    #search-input { display: none !important; }

    /* Give page space for bottom nav */
    body { padding-bottom: var(--mob-nav-h); }

    /* ── Navbar on mobile: minimal, transparent top ─────────── */
    .navbar {
        height: 60px;
        padding: 0 16px;
        background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        border-radius: 0;
        top: 0;
        width: 100%;
        max-width: 100%;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .navbar.scrolled { 
        transform: translate(-50%, -100%); /* Hides it by moving it up, while preserving desktop X translation */
        opacity: 0;
        pointer-events: none;
    }
    .logo { font-size: 1.5rem; }

    /* ── Hero: Centered, portrait friendly ──────────────────── */
    .hero {
        height: 75vh;
        min-height: 480px;
        padding: 0 5% 30px;
        align-items: flex-end;
        justify-content: center;
        text-align: center;
        margin-top: 0;
        background-position: center top;
    }
    .hero::before {
        /* Stronger bottom fade for portrait images */
        background: linear-gradient(to top, var(--bg) 0%, rgba(10,10,15,0.8) 25%, transparent 60%);
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .hero-title { font-size: 2.2rem; letter-spacing: -0.5px; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
    .hero-description { display: none; } /* Hide on mobile to match Netflix */
    .hero-meta { justify-content: center; margin-bottom: 20px; font-size: 0.8rem; }
    
    .hero-buttons { width: 100%; display: flex; justify-content: center; gap: 12px; }
    .hero-buttons .btn { flex: 1; max-width: 160px; justify-content: center; padding: 11px 20px; font-size: 0.95rem; }
    .hero-badge { display: none; }

    /* ── Cards: Clean posters in horizontal rows ────────────── */
    .row-posters .poster-wrapper {
        width: 105px;
        border-radius: 6px;
        border: none;
        background: transparent;
    }
    .row-posters .row-poster { height: 155px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
    
    /* Hide all desktop hover UI elements in rows */
    .row-posters .poster-info { display: none !important; }
    .poster-play-icon { display: none !important; }
    .poster-wrapper:hover { transform: none; box-shadow: none; }

    /* ── Rows ───────────────────────────────────────────────── */
    .content { margin-top: -20px; padding-bottom: 30px; }
    .row { margin-bottom: 24px; }
    .row-header { padding: 0 16px 8px; }
    .row-title { font-size: 1.05rem; font-weight: 700; }
    .row-posters { padding: 4px 16px 8px; gap: 8px; }
    .row-accent { height: 16px; width: 3px; }

    /* ── Detail Modal: slides up from bottom ────────────────── */
    .modal-overlay { align-items: flex-end; padding-bottom: var(--mob-nav-h); }
    .modal-card {
        width: 100%; max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 88vh;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        border: none;
    }
    .modal-overlay.open .modal-card { transform: translateY(0); }
    .modal-backdrop-wrap { height: 200px; }
    .modal-body { padding: 0 16px 20px; }
    .modal-title { font-size: 1.35rem; }
    .modal-actions { display: flex; gap: 8px; flex-wrap: nowrap; }
    .modal-play-btn { flex: 1; justify-content: center; font-size: 0.95rem; }
    .modal-list-btn { flex: 1; justify-content: center; font-size: 0.95rem; }

    /* Hide desktop scroll buttons on touch devices */
    .scroll-btn { display: none !important; }

    /* ── Mobile screen sizing & Grids ───────────────────────── */
    #mob-mylist-grid, .mob-results-grid { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 12px 8px; 
    }
    #mob-mylist-grid .poster-wrapper, .mob-results-grid .poster-wrapper {
        width: 100%;
        background: transparent;
        border: none;
    }
    #mob-mylist-grid .row-poster, .mob-results-grid .row-poster {
        width: 100%;
        height: auto;
        aspect-ratio: 2/3;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    /* Show titles below posters in grids */
    #mob-mylist-grid .poster-info, .mob-results-grid .poster-info {
        position: relative;
        opacity: 1;
        transform: none;
        background: none;
        padding: 6px 0 0 0;
    }
    #mob-mylist-grid .poster-title, .mob-results-grid .poster-title {
        font-size: 0.75rem;
        color: #ddd;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    #mob-mylist-grid .poster-meta, .mob-results-grid .poster-meta { display: none; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.55rem; }
    .logo { font-size: 1.35rem; }
    .row-posters .poster-wrapper { width: 100px; }
    .row-posters .row-poster { height: 150px; }
    #mob-mylist-grid, .mob-results-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
}
