:root {
    --bg-body: #101820;
    --bg-card: #182230;
    --bg-surface: #1c2838;
    --bg-hero: #101820;
    --accent: #2f7bff;
    --accent-hover: #4b8dff;
    --accent-green: #22c55e;
    --accent-gold: #f5c518;
    --accent-red: #e11d48;
    --text-primary: #f4f7fb;
    --text-secondary: #9aa6b2;
    --text-muted: #6b7785;
    --border-color: rgba(255,255,255,0.08);
    --card-border: rgba(255,255,255,0.12);
    --card-radius: 12px;
    --poster-radius: 12px;
    --shadow-card: 0 8px 28px rgba(0,0,0,0.35);
    --shadow-poster: 0 10px 28px rgba(0,0,0,0.45);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.25s ease;
    --nav-height: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    background: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; background: none; color: inherit; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }

/* ===== NAVBAR ===== */
.w2p-nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    height: var(--nav-height);
    display: flex; align-items: center;
    background: transparent;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}
.w2p-nav.scrolled {
    background: rgba(16, 24, 32, 0.94);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 var(--border-color);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 20px; gap: 16px;
}
.nav-brand {
    font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800;
    letter-spacing: -0.4px; color: #fff;
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.nav-brand .brand-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; color: #fff;
}
.nav-brand span { color: var(--accent); }
.nav-center { display: flex; align-items: center; gap: 4px; }
.nav-link {
    padding: 8px 14px; border-radius: 8px;
    font-size: 0.86rem; font-weight: 500; color: var(--text-secondary);
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,0.06); }
.nav-link i { margin-right: 6px; font-size: 0.78rem; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-join { display: flex; align-items: center; gap: 6px; }
.nav-join input {
    width: 128px; padding: 8px 12px; border-radius: 999px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
    color: #fff; font-size: 0.82rem; outline: none;
}
.nav-join input::placeholder { color: var(--text-muted); }
.nav-join input:focus { border-color: var(--accent); }
.nav-search-box { position: relative; width: 220px; }
.nav-search-box input {
    width: 100%; padding: 8px 14px 8px 36px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px; color: #fff; font-size: 0.85rem; outline: none;
}
.nav-search-box input::placeholder { color: var(--text-muted); }
.nav-search-box input:focus { border-color: var(--accent); background: rgba(255,255,255,0.1); }
.nav-search-box .s-icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 0.82rem; pointer-events: none;
}
.btn-nav {
    padding: 8px 16px; border-radius: 999px; font-size: 0.84rem; font-weight: 600;
    transition: var(--transition); display: inline-flex; align-items: center; gap: 6px;
}
.btn-nav-outline { background: transparent; border: 1px solid rgba(255,255,255,0.16); color: #fff; }
.btn-nav-outline:hover { background: rgba(255,255,255,0.08); }
.btn-nav-primary { background: var(--accent); color: #fff; border: none; }
.btn-nav-primary:hover { background: var(--accent-hover); }

/* ===== HERO ===== */
.hero-slider {
    position: relative;
    width: min(1320px, calc(100% - 40px));
    height: 480px;
    margin: 88px auto 8px;
    border-radius: 18px;
    overflow: hidden;
    background: #172232;
    box-shadow: 0 18px 50px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.06);
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 0.7s ease; background: #1a2744; }
.hero-slide.active { opacity: 1; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.hero-slide::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(10,16,26,0.08) 0%, rgba(10,16,26,0.18) 40%, rgba(10,16,26,0.78) 70%, rgba(10,16,26,0.92) 100%),
        linear-gradient(180deg, rgba(10,16,26,0.35) 0%, transparent 30%, transparent 68%, rgba(10,16,26,0.45) 100%);
}
.hero-toolbar {
    position: absolute; top: 16px; left: 16px; right: 16px; z-index: 4;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.hero-toolbar-left { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
    border-radius: 999px; padding: 8px 16px; font-size: 0.82rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: 8px; color: #fff;
}
.pill-blue { background: var(--accent); }
.pill-blue:hover { background: var(--accent-hover); }
.pill-ghost {
    background: rgba(16,22,32,0.35); border: 1px solid rgba(255,255,255,0.38);
    backdrop-filter: blur(8px);
}
.pill-ghost:hover { background: rgba(16,22,32,0.55); }
.pill-icon {
    width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 12px;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
}
.pill-icon:hover { background: rgba(255,255,255,0.2); }
.hero-content {
    position: absolute; right: 72px; top: 50%; transform: translateY(-46%);
    width: min(440px, 46%); z-index: 3;
}
.hero-kicker {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    margin-bottom: 10px; color: rgba(255,255,255,0.78); font-size: 0.82rem;
}
.age-pill {
    background: var(--accent-gold); color: #1a1a1a; font-weight: 800;
    font-size: 0.72rem; padding: 2px 7px; border-radius: 6px;
}
.hero-title {
    font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.12;
    margin-bottom: 10px; text-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.hero-rating {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(245,197,24,0.16); color: var(--accent-gold);
    padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: 0.8rem;
}
.hero-quality {
    padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 700;
    border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.75);
}
.hero-desc {
    font-size: 0.92rem; color: rgba(255,255,255,0.78); line-height: 1.55; margin-bottom: 16px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero-cast { margin-top: 12px; font-size: 0.8rem; color: rgba(255,255,255,0.62); min-height: 1em; }
.btn-watch, .btn-coral, .btn-party {
    border-radius: 999px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px;
    transition: var(--transition);
}
.btn-watch {
    padding: 11px 26px; font-size: 0.92rem; background: var(--accent); color: #fff;
    box-shadow: 0 8px 22px rgba(47,123,255,0.35);
}
.btn-watch:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-party {
    padding: 11px 18px; font-size: 0.9rem;
    background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.16);
}
.btn-party:hover { background: rgba(255,255,255,0.18); }
.btn-coral { padding: 9px 22px; background: #ef6d86; color: #fff; font-size: 0.9rem; }
.btn-coral:hover { filter: brightness(1.08); transform: translateY(-1px); }
.hero-dots {
    position: absolute; left: 22px; bottom: 18px; z-index: 4;
    display: flex; gap: 7px;
}
.hero-dot {
    width: 8px; height: 8px; border-radius: 99px; padding: 0;
    background: rgba(255,255,255,0.35);
}
.hero-dot.active { width: 22px; background: #fff; }
.hero-side-text {
    position: absolute; right: 14px; top: 50%; z-index: 4; pointer-events: none;
    transform: translateY(-50%) rotate(90deg);
    font-size: 0.68rem; letter-spacing: 3px; font-weight: 700;
    color: rgba(255,255,255,0.38); white-space: nowrap;
}

/* ===== ROWS ===== */
.movie-section { padding: 28px 0 0; }
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; gap: 12px;
}
.section-title { font-size: 1.2rem; font-weight: 700; color: #fff; }
.section-more {
    font-size: 0.84rem; color: var(--text-secondary); font-weight: 600;
    display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 8px;
}
.section-more:hover { color: #fff; background: rgba(255,255,255,0.06); }
.movie-row-wrap { position: relative; }
.movie-row {
    display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth;
    padding: 4px 2px 12px; scrollbar-width: none;
}
.movie-row::-webkit-scrollbar { display: none; }
.row-arrow {
    position: absolute; top: 108px; width: 34px; height: 34px; border-radius: 50%;
    background: rgba(16,24,32,0.9); color: #fff; border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center; z-index: 5;
    opacity: 0; transition: var(--transition);
}
.movie-row-wrap:hover .row-arrow { opacity: 1; }
.row-arrow:hover { background: var(--accent); border-color: var(--accent); }
.row-arrow.left { left: -6px; }
.row-arrow.right { right: -6px; }
.row-status { color: var(--text-secondary); padding: 28px 8px; font-size: 0.92rem; }

.poster-card { flex: 0 0 168px; cursor: pointer; }
.poster-card:hover { transform: translateY(-6px); }
.poster-card { transition: transform 0.25s ease; }
.poster-img-wrap {
    position: relative; aspect-ratio: 2/3; border-radius: 12px; overflow: hidden;
    background: #243044; box-shadow: var(--shadow-poster);
}
.poster-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.css-cover {
    position: absolute; inset: 0; z-index: 0;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 36px 12px 14px;
    background:
        radial-gradient(120% 80% at 15% 0%, hsla(var(--h, 210), 85%, 62%, 0.95), transparent 55%),
        linear-gradient(165deg, hsl(var(--h, 210), 42%, 26%), hsl(calc(var(--h, 210) + 36), 48%, 12%));
}
.css-cover span { align-self: flex-end; font-size: 0.72rem; letter-spacing: 0.12em; color: rgba(255,255,255,0.75); }
.css-cover strong { font-family: var(--font-heading); font-size: 1.02rem; line-height: 1.2; color: #fff; }
.rate-badge {
    position: absolute; top: 8px; left: 8px; z-index: 3;
    min-width: 34px; height: 34px; padding: 0 6px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: 0.72rem; font-weight: 800; color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}
.rate-badge.good { background: #22c55e; }
.rate-badge.mid { background: #f59e0b; }
.rate-badge.low { background: #ef4444; }
.poster-overlay {
    position: absolute; inset: 0; z-index: 2; background: rgba(0,0,0,0.28);
    opacity: 0; transition: opacity 0.25s ease;
}
.poster-card:hover .poster-overlay { opacity: 1; }
.poster-play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #111;
    display: grid; place-items: center; font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.poster-card-title {
    margin-top: 8px; font-size: 0.86rem; font-weight: 600; text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.poster-card-sub {
    text-align: center; font-size: 0.75rem; color: var(--text-muted); margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===== PROMO BANNERS ===== */
.promo {
    position: relative; min-height: 236px; border-radius: 22px; overflow: hidden;
    display: flex; align-items: center; justify-content: flex-end;
    margin: 26px 0 6px; color: #fff;
}
.promo-red { background: linear-gradient(90deg, #9f1239 0%, #e11d48 48%, #be123c 100%); }
.promo-violet { background: linear-gradient(90deg, #4c1d95 0%, #7c3aed 48%, #6d28d9 100%); }
.promo-bg-img {
    position: absolute; left: 0; top: 0; height: 100%; width: 62%;
    object-fit: cover; object-position: center left;
    -webkit-mask-image: linear-gradient(90deg, #000 36%, transparent 96%);
    mask-image: linear-gradient(90deg, #000 36%, transparent 96%);
}
.promo-body {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 22px;
    width: min(620px, 100%); padding: 22px 22px 22px 0;
}
.promo-copy { min-width: 0; }
.promo-label { font-size: 0.78rem; color: rgba(255,255,255,0.8); margin-bottom: 6px; }
.imdb-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(0,0,0,0.28); border-radius: 6px; padding: 3px 8px 3px 3px; margin-bottom: 8px;
}
.imdb-pill strong {
    background: var(--accent-gold); color: #111; border-radius: 4px;
    padding: 1px 6px; font-size: 0.85rem;
}
.imdb-pill span { color: var(--accent-gold); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; }
.promo-title { font-size: 1.55rem; line-height: 1.15; margin-bottom: 6px; }
.promo-desc {
    font-size: 0.86rem; color: rgba(255,255,255,0.86); line-height: 1.5; margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.promo-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.promo-poster {
    width: 124px; flex-shrink: 0; aspect-ratio: 2/3; position: relative;
    border-radius: 12px; overflow: hidden; box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}
.promo .btn-party { padding: 9px 14px; }

/* ===== SEARCH / BROWSE ===== */
.panel-search {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 10px 14px; margin-bottom: 16px;
}
.panel-search input {
    flex: 1; background: transparent; border: none; outline: none; color: #fff; font-size: 0.95rem;
}
.poster-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px;
}
.poster-grid .poster-card { flex: none; width: auto; }
.genre-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.genre-chip {
    padding: 6px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
    background: rgba(255,255,255,0.06); color: var(--text-secondary); border: 1px solid transparent;
}
.genre-chip.active, .genre-chip:hover { color: #fff; background: rgba(47,123,255,0.2); border-color: rgba(47,123,255,0.45); }

/* ===== CINEMA MODAL ===== */
.cinema-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.88); backdrop-filter: blur(14px);
    z-index: 3000; display: none; align-items: center; justify-content: center;
    padding: 20px; opacity: 0; transition: opacity 0.35s ease;
}
.cinema-modal-overlay.active { display: flex; opacity: 1; }
.cinema-modal {
    background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 20px;
    max-width: 1060px; width: 100%; max-height: 94vh; overflow-y: auto; position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.8);
    animation: modalIn 0.35s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes modalIn {
    0% { transform: scale(0.92) translateY(20px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-close {
    position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%;
    background: rgba(0,0,0,0.6); color: #fff; border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem; z-index: 10;
}
.modal-close:hover { background: #e53935; }
.player-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 20px 20px 0 0; overflow: hidden; }
.player-wrap iframe { width: 100%; height: 100%; border: none; }
.modal-app-banner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px; gap: 12px; flex-wrap: wrap;
    background: rgba(255,255,255,0.03); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
}
.modal-app-banner-text { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-secondary); }
.modal-body { padding: 24px; }
.source-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.source-bar-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; margin-right: 4px; }
.source-note {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--text-muted); margin: 0 2px 0 6px;
}
.source-btn {
    padding: 5px 10px; border-radius: 8px; font-size: 0.75rem; font-weight: 600;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); color: var(--text-secondary);
}
.source-btn i { margin-right: 4px; color: #ff3b30; }
.source-btn:hover, .source-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.source-btn:hover i, .source-btn.active i { color: #fff; }
.room-sources { flex: 1 1 100%; margin-bottom: 0; }
.modal-movie-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.modal-movie-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 0.85rem; color: var(--text-secondary); }
.modal-overview { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }
.party-box {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border-color);
    border-radius: 14px; padding: 18px; margin-top: 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.party-box-left { display: flex; align-items: center; gap: 12px; }
.party-box-icon {
    width: 44px; height: 44px; border-radius: 10px; background: rgba(47,123,255,0.12); color: var(--accent);
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.party-box-right { display: flex; gap: 8px; flex-wrap: wrap; }
.party-box-right input {
    background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.1);
    color: #fff; padding: 8px 14px; border-radius: 8px; font-size: 0.82rem; width: min(280px, 100%); outline: none;
}
.room-code-input {
    width: 8.2rem !important; text-align: center; letter-spacing: 2px;
    font-weight: 800; font-size: 1rem !important;
}

/* ===== APP + FOOTER ===== */
.app-section {
    margin-top: 48px; padding: 56px 0;
    border-top: 1px solid var(--border-color);
    background: radial-gradient(ellipse at center, rgba(47,123,255,0.06) 0%, transparent 70%);
}
.app-section-inner { text-align: center; max-width: 700px; margin: 0 auto; }
.app-section-inner h2 { font-size: 2rem; margin-bottom: 12px; }
.app-section-inner p { color: var(--text-secondary); margin-bottom: 24px; }
.app-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.comparison-grid {
    margin-top: 36px; background: rgba(255,255,255,0.02); border: 1px solid var(--border-color);
    border-radius: 16px; overflow: hidden; max-width: 850px; margin-left: auto; margin-right: auto;
}
.comp-row {
    display: grid; grid-template-columns: 2fr 1fr 1.3fr;
    padding: 14px 24px; align-items: center; border-bottom: 1px solid var(--border-color); font-size: 0.88rem;
}
.comp-row:last-child { border-bottom: none; }
.comp-row.header { background: rgba(255,255,255,0.03); font-weight: 700; }
.comp-feature { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.comp-good { color: var(--accent-green); font-weight: 700; display: flex; align-items: center; gap: 4px; }
.comp-bad { color: var(--text-muted); }
.w2p-footer { padding: 36px 0 24px; border-top: 1px solid var(--border-color); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 18px; font-size: 0.85rem; }
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: #fff; }
.footer-copy { text-align: center; margin-top: 20px; font-size: 0.8rem; color: var(--text-muted); }

.sticky-bar {
    position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%) translateY(120px);
    background: rgba(22,27,34,0.94); border: 1px solid rgba(47,123,255,0.3);
    backdrop-filter: blur(16px); border-radius: 999px; padding: 10px 10px 10px 18px;
    display: flex; align-items: center; gap: 12px; z-index: 2500;
    transition: transform 0.4s ease; max-width: 92%;
}
.sticky-bar.visible { transform: translateX(-50%) translateY(0); }
.sticky-bar-text { font-size: 0.86rem; white-space: nowrap; }
.sticky-bar-close { color: var(--text-muted); padding: 4px 8px; }
.sticky-bar-close:hover { color: #fff; }

/* ===== AUTH / ROOM ===== */
.auth-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card {
    width: 100%; max-width: 420px; background: var(--bg-surface);
    border: 1px solid var(--border-color); border-radius: 18px; padding: 32px;
}
.auth-title { font-size: 1.7rem; margin-bottom: 6px; }
.auth-subtitle { color: var(--text-secondary); margin-bottom: 22px; }
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 0.82rem; margin-bottom: 6px; color: var(--text-secondary); }
.form-input {
    width: 100%; background: #0f1520; border: 1px solid rgba(255,255,255,0.1);
    color: #fff; border-radius: 10px; padding: 12px 14px; outline: none;
}
.form-input:focus { border-color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; font-weight: 700; }
.btn-primary { background: var(--accent); color: #fff; padding: 12px 18px; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.16); color: #fff; border-radius: 12px; }
.btn-premium-glow { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; border-radius: 12px; font-weight: 700; }
.auth-footer { margin-top: 16px; text-align: center; color: var(--text-secondary); font-size: 0.9rem; }
.auth-footer a { color: var(--accent); }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: #fff; }
.logo span { color: var(--accent); }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.72); z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-content { background: var(--bg-surface); border-radius: 16px; padding: 28px; max-width: 460px; width: 100%; border: 1px solid var(--border-color); }
.modal-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin: 0 auto 12px; font-size: 1.3rem; }

@media (max-width: 1024px) {
    .nav-center { display: none; }
    .hero-slider { height: 440px; }
    .poster-card { flex: 0 0 150px; }
    .hero-content { width: min(380px, 52%); }
}
@media (max-width: 768px) {
    .nav-search-box { display: none; }
    .nav-join input { width: 108px; }
    .hero-slider { height: 520px; width: calc(100% - 20px); margin-top: 78px; }
    .hero-content { left: 16px; right: 16px; top: auto; bottom: 48px; transform: none; width: auto; }
    .hero-side-text, .row-arrow { display: none; }
    .pill-ghost span { display: none; }
    .promo { min-height: 0; }
    .promo-body { flex-direction: column-reverse; align-items: flex-start; padding: 18px; width: 100%; }
    .promo-bg-img { width: 100%; height: 48%; -webkit-mask-image: linear-gradient(#000 20%, transparent); mask-image: linear-gradient(#000 20%, transparent); }
    .promo-poster { width: 104px; }
    .poster-card { flex: 0 0 132px; }
    .comp-row { grid-template-columns: 1.4fr 0.8fr 1.1fr; font-size: 0.78rem; padding: 10px 12px; }
    .sticky-bar-text { display: none; }
}
@media (max-width: 480px) {
    .nav-search-box { display: none; }
    .poster-card { flex: 0 0 42vw; }
}

/* ===== WATCH ROOM ===== */
body.room-app { height: 100vh; overflow: hidden; background: #0d141c; }
.lobby[hidden], .theater[hidden], [hidden] { display: none !important; }
.lobby {
    min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.lobby-card {
    width: min(440px, 100%); background: #1c2838; border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px; padding: 28px;
}
.lobby-card h1 { font-size: 1.7rem; margin-bottom: 6px; }
.lobby-lead { color: var(--text-secondary); margin-bottom: 16px; font-size: 0.92rem; }
.lobby-movie { color: #fff; font-weight: 700; margin-bottom: 14px; }
.lobby-split {
    display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--text-muted); font-size: 0.78rem;
}
.lobby-split::before, .lobby-split::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,0.08); }
.lobby-join { display: flex; gap: 8px; }
.lobby-join .form-input { text-transform: uppercase; letter-spacing: 1px; }
.lobby-join .btn { padding: 0 16px; }
.lobby-back { display: inline-block; margin-top: 16px; color: var(--text-secondary); font-size: 0.85rem; }
.theater { height: 100vh; display: flex; flex-direction: column; }
.theater-bar {
    height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06); flex-shrink: 0;
}
.theater-title {
    flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.theater-tools { display: flex; align-items: center; gap: 8px; }
.role-badge {
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
    padding: 4px 8px; border-radius: 999px; background: rgba(47,123,255,0.18); color: #9ec2ff;
}
.room-code {
    display: inline-flex; align-items: center; gap: 8px; border-radius: 999px;
    padding: 8px 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    font-weight: 800; letter-spacing: 1px;
}
.room-code:hover { border-color: var(--accent); }
.theater-main { flex: 1; min-height: 0; display: flex; }
.stage-col { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 12px; gap: 10px; }
.stage {
    position: relative; flex: 1; min-height: 240px; background: #000; border-radius: 16px; overflow: hidden;
}
.stage iframe, .yt-slot, .yt-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.splash {
    position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 16px; padding: 22px;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.78)),
        #152033;
}
.splash img { width: 92px; aspect-ratio: 2/3; object-fit: cover; border-radius: 10px; box-shadow: 0 10px 24px rgba(0,0,0,0.4); }
.splash h2 { font-size: 1.5rem; margin-bottom: 4px; }
.splash p { color: rgba(255,255,255,0.75); max-width: 460px; }
.countdown {
    position: absolute; inset: 0; z-index: 3; display: grid; place-items: center;
    background: rgba(0,0,0,0.55); font-family: var(--font-heading);
    font-size: 7rem; font-weight: 800;
}
.host-controls, .guest-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.movie-pick { position: relative; flex: 1; min-width: 200px; }
.movie-pick input {
    width: 100%; background: #0f1620; border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; color: #fff; padding: 9px 12px; outline: none;
}
.movie-pick input:focus { border-color: var(--accent); }
.movie-results {
    position: absolute; z-index: 6; left: 0; right: 0; top: calc(100% + 6px);
    background: #1c2838; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
    max-height: 260px; overflow: auto; box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.movie-result {
    display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
    padding: 8px 10px; color: #fff;
}
.movie-result:hover { background: rgba(47,123,255,0.16); }
.movie-result img { width: 32px; height: 48px; object-fit: cover; border-radius: 4px; background: #243246; }
.movie-empty { padding: 10px 12px; color: var(--text-muted); font-size: 0.82rem; }
.btn-watch:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.source-label, .sync-status { color: var(--text-muted); font-size: 0.8rem; }
.guest-note { color: var(--text-secondary); font-size: 0.86rem; justify-content: space-between; }
.side {
    width: 320px; flex-shrink: 0; display: flex; flex-direction: column;
    border-left: 1px solid rgba(255,255,255,0.06); background: #141c27; min-height: 0;
}
.side-head { padding: 12px 14px; font-size: 0.82rem; color: var(--text-secondary); border-bottom: 1px solid rgba(255,255,255,0.06); }
.people { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; max-height: 150px; overflow: auto; }
.person { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; }
.person img { width: 28px; height: 28px; border-radius: 50%; background: #243246; }
.chat-log { flex: 1; overflow: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-line { font-size: 0.86rem; }
.chat-line strong { display: block; font-size: 0.72rem; color: #9ec2ff; margin-bottom: 2px; }
.chat-line p { background: rgba(255,255,255,0.05); border-radius: 10px; padding: 7px 10px; }
.chat-line.mine p { background: rgba(47,123,255,0.2); }
.chat-line.system { color: var(--text-muted); font-size: 0.78rem; text-align: center; }
.chat-line.system p { background: none; padding: 0; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid rgba(255,255,255,0.06); }
.chat-form input {
    flex: 1; background: #0f1620; border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; color: #fff; padding: 10px 12px; outline: none;
}
.chat-form button {
    width: 42px; border-radius: 10px; background: var(--accent); color: #fff;
}
@media (max-width: 900px) {
    body.room-app { height: auto; overflow-x: hidden; overflow-y: auto; }
    .theater { height: auto; min-height: 100vh; }
    .theater-bar { height: auto; flex-wrap: wrap; padding: 10px 12px; }
    .theater-tools { width: 100%; justify-content: flex-start; }
    .theater-main { flex-direction: column; }
    .stage-col { padding: 8px; }
    .stage { min-height: 220px; aspect-ratio: 16/9; flex: none; }
    .side { width: 100%; height: 420px; border-left: 0; border-top: 1px solid rgba(255,255,255,0.06); }
    .theater-title { display: none; }
    .movie-pick { min-width: 0; flex-basis: 100%; }
}
