/* Hook Player Styles */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

.player-container {
  position: relative;
  width: 200px;
  height: 200px;
  filter: drop-shadow(0 0 20px rgba(0,0,0,0.3));
  margin: 40px auto 0 auto;
}

.player-container::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(229, 175, 88, 0.8), rgba(56, 56, 111, 0.8));
  border-radius: 2px;
}

.vinyl {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(56, 56, 111, 0.9), rgba(229, 175, 88, 0.9));
  box-shadow: 0 0 50px rgba(0,0,0,0.3);
  transition: transform 0.5s ease;
  backdrop-filter: blur(5px);
}

.vinyl::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(56, 56, 111, 0.8);
  border-radius: 50%;
  border: 5px solid rgba(229, 175, 88, 0.8);
}

.vinyl::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    transparent 0,
    transparent 10px,
    rgba(229, 175, 88, 0.2) 10px,
    rgba(229, 175, 88, 0.2) 20px
  );
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(229, 175, 88, 0.9);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(229, 175, 88, 0.5);
  backdrop-filter: blur(5px);
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 30px rgba(229, 175, 88, 0.7);
  background: rgba(229, 175, 88, 1);
}

.play-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent #38386f;
}

.play-button.playing::before {
  content: '';
  width: 20px;
  height: 30px;
  background: #38386f;
  border: none;
  left: 50%;
  transform: translate(-50%, -50%);
}

.player-container.playing .vinyl {
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg);}
  to { transform: rotate(360deg);}
}

.text-box {
  width: 400px;
  height: 150px;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow: hidden;
  position: relative;
  margin: 30px auto 0 auto;
  background: rgba(36,40,54,0.45);
  border-radius: 18px;
  box-shadow: 0 4px 18px 0 rgba(246,193,119,0.10), 0 1.5px 8px 0 rgba(30,34,44,0.13);
  backdrop-filter: blur(8px) saturate(120%);
}

.text-content {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  padding: 30px;
  animation: scrollText 116s linear infinite;
  animation-play-state: paused;
}

.text-content.playing {
  animation-play-state: running;
}

@keyframes scrollText {
  0% { transform: translateY(0);}
  100% { transform: translateY(calc(-100% + 100px));}
}

audio { 
  display: none; 
}

/* موج */
[id^="wave-canvas"] {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.75;
  transition: opacity 0.4s;
}

[id^="wave-canvas"].active {
  opacity: 0.95;
  transition: opacity 0.4s;
}

/* Responsive Design */
@media (max-width: 768px) {
  .player-container {
    width: 150px;
    height: 150px;
  }
  
  .play-button {
    width: 60px;
    height: 60px;
  }
  
  .play-button::before {
    border-width: 12px 0 12px 20px;
  }
  
  .play-button.playing::before {
    width: 16px;
    height: 24px;
  }
  
  .text-box {
    width: 90%;
    height: 120px;
    font-size: 14px;
  }
  
  .text-content {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .player-container {
    width: 120px;
    height: 120px;
  }
  
  .play-button {
    width: 50px;
    height: 50px;
  }
  
  .play-button::before {
    border-width: 10px 0 10px 16px;
  }
  
  .play-button.playing::before {
    width: 14px;
    height: 20px;
  }
  
  .text-box {
    height: 100px;
    font-size: 12px;
  }
  
  .text-content {
    padding: 15px;
  }
} 