/* ============================================================
   Feature Films — Main Stylesheet
   Direct port of Ember design system
   File: /assets/css/style.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Outfit:wght@200;300;400;500&display=swap');

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cayenne: #B5341A;
    --terracotta: #C4622D;
    --ember: #D4845A;
    --glow: #E8A07A;
    --ash: #F5EDE6;
    --char: #1A120E;
    --smoke: #2E1F18;
    --coal: #120C08;
    --muted: #8A6A5E;
    --muted-light: #A88070;
    --warm-white: #FDF5F0;
    --warm-white-60: rgba(253, 245, 240, 0.6);
    --warm-white-30: rgba(253, 245, 240, 0.3);
    --border: rgba(196, 98, 45, 0.15);
    --border-hover: rgba(196, 98, 45, 0.35);
    /* compat aliases */
    --accent: #B5341A;
    --accent-hv: #C53D1F;
    --bg: #1A120E;
    --bg-card: #1E1510;
    --text: #FDF5F0;
    --text-muted: #8A6A5E;
    --radius: 2px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--char);
    color: var(--warm-white);
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    min-height: 100vh;
}

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--terracotta);
    border-radius: 2px;
}

a {
    color: var(--terracotta);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--glow);
    text-decoration: none;
}

/* ── NAV ───────────────────────────────────────────────────── */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 3rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(26, 18, 14, 0);
    backdrop-filter: blur(0px);
    border-bottom: 0.5px solid transparent;
    transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
}

nav.scrolled {
    background: rgba(26, 18, 14, 0.92);
    backdrop-filter: blur(16px);
    border-color: var(--border);
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.65rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--terracotta);
    text-decoration: none;
    user-select: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 0.5px;
    background: var(--terracotta);
    transform: scaleX(0);
    transition: transform 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--warm-white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.search-wrap {
    position: relative;
}

.search-input {
    background: rgba(255, 255, 255, 0.04);
    border: 0.5px solid var(--border);
    color: var(--warm-white);
    padding: 0.45rem 1rem 0.45rem 2.2rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    border-radius: 2px;
    width: 180px;
    outline: none;
    transition: border-color 0.2s, background 0.2s, width 0.3s;
}

.search-input::placeholder {
    color: var(--muted);
}

.search-input:focus {
    border-color: var(--terracotta);
    background: rgba(255, 255, 255, 0.07);
    width: 220px;
}

.search-icon {
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    width: 13px;
    height: 13px;
    stroke: var(--muted);
    fill: none;
    stroke-width: 1.5;
    pointer-events: none;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cayenne), var(--terracotta));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: 0.5px solid rgba(181, 52, 26, 0.4);
    transition: border-color 0.2s;
    color: var(--warm-white);
    user-select: none;
}

.avatar:hover {
    border-color: var(--ember);
}

/* Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #1E1510;
    border: 0.5px solid var(--border);
    border-radius: 3px;
    min-width: 190px;
    padding: 0.5rem 0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    z-index: 300;
}

.dropdown-menu.open {
    display: block;
}

.dropdown-name {
    display: block;
    padding: 0.5rem 1rem 0.75rem;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--muted);
    border-bottom: 0.5px solid var(--border);
    margin-bottom: 0.25rem;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--muted-light);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--warm-white);
}

.dropdown-divider {
    border: none;
    border-top: 0.5px solid var(--border);
    margin: 0.25rem 0;
}

.dropdown-logout {
    color: var(--glow) !important;
}

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
    position: relative;
    height: 100vh;
    min-height: 680px;
    display: flex;
    align-items: flex-end;
    padding: 0 3rem 5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #2E1F18 0%, #1A0C08 55%, #3D1A10 100%);
}

.hero-poster {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 52%;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
    overflow: hidden;
}

.hero-poster-inner {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #4A2010, #6B2E15, #3D1A0C);
}

.hero-poster-texture {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 30px,
            rgba(196, 98, 45, 0.06) 30px, rgba(196, 98, 45, 0.06) 31px);
}

.hero-poster-film {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(181, 52, 26, 0.25), transparent 60%);
}

.hero-left-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--char) 0%, rgba(26, 18, 14, 0.85) 35%, transparent 65%);
}

.hero-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(to top, var(--char) 0%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 580px;
}

.hero-live-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(181, 52, 26, 0.18);
    border: 0.5px solid rgba(181, 52, 26, 0.45);
    padding: 0.3rem 0.85rem;
    border-radius: 2px;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--glow);
    margin-bottom: 1.4rem;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cayenne);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.35;
        transform: scale(0.8);
    }
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -0.01em;
    margin-bottom: 1.2rem;
}

.hero-title em {
    font-style: italic;
    color: var(--terracotta);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--muted-light);
    letter-spacing: 0.06em;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}

.hero-meta .sep {
    color: rgba(138, 106, 94, 0.35);
}

.hero-meta .rating {
    color: var(--glow);
}

.hero-genre-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
    flex-wrap: wrap;
}

.genre-tag {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    border: 0.5px solid rgba(138, 106, 94, 0.25);
    padding: 0.2rem 0.6rem;
    border-radius: 1px;
}

.hero-desc {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--warm-white-60);
    max-width: 480px;
    margin-bottom: 2.2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--cayenne);
    color: var(--warm-white);
    border: none;
    padding: 0.85rem 2.2rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
}

.btn-play:hover {
    background: #C53D1F;
    transform: translateY(-1px);
    color: var(--warm-white);
    text-decoration: none;
}

.btn-play:active {
    transform: translateY(0);
}

.play-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 9px;
    border-color: transparent transparent transparent var(--warm-white);
    flex-shrink: 0;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    color: var(--muted-light);
    border: 0.5px solid rgba(138, 106, 94, 0.3);
    padding: 0.85rem 1.6rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: border-color 0.2s, color 0.2s, transform 0.15s;
    text-decoration: none;
}

.btn-outline:hover {
    border-color: var(--terracotta);
    color: var(--warm-white);
    transform: translateY(-1px);
    text-decoration: none;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    right: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    z-index: 2;
    opacity: 0.35;
}

.scroll-line {
    width: 0.5px;
    height: 40px;
    background: var(--muted);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 0.5;
    }

    50% {
        transform: scaleY(0.5);
        opacity: 1;
    }
}

.scroll-label {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── SECTIONS ──────────────────────────────────────────────── */
.section {
    padding: 3rem 3rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 0.5px solid var(--border);
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.06em;
}

.section-link {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FDF5F0;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}

.section-link:hover {
    color: var(--terracotta);
}

/* ── CARDS ROW ─────────────────────────────────────────────── */
.cards-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: var(--terracotta) transparent;
}

.card {
    flex: 0 0 168px;
    cursor: pointer;
    transition: transform 0.25s;
}

.card:hover {
    transform: translateY(-4px);
}

.card-thumb {
    width: 168px;
    height: 248px;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.7rem;
}

.card-poster {
    width: 100%;
    height: 100%;
    transition: transform 0.35s;
    object-fit: cover;
    display: block;
}

.card:hover .card-poster {
    transform: scale(1.06);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 18, 14, 0.9) 0%, rgba(26, 18, 14, 0.1) 55%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover .card-overlay {
    opacity: 1;
}

.card-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(181, 52, 26, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    text-decoration: none;
}

.card:hover .card-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-play-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 11px;
    border-color: transparent transparent transparent var(--warm-white);
    margin-left: 2px;
}

.badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 1px;
    font-weight: 400;
}

.badge-new {
    background: var(--cayenne);
    color: var(--warm-white);
}

.badge-4k {
    background: rgba(26, 18, 14, 0.8);
    color: var(--glow);
    border: 0.5px solid rgba(212, 132, 90, 0.4);
}

.badge-top {
    background: rgba(181, 52, 26, 0.85);
    color: var(--warm-white);
}

.card-rating {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 0.7rem;
    color: var(--glow);
    letter-spacing: 0.04em;
}

.card-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.card-progress-bar {
    height: 100%;
    background: var(--cayenne);
}

.card-title {
    font-size: 0.82rem;
    color: var(--warm-white);
    margin-bottom: 0.2rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-sub {
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.04em;
}

/* ── FEATURED GRID ─────────────────────────────────────────── */
.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
}

.feat-card {
    position: relative;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    height: 290px;
    display: block;
    text-decoration: none;
}

.feat-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.35s;
    position: absolute;
    inset: 0;
}

.feat-card:hover .feat-inner {
    transform: scale(1.04);
}

.feat-cover {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 18, 14, 0.97) 0%, rgba(26, 18, 14, 0.25) 55%, transparent 100%);
}

.feat-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.4rem;
    z-index: 1;
}

.feat-genre {
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 0.35rem;
}

.feat-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    line-height: 1.05;
    color: var(--warm-white);
}

.feat-title.lg {
    font-size: 1.6rem;
}

.feat-title.sm {
    font-size: 1.1rem;
}

.feat-meta {
    font-size: 0.68rem;
    color: var(--muted);
    margin-top: 0.35rem;
    letter-spacing: 0.04em;
}

/* ── CATEGORY PILLS ────────────────────────────────────────── */
.category-strip {
    display: flex;
    gap: 0.6rem;
    padding: 2rem 3rem 0;
    flex-wrap: wrap;
}

.cat-pill {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 1.1rem;
    border: 0.5px solid rgba(138, 106, 94, 0.25);
    border-radius: 100px;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
}

.cat-pill:hover {
    border-color: var(--terracotta);
    color: var(--warm-white);
    text-decoration: none;
}

.cat-pill.active {
    background: var(--cayenne);
    border-color: var(--cayenne);
    color: var(--warm-white);
}

/* ── POSTER PLACEHOLDERS ───────────────────────────────────── */
.p1 {
    background: linear-gradient(155deg, #4A2010, #6B2E15, #3D1A0C);
}

.p2 {
    background: linear-gradient(155deg, #1A2E3A, #0D3B4F, #162535);
}

.p3 {
    background: linear-gradient(155deg, #2A1A35, #3D2550, #1E1428);
}

.p4 {
    background: linear-gradient(155deg, #1A3020, #243F2C, #162818);
}

.p5 {
    background: linear-gradient(155deg, #3A1F10, #532C15, #2E1A0C);
}

.p6 {
    background: linear-gradient(155deg, #35101A, #4F1825, #2A0D14);
}

.p7 {
    background: linear-gradient(155deg, #2E2A10, #453F15, #24220C);
}

.p8 {
    background: linear-gradient(155deg, #1C2A2A, #253B3B, #141F1F);
}

.p-hero {
    background: linear-gradient(160deg, #4A2010, #6B2E18, #8B3A1C, #3D1A0C);
}

.poster-letter {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-style: italic;
    color: rgba(253, 245, 240, 0.12);
    letter-spacing: 0.2em;
    user-select: none;
}

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
    margin-top: 5rem;
    padding: 2.5rem 3rem;
    border-top: 0.5px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: rgba(196, 98, 45, 0.35);
}

.footer-links {
    display: flex;
    gap: 2.5rem;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(138, 106, 94, 0.4);
}

.footer-links a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--muted);
}

.footer-copy {
    font-size: 0.65rem;
    color: rgba(138, 106, 94, 0.3);
    letter-spacing: 0.06em;
}

/* ── AUTH PAGES ────────────────────────────────────────────── */
body.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: radial-gradient(ellipse at 60% 0%, rgba(181, 52, 26, 0.08), transparent 60%), var(--char);
    min-height: 100vh;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    background: #1E1510;
    border: 0.5px solid var(--border);
    border-radius: 3px;
    padding: 2.75rem 2.25rem;
}

.auth-logo {
    display: block;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 300;
    letter-spacing: 0.18em;
    color: var(--terracotta);
    text-decoration: none;
    margin-bottom: 1.75rem;
}

.auth-container h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-subtitle {
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
    margin-bottom: 1.25rem;
    margin-top: -0.75rem;
    letter-spacing: 0.03em;
}

.auth-switch {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.82rem;
    color: var(--muted);
}

.auth-switch a {
    color: var(--warm-white);
}

.auth-switch a:hover {
    color: var(--glow);
}

/* ── FORMS ─────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.45rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 0.5px solid var(--border);
    border-radius: 2px;
    color: var(--warm-white);
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.form-group input::placeholder {
    color: var(--muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--terracotta);
    background: rgba(255, 255, 255, 0.07);
}

.form-group select option {
    background: var(--smoke);
}

.form-group textarea {
    resize: vertical;
}

.form-row-space {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
    margin-top: -0.25rem;
}

.link-muted {
    font-size: 0.78rem;
    color: var(--muted);
}

.link-muted:hover {
    color: var(--warm-white);
}

/* ── ALERTS ────────────────────────────────────────────────── */
.alert {
    padding: 0.8rem 1.1rem;
    border-radius: 2px;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.alert-error {
    background: rgba(181, 52, 26, 0.12);
    border: 0.5px solid rgba(181, 52, 26, 0.4);
    color: var(--glow);
}

.alert-success {
    background: rgba(34, 197, 94, 0.08);
    border: 0.5px solid rgba(34, 197, 94, 0.25);
    color: #6ee7b7;
}

.alert a {
    color: inherit;
    font-weight: 500;
    text-decoration: underline;
}

/* ── UTILITY ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.6rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    border: none;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-primary {
    background: var(--cayenne);
    color: var(--warm-white);
}

.btn-primary:hover {
    background: var(--accent-hv);
    color: var(--warm-white);
}

.btn-secondary {
    background: transparent;
    color: var(--muted-light);
    border: 0.5px solid rgba(138, 106, 94, 0.3);
}

.btn-secondary:hover {
    border-color: var(--terracotta);
    color: var(--warm-white);
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.7rem;
}

.btn-lg {
    padding: 0.85rem 2.2rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.pb-section {
    padding-bottom: 3rem;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    nav {
        padding: 1rem 2rem;
    }

    .section {
        padding: 3rem 2rem 0;
    }

    .category-strip {
        padding: 2rem 2rem 0;
    }

    footer {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 0 1.5rem 4rem;
        min-height: 600px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-poster {
        width: 70%;
        clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    }

    .featured-grid {
        grid-template-columns: 1fr 1fr;
    }

    .featured-grid .feat-card:first-child {
        grid-column: 1 / -1;
    }

    .section {
        padding: 2.5rem 1.5rem 0;
    }

    .category-strip {
        padding: 1.5rem 1.5rem 0;
    }

    footer {
        padding: 2rem 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-poster {
        display: none;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }
}

/* ── CINESEARCH OVERLAY ─────────────────────────────────────── */
.search-trigger {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    font-size: 1rem;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.search-trigger:hover {
    color: var(--warm-white);
}

.search-trigger svg {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
}

.cinesearch-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 4, 2, 0.97);
    z-index: 500;
    flex-direction: column;
    align-items: center;
    padding: 6rem 2rem 2rem;
    backdrop-filter: blur(12px);
}

.cinesearch-overlay.open {
    display: flex;
}

.cinesearch-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.cinesearch-close:hover {
    color: var(--warm-white);
}

.cinesearch-input-wrap {
    width: 100%;
    max-width: 680px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(196, 98, 45, 0.4);
    padding-bottom: 0.75rem;
    margin-bottom: 2.5rem;
}

.cinesearch-input-wrap svg {
    color: var(--terracotta);
    flex-shrink: 0;
    width: 22px !important;
    height: 22px !important;
}

.cinesearch-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--warm-white);
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.cinesearch-input::placeholder {
    color: rgba(138, 106, 94, 0.4);
}

.cinesearch-results {
    width: 100%;
    max-width: 680px;
    overflow-y: auto;
    max-height: calc(100vh - 280px);
}

.cinesearch-section-label {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 0.5px solid var(--border);
}

.cinesearch-result {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 0.5rem;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.15s;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.03);
}

.cinesearch-result:hover {
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

.cinesearch-result:last-child {
    border-bottom: none;
}

.cinesearch-thumb {
    width: 40px;
    height: 60px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
    background: #1E1510;
}

.cinesearch-thumb-ph {
    width: 40px;
    height: 60px;
    border-radius: 2px;
    background: linear-gradient(155deg, #2E1A10, #3D2515);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(253, 245, 240, 0.15);
    flex-shrink: 0;
}

.cinesearch-info {
    flex: 1;
    min-width: 0;
}

.cinesearch-title {
    font-size: 0.9rem;
    color: var(--warm-white);
    font-weight: 300;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.2rem;
}

.cinesearch-meta {
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.cinesearch-type {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.15rem 0.45rem;
    border-radius: 1px;
    flex-shrink: 0;
}

.cinesearch-type-movie {
    background: rgba(181, 52, 26, 0.2);
    color: var(--glow);
}

.cinesearch-type-tv {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.cinesearch-empty {
    text-align: center;
    padding: 2rem 0;
    color: var(--muted);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.cinesearch-loading {
    text-align: center;
    padding: 1.5rem 0;
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
}

.cinesearch-view-all {
    display: block;
    text-align: center;
    margin-top: 1.25rem;
    padding: 0.65rem;
    border: 0.5px solid var(--border);
    border-radius: 2px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.2s;
}

.cinesearch-view-all:hover {
    border-color: var(--terracotta);
    color: var(--warm-white);
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE / PWA STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ── Hamburger button ───────────────────────────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    z-index: 301;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--warm-white);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile nav drawer ──────────────────────────────────────── */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 299;
    background: rgba(6, 4, 2, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 6rem 2rem 4rem;
}

.mobile-nav-drawer.open {
    display: flex;
}

.mobile-nav-drawer a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: var(--warm-white);
    text-decoration: none;
    padding: 0.75rem 0;
    width: 100%;
    text-align: center;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
    transition: color 0.2s;
}

.mobile-nav-drawer a:hover,
.mobile-nav-drawer a.active {
    color: var(--terracotta);
}

.mobile-nav-drawer a:last-child {
    border-bottom: none;
}

/* ── Bottom nav bar (mobile) ────────────────────────────────── */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(22, 15, 11, 0.97);
    border-top: 0.5px solid var(--border);
    backdrop-filter: blur(12px);
    z-index: 200;
    align-items: center;
    justify-content: space-around;
    padding: 0 0.5rem;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    transition: color 0.2s;
    flex: 1;
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
    color: var(--terracotta);
}

.mobile-bottom-nav a svg {
    width: 20px;
    height: 20px;
}

.mobile-bottom-nav .ava-btn {
    background: linear-gradient(135deg, rgba(181, 52, 26, 0.3), rgba(196, 98, 45, 0.2));
    border: 0.5px solid rgba(196, 98, 45, 0.4);
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex: none;
    margin-bottom: 4px;
}

/* ── Mobile adjustments ─────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: none !important;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    /* Push page content above bottom nav */
    body {
        padding-bottom: 60px;
    }

    /* Hero */
    .hero {
        min-height: 70vh;
        padding: 0 1.25rem 3rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-desc {
        font-size: 0.82rem;
    }

    .hero-actions {
        gap: 0.6rem;
    }

    .btn-play,
    .btn-outline {
        padding: 0.65rem 1.25rem;
        font-size: 0.78rem;
    }

    /* Cards */
    .cards-row {
        gap: 0.65rem;
    }

    .card {
        min-width: 130px;
    }

    .card-title {
        font-size: 0.78rem;
    }

    .card-sub {
        font-size: 0.68rem;
    }

    /* Sections */
    .section {
        padding: 2rem 1.25rem 0;
    }

    .section-title {
        font-size: 1rem;
    }

    /* Ask Ava button - hide label on mobile, show icon only */
    #searchTrigger span:last-child {
        display: none;
    }

    #searchTrigger {
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .card {
        min-width: 110px;
    }

    .avatar {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
    }
}