/* Sample creations strip (samples.js, David 28 Oct). Shown on the large desktop (across the top of the three columns, where
   the HOW IT WORKS / ON AIR / MY TRACKS row was) and on phones (portrait: in place of the RADIO / REQUEST LINE / MY TRACKS
   buttons; landscape: under the full-screen panels). Hidden on the scaled dash used between those sizes. */
.samples { display: none; }
.samples .smp-row { list-style: none; margin: 0; padding: 0; }
.smp-h { margin: 0; flex: none; display: flex; flex-direction: column; justify-content: center; font: 900 16px/1 "Big Shoulders Display", sans-serif; letter-spacing: .1em; color: #ffe6f3; text-shadow: 0 0 6px var(--pink), 0 0 16px var(--pink); }
.smp-h small { margin-top: 5px; font: 700 10px/1.1 "Chakra Petch", sans-serif; letter-spacing: .12em; color: var(--cy); text-shadow: 0 0 8px rgba(61, 240, 255, .55); }
.smp-row { display: flex; align-items: center; gap: 10px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.smp-row::-webkit-scrollbar { display: none; }
.smp-row li { flex: none; scroll-snap-align: start; }
/* a tape card: the DJ's Polaroid, the station, the song title and a play light; the bar along the foot is the 20 s */
.smp { --c: #ff4fa3; position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; width: max-content; min-width: 190px; height: 46px; padding: 0 9px 0 7px; border-radius: 9px; border: 1px solid color-mix(in srgb, var(--c) 55%, #2a2030); background: linear-gradient(180deg, #1c1423, #0c0911); color: #fff; text-align: left; cursor: pointer; overflow: hidden; box-shadow: 0 0 10px color-mix(in srgb, var(--c) 26%, transparent), inset 0 0 14px color-mix(in srgb, var(--c) 12%, transparent); transition: box-shadow .2s, border-color .2s; }
.smp:hover { border-color: var(--c); box-shadow: 0 0 16px color-mix(in srgb, var(--c) 50%, transparent), inset 0 0 18px color-mix(in srgb, var(--c) 20%, transparent); }
.smp:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.smp.on { border-color: var(--c); box-shadow: 0 0 16px color-mix(in srgb, var(--c) 70%, transparent), inset 0 0 22px color-mix(in srgb, var(--c) 28%, transparent); }
.smp-pol { position: relative; width: 28px; aspect-ratio: 721 / 900; padding: 2px 2px 6px; background: #ece6d8; box-shadow: 0 2px 6px rgba(0, 0, 0, .6); transform: rotate(-5deg); }
.smp-pol .pp { position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; background: radial-gradient(80% 70% at 50% 35%, color-mix(in srgb, var(--c) 45%, #151018), #0b0810); font: 400 9px/1 "Permanent Marker", cursive; color: #fff; }
.smp-pol .pp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; filter: sepia(.12) saturate(1.08) contrast(1.04); }
.smp-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.smp-stn, .smp-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smp-stn { font: 700 12px/1 "Chakra Petch", sans-serif; letter-spacing: .07em; text-transform: uppercase; color: var(--c); text-shadow: 0 0 8px color-mix(in srgb, var(--c) 60%, transparent); }
.smp-fq { color: #f4ecff; }
.smp-title { font: 600 14px/1.1 "Chakra Petch", sans-serif; color: #fff; }
.smp-go { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--c); box-shadow: 0 0 8px color-mix(in srgb, var(--c) 50%, transparent); }
.smp-go::before { content: ""; margin-left: 3px; border-style: solid; border-width: 5.5px 0 5.5px 9px; border-color: transparent transparent transparent #fff; }
.smp.on .smp-go::before { margin: 0; width: 9px; height: 11px; border-width: 0 3px; border-color: #fff; box-sizing: border-box; }
.smp.on.wait .smp-go { animation: smp-wait .9s ease-in-out infinite alternate; }
@keyframes smp-wait { to { opacity: .35; } }
.smp-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p, 0) * 100%); background: var(--c); box-shadow: 0 0 8px var(--c); }
/* samples-r44: a sample creation card is a link to its page (/samples/<id>): an arrow instead of the play light */
a.smp { text-decoration: none; }
.smp-made .smp-go::before { margin: 0; width: 7px; height: 7px; border-width: 2px 2px 0 0; border-color: #fff; transform: translateX(-1px) rotate(45deg); }
.smp-arr { display: none; }
@media (prefers-reduced-motion: reduce) { .smp.on.wait .smp-go { animation: none; } }

/* Large desktop (night-shift-desktop.css frame, 1440x900, scaled as a whole): one 50px rail across the three columns,
   6px above them; the radio's zoom button now sits inside the radio's top-right corner, so the rail is clear. */
@media (min-width:1001px) and (min-height:541px) {
  .desktop-radio .samples { display: flex; align-items: center; gap: 8px; position: absolute; z-index: 2; left: var(--px); top: calc(var(--pt) - 56px); width: calc(100% - 2 * var(--px)); height: 50px; padding: 0 4px 0 14px; border-radius: 12px; border: 1px solid #3b2c47; background: rgba(8, 5, 12, .8); box-shadow: 0 0 16px rgba(255, 63, 164, .2), inset 0 0 14px rgba(61, 240, 255, .06); }
  .desktop-radio .smp-h { width: 118px; }
  .desktop-radio .smp-row { flex: 1; min-width: 0; height: 100%; padding: 0 2px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); }
  .desktop-radio .samples.at-start .smp-row { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 14px), transparent); }
  .desktop-radio .smp-arr { display: grid; place-items: center; flex: none; width: 36px; height: 44px; padding: 0; border-radius: 8px; border: 1px solid #5a4a62; background: rgba(10, 7, 14, .85); color: #efe6f7; font-size: 14px; cursor: pointer; }
  .desktop-radio .smp-arr:not(:disabled):hover { border-color: var(--amb); color: var(--amb); }
  .desktop-radio .smp-arr:disabled { opacity: .3; cursor: default; }
  .desktop-radio .smp-arr:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
}

/* Phone portrait: the strip takes the 52px the three buttons had (night-shift-phone.js), so the radio keeps its size. */
@media (max-width:600px) and (orientation:portrait) {
  html.phone-panels .phone-dashboard > .samples { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 0 0 12px; background: linear-gradient(#0d0812d9, #0d0812d9), url(img/glove-closed.webp) center / cover; border-top: 1px solid #3b2c47; }
  html.phone-panels .samples .smp-h { width: 72px; font-size: 16px; line-height: 1.02; }
  html.phone-panels .samples .smp-h small { display: none; }
  html.phone-panels .samples .smp-row { flex: 1; min-width: 0; height: 100%; padding-right: 12px; scroll-padding-left: 0; }
  html.phone-panels .samples .smp { min-width: 170px; height: 44px; }
  html.phone-panels .samples .smp-fq { display: none; }
  html.phone-panels .samples .smp-stn { font-size: 12px; }
  html.phone-panels .samples .smp-title { font-size: 13px; }
}
/* Phone landscape: the panels fill the screen, so the strip sits just under them, above the liner notes. */
html.phone-landscape .phone-dashboard > .samples { display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 calc(env(safe-area-inset-right) + 12px) 0 calc(env(safe-area-inset-left) + 16px); background: #0d0812; border-top: 1px solid #3b2c47; border-bottom: 1px solid #3b2c47; }
html.phone-landscape .samples .smp-h small { font-size: 12px; }
html.phone-landscape .samples .smp-row { flex: 1; min-width: 0; height: 100%; }
html.phone-landscape .samples .smp { height: 48px; }
html.phone-landscape .samples .smp-stn { font-size: 12px; }

/* samples-zoom-r82: the creation card last opened in the zoom (sample-zoom.js) stays marked, so closing the zoom lands
   the eye where it was: a lit edge in the station's colour and a thin underline, distinct from a playing sample (.on). */
.smp-made.sel { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 0 16px color-mix(in srgb, var(--c) 60%, transparent), inset 0 0 20px color-mix(in srgb, var(--c) 24%, transparent); }
.smp-made.sel::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--c); box-shadow: 0 0 8px var(--c); }
