/* Dedicated real-time video detail layout. */
.video-detail-page .post-near,
.video-detail-page #user-post-actions {
  display: none !important;
}

.video-detail-page {
  overflow-x: hidden;
}

.video-detail-strip-region {
  box-sizing: border-box;
}

.video-detail-strip-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0.5rem 0;
}

.video-detail-strip-list > a {
  flex: 1;
  margin-bottom: 0.5rem;
}

.video-detail-strip-list > a:last-child {
  margin-bottom: 0;
}

.video-detail-strip-list > a > img {
  width: 100%;
}

@media (max-width: 767px) {
  .video-detail-strip-list > a {
    margin-bottom: 0.2rem;
  }
}

.candid-video-detail-body #body > .container.pt125 {
  padding-top: 3.5rem !important;
}

.video-detail-hero {
  background: #313030;
  padding: 2rem 1rem;
  text-align: center;
}

.video-detail-hero h1 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.25;
}

.video-detail-hero p {
  margin: 0 auto;
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.25rem;
  line-height: 1.7;
}

.video-detail-breadcrumb-wrap {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1rem 1rem;
  box-sizing: border-box;
}

.video-detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  line-height: 1.5;
}

.video-detail-breadcrumb a {
  color: #1abc9d;
}

.video-detail-page .container.pt35 {
  padding-top: 0 !important;
}

.video-detail-page .top_picks_item {
  box-sizing: border-box;
  opacity: 1;
}

.video-detail-page .top_picks_clip {
  width: 100%;
  overflow: hidden;
}

.realtime-video-content {
  width: 100%;
  max-width: 100%;
}

.video-detail-player {
  margin: 0 auto 1.25rem;
}

.video-detail-player .dplayer {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 13rem;
  background: #111;
}

.video-detail-player .dplayer video {
  object-fit: contain;
}

.video-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 1rem 0 2rem;
  padding: 0.5rem 1rem;
  border-radius: 0.625rem;
  background: rgba(255, 255, 255, 0.06);
  color: #aaa;
  font-size: 16px;
  line-height: 1.5;
}

.video-device-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.5rem 0.75rem;
}

.video-device-item svg,
.video-device-item > i {
  flex: 0 0 1.25rem;
  width: 1.25rem;
  color: #999;
  font-size: 1.25rem;
  text-align: center;
}

.video-device-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.video-device-item strong {
  color: #f3f3f3;
  font-weight: 700;
}

.dplayer-online .dplayer-bar-wrap,
.dplayer-online .dplayer-time,
.dplayer-online .dplayer-setting,
.dplayer-online .dplayer-comment,
.dplayer-online .dplayer-comment-setting-icon,
.dplayer-online .dplayer-comment-setting-box,
.dplayer-online .dplayer-comment-input,
.dplayer-online .dplayer-send-icon,
.dplayer-online .dplayer-camera-icon,
.dplayer-online .dplayer-subtitle-btn,
.dplayer-online .dplayer-quality,
.dplayer-online .dplayer-setting-speed,
.dplayer-online .dplayer-setting-loop,
.dplayer-online .dplayer-full-in-icon {
  display: none !important;
}

/* 安卓浏览器可能接管 video 并显示原生控制层，在线监控同时隐藏原生时间轴。 */
.dplayer-online video {
  pointer-events: none;
}

.dplayer-online .dplayer-live-badge {
  display: inline-flex !important;
  align-items: center;
}

.dplayer-online video::-webkit-media-controls-timeline,
.dplayer-online video::-webkit-media-controls-current-time-display,
.dplayer-online video::-webkit-media-controls-time-remaining-display {
  display: none !important;
}

.dplayer-online .dplayer-bar-wrap,
.dplayer-online .dplayer-bar,
.dplayer-online .dplayer-thumb {
  pointer-events: none !important;
  touch-action: none !important;
}

.dplayer-online .dplayer-controller .dplayer-icons .dplayer-full {
  display: inline-block !important;
}

.dplayer.dplayer-online.dplayer-mobile .dplayer-controller .dplayer-icons .dplayer-volume,
.dplayer.dplayer-online.dplayer-mobile .dplayer-controller .dplayer-icons .dplayer-full .dplayer-full-in-icon {
  display: inline-block !important;
}

.video-detail-section {
  margin: 2rem 0;
}

.video-detail-section h2,
.video-share-panel h2 {
  margin: 0 0 0.7rem;
  color: #f4f4f4;
  font-size: 1rem;
  font-weight: 600;
}

.video-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.video-category-grid a {
  padding: 1.5rem 0.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #14c5a6;
  text-align: center;
  font-size: 1.2rem;
}

.video-category-grid a:hover {
  background: rgba(20, 197, 166, 0.1);
}

.video-description {
  margin: 1.2rem 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid #14c5a6;
  background: rgba(255, 255, 255, 0.06);
  color: #c6c6c6;
  line-height: 1.7;
}

.video-description[hidden] {
  display: none;
}

.video-network-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 1rem 0 2rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
}

.video-network-links a,
.video-share-links a {
  color: #14c5a6;
}

.video-hot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.video-hot-grid a {
  display: block;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  color: #ddd;
}

.video-hot-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #555;
}

.video-hot-grid span {
  display: block;
  padding: 0.5rem 0.55rem 0.65rem;
  font-size: 0.75rem;
  line-height: 1.4;
}

.video-share-panel {
  margin: 1.2rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.03);
}

.video-official-announcement {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
}

.video-official-announcement p {
  margin: 0.8rem 0;
  color: #ddd;
  line-height: 1.7;
}

.video-share-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 1rem 0;
}

.video-share-panel p {
  margin: 0 0 0.7rem;
  color: #aaa;
  font-size: 0.8125rem;
}

.video-share-panel .a2a_kit {
  min-height: 2rem;
}

@media (max-width: 767px) {
  .video-detail-hero {
    padding: 96px 16px 32px;
  }

  .video-detail-hero h1 {
    font-size: 2rem;
  }

  .video-detail-hero p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .video-detail-breadcrumb-wrap {
    padding: 1.5rem 1rem 0.75rem;
  }

  .video-detail-breadcrumb {
    font-size: 0.8125rem;
  }

  .realtime-video-content {
    width: 100%;
    max-width: none;
    margin-left: 0;
    transform: none;
  }

  .video-detail-player .dplayer {
    min-height: 11rem;
  }

  .video-detail-meta {
    margin-bottom: 1.5rem;
    padding: 0.4rem;
    font-size: 0.75rem;
  }

  .video-device-item {
    gap: 0.45rem;
    padding: 0.55rem 0.35rem;
  }

  .video-detail-page #post .post-content .video-recommendation-grid {
    width: 100%;
    table-layout: fixed;
  }

  .video-detail-page #post .post-content .video-recommendation-grid th,
  .video-detail-page #post .post-content .video-recommendation-grid td {
    padding-right: 0.125rem;
    padding-left: 0.125rem;
  }

  .video-detail-page #post .post-content .video-recommendation-grid a {
    display: block;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    font-size: 16px;
    line-height: 1.5;
  }

  .video-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .video-category-grid a {
    padding: 0.85rem 0.2rem;
    font-size: 0.75rem;
  }

  .video-hot-grid {
    gap: 0.4rem;
  }

  .video-hot-grid span {
    padding: 0.35rem;
    font-size: 0.625rem;
  }

  .video-share-panel {
    padding: 0.7rem;
  }
}

@media (max-width: 359px) {
  .video-detail-page #post .post-content .video-recommendation-grid a {
    font-size: 14px;
  }
}
