repost-player {
  display: block;
  position: relative;
  margin: 0 8px 8px;
  overflow: hidden;
  border-radius: calc(var(--card-radius) - 8px);
  background: #070707;
  color: #fff;
  color-scheme: dark;
}
repost-player .news-video {
  display: block;
  width: 100%;
  max-height: 57vh;
  max-height: 57dvh;
  border-radius: 0;
  background: #070707;
  cursor: pointer;
  -webkit-touch-callout: none;
}
.player-panel {
  position: relative;
  padding: 2px clamp(14px,5%,30px) 7px;
  background: #070707;
  color: #fff;
}
.player-keys { display: flex; align-items: center; justify-content: space-between; }
.player-key {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
}
.player-key svg { display: block; width: 23px; height: 23px; pointer-events: none; }
.player-key[data-video-action="play"] svg { width: 29px; height: 29px; }
.player-key[data-video-action="more"] svg { width: 20px; height: 20px; }
.player-key:disabled { opacity: .38; cursor: default; }
.player-key:active:not(:disabled), .player-key[aria-expanded="true"] { background: #292929; }
.player-key:focus-visible, .player-menu button:focus-visible, .player-seek:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}
.player-seek {
  --played: 0%;
  display: block;
  width: calc(100% - 24px);
  height: 28px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 6px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}
.player-seek::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(to right,#fff 0 var(--played),#858585 var(--played) 100%);
}
.player-seek::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
}
.player-seek::-moz-range-track { height: 3px; border-radius: 3px; background: #858585; }
.player-seek::-moz-range-progress { height: 3px; border-radius: 3px; background: #fff; }
.player-seek::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #fff; }
.player-seek:disabled { cursor: default; }
.player-menu {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 52px;
  min-width: 168px;
  padding: 4px;
  border: 1px solid #555;
  border-radius: 14px;
  background: #242424;
  box-shadow: 0 4px 16px #0005;
}
.player-menu[hidden], .player-menu button[hidden] { display: none; }
.player-menu button {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  border-radius: 9px;
  padding: 4px 10px;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.player-menu button span { color: #ccc; font-variant-numeric: tabular-nums; }
.player-notice {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 11px;
  border-radius: 16px;
  color: #fff;
  background: #181818eb;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  pointer-events: none;
}
.player-notice:empty { padding: 0; }
@media (hover: hover) {
  .player-key:hover:not(:disabled), .player-menu button:hover { background: #303030; }
}
repost-player:fullscreen {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  border-radius: 0;
}
repost-player:fullscreen .news-video { flex: 1 1 0; min-height: 0; max-height: none; object-fit: contain; }
repost-player:fullscreen .player-panel { flex: none; width: min(100%,520px); margin-inline: auto; padding-bottom: max(8px,env(safe-area-inset-bottom)); }
