:root{--dekvsw-video-red:#ff3333;--dekvsw-video-yellow:#ffd400;--dekvsw-video-blue:#8ed8ff;--dekvsw-video-bg:#050607;--dekvsw-video-panel:#101418;--dekvsw-video-text:#f7f2df;--dekvsw-video-safe-vh:100dvh;}
.dekvsw-manifest-video{margin:2rem auto;max-width:min(1100px,100%);color:var(--dekvsw-video-text);}
.dekvsw-manifest-video--tall{max-width:min(720px,100%);}
.dekvsw-manifest-video__load{position:relative;display:block;width:100%;padding:0;border:0;background:#000;border-radius:18px;overflow:hidden;cursor:pointer;box-shadow:0 18px 55px rgba(0,0,0,.34);}
.dekvsw-manifest-video__load:hover,.dekvsw-manifest-video__load:focus-visible{outline:2px solid var(--dekvsw-video-yellow);outline-offset:4px;}
.dekvsw-manifest-video__poster{display:block;width:100%;height:auto;max-height:78vh;object-fit:contain;background:#000;}
.dekvsw-manifest-video__shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.12),rgba(0,0,0,.62));}
.dekvsw-manifest-video__playmark{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:inline-flex;align-items:center;justify-content:center;width:78px;height:78px;border:2px solid var(--dekvsw-video-yellow);border-radius:999px;background:rgba(0,0,0,.62);color:var(--dekvsw-video-yellow);font-size:2rem;line-height:1;padding-left:.15em;box-shadow:0 0 0 8px rgba(255,212,0,.08);}
.dekvsw-manifest-video__label{position:absolute;left:50%;bottom:1.2rem;transform:translateX(-50%);display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.75rem 1.1rem;border:1px solid var(--dekvsw-video-red);border-radius:999px;background:rgba(0,0,0,.78);color:var(--dekvsw-video-red);font-weight:850;text-align:center;white-space:nowrap;}
.dekvsw-manifest-video__privacy,.dekvsw-manifest-video__caption{margin:.85rem auto 0;max-width:80ch;color:#cbd5df;font-size:.95rem;line-height:1.55;text-align:center;}
.dekvsw-manifest-video-error{padding:1rem;border-left:4px solid #d63638;background:#fcf0f1;color:#8a2424;}
.dekvsw-video-overlay{position:fixed;inset:0;z-index:1000001;display:flex;align-items:center;justify-content:center;padding:clamp(.75rem,2vw,2rem);background:rgba(0,0,0,.88);backdrop-filter:blur(7px);}
.dekvsw-video-overlay[hidden]{display:none!important;}
.dekvsw-video-overlay__dialog{position:relative;width:min(1120px,96vw);max-height:94vh;display:flex;flex-direction:column;gap:.75rem;border:2px solid rgba(255,212,0,.7);border-radius:22px;background:rgba(6,8,10,.96);box-shadow:0 28px 80px rgba(0,0,0,.74);padding:.8rem;}
.dekvsw-video-overlay--tall .dekvsw-video-overlay__dialog{width:min(760px,96vw);height:auto;}
.dekvsw-video-overlay__topbar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;color:var(--dekvsw-video-text);}
.dekvsw-video-overlay__title{font-weight:850;line-height:1.3;}
.dekvsw-video-overlay__video-wrap{display:flex;align-items:center;justify-content:center;min-height:0;}
.dekvsw-video-overlay video,.dekvsw-manifest-video video{display:block;width:100%;height:auto;max-height:78vh;border-radius:16px;background:#000;}
.dekvsw-video-overlay--tall video{width:auto;max-width:100%;max-height:82vh;}
.dekvsw-video-overlay__controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.55rem;}
.dekvsw-video-button{min-height:42px;padding:.62rem .9rem;border:1px solid var(--dekvsw-video-red);border-radius:999px;background:transparent;color:var(--dekvsw-video-red);font:inherit;font-weight:850;cursor:pointer;}
.dekvsw-video-button:hover,.dekvsw-video-button:focus-visible{background:rgba(255,51,51,.13);outline:2px solid var(--dekvsw-video-yellow);outline-offset:3px;color:#ff5555;}
.dekvsw-video-button--close{border-color:var(--dekvsw-video-yellow);color:var(--dekvsw-video-yellow);}
.dekvsw-video-status{min-height:1.4em;color:#cbd5df;text-align:center;font-size:.93rem;line-height:1.45;}
.dekvsw-video-overlay__caption{color:#d8e0e7;text-align:center;line-height:1.55;}
body.dekvsw-video-overlay-open{overflow:hidden;}
@media(max-width:700px){.dekvsw-manifest-video__playmark{width:62px;height:62px;font-size:1.55rem}.dekvsw-manifest-video__label{position:static;transform:none;width:auto;margin:.65rem auto 1rem}.dekvsw-video-overlay__dialog{padding:.55rem;border-radius:16px}.dekvsw-video-button{min-height:44px;padding:.58rem .75rem}.dekvsw-video-overlay video{max-height:72vh}}

/* v1.6.32 Audio Video Coordination */
.dekvsw-manifest-video[data-loaded="1"]{scroll-margin-top:2rem;}
.dekvsw-video-button[aria-pressed="true"]{background:rgba(255,51,51,.18);}


/* v1.6.33 Video Overlay Mode */
.dekvsw-video-overlay{min-height:100vh;min-height:var(--dekvsw-video-safe-vh);overflow:auto;overscroll-behavior:contain;}
.dekvsw-video-overlay__dialog{margin:auto;max-width:96vw;max-height:calc(var(--dekvsw-video-safe-vh) - 2rem);overflow:hidden;}
.dekvsw-video-overlay--wide .dekvsw-video-overlay__dialog{width:min(1180px,96vw);}
.dekvsw-video-overlay--tall .dekvsw-video-overlay__dialog{width:min(760px,96vw);}
.dekvsw-video-overlay__actions{display:flex;align-items:center;justify-content:flex-end;gap:.45rem;flex-wrap:wrap;}
.dekvsw-video-button--layout{border-color:rgba(142,216,255,.65);color:var(--dekvsw-video-blue);font-size:.9rem;min-height:38px;padding:.5rem .75rem;}
.dekvsw-video-button--layout[aria-pressed="true"]{background:rgba(142,216,255,.16);box-shadow:inset 0 0 0 1px rgba(142,216,255,.4);}
.dekvsw-video-overlay__video-wrap{flex:1 1 auto;overflow:hidden;}
.dekvsw-video-overlay--wide video{width:100%;height:auto;max-height:min(74vh,calc(var(--dekvsw-video-safe-vh) - 12rem));object-fit:contain;}
.dekvsw-video-overlay--tall video{width:auto;height:auto;max-width:100%;max-height:min(82vh,calc(var(--dekvsw-video-safe-vh) - 12rem));object-fit:contain;}
.dekvsw-video-overlay__caption{max-width:82ch;margin:0 auto;color:#d8e0e7;text-align:center;font-size:.96rem;line-height:1.5;}
.dekvsw-video-overlay__dialog:focus{outline:none;}
@media(max-width:700px){.dekvsw-video-overlay{align-items:flex-start;padding:.55rem}.dekvsw-video-overlay__dialog{width:100%;max-height:calc(var(--dekvsw-video-safe-vh) - 1.1rem)}.dekvsw-video-overlay__topbar{align-items:flex-start;flex-direction:column}.dekvsw-video-overlay__actions{width:100%;justify-content:center}.dekvsw-video-button--layout{flex:1 1 120px}.dekvsw-video-overlay--wide video,.dekvsw-video-overlay--tall video{max-height:calc(var(--dekvsw-video-safe-vh) - 15rem)}}

/* v1.6.34 Audio Player Button Parity */
.dekvsw-video-overlay video,
.dekvsw-manifest-video video {
  box-shadow: 0 16px 45px rgba(0,0,0,.45);
}
.dekvsw-video-controls {
  display: grid;
  gap: .65rem;
  align-items: center;
  justify-items: center;
  width: 100%;
  margin: .15rem auto 0;
  padding: .7rem .75rem;
  border: 1px solid rgba(240,208,132,.24);
  border-radius: 18px;
  background: rgba(16,20,24,.82);
}
.dekvsw-video-controls__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .55rem;
}
.dekvsw-video-icon-button,
.dekvsw-video-icon-button:where(button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: .52rem .72rem;
  border: 1px solid rgba(240,208,132,.74);
  border-radius: 14px;
  background: #15110b;
  color: #f0d084;
  font: inherit;
  font-size: .84rem;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
  transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.dekvsw-video-icon-button:hover,
.dekvsw-video-icon-button:focus-visible {
  transform: translateY(-1px);
  outline: none !important;
  border-color: #f0d084;
  background: #f0d084;
  color: #17130e;
  box-shadow: 0 0 0 3px rgba(240,208,132,.22), 0 10px 22px rgba(0,0,0,.28);
}
.dekvsw-video-icon-button:active,
.dekvsw-video-icon-button.is-active,
.dekvsw-video-icon-button[aria-pressed="true"] {
  transform: translateY(0);
  background: #f0d084;
  color: #17130e;
  border-color: #f0d084;
  box-shadow: inset 0 0 0 2px rgba(23,19,14,.2);
}
.dekvsw-video-icon-button__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  white-space: nowrap;
}
.dekvsw-video-btn-rewind-15 .dekvsw-video-icon-button__label,
.dekvsw-video-btn-forward-15 .dekvsw-video-icon-button__label,
.dekvsw-video-btn-captions .dekvsw-video-icon-button__label {
  letter-spacing: .02em;
}
.dekvsw-video-controls__timeline {
  display: grid;
  grid-template-columns: auto minmax(140px, 1fr) auto;
  align-items: center;
  gap: .75rem;
  width: min(760px, 100%);
}
.dekvsw-video-time {
  min-width: 3.4rem;
  color: #d8e0e7;
  font-variant-numeric: tabular-nums;
  font-size: .9rem;
  line-height: 1;
  text-align: center;
}
.dekvsw-video-seek {
  width: 100%;
  accent-color: #f0d084;
  cursor: pointer;
}
.dekvsw-video-seek:focus-visible {
  outline: 2px solid rgba(240,208,132,.9);
  outline-offset: 4px;
  border-radius: 999px;
}
.dekvsw-video-overlay__controls {
  display: none;
}
.dekvsw-video-button:hover,
.dekvsw-video-button:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(240,208,132,.22);
}
.dekvsw-video-button--close {
  min-height: 42px;
  border-radius: 14px;
  background: #15110b;
}
@media(max-width:700px){
  .dekvsw-video-controls{padding:.6rem .45rem;border-radius:14px;}
  .dekvsw-video-icon-button{min-width:44px;min-height:44px;padding:.48rem .58rem;font-size:.78rem;}
  .dekvsw-video-controls__timeline{grid-template-columns:1fr;gap:.45rem;}
  .dekvsw-video-time{min-width:0;}
}


/* v1.6.46 Video Overlay Mode recovery */
.dekvsw-video-overlay__dialog {
  contain: layout paint;
}
.dekvsw-video-overlay__dialog:focus {
  outline: none !important;
}
.dekvsw-video-overlay__topbar {
  position: relative;
}
.dekvsw-video-button--close {
  line-height: 1;
}
.dekvsw-video-overlay--wide .dekvsw-video-overlay__video-wrap {
  width: 100%;
}
.dekvsw-video-overlay--tall .dekvsw-video-overlay__video-wrap {
  width: 100%;
}
@media (max-width: 700px) {
  .dekvsw-video-overlay {
    align-items: center;
    justify-content: center;
    padding: .5rem;
  }
  .dekvsw-video-overlay__dialog {
    width: calc(100vw - 1rem);
    max-width: calc(100vw - 1rem);
    max-height: calc(var(--dekvsw-video-safe-vh) - 1rem);
  }
  .dekvsw-video-overlay__title {
    width: 100%;
    text-align: center;
  }
}

/* v1.6.47 Audio Player Button Parity — video controls use the same compact icon-button language as the Manifest Audioplayer. */
.dekvsw-video-controls__row {
  --kvsw-video-button-size: clamp(30px, 4.6vw, 42px);
  flex-wrap: nowrap;
  justify-content: center;
  gap: clamp(0.22rem, 0.7vw, 0.45rem);
  width: 100%;
  overflow-x: auto;
  padding: 0.2rem 0.1rem 0.35rem;
  scrollbar-width: thin;
}
.dekvsw-video-icon-button,
.dekvsw-video-icon-button:where(button) {
  -webkit-appearance: none !important;
  appearance: none !important;
  flex: 0 0 var(--kvsw-video-button-size) !important;
  width: var(--kvsw-video-button-size) !important;
  height: var(--kvsw-video-button-size) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  color: transparent !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
  box-shadow: none !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent;
  transition: transform 120ms ease, filter 120ms ease, opacity 120ms ease !important;
}
.dekvsw-video-icon-button:hover,
.dekvsw-video-icon-button:focus,
.dekvsw-video-icon-button:focus-visible,
.dekvsw-video-icon-button:active {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
}
.dekvsw-video-icon-button:hover,
.dekvsw-video-icon-button:focus-visible {
  transform: translateY(-1px) !important;
}
.dekvsw-video-icon-button:active,
.dekvsw-video-icon-button.is-active,
.dekvsw-video-icon-button[aria-pressed="true"] {
  transform: translateY(1px) scale(0.98) !important;
}
.dekvsw-video-icon-button__label {
  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;
}
.dekvsw-video-icon-button.dekvsw-btn-play { background-image: url('../../manifest-player/assets/mp3-player-buttons/normal/play.webp') !important; }
.dekvsw-video-icon-button.dekvsw-btn-play:hover,
.dekvsw-video-icon-button.dekvsw-btn-play:focus-visible { background-image: url('../../manifest-player/assets/mp3-player-buttons/hover/play.webp') !important; }
.dekvsw-video-icon-button.dekvsw-btn-play:active,
.dekvsw-video-icon-button.dekvsw-btn-play.is-active { background-image: url('../../manifest-player/assets/mp3-player-buttons/active/play.webp') !important; }
.dekvsw-video-icon-button.dekvsw-btn-pause { background-image: url('../../manifest-player/assets/mp3-player-buttons/normal/pause.webp') !important; }
.dekvsw-video-icon-button.dekvsw-btn-pause:hover,
.dekvsw-video-icon-button.dekvsw-btn-pause:focus-visible { background-image: url('../../manifest-player/assets/mp3-player-buttons/hover/pause.webp') !important; }
.dekvsw-video-icon-button.dekvsw-btn-pause:active,
.dekvsw-video-icon-button.dekvsw-btn-pause.is-active { background-image: url('../../manifest-player/assets/mp3-player-buttons/active/pause.webp') !important; }
.dekvsw-video-icon-button.dekvsw-btn-rewind-15 { background-image: url('../../manifest-player/assets/mp3-player-buttons/normal/rewind_15.webp') !important; }
.dekvsw-video-icon-button.dekvsw-btn-rewind-15:hover,
.dekvsw-video-icon-button.dekvsw-btn-rewind-15:focus-visible { background-image: url('../../manifest-player/assets/mp3-player-buttons/hover/rewind_15.webp') !important; }
.dekvsw-video-icon-button.dekvsw-btn-rewind-15:active,
.dekvsw-video-icon-button.dekvsw-btn-rewind-15.is-active { background-image: url('../../manifest-player/assets/mp3-player-buttons/active/rewind_15.webp') !important; }
.dekvsw-video-icon-button.dekvsw-btn-forward-15 { background-image: url('../../manifest-player/assets/mp3-player-buttons/normal/forward_15.webp') !important; }
.dekvsw-video-icon-button.dekvsw-btn-forward-15:hover,
.dekvsw-video-icon-button.dekvsw-btn-forward-15:focus-visible { background-image: url('../../manifest-player/assets/mp3-player-buttons/hover/forward_15.webp') !important; }
.dekvsw-video-icon-button.dekvsw-btn-forward-15:active,
.dekvsw-video-icon-button.dekvsw-btn-forward-15.is-active { background-image: url('../../manifest-player/assets/mp3-player-buttons/active/forward_15.webp') !important; }
.dekvsw-video-icon-button.dekvsw-video-btn-mute { background-image: url('video-player-buttons/normal/mute.webp') !important; }
.dekvsw-video-icon-button.dekvsw-video-btn-mute:hover,
.dekvsw-video-icon-button.dekvsw-video-btn-mute:focus-visible { background-image: url('video-player-buttons/hover/mute.webp') !important; }
.dekvsw-video-icon-button.dekvsw-video-btn-mute:active,
.dekvsw-video-icon-button.dekvsw-video-btn-mute.is-active,
.dekvsw-video-icon-button.dekvsw-video-btn-mute[aria-pressed="true"] { background-image: url('video-player-buttons/active/mute.webp') !important; }

.dekvsw-video-icon-button.dekvsw-video-btn-captions { background-image: url('video-player-buttons/normal/cc.webp') !important; }
.dekvsw-video-icon-button.dekvsw-video-btn-captions:hover,
.dekvsw-video-icon-button.dekvsw-video-btn-captions:focus-visible { background-image: url('video-player-buttons/hover/cc.webp') !important; }
.dekvsw-video-icon-button.dekvsw-video-btn-captions:active,
.dekvsw-video-icon-button.dekvsw-video-btn-captions.is-active,
.dekvsw-video-icon-button.dekvsw-video-btn-captions[aria-pressed="true"] { background-image: url('video-player-buttons/active/cc.webp') !important; }

.dekvsw-video-icon-button.dekvsw-video-btn-fullscreen { background-image: url('video-player-buttons/normal/fullscreen.webp') !important; }
.dekvsw-video-icon-button.dekvsw-video-btn-fullscreen:hover,
.dekvsw-video-icon-button.dekvsw-video-btn-fullscreen:focus-visible { background-image: url('video-player-buttons/hover/fullscreen.webp') !important; }
.dekvsw-video-icon-button.dekvsw-video-btn-fullscreen:active,
.dekvsw-video-icon-button.dekvsw-video-btn-fullscreen.is-active,
.dekvsw-video-icon-button.dekvsw-video-btn-fullscreen[aria-pressed="true"] { background-image: url('video-player-buttons/active/fullscreen.webp') !important; }
@media (max-width: 640px) {
  .dekvsw-video-controls__row { --kvsw-video-button-size: clamp(26px, 7vw, 34px); justify-content: flex-start; }
}


/* v1.6.48 Video VTT Overlay Support — custom subtitles inside overlay/inline video, no chapters. */
.dekvsw-video-overlay__video-wrap,
.dekvsw-video-inline__video-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.dekvsw-video-subtitles {
  position: absolute;
  left: 50%;
  bottom: clamp(0.85rem, 3.4vw, 2rem);
  transform: translateX(-50%);
  width: min(88%, 920px);
  max-width: 92%;
  padding: .55rem .85rem;
  border-radius: 12px;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: clamp(1rem, 1.85vw, 1.35rem);
  line-height: 1.35;
  text-align: center;
  white-space: pre-line;
  text-shadow: 0 1px 2px rgba(0,0,0,.9);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  pointer-events: none;
  z-index: 4;
}
.dekvsw-video-subtitles[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  .dekvsw-video-subtitles {
    bottom: .65rem;
    width: 94%;
    padding: .45rem .65rem;
    font-size: clamp(.86rem, 3.8vw, 1.05rem);
    border-radius: 10px;
  }
}
