:root {
  --bg: #0f0e12;
  --bg-card: #1a181f;
  --bg-elevated: #232128;
  --text: #f2eff5;
  --text-muted: #a098b0;
  --accent: #c2a87a;
  --accent-hover: #d8c29a;
  --border: #2e2a35;
  --tag-bg: rgba(194, 168, 122, 0.15);
  --tag-color: #d8c29a;
  --radius: 8px;
  --font-main: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; object-fit: cover; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* Header */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(15, 14, 18, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: 60px;
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 32px; width: auto; border-radius: 4px; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: 0.5px; }
.nav-desktop { display: none; gap: 24px; }
.nav-desktop a { color: var(--text-muted); font-size: 14px; transition: color 0.2s; }
.nav-desktop a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-download-sm {
  background: var(--accent); color: #000; font-weight: 600; font-size: 13px;
  padding: 8px 16px; border-radius: 20px; transition: background 0.2s;
}
.btn-download-sm:hover { background: var(--accent-hover); }
.menu-toggle { display: block; color: var(--text); font-size: 24px; line-height: 1; padding: 4px; }
.mobile-nav {
  display: none; position: fixed; top: 60px; left: 0; width: 100%;
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  padding: 16px; flex-direction: column; gap: 16px; z-index: 99;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--text); font-size: 16px; padding: 8px 0; border-bottom: 1px solid var(--border); }

/* Main */
main { padding-top: 60px; }

/* Hero */
.hero { padding: 40px 16px 60px; max-width: 1200px; margin: 0 auto; }
.hero-content { margin-bottom: 40px; }
.hero h1 { font-size: 32px; line-height: 1.3; margin-bottom: 16px; font-weight: 800; }
.hero-desc { color: var(--text-muted); font-size: 15px; margin-bottom: 24px; max-width: 500px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); color: #000; font-weight: 600; font-size: 15px;
  padding: 14px 24px; border-radius: 24px; text-align: center; transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline {
  border: 1px solid var(--border); color: var(--text); font-size: 15px;
  padding: 14px 24px; border-radius: 24px; text-align: center; transition: border-color 0.2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.hero-wall {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hero-wall::-webkit-scrollbar { display: none; }
.hero-card {
  flex: 0 0 140px; position: relative; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 2/3; background: var(--bg-elevated);
}
.hero-card.main { flex: 0 0 180px; }
.hero-card img { width: 100%; height: 100%; }
.hero-card-info {
  position: absolute; bottom: 0; left: 0; width: 100%;
  padding: 20px 8px 8px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  font-size: 12px; color: #fff;
}
.hero-tag { font-size: 10px; color: var(--accent); margin-bottom: 2px; }

/* Section Common */
section { padding: 60px 16px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: 32px; }
.section-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.section-sub { color: var(--text-muted); font-size: 14px; }

/* Today Feature */
.feature-card {
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; border: 1px solid var(--border);
}
.feature-img-wrap { position: relative; aspect-ratio: 16/9; }
.feature-img-wrap img { width: 100%; height: 100%; }
.feature-info { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.feature-info h3 { font-size: 22px; margin-bottom: 12px; }
.feature-meta { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.tag { font-size: 12px; background: var(--tag-bg); color: var(--tag-color); padding: 4px 10px; border-radius: 4px; }
.feature-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.feature-actions { display: flex; gap: 12px; }

/* Genre Filter */
.genre-filters { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 16px; margin-bottom: 24px; scrollbar-width: none; }
.genre-filters::-webkit-scrollbar { display: none; }
.filter-btn {
  white-space: nowrap; padding: 8px 20px; border-radius: 20px;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted);
  font-size: 14px; transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--text); }
.filter-btn.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600; }
.genre-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.drama-card {
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s; display: block;
}
.drama-card:hover, .drama-card:focus {
  transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.5); outline: none;
}
.drama-poster { position: relative; aspect-ratio: 2/3; background: var(--bg-elevated); }
.drama-poster img { width: 100%; height: 100%; }
.drama-status {
  position: absolute; bottom: 8px; right: 8px; font-size: 11px;
  background: rgba(0,0,0,0.7); color: #fff; padding: 2px 6px; border-radius: 4px;
  backdrop-filter: blur(4px);
}
.drama-content { padding: 12px; }
.drama-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drama-meta { font-size: 12px; color: var(--text-muted); display: flex; justify-content: space-between; }

/* Ranking */
.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-item {
  display: flex; gap: 16px; background: var(--bg-card); padding: 16px;
  border-radius: var(--radius); align-items: center; border: 1px solid transparent; transition: border-color 0.2s;
}
.rank-item:hover { border-color: var(--border); }
.rank-top { background: linear-gradient(90deg, var(--bg-elevated), var(--bg-card)); }
.rank-num {
  font-size: 24px; font-weight: 800; color: var(--accent); font-style: italic;
  width: 30px; text-align: center; flex-shrink: 0;
}
.rank-img { width: 60px; aspect-ratio: 2/3; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.rank-info { flex: 1; min-width: 0; }
.rank-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.rank-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.rank-reason { font-size: 13px; color: #ccc; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* New Updates */
.update-list { display: flex; flex-direction: column; gap: 12px; }
.update-item {
  display: flex; gap: 12px; background: var(--bg-card); padding: 12px;
  border-radius: var(--radius); align-items: center;
}
.update-img { width: 50px; aspect-ratio: 2/3; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.update-info { flex: 1; min-width: 0; }
.update-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.update-tags { display: flex; gap: 8px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }

/* Relations */
.relation-group { margin-bottom: 40px; }
.relation-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.relation-header h3 { font-size: 18px; }
.relation-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.relation-grid { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
.relation-grid::-webkit-scrollbar { display: none; }
.rel-card { flex: 0 0 100px; aspect-ratio: 2/3; border-radius: var(--radius); overflow: hidden; }
.rel-card.main { flex: 0 0 140px; }

/* Short Time */
.short-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.short-card { position: relative; aspect-ratio: 2/3; border-radius: var(--radius); overflow: hidden; }
.short-time {
  position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,0.7);
  font-size: 11px; padding: 2px 6px; border-radius: 4px; backdrop-filter: blur(4px);
}

/* Curated */
.curated-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.curated-card { display: flex; flex-direction: column; gap: 8px; }
.curated-img { aspect-ratio: 2/3; border-radius: var(--radius); overflow: hidden; }
.curated-img img { width: 100%; height: 100%; transition: transform 0.3s; }
.curated-card:hover .curated-img img { transform: scale(1.05); }
.curated-note { font-size: 13px; color: var(--text-muted); }

/* Experience */
.exp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.exp-card { background: var(--bg-card); padding: 20px; border-radius: var(--radius); }
.exp-icon { font-size: 28px; margin-bottom: 12px; color: var(--accent); }
.exp-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.exp-desc { font-size: 13px; color: var(--text-muted); }

/* Reviews */
.review-list { display: flex; flex-direction: column; gap: 16px; }
.review-item { background: var(--bg-card); padding: 16px; border-radius: var(--radius); }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--accent);
}
.review-user { font-size: 14px; font-weight: 600; }
.review-drama { font-size: 12px; color: var(--accent); margin-left: auto; }
.review-text { font-size: 14px; line-height: 1.5; color: #ddd; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; padding: 16px; font-size: 15px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; color: var(--text);
}
.faq-icon { transition: transform 0.3s; color: var(--accent); }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out;
  padding: 0 16px; color: var(--text-muted); font-size: 14px;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 16px; }

/* Download */
.download-section { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.download-box { text-align: center; max-width: 600px; margin: 0 auto; }
.download-box h2 { font-size: 28px; margin-bottom: 12px; }
.version-info { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.install-steps { text-align: left; margin-bottom: 32px; background: var(--bg); padding: 20px; border-radius: var(--radius); }
.install-steps p { font-size: 14px; margin-bottom: 8px; color: var(--text-muted); }
.install-steps span { color: var(--accent); font-weight: 600; margin-right: 8px; }
.download-btns { display: flex; flex-direction: column; gap: 12px; }
.btn-download-lg {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #000; font-weight: 700; font-size: 16px;
  padding: 16px; border-radius: 30px; transition: background 0.2s;
}
.btn-download-lg:hover { background: var(--accent-hover); }
.btn-download-lg.ios {
  background: transparent; border: 1px solid var(--accent); color: var(--accent);
}
.btn-download-lg.ios:hover { background: rgba(194,168,122,0.1); }

/* Footer */
.footer { background: #0a090c; padding: 40px 16px 20px; color: var(--text-muted); font-size: 13px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 32px; }
.footer-col h4 { color: var(--text); font-size: 14px; margin-bottom: 12px; }
.footer-col a { display: block; margin-bottom: 8px; color: var(--text-muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid #1f1c24; padding-top: 20px; text-align: center;
  font-size: 12px; color: #666; line-height: 1.8;
}
.footer-bottom a { color: #888; }
.footer-bottom a:hover { color: var(--accent); }

@media (min-width: 768px) {
  .header-inner { padding: 0 24px; }
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .hero { padding: 60px 24px 80px; }
  .hero h1 { font-size: 42px; }
  .hero-wall { gap: 16px; }
  .hero-card { flex: 0 0 180px; }
  .hero-card.main { flex: 0 0 240px; }
  .feature-card { flex-direction: row; }
  .feature-img-wrap { flex: 0 0 50%; aspect-ratio: auto; }
  .feature-info { padding: 40px; }
  .genre-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .short-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .curated-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .exp-grid { grid-template-columns: repeat(4, 1fr); }
  .download-btns { flex-direction: row; justify-content: center; }
  .btn-download-lg { flex: 1; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  section { padding: 80px 24px; }
  .hero h1 { font-size: 52px; }
  .hero-wall { gap: 20px; }
  .hero-card { flex: 0 0 200px; }
  .hero-card.main { flex: 0 0 280px; }
  .genre-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .short-grid { grid-template-columns: repeat(6, 1fr); }
  .curated-grid { grid-template-columns: repeat(4, 1fr); }
  .review-list { display: grid; grid-template-columns: repeat(2, 1fr); }
  .faq-list { max-width: 800px; margin: 0 auto; }
}