:root {
  --brand-red: #E63946;
  --warm-white: #FAF9F6;
  --ink-black: #1A1A1A;
  --bright-yellow: #F4D03F;
  --border-color: #E0E0E0;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-main);
  background-color: var(--warm-white);
  color: var(--ink-black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; object-fit: cover; }

/* Header */
header {
  position: sticky;
  top: 0;
  background-color: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
}
.brand img { height: 32px; width: auto; }
.nav-links {
  display: none;
  gap: 24px;
  font-weight: 600;
  font-size: 15px;
}
.nav-links a:hover { color: var(--brand-red); }
.btn-download {
  background-color: var(--brand-red);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.2s;
}
.btn-download:hover { opacity: 0.9; }

/* Hero */
.hero {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 40px;
}
.hero-text h1 {
  font-size: 42px;
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.hero-text h1 span { color: var(--brand-red); }
.hero-text p {
  font-size: 16px;
  color: #555;
  margin-bottom: 24px;
  max-width: 480px;
}
.hero-covers {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  align-items: center;
}
.hero-covers::-webkit-scrollbar { display: none; }
.hero-cover-item {
  flex: 0 0 140px;
  scroll-snap-align: start;
  position: relative;
}
.hero-cover-item img {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.hero-cover-main { flex: 0 0 180px; }
.hero-cover-main img { aspect-ratio: 2/3; }
.tag-float {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--brand-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  transform: rotate(6deg);
}

/* Editorial Pick */
.section-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::before {
  content: '';
  display: block;
  width: 6px;
  height: 24px;
  background: var(--brand-red);
}
.container {
  padding: 48px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.editorial-pick {
  display: grid;
  gap: 24px;
  background: #fff;
  padding: 24px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}
.pick-img img {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 2/3;
  border-radius: 4px;
  margin: 0 auto;
}
.pick-content h3 {
  font-size: 24px;
  margin-bottom: 8px;
}
.meta-tag {
  display: inline-block;
  background: var(--bright-yellow);
  color: var(--ink-black);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.pick-content p { color: #444; margin-bottom: 16px; }

/* Trending Grid */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.trend-card { position: relative; }
.trend-card img {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 6px;
  margin-bottom: 8px;
}
.rank-num {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--brand-red);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 6px 0 6px 0;
}
.trend-card h4 { font-size: 15px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend-card small { font-size: 12px; color: #777; }

/* Genres */
.genre-filter {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.genre-filter button {
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: #777;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.genre-filter button.active {
  color: var(--brand-red);
  border-bottom-color: var(--brand-red);
}
.genre-list {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
}
.genre-item { flex: 0 0 130px; }
.genre-item img { width: 100%; aspect-ratio: 2/3; border-radius: 6px; margin-bottom: 8px; }
.genre-item h4 { font-size: 14px; }

/* Updates List */
.update-list { background: #fff; border-radius: 8px; border: 1px solid var(--border-color); overflow: hidden; }
.update-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}
.update-item:last-child { border-bottom: none; }
.update-item img { width: 50px; height: 75px; border-radius: 4px; flex-shrink: 0; }
.update-info h4 { font-size: 15px; margin-bottom: 4px; }
.update-info small { color: var(--brand-red); font-size: 12px; display: block; }

/* Weekly Ranking */
.ranking-list { display: flex; flex-direction: column; gap: 20px; }
.rank-item { display: flex; gap: 16px; align-items: flex-start; }
.rank-index { font-size: 36px; font-weight: 900; color: var(--brand-red); line-height: 1; min-width: 40px; }
.rank-item img { width: 70px; aspect-ratio: 2/3; border-radius: 4px; }
.rank-text h4 { font-size: 16px; margin-bottom: 4px; }
.rank-text p { font-size: 13px; color: #666; }

/* Plot Index */
.plot-index {
  display: grid;
  gap: 24px;
  background: #fff;
  padding: 24px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}
.plot-nav { display: flex; flex-direction: column; gap: 12px; }
.plot-nav button {
  text-align: left;
  background: #f4f4f4;
  border: none;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.plot-nav button.active {
  background: var(--brand-red);
  color: #fff;
}
.plot-desc p { font-size: 15px; color: #444; margin-bottom: 12px; }

/* Moods */
.mood-grid { display: grid; gap: 20px; }
.mood-card { background: #fff; padding: 20px; border-radius: 8px; border: 1px solid var(--border-color); }
.mood-card h4 { font-size: 18px; color: var(--brand-red); margin-bottom: 12px; }
.mood-card p { font-size: 14px; color: #555; margin-bottom: 16px; }
.mood-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.mood-thumbs img { width: 60px; aspect-ratio: 2/3; border-radius: 4px; }

/* App Features */
.features { display: grid; gap: 16px; }
.feature-item { display: flex; gap: 16px; background: #fff; padding: 16px; border-radius: 6px; }
.feature-icon { width: 40px; height: 40px; background: var(--brand-red); color: #fff; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: bold; flex-shrink: 0; }
.feature-info h4 { font-size: 16px; margin-bottom: 4px; }
.feature-info p { font-size: 13px; color: #555; }

/* Comments */
.comments-list { display: grid; gap: 16px; }
.comment-item { border-bottom: 1px solid var(--border-color); padding-bottom: 12px; }
.comment-user { font-weight: bold; font-size: 14px; color: var(--brand-red); margin-right: 8px; }
.comment-text { font-size: 14px; color: #333; font-style: italic; }

/* FAQ */
.faq-list { border-top: 1px solid var(--border-color); }
.faq-item { border-bottom: 1px solid var(--border-color); padding: 16px 0; }
.faq-item details summary {
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq-item details summary::-webkit-details-marker { display: none; }
.faq-item details summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 20px;
  color: #999;
}
.faq-item details[open] summary::after { content: '-'; }
.faq-item p { margin-top: 12px; font-size: 14px; color: #555; }

/* Download Area */
.download-section {
  background-color: var(--brand-red);
  color: #fff;
  text-align: center;
  padding: 48px 20px;
  border-radius: 12px;
  margin: 40px 20px;
}
.download-section h2 { font-size: 32px; font-weight: 900; margin-bottom: 16px; }
.download-section p { font-size: 16px; margin-bottom: 24px; opacity: 0.9; }
.dl-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.dl-btn {
  background: #fff;
  color: var(--brand-red);
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 16px;
  display: inline-block;
  transition: transform 0.2s;
}
.dl-btn:hover { transform: scale(1.05); }

/* Footer */
footer {
  background: var(--warm-white);
  border-top: 1px solid var(--border-color);
  padding: 40px 20px 20px;
  font-size: 12px;
  color: #888;
  text-align: center;
}
.footer-nav { display: flex; justify-content: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.footer-nav a:hover { color: var(--brand-red); }
.footer-info { margin-top: 8px; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .header-inner { padding: 16px 24px; }
  .hero { grid-template-columns: 1fr 1fr; align-items: center; padding: 60px 24px; }
  .hero-covers { overflow-x: visible; flex-wrap: nowrap; justify-content: flex-end; }
  .hero-cover-item { flex: 0 0 150px; }
  .hero-cover-main { flex: 0 0 200px; }
  .editorial-pick { grid-template-columns: 240px 1fr; align-items: center; padding: 32px; }
  .trending-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .genre-list { overflow-x: visible; flex-wrap: wrap; }
  .genre-item { flex: 0 0 calc(25% - 12px); }
  .plot-index { grid-template-columns: 200px 1fr; padding: 32px; }
  .mood-grid { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .hero { padding: 80px 24px; }
  .hero-cover-item { flex: 0 0 170px; }
  .hero-cover-main { flex: 0 0 240px; }
  .trending-grid { grid-template-columns: repeat(4, 1fr); }
  .genre-item { flex: 0 0 calc(16.666% - 14px); }
  .features { grid-template-columns: repeat(4, 1fr); }
}