:root {
  --bg: #06060a;
  --bg-card: #111116;
  --text-main: #f2f3f7;
  --text-sub: #9aa0b2;
  --brand-y: #ffd54a;
  --brand-o: #ffa000;
  --cyan: #00e6a8;
  --purple: #7c5cff;
  --pink: #ff5c8a;
  --border: rgba(255,255,255,0.08);
  --radius: 20px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Header */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}
header.scrolled {
  background: rgba(6,6,10,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1200px; margin: 0 auto;
  height: 72px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  transition: height 0.3s;
}
header.scrolled .nav-container { height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 20px; }
.brand-logo { height: 32px; width: auto; border-radius: 6px; }
.nav-links { display: flex; gap: 32px; font-size: 15px; font-weight: 600; color: var(--text-sub); }
.nav-links a:hover { color: var(--brand-y); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.search-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 8px 16px; display: flex; align-items: center; gap: 8px;
}
.search-box input { background: none; border: none; color: #fff; outline: none; font-size: 14px; width: 100px; }
.btn-download {
  background: linear-gradient(135deg, var(--brand-y), var(--brand-o));
  color: #000; font-weight: 800; padding: 10px 24px; border-radius: 30px;
  cursor: pointer; transition: transform 0.2s; position: relative;
}
.btn-download:hover { transform: scale(1.05); }

/* Dropdown */
.dropdown {
  position: absolute; top: 100%; right: 24px; margin-top: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; width: 320px; padding: 16px;
  display: none; flex-direction: column; gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.dropdown.active { display: flex; animation: fadeInScale 0.2s ease-out; }
.dd-item { display: flex; flex-direction: column; padding: 12px; border-radius: 12px; background: rgba(255,255,255,0.03); cursor: pointer; }
.dd-item:hover { background: rgba(255,255,255,0.08); }
.dd-title { font-weight: 700; color: #fff; margin-bottom: 4px; }
.dd-desc { font-size: 12px; color: var(--text-sub); }

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Main Layout */
main { padding-top: 80px; }
section { max-width: 1200px; margin: 0 auto; padding: 64px 24px; }

/* Hero */
.hero {
  display: flex; align-items: center; justify-content: space-between;
  min-height: calc(100vh - 80px); gap: 40px; position: relative;
}
.hero-bg-glow {
  position: absolute; top: 20%; left: 10%;
  width: 60vw; height: 60vw; max-width: 800px; max-height: 800px;
  background: radial-gradient(circle, rgba(255,213,74,0.15) 0%, transparent 60%);
  filter: blur(60px); z-index: -1; pointer-events: none;
}
.hero-content { flex: 1; max-width: 540px; }
.tag { display: inline-block; padding: 6px 16px; background: rgba(255,213,74,0.1); color: var(--brand-y); border-radius: 20px; font-size: 14px; font-weight: 700; margin-bottom: 24px; border: 1px solid rgba(255,213,74,0.2); }
.hero h1 { font-size: 64px; font-weight: 900; line-height: 1.1; margin-bottom: 24px; letter-spacing: -1px; }
.hero h1 span { background: linear-gradient(135deg, var(--brand-y), var(--brand-o)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--text-sub); font-size: 18px; margin-bottom: 40px; line-height: 1.8; }
.hero-cta { display: flex; gap: 16px; margin-bottom: 48px; }
.btn-primary { background: linear-gradient(135deg, var(--brand-y), var(--brand-o)); color: #000; padding: 16px 36px; border-radius: 30px; font-size: 16px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; transition: transform 0.2s; }
.btn-secondary { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid var(--border); padding: 16px 36px; border-radius: 30px; font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; transition: background 0.2s; }
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-2px); }
.btn-secondary:hover { background: rgba(255,255,255,0.15); }

.hero-stats { display: flex; gap: 40px; border-top: 1px solid var(--border); padding-top: 24px; }
.stat-item h4 { font-size: 24px; font-weight: 900; color: #fff; margin-bottom: 4px; }
.stat-item p { font-size: 13px; color: var(--text-sub); }

/* Hero Visual */
.hero-visual { flex: 1; position: relative; display: flex; justify-content: center; }
.phone-mockup {
  width: 280px; height: 580px; border-radius: 40px; border: 8px solid #222; background: #000;
  position: relative; transform: rotateY(-15deg) rotateX(5deg); box-shadow: 20px 20px 60px rgba(0,0,0,0.6);
  transition: transform 0.4s; overflow: hidden; z-index: 2;
}
.phone-mockup:hover { transform: rotateY(0) rotateX(0) translateY(-10px); }
.phone-screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; position: relative; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-ui { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); }
.phone-ui h5 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.phone-ui p { color: var(--brand-y); font-size: 12px; margin-bottom: 12px; }
.fake-btn { background: var(--brand-y); color: #000; font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 12px; display: inline-block; }

.float-card { position: absolute; background: rgba(17,17,22,0.8); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 12px 16px; z-index: 3; animation: float 4s ease-in-out infinite; }
.fc-1 { top: 15%; right: -20px; color: var(--cyan); }
.fc-2 { bottom: 20%; left: -40px; color: var(--purple); animation-delay: 2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* Marquee */
.marquee-wrap { background: rgba(255,255,255,0.03); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 16px 0; overflow: hidden; white-space: nowrap; }
.marquee-content { display: inline-block; animation: marquee 20s linear infinite; }
.marquee-item { display: inline-flex; align-items: center; margin-right: 48px; font-size: 14px; color: var(--text-sub); }
.marquee-item span { color: var(--brand-y); font-weight: 700; margin-right: 8px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Sections Generic */
.section-header { margin-bottom: 32px; }
.section-header h2 { font-size: 32px; font-weight: 900; margin-bottom: 8px; }
.section-header p { color: var(--text-sub); font-size: 16px; }

/* Mood Capsules */
.mood-capsules { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.capsule { padding: 8px 20px; border-radius: 30px; font-size: 14px; font-weight: 700; cursor: pointer; border: 1px solid var(--border); background: rgba(255,255,255,0.05); transition: all 0.3s; }
.capsule:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.capsule.c1 { color: var(--pink); border-color: rgba(255,92,138,0.3); }
.capsule.c2 { color: var(--purple); border-color: rgba(124,92,255,0.3); }
.capsule.c3 { color: var(--cyan); border-color: rgba(0,230,168,0.3); }

/* Drama Grid */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.drama-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: all 0.3s; position: relative; cursor: pointer; }
.drama-card:hover { transform: translateY(-8px); border-color: rgba(255,213,74,0.5); box-shadow: 0 10px 20px rgba(0,0,0,0.4); }
.drama-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.card-info { padding: 16px; }
.card-info h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-info p { font-size: 12px; color: var(--text-sub); }

/* Ranking */
.ranking-list { display: flex; flex-direction: column; gap: 16px; }
.rank-item { display: flex; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; transition: all 0.3s; }
.rank-item:hover { transform: translateX(8px); border-left: 4px solid var(--brand-y); }
.rank-num { font-size: 24px; font-weight: 900; width: 40px; font-style: italic; }
.rank-item:nth-child(1) .rank-num { color: #FFD700; }
.rank-item:nth-child(2) .rank-num { color: #C0C0C0; }
.rank-item:nth-child(3) .rank-num { color: #CD7F32; }
.rank-info { flex: 1; margin-left: 16px; }
.rank-info h4 { font-size: 16px; font-weight: 700; }
.rank-info p { font-size: 12px; color: var(--text-sub); }
.heat-bar { width: 100px; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.heat-fill { height: 100%; background: linear-gradient(90deg, var(--brand-y), var(--brand-o)); }

/* Tech Grid */
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tech-card { background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)); border: 1px solid var(--border); padding: 32px; border-radius: var(--radius); position: relative; overflow: hidden; }
.tech-card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,213,74,0.1) 0%, transparent 50%); opacity: 0; transition: opacity 0.3s; }
.tech-card:hover::before { opacity: 1; }
.tech-card h3 { font-size: 20px; margin-bottom: 12px; color: var(--brand-y); }
.tech-card p { color: var(--text-sub); font-size: 14px; }

/* VIP Banner */
.vip-banner { background: linear-gradient(135deg, #2a1a00, #111); border: 1px solid rgba(255,213,74,0.3); border-radius: 24px; padding: 48px; display: flex; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
.vip-content h2 { font-size: 36px; color: var(--brand-y); margin-bottom: 16px; }
.vip-content ul { display: flex; gap: 24px; color: var(--text-sub); font-size: 14px; }
.vip-content li::before { content: '✦'; color: var(--brand-y); margin-right: 8px; }

/* Download Section */
.download-section { text-align: center; background: rgba(255,255,255,0.02); border-radius: 32px; margin: 64px auto; padding: 80px 24px; border: 1px solid var(--border); position: relative; }
.download-section h2 { font-size: 40px; font-weight: 900; margin-bottom: 16px; }
.download-section p { color: var(--text-sub); margin-bottom: 32px; }
.store-btns { display: flex; justify-content: center; gap: 16px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 48px 24px; text-align: center; color: var(--text-sub); font-size: 13px; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 24px; }
.footer-links a:hover { color: #fff; }
.footer-info { margin-bottom: 12px; }
.footer-info a { color: var(--text-sub); }
.footer-info a:hover { color: var(--brand-y); }
.update-time { font-size: 12px; opacity: 0.6; margin-top: 8px; display: block; }

/* Responsive */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hero { flex-direction: column; text-align: center; padding-top: 40px; min-height: auto; }
  .hero-content { margin: 0 auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 48px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .vip-banner { flex-direction: column; text-align: center; gap: 24px; }
  .vip-content ul { justify-content: center; }
}

@media (max-width: 768px) {
  .grid-2, .tech-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 48px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .marquee-item { margin-right: 24px; }
  .nav-actions { display: none; }
  .vip-banner { padding: 32px 24px; }
  .vip-content h2 { font-size: 28px; }
  .vip-content ul { flex-direction: column; gap: 12px; }
  .store-btns { flex-direction: column; align-items: center; }
}