:root {
  --brand-green: #10b981;
  --brand-green-light: #d1fae5;
  --brand-green-dark: #047857;
  --text-main: #111827;
  --text-gray: #6b7280;
  --bg-gray: #f9fafb;
  --border-color: #eef0f3;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { display: block; max-width: 100%; object-fit: cover; }

/* Header */
.top-bar {
  position: sticky;
  top: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 40px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-area img { height: 32px; border-radius: 6px; }
.logo-text h1 { font-size: 20px; font-weight: 600; line-height: 1.2; }
.logo-text .sub-text { font-size: 12px; color: var(--text-gray); }
.search-box {
  flex: 1;
  max-width: 400px;
  position: relative;
}
.search-box input {
  width: 100%;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-gray);
  padding: 0 16px 0 36px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}
.search-box input:focus {
  background: #fff;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px var(--brand-green-light);
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-gray);
  width: 16px; height: 16px;
}
.actions { display: flex; align-items: center; gap: 12px; }
.btn-download {
  height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--brand-green);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}
.btn-download:hover { background: var(--brand-green-dark); }
.btn-filter {
  height: 36px;
  width: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
}

/* Common Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 40px 24px; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.section-title { font-size: 18px; font-weight: 600; }
.section-link { font-size: 14px; color: var(--brand-green); font-weight: 500; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  min-height: 280px;
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: linear-gradient(135deg, #F0FDF4, #FFF 58%, #FFF7ED);
  overflow: hidden;
}
.hero-left { display: flex; flex-direction: column; justify-content: center; z-index: 2; }
.pill {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--brand-green-light);
  color: var(--brand-green-dark);
  margin-bottom: 16px;
}
.hero-title { font-size: 28px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.hero-desc { font-size: 14px; color: var(--text-gray); margin-bottom: 24px; max-width: 90%; }
.hero-btns { display: flex; gap: 12px; }
.hero-btns .btn-primary {
  height: 40px; padding: 0 24px; border-radius: 10px;
  background: var(--brand-green); color: #fff; font-size: 14px; font-weight: 500;
  display: flex; align-items: center;
}
.hero-btns .btn-secondary {
  height: 40px; padding: 0 24px; border-radius: 10px;
  background: #fff; color: var(--text-main); font-size: 14px; font-weight: 500;
  border: 1px solid var(--border-color);
  display: flex; align-items: center;
}
.hero-right { position: relative; display: flex; align-items: center; justify-content: center; }
.poster-stack {
  position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
}
.poster-card {
  position: absolute; width: 140px; aspect-ratio: 3/4; border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1); overflow: hidden;
  transition: transform 0.3s;
}
.poster-card img { width: 100%; height: 100%; object-fit: cover; }
.poster-card:nth-child(1) { transform: translateX(-50%) rotate(-6deg) scale(0.9); z-index: 1; }
.poster-card:nth-child(2) { transform: translateX(0) translateY(-10px) scale(1); z-index: 2; }
.poster-card:nth-child(3) { transform: translateX(50%) rotate(6deg) scale(0.9); z-index: 1; }

/* Categories (Chips) */
.category-bar {
  display: flex; gap: 8px; overflow-x: auto; flex-wrap: nowrap;
  padding-bottom: 12px; margin-bottom: 24px;
  scrollbar-width: none;
}
.category-bar::-webkit-scrollbar { display: none; }
.chip {
  height: 32px; padding: 0 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border-color);
  font-size: 13px; color: var(--text-main); white-space: nowrap;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.chip.active {
  background: var(--brand-green-light); color: var(--brand-green-dark);
  border-color: var(--brand-green);
}
.chip:hover:not(.active) { background: var(--bg-gray); }

/* Continue Watching */
.scroll-row {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; margin-bottom: 24px;
}
.scroll-row::-webkit-scrollbar { height: 6px; }
.scroll-row::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }
.card-continue {
  flex: 0 0 260px; scroll-snap-align: start;
  background: #fff; border-radius: 14px; padding: 8px;
  border: 1px solid var(--border-color); transition: transform 0.2s;
}
.card-continue:hover { transform: translateY(-2px); }
.thumb-continue {
  width: 100%; aspect-ratio: 16/9; border-radius: 10px; position: relative;
  overflow: hidden; margin-bottom: 8px; background: var(--bg-gray);
}
.thumb-continue img { width: 100%; height: 100%; object-fit: cover; }
.progress-bar {
  position: absolute; bottom: 0; left: 0; height: 3px; background: var(--brand-green); width: 60%;
}
.card-continue .title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-continue .meta { font-size: 12px; color: var(--text-gray); margin-top: 4px; }

/* Grid */
.grid-layout {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px;
  margin-bottom: 40px;
}
.card-grid {
  background: #fff; border-radius: 14px; border: 1px solid var(--border-color);
  padding: 10px; transition: all 0.2s; display: block;
}
.card-grid:hover {
  transform: translateY(-2px); border-color: var(--brand-green-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.cover-grid {
  width: 100%; aspect-ratio: 3/4; border-radius: 10px; position: relative;
  overflow: hidden; margin-bottom: 10px; background: var(--bg-gray);
}
.cover-grid img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 500;
  background: rgba(255,255,255,0.8); backdrop-filter: blur(4px); color: var(--text-main);
}
.badge.ai { background: var(--brand-green-light); color: var(--brand-green-dark); }
.card-grid .title {
  font-size: 14px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; margin-bottom: 4px;
}
.card-grid .meta { font-size: 12px; color: var(--text-gray); }

/* AI Zone */
.ai-zone { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 40px; }
.ai-card {
  border-radius: 16px; padding: 24px; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.ai-card:nth-child(1) { background: linear-gradient(135deg, #F0FDF4, #D1FAE5); }
.ai-card:nth-child(2) { background: linear-gradient(135deg, #FFF7ED, #FFEDD5); }
.ai-card .pill { margin-bottom: 12px; }
.ai-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.ai-card p { font-size: 13px; color: var(--text-gray); margin-bottom: 16px; flex-grow: 1; }
.ai-card .tags { display: flex; gap: 8px; margin-bottom: 16px; font-size: 12px; color: var(--brand-green-dark); }
.ai-card .link { color: var(--brand-green); font-weight: 500; font-size: 14px; display: flex; align-items: center; }

/* Update List */
.list-section { margin-bottom: 40px; }
.list-item {
  display: flex; align-items: center; gap: 14px; padding: 12px;
  border-radius: 12px; border-bottom: 1px solid var(--border-color);
  transition: background 0.2s;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: #F9FAFB; }
.list-thumb {
  width: 56px; height: 76px; border-radius: 8px; overflow: hidden; background: var(--bg-gray); flex-shrink: 0;
}
.list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-info { flex: 1; min-width: 0; }
.list-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-tags { display: flex; gap: 8px; }
.list-tag { font-size: 12px; color: var(--text-gray); background: var(--bg-gray); padding: 2px 6px; border-radius: 4px; }
.list-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.list-meta span { font-size: 12px; color: var(--text-gray); }
.play-btn {
  width: 24px; height: 24px; border-radius: 50%; background: var(--brand-green-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-green-dark); font-size: 10px;
}

/* FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.faq-item {
  background: #fff; border-radius: 14px; border: 1px solid var(--border-color);
  padding: 20px;
}
.faq-q { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.faq-a { font-size: 13px; color: var(--text-gray); line-height: 1.7; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 24px 0; text-align: center; font-size: 12px; color: var(--text-gray);
}
.site-footer a { color: var(--text-gray); }
.site-footer a:hover { text-decoration: underline; }
.footer-content { display: flex; flex-direction: column; gap: 8px; }

/* Responsive */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: 24px; }
  .hero-right { display: none; }
  .ai-zone { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .top-bar { padding: 0 16px; gap: 8px; }
  .logo-text .sub-text { display: none; }
  .search-box { max-width: 200px; }
  .btn-download { padding: 0 12px; font-size: 13px; }
  .btn-filter { display: none; }
  .container { padding: 24px 16px; }
  .hero { padding: 20px; }
  .hero-title { font-size: 22px; }
  .faq-grid { grid-template-columns: 1fr; }
  .grid-layout { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}