/* ============================================================
   NOW SPINNING — music page for j8kes site
   lives in MainSite/Music/ — asset paths point at ../Assets/
   same recipe as the main page: paper, clovers, pixel borders,
   papyrus + LED fonts... but extra buttery ^-^
   ============================================================ */

:root {
  --header-image: url(Assets/decor/WNFVPUMBXBR5ZVZX5YKNJSJIGQRV6MDA.gif);
  --body-bg-image: url(Assets/decor/2RVP4DJQSJUCZWLMB5DAMQZWW5SPALIT.gif);
  --content: #43256E;

  /* one shared "buttery" easing so everything moves the same way */
  --butter: cubic-bezier(.2, .8, .2, 1);
}

/* ---- the fonts from the main page (paths hop up one folder) ---- */
@font-face { font-family: 'Papyrus'; src: url(../Assets/Fonts/papyrus.ttf); }
@font-face { font-family: Nunito;   src: url('https://sadhost.neocities.org/fonts/Nunito-Regular.ttf'); }
@font-face { font-family: Nunito;   src: url('https://sadhost.neocities.org/fonts/Nunito-Bold.ttf'); font-weight: bold; }
@font-face { font-family: Popstar;  src: url(../Assets/Fonts/SuperPopstar.ttf); }
@font-face { font-family: Ledlight; src: url(../Assets/Fonts/LEDLIGHT.otf); }
@font-face { font-family: AFTEI;    src: url(../Assets/Fonts/AFTEI.TTF); }
@font-face { font-family: Starborn; src: url(../Assets/Fonts/Starborn.otf); }
@font-face { font-family: nteen;    src: url(../Assets/Fonts/1999.ttf); }
@font-face { font-family: Guns;     src: url(../Assets/Fonts/Guns.ttf); }

* { box-sizing: border-box; }

body {
  font-family: 'Nunito', sans-serif;
  margin: 0;
  color: #fceaff;
  background-color: white;
  background-image: var(--body-bg-image);
  background-size: 10%;
  background-repeat: repeat;
}

/* satisfying little extras: selection + scrollbar match the site */
::selection { background: #ED64F5; color: #fff; }
::-webkit-scrollbar { width: 14px; }
::-webkit-scrollbar-track { background: #13092D; }
::-webkit-scrollbar-thumb {
  background: #85ba87;
  border: 3px solid #13092D;
  border-radius: 0;            /* chunky and square. like the old days */
}
::-webkit-scrollbar-thumb:hover { background: #00ff99; }

html { scroll-behavior: smooth; }

#container { max-width: 1100px; margin: 0 auto; }

#container a {
  color: rgb(255, 255, 255);
  font-weight: bold;
  font-family: 'Papyrus', cursive;
}

/* ---------------- top ticker ---------------- */
#topBar {
  width: 100%;
  padding: 10px 0;
  font-size: smaller;
  background-color: #13092D;
  overflow: hidden;
  white-space: nowrap;
}

.ticker { display: inline-flex; animation: ticker-scroll 22s linear infinite; }
.ticker span { padding-right: 2em; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }   /* second copy takes over = seamless */
}

#topBar:hover .ticker { animation-play-state: paused; }  /* hover to read it */

/* ---------------- header ---------------- */
#header {
  width: 100%;
  background-color: #00ff99;
  height: 141px;
  background-image: var(--header-image);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  font-family: 'Papyrus';
  color: #ED64F5;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  gap: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#header img {
  max-height: 90px;
  transition: transform 400ms var(--butter);
}
#header:hover img { transform: rotate(360deg); }   /* spin the clover hehe */

/* ---------------- navbar (same wiggle buttons) ---------------- */
#navbar { height: 80px; width: 100%; }

#navbar ul {
  display: flex;
  padding: 0; margin: 0 0 10px;
  list-style-type: none;
  justify-content: space-evenly;
  align-items: center;
  height: 100%;
}
#navbar li { padding-top: 10px; }

.item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  text-decoration: none;
  color: inherit;
  font-weight: 1000;
  background-color: #78786d;
  background-image: url(Assets/decor/MEC76AXPUZIB5P2KJSN6YUDAP7WMEXUP.gif);
  background-position: center;
  background-size: 100% 100%;
  border-width: 7px;
  border-style: solid;
  border-image: url(Assets/decor/IJGPBQ2P6OB4AVELWZ57ZQNL4R56CTPF.gif) 9 round;
  transform: translateZ(0);
  transition: transform 180ms var(--butter),
              letter-spacing 180ms var(--butter),
              filter 180ms var(--butter);
  will-change: transform;
  --s: 1;
}
.item:hover {
  --s: 1.15;
  font-weight: 100;
  letter-spacing: 0.5px;
  filter: brightness(1.06);
  animation: wiggle 260ms ease-in-out both;
}
.item:active { --s: 1.66; }

@keyframes wiggle {
  0%   { transform: translate3d(0,0,0) scale(var(--s)); }
  20%  { transform: translate3d(-2px,0,0) rotate(-0.6deg) scale(var(--s)); }
  40%  { transform: translate3d(2px,0,0) rotate(0.6deg) scale(var(--s)); }
  60%  { transform: translate3d(-1px,0,0) rotate(-0.3deg) scale(var(--s)); }
  80%  { transform: translate3d(1px,0,0) rotate(0.3deg) scale(var(--s)); }
  100% { transform: translate3d(0,0,0) scale(var(--s)); }
}

/* ---------------- layout ---------------- */
#flex { display: flex; align-items: flex-start; }

main {
  background-image: url(../Assets/Imgs/BG/MZHO7Y57K32DGJMF2GOLHLNANR43XP47.gif);
  background-color: #d9d2c4;          /* fallback so it never goes white */
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  opacity: 0.99;
}

aside {
  background-color: #c6c6c6;
  opacity: 0.9;
  width: 200px;
  flex: 0 0 200px;
  padding: 20px;
  font-size: smaller;
}

h1, h2, h3, h4, h5 { color: #000; text-align: center; }
h4 { font-size: 33px; font-family: Ledlight; }
h2, h3 { font-family: Ledlight; }

p { font-family: AFTEI; color: rgb(87,87,87); font-size: 22px;
    text-shadow: 1px 1px 0px #000; text-align: center; }

.box {
  background-color: #2e0000;
  border: 1px solid #ED64F5;
  padding: 10px;
  background-image: url(Assets/decor/SXKDZIRUN3NWROA4EF6JLWPIAWR57A5V.gif);
}

.boxR {
  background-size: cover;
  background-image: url(../Assets/Imgs/BG/ZAK2W7BTQLMJWSQJCI3FPBB3V34MAJ7U.gif);
  background-blend-mode: multiply;
  background-color: #748e7d;
  border: 1px solid #ff7300;
  padding: 10px;
  color: rgb(153,229,118);
  margin-bottom: 15px;
}

.same-line { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.inline-img { width: 15%; height: auto; }
.leftSideBarImg { width: 100%; height: auto; display: block; margin-top: 10px; }

/* ============================================================
   THE TURNTABLE  (signature piece)
   ============================================================ */
.deck-box { padding: 20px; }

.deck {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}


.art-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;

  gap: 20px;
  width: 100%;
  min-height: 600px;
  padding: 30px;

  box-sizing: border-box;
}

.art-card {
  width: 100%;
  height: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  overflow: hidden;
}

.art-card img {
  max-width: 100%;
  max-height: 100%;

  width: auto;
  height: auto;

  object-fit: contain;
  display: block;
}
/* the whole player is one big button so it's keyboard friendly */
.turntable {
  position: relative;
  width: 260px; height: 260px;
  flex: 0 0 auto;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.turntable:focus-visible { outline: 3px dashed #00ff99; outline-offset: 6px; }

.vinyl {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,.16), transparent 45%),
    repeating-radial-gradient(circle, #111 0 2px, #1d1d1d 2px 4px);
  box-shadow: 0 10px 24px rgba(0,0,0,.55), inset 0 0 0 2px #000;
  animation: spin 3.5s linear infinite;
  transition: filter 400ms var(--butter);
}

.grooves {
  position: absolute; inset: 14px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 5px, rgba(255,255,255,.045) 5px 6px);
}

.label {
  position: absolute;
  inset: 33%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #ffffff;
  background: #b2a9c7;
}
.label img { width: 100%; height: 100%; object-fit: cover; display: block; }

.spindle {
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #d8d8d8;
  box-shadow: inset 0 0 3px #000;
  z-index: 2;
}

/* soft light sweep that does NOT rotate with the record (so it reads
   as light hitting spinning vinyl — very satisfying) */
.sheen {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 200deg,
      transparent 0deg, rgba(255,255,255,.10) 30deg, transparent 70deg,
      transparent 180deg, rgba(255,255,255,.06) 215deg, transparent 250deg);
  pointer-events: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* tonearm swings off the record when paused */
.tonearm {
  position: absolute;
  top: -6px; right: 6px;
  width: 90px; height: 130px;
  transform-origin: 78px 14px;
  transform: rotate(18deg);
  transition: transform 650ms var(--butter);
  pointer-events: none;
}
.tonearm::before {           /* pivot base */
  content: "";
  position: absolute; top: 0; right: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #13092D;
  border: 2px solid #715f72;
}
.arm {
  position: absolute;
  top: 12px; right: 12px;
  width: 6px; height: 105px;
  background: linear-gradient(#cfcfcf, #8f8f8f);
  border-radius: 3px;
  transform: rotate(14deg);
  transform-origin: top center;
}
.needle {
  position: absolute;
  bottom: 0; left: 26px;
  width: 16px; height: 12px;
  background: #13092D;
  border: 2px solid #ffffff;
  border-radius: 2px;
}

/* ---- paused state: record freezes mid-rotation, arm lifts away ---- */
.turntable.paused .vinyl  { animation-play-state: paused; filter: brightness(.8) saturate(.7); }
.turntable.paused .tonearm { transform: rotate(-14deg); }

/* gentle press feedback */
.turntable:active .vinyl { filter: brightness(1.1); }

/* ---------------- readout next to the deck ---------------- */
.readout { width: min(360px, 100%); }

.led-screen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #13092D;
  border: 2px solid #604961;
  padding: 8px 12px;
}

.play-state {
  font-family: Ledlight, monospace;
  color: #d6d6d6;
  font-size: 22px;
  letter-spacing: 2px;
  animation: led-blink 2.4s steps(1) infinite;
}
@keyframes led-blink { 0%, 92% { opacity: 1; } 93%, 100% { opacity: .35; } }

/* tiny equalizer — bars are staggered so it feels alive */
.eq { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.eq i {
  width: 5px; height: 100%;
  background: #8b8b8b;
  transform-origin: bottom;
  animation: bounce 900ms ease-in-out infinite alternate;
}
.eq i:nth-child(2)  { animation-delay: -120ms; background: #ffffff; }
.eq i:nth-child(3)  { animation-delay: -240ms; }
.eq i:nth-child(4)  { animation-delay: -360ms; background: #ffffff; }
.eq i:nth-child(5)  { animation-delay: -480ms; }
.eq i:nth-child(6)  { animation-delay: -600ms; background: #ffffff; }
.eq i:nth-child(7)  { animation-delay: -720ms; }
.eq i:nth-child(8)  { animation-delay: -840ms; background: #ffffff; }
.eq i:nth-child(9)  { animation-delay: -960ms; }
.eq i:nth-child(10) { animation-delay: -1080ms; background: #ffffff; }
@keyframes bounce { from { transform: scaleY(.18); } to { transform: scaleY(1); } }

/* eq freezes politely when paused */
.turntable.paused ~ .readout .eq i,
.deck:has(.turntable.paused) .eq i { animation-play-state: paused; }

/* winamp-style scrolling title */
.track-marquee {
  margin-top: 8px;
  background: #13092D;
  border: 2px solid #4e4e4e;
  overflow: hidden;
  white-space: nowrap;
  padding: 6px 0;
}
.track-title {
  display: inline-block;
  font-family: nteen, monospace;
  color: #b9b9b9;
  font-size: 18px;
  padding-left: 100%;
  animation: title-scroll 12s linear infinite;
}
@keyframes title-scroll { to { transform: translateX(-200%); } }
.track-marquee:hover .track-title { animation-play-state: paused; }

/* fake "progress in the groove" shimmer */
.groove-progress {
  margin-top: 8px;
  height: 10px;
  background: #2e0000;
  border: 2px solid #604961;
  overflow: hidden;
}
.groove-fill {
  height: 100%;
  width: 40%;
  background: repeating-linear-gradient(90deg, #00ff99 0 6px, #85ba87 6px 12px);
  animation: groove-slide 7s var(--butter) infinite alternate;
}
@keyframes groove-slide { from { width: 8%; } to { width: 92%; } }

.deck-note { font-size: 18px; margin-bottom: 0; }

/* ============================================================
   RECENT ROTATION — album sleeves
   ============================================================ */
.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
  padding: 10px;
  perspective: 800px;            /* lets the JS tilt feel 3D */
}

.sleeve {
  background-color: #b2a9c7;
  border: 1px solid #604961;
  padding: 10px;
  font-family: nteen;
  color: black;
  position: relative;
  overflow: hidden;
  transition: transform 300ms var(--butter), box-shadow 300ms var(--butter);
  will-change: transform;
  cursor: pointer;
}

.sleeve:hover, .sleeve:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 12px 22px rgba(19, 9, 45, .45);
  z-index: 1;
}
.sleeve:focus-visible { outline: 3px dashed #00ff99; outline-offset: 2px; }

/* the shine that sweeps across the sleeve on hover. so satisfying */
.sleeve::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
  transition: left 600ms var(--butter);
  pointer-events: none;
}
.sleeve:hover::after, .sleeve:focus-visible::after { left: 130%; }

.cover {
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid #604961;
  background: #c6c3cd;
}
.cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms var(--butter);
}
.sleeve:hover .cover img { transform: scale(1.06); }

.cover-placeholder {
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: repeating-linear-gradient(45deg, #c6c3cd 0 10px, #b2a9c7 10px 20px);
  font-size: 20px;
  color: #43256E;
}

.sleeve-info { padding-top: 8px; }
.album  { font-size: 18px; margin: 0; text-align: left; font-family: nteen; }
.artist { font-family: nteen; font-size: 15px; color: #43256E;
          margin: 2px 0 4px; text-align: left; text-shadow: none; }
.blurb  { font-family: Nunito, sans-serif; font-size: 13px; color: #2e2e2e;
          margin: 0; text-align: left; text-shadow: none; }

/* stars pop one-by-one when you hover the card */
.stars { margin: 0 0 4px; text-align: left; text-shadow: none;
         color: #ED64F5; font-size: 18px; font-family: Nunito, sans-serif; }
.stars span { display: inline-block; transition: transform 250ms var(--butter); }
.sleeve:hover .stars span { transform: translateY(-3px) scale(1.2); }
.sleeve:hover .stars span:nth-child(1) { transition-delay: 0ms; }
.sleeve:hover .stars span:nth-child(2) { transition-delay: 40ms; }
.sleeve:hover .stars span:nth-child(3) { transition-delay: 80ms; }
.sleeve:hover .stars span:nth-child(4) { transition-delay: 120ms; }
.sleeve:hover .stars span:nth-child(5) { transition-delay: 160ms; }

/* ============================================================
   PLAYLIST DOORS
   ============================================================ */
.playlist-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px;
}

.playlist-door {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 170px;
  padding: 16px 10px;
  text-align: center;
  text-decoration: none;
  background-color: #748e7d;
  background-image: url(../Assets/Imgs/BG/ZAK2W7BTQLMJWSQJCI3FPBB3V34MAJ7U.gif);
  background-blend-mode: multiply;
  background-size: cover;
  border: 1px solid #ED64F5;
  transition: transform 250ms var(--butter), filter 250ms var(--butter);
}
.playlist-door:hover, .playlist-door:focus-visible {
  transform: translateY(-4px) rotate(-1deg);
  filter: brightness(1.12);
}
.playlist-door:active { transform: translateY(0) scale(.97); }
.playlist-door:focus-visible { outline: 3px dashed #00ff99; }

.door-emoji { font-size: 34px; transition: transform 250ms var(--butter); }
.playlist-door:hover .door-emoji { transform: scale(1.25) rotate(8deg); }
.door-name { font-family: 'Papyrus', cursive; color: #fff; font-size: 15px; }
.door-go {
  font-family: nteen;
  color: rgb(153,229,118);
  font-size: 14px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 250ms var(--butter), transform 250ms var(--butter);
}
.playlist-door:hover .door-go,
.playlist-door:focus-visible .door-go { opacity: 1; transform: translateX(0); }

/* ============================================================
   SIDEBAR BITS
   ============================================================ */
.stat-list { padding-left: 10px; margin: 0; list-style: square; }
.stat-list li { margin-bottom: 6px; }
.stat-num { font-family: arial; font-size: 20px; color: #00ff99; }
.stat-note { font-family: Nunito; font-size: 11px; color: #d9ffd0;
             text-shadow: none; margin: 8px 0 0; }

.genre-stamp { display: flex; justify-content: center; padding: 16px 10px; }
.stamp {
  font-size: 26px;
  color: #ff0000;
  border: 3px dashed #ff0000;
  padding: 6px 14px;
  transform: rotate(-4deg);
  transition: transform 300ms var(--butter);
}
.genre-stamp:hover .stamp { transform: rotate(3deg) scale(1.08); }

/* ============================================================
   MOBILE  (same breakpoint as the main page)
   ============================================================ */
@media only screen and (max-width: 800px) {
  body {
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
  }

  #flex { flex-wrap: wrap; }
  main, aside { flex: 1 1 100%; width: 100%; }
  aside { margin: 0 10px; }

  #navbar { height: auto; min-height: 80px; }
  #navbar ul { flex-wrap: wrap; }
  #navbar li { padding: 10px 4px; }

  #header { height: auto; min-height: 100px; flex-wrap: wrap; padding: 10px; }
  #header img { max-height: 70px; }

  .deck { gap: 18px; }
  .turntable { width: 220px; height: 220px; }

  img { max-width: 100%; }
}

/* ============================================================
   REDUCED MOTION — everything still works, nothing spins
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .vinyl, .eq i, .track-title, .ticker, .groove-fill,
  .play-state { animation: none !important; }
  .sleeve, .playlist-door, .tonearm, .stars span,
  #header img, .door-emoji, .cover img { transition: none !important; }
  html { scroll-behavior: auto; }
}
