/* KJPTV — catalog furniture: filter bar, spotlight, rows, catalog grid,
   continue watching, upcoming cards. Shared by Shows & Films / detail / watch. */
/* ============================================================================
   SHOWS & FILMS PAGE
   ========================================================================== */
.nav-links a.is-current { color: var(--gold-mustard); }
.nav-links a.is-current::after { transform: scaleX(1); }

.page-head { padding: calc(var(--nav-height) + 54px) 0 6px; }
.page-title { font-size: clamp(calc(var(--size-display) * 0.5667), 8vw, var(--size-display)); font-weight: 900; line-height: 1; letter-spacing: -0.045em; }

/* ---- Inline browse / filter bar (matte panel + inset field, as in the search modal) */
.filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; padding: 14px 16px; border-radius: var(--radius-card); background: var(--color-surface-2); border: 1px solid var(--border-bevel-strong); box-shadow: var(--bevel-highlight), var(--shadow-matte); }
.fb-new { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.filter-bar .filter-chip { white-space: nowrap; }
.fb-new svg { width: 13px; height: 13px; }
.fb-search { margin-left: auto; display: flex; align-items: center; gap: 11px; padding: 10px 18px; border-radius: 999px; background: var(--color-surface-2); box-shadow: inset 0 4px 9px rgba(0,0,0,0.72), inset 0 8px 16px rgba(0,0,0,0.4), inset 0 -2px 3px rgba(255,255,255,0.04); border: 1px solid rgba(0,0,0,0.4); }
.fb-search svg { width: 16px; height: 16px; color: var(--gold-mustard); flex-shrink: 0; }
.fb-search input { width: 168px; background: none; border: none; outline: none; color: var(--text-heading); font-family: inherit; font-size: calc(var(--size-body) * 0.9643); }
.fb-search input::placeholder { color: var(--text-muted); }
.fb-count { font-size: calc(var(--size-meta) * 1.0455); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 30px; }
/* Star-rating filter — members' ratings on the catalog */
.fb-rate { display: flex; align-items: center; gap: 10px; }
.fb-rate .fb-range { width: 116px; accent-color: #d69d38; background: none; }
.fb-rate-val { min-width: 48px; font-size: var(--size-small); font-weight: 800; color: var(--gold-mustard); font-variant-numeric: tabular-nums; }

/* ---- Spotlight (featured title) ------------------------------------------ */
.spotlight-wrap { padding: 30px 0 4px; }
.spot-shell { position: relative; }
.spot-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Centered by offset, not transform: the shared .icon-btn hover lift replaces
   transform, which would drop the button half its height on hover. */
.spot-arrow { display: none; position: absolute; z-index: 6; top: calc(50% - 24px); width: 48px; height: 48px; }
#spotPrev.spot-arrow { left: 16px; }
#spotNext.spot-arrow { right: 16px; }
@media (min-width: 761px) { .spot-arrow { display: inline-flex; } }
@media (min-width: 1340px) {
  #spotPrev.spot-arrow { left: -60px; }
  #spotNext.spot-arrow { right: -60px; }
}
.spot-stage { position: relative; aspect-ratio: 16 / 9; max-height: 660px; border-radius: 18px; overflow: hidden; border: 1px solid var(--border-bevel-strong); box-shadow: var(--bevel-highlight), var(--shadow-matte-lg); background: var(--color-surface-1); }
.spot-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 420ms var(--ease-out); }
.spot-slide.is-active { opacity: 1; pointer-events: auto; }
.spot-media { position: absolute; inset: 0; }
.spot-media video { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.spot-protect { position: absolute; inset: 0; background: linear-gradient(90deg, #060606 0%, rgba(6,6,6,0.94) 22%, rgba(6,6,6,0.74) 40%, rgba(6,6,6,0.18) 70%, rgba(6,6,6,0.5) 100%); }
.spot-body { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; max-width: 580px; padding: 56px 54px; }
.spot-kicker { margin-bottom: 14px; }
.spot-title { font-size: clamp(calc(var(--size-display) * 0.6333), 4.6vw, calc(var(--size-display) * 1.0667)); font-weight: 900; line-height: 0.94; letter-spacing: -0.045em; }
.spot-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.spot-log { margin-top: 18px; max-width: 450px; font-size: calc(var(--size-body) * 1.1071); color: var(--text-body); }
.spot-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.spot-nav { position: absolute; z-index: 4; right: 22px; bottom: 20px; display: flex; align-items: center; gap: 14px; }
.spot-sound { position: absolute; z-index: 5; top: 18px; right: 20px; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--gold-mustard); background: var(--glass-sheen), rgba(9,9,9,0.66); border: 1px solid var(--border-gold); box-shadow: var(--glass-edge); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform var(--dur-fast) var(--ease-out); }
.spot-sound svg { width: 17px; height: 17px; }
.spot-sound:hover svg { filter: drop-shadow(0 0 6px rgba(255,210,107,0.65)); }
.spot-sound:active { transform: scale(0.94); }
.spot-dots { display: flex; align-items: center; gap: 7px; }
.spot-dot { width: 8px; height: 8px; padding: 0; border-radius: 999px; background: rgba(245,245,245,0.24); transition: width var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out); }
.spot-dot.is-active { width: 26px; background: var(--gold-bar); }

/* ---- Horizontal rows (continue watching / upcoming) ---------------------- */
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.row-head h2 { font-size: calc(var(--size-heading) * 0.8438); font-weight: 800; }
.row-head p { margin-top: 6px; font-size: calc(var(--size-body) * 1.0357); color: var(--text-muted); }
.hrow { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 2px 12px; }
.cw-section { display: none; }
body.view-paid .cw-section { display: block; }
.cw-card { flex: 0 0 330px; scroll-snap-align: start; cursor: pointer; }
.cw-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-bevel); box-shadow: var(--bevel-highlight), var(--shadow-matte); }
.cw-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-base) var(--ease-out); }
.cw-card:hover .cw-thumb img { transform: scale(1.03); }
.cw-card:hover .cw-thumb { border-color: var(--border-gold); }
.cw-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #2a1e08; background: var(--gold-knob); box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 8px 20px rgba(0,0,0,0.55); transition: transform var(--dur-base) var(--ease-out); }
.cw-card:hover .cw-play { transform: translate(-50%, -50%) scale(1.06); }
.cw-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,0.12); }
.cw-bar span { display: block; height: 100%; width: var(--p, 40%); background: var(--gold-bar); }
.cw-title { margin-top: 12px; font-size: calc(var(--size-body) * 1.0714); font-weight: 700; color: var(--text-heading); }
.cw-sub { margin-top: 3px; font-size: calc(var(--size-small) * 1.0417); color: var(--text-muted); }

/* ---- Catalog grid --------------------------------------------------------- */
.catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-card { flex: none; width: 100%; }
.catalog-empty { padding: 64px 20px; text-align: center; color: var(--text-muted); font-size: calc(var(--size-body) * 1.0357); }
.catalog-empty #catEmptyMsg { font-size: calc(var(--size-body) * 1.1429); font-weight: 800; color: var(--text-heading); }
.catalog-empty-idea { display: grid; justify-items: center; gap: 14px; margin: 10px auto 18px; max-width: 44ch; }
.catalog-empty-idea p { color: var(--text-body); line-height: 1.55; text-wrap: pretty; }

/* ---- New & upcoming ------------------------------------------------------- */
.up-card { position: relative; flex: 0 0 268px; scroll-snap-align: start; aspect-ratio: 3 / 4; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--border-bevel); background: var(--card-bg, var(--color-surface-1)); box-shadow: var(--bevel-highlight), var(--shadow-matte); transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.up-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0) 42%, rgba(0,0,0,0.34) 100%); pointer-events: none; }
.up-card:hover { transform: translateY(-4px); border-color: var(--border-gold); }
.up-body { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; }
.up-date { align-self: flex-start; font-size: calc(var(--size-meta) * 0.9091); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-mustard); padding: 5px 10px; border-radius: 999px; background: var(--glass-sheen), rgba(9,9,9,0.7); border: 1px solid var(--border-gold); box-shadow: var(--glass-edge); margin-bottom: auto; }
.up-title { font-size: calc(var(--size-subhead) * 1.1667); font-weight: 800; color: var(--text-heading); letter-spacing: -0.02em; line-height: 1.08; }
.up-log { margin-top: 6px; font-size: calc(var(--size-small) * 1.0417); color: rgba(245,245,245,0.62); }
.up-notify { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 8px; font-size: calc(var(--size-small) * 1.0417); font-weight: 700; color: var(--text-heading); background: var(--glass-sheen), rgba(9,9,9,0.55); border: 1px solid var(--border-bevel-strong); box-shadow: var(--glass-edge); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out); }
.up-notify svg { width: 15px; height: 15px; }
.up-notify:hover { border-color: var(--border-gold); color: var(--gold-mustard); }
.up-notify.is-on { color: #2a1e08; background: var(--gold-metallic-135); border-color: transparent; box-shadow: var(--bevel-highlight); }

/* ---- Free-episode CTA band ------------------------------------------------ */
.cta-band { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 62px 54px; border-radius: 18px; border: 1px solid var(--border-gold); background: var(--color-surface-1) url('assets/cta-watch-party.png?v=8e5a1165') center right / cover no-repeat; box-shadow: var(--bevel-highlight), var(--shadow-matte-lg), var(--gold-glow); }
.cta-band::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,6,6,0.92) 0%, rgba(6,6,6,0.82) 26%, rgba(6,6,6,0.58) 50%, rgba(6,6,6,0.3) 76%, rgba(6,6,6,0.5) 100%); pointer-events: none; }
.cta-copy { position: relative; z-index: 1; }
.cta-copy h2 { font-size: clamp(calc(var(--size-heading) * 0.875), 3vw, calc(var(--size-heading) * 1.25)); font-weight: 900; letter-spacing: -0.035em; line-height: 1.05; }
.cta-copy p { margin-top: 12px; max-width: 520px; font-size: calc(var(--size-body) * 1.1071); color: var(--text-body); }
.cta-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
.cta-member { display: none; }
body.view-paid .cta-member { display: inline-flex; }
body.view-paid .cta-guest { display: none; }

/* ---- Current-page items in the mobile chrome ----------------------------- */
.app-tab.is-current, .sheet-link.is-current { pointer-events: none; }
.sheet-link.is-current { color: var(--gold-mustard); }
.sheet-link.is-current .sl-ico { color: var(--gold-mustard); }
.sheet-link.is-current .sl-arrow { opacity: 0; }
.sheet-brand { display: flex; align-items: center; gap: 12px; flex: 1; color: inherit; }
.sheet-brand:hover .sheet-word { color: var(--gold-mustard); }

@media (max-width: 1024px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .spot-stage { aspect-ratio: auto; height: 470px; }
  .spot-body { padding: 44px 38px; }
  .spot-media { inset: 0; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 42px 36px; }}
/* Arrows ride inside the card below 1340px — keep slide copy clear of them */
@media (min-width: 761px) and (max-width: 1339px) {
  .spot-body { padding-left: 84px; padding-right: 84px; }
}
@media (max-width: 760px) {
  .page-head { padding: calc(var(--nav-height) + 26px) 0 4px; }
  .page-title { text-align: center; }
  .filter-bar { gap: 10px; padding: 12px; }
  .fb-count { display: none; }
  .fb-search { margin-left: 0; width: 100%; padding: 9px 15px; }
  .fb-search input { width: 100%; }
  .spotlight-wrap { padding: 22px 0 0; }
  .spot-media { inset: 0; }
  .spot-protect { background: linear-gradient(180deg, rgba(6,6,6,0.35) 0%, rgba(6,6,6,0.72) 42%, rgba(6,6,6,0.96) 78%, #060606 100%); }
  .spot-stage { aspect-ratio: auto; height: 520px; }
  .spot-body { padding: 34px 22px 100px; justify-content: flex-end; align-items: center; text-align: center; }
  .spot-kicker, .spot-chips, .spot-log { display: none; }
  .spot-cta { margin-top: 20px; justify-content: center; }
  .spot-log { font-size: calc(var(--size-body) * 1.0357); }
  .spot-cta { width: 100%; }
  .spot-cta .btn { flex: 1 1 calc(50% - 6px); justify-content: center; }
  .spot-nav { left: 0; right: 0; bottom: 22px; justify-content: center; }
  .spot-arrow { display: none; }
  .spot-sound { top: 14px; right: 14px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .grid-card .poster-tag, .grid-card .poster-log { display: none; }
  .grid-card .poster-info { left: 10px; right: 10px; bottom: 14px; text-align: center; }
  .grid-card .poster-name { font-size: calc(var(--size-body) * 1.0714); line-height: 1.15; }
  .row-head h2 { font-size: calc(var(--size-subhead) * 1.2222); }
  .cw-card { flex: 0 0 262px; }
  .up-card { flex: 0 0 210px; }
  .cta-band { padding: 34px 24px; gap: 26px; background-position: center top; }
  .cta-band::before { background: linear-gradient(180deg, rgba(6,6,6,0.55) 0%, rgba(6,6,6,0.86) 38%, rgba(6,6,6,0.96) 72%, #060606 100%); }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 100%; justify-content: center; }
}
