:root {
  --primary: #ff4d4f;
  --primary-gradient: linear-gradient(90deg, #ff6b6b, #ff4d4f, #f5222d);
  --text-main: #222;
  --text-sub: #666;
  --bg-body: #f5f6f8;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  word-break: break-word;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; object-fit: cover; }
ul { list-style: none; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: bold;
}
.brand img { height: 32px; width: auto; border-radius: 6px; }
.nav-desktop {
  display: flex;
  gap: 20px;
}
.nav-desktop a {
  font-size: 15px;
  color: var(--text-sub);
  transition: color 0.3s, transform 0.3s;
}
.nav-desktop a:hover { color: var(--primary); transform: translateY(-2px); }
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 16px;
  color: var(--primary);
  cursor: pointer;
  font-weight: bold;
}
.mobile-nav {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  background: #fff;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.mobile-nav.active { display: flex; }
.mobile-nav a { padding: 12px 20px; border-bottom: 1px solid #eee; }
.mobile-nav a:hover { color: var(--primary); background: #fafafa; }

/* Section Common */
section { padding: 50px 20px; }
.container { max-width: 1200px; margin: 0 auto; }
h1, h2, h3 { font-weight: 700; margin-bottom: 16px; }
h1 { font-size: 32px; line-height: 1.3; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
p { color: var(--text-sub); font-size: 15px; margin-bottom: 12px; }

/* Hero */
.hero {
  background: #1a1a1a;
  color: #fff;
  position: relative;
  overflow: hidden;
  padding-bottom: 60px;
}
.hero-text { position: relative; z-index: 2; margin-bottom: 30px; }
.hero h1 { color: #fff; margin-bottom: 10px; }
.hero p { color: #ccc; font-size: 16px; max-width: 600px; margin-bottom: 24px; }
.download-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  transition: transform 0.3s, opacity 0.3s;
  cursor: pointer;
}
.btn:hover { transform: scale(1.05); opacity: 0.9; }
.btn-android { background: #3ddc84; color: #000; }
.btn-ios { background: #fff; color: #000; }
.hero-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
  height: 280px;
  position: relative;
  z-index: 2;
}
.hero-gallery img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  transition: transform 0.4s;
}
.hero-gallery img:hover { transform: scale(1.03); }
.hero-gallery .col-main { grid-row: span 2; }
.hero-gallery .col-sub { display: flex; flex-direction: column; gap: 10px; }

/* Marquee */
.marquee {
  background: #111;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}
.marquee-content {
  display: inline-block;
  animation: scroll 30s linear infinite;
}
.marquee-content span {
  margin: 0 20px;
  font-size: 14px;
  font-weight: bold;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Sections */
.bg-alt1 { background: #faf7f0; }
.bg-alt2 { background: #eff6ff; }
.bg-alt3 { background: #f5f3ff; }
.bg-alt4 { background: #f0fdf4; }

/* Timeline */
.timeline { border-left: 3px solid var(--primary); margin: 20px 0; padding-left: 20px; }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
}
.timeline-time { font-weight: bold; font-size: 16px; color: var(--primary); margin-bottom: 4px; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.drama-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.drama-card img { aspect-ratio: 3/4; width: 100%; }
.card-content { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 16px; font-weight: bold; margin-bottom: 6px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tag {
  background: #fff0f0;
  color: var(--primary);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
}
.card-desc { font-size: 13px; color: var(--text-sub); line-height: 1.5; margin-bottom: 12px; flex-grow: 1; }
.card-date { font-size: 12px; color: #999; }

/* Feature specific */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.feature-split-reverse { direction: rtl; }
.feature-split-reverse > * { direction: ltr; }
.feature-image img { border-radius: var(--radius-lg); width: 100%; }

/* Reviews */
.review-list { display: flex; flex-direction: column; gap: 16px; }
.review-item {
  display: flex;
  gap: 12px;
  background: #fff;
  padding: 16px;
  border-radius: var(--radius-md);
}
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: #eee; }
.review-content { flex: 1; }
.review-name { font-weight: bold; font-size: 14px; margin-bottom: 4px; }
.review-text { font-size: 14px; color: #444; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-q {
  padding: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}
.faq-a {
  padding: 16px;
  font-size: 14px;
  color: var(--text-sub);
  background: #fafafa;
}

/* Floating Window */
.floating-download {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border-radius: 30px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 99;
  width: max-content;
  max-width: 90vw;
}
.floating-download img { width: 30px; height: 30px; border-radius: 6px; }
.floating-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.floating-info .title { font-size: 14px; font-weight: bold; }
.floating-info .desc { font-size: 11px; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px;}
.floating-btns { display: flex; gap: 8px; }
.floating-btns .btn { padding: 6px 12px; font-size: 12px; }

/* Footer */
footer {
  background: #222;
  color: #999;
  padding: 30px 20px;
  text-align: center;
  font-size: 13px;
}
footer p { margin-bottom: 8px; font-size: 13px; }
footer a { color: #999; text-decoration: underline; }
footer a:hover { color: #fff; }

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-btn { display: block; }
  .hero-gallery { grid-template-columns: 1fr 1fr; height: auto; }
  .hero-gallery .col-main { grid-column: span 2; aspect-ratio: 16/9; }
  .hero-gallery .col-sub { flex-direction: row; grid-column: span 2; height: 120px; }
  .hero-gallery .col-sub img { width: 50%; }
  .feature-split { grid-template-columns: 1fr; gap: 20px; }
  .feature-split-reverse { direction: ltr; }
  .floating-download { bottom: 10px; padding: 8px 12px; gap: 10px; border-radius: 20px; flex-wrap: wrap; justify-content: center;}
  .floating-info { display: none; }
  .floating-btns .btn { padding: 8px 16px; }
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  section { padding: 30px 15px; }
}

@media (min-width: 1024px) {
  .hero-gallery { height: 350px; }
}