:root {
  --bg-dark: #07070C;
  --bg-purple: #120A16;
  --lychee-red: #FF3B6B;
  --lychee-pink: #FF6B8A;
  --flesh-white: #FFF4E6;
  --leaf-green: #00E6A8;
  --holo-purple: #8A6CFF;
  --text-grey: #A7ACBB;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --gradient-red: linear-gradient(135deg, var(--lychee-red), var(--lychee-pink));
}

* {
  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-dark);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(255, 59, 107, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(0, 230, 168, 0.05), transparent 25%),
    linear-gradient(to bottom, var(--bg-dark), var(--bg-purple));
  color: var(--flesh-white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Header */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 100;
  transition: all 0.3s ease;
  background: transparent;
}

header.scrolled {
  height: 60px;
  background: rgba(7, 7, 12, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
}

.brand img {
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 15px;
  color: var(--text-grey);
}

.nav-links li { cursor: pointer; transition: color 0.2s; }
.nav-links li:hover, .nav-links li.active { color: var(--flesh-white); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 8px 16px;
  color: var(--text-grey);
  font-size: 14px;
  outline: none;
  width: 200px;
  transition: border-color 0.3s;
}
.search-box:focus { border-color: var(--lychee-red); }

.download-wrapper { position: relative; }

.btn-download {
  background: var(--gradient-red);
  color: #fff;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 59, 107, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 59, 107, 0.5);
}

.dropdown-menu {
  position: absolute;
  top: 120%; right: 0;
  width: 280px;
  background: rgba(18, 10, 22, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform-origin: top right;
}

.dropdown-menu.show {
  display: flex;
  animation: scaleIn 0.2s ease-out forwards;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.dl-item {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: var(--glass-bg);
  border-radius: 12px;
  border: 1px solid transparent;
  transition: border-color 0.2s;
  cursor: pointer;
}
.dl-item:hover { border-color: var(--lychee-red); }
.dl-item .title { font-weight: 600; font-size: 15px; color: var(--flesh-white); }
.dl-item .desc { font-size: 12px; color: var(--text-grey); margin-top: 4px; }
.dl-gift { text-align: center; font-size: 13px; color: var(--leaf-green); font-weight: 600; margin-top: 4px; }

/* Button for mobile visibility */
.mobile-dl-btn {
  display: none;
  position: fixed;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  width: 90%;
  text-align: center;
  padding: 14px 0;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  background: var(--gradient-red);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 59, 107, 0.5);
}

/* Main Container */
main { padding-top: 72px; }

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
  position: relative;
  gap: 40px;
}

.hero-content { flex: 1; z-index: 2; }

.tagline {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 59, 107, 0.1);
  border: 1px solid rgba(255, 59, 107, 0.3);
  border-radius: 20px;
  color: var(--lychee-pink);
  font-size: 13px;
  margin-bottom: 24px;
  font-weight: 600;
}

h1 {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
h1 .highlight {
  background: var(--gradient-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: jellyGlow 3s ease-in-out infinite;
}

@keyframes jellyGlow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 59, 107, 0.4)); }
  50% { filter: drop-shadow(0 0 20px rgba(255, 59, 107, 0.8)); }
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-grey);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.btn-primary, .btn-secondary {
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--gradient-red);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 59, 107, 0.4);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--flesh-white);
  border: 1px solid var(--glass-border);
}

.btn-primary:hover, .btn-secondary:hover { transform: translateY(-3px); }

.hero-stats {
  display: flex;
  gap: 40px;
}
.stat-item .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--flesh-white);
}
.stat-item .label {
  font-size: 13px;
  color: var(--text-grey);
  margin-top: 4px;
}

/* Hero Visual (Capsule) */
.hero-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 600px;
}

.capsule-container {
  width: 400px;
  height: 520px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 200px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 0 50px rgba(138, 108, 255, 0.1), 0 0 40px rgba(255, 59, 107, 0.1);
  backdrop-filter: blur(10px);
  transform: perspective(1000px) rotateY(-10deg);
  transition: transform 0.5s ease;
}

.capsule-container:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-10px);
}

.phone-mockup {
  width: 220px;
  height: 460px;
  background: #000;
  border-radius: 36px;
  border: 4px solid #333;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  background: rgba(18, 10, 22, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  animation: float 4s ease-in-out infinite;
}

.card-1 { top: 10%; left: -20px; border-left: 3px solid var(--leaf-green); animation-delay: 0s; }
.card-2 { bottom: 20%; right: -30px; border-left: 3px solid var(--holo-purple); animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Sections Global */
section {
  padding: 80px 5%;
  position: relative;
}
.section-header {
  margin-bottom: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
}
.section-header p { color: var(--text-grey); font-size: 14px; }

/* Marquee */
.marquee-section {
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-content {
  display: inline-block;
  animation: scroll 20s linear infinite;
}
.marquee-content span {
  margin: 0 30px;
  color: var(--leaf-green);
  font-weight: 600;
  font-size: 14px;
}
.marquee-content span::before {
  content: '✦';
  color: var(--lychee-red);
  margin-right: 8px;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Emotion Tags */
.emotion-tags {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.emotion-tag {
  padding: 8px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}
.emotion-tag:hover, .emotion-tag.active {
  background: rgba(255, 59, 107, 0.15);
  border-color: var(--lychee-red);
  color: var(--lychee-pink);
}

/* Grid Layouts */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Drama Card */
.drama-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}
.drama-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 59, 107, 0.5);
  box-shadow: 0 10px 30px rgba(255, 59, 107, 0.15);
}
.drama-cover {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s;
}
.drama-card:hover .drama-cover { transform: scale(1.05); }
.drama-info {
  padding: 16px;
}
.drama-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drama-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-grey);
}
.badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: var(--gradient-red);
  color: #fff;
}

/* Ranking List */
.ranking-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background: var(--glass-bg);
  border-radius: 16px;
  margin-bottom: 12px;
  transition: all 0.3s;
  border: 1px solid transparent;
}
.rank-item:hover {
  transform: translateX(10px);
  border-color: rgba(255, 59, 107, 0.3);
  background: rgba(255, 59, 107, 0.05);
}
.rank-num {
  font-size: 24px;
  font-weight: 900;
  font-style: italic;
  width: 40px;
  text-align: center;
}
.rank-1 .rank-num { color: #FFD700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
.rank-2 .rank-num { color: #C0C0C0; text-shadow: 0 0 10px rgba(192, 192, 192, 0.5); }
.rank-3 .rank-num { color: #CD7F32; text-shadow: 0 0 10px rgba(205, 127, 50, 0.5); }
.rank-info { flex: 1; }
.rank-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.rank-detail { font-size: 12px; color: var(--text-grey); display: flex; justify-content: space-between; }
.heat-bar {
  height: 4px;
  background: #333;
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}
.heat-fill {
  height: 100%;
  background: var(--gradient-red);
  border-radius: 2px;
}

/* AI Section */
.ai-section {
  background: linear-gradient(180deg, transparent, rgba(138, 108, 255, 0.05), transparent);
}
.ai-panel {
  background: var(--glass-bg);
  border: 1px solid var(--holo-purple);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  gap: 40px;
  align-items: center;
  box-shadow: 0 0 40px rgba(138, 108, 255, 0.1);
}
.ai-text { flex: 1; }
.ai-text h2 { font-size: 2rem; margin-bottom: 16px; color: var(--holo-purple); }
.ai-text p { color: var(--text-grey); margin-bottom: 24px; }
.ai-metric {
  display: flex;
  gap: 20px;
}
.metric-box {
  background: rgba(0,0,0,0.3);
  padding: 16px;
  border-radius: 12px;
  flex: 1;
}
.metric-box .val { font-size: 1.5rem; font-weight: 800; color: var(--flesh-white); }
.metric-box .lbl { font-size: 12px; color: var(--text-grey); }

/* Feature Cards */
.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 30px;
  transition: all 0.3s;
}
.feature-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--leaf-green);
  transform: translateY(-5px);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(0, 230, 168, 0.1);
  color: var(--leaf-green);
  display: flex;
  align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: bold;
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.feature-card p { font-size: 14px; color: var(--text-grey); }

/* VIP Section */
.vip-section {
  padding: 60px 5%;
}
.vip-banner {
  background: var(--gradient-red);
  border-radius: 32px;
  padding: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.vip-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.2), transparent 50%);
}
.vip-content { position: relative; z-index: 1; }
.vip-content h2 { font-size: 2.5rem; font-weight: 900; margin-bottom: 16px; color: #fff; }
.vip-content ul { display: flex; gap: 30px; margin-bottom: 30px; flex-wrap: wrap; }
.vip-content li { font-size: 15px; color: rgba(255,255,255,0.9); font-weight: 500; }
.vip-content li::before { content: '👑'; margin-right: 6px; }
.btn-vip {
  background: #fff;
  color: var(--lychee-red);
  padding: 14px 40px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}
.btn-vip:hover { transform: scale(1.05); }

/* Device Section */
.device-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.device-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
}
.device-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.device-card p { font-size: 13px; color: var(--text-grey); }

/* Download Section */
.download-section {
  text-align: center;
  padding: 100px 5%;
  background: radial-gradient(circle at center, rgba(255, 59, 107, 0.1), transparent 70%);
}
.download-section h2 { font-size: 3rem; font-weight: 900; margin-bottom: 20px; }
.dl-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.dl-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 16px 32px;
  border-radius: 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s;
}
.dl-btn:hover { background: rgba(255,255,255,0.1); border-color: var(--lychee-red); }
.qr-code {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.qr-placeholder {
  width: 120px; height: 120px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 12px;
  font-weight: bold;
}

/* Footer */
footer {
  padding: 60px 5% 40px;
  border-top: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.3);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 40px;
}
.footer-brand { max-width: 300px; }
.footer-brand p { font-size: 13px; color: var(--text-grey); margin-top: 16px; }
.footer-links {
  display: flex;
  gap: 60px;
}
.footer-col h4 { font-size: 15px; margin-bottom: 16px; color: var(--flesh-white); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li { font-size: 13px; color: var(--text-grey); cursor: pointer; }
.footer-col li:hover { color: var(--lychee-red); }
.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: #666;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-bottom a { color: #666; margin-left: 10px; }
.footer-bottom a:hover { color: var(--text-grey); }

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  h1 { font-size: 3.5rem; }
  .hero { flex-direction: column; justify-content: center; padding-top: 100px; text-align: center; }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { height: 500px; width: 100%; }
  .nav-links { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .ranking-container { grid-template-columns: 1fr; }
  .ai-panel { flex-direction: column; text-align: center; }
  .ai-metric { justify-content: center; }
  .vip-banner { flex-direction: column; text-align: center; gap: 30px; padding: 40px 20px; }
  .vip-content ul { justify-content: center; }
  .device-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 2.8rem; }
  .search-box, .btn-download { display: none; }
  .mobile-dl-btn { display: block; }
  main { padding-bottom: 80px; }
  .grid-4, .grid-3, .device-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dl-buttons { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 30px; }
}