:root {
  --bg-color: #0f1014;
  --surface-color: #1a1c23;
  --surface-hover: #242731;
  --text-main: #f4f1ea;
  --text-muted: #9ea3ae;
  --brand-green: #3cdbb6;
  --brand-orange: #ff8c42;
  --border-color: #2d313d;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
}
* { 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-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; object-fit: cover; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(15, 16, 20, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 18px; }
.brand img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 20px; font-size: 14px; color: var(--text-muted); }
.nav-links a:hover { color: var(--brand-green); }
.header-download {
  background: var(--brand-orange); color: var(--bg-color); font-weight: bold;
  padding: 8px 20px; border-radius: 99px; font-size: 15px; transition: transform 0.2s;
}
.header-download:hover { transform: scale(1.05); }

/* Hero */
.hero {
  position: relative; padding: 120px 0 60px; overflow: hidden; min-height: 80vh;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; opacity: 0.4;
}
.hero-bg img { width: 100%; height: 100%; border-radius: var(--radius-md); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--bg-color) 30%, transparent 100%), linear-gradient(to top, var(--bg-color) 10%, transparent 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 600px; }
.hero h1 { font-size: 48px; line-height: 1.2; margin-bottom: 20px; font-weight: 800; }
.hero p { font-size: 18px; color: var(--text-muted); margin-bottom: 30px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 40px; }
.btn-primary { background: var(--brand-orange); color: var(--bg-color); padding: 14px 32px; border-radius: 99px; font-weight: bold; font-size: 16px; transition: 0.3s; }
.btn-secondary { background: rgba(255,255,255,0.1); color: var(--text-main); padding: 14px 32px; border-radius: 99px; font-weight: bold; font-size: 16px; border: 1px solid var(--border-color); }
.stats { display: flex; gap: 30px; border-top: 1px solid var(--border-color); padding-top: 20px; }
.stat-item h4 { font-size: 24px; color: var(--brand-green); margin-bottom: 4px; }
.stat-item span { font-size: 13px; color: var(--text-muted); }

/* Section Common */
section { padding: 80px 0; border-bottom: 1px solid var(--border-color); }
.sec-title { font-size: 32px; margin-bottom: 40px; font-weight: bold; }
.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
.card { background: var(--surface-color); border-radius: var(--radius-md); overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.card img { aspect-ratio: 3/4; width: 100%; }
.card-info { padding: 12px; }
.card-info h3 { font-size: 15px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-info p { font-size: 12px; color: var(--text-muted); }

/* Ranking */
.ranking-layout { display: flex; gap: 40px; }
.rank-top { flex: 0 0 300px; }
.rank-top img { aspect-ratio: 3/4; width: 100%; border-radius: var(--radius-lg); margin-bottom: 16px; }
.rank-list { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.rank-item { display: flex; align-items: center; gap: 16px; background: var(--surface-color); padding: 12px; border-radius: var(--radius-md); }
.rank-num { font-size: 20px; font-weight: bold; color: var(--brand-orange); width: 20px; }
.rank-item img { width: 48px; aspect-ratio: 3/4; border-radius: 4px; }
.rank-info { flex: 1; }
.rank-info h3 { font-size: 15px; }
.rank-info p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Categories */
.mood-tags { display: flex; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.mood-tag { background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); padding: 8px 20px; border-radius: 99px; font-size: 14px; cursor: pointer; transition: 0.2s; }
.mood-tag.active, .mood-tag:hover { background: var(--brand-green); color: var(--bg-color); border-color: var(--brand-green); }

/* New & Playlist */
.slider-track { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; scrollbar-width: none; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-item { flex: 0 0 180px; }
.playlist-wrap { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; }
.playlist-card { flex: 0 0 260px; background: var(--surface-color); border-radius: var(--radius-lg); padding: 20px; }
.playlist-covers { position: relative; height: 200px; margin-bottom: 16px; }
.playlist-covers img { position: absolute; width: 120px; aspect-ratio: 3/4; border-radius: 8px; border: 2px solid var(--surface-color); }
.playlist-covers img:nth-child(1) { left: 0; top: 20px; z-index: 1; transform: rotate(-5deg); }
.playlist-covers img:nth-child(2) { left: 20px; top: 10px; z-index: 2; transform: rotate(0); }
.playlist-covers img:nth-child(3) { left: 40px; top: 0; z-index: 3; transform: rotate(5deg); }

/* Calendar */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.calendar-day { background: var(--surface-color); border-radius: var(--radius-md); padding: 16px; }
.calendar-day h4 { text-align: center; margin-bottom: 12px; font-size: 14px; color: var(--text-muted); }
.calendar-day.active { border: 1px solid var(--brand-orange); }
.calendar-day.active h4 { color: var(--brand-orange); font-weight: bold; }
.cal-event { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.cal-event img { width: 36px; aspect-ratio: 3/4; border-radius: 4px; }
.cal-event span { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Footer */
.footer { padding: 40px 0; text-align: center; color: var(--text-muted); font-size: 13px; border-top: 1px solid var(--border-color); }
.about-details { margin-top: 20px; font-size: 12px; color: var(--text-muted); }
.about-details summary { cursor: pointer; display: inline-block; }
.about-links { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.about-links a { color: var(--text-muted); text-decoration: underline; text-decoration-color: var(--border-color); }

/* Mobile Bottom Bar */
.mobile-bar {
  display: none; position: fixed; bottom: 0; left: 0; width: 100%;
  background: var(--surface-color); padding: 12px 20px; z-index: 99;
  border-top: 1px solid var(--border-color); box-shadow: 0 -4px 12px rgba(0,0,0,0.5);
}
.mobile-bar .btn-primary { width: 100%; text-align: center; display: block; }

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 36px; }
  .ranking-layout { flex-direction: column; }
  .rank-top { flex: none; width: 100%; max-width: 400px; margin: 0 auto; }
  .calendar-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .hero-bg { grid-template-columns: repeat(2, 1fr); opacity: 0.2; }
  .hero-actions { flex-direction: column; }
  .stats { flex-wrap: wrap; gap: 20px; }
  .stats .stat-item { width: 45%; }
  .calendar-grid { grid-template-columns: 1fr; }
  .mobile-bar { display: block; }
  .footer { padding-bottom: 80px; }
}