:root {
  --bg-main: #fcf9f2;
  --text-main: #222222;
  --text-sub: #666666;
  --yellow: #ffcc00;
  --yellow-dark: #e6b800;
  --purple: #6b46c1;
  --purple-light: #f3e8ff;
  --pink: #db2777;
  --pink-light: #fce7f3;
  --blue: #2563eb;
  --blue-light: #dbeafe;
  --green: #059669;
  --green-light: #d1fae5;
  --gray-bg: #f3f4f6;
  --border-radius: 12px;
  --shadow: 0 4px 12px rgba(0,0,0,0.05);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  padding-bottom: 60px;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
  color: #222;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(255, 204, 0, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 204, 0, 0.6);
}

/* Header */
header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-group img {
  height: 32px;
  width: 32px;
  border-radius: 8px;
  object-fit: cover;
}
.logo-group span {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-main);
}
.nav-menu {
  display: none; /* Mobile first */
}
.nav-menu a {
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-sub);
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
  border-radius: 6px;
}
.nav-menu a:hover {
  color: var(--yellow-dark);
  background: var(--bg-main);
}
.mobile-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-main);
  padding: 8px;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  padding: 10px 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.mobile-menu.active {
  display: flex;
}
.mobile-menu a {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  color: var(--text-main);
  font-weight: 500;
}
.mobile-menu a:last-child {
  border-bottom: none;
}

/* Hero */
.hero {
  padding: 40px 0;
  background: linear-gradient(180deg, #fff9e6 0%, var(--bg-main) 100%);
}
.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.hero-text h1 {
  font-size: 28px;
  line-height: 1.4;
  margin-bottom: 16px;
  color: var(--text-main);
}
.hero-text p {
  font-size: 16px;
  color: var(--text-sub);
  margin-bottom: 24px;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-btns a {
  flex: 1;
  min-width: 120px;
  text-align: center;
  font-size: 14px;
  padding: 12px;
  border-radius: 24px;
}
.hero-img-area {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  position: relative;
}
.hero-img-area img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
  transition: transform 0.3s;
}
.hero-img-area img:hover {
  transform: scale(1.02);
}
@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-wrap {
  overflow: hidden;
  white-space: nowrap;
  background: #333;
  padding: 10px 0;
  margin-top: 30px;
  border-radius: 8px;
}
.marquee-content {
  display: inline-block;
  animation: scrollMarquee 20s linear infinite;
}
.marquee-content span {
  background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  font-size: 15px;
  margin-right: 30px;
}

/* Common Section */
.section {
  padding: 40px 0;
  border-bottom: 1px solid #eee;
}
.section-title {
  font-size: 22px;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--yellow);
  margin: 8px auto 0;
  border-radius: 2px;
}

/* Section specific backgrounds */
#classic { background-color: #fff; }
#night { background-color: #1a1a2e; color: #fff; }
#night .section-title { color: #fff; }
#night .section-title::after { background: #e94560; }
#original { background-color: #f0fdf4; }
#full-ep { background-color: #fef2f2; }
#ai-theater { background-color: #f5f3ff; }
#reviews { background-color: #fff; }
#minor-protect { background-color: #eff6ff; }
#feedback { background-color: #fdf4ff; }
#download-zone { background-color: #f8fafc; text-align: center; padding: 50px 0; }

/* Classic theater */
#classic .grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.card-classic {
  background: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #f0f0f0;
}
.card-classic img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.card-classic-info {
  padding: 16px;
}
.card-classic-info h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.card-classic-info p {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 8px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.tags span {
  background: var(--bg-main);
  color: var(--text-sub);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
}
.date {
  font-size: 12px;
  color: #999;
}

/* Night theater */
#night .grid-night {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.card-night {
  background: rgba(255,255,255,0.05);
  border-radius: var(--border-radius);
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  gap: 16px;
}
.card-night img {
  width: 80px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 8px;
}
.card-night-info h3 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 6px;
}
.card-night-info p {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 8px;
}
.card-night-info .tags span {
  background: rgba(255,255,255,0.1);
  color: #ccc;
}

/* Original */
#original .layout-split {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.left-img {
  width: 100%;
}
.left-img img {
  border-radius: var(--border-radius);
  aspect-ratio: 3/4;
  object-fit: cover;
}
.right-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.list-item {
  background: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  border-left: 4px solid var(--green);
}
.list-item span {
  font-weight: 500;
  font-size: 14px;
}
.list-item small {
  color: var(--text-sub);
  font-size: 12px;
}

/* Full EP */
#full-ep .ep-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.ep-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.ep-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.ep-card-info {
  padding: 12px;
}
.ep-card-info h3 {
  font-size: 14px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ep-card-info p {
  font-size: 12px;
  color: var(--text-sub);
}

/* AI theater */
#ai-theater .ai-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 20px;
  border-left: 2px solid var(--purple-light);
  margin-left: 10px;
}
.ai-item {
  position: relative;
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.ai-item::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 20px;
  width: 12px;
  height: 12px;
  background: var(--purple);
  border-radius: 50%;
  border: 2px solid #fff;
}
.ai-time {
  font-weight: bold;
  color: var(--purple);
  font-size: 14px;
  margin-bottom: 8px;
}
.ai-desc {
  font-size: 13px;
  color: var(--text-sub);
}

/* Reviews */
.review-wall {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.review-card {
  background: var(--gray-bg);
  padding: 16px;
  border-radius: var(--border-radius);
  display: flex;
  gap: 12px;
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.review-content h4 {
  font-size: 14px;
  margin-bottom: 4px;
}
.review-content p {
  font-size: 13px;
  color: var(--text-sub);
}

/* Minor protect */
.protect-box {
  background: #fff;
  padding: 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}
.protect-box h3 {
  font-size: 18px;
  color: var(--blue);
  margin-bottom: 12px;
}
.protect-box p {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 10px;
}

/* Feedback */
.feedback-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.faq-item {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.faq-q {
  font-weight: bold;
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 8px;
}
.faq-a {
  font-size: 13px;
  color: var(--text-sub);
}

/* Download zone */
.download-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.step {
  background: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--yellow);
}
.download-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Floating Download */
.floating-download {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 8px 16px;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 999;
  border: 1px solid var(--yellow);
}
.floating-download img {
  height: 28px;
  width: 28px;
  border-radius: 6px;
}
.floating-download a {
  font-size: 14px;
  font-weight: bold;
  color: var(--text-main);
  background: var(--yellow);
  padding: 6px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Footer */
footer {
  background: #222;
  color: #888;
  padding: 30px 0;
  font-size: 12px;
  text-align: center;
}
.footer-links {
  margin-bottom: 12px;
}
.footer-links a {
  color: #aaa;
  margin: 0 8px;
}
.footer-links a:hover {
  color: #fff;
}
.footer-copy {
  margin-bottom: 8px;
}
.footer-copy a {
  color: #888;
}
.time-stamp {
  font-size: 11px;
  color: #666;
  margin-top: 8px;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  width: 90%;
  max-width: 320px;
  text-align: center;
}
.modal-box p {
  font-size: 14px;
  margin-bottom: 16px;
  color: var(--text-main);
}
.modal-box input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  text-align: center;
  color: var(--text-sub);
}
.modal-box button {
  background: var(--yellow);
  color: #222;
  border: none;
  padding: 10px 24px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
}

/* Media Queries */
@media (min-width: 768px) {
  .nav-menu { display: flex; gap: 4px; }
  .mobile-toggle { display: none; }
  .mobile-menu { display: none !important; }
  
  .hero-grid {
    flex-direction: row;
    align-items: center;
  }
  .hero-text { flex: 1; }
  .hero-img-area { flex: 1; }
  .hero-text h1 { font-size: 36px; }
  
  #classic .grid-3 { grid-template-columns: repeat(2, 1fr); }
  #night .grid-night { grid-template-columns: repeat(2, 1fr); }
  #original .layout-split { flex-direction: row; }
  .left-img { width: 40%; }
  #full-ep .ep-grid { grid-template-columns: repeat(3, 1fr); }
  .review-wall { grid-template-columns: repeat(2, 1fr); }
  .feedback-grid { grid-template-columns: repeat(2, 1fr); }
  .download-steps { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .step { flex: 1; min-width: 200px; }
}

@media (min-width: 1024px) {
  .hero-text h1 { font-size: 42px; }
  .hero-text p { font-size: 18px; }
  
  #classic .grid-3 { grid-template-columns: repeat(3, 1fr); }
  #night .grid-night { grid-template-columns: repeat(3, 1fr); }
  #full-ep .ep-grid { grid-template-columns: repeat(4, 1fr); }
  .review-wall { grid-template-columns: repeat(3, 1fr); }
  .feedback-grid { grid-template-columns: repeat(3, 1fr); }
}