dplayer {
  --focus-color: #f04494;
  --muted-color: #666;
}

dplayer .controller-hide .dplayer-controller-mask,
dplayer .controller-hide .dplayer-controller,
dplayer.controller-hide .dplayer-controller-mask,
dplayer.controller-hide .dplayer-controller {
  display: none !important;
}

dplayer .featured-video-episode {
  margin-bottom: 0;
  line-height: 1.4;
  font-size: 14px;
}

dplayer .switch-iframe.active,
dplayer .switch-video.active {
  color: var(--focus-color);
}

dplayer .featured-video-episode .switch-video,
dplayer .switch-iframe {
  line-height: 1.6;
  border-radius: 4px;
  text-align: center;
  background: rgba(136, 136, 136, .1);
  --main-color: var(--muted-color);
  display: inline-block;
  margin: 4px 4px 0;
  min-width: calc(20% - 8px);
}

dplayer .more-posts a>span,
dplayer .relates-thumb li a>.post-info,
dplayer a[href] {
  transition: color .2s, background .3s, opacity .3s, box-shadow .3s, transform .3s;
}

dplayer .text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

dplayer .switch-iframe.active .badg,
dplayer .switch-video.active .badg {
  background: var(--focus-color);
  color: #fff;
}

dplayer .featured-video-episode .badg.badg-sm {
  min-width: 16px;
  width: 16px;
}

dplayer .active.badg,
dplayer .active>.badg:not(.vip-tag) {
  --this-bg: var(--focus-color);
  --this-color: #fff;
}

dplayer .badg.badg-sm,
dplayer .but.badg-sm {
  font-size: .8em;
  vertical-align: .1em;
  min-width: 1em;
}

dplayer .dplayer-video-wrap {
  background: #ffffff00;
}

dplayer .new-dplayer .graphic {
  position: relative;
  padding-bottom: 56.25%;
}

dplayer .dplayer-initialized .graphic {
  display: none;
}

dplayer .abs-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
}

dplayer .dplayer-featured {
  --episode-row-height: 40px;
  --episode-gap: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: var(--episode-row-height);
  gap: var(--episode-gap);
  margin-top: .5rem;
  margin-bottom: .5rem;
  max-height: calc(var(--episode-row-height) * 4 + var(--episode-gap) * 3);
  overflow-y: auto;
  padding: 4px;
  align-content: start;
}

dplayer .dplayer-featured .switch-video {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 5px;
  background: rgba(136, 136, 136, .08);
  border: 1px solid rgba(136, 136, 136, .2);
  color: var(--muted-color, #666);
  margin: 0;
  min-width: auto;
  min-height: var(--episode-row-height, 36px);
  box-sizing: border-box;
  font-size: 13px;
  position: relative;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
  cursor: pointer;
  text-decoration: none;
}

dplayer .dplayer-featured .switch-video .episode-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

dplayer .dplayer-featured .switch-video .episode-title {
  flex: 1;
  text-align: center;
  font-weight: 500;
}

dplayer .dplayer-featured .switch-video:hover,
dplayer .dplayer-featured .switch-video:focus,
dplayer .dplayer-featured .switch-video:active {
  text-decoration: none;
}

dplayer .dplayer-featured .switch-video:hover {
  background: rgba(136, 136, 136, .15);
}

dplayer .dplayer-featured .switch-video.active {
  color: var(--focus-color, #f04494);
  border-color: var(--focus-color, #f04494);
  background: rgba(240, 68, 148, .10);
}

dplayer .dplayer-featured .switch-video .episode-badge {
  background: rgba(136, 136, 136, .25);
  color: #fff;
}

dplayer .dplayer-featured .switch-video.active .episode-badge {
  background: var(--focus-color, #f04494);
}

dplayer .dplayer-featured .switch-video:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(240, 68, 148, .25);
}

@media (max-width: 640px) {
  dplayer .new-dplayer,
  dplayer.new-dplayer {
    border-radius: 8px;
  }

  dplayer .dplayer-featured .switch-video {
    min-height: 40px;
  }
}

@media (min-width: 768px) {
  dplayer .dplayer-featured {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  dplayer .dplayer-featured {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
