.scroll-page {
  --reel-stage-fill: radial-gradient(circle at 50% 36%, #3d3a43 0, #292730 58%, #1e1d23 100%);
  display: block;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 230, 240, .65), transparent 28rem),
    var(--page);
}

.scroll-topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  padding: 16px 22px 12px;
  border-bottom: 1px solid rgba(236, 222, 228, .78);
  background: rgba(255, 250, 251, .88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.scroll-topbar .site-nav {
  margin-bottom: 0;
  padding: 8px 14px;
}
.scroll-filterbar {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}
.scroll-search { gap: 8px; }
.view-toggle {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 164px;
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 251, .94);
  box-shadow: 0 8px 28px rgba(82, 45, 60, .13);
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  white-space: nowrap;
}
.view-prefix { font-weight: 400; opacity: .8; }
.view-toggle:hover { border-color: var(--pink); color: var(--pink-dark); }
.view-toggle[aria-pressed="true"] { border-color: var(--pink); background: var(--pink-soft); color: var(--pink-dark); }
.view-toggle svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.view-toggle:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
@media (max-width: 1023px) { .view-toggle { display: none; } }

.scroll-search {
  position: relative;
  display: flex;
  width: min(640px, 100%);
  min-width: 0;
}
.scroll-filter-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 12px;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  pointer-events: none;
  transform: translateY(-50%);
}
.scroll-search input,
.scroll-search button {
  min-height: 46px;
  outline: none;
}
.scroll-search input {
  width: 100%;
  min-width: 0;
  padding: 11px 18px 11px 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--text);
  font-size: 0.85rem;
}
.scroll-search button {
  display: grid;
  place-items: center;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  transition: background-color 130ms ease;
}
.scroll-search button:hover { background: var(--pink-dark); }
.scroll-search button:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}
.scroll-search-icon { display: none; }
.scroll-search input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-soft);
}

.reel-feed {
  position: fixed;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  overflow-anchor: none;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
.reel-feed::-webkit-scrollbar { display: none; }
.reel-spacer {
  height: 0;
  pointer-events: none;
}

.reel {
  display: grid;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  padding: calc(var(--scroll-header-height, 142px) + 12px) 20px 12px;
  place-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.reel-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  align-content: center;
  width: 100%;
  height: 100%;
  max-height: 100%;
}

.reel-layout {
  display: grid;
  grid-template-columns: minmax(280px, min(72vw, 520px)) 58px;
  align-items: end;
  gap: 16px;
  max-width: 100%;
  max-height: 100%;
}

.reel-stage {
  position: relative;
  display: grid;
  width: min(72vw, 520px);
  height: min(80dvh, 780px);
  max-width: 100%;
  max-height: max(0px, calc(100dvh - var(--scroll-header-height, 142px) - 24px));
  overflow: hidden;
  border: 1px solid rgba(236, 222, 228, .95);
  border-radius: 18px;
  background: var(--reel-stage-fill);
  box-shadow: 0 14px 38px rgba(90, 47, 66, .09);
  place-items: center;
}

.reel-media {
  position: absolute;
  inset: 0;
  display: grid;
  overflow: hidden;
  place-items: center;
}
.reel-media.is-loading {
  color: var(--muted);
  font-size: .7rem;
}
.reel-media img,
.reel-media video {
  display: block;
  width: 0;
  height: 0;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  border-radius: 11px;
  background: transparent;
  -webkit-clip-path: inset(0 round 11px);
  clip-path: inset(0 round 11px);
  object-fit: contain;
}
.reel-media.is-link {
  padding: 24px;
  text-align: center;
}
.reel-media.is-link a {
  color: var(--pink-dark);
  font-size: .76rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.reel-caption {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 58px 20px 18px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(31, 27, 36, .16) 30%,
    rgba(25, 22, 30, .82) 100%
  );
  color: #fff;
  pointer-events: none;
}
.reel-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.reel-title {
  text-decoration: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .3);
  text-wrap: pretty;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: .93rem;
  font-weight: 700;
  line-height: 1.25;
  pointer-events: auto;
  text-align: left;
}
.reel-title:hover { color: rgba(255, 255, 255, .84); }
.reel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 11px;
  margin-top: 5px;
  color: rgba(255, 255, 255, .76);
  font-size: .64rem;
}
.reel-meta .recovered { color: #b9e6ce; }
.reel-collection-link {
  flex: none;
  color: rgba(255, 255, 255, .9);
  font-size: .64rem;
  line-height: 1.25;
  pointer-events: auto;
  text-decoration: none;
  transition: color 130ms ease;
  white-space: nowrap;
}
.reel-collection-link:hover { color: #fff; }
.reel-message {
  min-height: 1em;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: .64rem;
}
.reel-message:empty { display: none; }

.reel-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
}
.reel-action-group {
  display: grid;
  justify-items: center;
  gap: 4px;
}
.reel-action {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 250, 251, .88);
  box-shadow: 0 6px 18px rgba(90, 47, 66, .075);
  color: var(--text);
  font-size: 1rem;
  place-items: center;
  transition: border-color 130ms ease, color 130ms ease, background-color 130ms ease;
}
.reel-action:hover { border-color: var(--pink); color: var(--pink-dark); }
.reel-action[data-action="upvote"]:hover { border-color: var(--green); color: var(--green); }
.reel-action[data-action="downvote"]:hover { border-color: var(--red); color: var(--red); }
.reel-title:focus-visible,
.reel-collection-link:focus-visible,
.reel-action:focus-visible,
.scroll-search button:focus-visible,
.autoplay-toggle:focus-visible,
.autoplay-menu button:focus-visible,
.scroll-top:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}
.reel-action svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.reel-action svg.is-downvote { transform: rotate(180deg); transform-origin: center; }
.reel-action-label,
.reel-score {
  color: var(--muted);
  font-size: .58rem;
  line-height: 1;
}

.scroll-status {
  position: fixed;
  z-index: 40;
  right: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  max-width: min(360px, calc(100% - 28px));
  padding: 9px 14px;
  border: 1px solid rgba(236, 222, 228, .9);
  border-radius: 999px;
  background: rgba(255, 250, 251, .94);
  box-shadow: 0 8px 28px rgba(82, 45, 60, .13);
  color: var(--muted);
  font-size: .68rem;
  text-align: center;
  transform: translateX(50%);
}
.scroll-status[hidden] { display: none; }
.scroll-top { display: none; }
.scroll-hint {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border: 1px solid rgba(236, 222, 228, .92);
  border-radius: 999px;
  background: rgba(255, 250, 251, .92);
  box-shadow: 0 8px 28px rgba(82, 45, 60, .13);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--pink-dark);
  font-size: .7rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.scroll-hint.is-visible { opacity: 1; pointer-events: auto; }
.scroll-hint[hidden] { display: none; }
.scroll-hint-chev {
  display: block;
  width: 10px;
  height: 7px;
  animation: hint-bob 1.6s ease-in-out infinite;
}
@keyframes hint-bob {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(2px); }
}
.scroll-hint:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}
.autoplay {
  position: fixed;
  z-index: 40;
  right: 22px;
  bottom: max(18px, env(safe-area-inset-bottom));
}
.autoplay-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 18px 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 251, .94);
  box-shadow: 0 8px 28px rgba(82, 45, 60, .13);
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
  white-space: nowrap;
}
.autoplay-toggle:hover { border-color: var(--pink); color: var(--pink-dark); }
.autoplay-toggle.attract { animation: autoplay-nudge 0.7s ease-in-out 3; }
@keyframes autoplay-nudge {
  0%, 100% { box-shadow: 0 8px 28px rgba(82, 45, 60, .13), 0 0 0 0 rgba(233, 154, 186, 0); }
  50% { box-shadow: 0 8px 28px rgba(82, 45, 60, .13), 0 0 0 7px rgba(233, 154, 186, .35); }
}
.autoplay[data-duration="0"] .autoplay-toggle { font-weight: 400; }
.autoplay[data-duration]:not([data-duration="0"]) .autoplay-toggle {
  border-color: var(--pink);
  color: var(--pink-dark);
}
.autoplay-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.autoplay-prefix {
  font-weight: 400;
  opacity: .8;
}
.autoplay-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 250, 251, .97);
  box-shadow: 0 8px 28px rgba(82, 45, 60, .16);
}
.autoplay-menu[hidden] { display: none; }
.autoplay-menu button {
  min-width: 48px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}
.autoplay-menu button:hover { border-color: var(--line); color: var(--text); }
.autoplay-menu button[aria-checked="true"] {
  border-color: var(--pink);
  background: var(--pink-soft);
  color: var(--pink-dark);
}
.autoplay-progress {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: rgba(255, 255, 255, .22);
  opacity: 0;
  pointer-events: none;
}
.autoplay-progress-bar {
  width: 100%;
  height: 100%;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left center;
}
.reel.is-active .autoplay-progress.is-on { opacity: 1; }

@media (min-width: 1000px) {
  .reel-layout { transform: translateX(29px); }
}
@media (min-width: 1024px) {
  body[data-scroll-mode="collage"] .reel { padding: calc(var(--scroll-header-height, 142px) + 12px) 28px 20px; }
  body[data-scroll-mode="collage"] .reel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    max-width: 960px;
    height: auto;
    max-height: 100%;
    margin: 0 auto;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    place-items: stretch;
  }
  body[data-scroll-mode="collage"] .reel-grid.is-partial-1 { grid-template-columns: minmax(280px, 380px); justify-content: center; }
  body[data-scroll-mode="collage"] .reel-grid.is-partial-2 { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }
  body[data-scroll-mode="collage"] .reel-layout { display: block; max-width: 100%; transform: none; }
  body[data-scroll-mode="collage"] .reel-stage {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 9 / 15;
    max-height: min(68dvh, 640px, max(0px, calc(100dvh - var(--scroll-header-height, 142px) - 32px)));
    margin: 0 auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  body[data-scroll-mode="collage"] .reel-layout.is-first-cell .reel-stage {
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
  }
  body[data-scroll-mode="collage"] .reel-layout.is-last-cell .reel-stage {
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
  }
  body[data-scroll-mode="collage"] .reel-caption { padding: 40px 14px 12px; }
  body[data-scroll-mode="collage"] .reel-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: .85rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  body[data-scroll-mode="collage"] .reel-title-row { flex-direction: column; align-items: flex-start; gap: 2px; }
  body[data-scroll-mode="collage"] .reel-collection-link { font-size: .62rem; white-space: normal; }
  body[data-scroll-mode="collage"] .reel-meta,
  body[data-scroll-mode="collage"] .reel-message { display: none; }
  body[data-scroll-mode="collage"] .reel-layout { position: relative; }
  body[data-scroll-mode="collage"] .reel-actions {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 3;
    flex-direction: row;
    gap: 6px;
    padding: 0;
  }
  body[data-scroll-mode="collage"] .reel-action {
    width: 34px;
    height: 34px;
    font-size: .8rem;
    border-color: rgba(255, 255, 255, .22);
    background: rgba(24, 17, 21, .55);
    box-shadow: none;
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  body[data-scroll-mode="collage"] .reel-action svg { width: 16px; height: 16px; }
  body[data-scroll-mode="collage"] .reel-action-label { display: none; }
  body[data-scroll-mode="collage"] .reel-score { display: none; }
  body[data-scroll-mode="collage"] .reel-media img,
  body[data-scroll-mode="collage"] .reel-media video {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: 50% 20%;
    border-radius: 0;
    -webkit-clip-path: none;
    clip-path: none;
  }
  body[data-scroll-mode="collage"] .autoplay-progress { border-radius: 0; }
}
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 60; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 17, 21, .74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox-panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 12px;
  width: min(880px, 92vw);
  height: min(94dvh, 900px);
  margin: auto;
}
.lightbox-stage {
  display: grid;
  min-height: 0;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(0, 0, 0, .35);
  place-items: center;
}
.lightbox-stage img,
.lightbox-stage video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lightbox-caption { padding: 0 6px; }
.lightbox-caption .reel-title { display: block; font-size: 1rem; }
.lightbox-caption .reel-meta { font-size: .7rem; }
.lightbox-caption .reel-message { font-size: .7rem; }
.lightbox-actions { display: flex; align-items: start; justify-content: center; gap: 14px; }
.lightbox-close {
  position: absolute;
  z-index: 2;
  top: -10px;
  right: -10px;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 250, 251, .95);
  color: var(--text);
  font-size: .9rem;
  place-items: center;
}
.lightbox-close:hover { border-color: var(--pink); color: var(--pink-dark); }
.lightbox-close:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

@media (min-width: 701px) {
  .reel-title { font-size: 1.08rem; }
  .reel-collection-link { font-size: .72rem; }
  .reel-meta { font-size: .72rem; }
  .reel-message { font-size: .72rem; }
  .reel-action { font-size: 1.1rem; }
  .reel-action-label,
  .reel-score { font-size: .65rem; }
}

@media (hover: hover) and (pointer: fine) {
  /* Desktop navigation already resolves every wheel/key gesture to one exact
     reel. Native snap adds a second end-of-scroll correction, which produces
     a small visible bounce on some trackpads and Chromium builds. */
  .reel-feed {
    overscroll-behavior-y: none;
    scroll-snap-type: none;
  }
}

@media (max-width: 700px) {
  .scroll-topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px 14px 8px;
    padding-top: max(10px, env(safe-area-inset-top));
    border-bottom: 0;
    background: linear-gradient(rgba(32, 21, 27, .48), transparent);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .scroll-topbar .site-nav {
    justify-self: start;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .scroll-topbar .site-nav .nav-cluster { display: none; }
  .scroll-topbar .nav-home {
    padding: 2px 0;
    background: none;
    color: #fff;
    font-size: 1.4rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .28);
  }
  .scroll-filterbar { margin-top: 0; min-width: 0; }
  .scroll-hint { display: none; }
  .scroll-search {
    width: 100%;
    max-width: 420px;
  }
  .scroll-search input,
  .scroll-search button { min-height: 30px; font-size: 16px; }
  .scroll-search input {
    padding-block: 4px;
    padding-left: 30px;
    padding-right: 5px;
    border-color: rgba(255, 255, 255, .18);
    background: rgba(37, 27, 32, .5);
    box-shadow: 0 3px 14px rgba(0, 0, 0, .12);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .scroll-search input::placeholder {
    color: rgba(255, 255, 255, .82);
    font-size: 11px;
    opacity: 1;
  }
  .scroll-search input:focus {
    border-color: rgba(233, 154, 186, .9);
    box-shadow: 0 0 0 2px rgba(233, 154, 186, .26), 0 3px 14px rgba(0, 0, 0, .12);
  }
  .scroll-filter-icon {
    left: 10px;
    stroke: rgba(255, 255, 255, .78);
  }
  .scroll-search button {
    width: 34px;
    padding: 0;
    border-color: rgba(233, 154, 186, .74);
    background: rgba(233, 154, 186, .74);
    font-size: .65rem;
  }
  .scroll-search-label { display: none; }
  .scroll-search-icon {
    display: block;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
  }
  .reel {
    min-height: 0;
    /* svh: sized to the toolbar-shown viewport, which never changes as iOS
       chrome shows/hides. dvh rows resize under snap and the resulting
       instant re-seek reads as an in-place video swap. vh fallback first. */
    height: 100vh;
    height: 100svh;
    padding: 0;
  }
  .reel-layout {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
  }
  .reel-stage {
    width: calc(100% - 12px);
    height: calc(100vh - 12px);
    height: calc(100svh - 12px);
    max-width: none;
    max-height: none;
    margin: 6px;
    border: 0;
    border-radius: 15px;
    background: var(--reel-stage-fill);
    box-shadow: none;
  }
  .reel-caption {
    padding: 70px 76px max(22px, calc(env(safe-area-inset-bottom) + 16px)) 16px;
  }
  .reel-actions {
    position: absolute;
    z-index: 4;
    right: 15px;
    bottom: max(92px, calc(env(safe-area-inset-bottom) + 78px));
    gap: 10px;
    padding: 0;
  }
  .reel-action {
    width: 40px;
    height: 40px;
    border-color: rgba(255, 255, 255, .16);
    background: rgba(37, 27, 32, .38);
    box-shadow: none;
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .reel-action-group { gap: 3px; }
  .reel-action-label { color: rgba(255, 255, 255, .66); }
  .reel-score { color: rgba(255, 255, 255, .76); }
  .scroll-status { bottom: max(78px, calc(env(safe-area-inset-bottom) + 70px)); }
  .autoplay {
    top: calc(max(54px, env(safe-area-inset-top)) + 10px);
    right: 12px;
    bottom: auto;
    left: auto;
  }
  .autoplay-toggle {
    min-height: 32px;
    padding: 5px 12px 5px 10px;
    border-color: rgba(255, 255, 255, .18);
    background: rgba(37, 27, 32, .5);
    box-shadow: 0 3px 14px rgba(0, 0, 0, .12);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .autoplay-toggle:hover { border-color: rgba(233, 154, 186, .9); color: #fff; }
  .autoplay-prefix { display: none; }
  .autoplay[data-duration]:not([data-duration="0"]) .autoplay-toggle {
    border-color: rgba(233, 154, 186, .9);
    background: rgba(233, 154, 186, .85);
    color: #fff;
  }
  .autoplay-menu {
    top: auto;
    right: 0;
    bottom: calc(100% + 8px);
    left: auto;
    border-color: rgba(255, 255, 255, .18);
    background: rgba(37, 27, 32, .82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .autoplay-menu button { min-width: 44px; min-height: 34px; padding: 6px 10px; border-radius: 9px; color: rgba(255, 255, 255, .8); font-size: .68rem; }
  .autoplay-menu button:hover { border-color: rgba(255, 255, 255, .25); color: #fff; }
  .autoplay-menu button[aria-checked="true"] {
    border-color: rgba(233, 154, 186, .9);
    background: rgba(233, 154, 186, .28);
    color: #fff;
  }
  .autoplay-progress { border-radius: 15px 15px 0 0; }
}

@media (max-width: 360px) {
  .scroll-topbar { padding-left: 17px; }
  .scroll-search { max-width: 152px; }
}

@media (max-height: 650px) and (min-width: 701px) {
  .reel-stage { height: calc(100dvh - 78px); }
  .reel-actions { gap: 9px; }
  .reel-action { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .reel-feed { scroll-behavior: auto; }
  .reel-collection-link,
  .scroll-search button,
  .autoplay-toggle,
  .autoplay-menu button,
  .reel-action { transition: none; }
  .scroll-hint-chev { animation: none; }
  .autoplay-toggle.attract { animation: none; }
}
.scroll-controls {
  position: fixed;
  z-index: 40;
  right: 22px;
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.scroll-controls .autoplay { position: static; flex: none; width: 164px; }
.scroll-controls .autoplay-toggle { justify-content: center; width: 100%; }
.reel-row-progress { display: none; }
@media (min-width: 1024px) {
  body[data-scroll-mode="collage"] .reel-layout .autoplay-progress { display: none; }
  body[data-scroll-mode="collage"] .reel-row-progress {
    display: block;
    position: absolute;
    z-index: 5;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    overflow: hidden;
    background: rgba(255, 255, 255, .22);
    border-radius: 18px 18px 0 0;
  }
}
