:root {
  --bg-dark: #0a0b10;
  --bg-panel: #14151c;
  --gold: #d4af37;
  --gold-light: #f3e5ab;
  --rose: #b88b93;
  --text-main: #f0f0f0;
  --text-muted: #8a8d9b;
  --border: rgba(212, 175, 55, 0.2);
  --radius: 12px;
  --header-h: 64px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 60px; /* Space for mobile bottom bar */
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; object-fit: cover; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 60px 0; scroll-margin-top: calc(var(--header-h) + 20px); }
h1, h2, h3 { font-weight: 600; line-height: 1.3; }
h1 { font-size: 2.8rem; color: var(--gold-light); margin-bottom: 16px; }
h2 { font-size: 1.8rem; margin-bottom: 24px; border-left: 4px solid var(--gold); padding-left: 12px; }
h3 { font-size: 1.1rem; }

/* Header */
header {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--header-h);
  background: rgba(10, 11, 16, 0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); z-index: 100;
  display: flex; align-items: center;
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
}
.logo-area { display: flex; align-items: center; gap: 8px; font-weight: bold; font-size: 1.2rem; }
.logo-area img { height: 32px; width: auto; border-radius: 4px; }
.nav-links { display: none; gap: 20px; font-size: 0.9rem; }
.nav-links a:hover { color: var(--gold); }
.btn-download {
  background: var(--gold); color: var(--bg-dark); font-weight: bold;
  padding: 10px 20px; border-radius: 20px; display: inline-flex; align-items: center;
  transition: transform 0.2s, background 0.2s; font-size: 0.95rem;
}
.btn-download:hover { background: var(--gold-light); transform: translateY(-2px); }
.menu-toggle { display: block; background: none; border: none; color: var(--text-main); font-size: 1.5rem; cursor: pointer; }
.mobile-nav {
  position: fixed; top: var(--header-h); left: 0; width: 100%; height: calc(100vh - var(--header-h));
  background: var(--bg-panel); padding: 20px; display: none; flex-direction: column; gap: 16px; z-index: 99;
}
.mobile-nav.is-active { display: flex; }

/* Hero */
#hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 40px); overflow: hidden;
}
.hero-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; opacity: 0.2;
  animation: scrollBg 20s linear infinite;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, var(--bg-dark) 20%, transparent), linear-gradient(to top, var(--bg-dark) 10%, transparent); z-index: 0; }
.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 40px; width: 100%; }
.hero-text { max-width: 600px; }
.hero-text p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.btn-secondary {
  background: transparent; border: 1px solid var(--gold); color: var(--gold);
  padding: 10px 20px; border-radius: 20px; font-weight: bold; display: inline-flex; align-items: center;
}
.btn-secondary:hover { background: rgba(212, 175, 55, 0.1); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 40px; }
.stat-item h3 { color: var(--gold-light); font-size: 1.5rem; margin-bottom: 4px; }
.stat-item p { font-size: 0.85rem; color: var(--text-muted); }
.hero-featured { display: flex; gap: 10px; justify-content: center; }
.hf-main { width: 60%; }
.hf-side { display: flex; flex-direction: column; gap: 10px; width: 35%; }
.hf-card { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.hf-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.hf-card:hover img { transform: scale(1.05); }
.genre-quick-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.genre-quick-nav a { background: rgba(255,255,255,0.05); padding: 6px 14px; border-radius: 16px; font-size: 0.85rem; border: 1px solid transparent; }
.genre-quick-nav a:hover { border-color: var(--gold); color: var(--gold); }

/* Common Grids */
.poster-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.poster-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-panel); }
.poster-card img { aspect-ratio: 3/4; width: 100%; transition: transform 0.3s; }
.poster-card:hover img { transform: scale(1.05); }
.poster-info { padding: 12px; }
.poster-title { font-size: 0.95rem; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* Section 02: Ranking */
.rank-layout { display: flex; flex-direction: column; gap: 30px; }
.rank-top { width: 100%; max-width: 300px; margin: 0 auto; }
.rank-list { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.rank-item { display: flex; align-items: center; gap: 12px; background: var(--bg-panel); padding: 8px 12px; border-radius: 8px; }
.rank-num { font-size: 1.2rem; font-weight: bold; color: var(--gold); width: 24px; }
.rank-thumb { width: 40px; height: 53px; border-radius: 4px; overflow: hidden; }
.rank-info { flex: 1; }
.rank-heat { width: 60px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; margin-top: 6px; }
.rank-heat-fill { height: 100%; background: var(--gold); border-radius: 2px; }

/* Section 04: New Releases */
.scroll-track { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.scroll-track::-webkit-scrollbar { display: none; }
.scroll-item { flex: 0 0 140px; }

/* Section 05: Curated Lists */
.lists-layout { display: flex; flex-direction: column; gap: 24px; }
.list-card { background: var(--bg-panel); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.list-covers { display: flex; position: relative; height: 120px; }
.list-covers img { width: 80px; height: 106px; border-radius: 4px; position: absolute; border: 2px solid var(--bg-panel); }
.list-covers img:nth-child(1) { left: 0; z-index: 3; }
.list-covers img:nth-child(2) { left: 30px; z-index: 2; }
.list-covers img:nth-child(3) { left: 60px; z-index: 1; }

/* Section 06: Schedule */
.schedule-timeline { display: flex; flex-direction: column; gap: 16px; }
.sched-row { display: flex; align-items: center; gap: 16px; background: var(--bg-panel); padding: 12px; border-radius: 8px; }
.sched-row.today { border: 1px solid var(--gold); }

/* Section 07: Production */
.production-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; text-align: center; }
.production-stats h3 { color: var(--gold); font-size: 1.4rem; }
.production-stats p { font-size: 0.85rem; color: var(--text-muted); }

/* Section 08: Reviews */
.review-track { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; }
.review-card { flex: 0 0 260px; background: var(--bg-panel); padding: 16px; border-radius: 8px; }
.review-header { display: flex; gap: 12px; margin-bottom: 12px; align-items: center; }
.review-avatar img { width: 40px; height: 53px; border-radius: 4px; }
.stars { color: var(--gold); font-size: 0.8rem; }

/* Section 09: Download */
.dl-layout { display: flex; flex-direction: column; gap: 30px; }
.dl-text h2 { border: none; padding: 0; }
.dl-buttons { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.dl-qr { text-align: center; }
.qr-box { width: 120px; height: 120px; background: #222; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.dl-steps { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }
.step { background: var(--bg-panel); padding: 16px; border-radius: 8px; text-align: center; }

/* Section 10: FAQ */
details { background: var(--bg-panel); border-radius: 8px; margin-bottom: 10px; padding: 12px 16px; }
summary { cursor: pointer; font-weight: bold; list-style: none; outline: none; }
summary::-webkit-details-marker { display: none; }
details p { margin-top: 10px; color: var(--text-muted); font-size: 0.9rem; }

/* Section 11: Story */
.story-layout { display: flex; flex-direction: column; gap: 24px; }
.story-img { width: 100%; max-width: 300px; border-radius: 8px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 30px 0; font-size: 0.85rem; color: var(--text-muted); text-align: center; }
footer a { color: var(--gold); }
.about-block { margin: 20px 0; text-align: left; max-width: 600px; margin-left: auto; margin-right: auto; }
.about-block summary { color: var(--text-muted); font-size: 0.85rem; cursor: pointer; }
.about-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.about-links a { font-size: 0.8rem; color: var(--text-muted); }
.about-links a:hover { color: var(--gold); }

/* Mobile Bottom Bar */
.mobile-bottom-bar {
  position: fixed; bottom: 0; left: 0; width: 100%; height: 60px;
  background: rgba(20, 21, 28, 0.95); border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
  z-index: 90; backdrop-filter: blur(10px);
}
.mobile-bottom-bar .btn-download { width: 100%; justify-content: center; }

@keyframes scrollBg {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .poster-grid { grid-template-columns: repeat(3, 1fr); }
  .dl-buttons { flex-direction: row; }
  .dl-steps { grid-template-columns: repeat(3, 1fr); }
  .hero-content { flex-direction: row; align-items: center; justify-content: space-between; }
  .hero-text { flex: 1; }
  .hero-featured { flex: 1; max-width: 400px; }
  .rank-layout { flex-direction: row; }
  .rank-top { margin: 0; }
  .lists-layout { flex-direction: row; overflow-x: auto; }
  .list-card { flex: 0 0 300px; }
  .story-layout { flex-direction: row; align-items: flex-start; }
  .story-img { width: 40%; max-width: none; }
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
  .poster-grid { grid-template-columns: repeat(5, 1fr); }
  .hero-bg { grid-template-columns: repeat(5, 1fr); }
  .mobile-bottom-bar { display: none; }
  body { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
  * { transition: none !important; }
}