:root {
  --bg: #0b0b0f;
  --bg-2: #14141c;
  --bg-3: #1c1c28;
  --text: #f5f5f7;
  --text-muted: #a8a8b8;
  --gold: #f5c542;
  --orange: #ff8a3d;
  --pink: #ff2d7a;
  --magenta: #e91e8c;
  --border: rgba(255, 255, 255, 0.08);
  --gradient: linear-gradient(135deg, #f5c542 0%, #ff8a3d 40%, #ff2d7a 75%, #e91e8c 100%);
  --gradient-soft: linear-gradient(135deg, rgba(245, 197, 66, 0.15), rgba(255, 45, 122, 0.15));
  --nav-h: 58px;
  --ads-h: 0px;
  --radius: 12px;
  --max: 1100px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  padding-top: var(--nav-h);
}

body.has-site-ads {
  padding-top: calc(var(--nav-h) + var(--ads-h));
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--pink);
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* ===== Nav ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 11, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: var(--gradient-soft);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* ===== Site ads from myads.html ===== */
.site-ads-sticky {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.site-ads-sticky .site-ads-root {
  width: min(100% - 16px, var(--max));
  margin-inline: auto;
}

.site-ads-top {
  margin: 16px 0 24px;
  padding: 10px 12px 6px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  scroll-margin-top: calc(var(--nav-h) + var(--ads-h) + 12px);
}

.site-ads-top[hidden],
.site-ads-sticky[hidden] {
  display: none !important;
}

.site-ads-root .applist-title {
  color: #222;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.site-ads-root .ads {
  gap: 4px 8px;
  flex-wrap: wrap;
}

.site-ads-root .ads > div {
  flex: 0 0 auto;
  flex-shrink: 0;
  width: 70px;
  min-width: 70px;
}

.site-ads-root .ads a {
  flex-shrink: 0;
}

.site-ads-root .ads img {
  width: 65px !important;
  height: 65px !important;
  max-width: none !important;
  min-width: 65px;
  object-fit: cover;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.btn-primary {
  background: var(--gradient);
  color: #111;
}

.btn-primary:hover {
  color: #111;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: #fff;
}

.btn-ghost:hover {
  color: #fff;
  border-color: var(--pink);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #000;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 15, 0.25) 0%, rgba(11, 11, 15, 0.55) 45%, rgba(11, 11, 15, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 0 36px;
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.hero-media {
  display: none;
}

.hero-brand {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.15;
}

.hero-content h1 {
  margin: 0 0 12px;
  font-size: clamp(1.15rem, 3.2vw, 1.55rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  max-width: 36em;
}

.hero-content .lead {
  margin: 0 0 20px;
  color: var(--text-muted);
  max-width: 40em;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 14px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: #666;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb [aria-current="page"] {
  color: var(--gold);
}

/* ===== Layout 3:7 ===== */
.section {
  padding: 36px 0;
}

.section-title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-desc {
  margin: 0 0 22px;
  color: var(--text-muted);
  max-width: 48em;
}

.ratio-37 {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 28px;
}

.ratio-37.reverse {
  grid-template-columns: 7fr 3fr;
}

.ratio-37 .media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  position: sticky;
  top: calc(var(--nav-h) + var(--ads-h) + 12px);
}

.ratio-37 .media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.ratio-37 .copy h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #fff;
}

.ratio-37 .copy p {
  margin: 0 0 12px;
  color: var(--text-muted);
}

.ratio-37 .copy p strong,
.article p strong,
.seo-block p strong {
  color: #fff;
  font-weight: 600;
}

.article h2,
.seo-block h2 {
  margin: 28px 0 12px;
  font-size: 1.35rem;
  color: #fff;
}

.article h3,
.seo-block h3 {
  margin: 20px 0 10px;
  font-size: 1.1rem;
  color: var(--gold);
}

.article p,
.seo-block p {
  margin: 0 0 14px;
  color: var(--text-muted);
}

.article ul,
.seo-block ul,
.article ol,
.seo-block ol {
  margin: 0 0 16px;
  padding-left: 1.2em;
  color: var(--text-muted);
}

.article li,
.seo-block li {
  margin-bottom: 8px;
}

.seo-block {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  margin: 24px 0;
}

/* ===== Cards grids ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.video-card,
.artist-card,
.drama-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.video-card:hover,
.artist-card:hover,
.drama-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 45, 122, 0.4);
}

.video-card .cover,
.drama-card .cover {
  background: #0a0a0f;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.video-card img,
.drama-card img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
}

.artist-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.card-body {
  padding: 12px;
}

.card-body h3 {
  margin: 0 0 6px;
  font-size: 0.92rem;
  color: #fff;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body .actor {
  font-size: 0.8rem;
  color: var(--pink);
  margin: 0;
}

.card-body .tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 4px 0 0;
}

/* ===== Feature list ===== */
.feature-list {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 10px 12px 10px 34px;
  background: var(--bg-3);
  border-radius: 8px;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient);
}

/* ===== Page hero (subpages) ===== */
.page-hero {
  padding: 28px 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 45, 122, 0.12), transparent 50%),
    radial-gradient(ellipse at 80% 0%, rgba(245, 197, 66, 0.1), transparent 45%);
}

.page-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero .lead {
  margin: 0;
  color: var(--text-muted);
  max-width: 48em;
}

/* ===== Error pages ===== */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 40px 0;
}

.error-page .code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  margin: 0;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page h1 {
  margin: 10px 0;
  font-size: 1.5rem;
}

.error-page p {
  color: var(--text-muted);
  max-width: 36em;
  margin: 0 auto 20px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 48px;
  padding: 36px 0 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: #fff;
}

.site-footer p,
.site-footer a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-bottom {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: #666;
  font-size: 0.82rem;
}

/* ===== FAQ ===== */
.faq details {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 12px 16px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #fff;
}

.faq details p {
  margin: 10px 0 0;
  color: var(--text-muted);
}

/* ===== Misc ===== */
.toc {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 24px;
}

.toc h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #fff;
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
  color: var(--text-muted);
}

.toc a {
  color: var(--text-muted);
}

.toc a:hover {
  color: var(--gold);
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.keyword-cloud a,
.keyword-cloud span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.keyword-cloud a:hover {
  color: #fff;
  border-color: var(--pink);
}

.cta-band {
  margin: 28px 0;
  padding: 28px 20px;
  border-radius: var(--radius);
  text-align: center;
  background: var(--gradient-soft);
  border: 1px solid rgba(255, 45, 122, 0.25);
}

.cta-band h2 {
  margin: 0 0 8px;
  color: #fff;
}

.cta-band p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

/* ===== Mobile ===== */
@media (max-width: 900px) {
  :root {
    --ads-h: 148px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ratio-37,
  .ratio-37.reverse {
    grid-template-columns: 1fr;
  }

  .ratio-37 .media {
    position: static;
  }

  .ratio-37 .media img {
    aspect-ratio: 3 / 4;
    max-height: 420px;
    margin-inline: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-h: 54px;
    --ads-h: 148px;
  }

  body {
    font-size: 15px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(11, 11, 15, 0.98);
    padding: 10px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  /* Mobile hero: full banner image, text below (no overlay crop) */
  .hero {
    min-height: 0;
    display: block;
    overflow: visible;
    background: var(--bg);
  }

  .hero-bg,
  .hero-overlay {
    display: none;
  }

  .hero-media {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #000;
  }

  .hero-content {
    padding: 20px 0 24px;
    background: linear-gradient(180deg, rgba(20, 20, 28, 0.95), var(--bg));
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card-body h3 {
    font-size: 0.82rem;
  }
}
