/* ---- Layout (structure) ---- */

.poster { width: 56px; height: 84px; border-radius: 8px; object-fit: cover; background: var(--bg-2); flex: none; }
.poster.big { width: 96px; height: 144px; border-radius: 10px; }
.poster.ph { display: grid; place-items: center; font-size: 1.6rem; }
.title-card { display: flex; gap: 12px; padding: 10px; align-items: stretch; text-align: left; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.title-card .meta { color: var(--text-3); font-size: 0.85rem; }
.title-card .grow { min-width: 0; }
.title-card h3 { margin: 0 0 2px; font-size: 1.02rem; }
.stars { letter-spacing: 1px; white-space: nowrap; }
.stars .off { opacity: 0.25; filter: grayscale(1); }
.star-row { display: flex; gap: 2px; }
.star-row button { font-size: 1.9rem; line-height: 1; padding: 4px; background: none; border: 0; border-radius: 8px; min-width: 44px; min-height: 44px; }
.star-row button.off { opacity: 0.3; filter: grayscale(1); }
.star-row.ro button { pointer-events: none; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); margin: 2px 4px 2px 0; }
.tag.stream { background: var(--sage-soft); color: var(--sage); }
.section-label { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); margin: 14px 2px 6px; }
.rater { padding: 8px 0; border-top: 1px solid var(--line); }
.rater:first-child { border-top: 0; }
.reactions { display: flex; gap: 6px; flex-wrap: wrap; }
.reactions button { font-size: 1.6rem; background: var(--card-2); border: 2px solid transparent; border-radius: 12px; min-width: 48px; min-height: 48px; }
.reactions button.on { border-color: var(--primary); background: var(--primary-soft); }
.pick-card { text-align: center; padding: 18px; }
.pick-card .poster { margin: 0 auto 10px; }
.idea { padding: 10px 0; border-top: 1px solid var(--line); }
.idea:first-child { border-top: 0; }
.night { display: flex; gap: 12px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.season-row { display: grid; grid-template-columns: 1fr 74px 74px 52px 36px; gap: 6px; align-items: center; margin-bottom: 8px; }
.season-row .input { min-height: 40px; padding: 0 8px; }

/* Movie Night: a retro movie-theater look. Always dark: marquee bulbs, ticket stubs, hard drop shadows, 70s stripes.
   Overrides the household base styles by redefining its variables. */

:root:root:root {
  --bg: #1a0f24; --bg-2: #251634; --card: #2e1b3d; --card-2: #382250;
  --line: #4d3068; --line-strong: #7a4fa3;
  --text: #fbeed4; --text-2: #dcc8a8; --text-3: #b39d92;
  --primary: #ff6a3d; --primary-ink: #1a0f24; --primary-soft: #4b2a3a;
  --sage: #2ec4b6; --sage-ink: #07201e; --sage-soft: #1b3d44;
  --warn: #ff6b81; --warn-soft: #4a2230; --gold: #ffc93c; --gold-soft: #4a3b1c;
  --shadow: 3px 3px 0 #000; --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.7);
  --font-head: 'Bungee', 'Arial Black', sans-serif;
  --font-body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Courier Prime', 'Courier New', monospace;
  --star: #ffc93c;
  color-scheme: dark;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 50% -20%, rgba(255, 106, 61, 0.22), transparent 60%),
    radial-gradient(rgba(255, 201, 60, 0.06) 1px, transparent 1px);
  background-size: auto, 22px 22px;
  background-attachment: fixed;
}
/* faint scanlines */
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 90;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.13) 0 1px, transparent 1px 3px); opacity: 0.5; }

h1, h2, h3 { font-weight: 400; letter-spacing: 0.02em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 0.98rem; }
a { color: var(--gold); }
.muted, .small, .tiny { font-family: var(--font-body); }

/* ---- Marquee header ---- */
.app-header { background: #12091a; border-bottom: 0; position: sticky; top: 0; z-index: 20; padding-bottom: 6px; }
.app-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 14px; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #ffe28a 0 3px, rgba(255, 201, 60, 0.35) 4px, transparent 6px) 0 0 / 22px 14px repeat-x; }
.app-header h1 { color: var(--gold); text-shadow: 2px 2px 0 #c2410c, 0 0 14px rgba(255, 106, 61, 0.6); }
.app-header .logo { filter: drop-shadow(0 0 6px rgba(255, 201, 60, 0.7)); }
main { padding-top: 22px; }

/* ---- Tab bar with 70s stripes ---- */
.tabbar { grid-template-columns: repeat(5, 1fr); background: #12091a; border-top: 5px solid; border-image: linear-gradient(90deg, #ff6a3d 0 33.3%, #ffc93c 33.3% 66.6%, #2ec4b6 66.6%) 1; box-shadow: none; }
.tabbar a { font-family: var(--font-head); font-size: 0.56rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
.tabbar a.active { color: var(--gold); text-shadow: 0 0 10px rgba(255, 201, 60, 0.7); }
.tabbar .emo { font-size: 1.3rem; line-height: 1; filter: grayscale(0.6); }
.tabbar a.active .emo { filter: none; }
:root { --tabbar-h: calc(66px + var(--safe-bottom)); }

/* ---- Buttons, chips, inputs ---- */
.btn { border-radius: 10px; border: 2px solid var(--text); background: var(--card); box-shadow: 3px 3px 0 #000; font-family: var(--font-head); font-weight: 400; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.btn.primary { background: var(--primary); border-color: #ffd9a8; color: #1a0f24; }
.btn.ghost { box-shadow: none; border-color: transparent; }
.btn.danger { border-color: var(--warn); }
.btn.small { font-size: 0.72rem; }
.chip { border-radius: 8px; border: 2px solid var(--line-strong); background: transparent; font-family: var(--mono); font-weight: 700; color: var(--text-2); }
.chip.on { background: var(--gold); border-color: var(--gold); color: #1a0f24; box-shadow: 2px 2px 0 #000; }
.input, select.input, textarea.input { background: #1f1230; border: 2px solid var(--line-strong); border-radius: 8px; font-family: var(--font-body); }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 201, 60, 0.25); }
.seg { border-radius: 10px; }
.card { background: var(--card); border: 2px solid var(--line-strong); border-radius: 10px; box-shadow: 3px 3px 0 #000; }
.card.flat { box-shadow: none; }
.banner { border-radius: 8px; border: 2px solid var(--line-strong); }
.section-label { font-family: var(--mono); color: var(--gold); letter-spacing: 0.12em; }
.section-title h2 { color: var(--gold); }

/* ---- Sheets ---- */
.sheet { background: var(--bg-2); border-top: 4px solid var(--gold); border-radius: 18px 18px 0 0; }
.sheet .grab { background: var(--line-strong); }
.sheet-head h2 { color: var(--gold); }
.scrim { background: rgba(8, 3, 14, 0.7); }
.toast { background: var(--gold); color: #1a0f24; border: 2px solid #000; border-radius: 8px; box-shadow: 3px 3px 0 #000; font-weight: 700; }

/* ---- Ticket-stub title cards ---- */
.title-card { position: relative; overflow: visible; gap: 14px; padding: 12px 16px 12px 12px; border: 0; border-radius: 6px; margin-bottom: 14px;
  background: linear-gradient(#f6e8c9, #efdcb4); color: #2b1a35; box-shadow: 4px 4px 0 #000; --text-3: #6f5a62; --text-2: #4a3a50; --primary: #c2410c; }
.title-card::before, .title-card::after { content: ''; position: absolute; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--bg); }
.title-card::before { left: -10px; }
.title-card::after { right: -10px; }
.title-card .poster { border: 2px solid #2b1a35; border-radius: 3px; box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35); }
.title-card .grow { border-left: 2px dashed rgba(43, 26, 53, 0.35); padding-left: 12px; }
.title-card h3 { color: #2b1a35; font-size: 0.95rem; }
.title-card .meta { font-family: var(--mono); color: #6f5a62; font-size: 0.8rem; }
.title-card .stars { filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.35)); }

.poster { border-radius: 4px; }
.poster.ph { background: #3b2552; }
.tag { border-radius: 4px; font-family: var(--mono); background: var(--primary-soft); color: #ffb08f; }
.tag.stream { background: var(--sage-soft); color: #7fe3d8; }
.star-row button.off { opacity: 0.35; }
.reactions button { border-radius: 10px; }
.reactions button.on { border-color: var(--gold); background: var(--gold-soft); }
.rater { border-top-color: var(--line); }
.pick-card { border-radius: 10px; }
.night { background: #f6e8c9; color: #2b1a35; border-radius: 6px; box-shadow: 4px 4px 0 #000; position: relative; --text-3: #6f5a62; border: 0; }
.night .muted, .night .small { color: #6f5a62; }
.night strong { font-family: var(--font-head); font-weight: 400; }

/* ---- Login ---- */
.login .logo { font-size: 4rem; filter: drop-shadow(0 0 14px rgba(255, 106, 61, 0.8)); }
.login h1 { color: var(--gold); text-shadow: 3px 3px 0 #c2410c, 0 0 22px rgba(255, 106, 61, 0.55); font-size: 2rem; }

/* ---- Swipe ---- */
.swipe-view { display: flex; flex-direction: column; }
.swipe-count { display: flex; justify-content: center; gap: 14px; font-family: var(--mono); font-weight: 700; font-size: 0.85rem; color: var(--text-2); margin-bottom: 8px; }
.deck-wrap { position: relative; }
.deck { position: relative; width: min(100%, 360px, calc((100dvh - 350px) * 0.667)); aspect-ratio: 2 / 3; margin: 0 auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.swipe-card { position: absolute; inset: 0; border-radius: 10px; background: #f6e8c9; padding: 8px; box-shadow: 5px 5px 0 #000; overflow: hidden; cursor: grab; will-change: transform; transition: transform 0.18s ease; }
.swipe-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; pointer-events: none; background: #3b2552; }
.swipe-info { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 36px 12px 10px; border-radius: 0 0 4px 4px; color: #fff4dc; pointer-events: none;
  background: linear-gradient(transparent, rgba(12, 5, 20, 0.92) 55%); }
.swipe-title { font-family: var(--font-head); font-size: 1.15rem; line-height: 1.15; text-shadow: 2px 2px 0 #000; }
.swipe-meta { font-family: var(--mono); font-weight: 700; font-size: 0.85rem; color: var(--gold); margin-top: 2px; }
.swipe-overview { display: none; font-size: 0.82rem; margin-top: 6px; max-height: 8.5em; overflow: hidden; }
.swipe-card.open .swipe-overview { display: block; }
.swipe-card.open .swipe-info { background: rgba(12, 5, 20, 0.9); top: 8px; padding-top: 14px; border-radius: 4px; }
.stamp { position: absolute; top: 28px; padding: 4px 12px; border: 4px solid; border-radius: 8px; font-family: var(--font-head); font-size: 1.6rem; opacity: 0; pointer-events: none; background: rgba(12, 5, 20, 0.35); }
.stamp.seen { left: 18px; color: #2ec4b6; border-color: #2ec4b6; transform: rotate(-14deg); }
.stamp.not { right: 18px; color: #ff6b81; border-color: #ff6b81; transform: rotate(14deg); }
.stamp.want { left: 50%; top: 24px; color: #ffc93c; border-color: #ffc93c; transform: translateX(-50%) rotate(-4deg); }
.swipe-actions { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 18px; }
.swipe-btn { width: 68px; height: 68px; border-radius: 50%; border: 3px solid #000; font-family: var(--font-head); font-size: 1.9rem; line-height: 1; display: grid; place-items: center; box-shadow: 4px 4px 0 #000; cursor: pointer; color: #1a0f24; }
.swipe-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
.swipe-btn.no { background: #ff6b81; }
.swipe-btn.yes { background: #2ec4b6; }
.swipe-btn.want { background: #ffc93c; width: 54px; height: 54px; font-size: 1.5rem; }
.swipe-btn.small { width: 46px; height: 46px; font-size: 1.3rem; background: var(--card-2); color: var(--text); box-shadow: 3px 3px 0 #000; }
.swipe-btn:disabled { opacity: 0.35; box-shadow: none; }
.swipe-done { text-align: center; padding: 60px 16px; }
@media (prefers-reduced-motion: reduce) { .swipe-card { transition: none !important; } }
