/* Studio brand pages (studio.php). Grid, filters and pager come from zapflix-catalog.css,
   the Play / Details pills from zapflix-hero.css. --zf-studio is the studio's accent colour. */
.zf-studio-page { --zf-studio: #e50914; --zf-st-ease: cubic-bezier(.22, .61, .36, 1); background: #0b0b0f; overflow-x: hidden; }

/* ---------- hero ---------- */
.zf-st-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(86vh, 800px);
  padding: 120px 4% 54px;
  overflow: hidden;
  color: #fff;
  background: #0b0b0f;
}
.zf-st-hero.is-plain {
  min-height: 420px;
  background:
    radial-gradient(70% 90% at 15% 100%, color-mix(in srgb, var(--zf-studio) 34%, transparent), transparent 70%),
    radial-gradient(50% 60% at 90% 0%, color-mix(in srgb, var(--zf-studio) 16%, transparent), transparent 70%),
    #0b0b0f;
}
.zf-st-slide { position: absolute; inset: 0; z-index: -2; opacity: 0; transition: opacity 1s var(--zf-st-ease); }
.zf-st-slide.is-on { opacity: 1; }
.zf-st-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity .8s var(--zf-st-ease), transform 9s linear;
}
.zf-st-bg.is-loaded { opacity: 1; }
.zf-st-slide.is-on .zf-st-bg { transform: scale(1); }
.zf-st-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .72) 0, rgba(0, 0, 0, 0) 150px),
    linear-gradient(0deg, #0b0b0f 0, rgba(11, 11, 15, .6) 22%, rgba(11, 11, 15, 0) 48%),
    linear-gradient(90deg, rgba(11, 11, 15, .95) 0, rgba(11, 11, 15, .78) 30%, rgba(11, 11, 15, .2) 62%, rgba(11, 11, 15, 0) 80%),
    radial-gradient(55% 75% at 0% 100%, color-mix(in srgb, var(--zf-studio) 30%, transparent), transparent 72%);
}
html[dir="rtl"] .zf-st-scrim {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .72) 0, rgba(0, 0, 0, 0) 150px),
    linear-gradient(0deg, #0b0b0f 0, rgba(11, 11, 15, .6) 22%, rgba(11, 11, 15, 0) 48%),
    linear-gradient(270deg, rgba(11, 11, 15, .95) 0, rgba(11, 11, 15, .78) 30%, rgba(11, 11, 15, .2) 62%, rgba(11, 11, 15, 0) 80%),
    radial-gradient(55% 75% at 100% 100%, color-mix(in srgb, var(--zf-studio) 30%, transparent), transparent 72%);
}
.zf-st-hero.is-plain .zf-st-scrim { display: none; }
.zf-st-inner { position: relative; width: 100%; max-width: 1480px; margin: 0 auto; }
.zf-st-hero .zf-crumbs ol { margin-bottom: 18px; color: rgba(255, 255, 255, .62); }
.zf-st-hero .zf-crumbs a { color: rgba(255, 255, 255, .8); }

/* studio logo (or its name when the logo cannot load) */
.zf-st-brand { margin: 0; line-height: 1; }
.zf-st-logo {
  display: block;
  height: clamp(46px, 6.2vw, 88px);
  width: auto;
  max-width: min(440px, 72vw);
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .55));
  animation: zfStRise .8s var(--zf-st-ease) both;
}
html[dir="rtl"] .zf-st-logo { object-position: right center; }
.zf-st-logo.is-white { filter: brightness(0) invert(1) drop-shadow(0 6px 24px rgba(0, 0, 0, .55)); }
.zf-st-brand-text { display: block; font-size: clamp(32px, 5vw, 60px); font-weight: 900; letter-spacing: -.02em; text-shadow: 0 6px 30px rgba(0, 0, 0, .5); }
.zf-st-brand.has-logo .zf-st-brand-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.zf-st-tagline { margin: 14px 0 0; max-width: 560px; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.5; color: rgba(255, 255, 255, .78); animation: zfStRise .8s .06s var(--zf-st-ease) both; }

.zf-st-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; animation: zfStRise .8s .12s var(--zf-st-ease) both; }
.zf-st-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  transition: background .2s, box-shadow .2s, color .2s;
}
.zf-st-stat b { font-size: 17px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.zf-st-stat:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.zf-st-stat.is-on { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--zf-studio) 85%, #fff), 0 8px 24px color-mix(in srgb, var(--zf-studio) 28%, transparent); }

/* featured title */
.zf-st-feature { position: relative; max-width: 640px; margin-top: clamp(26px, 5vh, 54px); min-height: 1px; }
.zf-st-card[hidden] { display: none; }
.zf-st-card.is-on > * { animation: zfStRise .7s var(--zf-st-ease) both; }
.zf-st-card.is-on > :nth-child(2) { animation-delay: .05s; }
.zf-st-card.is-on > :nth-child(3) { animation-delay: .1s; }
.zf-st-card.is-on > :nth-child(4) { animation-delay: .15s; }
.zf-st-card.is-on > :nth-child(5) { animation-delay: .2s; }
.zf-st-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .86);
}
.zf-st-kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--zf-studio); box-shadow: 0 0 0 4px color-mix(in srgb, var(--zf-studio) 28%, transparent); }
.zf-st-ftitle { margin: 12px 0 0; font-size: clamp(28px, 3.6vw, 46px); font-weight: 900; line-height: 1.08; letter-spacing: -.02em; text-shadow: 0 4px 24px rgba(0, 0, 0, .5); }
.zf-st-flogo { display: block; max-width: min(400px, 78vw); max-height: 120px; width: auto; height: auto; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 6px 22px rgba(0, 0, 0, .55)); }
html[dir="rtl"] .zf-st-flogo { object-position: right bottom; }
.zf-st-ftitle.has-logo .zf-st-ftitle-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.zf-st-meta { display: flex; flex-wrap: wrap; align-items: center; margin-top: 14px; font-size: 14.5px; font-weight: 600; color: rgba(255, 255, 255, .82); }
.zf-st-meta > span + span::before { content: "•"; margin: 0 9px; opacity: .5; }
.zf-st-vote { display: inline-flex; align-items: center; gap: 4px; color: #ffd166; font-weight: 800; }
.zf-st-synopsis {
  margin: 12px 0 0;
  max-width: 580px;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .84);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}
.zf-st-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* spotlight progress */
.zf-st-dots { display: flex; align-items: center; gap: 8px; margin-top: 28px; }
.zf-st-dot { position: relative; width: 34px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.zf-st-dot i { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, .28); transition: background .2s; }
.zf-st-dot:hover i { background: rgba(255, 255, 255, .5); }
.zf-st-dot i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #fff; transform: scaleX(0); transform-origin: left center; }
html[dir="rtl"] .zf-st-dot i::after { transform-origin: right center; }
.zf-st-dot.is-on { width: 54px; }
.zf-st-dot.is-on i::after { animation: zfStProgress 7s linear forwards; }
.zf-st-hero.is-paused .zf-st-dot.is-on i::after { animation-play-state: paused; }
.zf-st-pause { display: grid; place-items: center; width: 32px; height: 32px; margin-inline-start: 6px; padding: 0; border: 0; border-radius: 50%; color: #fff; cursor: pointer;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); transition: background .2s; }
.zf-st-pause:hover { background: rgba(255, 255, 255, .2); }
.zf-st-pause .i-play, .zf-st-pause[aria-pressed="true"] .i-pause { display: none; }
.zf-st-pause[aria-pressed="true"] .i-play { display: inline; }
.zf-st-dot:focus-visible, .zf-st-pause:focus-visible, .zf-st-stat:focus-visible, .zf-st-chip:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- studio switcher ---------- */
.zf-st-switch { position: relative; z-index: 2; max-width: 1480px; margin: -6px auto 0; padding: 0 4%; }
.zf-st-switch-track { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 6px; scroll-snap-type: x proximity; }
.zf-st-switch-track::-webkit-scrollbar { display: none; }
.zf-st-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  color: #d6d6de;
  text-decoration: none;
  white-space: nowrap;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
  transition: background .2s, color .2s, box-shadow .2s, transform .2s;
}
.zf-st-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 70%, transparent); }
.zf-st-chip:hover { color: #fff; background: rgba(255, 255, 255, .1); transform: translateY(-1px); }
.zf-st-chip.is-on {
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 34%, rgba(255, 255, 255, .06)), rgba(255, 255, 255, .05));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 75%, #fff), 0 10px 26px color-mix(in srgb, var(--c) 22%, transparent);
}

/* ---------- browse grid ---------- */
.zf-st-main { padding-top: 34px; }
.zf-st-main .zf-cat-head h2 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; letter-spacing: -.01em; }
.zf-studio-page .zf-cat-chip.is-on { background: var(--zf-studio); }
.zf-studio-page .zf-cat-select.is-set { background: color-mix(in srgb, var(--zf-studio) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--zf-studio) 55%, transparent); }
.zf-studio-page .zf-heading-bar { border-inline-start-color: var(--zf-studio); }
#zfStBrowse { scroll-margin-top: 70px; }

@keyframes zfStRise { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
@keyframes zfStProgress { to { transform: scaleX(1); } }

/* ---------- phones ---------- */
@media (max-width: 900px) {
  .zf-st-hero { min-height: 0; padding: 92px 16px 34px; }
  .zf-st-scrim {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .7) 0, rgba(0, 0, 0, 0) 120px),
      linear-gradient(0deg, #0b0b0f 0, rgba(11, 11, 15, .82) 45%, rgba(11, 11, 15, .25) 100%),
      radial-gradient(80% 60% at 50% 100%, color-mix(in srgb, var(--zf-studio) 26%, transparent), transparent 72%) !important;
  }
  .zf-st-feature { margin-top: 30px; }
  .zf-st-synopsis { font-size: 14px; -webkit-line-clamp: 2; }
  .zf-st-actions { flex-wrap: nowrap; }
  .zf-st-actions .zf-hero-btn { flex: 1 1 0; min-width: 0; height: 46px; padding: 0 14px !important; font-size: 15px; }
  .zf-st-flogo { max-height: 84px; }
  .zf-st-switch { padding: 0; margin-top: 0; }
  .zf-st-switch-track { padding-inline: 16px; }
  .zf-st-chip { padding: 9px 14px; font-size: 13px; }
  .zf-st-main { padding-top: 24px; }
}
@media (max-width: 700px) {
  .zf-st-main.zf-cat { padding-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .zf-st-slide, .zf-st-bg { transition: opacity .2s; }
  .zf-st-bg, .zf-st-slide.is-on .zf-st-bg { transform: none; }
  .zf-st-logo, .zf-st-tagline, .zf-st-stats, .zf-st-card.is-on > * { animation: none; }
  .zf-st-dot.is-on i::after { animation: none; transform: scaleX(1); }
}
