/* Public Effects gallery (/effects, /effects/<id>). Loaded after model-pages.css and
   studio-modern.css, which supply the tokens, the chrome, .mcard/.tilt/.reveal, .segtabs and the
   grids. This file adds the portrait effect card, its badges, the filter rows and the detail
   layout — the same anatomy the Visual Effects section inside the studio uses. */

.fx-hero{padding-bottom:28px}
.fx-hint{font-size:14px;margin-top:6px}
.mp-section.fx-main{padding-top:20px}

/* ---------- filters ---------- */
.fx-filters{display:flex;flex-direction:column;gap:12px;margin-top:6px}
.fx-filter-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.fx-filter-label{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--faint);min-width:52px}
.fx-segtabs{display:inline-flex;gap:4px;padding:4px;border-radius:14px;background:var(--surface-2);border:1px solid var(--border)}
.fx-segtabs button{height:34px;padding:0 14px;border-radius:10px;border:0;background:transparent;color:var(--muted);font:inherit;font-size:13px;font-weight:700;cursor:pointer;transition:background .25s var(--ease),color .25s var(--ease)}
.fx-segtabs button:hover{color:var(--text)}
.fx-segtabs button[aria-pressed="true"]{background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#04101c}
.fx-segtabs button b,.fx-chips button b{font-weight:800;opacity:.72;margin-inline-start:5px}
.fx-chips{display:flex;gap:6px;flex-wrap:wrap}
.fx-chips button{height:32px;padding:0 13px;border-radius:999px;border:1px solid var(--border);background:var(--surface-2);color:var(--muted);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;transition:color .2s,border-color .2s,background .25s}
.fx-chips button:hover{color:var(--text);border-color:var(--border-2)}
.fx-chips button[aria-pressed="true"]{color:var(--text);border-color:var(--accent);background:var(--surface-3)}
.fx-filters button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.fx-count{margin-top:18px;font-size:13px;color:var(--muted)}
.fx-count b{color:var(--text);font-weight:800}
.fx-empty{margin-top:24px;padding:28px;text-align:center;border:1px dashed var(--border-2);border-radius:var(--r-lg);color:var(--muted)}

/* ---------- the effect card ---------- */
/* Same frame as the model cards, and the same one the reference uses for its effects grid:
   9:16 at ~270px. 3:4 at 208px was noticeably smaller than everything around it. */
.fx-grid{grid-template-columns:repeat(auto-fill,minmax(268px,1fr));gap:16px;margin-top:20px}
.fx-grid-sm{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
.fx-card{aspect-ratio:9/16;min-height:0;display:block;color:#fff}
.fx-card[hidden]{display:none}
/* The gradient face is the card's background; the shimmer meant for loading media is off. */
.fx-card .mcard-media{background:none;animation:none}
.fx-card .fx-media img,.fx-card .fx-media video{width:100%;height:100%;object-fit:cover}
.fx-card .mcard-body{position:relative;z-index:2;height:100%;display:flex;flex-direction:column;justify-content:flex-end;padding:14px 14px 13px}
.fx-card .mcard-title{font-size:16px;line-height:1.2}
.fx-card .mcard-sub{line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.fx-card:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* Typographic face: big initials as a watermark and a soft light, so a card with no sample is
   a deliberate design rather than an empty frame. */
.fx-type{display:flex;align-items:flex-start;justify-content:flex-end;padding:12px 14px;overflow:hidden}
.fx-type b{font-family:var(--disp);font-weight:800;font-size:clamp(64px,9vw,112px);line-height:.85;letter-spacing:-.06em;color:rgba(255,255,255,.17);user-select:none}
.fx-type i{position:absolute;width:200px;height:200px;border-radius:50%;filter:blur(46px);opacity:.7;inset-inline-start:-50px;bottom:-40px;background:rgba(255,255,255,.3)}

.fx-badges{position:absolute;top:10px;inset-inline-start:10px;inset-inline-end:10px;z-index:2;display:flex;gap:6px;flex-wrap:wrap;pointer-events:none}
.fx-badge{display:inline-block;font-size:10.5px;font-weight:800;letter-spacing:.04em;color:#fff;background:rgba(0,0,0,.5);border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:3px 8px;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);line-height:1.3}
.fx-badge.new{background:var(--accent);color:#04121a;border-color:transparent}
.fx-badge.smp{margin-inline-start:auto;font-weight:700;opacity:.85}
.fx-cost{display:inline-flex;align-items:center;gap:5px;align-self:flex-start;margin-top:9px;font-size:11.5px;font-weight:700;color:#fff;background:rgba(0,0,0,.42);border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:3px 9px}
.fx-cost .m{font-weight:600;opacity:.75}
.fx-model{display:block;margin-top:7px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.7)}
.fx-card .mcard-reveal{display:block}
.fx-card:hover .mcard-reveal,.fx-card:focus-visible .mcard-reveal{max-height:60px;opacity:1;margin-top:10px}
.fx-use{display:block;width:100%;height:34px;line-height:34px;text-align:center;border-radius:10px;font-size:12px;font-weight:700;background:#fff;color:#04121a}
.fx-modelcard .fx-use{margin-top:12px;background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.2)}

/* ---------- one effect ---------- */
.fx-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.fx-actions .mp-cta-lg{margin-top:14px}
.fx-link{margin-top:14px;font-weight:600;color:var(--accent)}
.fx-link:hover{text-decoration:underline}
.fx-detail .fx-hint{color:var(--faint);font-size:13px;margin-top:10px}
.fx-lead-wrap{display:flex;flex-direction:column;gap:10px}
.fx-lead{position:relative;inset:auto;aspect-ratio:4/5;border-radius:20px;overflow:hidden;border:1px solid var(--border);background:var(--surface-2)}
.fx-lead img,.fx-lead video{width:100%;height:100%;object-fit:cover;display:block}
.fx-lead video{position:absolute;inset:0;opacity:0;transition:opacity .5s var(--ease)}
.fx-lead video.is-ready{opacity:1}
.fx-lead video.is-undecodable{display:none}
.fx-lead .fx-type{position:absolute;inset:0}
.fx-note{font-size:12.5px;color:var(--muted);line-height:1.5}
.fx-note .fx-badge{margin-inline-end:4px;font-size:10px;color:var(--text);background:var(--surface-3);border-color:var(--border-2)}
.fx-modelgrid{grid-template-columns:minmax(220px,380px)}
.fx-modelcard{min-height:150px}
.fx-modelcard .mcard-body{position:relative;height:auto;background:linear-gradient(150deg,var(--surface-3),var(--surface-2))}
.fx-modelcard .mp-price{opacity:.85}
.fx-table tbody th{width:40%}
.fx-detail .mp-pricetag b{white-space:nowrap}
/* model-pages.css spaces the basis <span> 8px from the figure; the translatable word spans
   inside the figure and inside the basis must not inherit that gap. */
.fx-detail .mp-pricetag b span,.fx-detail .mp-pricetag > span span{margin-inline-start:0}

/* ---------- light mode ---------- */
/* Card text stays white: the card is a coloured gradient or a photo in both modes. */
:root[data-mode="light"] .fx-modelcard .mcard-body{background:linear-gradient(150deg,#1b2440,#0f172a)}
:root[data-mode="light"] .fx-modelcard .mcard-title{color:#fff}
:root[data-mode="light"] .fx-segtabs button[aria-pressed="true"]{color:#fff}
:root[data-mode="light"] .fx-badge.new{color:#04121a}

/* ---------- motion ---------- */
@media (prefers-reduced-motion:reduce){
  .fx-card .mcard-reveal{max-height:60px;opacity:1;margin-top:10px}
  .fx-segtabs button,.fx-chips button{transition:none}
}

/* ---------- phones ---------- */
@media (max-width:640px){
  .fx-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .fx-card{border-radius:16px}
  .fx-card .mcard-body{padding:11px 11px 11px}
  .fx-card .mcard-title{font-size:14px}
  .fx-card .mcard-sub{font-size:11px}
  .fx-type b{font-size:56px}
  .fx-badge{font-size:9.5px;padding:2px 6px}
  .fx-cost{font-size:10.5px}
  .fx-filter-label{min-width:0;width:100%}
  .fx-segtabs{width:100%;justify-content:space-between}
  .fx-segtabs button{flex:1;padding:0 8px}
  .fx-lead{aspect-ratio:4/5}
  .fx-actions{gap:12px}
  .fx-modelgrid{grid-template-columns:1fr}
}
