/* The browse layout (js/browse-shelves.js): the spotlight banner, sideways rows that snap, and tabs. Used by Discover,
   the Store and New & upcoming. */
.spot { position: relative; margin: 0 0 28px; }
.spot-slide { border-radius: calc(var(--radius) + 6px); overflow: hidden; }
.spot-dots { display: flex; justify-content: center; gap: 4px; margin-top: 8px; }
.spot-dots button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.spot-dots button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line); transition: transform .15s var(--snap), background-color .15s; }
.spot-dots button[aria-current]::before { background: var(--teal); transform: scale(1.3); }

.shelf { margin: 0 0 28px; }
.shelf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.shelf-head h2 { margin: 0; font-size: 1.2rem; }
.shelf-arrows { display: none; gap: 6px; }
.shelf-arrows button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--text); font-size: 1.3rem; cursor: pointer; }
.shelf-arrows button:hover { border-color: var(--teal); }
@media (hover: hover) and (pointer: fine) { .shelf-arrows { display: inline-flex; } }
.shelf-row { list-style: none; margin: 0; padding: 4px 2px 12px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 23%);
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; }
.shelf-row > li { scroll-snap-align: start; min-width: 0; }
@media (max-width: 600px) { .shelf-row { grid-auto-columns: 72%; } }
.shelf-all a { display: grid; place-items: center; height: 100%; min-height: 120px; border: 1px dashed var(--line); border-radius: calc(var(--radius) + 4px); color: var(--muted); font-weight: 600; }
.shelf-all a:hover { border-color: var(--teal); color: var(--text); }

/* Discover's link tabs, also on New & upcoming (its fifth tab; owner, 2026-10-27). */
.discover-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 650; text-decoration: none; }
.discover-tabs a[aria-current] { color: var(--text); border-bottom-color: var(--teal); }
.discover-tabs a:hover { color: var(--text); }
@media (max-width: 420px) { .discover-tabs a { padding: 0 10px; } }
.shelf-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; border-bottom: 1px solid var(--line); }
.shelf-tabs [role="tab"] { min-height: 44px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: inherit; font-weight: 650; cursor: pointer; }
.shelf-tabs [role="tab"][aria-selected="true"] { color: var(--text); border-bottom-color: var(--teal); }
.shelf-tabs [role="tab"]:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .spot-dots button::before { transition: none; } }

/* A spotlight slide (js/discover.js, js/page-spotlight.js): art, what it is, the name, one line and one link. */
.dspot { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px; align-items: center; padding: 22px;
  background: color-mix(in srgb, var(--panel) 80%, transparent); border: 1px solid var(--glass-edge, var(--line)); border-radius: inherit; }
.dspot-art { display: grid; place-items: center; aspect-ratio: 1; border-radius: calc(var(--radius) + 4px); overflow: hidden; text-decoration: none;
  background: linear-gradient(150deg, color-mix(in srgb, var(--teal) 60%, #000), color-mix(in srgb, var(--violet) 45%, #000)); }
.dspot-art img { width: 100%; height: 100%; object-fit: cover; }
.dspot-art span { font-size: 3rem; font-weight: 800; color: #fff; }
.dspot-body { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.dspot-name { margin: 0; font-size: clamp(1.4rem, 4vw, 2.1rem); }
.dspot-body p { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .dspot { grid-template-columns: minmax(0, 1fr); padding: 16px; } .dspot-art { max-width: 200px; } }

/* An empty spotlight slot (offline, a filtered view, nothing to show) takes no room. */
.spot-slot:empty { display: none; }
