/*!
 * video-player-2up.css v1.0.0
 * VTurb-like custom skin for 2UP Business
 */
:root {
  --v2up-accent: #C9F31D;
  --v2up-bg: #000;
  --v2up-text: #fff;
  --v2up-muted: rgba(255, 255, 255, 0.7);
  --v2up-overlay-dark: rgba(0, 0, 0, 0.55);
  --v2up-radius: 12px;
  --v2up-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --v2up-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --v2up-transition: cubic-bezier(0.22, 1, 0.36, 1);
}

.v2up-container {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--v2up-bg);
  color: var(--v2up-text);
  font-family: var(--v2up-font);
  border-radius: var(--v2up-radius);
  overflow: hidden;
  box-shadow: var(--v2up-shadow);
  outline: none;
}

.v2up-container video,
.v2up-container .plyr,
.v2up-container .plyr__video-wrapper {
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit;
  background: var(--v2up-bg);
}

/* ============ OVERLAY INICIAL ============ */
.v2up-overlay {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.4s var(--v2up-transition);
  z-index: 5;
}

.v2up-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 70%,
    rgba(0, 0, 0, 0.65) 100%);
}

.v2up-overlay.v2up-hidden {
  opacity: 0;
  pointer-events: none;
}

.v2up-play-big {
  position: relative;
  z-index: 2;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: none;
  background: var(--v2up-accent);
  color: #000;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 0 rgba(201, 243, 29, 0.55);
  transition: transform 0.25s var(--v2up-transition),
              box-shadow 0.25s var(--v2up-transition);
  animation: v2up-pulse 2.2s infinite;
}

.v2up-play-big:hover,
.v2up-play-big:focus-visible {
  transform: scale(1.08);
  outline: none;
  box-shadow: 0 0 0 12px rgba(201, 243, 29, 0.18);
}

.v2up-play-big svg {
  width: 48%;
  height: 48%;
  margin-left: 6%;
}

@keyframes v2up-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(201, 243, 29, 0.55); }
  70%  { box-shadow: 0 0 0 22px rgba(201, 243, 29, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 243, 29, 0); }
}

.v2up-duration-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 2;
  padding: 4px 10px;
  background: var(--v2up-overlay-dark);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--v2up-text);
  letter-spacing: 0.02em;
}

.v2up-title-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 12px;
  max-width: calc(100% - 28px);
  background: var(--v2up-overlay-dark);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--v2up-text);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/* ============ PLYR SKIN OVERRIDES ============ */
.v2up-container .plyr--video {
  background: var(--v2up-bg);
  --plyr-color-main: var(--v2up-accent);
  --plyr-video-control-color: var(--v2up-text);
  --plyr-video-control-color-hover: #000;
  --plyr-video-control-background-hover: var(--v2up-accent);
  --plyr-menu-background: rgba(20, 20, 20, 0.95);
  --plyr-menu-color: var(--v2up-text);
  --plyr-menu-radius: 8px;
  --plyr-range-thumb-background: var(--v2up-accent);
  --plyr-range-fill-background: var(--v2up-accent);
  --plyr-tooltip-background: rgba(0, 0, 0, 0.85);
  --plyr-tooltip-color: var(--v2up-text);
  --plyr-font-family: var(--v2up-font);
}

.v2up-container .plyr__control--overlaid {
  background: var(--v2up-accent);
  color: #000;
}

.v2up-container .plyr__progress__buffer {
  color: rgba(255, 255, 255, 0.25);
}

/* ============ CTA OVERLAY ============ */
.v2up-cta-overlay {
  position: absolute;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  z-index: 20;
  transition: opacity 0.35s var(--v2up-transition),
              transform 0.35s var(--v2up-transition);
  pointer-events: none;
}

.v2up-cta-overlay.v2up-cta-in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.v2up-cta-overlay[hidden] { display: none; }

.v2up-cta-btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--v2up-accent);
  color: #000;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-radius: 100px;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 30px rgba(201, 243, 29, 0.35),
              0 0 0 3px rgba(255, 255, 255, 0.08);
  transition: transform 0.2s var(--v2up-transition),
              box-shadow 0.2s var(--v2up-transition);
  white-space: nowrap;
}

.v2up-cta-btn:hover,
.v2up-cta-btn:focus-visible {
  transform: translateY(-2px) scale(1.03);
  outline: none;
  box-shadow: 0 14px 40px rgba(201, 243, 29, 0.55),
              0 0 0 4px rgba(201, 243, 29, 0.25);
}

/* ============ STICKY PLAYER ============ */
.v2up-sticky-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent);
  z-index: 30;
}

.v2up-sticky-bar button {
  background: transparent;
  border: none;
  color: var(--v2up-text);
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 4px;
  transition: background 0.15s;
}

.v2up-sticky-bar button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.v2up-sticky-drag { cursor: move; cursor: grab; }
.v2up-sticky-drag:active { cursor: grabbing; }

.v2up-is-sticky {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  left: auto !important;
  top: auto !important;
  width: 240px !important;
  height: 135px !important;
  max-width: 240px !important;
  z-index: 9999 !important;
  animation: v2up-sticky-in 0.35s var(--v2up-transition);
}

.v2up-is-sticky .v2up-sticky-bar { display: flex; }

.v2up-is-sticky .v2up-overlay,
.v2up-is-sticky .v2up-title-chip,
.v2up-is-sticky .v2up-duration-badge {
  display: none !important;
}

@keyframes v2up-sticky-in {
  from { transform: translate(40px, 40px) scale(0.85); opacity: 0; }
  to   { transform: translate(0, 0) scale(1); opacity: 1; }
}

/* ============ RESUME MODAL ============ */
.v2up-resume-modal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 40;
  animation: v2up-fade-in 0.3s var(--v2up-transition);
}

.v2up-resume-modal[hidden] { display: none; }

.v2up-resume-inner {
  max-width: 360px;
  padding: 24px 28px;
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--v2up-radius);
  text-align: center;
  color: var(--v2up-text);
}

.v2up-resume-msg {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--v2up-muted);
}

.v2up-resume-time {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
  color: var(--v2up-accent);
}

.v2up-resume-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.v2up-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 100px;
  font-family: var(--v2up-font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.v2up-btn-primary {
  background: var(--v2up-accent);
  color: #000;
}

.v2up-btn-primary:hover,
.v2up-btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201, 243, 29, 0.4);
  outline: none;
}

.v2up-btn-ghost {
  background: transparent;
  color: var(--v2up-text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.v2up-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

@keyframes v2up-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  .v2up-play-big {
    width: 76px;
    height: 76px;
  }
  .v2up-cta-overlay { bottom: 70px; }
  .v2up-cta-btn {
    padding: 12px 22px;
    font-size: 14px;
  }
  .v2up-is-sticky {
    width: 180px !important;
    height: 101px !important;
    right: 12px !important;
    bottom: 12px !important;
  }
  .v2up-resume-inner { padding: 20px; }
  .v2up-resume-time { font-size: 18px; }
}

/* ============ ACESSIBILIDADE ============ */
@media (prefers-reduced-motion: reduce) {
  .v2up-play-big,
  .v2up-cta-overlay,
  .v2up-is-sticky,
  .v2up-resume-modal { animation: none !important; transition: none !important; }
}

.v2up-container:focus-visible {
  box-shadow: 0 0 0 3px var(--v2up-accent), var(--v2up-shadow);
}