/* =====================================================
   ZOYEE DRAMA — GLOBAL THEME (PRO VERSION)
   Mobile-first · Clean · SEO Friendly · Fast Rendering
===================================================== */

/* ---------- ROOT VARIABLES ---------- */
:root {
  --bg-page: #f5f7fa;              /* 页面背景 */
  --bg-card: #ffffff;              /* 卡片背景 */
  --bg-soft: #f0f2f5;
  --primary: #2563eb;              /* 蓝色主色 */
  --primary-dark: #1e40af;
  --text-main: #111827;            /* 主文本 */
  --text-sub: #6b7280;             /* 次要文本 */
  --border: #e5e7eb;
  --radius: 14px;                  /* 全站统一圆角 */
  --shadow: 0 4px 12px rgba(0,0,0,0.06);
  --max-width: 880px;              /* 内容最大宽度 */
}

/* ---------- GLOBAL RESET ---------- */
body {
  margin: 0;
  background: var(--bg-page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  line-height: 1.6;
}

img {
  max-width: 100%;
  border-radius: var(--radius);
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: auto;
  padding: 16px;
}

/* ---------- TITLES ---------- */
h1 {
  font-size: 1.8rem;
  margin: 14px 0;
  font-weight: 700;
}

h2 {
  margin: 30px 0 15px;
  font-size: 1.4rem;
  font-weight: 700;
}

h3 {
  margin: 18px 0 10px;
  font-size: 1.15rem;
  font-weight: 600;
}

/* ---------- HERO SECTIONS ---------- */
.hero-home, .guide-hero, .series-hero, .episode-hero, .actor-hero {
  margin-bottom: 24px;
  padding: 18px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  font-size: 0.9rem;
  margin: 12px 0 20px;
  color: var(--text-sub);
}
.breadcrumb a { color: var(--primary); }

/* ---------- TRENDING KEYWORDS ---------- */
.trending-keywords ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.trending-keywords li {
  padding: 6px 12px;
  background: var(--bg-soft);
  border-radius: var(--radius);
}

/* ---------- DRAMA GRID ---------- */
.drama-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 16px;
}

.drama-item {
  background: var(--bg-card);
  padding: 10px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.drama-item h3 {
  font-size: 1rem;
  margin-top: 8px;
}

.drama-item p {
  font-size: 0.9rem;
  color: var(--text-sub);
}

/* ---------- ACTOR GRID ---------- */
.actor-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 16px;
}

.actor-grid.small {
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
}

.actor-grid img {
  width: 100%;
  border-radius: var(--radius);
}

.actor-placeholder {
  width: 100%;
  height: 140px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
  color: var(--text-sub);
}

/* ---------- EPISODE LIST ---------- */
.episode-list ul {
  list-style: none;
  padding: 0;
}
.episode-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}
.airdate { color: var(--text-sub); font-size: 0.85rem; }

/* ---------- PREV/NEXT NAV ---------- */
.episode-nav {
  margin: 24px 0;
  display: flex;
  justify-content: space-between;
}
.episode-nav a {
  background: var(--primary);
  color: white;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
}
.episode-nav a:hover { background: var(--primary-dark); }

/* ---------- GUIDE PAGE ---------- */
.toc ul {
  list-style: none;
  padding: 0;
}
.toc li {
  padding: 6px 0;
}
.guide-section p,
.guide-section ul {
  margin-bottom: 14px;
}

.bullet {
  list-style: disc;
  margin-left: 22px;
}

/* ---------- APP CARDS ---------- */
.app-list {
  list-style: none;
  padding: 0;
}
.app-card {
  padding: 14px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

/* ---------- CAST GRID ---------- */
.cast-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 16px;
}
.cast-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius);
}
.cast-grid span {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
}

/* ---------- SEO EXTRA BLOCK ---------- */
.seo-extra,
.seo-series-extra,
.seo-episode-extra,
.seo-actor-extra {
  background: var(--bg-card);
  padding: 18px;
  margin: 20px 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- FAQ ---------- */
.faq .faq-item {
  background: var(--bg-soft);
  padding: 14px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.faq h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

/* ---------- FOOTER (optional) ---------- */
footer {
  margin-top: 40px;
  padding: 20px;
  text-align: center;
  color: var(--text-sub);
  font-size: 0.9rem;
}

/* ---------- RESPONSIVE ---------- */
@media (min-width: 768px) {
  h1 { font-size: 2rem; }
  .series-hero, .actor-hero {
    display: flex;
    gap: 20px;
  }
  .series-poster {
    max-width: 210px;
  }
  .actor-photo {
    max-width: 180px;
  }
}
