/* ============================================================
   AURA — Application layer (built on system.css)
   Shared chrome: nav, filter bar, grid cards, player, account
   ============================================================ */

/* ---------- shared page scaffold ---------- */
.page { position: relative; z-index: 1; }
/* resolved photo overlay — sits on top of the gradient placeholder; removed on error */
.art-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; }
.shell { max-width: 1440px; margin: 0 auto; padding: 0 var(--s-7); }
@media (max-width: 720px){ .shell { padding: 0 var(--s-4); } }

/* ============================================================
   TOP NAVIGATION
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60; height: 70px;
  display: flex; align-items: center; gap: var(--s-5);
  padding: 0 var(--s-7);
  backdrop-filter: blur(18px) saturate(1.3);
  background: oklch(0.125 0.013 285 / 0.82);
  border-bottom: 1px solid var(--line);
}
.nav .brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: 0.02em; flex: none; }
.nav .brand .mark { width: 28px; height: 28px; border-radius: 8px; background: conic-gradient(from 210deg, var(--accent), var(--accent-2), var(--accent)); box-shadow: var(--glow-soft); position: relative; }
.nav .brand .mark::after { content:""; position:absolute; inset:7px; border-radius:3px; background: var(--bg-deep); }

.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 8px 14px; border-radius: var(--r-pill); font-size: 14.5px; font-weight: 500; color: var(--text-3); transition: color .2s, background .2s; cursor: pointer; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); background: oklch(1 0 0 / 0.06); }

/* search — locked between the tip jar and the dub (language) selector; flexes to fill the gap */
.nav-search { position: relative; flex: 1 1 auto; min-width: 140px; max-width: 620px; }
.nav-search input {
  width: 100%; height: 42px; padding: 0 16px 0 42px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  color: var(--text); font-family: var(--font-body); font-size: 14px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.nav-search input::placeholder { color: var(--text-3); }
.nav-search input:focus { outline: none; border-color: var(--accent-line); background: var(--surface-2); box-shadow: 0 0 0 3px var(--accent-soft); }
.nav-search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--text-3); pointer-events: none; }

/* nav search results dropdown */
.nav-search__results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 140;
  max-height: min(64vh, 520px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); padding: 6px;
}
.nav-search__results[hidden] { display: none; }
.nsr__head { padding: 9px 10px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.nsr { display: flex; align-items: center; gap: 11px; padding: 7px 10px; border-radius: var(--r-md); text-decoration: none; color: var(--text); }
.nsr:hover, .nsr:focus-visible { background: oklch(1 0 0 / 0.07); outline: none; }
.nsr__art { width: 64px; height: 36px; flex: none; border-radius: 6px; overflow: hidden; background: var(--surface); }
.nsr__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nsr__art--dot { width: 10px; height: 10px; border-radius: 50%; margin: 0 27px 0 27px; background: var(--accent); }
.nsr__txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nsr__title { font-size: 14px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nsr__meta { font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nsr__empty { padding: 18px 12px; text-align: center; color: var(--text-3); font-size: 13.5px; }

.nav-right { display: flex; align-items: center; gap: var(--s-2); flex: none; margin-left: auto; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); cursor: pointer; transition: background .2s, color .2s; border: none; background: transparent; }
.icon-btn:hover { background: oklch(1 0 0 / 0.07); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }

/* language selector */
.lang { position: relative; }
.lang__btn { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); color: var(--text-2); cursor: pointer; font-family: var(--font-body); font-size: 13.5px; font-weight: 500; transition: border-color .2s, color .2s, background .2s; }
.lang__btn:hover { color: var(--text); border-color: var(--line-strong); }
.lang__btn .code { font-weight: 600; color: var(--text); }
.lang__btn .glb { display: grid; place-items: center; color: var(--text-3); }
.lang__btn .glb svg { width: 16px; height: 16px; }
.lang__btn > svg { width: 14px; height: 14px; transition: transform .2s; }
.lang.open .lang__btn svg { transform: rotate(180deg); }
.lang__menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px;
  background: var(--elevated); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  box-shadow: var(--sh-3); padding: 6px; z-index: 80;
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.lang.open .lang__menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lang__opt { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--r-sm); cursor: pointer; color: var(--text-2); font-size: 14px; transition: background .15s, color .15s; }
.lang__opt:hover { background: oklch(1 0 0 / 0.06); color: var(--text); }

/* notifications popout */
.notif { position: relative; }
.notif__badge { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; pointer-events: none; box-shadow: 0 0 0 2px var(--bg, #000); }
.notif.open .icon-btn { background: oklch(1 0 0 / 0.07); color: var(--text); }
.notif__menu {
  position: absolute; top: calc(100% + 8px); right: 0; width: 320px;
  background: var(--elevated); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg, 0 24px 60px oklch(0 0 0 / 0.5)); overflow: hidden; z-index: 60;
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.notif.open .notif__menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.notif__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.notif__body { max-height: 360px; overflow-y: auto; }
.notif__empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 34px 24px 38px; }
.notif__empty-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--surface); color: var(--text-3); margin-bottom: 6px; }
.notif__empty-ic svg { width: 22px; height: 22px; }
.notif__empty-t { font-weight: 600; color: var(--text); font-size: 14px; }
.notif__empty-s { color: var(--text-3); font-size: 13px; }
.notif__item { display: flex; gap: 11px; padding: 13px 16px; border-bottom: 1px solid var(--line); cursor: default; transition: background .15s; }
.notif__item:last-child { border-bottom: none; }
.notif__item:hover { background: oklch(1 0 0 / 0.04); }
.notif__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: transparent; }
.notif__item.unread .notif__dot { background: var(--accent); }
.notif__t { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.3; }
.notif__b { font-size: 13px; color: var(--text-2); margin-top: 2px; line-height: 1.4; }
.notif__time { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }

/* tip jar popout (next to brand) */
.tipjar { position: relative; flex: none; }
.tipjar__btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px 0 11px; border-radius: var(--r-pill); cursor: pointer; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); font-family: var(--font-display); font-weight: 600; font-size: 13.5px; letter-spacing: 0.01em; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.tipjar__btn:hover { background: var(--elevated); color: var(--text); border-color: var(--accent-line); }
.tipjar.open .tipjar__btn { background: var(--elevated); color: var(--text); border-color: var(--accent-line); }
.tipjar__emoji { font-size: 15px; line-height: 1; }
.tipjar__menu {
  position: absolute; top: calc(100% + 8px); left: 0; width: 300px;
  background: var(--elevated); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg, 0 24px 60px oklch(0 0 0 / 0.5)); overflow: hidden; z-index: 60;
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.tipjar.open .tipjar__menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.tipjar__head { padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
.tipjar__head > span:first-child { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text); }
.tipjar__sub { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
.tipjar__body { padding: 14px 16px 16px; }
.tipjar__amts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tipjar__amt { padding: 9px 0; border-radius: var(--r-sm, 9px); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); font-family: var(--font-display); font-weight: 600; font-size: 14px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.tipjar__amt:hover { color: var(--text); border-color: var(--accent-line); }
.tipjar__amt.sel { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.tipjar__custom { display: flex; align-items: center; gap: 6px; margin-top: 9px; padding: 0 12px; height: 40px; border-radius: var(--r-sm, 9px); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-3); }
.tipjar__custom:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.tipjar__custom span { font-weight: 600; color: var(--text-3); }
.tipjar__custom input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text); font-size: 14px; font-family: inherit; }
.tipjar__custom input::placeholder { color: var(--text-3); }
.tipjar #tipSend { width: 100%; margin-top: 12px; }
.tipjar__thanks { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; padding: 22px 8px 12px; }
.tipjar__thanks-emoji { font-size: 30px; line-height: 1; margin-bottom: 4px; }
.tipjar__thanks-t { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text); }
.tipjar__thanks-s { font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
.lang__opt.sel { color: var(--text); }
.lang__opt .flag { width: 26px; height: 18px; border-radius: 3px; flex: none; display:grid; place-items:center; font-size: 9px; font-weight: 700; letter-spacing: 0.02em; background: var(--surface-2); border: 1px solid transparent; color: oklch(0.99 0.004 285); }
/* distinct colour per language flag */
.lang__opt[data-set-lang="en"] .flag { background: oklch(0.62 0.17 280); }
.lang__opt[data-set-lang="es"] .flag { background: oklch(0.62 0.17 25); }
.lang__opt[data-set-lang="fr"] .flag { background: oklch(0.62 0.17 245); }
.lang__opt[data-set-lang="de"] .flag { background: oklch(0.62 0.17 145); }
.lang__opt[data-set-lang="pt"] .flag { background: oklch(0.62 0.17 65); }
.lang__opt[data-set-lang="ru"] .flag { background: oklch(0.62 0.17 330); }
.lang__opt[data-set-lang="ja"] .flag { background: oklch(0.62 0.17 200); }
.lang__opt[data-set-lang="zh"] .flag { background: oklch(0.62 0.17 40); }
.lang__opt[data-set-lang="ar"] .flag { background: oklch(0.62 0.17 170); }
.lang__opt[data-set-lang="hi"] .flag { background: oklch(0.62 0.17 105); }
.lang__opt .name { flex: 1; }
.lang__opt .check { width: 16px; height: 16px; color: var(--accent); opacity: 0; }
.lang__opt.sel .check { opacity: 1; }

/* The account button carries the visitor's standing as an emoji: card file box
   by default, founders trophy, or coin while a membership is active. The tinted
   plate behind it keeps the three readable against the same nav bar — an emoji
   on the raw accent gradient loses all contrast. */
.avatar { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); cursor: pointer; border: 1px solid var(--line-strong); flex: none; transition: box-shadow .2s, transform .2s; display: grid; place-items: center; text-decoration: none; }
.avatar:hover { box-shadow: var(--glow-soft); transform: translateY(-1px); }
.avatar__emoji { font-size: 19px; line-height: 1; filter: drop-shadow(0 1px 2px oklch(0 0 0 / 0.45)); }
.avatar.is-founder { background: linear-gradient(135deg, oklch(0.78 0.15 85), oklch(0.62 0.16 60)); }
.avatar.is-member { background: linear-gradient(135deg, oklch(0.74 0.13 95), oklch(0.58 0.13 70)); }

/* hamburger + side drawer */
.nav-menu { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: transparent; border: 1px solid transparent; color: var(--text-2); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.nav-menu:hover { background: oklch(1 0 0 / 0.07); color: var(--text); border-color: var(--line); }
.nav-menu svg { width: 21px; height: 21px; }
.navdrawer { position: fixed; inset: 0; z-index: 130; pointer-events: none; }
.navdrawer__scrim { position: absolute; inset: 0; background: oklch(0.10 0.012 285 / 0.6); backdrop-filter: blur(6px); opacity: 0; transition: opacity .26s var(--ease); }
.navdrawer__panel { position: absolute; top: 0; left: 0; height: 100%; width: min(320px, 84vw); background: var(--bg-deep); border-right: 1px solid var(--line-strong); box-shadow: var(--sh-4); padding: var(--s-5) var(--s-4); transform: translateX(-100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; gap: var(--s-5); }
.navdrawer.open { pointer-events: auto; }
.navdrawer.open .navdrawer__scrim { opacity: 1; }
.navdrawer.open .navdrawer__panel { transform: none; }
.navdrawer__head { display: flex; align-items: center; gap: var(--s-3); }
.navdrawer__head .brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: 0.02em; }
.navdrawer__head .brand .mark { width: 24px; height: 24px; border-radius: 7px; background: conic-gradient(from 210deg, var(--accent), var(--accent-2), var(--accent)); position: relative; box-shadow: var(--glow-soft); }
.navdrawer__head .brand .mark::after { content: ""; position: absolute; inset: 6px; border-radius: 3px; background: var(--bg-deep); }
.navdrawer__x { margin-left: auto; width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); cursor: pointer; transition: background .2s, color .2s; }
.navdrawer__x:hover { background: var(--elevated); color: var(--text); }
.navdrawer__x svg { width: 17px; height: 17px; }
.navdrawer__links { display: flex; flex-direction: column; gap: 2px; }
.navdrawer__link { padding: 14px 14px; border-radius: var(--r-md); font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: -0.01em; color: var(--text-2); cursor: pointer; transition: background .15s, color .15s; }
.navdrawer__link:hover { background: oklch(1 0 0 / 0.05); color: var(--text); }
.navdrawer__link.active { color: var(--text); background: var(--accent-soft); }
/* mobile drawer search + language (shown only on phones) */
.navdrawer__search { display: none; position: relative; }
.navdrawer__search input { width: 100%; height: 46px; padding: 0 16px 0 44px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-pill); color: var(--text); font-family: var(--font-body); font-size: 15px; }
.navdrawer__search input:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.navdrawer__search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-3); pointer-events: none; }
.navdrawer__langwrap { display: none; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.navdrawer__langlabel { font-size: 12px; font-weight: 600; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; }
#drawerLang .lang__menu { top: auto; bottom: calc(100% + 8px); }

/* per-language Bluesky account — last row of the drawer. It owns the
   push-to-bottom on desktop, where the language row is hidden; below 720px the
   language row takes that job and this simply follows it. */
.navdrawer__social { display: flex; align-items: center; gap: 11px; margin-top: auto; padding: 12px 14px; border-radius: var(--r-md);
  color: var(--text-2); text-decoration: none; border: 1px solid var(--line); transition: color .2s, border-color .2s, background .2s; }
.navdrawer__social:hover { color: var(--text); border-color: var(--line-strong); background: oklch(1 0 0 / 0.05); }
.navdrawer__social svg { width: 20px; height: 20px; flex: none; color: oklch(0.68 0.15 250); }
.navdrawer__social-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.navdrawer__social-txt b { font-size: 14px; font-weight: 600; color: var(--text); }
.navdrawer__social-txt span { font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== mobile nav ===== */
@media (max-width: 720px){
  .nav { gap: var(--s-2); padding: 0 var(--s-4); }
  .nav .brand { font-size: 16px; gap: 8px; }
  .nav .brand .mark { width: 24px; height: 24px; }
  .tipjar__label { display: none; }
  .tipjar__btn { padding: 0 9px; }
  .tipjar__menu { position: fixed; top: 78px; left: 12px; right: 12px; width: auto; }
  .nav-search { display: none; }
  .nav .notif { display: none; }
  .nav .lang { display: block; }
  .nav .lang__btn { height: 38px; padding: 0 10px; gap: 6px; }
  .nav .lang__btn > svg { display: none; }
  .nav-right { margin-left: auto; }
  .nav-right > .icon-btn { display: none; }
  .navdrawer__search { display: block; }
  .navdrawer__langwrap { display: flex; }
  .navdrawer__social { margin-top: var(--s-3); }
  .navdrawer__panel { width: min(360px, 90vw); gap: var(--s-4); }
  .navdrawer__link { font-size: 18px; padding: 13px 14px; }
}
@media (max-width: 560px){
  .app-footer { flex-direction: column; align-items: flex-start; gap: var(--s-4); }
}
@media (max-width: 480px){
  .nav .brand-name { display: none; }
}

/* ============================================================
   CATEGORY FILTER BAR
   ============================================================ */
.filterbar { position: sticky; top: 70px; z-index: 55; background: oklch(0.155 0.012 285 / 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.filterbar__track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 14px var(--s-7); }
.filterbar__track .chip-tab { display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.15; min-height: 42px; }
@media (max-width: 1180px){ .filterbar__track { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px){ .filterbar__track { display: flex; flex-wrap: wrap; justify-content: center; } }
.chip-tab {
  flex: none; padding: 8px 16px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--surface); border: 1px solid var(--line); white-space: nowrap;
  transition: all .2s var(--ease);
}
.chip-tab:hover { color: var(--text); border-color: var(--line-strong); }
.chip-tab.active { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }

/* per-category color coding — hue passed inline as --ch on each main chip */
.chip-tab[style*="--ch"] {
  color: oklch(0.84 0.10 var(--ch));
  background: oklch(0.72 0.16 var(--ch) / 0.12);
  border-color: oklch(0.72 0.16 var(--ch) / 0.42);
}
.chip-tab[style*="--ch"]:hover {
  color: oklch(0.92 0.06 var(--ch));
  background: oklch(0.72 0.16 var(--ch) / 0.20);
  border-color: oklch(0.72 0.16 var(--ch) / 0.78);
}
.chip-tab[style*="--ch"].active {
  background: oklch(0.74 0.16 var(--ch));
  color: oklch(0.18 0.035 var(--ch));
  border-color: transparent;
  box-shadow: 0 4px 18px oklch(0.72 0.16 var(--ch) / 0.42);
}
@media (max-width: 720px){ .filterbar__track { padding: 12px var(--s-4); } }

/* sub-main category row — appears under an active parent line (e.g. Directors Cut) */
.filterbar__subtrack { display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 0 var(--s-7) 14px; margin-top: -4px; }
.filterbar__subtrack .subchip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px;
  border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; cursor: pointer;
  color: var(--text-2); background: var(--accent-soft); border: 1px solid var(--accent-line);
  white-space: nowrap; transition: all .18s var(--ease);
}
.filterbar__subtrack .subchip:hover { color: var(--text); border-color: var(--accent); }
.filterbar__subtrack .subchip.active { background: var(--accent-fill); color: var(--on-accent); border-color: transparent; }
.subchip__n { font-variant-numeric: tabular-nums; font-size: 11px; opacity: 0.62; }
.filterbar__subtrack .subchip.active .subchip__n { opacity: 0.85; }
@media (max-width: 720px){ .filterbar__subtrack { padding: 0 var(--s-4) 12px; } }

/* Directors Cut sub-categories.
   The way IN is one button in the Dirty Deeds / Deathcut row (aura-admin.js) —
   45 tags do not fit in a bar, so they live in a checkbox panel. The row below
   the filter bar shows only what is currently APPLIED, as chips you click off. */
.filterbar--dc { padding-top: 0; }
.filterbar__subtrack--dc { padding-bottom: 14px; row-gap: 7px; margin-top: -6px; }
.dcapplied__lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-3); margin-right: 2px; }
.filterbar__subtrack--dc .subchip { font-size: 12px; padding: 5px 11px; }
.subchip__x { font-size: 15px; line-height: 1; opacity: 0.7; margin-left: 1px; }
.filterbar__subtrack--dc .subchip:hover .subchip__x { opacity: 1; }
.filterbar__subtrack .subchip--clear {
  background: transparent; border-style: dashed; font-weight: 700; letter-spacing: 0.02em;
}
/* The opener and the applied chips take the SECOND accent, not the first. The
   content-line chips in this same row use the first, and a sub-category filter
   wearing the same colour reads as another line being selected — which is the
   one thing it is not. */
.filterbar__subtrack .subchip--open { border-style: dashed; font-weight: 700; }
.filterbar__subtrack .subchip--open.active,
.filterbar__subtrack--dc .subchip.active {
  background: var(--accent-2); color: var(--on-accent);
  border-style: solid; border-color: transparent;
}
.filterbar__subtrack .subchip--open.active:hover,
.filterbar__subtrack--dc .subchip.active:hover { color: var(--on-accent); border-color: transparent; }

/* Directors Cut sub-category chips on the player. Links, not buttons — each one
   opens the Home facet bar already narrowed to it. */
.dctags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dctag {
  display: inline-flex; align-items: center; padding: 5px 12px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
  color: var(--text-2); background: var(--accent-soft); border: 1px solid var(--accent-line);
  transition: all .18s var(--ease);
}
.dctag:hover { color: var(--text); border-color: var(--accent); }
.dctag--none { opacity: 0.55; cursor: default; background: transparent; }
.dctag--none:hover { color: var(--text-2); border-color: var(--accent-line); }

/* ============================================================
   GRID + GRID CARD (always-visible info, with states)
   ============================================================ */
.section { padding-top: var(--s-8); }
.row-head { display: flex; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-5); }
.row-head h2 { font-size: 24px; font-weight: 600; }
.row-head .sub { color: var(--text-3); font-size: 14px; }
.row-head .see { margin-left: auto; font-size: 13.5px; font-weight: 500; color: var(--text-3); cursor: pointer; transition: color .2s; display:flex; align-items:center; gap:4px; }
.row-head .see:hover { color: var(--accent); }

.vgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5) var(--s-4); }
@media (max-width: 1200px){ .vgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px){ .vgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px){ .vgrid { grid-template-columns: 1fr; } }

.gcard { display: flex; flex-direction: column; gap: var(--s-3); }
.gcard__thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.gcard__thumb:hover { transform: translateY(-5px); box-shadow: var(--sh-3); }
.gcard__art { position: absolute; inset: 0; }
.gcard__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gcard__art .art-ph::after { content: none; }

.gcard__hoverveil { position: absolute; inset: 0; background: linear-gradient(0deg, oklch(0.10 0.01 285 / 0.55), transparent 55%); opacity: 0; transition: opacity var(--dur) var(--ease); }
.gcard__thumb:hover .gcard__hoverveil { opacity: 1; }
.gcard__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0.8);
  width: 54px; height: 54px; border-radius: 50%; background: oklch(0.99 0.004 285 / 0.94); color: oklch(0.15 0.012 285);
  display: grid; place-items: center; opacity: 0; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); box-shadow: var(--sh-2);
}
.gcard__play svg { width: 22px; height: 22px; margin-left: 2px; }
.gcard__thumb:hover .gcard__play { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* status badge (top-left) */
.gcard__status {
  position: absolute; top: 12px; left: 12px; z-index: 3; display: flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--r-pill);
}
.st-new { background: var(--accent-fill); color: var(--on-accent); box-shadow: var(--glow-soft); }
.st-soon { background: oklch(0.12 0.01 285 / 0.78); color: var(--text); border: 1px solid var(--line-strong); backdrop-filter: blur(8px); }
.st-live { background: oklch(0.12 0.01 285 / 0.7); color: var(--text); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.st-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }
/* category free anchor (marketing spec 4a) — reads as a gift, not a state */
.st-free { background: var(--success); color: oklch(0.13 0.02 160); box-shadow: 0 0 12px oklch(0.7 0.17 160 / 0.5); }
/* anonymous ~60s preview session (spec 4b) — tag next to the player clock */
.pv-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: var(--r-pill);
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); vertical-align: 1px; }

/* favorite heart (top-right) */
.fav {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: oklch(0.12 0.01 285 / 0.55); border: 1px solid var(--line); color: var(--text);
  backdrop-filter: blur(8px); transition: background .2s, transform .15s, color .2s, border-color .2s;
}
.fav:hover { background: oklch(0.12 0.01 285 / 0.8); transform: scale(1.08); }
.fav:active { transform: scale(0.92); }
.fav svg { width: 19px; height: 19px; }
.fav.on { color: var(--accent-2); border-color: var(--accent-line); }
.fav.on svg { fill: var(--accent-2); stroke: var(--accent-2); }
@keyframes favpop { 0%{transform:scale(1)} 45%{transform:scale(1.35)} 100%{transform:scale(1)} }
.fav.pop svg { animation: favpop .4s var(--ease); }

/* duration chip (bottom-right of thumb) */
.gcard__dur {
  position: absolute; bottom: 10px; right: 10px; z-index: 3;
  font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums;
  padding: 3px 8px; border-radius: 6px; background: oklch(0.10 0.01 285 / 0.8); color: var(--text); backdrop-filter: blur(6px);
}

/* coming-soon locked state */
.gcard.is-soon .gcard__art { filter: saturate(0.55) brightness(0.62); }
/* "COMING SOON" band across the placeholder poster (until the package's real image lands) */
.gcard__art .soon-band { display: none; position: absolute; inset: 0; z-index: 1; align-items: center; justify-content: center; overflow: hidden; pointer-events: none; }
.gcard.is-soon .gcard__art .soon-band { display: flex; }
.gcard__art .soon-band span {
  width: 160%; text-align: center; transform: rotate(-16deg);
  background: oklch(0.16 0.012 285 / 0.9); color: var(--text);
  border-block: 1px solid var(--line-strong);
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; font-size: 12px; padding: 7px 0;
}
.gcard.is-soon .gcard__thumb { cursor: default; }
.gcard.is-soon .gcard__thumb:hover { transform: none; box-shadow: var(--sh-1); }
.gcard.is-soon .gcard__play { display: none; }
.gcard__lock {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--text); opacity: 0; transition: opacity var(--dur) var(--ease);
}
.gcard.is-soon .gcard__thumb:hover .gcard__lock { opacity: 1; }
.gcard__lock .ic { width: 34px; height: 34px; border-radius: 50%; background: oklch(0.12 0.01 285 / 0.7); display: grid; place-items: center; backdrop-filter: blur(8px); border: 1px solid var(--line); }
.gcard__lock .ic svg { width: 16px; height: 16px; }
.gcard__lock .txt { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }

/* card info */
.gcard__info { display: flex; align-items: flex-start; gap: var(--s-3); }
.gcard__titlewrap { flex: 1; min-width: 0; }
.gcard__title { font-family: var(--font-display); font-weight: 500; font-size: 16px; letter-spacing: -0.01em; line-height: 1.25; overflow-wrap: anywhere; }
.gcard__metaline { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.gcard__cat { font-size: 12.5px; color: var(--text-3); }
.langs { display: flex; gap: 4px; flex: none; }
.langchip { font-size: 9.5px; font-weight: 700; letter-spacing: 0.05em; padding: 3px 5px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); line-height: 1; }
.langchip.more { color: var(--text-3); }

/* horizontal scroll track (related, top10) */
.rail { position: relative; }
.rail__btn { position: absolute; top: calc(50% - var(--s-3)); transform: translateY(-50%); z-index: 6; width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--elevated); border: 1px solid var(--line-strong); color: var(--text); cursor: pointer; box-shadow: var(--sh-2); transition: background .2s, color .2s, border-color .2s, opacity .2s; }
.rail__btn svg { width: 22px; height: 22px; }
.rail__btn:hover { background: var(--accent-fill); color: var(--on-accent); border-color: transparent; }
.rail__btn--prev { left: -14px; }
.rail__btn--next { right: -14px; }
.rail__btn.hidden { opacity: 0; pointer-events: none; }
@media (max-width: 720px){ .rail__btn { display: none; } }
.htrack { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 1fr); gap: var(--s-4); overflow-x: auto; padding-bottom: var(--s-3); scroll-snap-type: x proximity; scroll-padding-left: var(--s-4); scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent; }
/* minmax(0,…): a plain 1fr column grows to its longest title and pushed the page sideways on phones */
@media (max-width: 720px){ .htrack { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-columns: auto; overflow-x: visible; scroll-snap-type: none; padding-bottom: 0; } }
.htrack > * { scroll-snap-align: start; }
.htrack::-webkit-scrollbar { height: 8px; } .htrack::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 99px; }

/* ============================================================
   FOOTER (shared)
   ============================================================ */
.app-footer { margin-top: var(--s-9); padding-block: var(--s-7); /* block only: keeps .shell's side gutter */ border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s-4); }
.app-footer .brand { font-size: 16px; }
.footer-links { display: flex; gap: var(--s-5); flex-wrap: wrap; }
.footer-links a { color: var(--text-3); font-weight: 500; transition: color .2s; }
.footer-links a:hover { color: var(--text); }

/* page intro note (e.g. New Releases temporary-page banner) */
.note-banner { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r-md); background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--text); font-size: 14px; }
.note-banner svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty { padding: var(--s-8); text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); color: var(--text-3); }
.empty svg { width: 34px; height: 34px; margin-bottom: var(--s-3); color: var(--text-3); }
.empty .h { font-family: var(--font-display); font-size: 18px; color: var(--text-2); margin-bottom: 4px; }

/* ============================================================
   AGE GATE
   ============================================================ */
.agegate {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: var(--s-5);
  background: oklch(0.10 0.012 285 / 0.86); backdrop-filter: blur(14px) saturate(1.1);
}
.agegate__card {
  width: 100%; max-width: 460px; text-align: center;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-xl);
  padding: var(--s-7) var(--s-6); box-shadow: var(--sh-4);
}
.agegate__top { display: flex; justify-content: flex-end; margin-bottom: var(--s-2); }
.agegate__top .lang__menu { max-height: 280px; overflow-y: auto; }
.agegate__mark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: 0.02em; margin-bottom: var(--s-5); }
.agegate__mark .mark { width: 26px; height: 26px; border-radius: 8px; background: conic-gradient(from 210deg, var(--accent), var(--accent-2), var(--accent)); position: relative; box-shadow: var(--glow-soft); }
.agegate__mark .mark::after { content: ""; position: absolute; inset: 6px; border-radius: 3px; background: var(--surface); }
.agegate__card h2 { font-size: 27px; margin-bottom: var(--s-3); }
.agegate__card p { color: var(--text-2); font-size: 15px; line-height: 1.55; margin-bottom: var(--s-5); }
.agegate__actions { display: flex; flex-direction: column; gap: var(--s-3); }
.agegate__actions .btn { width: 100%; }
.agegate__note { color: var(--text-3) !important; font-size: 12px !important; margin-top: var(--s-5); margin-bottom: 0 !important; }

/* ============================================================
   ALL-CATEGORIES CHIP + PANEL  (editable filter bar)
   ============================================================ */
.chip-tab.chip-more {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  background: var(--accent-soft); border-color: var(--accent-line); color: var(--text);
  font-weight: 600; margin-right: var(--s-7);
}
.filterbar__inner { display: flex; align-items: center; }
.filterbar__inner .filterbar__track { flex: 1; min-width: 0; }
.chip-tab.chip-more:hover { background: var(--accent-fill); color: var(--on-accent); border-color: transparent; }
.chip-tab.chip-more svg { width: 15px; height: 15px; }
@media (max-width: 720px){ .chip-tab.chip-more { margin-right: var(--s-4); } }

.catpanel { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: var(--s-5);
  opacity: 0; pointer-events: none; transition: opacity .22s var(--ease); }
.catpanel.open { opacity: 1; pointer-events: auto; }
.catpanel__scrim { position: absolute; inset: 0; background: oklch(0.10 0.012 285 / 0.74); backdrop-filter: blur(8px); }
.catpanel__card {
  position: relative; width: 100%; max-width: 540px; max-height: min(82vh, 720px);
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-xl);
  box-shadow: var(--sh-4); transform: translateY(10px) scale(0.99); transition: transform .26s var(--ease); overflow: hidden;
}
.catpanel.open .catpanel__card { transform: none; }
.catpanel__head { display: flex; align-items: flex-start; gap: var(--s-4); padding: var(--s-6) var(--s-6) var(--s-4); }
.catpanel__title { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.catpanel__sub { color: var(--text-3); font-size: 13px; margin-top: 3px; }
.catpanel__x { margin-left: auto; width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); cursor: pointer; transition: background .2s, color .2s; }
.catpanel__x:hover { background: var(--elevated); color: var(--text); }
.catpanel__x svg { width: 17px; height: 17px; }
.catpanel__tools { display: flex; gap: var(--s-2); padding: 0 var(--s-6) var(--s-4); }
.cp-searchwrap { position: relative; flex: 1; }
.cp-searchwrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-3); pointer-events: none; }
.cp-searchwrap input { width: 100%; height: 40px; padding: 0 14px 0 40px; background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--text); font-family: var(--font-body); font-size: 14px; }
.cp-searchwrap input:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.cp-btn { height: 40px; padding: 0 16px; flex: none; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); font-family: var(--font-body); font-weight: 600; font-size: 13px; cursor: pointer; transition: all .2s; }
.cp-btn:hover { color: var(--text); border-color: var(--line-strong); }
.cp-btn.on { background: var(--accent-fill); color: var(--on-accent); border-color: transparent; }
.cp-secthead { padding: var(--s-4) var(--s-6) var(--s-2); font-size: 11px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-3); }
.cp-featured { padding: 0 var(--s-6) var(--s-2); display: flex; flex-direction: column; gap: 5px; }
.cp-frow { display: flex; align-items: center; gap: var(--s-3); padding: 8px 12px; border-radius: var(--r-md); background: var(--bg-deep); border: 1px solid var(--line); }
.cp-fname { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.cp-frow .cp-count { margin-left: auto; }
.cp-ic { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); cursor: pointer; transition: all .15s; }
.cp-ic:hover { color: var(--text); border-color: var(--line-strong); }
.cp-ic:disabled { opacity: 0.3; pointer-events: none; }
.cp-ic svg { width: 15px; height: 15px; }
.cp-ic.cp-rm:hover { background: var(--danger); color: var(--on-accent); border-color: transparent; }
.cp-list { flex: 1; overflow-y: auto; padding: var(--s-2) var(--s-4) var(--s-6); scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent; }
.cp-list::-webkit-scrollbar { width: 8px; } .cp-list::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 99px; }
.cp-row { display: flex; align-items: center; gap: var(--s-3); padding: 9px 12px; border-radius: var(--r-md); cursor: pointer; transition: background .15s; }
.cp-row:hover { background: oklch(1 0 0 / 0.05); }
.cp-row .cp-name { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-2); }
.cp-row.on .cp-name { color: var(--text); }
.cp-count { margin-left: auto; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text-3); background: var(--surface-2); border-radius: var(--r-pill); padding: 2px 9px; }
.cp-star { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line); }
.cp-star svg { width: 16px; height: 16px; }
.cp-star.on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.cp-star.on svg { fill: var(--accent); }
.cp-star.sub { color: var(--accent-2); border-color: var(--accent-2-soft); background: var(--accent-2-soft); }
.cp-star.sub svg { fill: var(--accent-2); }
/* nested sub-main rows indent beneath their parent line */
.cp-row.cp-child { margin-left: 26px; position: relative; }
.cp-row.cp-child::before { content: ""; position: absolute; left: -13px; top: 50%; width: 9px; height: 1px; background: var(--line-strong); }
.cp-row.cp-child .cp-name { text-transform: none; letter-spacing: 0.01em; color: var(--text-2); }
.cp-empty { padding: var(--s-6); text-align: center; color: var(--text-3); font-size: 14px; }
@media (max-width: 560px){ .catpanel__head, .catpanel__tools { padding-left: var(--s-4); padding-right: var(--s-4); } }

/* Directors Cut sub-category panel — the .catpanel chrome with a checkbox
   column and an Apply/Clear footer. These rules MUST sit after the .cp-* block
   above: they override .cp-name's uppercase and .cp-btn's neutral fill at equal
   specificity, so source order is what decides them. */
.catpanel__foot { display: flex; gap: var(--s-3); padding: var(--s-4) var(--s-6) var(--s-6);
  border-top: 1px solid var(--line); }
.catpanel__foot .cp-btn { flex: 1; }
.cp-btn--primary { background: var(--accent-fill); color: var(--on-accent); border-color: transparent; }
.cp-btn--primary:hover { color: var(--on-accent); border-color: transparent; filter: brightness(1.06); }
/* Capped: with a dozen ticks an uncapped strip would push the list itself off
   the card on a phone. */
/* flex:none is load-bearing — .catpanel__card is a flex column, so without it
   this strip shrinks to a 17px sliver and grows its own scrollbar instead of
   sizing to the chips. */
.dc-picked { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 var(--s-6) var(--s-4);
  flex: none; max-height: 86px; overflow-y: auto; scrollbar-width: thin; }
@media (max-width: 560px){ .dc-picked { padding-left: var(--s-4); padding-right: var(--s-4); } }
.dc-picked__chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: var(--r-pill); font-size: 12px; font-weight: 600; cursor: pointer;
  background: var(--accent-2); color: var(--on-accent); border: 1px solid transparent; white-space: nowrap; }
.dc-row { gap: var(--s-3); }
/* Title case, NOT the uppercase the content-line rows use: the casing carries
   meaning here (DP, KO, POV, Auto-Erotic, Time Stop) and matches the chips the
   applied row and the player render. */
.dc-row .dc-name { text-transform: none; letter-spacing: 0.01em; font-size: 13.5px; color: var(--text-2); }
.dc-row.on .dc-name { color: var(--text); }
.dc-box { width: 18px; height: 18px; flex: none; accent-color: var(--accent); cursor: pointer; }
/* A tag nothing in view carries. It stays on the list — the vocabulary is fixed,
   and a list that changes shape as you tick is unreadable — but it is not
   tickable, because ticking it would empty the grid. */
.dc-row--empty { opacity: 0.38; cursor: default; }
.dc-row--empty:hover { background: none; }
@media (max-width: 560px){ .catpanel__foot { padding-left: var(--s-4); padding-right: var(--s-4); } }
