:root {
  --bg-midnight: #080c14;
  --bg-card: #121824;
  --gold-champagne: #d4af37;
  --gold-hover: #f2cf66;
  --rose-mist: #b8959a;
  --moon-white: #e6e8ed;
  --text-muted: #8b92a5;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-main);
  background-color: var(--bg-midnight);
  color: var(--moon-white);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 60px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; object-fit: cover; }
ul { list-style: none; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; height: 64px;
  background: rgba(8, 12, 20, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  z-index: 100; display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: bold; color: var(--gold-champagne); }
.brand img { height: 32px; border-radius: 4px; }
.main-nav { display: flex; gap: 20px; font-size: 0.9rem; color: var(--text-muted); }
.main-nav a:hover { color: var(--gold-champagne); }
.header-download {
  background: var(--gold-champagne); color: #000; font-weight: bold;
  padding: 10px 20px; border-radius: 4px; font-size: 0.95rem;
  transition: var(--transition);
}
.header-download:hover { background: var(--gold-hover); transform: translateY(-2px); }

/* Mobile Nav */
.menu-toggle { display: none; background: none; border: none; color: var(--moon-white); font-size: 1.5rem; cursor: pointer; }
.mobile-drawer {
  position: fixed; top: 64px; left: 0; width: 100%; height: calc(100vh - 64px);
  background: var(--bg-midnight); z-index: 99; padding: 20px;
  display: none; flex-direction: column; gap: 15px;
}
.mobile-drawer.active { display: flex; }

/* Hero Section */
.hero {
  position: relative; min-height: 100vh; padding: 120px 5% 60px;
  display: flex; align-items: center; justify-content: space-between;
  overflow: hidden;
}
.hero-bg-wall {
  position: absolute; top: 0; left: 0; width: 120%; height: 120%;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
  transform: rotate(-10deg) translateY(-10%); opacity: 0.15; z-index: 0;
  animation: drift 60s linear infinite;
}
@keyframes drift { 0% { transform: rotate(-10deg) translateY(0); } 50% { transform: rotate(-10deg) translateY(-5%); } 100% { transform: rotate(-10deg) translateY(0); } }
.hero-bg-wall img { aspect-ratio: 3/4; border-radius: 8px; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, var(--bg-midnight) 40%, transparent 100%),
              linear-gradient(to top, var(--bg-midnight) 0%, transparent 40%);
}
.hero-content { position: relative; z-index: 2; max-width: 600px; }
.hero h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; color: var(--moon-white); }
.hero h1 span { color: var(--gold-champagne); }
.hero-desc { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 30px; max-width: 500px; }
.hero-actions { display: flex; gap: 15px; margin-bottom: 40px; }
.btn-primary { background: var(--gold-champagne); color: #000; padding: 14px 30px; border-radius: 6px; font-weight: bold; font-size: 1.1rem; transition: var(--transition); display: inline-block; }
.btn-primary:hover { background: var(--gold-hover); transform: translateY(-2px); }
.btn-secondary { background: rgba(255,255,255,0.1); color: var(--moon-white); padding: 14px 30px; border-radius: 6px; font-weight: bold; border: 1px solid rgba(255,255,255,0.2); transition: var(--transition); }
.btn-secondary:hover { background: rgba(255,255,255,0.2); }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
.stat-item h4 { color: var(--gold-champagne); font-size: 1.5rem; margin-bottom: 4px; }
.stat-item p { font-size: 0.85rem; color: var(--text-muted); }

/* Section Common */
section { padding: 80px 5%; position: relative; z-index: 2; }
.section-header { margin-bottom: 40px; display: flex; justify-content: space-between; align-items: flex-end; }
.section-header h2 { font-size: 2rem; color: var(--moon-white); font-weight: 600; }
.section-header p { color: var(--text-muted); font-size: 0.95rem; margin-top: 8px; }

/* Card Grid */
.poster-grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.poster-card { position: relative; border-radius: 8px; overflow: hidden; cursor: pointer; transition: var(--transition); background: var(--bg-card); }
.poster-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.poster-card img { aspect-ratio: 3/4; width: 100%; object-fit: cover; transition: var(--transition); }
.poster-card:hover img { transform: scale(1.05); }
.card-info { padding: 12px; }
.card-title { font-size: 1rem; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; justify-content: space-between; }
.play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 3rem; color: var(--gold-champagne); opacity: 0; transition: var(--transition); pointer-events: none; }
.poster-card:hover .play-icon { opacity: 1; }

/* Ranking Section */
.ranking-layout { display: grid; grid-template-columns: 300px 1fr; gap: 40px; }
.rank-featured { position: relative; border-radius: 12px; overflow: hidden; }
.rank-featured img { aspect-ratio: 3/4; width: 100%; object-fit: cover; }
.rank-featured-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px 20px 20px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); }
.rank-list { display: flex; flex-direction: column; gap: 15px; }
.rank-item { display: flex; align-items: center; gap: 15px; background: var(--bg-card); padding: 10px; border-radius: 8px; }
.rank-num { font-size: 1.5rem; font-weight: bold; color: var(--gold-champagne); width: 30px; text-align: center; }
.rank-item img { width: 60px; aspect-ratio: 3/4; border-radius: 4px; }
.rank-details { flex: 1; }
.rank-details h4 { font-size: 1rem; margin-bottom: 4px; }
.rank-details span { font-size: 0.8rem; color: var(--text-muted); }
.heat-bar { width: 100%; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; margin-top: 8px; }
.heat-bar-fill { height: 100%; background: var(--gold-champagne); border-radius: 2px; }

/* Genre Section */
.genre-filters { display: flex; gap: 10px; margin-bottom: 30px; overflow-x: auto; padding-bottom: 10px; }
.genre-btn { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: var(--moon-white); padding: 8px 16px; border-radius: 20px; cursor: pointer; white-space: nowrap; transition: var(--transition); }
.genre-btn:hover, .genre-btn.active { background: var(--gold-champagne); color: #000; border-color: var(--gold-champagne); }

/* New Releases Scroll */
.scroll-track { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; scroll-snap-type: x mandatory; }
.scroll-track::-webkit-scrollbar { display: none; }
.scroll-card { flex: 0 0 200px; scroll-snap-align: start; }

/* Editorial Collections */
.collections { display: flex; gap: 30px; overflow-x: auto; padding-bottom: 20px; }
.collection-card { flex: 0 0 350px; background: var(--bg-card); border-radius: 12px; padding: 20px; }
.collection-covers { position: relative; height: 200px; margin-bottom: 20px; }
.collection-covers img { position: absolute; width: 120px; aspect-ratio: 3/4; border-radius: 8px; box-shadow: -5px 5px 15px rgba(0,0,0,0.5); }
.collection-covers img:nth-child(1) { left: 0; top: 20px; z-index: 3; }
.collection-covers img:nth-child(2) { left: 50px; top: 10px; z-index: 2; }
.collection-covers img:nth-child(3) { left: 100px; top: 0; z-index: 1; }

/* Download Section */
.download-section { background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-midnight) 100%); border-radius: 20px; padding: 60px 40px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(212, 175, 55, 0.2); }
.dl-content { max-width: 500px; }
.dl-content h2 { font-size: 2.5rem; margin-bottom: 15px; color: var(--gold-champagne); }
.dl-content p { color: var(--text-muted); margin-bottom: 30px; }
.dl-buttons { display: flex; gap: 15px; margin-bottom: 20px; }
.dl-phone-frame { width: 260px; height: 520px; border: 8px solid #333; border-radius: 30px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.dl-phone-frame img { width: 100%; height: 100%; object-fit: cover; }

/* FAQ */
.faq-item { background: var(--bg-card); margin-bottom: 10px; border-radius: 8px; overflow: hidden; }
.faq-item summary { padding: 20px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 20px 20px; color: var(--text-muted); font-size: 0.95rem; }

/* Footer */
.site-footer {
  padding: 40px 5% 20px; border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center; color: var(--text-muted); font-size: 0.85rem;
}
.footer-links { display: flex; justify-content: center; gap: 15px; margin-top: 15px; flex-wrap: wrap; }
.about-details { margin-top: 20px; text-align: left; max-width: 800px; margin-inline: auto; background: rgba(255,255,255,0.02); border-radius: 8px; padding: 15px; }
.about-details summary { cursor: pointer; color: var(--text-muted); font-size: 0.85rem; text-align: center; }
.about-details p { margin-top: 15px; font-size: 0.85rem; line-height: 1.8; }
.footer-time { margin-top: 10px; font-size: 0.75rem; color: #555; }

/* Mobile Sticky Bar */
.mobile-sticky-bar {
  display: none; position: fixed; bottom: 0; left: 0; width: 100%;
  background: var(--bg-card); padding: 12px 15px; z-index: 90;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-sticky-bar a { display: block; width: 100%; text-align: center; background: var(--gold-champagne); color: #000; font-weight: bold; padding: 12px; border-radius: 6px; }

/* Responsive */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .ranking-layout { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.8rem; }
  .download-section { flex-direction: column; text-align: center; gap: 40px; }
  .dl-buttons { justify-content: center; }
}
@media (max-width: 768px) {
  .hero { flex-direction: column; padding-top: 100px; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-bg-wall { grid-template-columns: repeat(2, 1fr); opacity: 0.1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .mobile-sticky-bar { display: block; }
  body { padding-bottom: 80px; }
  .header-download { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-wall { animation: none; }
  * { transition: none !important; }
}