/* Runtime layers the static design shows only as showcase boxes. Uses the design tokens. */
.bc-layer{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:var(--s-4);background:var(--scrim, rgba(0,0,0,.6));overflow:auto}
.bc-layer--right{justify-content:flex-end;align-items:stretch;padding:0}
.bc-layer--right .cart-drawer{min-height:100%;border-radius:0;max-width:440px}
.bc-layer .checkout-modal{width:100%;max-width:520px;max-height:calc(100vh - 2*var(--s-4));overflow:auto}
.bc-toast{position:fixed;inset-inline:0;bottom:var(--s-5);margin-inline:auto;width:max-content;max-width:calc(100vw - 32px);z-index:1100;padding:var(--s-3) var(--s-5);border-radius:var(--r-pill);background:var(--surface-2, var(--surface));color:var(--text);box-shadow:var(--sh-3);border:1px solid var(--line)}
.bc-toast--error{border-color:var(--danger, #c33);color:var(--danger, #f88)}
.bc-loading{opacity:.55;pointer-events:none}
.bc-empty{padding:var(--s-7) 0;text-align:center}
.bc-field-error{color:var(--danger, #f88);font-size:.875em}
.bc-thumb{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
.clip-card__thumb{overflow:hidden;position:relative}
.clip-card__thumb>img{position:absolute;inset:0}
.cart-item__thumb{overflow:hidden}
[hidden]{display:none !important}
/* RTL: the design mostly uses flex/grid; flip the few directional bits. */
[dir="rtl"] .cart-drawer{margin-left:0;margin-right:auto;border-left:0;border-right:1px solid var(--line)}
[dir="rtl"] .bc-layer--right{justify-content:flex-start}
[dir="rtl"] .mono, [dir="rtl"] .copy-field__value, [dir="rtl"] .pay-amount__value{direction:ltr;unicode-bidi:embed}
.btn--danger{background:var(--danger, #c33);border-color:var(--danger, #c33);color:#fff}
.bc-booting main{visibility:hidden}

/* Store page: the store's own categories wrap instead of scrolling sideways (2026-11-09). */
.filter-bar--wrap { flex-wrap: wrap; overflow: visible; }

/* Legal pages (built from legal/*.md by tools/build_legal.py). */
.legal { max-width: 760px; margin: var(--s-6) 0 var(--s-8); line-height: 1.65; }
.legal h2 { margin-top: var(--s-6); font-size: var(--fs-lg); }
.legal h3 { margin-top: var(--s-4); }
.legal ul, .legal ol { padding-left: 1.3em; display: grid; gap: var(--s-2); }
.legal p, .legal li { color: var(--text-2); }
.legal strong { color: var(--text); }
.legal .notice { margin-bottom: var(--s-4); }

/* Store lines (a store's own sections) — 2026-11-09. */
.line-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--s-4); }
.line-card { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: inherit; text-decoration: none; }
.line-card__img { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2, var(--surface)); border: 1px solid var(--line); margin-bottom: var(--s-2); }
.line-card__img > img { position: absolute; inset: 0; }
.line-card__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-card:hover .line-card__img { border-color: var(--accent); }
.line-card--horror .line-card__img { background: linear-gradient(135deg, #2a0006, #6b0010); }
@media (max-width: 480px) { .line-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); } }

/* Producer analytics (2026-11-09). Chart colours validated for the dark surface:
   this period = brand pink, period before = blue (CVD ΔE 19, contrast ≥ 3:1). */
:root { --viz-1: #fa2d6c; --viz-2: #3987e5; --viz-grid: oklch(1 0 0 / 0.07); }
.kpi { gap: 2px; }
.kpi__delta { font-size: var(--fs-xs); color: var(--text-2); }
.kpi__delta.is-good { color: var(--success); }
.kpi__delta.is-bad { color: var(--danger); }
.insights { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s-2); color: var(--text-2); }
.viz-wrap { position: relative; }
.viz { width: 100%; height: auto; display: block; overflow: visible; }
.viz-grid { stroke: var(--viz-grid); stroke-width: 1; }
.viz-axis { fill: var(--text-3); font-size: 11px; font-family: var(--mono); }
.viz-line { fill: none; stroke: var(--viz-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.viz-line--prev { stroke: var(--viz-2); }
.viz-area { fill: var(--viz-1); opacity: .10; }
.viz-dot { fill: var(--viz-1); stroke: var(--surface); stroke-width: 2; }
.viz-hair { stroke: var(--text-3); stroke-width: 1; }
.viz-tip { position: absolute; top: 0; min-width: 150px; padding: var(--s-2) var(--s-3); background: var(--surface-3); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--sh-3); pointer-events: none; display: grid; gap: 4px; z-index: 2; }
.viz-tip__row { display: flex; align-items: center; gap: var(--s-2); }
.viz-key { display: inline-block; width: 14px; height: 2px; border-radius: 2px; background: var(--viz-1); margin-right: 6px; vertical-align: middle; }
.viz-key--prev { background: var(--viz-2); }
.viz-legend { display: flex; gap: var(--s-4); font-size: var(--fs-xs); color: var(--text-2); }
.viz-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: var(--s-4); }
.barlist { display: grid; gap: var(--s-2); }
.barlist__row { display: grid; grid-template-columns: minmax(90px, 32%) 1fr auto; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); }
.barlist__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.barlist__track { height: 10px; }
.barlist__bar { display: block; height: 100%; background: var(--viz-1); border-radius: 0 4px 4px 0; }
.barlist__val { font-family: var(--mono); font-size: var(--fs-xs); white-space: nowrap; text-align: right; }
.heat { display: grid; gap: 2px; overflow-x: auto; }
.heat__row { display: grid; grid-template-columns: 44px repeat(24, minmax(10px, 1fr)); gap: 2px; align-items: center; }
.heat__day { font-size: var(--fs-xs); color: var(--text-3); }
.heat__cell { aspect-ratio: 1; border-radius: 2px; background: color-mix(in oklab, var(--viz-1) calc(var(--a) * 100%), var(--surface-3)); }
.heat__axis span { font-size: 10px; color: var(--text-3); white-space: nowrap; overflow: visible; }
.th-sort { all: unset; cursor: pointer; }
.th-sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 560px) { .barlist__row { grid-template-columns: 1fr auto; } .barlist__track { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 560px) { .stat-grid:has(.kpi) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat-grid:has(.kpi) .stat__value { font-size: var(--fs-md, 1rem); } }

/* Upload playback check (2026-11-09). */
.check { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--text-2); }
.check ul { margin: var(--s-1) 0 0; padding-left: 1.2em; display: grid; gap: 2px; }
.check--ok { color: var(--success); } .check--ok ul { color: var(--text-2); }
.check--bad { color: var(--danger); } .check--bad ul { color: var(--text); }

/* Small "remove" buttons inside chips: no chrome, but a visible keyboard focus. */
.tag-x { all: unset; cursor: pointer; }
/* the ✕ on a chip: its own round button with room around it, on every screen (the phone rule below made it bigger still) */
.tag .tag-x { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-inline: 6px -6px; border-radius: 50%; font-size: 11px; line-height: 1; background: rgba(255,255,255,.08); }
.tag .tag-x:hover { background: rgba(255,255,255,.18); }
.tag-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* ── model finder + photo crop (producer-models.html) ── */
.mf-group { margin-top: var(--s-4); }
.mf-group__head { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; justify-content: space-between; margin-bottom: var(--s-2); }
.mf-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.mf-row:last-child { border-bottom: 0; }
.mf-row__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mf-row__name { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.mf-row__name .input { max-width: 260px; min-height: 36px; padding: 0 var(--s-3); }
.mf-row__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: flex-end; }
.mf-row > input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); }
.mf-clips { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--s-2); padding: var(--s-2) 0 var(--s-1); }
.mf-clip { display: flex; gap: var(--s-2); align-items: center; font-size: var(--fs-sm); color: var(--text-2); cursor: pointer; min-width: 0; }
.mf-clip input { accent-color: var(--accent); flex: none; }
.mf-clip img, .mf-clip .ph { width: 48px; height: 27px; object-fit: cover; border-radius: 4px; flex: none; }
.mf-clip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-foot { position: static; display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between; margin-top: var(--s-3); padding: var(--s-3) 0; background: var(--surface); border-top: 1px solid var(--line); }
/* Sticky only while clips are picked (Migrate step 3): with nothing picked there is nothing to do, so nothing covers the table. */
.mf-foot.is-sticky { position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -8px 16px -12px rgba(0,0,0,.6); }
.ad-phone-only { display: none; }
.cat-more-short { display: none; }
.sell-ex { flex-wrap: wrap; padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-md); }
.sell-ex__n { flex-basis: 100%; font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); }
@media (max-width: 600px) { .cat-more-long { display: none; } .cat-more-short { display: inline; } }
.pay-points { list-style: none; padding: 0; margin: var(--s-2) 0 0; display: flex; flex-direction: column; gap: var(--s-1); }
.mf-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
@media (max-width: 600px) { .mf-row { grid-template-columns: auto minmax(0, 1fr); } .mf-row__actions { grid-column: 1 / -1; justify-content: flex-start; } }

.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--s-2); max-height: 52vh; overflow: auto; }
.mp-grid button { padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); background: var(--surface-2); cursor: pointer; overflow: hidden; aspect-ratio: 16 / 9; }
.mp-grid button:hover, .mp-grid button:focus-visible { border-color: var(--accent); }
.mp-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-crop { position: relative; display: inline-block; max-width: 100%; touch-action: none; user-select: none; line-height: 0; }
.mp-crop img { max-width: 100%; max-height: 58vh; display: block; }
.mp-crop__box { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); border-radius: 50%; cursor: move; }
.mp-crop__box::after { content: ""; position: absolute; inset: 0; border-radius: 50%; outline: 1px dashed rgba(255, 255, 255, .6); outline-offset: -1px; }
.mp-crop-wrap { overflow: hidden; border-radius: var(--r-sm); display: inline-block; max-width: 100%; }

/* reference pictures on custom orders */
.ref-grid { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.ref-thumb { position: relative; display: inline-block; width: 96px; height: 96px; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); flex: none; }
.ref-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ref-thumb .tag-x { position: absolute; top: 4px; right: 4px; background: rgba(0, 0, 0, .65); color: #fff; border: 0; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; }

/* trailer tool (upload page) */
.trailer-tool{margin-top:var(--s-2)}
.trailer-tool input[type=range]{width:100%}
.trailer-tool__stills{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
.trailer-tool__stills img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:var(--r-sm);display:block;background:var(--surface-2)}

/* promo images (producer-promo.html) */
.promo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:var(--s-2)}
.promo-tile{position:relative;padding:0;border:2px solid transparent;border-radius:var(--r-md);overflow:hidden;background:var(--surface-2);cursor:pointer;aspect-ratio:16/9}
.promo-tile img{width:100%;height:100%;object-fit:cover;display:block}
.promo-tile.is-on{border-color:var(--accent)}
.promo-tile__tag{position:absolute;left:4px;bottom:4px;font-size:var(--fs-xs,11px);padding:1px 6px;border-radius:var(--r-pill);background:rgba(0,0,0,.65);color:#fff}
.promo-view{display:grid;grid-template-columns:minmax(0,3fr) minmax(180px,1fr);gap:var(--s-4);align-items:start}
.promo-view__img{position:relative;touch-action:none;user-select:none;overflow:hidden;border-radius:var(--r-md)}
.promo-view__img img{width:100%;display:block;border-radius:var(--r-md)}
.promo-crop{position:absolute;border:2px solid #fff;box-shadow:0 0 0 9999px rgba(0,0,0,.55);cursor:move;border-radius:2px}
.promo-peek img{width:100%;max-width:640px;display:block;border-radius:var(--r-md)}
@media(max-width:700px){.promo-view{grid-template-columns:1fr}}

/* blog (blog.html, producer-blog.html) */
.blog-page{max-width:820px}
.blog-store{display:inline-flex;align-items:center;gap:var(--s-2);color:var(--text-2);text-decoration:none}
.blog-store img{width:32px;height:32px;border-radius:50%;object-fit:cover}
.blog-list{display:grid;gap:var(--s-4)}
.blog-card{display:grid;grid-template-columns:200px minmax(0,1fr);gap:var(--s-4);text-decoration:none;color:inherit;background:var(--surface);border-radius:var(--r-xl);overflow:hidden}
.blog-card img{width:100%;height:100%;min-height:120px;object-fit:cover;display:block;background:var(--surface-2)}
.blog-card__body{display:flex;flex-direction:column;gap:var(--s-1);padding:var(--s-4) var(--s-4) var(--s-4) 0}
.blog-card__title{font-weight:600;font-size:var(--fs-lg)}
.blog-cover{width:100%;max-height:440px;object-fit:cover;border-radius:var(--r-xl);display:block}
.blog-body{line-height:1.7;overflow-wrap:anywhere}
.blog-body h2,.blog-body h3{margin:var(--s-5) 0 var(--s-2)}
.blog-body blockquote{border-left:3px solid var(--accent);margin:var(--s-3) 0;padding-left:var(--s-3);color:var(--text-2)}
.blog-clip{margin:var(--s-4) 0;max-width:320px}
@media(max-width:600px){.blog-card{grid-template-columns:1fr}.blog-card__body{padding:0 var(--s-4) var(--s-4)}}
.blog-body a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}
.blog-page{padding-top:var(--s-6)}
.blog-card--text{grid-template-columns:1fr}.blog-card--text .blog-card__body{padding:var(--s-4)}
/* Paid posts (2026-11-17): pictures inside a post, the lock box, the producer's picture strip. */
.blog-img{margin:var(--s-4) 0}.blog-img img{width:100%;height:auto;border-radius:var(--r-md);display:block}
.blog-img figcaption{font-size:var(--fs-sm);color:var(--text-2);margin-top:var(--s-1)}
.blog-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:var(--s-2);margin:var(--s-4) 0}.blog-gallery .blog-img{margin:0}
.blog-gallery .blog-img img{aspect-ratio:1;object-fit:cover}
.paywall{border:1px solid var(--line);background:var(--surface-2,var(--surface));border-radius:var(--r-xl);padding:var(--s-5);margin-top:var(--s-5);display:flex;flex-direction:column;gap:var(--s-3)}
.paywall--on{border-color:var(--success)}
.paywall__title{font-weight:600;font-size:var(--fs-lg);margin:0}
.paywall__opts{display:flex;flex-wrap:wrap;gap:var(--s-2)}
.paywall .hint,.paywall .muted{margin:0}
.blog-thumbs{display:flex;flex-wrap:wrap;gap:var(--s-2);margin-top:var(--s-2)}
.blog-thumb{display:flex;flex-direction:column;gap:4px;width:110px}.blog-thumb img{width:110px;height:110px;object-fit:cover;border-radius:var(--r-sm)}
@media(max-width:600px){.paywall__opts .btn{width:100%}}
.audio-cover{position:absolute;inset:0;display:grid;place-items:center;font-size:5rem;background:var(--surface)}
.audio-bar{position:absolute;left:var(--s-3);right:var(--s-3);bottom:var(--s-3)}.audio-bar audio{width:100%}
.card-media-tag{position:absolute;top:var(--s-2);right:var(--s-2);background:rgba(0,0,0,.65);color:#fff;border-radius:var(--r-pill);padding:2px 8px;font-size:var(--fs-xs,12px)}
.feed-box{flex-basis:100%;display:flex;flex-direction:column;gap:var(--s-2)}
.pod-line{border-top:1px solid var(--line);padding-top:var(--s-3);display:flex;flex-direction:column;gap:var(--s-2)}
.sub-list{list-style:none;margin:var(--s-3) 0 0;padding:0;display:flex;flex-direction:column}
.sub-row{display:flex;justify-content:space-between;align-items:center;gap:var(--s-3);padding:var(--s-3) 0;border-top:1px solid var(--line);flex-wrap:wrap}

/* Fingers need room: the small icon buttons get a bigger tap area on touch screens (they look the same). */
@media (pointer: coarse) {
  .tag-x, .social-row__btn { position: relative; }
  .tag-x::after { content: ''; position: absolute; inset: -10px; }
  .social-row__btn::after { content: ''; position: absolute; inset: -3px -10px; }
  .th-sort, button.link-quiet { min-height: 32px; display: inline-flex; align-items: center; }
}

/* ── Desktop review fixes (2026-11-15) ─────────────────────────────────────── */
/* Footer stays at the bottom on short pages. */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
/* Design placeholder labels never show on the live site (a real hint keeps .ph-label--hint). */
.ph-label:not(.ph-label--hint) { display: none; }
/* Right-to-left pages: numbers, sizes and the logo keep their own order. */
.wordmark { direction: ltr; }
[dir=rtl] .mono, [dir=rtl] .clip-card__meta-over, [dir=rtl] .score-compact, [dir=rtl] .data-table .num { unicode-bidi: isolate; direction: ltr; }
[dir=rtl] .spec-list dd.num { text-align: right; }
/* Specs: mono for numbers only (languages read as words). */
.spec-list dd { font-family: var(--font); }
.spec-list dd.num { font-family: var(--mono); }
[data-your-rating] { font-family: inherit; }
/* Unread dot on the ☰ button sits on its corner, not under it. */
.nav-menu-btn { position: relative; }
.nav-menu-btn .th-dot-badge { position: absolute; top: 8px; right: 7px; margin: 0; }
/* Checkboxes / radios in the theme colour everywhere. */
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
/* Card rating: a readable star, right next to the price. */
.score-compact { font-family: var(--font); font-size: var(--fs-xs); font-weight: 600; }
.score-compact::before { content: "⭐"; font-size: 10px; }
.clip-card__row .score-compact { margin-left: auto; margin-right: var(--s-2); }
/* Cart: "Remove" under the title, not floating mid-row. */
.cart-item__remove { align-self: flex-start; }
/* Not-found / empty states. */
.bc-empty--page { padding: var(--s-9) 0; min-height: 40vh; justify-content: center; }
.bc-empty--page .state-hero__mark { width: 72px; height: 72px; font-size: 34px; }
.bc-empty--page .muted { max-width: 46ch; }
.panel .bc-empty:not(.bc-empty--page) { padding: var(--s-4) 0; }
/* Stat tiles fill their row; admin tiles are links. */
.stat-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
@media (min-width: 561px) { .stat-grid:has(.kpi) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); } }
.stat--link { color: inherit; text-decoration: none; border: 1px solid transparent; transition: border-color var(--dur) var(--ease); }
.stat--link:hover { border-color: var(--accent-line); color: inherit; }
.stat--alert { border-color: var(--danger); }
/* Standalone ghost buttons get a visible edge so they read as buttons. */
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--line-2); }
.quick-chip { min-height: 36px; }
/* Store page. */
.store-card[hidden] { display: none; }
.line-card__img--empty { display: grid; place-items: center; font-size: 34px; background: radial-gradient(120% 120% at 20% 10%, var(--accent-soft), transparent 60%), linear-gradient(135deg, var(--surface-2), var(--accent-2-soft)); }
.filter-bar .tag.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: var(--glow-soft); }
.filter-bar .tag.is-on .faint { color: inherit; opacity: .75; }
.btn.is-following { border-color: var(--accent-line); color: var(--accent); }
/* Clip page: the "you own this" box stacks; less dead space above "More from". */
.build-status--owned { flex-direction: column; align-items: stretch; background: var(--success-soft); }
.clip-page { padding-bottom: var(--s-5); }
/* Dates in tables: plain text, no wrapping. */
.data-table td.date { white-space: nowrap; color: var(--text-2); }
/* Account profile toggles share the row evenly. */
.field-toggles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
/* Pages without a side nav use the full width. */
@media (min-width: 960px) { .app-shell--solo { grid-template-columns: minmax(0, 1fr); } }
/* Legal + help: one centred reading column. */
.legal { margin-inline: auto; }
.legal p + p, .legal p + ul, .legal p + ol, .legal ul + p, .legal ol + p { margin-top: var(--s-3); }
.legal h2 + p, .legal h2 + ul, .legal h2 + ol, .legal h3 + p, .legal h3 + ul { margin-top: var(--s-2); }
.help-page.wrap { max-width: calc(1100px + 2 * var(--s-7)); }
/* Home category strip: a longer fade so a cut-off chip reads as "scroll for more". */
.category-bar__inner .category-bar__scroll { mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent); }

/* ── Phone review fixes (2026-11-15) ───────────────────────────────────────── */
/* Sideways strips (tabs, producer menu, tables, segmented buttons): an edge fades while there is more that way (bc.js strips()). */
.bc-more-end { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
.bc-more-start { -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px); mask-image: linear-gradient(90deg, transparent, #000 44px); }
.bc-more-start.bc-more-end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
[dir=rtl] .bc-more-end:not(.bc-more-start) { -webkit-mask-image: linear-gradient(270deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(270deg, #000 calc(100% - 44px), transparent); }
[dir=rtl] .bc-more-start:not(.bc-more-end) { -webkit-mask-image: linear-gradient(270deg, transparent, #000 44px); mask-image: linear-gradient(270deg, transparent, #000 44px); }
.side-nav { scrollbar-width: none; }
.side-nav::-webkit-scrollbar { display: none; }
/* Segmented buttons never wrap into a two-row pill; they scroll instead. */
.seg { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; white-space: nowrap; }
/* Empty counters don't show as a dash. */
.tab__count:empty { display: none; }
/* Sign-in wall on account-only pages (bc.js authWall). */
.bc-auth-wall body > main { display: none; }
.bc-auth-gate { flex: 1 0 auto; width: 100%; }
/* Browse filters: one "⚙️ Filters" button on phones, always open beside the grid on wide screens. */
.filter-fold > summary { list-style: none; cursor: pointer; display: inline-flex; gap: var(--s-2); }
.filter-fold > summary::-webkit-details-marker { display: none; }
.filter-fold[open] > .filter-panel { margin-top: var(--s-4); }
@media (min-width: 960px) { .filter-fold > summary { display: none; } .filter-fold[open] > .filter-panel { margin-top: 0; } }
/* Admin categories: folded on phones, always open on wide screens. */
.cat-fold > summary { list-style: none; cursor: pointer; display: inline-flex; margin-bottom: var(--s-3); }
.cat-fold > summary::-webkit-details-marker { display: none; }
@media (min-width: 960px) { .cat-fold > summary { display: none; } }
/* Sell page: room under the header like the other pages. */
.sell-page { padding-top: var(--s-7); }
/* Page intros never touch their heading. */
h1.page-title + p, h1.page-title + .hint, h1.page-title + p + p { margin-top: var(--s-2); }
/* Producer Models: tag row stays on one line on wide screens. */
.tag-model-row { flex-wrap: nowrap; }
/* Admin categories: chips get room between rows. */
.cat-kids .tag { margin-block: 3px; }
/* Import: the publish button's short label is for phones. */
.mf-short { display: none; }
.cb-hit { display: inline-grid; place-items: center; min-width: 36px; min-height: 36px; margin: -8px; cursor: pointer; }
.cb-hit input { width: 20px; height: 20px; margin: 0; }
/* Checkout: the dialog fits the visible screen (iOS toolbars). */
.bc-layer .checkout-modal { max-height: calc(100dvh - 2 * var(--s-4)); }
@media (max-width: 440px) { .pay-qr-row { grid-template-columns: 1fr; } .pay-qr { width: 172px; margin-inline: auto; } }

/* Touch-size controls on phones (and any touch screen). */
@media (max-width: 600px), (pointer: coarse) {
  .tag .tag-x { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-block: -6px; margin-inline: 4px -10px; border-radius: 50%; font-size: 12px; line-height: 1;
    background: radial-gradient(circle, oklch(1 0 0 / .13) 0 10px, transparent 10.5px); }
  .tag .tag-x::after { content: none; }
  .th-sort, button.link-quiet { min-height: 32px; display: inline-flex; align-items: center; }
  .data-table input[type=checkbox] { width: 20px; height: 20px; }
}
@media (max-width: 700px) {
  .social-row__move { flex-direction: row; gap: 2px; }
  .social-row__btn { width: 36px; height: 36px; font-size: 14px; border-radius: var(--r-sm); background: var(--surface-3); }
  .social-row__btn::after { content: none; }
}

@media (max-width: 959px) {
  /* Clip page: trailer → title + tags → buy box → the rest. */
  .clip-page > .stack { display: contents; }
  .clip-page > .stack > * { order: 3; }
  .clip-page > .stack > :nth-child(-n+2) { order: 1; }
  .clip-page > .purchase-card { order: 2; }
  .clip-page { gap: var(--s-5); }
}

@media (max-width: 640px) {
  /* Header: search + cart sit on the right; a real search icon. */
  .site-header .icon-btn--search { margin-inline-start: auto; font-size: 0; }
  .site-header .icon-btn--search::before { content: "🔍"; font-size: 17px; line-height: 1; }
  /* 🔍 opens the search box as a full-width row under the header (bc.js). 16 px so iOS doesn't zoom in. */
  .site-header.is-search-open .site-search { display: block; position: absolute; top: 100%; left: 0; right: 0; max-width: none; margin: 0;
    padding: var(--s-2) 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .site-header.is-search-open { margin-bottom: 57px; } /* room for the row at the top of the page; it hangs over the content once scrolled */
  .site-header.is-search-open .site-search .input { width: 100%; font-size: 16px; }
  .site-header.is-search-open .icon-btn--search { background: var(--surface-2, var(--surface)); }
  /* Home's #1 card: at phone size the giant numeral sat on top of its "sold" line and title — top right, like #2/#3. */
  .top-podium > .rank-card:first-child .rank-card__num { font-size: 80px; left: auto; right: var(--s-4); top: var(--s-3); }
  .top-podium > .rank-card:first-child { min-height: 240px; }
  /* Footer language picker at 16 px so iOS doesn't zoom in. */
  .lang-select { font-size: 16px; }
}

@media (max-width: 600px) {
  .sell-page { padding-top: var(--s-5); }
  .filter-panel { gap: var(--s-4); }
  /* Less air between sections on a small screen. */
  .section { padding-block: var(--s-5); }
  /* Store: lines and models are sideways rails, so the clips come early. */
  .line-grid, .store-grid--rail { display: grid; grid-auto-flow: column; grid-template-columns: none; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; margin-inline: calc(-1 * var(--s-4)); padding-inline: var(--s-4); scroll-padding-inline: var(--s-4); }
  .line-grid::-webkit-scrollbar, .store-grid--rail::-webkit-scrollbar { display: none; }
  .line-grid { grid-auto-columns: 42%; gap: var(--s-3); }
  .store-grid--rail { grid-auto-columns: minmax(170px, 62%); }
  .line-grid > *, .store-grid--rail > * { scroll-snap-align: start; }
  .store-grid--rail > .store-card[hidden] { display: flex; }
  [data-all-models] { display: none; }
  /* Customs strip: the green dot sits beside the first line, not alone above it. */
  .custom-strip { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; }
  .custom-strip__dot { align-self: start; margin-top: 7px; }
  .custom-strip > span:nth-child(2) { grid-column: 2 / -1; }
  .custom-strip__escrow { grid-column: 1 / 3; }
  /* Stat tiles two to a row (the wallet coins stay one per row). */
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Tables: no wrapping inside dates / money / codes; the first column keeps some width. */
  .data-table th, .data-table td.mono, .data-table td.num, .data-table td.date { white-space: nowrap; }
  .data-table td:first-child:not(:has(input)), .data-table td:has(> a:first-child) { min-width: 8rem; }
  /* …and some tables become stacked rows: main line first, the rest underneath, money on the right. */
  .table-wrap:has(> .data-table--stack) { overflow: visible; }
  .data-table--stack { min-width: 0; display: block; }
  .data-table--stack thead { display: none; }
  .data-table--stack tbody { display: block; }
  .data-table--stack tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s-3); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
  .data-table--stack tr:last-child { border-bottom: 0; }
  .data-table--stack td { display: block; padding: 0; border: 0; min-width: 0 !important; }
  .data-table--stack td.stack-main { order: -1; flex-basis: 100%; font-weight: 600; white-space: normal; }
  .data-table--stack td.stack-full { flex-basis: 100%; }
  .data-table--stack td.num { margin-inline-start: auto; }
  .data-table--stack td.mono { font-size: var(--fs-xs); }
  .data-table--stack .ad-phone-only { display: inline; font-size: var(--fs-xs); }
  .data-table--stack td.actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
  .data-table--stack .cat-kids { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
  .data-table--stack .cat-kids .tag { margin: 0; }
  [data-catform] .input { flex-basis: 100% !important; }
  /* Producer Models: model + clip pickers stack. */
  .tag-model-row { flex-wrap: wrap; }
  .tag-model-row .select { flex: 1 1 100%; }
  .tag-model-row .btn { width: 100%; }
  /* Import step 3: a short sticky bar. */
  .mf-long { display: none; }
  .mf-short { display: inline; }
  .mf-foot { gap: var(--s-2); padding: var(--s-2) 0; flex-wrap: nowrap; }
  .mf-foot .check { min-width: 0; }
  .mf-foot .btn { flex: none; }
  .mf-foot .check span { font-size: var(--fs-xs); }
  /* Coupons: the 🎲 button is thumb-sized. */
  #dice { min-width: 44px; min-height: 44px; }
}

/* ── Leak finder card (producer dashboard, 2026-11-15) ── */
.fold > summary { cursor: pointer; font-weight: 600; padding: var(--s-2) 0; }
.fold[open] > summary { margin-bottom: var(--s-2); }
.fold ol li { line-height: 1.5; }

/* ── Look review 2026-11-16 ─────────────────────────────────────────────── */
/* Links in a copy box stay on one line (a web address broken mid-word reads as two); the Copy button has it all. */
.copy-field__value--link { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal; display: block; align-self: center; }
/* Wallet addresses and other long codes never run past their card. */
.mono { overflow-wrap: anywhere; }
/* A #link to a part of a page lands below the sticky header, not under it. */
[id], [data-security], .tab-panel { scroll-margin-top: 84px; }
/* Order steps number themselves, so a step the store doesn't use leaves no gap (1, 2, 4). */
.clip-page--order { counter-reset: bcstep; }   /* (on the page grid: its column is display:contents on phones, where a counter can't start) */
.steps-auto > .panel:not([hidden]) > .panel__title--step { counter-increment: bcstep; }
.steps-auto > .panel:not([hidden]) > .panel__title--step::before { content: counter(bcstep) " · "; }
/* Tab bars that run off the edge say so: a fade where there is more. */
.tabs { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); padding-inline-end: 28px; }
.header-signin { white-space: nowrap; }
@media (max-width: 640px) { .header-signin { display: none; } }   /* phones: it is in the menu */
@media (max-width: 600px), (pointer: coarse) {
  /* Thumb-size: small buttons and quiet links are still 44 px tall to tap. */
  .btn--sm { min-height: 44px; }
  .check input[type=checkbox], .field input[type=checkbox] { width: 22px; height: 22px; }
}
@media (max-width: 959px) {
  /* Order a custom: the form first, the total and the pay button after it (it used to sit above step 1). */
  .clip-page--order > .purchase-card { order: 4; }
}
@media (max-width: 600px) {
  /* Wallet: the amount box on its own row, the preset amounts in one row under it. */
  [data-deposit] .row > .input { flex: 1 1 100%; }
  /* Store profile: the Save bar stays in reach on a long page. */
  .save-bar { position: sticky; bottom: 0; z-index: 5; background: var(--bg, #0c0a0b); padding: var(--s-3) 0; border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  /* Stacked table rows: a number says what it is (the header row is gone on a phone). */
  .data-table--stack td[data-label]::before { content: attr(data-label) "\00a0"; color: var(--text-3); font-weight: 400; font-size: var(--fs-xs); }
  .data-table--stack td.actions { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
}


/* ── Phone review 2026-11-26 (fix-layout) ────────────────────────────────────
   components.css is the design's file; these override it (app.css loads after it on every page). */
/* No page is ever wider than the phone. */
/* A one-column grid's `auto` track grew to its widest item (custom.html was 414 px on a 390 screen). */
@media (max-width: 959px) { .clip-page { grid-template-columns: minmax(0, 1fr); } }
/* A pay box line says all of itself ("Service fee (10%, min $5.00, max $250.00)"), wrapped, not cut. */
.purchase-card .order-summary__line span:first-child { white-space: normal; }
/* The footer language picker sized itself to its longest option ("Ne voyez pas votre langue ? …"). */
.lang-select { max-width: 100%; text-overflow: ellipsis; }
.site-footer .wrap > * { min-width: 0; max-width: 100%; }   /* (its row may shrink, so 100% means the screen) */
/* Words with no break point (a 32-letter username, a pasted link) wrap instead of widening the page.
   `anywhere` (not break-word): grid/flex columns then don't size themselves to the long word. Tables keep their
   columns (they scroll in their own box). */
.page-title, .section-title, .panel__title, main :is(h1, h2, h3, h4, p, li, dd, blockquote, figcaption, summary, label):not(td *, th *) { overflow-wrap: anywhere; }

/* Tables that scroll sideways (any screen; on a phone the ones that don't stack): the last column — the row's
   buttons — stays in view at the edge (sticky), so no button is ever out of reach. (Stacked tables: app.css above.)
   Physical right/left, not inset-inline-end: RTL pages give number cells direction:ltr, which flipped the logical side. */
.data-table:has(td:last-child :is(button, .btn, select, input:not([type=hidden]), a[href])) :is(td, th):last-child { position: sticky; right: 0; z-index: 1; }
[dir=rtl] .data-table:has(td:last-child :is(button, .btn, select, input:not([type=hidden]), a[href])) :is(td, th):last-child { right: auto; left: 0; }
/* While there is more under it (bc.js marks the box .bc-more-end) it is opaque and its edge casts a shadow; the fade that
   says "more this way" would dim the buttons, so it goes. */
.table-wrap.bc-more-end .data-table:has(td:last-child :is(button, .btn, select, input:not([type=hidden]), a[href])) :is(td, th):last-child { background: var(--surface); box-shadow: -10px 0 12px -10px oklch(0 0 0 / .75); }
[dir=rtl] .table-wrap.bc-more-end .data-table:has(td:last-child :is(button, .btn, select, input:not([type=hidden]), a[href])) :is(td, th):last-child { box-shadow: 10px 0 12px -10px oklch(0 0 0 / .75); }
.table-wrap.bc-more-end:not(.bc-more-start):has(> .data-table:has(td:last-child :is(button, .btn, select, input:not([type=hidden]), a[href]))) { -webkit-mask-image: none; mask-image: none; }
.table-wrap.bc-more-end.bc-more-start:has(> .data-table:has(td:last-child :is(button, .btn, select, input:not([type=hidden]), a[href]))) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px); mask-image: linear-gradient(90deg, transparent, #000 44px); }
[dir=rtl] .table-wrap.bc-more-end.bc-more-start:has(> .data-table:has(td:last-child :is(button, .btn, select, input:not([type=hidden]), a[href]))) { -webkit-mask-image: linear-gradient(270deg, transparent, #000 44px); mask-image: linear-gradient(270deg, transparent, #000 44px); }
@media (max-width: 600px) {
  .table-wrap { overscroll-behavior-x: contain; }
  /* a two-column table (label · amount) fits any phone: no 560 px floor, no sideways scroll */
  .data-table:not(:has(tr > :nth-child(3))) { min-width: 0; }
  /* the pinned column is always opaque here (it always covers something), and its buttons go one under the other */
  .data-table:not(.data-table--stack):has(td:last-child :is(button, .btn, select, input:not([type=hidden]), a[href])) :is(td, th):last-child { background: var(--surface); white-space: normal; }
  .data-table:not(.data-table--stack) td:last-child .btn { margin: 2px 0; white-space: nowrap; }
  .data-table:not(.data-table--stack) td.actions .btn + .btn { margin-left: 0; }
  .data-table--stack :is(td, th):last-child { position: static; background: none; box-shadow: none; }
}

/* Fields are 16 px on phones and touch screens: iPhones zoom the page in on any smaller field and stay zoomed.
   (!important: `.mono`, inline sizes and the small-field variants must not win here.) */
@media (max-width: 600px), (pointer: coarse) {
  input:not([type=checkbox], [type=radio], [type=range], [type=color], [type=file], [type=button], [type=submit], [type=reset], [type=image], [type=hidden]), select, textarea { font-size: 16px !important; }
}

/* Dialogs taller than the screen scroll inside themselves; their close button and their action row stay in reach. */
.bc-layer .checkout-modal__head { position: sticky; top: 0; z-index: 2; background: var(--surface); }
.bc-layer .checkout-modal__foot { position: sticky; bottom: 0; z-index: 2; background: var(--surface); }

/* ☰ menu: "Categories" and "Sign out" are buttons — no grey browser skin (contrast 1.66:1 read as "disabled"). */
button.menu-item { background: none; border: 0; width: 100%; text-align: start; font: inherit; color: var(--text-2); cursor: pointer; }
.nav-drawer__group button.menu-item { font-size: var(--fs-md); }
button.menu-item:hover { background: oklch(1 0 0 / .06); color: var(--text); }

/* Toasts never catch a tap (they hold only text); on a phone they show at the top, clear of the bottom buttons. */
.bc-toast { pointer-events: none; }
@media (max-width: 640px) { .bc-toast { bottom: auto; top: calc(72px + env(safe-area-inset-top, 0px)); } }

/* Tap size on touch screens: quiet links, folds and "Remove" get a 40 px tall tap area. The padding/negative margin
   pair makes the area bigger without moving anything (on an inline link it doesn't touch the line height). */
@media (max-width: 600px), (pointer: coarse) {
  a.link-quiet, .cart-item__remove, .wish-card__remove { padding-block: 11px; margin-block: -11px; }
  summary:not(.btn) { padding-block: 10px; }
  button.link-quiet { min-height: 40px; }
}
/* Wishlist card: "🗑️ Remove" stays one word-pair; on a narrow card the cart button goes under it. */
.wish-card__actions { flex-wrap: wrap; }
.wish-card__remove { white-space: nowrap; }

/* Admin on a phone: the section strip (links within the one long page) stays under the header while scrolling. */
@media (max-width: 959px) {
  .app-shell > .side-nav:has(> a[href^="#"]) { position: sticky; top: var(--bc-header-h, 61px); z-index: 30; background: var(--bg); padding-block: var(--s-2); border-bottom: 1px solid var(--line); }
  .app-shell:has(> .side-nav > a[href^="#"]) [id] { scroll-margin-top: 132px; }   /* a jump lands below header + strip */
}

/* A tick box and its words stay on one line (a long label wrapped away from its box on phones). */
label.row:has(> input[type=checkbox], > input[type=radio]) { flex-wrap: nowrap; }
label.row:has(> input[type=checkbox], > input[type=radio]) > :not(input) { min-width: 0; }

/* Clip trailer: shown whole. `cover` cut a vertical (9:16) trailer down to its middle third in the 16:9 box;
   `contain` is the same picture for a 16:9 one. (!important: clip.js sets it inline.) */
.trailer-player > video { object-fit: contain !important; background: #000; }

/* Right-to-left pages: text a store, model or buyer wrote takes its own direction, like dir="auto" (review F20):
   an English "10-minute custom" stays that, not "minute custom-10", and its full stop stays at the end.
   Our own translated words start with Arabic/Hebrew letters, so they keep the page's direction. */
[dir=rtl] :is(.page-title, .clip-card__title, .cart-item__title, .download-row__title, .store-card__name, .line-card__name,
  .rank-card__title, .rank-row__title, .idx-pair__name, .option-card__name, .option-card__desc, [data-intro-text], .blog-card__title,
  .blog-body > *, .th-msg__body, .mp-name, .mp-bio, .mp-friend__name, .mp-mood, .ml-clip__name, .clip-page > .stack > p.muted,
  .wish-card a) { unicode-bidi: plaintext; }
/* A row holding segmented buttons may shrink to the screen; the buttons then scroll inside it (Migrate step 3's
   "Not live yet / Ready / All clips" ran past the panel in German and French). */
:is(.spread, .row) > :has(> .seg) { min-width: 0; max-width: 100%; }
/* Header: the wordmark never breaks in two and the workspace badge ("Administrateur") gives way first, so the 🔍 and
   cart stay on the screen in long languages. */
.site-header .wordmark { white-space: nowrap; flex: none; }
.site-header .wrap > .badge { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* A badge that holds a sentence ("Ausgeschaltet: Tresen gesperrt bis …") wraps inside a stacked row instead of running off. */
@media (max-width: 600px) { .data-table--stack td .badge { white-space: normal; max-width: 100%; height: auto; } }
/* A button label longer than the phone ("Es war ihre Entscheidung …") wraps inside the button instead of pushing it off
   the screen. Labels that fit don't change. */
@media (max-width: 600px) { .btn { max-width: 100%; white-space: normal; padding-block: 6px; } }
/* Trailer bar on a phone (⏸️ / Unmute / time / ⛶): one slim row over the video, labels unbroken; the time gives way
   on the smallest screens so the buttons keep their size. */
.trailer-player__bar { gap: var(--s-2); }
.trailer-player__bar .btn { white-space: nowrap; flex: none; min-height: 36px; padding: 0 12px; }
.trailer-player__bar [data-time] { white-space: nowrap; }
@media (max-width: 400px) { .trailer-player__bar { padding: var(--s-2); } .trailer-player__bar [data-time] { display: none; } }
