/* Video detail — flat background (no home-page poster collage) */
.video-detail-page {
  background: #07060e;
}

.video-detail-page .vd-layout {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.video-detail-page .page--video-detail {
  flex: 1;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 48px 0;
  display: flex;
  flex-direction: column;
}

.video-detail-page .vd-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 24px 0 48px;
}

.video-detail-page .footer {
  flex: none;
  margin-top: auto;
  width: 100%;
}

.video-detail-page .vd-hero {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 430px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.video-detail-page .vd-hero__title {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
}

.video-detail-page .vd-meta {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
}

.video-detail-page .vd-meta li {
  display: flex;
  align-items: center;
  padding-left: 14px;
  margin-right: 14px;
  position: relative;
}

.video-detail-page .vd-meta li:first-child {
  padding-left: 0;
}

.video-detail-page .vd-meta li:first-child::before {
  display: none;
}

.video-detail-page .vd-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  transform: translateY(-50%);
}

.video-detail-page .vd-meta .vd-age {
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  padding: 0 5px;
  line-height: 1.35;
  font-size: 0.9375rem;
}

.video-detail-page .vd-desc {
  margin: 0 0 28px;
  max-width: 520px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.video-detail-page .vd-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.video-detail-page .vd-btn-watch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #953fdf;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.video-detail-page .vd-btn-watch:hover {
  background: #7521bc;
}

.video-detail-page .vd-btn-watch svg {
  width: 12px;
  height: 14px;
  fill: #fff;
}

.video-detail-page .vd-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background 0.2s ease;
}

.video-detail-page .vd-btn-icon:hover {
  background: rgba(255, 255, 255, 0.14);
}

.video-detail-page .vd-btn-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

button.vd-btn-icon {
  font: inherit;
  padding: 0;
  cursor: pointer;
}

/* Match reeliesdrama-frontend .episode-banner-video (promo video hero) */
.video-detail-page .vd-hero__media {
  position: relative;
  width: 100%;
  max-width: 430px;
  justify-self: end;
  height: calc(100svh - 180px);
  max-height: 720px;
  border-radius: 10px;
  border: 1px solid #2d2d2d;
  overflow: hidden;
  background: transparent;
}

.video-detail-page .vd-hero__media--poster {
  height: auto;
  max-height: none;
  border: none;
  overflow: visible;
}

.video-detail-page .vd-hero__media--poster img {
  position: relative;
  display: block;
  width: auto;
  max-width: 430px;
  max-height: min(720px, calc(100svh - 180px));
  height: auto;
  object-fit: contain;
  border: 1px solid #2d2d2d;
  border-radius: 10px;
  margin-left: auto;
}

.video-detail-page .vd-hero__media--video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-detail-page .vd-unmute {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

@media screen and (min-width: 1200px) and (max-width: 1400px) {
  .video-detail-page .vd-hero__media--video {
    height: calc(100svh - 130px);
  }

  .video-detail-page .vd-hero__media--poster img {
    max-height: min(720px, calc(100svh - 130px));
  }
}

/* Match reeliesdrama-frontend .sho-detail.video-banner stack (≤1024px) */
@media screen and (max-width: 1024px) {
  .video-detail-page .page--video-detail {
    padding: 20px 24px 0;
  }

  .video-detail-page .vd-main {
    align-items: flex-start;
    padding: 16px 0 36px;
  }

  .video-detail-page .vd-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .video-detail-page .vd-hero__copy {
    order: 2;
    width: 100%;
  }

  .video-detail-page .vd-hero__media {
    order: 1;
    justify-self: center;
    width: min(430px, 100%);
    max-width: 100%;
    margin: 0 auto 12px;
  }

  .video-detail-page .vd-hero__media--video {
    width: 100%;
    height: min(calc(100svh - 200px), 640px);
    max-height: 640px;
  }

  .video-detail-page .vd-hero__media--poster {
    width: 100%;
  }

  .video-detail-page .vd-hero__media--poster img {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    max-height: min(640px, calc(100svh - 200px));
  }

  .video-detail-page .vd-desc {
    max-width: none;
  }
}

@media screen and (max-width: 767px) {
  .video-detail-page .page--video-detail {
    padding: 12px 1.5rem 0;
  }

  .video-detail-page .vd-main {
    padding: 12px 0 28px;
  }

  .video-detail-page .vd-hero {
    gap: 20px;
  }

  .video-detail-page .vd-hero__title {
    margin-bottom: 12px;
    font-size: clamp(1.45rem, 5.5vw, 2rem);
  }

  .video-detail-page .vd-meta {
    margin-bottom: 16px;
    font-size: 0.875rem;
  }

  .video-detail-page .vd-desc {
    margin-bottom: 20px;
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .video-detail-page .vd-hero__media,
  .video-detail-page .vd-hero__media--video {
    width: 90%;
  }

  .video-detail-page .vd-hero__media--video {
    height: auto;
    aspect-ratio: 9 / 16;
    max-height: min(70svh, 520px);
  }

  .video-detail-page .vd-hero__media--poster img {
    max-height: min(70svh, 520px);
  }

  .video-detail-page .vd-actions {
    justify-content: flex-start;
  }

  .video-detail-page .vd-btn-watch {
    flex: 1 1 auto;
    min-width: min(100%, 280px);
  }
}

@media screen and (max-width: 380px) {
  .video-detail-page .page--video-detail {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .video-detail-page .vd-meta li {
    padding-left: 10px;
    margin-right: 10px;
  }
}

/* Switch-to-app bottom sheet — mirrors frontend `footer-toaster` / `mobileapp-support` */
.video-detail-page .vd-app-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.video-detail-page .vd-app-sheet[hidden] {
  display: none !important;
}

.video-detail-page .vd-app-sheet:not([hidden]) {
  pointer-events: auto;
}

.video-detail-page .vd-app-sheet__panel {
  width: min(100%, 394px);
  margin: 0 auto;
  padding: 24px 34px;
  text-align: center;
  background: #f5f5f5;
  color: #1a1a1a;
  border-radius: 21px 21px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.video-detail-page .vd-app-sheet__logo img {
  display: block;
  max-width: 120px;
  width: auto;
  height: auto;
  margin: 0 auto 14px;
}

.video-detail-page .vd-app-sheet__copy h4 {
  margin: 0 0 5px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
}

.video-detail-page .vd-app-sheet__copy p {
  margin: 0 0 15px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: #4a4a4a;
}

.video-detail-page .vd-app-sheet__primary {
  display: block;
  width: 100%;
  height: 40px;
  margin: 0 0 14px;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, #7b2cbf 0%, #e040fb 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.video-detail-page .vd-app-sheet__dismiss {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #666;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.video-detail-page.vd-app-sheet-open {
  padding-bottom: env(safe-area-inset-bottom, 0);
}
