/* ===== BASE ===== */
body{
    margin:0;
    font-family:Arial, sans-serif;
    background:#2a2a2a;
    color:#fff;
}

/* ===== HEADER ===== */
#Head{
  display:flex;
  justify-content:center;
  align-items:center;
  height:100px;
  background:#000;
  gap:20px;
  position:relative;
  z-index:2;
}

.button-web{
  color:#fff;
  text-decoration:none;
  padding:20px;
  transition:0.3s;
  cursor:pointer;
}

.button-web:hover{
  background:#fff;
  color:#000;
}

/* ===== PLAYER ===== */
.player{
  width:280px;
  padding:30px;
  margin:60px auto;
  text-align:center;
  position:relative;
  border-radius:20px;
  background:#000;
  z-index:2;
  overflow:hidden;
}

/* 🌈 ROTATING BORDER */
.player::before{
  content:"";
  position:absolute;
  inset:-4px;
  border-radius:26px;
  background:conic-gradient(
    #ff0066,
    #00e5ff,
    #7cff00,
    #ffd500,
    #ff0066
  );
  z-index:-2;
  animation: rotateBorder 4s linear infinite;
  opacity:0;
}

.player.playing::before{
  opacity:1;
}

/* inner mask */
.player::after{
  content:"";
  position:absolute;
  inset:4px;
  border-radius:16px;
  background:#000;
  z-index:-1;
}

/* ===== PLAY BUTTON ===== */
#play{
  width:80px;
  height:80px;
  border-radius:50%;
  border:none;
  background:#fff;
  color:#000;
  font-size:32px;
  cursor:pointer;
  transition:transform 0.2s;
}

#play:hover{
  transform:scale(1.1);
}

/* ===== VOLUME ===== */
#volume{
  width:100%;
  margin-top:25px;
}

/* 💥 BEAT SCALE + SHADOW */
.player.playing{
  animation: beat 0.9s infinite;
}

@keyframes beat{
  0%{
    transform:scale(1);
    box-shadow:
      0 0 15px rgba(255,0,102,0.4),
      0 0 40px rgba(0,229,255,0.4);
  }
  50%{
    transform:scale(1.08);
    box-shadow:
      0 0 35px rgba(124,255,0,0.6),
      0 0 80px rgba(255,213,0,0.5),
      0 0 120px rgba(0,229,255,0.4);
  }
  100%{
    transform:scale(1);
    box-shadow:
      0 0 15px rgba(255,0,102,0.4),
      0 0 40px rgba(0,229,255,0.4);
  }
}

/* 🔄 BORDER ROTATION */
@keyframes rotateBorder{
  from{transform:rotate(0deg);}
  to{transform:rotate(360deg);}
}

/* 🌌 AMBIENT BACKGROUND */
body::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    radial-gradient(circle at 20% 30%, #00e5ff33, transparent 40%),
    radial-gradient(circle at 80% 70%, #ff006633, transparent 40%),
    radial-gradient(circle at 50% 90%, #7cff0033, transparent 40%);
  animation: ambient 12s infinite alternate;
  z-index:1;
  pointer-events:none;
}

@keyframes ambient{
  from{filter:blur(40px);}
  to{filter:blur(70px);}
}

/*-----------------------------------------------------*/

.main-container {
    margin-top: 50px;
    display: flex;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
}

.player-card {
    background-color: #000;
    width: 300px;
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.play-button {
  width: 65px;
  height: 65px;
  background-color: white;
  border-radius: 50%;
  margin: 0 auto 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.play-button.pause .icon {
    all: unset !important;
    display: flex !important;
    justify-content: space-between !important;
    width: 20px !important;
    height: 24px !important;
    background: transparent !important;
    border: none !important;
    clip-path: none !important;
}

.play-button .icon {
     all: unset !important;
    display: block !important;
    width: 22px !important;
    height: 24px !important;
    background-color: #000 !important;
    margin-left: 5px !important;
    clip-path: polygon(0% 0%, 0% 100%, 100% 50%) !important;
}

.play-button.pause .icon::before {
    content: "";
    width: 7px;
    height: 100%;
    background-color: #000;
}

.play-button.pause .icon::after {
    content: "";
    width: 7px;
    height: 100%;
    background-color: #000;
}

@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 95%;
    height: 95%;
    transform: translate(-50%, -50%);
    background: conic-gradient(
     #0099ff 0% 25%,
     #00ffcc 25% 50%,
     #ccff00 50% 75%,
     #ff0055 75% 100%
  );
    border-radius: 20px;
    filter: blur(10px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.player-card:has(.play-button.pause) .ring {
    opacity: 1;
    animation: breathe 1.5s ease-in-out infinite;
}

.player-card {
    position: relative;
    overflow: visible;
    background-color: #000 !important;
    width: 320px;   
    padding: 30px;  
    border-radius: 20px;
    margin: 0 auto; 
}

.progress-bar {
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #0099ff 50%, white 50%);
    border-radius: 10px;
    position: relative;
}

.progress-dot {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.navbar ul li a.active {
    background-color: white !important;
    color: black !important;
    padding: 5px 15px;
    border-radius: 5px;
}

