/* ==========================================================================
   Orbi — app surfaces: search overlay, player, paywall
   ========================================================================== */

/* ------------------------------------------------------- search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-sheet);
  background: rgba(5, 4, 9, 0.82);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-hover) var(--ease-hover), visibility var(--dur-3);
  overflow: auto;
  padding: calc(var(--nav-h) + 1.5rem) var(--gutter) 3rem;
}

.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.search-overlay__inner {
  width: min(100%, 900px);
  margin-inline: auto;
  display: grid;
  gap: 1.4rem;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 1);
}

.search-box svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex: none;
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.9rem + 0.8vw, 1.5rem);
  letter-spacing: -0.02em;
}

.search-box input::placeholder {
  color: var(--text-faint);
}

.search-box kbd {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--text-faint);
}

.search-results {
  display: grid;
  gap: 0.75rem;
}

.search-results__label {
  font-family: var(--font-display);
  font-size: var(--fs-2xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-faint);
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.7rem;
}

.search-hit {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.45rem;
  border-radius: 12px;
  transition: background var(--dur-2);
}

.search-hit:hover {
  background: rgba(255, 255, 255, 0.05);
}

.search-hit img {
  width: 52px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 7px;
}

.search-hit strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
}

.search-hit span {
  font-size: var(--fs-2xs);
  color: var(--text-faint);
}

/* --------------------------------------------------------------- paywall */
.paywall {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 4rem) var(--gutter);
  position: relative;
  overflow: hidden;
}

.paywall__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.paywall__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) brightness(0.4) saturate(1.1);
  transform: scale(1.1);
}

.paywall__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 50% 20%, rgba(108, 104, 251, 0.28), transparent 70%),
    linear-gradient(180deg, rgba(6, 5, 10, 0.55), rgba(6, 5, 10, 0.95));
}

.paywall__panel {
  width: min(100%, 520px);
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(14, 13, 21, 0.86);
  backdrop-filter: blur(28px);
  box-shadow: var(--shadow-lg);
  text-align: center;
  justify-items: center;
}

.paywall__orb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-orb);
  box-shadow: 0 0 40px -6px var(--primary-glow);
  color: #fff;
}

.paywall__orb svg {
  width: 26px;
  height: 26px;
}

.paywall__panel h1 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  letter-spacing: var(--tracking-heading);
}

.paywall__panel p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  max-width: 40ch;
}

.paywall__list {
  display: grid;
  gap: 0.45rem;
  text-align: left;
  width: 100%;
}

.paywall__list li {
  display: flex;
  gap: 0.55rem;
  align-items: start;
  font-size: var(--fs-xs);
  color: var(--text-soft);
}

.paywall__list svg {
  width: 15px;
  height: 15px;
  color: var(--primary-bright);
  flex: none;
  margin-top: 2px;
}

/* ---------------------------------------------------------------- player */
.watch {
  min-height: 100dvh;
  background: linear-gradient(180deg, #05040a 0%, #08070c 100%);
  padding-bottom: 2rem;
}

.watch__bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-inline: var(--gutter);
  background: linear-gradient(180deg, rgba(5, 4, 10, 0.96), rgba(5, 4, 10, 0.55) 70%, transparent);
  transition: background var(--dur-3), transform var(--dur-3);
}

.watch__bar.is-hidden {
  transform: translateY(-100%);
}

.watch__bar-title {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.watch__bar-title strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watch__bar-title span {
  font-size: var(--fs-2xs);
  color: var(--text-muted);
}

.watch__bar-spacer {
  flex: 1;
}

.watch__layout {
  display: block;
  padding: 150px var(--gutter) var(--gutter);
}

.watch__main {
  display: grid;
  gap: 1.2rem;
  min-width: 0;
}

.player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100dvh - 220px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.watch__info {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.5rem) var(--gutter) 0;
}

.watch__info h1 {
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem);
  letter-spacing: var(--tracking-heading);
}

.watch__info p {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.watch__side {
  padding: clamp(1.2rem, 2vw, 2rem) var(--gutter) 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(1rem, 2vw, 1.8rem);
  align-items: start;
}

.next-up {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.8rem;
  padding: 0.7rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  align-items: center;
  transition: all var(--dur-2);
}

.next-up:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
}

.next-up__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface-2);
}

.next-up__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.next-up__thumb span {
  position: absolute;
  inset: auto 0 0;
  padding: 0.2rem 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
}

.next-up strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
}

.next-up span {
  font-size: var(--fs-2xs);
  color: var(--text-faint);
}

/* keyboard hints */
.kbd-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  font-size: var(--fs-2xs);
  color: var(--text-faint);
}

.kbd-hints span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.kbd-hints kbd {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

/* mood rail */
.mood-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(420px, 40vw, 620px);
  grid-auto-rows: clamp(280px, 28vw, 420px);
  gap: clamp(0.6rem, 0.4rem + 0.6vw, 0.9rem);
  overflow-x: auto;
  padding-bottom: 0.6rem;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.mood-rail::-webkit-scrollbar {
  display: none;
}

.mood-rail > * {
  scroll-snap-align: start;
}

/* continue-watching card */
.continue-card {
  display: grid;
  gap: 0.55rem;
}

.continue-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-2);
}

.continue-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-hover) var(--ease-hover);
}

.continue-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 4, 9, 0.85));
}

.continue-card:hover .continue-card__media img {
  transform: scale(1.05);
}

.continue-card__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity var(--dur-2);
}

.continue-card__play span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #0b0a11;
  display: grid;
  place-items: center;
}

.continue-card:hover .continue-card__play {
  opacity: 1;
}

.continue-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
}

.continue-card__meta strong {
  font-size: var(--fs-sm);
  font-weight: 500;
}

.continue-card__meta span {
  font-size: var(--fs-2xs);
  color: var(--text-faint);
}

.continue-card__bar {
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.continue-card__bar span {
  display: block;
  height: 100%;
  background: var(--primary-bright);
  border-radius: inherit;
  box-shadow: 0 0 10px var(--primary-bright);
}

/* editorial wide card */
.editorial-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: clamp(240px, 30vw, 380px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  isolation: isolate;
}

.editorial-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform var(--dur-hover) var(--ease-hover);
}

.editorial-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 4, 9, 0.05) 25%, rgba(5, 4, 9, 0.9) 88%),
    linear-gradient(120deg, color-mix(in srgb, var(--accent, #6c68fb) 34%, transparent), transparent 60%);
}

.editorial-card:hover img {
  transform: scale(1.04);
}

.editorial-card__body {
  padding: clamp(1.1rem, 2.4vw, 1.8rem);
  display: grid;
  gap: 0.5rem;
}

.editorial-card h3 {
  font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem);
  letter-spacing: -0.02em;
}

.editorial-card p {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.7);
  max-width: 44ch;
}

.editorial-card__meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: var(--fs-2xs);
  color: rgba(255, 255, 255, 0.62);
}

/* ------------------------------------------------------------------ misc */
.filter-toggle {
  display: inline-flex;
}

@media (min-width: 1024px) {
  .filter-toggle {
    display: none;
  }
}

.section-anchor {
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.sticky-subnav {
  position: sticky;
  top: var(--nav-h);
  z-index: var(--z-sticky);
  background: rgba(8, 7, 12, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
}

.player-fallback {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.8rem;
  padding: 2rem;
  text-align: center;
  color: var(--text-soft);
  font-size: var(--fs-sm);
  background: rgba(8, 7, 13, 0.94);
  backdrop-filter: blur(10px);
}

.player-fallback[hidden] {
  display: none;
}

.player-fallback button {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
}

.player.is-css-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100vw;
  height: 100dvh;
  aspect-ratio: auto;
  max-height: none;
  border-radius: 0;
}

@media (max-width: 899px) {
  .watch__bar {
    height: 60px;
  }
  .watch__layout {
    padding-top: 60px;
  }
}
/* ---------------------------------------------------------------- TV mode */
@media (min-width: 2400px) {
  .row__scroller--cards { grid-auto-columns: clamp(280px, 13vw, 440px); }
  .row__scroller--rank { grid-auto-columns: clamp(360px, 16vw, 560px); }
  .row__scroller--wide { grid-auto-columns: clamp(460px, 24vw, 780px); }
  .title-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .mood-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
  .card-caption__title { font-size: 1.05rem; }
  .card-caption__meta { font-size: 0.85rem; }
  .episode__thumb { width: 96px; }
}

@media (min-width: 3200px) {
  .row__scroller--cards { grid-auto-columns: clamp(360px, 13vw, 560px); }
  .row__scroller--rank { grid-auto-columns: clamp(460px, 16vw, 700px); }
  .title-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}

/* Grid children must be allowed to shrink below their max-content width, or
   horizontally scrollable chip rows force the whole page wider on phones. */
.browse-layout > div,
.section > .container,
.account-grid > * {
  min-width: 0;
}


/* ------------------------------------------------------------- control room */
.admin-page {
  padding-top: calc(var(--nav-h) + clamp(1.5rem, 3vw, 2.5rem));
  padding-bottom: var(--section-y);
  display: grid;
  gap: clamp(1.2rem, 2vw, 2rem);
}

.admin-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.admin-header h1 {
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
}

.admin-header p {
  font-size: var(--fs-sm);
}

.admin-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(95, 211, 166, 0.08);
  border: 1px solid rgba(95, 211, 166, 0.28);
  color: var(--text-soft);
  font-size: var(--fs-xs);
}

.admin-live strong {
  color: var(--accent-green);
  font-size: var(--fs-sm);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 5px rgba(95, 211, 166, 0.14);
  animation: live-pulse 2.6s ease-in-out infinite;
}

@keyframes live-pulse {
  50% { box-shadow: 0 0 0 9px rgba(95, 211, 166, 0.04); }
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(0.8rem, 1.4vw, 1.2rem);
}

.admin-stat {
  position: relative;
  display: grid;
  gap: 0.35rem;
  padding: 1.3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(110% 90% at 100% 0%, color-mix(in srgb, var(--accent, #6c68fb) 14%, transparent), transparent 60%),
    rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.admin-stat__label {
  font-size: var(--fs-2xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.admin-stat__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 1.4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.admin-stat__foot {
  font-size: var(--fs-2xs);
  color: var(--text-muted);
}

.admin-stat__accent {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}

.admin-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(0.8rem, 1.4vw, 1.2rem);
}

.admin-chart,
.admin-panel {
  padding: clamp(1.1rem, 2vw, 1.6rem);
}

.admin-chart .panel__head p {
  font-size: var(--fs-2xs);
  color: var(--text-faint);
}

.bar-chart {
  display: flex;
  align-items: end;
  gap: 0.35rem;
  height: 190px;
  padding-top: 1rem;
  margin-top: 0.8rem;
  border-bottom: 1px solid var(--line-soft);
}

.bar-chart__col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  height: 100%;
  gap: 0.35rem;
}

.bar-chart__value {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  height: 12px;
}

.bar-chart__bar {
  display: block;
  width: 100%;
  max-width: 26px;
  min-height: 3px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #8b87ff, #4b47c9);
  box-shadow: 0 0 18px -6px var(--primary-glow);
  transition: height var(--dur-hover) var(--ease-hover);
}

.bar-chart__label {
  font-size: 0.58rem;
  color: var(--text-faint);
  white-space: nowrap;
  transform: rotate(-40deg);
  transform-origin: center;
  margin-bottom: 1.4rem;
}

.geo-list {
  display: grid;
  gap: 0.8rem;
  padding-top: 1.2rem;
}

.geo-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 0.7rem;
  align-items: center;
  font-size: var(--fs-xs);
}

.geo-row__code {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.geo-row__track {
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.geo-row__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.geo-row__value {
  font-variant-numeric: tabular-nums;
  color: var(--text-soft);
}

.geo-row__value small {
  color: var(--text-faint);
}

.status-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding-top: 1.4rem;
}

.donut {
  --paid: 0%;
  --trial: 0%;
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(
    #5fd3a6 0 var(--paid),
    #6c68fb var(--paid) var(--trial),
    #f7c764 var(--trial) calc(var(--trial) + 6%),
    #2e2d3a calc(var(--trial) + 6%) 100%
  );
  display: grid;
  place-items: center;
  flex: none;
}

.donut::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: #12111b;
}

.donut span {
  position: relative;
  display: grid;
  text-align: center;
  line-height: 1.1;
}

.donut strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.donut small {
  font-size: 0.62rem;
  color: var(--text-faint);
}

.legend {
  display: grid;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  min-width: 160px;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend strong {
  margin-left: auto;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.legend__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.admin-progress {
  display: grid;
  gap: 0.6rem;
  padding-top: 0.5rem;
}

.admin-progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--fs-xs);
  color: var(--text-soft);
}

.admin-progress__meta.faint {
  color: var(--text-faint);
  font-size: var(--fs-2xs);
}

.admin-progress__track {
  height: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.admin-progress__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width var(--dur-hover) var(--ease-hover);
}

.admin-lower {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.4vw, 1.2rem);
}

.admin-panel--wide {
  grid-column: 1 / -1;
}

@media (max-width: 800px) {
  .admin-lower { grid-template-columns: 1fr; }
  .bar-chart { height: 150px; }
}


/* ------------------------------------------------------ compact rec shelf */
.mini-shelf {
  grid-column: 1 / -1;
  padding-top: 0.5rem;
}

.mini-shelf .section-head {
  margin-bottom: 0.6rem;
}

.mini-shelf .section-head h2 {
  font-size: var(--fs-h4);
}

.mini-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 112px;
  gap: 0.7rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.mini-row::-webkit-scrollbar {
  display: none;
}

.mini-card {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  transition: transform var(--dur-hover) var(--ease-hover);
}

.mini-card:hover {
  transform: translateY(-4px);
}

.mini-card__media {
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.mini-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-card strong {
  font-size: var(--fs-2xs);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-card span {
  font-size: 0.62rem;
  color: var(--text-faint);
}


/* ------------------------------------------------------------- cinema intro */
.cinema-intro {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  background: #050409;
  transition: opacity 600ms var(--ease-hover), visibility 600ms;
}

.cinema-intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cinema-intro::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-image: var(--intro-art);
  background-size: cover;
  background-position: center 35%;
  filter: blur(26px) saturate(0.9);
  opacity: 0.55;
  transform: scale(1.08);
}

.cinema-intro__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 70% at 50% 45%, rgba(108, 104, 251, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(5, 4, 9, 0.3), rgba(5, 4, 9, 0.92));
}

.cinema-intro__content {
  position: absolute;
  z-index: 2;
  top: 17%;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  text-align: center;
  padding: 1.5rem;
  width: min(92%, 620px);
}

.cinema-intro__label {
  font-size: var(--fs-2xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.cinema-intro__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.2rem + 3vw, 3.4rem);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.cinema-intro__line {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.72);
}

.cinema-intro__play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.5rem 0.7rem 0.8rem;
  border-radius: var(--radius-pill);
  background: #f6f5fb;
  color: #0b0a11;
  font-size: var(--fs-sm);
  font-weight: 600;
  box-shadow: 0 18px 50px -16px rgba(0, 0, 0, 0.9);
  transition: transform var(--dur-hover) var(--ease-hover), background var(--dur-hover) var(--ease-hover);
}

.cinema-intro__play:hover {
  transform: translate(-50%, -50%) scale(1.04);
  background: #fff;
}

.cinema-intro__play svg {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-sizing: content-box;
}

.cinema-intro__loading {
  position: absolute;
  z-index: 3;
  top: calc(50% + 12px);
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: var(--fs-2xs);
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  opacity: 0;
  transition: opacity var(--dur-hover) var(--ease-hover);
}

.cinema-intro.is-loading .cinema-intro__loading {
  opacity: 1;
}

.cinema-intro.is-loading .cinema-intro__play,
.cinema-intro.is-loading .cinema-intro__hint {
  opacity: 0;
}

.cinema-intro__hint {
  position: absolute;
  z-index: 3;
  top: calc(50% + 52px);
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: var(--fs-2xs);
  color: rgba(255, 255, 255, 0.42);
}


/* -------------------------------------------------------- popup guard notice */
.popup-guard {
  position: absolute;
  z-index: 8;
  left: 50%;
  transform: translateX(-50%);
  bottom: 5.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: min(92%, 620px);
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  background: rgba(12, 11, 18, 0.94);
  border: 1px solid rgba(255, 92, 114, 0.4);
  box-shadow: var(--shadow-lg);
  color: var(--text-soft);
  font-size: var(--fs-xs);
  backdrop-filter: blur(14px);
}

.popup-guard button {
  margin-left: auto;
  flex: none;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: var(--fs-2xs);
}

/* --------------------------------------------------------- Jasminium player */
/* Once the stream is live the provider iframe never receives a click again. */
.player.is-live iframe {
  pointer-events: none;
  /* The provider draws a 74px title bar on top and a ~75px control bar at the
     bottom. Stretch the frame and push those bars outside the clipped player
     so only the picture is visible. */
  inset: -74px 0 auto;
  height: calc(100% + 150px);
}

.player.is-settings iframe {
  inset: 0;
  height: 100%;
}

.player-ui__hint {
  position: absolute;
  z-index: 9;
  left: 50%;
  top: 1rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: min(92%, 620px);
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  background: rgba(12, 11, 18, 0.95);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: var(--fs-xs);
  text-align: center;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.player-ui {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.player-ui[hidden] {
  display: none;
}

.player-ui::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 4, 10, 0.5), transparent 26%, transparent 52%, rgba(5, 4, 10, 0.9));
  opacity: 0;
  transition: opacity var(--dur-hover) var(--ease-hover);
}

.player:hover .player-ui::before,
.player-ui:focus-within::before,
.player:not(.is-playing) .player-ui::before {
  opacity: 1;
}

.player-ui__hit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: default;
}

.player-ui__center {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 18px 60px -12px rgba(108, 104, 251, 0.85);
  transition: transform var(--dur-hover) var(--ease-hover), opacity var(--dur-hover) var(--ease-hover);
}

.player-ui__center .icon {
  width: 30px;
  height: 30px;
}

.player-ui__center:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.player-ui__center.is-hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  pointer-events: none;
}

.player-ui__bottom {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 0.35rem;
  padding: 2.6rem 1.1rem 0.85rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur-hover) var(--ease-hover), transform var(--dur-hover) var(--ease-hover);
}

.player:hover .player-ui__bottom,
.player-ui:focus-within .player-ui__bottom,
.player:not(.is-playing) .player-ui__bottom {
  opacity: 1;
  transform: none;
}

.player-ui__track input {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(
    to right,
    var(--primary) 0 var(--p, 0%),
    rgba(255, 255, 255, 0.3) var(--p, 0%) 100%
  );
}

.player-ui__track input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.player-ui__track input::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.player-ui__row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #fff;
}

.player-ui__btn {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 0.4rem;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-2xs);
  font-variant-numeric: tabular-nums;
  transition: background var(--dur-hover) var(--ease-hover), color var(--dur-hover) var(--ease-hover);
}

.player-ui__btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.player-ui__subs,
.player-ui__quality {
  min-width: 30px;
  font-weight: 600;
}

.player-ui__time {
  margin-left: 0.35rem;
  font-size: var(--fs-2xs);
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.78);
}

.player-ui__spacer {
  flex: 1;
}

@media (max-width: 640px) {
  .player-ui__bottom {
    padding: 2rem 0.7rem 0.6rem;
  }
  .player-ui__center {
    width: 58px;
    height: 58px;
  }
  .player-ui__btn {
    min-width: 28px;
    height: 28px;
  }
}

.player-ui__hint button {
  flex: none;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: var(--fs-2xs);
  font-weight: 600;
}

/* ---------------------------------------------------------- language switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.lang-switch__btn {
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: background var(--dur-hover) var(--ease-hover), color var(--dur-hover) var(--ease-hover);
}

.lang-switch__btn:hover {
  color: #fff;
}

.lang-switch__btn.is-active {
  background: var(--primary);
  color: #fff;
}
