@import url('./assets/fonts/fonts.css');

:root {
  color-scheme: dark;
  --bg: #090909;
  --surface: #141414;
  --surface-raised: #1c1c1c;
  --line: #ffffff14;
  --line-strong: #ffffff2a;
  --muted: #aaa69f;
  --text: #f4f1e9;
  --red: #e50914;
  --accent: #e50914;
  --font-body: 'Outfit', Arial, sans-serif;
  --font-heading: 'Outfit', Arial, sans-serif;
  --type-label: .875rem;
  --type-meta: .75rem;
  --page-gutter: clamp(24px, 5vw, 88px);
  font-family: var(--font-body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #393633 var(--bg); }
::selection { background: #e5091466; color: #fff; }
textarea, input { caret-color: #ff535b; }
.card-meta, .hero-meta, .detail-meta { font-variant-numeric: tabular-nums; }
p { text-wrap: pretty; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; border: 0; background: none; }
button:disabled { cursor: not-allowed; opacity: .45; }
button, a { transition: color .18s, background .18s, border-color .18s, opacity .18s, transform .18s; }
a { color: inherit; text-decoration: none; }
button svg, a svg { display: inline-block; width: 19px; height: 19px; vertical-align: middle; flex-shrink: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid #f25159; outline-offset: 4px; }
input, textarea, select { color-scheme: dark; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -80px; left: 24px; z-index: 500; padding: 12px 18px; background: var(--text); color: #111; border-radius: 6px; }
.skip-link:focus { top: 12px; }

/* A small personal identity, with a generous, quiet frame. */
.site-header { position: relative; z-index: 25; display: flex; align-items: center; gap: 64px; min-height: 96px; padding: 0 var(--page-gutter); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.wordmark { display: block; font-family: var(--font-heading); font-size: 26px; line-height: .95; font-weight: 700; letter-spacing: -1px; }
.wordmark > span { display: block; margin-top: 8px; padding-left: 2px; font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 3.6px; color: #b4b3ae; }
.header-nav { display: flex; align-items: center; gap: 32px; align-self: stretch; }
.header-nav button { position: relative; min-height: 44px; padding: 0; font-size: 14px; font-weight: 450; color: var(--muted); white-space: nowrap; }
.header-nav button:hover { color: var(--text); }
.header-nav button.active, .header-nav button[aria-current=page] { color: var(--text); font-weight: 550; }
.header-nav button.active:after, .header-nav button[aria-current=page]:after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-actions button { display: grid; place-items: center; width: 40px; height: 40px; padding: 10px; border: 1px solid transparent; border-radius: 50%; color: #979793; }
.header-actions button:hover { color: var(--text); border-color: var(--line-strong); background: #ffffff05; }
.header-actions .voice-toggle.active, .header-actions .voice-toggle[aria-pressed=true] { color: #ff636a; }
main { min-height: calc(100svh - 96px); outline: none; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 11px; border-radius: 8px; color: #a6a6a0; }
.icon-button:hover { background: #ffffff0c; color: var(--text); }

/* Mood first; the artwork is an invitation, not wallpaper. */
.mood-home { max-width: 1600px; margin: 0 auto; padding: 44px var(--page-gutter) 0; }
.home-stage { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(40px, 6vw, 104px); min-height: min(700px, calc(100svh - 235px)); }
.home-copy { min-width: 0; padding: 20px 0 32px; }
.home-title { margin: 0 0 24px; font-family: var(--font-heading); font-size: clamp(52px, 5.1vw, 76px); line-height: 1.05; font-weight: 650; letter-spacing: -.03em; text-wrap: balance; }
.home-title em { font-style: normal; color: #f12a35; }
.home-intro { max-width: 400px; margin: 0 0 28px; color: #a5a39d; font-size: 16px; line-height: 1.75; letter-spacing: -.1px; }
.mood-form { width: 100%; padding: 18px 20px 16px; border: 1px solid #ffffff26; border-radius: 12px; background: #141414; transition: border-color .2s, box-shadow .2s; }
.mood-form:focus-within { border-color: #9d3b41; box-shadow: none; }
.composer-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.composer-label { color: #aaa69d; font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.composer-voice { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin: -10px -5px -10px 0; padding: 10px 5px; color: #a6a49e; font-size: 12px; }
.composer-voice svg { width: 15px; height: 15px; }
.composer-voice:hover { color: var(--text); }
.composer-voice.listening { color: #ff747b; animation: voice-pulse 1.1s infinite; }
.mood-form textarea { display: block; width: 100%; min-width: 0; height: 87px; min-height: 87px; max-height: 160px; margin: 0; padding: 18px 0 12px; border: 0; outline: none !important; resize: vertical; background: none; color: var(--text); font-size: 17px; line-height: 1.6; letter-spacing: -.3px; box-shadow: none; }
.mood-form textarea::placeholder { color: var(--muted); opacity: 1; }
.composer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.composer-hint { color: var(--muted); font-size: 12px; }
.composer-submit { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 14px; border-radius: 6px; background: var(--red); color: #fff; font-size: 14px; font-weight: 550; white-space: nowrap; }
.composer-submit svg { width: 15px; height: 15px; }
.composer-submit:hover { background: #f32631; }
.voice-status { margin: 0; color: #a3a099; font-size: 14px; line-height: 1.6; }
.voice-status:not(:empty) { margin-top: 10px; }
.voice-status.error { color: #ff9298; }
.mood-chips { display: flex; gap: 7px; margin-top: 12px; }
.mood-chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 1; min-height: 44px; padding: 10px 8px; border: 1px solid #ffffff12; border-radius: 6px; color: #adaba4; font-size: 12px; white-space: nowrap; }
.mood-chip:hover { border-color: #ffffff35; background: #ffffff04; color: var(--text); }
.mood-symbol { display: inline-flex; color: #cecbc2; }
.mood-symbol svg { width: 14px; height: 14px; }
.mood-chip.active { border-color: #9a333a; color: #fff; background: #261014; }
.home-decisions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding: 7px 0; color: #a6a49d; font-size: 14px; line-height: 1.5; }
.text-button svg { width: 16px; height: 16px; }
.text-button:hover { color: var(--text); }
.home-decisions > .text-button { color: var(--text); font-weight: 500; }
.home-decisions > .text-button svg { color: #e82c36; }
.surprise-choice { display: flex; flex-direction: column; align-items: flex-start; }
.surprise-choice > .text-button { min-height: 28px; padding: 3px 0; color: #c2bfb7; }
.surprise-choice > .text-button svg { width: 14px; height: 14px; }
.random-type { display: inline-flex; gap: 0; margin-left: 20px; }
.random-type button { min-height: 40px; padding: 8px 7px; color: var(--muted); font-size: 14px; }
.random-type button:hover { color: #c4c1b8; }
.random-type button.active { color: #e5e0d6; }
.cinema-art { position: relative; display: block; width: 100%; height: clamp(500px, 44vw, 660px); min-width: 0; padding: 0; overflow: hidden; border: 1px solid #ffffff1b; border-radius: 12px; background: #242429; text-align: left; isolation: isolate; }
.art-feature { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; text-align: left; }
.art-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 73% center; transition: transform 1s cubic-bezier(.2,.65,.3,1); }
.cinema-art:hover .art-backdrop { transform: scale(1.035); }
.art-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, #0004 0%, transparent 38%, #0001 55%, #000b 100%); }
.art-caption { text-align: left; position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 32px; }
.art-category { display: block; margin-top: 12px; margin-bottom: 0; color: #e1dfd6b3; font-size: 12px; letter-spacing: .02em; }
.art-caption strong { display: block; font-family: var(--font-heading); font-size: clamp(32px, 3.2vw, 52px); line-height: 1.05; font-weight: 500; letter-spacing: -.025em; }
.art-link { display: flex; align-items: center; gap: 10px; margin-top: 15px; color: #e1ded4; font-size: 12px; }
.art-link svg { width: 14px; height: 14px; transition: transform .2s; }
.cinema-art:hover .art-link svg { transform: translateX(4px); }
.home-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; padding: 17px 0 22px; border-top: 1px solid var(--line); }
.home-signoff { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.home-signoff > span { color: var(--red); font-size: 24px; line-height: 1; }
.home-signoff svg { width: 19px; height: 19px; color: var(--red); }
.home-footer .text-button { color: #bbb8b1; font-size: 14px; }
.home-footer .text-button:hover { color: var(--text); }
.home-results { max-width: 1600px; margin: 0 auto; padding: 20px var(--page-gutter) 56px; }
.mood-home.has-results { padding-top: 40px; }
.has-results .home-stage { grid-template-columns: 1fr; min-height: 0; }
.has-results .home-copy { display: grid; grid-template-columns: 1fr 1.1fr; column-gap: 48px; align-items: start; padding-bottom: 0; }
.has-results .home-title { grid-column: 1; grid-row: 1; font-size: clamp(38px, 4.3vw, 64px); }
.has-results .home-intro { display: none; }
.has-results .mood-form { grid-column: 2; grid-row: 1 / span 3; }
.has-results .voice-status { grid-column: 2; }
.has-results .mood-chips, .has-results .cinema-art, .has-results .home-footer { display: none; }
.has-results .home-decisions { grid-column: 1; grid-row: 2; margin-top: 0; justify-content: flex-start; gap: 30px; }
.results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.results-grid .poster-button { aspect-ratio: 1.65; }
.results-grid .card-title { font-family: var(--font-heading); font-size: 21px; letter-spacing: -.7px; }
.results-grid .card-meta { font-size: 12px; }
.results-grid .card-reason { max-width: 350px; font-size: 12px; line-height: 1.75; }
.result-note { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

/* Collection: strong artwork, legible information, two useful actions. */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-family: var(--font-heading); font-size: 27px; line-height: 1.25; font-weight: 500; letter-spacing: -.8px; }
.section-head > button, .section-head > a, .section-head > span { color: #98958e; font-size: 14px; white-space: nowrap; }
.section-head > button:hover, .section-head > a:hover { color: var(--text); }
.title-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px 20px; }
.title-card { position: relative; min-width: 0; }
.poster-button { position: relative; display: block; width: 100%; padding: 0; aspect-ratio: 2/3; overflow: hidden; border: 1px solid #ffffff0d; border-radius: 12px; background: #191919; text-align: left; }
.poster-button img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.25,1), filter .3s; }
.result-card.poster-only .poster-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(20px) brightness(.4); transform: scale(1.15); }
.result-card.poster-only .poster-image { position: relative; object-fit: contain; padding: 0; }
.result-card.poster-only .poster-button:hover .poster-fill { filter: blur(20px) brightness(.35); transform: scale(1.15); }
.poster-button:hover img { transform: scale(1.035); filter: brightness(.72); }
.poster-hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 9px; color: #fff; font-size: 12px; font-weight: 500; opacity: 0; transition: opacity .2s; }
.poster-hover svg { width: 18px; height: 18px; }
.poster-hover span { padding: 8px 12px; border-radius: 4px; background: #0009; color: #fff; font-size: 12px; }
.poster-button:hover .poster-hover, .poster-button:focus-visible .poster-hover { opacity: 1; }
.card-heading { display: flex; align-items: flex-start; gap: 6px; margin-top: 10px; }
.card-actions { display: flex; gap: 1px; margin: -2px -4px 0 0; flex-shrink: 0; }
.mini-action { display: grid; place-items: center; width: 27px; height: 27px; padding: 6px; border: 1px solid transparent; border-radius: 50%; color: var(--muted); opacity: 1; }
.mini-action svg { width: 15px; height: 15px; }
.title-card:hover .mini-action, .title-card:focus-within .mini-action, .mini-action[aria-pressed=true] { opacity: 1; }
.mini-action[aria-pressed=true], .mini-action.loved { border-color: #9c3036; color: #f7656d; background: #281013; }
.mini-action:hover { border-color: #ffffff30; color: var(--text); background: #20201e; }
.card-title { display: block; flex: 1; min-width: 0; min-height: 22px; margin-top: 0; padding: 0; color: #e4e0d7; font-size: 15px; font-weight: 500; letter-spacing: -.15px; text-align: left; }
.card-title:hover { color: #fff; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 4px; color: var(--muted); font-size: 12px; }
.card-reason { margin: 11px 0 0; color: #a09c93; font-size: 12px; line-height: 1.7; }
.seen-badge svg { width: 11px; height: 11px; margin-right: 3px; }
.seen-badge { position: absolute; bottom: 10px; left: 10px; padding: 4px 7px; border: 1px solid #ffffff2e; border-radius: 4px; background: #111d; color: #eeebe2; font-size: 12px; }
.browse-page { padding-bottom: 56px; }
.browse-hero { position: relative; display: flex; align-items: center; min-height: 500px; height: min(44vw, 650px); margin-bottom: 12px; overflow: hidden; background: #171719; }
.hero-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 35%; }
.browse-hero:after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #090909ed, #09090990 40%, transparent 75%), linear-gradient(0deg, #090909, transparent 45%); pointer-events: none; }
.hero-content { position: relative; z-index: 1; width: min(680px, 62%); padding: 50px var(--page-gutter); }
.hero-content h1 { margin: 24px 0 18px; font-family: var(--font-heading); font-size: clamp(48px, 5vw, 80px); line-height: 1; font-weight: 500; letter-spacing: -.03em; }
.hero-content p { max-width: 380px; margin: 20px 0 25px; color: #b6b2aa; font-size: 16px; line-height: 1.85; }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; color: #b8b4aa; font-size: 12px; }
.browse-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 36px; padding: 0 var(--page-gutter); }
.tabs { display: inline-flex; align-items: center; gap: 26px; }
.tab { min-height: 48px; padding: 10px 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; font-weight: 450; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { border-color: var(--red); color: var(--text); }
.browse-search { display: flex; align-items: center; gap: 10px; width: 280px; max-width: 45%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 7px; background: #141414; }
.browse-search:focus-within { border-color: #a13d44; }
.browse-search svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.browse-search input { width: 100%; min-width: 0; border: 0; outline: none; background: none; color: var(--text); font-size: 14px; }
.browse-search input::placeholder { color: var(--muted); }
.catalog-section { margin: 36px 0 46px; padding: 0 var(--page-gutter); }
.title-row { display: flex; gap: 20px; padding: 0 0 16px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #33332f transparent; scroll-snap-type: x proximity; }
.title-row .title-card { flex: 0 0 calc((100vw - 2 * var(--page-gutter) - 100px) / 6); scroll-snap-align: start; }
.title-row::-webkit-scrollbar { height: 3px; }
.title-row::-webkit-scrollbar-thumb { border-radius: 4px; background: #33332f; }
.browse-page > .title-grid, .browse-page > .empty-state { margin: 0 var(--page-gutter); }
.browse-page > .section-head { margin: 0 var(--page-gutter) 24px; }
.online-search { padding: 24px var(--page-gutter); }
.online-search .title-grid { margin-top: 24px; }
.search-heading { font-family: var(--font-heading); font-size: 29px; letter-spacing: -.8px; font-weight: 500; }
.page-content { padding: 0 var(--page-gutter) 48px; }
.page-home, .page-browse, .page-settings { padding: 0; }
.page-heading { padding: 56px 0 32px; }
.page-heading h1 { margin: 0 0 10px; font-family: var(--font-heading); font-size: 44px; line-height: 1.2; font-weight: 500; letter-spacing: -.03em; }
.page-heading p { margin: 0; color: #969188; font-size: 12px; }
.page-seen > .text-button { margin-top: 24px; }
.empty-state { margin: 20px auto; padding: 64px 24px; border: 1px solid var(--line); border-radius: 10px; background: #101010; text-align: center; }
.empty-state p { max-width: 440px; margin: 0 auto 22px; color: #a49f94; font-size: 15px; line-height: 1.8; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 12px 19px; border: 1px solid var(--line-strong); border-radius: 6px; background: #20201f; color: var(--text); font-size: 14px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.button:hover { border-color: #ffffff50; background: #2c2b29; }
.button.primary { border-color: var(--red); background: var(--red); color: #fff; }
.button.primary:hover { border-color: #f62732; background: #f62732; }
.button.secondary { background: #ffffff06; color: #ccc6bb; }
.button.secondary:hover { background: #ffffff0e; color: #fff; }
.button.secondary.selected { border-color: #ffffff55; color: #fff; }
.button.small { min-height: 38px; padding: 9px 13px; font-size: 14px; }

/* Detail and taste panels carry the same typography and restrained surfaces. */
dialog.detail-dialog, dialog#modal { position: fixed; inset: 0; width: min(800px, calc(100vw - 40px)); max-width: none; max-height: 90dvh; margin: auto; padding: 0; overflow: auto; border: 0; border-radius: 13px; background: #141414; color: var(--text); box-shadow: 0 30px 130px #000b; }
dialog.detail-dialog::backdrop, dialog#modal::backdrop { background: #000c; backdrop-filter: blur(8px); }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; padding: 11px; border: 1px solid #ffffff35; border-radius: 50%; background: #111d; color: #eee9de; }
.modal-close:hover { border-color: #ffffff75; background: #30302d; }
.modal-close svg { width: 17px; height: 17px; }
.detail-art { position: relative; display: block; width: 100%; height: 245px; overflow: hidden; background: #20201f; mask-image: linear-gradient(#000 35%, transparent 100%); }
.detail-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.detail-body { position: relative; padding: 0 34px 34px; }
.detail-top { position: relative; display: flex; align-items: flex-end; gap: 24px; min-height: 120px; margin-top: -48px; }
.detail-poster { width: 105px; aspect-ratio: 2/3; object-fit: cover; border: 1px solid var(--line-strong); border-radius: 6px; flex-shrink: 0; }
.detail-top > div { flex: 1; min-width: 0; padding-bottom: 3px; }
.detail-top h2 { margin: 0 0 12px; font-family: var(--font-heading); font-size: 34px; line-height: 1.1; font-weight: 500; letter-spacing: -.03em; }
.detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: #a29c91; font-size: 12px; }
.genre-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.genre-tags span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; color: #a8a196; font-size: 12px; }
.detail-summary { margin: 24px 0; color: #b6afa3; font-size: 16px; line-height: 1.85; }
.detail-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 24px 0; }
.episode-picker { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin: 20px 0 24px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff03; }
.episode-picker label { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 100px; color: #a7a094; font-size: 12px; }
.episode-picker select, .episode-picker input { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: #111; color: var(--text); font-size: 14px; }
.rating-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.rating-button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 6px; color: #a8a196; font-size: 14px; }
.rating-button:hover { border-color: #ffffff55; color: var(--text); }
.rating-button.selected, .rating-button[aria-pressed=true] { border-color: #b62b34; background: #2c1013; color: #ffb2b8; }
.detail-note { margin: 20px 0; }
.detail-note textarea { width: 100%; min-height: 96px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 7px; resize: vertical; background: #1a1a19; color: var(--text); font-size: 14px; line-height: 1.75; }
.detail-note textarea::placeholder { color: var(--muted); }
.detail-note .button { margin-top: 12px; }
.detail-sections { display: grid; gap: 8px; margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); }
.detail-sections details { padding: 14px 0; border-bottom: 1px solid var(--line); }
.detail-sections summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 32px; list-style: none; color: #b3ac9e; font-size: 12px; cursor: pointer; }
.detail-sections summary::-webkit-details-marker { display: none; }
.detail-sections summary:after { content: '+'; font-size: 18px; color: var(--muted); }
.detail-sections details[open] summary:after { content: '−'; }
.detail-sections details[open] summary { margin-bottom: 20px; color: var(--text); }
.detail-sections p { margin: 12px 0; color: #a39b8d; font-size: 12px; line-height: 1.75; }
.source-form { display: grid; gap: 12px; }
.source-form label { color: #b0a697; font-size: 12px; }
.source-form input, .source-form select { width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 6px; background: #1a1a19; color: var(--text); font-size: 14px; }
.source-form .detail-buttons { margin-top: 0; }
.source-form .error, .error-text { color: #f58e97; }
.settings-page { max-width: 1000px; margin: 0 auto; padding: 0 var(--page-gutter) 64px; }
.settings-card { padding: 26px 0; border-bottom: 1px solid var(--line); }
.settings-card:first-of-type { padding-top: 4px; }
.settings-card h2 { margin: 0 0 9px; font-family: var(--font-heading); font-size: 21px; line-height: 1.35; font-weight: 500; letter-spacing: -.4px; }
.settings-card p { max-width: 670px; margin: 8px 0 16px; color: #9d9588; font-size: 16px; line-height: 1.8; }
.settings-card summary { min-height: 36px; cursor: pointer; font-size: 13px; color: #c3bbac; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 0; }
.setting-row > div { min-width: 0; }
.setting-row label { color: #d0c6b5; font-size: 13px; }
.setting-row p { margin: 5px 0 0; font-size: 16px; }
.setting-row input[type=range] { width: 200px; max-width: 45%; accent-color: var(--red); }
.switch { appearance: none; position: relative; width: 42px; height: 25px; padding: 0; border: 1px solid var(--line-strong); border-radius: 20px; background: #33332f; cursor: pointer; flex-shrink: 0; }
.switch:before { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #c3b9a5; transition: transform .2s, background .2s; }
input.switch:checked { border-color: var(--red); background: var(--red); }
input.switch:checked:before { transform: translateX(17px); background: #fff; }
.setting-row .text-button + .text-button { margin-left: 18px; }
.hint { color: #8b8274 !important; font-size: 12px !important; line-height: 1.7 !important; }
.taste-modal { padding: 40px 34px 34px; }
.taste-modal h2 { margin: 8px 0 16px; font-family: var(--font-heading); font-size: 36px; line-height: 1.15; font-weight: 500; letter-spacing: -.03em; }
.taste-modal p { max-width: 600px; color: #a59b8b; font-size: 13px; line-height: 1.8; }
.taste-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; margin: 28px 0; }
.taste-item { position: relative; overflow: hidden; padding: 0 0 8px; border: 2px solid transparent; border-radius: 7px; text-align: left; }
.taste-item img { display: block; width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 4px; }
.taste-item span { display: block; padding: 8px 6px 0; color: #bcb1a0; font-size: 12px; }
.taste-item.selected { border-color: var(--red); background: #281013; }
.taste-item.selected:after { content: '♥'; position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; }
.taste-item:hover img { filter: brightness(.85); }
.taste-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.tag { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 8px 13px; border: 1px solid var(--line-strong); border-radius: 20px; color: #aaa08f; font-size: 14px; white-space: nowrap; }
.tag:hover { border-color: #ffffff55; color: var(--text); }
.tag.selected, .tag[aria-pressed=true] { border-color: #af2630; background: #2d1014; color: #ffc0c5; }
.modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.loading-note { padding: 36px; color: #aaa08f; font-size: 13px; line-height: 1.8; text-align: center; }
.loading-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--red); }
.error-message { padding: 16px; border: 1px solid #62232a; border-radius: 7px; background: #2c1012; color: #f39aa1; font-size: 13px; line-height: 1.7; }
#toast { position: fixed; bottom: 24px; left: 50%; z-index: 300; max-width: min(90vw, 600px); padding: 12px 20px; border: 1px solid #ffffff25; border-radius: 7px; background: var(--text); color: #151515; box-shadow: 0 5px 35px #0008; font-size: 13px; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: opacity .2s, transform .2s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
@keyframes voice-pulse { 50% { opacity: .5; } }

@media (min-width: 1600px) {
  .mood-home { padding-top: 64px; }
  .home-stage { min-height: 730px; }
  .title-row .title-card { flex-basis: calc((100vw - 2 * var(--page-gutter) - 120px) / 7); }
}
@media (max-width: 1100px) {
  :root { --page-gutter: 4vw; }
  .site-header { gap: 40px; }
  .header-nav { gap: 26px; }
  .home-stage { gap: 36px; grid-template-columns: 1.12fr .88fr; }
  .home-title { font-size: 60px; }
  .home-intro { font-size: 16px; }
  .mood-form { padding: 16px; }
  .mood-chip { gap: 5px; padding-inline: 6px; font-size: 12px; }
  .cinema-art { height: 570px; }
  .art-caption { left: 22px; right: 22px; }
.title-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 16px; }
  .title-row .title-card { flex-basis: calc((100vw - 2 * var(--page-gutter) - 64px) / 5); }
  .title-row { gap: 16px; }
}
@media (max-width: 800px) {
  .site-header { min-height: 82px; gap: 26px; }
  .brand img { width: 39px; height: 39px; }
  .wordmark { font-size: 23px; }
  .wordmark > span { margin-top: 6px; font-size: 11px; letter-spacing: 3.6px; }
  .header-nav { gap: 22px; }
  .header-nav button { font-size: 14px; }
  .header-actions { gap: 0; }
  .header-actions button { width: 36px; height: 36px; padding: 9px; }
  .mood-home { padding-top: 36px; }
  .home-stage { grid-template-columns: 1fr .8fr; gap: 26px; min-height: 0; }
  .home-copy { padding-top: 0; }
.home-title { font-size: 48px; }
  .home-intro { margin-bottom: 22px; font-size: 16px; }
  .composer-label { font-size: 14px; letter-spacing: .02em; }
  .composer-voice span, .composer-hint { display: none; }
  .composer-submit { margin-left: auto; }
  .mood-form textarea { font-size: 15px; }
  .mood-chips { flex-wrap: wrap; gap: 6px; }
  .mood-chip { flex: 1 0 45%; }
  .mood-chip:last-child { flex-basis: 100%; }
  .home-decisions { gap: 10px; margin-top: 18px; }
  .home-decisions .text-button { font-size: 14px; }
  .cinema-art { height: 550px; }
.art-caption strong { font-size: 33px; }
  .art-category { font-size: 12px; }
  .home-footer { margin-top: 20px; }
  .home-signoff { font-size: 12px; }
  .home-footer .text-button { font-size: 14px; }
  .has-results .home-copy { column-gap: 26px; }
  .has-results .home-title { font-size: 43px; }
  .results-grid { gap: 18px; }
  .results-grid .card-title { font-size: 18px; }
  .results-grid .card-reason { font-size: 12px; }
  .title-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .title-row .title-card { flex-basis: calc((100vw - 2 * var(--page-gutter) - 48px) / 4); }
  .section-head h2 { font-size: 24px; }
  .browse-hero { height: 500px; min-height: 0; }
  .hero-content { width: 70%; }
  .hero-content h1 { font-size: 55px; }
}
@media (max-width: 600px) {
  :root { --page-gutter: 22px; }
  .site-header { min-height: 120px; padding: 16px var(--page-gutter) 0; flex-wrap: wrap; column-gap: 16px; row-gap: 0; align-content: space-between; }
  .brand { height: 42px; gap: 9px; }
  .brand img { width: 40px; height: 40px; }
  .wordmark { font-size: 24px; }
  .header-actions { height: 42px; gap: 6px; }
  .header-actions button { width: 36px; height: 36px; }
  .header-nav { order: 3; width: 100%; justify-content: space-between; gap: 18px; height: 48px; }
  .header-nav button { min-height: 48px; font-size: 14px; }
  .header-nav button.active:after { bottom: 0; }
  main { min-height: calc(100svh - 120px); }
  .mood-home { padding-top: 35px; }
  .home-stage { display: flex; flex-direction: column; align-items: stretch; gap: 26px; }
  .home-copy { width: 100%; padding: 0; }
.home-title { max-width: 420px; margin-bottom: 18px; font-size: clamp(42px, 11.8vw, 60px); line-height: 1.05; letter-spacing: -.03em; }
  .home-intro { max-width: 315px; margin-bottom: 25px; font-size: 16px; line-height: 1.7; }
  .mood-form { padding: 15px; border-radius: 10px; }
  .composer-label { font-size: 14px; letter-spacing: .02em; }
  .composer-voice { min-height: 44px; padding: 10px 8px; margin-right: -8px; }
  .composer-voice span { display: inline; font-size: 14px; }
  .mood-form textarea { height: 88px; min-height: 88px; padding: 15px 0 12px; font-size: 16px; }
  .composer-hint { display: block; font-size: 12px; }
  .composer-submit { min-height: 44px; gap: 8px; padding-inline: 12px; font-size: 14px; }
  .mood-chips { flex-wrap: nowrap; gap: 7px; margin-top: 10px; margin-right: calc(-1 * var(--page-gutter)); padding-right: var(--page-gutter); overflow-x: auto; scrollbar-width: none; }
  .mood-chips::-webkit-scrollbar { display: none; }
  .mood-chip, .mood-chip:last-child { flex: 0 0 auto; min-height: 44px; gap: 7px; padding: 10px 12px; font-size: 12px; letter-spacing: -.15px; }
  .mood-symbol svg { width: 14px; height: 14px; }
  .home-decisions { margin-top: 19px; align-items: flex-start; }
  .home-decisions > .text-button { min-height: 44px; font-size: 14px; }
  .surprise-choice { align-items: flex-end; }
  .surprise-choice > .text-button { min-height: 32px; font-size: 14px; }
  .random-type { margin-left: 0; }
  .random-type button { min-height: 40px; font-size: 14px; }
  .cinema-art { height: 220px; border-radius: 9px; }
  .art-backdrop { object-position: center 44%; }
.art-caption { left: 18px; right: 18px; bottom: 22px; }
  .art-category { margin-bottom: 8px; font-size: 12px; letter-spacing: 1.6px; }
  .art-caption strong { font-size: 34px; letter-spacing: -.025em; }
  .art-link { position: absolute; right: 0; bottom: 0; margin-top: 0; gap: 7px; font-size: 12px; }
  .art-link svg { width: 13px; height: 13px; }
.home-footer { flex-wrap: wrap; gap: 8px; margin-top: 25px; padding-top: 13px; padding-bottom: 20px; }
  .home-signoff { gap: 7px; font-size: 12px; }
  .home-signoff svg { width: 15px; height: 15px; }
  .home-footer .text-button { gap: 5px; min-height: 40px; font-size: 14px; }
  .home-footer .text-button svg { width: 13px; height: 13px; }
  .mood-home.has-results { padding-top: 25px; }
  .has-results .home-copy { display: block; }
.has-results .home-title { max-width: 290px; margin-bottom: 22px; font-size: 39px; }
  .has-results .mood-form textarea { height: 67px; min-height: 67px; }
  .has-results .home-decisions { display: none; }
  .home-results { padding-top: 30px; }
  .section-head { gap: 12px; margin-bottom: 18px; align-items: center; }
  .section-head h2 { font-size: 23px; }
  .section-head > button { font-size: 14px; }
  .section-head > button svg { width: 13px; height: 13px; }
  .results-grid { grid-template-columns: 1fr; gap: 26px; }
  .results-grid .poster-button { aspect-ratio: 1.85; }
  .results-grid .card-title { font-size: 23px; }
  .results-grid .card-meta { font-size: 12px; }
  .results-grid .card-reason { margin-top: 8px; font-size: 12px; }
  .result-note { margin-top: 26px; font-size: 12px; }
  .title-card { padding-bottom: 44px; }
  .mini-action { width: 44px; height: 44px; padding: 13px; opacity: 1; }
  .card-actions { position: absolute; bottom: -3px; left: -8px; gap: 2px; margin: 0; }
  .title-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 13px; }
  .title-row { gap: 13px; margin-right: calc(-1 * var(--page-gutter)); padding-right: var(--page-gutter); }
  .title-row .title-card { flex: 0 0 42vw; }
  .card-title { margin-top: 0; font-size: 15px; }
  .card-meta { margin-top: 4px; font-size: 12px; }
  .seen-badge { font-size: 12px; }
  .browse-hero { height: 520px; margin-bottom: 6px; align-items: flex-end; }
  .hero-backdrop { object-position: 50% top; }
  .focus-arrival .hero-backdrop { object-position: 35% top; }
  .browse-hero:after { background: linear-gradient(0deg, #090909 1%, #090909e0 28%, #09090920 80%); }
  .hero-content { width: 100%; padding: 30px var(--page-gutter); }
.hero-content h1 { margin: 16px 0 14px; max-width: 340px; font-size: 48px; letter-spacing: -.03em; }
  .hero-content p { max-width: 330px; margin: 17px 0 20px; font-size: 16px; line-height: 1.8; }
  .hero-meta { gap: 8px; font-size: 12px; }
  .hero-content .detail-buttons { margin: 20px 0 0; }
  .browse-toolbar { flex-direction: column; align-items: stretch; gap: 17px; margin-bottom: 28px; }
  .tabs { gap: 28px; }
  .tab { min-height: 42px; font-size: 14px; }
  .browse-search { width: 100%; max-width: 100%; min-height: 45px; }
  .catalog-section { margin: 30px 0 36px; }
  .page-heading { padding-top: 36px; padding-bottom: 26px; }
  .page-heading h1 { font-size: 38px; }
  .empty-state { padding: 48px 20px; }
  .empty-state p { font-size: 14px; }
  dialog.detail-dialog, dialog#modal { width: calc(100vw - 24px); max-height: 93dvh; border-radius: 11px; }
  .detail-art { height: 190px; }
  .detail-body { padding: 0 20px 24px; }
  .detail-top { gap: 16px; margin-top: -34px; }
  .detail-poster { width: 79px; }
  .detail-top h2 { font-size: 27px; letter-spacing: -.03em; }
  .detail-meta { gap: 6px; font-size: 12px; }
  .genre-tags { gap: 4px; margin-top: 9px; }
  .genre-tags span { padding: 3px 5px; font-size: 12px; }
  .detail-summary { margin: 22px 0; font-size: 16px; }
  .detail-buttons { gap: 7px; }
  .detail-buttons .button { flex: 1; min-height: 43px; padding: 10px 11px; font-size: 14px; }
  .rating-buttons { gap: 6px; }
  .rating-button { flex: 1; justify-content: center; padding-inline: 8px; font-size: 14px; }
  .modal-close { top: 12px; right: 12px; width: 36px; height: 36px; padding: 9px; }
  .settings-page { padding-bottom: 45px; }
  .settings-card { padding: 21px 0; }
  .settings-card h2 { font-size: 20px; }
  .setting-row { gap: 16px; }
  .setting-row p { font-size: 16px; }
  .setting-row .button { min-height: 40px; padding: 10px 13px; font-size: 14px; }
  .setting-row .text-button { font-size: 14px; }
  .setting-row .text-button + .text-button { margin-left: 10px; }
  .setting-row input[type=range] { width: 140px; }
  .taste-modal { padding: 38px 20px 24px; }
  .taste-modal h2 { max-width: 270px; font-size: 31px; }
  .taste-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 9px; margin-top: 24px; }
  .taste-item span { padding-inline: 3px; font-size: 12px; }
  .taste-tags { gap: 6px; }
  .tag { min-height: 37px; padding: 8px 10px; font-size: 14px; }
  #toast { bottom: 18px; width: max-content; padding: 11px 15px; font-size: 12px; }
}
@media (max-width: 360px) {
  :root { --page-gutter: 18px; }
  .home-title { font-size: 45px; }
  .composer-hint { display: none; }
  .mood-chip { font-size: 12px; }
  .home-footer { flex-direction: column; align-items: flex-start; gap: 0; }
  .header-nav { gap: 16px; }
  .header-nav button { font-size: 14px; }
}
@media (hover: none) {
  .mini-action { opacity: 1; }
  .composer-voice, .random-type button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.ai-reply { max-width: 65ch; margin: -8px 0 26px; color: #ddd; font-size: 16px; line-height: 1.6; }
.ai-notice { margin: -8px 0 24px; color: #aaa; font-size: 13px; line-height: 1.6; }
.composer-submit:disabled { opacity: .6; cursor: progress; }
