/* lowpolyrat — music.css
   Music.exe layout + vinyl pile + cd grid + ipod list
*/

:root{
  --pad: 25px;
  --gap: 18px;
  --ipodW: 300px;
  --taskbarGap: 60px; /* space above taskbar */
  --titlebarH: 34px;
}

/* MAIN MUSIC WINDOW (left, wide) */
#win-main{
  position: fixed;
  top: var(--pad);
  left: var(--pad);
  bottom: var(--taskbarGap);

  right: auto !important;

  width: calc(100vw - (var(--pad) * 2) - var(--ipodW) - var(--gap));
  max-width: 1100px;

  overflow: hidden;
  box-sizing: border-box;
}

/* IPOD WINDOW (right, slim) */
#win-ipod{
  position: fixed;
  top: var(--pad);
  right: var(--pad);
  bottom: var(--taskbarGap);

  left: auto !important;

  width: var(--ipodW);

  overflow: hidden;
  box-sizing: border-box;
}

/* SCROLL ONLY INSIDE THE WINDOW CONTENT */
#win-main .inner,
#win-ipod .inner{
  height: calc(100% - var(--titlebarH));
  overflow-y: auto;
  box-sizing: border-box;
  padding-bottom: 90px; /* stops content being hidden “under” taskbar */
}

/* ===== VINYL PILE GRID (OVERLAP) ===== */
.vinyl-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 28px;
  padding-top: 22px;  /* safe space under heading */
  padding-left: 8px;
}

.vinyl{
  position: relative;
  width: 130px;
  height: 130px;
  margin-left: -46px;
  margin-top: -26px;
  cursor: pointer;
  isolation: isolate;
}

.vinyl-grid .vinyl:nth-child(1){
  margin-left: 0;
}

.vinyl .cover{
  width: 130px;
  height: 130px;
  border-radius: 8px;
  overflow: hidden;

  border: 1px solid rgba(255,40,40,0.35);
  box-shadow:
    0 8px 22px rgba(0,0,0,0.65),
    0 0 10px rgba(255,40,40,0.14);

  transform: rotate(-1deg);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.vinyl .cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* title overlay (from data-title), hidden until hover */
.vinyl::after{
  content: attr(data-title);
  position: absolute;
  left: 0;
  bottom: -34px;

  max-width: 220px;
  padding: 6px 8px;
  border-radius: 10px;

  font-size: 12px;
  color: rgba(255,235,235,0.95);
  background: rgba(10,10,14,0.92);
  border: 1px solid rgba(255,40,40,0.35);
  box-shadow:
    0 10px 26px rgba(0,0,0,0.75),
    0 0 18px rgba(255,40,40,0.25);

  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  z-index: 1000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vinyl:hover{ z-index: 999; }

.vinyl:hover .cover{
  transform: translate(-8px, -10px) rotate(0deg) scale(1.25);
  box-shadow:
    0 18px 46px rgba(0,0,0,0.85),
    0 0 26px rgba(255,40,40,0.35);
}

.vinyl:hover::after{
  opacity: 1;
  transform: translateY(0);
}

/* ===== CD COLLECTION ===== */
.cd-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.cd{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cd img{
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(255,40,40,0.35);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.6),
    0 0 12px rgba(255,40,40,0.25);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cd img:hover{
  transform: scale(1.03);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.75),
    0 0 20px rgba(255,40,40,0.45);
}

.cd-title{
  margin-top: 8px;
  font-size: 12px;
  font-weight: bold;
  opacity: 0.9;
}

.cd-artist{
  font-size: 11px;
  opacity: 0.65;
}

/* ===== IPOD LIST ===== */
.ipod-list{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
  max-width: 420px;
}

.ipod-track{
  padding: 8px 10px;
  border-radius: 8px;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0)),
    rgba(12,12,16,0.85);

  border: 1px solid rgba(255,40,40,0.25);
  box-shadow:
    inset 0 0 6px rgba(0,0,0,0.6),
    0 0 10px rgba(255,40,40,0.15);

  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.ipod-track:hover{
  background:
    linear-gradient(180deg, rgba(255,80,80,0.18), rgba(0,0,0,0)),
    rgba(20,10,10,0.95);

  box-shadow: 0 0 18px rgba(255,40,40,0.45);
}

.track-title{
  display: block;
  font-weight: bold;
  font-size: 12px;
}

.track-artist{
  display: block;
  font-size: 11px;
  opacity: 0.7;
}
