/* ==========================================================================
   NOVA layout — header, footer, hero, rails, cards, ads, chrome
   ========================================================================== */

.site-main { padding-top: var(--header-h); }
.is-home .site-main,
.page-title-detail .site-main,
.page-watch .site-main { padding-top: 0; }

/* Header ------------------------------------------------------------------ */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 120;
    background: linear-gradient(180deg, rgba(7, 7, 11, 0.92) 0%, rgba(7, 7, 11, 0.55) 68%, transparent 100%);
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    background: rgba(8, 8, 13, 0.92);
    border-bottom-color: var(--border);
    backdrop-filter: blur(18px);
}
body:not(.is-home):not(.page-title-detail) .site-header {
    background: rgba(8, 8, 13, 0.9);
    border-bottom-color: var(--border);
    backdrop-filter: blur(18px);
}
.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    height: var(--header-h);
    padding: 0 clamp(18px, 3vw, 40px);
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 6px 18px rgba(255, 61, 90, 0.34);
}
.brand-mark svg { fill: #fff; stroke: none; }
.brand-name {
    font-family: "Outfit", sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.24em;
    line-height: 1;
}
.brand:hover .brand-name { color: #fff; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    position: relative;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.66);
    transition: color 0.2s ease, background 0.2s ease;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.main-nav a.is-active { color: #fff; }
.main-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient);
}

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.quick-search { position: relative; width: clamp(180px, 20vw, 270px); }
.quick-search input {
    width: 100%;
    height: 38px;
    padding: 0 14px 0 38px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
    font-size: 13px;
    transition: 0.2s ease;
}
.quick-search input::placeholder { color: var(--muted-2); }
.quick-search input:focus {
    outline: none;
    width: 100%;
    border-color: rgba(255, 61, 90, 0.5);
    background: rgba(10, 10, 16, 0.9);
    box-shadow: 0 0 0 4px rgba(255, 61, 90, 0.09);
}
.quick-search__icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-2); display: flex; }

.search-suggest {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    width: min(380px, 90vw);
    padding: 7px;
    border: 1px solid var(--border-strong);
    border-radius: 13px;
    background: rgba(16, 16, 24, 0.98);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    z-index: 140;
}
.search-suggest__item { display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: 9px; transition: background 0.15s ease; }
.search-suggest__item:hover, .search-suggest__item.is-focused { background: rgba(255, 255, 255, 0.06); }
.search-suggest__item img { width: 34px; height: 50px; object-fit: cover; border-radius: 5px; background: var(--surface-2); }
.search-suggest__body { flex: 1; min-width: 0; }
.search-suggest__body strong { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-suggest__body small { color: var(--muted-2); font-size: 11px; }
.search-suggest__rating { color: var(--accent-3); font-size: 11.5px; font-weight: 700; }
.search-suggest__empty { padding: 16px; text-align: center; color: var(--muted-2); font-size: 12.5px; }
.search-suggest__all { display: block; padding: 9px 10px; margin-top: 4px; border-top: 1px solid var(--border); font-size: 12px; color: #ff9db0; font-weight: 600; }

.premium-chip, .upgrade-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.premium-chip { background: rgba(246, 211, 101, 0.11); border: 1px solid rgba(246, 211, 101, 0.3); color: #fde68a; }
.upgrade-chip { background: var(--gradient); color: #fff; box-shadow: 0 5px 16px rgba(255, 61, 90, 0.25); }
.upgrade-chip:hover { filter: brightness(1.08); }

.avatar-btn {
    display: flex; align-items: center; gap: 5px;
    padding: 3px 5px 3px 3px;
    border: 1px solid transparent;
    border-radius: 99px;
    list-style: none;
    cursor: pointer;
    transition: 0.2s ease;
}
.avatar-btn::-webkit-details-marker { display: none; }
.avatar-btn:hover, .user-menu[open] .avatar-btn { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.1); }
.avatar-btn img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.user-menu__chev { color: var(--muted); transition: transform 0.2s ease; }
.user-menu[open] .user-menu__chev { transform: rotate(180deg); }

.avatar-initials {
    display: inline-grid; place-items: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--gradient-soft);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}
.avatar-initials--sm { width: 29px; height: 29px; font-size: 10.5px; }
.avatar-initials--lg { width: 56px; height: 56px; font-size: 17px; }
.avatar-initials--xl { width: 96px; height: 96px; font-size: 30px; }

.user-menu { position: relative; }
.user-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 270px;
    padding: 8px;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    background: rgba(16, 16, 24, 0.99);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    animation: menuIn 0.2s var(--ease);
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } }
.user-menu__head { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.user-menu__head strong { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; }
.user-menu__head span { display: block; font-size: 11.5px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; }
.user-menu__head .plan-badge { display: inline-block; margin-top: 7px; }
.user-menu__panel > a, .user-menu__panel form button {
    display: flex; align-items: center; gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: 0; border-radius: 9px;
    background: none;
    color: var(--text-soft);
    font-size: 13px;
    text-align: left;
}
.user-menu__panel > a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.user-menu__panel form { border-top: 1px solid var(--border); margin-top: 5px; padding-top: 5px; }
.user-menu__panel form button { color: #ff9aa8; }
.user-menu__panel form button:hover { background: rgba(251, 113, 133, 0.09); }

/* Keep the mobile menu toggle hidden on desktop; .icon-btn sets its own display. */
.site-header .nav-toggle { display: none; }

.mobile-drawer {
    position: fixed;
    inset: var(--header-h) 0 auto;
    z-index: 110;
    padding: 16px 20px 24px;
    background: rgba(9, 9, 14, 0.98);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(22px);
    animation: drawerIn 0.25s var(--ease);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
}
@keyframes drawerIn { from { opacity: 0; transform: translateY(-8px); } }
.mobile-search { position: relative; margin-bottom: 14px; }
.mobile-search > svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.mobile-search input {
    width: 100%; height: 44px;
    padding: 0 14px 0 41px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}
.mobile-drawer nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-drawer nav a, .mobile-drawer nav form button {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 12px;
    border: 0; border-radius: 9px;
    background: none;
    color: var(--text-soft);
    font-size: 14px;
    text-align: left;
}
.mobile-drawer nav a:hover, .mobile-drawer nav form button:hover { background: rgba(255, 255, 255, 0.06); }
.mobile-drawer .mobile-cta { margin-top: 8px; justify-content: center; background: var(--gradient); color: #fff; font-weight: 700; }
.mobile-logout button { color: #ff9aa8; }

/* Hero -------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: clamp(560px, 82vh, 780px);
    display: flex;
    align-items: stretch;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s ease;
    padding: calc(var(--header-h) + 56px) 0 48px;
}
.hero-slide.is-active { opacity: 1; visibility: visible; position: relative; }
.hero-slide__bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center 22%;
    transform: scale(1.04);
    transition: transform 8s ease;
    filter: saturate(1.05);
}
.hero-slide.is-active .hero-slide__bg { transform: scale(1.1); }
.hero-slide__scrim {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 7, 11, 0.97) 0%, rgba(7, 7, 11, 0.72) 38%, rgba(7, 7, 11, 0.15) 72%, rgba(7, 7, 11, 0.4) 100%),
        linear-gradient(0deg, var(--bg) 0%, rgba(7, 7, 11, 0.3) 32%, rgba(7, 7, 11, 0.1) 60%, rgba(7, 7, 11, 0.55) 100%);
}
.hero-slide__content { position: relative; z-index: 2; max-width: 660px; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffd7dd;
    margin-bottom: 16px;
}
.hero-title {
    font-size: clamp(2.5rem, 5.2vw, 4.6rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.04em;
    margin: 0 0 16px;
    text-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.hero-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--text-soft); font-size: 13px; margin-bottom: 14px; }
.hero-desc {
    color: rgba(232, 232, 240, 0.82);
    font-size: 15px;
    line-height: 1.65;
    max-width: 570px;
    margin: 0 0 24px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-note { display: flex; align-items: center; gap: 7px; margin-top: 18px; font-size: 11.5px; color: rgba(255, 255, 255, 0.5); }
.imdb-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(246, 211, 101, 0.13);
    color: #fde68a;
    font-size: 11.5px; font-weight: 700;
}
.quality-chip {
    padding: 2px 6px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 4px;
    font-size: 9.5px; font-weight: 800;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.8);
}
.hero-controls {
    position: absolute;
    left: 50%; bottom: 22px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.hero-dots { display: flex; gap: 7px; }
.hero-dot {
    width: 22px; height: 4px;
    padding: 0; border: 0; border-radius: 99px;
    background: rgba(255, 255, 255, 0.22);
    transition: 0.3s ease;
}
.hero-dot:hover { background: rgba(255, 255, 255, 0.5); }
.hero-dot.is-active { width: 38px; background: var(--gradient); }
.hero-hint { display: none; align-items: center; gap: 3px; font-size: 10.5px; color: rgba(255, 255, 255, 0.4); }

.empty-hero { padding: calc(var(--header-h) + 90px) 0 80px; }
.empty-hero h1 { max-width: 700px; }
.empty-hero p { max-width: 560px; color: var(--muted); }

/* Join strip / premium banner -------------------------------------------- */
.join-strip {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: -26px;
    margin-bottom: 34px;
    padding: 22px 26px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, rgba(22, 22, 34, 0.95), rgba(14, 14, 22, 0.95));
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px);
}
.join-strip h2 { margin: 0; font-size: clamp(1.2rem, 2vw, 1.65rem); }
.join-strip__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.premium-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    flex-wrap: wrap;
    margin-top: 34px;
    margin-bottom: 30px;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid rgba(246, 211, 101, 0.22);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(110deg, rgba(38, 18, 46, 0.9), rgba(20, 16, 32, 0.9));
}
.premium-banner__glow {
    position: absolute;
    width: 420px; height: 420px;
    right: -100px; top: -180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 61, 90, 0.32), transparent 65%);
    filter: blur(20px);
    pointer-events: none;
}
.premium-banner__copy { position: relative; z-index: 1; max-width: 620px; }
.premium-banner h2 { margin: 0 0 6px; font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.premium-banner p { margin: 0; color: var(--muted); font-size: 13.5px; }
.premium-banner .btn { position: relative; z-index: 1; }

/* Rails & cards ----------------------------------------------------------- */
.home-body { padding-bottom: 20px; }
.rail { margin: 0 0 38px; }
.rail__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.rail__head h2 { margin: 0; font-size: clamp(1.25rem, 1.9vw, 1.55rem); }
.rail__head .eyebrow { margin-bottom: 5px; }
.rail__tools { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.rail__all { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.rail__all:hover { color: #ff9db0; }
.rail__arrows { display: none; gap: 6px; }
.rail__arrow { width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 8px; background: rgba(255, 255, 255, 0.03); }
.rail__track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 5px;
    scroll-behavior: smooth;
}
.rail__track::-webkit-scrollbar { display: none; }

.movie-card { flex: 0 0 172px; scroll-snap-align: start; min-width: 0; }
.movie-card__poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease;
}
.movie-card__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.movie-card:hover .movie-card__poster { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); border-color: rgba(255, 255, 255, 0.16); }
.movie-card:hover .movie-card__poster img { transform: scale(1.06); }
.movie-card__shade {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(7, 7, 11, 0.85), transparent 42%);
    opacity: 0.85;
    transition: opacity 0.3s ease;
}
.movie-card__play {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%) scale(0.75);
    display: grid; place-items: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    color: #fff;
    opacity: 0;
    transition: 0.3s var(--ease);
}
.movie-card__play svg { fill: #fff; stroke: none; margin-left: 2px; }
.movie-card:hover .movie-card__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.rating-chip {
    position: absolute; top: 8px; left: 8px;
    display: inline-flex; align-items: center; gap: 3px;
    padding: 3px 6px;
    border-radius: 5px;
    background: rgba(7, 7, 11, 0.82);
    backdrop-filter: blur(6px);
    font-size: 10px; font-weight: 700;
    color: #fde68a;
}
.type-chip {
    position: absolute; top: 8px; right: 8px;
    padding: 3px 6px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-size: 8.5px; font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.type-chip--series { background: rgba(139, 92, 246, 0.25); border-color: rgba(167, 139, 250, 0.4); color: #ddd6fe; }
.type-chip--movie { background: rgba(190, 24, 93, 0.24); border-color: rgba(251, 113, 133, 0.4); color: #fecdd3; }
.card-progress {
    position: absolute;
    left: 8px; right: 8px; bottom: 8px;
    height: 3px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.22);
    overflow: hidden;
    z-index: 2;
}
.card-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--gradient); }
.movie-card__body { padding: 10px 2px 0; }
.movie-card__title {
    display: block;
    font-size: 13px; font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}
.movie-card__title:hover { color: #ff9db0; }
.movie-card__meta {
    display: flex; align-items: center; gap: 6px;
    margin-top: 3px;
    font-size: 10.5px;
    color: var(--muted-2);
    white-space: nowrap;
    overflow: hidden;
}
.movie-card__meta > span:last-child { overflow: hidden; text-overflow: ellipsis; }

.continue-card { flex: 0 0 230px; scroll-snap-align: start; }
.continue-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 11px;
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: transform 0.3s var(--ease), border-color 0.3s ease;
}
.continue-card__media img { width: 100%; height: 100%; object-fit: cover; }
.continue-card__media:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.2); }
.continue-card__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 7, 11, 0.75), transparent 55%); }
.continue-card__play {
    position: absolute; inset: 0; margin: auto;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(8px);
}
.continue-card__play svg { fill: #fff; stroke: none; margin-left: 2px; }
.continue-card__body { padding: 8px 2px 0; }
.continue-card .card-progress { left: 0; right: 0; bottom: 0; height: 4px; border-radius: 0; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .eyebrow { margin-bottom: 5px; }

/* Ad units ---------------------------------------------------------------- */
.ad-label {
    display: block;
    margin-bottom: 4px;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted-2);
}
.ad-slot { position: relative; }
.ad-slot__link { display: block; overflow: hidden; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); }
.ad-slot__link img { width: 100%; height: auto; object-fit: cover; transition: transform 0.35s var(--ease); }
.ad-slot__link:hover img { transform: scale(1.015); }
.ad-inline-wrap { margin: 4px 0 40px; }
.ad-inline-wrap .ad-slot { max-width: 970px; margin: 0 auto; }
.ad-inline-wrap .ad-slot__link { aspect-ratio: 970 / 250; }
.ad-inline-wrap .ad-slot__link img { height: 100%; }
.ad-mobile-wrap { display: none; margin: 0 0 34px; }
.ad-mobile-wrap .ad-slot__link { aspect-ratio: 640 / 180; }
.ad-mobile-wrap .ad-slot__link img { height: 100%; }

.ad-rail { display: none; position: fixed; top: 120px; z-index: 90; width: 160px; }
.ad-rail--left { left: 14px; }
.ad-rail--right { right: 14px; }
.ad-rail .ad-slot__link { aspect-ratio: 160 / 600; }
.ad-rail .ad-slot__link img { height: 100%; object-fit: cover; }
.ad-rail .ad-label { text-align: center; }

/* Footer ------------------------------------------------------------------ */
.site-footer {
    margin-top: 50px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(10, 10, 16, 0.4), rgba(6, 6, 10, 0.95));
}
.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 48px clamp(18px, 3vw, 40px) 36px;
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 46px;
}
.footer-brand p { margin: 14px 0 16px; max-width: 340px; font-size: 13px; color: var(--muted-2); }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-badges span {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: 10.5px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.025);
}
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-links h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); margin-bottom: 12px; font-family: "Inter", sans-serif; font-weight: 700; }
.footer-links a { display: block; padding: 4px 0; font-size: 13px; color: var(--text-soft); }
.footer-links a:hover { color: #ff9db0; }
.footer-legal {
    max-width: var(--container);
    margin: 0 auto;
    padding: 20px clamp(18px, 3vw, 40px) 34px;
    border-top: 1px solid var(--border);
}
.footer-disclaimer { font-size: 11px; line-height: 1.7; color: var(--muted-2); max-width: 980px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 11px; color: var(--muted-2); }
.footer-attribution a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-attribution a:hover { color: #fff; }

/* Mobile dock ------------------------------------------------------------- */
.mobile-dock {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 115;
    justify-content: space-around;
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: rgba(8, 8, 13, 0.96);
    backdrop-filter: blur(18px);
}
.mobile-dock a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 10px; color: var(--muted-2); font-size: 9.5px; font-weight: 600; }
.mobile-dock a.is-active { color: #fff; }
.mobile-dock a.is-active svg { color: #ff5c73; }

/* Trailer modal ----------------------------------------------------------- */
.video-modal {
    width: min(1040px, 94vw);
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    background: #050508;
    color: var(--text);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.video-modal::backdrop { background: rgba(3, 3, 6, 0.86); backdrop-filter: blur(8px); }
.video-modal__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--border); }
.video-modal__bar strong { font-size: 13px; font-weight: 600; }
.video-modal__frame { aspect-ratio: 16 / 9; background: #000; }
.video-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Misc -------------------------------------------------------------------- */
.mini-poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); gap: 14px; }
.mini-poster-grid .movie-card { flex: none; }
.history-list { display: flex; flex-direction: column; gap: 6px; }
.history-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; transition: background 0.15s ease; }
.history-row:hover { background: rgba(255, 255, 255, 0.045); }
.history-row img { border-radius: 6px; object-fit: cover; }
.history-row__body { flex: 1; min-width: 0; }
.history-row__body strong { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-row__body small { font-size: 11px; color: var(--muted-2); }
.history-row__play { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.history-row:hover .history-row__play { background: var(--accent); color: #fff; }

/* Search suggestions: recents + trending ---------------------------------- */
.search-suggest__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px 3px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.search-suggest__clear { padding: 2px 4px; border: 0; background: none; color: #ff9db0; font-size: 10px; font-weight: 600; cursor: pointer; }
.search-suggest__clear:hover { text-decoration: underline; }
.search-suggest__item--query { padding: 7px 10px; }
.search-suggest__item--query .search-suggest__body strong { font-size: 12.5px; }
.search-suggest__item--query .search-suggest__body small { font-size: 10px; }
