:root {
  --bg: #05060A;
  --text-main: #FFFFFF;
  --text-sub: #A7ACBB;
  --yellow: #FFD84D;
  --orange: #FFA51F;
  --cyan: #00F0C8;
  --purple: #8A6CFF;
  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --radius-lg: 32px;
  --radius-md: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(0, 240, 200, 0.05), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(255, 216, 77, 0.05), transparent 25%);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; object-fit: cover; }

/* Typography */
h1, h2, h3 { font-weight: 900; line-height: 1.2; }
.gradient-text {
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-cyan { color: var(--cyan); }

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.3s ease;
}
.header.scrolled {
  padding: 12px 0;
  background: rgba(5, 6, 10, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
}
.brand img { height: 32px; width: auto; }
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-sub);
}
.nav-links a:hover { color: var(--yellow); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.search-box {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px;
  color: var(--text-sub);
  font-size: 14px;
  outline: none;
}
.btn-download-header {
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  color: #000;
  font-weight: 800;
  padding: 10px 24px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 165, 31, 0.3);
  position: relative;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
}
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  background: rgba(0, 240, 200, 0.1);
  color: var(--cyan);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 240, 200, 0.3);
}
.hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-sub);
  margin-bottom: 40px;
  max-width: 480px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}
.btn-primary {
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  color: #000;
  font-weight: 800;
  padding: 16px 32px;
  border-radius: 30px;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-secondary {
  background: var(--glass);
  color: var(--text-main);
  border: 1px solid var(--border);
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 30px;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }
.hero-stats {
  display: flex;
  gap: 40px;
}
.stat-item h3 {
  font-size: 32px;
  color: var(--yellow);
  margin-bottom: 4px;
}
.stat-item p { color: var(--text-sub); font-size: 14px; }

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.device-mockup {
  width: 280px;
  height: 580px;
  background: #000;
  border-radius: 40px;
  border: 4px solid #333;
  overflow: hidden;
  position: relative;
  z-index: 10;
  box-shadow: 0 0 40px rgba(0, 240, 200, 0.2);
  transition: transform 0.4s ease;
}
.hero-visual:hover .device-mockup { transform: scale(1.02) translateY(-10px); }
.device-mockup img { width: 100%; height: 100%; object-fit: cover; }
.floating-card {
  position: absolute;
  background: rgba(20, 25, 35, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  z-index: 20;
  animation: float 4s ease-in-out infinite;
}
.fc-1 { top: 15%; left: 0; border-color: rgba(0, 240, 200, 0.5); }
.fc-2 { bottom: 20%; right: 0; border-color: rgba(255, 216, 77, 0.5); animation-delay: 2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* Marquee */
.marquee {
  background: linear-gradient(90deg, rgba(255, 216, 77, 0.1), rgba(0, 240, 200, 0.1));
  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;
  color: var(--cyan);
  font-weight: 600;
  font-size: 15px;
}
.marquee-content span { margin: 0 40px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Sections */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 40px; margin-bottom: 16px; }
.section-header p { color: var(--text-sub); font-size: 18px; }

/* Emotional Channels */
.channel-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}
.pill {
  background: var(--glass);
  border: 1px solid var(--border);
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.3s;
}
.pill:hover, .pill.active {
  background: var(--yellow);
  color: #000;
  border-color: var(--yellow);
  box-shadow: 0 0 20px rgba(255, 216, 77, 0.4);
}

/* Grid Grids */
.drama-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.drama-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s;
}
.drama-card:hover {
  transform: translateY(-10px);
  border-color: var(--cyan);
  box-shadow: 0 10px 30px rgba(0, 240, 200, 0.15);
}
.drama-cover {
  position: relative;
  aspect-ratio: 3/4;
}
.drama-cover img { width: 100%; height: 100%; }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  color: #000;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
}
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 50px;
  height: 50px;
  background: rgba(255, 216, 77, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s;
}
.drama-card:hover .play-btn { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.drama-info { padding: 16px; }
.drama-info h3 { font-size: 16px; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drama-info p { font-size: 13px; color: var(--text-sub); }

/* Energy Track (Leaderboard) */
.leaderboard {
  max-width: 800px;
  margin: 0 auto;
}
.track-item {
  display: flex;
  align-items: center;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.track-item:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.08);
}
.track-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--yellow);
  opacity: 0;
  transition: opacity 0.3s;
}
.track-item:hover::before { opacity: 1; }
.track-rank {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  margin-right: 20px;
}
.rank-1 { background: linear-gradient(135deg, #FFD700, #FFA500); color: #000; }
.rank-2 { background: linear-gradient(135deg, #E0E0E0, #9E9E9E); color: #000; }
.rank-3 { background: linear-gradient(135deg, #CD7F32, #8B4513); color: #fff; }
.rank-normal { background: var(--glass); color: var(--text-sub); border: 1px solid var(--border); }
.track-content { flex: 1; }
.track-content h4 { font-size: 18px; margin-bottom: 4px; }
.track-content p { font-size: 14px; color: var(--text-sub); }
.track-heat { width: 150px; text-align: right; }
.heat-bar { height: 6px; background: #222; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.heat-fill { height: 100%; background: linear-gradient(90deg, var(--cyan), var(--yellow)); }

/* AI Section */
.ai-section {
  background: radial-gradient(circle at center, rgba(138, 108, 255, 0.1), transparent 70%);
}
.ai-container {
  display: flex;
  gap: 40px;
  align-items: center;
}
.ai-text { flex: 1; }
.ai-text h2 { font-size: 36px; margin-bottom: 20px; }
.ai-text p { color: var(--text-sub); font-size: 18px; margin-bottom: 30px; }
.ai-cards { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.ai-card {
  background: var(--glass);
  border: 1px solid rgba(138, 108, 255, 0.3);
  padding: 20px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ai-card h4 { font-size: 16px; }

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--glass);
  border: 1px solid var(--border);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  text-align: center;
}
.feature-card h3 { font-size: 20px; margin-bottom: 12px; color: var(--cyan); }
.feature-card p { font-size: 15px; color: var(--text-sub); }

/* VIP */
.vip-section {
  background: linear-gradient(135deg, rgba(255, 216, 77, 0.15), rgba(255, 165, 31, 0.15));
  border: 1px solid rgba(255, 216, 77, 0.3);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}
.vip-section h2 { font-size: 40px; margin-bottom: 20px; color: var(--yellow); }
.vip-section p { font-size: 18px; color: var(--text-main); margin-bottom: 40px; opacity: 0.9; }

/* Platforms */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.platform-card {
  background: var(--glass);
  border: 1px solid var(--border);
  padding: 40px 20px;
  border-radius: var(--radius-md);
  text-align: center;
}
.platform-card h3 { font-size: 20px; margin-bottom: 8px; }

/* Download Block */
.download-block {
  text-align: center;
  background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><circle cx="50%" cy="50%" r="40%" fill="none" stroke="%2300F0C8" stroke-width="1" opacity="0.1"/></svg>') no-repeat center;
}
.download-block h2 { font-size: 48px; margin-bottom: 24px; }
.download-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  background: #020305;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { color: var(--text-sub); font-size: 14px; margin-top: 16px; max-width: 300px; }
.footer-col h4 { font-size: 16px; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--text-sub); font-size: 14px; }
.footer-col ul li a:hover { color: var(--yellow); }
.footer-bottom {
  text-align: center;
  color: var(--text-sub);
  font-size: 13px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Images Wall */
.image-wall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.image-wall img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 3/4;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.image-wall img:hover { opacity: 1; }

@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin: 0 auto 40px; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .drama-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 36px; }
  .hero-stats { flex-direction: column; gap: 24px; }
  .drama-grid { grid-template-columns: 1fr; }
  .ai-container { flex-direction: column; }
  .feature-grid { grid-template-columns: 1fr; }
  .vip-section { padding: 40px 20px; }
  .platform-grid { grid-template-columns: 1fr; }
  .download-actions { flex-direction: column; }
  .footer-container { grid-template-columns: 1fr; }
  .search-box { display: none; }
  .header-actions .btn-download-header { display: block; }
  .image-wall { grid-template-columns: repeat(2, 1fr); }
}