/* Rockin' Jesus Country previews (inc/kd-previews.php, assets/kd-previews.js): the floating preview card beside the
   album on the homepage and the album's page, and the share-link and embed pages that reuse it. */
.kdp{--c-bg:rgba(255,253,249,.94);--c-ink:#13181d;--c-sub:#6f6861;--c-line:#e6ded7;--c-clay:#8f4d3f;--c-soft:#f4ece3;--c-on:#f1e4d6;
  position:relative;box-sizing:border-box;width:min(440px,100%);margin:24px 0 0;padding:14px 14px 10px;border-radius:18px;
  background:var(--c-bg);border:1px solid var(--c-line);color:var(--c-ink);text-align:left;
  font:15px/1.4 "Helvetica Neue",Helvetica,Arial,sans-serif;box-shadow:0 26px 54px -30px rgba(80,40,20,.6);
  animation:kdp-float 7s ease-in-out infinite}
@keyframes kdp-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
.kdp *{box-sizing:border-box}
.kdp-now{display:grid;grid-template-columns:46px minmax(0,1fr) 44px;align-items:center;gap:12px}
.kdp-play{position:relative;width:46px;height:46px;border:0;border-radius:50%;background:var(--c-clay);color:#fff;display:grid;place-items:center;cursor:pointer;padding:0}
.kdp-play svg{width:20px;height:20px;fill:currentColor}
/* the pulse while playing: a ring that grows and fades - transform and opacity only, so nothing is repainted each frame */
.kdp-play::after{content:"";position:absolute;inset:0;border-radius:50%;box-shadow:0 0 0 2px rgba(143,77,63,.5);opacity:0;pointer-events:none}
.kdp-playing .kdp-play::after{animation:kdp-pulse 1.8s ease-out infinite}
@keyframes kdp-pulse{0%{opacity:.9;transform:scale(1)}100%{opacity:0;transform:scale(1.5)}}
.kdp-spin{animation:kdp-rot .9s linear infinite}
@keyframes kdp-rot{to{transform:rotate(360deg)}}
.kdp-err .kdp-play{background:var(--c-sub)}
.kdp-meta{min-width:0;display:flex;flex-direction:column}
.kdp-eyebrow{font-size:11.5px;font-weight:700;letter-spacing:.11em;text-transform:uppercase;color:var(--c-clay)}
.kdp-title{font:600 18px/1.25 Lora,Georgia,serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.kdp-sub{font-size:13px;color:var(--c-sub)}
.kdp-sharebtn{width:44px;height:44px;border-radius:50%;border:1px solid var(--c-line);background:transparent;color:var(--c-clay);display:grid;place-items:center;cursor:pointer;padding:0}
.kdp-sharebtn svg{width:19px;height:19px}
.kdp-bar{height:3px;border-radius:2px;background:var(--c-line);overflow:hidden;margin:12px 2px 0}
.kdp-bar i{display:block;height:100%;width:100%;background:var(--c-clay);transform:scaleX(0);transform-origin:0 50%;transition:transform .25s linear}
.kdp-list{list-style:none;margin:10px 0 0;padding:0 2px 0 0;max-height:216px;overflow-y:auto;scrollbar-width:thin}
.kdp-item{display:grid;grid-template-columns:26px minmax(0,1fr) auto;gap:8px;align-items:center;min-height:44px;padding:7px 8px;border-radius:10px;color:inherit;text-decoration:none}
.kdp-item:hover,.kdp-item:focus-visible{background:var(--c-soft)}
.kdp-item[aria-current]{background:var(--c-on)}
.kdp-item[aria-current] .kdp-t{color:var(--c-clay);font-weight:700}
.kdp-n{font:600 13px/1 Lora,Georgia,serif;color:var(--c-clay);text-align:center}
.kdp-t{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}
.kdp-d{font-size:12.5px;color:var(--c-sub);font-variant-numeric:tabular-nums}
.kdp-panel{position:absolute;right:12px;top:60px;z-index:5;width:220px;padding:10px;border-radius:12px;background:#fff;border:1px solid var(--c-line);
  box-shadow:0 18px 40px -18px rgba(0,0,0,.45);display:grid;gap:6px}
.kdp-pt{margin:4px 2px 0;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--c-sub)}
.kdp-panel button{font:600 14px/1 "Helvetica Neue",Helvetica,Arial,sans-serif;min-height:44px;padding:10px 12px;border-radius:9px;border:1px solid var(--c-line);background:var(--c-soft);color:var(--c-ink);cursor:pointer;text-align:left}
.kdp-panel button:hover{background:var(--c-on)}
:root[data-theme="dark"] .kdp:not(.kdp-solo){--c-bg:rgba(33,24,17,.94);--c-ink:#f3ece2;--c-sub:#b8ab9c;--c-line:#3a2e22;--c-clay:#d78b67;--c-soft:#2b2017;--c-on:#3a2a1d}
:root[data-theme="dark"] .kdp:not(.kdp-solo) .kdp-play{color:#1b130b}
:root[data-theme="dark"] .kdp-panel{background:#211811}
@media (prefers-reduced-motion:reduce){.kdp,.kdp-playing .kdp-play::after,.kdp-spin,.kdp-ring{animation:none}.kdp-bar i{transition:none}}
@media print{.kdp{display:none}}

/* ---- the share-link page (/listen/...) and the embeds (/embed/...) ---- */
.kdp-page{margin:0;background:#1b130b;color:#f3ece2;font:15px/1.4 "Helvetica Neue",Helvetica,Arial,sans-serif}
.kdp-shell{position:relative;min-height:100vh;display:grid;place-items:center;padding:28px 16px;overflow:hidden}
.kdp-shell::before{content:"";position:absolute;inset:-40px;background:var(--kdp-cover) center/cover no-repeat;filter:blur(38px) brightness(.42);transform:scale(1.15)}
.kdp-solo{position:relative;animation:none;width:min(420px,100%);margin:0;--c-bg:rgba(27,19,11,.82);--c-ink:#f6eee4;--c-sub:#cbbcab;--c-line:#4a3a2c;--c-clay:#e09a76;--c-soft:#2e2318;--c-on:#3d2d20;
  backdrop-filter:blur(8px);box-shadow:0 30px 70px -30px rgba(0,0,0,.8)}
.kdp-solo .kdp-play{color:#1b130b}
.kdp-cover{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:12px;margin:0 0 14px}
.kdp-buy{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:14px 0 4px}
.kdp-btn{display:inline-block;padding:12px 20px;border-radius:999px;background:#e09a76;color:#1b130b;font-weight:700;text-decoration:none}
.kdp-more,.kdp-brand{color:#e8d6c3;font-size:14px}
.kdp-panel{color:var(--c-ink)}
.kdp-solo .kdp-panel{background:#241a12}
.kdp-fallback{width:100%;margin-top:12px}
/* embeds: the frame is the card - no backdrop, no margins */
.kdp-embed .kdp-shell{min-height:0;height:100vh;padding:0;place-items:stretch}
.kdp-embed .kdp-shell::before{filter:blur(30px) brightness(.35)}
.kdp-embed .kdp-solo{width:100%;height:100%;border-radius:14px;padding:12px;border:0;overflow:hidden}
.kdp-embed.kdp-one .kdp-solo{display:grid;grid-template-columns:118px minmax(0,1fr);grid-template-rows:auto auto 1fr;column-gap:14px;align-content:start}
.kdp-embed.kdp-one .kdp-cover{grid-row:1/4;width:118px;margin:0}
.kdp-embed.kdp-one .kdp-buy{margin:10px 0 0}
.kdp-embed.kdp-one .kdp-btn{padding:8px 14px;font-size:13.5px}
.kdp-embed.kdp-all .kdp-cover{float:left;width:84px;margin:0 12px 8px 0}
.kdp-embed.kdp-all .kdp-list{max-height:calc(100vh - 210px)}
.kdp-embed .kdp-panel{top:auto;bottom:12px}

/* ---- the two styles beside the album, taking turns per visitor (7 Oct): the scroll wheel and the carousel ---- */
.kdp-style-wheel .kdp-list,.kdp-style-carousel .kdp-list{display:none}
/* the page head picks the style (kd_previews_head), so each style's room is there from the first paint and nothing
   jumps when the script arrives: the list steps aside, the wheel's box and the carousel's arrows are already drawn */
html[data-kdp-style] .kdp:not(.kdp-solo) .kdp-list{display:none}
html[data-kdp-style=wheel] .kdp:not(.kdp-solo) .kdp-wheel{display:block}
html[data-kdp-style=carousel] .kdp:not(.kdp-solo) .kdp-steps{display:flex}
html[data-kdp-style=carousel] .kde-stage,html[data-kdp-style=carousel] .kda-stage{margin-bottom:96px}

/* scroll wheel: a drum of titles in the card; the one in the window is the song */
.kdp-wheel{position:relative;height:216px;margin-top:8px;perspective:700px;overflow:hidden;cursor:grab;touch-action:none;outline:none;
  -webkit-mask-image:linear-gradient(transparent,#000 24%,#000 76%,transparent);mask-image:linear-gradient(transparent,#000 24%,#000 76%,transparent)}
.kdp-wheel:focus-visible{box-shadow:inset 0 0 0 2px var(--c-clay);border-radius:12px}
.kdp-drum{position:absolute;inset:0;transform-style:preserve-3d}
.kdp-row{position:absolute;left:0;right:0;top:50%;height:40px;margin-top:-20px;display:grid;grid-template-columns:26px minmax(0,1fr);gap:8px;align-items:center;
  padding:0 12px;border:0;background:none;color:var(--c-sub);font:500 16px/1.2 Lora,Georgia,serif;text-align:left;cursor:pointer;backface-visibility:hidden;user-select:none}
.kdp-row .kdp-t{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kdp-row.kdp-centre{color:var(--c-ink);font-weight:600}
.kdp-lens{position:absolute;left:0;right:0;top:50%;height:44px;margin-top:-22px;border-radius:10px;border-block:1px solid var(--c-clay);background:var(--c-on);opacity:.55;pointer-events:none}

/* carousel: song sleeves circling the album; the card keeps the title and the controls */
.kdp-steps{gap:6px;grid-column:1/-1;justify-content:flex-end;margin-top:-4px}
.kdp-steps:not([hidden]){display:flex}   /* in the markup from the start, hidden until the carousel shows them */
.kdp-style-carousel .kdp-now{grid-template-columns:46px minmax(0,1fr) 38px}
.kdp-step{width:44px;height:44px;border-radius:50%;border:1px solid var(--c-line);background:transparent;color:var(--c-ink);display:grid;place-items:center;cursor:pointer;padding:0}
.kdp-step svg{width:16px;height:16px;fill:currentColor}
.kdp-ringed{margin-bottom:96px;touch-action:pan-y}
.kdp-ringed .tilt{z-index:2}
.kdp-ringed .pullbtn{z-index:5}   /* the record's own slide-out button stays above the sleeves, on the narrowest phone */
/* the sleeves ride in one ring that floats with the album - a CSS animation, so no frame is drawn for the bob */
.kdp-ring{position:absolute;inset:0;z-index:3;pointer-events:none;animation:kdp-bob 5.2s ease-in-out -2.6s infinite alternate}
@keyframes kdp-bob{from{transform:translateY(-4px)}to{transform:translateY(4px)}}
.kdp-sleeve{position:absolute;left:0;top:0;width:80px;height:98px;padding:8px;border:0;border-radius:10px;cursor:pointer;text-align:left;pointer-events:auto;
  display:grid;grid-template-rows:auto 1fr;gap:5px;background:linear-gradient(160deg,#3a2618,#23170f);color:#f6ede2;
  box-shadow:0 14px 30px -14px rgba(0,0,0,.85);backface-visibility:hidden;-webkit-tap-highlight-color:transparent}
.kdp-sn{font:700 18px/1 Lora,Georgia,serif;color:#d8a066}
.kdp-st{font:600 11px/1.25 "Helvetica Neue",Helvetica,Arial,sans-serif;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.kdp-sleeve.kdp-on{background:linear-gradient(160deg,#c46f50,#7a3b28)}
.kdp-sleeve.kdp-on .kdp-sn{color:#f6ede2}
.kdp-sleeve:focus-visible{outline:2px solid #d8a066;outline-offset:2px}
@media print{.kdp-ring{display:none}}
.kdp-lens{z-index:0}.kdp-drum{z-index:1}   /* the window sits behind the titles, so the one in it reads darkest */
.kda-copy>.kdp{grid-column:1/-1}   /* the album page's text column is a named grid: the card spans it, rather than squeezing "20 songs" into one column */
.kdp-drum{transform:translateZ(-120px)}   /* the drum's radius: the front row sits at true size, so its number is not magnified past the wheel's edge */
@media (prefers-reduced-motion:reduce){.kdp-ring{animation:none}}   /* after the ring's own rule, so it wins */

/* ---- the scroll wheel as Andrew picked it (8 Oct, round 2 "C4"): no card box; "Previews - all 20 songs" and the song
        above the wheel; a short 5-row wheel that loops; play, previous and next centred under it; share as a small link ---- */
html[data-kdp-style=wheel] :not(.kda-songs-play)>.kdp:not(.kdp-solo){display:grid;grid-template-columns:1fr auto auto 1fr;
  grid-template-areas:"meta meta meta meta" "wheel wheel wheel wheel" ". play steps ." "share share share share" "bar bar bar bar";
  column-gap:10px;width:min(480px,100%);margin:10px 0 18px;padding:0;background:none;border:0;box-shadow:none;animation:none}
html[data-kdp-style=wheel] :not(.kda-songs-play)>.kdp:not(.kdp-solo) .kdp-now{display:contents}
html[data-kdp-style=wheel] :not(.kda-songs-play)>.kdp:not(.kdp-solo) .kdp-meta{grid-area:meta;padding:0 2px 6px}
html[data-kdp-style=wheel] :not(.kda-songs-play)>.kdp:not(.kdp-solo) .kdp-title{font-size:21px;white-space:normal}
html[data-kdp-style=wheel] :not(.kda-songs-play)>.kdp:not(.kdp-solo) .kdp-play{grid-area:play;align-self:center}
html[data-kdp-style=wheel] :not(.kda-songs-play)>.kdp:not(.kdp-solo) .kdp-steps{grid-area:steps;display:flex;gap:10px;margin:0;align-self:center}
html[data-kdp-style=wheel] :not(.kda-songs-play)>.kdp:not(.kdp-solo) .kdp-sharebtn{grid-area:share;justify-self:center;width:auto;height:44px;border:0;border-radius:0;padding:0 8px;
  font:600 13px/1 "Helvetica Neue",Helvetica,Arial,sans-serif;color:var(--c-clay);text-decoration:underline}
html[data-kdp-style=wheel] :not(.kda-songs-play)>.kdp:not(.kdp-solo) .kdp-sharebtn svg{display:none}
html[data-kdp-style=wheel] :not(.kda-songs-play)>.kdp:not(.kdp-solo) .kdp-sharebtn::after{content:"Share this song"}
html[data-kdp-style=wheel] :not(.kda-songs-play)>.kdp:not(.kdp-solo) .kdp-wheel{grid-area:wheel;height:232px;margin:0;perspective:900px;
  -webkit-mask-image:linear-gradient(transparent,#000 20%,#000 80%,transparent);mask-image:linear-gradient(transparent,#000 20%,#000 80%,transparent)}
html[data-kdp-style=wheel] :not(.kda-songs-play)>.kdp:not(.kdp-solo) .kdp-row{height:46px;margin-top:-23px;grid-template-columns:22px minmax(0,1fr);gap:12px;padding:0 14px;font:500 18px/1.2 Lora,Georgia,serif}
html[data-kdp-style=wheel] :not(.kda-songs-play)>.kdp:not(.kdp-solo) .kdp-row .kdp-n{font:700 12px/1 "Helvetica Neue",Helvetica,Arial,sans-serif;text-align:left}
html[data-kdp-style=wheel] :not(.kda-songs-play)>.kdp:not(.kdp-solo) .kdp-lens{height:50px;margin-top:-25px}
html[data-kdp-style=wheel] :not(.kda-songs-play)>.kdp:not(.kdp-solo) .kdp-drum{transform:translateZ(-140px)}
html[data-kdp-style=wheel] :not(.kda-songs-play)>.kdp:not(.kdp-solo) .kdp-bar{grid-area:bar;margin:8px 2px 0}

/* ---- the album page (8 Oct, "AL"): the songs section's player is the tracklist - a now-playing bar, then all 20, each one
        a tap to hear; the top of the page keeps title, price, Add to cart and the pay buttons to itself ---- */
html .kda-songs-play .kdp{width:100%;margin:0;padding:0;background:none;border:0;box-shadow:none;animation:none}
html .kda-songs-play .kdp .kdp-wheel{display:none!important}
html .kda-songs-play .kdp .kdp-list{display:block!important;max-height:none;overflow:visible;margin:18px 0 0;padding:0;columns:2;column-gap:56px}
html .kda-songs-play .kdp-now{grid-template-columns:52px minmax(0,1fr) auto auto;gap:12px;padding:16px 18px;border-radius:16px;background:var(--c-clay);color:#fff}
html .kda-songs-play .kdp-play{width:52px;height:52px;background:#fff;color:var(--c-clay)}
html .kda-songs-play .kdp-eyebrow,html .kda-songs-play .kdp-sub{color:rgba(255,255,255,.82)}
html .kda-songs-play .kdp-title{font-size:20px;color:#fff}
html .kda-songs-play .kdp-sharebtn,html .kda-songs-play .kdp-step{border-color:rgba(255,255,255,.45);color:#fff}
html .kda-songs-play .kdp-steps{display:flex;gap:8px;grid-column:auto;margin:0}
html .kda-songs-play .kdp-bar{margin:-12px 18px 0;position:relative;background:rgba(255,255,255,.3)}
html .kda-songs-play .kdp-bar i{background:#fff}
html .kda-songs-play .kdp-item{break-inside:avoid;grid-template-columns:28px 30px minmax(0,1fr) auto;gap:10px;font:500 18px/1.3 Lora,Georgia,serif;min-height:52px;
  border-bottom:1px dashed var(--c-line);border-radius:10px}
html .kda-songs-play .kdp-item::before{content:"\25B6";order:1;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;border:1px solid var(--c-line);
  color:var(--c-clay);font-size:10px}
html .kda-songs-play .kdp-item .kdp-n{order:0;font:700 12px/1 "Helvetica Neue",Helvetica,Arial,sans-serif;text-align:left}
html .kda-songs-play .kdp-item .kdp-t{order:2;white-space:normal}
html .kda-songs-play .kdp-item .kdp-d{order:3}
html .kda-songs-play .kdp-item[aria-current]{background:var(--c-on)}
html .kda-songs-play .kdp-item[aria-current]::before{background:var(--c-clay);border-color:var(--c-clay);color:#fff}
html .kda-songs-play .kdp-playing .kdp-item[aria-current]::before{content:"\275A\275A";font-size:8px;letter-spacing:-1px}
@media (max-width:700px){html .kda-songs-play .kdp .kdp-list{columns:1}
  html .kda-songs-play .kdp-now{grid-template-columns:48px minmax(0,1fr);grid-template-areas:"play meta" "share steps"}
  html .kda-songs-play .kdp-play{grid-area:play;width:48px;height:48px}html .kda-songs-play .kdp-meta{grid-area:meta}
  html .kda-songs-play .kdp-sharebtn{grid-area:share}html .kda-songs-play .kdp-steps{grid-area:steps;justify-self:end}}

/* ---- the Music page (8 Oct, "MB"): the listening band - the cover beside the wheel ---- */
.kd-band{max-width:1120px;margin:22px auto 0;padding:34px clamp(16px,4vw,48px);border-radius:24px;background:linear-gradient(160deg,#fbf3ea,#f3e3d4);
  display:grid;grid-template-columns:minmax(0,320px) minmax(0,1fr);gap:clamp(20px,4vw,56px);align-items:center;text-align:left;box-shadow:0 30px 60px -40px rgba(80,40,20,.5)}
.kd-band__cover{width:100%;height:auto;border-radius:10px;box-shadow:0 24px 50px -24px rgba(0,0,0,.55)}
.kd-band .kdp{margin:0!important;width:100%!important}
:root[data-theme="dark"] .kd-band{background:linear-gradient(160deg,#2a1f17,#1f1711)}
@media (max-width:760px){.kd-band{grid-template-columns:1fr}.kd-band__cover{max-width:220px;justify-self:center}}
/* dark: the bar's clay is light, so its words and buttons go dark (white on it measured under 3:1) */
:root[data-theme="dark"] .kda-songs-play .kdp-now,:root[data-theme="dark"] .kda-songs-play .kdp-title{color:#1b130b}
:root[data-theme="dark"] .kda-songs-play .kdp-eyebrow,:root[data-theme="dark"] .kda-songs-play .kdp-sub{color:rgba(27,19,11,.78)}
:root[data-theme="dark"] .kda-songs-play .kdp-sharebtn,:root[data-theme="dark"] .kda-songs-play .kdp-step{color:#1b130b;border-color:rgba(27,19,11,.4)}
:root[data-theme="dark"] .kda-songs-play .kdp-play{background:#1b130b;color:#f3ece2!important}
:root[data-theme="dark"] .kda-songs-play .kdp-bar{background:rgba(27,19,11,.3)}:root[data-theme="dark"] .kda-songs-play .kdp-bar i{background:#1b130b}
html .kda-songs-play .kdp-title{white-space:normal}   /* long titles wrap in the album bar, on a phone too (8 Oct) */
