/* --- RESET & DESIGN SYSTEM --- */
:root {
  --bg-dark: #070f26;
  --bg-radial: radial-gradient(circle at 50% 30%, #15295c 0%, #070f26 80%);
  
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.12);
  
  --accent-cyan: #00d2ff;
  --accent-blue: #0066ff;
  --pink-glow: #ff007f;
  
  --text-main: #ffffff;
  --text-muted: #8e9bb0;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  background-image: var(--bg-radial);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- ÉCRAN MOBILE PRINCIPAL --- */
.app-screen {
  width: 100%;
  max-width: 800px;
  height: 90vh;
  background: radial-gradient(circle at 50% 20%, #172c63 0%, #080f24 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid var(--card-border);
}

/* --- HEADER --- */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.logo-text {
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #ffffff, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.icon-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-weight: 700;
}

.icon-btn span {
  display: block;
  width: 16px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
}

/* --- ZONE THÈME --- */
.theme-section {
  text-align: center;
  margin-top: 1rem;
  z-index: 10;
}

.theme-label {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 0.2rem;
}

.theme-title {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
}

/* --- DISQUES INTERACTIFS (VISUEL) --- */
.discs-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;
  position: relative;
}

.disc-stack {
  width: 100%;
  display: flex;
  justify-content: baseline;
}

.vinyl-disc {
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 40%;
  height: auto;
  aspect-ratio: 1 / 1;
  margin-right: -30%;
}

.disc-main {
  z-index: 100;
}

.disc-center {
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, #ffffff 0%, #ffffffdd 100%);;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.track-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: #000;
}

.disc-1 {
  background-color: rgb(45, 120, 144);
}
.disc-2 {
  background-color: rgb(110, 195, 223);
}
.disc-3 {
  background-color: rgb(230, 137, 202);
}
.disc-4 {
  background-color: rgb(229, 46, 131);
}
.disc-5 {
  background-color: rgb(255, 149, 0);
}
.disc-6 {
  background-color: rgb(48, 188, 1);
}
.disc-7 {
  background-color: rgb(255, 255, 0);
}

.disc-sub-1 {
  transform: scale(0.9);
  z-index: 7;
}

.disc-sub-2 {
  transform: scale(0.8);
  z-index: 6;
}
.disc-sub-3 {
  transform: scale(0.7);
  z-index: 5;
}
.disc-sub-4 {
  transform: scale(0.6);
  z-index: 4;
}
.disc-sub-5 {
  transform: scale(0.5);
  z-index: 3;
}
.disc-sub-6 {
  transform: scale(0.4);
  z-index: 2;
}
.disc-sub-7 {
  transform: scale(0.3);
  z-index: 1;
}

/* --- CONTRÔLES --- */
.controls-section {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 10;
}

/* Bouton Révéler */
.btn-reveal {
  width: 100%;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  color: var(--text-main);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reveal:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-cyan);
}

/* Player Lecteur Audio */
.player-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  padding: 1.5rem;
  margin: 1rem;
}

.player-btn {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.1s ease;
}

.player-btn:active {
  transform: scale(0.92);
}

.btn-play {
  width: 6rem;
  height: 6rem;
  font-size: 3em;
  position: relative;
  z-index: 10;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

.progress-bar {
  position: absolute;
  width: 100%;
}

#progress-fill {
  width: 9rem;
  height: 9rem;
  margin: 0 auto;
  border-radius: 50%;
  background: 
    radial-gradient(closest-side, #0d1838 79%, transparent 80% 100%),
    conic-gradient(var(--accent-cyan) 0%, #ffffff32 0);    
}

/* Stepper Chansons */
.song-stepper {
  display: flex;
  gap: 0.8rem;
}

.step-btn {
  flex: 1;
  padding: 1.2rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 210, 255, 0.3);
  background: rgba(0, 210, 255, 0.12);
  color: var(--accent-cyan);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.step-btn:disabled {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--card-border);
  color: var(--text-muted);
  cursor: default;
}

.step-btn:not(:disabled):hover {
  border-color: var(--accent-cyan);
  color: var(--text-main);
}

@media screen and (min-width:800px) {
  .app-screen {
    max-width: 600px;
  }
  .logo-text {
    font-size: 1.5rem;
  }
  .theme-label {
    font-size: 1rem;
  }
  .theme-title {
    font-size: 2rem;
  }
  .disc-stack {
    width: 70%;
  }
  .btn-reveal {
    font-size: 1rem;
    padding: 0.9rem;
  }
  .player-controls {
    padding: 1rem;
    margin: 0.5rem;
  }
  .btn-play {
    width: 5rem;
    height: 5rem;
    font-size: 2.5em;
  }
  #progress-fill {
    width: 7.5rem;
    height: 7.5rem;
  }
  .step-btn {
    font-size: 1rem;
    padding: 0.9rem 0.5rem;
  }
}