:root {
  --bg-dark: #0b0e14;
  --bg-card: #151b26;
  --bg-light: #f4f6fa;
  --accent: #ff3b5c;
  --accent-hover: #ff5c78;
  --text-main: #ffffff;
  --text-muted: #9aa5b8;
  --text-dark: #1a202c;
  --gradient-brand: linear-gradient(90deg, #ff3b5c, #ff8a00, #ff3b5c);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}
* { 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);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 80px; /* Space for floating window */
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; object-fit: cover; }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 20, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-group { display: flex; align-items: center; gap: 10px; }
.logo-group img { height: 32px; width: 32px; border-radius: 8px; }
.logo-group span { font-weight: 700; font-size: 18px; letter-spacing: 1px; }
.desktop-nav { display: flex; gap: 20px; }
.desktop-nav a { font-size: 14px; color: var(--text-muted); transition: var(--transition); position: relative; }
.desktop-nav a:hover { color: var(--text-main); }
.desktop-nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: var(--transition);
}
.desktop-nav a:hover::after { width: 100%; }
.mobile-menu-btn { display: none; background: none; border: none; color: white; font-size: 24px; cursor: pointer; }
.mobile-nav {
  display: none; position: absolute; top: 64px; left: 0; width: 100%;
  background: var(--bg-card); padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-direction: column;
}
.mobile-nav a { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); }
.mobile-nav.active { display: flex; }

/* Hero */
.hero {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  overflow: hidden;
}
.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.hero-text { flex: 1; }
.hero-text h1 { font-size: 42px; line-height: 1.2; margin-bottom: 20px; font-weight: 800; }
.hero-text h1 span { background: var(--gradient-brand); -webkit-background-clip: text; color: transparent; }
.hero-text p { font-size: 16px; color: var(--text-muted); margin-bottom: 30px; }
.download-btns { display: flex; flex-wrap: wrap; gap: 15px; }
.download-btns a {
  padding: 12px 24px; border-radius: 30px; font-size: 15px; font-weight: 600;
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; gap: 8px; transition: var(--transition);
}
.download-btns a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.download-btns a.primary { background: var(--accent); border-color: var(--accent); }
.download-btns a.primary:hover { background: var(--accent-hover); }

/* Hero Slider */
.hero-slider {
  flex: 1;
  position: relative;
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.hero-slider .slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.8s ease-in-out;
}
.hero-slider .slide.active { opacity: 1; }
.hero-slider img { width: 100%; height: 100%; object-fit: cover; }
.slider-nav {
  position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.slider-nav span {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition);
}
.slider-nav span.active { background: var(--accent); width: 20px; border-radius: 4px; }

/* Marquee */
.marquee-container {
  width: 100%;
  overflow: hidden;
  background: #000;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.marquee-content {
  display: flex; white-space: nowrap; animation: scroll 20s linear infinite;
}
.marquee-content span {
  margin-right: 40px; font-size: 16px; font-weight: bold;
  background: var(--gradient-brand); -webkit-background-clip: text; color: transparent;
}
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Sections Common */
section { padding: 60px 20px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 28px; margin-bottom: 40px; text-align: center; font-weight: 700; }
.section-title span { color: var(--accent); }

/* AI Modify Section */
.ai-section { background: var(--bg-card); }
.ai-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.ai-card {
  background: rgba(255,255,255,0.03); padding: 25px; border-radius: var(--border-radius);
  border-left: 4px solid var(--accent); transition: var(--transition);
}
.ai-card:hover { background: rgba(255,255,255,0.08); transform: translateX(5px); }
.ai-card h3 { font-size: 18px; margin-bottom: 10px; }
.ai-card p { font-size: 14px; color: var(--text-muted); }

/* Drama Section */
.drama-section { background: var(--bg-light); color: var(--text-dark); }
.drama-section .section-title { color: var(--text-dark); }
.drama-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.drama-card {
  background: #fff; border-radius: var(--border-radius); overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: var(--transition);
}
.drama-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.drama-card .img-wrap { position: relative; padding-top: 133%; }
.drama-card .img-wrap img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.drama-tag {
  position: absolute; top: 10px; right: 10px; background: var(--accent); color: #fff;
  padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: bold;
}
.drama-info { padding: 15px; }
.drama-info h3 { font-size: 16px; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drama-info .meta { font-size: 12px; color: #666; display: flex; justify-content: space-between; }

/* Ranking Section */
.ranking-section { background: #1a1a2e; }
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 30px; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,0.1);
}
.timeline-item { position: relative; margin-bottom: 30px; padding: 15px 20px; background: var(--bg-card); border-radius: var(--border-radius); }
.timeline-item::before {
  content: ''; position: absolute; left: -36px; top: 20px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg-dark);
}
.timeline-time { font-size: 14px; color: var(--accent); font-weight: bold; margin-bottom: 5px; }
.timeline-content h4 { font-size: 16px; margin-bottom: 5px; }
.timeline-content p { font-size: 13px; color: var(--text-muted); }

/* VIP Section */
.vip-section { background: var(--bg-light); color: var(--text-dark); }
.vip-section .section-title { color: var(--text-dark); }
.vip-container { display: flex; gap: 40px; align-items: center; }
.vip-list { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.vip-item { background: #fff; padding: 20px; border-radius: var(--border-radius); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.vip-item h4 { font-size: 16px; margin-bottom: 8px; color: var(--accent); }
.vip-item p { font-size: 14px; color: #555; }
.vip-image { flex: 1; border-radius: var(--border-radius); overflow: hidden; }

/* FAQ Section */
.faq-section { background: #fff; color: var(--text-dark); }
.faq-section .section-title { color: var(--text-dark); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.faq-item { background: #f8f9fa; padding: 20px; border-radius: var(--border-radius); }
.faq-item h4 { font-size: 16px; margin-bottom: 10px; }
.faq-item p { font-size: 14px; color: #555; }

/* Privacy & Feedback */
.privacy-section { background: #0f172a; }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.privacy-box h3 { font-size: 20px; margin-bottom: 15px; }
.privacy-box p { font-size: 14px; color: var(--text-muted); margin-bottom: 15px; }
.privacy-box ul { padding-left: 20px; list-style: disc; color: var(--text-muted); font-size: 14px; }
.privacy-box ul li { margin-bottom: 8px; }

/* Comments */
.comments-section { background: var(--bg-card); }
.comment-list { display: flex; flex-direction: column; gap: 20px; max-width: 800px; margin: 0 auto; }
.comment-item { display: flex; gap: 15px; }
.comment-item img { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1); }
.comment-content { flex: 1; background: rgba(255,255,255,0.05); padding: 15px; border-radius: var(--border-radius); }
.comment-content .name { font-weight: bold; font-size: 14px; margin-bottom: 5px; }
.comment-content p { font-size: 14px; color: var(--text-muted); }

/* Download Zone */
.download-zone { background: var(--gradient-brand); color: #fff; text-align: center; padding: 80px 20px; }
.download-zone h2 { font-size: 32px; margin-bottom: 20px; }
.download-zone p { font-size: 16px; margin-bottom: 40px; opacity: 0.9; }
.download-zone .download-btns { justify-content: center; }
.download-zone .download-btns a { background: rgba(0,0,0,0.3); border: none; color: #fff; }
.download-zone .download-btns a.primary { background: #fff; color: var(--accent); }
.download-zone .download-btns a.primary:hover { background: #f0f0f0; }

/* Installation Steps */
.steps { display: flex; justify-content: center; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.step-item { background: rgba(255,255,255,0.1); padding: 20px; border-radius: var(--border-radius); width: 200px; text-align: left; }
.step-item span { display: inline-block; width: 24px; height: 24px; background: #fff; color: var(--accent); border-radius: 50%; text-align: center; line-height: 24px; font-weight: bold; margin-bottom: 10px; }
.step-item h4 { font-size: 15px; margin-bottom: 5px; }
.step-item p { font-size: 13px; opacity: 0.8; }

/* Footer */
footer {
  background: #05070a; padding: 40px 20px 20px; font-size: 13px; color: #666;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #666; transition: var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; }
.footer-bottom a { color: #888; }
.footer-bottom a:hover { color: #fff; }

/* Floating Download */
.floating-download {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: rgba(21, 27, 38, 0.95); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 30px;
  padding: 10px 20px; display: flex; align-items: center; gap: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 1000;
}
.floating-download img { width: 30px; height: 30px; border-radius: 6px; }
.floating-download .info { display: flex; flex-direction: column; }
.floating-download .info strong { font-size: 14px; color: #fff; }
.floating-download .info span { font-size: 12px; color: var(--text-muted); }
.floating-download a {
  background: var(--accent); color: #fff; padding: 8px 16px; border-radius: 20px;
  font-size: 14px; font-weight: bold; transition: var(--transition); white-space: nowrap;
}
.floating-download a:hover { background: var(--accent-hover); }

/* Modal */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7); z-index: 2000; display: none;
  align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: #fff; color: var(--text-dark); padding: 30px; border-radius: var(--border-radius);
  max-width: 90%; width: 400px; text-align: center;
}
.modal-box h3 { margin-bottom: 15px; }
.modal-box p { font-size: 14px; color: #555; margin-bottom: 20px; }
.modal-box .copy-box {
  background: #f0f0f0; padding: 10px; border-radius: 6px; margin-bottom: 15px;
  word-break: break-all; font-size: 13px;
}
.modal-box button {
  background: var(--accent); color: #fff; border: none; padding: 10px 20px; border-radius: 6px;
  cursor: pointer; font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
  .drama-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-text h1 { font-size: 32px; }
}
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-top { flex-direction: column; text-align: center; }
  .download-btns { justify-content: center; }
  .hero-slider { height: 300px; width: 100%; }
  .drama-grid { grid-template-columns: repeat(2, 1fr); }
  .vip-container { flex-direction: column; }
  .vip-image { width: 100%; }
  .faq-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .floating-download { width: calc(100% - 40px); bottom: 10px; padding: 10px 15px; justify-content: space-between; }
  .floating-download .info { flex: 1; margin: 0 10px; }
  .steps { flex-direction: column; align-items: center; }
  .step-item { width: 100%; max-width: 300px; }
}