.dc-uol-player {
  --dc-uol-width: 400px;
  position: fixed;
  right: 10px;
  bottom: 70px;
  z-index: 1040;
  width: min(var(--dc-uol-width), calc(100vw - 20px));
  margin: 0;
  color: #334155;
  font-family: Inter, Arial, sans-serif;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.dc-uol-player.is-collapsed {
  display: none !important;
}

.dc-uol-player[data-state="idle"] {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.dc-uol-player.is-suppressed {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.dc-uol-player__chrome {
  position: absolute;
  top: -31px;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 28px;
  pointer-events: none;
}

.dc-uol-player__chrome > span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
  color: #64748b;
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dc-uol-player__close {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.24);
  pointer-events: auto;
}

.dc-uol-player__close::before,
.dc-uol-player__close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: #334155;
  content: "";
}

.dc-uol-player__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.dc-uol-player__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.dc-uol-player__close:focus-visible,
.dc-uol-player__play:focus-visible {
  outline: 3px solid #39a8db;
  outline-offset: 2px;
}

.dc-uol-player__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #f1f5f9;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.28);
}

.dc-uol-player__content-video,
.dc-uol-player__ad {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dc-uol-player__content-video {
  opacity: 0;
  pointer-events: none;
}

.dc-uol-player__ad {
  z-index: 2;
}

.dc-uol-player__ad iframe,
.dc-uol-player__ad video {
  max-width: 100%;
}

.dc-uol-player__loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  pointer-events: none;
}

.dc-uol-player__loading[hidden] {
  display: none;
}

.dc-uol-player__loading span {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(57, 168, 219, 0.2);
  border-top-color: #39a8db;
  border-radius: 50%;
  animation: dc-uol-player-spin 850ms linear infinite;
}

.dc-uol-player__play {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  transform: translateX(-50%);
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: #227da7;
  color: #fff;
  font: 700 14px/1.2 Inter, Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.dc-uol-player__status {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes dc-uol-player-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .dc-uol-player {
    transition: none;
  }

  .dc-uol-player__loading span {
    animation: none;
  }
}

@media (max-width: 767.98px) {
  .dc-uol-player {
    --dc-uol-width: 220px;
    right: 10px;
    bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  }

  .dc-uol-player__stage {
    border-radius: 10px;
  }
}

@media print {
  .dc-uol-player {
    display: none !important;
  }
}
