* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #edf0f7;
  color: #2d2d2d;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.vd-page {
  min-height: 100vh;
  background: #edf0f7;
}

.vd-shell {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  padding-bottom: 14px;
}

.vd-cover {
  width: 100%;
  /*height: min(62vw, 250px);*/
  min-height: 168px;
  background: #173d2e;
  overflow: hidden;
}

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

.vd-center {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

.vd-head {
  padding:28px;
  background: #fff;
  border-bottom: 10px solid #f7f7f7;
}

.vd-title {
  margin: 0;
  color: #222;
  font-size: 36px;
  line-height: 1.25;
  font-weight: 700;
}

.vd-stat {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #9b9ca0;
  font-size: 11px;
  margin-top: 20px;
  
}

.vd-stat span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.vd-stat span::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background-color: #eef2f8;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  box-shadow: inset 0 0 0 1px #d9dee7;
}

.vd-stat span:first-child::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d96a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5a2.5 2.5 0 0 1 2.5-2.5H20v16.5H6.5A2.5 2.5 0 0 0 4 22V5.5z'/%3E%3Cpath d='M8 7h8M8 11h8'/%3E%3C/svg%3E");
}

.vd-stat span:last-child::before {
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d96a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m10 8 6 4-6 4V8z' fill='%238d96a8' stroke='none'/%3E%3C/svg%3E");
}

.vd-tabs {
  display: flex;
  align-items: center;
  background: #fff;
  border-top: 1px solid #e3e4e8;
  border-bottom: 1px solid #d8d9dd;
}

.vd-tab {
  position: relative;
  flex: 1;
  height: 50px;
  line-height: 50px;
  text-align: center;
  font-size: 30px;
  color: #4d4d4d;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.vd-tab.active {
  color: #1f1f1f;
  font-weight: 700;
}

.vd-tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 18px;
  height: 3px;
  margin-left: -9px;
  background: #ff2e45;
  border-radius: 3px;
}

.vd-body {
  padding: 10px 8px 0;
}

.vd-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 10px;
  border-bottom: 1px solid #e8e8eb;
}

.vd-section-left {
  position: relative;
  color: #232323;
  font-size: 30px;
  font-weight: 700;
  padding-left: 8px;
}

.vd-section-left::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 2px;
  height: 16px;
  background: #ff3d4f;
}

.vd-section-right {
  color: #8f8f93;
  font-size: 24px;
}

.vd-sort-switch {
  margin-left: 8px;
}

.vd-sort-link {
  color: #8f8f93;
  font-weight: 400;
}

.vd-sort-link.active {
  color: #2a2a2a;
  font-weight: 700;
}

.vd-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.vd-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 10px;
  border-radius: 9px;
  border: 1px solid #ececef;
  background: #f4f4f5;
}

.vd-item.active {
  border-color: #ffd6db;
  background: #fff6f8;
}

.vd-item-no {
  width: 28px;
  flex: 0 0 28px;
  color: #b5b5b8;
  text-align: center;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 600;
}

.vd-item-main {
  min-width: 0;
  flex: 1;
}

.vd-item-title {
  color: #2a2a2a;
  font-size: 16px;
  line-height: 1.4;
  word-break: break-word;
}

.vd-item-meta {
  margin-top: 6px;
  color: #a0a0a4;
  font-size: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.vd-item-meta span {
  color: #d3d3d7;
}

.vd-item-meta em {
  color: #ff4256;
  font-style: normal;
}

.vd-intro {
  padding: 10px;
  background: #edf0f7;
  color: #3a3a3a;
  font-size: 15px;
  word-break: break-word;
  background-color: #fff;
}

.vd-intro > * {
  margin: 0;
}

.vd-intro p,
.vd-intro div,
.vd-intro section {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.vd-intro .ql-editor-h5-wrap,
.vd-intro .ql-editor-h5 {
  visibility: visible !important;
}

.vd-intro [style*="visibility:hidden"],
.vd-intro [style*="visibility: hidden"] {
  visibility: visible !important;
}

.vd-intro video,
.vd-intro iframe,
.vd-intro picture {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

.vd-intro img{
    width: 100%;
    line-height: 0;
}

.vd-intro table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed;
}

.vd-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
}

.vd-player video,
.vd-player-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.vd-player .prism-player,
.vd-player .vd-player-surface,
.vd-player #vdAliPlayer {
  width: 100%;
  height: 100%;
}

.vd-player .plyr,
.vd-player .plyr__video-wrapper {
  width: 100%;
  height: 100%;
}

.vd-player {
  --plyr-color-main: #ff2e45;
}

.vd-player-row {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  background: #fff9ef;
  border-bottom: 1px solid #f0ebe2;
  color: #ff9a00;
  font-size: 13px;
}

.vd-player-row span {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.vd-player-row span:last-child {
  flex: 0 0 auto;
}

.vd-player-panels .vd-pane {
  display: none;
}

.vd-player-panels .vd-pane.active {
  display: block;
}

.vd-mode-player .vd-cover,
.vd-mode-player .vd-head {
  display: none;
}

.vd-mode-player .vd-shell {
  padding-bottom: 8px;
}

.vd-mode-player .vd-tabs {
  border-top: 0;
}

.vd-mode-player .vd-tab {
  height: 46px;
  line-height: 46px;
  font-size: 17px;
}

.vd-password {
  margin: 0;
  padding: 12px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: #f8f8f9;
}

.vd-input {
  width: 100%;
  height: 42px;
  border: 1px solid #d7d8dc;
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  outline: none;
  color: #333;
  font-size: 15px;
}

.vd-input:focus {
  border-color: #ff6676;
}

.vd-modal-actions {
  margin-top: 10px;
}

.vd-btn {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  background: linear-gradient(90deg, #ff445a, #ff2e44);
  cursor: pointer;
}

.vd-btn-cancel {
  margin-top: 8px;
  background: #fff;
  color: #666;
  border: 1px solid #d7d8dc;
}

.vd-err {
  margin-top: 8px;
  color: #ff4156;
  font-size: 13px;
}

.vd-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.vd-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.vd-modal-panel {
  position: relative;
  width: min(360px, 100%);
  border-radius: 12px;
  border: 1px solid #e1e2e6;
  background: #f0f0f2;
  padding: 14px;
}

.vd-modal-title {
  margin-bottom: 8px;
  color: #1f1f1f;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
}

.vd-modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .vd-shell {
    max-width: 100%;
  }

  .vd-title {
    font-size: 18px;
  }

  .vd-tab {
    font-size: 17px;
  }

  .vd-section-left {
    font-size: 16px;
  }

  .vd-section-right {
    font-size: 13px;
  }

  .vd-item-no {
    font-size: 13px;
  }

  .vd-item-title {
    font-size: 16px;
  }

  .vd-item-meta {
    font-size: 12px;
  }
}

@media (min-width: 761px) {
  .vd-shell {
    max-width: 760px;
    border-left: 1px solid #dfe2ea;
    border-right: 1px solid #dfe2ea;
    box-shadow: 0 0 0 1px #e8ebf2;
  }

  .vd-tab {
    font-size: 20px;
  }

  .vd-section-left {
    font-size: 18px;
  }

  .vd-section-right {
    font-size: 14px;
  }

  .vd-item-no {
    font-size: 15px;
  }

  .vd-item-title {
    font-size: 17px;
  }

  .vd-item-meta {
    font-size: 13px;
  }

  .vd-modal-title {
    font-size: 18px;
  }
}
