:root {
  --primary: #ff5a36;
  --primary-dark: #e04422;
  --bg-dark: #141416;
  --bg-card: #1f1f23;
  --text-main: #f5f5f7;
  --text-muted: #a0a0a8;
  --border: #2c2c32;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; object-fit: cover; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(20, 20, 22, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: bold;
}
.brand img {
  height: 32px;
  width: 32px;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 4px;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

/* Hero */
.hero {
  padding: 60px 20px;
  text-align: center;
  background: radial-gradient(circle at center, #2a1a18 0%, var(--bg-dark) 70%);
  position: relative;
  overflow: hidden;
}
.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--primary); }
.hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 30px;
  min-height: 24px;
}
.download-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  border: none;
}
.btn:active { transform: scale(0.96); }
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary {
  background: #333;
  color: #fff;
  border: 1px solid #444;
}
.btn-secondary:hover { background: #444; }

/* Hero Carousel Visual */
.hero-visual {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 16px;
  overflow-x: auto;
  padding: 10px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.hero-visual::-webkit-scrollbar { display: none; }
.hero-card {
  flex: 0 0 140px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 9/16;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
.hero-card img { width: 100%; height: 100%; }
.hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 50%);
}

/* Main Content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
section { padding: 60px 0; border-bottom: 1px solid var(--border); }
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 26px;
  margin-bottom: 10px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Drama Recommendation */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.drama-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.drama-cover {
  position: relative;
  aspect-ratio: 3/4;
}
.drama-cover img { width: 100%; height: 100%; }
.tag-free {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: bold;
}
.drama-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.drama-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drama-meta {
  font-size: 12px;
  color: var(--primary);
  margin-bottom: 8px;
}
.drama-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.btn-watch {
  width: 100%;
  padding: 8px;
  background: rgba(255, 90, 54, 0.1);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-watch:hover {
  background: var(--primary);
  color: #fff;
}

/* AI Creation / Features */
.feature-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-img {
  width: 100%;
  aspect-ratio: 16/9;
}
.feature-text {
  padding: 0 20px 20px;
}
.feature-text h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--primary);
}
.feature-text p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Comments */
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.comment-item {
  display: flex;
  gap: 12px;
  background: var(--bg-card);
  padding: 16px;
  border-radius: var(--radius);
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #333;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.comment-content { flex: 1; }
.comment-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.comment-name { font-weight: bold; font-size: 14px; }
.comment-stars { color: #ffb800; font-size: 12px; }
.comment-text {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 8px;
}
.comment-footer {
  font-size: 12px;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
}
.faq-q {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 15px;
}
.faq-a {
  font-size: 14px;
  color: var(--text-muted);
}
.faq-images {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  overflow-x: auto;
}
.faq-images img {
  height: 200px;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Ranking Table */
.table-wrap {
  overflow-x: auto;
}
.rank-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.rank-table th, .rank-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.rank-table th { color: var(--text-muted); font-weight: normal; }
.rank-badge {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  background: #333;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}
.rank-badge.top { background: var(--primary); }
.rank-title { font-weight: bold; }
.rank-tag { font-size: 12px; color: var(--primary); }

/* Footer */
.site-footer {
  padding: 40px 20px;
  text-align: center;
  color: #666;
  font-size: 12px;
  border-top: 1px solid var(--border);
}
.site-footer p { margin-bottom: 8px; }
.site-footer a { color: #888; }
.site-footer a:hover { color: var(--primary); }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius);
  width: 90%;
  max-width: 400px;
  text-align: center;
}
.modal-box p { margin-bottom: 16px; font-size: 14px; }
.modal-input {
  width: 100%;
  padding: 10px;
  background: #333;
  border: 1px solid #444;
  color: #fff;
  border-radius: 6px;
  margin-bottom: 16px;
  text-align: center;
}
.modal-close {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 24px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

/* Media Queries */
@media (min-width: 768px) {
  .nav-links { overflow-x: visible; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .feature-block { flex-direction: row; align-items: center; }
  .feature-img { width: 50%; aspect-ratio: 4/3; }
  .feature-text { padding: 24px; }
  .feature-block:nth-child(even) { flex-direction: row-reverse; }
  .hero h1 { font-size: 48px; }
  .hero-card { flex: 0 0 180px; }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .comment-list { display: grid; grid-template-columns: 1fr 1fr; }
}