/* creepymocha - streaming web app prototype, V2 "The Barista's Picks"
   Home is a counter, not a shelf: three picks for tonight, filtered by how you take your fear.
   Brand: V2 horror identity (void black, bone, one blood red accent, Cinzel titles). UI face: Archivo. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans Thai"; src: url("../fonts/notosansthai-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-var.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Chonburi"; src: url("../fonts/chonburi-thai.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --void: #0e0b0a;
  --ink-1: #151110;
  --ink-2: #1d1816;
  --ink-3: #272120;
  --bone: #ede6d8;
  --bone-2: #b9b1a5;
  --ash: #8a817a;
  --red: #c0141c;
  --red-hi: #d81b24;
  --red-text: #f0454b;
  --roast: #2b1611;
  --line: rgba(237, 230, 216, 0.12);
  --line-2: rgba(237, 230, 216, 0.22);
  --ui: "Archivo", "Noto Sans Thai", "Helvetica Neue", Arial, sans-serif;
  --th: "Noto Sans Thai", "Archivo", "Leelawadee UI", Tahoma, sans-serif;
  --title: "Cinzel", "Chonburi", Georgia, serif;
  --gutter: clamp(16px, 3.2vw, 56px);
  --r: 8px;
  --top: 64px;
  --out: cubic-bezier(0.16, 1, 0.3, 1);
}
:root:lang(th) { --ui: "Noto Sans Thai", "Archivo", "Leelawadee UI", Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); color-scheme: dark; -webkit-text-size-adjust: 100%; scrollbar-color: #3a3230 var(--void); scrollbar-width: thin; }
html.lock { overflow: hidden; }
body { margin: 0; overflow-x: clip; background: var(--void); color: var(--bone); font-family: var(--ui); font-size: 16px; line-height: 1.5; font-weight: 400; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; caret-color: var(--red-text); }
::selection { background: var(--red); color: var(--bone); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: #3a3230; border-radius: 10px; border: 2px solid var(--void); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic--fill { fill: currentColor; stroke: none; }
.lk { --h: 30px; display: inline-flex; align-items: flex-start; gap: calc(var(--h) * var(--lk-gap, 0.12)); color: var(--bone); }
.lk svg { fill: currentColor; height: var(--h); width: auto; }
.lk .lk__word { height: calc(var(--h) * var(--lk-word, 0.89)); margin-top: calc(var(--h) * var(--lk-word-y, 0.18)); }
svg.sym, svg.word { fill: currentColor; }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--r); font-weight: 600; font-size: 15px; white-space: nowrap; transition: background-color 0.2s var(--out), color 0.2s var(--out), border-color 0.2s var(--out); }
.btn .ic { width: 18px; height: 18px; }
.btn--play { background: var(--red); color: var(--bone); }
.btn--play:hover { background: var(--red-hi); }
.btn--line { border: 1px solid var(--line-2); color: var(--bone); }
.btn--line:hover { border-color: var(--bone); }
.btn--sm { height: 36px; padding: 0 12px; font-size: 14px; }
.btn--sq { width: 44px; padding: 0; }
.btn--sq.btn--sm { width: 36px; }
.btn[aria-pressed="true"] { border-color: var(--bone); background: var(--ink-3); }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); transition: background-color 0.2s var(--out); }
.iconbtn:hover { background: var(--ink-2); }

/* ------------------------------------------------------------------ top bar */
.top { position: sticky; top: 0; z-index: 30; height: var(--top); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 0 var(--gutter); background: rgba(14, 11, 10, 0.94); border-bottom: 1px solid var(--line); }
.top__brand { justify-self: start; }
.tabs { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.tabs a { position: relative; height: var(--top); display: grid; place-items: center; font-size: 15px; font-weight: 500; color: var(--bone-2); transition: color 0.2s var(--out); }
.tabs a:hover { color: var(--bone); }
.tabs a[aria-current="page"] { color: var(--bone); font-weight: 600; }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); }
.top__acts { justify-self: end; display: flex; align-items: center; gap: 6px; }
.lang { height: 32px; min-width: 40px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--bone-2); }
.lang:hover { color: var(--bone); border-color: var(--bone); }
.me { position: relative; margin-left: 6px; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; background: var(--red); color: var(--bone); }
.avatar svg { height: 64%; width: auto; fill: currentColor; }
.me__menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; padding: 6px; border-radius: 10px; background: var(--ink-2); border: 1px solid var(--line); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.7); display: none; }
.me[data-open] .me__menu { display: grid; }
.me__who { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-weight: 600; }
.me__who .avatar { width: 28px; height: 28px; }
.me__menu a { padding: 10px; border-radius: 6px; font-size: 14px; color: var(--bone-2); }
.me__menu a:hover { background: var(--ink-3); color: var(--bone); }

main { min-height: calc(100svh - var(--top)); }
main:focus { outline: none; }
.wrap { padding: 0 var(--gutter); }
.h2 { font-family: var(--title); font-weight: 700; font-size: clamp(22px, 2vw, 30px); line-height: 1.15; }
.lead { color: var(--bone-2); }
.sect { padding: clamp(40px, 5vw, 72px) var(--gutter) 0; }
.sect__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.more { font-size: 14px; font-weight: 600; color: var(--red-text); }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* fear meter: five drawn cups */
.fear { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--bone-2); }
.fear__cups { display: inline-flex; gap: 2px; }
.fear__cups .ic { width: 16px; height: 16px; color: #4a403c; }
.fear__cups .ic.is-on { color: var(--red-text); fill: currentColor; }
.with { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--bone-2); }
.with .ic { width: 16px; height: 16px; }
.meta { font-size: 13px; color: var(--ash); }

/* ------------------------------------------------------------------ TONIGHT: the counter */
.counter { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 2.6vw, 44px); padding: clamp(18px, 2vw, 28px) var(--gutter) 0; min-height: calc(100svh - var(--top) - 8px); }
.host { display: grid; grid-template-rows: minmax(220px, 1fr) auto; gap: 18px; min-height: 0; }
.host__photo { position: relative; border-radius: 12px; overflow: hidden; background: var(--ink-1); min-height: 0; }
.host__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 76% 30%; }
.host__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 11, 10, 0) 45%, rgba(14, 11, 10, 0.9) 100%); }
.host__say { position: absolute; z-index: 1; left: clamp(16px, 2vw, 28px); right: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 26px); }
.host__greet { font-family: var(--title); font-weight: 700; font-size: clamp(30px, 3.3vw, 54px); line-height: 1.05; text-wrap: balance; }
.host__line { margin-top: 10px; color: var(--bone-2); font-size: 15px; }
.order { display: grid; gap: 12px; }
.order__row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 12px; }
.order__label { font-size: 13px; font-weight: 600; color: var(--bone-2); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line-2); border-radius: var(--r); padding: 3px; gap: 3px; }
.seg button { height: 36px; border-radius: 5px; font-size: 14px; font-weight: 500; color: var(--bone-2); transition: background-color 0.2s var(--out), color 0.2s var(--out); white-space: nowrap; }
.seg button:hover { color: var(--bone); background: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--bone); color: var(--void); font-weight: 650; }

.pour { display: grid; grid-template-rows: auto 1fr; gap: 16px; min-height: 0; }
.pour__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pour__sum { margin-top: 4px; font-size: 14px; color: var(--ash); }
.pour__note { margin-top: 4px; font-size: 13px; color: var(--red-text); }
.cups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 22px); align-content: start; }
.pick { display: grid; grid-template-rows: auto 1fr; gap: 12px; opacity: 1; transform: none; transition: opacity 0.45s var(--out), transform 0.6s var(--out); }
.pick.is-out { opacity: 0; transform: translateY(14px); }
.pick__poster { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: var(--r); overflow: hidden; background: var(--ink-1); }
.pick__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--out); }
.pick__poster:hover img { transform: scale(1.03); }
.stamp { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 5px; background: var(--red); color: var(--bone); font-size: 12px; font-weight: 650; }
.stamp svg { height: 15px; width: auto; fill: currentColor; }
.pick__info { display: grid; gap: 8px; align-content: start; }
.pick__title { font-family: var(--title); font-weight: 700; font-size: clamp(17px, 1.35vw, 22px); line-height: 1.15; }
.pick__title a:hover { color: var(--red-text); }
.pick__syn { font-size: 14px; color: var(--bone-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pick__acts { display: flex; gap: 8px; margin-top: 4px; }
.pick__acts .btn--play { flex: 1; }

/* lists under the counter */
.unfinished { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px clamp(16px, 2vw, 32px); }
.uf { display: grid; grid-template-columns: 168px 1fr auto; align-items: center; gap: 16px; padding: 10px; border-radius: 10px; transition: background-color 0.2s var(--out); }
.uf:hover { background: var(--ink-1); }
.uf__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--ink-2); }
.uf__thumb img { width: 100%; height: 100%; object-fit: cover; }
.uf__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(237, 230, 216, 0.25); }
.uf__bar i { display: block; height: 100%; background: var(--red-text); }
.uf__title { font-family: var(--title); font-weight: 700; font-size: 16px; line-height: 1.2; }
.uf__ep { font-size: 13px; color: var(--ash); margin-top: 3px; }

.ranks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(5, auto); gap: 0 clamp(16px, 2vw, 32px); border-top: 1px solid var(--line); }
.rank { display: grid; grid-template-columns: 44px 52px 1fr auto; align-items: center; gap: 14px; padding: 10px 6px; border-bottom: 1px solid var(--line); transition: background-color 0.2s var(--out); }
.rank:hover { background: var(--ink-1); }
.rank__n { font-family: var(--title); font-weight: 700; font-size: 24px; color: var(--ash); text-align: center; font-variant-numeric: lining-nums; }
.rank__img { width: 52px; aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; }
.rank__img img { width: 100%; height: 100%; object-fit: cover; }
.rank__title { font-weight: 600; font-size: 15px; line-height: 1.25; }
.rank .fear { margin-top: 4px; }

.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.tile { display: grid; gap: 8px; align-content: start; }
.tile__poster { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: var(--r); overflow: hidden; background: var(--ink-1); }
.tile__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--out); }
.tile__poster:hover img { transform: scale(1.04); }
.tile__title { font-weight: 600; font-size: 15px; line-height: 1.25; }
.tile__title a:hover { color: var(--red-text); }
.orig { position: absolute; right: 8px; top: 8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; background: var(--red); color: var(--bone); }
.orig svg { height: 70%; width: auto; fill: currentColor; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: clamp(40px, 5vw, 72px) var(--gutter) 0; padding: clamp(22px, 2.6vw, 36px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta p { font-family: var(--title); font-weight: 700; font-size: clamp(20px, 1.9vw, 30px); }

/* ------------------------------------------------------------------ LIBRARY */
.lib { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); padding: clamp(20px, 2.6vw, 36px) var(--gutter) 0; align-items: start; }
.filters { position: sticky; top: calc(var(--top) + 18px); display: grid; gap: 22px; }
.search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--ink-1); }
.search:focus-within { border-color: var(--bone); }
.search .ic { color: var(--ash); width: 18px; height: 18px; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 15px; }
.search input::placeholder { color: var(--ash); }
.fgroup { display: grid; gap: 8px; }
.fgroup h3 { font-size: 13px; font-weight: 650; color: var(--bone-2); }
.opt { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 8px; border-radius: 6px; font-size: 14px; color: var(--bone-2); cursor: pointer; transition: background-color 0.2s var(--out), color 0.2s var(--out); }
.opt:hover { background: var(--ink-1); color: var(--bone); }
.opt input { appearance: none; width: 16px; height: 16px; margin: 0; border: 1.5px solid var(--ash); border-radius: 4px; display: grid; place-items: center; flex: none; }
.opt input[type="radio"] { border-radius: 999px; }
.opt input:checked { border-color: var(--red); background: var(--red); box-shadow: inset 0 0 0 3px var(--void); }
.opt input:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
.opt:has(input:checked) { color: var(--bone); }
.opt .fear__cups .ic { width: 14px; height: 14px; }
.clear { justify-self: start; font-size: 14px; font-weight: 600; color: var(--red-text); }
.lib__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.lib__head h1 { font-family: var(--title); font-weight: 700; font-size: clamp(30px, 3vw, 46px); line-height: 1.05; }
.lib__count { margin-top: 4px; color: var(--ash); font-size: 14px; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--bone-2); }
.sort select { height: 38px; padding: 0 34px 0 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--ink-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9b1a5' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; appearance: none; color: var(--bone); cursor: pointer; }
.empty { padding: 48px 0; color: var(--bone-2); }
.empty b { display: block; font-family: var(--title); font-size: 22px; color: var(--bone); margin-bottom: 6px; }
.filters-toggle { display: none; }

/* ------------------------------------------------------------------ TITLE PAGE */
.title-page { padding: clamp(18px, 2vw, 28px) var(--gutter) 0; }
.back { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 4px; margin-left: -4px; border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--bone-2); }
.back:hover { color: var(--bone); background: var(--ink-1); }
.tp { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr) minmax(240px, 320px); gap: clamp(20px, 3vw, 48px); margin-top: 14px; align-items: start; }
.tp__poster { position: relative; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: var(--ink-1); }
.tp__poster img { width: 100%; height: 100%; object-fit: cover; }
.tp__main { display: grid; gap: 16px; align-content: start; }
.tp__title { font-family: var(--title); font-weight: 800; font-size: clamp(34px, 4vw, 68px); line-height: 1.02; text-wrap: balance; }
.tp__facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--bone-2); }
.tp__facts span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 3px; background: var(--ash); vertical-align: middle; margin-right: 14px; }
.age { display: inline-grid; place-items: center; height: 22px; padding: 0 6px; border: 1px solid var(--bone-2); border-radius: 4px; font-size: 12px; font-weight: 700; color: var(--bone); }
.tp__syn { font-size: clamp(16px, 1.15vw, 18px); color: var(--bone-2); max-width: 62ch; }
.tp__acts { display: flex; gap: 10px; flex-wrap: wrap; }
.tp__genres { display: flex; flex-wrap: wrap; gap: 8px; }
.tp__genres a { font-size: 13px; color: var(--bone-2); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.tp__genres a:hover { color: var(--bone); border-color: var(--bone); }
.expect { display: grid; gap: 4px; padding: 18px; border-radius: 10px; background: var(--ink-1); border: 1px solid var(--line); }
.expect h2 { font-family: var(--title); font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.ex { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ex:last-child { border-bottom: 0; }
.ex__label { color: var(--bone-2); }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 9px; height: 9px; border-radius: 2px; background: #3a3230; }
.dots i.is-on { background: var(--red-text); }
.still { margin-top: clamp(28px, 3vw, 44px); border-radius: 12px; overflow: hidden; aspect-ratio: 21 / 8; background: var(--ink-1); }
.still img { width: 100%; height: 100%; object-fit: cover; }
.eps { border-top: 1px solid var(--line); }
.ep { width: 100%; display: grid; grid-template-columns: 34px 176px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 14px 8px; border-bottom: 1px solid var(--line); text-align: left; border-radius: 8px; transition: background-color 0.2s var(--out); }
.ep:hover { background: var(--ink-1); }
.ep__n { font-family: var(--title); font-weight: 700; font-size: 20px; color: var(--ash); text-align: center; }
.ep__thumb { aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--ink-2); }
.ep__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep__name { font-weight: 600; }
.ep__desc { font-size: 14px; color: var(--ash); margin-top: 2px; }
.ep__dur { font-size: 13px; color: var(--ash); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ PROFILES + PLANS */
.who { min-height: calc(100svh - var(--top)); display: grid; place-items: center; text-align: center; padding: 40px var(--gutter); }
.who__in { display: grid; justify-items: center; gap: 28px; }
.who h1 { font-family: var(--title); font-weight: 700; font-size: clamp(28px, 3.6vw, 56px); }
.who__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 2vw, 28px); }
.prof { display: grid; justify-items: center; gap: 10px; width: clamp(104px, 10vw, 150px); }
.prof__tile { width: 100%; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.2s var(--out); }
.prof__tile svg { height: 56%; width: auto; fill: currentColor; }
.prof:hover .prof__tile { box-shadow: inset 0 0 0 3px var(--bone); }
.prof__name { font-size: 15px; color: var(--bone-2); }
.prof:hover .prof__name { color: var(--bone); }
.prof--1 .prof__tile { background: var(--red); color: var(--bone); }
.prof--2 .prof__tile { background: var(--bone); color: var(--void); }
.prof--3 .prof__tile { background: var(--roast); color: var(--bone); }
.prof--4 .prof__tile { background: var(--ink-2); color: var(--ash); }
.prof--4 .prof__tile .ic { width: 34%; height: 34%; }

.plans-page { padding: clamp(30px, 4vw, 60px) var(--gutter) 0; display: grid; gap: 28px; }
.plans-page h1 { font-family: var(--title); font-weight: 800; font-size: clamp(32px, 3.8vw, 60px); line-height: 1.05; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.plan { display: grid; gap: 14px; align-content: start; padding: 26px clamp(16px, 2vw, 30px) 26px 0; }
.plan + .plan { padding-left: clamp(16px, 2vw, 30px); border-left: 1px solid var(--line); }
.plan h2 { font-family: var(--title); font-weight: 700; font-size: 24px; }
.plan__price { font-size: clamp(32px, 2.8vw, 44px); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan__price small { font-size: 14px; font-weight: 400; color: var(--ash); letter-spacing: 0; }
.plan ul { display: grid; gap: 9px; font-size: 14px; color: var(--bone-2); }
.plan li { display: flex; gap: 10px; }
.plan li .ic { width: 16px; height: 16px; color: var(--red-text); margin-top: 3px; }
.plan .btn { justify-self: start; }
.fine { font-size: 13px; color: var(--ash); }

/* ------------------------------------------------------------------ PLAYER (mock) */
.player { position: fixed; inset: 0; z-index: 90; background: #000; color: var(--bone); }
.player__frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.86); }
.player__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, 0.88) 100%); }
.player__top { position: absolute; left: var(--gutter); right: var(--gutter); top: 18px; display: flex; align-items: center; gap: 14px; }
.player__now { font-size: 15px; color: var(--bone-2); }
.player__now b { font-family: var(--title); font-weight: 700; color: var(--bone); font-size: 19px; margin-right: 10px; }
.player__center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 84px; height: 84px; border-radius: 999px; background: rgba(14, 11, 10, 0.5); border: 1.5px solid rgba(237, 230, 216, 0.6); transition: opacity 0.3s var(--out); }
.player.is-playing .player__center { opacity: 0; }
.player__center .ic { width: 30px; height: 30px; margin-left: 4px; }
.player__sub { position: absolute; left: 50%; bottom: 124px; transform: translateX(-50%); max-width: 82vw; text-align: center; font-family: var(--th); font-size: clamp(18px, 1.8vw, 28px); font-weight: 500; text-shadow: 0 2px 4px #000, 0 0 18px #000; }
.player__skip { position: absolute; right: var(--gutter); bottom: 118px; background: rgba(14, 11, 10, 0.6); }
.player__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 20px; display: grid; gap: 10px; }
.seek { position: relative; height: 5px; border-radius: 5px; background: rgba(237, 230, 216, 0.25); cursor: pointer; }
.seek i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: var(--red-text); }
.seek b { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 999px; background: var(--red-text); transform: translate(-50%, -50%); }
.ctl { display: flex; align-items: center; gap: 8px; }
.ctl .grow { flex: 1; }
.ctl__time { font-size: 13px; color: var(--bone-2); font-variant-numeric: tabular-nums; margin-left: 6px; }
.ctl .iconbtn:hover { background: rgba(237, 230, 216, 0.12); }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: clamp(48px, 6vw, 96px); padding: 26px var(--gutter) 34px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ash); }
.foot .lk { --h: 24px; }
.bar { display: none; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .tp { grid-template-columns: minmax(160px, 240px) minmax(0, 1fr); }
  .tp .expect { grid-column: 2; }
}
@media (max-width: 980px) {
  .counter { grid-template-columns: 1fr; min-height: 0; }
  .host { grid-template-rows: auto auto; }
  .host__photo { aspect-ratio: 16 / 10; }
  .unfinished { grid-template-columns: 1fr; }
  .lib { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters-toggle { display: inline-flex; }
  .filters[data-collapsed] .fgroup, .filters[data-collapsed] .clear { display: none; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 700px) {
  :root { --top: 56px; }
  .top { grid-template-columns: auto 1fr; }
  .tabs { display: none; }
  .top .lk__word { display: none; }
  .host__photo { aspect-ratio: 4 / 3; }
  .order__row { grid-template-columns: 1fr; gap: 6px; }
  .cups { grid-template-columns: 1fr; gap: 14px; }
  .pick { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto; gap: 14px; }
  .pick__syn { -webkit-line-clamp: 2; }
  .uf { grid-template-columns: 120px 1fr; }
  .uf .btn { display: none; }
  .ranks { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
  .rank { grid-template-columns: 34px 46px 1fr; }
  .rank .meta { display: none; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp { grid-template-columns: 1fr; }
  .tp__poster { width: min(62vw, 240px); }
  .tp .expect { grid-column: auto; }
  .ep { grid-template-columns: 26px 112px minmax(0, 1fr); }
  .ep__dur { display: none; }
  .still { aspect-ratio: 16 / 9; }
  .player__sub { bottom: 108px; }
  .player__skip { bottom: 150px; }
  body { padding-bottom: 64px; }
  .bar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: 64px; display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(14, 11, 10, 0.97); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .bar a { display: grid; justify-items: center; align-content: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--ash); }
  .bar a[aria-current="page"] { color: var(--bone); }
  .bar a[aria-current="page"] .ic { color: var(--red-text); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ================================================================== V3: the barista ritual (Brew for me)
   A full-screen take-over on entry and from the top bar: ask, three questions, brewing loader, serve, ranked results. */
.brewbtn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; margin-right: 4px; border-radius: var(--r); background: var(--red); color: var(--bone); font-size: 14px; font-weight: 600; transition: background-color 0.2s var(--out); }
.brewbtn:hover { background: var(--red-hi); }
.brewbtn .ic { width: 18px; height: 18px; }

.ritual { position: fixed; inset: 0; z-index: 80; background: #050404; color: var(--bone); overflow: hidden; }
.ritual[hidden] { display: none; }
.r__stage { position: absolute; inset: 0; }
.r__poster, .r__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; }
.r__video { opacity: 0; transition: opacity 0.6s var(--out); }
.r__video.is-ready { opacity: 1; }
.ritual[data-step="results"] .r__video, .ritual[data-step="results"] .r__poster { filter: brightness(0.45) blur(2px); transform: scale(1.03); transition: filter 0.9s var(--out), transform 1.2s var(--out); }
.r__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5, 4, 4, 0.92) 0%, rgba(5, 4, 4, 0.7) 34%, rgba(5, 4, 4, 0) 66%), linear-gradient(0deg, rgba(5, 4, 4, 0.75) 0%, rgba(5, 4, 4, 0) 40%); }
.r__exit { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: rgba(5, 4, 4, 0.55); font-size: 14px; font-weight: 600; color: var(--bone-2); transition: color 0.2s var(--out), border-color 0.2s var(--out); }
.r__exit:hover { color: var(--bone); border-color: var(--bone); }
.ritual:focus { outline: none; }
.r__brand { position: absolute; z-index: 3; top: 21px; left: var(--gutter); pointer-events: none; }
.r__brand .lk { --h: 28px; }
.r__top { position: absolute; z-index: 3; top: 16px; right: var(--gutter); display: flex; align-items: center; gap: 8px; }
.r__top .lang { height: 40px; min-width: 44px; background: rgba(5, 4, 4, 0.55); }
.r__exit .ic { width: 18px; height: 18px; }
.r__panel { position: absolute; z-index: 2; left: var(--gutter); top: 0; bottom: 0; width: min(560px, calc(100% - 2 * var(--gutter))); display: grid; align-content: center; gap: 22px; padding: 80px 0 40px; }
.ritual[data-step="results"] .r__panel { width: auto; right: var(--gutter); align-content: start; overflow-y: auto; padding-top: 76px; scrollbar-width: thin; }
.r__in { display: grid; gap: 20px; animation: r-in 0.7s var(--out) both; }
@keyframes r-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.r__step { font-size: 13px; font-weight: 600; color: var(--bone-2); }
.r__q { font-family: var(--title); font-weight: 700; font-size: clamp(30px, 3.4vw, 54px); line-height: 1.08; text-wrap: balance; }
.r__sub { color: var(--bone-2); font-size: 16px; max-width: 46ch; }
.r__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.r__acts .btn { height: 50px; padding: 0 22px; font-size: 16px; }
.r__note { font-size: 13px; color: var(--ash); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: rgba(5, 4, 4, 0.5); font-size: 15px; font-weight: 500; color: var(--bone-2); transition: background-color 0.2s var(--out), color 0.2s var(--out), border-color 0.2s var(--out); }
.chip:hover { color: var(--bone); border-color: var(--bone); }
.chip[aria-pressed="true"] { background: var(--bone); color: var(--void); border-color: var(--bone); font-weight: 650; }
.chip[aria-pressed="true"] .ic { color: var(--red); }
.chip .ic { width: 16px; height: 16px; }
.chip:not([aria-pressed="true"]) .ic { display: none; }
.choices { display: grid; gap: 8px; }
.choice { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(5, 4, 4, 0.55); text-align: left; transition: background-color 0.2s var(--out), border-color 0.2s var(--out); }
.choice:hover, .choice[aria-pressed="true"] { border-color: var(--bone); background: rgba(29, 24, 22, 0.85); }
.choice b { display: block; font-size: 16px; }
.choice small { display: block; font-size: 13px; color: var(--bone-2); margin-top: 2px; }
.choice .fear__cups .ic { width: 15px; height: 15px; }
.choice__icon { color: var(--bone-2); }
.choice__icon .ic { width: 26px; height: 26px; }

/* brewing loader: a cup that fills while the steps tick */
.brew { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 24px; }
.mug { width: 120px; height: auto; overflow: visible; }
.mug .mug__line { fill: none; stroke: var(--bone); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mug .mug__fill { fill: var(--red); transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); }
.ritual[data-step="brew"] .mug__fill { animation: fill-cup var(--brew-ms, 4200ms) cubic-bezier(0.45, 0, 0.2, 1) forwards; }
@keyframes fill-cup { to { transform: scaleY(1); } }
.mug .mug__steam { fill: none; stroke: var(--bone-2); stroke-width: 2; stroke-linecap: round; opacity: 0; }
.ritual[data-step="brew"] .mug__steam { animation: steam 1.8s ease-in-out infinite; }
.ritual[data-step="brew"] .mug__steam + .mug__steam { animation-delay: 0.6s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: 0.8; } 100% { opacity: 0; transform: translateY(-14px); } }
.ticks { display: grid; gap: 8px; font-size: 15px; }
.ticks li { display: flex; align-items: center; gap: 10px; color: var(--ash); opacity: 0.35; transition: opacity 0.4s var(--out), color 0.4s var(--out); }
.ticks li .ic { width: 16px; height: 16px; }
.ticks li.is-on { opacity: 1; color: var(--bone); }
.ticks li.is-on .ic { color: var(--red-text); }

/* results */
.res__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.res__order { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.res__order span { height: 28px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 6px; background: rgba(237, 230, 216, 0.1); font-size: 13px; color: var(--bone); }
.res { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 36px); align-items: start; }
.best { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 18px; padding: 16px; border-radius: 12px; background: rgba(21, 17, 16, 0.92); border: 1px solid var(--line-2); }
.best__poster { position: relative; aspect-ratio: 2 / 3; border-radius: var(--r); overflow: hidden; }
.best__poster img { width: 100%; height: 100%; object-fit: cover; }
.best__info { display: grid; gap: 10px; align-content: start; }
.best__title { font-family: var(--title); font-weight: 800; font-size: clamp(24px, 2.2vw, 36px); line-height: 1.08; }
.match { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 700; color: var(--red-text); font-variant-numeric: tabular-nums; }
.match b { font-size: 26px; line-height: 1; }
.why { font-size: 13px; color: var(--bone-2); }
.runners { display: grid; gap: 6px; }
.runner { display: grid; grid-template-columns: 28px 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; background: rgba(21, 17, 16, 0.82); border: 1px solid var(--line); text-align: left; }
.runner:hover { border-color: var(--line-2); background: rgba(29, 24, 22, 0.92); }
.runner__n { font-family: var(--title); font-weight: 700; font-size: 18px; color: var(--ash); text-align: center; }
.runner__img { width: 48px; aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; }
.runner__img img { width: 100%; height: 100%; object-fit: cover; }
.runner__title { font-weight: 650; font-size: 15px; line-height: 1.2; }
.runner .match { font-size: 14px; }
.runner__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; font-size: 12px; color: var(--ash); }
.runner__meta .fear__cups .ic { width: 12px; height: 12px; }
.skipserve { position: absolute; z-index: 3; right: var(--gutter); bottom: 22px; }

@media (max-width: 980px) {
  .res { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .brewbtn span { display: none; }
  .brewbtn { width: 38px; padding: 0; justify-content: center; }
  .r__poster, .r__video { object-position: 70% 30%; }
  .r__shade { background: linear-gradient(0deg, rgba(5, 4, 4, 0.96) 0%, rgba(5, 4, 4, 0.82) 45%, rgba(5, 4, 4, 0.1) 78%); }
  .r__panel { align-content: end; padding: 70px 0 28px; }
  .ritual[data-step="results"] .r__panel { align-content: start; }
  .r__q { font-size: clamp(26px, 8vw, 36px); }
  .r__exit span { display: none; }
  .r__brand .lk { --h: 22px; }
  .r__exit { padding: 0 10px; }
  .choice { grid-template-columns: 76px 1fr; }
  .brew { grid-template-columns: 84px 1fr; gap: 16px; }
  .mug { width: 84px; }
  .best { grid-template-columns: 112px 1fr; padding: 12px; }
  .best__title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .r__video { display: none; }
}
