:root {
  --bg-base: #0d0d10;
  --bg-card: #16161a;
  --bg-elevated: #1f1f24;
  --text-primary: #f4efe6;
  --text-secondary: #9e9b90;
  --brand-orange: #ff7a2b;
  --brand-orange-hover: #ff9559;
  --brand-green: #3ad69e;
  --border-color: #2c2c33;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 1280px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-card: 0 4px 20px rgba(0,0,0,0.6);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; object-fit: cover; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }

/* Typography */
h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h2 { font-size: 28px; margin-bottom: 24px; letter-spacing: 0.5px; }
h3 { font-size: 18px; }
.section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.section-title::before { content: ''; display: block; width: 4px; height: 24px; background: var(--brand-orange); border-radius: 2px; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; height: 72px;
  background: rgba(13, 13, 16, 0.85); backdrop-filter: blur(12px);
  z-index: 100; border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; transition: background 0.3s;
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: bold; }
.brand img { height: 32px; width: auto; }
.nav-desktop { display: none; gap: 20px; }
.nav-desktop a { color: var(--text-secondary); font-size: 14px; transition: color 0.2s; }
.nav-desktop a:hover, .nav-desktop a.active { color: var(--text-primary); }
.btn-download-nav {
  background: var(--brand-orange); color: #fff; padding: 10px 24px;
  border-radius: 30px; font-weight: bold; font-size: 15px;
  transition: background 0.2s, transform 0.2s; white-space: nowrap;
}
.btn-download-nav:hover { background: var(--brand-orange-hover); transform: translateY(-1px); }
.menu-toggle { display: block; font-size: 24px; color: var(--text-primary); }

/* Mobile Drawer Navigation */
.mobile-drawer {
  position: fixed; top: 72px; left: 0; width: 100%; height: calc(100vh - 72px);
  background: var(--bg-base); z-index: 99; padding: 24px;
  display: flex; flex-direction: column; gap: 16px; overflow-y: auto;
  transform: translateX(-100%); transition: transform 0.3s ease;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a { font-size: 16px; padding: 12px 0; border-bottom: 1px solid var(--border-color); color: var(--text-primary); }

/* Main Content */
main { padding-top: 72px; }
section { padding: 60px 24px; max-width: var(--max-width); margin: 0 auto; }

/* Hero */
.hero { position: relative; padding: 40px 24px; min-height: 500px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero-bg-wall {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  opacity: 0.3; z-index: 0; pointer-events: none;
}
.hero-bg-wall img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, var(--bg-base) 20%, transparent 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 600px; }
.hero h1 { font-size: 36px; margin-bottom: 16px; }
.hero p { font-size: 16px; color: var(--text-secondary); margin-bottom: 24px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 40px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: 30px; font-weight: bold; font-size: 16px; transition: all 0.2s; }
.btn-primary { background: var(--brand-orange); color: #fff; }
.btn-primary:hover { background: var(--brand-orange-hover); }
.btn-secondary { border: 1px solid var(--border-color); color: var(--text-primary); }
.btn-secondary:hover { border-color: var(--text-primary); }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-item { background: rgba(255,255,255,0.05); padding: 12px; border-radius: var(--radius-sm); }
.stat-num { font-size: 20px; font-weight: bold; color: var(--brand-orange); }
.stat-label { font-size: 12px; color: var(--text-secondary); }
.hero-visual { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); z-index: 2; display: none; gap: 12px; }
.hero-visual img { border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.hero-visual .main-cover { width: 200px; height: 266px; z-index: 3; }
.hero-visual .side-cover { width: 140px; height: 186px; }
.hero-visual .side-cover.top { transform: translateY(-20px); }
.hero-visual .side-cover.bottom { transform: translateY(20px); }

/* Ranking */
.ranking-layout { display: flex; flex-direction: column; gap: 24px; }
.rank-featured { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.rank-featured img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; }
.rank-featured-info { padding: 16px; position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(transparent, rgba(0,0,0,0.9)); }
.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-item { display: flex; align-items: center; gap: 12px; background: var(--bg-card); padding: 12px; border-radius: var(--radius-md); }
.rank-num { font-size: 20px; font-weight: bold; color: var(--brand-orange); width: 24px; text-align: center; }
.rank-item img { width: 48px; height: 64px; border-radius: var(--radius-sm); }
.rank-details { flex: 1; }
.rank-details h3 { font-size: 15px; margin-bottom: 4px; }
.rank-tags { font-size: 12px; color: var(--text-secondary); }

/* Emotion Categories */
.emotion-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.emotion-pill { border: 1px solid var(--brand-green); color: var(--brand-green); padding: 6px 16px; border-radius: 20px; font-size: 14px; }
.emotion-pill.active { background: var(--brand-green); color: var(--bg-base); }
.cover-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cover-card { background: var(--bg-card); border-radius: var(--radius-md); overflow: hidden; }
.cover-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform 0.3s; }
.cover-card:hover img { transform: scale(1.05); }
.cover-info { padding: 10px; }
.cover-info h3 { font-size: 14px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cover-meta { font-size: 12px; color: var(--text-secondary); display: flex; justify-content: space-between; }

/* Scroll Track */
.scroll-track { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x mandatory; }
.scroll-track::-webkit-scrollbar { display: none; }
.track-item { flex: 0 0 140px; scroll-snap-align: start; }
.track-item img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 8px; }
.track-item h3 { font-size: 14px; margin-bottom: 4px; }
.track-item p { font-size: 12px; color: var(--text-secondary); }

/* FAQ */
details { background: var(--bg-card); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; }
summary { padding: 16px; cursor: pointer; font-weight: bold; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--brand-orange); font-size: 20px; }
details[open] summary::after { content: '-'; }
.faq-answer { padding: 0 16px 16px; color: var(--text-secondary); font-size: 14px; }

/* Footer */
footer { background: var(--bg-base); border-top: 1px solid var(--border-color); padding: 40px 24px; font-size: 12px; color: var(--text-secondary); }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-links a { color: var(--text-secondary); transition: color 0.2s; }
.footer-links a:hover { color: var(--text-primary); }
.copyright { margin-top: 8px; }
.about-section { margin-top: 16px; border-top: 1px solid var(--border-color); padding-top: 16px; }
.about-section summary { padding: 0; font-size: 12px; color: var(--text-secondary); cursor: pointer; list-style: none; display: inline-block; }
.about-section summary::-webkit-details-marker { display: none; }
.about-content { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 12px; }
.about-content a { color: var(--text-secondary); }

/* Buttons & Links Base */
a[rel="nofollow"] { transition: opacity 0.2s; }
a[rel="nofollow"]:hover { opacity: 0.8; }

/* Responsive Breakpoints */
@media (min-width: 768px) {
  .hero { min-height: 600px; }
  .hero h1 { font-size: 48px; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .hero-visual { display: flex; }
  .hero-bg-wall { grid-template-columns: repeat(5, 1fr); }
  .ranking-layout { flex-direction: row; }
  .rank-featured { flex: 1; }
  .rank-list { flex: 2; }
  .cover-grid { grid-template-columns: repeat(3, 1fr); }
  .track-item { flex: 0 0 180px; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .footer-links { max-width: 600px; justify-content: flex-end; }
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .mobile-drawer { display: none; }
  .cover-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-bg-wall { grid-template-columns: repeat(5, 1fr); }
  .track-item { flex: 0 0 200px; }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}