:root {
  /* page canvas = sand #D4BD9E; type = black; cards = white */
  --bg: #d4bd9e;
  --bg-soft: #c9b08e;
  --ink: #0a0a0a;
  --ink-soft: #1a1a1a;
  --ink-faint: #2e2e2e;
  --accent: #0a0a0a;
  --accent-deep: #000000;
  --accent-soft: #ffffff;
  --accent-mid: #1a1a1a;
  --lime: #d4bd9e;
  --lime-deep: #9ad400;
  --card: #ffffff;
  --border: #0a0a0a;
  --border-soft: rgba(10, 10, 10, 0.18);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(10, 10, 10, 0.08), 0 10px 28px rgba(10, 10, 10, 0.12);
  --feed-max: 680px;
  --pad: clamp(1rem, 4vw, 1.5rem);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  /* legacy aliases */
  --cream: var(--bg);
  --cream-deep: var(--bg-soft);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: #0a0a0a;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #000000;
}

.wrap {
  width: min(var(--feed-max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

.hidden {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.7rem 0;
  padding-top: max(0.7rem, var(--safe-top));
  background: rgba(212, 189, 158, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10, 10, 10, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 6px;
  background: #0a0a0a;
  object-fit: contain;
}

.brand-mark {
  font-family: Caveat, cursive;
  font-size: 1.55rem;
  font-weight: 700;
  color: #0a0a0a;
  letter-spacing: 0.01em;
  line-height: 1;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 500;
  flex-shrink: 0;
}

.launch-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #0a0a0a;
  color: #ffffff !important;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.25);
}

.launch-link:hover {
  background: #000000;
  color: #ffffff !important;
}

.hero {
  padding: 1.75rem 0 1.1rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a0a0a;
}

.hero h1 {
  margin: 0;
  font-family: Caveat, cursive;
  font-size: clamp(2.2rem, 8.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #0a0a0a;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.subtitle {
  margin: 0.7rem 0 0;
  max-width: 34rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.controls {
  padding: 0.15rem 0 1.1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
  border-color: #0a0a0a;
  color: #0a0a0a;
}

.chip.active {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #ffffff;
}

.feed-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin: 0.85rem 0 0;
}

.count,
.last-refreshed {
  margin: 0;
  font-size: 0.8rem;
  color: #0a0a0a;
  font-weight: 500;
  opacity: 0.75;
}

.count::after {
  content: "·";
  margin-left: 0.75rem;
  color: var(--ink-faint);
  opacity: 0.7;
}

.feed {
  padding-bottom: 3rem;
}

.grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem 1.2rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.badge-category {
  background: var(--accent-soft);
  color: #0a0a0a;
}

.card-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.badge-official {
  background: var(--accent-soft);
  color: #0a0a0a;
  border: 1px solid #d4f06a;
}

.card-meta {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-faint);
}

.card h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.card-blurb {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.card-preview {
  position: relative;
  display: block;
  margin-top: 0.2rem;
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream-deep);
  border: 1px solid var(--border-soft);
  aspect-ratio: 16 / 9;
  text-decoration: none;
}

.card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-preview-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, transparent 40%, rgba(26, 24, 22, 0.28) 100%);
  pointer-events: none;
}

.card-preview-play span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #0a0a0a;
  box-shadow: 0 4px 18px rgba(26, 24, 22, 0.18);
  font-size: 1.05rem;
  padding-left: 0.15rem;
}

.card-preview:hover .card-preview-play span {
  background: #fff;
  transform: scale(1.04);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-top: 0.15rem;
}

.watch-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
}

.watch-link:hover {
  text-decoration: underline;
}

.tweet-embed {
  margin-top: 0.35rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.tweet-embed .twitter-tweet {
  margin: 0 !important;
  max-width: 100% !important;
}

.tweet-embed iframe {
  max-width: 100% !important;
}

.tweet-placeholder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px dashed var(--border);
}

.tweet-view-btn {
  appearance: none;
  border: 1px solid #0a0a0a;
  border-radius: 999px;
  background: #0a0a0a;
  color: #ffffff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  min-height: 2.5rem;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.2);
}

.tweet-view-btn:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.tweet-view-btn:focus-visible {
  outline: 2px solid var(--accent-mid);
  outline-offset: 2px;
}

.tweet-view-link {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}

.tweet-view-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 2rem 0 3rem;
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--border-soft);
  background: rgba(212, 189, 158, 0.94);
  padding: 1.35rem 0 calc(2rem + var(--safe-bottom));
}

.site-footer p {
  margin: 0;
  font-size: 0.78rem;
  color: #0a0a0a;
  text-align: center;
  letter-spacing: 0.01em;
}

.site-footer .site-visits {
  margin-bottom: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.site-footer .site-visits[hidden] {
  display: none;
}

.site-footer .legal {
  margin-top: 0.65rem;
  font-size: 0.68rem;
  color: #1a1a1a;
  max-width: 36rem;
  margin-inline: auto;
  line-height: 1.45;
}

.subtitle a {
  color: #0a0a0a;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.subtitle a:hover {
  color: #1a1a1a;
}

@media (min-width: 640px) {
  .hero {
    padding: 2.35rem 0 1.35rem;
  }

  .card {
    padding: 1.4rem 1.45rem 1.5rem;
  }

  .grid {
    gap: 1.5rem;
  }
}

/* ——— Hero CTAs / Surprise me ——— */
.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.hero-ctas .find-cta {
  margin-top: 0;
  text-decoration: none;
}

.find-cta {
  appearance: none;
  margin-top: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.45rem;
  border: 1px solid #0a0a0a;
  border-radius: 999px;
  background: #0a0a0a;
  color: #ffffff;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    0 1px 2px rgba(10, 10, 10, 0.2),
    0 8px 20px rgba(10, 10, 10, 0.12);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.find-cta:hover {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
  box-shadow:
    0 2px 4px rgba(10, 10, 10, 0.22),
    0 10px 24px rgba(10, 10, 10, 0.16);
}

.find-cta:active {
  transform: translateY(1px);
}

.find-cta:focus-visible {
  outline: 2px solid var(--accent-mid);
  outline-offset: 3px;
}

.find-cta--secondary {
  background: #ffffff;
  color: #0a0a0a;
  border-color: #0a0a0a;
  box-shadow: none;
}

.find-cta--secondary:hover {
  background: #0a0a0a;
  color: #ffffff;
  border-color: #0a0a0a;
  box-shadow:
    0 2px 4px rgba(10, 10, 10, 0.18),
    0 10px 24px rgba(10, 10, 10, 0.12);
}

.find-cta-label {
  line-height: 1;
}

.find-cta-arrow {
  display: inline-block;
  font-size: 1.15em;
  line-height: 1;
  animation: cta-arrow-nudge 1.2s ease-in-out infinite;
}

@keyframes cta-arrow-nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

@media (max-width: 540px) {
  .hero-ctas {
    width: 100%;
    align-items: stretch;
  }

  .find-cta {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
    min-height: 3.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .find-cta-arrow {
    animation: none;
  }
}


/* ——— View toggle ——— */
.controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin: 0.85rem 0 0;
}

.controls-bar .feed-meta {
  margin: 0;
}

.view-toggle {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  gap: 0.15rem;
  flex-shrink: 0;
}

.view-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.view-btn:hover {
  color: var(--accent-deep);
}

.view-btn[aria-pressed="true"] {
  background: #0a0a0a;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.2);
}

.view-btn:focus-visible {
  outline: 2px solid var(--accent-mid);
  outline-offset: 2px;
}

/* ——— View modes: width ——— */
body.view-tiles {
  --feed-max: 1120px;
}

body.view-feed {
  --feed-max: 680px;
}

body.view-tiles .feed .wrap,
body.view-tiles .controls.wrap {
  /* inherit wider --feed-max */
}

/* Feed view keeps column cards */
body.view-feed .grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ——— Netflix tiles / browse ——— */
.tile-rows {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.tile-row {
  min-width: 0;
}

.tile-row-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.65rem;
}

.tile-row-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.tile-row-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-faint);
}

.tile-row-scroller {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.35rem 0.15rem 0.85rem;
  margin: 0 -0.15rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #d4d4d4 transparent;
}

.tile-row-scroller::-webkit-scrollbar {
  height: 6px;
}

.tile-row-scroller::-webkit-scrollbar-thumb {
  background: #d4d4d4;
  border-radius: 999px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 0.85rem 0.75rem;
  padding: 0.15rem 0 0.5rem;
}

@media (min-width: 640px) {
  .tile-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem 0.9rem;
  }
}

@media (min-width: 960px) {
  .tile-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

.tile {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: min(220px, 72vw);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-deep) 55%, #6b9400 100%);
  border: 1px solid rgba(10, 10, 10, 0.1);
  box-shadow:
    0 2px 6px rgba(10, 10, 10, 0.08),
    0 10px 24px rgba(154, 212, 0, 0.12);
  text-decoration: none;
  color: #0a0a0a;
  scroll-snap-align: start;
  transform: translateZ(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tile-grid .tile {
  width: 100%;
}

.tile:hover,
.tile:focus-visible {
  transform: scale(1.06);
  z-index: 2;
  box-shadow:
    0 6px 16px rgba(10, 10, 10, 0.16),
    0 18px 40px rgba(154, 212, 0, 0.25);
}

.tile:focus-visible {
  outline: 2px solid var(--accent-mid);
  outline-offset: 3px;
}

.tile-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 70% at 30% 20%, rgba(255, 255, 255, 0.35), transparent 55%),
    linear-gradient(145deg, var(--accent) 0%, var(--accent-deep) 55%, #6b9400 100%);
}

.tile-placeholder-title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  color: #0a0a0a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.65rem 0.7rem 0.7rem;
  background: linear-gradient(
    180deg,
    transparent 28%,
    rgba(26, 24, 22, 0.35) 58%,
    rgba(26, 24, 22, 0.82) 100%
  );
  pointer-events: none;
}

.tile-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.tile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.35rem;
}

.tile-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(244, 255, 204, 0.95);
  color: #0a0a0a;
  border: 1px solid rgba(212, 240, 106, 0.95);
}

.tile-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  color: #0a0a0a;
  box-shadow: 0 4px 16px rgba(26, 24, 22, 0.28);
  font-size: 0.9rem;
  padding-left: 0.12rem;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}

.tile:hover .tile-play,
.tile:focus-visible .tile-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (hover: none) {
  .tile-play {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(0.88);
    width: 2.2rem;
    height: 2.2rem;
    font-size: 0.8rem;
  }

  .tile:hover,
  .tile:focus-visible {
    transform: none;
  }
}

@media (max-width: 540px) {
  .tile {
    width: min(200px, 68vw);
    border-radius: 10px;
  }

  .tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .tile-title {
    font-size: 0.72rem;
  }

  .controls-bar {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tile,
  .tile-play {
    transition: none;
  }

  .tile:hover,
  .tile:focus-visible {
    transform: none;
  }
}

/* ——— Surprise me page ——— */
.surprise-page .surprise-main {
  padding: 1.25rem 0 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: calc(100vh - 8rem);
}

.surprise-nav {
  margin-bottom: 0.85rem;
}

.surprise-home {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}

.surprise-home:hover {
  color: var(--accent);
}

.surprise-header {
  margin-bottom: 0.75rem;
}

.surprise-title {
  margin: 0;
  font-family: Caveat, cursive;
  font-size: clamp(2.1rem, 8vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--accent);
}

.surprise-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.surprise-meta {
  margin: 0 0 0.85rem;
  min-height: 1.35rem;
}

.surprise-meta-line {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}

.surprise-embed {
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
  min-height: 120px;
}

.surprise-embed .twitter-tweet {
  margin-left: auto !important;
  margin-right: auto !important;
}

.surprise-loading,
.surprise-error {
  margin: 1rem 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.surprise-fallback {
  display: block;
  text-align: center;
  margin: 1.25rem 0;
  font-weight: 600;
}

.surprise-actions {
  display: flex;
  justify-content: center;
  margin: 0.35rem 0 1rem;
  padding-bottom: var(--safe-bottom);
}

.surprise-actions .find-cta {
  margin-top: 0;
}

@media (max-width: 540px) {
  .surprise-actions {
    width: 100%;
  }

  .surprise-actions .find-cta {
    width: 100%;
  }
}

/* ——— Mobile: category chips as one swipeable strip ——— */
@media (max-width: 768px) {
  .chips {
    --chips-fade: 2.25rem;
    flex-wrap: nowrap;
    gap: 0.4rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* full-bleed: stretch to the screen edges, pad back to the content column */
    margin-inline: calc(50% - 50vw);
    padding: 0.2rem max(var(--pad), calc(50vw - 50%));
    scroll-padding-inline: max(var(--pad), calc(50vw - 50%));
    /* right-edge fade hinting there is more to swipe (reveals the sand bg) */
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - var(--chips-fade)), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - var(--chips-fade)), transparent 100%);
  }

  .chips::-webkit-scrollbar {
    display: none;
  }

  /* no fade once the strip is scrolled to the end (or doesn't overflow) */
  .chips.chips--at-end {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .chip {
    flex-shrink: 0;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .controls-bar {
    margin-top: 0.7rem;
  }
}
