:root {
  --news-viewer-lime: var(--lime, #b7f34a);
}

.news-media-open[type="button"],
.fixture-news-timeline-media[type="button"] {
  margin: 0;
  padding: 0;
  appearance: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

.news-media-open[type="button"] {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.news-media-open[type="button"]:focus-visible {
  outline: 3px solid var(--news-viewer-lime);
  outline-offset: -3px;
}

.news-media-open.is-video-restricted > img,
.fixture-news-timeline-media.is-video-restricted > img {
  filter: brightness(.42) saturate(.62);
}

.news-video-play.is-restricted i {
  padding-left: 0;
  border-color: rgba(183, 243, 74, .7);
  color: var(--news-viewer-lime);
}

.news-video-play.is-restricted b {
  border-color: rgba(183, 243, 74, .35);
  color: #efffd4;
}

.fixture-news-media-restricted-label {
  position: absolute;
  right: 39px;
  bottom: 9px;
  overflow: hidden;
  max-width: calc(100% - 46px);
  padding: 3px 6px;
  border: 1px solid rgba(183, 243, 74, .28);
  background: rgba(2, 10, 17, .88);
  color: #efffd4;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.news-media-viewer-open {
  overflow: hidden;
}

.news-media-viewer-restricted {
  display: grid;
  width: min(620px, calc(100vw - 48px));
  min-height: 250px;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(143, 185, 202, .28);
  background:
    radial-gradient(circle at 50% 10%, rgba(183, 243, 74, .1), transparent 44%),
    linear-gradient(145deg, #0b2635, #031019 72%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .36);
  text-align: center;
}

.news-media-viewer-restricted > span {
  color: var(--news-viewer-lime);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .18em;
}

.news-media-viewer-restricted > b {
  color: #f2f8fa;
  font-size: clamp(20px, 3vw, 28px);
}

.news-media-viewer-restricted > p {
  max-width: 470px;
  margin: 0;
  color: #b7cad2;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.news-media-viewer.is-video-restricted .news-media-viewer-canvas {
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .fixture-news-media-restricted-label {
    display: none;
  }

  .news-media-viewer-restricted {
    width: calc(100vw - 28px);
    min-height: 220px;
    padding: 28px 22px;
  }

  .news-media-viewer-restricted > p {
    font-size: 15px;
  }
}

.news-media-viewer {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(1, 7, 12, .985);
  color: #f2f8fa;
}

.news-media-viewer,
.news-media-viewer * {
  box-sizing: border-box;
}

.news-media-viewer::backdrop {
  background: rgba(0, 5, 9, .92);
  backdrop-filter: blur(8px);
}

.news-media-viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.news-media-viewer.is-fallback-open {
  position: fixed;
  z-index: 2000;
  inset: 0;
}

.news-media-viewer-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 68px;
  align-items: center;
  gap: 16px;
  padding: 10px 18px 10px 22px;
  border-bottom: 1px solid rgba(143, 185, 202, .2);
  background: rgba(3, 16, 25, .94);
}

.news-media-viewer-title {
  min-width: 0;
}

.news-media-viewer-title b {
  display: block;
  overflow: hidden;
  color: #eff7fa;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-media-viewer-title small {
  display: block;
  margin-top: 3px;
  color: #829ca8;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.news-media-viewer-actions {
  display: flex;
  gap: 8px;
}

.news-media-viewer-actions :is(a, button),
.news-media-viewer-nav {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(143, 185, 202, .3);
  border-radius: 0;
  background: rgba(10, 37, 52, .9);
  color: #dce9ee;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.news-media-viewer-actions :is(a, button):hover,
.news-media-viewer-nav:hover {
  border-color: rgba(183, 243, 74, .62);
  color: #e8ffbd;
}

.news-media-viewer-actions :is(a, button):focus-visible,
.news-media-viewer-nav:focus-visible {
  outline: 2px solid var(--news-viewer-lime);
  outline-offset: 2px;
}

.news-media-viewer-actions [data-news-media-fullscreen] {
  padding-inline: 13px;
}

.news-media-viewer-actions [data-news-media-close] {
  font-size: 24px;
  line-height: 1;
}

.news-media-viewer-stage {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  padding: 20px 76px;
  background:
    radial-gradient(circle at 50% 45%, rgba(46, 90, 111, .2), transparent 42%),
    #01070b;
}

.news-media-viewer-canvas {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  place-items: center;
}

.news-media-viewer-canvas :is(img, video) {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .44);
}

.news-media-viewer-canvas video {
  width: min(1180px, 100%);
  height: auto;
  max-height: 100%;
  background: #000;
}

.news-media-viewer-video-shell {
  display: grid;
  box-sizing: border-box;
  width: min(100%, clamp(1180px, 72vw, 2560px));
  height: auto;
  max-height: 100%;
  min-height: 0;
  grid-template-rows: auto auto;
  place-self: center;
  overflow: hidden;
  border: 1px solid rgba(143, 185, 202, .22);
  background: #000;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .44);
}

.news-media-viewer-canvas .news-media-viewer-video-shell video {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: var(--news-video-aspect, 16 / 9);
  object-fit: contain;
  box-shadow: none;
}

.news-media-viewer-video-controls {
  display: grid;
  box-sizing: border-box;
  min-height: 60px;
  grid-template-columns: auto minmax(120px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-top: 1px solid rgba(143, 185, 202, .24);
  background: #06141e;
}

.news-video-control-button {
  display: inline-flex;
  min-width: 72px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(143, 185, 202, .34);
  border-radius: 0;
  background: rgba(10, 37, 52, .96);
  color: #e5eff3;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.news-video-control-button:hover {
  border-color: rgba(183, 243, 74, .68);
  color: #edffc9;
}

.news-video-control-button:focus-visible,
.news-video-progress:focus-visible {
  outline: 2px solid var(--news-viewer-lime);
  outline-offset: 2px;
}

.news-video-control-button span {
  min-width: 14px;
  color: var(--news-viewer-lime);
  font-size: 18px;
  line-height: 1;
}

.news-video-control-button b {
  font-size: 14px;
}

.news-video-progress {
  --news-video-progress: 0%;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.news-video-progress::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--news-viewer-lime) 0 var(--news-video-progress),
    rgba(143, 185, 202, .3) var(--news-video-progress) 100%
  );
}

.news-video-progress::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border: 2px solid #06141e;
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--news-viewer-lime);
  box-shadow: 0 0 0 2px rgba(183, 243, 74, .2);
}

.news-video-progress::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(143, 185, 202, .3);
}

.news-video-progress::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--news-viewer-lime);
}

.news-video-progress::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid #06141e;
  border-radius: 50%;
  background: var(--news-viewer-lime);
  box-shadow: 0 0 0 2px rgba(183, 243, 74, .2);
}

.news-video-progress:disabled {
  opacity: .52;
  cursor: wait;
}

.news-video-time {
  min-width: 98px;
  color: #c8d7dd;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}

.news-media-viewer.is-video .news-media-viewer-actions [data-news-media-fullscreen] {
  display: none;
}

.news-media-viewer-status {
  display: grid;
  min-height: 110px;
  place-items: center;
  color: #a9bdc6;
  font-size: 14px;
}

.news-media-viewer-status::before {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border: 2px solid rgba(143, 185, 202, .24);
  border-top-color: var(--news-viewer-lime);
  border-radius: 50%;
  content: "";
  animation: news-media-spin .8s linear infinite;
}

.news-media-viewer-status.is-error::before {
  display: none;
}

.news-media-viewer-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 48px;
  height: 58px;
  font-size: 28px;
  transform: translateY(-50%);
}

.news-media-viewer-nav[data-news-media-prev] {
  left: 16px;
}

.news-media-viewer-nav[data-news-media-next] {
  right: 16px;
}

.news-media-viewer-nav[hidden] {
  display: none;
}

.news-media-viewer-foot {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 10px max(18px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  border-top: 1px solid rgba(143, 185, 202, .18);
  background: rgba(3, 16, 25, .94);
  color: #c3d2d8;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.news-media-viewer-foot:empty {
  min-height: 12px;
  padding-block: 5px;
}

@keyframes news-media-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 600px), (max-width: 900px) and (max-height: 600px) {
  .news-media-viewer-video-controls {
    min-height: 98px;
    grid-template-areas:
      "toggle time fullscreen"
      "progress progress progress";
    grid-template-columns: auto minmax(88px, 1fr) auto;
    gap: 2px 8px;
    padding: 5px 8px;
  }

  .news-media-viewer-video-controls [data-news-video-toggle] {
    grid-area: toggle;
  }

  .news-media-viewer-video-controls [data-news-video-progress] {
    grid-area: progress;
  }

  .news-media-viewer-video-controls [data-news-video-time] {
    grid-area: time;
  }

  .news-media-viewer-video-controls [data-news-video-native-fullscreen] {
    grid-area: fullscreen;
  }
}

@media (max-width: 900px) and (max-height: 600px) {
  .news-media-viewer-stage {
    padding-block: 8px;
  }
}

@media (max-width: 600px) {
  .news-media-viewer-head {
    min-height: 60px;
    gap: 8px;
    padding: max(8px, env(safe-area-inset-top)) 8px 8px 13px;
  }

  .news-media-viewer-title b {
    font-size: 14px;
  }

  .news-media-viewer-actions {
    gap: 5px;
  }

  .news-media-viewer-actions [data-news-media-fullscreen] {
    width: 44px;
    padding: 0;
    font-size: 0;
  }

  .news-media-viewer-actions [data-news-media-fullscreen]::before {
    font-size: 20px;
    content: "⛶";
  }

  .news-media-viewer-stage {
    padding: 8px;
  }

  .news-video-control-button {
    min-width: 76px;
    padding-inline: 9px;
  }

  .news-video-progress {
    min-height: 44px;
  }

  .news-media-viewer-nav {
    top: auto;
    bottom: 10px;
    width: 48px;
    height: 48px;
    background: rgba(3, 18, 28, .86);
    transform: none;
  }

  .news-media-viewer-nav[data-news-media-prev] {
    left: 10px;
  }

  .news-media-viewer-nav[data-news-media-next] {
    right: 10px;
  }

  .news-media-viewer.is-video .news-media-viewer-nav {
    top: calc(50% - 48px);
    bottom: auto;
    transform: translateY(-50%);
  }

  .news-media-viewer-foot {
    min-height: 48px;
    padding-inline: 66px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-media-viewer-status::before {
    animation-duration: 1.8s;
  }
}
