.player-page { padding-bottom: 28px; }

.player-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 420px);
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 12px 24px;
  align-items: start;
}

.player-panel {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,237,213,.75));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 24px 60px rgba(249,115,22,.18);
}

.player-panel-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 55%;
  background: radial-gradient(circle, rgba(251,146,60,.35), transparent 65%);
  pointer-events: none;
}

.vinyl-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  min-height: 280px;
}

.float-note {
  position: absolute;
  font-size: 22px;
  color: rgba(249,115,22,.55);
  animation: noteFloat 3s ease-in-out infinite;
  pointer-events: none;
}
.float-note.n1 { top: 8%; left: 12%; animation-delay: 0s; }
.float-note.n2 { top: 18%; right: 10%; animation-delay: .8s; font-size: 26px; }
.float-note.n3 { bottom: 28%; left: 18%; animation-delay: 1.4s; }

@keyframes noteFloat {
  0%, 100% { transform: translateY(0) rotate(-8deg); opacity: .5; }
  50% { transform: translateY(-12px) rotate(8deg); opacity: 1; }
}

.vinyl-wrap {
  position: relative;
  width: min(280px, 72vw);
  height: min(280px, 72vw);
  margin: 12px auto 8px;
}

.vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #3f3f46 0%, #18181b 45%, #09090b 100%);
  box-shadow: 0 20px 50px rgba(0,0,0,.35), inset 0 0 0 8px rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform .3s ease;
}

.vinyl-disc.is-playing {
  animation: vinylSpin 5s linear infinite;
}

@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vinyl-grooves {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.04),
    inset 0 0 0 18px rgba(255,255,255,.03),
    inset 0 0 0 36px rgba(255,255,255,.02);
  pointer-events: none;
}

.vinyl-cover {
  width: 42%;
  height: 42%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.25);
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}

.vinyl-arm {
  position: absolute;
  top: 6%;
  right: -2%;
  width: 42%;
  height: 8px;
  background: linear-gradient(90deg, #d4d4d8, #fafafa);
  border-radius: 999px;
  transform-origin: 92% 50%;
  transform: rotate(28deg);
  transition: transform .4s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  pointer-events: none;
}
.vinyl-arm::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: #fafafa;
  border: 2px solid #a8a29e;
}
.vinyl-arm.is-playing { transform: rotate(8deg); }

.player-wave-canvas {
  width: min(360px, 90%);
  height: 72px;
  margin-top: 4px;
  opacity: .9;
}

.track-info { text-align: center; margin-bottom: 18px; }
.track-title {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.track-desc {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.track-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.track-tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(251,146,60,.25);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
}

.player-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.time-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  min-width: 40px;
}
.time-label:last-child { text-align: right; }
.progress-track { flex: 1; position: relative; }
.progress-track.is-seeking input[type="range"] {
  cursor: progress;
  opacity: 0.92;
}
.progress-track input[type="range"] {
  margin: 0;
  accent-color: var(--accent);
  height: 6px;
  width: 100%;
  touch-action: pan-y;
}
.progress-track input[type="range"]::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.pc-btn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(251,146,60,.18);
  background: rgba(255,255,255,.92);
  color: var(--accent-dark);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(249,115,22,.1);
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.pc-icon {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}
.pc-icon.is-hidden { display: none; }
.pc-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(249,115,22,.35);
  box-shadow: 0 8px 20px var(--accent-glow);
  color: var(--accent);
}
.pc-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.pc-btn.active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(249,115,22,.4);
}
.pc-play {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(145deg, var(--accent2), var(--accent));
  color: #fff;
  box-shadow: 0 10px 28px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.25);
}
.pc-play .pc-icon {
  width: 26px;
  height: 26px;
}
.pc-play:hover:not(:disabled) {
  color: #fff;
  filter: brightness(1.06);
  border-color: transparent;
}
.pc-icon-vol {
  width: 18px;
  height: 18px;
  color: var(--accent-dark);
  flex-shrink: 0;
}

.player-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.volume-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 140px;
}
.volume-row input[type="range"] {
  margin: 0;
  flex: 1;
  max-width: 120px;
  accent-color: var(--accent);
}
.play-count-tip { font-size: 12px; color: var(--muted); font-weight: 600; }

.comments-panel {
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  padding: 20px;
  max-height: calc(100vh - 120px);
  min-height: 520px;
  background: rgba(255,255,255,.82);
}
.comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(251,146,60,.15);
}
.comments-head h2 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}
.comment-count { color: var(--muted); font-weight: 600; font-size: 14px; }
.comment-sort {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(251,146,60,.2);
  background: rgba(255,255,255,.8);
  font-size: 13px;
  margin: 0;
  width: auto;
}
.comment-alert {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(254,226,226,.8);
  color: #b91c1c;
  font-size: 13px;
  margin-bottom: 12px;
}
.comment-alert.is-hidden { display: none; }
.comment-alert.comment-alert-ok {
  background: rgba(255,237,213,.95);
  color: var(--accent-dark);
}
.comments-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 14px;
}
.comments-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 16px;
  font-size: 14px;
}
.comment-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(251,146,60,.1);
}
.comment-item:last-child { border-bottom: none; }
.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}
.comment-body { flex: 1; min-width: 0; }
.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.comment-meta strong { font-size: 14px; }
.vip-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #fff;
}
.comment-time { font-size: 12px; color: var(--muted); }
.comment-text {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  word-break: break-word;
}
.player-panel.is-locked .player-controls,
.player-panel.is-locked .player-progress,
.player-panel.is-locked .volume-row {
  opacity: 0.45;
  pointer-events: none;
}

.player-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background: rgba(255, 251, 245, 0.82);
  backdrop-filter: blur(6px);
}

.player-lock-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-dark);
}

.player-lock-desc {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
  max-width: 280px;
  line-height: 1.5;
}

.comment-delete {
  border: none;
  background: transparent;
  color: #dc2626;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 4px;
  margin-left: 8px;
}

.comment-delete:hover { text-decoration: underline; }
.comment-delete:disabled { opacity: 0.5; cursor: not-allowed; }

.comment-like {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--muted);
  cursor: default;
  font-weight: 600;
}
.comment-composer {
  border-top: 1px solid rgba(251,146,60,.15);
  padding-top: 14px;
}
.comment-form textarea {
  margin-bottom: 10px;
  resize: vertical;
  min-height: 72px;
  border-radius: 14px;
}
.comment-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.comment-tip { font-size: 12px; color: var(--muted); }
.comment-send { padding: 10px 22px; margin: 0; width: auto; }
.comment-login-tip {
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  padding: 12px;
}
.comment-login-tip a { color: var(--accent); font-weight: 700; }

@media (max-width: 900px) {
  .player-layout {
    grid-template-columns: 1fr;
    padding: 0 10px 12px;
    gap: 12px;
  }
  .comments-panel {
    max-height: none;
    min-height: 400px;
  }
}

@media (max-width: 768px) {
  .player-page .topbar { margin: 8px 10px; }
  .player-layout {
    margin: 0 auto;
    max-width: 100%;
  }
  .player-panel {
    padding: 20px 16px 18px;
    border-radius: 20px;
  }
  .vinyl-stage { min-height: 220px; margin-bottom: 14px; }
  .vinyl-wrap { transform: scale(0.88); transform-origin: center top; }
  .track-title { font-size: 20px; }
  .track-desc { font-size: 13px; }
  .comments-panel {
    border-radius: 20px;
    padding: 16px;
    min-height: 320px;
  }
  .comments-head h2 { font-size: 18px; }
  .comment-form textarea { font-size: 16px; }
  .player-lock-overlay { padding: 16px; }
  .player-lock-title { font-size: 18px; }
}

/* Plyr 播放器（保留黑胶区，原生进度条隐藏） */
body.plyr-enabled .player-native-ui {
  display: none !important;
}

.player-plyr-host {
  width: 100%;
  margin: 4px 0 16px;
}

.player-plyr-host .plyr {
  border-radius: 18px;
  --plyr-color-main: #f97316;
  --plyr-audio-controls-background: rgba(255, 255, 255, 0.92);
  --plyr-audio-control-color: #292524;
  --plyr-font-family: "Microsoft YaHei", Arial, sans-serif;
  --plyr-range-track-height: 6px;
  --plyr-range-thumb-height: 14px;
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.15);
}

.player-plyr-host .plyr--full-ui input[type="range"] {
  color: var(--plyr-color-main);
}

.player-plyr-host .plyr__control--overlaid {
  background: linear-gradient(135deg, #f97316, #fb923c);
}

.player-plyr-host .plyr__controls {
  border-radius: 0 0 18px 18px;
}

.player-plyr-host audio {
  width: 100%;
}

.player-plyr-lazy-hint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: -8px 0 12px;
}
