/* 黄果仿站：在 ref1/ref2 之上的少量补丁 */
:root {
  --age-gate-cta: var(--brand-cta);
  --color-primary: #ffd21c;
  --color-primary-end: #f5a623;
  --color-red: #ff3332;
  --hg-page-gutter: 16px;
}

@media (min-width: 768px) {
  :root {
    --hg-page-gutter: 24px;
  }
}

.hg-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 20px;
}

.hg-breadcrumb,
.hg-breadcrumb a,
.hg-breadcrumb__sep {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

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

.hg-breadcrumb__current {
  color: var(--color-primary);
}

.hg-ep-ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.hg-ep-range {
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.hg-ep-range.is-active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(255, 210, 28, 0.08);
}

.hg-web-play__fact-accent {
  display: block;
  width: 2px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--color-primary), transparent);
}

.hg-web-play__viewport.is-playing .hg-web-play__cover {
  opacity: 0;
  pointer-events: none;
}

.hg-web-play__ep[hidden] {
  display: none !important;
}

.hg-web-play__star {
  color: rgba(255, 255, 255, 0.25);
  font-size: 22px;
}

.hg-web-play__introcard .hg-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid rgb(45, 40, 49);
  border-radius: 8px;
  background: rgb(28, 25, 30);
  color: rgb(162, 159, 166);
  font-size: 12px;
  font-weight: 500;
}

.hg-web-play__cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: opacity 0.2s ease;
}

.hg-web-play__video {
  z-index: 2;
}

.hg-web-play button.hg-web-play__ep {
  font-family: inherit;
}

.hg-web-play__scorebox .hg-web-play__intro-split {
  display: none;
}

@media (min-width: 1024px) {
  .hg-web-play__introcard .hg-web-play__scorebox {
    border-left: none;
  }
}

#age-gate-dialog:not([open]) {
  display: none;
}

#age-gate-dialog[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(calc(100% - 32px), 420px);
  padding: 28px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  background: #141417;
  color: #f2f2f4;
}

#age-gate-dialog::backdrop {
  background: rgb(0 0 0 / 72%);
  backdrop-filter: blur(8px);
}

.FeaturedHero_dot__Ieg9L[aria-pressed="true"] {
  opacity: 1;
  transform: scale(1.15);
}

.hg-detail-layout {
  display: none;
}

.hg-detail-stage {
  position: relative;
  width: min(420px, 100%);
  max-width: 420px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 1rem;
  background: #000;
  aspect-ratio: 9 / 16;
  max-height: min(740px, calc(100vh - 160px));
}

@media (min-width: 1024px) {
  .hg-detail-stage {
    margin-inline: 0;
  }
}

.hg-detail-poster,
.hg-detail-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hg-detail-poster {
  background-color: #242424;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: opacity 0.2s ease;
}

.hg-detail-video {
  object-fit: contain;
  object-position: center center;
  background: #000;
}

.hg-detail-video[hidden] {
  display: none !important;
}

.hg-detail-stage.is-playing .hg-detail-poster {
  opacity: 0;
  pointer-events: none;
}

.hg-ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}

.hg-ep-grid button {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #f2f2f4;
  font-size: 13px;
  cursor: pointer;
}

.hg-ep-grid button.is-active {
  border-color: var(--brand-pink);
  background: rgba(255, 74, 123, 0.15);
}

.hg-ep-grid button.is-locked {
  opacity: 0.55;
}

/* 搜索/分区列表：多行网格（勿用 .poster-carousel，其为首页横向滚动条） */
.hg-search-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 7px;
}

@media (min-width: 768px) {
  .hg-search-grid {
    grid-template-columns: repeat(var(--site-poster-columns), minmax(0, 1fr));
    gap: 24px;
  }
}
