/* Modal shell + classic bsdn player */
.vv_layer {
  padding: 40px 0 60px;
  position: relative;
  z-index: 520;
}

.vv_wrap {
  position: relative;
  width: min(960px, calc(100vw - 48px));
  margin: 0 auto;
  background: #000;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.vv_chrome {
  position: absolute;
  top: -34px;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vv_close {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 26px;
  line-height: 24px;
  cursor: pointer;
  opacity: 0.8;
}

.vv_close:hover {
  opacity: 1;
}

.bsdn {
  position: relative;
  width: 100%;
  background: #000;
}

.bsdn-player {
  width: 100%;
  position: relative;
  display: inline-flex;
  font-family: Tahoma, sans-serif;
  user-select: none;
  background-color: black;
  min-height: 200px;
  aspect-ratio: 16 / 9;
}

.bsdn-player > .bsdn_controls,
.bsdn-player > .bsdn_teaserWrap,
.bsdn-player > .bsdn_contextMenu {
  position: absolute;
}

.bsdn_contextMenu {
  z-index: 3;
  background-color: #f4f4f4;
  padding: 6px;
  border: 1px solid #908f90;
  width: 232px;
  height: 169px;
  font-size: 13px;
  box-sizing: border-box;
  display: none;
}

.bsdn-player.bsdn-dirty > .bsdn_controls,
.bsdn-player.is_controls > .bsdn_controls,
.bsdn-player.is_hover > .bsdn_controls,
.bsdn-player.is_paused > .bsdn_controls {
  opacity: 1;
}

.bsdn_controls {
  display: flex;
  width: 100%;
  bottom: 0;
  left: 0;
  background-color: hsl(0deg 0% 0% / 59%);
  border-top: 1px solid hsl(0deg 0% 100% / 70%);
  padding: 7px 12px;
  color: #fff;
  align-items: center;
  box-sizing: border-box;
  gap: 6px;
  z-index: 2;
  opacity: 0;
  height: 43px;
  transition: opacity 0.12s ease;
}

button.bsdn_playButton {
  appearance: none;
  background: none;
  border: none;
  color: #fff;
  padding: 0 8px;
  padding-left: 0;
  font-size: 22px;
  cursor: pointer;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button.bsdn_playButton img {
  padding-right: 2px;
  padding-top: 3px;
  height: 19px;
  width: auto;
  display: block;;
}

button.bsdn_playButton .bsdn_playpause {
  display: block;
  width: 16px;
  height: 16px;
}

.bsdn-player:not(.is_paused) button.bsdn_playButton .bsdn_playpause {
  background-position: 0 -16px;
}

.bsdn_terebilkaWrap {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bsdn_terebilkaUpperWrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bsdn_logo {
  width: 70px;
  margin: 2px 0;
  display: block;
}

p.bsdn_timeWrap {
  display: inline;
  margin: 0;
  font-size: 7pt;
  font-weight: bold;
  white-space: nowrap;
}

time.bsdn_timeFull {
  margin-left: 10px;
  color: #b1b1b1;
}

.bsdn_terebilkaLowerWrap,
.bsdn_soundControlSubWrap {
  position: relative;
  height: 6px;
  border-top: 1px solid white;
  cursor: pointer;
}

.bsdn_terebilkaFill,
.bsdn_soundControlFill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  pointer-events: none;
}

.bsdn_terebilkaBrick,
.bsdn_soundControlBrick {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 15px;
  background-color: #fff;
  pointer-events: none;
}

.bsdn_fullScreenButton > img,
.bsdn_repeatButton > img,
.bsdn_soundIcon,
.bsdn_qualityButton > img {
  vertical-align: middle;
}

.bsdn_soundIcon {
  cursor: pointer;
  display: block;
}

.bsdn_soundControl {
  width: 64px;
  height: 0;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.bsdn_soundControlPadding {
  display: none;
}

.bsdn_soundControlSubWrap {
  width: 90%;
  height: 6px;
}

.bsdn_fullScreenButton,
.bsdn_repeatButton,
.bsdn_qualityButton {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bsdn_repeatButton.is_on {
  outline: 1px solid rgba(255, 255, 255, 0.55);
}

.bsdn_quality_wrap {
  position: relative;
}

.bsdn_teaser {
  display: flex;
  padding: 12px 16px;
  width: 248px;
  min-height: 78px;
  background-color: rgba(36, 36, 36, 0.86);
  border-radius: 8px;
  align-items: stretch;
  justify-content: space-between;
  box-sizing: border-box;
}

.bsdn_teaserTitleBox {
  display: flex;
  color: white;
  flex-direction: column;
  justify-content: space-around;
  text-align: left;
  padding-right: 10px;
  min-width: 0;
}

.bsdn_teaserTitleBox b {
  display: block;
  font-size: 13px;
  line-height: 1.3;
  word-wrap: break-word;
}

.bsdn_teaserTitleBox .author_lnk {
  color: #d8d8d8 !important;
  text-decoration: none;
  font-size: 12px;
}

.bsdn_teaser_hd {
  display: block;
  margin-top: 4px;
  color: #cfd8e3 !important;
  font-size: 11px;
  text-decoration: none;
}

.bsdn_teaser_hd:hover {
  text-decoration: underline !important;
}

a.author_lnk:hover {
  text-decoration: underline !important;
}

.bsdn_teaserButton {
  cursor: pointer;
  flex: 0 0 auto;
}

.bsdn_teaserButton > img {
  max-height: 72px;
  margin: 0;
  display: block;
}

.bsdn_video {
  width: 100%;
  height: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  inset: 0;
}

.bsdn_video > video,
.bsdn_video > iframe {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  border: 0;
  background: #000;
}

.bsdn_teaserWrap {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 1;
  color: #fff;
  display: none;
  justify-content: center;
  align-items: center;
  gap: 28px;
  background-color: hsl(0deg 0% 0% / 18%);
  cursor: pointer;
}

.bsdn-player.is_paused > .bsdn_teaserWrap,
.bsdn-player.show_teaser > .bsdn_teaserWrap {
  display: flex;
}

.bsdn-player.is_youtube.is_playing > .bsdn_teaserWrap {
  display: none;
}

.bsdn-player.is_youtube > .bsdn_controls {
  display: none;
}

.bsdn-player:fullscreen {
  width: 100vw;
  height: 100vh;
  position: relative;
  background-color: black;
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
}

.bsdn-player:fullscreen .bsdn_video > video,
.bsdn-player:fullscreen .bsdn_video > iframe {
  width: 100%;
  height: 100vh !important;
  max-height: none;
}

.bsdn_fullScreenButton > img:hover {
  background: url(/images/fullscreen_hover.gif);
  object-fit: none;
  object-position: -64px 0;
}

.quality_select {
  position: absolute;
  background: black;
  top: -54px;
  right: 3px;
  color: #fff;
  font-size: 11px;
  z-index: 5;
  min-width: 48px;
  text-align: center;
}

.quality_select > div,
#quality_sel {
  padding: 5px;
  cursor: pointer;
}

.quality_select > div:hover,
#quality_sel:hover {
  background: gray;
}

.quality_select > div.is_active {
  background: #45688e;
}

#layer_bg.vv_dark {
  background: #2a2a2a;
  opacity: 0.92;
  filter: alpha(opacity=92);
  display: block !important;
  z-index: 500;
}

body.layers_shown #layer_wrap.vv_wrap_open,
#layer_wrap.vv_wrap_open {
  display: block !important;
  z-index: 510;
}

/* Date / likes / comments under player */
.vv_wrap.has_side {
  background: transparent;
}

.vv_side {
  padding: 14px 18px 16px;
  background: #f6f7f8;
  color: #222;
  text-align: left;
}

.vv_foot {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.vv_foot_main {
  flex: 1;
  min-width: 0;
}

.vv_related {
  width: 220px;
  flex: 0 0 220px;
}

.vv_related_title {
  color: #777;
  font-size: 11px;
  margin-bottom: 8px;
}

.vv_related_item {
  display: block;
  margin: 0 0 10px;
  color: #2b587a;
  text-decoration: none;
}

.vv_related_item:hover {
  text-decoration: none;
}

.vv_related_thumb {
  position: relative;
  display: block;
  width: 112px;
  height: 64px;
  background: #000;
  overflow: hidden;
  margin-bottom: 0;
  flex: 0 0 112px;
  border-radius: 2px;
}

.vv_related_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vv_related_dur {
  position: absolute;
  right: 4px;
  bottom: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 10px;
  padding: 1px 4px;
}

.vv_related_meta {
  min-width: 0;
}

.vv_related_name {
  display: block;
  font-size: 11px;
  line-height: 14px;
  max-height: 28px;
  overflow: hidden;
  color: #2b587a;
}

.vv_foot_actions {
  margin: 8px 0 6px;
}

.vv_foot_actions .vv_like,
.vv_foot_actions .vv_action {
  margin-right: 14px;
}

.vv_meta {
  margin-bottom: 10px;
  font-size: 11px;
  color: #777;
  line-height: 16px;
}

.vv_meta_div {
  margin: 0 8px;
  color: #d3d9de;
}

.vv_date {
  color: #777;
}

.vv_like {
  cursor: pointer;
  color: #2b587a;
}

.vv_like:hover .vv_like_link {
  text-decoration: underline;
}

.vv_like.vv_liked,
.vv_like.vv_liked .vv_like_link {
  color: #7295b2;
}

.vv_like_icon {
  display: inline-block;
  width: 12px;
  height: 11px;
  margin: 2px 4px 0;
  background: url(/images/icons/like.gif) no-repeat 0 0;
  opacity: 0.4;
}

.vv_like.vv_liked .vv_like_icon,
.vv_like_icon:not(.nolikes) {
  opacity: 1;
}

.vv_like_count {
  color: #7295b2;
  font-weight: bold;
}

.vv_title_block {
  margin: 0 0 10px;
}

.vv_side_title {
  font-size: 14px;
  font-weight: bold;
  color: #45688e;
  line-height: 18px;
  word-wrap: break-word;
}

.vv_side_desc {
  margin-top: 6px;
  font-size: 12px;
  line-height: 150%;
  color: #000;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.vv_actions {
  margin: 0 0 12px;
  font-size: 11px;
}

.vv_action {
  color: #2b587a;
  margin-right: 12px;
  text-decoration: none;
}

.vv_action:hover {
  text-decoration: underline;
}

.vv_edit_form {
  margin-top: 8px;
}

.vv_edit_title,
.vv_edit_desc {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 8px;
  padding: 6px 8px;
  border: 1px solid #c0cad5;
  border-radius: 2px;
  font: 12px/1.4 tahoma, arial, verdana, sans-serif;
  outline: none;
}

.vv_edit_desc {
  min-height: 64px;
  resize: vertical;
}

.vv_edit_title:focus,
.vv_edit_desc:focus {
  border-color: #8ba0b5;
}

.vv_edit_actions {
  margin-top: 2px;
}

[data-video-edit-box] .ve_field {
  margin-bottom: 14px;
}

[data-video-edit-box] .ve_label {
  color: #555;
  margin-bottom: 5px;
  font-size: 12px;
}

[data-video-edit-box] .ve_input,
[data-video-edit-box] .ve_textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 5px 7px;
  border: 1px solid #c0cad5;
  outline: none;
  font: 12px/1.4 tahoma, arial, verdana, sans-serif;
}

[data-video-edit-box] .ve_textarea {
  min-height: 72px;
  resize: vertical;
}

[data-video-edit-box] .ve_input:focus,
[data-video-edit-box] .ve_textarea:focus {
  border-color: #8ba0b5;
}

[data-video-edit-box] .ve_covers_row {
  position: relative;
  padding: 0 18px;
}

[data-video-edit-box] .ve_covers {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 2px 0;
}

[data-video-edit-box] .ve_covers::-webkit-scrollbar {
  display: none;
}

[data-video-edit-box] .ve_cover {
  position: relative;
  flex: 0 0 96px;
  width: 96px;
  height: 72px;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

[data-video-edit-box] .ve_cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-video-edit-box] .ve_cover.selected::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

[data-video-edit-box] .ve_cover_check {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 2px solid #fff;
  border-radius: 50%;
  z-index: 2;
  box-sizing: border-box;
}

[data-video-edit-box] .ve_cover_check::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 3px;
  width: 7px;
  height: 13px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

[data-video-edit-box] .ve_cover.selected .ve_cover_check {
  display: block;
}

[data-video-edit-box] .ve_covers_arrow {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 22px;
  margin-top: -11px;
  cursor: pointer;
  opacity: 0.45;
  background: no-repeat center / 10px 16px;
}

[data-video-edit-box] .ve_covers_arrow:hover {
  opacity: 0.85;
}

[data-video-edit-box] .ve_covers_prev {
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='16' viewBox='0 0 10 16'%3E%3Cpath fill='%23888' d='M9 1L2 8l7 7'/%3E%3C/svg%3E");
}

[data-video-edit-box] .ve_covers_next {
  right: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='16' viewBox='0 0 10 16'%3E%3Cpath fill='%23888' d='M1 1l7 7-7 7'/%3E%3C/svg%3E");
}

[data-video-edit-box] .ve_privacy_rows {
  margin: 14px 0 12px;
  color: #000;
  line-height: 1.7;
}

[data-video-edit-box] .ve_privacy_link {
  color: #2b587a;
  text-decoration: none;
  margin-left: 4px;
}

[data-video-edit-box] .ve_privacy_link:hover {
  text-decoration: underline;
}

[data-video-edit-box] .ve_loop {
  margin-top: 4px;
  cursor: pointer;
}

[data-video-edit-box] .ve_loop .checkbox_label {
  color: #000;
  padding-left: 6px;
}

.vv_author_row {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e7e8ec;
}

.vv_author_ava {
  margin-right: 10px;
}

.vv_author_ava img {
  border-radius: 2px;
  display: block;
}

.vv_author_name {
  color: #2b587a;
  font-weight: bold;
  text-decoration: none;
}

.vv_author_name:hover {
  text-decoration: underline;
}

.vv_comments {
  margin-bottom: 8px;
}

.vv_comment {
  border-top: 1px solid #e9edf1;
  padding: 8px 0;
}

.vv_comment:first-child {
  border-top: 0;
  padding-top: 0;
}

.vv_comment_thumb {
  margin-right: 10px;
}

.vv_comment_thumb img {
  display: block;
  border-radius: 2px;
}

.vv_comm {
  overflow: hidden;
}

.vv_comm .author {
  color: #2b587a;
  font-weight: bold;
  text-decoration: none;
}

.vv_comm .author:hover {
  text-decoration: underline;
}

.vv_comm_text {
  padding-top: 2px;
  line-height: 130%;
  word-wrap: break-word;
}

.vv_comm_info {
  padding-top: 4px;
  font-size: 10px;
  color: #999;
}

.vv_comm_delete {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  cursor: pointer;
  display: none;
  background: #c4d2e1 url(/images/small_delete.gif) no-repeat 0 0;
}

.vv_comment:hover .vv_comm_delete {
  display: block;
}

.vv_your_comment {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #e7e8ec;
}

.vv_comment_header {
  color: #45688e;
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 12px;
}

.vv_comment_area {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 6px 8px;
  border: 1px solid #c0cad5;
  border-radius: 2px;
  resize: vertical;
  font: 12px/1.4 tahoma, arial, verdana, sans-serif;
  outline: none;
}

.vv_comment_area:focus {
  border-color: #8ba0b5;
}

.vv_comment_submit {
  margin-top: 8px;
}

@media (max-width: 720px) {
  .vv_wrap {
    width: calc(100vw - 16px);
  }

  .bsdn_soundControl {
    width: 84px;
  }

  .bsdn_teaser {
    width: min(248px, calc(100% - 24px));
  }

  .bsdn_teaserWrap {
    gap: 16px;
    flex-wrap: wrap;
  }

  .vv_foot {
    flex-direction: column;
  }

  .vv_related {
    width: 100%;
    flex: none;
  }
}

.vv_min,
.vv_expand {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  opacity: 0.8;
  position: relative;
  padding: 0;
}

.vv_min:hover,
.vv_expand:hover {
  opacity: 1;
}

.vv_min::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 13px;
  width: 14px;
  height: 2px;
  background: #fff;
}

.vv_expand {
  display: none;
}

.vv_expand::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 7px;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  box-sizing: border-box;
}

body.vv_mini_open {
  overflow: auto !important;
}

body.vv_mini_open #layer_bg,
body.vv_mini_open #layer_bg.vv_dark,
body.vv_mini_open #layer_bg.pv_dark {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#layer_wrap.vv_wrap_open.vv_mini {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 800 !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

#layer_wrap.vv_mini #layer,
#layer_wrap.vv_mini #layer.vv_layer {
  padding: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: visible !important;
  pointer-events: none !important;
}

#layer_wrap.vv_mini .vv_wrap {
  pointer-events: auto;
  position: fixed;
  width: 320px;
  right: 16px;
  bottom: 16px;
  left: auto;
  top: auto;
  margin: 0;
  z-index: 801;
  cursor: move;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

#layer_wrap.vv_mini .vv_wrap.is_dragging {
  user-select: none;
}

#layer_wrap.vv_mini .vv_side {
  display: none;
}

#layer_wrap.vv_mini .vv_chrome {
  top: 6px;
  right: 6px;
}

#layer_wrap.vv_mini .vv_chrome,
#layer_wrap.vv_mini .vv_chrome button {
  cursor: pointer;
}

#layer_wrap.vv_mini .vv_min {
  display: none;
}

#layer_wrap.vv_mini .vv_expand {
  display: block;
}

#layer_wrap.vv_mini .bsdn-player {
  min-height: 0;
  height: 180px;
  aspect-ratio: auto;
}

#layer_wrap.vv_mini .bsdn_logo,
#layer_wrap.vv_mini .bsdn_repeatButton,
#layer_wrap.vv_mini .bsdn_quality_wrap,
#layer_wrap.vv_mini .bsdn_soundControl {
  display: none;
}
