/* --- BASE & SFONDO --- */
body {
  background-color: #A0B0C0;
  background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
  color: #000033;
  font-family: "Courier New", Courier, monospace;
  margin: 0;
  padding: 40px 10px 80px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

h1 {
  font-size: 35px;
  text-transform: uppercase;
  text-shadow: 3px 3px 0px #506070;
  margin-bottom: 40px;
}

/* Contenitore principale flessibile */
.main-interface {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap; /* Per mobile */
  max-width: 1000px;
}

/* --- SEZIONE COMPUTER: CORREZIONE TRASPARENZA & POSIZIONAMENTO LINK --- */
.computer-container {
  position: relative;
  width: 320px;
  /* FORZA LA TRASPARENZA: rimuove eventuali sfondi grigi ereditati */
  background: transparent !important;
}

.computer-img {
  width: 100%;
  display: block;
  /* Rimuove eventuali bordi o sfondi neri dell'immagine stessa */
  background-color: transparent !important;
}

/* QUESTO È LO SCHERMO - Regola qui per spostare i link */
.screen-links {
  position: absolute;
  
  /* --- MODIFICA QUESTI VALORI PER CENTRARE I LINK --- */
  top: 15%;      /* Sposta in alto/basso (0% = cima, 100% = fondo) */
  left: 10%;     /* Sposta a destra/sinistra (0% = sinistra, 100% = destra) */
  width: 75%;    /* Larghezza dell'area testo */
  height: 40%;   /* Altezza dell'area testo */
  /* ------------------------------------------------ */

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  /* Sfondo nero semi-trasparente per simulare lo schermo acceso */
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #004000; /* Bordo scuro per lo schermo */
  padding: 5px;
}

.screen-link {
  font-size: 10px;
  text-decoration: none;
  color: #00FF00; /* Verde fosforo */
  background: transparent;
  padding: 2px;
  border: 1px solid transparent;
  text-align: center;
  text-transform: uppercase;
  display: block;
}

.screen-link:hover {
  background: #00FF00;
  color: #000;
  border-color: #00FF00;
}

/* --- SEZIONE DISCMAN & CD: CORREZIONE TRASPARENZA --- */
.player-box {
  position: relative;
  width: 450px;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent !important;
}

.discman-img {
  width: 180px;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.3s;
  /* FORZA LA TRASPARENZA */
  background-color: transparent !important;
}

.discman-img:hover {
  transform: scale(1.05);
}

.cd-demo {
  position: absolute;
  width: 70px;
  height: 70px;
  z-index: 5;
  opacity: 0; /* Inizialmente invisibili */
  pointer-events: none;
  transition: all 0.8s ease-in-out;
  /* FORZA LA TRASPARENZA */
  background-color: transparent !important;
}

.cd-demo img {
  width: 100%;
  height: 100%;
  /* Se l'immagine non è PNG, questo la taglia a cerchio */
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  background-color: transparent !important;
}

.cd-demo span {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  background: #000033;
  color: #fff;
  padding: 2px 4px;
  white-space: nowrap;
}

/* Effetto hover sul CD singolo */
.cd-demo:hover {
  filter: contrast(150%);
  z-index: 15; /* Lo porta sopra gli altri CD al passaggio del mouse */
}

/* Posizioni quando il player è aperto */
.player-box.open .cd-demo {
  opacity: 1;
  pointer-events: auto;
}

/* Calcolo delle posizioni per l'orbita */
.player-box.open #cd1 { transform: translate(-50%, -200px); left: 50%; top: 50%; } /* Top */
.player-box.open #cd2 { transform: translate(-200px, -60px); left: 50%; top: 50%; } /* Left */
.player-box.open #cd3 { transform: translate(130px, -60px); left: 50%; top: 50%; } /* Right */
.player-box.open #cd4 { transform: translate(-140px, 110px); left: 50%; top: 50%; } /* Bottom-Left */
.player-box.open #cd5 { transform: translate(70px, 110px); left: 50%; top: 50%; }  /* Bottom-Right */

/* --- BARRA DI STATO --- */
.status-bar {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: #000033;
  color: #A0B0C0;
  font-size: 10px;
  padding: 5px 15px;
  display: flex;
  justify-content: space-between;
  z-index: 10000;
}