/* DSK Video Lightbox 1.0.1 (Directive 110 follow-up: flex title bar, returned-focus ring, darker blurred backdrop). All selectors are prefixed .dsk-vlb; nothing else on the page is styled. */
html.dsk-vlb-lock,
html.dsk-vlb-lock body { overflow: hidden !important; overscroll-behavior: none; }
html.dsk-vlb-lock body { position: fixed !important; left: 0; right: 0; width: 100%; }

.dsk-vlb {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  padding: max(1.25rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  overflow: hidden;
  background: rgba(2, 2, 2, .97);
  color: rgba(236, 234, 228, .92);
  font-family: inherit;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility 0s linear .28s;
  -webkit-tap-highlight-color: transparent;
}
.dsk-vlb *, .dsk-vlb *::before, .dsk-vlb *::after { box-sizing: border-box; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .dsk-vlb { background: rgba(2, 2, 2, .9); -webkit-backdrop-filter: blur(8px) saturate(.6); backdrop-filter: blur(8px) saturate(.6); }
}
.dsk-vlb.is-open { opacity: 1; visibility: visible; transition: opacity .28s ease, visibility 0s; }
.dsk-vlb[hidden] { display: none !important; }

.dsk-vlb__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .7rem;
  width: min(100%, 1280px, calc((100vh - 9.5rem) * 16 / 9));
  width: min(100%, 1280px, calc((100dvh - 9.5rem) * 16 / 9));
  min-width: min(100%, 16rem);
  max-width: 100%;
  margin: 0 auto;
  transform: translateY(10px) scale(.985);
  transition: transform .32s cubic-bezier(.2, .7, .2, 1);
  outline: none;
}
.dsk-vlb.is-open .dsk-vlb__dialog { transform: none; }

.dsk-vlb__bar {
  order: -1; /* visually above the player; in DOM it follows the iframe so Tab out of the player reaches Close */
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  width: 100%;
}
.dsk-vlb__frame { order: 0; }
.dsk-vlb__meta { order: 1; }
.dsk-vlb__sentinel { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.dsk-vlb__title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1.5;
  text-transform: uppercase;
  color: rgba(184, 161, 116, .95);
  white-space: normal;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.dsk-vlb__title[dir="rtl"] { text-align: right; letter-spacing: .02em; text-transform: none; font-size: .9rem; }

.dsk-vlb__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .65), 0 0 0 1px rgba(184, 161, 116, .08);
  overflow: hidden;
}
@supports not (aspect-ratio: 16 / 9) {
  .dsk-vlb__frame { height: 0; padding-top: 56.25%; }
}
.dsk-vlb__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.dsk-vlb__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.dsk-vlb.is-loading .dsk-vlb__loading { opacity: 1; }
.dsk-vlb__spinner {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .14);
  border-top-color: rgba(184, 161, 116, .95);
  animation: dsk-vlb-spin .9s linear infinite;
}
@keyframes dsk-vlb-spin { to { transform: rotate(360deg); } }

.dsk-vlb__fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(20, 18, 14, .9), #000 75%);
}
.dsk-vlb.is-fallback .dsk-vlb__fallback { display: flex; }
.dsk-vlb.is-fallback .dsk-vlb__loading { display: none; }
.dsk-vlb__fallback-text { margin: 0; max-width: 32rem; font-size: .9rem; line-height: 1.6; color: rgba(236, 234, 228, .82); }

.dsk-vlb__yt {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: rgba(236, 234, 228, .75);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s ease;
}
.dsk-vlb__yt:hover, .dsk-vlb__yt:focus-visible { color: rgba(184, 161, 116, 1); }
.dsk-vlb__yt svg { width: .95rem; height: .95rem; flex: 0 0 auto; fill: currentColor; }
.dsk-vlb__yt--big {
  padding: .85rem 1.4rem;
  border: 1px solid rgba(184, 161, 116, .65);
  color: rgba(236, 234, 228, .95);
  font-size: .7rem;
}
.dsk-vlb__yt--big:hover, .dsk-vlb__yt--big:focus-visible { background: rgba(184, 161, 116, .14); }
.dsk-vlb__meta { display: flex; justify-content: flex-end; min-height: 1.5rem; }

.dsk-vlb__close {
  position: relative;
  flex: 0 0 auto;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(10, 10, 10, .85);
  color: #f1efe9;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.dsk-vlb__close:hover { border-color: rgba(184, 161, 116, .9); background: rgba(30, 26, 20, .95); transform: scale(1.06); }
.dsk-vlb__close svg { width: 1.1rem; height: 1.1rem; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.dsk-vlb__sr,
.dsk-vlb__close span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dsk-vlb__close:focus-visible,
.dsk-vlb__yt:focus-visible { outline: 2px solid rgba(184, 161, 116, 1); outline-offset: 3px; }

@media (max-width: 600px) {
  .dsk-vlb { padding-left: max(.5rem, env(safe-area-inset-left)); padding-right: max(.5rem, env(safe-area-inset-right)); }
  .dsk-vlb__meta { justify-content: center; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .dsk-vlb { padding-top: max(.5rem, env(safe-area-inset-top)); padding-bottom: max(.5rem, env(safe-area-inset-bottom)); }
  .dsk-vlb__dialog { width: min(100% - 7rem, calc((100vh - 3.25rem) * 16 / 9)); width: min(100% - 7rem, calc((100dvh - 3.25rem) * 16 / 9)); gap: .3rem; }
  .dsk-vlb__title { display: none; }
  .dsk-vlb__bar { position: absolute; top: 0; right: -3.4rem; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .dsk-vlb, .dsk-vlb__dialog, .dsk-vlb__close { transition: none !important; }
  .dsk-vlb__dialog { transform: none; }
  .dsk-vlb__spinner { animation-duration: 2.4s; }
}

/* (e) 1.0.1: after a mouse/touch-opened session, focus returns to the trigger; show where it is. */
.dsk-vlb-returned { outline: 2px solid rgba(184, 161, 116, .95) !important; outline-offset: 3px; }
