/* DimosTV 1.7.1 RC-B — final frontend production polish. */
body.dtv-release-candidate-b {
  --dtv-rcb-focus: 0 0 0 3px rgba(204, 0, 0, .28);
  --dtv-rcb-radius: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.dtv-release-candidate-b :where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--dtv-rcb-focus) !important;
}

body.dtv-release-candidate-b :where(button, [role="button"], .dtv-button, .dtv-play-button) {
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
}

body.dtv-release-candidate-b :where(.dtv-video-card, .dtv-home-card, .dtv-archive-card, .dtv-live-card) {
  border-radius: var(--dtv-rcb-radius);
  overflow: clip;
  transform: translateZ(0);
}

body.dtv-release-candidate-b :where(.dtv-video-card, .dtv-home-card, .dtv-archive-card) img {
  background: #e9edf3;
  transition: opacity .2s ease, transform .25s ease;
}

body.dtv-release-candidate-b :where(.dtv-video-card, .dtv-home-card, .dtv-archive-card):hover img {
  transform: scale(1.018);
}

body.dtv-release-candidate-b .dtv-rcb-media-loading img { opacity: .35; }
body.dtv-release-candidate-b img.dtv-rcb-media-ready { opacity: 1; }

body.dtv-release-candidate-b :where(.dtv-video-modal, .dtv-menu-modal, .dtv-search-modal)[aria-hidden="false"] {
  overscroll-behavior: contain;
}

body.dtv-release-candidate-b :where(.dtv-mini-player, .dtv-video-modal__dialog, .dtv-search-modal__dialog) {
  box-shadow: 0 24px 70px rgba(5, 16, 34, .28);
}

body.dtv-release-candidate-b .dtv-rcb-sr-status {
  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;
}

@media (max-width: 767px) {
  body.dtv-release-candidate-b :where(.dtv-video-modal__dialog, .dtv-search-modal__dialog) {
    max-height: calc(100dvh - 16px);
  }
  body.dtv-release-candidate-b .dtv-mini-player { max-width: min(92vw, 390px); }
}

@media (prefers-reduced-motion: reduce) {
  body.dtv-release-candidate-b *,
  body.dtv-release-candidate-b *::before,
  body.dtv-release-candidate-b *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  body.dtv-release-candidate-b :where(.dtv-video-card, .dtv-home-card, .dtv-archive-card):hover img { transform: none; }
}

@media (forced-colors: active) {
  body.dtv-release-candidate-b :where(button, .dtv-button, .dtv-video-card, .dtv-home-card) { border: 1px solid CanvasText; }
}
