.pvs-watch-player-shell {
  position: relative;
  overflow: visible !important;
  isolation: isolate;
}

.pvs-continue-watch-v2[hidden] {
  display: none !important;
}

.pvs-continue-watch-v2 {
  position: absolute;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, .42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  pointer-events: none;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  transform: translateZ(0);
}

.pvs-cw-v2-card {
  width: min(430px, 92%);
  max-width: 92%;
  max-height: 92%;
  overflow: visible;
  pointer-events: none;
  touch-action: pan-y;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  padding: 22px 20px 20px;
  background: rgba(17, 24, 39, .97);
  color: #fff;
  text-align: center;
  box-shadow: 0 22px 65px rgba(0, 0, 0, .52);
  touch-action: pan-y;
}

.pvs-cw-v2-card button,
.pvs-cw-v2-actions,
.pvs-cw-v2-actions * {
  pointer-events: auto;
  touch-action: manipulation;
}

.pvs-cw-v2-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #16a34a;
  color: #fff;
  box-shadow: 0 0 0 8px rgba(22, 163, 74, .18);
}

.pvs-cw-v2-icon svg {
  width: 28px;
  height: 28px;
  display: block;
  fill: currentColor;
}

.pvs-cw-v2-card h3 {
  margin: 6px 0 8px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
}

.pvs-cw-v2-movie {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
  color: #f9fafb;
}

.pvs-cw-v2-desc {
  margin: 0 0 18px;
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.45;
}

.pvs-cw-v2-desc b {
  color: #22c55e;
  font-weight: 800;
}

.pvs-cw-v2-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pvs-cw-v2-actions button {
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, opacity .16s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
  text-align: center;
}

.pvs-cw-v2-actions button:active {
  transform: scale(.98);
}

.pvs-cw-btn-icon {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.pvs-cw-btn-icon svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: currentColor;
}

.pvs-cw-btn-text {
  display: inline-block;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.pvs-cw-v2-continue {
  background: #16a34a;
  box-shadow: 0 10px 24px rgba(22, 163, 74, .28);
}

.pvs-cw-v2-current {
  background: #374151;
}

.pvs-cw-v2-close {
  background: rgba(255, 255, 255, .12);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, .14) !important;
}

@media (max-width: 1024px) {
  .pvs-continue-watch-v2 {
    position: absolute;
    inset: 0;
    z-index: 2147483000;
    padding: 8px;
    background: rgba(0, 0, 0, .48);
  }

  .pvs-cw-v2-card {
    width: min(420px, calc(100% - 16px));
    max-width: calc(100% - 16px);
    max-height: calc(100% - 12px);
    padding: 12px 11px;
    border-radius: 14px;
  }

  .pvs-cw-v2-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .pvs-cw-v2-actions button {
    width: 100%;
    min-height: 34px;
    padding: 7px 9px;
    font-size: 12px;
    border-radius: 8px;
  }
}

@media (max-width: 767px) {
  .pvs-continue-watch-v2 {
    padding: 5px;
  }

  .pvs-cw-v2-card {
    width: min(315px, calc(100% - 10px));
    max-width: calc(100% - 10px);
    max-height: calc(100% - 8px);
    padding: 9px 9px;
    border-radius: 12px;
  }

  .pvs-cw-v2-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 3px;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, .14);
  }

  .pvs-cw-v2-icon svg {
    width: 16px;
    height: 16px;
  }

  .pvs-cw-v2-card h3 {
    margin: 2px 0 3px;
    font-size: 15px;
    line-height: 1.15;
  }

  .pvs-cw-v2-movie {
    margin-bottom: 3px;
    font-size: 11.5px;
    line-height: 1.2;
  }

  .pvs-cw-v2-desc {
    margin-bottom: 6px;
    font-size: 10.8px;
    line-height: 1.22;
  }

  .pvs-cw-v2-actions {
    gap: 5px;
  }

  .pvs-cw-v2-actions button {
    min-height: 29px;
    padding: 5px 7px;
    font-size: 11px;
    line-height: 1.16;
  }

  .pvs-cw-btn-icon,
  .pvs-cw-btn-icon svg {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 767px) and (orientation: landscape) {
  .pvs-cw-v2-card {
    width: min(360px, calc(100% - 10px));
    max-height: calc(100% - 6px);
    padding: 6px 8px;
  }

  .pvs-cw-v2-icon {
    display: none;
  }

  .pvs-cw-v2-card h3 {
    margin: 0 0 2px;
    font-size: 14px;
  }

  .pvs-cw-v2-movie {
    font-size: 10.8px;
    margin-bottom: 2px;
  }

  .pvs-cw-v2-desc {
    font-size: 10.4px;
    margin-bottom: 4px;
  }

  .pvs-cw-v2-actions {
    gap: 4px;
  }

  .pvs-cw-v2-actions button {
    min-height: 25px;
    padding: 4px 7px;
    font-size: 10.5px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .pvs-cw-v2-card {
    width: min(430px, calc(100% - 24px));
    max-height: calc(100% - 24px);
    padding: 16px 16px;
  }

  .pvs-cw-v2-actions button {
    min-height: 40px;
    font-size: 13.5px;
  }
}


/* V3.0.0: Mobile/tablet touch + compact popup fix */
.pvs-continue-watch-v2 {
  pointer-events: none !important;
  touch-action: pan-y !important;
  -ms-touch-action: pan-y !important;
}

.pvs-cw-v2-card {
  pointer-events: none !important;
  touch-action: pan-y !important;
  -ms-touch-action: pan-y !important;
}

.pvs-cw-v2-actions,
.pvs-cw-v2-actions button,
.pvs-cw-v2-actions * {
  pointer-events: auto !important;
  touch-action: manipulation !important;
  -ms-touch-action: manipulation !important;
}

@media (max-width: 1024px) {
  .pvs-continue-watch-v2 {
    overflow: visible !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .pvs-cw-v2-card {
    box-sizing: border-box;
    overflow: visible !important;
    transform: translateZ(0);
  }
}

@media (max-width: 767px) {
  .pvs-continue-watch-v2 {
    padding: 4px !important;
  }

  .pvs-cw-v2-card {
    width: min(300px, calc(100% - 8px)) !important;
    max-width: calc(100% - 8px) !important;
    max-height: calc(100% - 4px) !important;
    padding: 7px 8px !important;
    border-radius: 11px !important;
  }

  .pvs-cw-v2-icon {
    width: 26px !important;
    height: 26px !important;
    margin-bottom: 2px !important;
  }

  .pvs-cw-v2-icon svg {
    width: 14px !important;
    height: 14px !important;
  }

  .pvs-cw-v2-card h3 {
    font-size: 14px !important;
    margin: 0 0 2px !important;
  }

  .pvs-cw-v2-movie {
    font-size: 10.5px !important;
    line-height: 1.12 !important;
    margin-bottom: 2px !important;
  }

  .pvs-cw-v2-desc {
    font-size: 10.2px !important;
    line-height: 1.14 !important;
    margin-bottom: 4px !important;
  }

  .pvs-cw-v2-actions {
    gap: 4px !important;
  }

  .pvs-cw-v2-actions button {
    min-height: 25px !important;
    padding: 4px 6px !important;
    font-size: 10.2px !important;
    line-height: 1.12 !important;
    border-radius: 7px !important;
  }

  .pvs-cw-btn-icon,
  .pvs-cw-btn-icon svg {
    width: 11px !important;
    height: 11px !important;
  }
}

@media (max-width: 932px) and (orientation: landscape) {
  .pvs-continue-watch-v2 {
    padding: 2px !important;
  }

  .pvs-cw-v2-card {
    width: min(340px, calc(100% - 6px)) !important;
    max-width: calc(100% - 6px) !important;
    max-height: calc(100% - 3px) !important;
    padding: 4px 7px !important;
    border-radius: 9px !important;
  }

  .pvs-cw-v2-icon {
    display: none !important;
  }

  .pvs-cw-v2-card h3 {
    font-size: 12.5px !important;
    margin: 0 0 1px !important;
    line-height: 1.05 !important;
  }

  .pvs-cw-v2-movie {
    font-size: 9.5px !important;
    line-height: 1.05 !important;
    margin-bottom: 1px !important;
  }

  .pvs-cw-v2-desc {
    font-size: 9.4px !important;
    line-height: 1.08 !important;
    margin-bottom: 3px !important;
  }

  .pvs-cw-v2-actions {
    gap: 3px !important;
  }

  .pvs-cw-v2-actions button {
    min-height: 21px !important;
    padding: 2px 6px !important;
    font-size: 9.4px !important;
    line-height: 1.05 !important;
  }
}
