/* ==========================================================================
   好好影院 (www.haody99.cc) - Editorial Cinema Design System
   Local-only stylesheet, mobile-first, 375px zero horizontal overflow.
   ========================================================================== */

:root {
  --bg-page: #F5F6FA;
  --bg-surface: #FFFFFF;
  --bg-alt: #EDF1F7;
  --bg-dark: #111827;
  --ink-primary: #141923;
  --ink-secondary: #475569;
  --ink-muted: #64748B;
  --border-subtle: #E2E8F0;
  --brand-orange: #E86A00;
  --brand-orange-hover: #CC5B00;
  --brand-orange-soft: #FFF5EB;
  --brand-blue: #1565A8;
  --brand-blue-soft: #EAF4FC;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 42px rgba(15, 23, 42, 0.12);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--ink-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ---------- Header & Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.nav-link {
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-secondary);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-orange);
  background: var(--brand-orange-soft);
}

.nav-link-accent {
  color: var(--brand-blue);
  background: var(--brand-blue-soft);
}

.nav-link-accent:hover,
.nav-link-accent.is-active {
  color: #FFFFFF;
  background: var(--brand-blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-search {
  display: flex;
  align-items: center;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 3px 6px 3px 14px;
  width: 205px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search:focus-within {
  border-color: var(--brand-orange);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(232, 106, 0, 0.12);
}

.header-search input {
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--ink-primary);
  width: 100%;
  min-width: 0;
  font-family: inherit;
}

.header-search button {
  border: 0;
  background: var(--brand-orange);
  color: #FFFFFF;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.header-search button:hover {
  background: var(--brand-orange-hover);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  cursor: pointer;
  padding: 0 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink-primary);
  border-radius: 2px;
}

/* Mobile Drawer */
.mobile-drawer {
  border-top: 1px solid var(--border-subtle);
  background: #FFFFFF;
  padding: 16px 0 20px;
  box-shadow: var(--shadow-md);
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
}

.mobile-search button {
  padding: 10px 18px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--brand-orange);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.mobile-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.m-nav-item {
  display: block;
  text-align: center;
  padding: 10px 6px;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary);
}

.m-nav-item.is-active {
  background: var(--brand-orange);
  color: #FFFFFF;
}

.m-nav-accent {
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
}

/* ---------- Top Announcement Bar (Verbatim Required) ---------- */
.announce-bar {
  background: linear-gradient(90deg, #FFF7ED 0%, #FFFBF5 50%, #F0F7FF 100%);
  border-bottom: 1px solid #F5D7B5;
  padding: 10px 0;
}

.announce-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.announce-badge {
  flex-shrink: 0;
  background: var(--brand-orange);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  line-height: 1.5;
  margin-top: 1px;
}

.announce-text {
  margin: 0;
  font-size: 13.5px;
  color: #6B3B0A;
  line-height: 1.6;
  word-break: break-word;
}

/* ---------- Buttons & Pills ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  line-height: 1.3;
  font-family: inherit;
}

.btn-primary {
  background: var(--brand-orange);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--brand-orange-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: #FFFFFF;
  color: var(--ink-primary);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

.btn-white {
  background: #FFFFFF;
  color: var(--brand-blue);
}

.btn-white:hover {
  background: #F8FAFC;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.pill-orange {
  background: var(--brand-orange-soft);
  color: var(--brand-orange);
}

.pill-blue {
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
}

.pill-gray {
  background: var(--bg-alt);
  color: var(--ink-secondary);
}

.pill-light {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

/* ---------- Homepage Hero Section ---------- */
.hero-section {
  padding: 26px 0 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.hero-spotlight {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  box-shadow: var(--shadow-sm);
}

.spotlight-media a {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.spotlight-media img {
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
}

.spotlight-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.spotlight-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.spotlight-score {
  margin-left: auto;
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-orange);
}

.spotlight-title {
  margin: 0 0 4px;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.spotlight-title a:hover {
  color: var(--brand-orange);
}

.spotlight-sub {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.spotlight-summary {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: var(--ink-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-facts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-secondary);
  padding: 12px 14px;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Hero Sidebar TOP 6 */
.hero-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.more-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-blue);
  white-space: nowrap;
}

.more-link:hover {
  color: var(--brand-orange);
}

.mini-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-rank-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}

.mini-rank-item a:hover {
  background: var(--bg-page);
}

.rank-num {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  background: var(--bg-alt);
  color: var(--ink-secondary);
}

.rank-1 { background: #E86A00; color: #FFFFFF; }
.rank-2 { background: #1565A8; color: #FFFFFF; }
.rank-3 { background: #D97706; color: #FFFFFF; }

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-title {
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-meta {
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-score {
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-orange);
  flex-shrink: 0;
}

/* ---------- Mood Strip ---------- */
.mood-strip {
  padding: 6px 0 22px;
}

.mood-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.mood-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-right: 4px;
}

.mood-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mood-pill {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.mood-pill:hover {
  background: var(--brand-orange-soft);
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

/* ---------- Section & Cards ---------- */
.section-block {
  padding: 36px 0;
}

.section-alt {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.section-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-sub {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ink-muted);
}

.section-more {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-blue);
}

.section-more:hover {
  color: var(--brand-orange);
}

.drama-grid {
  display: grid;
  gap: 20px;
}

.drama-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.drama-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.section-alt .drama-card {
  background: var(--bg-page);
}

.drama-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 106, 0, 0.35);
}

.drama-poster-wrap {
  position: relative;
  aspect-ratio: 5 / 7;
  overflow: hidden;
  background: #141923;
}

.drama-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.drama-card:hover .drama-poster-wrap img {
  transform: scale(1.03);
}

.card-rating {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(17, 24, 39, 0.85);
  color: #FBBF24;
  font-size: 13px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 7px;
  backdrop-filter: blur(4px);
}

.card-status {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(17, 24, 39, 0.78);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.drama-card-body {
  padding: 13px 14px 15px;
}

.drama-card-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drama-card:hover .drama-card-title {
  color: var(--brand-orange);
}

.drama-card-meta {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.drama-card-meta .dot {
  margin: 0 4px;
}

.drama-card-cast {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drama-card-platform {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-blue);
  background: var(--brand-blue-soft);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
}

/* Channel Tabs & Sub-blocks */
.channel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ch-tab {
  border: 1px solid var(--border-subtle);
  background: var(--bg-page);
  color: var(--ink-secondary);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.ch-tab:hover,
.ch-tab.is-active {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #FFFFFF;
}

.channel-block {
  margin-top: 28px;
}

.channel-block:first-of-type {
  margin-top: 8px;
}

.channel-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.channel-block-title-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ch-accent-bar {
  width: 5px;
  height: 22px;
  border-radius: 4px;
  display: inline-block;
}

.channel-block-title-wrap h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
}

.ch-tagline {
  font-size: 13px;
  color: var(--ink-muted);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(125deg, #123D6B 0%, #1565A8 55%, #D96000 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 32px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-md);
}

.cta-banner h2 {
  margin: 10px 0 8px;
  font-size: 24px;
  line-height: 1.3;
}

.cta-banner p {
  margin: 0;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 660px;
}

.cta-banner-action {
  flex-shrink: 0;
}

/* Editorial Articles Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section-alt .article-card {
  background: var(--bg-page);
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.article-cover-link img {
  width: 100%;
  aspect-ratio: 800 / 420;
  object-fit: cover;
}

.article-body {
  padding: 18px 20px 22px;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.article-cat {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--brand-orange-soft);
  color: var(--brand-orange);
  font-size: 12px;
  font-weight: 700;
}

.article-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.4;
}

.article-title a:hover {
  color: var(--brand-orange);
}

.article-summary {
  margin: 0;
  font-size: 14px;
  color: var(--ink-secondary);
}

/* ---------- Inner Page Heroes & Breadcrumbs ---------- */
.page-hero {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 26px 0 28px;
}

.page-hero h1 {
  margin: 8px 0 8px;
  font-size: 28px;
  line-height: 1.3;
}

.page-hero-desc {
  margin: 0;
  font-size: 15px;
  color: var(--ink-secondary);
  max-width: 760px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb a:hover {
  color: var(--brand-orange);
}

/* Filter Bar */
.filter-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
}

.filter-pill,
.sort-pill {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-page);
  color: var(--ink-secondary);
  border: 1px solid transparent;
}

.filter-pill:hover,
.sort-pill:hover {
  color: var(--brand-orange);
  border-color: var(--brand-orange);
}

.filter-pill.is-active,
.sort-pill.is-active {
  background: var(--brand-orange);
  color: #FFFFFF;
}

/* ---------- Drama Detail Page ---------- */
.detail-hero {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 0 34px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 30px;
  margin-top: 18px;
  align-items: start;
}

.detail-poster img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.detail-title {
  margin: 0 0 4px;
  font-size: 32px;
  line-height: 1.2;
}

.detail-subtitle {
  margin: 0 0 18px;
  font-size: 14.5px;
  color: var(--ink-muted);
}

.score-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.score-box {
  padding-right: 20px;
  border-right: 1px solid var(--border-subtle);
}

.score-num {
  font-size: 36px;
  font-weight: 900;
  color: var(--brand-orange);
  line-height: 1;
}

.score-label {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 4px;
}

.score-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  flex: 1;
}

.score-stats span {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
}

.score-stats strong {
  font-size: 15px;
  color: var(--ink-primary);
}

.meta-dl {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px 16px;
  margin: 0;
  font-size: 14.5px;
}

.meta-dl dt {
  color: var(--ink-muted);
  font-weight: 600;
}

.meta-dl dd {
  margin: 0;
  color: var(--ink-primary);
}

.tag-chip {
  display: inline-block;
  padding: 2px 10px;
  margin: 0 6px 6px 0;
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 600;
}

.tag-chip:hover {
  background: var(--brand-orange-soft);
  color: var(--brand-orange);
}

.tag-chip-mood {
  background: var(--brand-orange-soft);
  color: var(--brand-orange);
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 7px;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 700;
}

.detail-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.content-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  margin-bottom: 20px;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 800;
  padding-left: 12px;
  border-left: 4px solid var(--brand-orange);
}

.lead-para {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-primary);
}

.highlight-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.highlight-list li {
  background: var(--bg-page);
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  line-height: 1.7;
}

.legal-reminder {
  margin-top: 16px;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  background: #F0F7FF;
  border: 1px solid #C6E0FA;
  font-size: 13.5px;
  color: #1A4971;
}

/* Aside Tools */
.tool-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 20px;
}

.tool-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
}

.tool-desc {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.calc-control {
  margin-bottom: 14px;
}

.calc-control label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
}

.calc-control input[type="range"] {
  width: 100%;
  accent-color: var(--brand-orange);
}

.calc-result {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.calc-metric {
  background: var(--brand-orange-soft);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
}

.calc-metric span {
  display: block;
  font-size: 26px;
  font-weight: 900;
  color: var(--brand-orange);
  line-height: 1.1;
}

.calc-metric small {
  font-size: 12px;
  color: #7C3F00;
}

.calc-presets {
  font-size: 12.5px;
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.archive-meta {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.archive-meta li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-subtle);
  font-size: 13.5px;
}

.archive-meta li:last-child {
  border-bottom: 0;
}

.archive-meta span {
  color: var(--ink-muted);
}

.mini-art-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-art-item {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
}

.mini-art-item:hover {
  border-color: var(--brand-orange);
}

.mini-art-item strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 15px;
}

.mini-art-item p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-secondary);
}

/* ---------- Rank Page ---------- */
.rank-table-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rank-row {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 44px 96px minmax(0, 1fr) 128px;
  gap: 18px;
  align-items: center;
}

.rank-row-num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  background: var(--bg-alt);
  color: var(--ink-secondary);
}

.rank-row-poster img {
  width: 96px;
  height: 134px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.rank-row-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.rank-row-top h2 {
  margin: 0;
  font-size: 19px;
}

.rank-row-top h2 a:hover {
  color: var(--brand-orange);
}

.rank-row-cast {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--brand-blue);
  font-weight: 600;
}

.rank-row-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-row-score {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.big-score {
  font-size: 28px;
  font-weight: 900;
  color: var(--brand-orange);
  line-height: 1;
}

.score-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-alt);
  border-radius: 999px;
  overflow: hidden;
}

.score-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-orange));
}

/* ---------- Picker Form ---------- */
.picker-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}

.picker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.picker-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}

.picker-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink-primary);
}

.picker-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.picker-count {
  margin-left: auto;
  font-size: 14px;
  color: var(--ink-secondary);
}

.picker-count strong {
  color: var(--brand-orange);
  font-size: 16px;
}

/* ---------- Editorial Article Reading ---------- */
.article-page-wrap {
  padding: 28px 0 48px;
}

.article-reading-container {
  max-width: 860px;
}

.article-header {
  margin: 14px 0 22px;
}

.article-header h1 {
  margin: 10px 0 8px;
  font-size: 30px;
  line-height: 1.3;
}

.article-sub {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--ink-secondary);
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-muted);
}

.article-hero-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 26px;
  box-shadow: var(--shadow-md);
}

.article-hero-img img {
  width: 100%;
}

.prose {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px 32px;
  font-size: 16px;
  line-height: 1.9;
  color: #1F2937;
}

.prose h2 {
  margin: 26px 0 12px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-primary);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 16px;
}

.prose ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.article-related-dramas {
  margin-top: 32px;
}

.article-related-dramas h3,
.article-more-box h3 {
  margin: 0 0 16px;
  font-size: 19px;
}

.article-more-box {
  margin-top: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}

.more-art-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.more-art-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}

.more-art-links a:hover {
  color: var(--brand-orange);
}

/* Search & Empty State */
.search-hero-form {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  max-width: 560px;
}

.search-hero-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: inherit;
}

.empty-state {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 46px 24px;
  text-align: center;
}

.code-404 {
  font-size: 56px;
  font-weight: 900;
  color: var(--brand-orange);
  line-height: 1;
  margin-bottom: 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: #CBD5E1;
  padding-top: 44px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 0.8fr) minmax(0, 0.9fr);
  gap: 32px;
  padding-bottom: 34px;
}

.footer-title {
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.footer-en {
  font-size: 13px;
  font-weight: 600;
  color: #F59E0B;
  margin-left: 6px;
}

.footer-desc {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: #94A3B8;
}

.footer-notice {
  margin: 0;
  font-size: 12.5px;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand-orange);
}

.footer-heading {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 16px 0;
  font-size: 13px;
  color: #94A3B8;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-beian a {
  color: #E2E8F0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-beian a:hover {
  color: #F59E0B;
}

/* Back to top */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--brand-orange);
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.back-top[hidden] {
  display: none;
}

/* ---------- Responsive Breakpoints (Strict 375px Safety) ---------- */
@media (max-width: 1120px) {
  .main-nav {
    display: none;
  }
  .header-search {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .drama-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .article-grid {
    grid-template-columns: 1fr;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-poster {
    max-width: 240px;
  }
  .detail-body-grid {
    grid-template-columns: 1fr;
  }
  .score-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rank-row {
    grid-template-columns: 36px 76px minmax(0, 1fr);
  }
  .rank-row-score {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    border-top: 1px solid var(--border-subtle);
    padding-top: 10px;
  }
  .score-bar {
    max-width: 120px;
  }
  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 14px;
  }
  .brand-logo img {
    height: 36px;
  }
  .header-inner {
    min-height: 58px;
  }
  .hero-spotlight {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }
  .spotlight-media {
    max-width: 220px;
    margin: 0 auto;
  }
  .spotlight-title {
    font-size: 22px;
  }
  .page-hero h1,
  .detail-title,
  .article-header h1 {
    font-size: 23px;
  }
  .picker-grid {
    grid-template-columns: 1fr;
  }
  .picker-count {
    margin-left: 0;
    width: 100%;
  }
  .meta-dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .meta-dl dt {
    margin-top: 8px;
  }
  .prose,
  .content-card {
    padding: 18px 16px;
  }
  .announce-inner {
    flex-direction: column;
    gap: 6px;
  }
  .rank-row {
    padding: 14px;
    gap: 12px;
  }
  .rank-row-poster img {
    width: 76px;
    height: 106px;
  }
  .score-box {
    border-right: 0;
    padding-right: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
    width: 100%;
  }
}
