/* Scoped controls for the existing StablizeIPTV shelf. */
.line-up .line-up-carousel-wrap.has-shelf-toolbar {
  min-height: 0;
}
.line-up .stablize-shelf-toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 12px auto 0;
}
.line-up .stablize-shelf-toolbar > .reel-control,
.hero-ring .film-controls > .film-arrow,
.line-up .stablize-shelf-toolbar > .carousel-pause,
.hero-ring .film-controls > .carousel-pause {
  position: static;
  inset: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  height: auto;
  margin: 0;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 999px;
  background: var(--surface, #13182e);
  color: var(--soft, #cbd5e1);
  transform: none;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.line-up .stablize-shelf-toolbar > .reel-control,
.hero-ring .film-controls > .film-arrow {
  width: 44px;
  padding: 10px;
}
.line-up .stablize-shelf-toolbar > .carousel-pause,
.hero-ring .film-controls > .carousel-pause {
  padding: 10px 16px;
  font: 600 12px/1.5 var(--sans, system-ui, sans-serif);
  letter-spacing: .01em;
}
.line-up .stablize-shelf-toolbar svg,
.hero-ring .film-controls svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.line-up .stablize-shelf-toolbar > .carousel-pause::before,
.hero-ring .film-controls > .carousel-pause::before {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: currentColor;
  -webkit-mask: url("icons/pause.svg") center / contain no-repeat;
  mask: url("icons/pause.svg") center / contain no-repeat;
  content: "";
}
.line-up .stablize-shelf-toolbar > .carousel-pause[aria-label^="Play"]::before,
.hero-ring .film-controls > .carousel-pause[aria-label^="Play"]::before {
  -webkit-mask-image: url("icons/play.svg");
  mask-image: url("icons/play.svg");
}
.line-up .stablize-shelf-toolbar > button:hover,
.hero-ring .film-controls > button:hover {
  border-color: var(--accent-soft, #a78bfa);
  background: var(--surface-hover, #1a213d);
  color: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .15);
}
.line-up .stablize-shelf-toolbar > button:active,
.hero-ring .film-controls > button:active {
  background: #242944;
  box-shadow: none;
}
.line-up .stablize-shelf-toolbar > button:focus-visible,
.hero-ring .film-controls > button:focus-visible {
  outline: 2px solid var(--accent-soft, #a78bfa);
  outline-offset: 4px;
}
.line-up .scroll-note {
  max-width: 100%;
  margin: 16px auto 0;
  padding: 0;
  border-top: 0;
  color: var(--muted, #94a3b8);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .12em;
  text-wrap: balance;
}
@media (max-width: 767px) {
  .line-up .stablize-shelf-toolbar {
    gap: 12px;
    margin-top: 8px;
  }
  .line-up .scroll-note {
    margin-top: 14px;
    font-size: 9px;
    letter-spacing: .08em;
  }
}
@media (prefers-reduced-motion: reduce) {
  .line-up .stablize-shelf-toolbar > button,
  .hero-ring .film-controls > button {
    transition: none;
  }
}

/* The original -18px margin placed this row on top of poster captions. */
.hero-ring .carousel-3d + .film-controls {
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 12px;
  max-width: calc(100% - 32px);
  margin: 18px auto 0;
  padding: 0 0 4px;
}
.hero-ring .film-position {
  min-width: 48px;
  color: var(--muted, #94a3b8);
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 767px) {
  .hero-ring .carousel-3d + .film-controls {
    gap: 10px;
    margin-top: 16px;
  }
}

