/* vod_detail — cinema hero 全宽铺满，正文面板保持可读宽度 */
.pb-vod-detail.cinema-stage {
  width: 100%;
  max-width: 100%;
  background: transparent;
  margin-bottom: 8px;
  border-radius: 0;
  overflow-x: clip;
  overflow-x: hidden;
}

.pb-vod-detail .media-hero {
  position: relative;
  margin: 0;
  padding: 0;
  color: #fff;
  overflow: hidden;
  min-height: 320px;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  background: #0b0c0f;
  contain: paint;
}

.pb-vod-detail .media-hero__bg {
  position: absolute;
  inset: -48px;
  background-size: cover;
  background-position: center 20%;
  filter: blur(40px) saturate(1.2) brightness(0.68);
  transform: scale(1.12);
  pointer-events: none;
}

.pb-vod-detail .media-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 9, 12, 0.28) 0%, rgba(8, 9, 12, 0.52) 42%, rgba(8, 9, 12, 0.92) 100%),
    linear-gradient(90deg, rgba(8, 9, 12, 0.78) 0%, rgba(8, 9, 12, 0.38) 48%, rgba(8, 9, 12, 0.7) 100%);
  pointer-events: none;
}

.pb-vod-detail .media-hero__wrap {
  position: relative;
  z-index: 1;
  max-width: var(--wrap, 1400px);
  margin: 0 auto;
  padding: 20px var(--gutter, 16px) 32px;
  box-sizing: border-box;
}

.pb-vod-detail .media-hero__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}

.pb-vod-detail .media-hero__crumb a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color var(--dur, 0.2s) var(--ease, ease);
}

.pb-vod-detail .media-hero__crumb a:hover,
.pb-vod-detail .media-hero__crumb a:focus-visible {
  color: #fff;
  outline: none;
}

.pb-vod-detail .media-hero__crumb a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
  border-radius: 2px;
}

.pb-vod-detail .media-hero__crumb-cur {
  color: rgba(255, 255, 255, 0.92);
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pb-vod-detail .media-hero__inner {
  display: grid;
  grid-template-columns: minmax(300px, 38vw) minmax(0, 1fr) 88px;
  gap: 24px 28px;
  align-items: end;
}

.pb-vod-detail.pb-cover--landscape .media-hero__inner {
  align-items: start;
}

.pb-vod-detail.pb-cover--poster-h .media-hero__poster {
  aspect-ratio: var(--pb-cover-ratio, 16 / 9);
}

.pb-vod-detail.pb-cover--poster-v .media-hero__poster {
  aspect-ratio: var(--pb-cover-ratio, 3 / 4);
}

.pb-vod-detail .media-hero__poster {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  border-radius: var(--radius-lg, 8px);
  overflow: hidden;
  background: #2a2c32;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  line-height: 0;
}

.pb-vod-detail .media-hero__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.pb-vod-detail.pb-cover--landscape .media-hero__poster img {
  object-position: top center;
}

.pb-vod-detail .media-hero__poster-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity var(--dur, 0.2s) var(--ease, ease);
}

.pb-vod-detail .media-hero__poster-play::after {
  content: "";
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 22px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 22px no-repeat;
}

.pb-vod-detail .media-hero__poster.is-playable:hover .media-hero__poster-play,
.pb-vod-detail .media-hero__poster.is-playable:focus-visible .media-hero__poster-play {
  opacity: 1;
}

.pb-vod-detail .media-hero__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 4px;
}

.pb-vod-detail .media-hero__title-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pb-vod-detail .media-hero__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-wrap: balance;
}

.pb-vod-detail .media-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pb-vod-detail .media-hero__tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--dur, 0.2s) var(--ease, ease);
}

.pb-vod-detail .media-hero__tag--soft {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

.pb-vod-detail .media-hero__tag:hover {
  background: rgba(255, 255, 255, 0.24);
}

.pb-vod-detail .media-hero__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
}

.pb-vod-detail .media-hero__stats li {
  display: flex;
  flex: 1 1 0;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0 10px;
  white-space: nowrap;
}

.pb-vod-detail .media-hero__stats li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.pb-vod-detail .media-hero__stat-body {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.pb-vod-detail .media-hero__stats em {
  font-style: normal;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
  line-height: 1.2;
}

.pb-vod-detail .media-hero__stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}

.pb-vod-detail .media-hero__rating {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 72px;
  min-height: 88px;
  padding: 10px 12px;
  border-radius: var(--radius-lg, 8px);
  background: rgba(255, 198, 64, 0.14);
  color: #ffc640;
  align-self: end;
}

.pb-vod-detail .media-hero__rating strong {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pb-vod-detail .media-hero__rating-stars {
  font-size: 10px;
  letter-spacing: 1px;
  color: #ffc640;
  opacity: 0.92;
}

.pb-vod-detail .media-hero__rating-label {
  font-size: 11px;
  color: rgba(255, 198, 64, 0.75);
}

.pb-vod-detail .media-hero__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
}

.pb-vod-detail .media-hero__meta span + span::before {
  content: "·";
  margin-right: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.pb-vod-detail .media-hero__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 640px;
}

.pb-vod-detail .media-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.pb-vod-detail .media-hero__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 22px;
  background: var(--c-accent);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--dur, 0.2s) var(--ease, ease), opacity var(--dur, 0.2s) var(--ease);
}

.pb-vod-detail .media-hero__play:hover {
  background: var(--c-accent-hover, #e85d88);
}

.pb-vod-detail .media-hero__play:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.pb-vod-detail .media-hero__play-ico {
  width: 18px;
  height: 18px;
  font-size: 18px;
  color: #fff;
}

.pb-vod-detail .media-hero__follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 22px;
  border: 1px solid var(--c-accent);
  background: #fff;
  color: var(--c-accent) !important;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background var(--dur, 0.2s) var(--ease, ease), color var(--dur, 0.2s) var(--ease, ease), border-color var(--dur, 0.2s) var(--ease, ease);
}

.pb-vod-detail .media-hero__follow:hover {
  background: var(--c-accent-soft, #fff0f3);
  color: var(--c-accent-hover, #e85d88) !important;
  border-color: var(--c-accent-hover, #e85d88);
}

.pb-vod-detail .media-hero__follow.is_fav,
.pb-vod-detail .media-hero__follow.is_fav:hover {
  border-color: transparent;
  background: var(--c-accent);
  color: #fff !important;
}

.pb-vod-detail .media-hero__follow:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.pb-vod-detail .media-panel--cinema {
  border-radius: var(--radius-lg, 8px);
  background: var(--c-surface, #fff);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 18px 20px 20px;
  margin: 0 auto 16px;
  max-width: var(--wrap, 1400px);
  width: calc(100% - 2 * var(--gutter, 16px));
  box-sizing: border-box;
}

.pb-vod-detail .media-panel__title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 650;
  color: var(--c-text, #18191c);
  line-height: 1.3;
}

.pb-vod-detail .media-panel__body {
  color: var(--c-text-muted, #61666d);
  font-size: 14px;
  line-height: 1.85;
  word-break: break-word;
}

.pb-vod-detail .media-panel__body p {
  margin: 0 0 12px;
}

.pb-vod-detail .media-panel__body p:last-child {
  margin-bottom: 0;
}

/* 选集：嵌在 media-panel 内，去掉 .eps 外层卡片，改成按钮网格 */
.pb-vod-detail .eps--media {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.pb-vod-detail .eps--media .eps-g > div:first-child {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 12px;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--c-surface-2, #f1f2f3);
  color: var(--c-text-muted, #9499a0);
  font-size: 13px;
  font-weight: 600;
}

.pb-vod-detail .eps--media .eps-g ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.pb-vod-detail .eps--media .eps-g li {
  list-style: none;
  margin: 0;
  min-width: 0;
}

.pb-vod-detail .eps--media .eps-g li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--c-surface-2, #f1f2f3);
  border: 1px solid transparent;
  color: var(--c-text, #18191c);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.pb-vod-detail .eps--media .eps-g li a:active {
  transform: scale(0.98);
}

.pb-vod-detail .eps--media .eps-g li a:hover {
  background: var(--c-accent-soft);
  color: var(--c-accent);
  border-color: var(--c-accent-border);
}

.pb-vod-detail .eps--media .eps-g li.is-cur a {
  background: var(--c-accent);
  color: var(--c-accent-ink, #fff);
  border-color: var(--c-accent);
  font-weight: 600;
}

/* 评论嵌在 panel 内：去掉外层多余间距 / 双重卡片感 */
.pb-vod-detail .pb-vod-detail__cmt .cmt {
  margin: 0;
}

.pb-vod-detail .pb-vod-detail__cmt .cmt-card {
  border: 0;
  box-shadow: none;
  padding: 0;
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .pb-vod-detail .media-hero__poster-play,
  .pb-vod-detail .media-hero__play,
  .pb-vod-detail .media-hero__tag,
  .pb-vod-detail .media-hero__crumb a,
  .pb-vod-detail .eps--media .eps-g li a {
    transition: none;
  }
}

@media (min-width: 1024px) {
  .pb-vod-detail .media-hero {
    min-height: 360px;
  }

  .pb-vod-detail .media-hero__inner {
    grid-template-columns: minmax(360px, 40vw) minmax(0, 1fr) 96px;
    gap: 28px 32px;
  }

  .pb-vod-detail .media-hero__title {
    font-size: 32px;
  }

  .pb-vod-detail .media-hero__stats em {
    font-size: 22px;
  }

  .pb-vod-detail .media-hero__desc {
    -webkit-line-clamp: 4;
  }
}

@media (max-width: 860px) {
  .pb-vod-detail .media-hero {
    min-height: 0;
  }

  /* blur + 负 inset 在部分 WebKit 上会撑大 scrollWidth，H5 收紧铺底 */
  .pb-vod-detail .media-hero__bg {
    inset: 0;
    transform: scale(1.06);
    filter: blur(28px) saturate(1.2) brightness(0.68);
  }

  .pb-vod-detail .media-hero__wrap {
    padding: 12px var(--gutter, 16px) 20px;
  }

  .pb-vod-detail .media-hero__crumb {
    margin-bottom: 12px;
    font-size: 14px;
  }

  .pb-vod-detail .media-hero__inner {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
    position: relative;
  }

  .pb-vod-detail .media-hero__poster-box {
    width: calc(100% + var(--gutter, 16px) * 2);
    max-width: none;
    margin: 0 calc(var(--gutter, 16px) * -1);
  }

  .pb-vod-detail .media-hero__poster {
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .pb-vod-detail .media-hero__rating {
    position: absolute;
    top: 8px;
    right: 12px;
    min-width: 56px;
    min-height: 56px;
    padding: 6px 8px;
    border-radius: var(--radius-sm, 4px);
    z-index: 2;
  }

  .pb-vod-detail .media-hero__rating strong {
    font-size: 24px;
  }

  .pb-vod-detail .media-hero__title {
    font-size: 22px;
  }
}


@media (max-width: 860px) {
  /* H5 页边距 12px：width 须扣掉左右 margin，避免 100% + 24px 溢出裁切 */
  .pb-vod-detail .media-panel--cinema {
    width: calc(100% - 24px);
    max-width: none;
    margin: 0 auto 12px;
    padding: 16px 14px 18px;
    box-sizing: border-box;
  }

  .pb-vod-detail .media-panel__title {
    margin-bottom: 14px;
    font-size: 17px;
  }
}
