.wp-video {
  width: 100% !important;
}

.wp-video-shortcode .mejs-controls {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.wp-video-shortcode:hover .mejs-controls {
  opacity: 1;
}

.mejs-time-total {
  border-radius: 2px;
  cursor: pointer;
  display: block;
  height: 5px;
}

.wp-video-wrapper {
  width: 100%;
  max-width: 900px;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wp-video-shortcode video {
  width: 100% !important;
  height: 100% !important;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  background-color: #171719;
  background-size: cover;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.mejs-controls .mejs-time-rail .mejs-time-current {
  background: var(--color-repAudio-primary) !important;
}

/* Ajuste adicional para MediaElement.js */
.mejs-container,
.mejs-mediaelement {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 16 / 9;
  text-align: center !important;
  border-radius: 10px;
}

.wp-video-shortcode .mejs-container {
  background-color: transparent;
  border-radius: 8px;
}

.wp-video-shortcode .mejs-controls {
  background: rgba(0, 0, 0, 0.5) !important;
  border-radius: 0 0 8px 8px;
}

.wp-video-shortcode .mejs-button button {
  background-color: transparent !important;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.wp-video-shortcode .mejs-button button:hover {
  opacity: 1;
}

.wp-video-shortcode .mejs-time {
  color: var(--color-repAudio-text) !important;
}

.wp-video-shortcode .mejs-time-rail .mejs-time-total {
  background: #e0e0e0;
  height: 4px;
  border-radius: 2px;
  margin-top: 8px;
}

.wp-video-shortcode .mejs-time-rail .mejs-time-current {
  background: var(--color-repAudio-secondary);
  height: 4px;
  border-radius: 2px;
}

.wp-video-shortcode .mejs-time-rail .mejs-time-loaded {
  background: #a0c6d7;
  height: 4px;
  border-radius: 2px;
}

.wp-video-shortcode .mejs-time-rail {
  margin-top: 0;
  padding-top: 0;
  display: flex;
  align-items: center;
  height: 20px;
}

.wp-video-shortcode .mejs-time-rail .mejs-time-handle {
  background: var(--color-repAudio-secondary);
  border: 2px solid var(--color-repAudio-secondary);
  height: 10px;
  width: 10px;
  border-radius: 50%;
  top: -3px;
}

.wp-video-shortcode .mejs-time-rail:hover .mejs-time-handle {
  background: var(--color-repAudio-secondary) !important;
}

.mejs-time-handle-content {
  display: none;
}

.mejs-time-hovered {
  background: transparent !important;
}

.wp-video-shortcode .mejs-time-rail {
  height: 33px;
}

.mejs-controls .mejs-time-rail .mejs-time-loaded {
  background: #c3c3c3 !important;
}

.mejs-time-buffering {
  display: none !important;
}