/* ============================================================
   huanleai.com - Player Styles (player.css)
   ============================================================ */

.player-fullscreen {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--white); overflow-y: auto;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.player-close {
  position: absolute; top: 16px; left: 16px; z-index: 10;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.05); display: flex; align-items: center;
  justify-content: center; font-size: 20px; color: var(--text);
}
.player-bg { position: absolute; inset: 0; background: linear-gradient(180deg, var(--purple-light) 0%, var(--bg) 60%); }
.player-main {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  align-items: center; padding: 60px 24px 32px;
}
.player-disc {
  width: 240px; height: 240px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-bottom: 24px;
  animation: discSpin 8s linear infinite; animation-play-state: paused;
}
.player-disc.playing { animation-play-state: running; }
@keyframes discSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.player-disc img { width: 100%; height: 100%; object-fit: cover; }
.player-disc .placeholder { font-size: 80px; }
.player-info-text { text-align: center; margin-bottom: 20px; }
.player-info-text h3 { font-size: 20px; font-weight: 700; }
.player-info-text p { font-size: 14px; color: var(--text-secondary); }

/* Progress bar */
.player-progress { width: 100%; max-width: 400px; margin-bottom: 8px; }
.player-times { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 12px; width: 100%; max-width: 400px; }
.progress-track {
  width: 100%; height: 4px; background: var(--border); border-radius: 2px;
  cursor: pointer; position: relative;
}
.progress-fill {
  height: 100%; background: var(--orange); border-radius: 2px;
  position: relative; transition: width 0.1s linear;
}
.progress-thumb {
  position: absolute; right: -6px; top: -4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Controls */
.player-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; margin-bottom: 16px;
}
.player-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--text-secondary); transition: all 0.2s;
}
.player-btn:hover { background: var(--bg); }
.player-btn.play-btn {
  width: 64px; height: 64px;
  background: var(--orange); color: var(--white);
  font-size: 28px; box-shadow: var(--shadow-btn);
}
.player-btn.play-btn:hover { background: var(--orange-dark); transform: scale(1.05); }
.player-extra { display: flex; gap: 12px; }

/* Cutoff overlay */
.cutoff-overlay {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(0,0,0,0.5); display: flex; align-items: center;
  justify-content: center; animation: fadeIn 0.3s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cutoff-dialog {
  background: var(--white); border-radius: var(--card-radius);
  padding: 32px 24px; text-align: center; max-width: 340px;
  width: 90%; animation: scaleIn 0.3s;
}
@keyframes scaleIn { from { transform: scale(0.9); } to { transform: scale(1); } }
.cutoff-dialog .icon { font-size: 48px; margin-bottom: 12px; }
.cutoff-dialog h3 { font-size: 18px; margin-bottom: 8px; }
.cutoff-dialog p { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
