/* Full page reset */
body, html {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  background: #222; /* or red if you want to keep testing */
}

/* Container uses flexbox to create 3/4 and 1/4 columns */
.container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* Record Player Area (75%) */
.player-area {
  position: relative;
  flex: 3; /* 3 parts out of 4 */
  display: flex;
  justify-content: center;
  align-items: center;
  background: #444; /* fallback background if needed */
  overflow: hidden;
}

/* The backdrop fills this container */
.player-area .backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Spinning record circle */
.record {
  position: relative;
  width: 960px;
  height: 960px;
  top: 0%;       /* vertical position */
  left: -7%;      /* horizontal position */
  transform: translate(-50%, -50%); 
  background: url('https://i.ibb.co/HpXWNCR8/image-removebg-preview-8.png')  center/cover;
  border-radius: 50%;
  z-index: 2;
  animation: spin 4s linear infinite;
  box-shadow: 0 0 30px rgba(255,255,255,0.3);
}

/* Needle on top of record */
.needle {
  position: absolute;
  width: 1100px;
  z-index: 50;
  top: -4%;
  left:54%;
  transform-origin: top left;
  transform: translateX(-50%) rotate(0deg);
  pointer-events: none;
}

/* Shelf area (25%) */
.shelf-area {
  position: relative;
  flex: 1;
  background: #333;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  justify-content: flex-start;
}

.shelf {
  width: 100%;
  height: 10000000%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.albums {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: hidden;              
  z-index: 2;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;             
  align-items: flex-end;           /* Rest albums on the shelf bottom */
  justify-content: center;         
  gap: 0px;                        
  flex-wrap: nowrap;               
  pointer-events: auto;
}

.album {
  width: 100px;
  max-width: 100px;
  padding: 6px;
  margin-right: -35px;             /* Negative margin for overlap! */
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: 1px 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;        
}

.album:last-child {
  margin-right: 0;               
}

.album:hover {
  transform: scale(1.1);
  z-index: 10;                    
}

.album img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  pointer-events: none;
}

.album audio {
  width: 100%;     
  height: 30px;     
  max-width: 100px; 
  outline: none;    
}


/* Spinning keyframe */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}