/* Player screen (random lasers / video), mini player (home) and full player (Player page) */
.screen {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px;
  background: radial-gradient(ellipse at 50% 50%, rgb(var(--s2, 74,21,34)) 0%, var(--bg-deep) 80%);   /* symmetric: same dark edge on all four sides */
  border: 1px solid var(--line);
}
.screen .lz-a, .screen .lz-b {
  position: absolute; left: -100%; width: 300%; bottom: 0; height: 150%;
  transform-origin: 50% 100%; mix-blend-mode: screen; will-change: transform;
  translate: var(--tx-a, 0%) 0;
  animation: lzs-a var(--dur-a, 6s) ease-in-out infinite alternate; animation-play-state: paused;
}
/* mixes: lasers hang from the top instead (see Core.randomLasers) */
.screen.from-top .lz-a, .screen.from-top .lz-b { bottom: auto; top: 0; transform-origin: 50% 0; scale: 1 -1; }
.screen .lz-a {
  --k: var(--k-a, 1);
  background: repeating-conic-gradient(from -90deg at 50% 100%,
    transparent 0deg calc(5.2deg * var(--k)), rgba(var(--lz, 255,77,109),0) calc(5.2deg * var(--k)) calc(5.5deg * var(--k)), rgba(var(--lzl, 255,120,140),0.95) calc(5.7deg * var(--k)) calc(5.9deg * var(--k)),
    rgba(var(--lz, 255,77,109),0) calc(6.1deg * var(--k)) calc(6.4deg * var(--k)), transparent calc(6.4deg * var(--k)) calc(9deg * var(--k)));
}
.screen .lz-b {
  --k: var(--k-b, 1);
  background: repeating-conic-gradient(from -85deg at 50% 100%,
    transparent 0deg calc(8.6deg * var(--k)), rgba(var(--lzw, 255,255,255),0) calc(8.6deg * var(--k)) calc(8.9deg * var(--k)), rgba(var(--lzw, 255,255,255),0.8) calc(9.05deg * var(--k)) calc(9.15deg * var(--k)),
    rgba(var(--lzw, 255,255,255),0) calc(9.3deg * var(--k)) calc(9.6deg * var(--k)), transparent calc(9.6deg * var(--k)) calc(13deg * var(--k)));
  animation-name: lzs-b; animation-duration: var(--dur-b, 8s); translate: var(--tx-b, 0%) 0;
}
.screen.on .lz-a, .screen.on .lz-b { animation-play-state: running; }
/* mixes: their own laser show (three fans from the bottom and the top corners, green / cyan / violet) */
.screen .sh { position: absolute; inset: 0; display: none; pointer-events: none; overflow: hidden; }
.screen.has-mix .sh { display: block; }
.screen.has-mix .lz-a, .screen.has-mix .lz-b { display: none; }
.screen .sh i {
  position: absolute; width: 240%; height: 240%; mix-blend-mode: screen; will-change: transform;
  transform-origin: 50% 50%; animation-play-state: paused; animation-iteration-count: infinite; animation-direction: alternate; animation-timing-function: ease-in-out;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, rgba(0,0,0,.7) 30%, transparent 55%);
          mask-image: radial-gradient(circle at 50% 50%, #000 0%, rgba(0,0,0,.7) 30%, transparent 55%);
}
.screen.on .sh i { animation-play-state: running; }
.screen .sh-a { left: -70%; top: -20%; animation-name: sh-a; animation-duration: 5s;
  background: repeating-conic-gradient(at 50% 50%, rgba(var(--lz),0) 0deg, rgba(var(--lzl),.95) .45deg, rgba(var(--lz),0) 1deg, transparent 1deg 7.5deg); }
.screen .sh-b { left: -120%; top: -120%; animation-name: sh-b; animation-duration: 7s;
  background: repeating-conic-gradient(at 50% 50%, rgba(var(--lzw),0) 0deg, rgba(var(--lzw),.9) .4deg, rgba(var(--lzw),0) .9deg, transparent .9deg 9deg); }
.screen .sh-c { right: -120%; top: -120%; animation-name: sh-c; animation-duration: 6s;
  background: repeating-conic-gradient(at 50% 50%, rgba(var(--lzg),0) 0deg, rgba(var(--lzg),.9) .4deg, rgba(var(--lzg),0) .9deg, transparent .9deg 8deg); }
@keyframes sh-a { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }
@keyframes sh-b { from { transform: rotate(-12deg); } to { transform: rotate(34deg); } }
@keyframes sh-c { from { transform: rotate(18deg); } to { transform: rotate(-30deg); } }
@media (prefers-reduced-motion: reduce) { .screen .sh i { animation: none; } }
/* "Just Living" tracks: the wordmark with echoed, drifting strokes; colors follow the random palette */
.jl { position: absolute; inset: 0; display: none; place-items: center; pointer-events: none; }
.screen.has-jl .jl { display: grid; }
/* Just Living tracks: the wordmark replaces the lasers */
.screen.has-jl .lz-a, .screen.has-jl .lz-b { display: none; }
.jl i {
  grid-area: 1 / 1; width: 78%; aspect-ratio: 1116 / 410;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation-play-state: paused;
}
.screen.on .jl i, .jl-bg i { animation-play-state: running; }
/* home page backdrop while a Just Living track plays (replaces the page lasers, see index.html) */
.jl-bg { position: fixed; z-index: -1; opacity: 0; transition: opacity .6s; }
.jl-live .jl-bg { display: grid; opacity: calc(.45 * var(--tri2, 1) * var(--tri2-dim, 1)); }
.jl-bg i { width: min(78vw, 1100px); }
.jl-g1 { background: rgb(var(--lz, 255,77,109)); opacity: .8; animation: jl-g1 3.2s ease-in-out infinite alternate; }
.jl-g2 { background: rgb(var(--lzw, 255,255,255)); opacity: .55; animation: jl-g2 4.4s ease-in-out infinite alternate; }
.jl-m  { background: #fff; animation: jl-m 2.6s steps(1, end) infinite, jl-breathe 5s ease-in-out infinite alternate; }
@keyframes jl-g1 { from { transform: translate(-3.5%, -3%); } to { transform: translate(3.5%, 3%); } }
@keyframes jl-g2 { from { transform: translate(3%, -2%); } to { transform: translate(-3%, 2.5%); } }
@keyframes jl-m {
  0%, 100% { transform: none; } 62% { transform: translate(.8%, 0); } 64% { transform: translate(-1.2%, .4%); }
  66% { transform: none; } 88% { transform: translate(.6%, -.5%); } 90% { transform: none; }
}
@keyframes jl-breathe { from { scale: 1; } to { scale: 1.04; } }
@media (prefers-reduced-motion: reduce) { .jl i { animation: none; } .jl-g1 { transform: translate(-2%, -2%); } .jl-g2 { transform: translate(2%, 1.5%); } }
.screen.has-video .jl { display: none; }
/* "Deeper" (single): the word sinks letter by letter, echoes fall away below it, a deep glow pulses behind (colors follow the random palette) */
.dp { position: absolute; inset: 0; display: none; place-items: center; pointer-events: none; container-type: size; overflow: hidden; }
.screen.has-dp .dp { display: grid; }
.screen.has-dp .lz-a, .screen.has-dp .lz-b { display: none; }
.screen.has-video .dp { display: none; }
.dp-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 55%, rgba(var(--lz, 255,77,109), .55), transparent 70%); animation: dp-glow 4.5s ease-in-out infinite alternate; animation-play-state: paused; }
.dp-t, .dp-e { grid-area: 1 / 1; display: flex; font-size: 24cqw; font-weight: 800; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.dp-t b, .dp-e b { display: block; font-weight: inherit; transform-origin: 50% 0; animation: dp-melt 4.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); animation-play-state: paused; }
.dp-t b:nth-child(2n), .dp-e b:nth-child(2n) { animation-duration: 3.1s; transform-origin: 50% 100%; }
.dp-t b:nth-child(3n), .dp-e b:nth-child(3n) { animation-duration: 5.6s; animation-direction: reverse; }
/* the word wobbles like liquid (SVG filter), splits into red / blue ghosts and glitches in slices now and then */
.dp-t { color: #fff; filter: url(#dp-warp); animation: dp-split 2.6s steps(1, end) infinite, dp-glitch 5.3s steps(1, end) infinite; animation-play-state: paused; }
/* the echoes are upside-down reflections that sink, stretch and shear away */
.dp-e { color: rgb(var(--lz, 255,77,109)); opacity: 0; filter: blur(.02em); animation: dp-fall 3.4s ease-in infinite; animation-play-state: paused; }
.dp-e2 { animation-delay: 1.2s; color: rgb(var(--lzw, 255,255,255)); animation-duration: 4.3s; }
.dp-e1 { animation-delay: .4s; }
.screen.on .dp-glow, .screen.on .dp b, .screen.on .dp-t, .screen.on .dp-e, .dp-bg .dp-glow, .dp-bg b, .dp-bg .dp-t, .dp-bg .dp-e { animation-play-state: running; }
@keyframes dp-melt {
  0%, 100% { transform: translateY(-4%) rotate(-3deg) scaleY(1); opacity: 1; }
  30% { transform: translateY(8%) rotate(5deg) scaleY(1.45); opacity: .85; }
  55% { transform: translateY(2%) rotate(-7deg) scale(.82, .7); opacity: 1; }
  80% { transform: translateY(14%) rotate(2deg) scaleY(1.8) skewX(-14deg); opacity: .7; }
}
@keyframes dp-fall {
  0% { transform: translateY(35%) scaleY(-1) skewX(0); opacity: .55; }
  100% { transform: translateY(150%) scaleY(-2.2) skewX(28deg); opacity: 0; filter: blur(.14em); }
}
@keyframes dp-split {
  0%, 100% { text-shadow: 0 0 .25em rgba(var(--lz, 255,77,109), .9), 0 0 .8em rgba(var(--lz, 255,77,109), .55); }
  22% { text-shadow: -.05em 0 #ff2a6d, .05em 0 #05d9ff, 0 0 .5em rgba(var(--lz, 255,77,109), .6); }
  24% { text-shadow: .07em .02em #ff2a6d, -.07em -.02em #05d9ff; }
  26% { text-shadow: 0 0 .25em rgba(var(--lz, 255,77,109), .9), 0 0 .8em rgba(var(--lz, 255,77,109), .55); }
  71% { text-shadow: -.03em 0 #ff2a6d, .09em 0 #05d9ff, 0 0 .6em rgba(var(--lz, 255,77,109), .7); }
  73% { text-shadow: 0 0 .25em rgba(var(--lz, 255,77,109), .9), 0 0 .8em rgba(var(--lz, 255,77,109), .55); }
}
@keyframes dp-glitch {
  0%, 100% { clip-path: none; translate: 0 0; }
  41% { clip-path: inset(18% 0 52% 0); translate: -3% 0; }
  42% { clip-path: inset(60% 0 8% 0); translate: 4% 0; }
  43% { clip-path: none; translate: 0 0; }
  87% { clip-path: inset(35% 0 35% 0); translate: 6% 0; scale: 1.08 .9; }
  88% { clip-path: none; translate: 0 0; scale: 1; }
}
@keyframes dp-glow { from { opacity: .45; transform: translateY(-4%) scale(.95); } to { opacity: 1; transform: translateY(6%) scale(1.08); } }
/* home page backdrop while Deeper plays */
.dp-bg { position: fixed; z-index: -1; opacity: 0; transition: opacity .6s; }
.dp-live .dp-bg { display: grid; opacity: calc(.55 * var(--tri2, 1) * var(--tri2-dim, 1)); }
@media (prefers-reduced-motion: reduce) { .dp-glow, .dp b, .dp-e, .dp-t { animation: none; } .dp-t { filter: none; } .dp-e { opacity: 0; } }
.screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.screen.has-video .lz-a, .screen.has-video .lz-b, .screen.has-video .sh { display: none; }
@keyframes lzs-a { from { transform: rotate(calc(var(--sw-a, 16deg) * -1)); } to { transform: rotate(var(--sw-a, 16deg)); } }
@keyframes lzs-b { from { transform: rotate(var(--sw-b, 18deg)); } to { transform: rotate(calc(var(--sw-b, 18deg) * -1)); } }
@media (prefers-reduced-motion: reduce) { .screen .lz-a, .screen .lz-b { animation: none; } }

.pbtn {
  background: none; border: 0; color: var(--fg); cursor: pointer; padding: 0;
  width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
}
.pbtn:hover { color: var(--accent); }
.pbtn svg { width: 20px; height: 20px; fill: currentColor; }
.pbtn.main { background: var(--accent); color: #fff; width: 44px; height: 44px; }
.pbtn.main:hover { opacity: .88; color: #fff; }
.pbtn .i-pause { display: none; }
.is-on .pbtn.main .i-play { display: none; }
.is-on .pbtn.main .i-pause { display: block; }
.pbar { height: 6px; border-radius: 4px; background: rgba(255,255,255,0.12); cursor: pointer; touch-action: pan-y; }
.pbar i { border-radius: inherit; display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--accent); will-change: transform; }

/* MINI PLAYER (home) */
.mini {
  position: fixed; right: 16px; bottom: 16px; z-index: 50; width: min(320px, calc(100vw - 32px));
  background: rgba(var(--bg-alt-rgb),0.96); border: 1px solid var(--line); border-radius: 14px; padding: 10px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.55);
}
.mini[hidden] { display: none; }
.mini-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; margin-bottom: 8px; }   /* title on the first line, buttons on the second */
.mini-title { flex: 1 0 100%; min-width: 0; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .pbtn { width: 30px; height: 30px; }
.mini .pbtn svg { width: 17px; height: 17px; }
.mini .pbtn.main { width: 38px; height: 38px; }
.mini .pbar { margin: 10px 0 6px; }
.mini-ctrl { display: flex; align-items: center; justify-content: center; gap: 10px; position: relative; }
.mini-vol { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 11px; }
.mini-vol input { flex: 1; min-width: 0; accent-color: var(--accent); }
.mini-time { position: absolute; right: 2px; font-size: 11px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mini-pop {
  position: absolute; left: -1px; right: -1px; bottom: calc(100% + 8px); padding: 6px;
  background: rgba(var(--bg-alt-rgb),0.98); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,0.55);
}
.mini-pop[hidden] { display: none; }
.mini-tabs { display: flex; gap: 4px; margin-bottom: 6px; }
.mini-tab {
  flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: inherit;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 8px 0; cursor: pointer;
}
.mini-tab:hover { color: var(--fg); }
.mini-tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.mini-list { margin: 0; padding: 0; list-style: none; max-height: calc(100vh - 220px); overflow-y: auto; overscroll-behavior: auto; }
.mini-list li[hidden] { display: none; }
.mini .pl-item { padding: 6px 8px; font-size: 12.5px; white-space: nowrap; letter-spacing: -.01em; }
.mini .pl-item small { flex-shrink: 0; }
.mini .pl-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mini .pl-item small { margin-left: 0; }
.pl-item {
  display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; color: var(--fg);
  font: inherit; font-size: 13px; text-align: left; padding: 8px 10px; border-radius: 8px; cursor: pointer;
}
.pl-item:hover { background: rgba(255,255,255,0.06); }
.pl-item.is-active { color: var(--accent); }
.pl-item:disabled { opacity: .5; cursor: not-allowed; font-style: italic; }
.pl-item:disabled:hover { background: none; }
.pl-item small { margin-left: auto; color: var(--muted); font-size: 11px; }
.pl-head { padding: 8px 10px 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* FULL PLAYER (Player page) */
.player-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 28px; align-items: start; }
.player-main .screen { border-radius: 14px; }
.player-now { margin: 18px 0 12px; }
.player-now h1 { font-size: 24px; text-transform: none; }
.player-now p { margin: 4px 0 0; font-size: 14px; }
.player-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.player-ctrl .pbar { flex: 1; height: 8px; }
.player-time { font-size: 12px; color: var(--muted); min-width: 84px; text-align: right; font-variant-numeric: tabular-nums; }
.player-btns { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.player-vol { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.player-vol input { width: 110px; accent-color: var(--accent); }
.playlist { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px; padding: 8px; } /* no inner scroll: the whole page scrolls */
.playlist .pl-item[hidden] { display: none; }
.playlist .pl-item { width: 100%; }
.playlist .pl-item { font-size: 14px; padding: 10px 12px; }
@media (max-width: 860px) { .player-layout { grid-template-columns: 1fr; } }

/* hidden engine of SoundCloud players; shown (.show) only when a phone blocks playback started from our buttons */
.fed-slot { position: absolute; left: -9999px; width: 300px; height: 120px; opacity: 0; pointer-events: none; }
.fed-slot.show {
  position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); opacity: 1; pointer-events: auto;
  width: min(420px, calc(100vw - 24px)); height: 120px; z-index: 2147483000; border-radius: 12px;
  background: #000; box-shadow: 0 14px 40px rgba(0,0,0,.6);
}
.fed-slot.show::before {
  content: "Tap play to start"; position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); text-align: center;
  font: 600 13px/1.2 "Helvetica Neue", Arial, sans-serif; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.9);
}
.fed-slot.show iframe { display: none; width: 100%; height: 120px; border: 0; border-radius: 12px; }
.fed-slot.show iframe.cur { display: block; }

/* loading: a spinner ring around the play button while a track is starting */
@keyframes spin { to { transform: rotate(360deg); } }
.pbtn.main { position: relative; }
.is-loading .pbtn.main::after, .song.is-loading .song-play::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: #fff;
  animation: spin .8s linear infinite; pointer-events: none;
}
.song-play { position: relative; }
.song.is-loading .song-play::after { border-color: rgba(var(--accent-rgb),.25); border-top-color: var(--accent); }
.song.is-loading .song-time { opacity: .5; }

/* MINI PLAYER on iOS: slim full-width bar at the bottom, collapsible to the right */
.mini .m-shareat[hidden], .mini .m-shareclip[hidden] { display: none; }
.mini .m-shareclip svg, .player-share svg { fill: currentColor; }
.m-shareclip.is-armed, .player-share.is-armed { color: var(--accent); outline: 1px solid var(--accent); }
.mini .m-collapse, .mini-open { display: none; }
.mini .m-collapse { display: inline-flex; }
.mini { transition: transform .28s ease; }
.mini.collapsed { transform: translateX(calc(100% + 24px)); pointer-events: none; }
.mini.ios {
  left: 0; right: 0; bottom: 0; width: auto; border-radius: 14px 14px 0 0; border-width: 1px 0 0;
  padding: 26px 14px calc(26px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) 54px; align-items: center; column-gap: 2px;
  transition: transform .28s ease;
}
.mini.ios[hidden] { display: none; }
.mini.ios.collapsed { transform: translateX(105%); pointer-events: none; }
.mini.ios .mini-top, .mini.ios .mini-ctrl { display: contents; }
.mini.ios .m-screen { display: none; }
.mini.ios .m-collapse { display: inline-flex; }
.mini.ios .m-prev { grid-column: 2; grid-row: 4; justify-self: center; }
.mini.ios .m-play { grid-column: 3; grid-row: 4; justify-self: center; width: 64px; height: 64px; }
.mini.ios .m-next { grid-column: 4; grid-row: 4; justify-self: center; }
.mini.ios .mini-title { grid-column: 1 / 5; grid-row: 1; margin: 0 0 2px; }
.mini.ios .mini-time { grid-column: 5; grid-row: 1; justify-self: end; position: static; margin: 0 4px 2px 0; }
.mini.ios .m-share, .mini.ios .m-shareat, .mini.ios .m-shareclip, .mini.ios .m-open, .mini.ios .m-list, .mini.ios .m-close { grid-row: 2; justify-self: center; }
.mini.ios .m-share { grid-column: 1; }
.mini.ios .m-shareat { grid-column: 2; }
.mini.ios .m-shareclip { grid-column: 5; }
.mini.ios .m-open { grid-column: 3; }
.mini.ios .m-list { grid-column: 4; }
.mini.ios .pbtn.m-collapse {
  grid-column: 6; grid-row: 1 / 6; align-self: stretch; justify-self: end; width: 54px; height: auto; border-radius: 0; border-left: 1px solid var(--line);
  margin: -26px -14px calc(-26px - env(safe-area-inset-bottom)) 10px; background: rgba(255,255,255,.04);
}
.mini.ios .pbtn.m-collapse svg { width: 34px; height: 34px; }
.mini.ios .m-close { grid-column: 5; grid-row: 4; }   /* bottom row, beside next: its old cell is the range button's */
.mini.ios .pbtn { width: 52px; height: 52px; }
.mini.ios .pbtn svg { width: 26px; height: 26px; }
.mini.ios .mini-title { font-size: 17px; }
.mini.ios .pbar { grid-column: 1 / 6; grid-row: 3; margin: 12px 0 18px; height: 8px; }
.mini.ios .mini-vol { grid-column: 1 / 6; grid-row: 5; margin: 0 0 4px; font-size: 14px; }
.mini.ios .mini-vol input { height: 28px; }
.mini.ios .mini-pop { left: 8px; right: 8px; }
.mini.ios .mini-list { max-height: 55vh; }
.mini ~ .mini-open.is-shown {
  display: flex; align-items: center; justify-content: center; gap: 6px; position: fixed; right: 0; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 50;
  height: 58px; padding: 0 12px 0 18px; border: 1px solid var(--line); border-right: 0; border-radius: 29px 0 0 29px;
  background: rgba(var(--bg-alt-rgb),0.96); color: var(--fg); box-shadow: 0 8px 24px rgba(0,0,0,.5); cursor: pointer;
}
.mini-open svg { width: 28px; height: 28px; fill: currentColor; }
/* desktop: a bigger tab */
.mini:not(.ios) ~ .mini-open.is-shown { bottom: 24px; height: 84px; padding: 0 20px 0 28px; gap: 8px; border-radius: 42px 0 0 42px; }
.mini:not(.ios) ~ .mini-open svg { width: 40px; height: 40px; }
.mini:not(.ios) ~ .mini-open .song-eq { height: 28px; gap: 3px; }
.mini:not(.ios) ~ .mini-open .song-eq i { width: 5px; }
.mini-open .song-eq { display: none; }
.mini-open.is-on .song-eq { display: flex; }
.mini-open.is-on svg { display: none; }
.mini-open .song-eq i { background: var(--accent); }
/* iPhone in landscape: the portrait bar (4 rows, big buttons) would cover half the screen, so squeeze it into a short 3-row bar */
@media (orientation: landscape) and (max-height: 500px) {
  .mini.ios {
    padding: 8px calc(14px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left));
    grid-template-columns: repeat(9, minmax(0, 1fr)) 54px;
  }
  .mini.ios .mini-title { grid-column: 1 / 9; grid-row: 1; margin: 0; font-size: 14px; }
  .mini.ios .mini-time { grid-column: 9; grid-row: 1; margin: 0 4px 0 0; }
  .mini.ios .mini-vol { grid-column: 1 / 10; grid-row: 4; margin: 0; }
  .mini.ios .pbar { grid-column: 1 / 10; grid-row: 2; margin: 6px 0 6px; height: 6px; }
  .mini.ios .m-share { grid-column: 1; grid-row: 3; }
  .mini.ios .m-shareat { grid-column: 2; grid-row: 3; }
  .mini.ios .m-shareclip { grid-column: 3; grid-row: 3; }
  .mini.ios .m-open { grid-column: 4; grid-row: 3; }
  .mini.ios .m-list { grid-column: 5; grid-row: 3; }
  .mini.ios .m-prev { grid-column: 6; grid-row: 3; }
  .mini.ios .m-play { grid-column: 7; grid-row: 3; width: 44px; height: 44px; }
  .mini.ios .m-next { grid-column: 8; grid-row: 3; }
  .mini.ios .m-close { grid-column: 9; grid-row: 3; }
  .mini.ios .pbtn { width: 40px; height: 40px; }
  .mini.ios .pbtn svg { width: 22px; height: 22px; }
  .mini.ios .pbtn.m-collapse {
    grid-column: 10; grid-row: 1 / 4; width: 54px; height: auto; margin: -8px calc(-14px - env(safe-area-inset-right)) calc(-8px - env(safe-area-inset-bottom)) 10px;
  }
  .mini.ios .mini-list { max-height: calc(100vh - 150px); }
  body:has(.mini.ios:not([hidden]):not(.collapsed)) .fed-slot.show { bottom: calc(120px + env(safe-area-inset-bottom)); }
}
/* the fallback SoundCloud player sits above the bar */
body:has(.mini.ios:not([hidden]):not(.collapsed)) .fed-slot.show { bottom: calc(280px + env(safe-area-inset-bottom)); }
.mini-open .i-pause { display: none; }
.mini[hidden] ~ .mini-open { display: none !important; }

.fed-slot-x { display: none; }
.fed-slot.show .fed-slot-x {
  display: grid; place-items: center; position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 1; width: 40px; height: 40px; padding: 0;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(var(--bg-alt-rgb),.95); color: #fff; cursor: pointer;
}
.fed-slot-x svg { width: 20px; height: 20px; fill: currentColor; }

/* NAV: deep links stop below the (sticky) nav, whatever its height (--nav-h is measured in nav.js) */
html section[id], html .song, html .ig-item { scroll-margin-top: calc(var(--nav-h, 64px) + 16px); }
/* NAV on phones and tablets (iPad included): hamburger that opens a dropdown and closes after a tap */
.burger { display: none; }
@media (max-width: 1024px) {
  html nav .wrap { position: relative; flex-wrap: nowrap; padding: 8px 20px 8px 24px; gap: 10px; }
  html nav .cta { margin-left: auto; padding: 8px 16px; }
  html nav .nav-actions { margin-left: auto; }
  html nav .nav-actions .cta { margin-left: 0; }
  .burger {
    display: grid; align-content: center; justify-items: center; gap: 5px; flex-shrink: 0; width: 44px; height: 44px; padding: 0;
    background: none; border: 0; border-radius: 10px; cursor: pointer; color: var(--fg);
  }
  .burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
  nav.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  nav.open .burger span:nth-child(2) { opacity: 0; }
  nav.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  nav .wrap > ul {
    order: 0; position: absolute; top: 100%; left: 0; right: 0; width: auto; flex-direction: column; gap: 0;
    padding: 0 16px; max-height: 0; overflow: hidden; visibility: hidden;
    background: rgba(var(--bg-rgb),0.98); border-bottom: 1px solid transparent;
    transition: max-height .3s ease, visibility 0s linear .3s;
  }
  nav.open .wrap > ul { max-height: 80vh; visibility: visible; padding-bottom: 8px; border-bottom-color: var(--line); transition: max-height .3s ease; }
  nav .wrap > ul li a { display: block; padding: 15px 2px; font-size: 17px; border-bottom: 1px solid var(--line); }
  nav .wrap > ul li:last-child a { border-bottom: 0; }
  nav .wrap > ul li a.active { border-bottom-color: var(--line); }
}

/* mixes: every mix has its own laser show (v0 = the three fans above) */
/* v1: crossing fans from the bottom corners, dense and quick, a slow one from the top centre */
.screen.mix-v1 .sh-a { left: -120%; top: -20%; animation-duration: 3.4s; background: repeating-conic-gradient(at 50% 50%, rgba(var(--lz),0) 0deg, rgba(var(--lzl),.95) .35deg, rgba(var(--lz),0) .8deg, transparent .8deg 4.5deg); }
.screen.mix-v1 .sh-b { left: -20%; top: -20%; animation-name: sh-c; animation-duration: 4.2s; background: repeating-conic-gradient(at 50% 50%, rgba(var(--lzw),0) 0deg, rgba(var(--lzw),.95) .35deg, rgba(var(--lzw),0) .8deg, transparent .8deg 5deg); }
.screen.mix-v1 .sh-c { left: -70%; top: -120%; animation-duration: 9s; background: repeating-conic-gradient(at 50% 50%, rgba(var(--lzg),0) 0deg, rgba(var(--lzg),.8) .6deg, rgba(var(--lzg),0) 1.2deg, transparent 1.2deg 14deg); }
/* v2: a rotating burst from the centre, a counter-rotating one, and a slow sweep from the bottom */
.screen.mix-v2 .sh-a, .screen.mix-v2 .sh-b { left: -70%; top: -70%; animation-direction: normal; animation-timing-function: linear; }
.screen.mix-v2 .sh-a { animation-name: sh-spin; animation-duration: 18s; background: repeating-conic-gradient(at 50% 50%, rgba(var(--lz),0) 0deg, rgba(var(--lzl),.9) .4deg, rgba(var(--lz),0) .9deg, transparent .9deg 6deg); }
.screen.mix-v2 .sh-b { animation-name: sh-spin-r; animation-duration: 26s; background: repeating-conic-gradient(at 50% 50%, rgba(var(--lzw),0) 0deg, rgba(var(--lzw),.8) .5deg, rgba(var(--lzw),0) 1.1deg, transparent 1.1deg 11deg); }
.screen.mix-v2 .sh-c { left: -70%; top: -20%; animation-duration: 6s; background: repeating-conic-gradient(at 50% 50%, rgba(var(--lzg),0) 0deg, rgba(var(--lzg),.85) .5deg, rgba(var(--lzg),0) 1.1deg, transparent 1.1deg 10deg); }
@keyframes sh-spin { to { transform: rotate(360deg); } }
@keyframes sh-spin-r { to { transform: rotate(-360deg); } }
/* v3: curtain of three fans along the top edge, sweeping out of phase */
.screen.mix-v3 .sh-a { left: -100%; top: -120%; animation-duration: 4s; animation-delay: -1s; background: repeating-conic-gradient(at 50% 50%, rgba(var(--lz),0) 0deg, rgba(var(--lzl),.95) .5deg, rgba(var(--lz),0) 1deg, transparent 1deg 8deg); }
.screen.mix-v3 .sh-b { left: -70%; top: -120%; animation-name: sh-a; animation-duration: 5.5s; animation-delay: -3s; background: repeating-conic-gradient(at 50% 50%, rgba(var(--lzw),0) 0deg, rgba(var(--lzw),.9) .5deg, rgba(var(--lzw),0) 1deg, transparent 1deg 8deg); }
.screen.mix-v3 .sh-c { left: -40%; top: -120%; animation-duration: 7s; animation-delay: -5s; background: repeating-conic-gradient(at 50% 50%, rgba(var(--lzg),0) 0deg, rgba(var(--lzg),.9) .5deg, rgba(var(--lzg),0) 1deg, transparent 1deg 8deg); }
@media (prefers-reduced-motion: reduce) { .screen .sh i { animation: none !important; } }

.player-min {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--fg); font-size: 13px; white-space: nowrap;
}
.player-min:hover { color: var(--accent); border-color: rgba(var(--accent-rgb),.5); text-decoration: none; }
.player-min svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 520px) { .player-btns { flex-wrap: wrap; } .player-vol { margin-left: 0; flex: 1 0 100%; order: 5; } .player-vol input { flex: 1; width: auto; height: 28px; } }

/* fullscreen (desktop only: mouse + hover devices) */
.m-full, .player-full { display: none; }
@media (hover: hover) and (pointer: fine) { .m-full { display: inline-flex; } .player-full { display: inline-flex; } .mini.ios .m-full { display: none; } }
.player-full { background: none; font-family: inherit; cursor: pointer; }
.screen:fullscreen { aspect-ratio: auto; width: 100vw; height: 100vh; border-radius: 0; border: 0; }
.screen:-webkit-full-screen { aspect-ratio: auto; width: 100vw; height: 100vh; border-radius: 0; border: 0; }

/* same dark edge on all four sides of the screen (small and big player) */
.screen::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--bg-deep), inset 0 0 28px 10px var(--bg-deep);
}
.screen.has-video::after { display: none; }

/* no pinch / double-tap zoom on phones (scrolling still works) */
html, body { touch-action: pan-x pan-y; }

/* photos and the photo viewer: no pinch zoom either */
*, *::before, *::after { touch-action: pan-x pan-y; }
.lightbox, .lightbox img { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ig-item img { -webkit-user-drag: none; -webkit-touch-callout: none; }

/* albums in the lists (player page + mini player) */
.pl-album {
  display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; color: var(--fg); font: inherit; font-size: 14px; font-weight: 700;
  text-align: left; padding: 10px 10px; border-radius: 8px; cursor: pointer;
}
.pl-album:hover { background: rgba(255,255,255,0.06); color: var(--accent); }
.pl-album small { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 400; }
.pl-album .pl-chev { width: 18px; height: 18px; fill: currentColor; transition: transform .2s ease; flex-shrink: 0; }
.pl-album.is-open .pl-chev { transform: rotate(90deg); }
.pl-album[hidden], li[hidden] > .pl-album { display: none; }
.pl-group { padding: 12px 10px 4px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; list-style: none; }
.pl-group[hidden] { display: none; }
.is-collapsed { display: none !important; }
.pl-item[data-album], li[data-album] .pl-item { padding-left: 30px; }
.mini .pl-item[data-album], .mini li[data-album] .pl-item { padding-left: 14px; }

/* share */
.song-share, .player-share { background: none; font-family: inherit; cursor: pointer; }
.song-share { flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); transition: color .2s ease, border-color .2s ease; }
.song-share-at { width: auto; border-radius: 17px; padding: 0 10px 0 8px; gap: 5px; grid-auto-flow: column; font-size: 12px; font-weight: 600; line-height: 1; color: var(--accent); border-color: rgba(var(--accent-rgb),.5); }
.song-share-at svg { width: 15px; height: 15px; }
.song-share[hidden] { display: none; }
.song-share:hover { color: var(--accent); border-color: rgba(var(--accent-rgb),.5); }
.song-share svg { width: 17px; height: 17px; fill: currentColor; }
.player-share .share-ic { display: inline-flex; }
.player-share svg { width: 16px; height: 16px; fill: currentColor; }
.is-copied { color: #4ade80 !important; border-color: rgba(74,222,128,.6) !important; }
.fed-toast {
  position: fixed; left: 50%; top: 84px; z-index: 2147483000; transform: translate(-50%, -8px); opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 999px; background: rgba(var(--bg-alt-rgb),.97); color: #fff; border: 1px solid var(--line);
  font: 600 14px/1 "Helvetica Neue", Arial, sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: opacity .2s ease, transform .2s ease;
}
.fed-toast.show { opacity: 1; transform: translate(-50%, 0); }
.fed-retry {
  position: fixed; left: 50%; top: 84px; z-index: 2147483000; transform: translate(-50%, -8px); opacity: 0; pointer-events: none; max-width: calc(100vw - 24px);
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 999px; background: rgba(var(--bg-alt-rgb),.97); color: #fff;
  border: 1px solid var(--accent); font: 600 14px/1.2 "Helvetica Neue", Arial, sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: opacity .2s ease, transform .2s ease;
}
.fed-retry.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.fed-retry button { font: inherit; cursor: pointer; border: 0; border-radius: 999px; }
.fed-retry .fr-go { background: var(--accent); color: #fff; padding: 9px 16px; }
.fed-retry .fr-x { background: none; color: var(--muted); width: 32px; height: 32px; font-size: 20px; line-height: 1; padding: 0; }

/* round play button in every playlist row (Player page), like the home page rows */
.playlist .pl-item { gap: 12px; }
.pl-play {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(var(--accent-rgb),0.55); background: rgba(var(--accent-rgb),0.12); color: var(--accent); transition: background .2s ease, color .2s ease;
}
.mini .pl-item { gap: 8px; }
.mini .pl-play { width: 24px; height: 24px; }
.pl-play svg { width: 13px; height: 13px; fill: currentColor; }
.pl-play .i-pause { display: none; }
.pl-item:hover .pl-play, .pl-item.is-playing .pl-play { background: var(--accent); color: #fff; }
.pl-item.is-playing .pl-play .i-play { display: none; }
.pl-item.is-playing .pl-play .i-pause { display: block; }
.pl-item:disabled .pl-play, .pl-item:disabled:hover .pl-play { opacity: .6; background: transparent; color: var(--muted); border: 1px dashed var(--muted); filter: grayscale(1); }
.pl-item:disabled small { font-style: normal; text-transform: uppercase; letter-spacing: .06em; font-size: 10px; padding: 2px 7px; border: 1px solid currentColor; border-radius: 99px; }
/* keep the round buttons round when the controls row gets crowded; let the row wrap instead */
.pbtn { flex-shrink: 0; }
.player-btns { flex-wrap: wrap; row-gap: 10px; }

/* Player page with no song: the Fed DJ logo on the screen, no title text */
.screen .screen-logo { display: none; }
.screen.is-empty .screen-logo { display: block; position: absolute; left: 50%; top: 50%; width: 52%; height: auto; transform: translate(-50%, -50%); z-index: 2; pointer-events: none; opacity: .95; }
.screen.is-empty .lz-a, .screen.is-empty .lz-b, .screen.is-empty .sh, .screen.is-empty .jl, .screen.is-empty .dp, .screen.is-empty .rd { display: none; }
.player-now h1:empty, .player-now p:empty { display: none; }
.screen.is-empty { background: var(--bg-deep); }
.screen.is-empty::after { display: none; }
.player-share[hidden] { display: none; }
.pl-share { width: 28px; height: 28px; margin-left: auto; }
.pl-share + small { margin-left: 0; }
.pl-share svg { width: 15px; height: 15px; }
.pl-share:focus-visible { outline: 2px solid var(--accent); }
.album-share { width: 28px; height: 28px; margin-left: auto; }
.album-share + small { margin-left: 0; }
.album-share svg { width: 15px; height: 15px; }
.album-share:focus-visible { outline: 2px solid var(--accent); }

/* playlist pages (10 tracks each) */
.pl-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.pl-pager[hidden] { display: none; }
.pl-apager { list-style: none; margin: 6px 0 4px; }
.pl-pager button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--fg); font-size: 20px; line-height: 1; cursor: pointer; }
.pl-pager button:hover:not(:disabled) { color: var(--accent); border-color: rgba(var(--accent-rgb),.5); }
.pl-pager button:disabled { opacity: .35; cursor: default; }

/* play / pause over the screen, shown on hover (and keyboard focus) */
.screen-toggle {
  position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; display: grid; place-items: center;
  background: transparent; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.screen-toggle svg {
  grid-area: 1 / 1; width: 22%; max-width: 72px; min-width: 28px; aspect-ratio: 1; fill: #fff; opacity: 0;
  padding: 14px; box-sizing: content-box; border-radius: 50%; background: rgba(var(--bg-rgb),.55); box-shadow: 0 6px 24px rgba(0,0,0,.45);
  transform: scale(.85); transition: opacity .18s, transform .18s; pointer-events: none;
}
.screen-toggle .ic-pause { display: none; }
.screen.on .screen-toggle .ic-play { display: none; }
.screen.on .screen-toggle .ic-pause { display: block; }
.screen-toggle:hover svg, .screen-toggle:focus-visible svg { opacity: 1; transform: scale(1); }
.screen-toggle:focus-visible { outline: 2px solid var(--accent, #ff4d6d); outline-offset: -3px; }

/* the pointer has been still over the screen for 5 s: hide the cursor and the play / pause button */
.screen.idle, .screen.idle * { cursor: none !important; }
.screen.idle .screen-toggle svg { opacity: 0 !important; }

/* tracks already played in this session */
/* the check is a badge on the round play button, so a long title (ellipsis) can't hide it */
.pl-play { position: relative; }
.pl-item.was-played .pl-play::before, .song.was-played .song-play::before {
  content: "\2713"; position: absolute; top: -4px; right: -4px; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 9px; font-weight: 700; line-height: 1; pointer-events: none;
}
.mini .pl-item.was-played .pl-play::before { width: 12px; height: 12px; font-size: 7px; top: -3px; right: -3px; }
.pl-item.was-played:not(.is-active), .song.was-played:not(.is-active) .song-title { opacity: .7; }

/* highlighted (picked / shared) range of a track */
.pbar, .song-bar { position: relative; }
.pbar .rng, .song-bar .rng { position: absolute; top: 0; bottom: 0; z-index: 1; background: rgba(255,255,255,.4); border-left: 2px solid #fff; border-right: 2px solid #fff; box-sizing: border-box; pointer-events: none; }
.pbar .rng[hidden], .song-bar .rng[hidden] { display: none; }
.song-share-clip.is-armed { color: var(--accent); border-color: var(--accent); }

/* scrubbing: taller hit area (transparent borders above), marker + time bubble while dragging */
.pbar, .song-bar { user-select: none; -webkit-user-select: none; outline-offset: 2px; }
.pbar.scrubbing, .song-bar.scrubbing { box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.scrub-tip { position: fixed; z-index: 2147483000; transform: translate(-50%, -100%); padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.85); color: #fff; font: 600 12px/1.3 system-ui, sans-serif; font-variant-numeric: tabular-nums; pointer-events: none; }
.scrub-tip[hidden] { display: none; }
.pbar::before, .song-bar::before { content: ''; position: absolute; inset: -12px 0; }   /* invisible, makes the bar easy to hit */

/* grows when hovered / touched; the dot at the end of the played part gets bigger on touch (--g: bar growth, --d: dot size) */
.pbar, .song-bar { --g: 1; --d: 12px; transform: scaleY(var(--g)); transition: transform .15s ease; }
@media (hover: hover) { .pbar:hover, .song-bar:hover { --g: 1.7; --d: 16px; } }
.pbar.scrubbing, .song-bar.scrubbing { --g: 1.9; --d: 22px; }
.scrub-dot { position: absolute; top: 50%; left: 0; width: var(--d); height: var(--d); border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--accent), 0 1px 4px rgba(0,0,0,.5); z-index: 3; pointer-events: none;
  transform: translate(-50%, -50%) scaleY(calc(1 / var(--g))); transition: width .15s ease, height .15s ease; }
.pbar:not(:hover):not(.scrubbing) .scrub-dot, .song-bar:not(:hover):not(.scrubbing) .scrub-dot { opacity: .9; }

/* the collapsed player tab wears the colors of the song rows' play button: accent tint, solid accent while playing */
.mini ~ .mini-open.is-shown { border-color: rgba(var(--accent-rgb),0.55); background: linear-gradient(rgba(var(--accent-rgb),0.12), rgba(var(--accent-rgb),0.12)), var(--bg-alt); color: var(--accent); transition: background .2s ease, color .2s ease; }
.mini ~ .mini-open.is-shown.is-on { background: var(--accent); color: #fff; }
.mini-open.is-on .song-eq i { background: #fff; }

/* while sliding, the bar fills with the accent color up to the finger */
.pbar .scrub-fill, .song-bar .scrub-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; z-index: 2; border-radius: inherit; background: var(--accent); pointer-events: none; }
.pbar .scrub-fill[hidden], .song-bar .scrub-fill[hidden] { display: none; }
/* while sliding the bar shows only the preview fill (0 -> finger), so it fills and empties exactly under the finger */
.pbar.scrubbing > i, .song-bar.scrubbing > i { opacity: 0; }
.pbar .scrub-fill, .song-bar .scrub-fill { box-shadow: 0 0 8px rgba(var(--accent-rgb), .6); }

/* "Round 2" (single): bell-like ripple rings expand, the letters of "Round" flip like spinning coins while the word circles, a big "2" pulses inside a rotating ring */
.rd { position: absolute; inset: 0; display: none; place-items: center; pointer-events: none; container-type: size; overflow: hidden; }
.screen.has-rd .rd { display: grid; }
.screen.has-rd .lz-a, .screen.has-rd .lz-b { display: none; }
.screen.has-video .rd { display: none; }
.rd-glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(var(--lz, 255,77,109), .5), transparent 62%); animation: rd-glow 2.4s ease-in-out infinite; animation-play-state: paused; }
.rd-ring { position: absolute; left: 50%; top: 50%; width: 40cqmin; aspect-ratio: 1; margin: -20cqmin 0 0 -20cqmin; border-radius: 50%; border: .6cqmin solid rgb(var(--lz, 255,77,109)); opacity: 0; animation: rd-ripple 4.2s cubic-bezier(.2,.6,.3,1) infinite; animation-play-state: paused; }
.rd-r2 { animation-delay: 1.4s; border-color: rgb(var(--lzw, 255,255,255)); }
.rd-r3 { animation-delay: 2.8s; }
.rd-orbit { display: grid; place-items: center; animation: rd-circle 5.2s linear infinite; animation-play-state: paused; }
.rd-t { display: flex; align-items: center; gap: .18em; font-size: 15cqw; font-weight: 800; letter-spacing: -.02em; line-height: 1; white-space: nowrap; color: #fff; text-shadow: 0 0 .3em rgba(var(--lz, 255,77,109), .85), 0 0 .9em rgba(var(--lz, 255,77,109), .5); }
.rd-w { display: flex; perspective: 20cqw; }
.rd-w b { display: block; font-weight: inherit; animation: rd-flip 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * .22s); animation-play-state: paused; }
.rd-n { position: relative; display: grid; place-items: center; width: 1.5em; height: 1.5em; color: rgb(var(--lz, 255,77,109)); text-shadow: 0 0 .3em rgb(var(--lz, 255,77,109)); }
.rd-n b { grid-area: 1 / 1; font-size: 1.15em; font-weight: inherit; animation: rd-ding 1.8s ease-out infinite; animation-play-state: paused; }
.rd-spin { position: absolute; inset: 0; border-radius: 50%; border: .06em dashed rgb(var(--lzw, 255,255,255)); animation: rd-turn 4s linear infinite; animation-play-state: paused; }
.screen.on .rd *, .screen.on .rd, .rd-bg *, .rd-bg { animation-play-state: running; }
@keyframes rd-ripple { 0% { transform: scale(.15); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes rd-glow { 0%, 100% { opacity: .45; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes rd-circle { from { transform: rotate(0) translate(3cqmin) rotate(0); } to { transform: rotate(360deg) translate(3cqmin) rotate(-360deg); } }
@keyframes rd-flip { 0%, 55%, 100% { transform: rotateY(0); } 80% { transform: rotateY(360deg); } }
@keyframes rd-ding { 0% { transform: scale(1.5) rotate(-12deg); } 25% { transform: scale(.92) rotate(6deg); } 50%, 100% { transform: scale(1) rotate(0); } }
@keyframes rd-turn { to { transform: rotate(360deg); } }
/* home page backdrop while Round 2 plays */
.rd-bg { position: fixed; z-index: -1; opacity: 0; transition: opacity .6s; }
.rd-live .rd-bg { display: grid; opacity: calc(.55 * var(--tri2, 1) * var(--tri2-dim, 1)); }
@media (prefers-reduced-motion: reduce) { .rd *, .rd { animation: none; } .rd-ring { opacity: 0; } }

/* social links under the title (same icons as the home page) */
.player-social { display: flex; gap: 18px; margin-top: 10px; }
.player-social a { color: var(--muted); display: inline-flex; align-items: center; }
.player-social a:hover { color: var(--accent); text-decoration: none; }

/* newsletter button, to the left of "Ping Me" in the header */
nav .nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
nav .faq-link { color: var(--fg); font-size: 14px; font-weight: 600; white-space: nowrap; padding: 4px 2px; }
nav .faq-link[aria-current="page"] { color: var(--accent); font-weight: 700; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
nav .faq-link:hover { color: var(--accent); text-decoration: none; }
nav .nl-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; color: var(--accent); border: 2px solid var(--accent); }
nav .nl-btn:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* nav item that is not available yet (e.g. Store): grayed out, not clickable */
nav ul li .nav-disabled { color: var(--muted); opacity: .45; font-size: 14px; white-space: nowrap; padding-bottom: 4px; border-bottom: 2px solid transparent; cursor: not-allowed; user-select: none; }

/* cart button (store link, disabled for now): same round shape as the newsletter button, grayed out and not clickable */
nav .cart-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; color: var(--muted); border: 2px solid currentColor; opacity: .45; cursor: not-allowed; user-select: none; }

/* ---------- ACCESSIBILITY ---------- */
/* skip link: first thing a keyboard / VoiceOver user reaches, visible only while focused */
.skip-link { position: absolute; left: 12px; top: -64px; z-index: 1000; background: #fff; color: #000; font-weight: 700; padding: 10px 16px; border-radius: 8px; transition: top .15s ease; }
.skip-link:focus { top: 12px; outline: 3px solid #ff4d6d; outline-offset: 2px; text-decoration: none; }
main:focus { outline: none; }
/* a clearly visible keyboard focus ring everywhere (mouse clicks do not show it) */
a:focus-visible, button:focus-visible, input:focus-visible, [role="button"]:focus-visible, [role="slider"]:focus-visible, [tabindex]:focus-visible, summary:focus-visible {
  outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px rgba(255,77,109,0.85); border-radius: 6px;
}
nav .cta:focus-visible, .nl-row button:focus-visible, nav .nl-btn:focus-visible, .burger:focus-visible { border-radius: 999px; }
.nl-row input:focus-visible { outline: 3px solid #fff; }
.nl-row input[aria-invalid="true"] { border-color: #ff4d6d; }
/* white text on the pink buttons needs a darker pink to reach the 4.5:1 contrast of WCAG AA */
html nav .cta, html .btn-primary, html .nl-row button, html .pbtn.main, html .fed-retry .fr-go, html nav .nl-btn:hover { background: #d9304f; }
html .btn-primary:hover { background: #c22645; }
/* respect "reduce motion": no smooth scrolling, no hover movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .song:hover, .song-play:hover { transform: none !important; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
/* the photo / video viewer has a real close button */
.lightbox-close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.6); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox-close:hover { background: #d9304f; }
/* text-size / windows high-contrast mode: keep borders visible */
@media (forced-colors: active) { .song, .booking-col, .nl-row input, nav .nl-btn, nav .cart-btn { border: 1px solid CanvasText; } }

/* ---------- PRINT ---------- */
@media print {
  @page { margin: 16mm 14mm; }
  :root, html { --bg: #fff; --bg-alt: #fff; --bg-deep: #fff; --fg: #000; --muted: #333; --accent: #b0173a; --line: #bbb; --bg-rgb: 255,255,255; --bg-alt-rgb: 255,255,255; }
  html, body { background: #fff !important; color: #000 !important; font-size: 11pt; line-height: 1.45; }
  body { animation: none !important; }
  * { box-shadow: none !important; text-shadow: none !important; animation: none !important; transition: none !important; filter: none; }
  /* everything that is only for screens */
  nav, .burger, .skip-link, .nav-actions, .tri1, .tri2, .lasers1, .hero .fx, .hero .blob, .hero .swirl, .hero .stars, .hero .floor, .hero .wave, .hero .veil,
  .mini, .mini-open, .fed-toast, .fed-retry, .lightbox, #sc-slot, .player-btns, .player-ctrl, .screen, #pscreen, .player-vol, .playlist, #pl,
  .song-play, .song-bar, .song-eq, .song-share, .pl-share, .album-share, .song-link, .song-time, .scrub-dot, .scrub-fill, .scrub-tip,
  .newsletter, .social-row, .hero-actions, .songs-more, .nl-hp, video, .ig-item.vid, [hidden] { display: none !important; }
  .rv, .rv.in { opacity: 1 !important; transform: none !important; }
  section, .hero { padding: 10pt 0 !important; border: 0 !important; background: none !important; page-break-inside: auto; }
  .wrap { padding: 0 !important; max-width: none !important; }
  h1, h2, h3, h4 { color: #000 !important; page-break-after: avoid; break-after: avoid; }
  h2 { font-size: 16pt; margin: 14pt 0 6pt !important; border-bottom: 1px solid #000; padding-bottom: 3pt; }
  .eyebrow { color: #555 !important; font-size: 9pt; }
  p, li { color: #000 !important; orphans: 3; widows: 3; }
  img { max-width: 100% !important; height: auto !important; page-break-inside: avoid; break-inside: avoid; }
  .hero-logo { display: none !important; }   /* the glowing logo is for screens: on paper the name is printed as text */
  .hero h1 { margin: 4pt 0 10pt !important; line-height: 1.1 !important; }
  .hero h1::before { content: "FED DJ"; display: block; font-size: 40pt; font-weight: 800; letter-spacing: .04em; color: #000; }
  .legal::before { content: "FED DJ"; display: block; font-weight: 800; letter-spacing: .04em; font-size: 14pt; margin-bottom: 10pt; }
  .pill { border: 1px solid #000 !important; color: #000 !important; background: none !important; }
  .album, .album > summary { background: none !important; color: #000 !important; border-color: #bbb !important; }
  .album > summary { border: 0 !important; font-size: 13pt; }
  .album > summary .pl-chev { display: none; }
  .album-name, .album small { color: #000 !important; }
  .song, .rider-card, .cred-card, .gig-list li, .place, .ig-item, .booking-col { background: none !important; border: 1px solid #bbb !important; border-radius: 4pt !important; page-break-inside: avoid; break-inside: avoid; }
  .song-title { white-space: normal !important; color: #000 !important; }
  .places { grid-template-columns: repeat(4, 1fr) !important; gap: 8pt !important; }
  .place { background: #222 !important; border: 0 !important; height: auto !important; min-height: 44pt; display: flex !important; align-items: center; justify-content: center; padding: 6pt !important; }   /* venue logos are light: keep them on a dark chip */
  .place img { max-height: 40pt !important; width: auto !important; max-width: 100% !important; object-fit: contain; padding: 0; background: none; }
  .booking-col + .booking-col { display: none !important; }   /* the newsletter card: nothing to print */
  .ig-grid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 6pt !important; }
  .booking, .booking-cols { display: block !important; text-align: left !important; }
  .booking-col { margin-bottom: 8pt; padding: 8pt !important; }
  .booking-email { color: #000 !important; border-bottom: 1px solid #000 !important; font-size: 14pt !important; }
  a { color: #000 !important; text-decoration: underline; }
  /* print the address of external links, and of in-text links on the policy pages */
  .legal a[href^="http"]::after, .booking a[href^="http"]::after, .legal a[href^="/"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; word-break: break-all; }
  .legal a[href^="/"]::after { content: " (www.feddj.com" attr(href) ")"; }
  .legal a[href^="mailto"]::after, .legal a[href^="tel"]::after { content: ""; }
  .legal { max-width: none !important; padding-top: 0 !important; }
  .legal h1 { font-size: 22pt; }
  .legal p, .legal li { font-size: 11pt !important; color: #000 !important; }
  .upd { color: #444 !important; }
  /* footer: copyright + the policy links as plain text */
  footer { color: #333 !important; border-top: 1px solid #999 !important; margin-top: 14pt; padding-top: 8pt !important; text-align: center; font-size: 9pt; }
  .legal-links a { color: #333 !important; text-decoration: none; }
  .legal-links a::after { content: "" !important; }
  /* the printed page always starts with a note of where it came from */
  body::after { content: "Printed from www.feddj.com"; display: block; text-align: center; font-size: 8pt; color: #666; margin-top: 8pt; }
}

/* ---------- FAVORITES + HIGHLIGHTS ---------- */
/* second, thinner bar under each progress bar: the parts of a song the listener liked (gold) */
.fav-bar { position: relative; height: 3px; margin-top: 5px; background: rgba(255,255,255,0.06); border-radius: 3px; cursor: crosshair; touch-action: pan-y; outline-offset: 3px; }
.fav-bar::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; bottom: -8px; }   /* taller hit area than the thin line */
.fav-bar[hidden] { display: none; }
.fav-seg { position: absolute; top: 0; bottom: 0; background: #ffc94a; border-radius: 3px; box-shadow: 0 0 6px rgba(255,201,74,0.6); }
.fav-seg:hover { background: #ffe08a; }
.fav-preview { background: rgba(255,201,74,0.55); box-shadow: none; pointer-events: none; }
.pbar-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.player-ctrl .pbar-col .pbar { flex: none; width: 100%; }
/* heart button (favorite a song) */
.fav-heart { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.fav-heart[hidden] { display: none; }
.fav-heart svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.fav-heart:hover { color: #ff4d6d; border-color: #ff4d6d; }
.fav-heart.is-on { color: #ff4d6d; border-color: #ff4d6d; }
.fav-heart.is-on svg { fill: currentColor; }
.mini .fav-heart.pbtn, .player-btns .fav-heart { width: 36px; height: 36px; }
@media print { .fav-bar, .fav-heart { display: none !important; } }

.legal-links a[aria-current="page"] { color: var(--accent); font-weight: 700; border-bottom: 1px solid var(--accent); }
