/* ===== Faux lecteur façon Winamp (en bas de page) ===== */
.amp {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 20px));
  z-index: 100;
  font-family: "Courier New", Courier, monospace;
  background: linear-gradient(180deg, #4b5266 0%, #2a2f3d 55%, #1c202b 100%);
  border: 2px solid;
  border-color: #8b93a9 #11141c #11141c #8b93a9; /* effet biseau */
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.7), 0 0 24px rgba(25, 230, 255, 0.18);
  user-select: none;
}

/* barre de titre rayée */
.amp-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 16px;
  padding: 0 6px;
  background: linear-gradient(180deg, #2f4d7a, #17284a);
  border-bottom: 1px solid #0a1224;
}
.amp-grip {
  flex: 1;
  height: 8px;
  background: repeating-linear-gradient(
    to bottom,
    #9db4dd 0, #9db4dd 1px, transparent 1px, transparent 3px
  );
  opacity: 0.7;
}
.amp-name {
  font-size: 10px;
  letter-spacing: 3px;
  color: #cfe0ff;
  font-weight: bold;
}

.amp-body {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  gap: 10px;
  padding: 10px;
  align-items: stretch;
}

/* écran LCD à gauche : temps + visualiseur */
.amp-lcd {
  background: #000;
  border: 2px solid;
  border-color: #0a0c12 #6c7388 #6c7388 #0a0c12;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.amp-time {
  font-size: 28px;
  line-height: 1;
  color: #29ff6a;
  text-shadow: 0 0 6px rgba(41, 255, 106, 0.8);
  letter-spacing: 2px;
  text-align: center;
}
.amp-vis {
  width: 100%;
  height: 32px;
  display: block;
  image-rendering: pixelated;
}

/* centre : titre défilant + barre de progression */
.amp-center {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: space-between;
}
.amp-ticker {
  background: #000;
  border: 2px solid;
  border-color: #0a0c12 #6c7388 #6c7388 #0a0c12;
  padding: 3px 6px;
  overflow: hidden;
  white-space: nowrap;
  color: #29ff6a;
  font-size: 14px;
  text-shadow: 0 0 5px rgba(41, 255, 106, 0.7);
}
.amp-ticker span {
  display: inline-block;
  padding-left: 0;
}
.amp-ticker span.scroll {
  padding-left: 100%;
  animation: ticker 11s linear infinite;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
.amp-info {
  font-size: 10px;
  color: #29c25a;
  letter-spacing: 1px;
}

/* curseurs (progression + volume) */
.amp input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 10px;
  background: #000;
  border: 1px solid #0a0c12;
  border-bottom-color: #6c7388;
  outline: none;
  cursor: pointer;
  margin: 0;
}
.amp input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: linear-gradient(180deg, #e7e9f0, #8b93a9);
  border: 1px solid #11141c;
}
.amp input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: linear-gradient(180deg, #e7e9f0, #8b93a9);
  border: 1px solid #11141c;
  border-radius: 0;
}
.amp-seek { width: 100%; }

/* boutons + volume à droite */
.amp-controls {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}
.amp-buttons { display: flex; gap: 3px; }
.amp-buttons button {
  width: 34px;
  height: 28px;
  font-size: 14px;
  line-height: 1;
  color: #e7e9f0;
  background: linear-gradient(180deg, #6a7288, #343a4b);
  border: 2px solid;
  border-color: #aab1c6 #141824 #141824 #aab1c6;
  cursor: pointer;
  padding: 0;
}
.amp-buttons button:hover { color: #29ff6a; }
.amp-buttons button:active {
  border-color: #141824 #aab1c6 #aab1c6 #141824;
  transform: translateY(1px);
}
.amp-buttons button.on { color: #29ff6a; }

.amp-vol {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #aab1c6;
  letter-spacing: 1px;
}
.amp-vol input { width: 100%; }

/* ----- mobile ----- */
@media (max-width: 620px) {
  .amp-body { grid-template-columns: 96px 1fr; }
  .amp-controls { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .amp-vol { flex: 1; }
  .amp-time { font-size: 22px; }
}
