/* The Record artwork and scheduled campaign presentation. */
html.album-refined {
  --ui-line: rgba(255, 255, 255, .2);
  --ui-soft: #a6a6a6;
  --ui-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  scroll-padding-top: calc(var(--album-nav-height, var(--header)) + 16px);
}
.album-refined :is(.campaign-grid, .artist-profile, .art-grid, .live-marquee) > * { min-width: 0; }

/* The Record: the cover on top and the statement underneath. */
.album-refined .record-edition { display: block; }
.album-refined .record-summary { margin: clamp(22px, 3vw, 42px) auto 0; max-width: 980px; font-size: clamp(22px, 2.35vw, 34px); line-height: 1.14; }

/* Scheduled campaign presentation. */
@font-face { font-family: "Album Alarm"; src: url("../webfonts/DSEG14Classic-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
.album-refined .hero__facts--release:has(.release-countdown--out-now) { row-gap: 2px; }
.album-refined .release-countdown--out-now { height: .9em; padding-block: 0; font-size: inherit; font-style: normal; line-height: .9; }
.album-refined .release-countdown--out-now { background-color: #050b08; background-image: radial-gradient(circle, #6ff0a81f 0 .025em, transparent .035em); background-size: .12em .12em; border: 1px solid #6ff0a824; border-radius: 3px; box-shadow: inset 0 0 .3em #000b, 0 0 .2em #6ff0a80d; }
.album-refined .release-marquee { display: flex; align-items: center; width: 200%; height: 100%; font-size: .75em; animation: albumReleaseMarquee 12s linear infinite; }
.album-refined .release-marquee__group { display: flex; flex: 0 0 50%; justify-content: space-around; align-items: center; }
.album-refined .release-marquee.release-zero { width: 100%; justify-content: flex-end; padding-right: .12em; animation: none; }
.album-refined .release-zero .release-marquee__message { gap: .06em; }
.album-refined .release-zero__part { display: inline-flex; align-items: baseline; gap: .04em; }
.album-refined .release-zero__unit { display: none; }
.album-refined .release-marquee__message { --seg-on: #6ff0a8; --seg-glow: 0 0 .16em #d8ffebc7, 0 0 .46em #6ff0a894, 0 0 1.35em #3cdc8c4d; display: flex; flex: 0 0 50%; justify-content: center; align-items: center; white-space: pre; letter-spacing: .04em; color: var(--seg-on); text-shadow: var(--seg-glow); animation: albumReleaseGlitch 3.6s steps(1, end) infinite; }
@keyframes albumReleaseMarquee { to { transform: translateX(-50%); } }
.album-refined .release-marquee__message { flex: 0 0 auto; padding-right: 0; }
.album-refined .release-marquee__message { color: var(--seg-on); font-weight: 700; text-shadow: 0 0 .04em var(--seg-on), 0 0 .14em #6ff0a840; background-image: none; filter: none; }
.album-refined .release-marquee__message { gap: .09em; }
.album-refined .release-marquee__message { font-family: "Album Alarm", monospace; font-weight: 400; font-style: normal; letter-spacing: .02em; line-height: 1; }
.album-refined .release-marquee__message { animation: albumReleaseGlitch 3.6s steps(1, end) infinite, albumOutNowBlink 2.4s steps(1, end) infinite; }
@keyframes albumOutNowBlink { 0%, 100% { opacity: 1; } 50% { opacity: .08; } }
.album-refined .release-countdown--zero { animation: albumOutNowBlink 1.2s steps(1, end) infinite; }
.album-refined .release-countdown--zero .release-countdown__body > .led-clock { animation: albumZeroGlitch 2.4s steps(1, end) infinite; }
@keyframes albumZeroGlitch {
  0%, 100% { --seg-on: #6ff0a8; --seg-glow: 0 0 .16em #d8ffebc7, 0 0 .46em #6ff0a894; transform: none; }
  50% { --seg-on: #ff3048; --seg-glow: 0 0 .16em #ff3048cc, 0 0 .6em #ff304880; transform: none; }
  80%, 85% { --seg-on: #ff3048; --seg-glow: 0 0 .16em #ff3048cc, 0 0 .6em #ff304880; transform: translate(2px, -1px); }
  81% { --seg-on: #ff3048; --seg-glow: 0 0 .16em #ff3048cc, 0 0 .6em #ff304880; transform: translate(-2px, 1px); }
  87% { --seg-on: #ff3048; --seg-glow: 0 0 .16em #ff3048cc, 0 0 .6em #ff304880; transform: none; }
}
html.vhs-mode.album-refined .release-countdown--out-now { box-shadow: inset 0 0 .3em #000b, 0 0 calc(30px * var(--vhs-glow-strength)) rgba(160, 185, 205, calc(.13 * var(--vhs-glow-strength))); }
html.vhs-mode.album-refined .release-countdown--out-now::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(135deg, rgba(184, 205, 220, calc(.055 * var(--vhs-glow-strength))), transparent 60%), repeating-linear-gradient(180deg, rgba(0, 0, 0, calc(1.65 * var(--vhs-scanline-opacity))) 0 1px, transparent 1px 4px); }
html.vhs-mode.album-refined .release-marquee { filter: blur(.25px); }
html.vhs-mode.album-refined .release-marquee__message { text-shadow: 0 0 .045em var(--seg-on), 0 0 .14em color-mix(in srgb, var(--seg-on) 32%, transparent), 0 0 .32em color-mix(in srgb, var(--seg-on) 20%, transparent); }
@keyframes albumReleaseGlitch {
  0%, 100%, 83%, 87% { --seg-on: #6ff0a8; transform: none; }
  80%, 85% { --seg-on: #ff3048; --seg-glow: 0 0 .16em #ff3048cc, 0 0 .6em #ff304880; transform: translate(2px, -1px); }
  81% { --seg-on: #ff3048; --seg-glow: 0 0 .16em #ff3048cc, 0 0 .6em #ff304880; transform: translate(-2px, 1px); }
}
@media (prefers-reduced-motion: reduce) {
  .album-refined .release-countdown--zero,
  .album-refined .release-countdown--zero .release-countdown__body > .led-clock { animation: none; }
  .album-refined .release-marquee, .album-refined .release-marquee__message { animation: none; }
}
.album-refined .video-frame--cover-only .video-poster { cursor: default; }
.album-refined .video-frame--cover-only.is-playing > .video-poster,
.album-refined .video-frame--cover-only.is-playing > .single-release-actions { display: none; }
.album-refined .single-side .single-meta { background: #000; }
.album-refined .single-release-actions { display: grid; justify-items: start; gap: 10px; margin-top: 24px; }
.album-refined .video-frame--cover-only .single-release-actions { position: absolute; z-index: 3; top: 62%; left: 50%; transform: translateX(-50%); display: grid; justify-items: stretch; gap: clamp(6px, 1vw, 12px); width: min(70%, 360px); margin: 0; }
.album-refined .video-frame--cover-only .single-release-action { justify-content: center; gap: clamp(8px, 1.3vw, 16px); width: 100%; min-height: clamp(30px, 4.5vw, 56px); padding: 6px 12px; border: 0; border-radius: 4px; font: 700 clamp(11px, 1.6vw, 20px)/1.2 Arial, Helvetica, sans-serif; letter-spacing: 0; text-align: center; }
.album-refined .video-frame--cover-only .single-release-action[data-single-spotify] { background: #63cf70; }
.album-refined .video-frame--cover-only .single-release-action[data-single-youtube] { background: #f00; }
.album-refined .video-frame--cover-only .single-release-action { --release-glow: 99, 207, 112; box-shadow: 0 0 12px rgba(var(--release-glow), .45), 0 0 26px rgba(var(--release-glow), .25); animation: releaseButtonPulse 2.6s ease-in-out infinite; }
.album-refined .video-frame--cover-only .single-release-action[data-single-youtube] { --release-glow: 255, 0, 0; }
@keyframes releaseButtonPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(var(--release-glow), .3), 0 0 20px rgba(var(--release-glow), .18); }
  50% { box-shadow: 0 0 18px rgba(var(--release-glow), .7), 0 0 38px rgba(var(--release-glow), .4); }
}
@media (prefers-reduced-motion: reduce) {
  .album-refined .video-frame--cover-only .single-release-action { animation: none; }
}
.album-refined .video-frame--cover-only .single-release-action svg { width: clamp(20px, 3vw, 36px); height: clamp(20px, 3vw, 36px); flex-basis: clamp(20px, 3vw, 36px); }
.album-refined .single-release-action { display: inline-flex; align-items: center; gap: 9px; width: fit-content; max-width: 100%; padding: 10px 14px; border: 0; border-radius: 12px; font: 700 10px/1.5 var(--ui-mono); letter-spacing: .025em; text-align: left; text-decoration: none; }
.album-refined .single-release-action[data-single-spotify] { background: #1db954; color: #fff; }
.album-refined .single-release-action[data-single-youtube] { background: #f00; color: #fff; }
.album-refined .single-release-action svg { width: 20px; height: 20px; flex: 0 0 20px; fill: currentColor; }
.album-refined a.single-release-action:hover { filter: brightness(1.12); }
.album-refined a.single-release-action:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.album-refined .single-release-action:disabled { cursor: not-allowed; }
.album-refined [data-campaign-redacted] { isolation: isolate; }
.album-refined .single-feature .video-frame { --campaign-glitch-image: url("../../images/GLITCHES/g1.gif"); }
.album-refined .single-side .single-meta { --campaign-glitch-image: url("../../images/GLITCHES/g2.gif"); }
.album-refined .single-side .single-copy { --campaign-glitch-image: url("../../images/GLITCHES/g4.webp"); }
.album-refined .single-card { --campaign-glitch-image: url("../../images/GLITCHES/g5.webp"); }
.album-refined .art-grid { --campaign-glitch-image: url("../../images/GLITCHES/g7.gif"); }
.album-refined [data-campaign-redacted] > .campaign-veil { display: block; background: linear-gradient(145deg, #161616, #070707); filter: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (prefers-reduced-motion: no-preference) {
  .album-refined [data-campaign-redacted][data-campaign-visual-active] > .campaign-veil { background: linear-gradient(rgba(0, 0, 0, .38), rgba(0, 0, 0, .38)), var(--campaign-glitch-image); background-color: #050505; background-size: cover; background-position: center; background-repeat: no-repeat; }
}
.album-refined [data-campaign-redacted] > .campaign-veil::before { content: none; }
/* The tracklist stays sealed but keeps its background footage visible behind the sticker. */
.album-refined .tracklist-layout { width: 100%; margin-left: 0; transform: none; background: #000 url("../../video/tracklist-loops/vhscamera-poster.jpg") center / cover no-repeat; }
.album-refined .track-panel[data-campaign-redacted] > .campaign-veil { display: none; }
.album-refined .tracklist-layout:has(.track-panel[data-campaign-redacted]) .tracklist-bg-video {
  filter: contrast(.7) saturate(1.25) brightness(1.4) blur(.25px);
}
.album-refined .campaign-sticker { top: 50%; left: 50%; right: auto; z-index: 10; width: calc(100% - 32px); max-width: 460px; padding: clamp(18px, 2.4vw, 28px); transform: translate(-50%, -50%); background: #0b0b0b; border: 1px solid #ffffff70; border-top: 4px solid var(--accent); box-shadow: 0 8px 32px #0009; color: #fff; text-align: left; font: 700 clamp(13px, 1.1vw, 16px)/1.45 var(--ui-mono); letter-spacing: .035em; overflow-wrap: anywhere; }
.album-refined .campaign-sticker {
  background: #a90920;
  border: 0;
  border-radius: 0;
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: 0 8px 24px #0008;
  font-family: "VCR OSD Mono", "Lucida Console", "Courier New", monospace;
  font-size: clamp(19px, 1.75vw, 24px);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.15;
  letter-spacing: 0;
  text-shadow: 0 0 1px #ffffff60;
  -webkit-font-smoothing: auto;
}
/* Keep the interference on the footage, never on the release information. */
.album-refined .campaign-sticker::before,
.album-refined .campaign-sticker::after { content: none; animation: none; }
/* Static CRT glass and scanlines: preserve the OSD text's readability. */
@media (prefers-reduced-motion: no-preference) {
  .album-refined [data-campaign-visual-active] > .campaign-sticker {
    animation: campaignOsdDrift 1.6s steps(1, end) infinite;
  }
}
@keyframes campaignOsdDrift {
  0%, 100%, 24%, 48%, 72%, 90% { transform: translate(-50%, -50%); }
  12%, 60% { transform: translate(calc(-50% + 1.5px), calc(-50% - 1px)); }
  36%, 84% { transform: translate(calc(-50% - 1.5px), calc(-50% + 1px)); }
  78% { transform: translate(-50%, calc(-50% + 2px)); }
}
.album-refined .campaign-sticker::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  width: auto;
  padding: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 2px, #0002 2px 3px), radial-gradient(ellipse at center, transparent 45%, #0004 100%), linear-gradient(115deg, #ffffff0d, transparent 40%);
  mix-blend-mode: normal;
}
.album-refined .campaign-sticker__line { text-shadow: -.6px 0 #ffb0b077, .6px 0 #b8ffff66, 0 0 2px #ffffff40; }
.album-refined .campaign-sticker__body { display: grid; justify-items: start; gap: 16px; animation: none; }
.album-refined .campaign-sticker__line { position: relative; padding-left: 1.15em; }
.album-refined .campaign-sticker__line::before { content: "\2192"; position: absolute; left: 0; top: 0; color: #a90920; background: #f2f1ec; line-height: 1; }
.album-refined .campaign-sticker__date { display: block; max-width: 100%; padding: .15em .25em .08em; background: #f2f1ec; color: #85081a; font-size: clamp(23px, 2.1vw, 29px); font-weight: 400; line-height: 1.15; letter-spacing: 0; text-shadow: none; }
.album-refined .campaign-sticker__date::before { content: none; }
.album-refined .single-meta > .campaign-sticker { position: absolute; z-index: 8; }
.album-refined .single-meta[data-campaign-redacted], .album-refined .single-copy[data-campaign-redacted] { min-height: 210px; }

@media (max-width: 700px) {
  .album-refined .record-summary { font-size: 24px; }
}
@media print {
  .album-refined [data-campaign-redacted] { display: none !important; }
}
