:root {
  --bg-dark: #0f0f13;
  --bg-card: #1a1a22;
  --primary: #e63946;
  --primary-hover: #f14b58;
  --text-main: #f1f1f1;
  --text-muted: #9e9e9e;
  --border-color: #2d2d3a;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; object-fit: cover; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 15, 19, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.logo-container { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: bold; }
.logo-container img { height: 32px; border-radius: 6px; }
.header-nav { display: none; }
.header-nav a { margin-left: 20px; font-size: 15px; color: var(--text-muted); transition: color 0.3s; }
.header-nav a:hover { color: var(--text-main); }
.btn-download {
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  transition: background 0.3s;
}
.btn-download:hover { background: var(--primary-hover); }

/* Hero Carousel */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-track {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
}
.carousel-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.carousel-slide.active { opacity: 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-slide::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, var(--bg-dark) 0%, rgba(15,15,19,0.6) 40%, rgba(15,15,19,0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 800px;
  margin-top: 40px;
}
.hero-content h1 {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  animation: slideUp 0.8s ease-out;
}
.hero-content p {
  font-size: 16px;
  color: #ddd;
  margin-bottom: 30px;
  animation: slideUp 0.8s ease-out 0.2s backwards;
}
.hero-content .btn-download {
  display: inline-block;
  padding: 14px 40px;
  font-size: 18px;
  border-radius: 30px;
  animation: slideUp 0.8s ease-out 0.4s backwards;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Common Section */
section { padding: 50px 5%; }
.sec-title { font-size: 24px; margin-bottom: 10px; text-align: center; }
.sec-desc { font-size: 15px; color: var(--text-muted); text-align: center; margin-bottom: 40px; }

/* Category Section */
.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}
.category-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.category-card img { width: 100%; height: 100%; transition: transform 0.4s; }
.category-card:hover img { transform: scale(1.05); }
.category-card .overlay {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.category-card h3 { font-size: 18px; margin-bottom: 5px; }
.category-card p { font-size: 13px; color: #bbb; }

/* Drama List Section */
.drama-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.drama-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.drama-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.drama-info { padding: 12px; text-align: center; }
.drama-info h3 { font-size: 15px; font-weight: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.drama-info span { font-size: 12px; color: var(--text-muted); }

/* Feature Section (Why Choose Us) */
.features {
  background: #141418;
}
.features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(230, 57, 70, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: bold;
  flex-shrink: 0;
}
.feature-text h3 { font-size: 16px; margin-bottom: 5px; }
.feature-text p { font-size: 14px; color: var(--text-muted); }

/* Download / CTA Section */
.cta-section {
  text-align: center;
  padding: 60px 5%;
  background: linear-gradient(135deg, #1f1f24, #0f0f13);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.cta-section h2 { font-size: 26px; margin-bottom: 15px; }
.cta-section p { color: var(--text-muted); margin-bottom: 25px; }
.cta-btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 15px 50px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s;
}
.cta-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.3);
}

/* Footer */
.site-footer {
  padding: 30px 5%;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  border-top: 1px solid #222;
}
.site-footer p { margin-bottom: 8px; }
.site-footer a { color: #777; transition: color 0.3s; }
.site-footer a:hover { color: #bbb; }

/* Responsive */
@media (min-width: 768px) {
  .header-nav { display: flex; align-items: center; }
  .hero-content h1 { font-size: 48px; }
  .hero-content p { font-size: 18px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .drama-grid { grid-template-columns: repeat(3, 1fr); }
  .features-list { flex-direction: row; flex-wrap: wrap; }
  .feature-item { width: calc(50% - 10px); }
}

@media (min-width: 1024px) {
  .site-header { padding: 15px 10%; }
  section { padding: 80px 10%; }
  .hero-content h1 { font-size: 56px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .drama-grid { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .sec-title { font-size: 32px; }
  .feature-item { width: calc(33.33% - 14px); }
  .feature-icon { width: 50px; height: 50px; font-size: 20px; }
}