/* ==========================================================================
   PurrCine v1.6 — "Plain Cinema"
   A clean, modern streaming layout. Loaded LAST.
   - Neutral dark surfaces, white primary buttons, ONE blue accent
   - One typeface (Inter), sentence-case labels, no letter-spaced caps
   - No gradients, no glow, no outlined-box decoration, no emoji chrome
   ========================================================================== */

:root {
  --bg: #0a0a0b; --bg-soft: #0e0e10;
  --surface: #141416; --surface-2: #1b1b1e; --surface-3: #242428;
  --line: rgba(255,255,255,.07); --line-strong: rgba(255,255,255,.14);
  --text: #f4f4f5; --muted: #a1a1aa; --muted-2: #71717a;
  --gold: #7aa2ff; --gold-soft: #a5c0ff;      /* legacy names → the single accent */
  --violet: #6f97f5; --violet-soft: #a5c0ff;
  --accent: #7aa2ff;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 12px 32px -12px rgba(0,0,0,.6);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --v3-ink: #0a0a0b; --v3-glass: #141416; --v3-glass-strong: #141416;
  --v3-stroke: rgba(255,255,255,.07); --v3-stroke-strong: rgba(255,255,255,.14);
  --v3-glow: none; --v3-grad: #7aa2ff; --v3-grad-soft: rgba(122,162,255,.10);
  --v4-r-sm: 8px; --v4-r-md: 10px; --v4-r-lg: 14px; --v4-r-xl: 16px;
  --v4-hair: rgba(255,255,255,.07); --v4-hair-2: rgba(255,255,255,.14); --v4-line: rgba(255,255,255,.06); --v4-elev: none;

  --peach: #7aa2ff; --butter: #a5c0ff; --lilac: #8aa8ff; --lilac-deep: #5b86e8; --mint: #6ee7b7;
  --card: #141416; --card-solid: #141416; --cute-shadow: none;
}

/* ======================= 1. generated: every old gradient → solid ======================= */
/* from style.css */
body::before { background: #08080c; }
.btn-primary { background: var(--gold); }
.btn-violet { background: var(--violet); }
.hero-bg::after { background: #08080c; }
.card-shade { background: rgba(0,0,0,.72); }
.detail-backdrop::after { background: #08080c; }
.room-cta { background: rgba(122,162,255,.07); }
/* Profile */
.profile-head { background: rgba(18,18,24,.7); }
.room-card { background: rgba(18,18,24,.7); }
.member-avatar { background: var(--gold); }
.plan-card.featured { background: rgba(18,18,24,.8); }
.skeleton { background: var(--surface); }
@media (max-width: 800px) {
  .hero-bg::after { background: rgba(8,8,12,.9); }
}
.content-card { background: rgba(18,18,24,.7); }
.content-cta { background: rgba(111,151,245,.08); }
/* Vouchers */
.voucher-box { background: rgba(111,151,245,.05); }
/* Downloads */
.download-gate { background: rgba(111,151,245,.06); }
.download-bar span { background: var(--violet); }
/* ---------- Voice bar ---------- */
.voice-bar { background: rgba(18,18,24,.7); }
.voice-bar.is-on { background: rgba(18,18,24,.7); }
.voice-person .voice-avatar { background: var(--gold); }
.invite-avatar { background: var(--gold); }
/* from room-v2.css */
/* ------------------------------------------------------------------ shared */
.glass-card { background: rgba(255, 255, 255, .015); }
.rooms-hero { background: rgba(14, 14, 21, .92); }
.rooms-hero::after { background-image: none; background-color: rgba(255, 255, 255, .12); mask-image: none; }
.rooms-hero-copy h1 em { background: var(--lilac); }
.hero-paw-row i { background: var(--peach); }
.art-blob { background: rgba(111, 151, 245, .12); }
.art-screen { background: #121019; }
.art-screen::before { background: rgba(255, 255, 255, .035); }
.cat-face { background: #f7e6d2; }
.art-popcorn::before { background: #fff; }
.art-card { background: rgba(255, 255, 255, .04); }
.card-icon { background: rgba(124, 231, 192, .18); }
.privacy-option input:checked + .privacy-card { background: rgba(165, 192, 255, .08); }
.how-step b { background: var(--peach); }
.live-chip.active { background: var(--peach); }
.room-card-shade { background: rgba(8, 8, 12, .9); }
.avatar-stack-item { background: var(--mint); }
.avatar-stack-item:nth-child(2n) { background: var(--peach); }
.room-open:hover { background: var(--peach); }
.room-hero { background: rgba(13, 13, 19, .9); }
.player-loading { background: rgba(0, 0, 0, .86); }
/* Countdown + reactions */
.countdown-overlay { background: rgba(5, 5, 8, .88); }
/* Sync dock */
.sync-dock { background: rgba(11, 11, 16, .9); }
.sync-btn-main { background: var(--lilac-deep); }
.sync-btn-cute { background: var(--peach); }
.info-emoji { background: rgba(124, 231, 192, .16); }
.chat-avatar { background: var(--mint); }
.chat-msg:nth-child(2n) .chat-avatar { background: var(--peach); }
.chat-form button { background: var(--peach); }
.member-avatar { background: var(--mint); }
.member-row:nth-child(2n) .member-avatar { background: var(--peach); }
.host-tag { background: var(--peach); }
/* Voice bar + mic */
.voice-bar { background: rgba(14, 14, 20, .7); }
.voice-bar.is-on { background: rgba(14, 14, 20, .7); }
.voice-person .voice-avatar { background: var(--mint); }
.mic-meter i.on { background: var(--mint-deep); }
/* from v3.css */
:root { --v3-grad: #5ee0a0; --v3-grad-soft: rgba(94,224,160,.14); }
/* ---------------------------------------------------------------- backdrop */
/* v1.4 "Aurora Stage" — crisp, HD, no grain / noise / grid texture.
   The canvas paints smooth gradient fields + 1px geometry. The CSS layer
   below is only a deep-ink base with two very wide, very soft colour washes
   so the page still has depth if the canvas is disabled. */
.purr-bg { background: #06060a; }
.purr-bg-vignette { background: rgba(4,4,8,.42); }
/* ------------------------------------------------------------------ header */
.site-header { background: rgba(9,9,14,.42); }
.btn-primary { background: #5b86e8; }
.btn-primary::before { background: rgba(255,255,255,.55); }
.btn-violet { background: #6d3ff0; }
.hero-bg::after { background: rgba(7,7,11,.55); }
.movie-card::after { background: rgba(165,192,255,.18); }
/* --------------------------------------------------------------- AI Drama */
.drama-hero { background: var(--v3-glass); }
.drama-poster { background: #6d3ff0; }
.drama-poster::after { background: rgba(255,255,255,.28); }
.drama-stage::before { background: rgba(255,255,255,.12); }

/* ======================= 2. base ======================= */
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { background: transparent; color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.6; -webkit-tap-highlight-color: transparent; }
body::before, body::after { display: none !important; content: none; }
.purr-bg { background: var(--bg); }
.purr-bg-vignette, #purr-ambient { display: none; }
.purr-progress { display: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; }
::selection { background: var(--accent); color: #0a0a0b; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.container { width: min(1280px, calc(100% - 48px)); }
.section { padding: 28px 0; }
.section + .section { padding-top: 0; }
.section-tight { padding: 16px 0; }
.eyebrow { display: inline-flex; color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.eyebrow::before { display: none; }
.muted { color: var(--muted); }
.grad-text { background: none; color: var(--text); -webkit-background-clip: border-box; background-clip: border-box; }
.page-loader { background: var(--bg); }
.loader-mark { border-top-color: #fff; border-right-color: rgba(255,255,255,.25); }

/* ======================= 3. header ======================= */
.site-header, .site-header.is-scrolled {
  background: rgba(10,10,11,.9); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line); box-shadow: none; padding-top: env(safe-area-inset-top, 0px);
}
.nav-wrap { width: min(1280px, calc(100% - 48px)); height: 64px; gap: 28px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: none; }
.brand-word { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.brand-word span { color: var(--muted); }
.main-nav { gap: 2px; height: auto; }
.main-nav a { height: auto; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: 0; background: none; box-shadow: none; }
.main-nav a::after { display: none; }
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a.active { color: var(--text); background: var(--surface-2); box-shadow: none; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; background: transparent; border: 0; color: var(--muted); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); transform: none; }
.user-trigger { border: 0; background: transparent; border-radius: 10px; padding: 3px 8px 3px 3px; }
.user-trigger:hover { background: var(--surface-2); }
.user-trigger img { width: 30px; height: 30px; border-radius: 50%; }
.plan-dot.paid { background: var(--accent); box-shadow: none; }
.user-dropdown, .notif-dropdown { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow); }
.user-dropdown .admin-link { color: var(--accent); }
.notif-badge { background: var(--accent); color: #0a0a0b; box-shadow: 0 0 0 2px var(--bg); }
.search-overlay { background: rgba(10,10,11,.85); backdrop-filter: none; }
.search-panel { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; }
.mobile-nav { background: var(--bg); border-bottom: 1px solid var(--line); }
.mobile-nav a { font-size: 15px; padding: 12px; border-radius: 8px; }

/* ======================= 4. buttons ======================= */
.btn { min-height: 40px; padding: 0 18px; border: 0; border-radius: 10px; font-size: 14px; font-weight: 600; letter-spacing: 0; box-shadow: none; transition: background .15s, color .15s, opacity .15s; }
.btn:hover, .btn:active { transform: none; box-shadow: none; }
.btn-primary { background: #fff; color: #0a0a0b; }
.btn-primary:hover { background: #d9d9de; }
.btn-primary::before { display: none; }
.btn-violet { background: var(--violet); color: #fff; }
.btn-violet:hover { background: #8aa8ff; }
.btn-ghost { background: var(--surface-3); color: var(--text); border: 0; }
.btn-ghost:hover { background: #2f2f35; }
.btn-ghost.is-saved, .detail-actions .btn.is-saved { background: var(--surface-3); color: var(--accent); border: 0; }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { min-height: 46px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.purr-ripple { display: none; }

/* ======================= 5. hero: image banner, title beneath ======================= */
.hero, .hero.hero-carousel {
  width: min(1280px, calc(100% - 48px)); margin: 20px auto 0; min-height: 0; padding: 0;
  display: block; background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible;
}
.hero::after { display: none; }
.hero-slides { display: grid; position: relative; min-height: 0; }
.hero-slide {
  grid-area: 1 / 1; position: relative; inset: auto; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; min-height: 0; background: none; isolation: auto; transition: opacity .5s ease, visibility .5s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slide .hero-bg { position: relative; inset: auto; z-index: 0; aspect-ratio: 21 / 9; width: 100%; border: 0; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transform: none; filter: none; animation: none; }
.hero-bg::after { display: none; }
.hero-slide .container { width: 100%; padding: 0; display: block; }
.hero-slide .hero-content {
  max-width: none; padding: 22px 0 0; animation: none;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; align-items: end;
}
.hero-slide .hero-content > * { grid-column: 1; }
.hero-slide .hero-content > .hero-actions { grid-column: 2; grid-row: 1 / span 4; align-self: end; }
.hero-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.hero-kicker .eyebrow { background: var(--surface-3); color: var(--text); padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.hero-title { font-size: clamp(26px, 3.2vw, 42px); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 8px; max-width: none; text-shadow: none; }
.hero-tagline { color: var(--text); font-family: var(--font); font-style: normal; font-weight: 500; font-size: 15px; letter-spacing: 0; margin: 0 0 6px; opacity: .9; }
.hero-overview { color: var(--muted); font-size: 14.5px; line-height: 1.65; max-width: 64ch; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn-lg { min-height: 44px; padding: 0 20px; font-size: 14px; border-radius: 10px; }
.hero-nav, .hero-side-note { display: none; }
.hero .hero-dots { position: absolute; top: 14px; right: 14px; left: auto; bottom: auto; z-index: 6; display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; background: rgba(10,10,11,.7); }
.hero-dots button.hero-dot { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.4); transition: width .25s, background .25s; }
.hero-dots button.hero-dot.active { width: 18px; border-radius: 3px; background: #fff; }
.hero-dot span { display: none; }

/* ======================= 6. sections + rails ======================= */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 14px; padding: 0; border: 0; }
.section-head .eyebrow { display: none; }
.section-head > div:first-child { padding: 0; min-height: 0; }
.section-title { font-size: 20px; font-weight: 650; letter-spacing: -.015em; line-height: 1.25; }
.section-title span { color: var(--muted-2); font-weight: 500; }
.section-link { padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; white-space: nowrap; flex: none; }
.section-link:hover { color: var(--text); background: none; border: 0; gap: 8px; }
.movie-row { grid-auto-columns: minmax(150px, 176px); gap: 16px; padding: 2px 0 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.movie-row::-webkit-scrollbar { display: none; }
.movie-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 24px 16px; }
.section-compact .section-title { font-size: 16px; }
.section-compact .movie-row { grid-auto-columns: minmax(112px, 124px); gap: 12px; }
.section-compact .card-body h3 { font-size: 12.5px; }
.section-compact .card-poster { border-radius: 8px; }
.section-compact .card-play { width: 34px; height: 34px; font-size: 11px; }

.row-wrap { position: relative; }
.row-arrow { position: absolute; top: calc(50% - 40px); z-index: 5; width: 40px; height: 40px; border-radius: 50%; background: rgba(10,10,11,.92); border: 1px solid var(--line-strong); color: var(--text); font-size: 22px; line-height: 1; display: grid; place-items: center; padding-bottom: 3px; opacity: 0; pointer-events: none; transition: opacity .2s, background .15s, color .15s; }
.row-arrow.prev { left: -12px; } .row-arrow.next { right: -12px; }
.row-wrap:hover .row-arrow.is-on { opacity: 1; pointer-events: auto; }
.row-arrow:hover { background: #fff; color: #0a0a0b; }

/* ======================= 7. cards ======================= */
.movie-card, .poster-card, .drama-card { transform: none !important; }
.card-poster { border-radius: 10px; background: var(--surface-2); box-shadow: none; }
.card-poster::after { border: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.card-poster img { transition: transform .4s cubic-bezier(.22,1,.36,1); }
.movie-card:hover .card-poster img { transform: scale(1.04); filter: none; }
.movie-card::after { display: none; }
.card-shade { background: rgba(10,10,11,.4); opacity: 0; }
.movie-card:hover .card-shade { opacity: 1; }
.card-play { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #0a0a0b; font-size: 13px; }
.card-badge { top: 8px; left: 8px; padding: 3px 8px; border: 0; border-radius: 6px; background: rgba(10,10,11,.85); backdrop-filter: none; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.card-body { display: flex; flex-direction: column; padding: 10px 34px 0 2px; }
.card-body h3 { order: 1; font-family: var(--font); font-size: 14px; font-weight: 500; letter-spacing: 0; line-height: 1.35; padding: 0; }
.card-body h3 a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.card-meta { order: 2; margin: 2px 0 0; gap: 8px; font-size: 12px; font-weight: 400; color: var(--muted-2); }
.rating-pill { background: none; border: 0; padding: 0; border-radius: 0; color: var(--muted); font-size: 12px; font-weight: 500; }
.watchlist-mini { top: 8px; bottom: auto; right: 0; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 15px; }
.watchlist-mini:hover { background: #fff; color: #0a0a0b; border: 0; }
.watchlist-mini.is-saved { background: var(--accent); color: #0a0a0b; border: 0; }
.genre-strip { gap: 8px; scrollbar-width: none; }
.genre-chip, .chip { padding: 7px 14px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 500; transition: background .15s, color .15s; }
.genre-chip:hover, .chip:hover { background: var(--surface-3); color: var(--text); transform: none; border: 0; }
.genre-chip.active, .genre-chip.active:hover { background: #fff; color: #0a0a0b; border: 0; }
.type-pill { border-radius: 8px; }
.type-pill.active, .pagination a:hover, .pagination .current { background: #fff; color: #0a0a0b; border-color: #fff; }

/* ======================= 8. panels, forms, page headers ======================= */
.panel, .content-card, .download-card, .download-side, .filter-bar, .drama-card, .auth-card, .room-card, .plan-card,
.payment-box, .admin-panel, .player-shell, .source-panel, .voucher-box, .download-gate, .profile-head, .content-cta, .room-cta, .voice-bar {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.panel:hover, .content-card:hover, .room-card:hover, .plan-card:hover { transform: none; border-color: var(--line-strong); }
.plan-card.featured { border-color: var(--accent); background: var(--surface); }
.content-cta, .voucher-box, .download-gate { border-color: var(--line-strong); }
.page-hero, .detail-hero { background: none; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; }
.page-hero { padding: 36px 0 12px; }
.page-hero h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -.03em; margin: 6px 0 8px; }
.page-hero p { font-size: 15px; }
.filter-bar { padding: 12px; border-radius: 12px; margin: 20px 0 24px; }
.select, .input, textarea.input { background: var(--surface-2); border: 1px solid transparent; border-radius: 10px; min-height: 42px; font-size: 14px; }
.select:focus, .input:focus, textarea.input:focus { border-color: var(--accent); box-shadow: none; }
.field label { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.pagination a, .pagination span { border-radius: 8px; }
.tab-nav button.active, .tab-nav a.active { color: #fff; border-bottom-color: #fff; }
.list-row, .cast-card, .source-preview-item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.flash { background: var(--surface-2); border-radius: 10px; }
.skeleton { background: var(--surface-2); animation: skPulse 1.2s ease-in-out infinite; }
@keyframes skPulse { 50% { opacity: .5; } }
.progress-track i { background: #fff; }
.download-bar span { background: #fff; }
.divider { letter-spacing: 0; }

/* detail + watch */
.detail-backdrop::after { background: rgba(10,10,11,.8); }
.detail-backdrop img { opacity: .3; filter: none; }
.detail-poster { border-radius: 12px; box-shadow: none; border: 0; }
.detail-content h1 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.03em; }
.detail-actions .btn { min-height: 44px; }
.source-tab { border-radius: 8px; background: var(--surface-2); border-color: transparent; color: var(--muted); }
.source-tab.active { background: var(--surface-3); border-color: var(--line-strong); color: var(--text); box-shadow: none; }
.direct-server:hover, .room-direct-item:hover { background: var(--surface-2); border-color: var(--line-strong); }
.direct-modal-card { background: var(--surface); border-radius: 16px; box-shadow: none; }
.direct-modal { backdrop-filter: none; background: rgba(10,10,11,.85); }
.player-shell { border-radius: 14px; } .player-stage { border-radius: 0; }

/* watch together + AI drama */
.rooms-hero, .room-hero, .drama-hero { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: none; }
.rooms-hero::after, .drama-stage::before, .drama-poster::after { display: none; }
.rooms-hero-copy h1 em { background: none; color: var(--accent); -webkit-text-fill-color: currentColor; }
.room-card-shade { background: rgba(10,10,11,.6); }
.sync-dock { background: var(--surface); }
.sync-btn-main { background: var(--violet); }
.sync-btn-cute { background: #fff; color: #0a0a0b; }
.countdown-overlay { background: rgba(10,10,11,.92); }
.drama-poster { background: var(--drama-bg, #3a4a7a); }
.drama-stage { background: var(--surface); box-shadow: none; border: 1px solid var(--line); border-radius: 16px; }
.drama-card:hover { box-shadow: none; border-color: var(--line-strong); }
.drama-badge { background: var(--surface-2); border: 0; border-radius: 6px; letter-spacing: 0; text-transform: none; }

/* ======================= 9. footer ======================= */
.site-footer { background: none; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 40px; padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-grid h4 { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); }
.footer-grid h4::before { display: none; }
.footer-grid a:not(.brand) { font-size: 14px; color: var(--muted); transition: color .15s; }
.footer-grid a:not(.brand):hover { color: var(--text); transform: none; }
.footer-brand p { font-size: 14px; }
.footer-bottom { font-size: 12.5px; }

/* ======================= 10. responsive ======================= */
@media (pointer: coarse) {
  .btn, .btn-sm { min-height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .genre-chip { min-height: 40px; display: inline-flex; align-items: center; }
  .watchlist-mini { width: 32px; height: 32px; }
  .row-arrow { display: none; }
  .card-play { opacity: 0; }
}
@media (max-width: 1100px) {
  .nav-wrap { gap: 16px; }
  .main-nav a { padding: 8px 10px; font-size: 13.5px; }
}
@media (max-width: 900px) {
  .container, .nav-wrap, .hero, .hero.hero-carousel { width: calc(100% - 40px); }
  .hero-slide .hero-bg { aspect-ratio: 16 / 9; border-radius: 14px; }
  .hero-slide .hero-content { grid-template-columns: 1fr; row-gap: 0; padding-top: 18px; }
  .hero-slide .hero-content > .hero-actions { grid-column: 1; grid-row: auto; margin-top: 16px; }
  .hero-overview { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .watch-layout, .detail-columns, .room-layout { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 170px minmax(0, 1fr); gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .input, .select, textarea.input, .search-form input, .field .input, .field .select { font-size: 16px; }
}
@media (max-width: 600px) {
  .container, .nav-wrap, .hero, .hero.hero-carousel { width: calc(100% - 32px); }
  .nav-wrap { height: 56px; gap: 8px; }
  .section { padding: 22px 0; }
  .section-title { font-size: 18px; }
  .hero { margin-top: 12px; }
  .hero-slide .hero-bg { aspect-ratio: 16 / 10; border-radius: 12px; }
  .hero-title { font-size: 24px; }
  .hero-actions { width: 100%; gap: 8px; }
  .hero-actions .btn-lg { flex: 1 1 calc(50% - 4px); padding: 0 12px; font-size: 14px; }
  .hero-actions .btn-primary { flex-basis: 100%; }
  .movie-row { grid-auto-columns: 128px; gap: 12px; }
  .section-compact .movie-row { grid-auto-columns: 108px; }
  .movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 18px 12px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-poster { max-width: 170px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .filter-bar form { flex-direction: column; align-items: stretch; }
  .filter-bar .input, .filter-bar .select { width: 100% !important; }
  .page-hero { padding: 22px 0 8px; }
  .auth-card { padding: 22px; }
}
@media (max-width: 380px) {
  .hero-title { font-size: 22px; }
  .movie-row { grid-auto-columns: 118px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}
@media (max-height: 480px) and (orientation: landscape) { .hero-slide .hero-bg { aspect-ratio: 21 / 8; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ======================= 11. fixes ======================= */
.movie-card:hover, .poster-card:hover, .movie-card:focus-within { box-shadow: none !important; outline: 0; }
.hero-slide .hero-bg { max-height: 440px; }
.hero-kicker .rating-pill { background: none; border: 0; color: var(--muted); padding: 0; }
.section-tight:first-of-type { padding-top: 20px; }
main > .section-tight:first-child { padding-top: 22px; }

/* phone/tablet: beat legacy !important rules from v3.css */
main > .section-tight:first-child { padding-top: 32px; }
@media (max-width: 900px) {
  .hero-slide .hero-content { padding: 18px 0 0 !important; }
  .section-head { flex-direction: row !important; align-items: baseline !important; gap: 12px; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 26px !important; }
  .hero-actions .btn { flex: 1 1 calc(50% - 4px); }
  .hero-actions .btn-primary { flex-basis: 100%; }
}
@media (max-width: 380px) { .hero-title { font-size: 23px !important; } }
