* {
  margin: 0;
  padding: 0;
}

h1 {
  color: darkred;
}

h3 {
  grid-column: 2;
  grid-row: 1;
  font-size: 25px;
  align-self: start;
  padding-top: 5px;
}

p {
  grid-column: 2;
  grid-row: 1;
  font-size: 14.05px;
  align-self: end;
  margin-bottom: 15px;
  
}

nav {
  display: flex;
  align-items: center; 
  width: 100%;
  text-align: left;
  background: linear-gradient(118deg,rgba(42, 123, 155, 1) 20%, rgba(237, 221, 83, 1) 20%);
  border: yellow 3px solid ;
  height: 35px;
  font-size: 15px;
}

.logo {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  padding-left: 10px;
  width: 20%;
  gap: 5px;
}

.small {
  font-size: 10px;
  white-space: nowrap;
}

a {
  display: inline-block;
  font-size: 15px;
  margin-left: 20px;
  transition: 0.5s;
  padding: 0 1rem;
  text-decoration: none;
}

a:link {
  color: green;
  text-decoration: none;
}

a:visited {
  color: blue;
}

a:hover {
  color: orange;
  text-decoration: none;
}

a:active {
  color: red;
}

.container {
  display: grid;
  grid-template-columns: 850px;
  grid-template-rows: 150px auto;
  width: 850px;
  gap: 0;
}

#header-photo {
  grid-column: 1;
  grid-row: 1;
  background-color: coral;
  height: 150px;
  width: 100%;
}

#container1 {
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: 1fr;
  gap: 0;
  height: 235px;
  width: 100%;
  background: cyan;
}

#intro {
  display: grid;
  grid-column: 1;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  width: 100%;
  padding: 10px;
  background: royalblue;
  font-family: "Times New Roman", serif;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

#box {
  grid-column: 1;
  grid-row: 1;
  height: 100px;
  border: 2px solid #000080;
  background: #c0c0c0;
}

#photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#bottom-text {
  grid-column: 1 / span 2;
  text-align: justify;
  text-wrap: normal;
  width: 100%;
  font-size: 16px;
}

#music-player {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr 235px;
  background-color: limegreen;
  height: 235px;
  width: 100%;
  
}

#mpwrap > div:first-child {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px;
  width: 100%; 
  box-sizing: border-box;
}

/* specifically for music */
    
.songtitle{
  font-family: 'Times New Roman', sans-serif;
  font-weight: normal;
  font-size: 20px;
  box-sizing: border-box;
  padding: 15px 0;
  display: block;
  width: 100%;
}
 
.controls{
  font-size: 18px; 
  background-color: transparent;
  text-align: center;
  width: 100%;
  margin-top: 10px;
}
 
.controls td{
  padding: 8px 5px 0 5px;
}
 
.seeking{
  background-color: transparent;
  display: flex;
  justify-content: space-evenly;
  padding: 10px;
  margin-top: 10px;
}
 
.current-time{
  padding-right: 5px;
}
 
.total-duration{
  padding-left: 5px;
}
 
.fa-pause, .fa-play, .fa-forward, i.fas.fa-backward{

}

input[type=range] {
  width: 100%;
  background: transparent;
}
    
input[type=range]:focus {
  outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 7px;
  border: 2px gray groove;
  background: transparent;
        
}

input[type=range]::-webkit-slider-thumb {
  height: 20px;
  width: 20px; 
  margin-top:-5px;
}

/*cd play*/
#cd-play {
  grid-column: 2;
  grid-row: 1;
  background-color: mediumpurple;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center; 
}

#cd-cover {
  height: 90%;
  width: auto;
  border: 2px solid #000080;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 50%;
  aspect-ratio: 1 / 1; 
  background: radial-gradient(circle, transparent 20%, #c0c0c0 11%);

  cursor: pointer;
  user-select: none;
}

#cd-cover:hover {
  transform: scale(1.05); /* Zooms in 5% */
  animation: spin 3s linear infinite; 

}

#cd-cover:active {
  transform: scale(0.98); /* Slightly shrinks on click */
}

@keyframes spin {
  from { transform: scale(1.05) rotate(0deg); }
  to { transform: scale(1.05) rotate(360deg); }
}

/* --- CATALOG MODAL & STAGE --- */
.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}

.console-menu {
  background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
  margin: 5% auto;
  padding: 40px;
  border: 4px double yellow;
  width: 850px;
  height: 550px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.catalog-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  perspective: 1200px;
  position: relative;
}

.catalog-item {
  position: absolute; /* Allows smooth sliding */
  width: 250px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  cursor: pointer;
  -webkit-box-reflect: below 2px linear-gradient(transparent 60%, rgba(255,255,255,0.1));
}

.cd-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid white;
}

/* Hide non-active buttons/text */
.catalog-item:not(.active) .disc-info,
.catalog-item:not(.active) .btn-group {
  display: none;
}

.catalog-item.active {
  z-index: 100;
  filter: brightness(1.2);
}

/* Navigation Arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: yellow;
  font-size: 60px;
  cursor: pointer;
  z-index: 500;
  padding: 20px;
  user-select: none;
}
.prev-arrow { left: 20px; }
.next-arrow { right: 20px; }

.close-btn {
  position: absolute; /* Changed from float: right */
  top: 20px;
  right: 20px;
  z-index: 9999; /* Higher than any CD (which are at 100) */
  
  /* Retro Style */
  background: #c0c0c0;
  color: black;
  border: 2px outset #fff;
  padding: 5px 12px;
  font-family: 'Times New Roman', serif;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
}

.close-btn:hover {
  background: yellow;
  border: 2px inset #fff;
}


/*aesthetic*/
.catalog-item.active .cd-placeholder {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 40px rgba(42, 123, 155, 0.6), /* Inner blue glow */
              0 0 80px rgba(0, 0, 0, 0.8);      /* Outer deep shadow */
}

.cd-placeholder::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  pointer-events: none; /* Keeps it clickable */
}

/* --- THE DISC TEXT (On the case) --- */
.disc-info {
  position: absolute;
  top: 15%; /* Positions it near the top of the case like the image */
  width: 100%;
  text-align: center;
  pointer-events: none; /* Prevents text from blocking clicks */
  transition: opacity 0.5s ease;
}

.disc-title {
  color: #fff;
  font-family: 'Arial Black', sans-serif; /* Thick, bold like "ALBUM TITLE" */
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1;
}

.disc-artist {
  color: #fff;
  font-family: 'Times New Roman', serif;
  font-size: 14px;
  margin-top: 5px;
  text-transform: uppercase;
}

/* --- THE "NOW PLAYING" FOOTER --- */
.now-playing-label {
  position: absolute;
  bottom: 10%;
  width: 100%;
  color: #fff;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Hide text for side CDs softly */
.catalog-item.dimmed .disc-info,
.catalog-item.dimmed .now-playing-label,
.catalog-item.dimmed .btn-group {
  opacity: 0;
}

.catalog-item.active .disc-info,
.catalog-item.active .now-playing-label,
.catalog-item.active .btn-group {
  opacity: 1;
}

/* --- THE CENTER RING --- */
.cd-center-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 45px; height: 45px;
  border: 3px solid white;
  border-radius: 50%;
  opacity: 0.8;
  box-shadow: 0 0 10px rgba(255,255,255,0.4);
}

/* --- HIDE TEXT FOR SIDE DISCS --- */
.catalog-item.dimmed .disc-info,
.catalog-item.dimmed .now-playing-label {
  opacity: 0.3; /* Makes them look faded like CD 1 & 3 in your image */
}