/* 第三轮 · 真实自有播放器（ds-5850-r3-video）。 */

.r12vp {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--r12-r-card, 10px);
  background: #000;
}

.r12vp-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 100%;
  object-fit: contain;
  background: #000;
}

.r12vp-error {
  margin: 0;
  padding: 8px 10px;
  background: color-mix(in srgb, var(--r12-danger, #c25454) 16%, var(--r12-surface, #191a1d));
  color: var(--r12-ink, #eee);
  font-size: var(--r12-fs-small, 12px);
  line-height: var(--r12-lh-small, 18px);
  overflow-wrap: anywhere;
}

.r12vp.has-error .r12vp-video {
  aspect-ratio: 16 / 9;
}

.r12vp-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 2px 6px;
  background: color-mix(in srgb, #000 78%, transparent);
  color: #f4f4f5;
}

.r12vp-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
}

.r12vp-btn:hover {
  background: rgba(255, 255, 255, .14);
}

.r12vp-btn svg {
  width: 15px;
  height: 15px;
}

.r12vp-seek {
  flex: 1 1 80px;
  min-width: 48px;
  height: 16px;
  margin: 0;
  accent-color: var(--r12-brand, #d16aa6);
  cursor: pointer;
}

.r12vp-time {
  flex: none;
  font-size: 11px;
  line-height: 16px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: rgba(244, 244, 245, .88);
}

.r12vp-volume {
  flex: 0 0 54px;
  width: 54px;
  height: 16px;
  margin: 0;
  accent-color: var(--r12-brand, #d16aa6);
  cursor: pointer;
}

.r12vp-note {
  margin: 0;
  padding: 4px 8px;
  background: color-mix(in srgb, #000 82%, transparent);
  color: rgba(244, 244, 245, .9);
  font-size: 11px;
  line-height: 16px;
  overflow-wrap: anywhere;
}

.r12vp-menu-label {
  padding: 6px 10px 2px;
  font-size: 11px;
  line-height: 16px;
  color: var(--r12-muted);
}

/* 减少动态：播放器自身不依赖过渡，补一条兜底。 */
[data-motion="reduced"] .r12vp,
[data-motion="reduced"] .r12vp * {
  transition: none !important;
  animation: none !important;
}

@media (max-width: 620px) {
  .r12vp-volume {
    display: none;
  }
}
