.player-wrap {
  position: absolute;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-embed {
  display: none;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.player-wrap.is-embed video,
.player-wrap.is-embed .player-center-play,
.player-wrap.is-embed .player-controls,
.player-wrap.is-embed .player-loading,
.player-wrap.is-embed .player-error {
  display: none !important;
}

.player-wrap.is-embed .player-embed {
  display: block;
}

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  opacity: 1;
  transition: opacity 0.35s ease;
  z-index: 15;
}

.player-wrap.controls-hidden .player-controls {
  opacity: 0;
  pointer-events: none;
}

.pc-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.pc-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.pc-time {
  font-size: 12px;
  color: #ccc;
  min-width: 38px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.pc-seek {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.pc-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.pc-seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 50%;
  background: #fff;
}

.pc-volume {
  width: 72px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  flex-shrink: 0;
}

.pc-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}

.pc-volume::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: #fff;
}

.player-center-play {
  position: absolute;
  width: 72px;
  height: 72px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  z-index: 12;
  backdrop-filter: blur(6px);
  transition: transform 0.2s, background 0.2s;
}

.player-center-play:hover {
  transform: scale(1.06);
  background: rgba(0, 0, 0, 0.6);
}

.player-wrap.paused .player-center-play {
  display: flex;
}

.player-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #aaa;
  font-size: 14px;
  z-index: 11;
}

.player-wrap.is-loading .player-loading {
  display: flex;
}

.player-error {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  color: #888;
  font-size: 14px;
  z-index: 11;
}

.player-wrap.has-error .player-error {
  display: flex;
}

.player-error button {
  margin-top: 8px;
  padding: 8px 18px;
  border: 1px solid #444;
  border-radius: 8px;
  background: #1a1a1a;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 900px) {
  .pc-volume {
    width: 56px;
  }
}
