@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@500;600;700&display=swap");

/* 黄果短剧 — warm amber / dark roast theme.
   Layout and page structure are inherited from the X短剧 frame; this file only
   re-colors and re-skins the existing components. */

body.hg {
  --bg: #16130f;
  --bg-soft: #1d1812;
  --panel: #241e17;
  --panel-2: #2a2218;
  --fg: #f2ead9;
  --text: #f2ead9;
  --muted: #a89f90;
  --line: rgba(232, 163, 60, 0.18);
  --accent: #e8a33c;
  --accent-2: #f0b24a;
  --gold: #e8a33c;
  --gold-2: #f0b24a;
  --gold-soft: rgba(232, 163, 60, 0.12);
  --cream: #f2ead9;
  --fog: #93897a;
  --fog-dim: #7a7266;
  --mist: #a89f90;
  --radius: 12px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", "Source Han Serif SC", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
  color: var(--fg);
  background:
    radial-gradient(ellipse 80% 55% at 72% -10%, rgba(232, 163, 60, 0.16), transparent 60%),
    radial-gradient(ellipse 55% 45% at 5% 20%, rgba(178, 58, 46, 0.08), transparent 65%),
    #16130f;
  font-family: var(--font-sans);
}

.hg ::selection {
  background: rgba(232, 163, 60, 0.35);
  color: #16130f;
}

/* Header ------------------------------------------------------------------ */
.hg header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  margin: 0;
  padding: 0;
  display: block;
  background: rgba(22, 19, 15, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 163, 60, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.hg .hg-nav-inner {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hg .hg-logo {
  gap: 9px;
  flex-shrink: 0;
}
.hg .hg-logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(232, 163, 60, 0.22);
}
.hg .hg-logo-text {
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.hg .hg-logo-text b,
.hg .footer-logo b {
  background: linear-gradient(120deg, #fff3c4 0%, #f7cb68 42%, #e8a33c 72%, #d8891b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.16));
}
.hg .site-nav {
  display: flex;
  align-items: center;
  height: 100%;
  margin-left: 14px;
}
.hg .site-nav-link {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 12px;
  font-size: 14px;
  line-height: 1;
  color: var(--fog);
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.hg .site-nav-link:hover {
  color: var(--rice, #f2ead9);
}
.hg .site-nav-link.is-active {
  color: var(--kumquat, #e8a33c);
  border-bottom-color: var(--kumquat, #e8a33c);
}
.hg .hg-nav-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 340px;
  margin-left: auto;
}
.hg .hg-nav-search input {
  width: 100%;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid rgba(232, 163, 60, 0.18);
  padding: 8px 38px 8px 36px;
  color: var(--cream);
  font-size: 13px;
  outline: none;
}
.hg .hg-nav-search input::placeholder {
  color: var(--fog-dim);
}
.hg .hg-nav-search input:focus {
  border-color: rgba(232, 163, 60, 0.6);
  box-shadow: 0 0 0 3px rgba(232, 163, 60, 0.1);
}
.hg .hg-nav-search-icon {
  position: absolute;
  left: 12px;
  color: var(--fog-dim);
  pointer-events: none;
}
.hg .hg-nav-search button {
  position: absolute;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--mist);
  background: transparent;
}
.hg .hg-nav-search button:hover {
  color: var(--gold);
  background: var(--gold-soft);
}
.hg .hg-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  color: var(--cream);
}
.hg .hg-mobile-search {
  display: none;
}
.hg .search-toggle {
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 50%;
}
.hg .search-toggle:hover {
  color: var(--gold);
  background: var(--gold-soft);
  border-color: rgba(232, 163, 60, 0.22);
}

/* Shared content width: header, catalog, watch, pages and footer all align to
   the same 1280px container with 24px gutters. */
.hg .catalog,
.hg .page,
.hg .watch,
.hg .search-area,
.hg footer {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
/* The related shelf lives inside .watch, so it must not add another gutter. */
.hg .watch-related {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Hero -------------------------------------------------------------------- */
.hg .hero3d {
  background:
    radial-gradient(ellipse 65% 75% at 50% 35%, rgba(232, 163, 60, 0.1), transparent 65%),
    linear-gradient(180deg, #1d1812 0%, #16130f 82%);
  border-bottom: 1px solid rgba(232, 163, 60, 0.1);
}
.hg .hero3d-poster {
  border: 1px solid rgba(232, 163, 60, 0.24);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.52);
}
.hg .hero3d-cardcap {
  color: var(--cream);
  font-family: var(--font-sans);
  font-weight: 600;
}
.hg .hero3d-cardo {
  background: linear-gradient(transparent, rgba(22, 19, 15, 0.82) 45%, rgba(22, 19, 15, 0.98));
}
.hg .hero3d-cardo p {
  color: var(--mist);
}
.hg .hero3d-play {
  background: var(--gold);
  color: #16130f;
  box-shadow: 0 8px 28px rgba(232, 163, 60, 0.35);
}
.hg .hero3d-btn {
  background: rgba(36, 30, 23, 0.8);
  border-color: rgba(232, 163, 60, 0.32);
  color: var(--gold);
}
.hg .hero3d-btn:hover {
  background: var(--gold);
  color: #16130f;
  border-color: var(--gold);
}

/* Catalog / sections ------------------------------------------------------ */
.hg .genre-bar {
  gap: 10px;
  padding: 28px 0 6px;
}
.hg .genre-bar a {
  border-radius: 999px;
  border-color: rgba(232, 163, 60, 0.2);
  color: var(--mist);
  background: rgba(36, 30, 23, 0.55);
}
.hg .genre-bar a:hover,
.hg .genre-bar a.active {
  color: #16130f;
  background: var(--gold);
  border-color: var(--gold);
}
.hg .section-head {
  margin-bottom: 22px;
}
.hg .section-head h2 {
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.hg .section-head h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 18px;
  margin-right: 12px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  vertical-align: -2px;
}
.hg .see-all {
  color: var(--fog);
}
.hg .see-all:hover {
  color: var(--gold);
}
.hg .cards-nav {
  background: rgba(36, 30, 23, 0.86);
  border-color: rgba(232, 163, 60, 0.25);
  color: var(--cream);
}
.hg .cards-nav:hover {
  background: var(--gold);
  color: #16130f;
}

/* Cards ------------------------------------------------------------------- */
.hg .poster {
  border: 1px solid rgba(232, 163, 60, 0.18);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.hg .drama-card:hover .poster {
  border-color: rgba(232, 163, 60, 0.55);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(232, 163, 60, 0.14);
  transform: translateY(-3px);
}
.hg .card-tag {
  background: linear-gradient(135deg, #f3d58a, #d9a441);
  color: #2a1d08;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
}
.hg .episode-count {
  color: var(--cream);
  font-family: var(--font-mono);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}
.hg .poster-play {
  color: var(--gold);
}
.hg .card-copy h3 {
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.hg .card-copy p {
  color: var(--fog);
}

/* Banner ------------------------------------------------------------------ */
.hg .frame-banner {
  border-top-color: rgba(232, 163, 60, 0.16);
  border-bottom-color: rgba(232, 163, 60, 0.16);
}
.hg .outline-word {
  -webkit-text-stroke-color: rgba(232, 163, 60, 0.55);
}
.hg .frame-banner .eyebrow {
  color: var(--gold);
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
}
.hg .frame-banner h2 {
  color: var(--cream);
  font-family: var(--font-serif);
  font-weight: 600;
}
.hg .frame-banner a {
  color: var(--gold);
}

/* Watch / detail ---------------------------------------------------------- */
.hg .crumbs {
  color: var(--fog);
}
.hg .crumbs .cur {
  color: var(--cream);
}
.hg .player-frame {
  border: 1px solid rgba(232, 163, 60, 0.28);
  border-radius: 12px;
  background: #0f0d0a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.hg .player-mask {
  background: rgba(22, 19, 15, 0.84);
  color: var(--mist);
}
.hg .player-ep {
  font-family: var(--font-serif);
  color: var(--cream);
  font-weight: 600;
}
.hg .ep-nav {
  border-color: rgba(232, 163, 60, 0.24);
  border-radius: 999px;
  color: var(--cream);
}
.hg .ep-nav:hover {
  background: var(--gold-soft);
  border-color: rgba(232, 163, 60, 0.45);
}
.hg h1.watch-title {
  font-family: var(--font-serif);
  color: var(--cream);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.hg .hero-meta {
  color: var(--mist);
  font-family: var(--font-mono);
}
.hg .hero-meta b {
  color: var(--gold);
}
.hg .tag-orig {
  color: var(--gold);
}
.hg .chip {
  border-color: rgba(232, 163, 60, 0.2);
  color: var(--mist);
  background: rgba(36, 30, 23, 0.5);
}
.hg .chip:hover,
.hg .chip.active {
  color: #16130f;
  background: var(--gold);
  border-color: var(--gold);
}
.hg .side-h2 {
  color: var(--cream);
  font-family: var(--font-serif);
  font-weight: 600;
}
.hg .watch-desc {
  color: var(--mist);
}
.hg .ep-grid {
  gap: 9px;
}
.hg .ep-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(232, 163, 60, 0.2);
  border-radius: 9px;
  color: var(--cream);
  background: rgba(36, 30, 23, 0.45);
}
.hg .ep-btn:hover {
  border-color: rgba(232, 163, 60, 0.55);
  background: var(--gold-soft);
}
.hg .ep-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #16130f;
  font-weight: 700;
}
.hg .ep-btn.active small {
  color: rgba(22, 19, 15, 0.7);
}
.hg .ep-btn.soon small {
  color: var(--gold);
}

/* Search ------------------------------------------------------------------ */
.hg .search-area {
  border-bottom-color: rgba(232, 163, 60, 0.16);
}
.hg .search-area input {
  background: var(--panel);
  border-color: rgba(232, 163, 60, 0.22);
  border-radius: 10px;
  color: var(--cream);
}
.hg .search-area input:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 163, 60, 0.12);
}

/* Buttons / pagination ---------------------------------------------------- */
.hg .primary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #16130f;
  border: 1px solid rgba(255, 225, 160, 0.45);
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 26px rgba(232, 163, 60, 0.22);
}
.hg .primary:hover {
  background: linear-gradient(135deg, #f7cf86, var(--gold-2));
}
.hg .secondary {
  border: 1px solid rgba(232, 163, 60, 0.28);
  background: rgba(36, 30, 23, 0.6);
  color: var(--cream);
  border-radius: 999px;
}
.hg .secondary:hover {
  border-color: rgba(232, 163, 60, 0.55);
  background: var(--gold-soft);
}
.hg .pager a,
.hg .pager span {
  border-color: rgba(232, 163, 60, 0.2);
}
.hg .pager .active {
  background: var(--gold);
  border-color: var(--gold);
  color: #16130f;
}

/* Age gate ---------------------------------------------------------------- */
.hg .age-gate {
  background:
    radial-gradient(ellipse at 60% 18%, rgba(232, 163, 60, 0.18), transparent 55%),
    #16130f;
}
.hg .age-gate-box {
  border-color: rgba(232, 163, 60, 0.25);
  border-radius: 16px;
  background: rgba(36, 30, 23, 0.92);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.hg .age-gate-badge {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #16130f;
}
.hg .age-gate-box h2 {
  font-family: var(--font-serif);
  color: var(--cream);
  font-weight: 600;
}

/* Footer ------------------------------------------------------------------ */
.hg footer {
  border-top-color: rgba(232, 163, 60, 0.16);
  color: var(--fog);
}
.hg .footer-logo {
  color: var(--cream);
}
.hg .page-title {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.hg .poster-caption strong {
  font-family: var(--font-serif);
  font-weight: 600;
}
.hg .footer-links a:hover {
  color: var(--gold);
}

@media (max-width: 959px) {
  .hg .hg-nav-inner {
    padding: 0 16px;
  }
  .hg .site-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    height: 44px;
    margin: 0;
    padding: 0 16px;
    gap: 24px;
    background: rgba(22, 19, 15, 0.96);
    border-bottom: 1px solid rgba(232, 163, 60, 0.16);
    overflow-x: auto;
  }
  .hg .site-nav-link {
    height: 44px;
    padding: 0 2px;
    border-bottom: 0;
  }
  .hg .site-nav-link.is-active {
    border-bottom: 2px solid var(--gold);
  }
  .hg .hg-nav-search {
    display: none;
  }
  .hg .hg-mobile-search {
    display: inline-flex;
  }
  .hg .hg-nav-right {
    margin-left: auto;
  }
  .hg main {
    margin-top: 44px;
  }
}

@media (max-width: 760px) {
  .hg .catalog,
  .hg .page,
  .hg .watch,
  .hg .search-area,
  .hg footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hg footer {
    margin-top: 40px;
  }
  .hg .hg-logo-mark {
    width: 26px;
    height: 26px;
  }
  .hg .hg-logo-text {
    font-size: 17px;
  }
  .hg .section-head h2 {
    font-size: 22px;
  }
  .hg .card-copy h3 {
    font-size: 13px;
  }
  .hg .section-head h2::before {
    height: 15px;
    margin-right: 9px;
  }
}

/* PC: move the hero arrows into the empty side gutters, centred between the
   viewport edge and the outer 3D card. The stage is max-width 1160px and the
   outer card extends ~37px past it on each side. */
@media (min-width: 1500px) {
  .hg .hero3d-btn.prev {
    left: calc(245.5px - 25vw);
  }
  .hg .hero3d-btn.next {
    right: calc(245.5px - 25vw);
  }
}
