.cloudvod-player {
  width: 100%;
  max-width: 100%;
}

.cloudvod-frame {
  background: #0d1117;
  height: 0;
  overflow: hidden;
  padding-top: var(--cv-player-padding, 56.25%);
  position: relative;
}

.cloudvod-frame:fullscreen,
.cloudvod-frame:-webkit-full-screen {
  height: 100vh;
  padding-top: 0;
  width: 100vw;
}

.cloudvod-frame video,
.cloudvod-message {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.cloudvod-frame video {
  background: #0d1117;
}

.cloudvod-click-toggle .cloudvod-frame video {
  cursor: pointer;
}

.cloudvod-message {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: 14px;
  justify-content: center;
  pointer-events: none;
}

.cloudvod-watermark {
  background: transparent;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  padding: 0;
  pointer-events: none;
  position: absolute;
  right: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  top: 14px;
  z-index: 2;
}

.cloudvod-anti-record-watermark {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.66);
  left: 0;
  line-height: 1.35;
  max-width: min(92%, 680px);
  overflow-wrap: anywhere;
  padding: 0;
  pointer-events: none;
  position: absolute;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  top: 0;
  transform: translate(14px, 14px);
  transition-property: transform, opacity;
  transition-timing-function: ease;
  user-select: none;
  white-space: normal;
  z-index: 3;
}

.cloudvod-has-container-fullscreen video::-webkit-media-controls-fullscreen-button {
  display: none;
}

.cloudvod-has-container-fullscreen video::-moz-media-controls-fullscreen-button {
  display: none;
}

.cloudvod-fullscreen-toggle {
  align-items: center;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  bottom: 12px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  height: 34px;
  justify-content: center;
  line-height: 1;
  min-width: 52px;
  padding: 0 12px;
  position: absolute;
  right: 12px;
  transition: background .18s ease, opacity .18s ease;
  z-index: 4;
}

.cloudvod-fullscreen-toggle:hover {
  background: rgba(0, 0, 0, 0.78);
}

.cloudvod-anti-record-watermark.is-soft {
  opacity: 0.18 !important;
}

.cloudvod-notice {
  background: #fff8e5;
  border-left: 4px solid #dba617;
  padding: 12px;
}

.cloudvod-auto-next {
  align-items: center;
  background: transparent;
  display: flex;
  height: 100%;
  inset: 0;
  justify-content: center;
  padding: 16px;
  position: absolute;
  width: 100%;
  z-index: 5;
}

.cloudvod-auto-next-content {
  background: rgba(13, 17, 23, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  text-align: center;
  max-width: min(92%, 360px);
  width: fit-content;
}

.cloudvod-auto-next-content p {
  color: #fff;
  font-size: 14px;
  margin: 0 0 16px;
}

.cloudvod-auto-next-content strong {
  color: #58a6ff;
  font-size: 18px;
}

.cloudvod-auto-next-cancel {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  padding: 6px 14px;
  transition: background .2s ease;
}

.cloudvod-auto-next-cancel:hover {
  background: rgba(255, 255, 255, 0.18);
}

.cloudvod-preview-overlay {
  align-items: center;
  background: rgba(8, 15, 26, 0.88);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: absolute;
  z-index: 6;
}

.cloudvod-preview-overlay-card {
  background: rgba(13, 17, 23, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  max-width: 420px;
  padding: 28px 26px;
  text-align: center;
}

.cloudvod-preview-overlay-card strong {
  color: #fff;
  display: block;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.cloudvod-preview-overlay-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin: 0;
}

.cloudvod-preview-overlay-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 0 0 12px;
}

.cloudvod-preview-overlay-price span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 600;
}

.cloudvod-preview-overlay-price strong {
  margin: 0;
  color: #f472b6;
  font-size: 34px;
  line-height: 1;
}

.cloudvod-preview-overlay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

.cloudvod-preview-overlay-actions .cloudvod-action,
.cloudvod-preview-overlay-actions button.cloudvod-action {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  justify-content: center;
  min-height: 42px;
  min-width: 132px;
  padding: 0 18px;
  text-decoration: none;
}

.cloudvod-preview-overlay-actions button.cloudvod-action {
  cursor: pointer;
}

.cloudvod-action-secondary,
.cloudvod-action-secondary:visited {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}

.cloudvod-action-ghost,
.cloudvod-action-ghost:visited {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.82);
}
