/* Video detail page */

@import url("content-detail-toolbar.css");

.breadcrumb {
  font-size: 18px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 24px;
  width: 100%;
}

.breadcrumb a {
  color: var(--text-primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-primary-500);
}

.breadcrumb__current {
  color: var(--text-secondary);
}

.video-detail {
  display: flex;
  align-items: flex-start;
  flex-direction: row;
  gap: 20px;
  padding-top: 30px;
  padding-bottom: 60px;
  max-width: 1260px;
  margin: 0 auto;
}

.video-detail__main {
  flex: 1;
  min-width: 0;
  max-width: 952px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.video-detail__aside {
  width: 308px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-detail__aside-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 24px;
  font-family: PingFang SC, sans-serif;
  font-weight: 600;
  line-height: 36px;
}

.video-detail__aside-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.video-detail__aside-list .video-card {
  width: 100%;
  max-width: 100%;
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.video-detail__aside-list .video-card__cover {
  align-self: stretch;
  width: 100%;
  height: 175px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.video-detail__aside-list .video-card__placeholder {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

.video-detail__aside-list .video-card__logo-wrap {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.video-detail__aside-list .video-card__image {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  position: absolute;
  object-fit: cover;
}

.video-detail__aside-list .media-card__body {
  align-self: stretch;
  width: 100%;
  gap: 6px;
}

.video-detail__aside-list .video-card__play {
  align-self: stretch;
  justify-content: flex-start;
}

.video-detail__aside-list .video-card__play .media-card__title {
  flex: 1 1 0;
  min-width: 0;
  font-size: 16px;
  line-height: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-detail__aside-list .section-header {
  width: 100%;
}

.video-detail__aside-list .meta-tag__text {
  font-size: 14px;
  line-height: 20px;
}

.video-detail__aside-list .meta-stat__icon {
  width: 16px;
  height: 16px;
}

.video-detail__aside-list .meta-stat__icon .icon {
  width: 16px;
  height: 16px;
}

.video-detail__app-rows {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.video-detail__app-rows .recommend-apps__grid {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.video-player {
  width: 100%;
  height: 535px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
}
.video-player .playBtn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  z-index: 10;
}

.video-player .dplayer-video {
  width: 100%;
  height: 100%;
}

.video-player .dplayer {
  height: 100%;
}

.video-player__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.video-player__poster--hidden {
  opacity: 0;
  visibility: hidden;
}

.video-player__shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 100%);
  pointer-events: none;
}

.video-player__controls {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.video-player__progress {
  position: relative;
  height: 4px;
}

.video-player__progress-track {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
}

.video-player__progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 16%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #fff 0%, #999 100%);
}

.video-player__progress-thumb {
  position: absolute;
  left: 16%;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #fff;
}

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

.video-player__toolbar-left,
.video-player__toolbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.video-player__time {
  color: #aaa;
  font-size: 18px;
  font-family: Inter, sans-serif;
  font-weight: 500;
  line-height: 23.4px;
}

.video-player__icon-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.video-player__icon-btn img {
  width: 24px;
  height: 24px;
  display: block;
}

.video-detail__title {
  margin: 0;
  color: var(--text-primary);
  font-size: 36px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 1.3;
}

.video-detail__tags {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.video-detail__tags-label {
  color: var(--text-secondary);
  font-size: 18px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 24px;
}

.video-detail__tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.video-detail__tag {
  padding: 7px 16px;
  border-radius: 8px;
  background: var(--color-primary-alpha-10);
  color: var(--color-primary-500);
  font-size: 14px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 20px;
  text-decoration: none;
}

.video-detail__summary {
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(270deg, rgba(251, 240, 241, 0.1) 0%, #fbf0f1 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.video-detail__meta {
  margin: 0;
  color: var(--text-secondary);
  font-size: 18px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 24px;
}

.detail-panel {
  padding: 24px 30px;
  border-radius: 18px;
  border: 1px solid var(--color-black-alpha-10);
  background: var(--surface-input);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.detail-panel__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-panel__mark {
  width: 6px;
  height: 22px;
  border-radius: 3.5px;
  background: var(--color-primary-500);
  flex-shrink: 0;
}

.detail-panel__title {
  margin: 0;
  color: var(--text-primary);
  font-size: 24px;
  font-family: PingFang SC, sans-serif;
  font-weight: 500;
  line-height: 32px;
}

.detail-panel__divider {
  height: 1px;
  background: var(--color-black-alpha-10);
}

.detail-panel__text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 20px;
}

.video-detail__notice {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.video-detail__notice p {
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 20px;
}

.video-detail__notice a,
.video-detail__notice .link {
  color: var(--color-primary-500);
  text-decoration: none;
}

.video-detail__notice .text-red {
  color: #ff2d55;
}

.detail-banners {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-banner {
  height: 89px;
  border-radius: 12px;
  overflow: hidden;
}

.detail-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--color-neutral-200);
}


.video-detail__aside-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.video-detail__aside-mark {
  display: none;
  width: 6px;
  height: 16px;
  border-radius: 3px;
  background: var(--color-primary-500);
  flex-shrink: 0;
}

.video-detail__divider {
  display: none;
  width: 100%;
  height: 1px;
  border-bottom: 1px solid var(--color-black-alpha-10);
}

@media (max-width: 1024px) {
  .video-detail {
    flex-direction: column;
  }

  .video-detail__main,
  .video-detail__aside {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .video-detail-page .page-main.video-detail {
    gap: 18px;
    padding: 12px 16px;
    align-items: stretch;
  }

  .video-detail {
    flex-direction: column;
    gap: 18px;
    padding: 12px 16px;
    max-width: none;
  }

  .video-detail__main {
    display: contents;
  }

  .video-detail .breadcrumb {
    order: 1;
    font-size: 12px;
    line-height: 18px;
  }

  .video-detail .video-player {
    order: 2;
    height: 190px;
    aspect-ratio: auto;
    border-radius: 12px;
  }
  .video-player .playBtn {
    width: 41px;
    height: 41px;
  }

  .video-detail .video-detail__title {
    order: 3;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
  }

  .video-detail .video-detail__summary {
    order: 4;
    padding: 18px 12px;
    border-radius: 18px;
    gap: 12px;
    background: linear-gradient(180deg, #fdf2f2 0%, rgba(253, 242, 242, 0.1) 100%);
  }

  .video-detail .video-detail__meta {
    font-size: 14px;
    line-height: 20px;
  }

  .video-detail .video-detail__summary .detail-panel {
    padding: 24px 12px;
    gap: 12px;
  }

  .video-detail .detail-panel__mark {
    width: 4px;
    height: 15px;
  }

  .video-detail .detail-panel__title {
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
  }

  .video-detail .detail-panel__text {
    font-size: 12px;
    line-height: 18px;
    text-align: justify;
  }

  .video-detail .video-detail__tags {
    order: 5;
    gap: 12px;
    align-items: flex-start;
  }

  .video-detail .video-detail__tags-label {
    font-size: 14px;
    line-height: 20px;
    flex-shrink: 0;
  }

  .video-detail .video-detail__tag {
    padding: 4px 12px;
    font-size: 12px;
    line-height: 18px;
  }

  .video-detail .video-detail__notice {
    order: 6;
    padding: 24px 12px;
    gap: 12px;
    width: 100%;
  }

  .video-detail .video-detail__notice p {
    font-size: 12px;
    line-height: 18px;
  }

  .video-detail .video-detail__app-rows {
    order: 7;
    gap: 0;
    padding: 18px 0;
    border-radius: 16px;
    border: 1px solid var(--color-black-alpha-5);
    background: var(--surface-foreground);
  }

  .video-detail .video-detail__app-rows .recommend-apps__grid {
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 8px;
    padding: 0 8px;
    background: transparent;
    border: none;
    border-radius: 0;
  }

  .video-detail .video-detail__app-rows .recommend-apps__icon-wrap {
    background: #3d3d3d;
  }

  .video-detail .detail-banners {
    order: 8;
    gap: 12px;
  }

  .video-detail .detail-banner {
    height: auto;
    aspect-ratio: 343 / 47;
    border-radius: 6px;
  }

  .video-detail__aside {
    order: 9;
    width: 100%;
    max-width: none;
    gap: 12px;
    align-self: stretch;
  }

  .video-detail__aside-head {
    gap: 12px;
  }

  .video-detail__aside-mark {
    display: block;
  }

  .video-detail__aside-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
  }

  .video-detail__aside-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 7px;
    width: 100%;
  }

  .video-detail__aside-list .video-card {
    width: 100%;
    max-width: none;
    gap: 6px;
    overflow: hidden;
    border-radius: 9px;
  }

  .video-detail__aside-list .video-card__cover {
    width: 100%;
    height: auto;
    aspect-ratio: 168 / 96;
    border-radius: 6px;
  }

  .video-detail__aside-list .video-card__placeholder {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
  }

  .video-detail__aside-list .video-card__logo-wrap {
    left: 34.5px;
    top: 32px;
    transform: none;
  }

  .video-detail__aside-list .video-card__image {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
  }

  .video-detail__aside-list .media-card__body {
    gap: 2px;
  }

  .video-detail__aside-list .video-card__play {
    align-self: stretch;
    justify-content: flex-start;
  }

  .video-detail__aside-list .video-card__play .media-card__title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    white-space: normal;
    font-size: 12px;
    line-height: 18px;
    color: var(--text-primary);
  }

  .video-detail__aside-list .media-card__body > .section-header {
    align-self: stretch;
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .video-detail__aside-list .section-header__left {
    gap: 6px;
  }

  .video-detail__aside-list .meta-stat {
    gap: 2px;
  }

  .video-detail__aside-list .meta-stat__icon {
    width: 16px;
    height: 16px;
  }

  .video-detail__aside-list .meta-stat__icon .icon {
    width: 16px;
    height: 16px;
  }

  .video-detail__aside-list .meta-tag__text {
    font-size: 10px;
    line-height: 16px;
    color: var(--text-secondary);
  }

  .video-detail .video-detail__divider {
    order: 10;
    display: block;
  }

  .video-detail .comment-section {
    order: 11;
  }

  .video-detail .comment-item--reply {
    margin-left: 34px;
  }

  .video-player__controls {
    left: 12px;
    right: 12px;
    bottom: 0;
    gap: 14px;
    padding-bottom: 0;
  }

  .video-player__shade {
    height: 30px;
  }

  .video-player__progress {
    height: 2px;
  }

  .video-player__progress-track,
  .video-player__progress-bar {
    height: 2px;
  }

  .video-player__progress-thumb {
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
  }

  .video-player__toolbar-left,
  .video-player__toolbar-right {
    gap: 12px;
  }

  .video-player__toolbar-right {
    gap: 20px;
  }

  .video-player__time {
    font-size: 12px;
    font-weight: 400;
    line-height: 19.2px;
  }

  .video-player__icon-btn {
    width: 16px;
    height: 16px;
  }

  .video-player__icon-btn img {
    width: 16px;
    height: 16px;
  }
}
