:root {
  --bg: #0a0a0a;
  --bg-soft: #121212;
  --bg-card: #1a1a1a;
  --bg-elevated: #222;
  --text: #f5f5f5;
  --text-muted: #a8a8a8;
  --text-dim: #777;
  --accent: #ff2d55;
  --accent-hot: #ff1493;
  --accent-orange: #ff8c00;
  --accent-red: #e11d48;
  --gradient: linear-gradient(135deg, #ff8c00 0%, #ff2d55 50%, #ff1493 100%);
  --border: rgba(255, 255, 255, 0.08);
  --nav-h: 58px;
  --ads-h: 0px;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --max: 1100px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--ads-h) + 12px);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-orange);
}

ul,
ol {
  padding-left: 1.25em;
}

h1,
h2,
h3,
h4 {
  line-height: 1.35;
  font-weight: 700;
  color: #fff;
}

h1 {
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  margin: 1.75rem 0 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid transparent;
  border-image: var(--gradient) 1;
}

h3 {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.55rem;
  color: #ffe4ec;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.container {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
}

/* ===== Header / Nav ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.brand img {
  height: 36px;
  width: auto;
}

.brand-text {
  font-weight: 800;
  font-size: 1.05rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: visible;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.84rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 45, 85, 0.15);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
}

/* Sticky site ads (from myads.html), fixed under nav */
.site-ads-slot {
  margin: 0;
  height: 0;
  overflow: visible;
}

.site-ads-host {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 990;
  background: rgba(12, 12, 12, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 12px 10px;
}

.site-ads-host .applist-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
  text-align: center;
}

.site-ads-host #ads {
  margin: 6px 0 0;
  gap: 6px 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-ads-host #ads > div {
  flex: 0 0 70px;
  min-width: 70px;
  width: 70px;
}

.site-ads-host #ads img {
  width: 65px;
  height: 65px;
  max-width: none;
  min-width: 65px;
  flex-shrink: 0;
  object-fit: contain;
  aspect-ratio: 1 / 1;
}

.site-ads-host #ads figcaption,
.site-ads-host #ads .caption {
  color: var(--text-muted);
}

body.has-site-ads .site-ads-host {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Page offset for fixed header + ads */
.page-offset {
  padding-top: calc(var(--nav-h) + var(--ads-h) + 8px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.hero-media {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center top;
  min-height: 180px;
  max-height: 420px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.92) 0%,
    rgba(10, 10, 10, 0.35) 45%,
    rgba(10, 10, 10, 0.25) 100%
  );
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.hero-overlay .btn-group,
.hero-overlay a {
  pointer-events: auto;
}

.hero-copy {
  padding: 1.5rem 0 1.75rem;
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
}

.hero-copy h1 {
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-copy p {
  color: #ddd;
  max-width: 36em;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
  color: #fff;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 18px rgba(255, 45, 85, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border);
}

/* Content layout 3:7 */
.ratio-block {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 1.25rem;
  align-items: start;
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.ratio-block.reverse {
  grid-template-columns: 7fr 3fr;
}

.ratio-block .media {
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}

.ratio-block .media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.ratio-block .copy h3 {
  margin-top: 0;
}

.ratio-block .copy p:last-child {
  margin-bottom: 0;
}

/* Video / artist / drama grids */
.section {
  margin: 2rem 0;
}

.section-intro {
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.media-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s, border-color 0.2s;
}

.media-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 45, 85, 0.4);
}

.media-card .thumb {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
  background: #111;
}

.media-card .thumb.landscape {
  aspect-ratio: 16 / 10;
}

.media-card .meta {
  padding: 0.65rem 0.7rem 0.85rem;
}

.media-card .meta h3 {
  font-size: 0.88rem;
  margin: 0 0 0.25rem;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-card .meta p {
  font-size: 0.78rem;
  margin: 0;
  color: var(--text-dim);
}

.artist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.artist-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 0.5rem;
}

.artist-card img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.55rem;
  border: 2px solid transparent;
  background: var(--gradient);
  padding: 2px;
}

.artist-card strong {
  display: block;
  font-size: 0.9rem;
  color: #fff;
}

.artist-card span {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Feature shot gallery */
.shot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

.shot-row figure {
  margin: 0;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.shot-row img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot-row figcaption {
  padding: 0.45rem 0.55rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0.5rem 0 1.25rem;
  padding: 0.55rem 0.75rem;
  background: var(--bg-soft);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--text-dim);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb [aria-current="page"] {
  color: var(--accent);
}

/* Article / prose */
.prose {
  max-width: 100%;
}

.prose p {
  text-align: justify;
}

.prose ul,
.prose ol {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.prose li {
  margin-bottom: 0.35rem;
}

.highlight-box {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  padding: 0.9rem 1rem;
  margin: 1.25rem 0;
  border-radius: 0 8px 8px 0;
}

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}

.toc h2 {
  margin-top: 0;
  font-size: 1rem;
  border: none;
}

.toc ol {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
}

.toc a {
  color: var(--text-muted);
}

.toc a:hover {
  color: var(--accent);
}

.cta-inline {
  display: inline;
  color: var(--accent);
  font-weight: 700;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 2rem 0 2.5rem;
  background: #050505;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 0.65rem;
}

.footer-brand p {
  font-size: 0.85rem;
}

.footer-col h3 {
  font-size: 0.95rem;
  margin: 0 0 0.65rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-bottom {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}

/* Error pages */
.error-page {
  text-align: center;
  padding: 3rem 1rem 4rem;
}

.error-page .code {
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-page h1 {
  font-size: 1.4rem;
}

/* Internal link chips */
.link-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.link-chips a {
  padding: 0.35rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.link-chips a:hover {
  border-color: var(--accent);
  color: #fff;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy,
.ratio-block,
.media-card,
.artist-card {
  animation: fadeUp 0.55s ease both;
}

/* ===== Mobile ===== */
@media (max-width: 900px) {
  .card-grid,
  .artist-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .ratio-block,
  .ratio-block.reverse {
    grid-template-columns: 1fr;
  }

  .ratio-block .media {
    max-width: 280px;
    margin-inline: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile/tablet: hero image full show, copy below (not overlay) */
  .hero {
    display: flex;
    flex-direction: column;
    background: var(--bg);
  }

  .hero-media {
    aspect-ratio: auto;
    width: 100%;
    height: auto;
    max-height: none;
    min-height: 0;
    object-fit: contain;
    object-position: center center;
  }

  .hero-overlay {
    position: static;
    inset: auto;
    background: linear-gradient(to bottom, #121212 0%, var(--bg) 100%);
    display: block;
    pointer-events: auto;
  }

  .hero-copy {
    padding: 1rem 0 1.25rem;
  }

  .hero-copy h1 {
    font-size: 1.35rem;
    text-shadow: none;
  }

  .hero-copy p {
    color: var(--text-muted);
    font-size: 0.9rem;
  }
}

@media (max-width: 720px) {
  .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;
    background: rgba(12, 12, 12, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
    overflow: visible;
    flex: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
  }

  .brand-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }

  .shot-row {
    grid-template-columns: 1fr 1fr;
  }

  .artist-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  body {
    font-size: 15px;
  }
}
