:root {
  --bg: #0a0a0c;
  --bg-elevated: #141418;
  --bg-soft: #1c1c22;
  --text: #f5f5f7;
  --text-muted: #b8b8c0;
  --border: rgba(255, 255, 255, 0.08);
  --pink: #e6007e;
  --orange: #ff8a00;
  --gold: #ffd24a;
  --gradient: linear-gradient(135deg, #ffd24a 0%, #ff8a00 45%, #e6007e 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255, 210, 74, 0.18), rgba(230, 0, 126, 0.18));
  --radius: 14px;
  --nav-h: 64px;
  --ad-bar-h: 72px;
  --max: 1080px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", Georgia, serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 138, 0, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 0%, rgba(230, 0, 126, 0.2), transparent 50%),
    var(--bg);
  line-height: 1.75;
  font-size: 16px;
  padding-top: var(--nav-h);
  -webkit-font-smoothing: antialiased;
}

/* Sticky site ads (from myads.html) — sticks under nav while scrolling */
.site-ads-slot {
  position: sticky;
  top: var(--nav-h);
  z-index: 900;
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.75rem 0.55rem;
  background: rgba(14, 14, 18, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.site-ads-slot:empty {
  display: none;
  padding: 0;
  margin: 0;
  border: 0;
  box-shadow: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #ffb4de;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.35;
  font-weight: 500;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.4rem);
}

h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  position: relative;
  padding-bottom: 0.55rem;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 99px;
  background: var(--gradient);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

ul,
ol {
  color: var(--text-muted);
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.45rem;
}

.container {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  flex-shrink: 0;
}

.brand img {
  height: 40px;
  width: auto;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

/* Sticky download bar */
.download-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  min-height: var(--ad-bar-h);
  background: rgba(20, 20, 24, 0.96);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.download-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0;
}

.download-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem 0.4rem 0.4rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  min-width: 0;
  flex: 1 1 calc(25% - 0.55rem);
  max-width: 240px;
  justify-content: flex-start;
}

.download-chip img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.download-chip span {
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-chip .tag {
  margin-left: auto;
  font-size: 0.68rem;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: var(--gradient);
  color: #111;
  font-weight: 700;
}

.download-chip.recommend .tag {
  background: linear-gradient(135deg, #ff8a00, #ffd24a);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(72vh, 560px);
  display: grid;
  place-items: end stretch;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0.15) 0%, rgba(10, 10, 12, 0.55) 45%, rgba(10, 10, 12, 0.96) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 2.5rem;
}

.hero-content h1 {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

.hero p {
  max-width: 42rem;
  color: #e8e8ee;
  font-size: 1.02rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient);
  color: #111;
  box-shadow: 0 8px 24px rgba(230, 0, 126, 0.35);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
}

/* Ad panel */
.ad-panel {
  scroll-margin-top: calc(var(--nav-h) + var(--ad-bar-h) + 12px);
  margin: 1.25rem 0 1.75rem;
  padding: 1.15rem;
  border-radius: var(--radius);
  background: var(--gradient-soft);
  border: 1px solid rgba(255, 138, 0, 0.28);
  box-shadow: var(--shadow);
}

.ad-panel h2 {
  margin-bottom: 0.35rem;
}

.ad-panel h2::after {
  display: none;
}

.ad-panel > p {
  margin-bottom: 0.9rem;
}

.ad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.ad-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 0.6rem;
  border-radius: 12px;
  background: rgba(10, 10, 12, 0.55);
  border: 1px solid var(--border);
  color: var(--text);
  text-align: center;
}

.ad-card img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
}

.ad-card strong {
  font-size: 0.92rem;
}

.ad-card small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.ad-card .btn {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
}

/* Sections */
.section {
  padding: 2.25rem 0;
}

.section-intro {
  margin-bottom: 1.5rem;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-block: 1px solid var(--border);
}

/* 3:7 content blocks */
.content-block {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.75rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.content-block.reverse {
  grid-template-columns: 7fr 3fr;
}

.content-block.reverse .block-media {
  order: 2;
}

.content-block.reverse .block-body {
  order: 1;
}

.block-media {
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 16;
  max-height: 420px;
}

.block-media.landscape {
  aspect-ratio: 16 / 10;
  max-height: 280px;
}

.block-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.block-body h3 {
  margin-top: 0.2rem;
}

.block-body p:last-child {
  margin-bottom: 0;
}

/* Cards grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.media-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.media-card .thumb {
  aspect-ratio: 3 / 4;
  background: #0d0d10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.media-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

#latest-videos .media-card .thumb {
  aspect-ratio: unset;
  min-height: 0;
  max-height: none;
  height: auto;
  display: block;
}

#latest-videos .media-card .thumb img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
}

.media-card .meta {
  padding: 0.8rem 0.85rem 1rem;
}

.media-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.media-card p {
  font-size: 0.85rem;
  margin: 0;
}

.artist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.artist-card {
  text-align: center;
  padding: 0.9rem 0.7rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.artist-card img {
  width: 96px;
  height: 96px;
  margin: 0 auto 0.7rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  background:
    linear-gradient(#141418, #141418) padding-box,
    var(--gradient) border-box;
}

.artist-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.artist-card p {
  font-size: 0.82rem;
  margin: 0;
}

/* FAQ / SEO prose */
.prose {
  max-width: 100%;
}

.prose h2 {
  margin-top: 2rem;
}

.prose h3 {
  margin-top: 1.35rem;
}

.faq-item {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.faq-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.toc {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.toc ol {
  margin: 0.4rem 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 1.1rem 0 1.25rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb span {
  opacity: 0.5;
}

.page-hero {
  padding: 1.5rem 0 0.5rem;
}

.page-hero p {
  max-width: 46rem;
}

.legal-note {
  font-size: 0.9rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--pink);
  background: rgba(230, 0, 126, 0.08);
  border-radius: 0 10px 10px 0;
}

/* Error pages */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem 0 3rem;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 16vw, 7rem);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2.2rem 0 2.6rem;
  border-top: 1px solid var(--border);
  background: #070709;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h3 {
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: var(--text-muted);
}

.footer-copy {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: #888;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.keyword-cloud a,
.keyword-cloud span {
  font-size: 0.78rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Motion */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.ad-panel,
.content-block,
.media-card,
.artist-card {
  animation: rise-in 0.7s ease both;
}

.media-card:nth-child(2),
.artist-card:nth-child(2) {
  animation-delay: 0.08s;
}

.media-card:nth-child(3),
.artist-card:nth-child(3) {
  animation-delay: 0.16s;
}

.media-card:nth-child(4),
.artist-card:nth-child(4) {
  animation-delay: 0.24s;
}

/* Mobile */
@media (max-width: 900px) {
  :root {
    --nav-h: 58px;
    --ad-bar-h: auto;
  }

  body {
    padding-top: var(--nav-h);
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem;
    background: rgba(10, 10, 12, 0.98);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0.9rem;
  }

  .download-bar-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    justify-content: stretch;
  }

  .download-chip {
    flex: initial;
    max-width: none;
    width: 100%;
    justify-content: center;
  }

  .download-chip .tag {
    display: none;
  }

  .ad-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Mobile hero: image full width on top, text below (no overlay crop) */
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    place-items: initial;
    overflow: visible;
  }

  .hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    background: #000;
  }

  .hero-media img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center top;
    display: block;
  }

  .hero-media::after {
    display: none;
  }

  .hero-content {
    position: relative;
    z-index: 1;
    padding: 1.15rem 0 1.4rem;
    background: linear-gradient(180deg, rgba(20, 20, 24, 0.98), var(--bg));
  }

  .hero-content h1 {
    font-size: 1.45rem;
    text-shadow: none;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .content-block,
  .content-block.reverse {
    grid-template-columns: 1fr;
  }

  .content-block.reverse .block-media,
  .content-block.reverse .block-body {
    order: initial;
  }

  .block-media {
    max-height: 360px;
    aspect-ratio: 3 / 4;
    max-width: 280px;
    margin-inline: auto;
  }

  .block-media.landscape {
    max-width: 100%;
    aspect-ratio: 16 / 10;
  }

  .card-grid,
  .artist-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  body {
    padding-top: var(--nav-h);
  }

  .download-bar-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-chip {
    padding: 0.35rem 0.45rem;
    gap: 0.35rem;
  }

  .download-chip span {
    font-size: 0.72rem;
  }

  .download-chip img {
    width: 28px;
    height: 28px;
  }

  .hero {
    min-height: 0;
  }

  .cta-group .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-content,
  .ad-panel,
  .content-block,
  .media-card,
  .artist-card {
    animation: none;
  }
}
