/* Child Safety Program — hero-action layout + synchronized four-channel violation player.
   Ported from the republish `child-safety-violation-player.css`, EXCEPT the generic
   `.hero`/`.hero-actions`/`.violation-player-button`/`.hero-playback-row` selectors are gated with
   `:where(body.child-safety-page)` (zero specificity — preserves the source cascade) so they don't
   leak to the 55+ other pages that use `.hero-actions`. The unique `.csp-violation-four-channel`
   and `.sync-*` selectors are left verbatim. */
:where(body.child-safety-page) .hero-actions {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.theme-black:where(.child-safety-page) .hero .hero-actions .button {
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  gap: 7px;
  color: #f7f7f8;
  border: 2px solid #55555b;
  background: linear-gradient(145deg, #242427, #111113);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.72rem, 0.9vw, 0.84rem);
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: none;
  text-align: center;
  transition:
    color 170ms ease,
    border-color 170ms ease,
    background 170ms ease,
    box-shadow 170ms ease,
    transform 170ms ease;
}

body.theme-black:where(.child-safety-page) .hero .hero-actions .button > svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #ffd204;
  fill: currentColor;
}

body.theme-black:where(.child-safety-page) .hero .hero-actions .button:hover,
body.theme-black:where(.child-safety-page) .hero .hero-actions .button:focus-visible {
  color: #fff;
  border-color: #ffd204 !important;
  outline: 0;
  background: linear-gradient(145deg, #2b2b2f, #171719);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.52),
    0 0 0 1px #ffd204,
    0 0 18px rgba(255, 210, 4, 0.3);
  transform: translateY(-3px);
}

:where(body.child-safety-page) .violation-player-button {
  justify-content: center;
}

:where(body.child-safety-page) .hero-playback-row {
  display: flex;
  width: min(100%, 980px);
  justify-content: center;
  margin-top: 8px;
  align-items: center;
  gap: 30px;
}

/* NLETS Strategic Partner badge + modal. Unique `.nlets-partner-*` selectors are left verbatim
   (unscoped), consistent with the `.csp-*`/`.sync-*` player selectors. */
.nlets-partner-badge {
  appearance: none;
  display: grid;
  min-width: 170px;
  max-width: 210px;
  padding: 0;
  margin: 0;
  justify-items: center;
  gap: 0;
  color: #fff;
  text-align: center;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  font: inherit;
  transition:
    filter 170ms ease,
    transform 170ms ease;
}

.nlets-partner-badge:hover,
.nlets-partner-badge:focus-visible {
  outline: 0;
  filter: drop-shadow(0 0 13px rgba(255, 210, 4, 0.24));
  transform: translateY(-2px);
}

.nlets-partner-badge:focus-visible {
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(255, 210, 4, 0.82) !important;
}

.nlets-partner-badge img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 190px);
  height: auto;
  filter:
    drop-shadow(0 7px 10px rgba(0, 0, 0, 0.48))
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.44));
}

.nlets-partner-badge__label {
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, 166px);
  justify-self: end;
  margin-top: -10px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.84),
    0 2px 5px rgba(0, 0, 0, 0.56);
}

body.nlets-partner-modal-open {
  overflow: hidden;
}

.nlets-partner-modal[hidden] {
  display: none;
}

.nlets-partner-modal {
  position: fixed;
  inset: 0;
  z-index: 1700;
  display: grid;
  place-items: center;
  padding: 24px;
}

.nlets-partner-modal__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 210, 4, 0.16), transparent 34%),
    rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(8px);
}

.nlets-partner-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  padding: 34px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 4px solid #ffd204;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(36, 36, 39, 0.98), rgba(8, 8, 10, 0.98));
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 210, 4, 0.18);
}

.nlets-partner-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nlets-partner-modal__close svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nlets-partner-modal__close:hover,
.nlets-partner-modal__close:focus-visible {
  color: #09090a;
  border-color: #ffd204;
  outline: 0;
  background: #ffd204;
}

.nlets-partner-modal__logo {
  display: block;
  width: min(100%, 260px);
  height: auto;
  margin: 0 auto 14px;
  filter:
    drop-shadow(0 10px 16px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 10px rgba(255, 210, 4, 0.28));
}

.nlets-partner-modal .eyebrow {
  margin: 0 0 9px;
  color: #ffd204;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.nlets-partner-modal h2 {
  margin: 0;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.02;
  text-align: center;
  text-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
}

.nlets-partner-modal p:not(.eyebrow) {
  max-width: 38rem;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.58;
  text-align: center;
}

.nlets-partner-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.nlets-partner-modal__actions .button {
  min-height: 44px;
  border-radius: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  text-decoration: none;
}

.nlets-partner-modal__actions .button.primary {
  color: #09090a;
  border-color: #ffd204;
  background: #ffd204;
}

.nlets-partner-modal__actions .button.primary:hover,
.nlets-partner-modal__actions .button.primary:focus-visible {
  color: #09090a;
  border-color: #ffe167;
  outline: 0;
  background: #ffe167;
  box-shadow: 0 0 0 3px rgba(255, 210, 4, 0.28);
}

.nlets-partner-modal__actions .button.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
}

.nlets-partner-modal__actions .button.secondary:hover,
.nlets-partner-modal__actions .button.secondary:focus-visible {
  border-color: #ffd204;
  outline: 0;
  background: rgba(255, 210, 4, 0.12);
}

body.sync-video-modal-open {
  overflow: hidden;
}

.sync-video-modal[hidden] {
  display: none;
}

.csp-violation-four-channel {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 3vh 3vw;
}

.csp-violation-four-channel .sync-video-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.csp-violation-four-channel .sync-video-modal__dialog {
  position: relative;
  width: min(1180px, 94vw);
  height: min(920px, 94vh);
  height: min(920px, 94dvh);
  max-height: 94vh;
  max-height: 94dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 210, 4, 0.62);
  border-radius: 8px;
  background: linear-gradient(145deg, #18181b 0%, #050505 72%);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 210, 4, 0.12);
}

.csp-violation-four-channel .sync-video-modal__dialog.is-single-view {
  width: min(1200px, 95vw);
}

.csp-violation-four-channel .sync-video-modal__dialog:fullscreen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  border: 0;
  border-radius: 0;
}

.csp-violation-four-channel .sync-video-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 22px 13px;
  flex: 0 0 auto;
}

.csp-violation-four-channel .sync-video-modal__brand {
  margin: 0;
}

.csp-violation-four-channel .sync-video-modal__brand img {
  width: clamp(145px, 15vw, 185px);
  height: auto;
  display: block;
}

.csp-violation-four-channel .sync-video-modal__header p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
}

.csp-violation-four-channel .sync-video-modal__status {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0 22px 11px;
  color: #ededed;
  font-size: 0.82rem;
  border: 1px solid #303034;
  border-radius: 5px;
  background: #151517;
  flex: 0 0 auto;
}

.csp-violation-four-channel .sync-video-modal__status.is-error {
  color: #ffe0a8;
  background: rgba(245, 155, 25, 0.12);
}

.csp-violation-four-channel .sync-video-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffd204;
  border-radius: 50%;
  animation: csp-sync-video-spin 0.8s linear infinite;
}

@keyframes csp-sync-video-spin {
  to { transform: rotate(360deg); }
}

.csp-violation-four-channel .sync-view-selector {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 22px 11px;
  flex: 0 0 auto;
}

.csp-violation-four-channel .sync-view-selector__label,
.csp-violation-four-channel .sync-video-controls__options > label {
  color: #c9c9cc;
  font-size: 0.8rem;
  font-weight: 800;
}

.csp-violation-four-channel .sync-view-button {
  min-height: 34px;
  padding: 6px 11px;
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  border: 1px solid #444449;
  border-radius: 5px;
  background: #1b1b1e;
  cursor: pointer;
}

.csp-violation-four-channel .sync-view-button:hover,
.csp-violation-four-channel .sync-view-button:focus-visible {
  border-color: #ffd204;
}

.csp-violation-four-channel .sync-view-button.is-active,
.csp-violation-four-channel .sync-view-button[aria-pressed="true"] {
  color: #050505;
  border-color: #ffd204;
  background: #ffd204;
}

.csp-violation-four-channel .sync-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  flex: 1 1 auto;
  min-height: 0;
  gap: 9px;
  padding: 0 22px;
}

.csp-violation-four-channel .sync-video-grid.is-single-view {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr);
}

.csp-violation-four-channel .sync-video-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #353539;
  border-radius: 5px;
  background: #050505;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
}

.csp-violation-four-channel .sync-video-panel[hidden] {
  display: none !important;
}

.csp-violation-four-channel .sync-video-frame {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  cursor: zoom-in;
}

.csp-violation-four-channel .sync-video-grid.is-single-view .sync-video-frame {
  cursor: zoom-out;
}

.csp-violation-four-channel .sync-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.csp-violation-four-channel .sync-video-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 20px;
  color: #fff0d3;
  text-align: center;
  background: #261515;
}

.csp-violation-four-channel .sync-video-error[hidden] {
  display: none;
}

.csp-violation-four-channel .sync-video-panel figcaption {
  padding: 7px 10px;
  color: #ededed;
  font-size: 0.78rem;
  font-weight: 800;
  border-top: 1px solid #2e2e32;
  background: #151517;
}

.csp-violation-four-channel .sync-video-grid:not(.is-single-view) figcaption {
  display: none;
}

.csp-violation-four-channel .sync-video-controls {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
  padding: 13px 22px 17px;
  border-top: 1px solid rgba(255, 210, 4, 0.32);
  background: #0b0b0d;
  flex: 0 0 auto;
}

.csp-violation-four-channel .sync-video-controls__buttons,
.csp-violation-four-channel .sync-video-controls__options,
.csp-violation-four-channel .sync-video-timeline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.csp-violation-four-channel .sync-video-controls__buttons,
.csp-violation-four-channel .sync-video-controls__options {
  flex-wrap: wrap;
}

.csp-violation-four-channel .sync-control,
.csp-violation-four-channel .sync-select {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid #444449;
  border-radius: 5px;
  background: #1b1b1e;
  cursor: pointer;
}

.csp-violation-four-channel .sync-control svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.csp-violation-four-channel .sync-control--frame-step {
  width: 36px;
  min-width: 36px;
  padding-inline: 8px;
}

.csp-violation-four-channel .sync-control--primary {
  color: #050505;
  border-color: #ffd204;
  background: #ffd204;
}

.csp-violation-four-channel .sync-snapshot-control {
  min-height: 34px;
  color: #ffd204;
  border-color: rgba(255, 210, 4, 0.62);
}

.csp-violation-four-channel .sync-control:hover:not(:disabled),
.csp-violation-four-channel .sync-select:hover:not(:disabled) {
  border-color: #ffd204;
  background: #252529;
}

.csp-violation-four-channel .sync-control:focus-visible,
.csp-violation-four-channel .sync-select:focus-visible,
.csp-violation-four-channel .sync-view-button:focus-visible,
.csp-violation-four-channel .sync-video-timeline input:focus-visible {
  outline: 3px solid #ffd27c;
  outline-offset: 2px;
}

.csp-violation-four-channel .sync-control:disabled,
.csp-violation-four-channel .sync-select:disabled,
.csp-violation-four-channel .sync-video-timeline input:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.csp-violation-four-channel .sync-video-modal__close {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  padding: 0;
}

.csp-violation-four-channel .sync-video-modal__close svg {
  width: 22px;
  height: 22px;
}

.csp-violation-four-channel .sync-video-timeline span {
  min-width: 38px;
  color: #ededed;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.csp-violation-four-channel .sync-video-timeline input {
  width: 100%;
  accent-color: #ffd204;
  cursor: pointer;
}

.csp-violation-four-channel .sync-select {
  color-scheme: dark;
}

.csp-violation-four-channel .sync-video-audio-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px 11px;
  color: #dedee1;
  font-size: 0.78rem;
  line-height: 1.4;
  border-left: 3px solid #ffd204;
  border-radius: 4px;
  background: #161618;
}

.csp-violation-four-channel .sync-video-audio-note strong {
  color: #ffd204;
}

.csp-violation-four-channel .visually-hidden {
  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: 900px) {
  :where(body.child-safety-page) .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .csp-violation-four-channel .sync-video-controls {
    grid-template-columns: auto minmax(120px, 1fr);
    gap: 7px 10px;
    padding-block: 9px 11px;
  }

  .csp-violation-four-channel .sync-video-controls__options {
    grid-column: 1 / -1;
  }

  .csp-violation-four-channel .sync-video-audio-note {
    display: none;
  }
}

@media (max-width: 680px) {
  :where(body.child-safety-page) .hero-actions {
    width: 100%;
    gap: 8px;
  }

  :where(body.child-safety-page) .hero-playback-row {
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
  }

  .nlets-partner-badge {
    min-width: 0;
    max-width: 180px;
  }

  .nlets-partner-badge img {
    width: min(100%, 156px);
  }

  .nlets-partner-badge__label {
    width: min(100%, 136px);
    font-size: 0.58rem;
    letter-spacing: 0.06em;
  }

  .nlets-partner-modal {
    padding: 16px;
  }

  .nlets-partner-modal__dialog {
    padding: 30px 20px 22px;
  }

  .nlets-partner-modal__logo {
    width: min(100%, 220px);
  }

  .nlets-partner-modal__actions {
    display: grid;
  }

  body.theme-black:where(.child-safety-page) .hero .hero-actions .button {
    min-height: 42px;
    padding: 8px 9px;
    font-size: 0.7rem;
  }

  .csp-violation-four-channel {
    padding: 2vh 2vw;
  }

  .csp-violation-four-channel .sync-video-modal__dialog,
  .csp-violation-four-channel .sync-video-modal__dialog.is-single-view {
    width: 96vw;
    height: 96vh;
    height: 96dvh;
    max-height: 96vh;
    max-height: 96dvh;
  }

  .csp-violation-four-channel .sync-video-modal__header {
    padding: 9px 12px 7px;
  }

  .csp-violation-four-channel .sync-video-modal__header p {
    display: none;
  }

  .csp-violation-four-channel .sync-video-modal__brand img {
    width: 128px;
  }

  .csp-violation-four-channel .sync-video-modal__close {
    width: 34px;
    height: 34px;
  }

  .csp-violation-four-channel .sync-video-modal__status,
  .csp-violation-four-channel .sync-view-selector {
    margin: 0 12px 7px;
  }

  .csp-violation-four-channel .sync-video-modal__status {
    min-height: 28px;
  }

  .csp-violation-four-channel .sync-view-selector {
    gap: 4px;
  }

  .csp-violation-four-channel .sync-view-button {
    min-height: 29px;
    padding: 4px 7px;
  }

  .csp-violation-four-channel .sync-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding-inline: 12px;
  }

  .csp-violation-four-channel .sync-video-grid.is-single-view {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
  }

  .csp-violation-four-channel .sync-video-grid.is-single-view .sync-video-frame {
    min-height: 0;
  }

  .csp-violation-four-channel .sync-video-controls {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 7px 12px 9px;
  }

  .csp-violation-four-channel .sync-video-controls__buttons .sync-control {
    min-height: 32px;
    flex: 1 1 auto;
    padding: 5px 7px;
    font-size: 0.7rem;
  }

  .csp-violation-four-channel .sync-video-controls__buttons .sync-control--frame-step {
    flex: 0 0 34px;
  }

  .csp-violation-four-channel .sync-video-controls__options {
    display: none;
  }

  .csp-violation-four-channel .sync-video-timeline {
    min-width: 0;
  }
}

@media (max-height: 720px) {
  .csp-violation-four-channel {
    padding-block: 1.5vh;
  }

  .csp-violation-four-channel .sync-video-modal__dialog {
    height: 97vh;
    height: 97dvh;
    max-height: 97vh;
    max-height: 97dvh;
  }

  .csp-violation-four-channel .sync-video-modal__header {
    padding-block: 8px 6px;
  }

  .csp-violation-four-channel .sync-video-modal__header p,
  .csp-violation-four-channel .sync-video-audio-note {
    display: none;
  }

  .csp-violation-four-channel .sync-video-modal__brand img {
    width: 130px;
  }

  .csp-violation-four-channel .sync-video-modal__status,
  .csp-violation-four-channel .sync-view-selector {
    margin-bottom: 6px;
  }

  .csp-violation-four-channel .sync-video-controls {
    padding-block: 7px;
  }
}
