/* Studio video rails, hero loops, Showcase grid and the two lower bands.
   Uses the site's existing tokens: Newsreader titles, Plus Jakarta Sans text, warm off-white / near-black layers,
   pill buttons and 16px rounded cards with thin borders. */

.sv-slot {
  margin-top: 22px;
}

/* ---------- tile ---------- */
.sv-tile {
  position: relative;
  margin: 0;
  flex: 0 0 auto;
  width: var(--sv-w, 200px);
  scroll-snap-align: start;
}

.sv-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #0b0b0b;
  border: 1px solid var(--ed-line, rgba(127, 127, 127, 0.2));
  isolation: isolate;
}

.sv-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  cursor: pointer;
  background: transparent;
}

.sv-backdrop {
  position: absolute;
  inset: -24px;
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(0.55) saturate(1.1);
  z-index: 0;
}

.sv-controls {
  position: absolute;
  right: 8px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  gap: 6px;
}

.sv-btn {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(10, 10, 10, 0.55);
  color: #f7f5f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.sv-btn svg {
  width: 16px;
  height: 16px;
}
.sv-btn:hover {
  background: rgba(10, 10, 10, 0.78);
  border-color: rgba(255, 255, 255, 0.5);
}
.sv-btn:active {
  transform: scale(0.94);
}
.sv-btn:focus-visible,
.sv-arrow:focus-visible,
.sv-pill:focus-visible {
  outline: 2px solid var(--ed-text-primary, #fff);
  outline-offset: 2px;
}
.sv-tile.has-sound .sv-btn-sound {
  background: #f7f5f0;
  color: #0f1419;
  border-color: #f7f5f0;
}

.sv-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.14);
  pointer-events: none;
}
.sv-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: rgba(247, 245, 240, 0.85);
  transform: scaleX(0);
  transform-origin: left center;
}

.sv-caption {
  margin-top: 8px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--ed-text-muted, #68737d);
}

/* ---------- frames (Digital and Physical pages, Home formats band) ---------- */
.sv-frame-4x5 .sv-screen {
  aspect-ratio: 4 / 5;
}
.sv-frame-1x1 .sv-screen {
  aspect-ratio: 1 / 1;
}
.sv-frame-16x9 .sv-screen {
  aspect-ratio: 16 / 9;
}
.sv-frame-16x9 .sv-video,
.sv-frame-billboard .sv-video,
.sv-frame-led .sv-video,
.sv-frame-hero .sv-video {
  object-fit: contain;
}
.sv-frame-4x5,
.sv-frame-1x1 {
  align-self: flex-start;
}
.sv-frame-16x9 {
  --sv-w: 330px;
}

/* Billboard: a wide panel on two posts */
.sv-frame-billboard {
  --sv-w: 330px;
  padding-bottom: 46px;
}
.sv-frame-billboard .sv-screen {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  border: 6px solid #2b2925;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
.sv-frame-billboard::before,
.sv-frame-billboard::after {
  content: "";
  position: absolute;
  bottom: 22px;
  width: 8px;
  height: 46px;
  background: #2b2925;
  border-radius: 2px;
}
.sv-frame-billboard::before {
  left: 28%;
}
.sv-frame-billboard::after {
  right: 28%;
}
.sv-frame-billboard .sv-caption {
  position: absolute;
  bottom: 0;
  left: 0;
}

/* LED screen: a dark bezel with a thin glow */
.sv-frame-led {
  --sv-w: 300px;
}
.sv-frame-led .sv-screen {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  border: 10px solid #111;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 28px rgba(0, 0, 0, 0.28);
}

/* Shop display: a portrait screen on a stand */
.sv-frame-shop {
  --sv-w: 180px;
  padding-bottom: 26px;
}
.sv-frame-shop .sv-screen {
  border-radius: 10px;
  border: 7px solid #1b1a18;
}
.sv-frame-shop::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 70px;
  height: 8px;
  border-radius: 4px;
  background: #1b1a18;
}
.sv-frame-shop .sv-caption {
  margin-top: 30px;
}
.sv-frame-shop {
  display: flex;
  flex-direction: column;
}
.sv-frame-shop .sv-caption {
  order: 3;
}

/* ---------- hero loop ---------- */
.sv-hero {
  margin-top: 26px;
}
.sv-hero-tile {
  width: 100%;
}
.sv-hero-tile .sv-screen {
  aspect-ratio: 16 / 9;
}
@media (max-width: 640px) {
  .sv-hero-tile .sv-screen {
    aspect-ratio: 4 / 5;
  }
}

/* ---------- rail ---------- */
.sv-rail {
  position: relative;
  margin-top: 22px;
}
.sv-track {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 2px;
  padding: 2px 2px 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.sv-track::-webkit-scrollbar {
  display: none;
}
.sv-rail-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}
.sv-rail-fits .sv-rail-nav {
  display: none;
}
.sv-arrow {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  border: 1px solid var(--ed-line-strong, rgba(127, 127, 127, 0.3));
  background: transparent;
  color: var(--ed-text-primary, #0f1419);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.sv-arrow svg {
  width: 16px;
  height: 16px;
}
.sv-arrow:hover:not(:disabled) {
  border-color: var(--ed-text-primary, #0f1419);
}
.sv-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}
.sv-count {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--ed-text-muted, #68737d);
  min-width: 44px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .sv-tile {
    --sv-w: 58vw;
  }
  .sv-tile.sv-frame-16x9,
  .sv-tile.sv-frame-billboard,
  .sv-tile.sv-frame-led {
    --sv-w: 80vw;
  }
  .sv-tile.sv-frame-shop {
    --sv-w: 48vw;
  }
  .sv-rail-nav .sv-arrow {
    display: none;
  }
}

/* ---------- Showcase grid ---------- */
.sv-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.sv-pill {
  border: 1px solid var(--ed-line-strong, rgba(127, 127, 127, 0.3));
  background: transparent;
  color: var(--ed-text-primary, #0f1419);
  border-radius: 9999px;
  padding: 8px 15px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.sv-pill:hover {
  border-color: var(--ed-text-primary, #0f1419);
}
.sv-pill.is-active {
  background: var(--ed-text-primary, #0f1419);
  color: var(--bg-top-layer, #f7f5f0);
  border-color: var(--ed-text-primary, #0f1419);
}
.sv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.sv-grid .sv-tile {
  width: auto;
}
.sv-grid .sv-tile[hidden] {
  display: none;
}
@media (max-width: 640px) {
  .sv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .sv-grid .sv-btn {
    width: 28px;
    height: 28px;
  }
  .sv-grid .sv-btn svg {
    width: 14px;
    height: 14px;
  }
  .sv-grid .sv-controls {
    gap: 4px;
    right: 6px;
  }
}

/* ---------- lower bands ---------- */
.dark-section-content,
.effect-layer-content {
  box-sizing: border-box;
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 28px;
  color: var(--ed-text-primary, #0f1419);
}
.sv-kicker {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ed-text-muted, #68737d);
  margin-bottom: 10px;
}
.sv-band-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.25;
  margin: 0;
  color: var(--ed-text-primary, #0f1419);
}
.sv-rail-band .sv-tile {
  --sv-w: 220px;
}
.sv-band-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 18px;
}
.sv-link-btn {
  background: transparent;
  color: var(--ed-text-primary, #0f1419);
  border: 1px solid var(--ed-line-strong, rgba(127, 127, 127, 0.3));
  border-radius: 9999px;
  padding: 10px 18px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.sv-link-btn:hover {
  border-color: var(--ed-text-primary, #0f1419);
}
.sv-note {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  color: var(--ed-text-muted, #68737d);
}
.sv-band-foot .sv-note {
  margin-left: auto;
}
.sv-slot > .sv-note,
.sv-effect > .sv-note,
.effect-layer-content > .sv-note {
  margin-top: 10px;
}
.sv-strip-text .sv-note {
  margin-top: 12px;
}
.sv-rail-formats .sv-track {
  align-items: flex-end;
}
.sv-rail-formats .sv-tile {
  --sv-w: 170px;
}
.sv-rail-formats .sv-frame-16x9,
.sv-rail-formats .sv-frame-billboard,
.sv-rail-formats .sv-frame-led {
  --sv-w: 300px;
}
.sv-rail-formats .sv-frame-16x9 .sv-video,
.sv-rail-formats .sv-frame-billboard .sv-video,
.sv-rail-formats .sv-frame-led .sv-video {
  object-fit: cover;
}

.sv-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.sv-strip-text .sv-primary-btn {
  margin-top: 18px;
}
.sv-primary-btn {
  background: var(--ed-text-primary, #0f1419);
  color: var(--bg-top-layer, #f7f5f0);
  border: 1px solid var(--ed-text-primary, #0f1419);
  border-radius: 9999px;
  padding: 11px 20px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.sv-strip-loops {
  display: flex;
  gap: 12px;
}
.sv-mini {
  --sv-w: 150px;
}
.sv-mini .sv-controls {
  gap: 4px;
  right: 6px;
}
.sv-mini .sv-btn {
  width: 28px;
  height: 28px;
}
.sv-mini .sv-btn svg {
  width: 14px;
  height: 14px;
}
@media (max-width: 640px) {
  .dark-section-content,
  .effect-layer-content {
    padding: 32px 18px;
  }
  .sv-rail-band .sv-tile {
    --sv-w: 58vw;
  }
  .sv-rail-formats .sv-tile {
    --sv-w: 46vw;
  }
  .sv-rail-formats .sv-frame-16x9,
  .sv-rail-formats .sv-frame-billboard,
  .sv-rail-formats .sv-frame-led {
    --sv-w: 80vw;
  }
  .sv-strip-loops {
    width: 100%;
  }
  .sv-mini {
    --sv-w: calc((100% - 24px) / 3);
    flex: 1 1 0;
  }
  .sv-band-foot .sv-note {
    margin-left: 0;
  }
}
