:root {
  --bg-page: #f4f8fb;
  --bg-card: #ffffff;
  --bg-blue-light: #e8f3fc;
  --bg-blue-ice: #d0e7f9;
  --text-main: #152a42;
  --text-sub: #4a617a;
  --accent-coral: #ff7a59;
  --accent-yellow: #ffce33;
  --accent-blue: #2f80ed;
  --border-light: #d0e0ed;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Courier New", Courier, monospace;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(21, 42, 66, 0.05);
  --shadow-md: 0 8px 24px rgba(21, 42, 66, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

/* Grid Background */
.bg-grid {
  background-size: 20px 20px;
  background-image: 
    linear-gradient(to right, rgba(208, 224, 237, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(208, 224, 237, 0.4) 1px, transparent 1px);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  height: 64px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.brand img {
  height: 32px;
  width: auto;
}

.clapper-icon {
  width: 24px;
  height: 24px;
  background: var(--text-main);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.clapper-icon::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    #fff,
    #fff 4px,
    var(--text-main) 4px,
    var(--text-main) 8px
  );
}

.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-sub);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent-blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--accent-blue);
  color: #fff;
}

.btn-primary:hover {
  background: #1a66cc;
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--text-main);
}

.btn-outline:hover {
  background: var(--bg-blue-light);
}

.header-btn {
  display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: block;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  position: absolute;
  transition: all 0.3s;
}

.menu-toggle span:nth-child(1) { top: 6px; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { top: 16px; }

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg); top: 11px; }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg); top: 11px; }

.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 16px;
  color: var(--text-main);
  font-weight: 500;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

/* Hero */
.hero {
  padding: 100px 0 40px;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-light);
}

.hero-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-text {
  flex: 1;
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-coral);
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-meta::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent-coral);
  border-radius: 50%;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--text-main);
}

.hero-desc {
  font-size: 16px;
  color: var(--text-sub);
  margin-bottom: 24px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.hero-card-main {
  width: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}

.hero-card-main img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-card-side {
  width: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 40px;
  margin-left: -20px;
  z-index: 1;
}

.hero-card-side img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-info-panel {
  background: #fff;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-sub);
}

.hero-tag {
  display: inline-block;
  background: var(--accent-yellow);
  color: var(--text-main);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  margin-right: 4px;
}

/* Scene Index */
.scene-index {
  background: var(--bg-blue-light);
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}

.index-scroll {
  display: flex;
  overflow-x: auto;
  gap: 24px;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.index-scroll::-webkit-scrollbar {
  display: none;
}

.index-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.index-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-blue);
  font-weight: 700;
}

.index-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.index-label::after {
  content: '/';
  margin-left: 24px;
  color: var(--border-light);
}

.index-item:last-child .index-label::after {
  content: '';
}

/* Sections Base */
section {
  padding: 60px 0;
}

.section-header {
  margin-bottom: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.section-title-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scene-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sub);
  text-transform: uppercase;
}

.section-title {
  font-size: 24px;
  color: var(--text-main);
}

/* Hooks */
.hooks-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hook-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.hook-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
}

.hook-content {
  padding: 20px;
}

.hook-tag {
  font-size: 12px;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.hook-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hook-desc {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 16px;
}

/* Ongoing */
.ongoing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.drama-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: transform 0.2s;
}

.drama-card:hover {
  transform: translateY(-4px);
}

.drama-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.drama-info {
  padding: 12px;
}

.drama-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drama-meta {
  font-size: 12px;
  color: var(--text-sub);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.update-badge {
  color: var(--accent-coral);
  font-size: 10px;
}

/* Categories */
.genre-filters {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: none;
}

.genre-filters::-webkit-scrollbar { display: none; }

.filter-btn {
  white-space: nowrap;
  padding: 6px 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-sub);
  cursor: pointer;
}

.filter-btn.active {
  background: var(--text-main);
  color: #fff;
  border-color: var(--text-main);
}

/* History */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.history-cover {
  width: 60px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
}

.history-info {
  flex: 1;
}

.history-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.history-progress-bar {
  width: 100%;
  height: 4px;
  background: var(--bg-blue-light);
  border-radius: 2px;
  margin: 8px 0;
  overflow: hidden;
}

.history-progress-fill {
  height: 100%;
  background: var(--accent-blue);
  width: 45%;
}

.history-meta {
  font-size: 12px;
  color: var(--text-sub);
}

/* Playlists */
.playlists-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.playlist-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-light);
}

.playlist-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.playlist-title::before {
  content: 'INDEX';
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--bg-blue-light);
  color: var(--accent-blue);
  padding: 2px 6px;
  border-radius: 4px;
}

.playlist-desc {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.playlist-covers {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.playlist-covers::-webkit-scrollbar { display: none; }

.playlist-cover-img {
  width: 100px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* Ranking */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.rank-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--border-light);
  width: 32px;
  text-align: center;
}

.rank-item:nth-child(1) .rank-num { color: var(--accent-coral); font-size: 32px; }
.rank-item:nth-child(2) .rank-num { color: var(--accent-yellow); font-size: 28px; }
.rank-item:nth-child(3) .rank-num { color: var(--accent-blue); font-size: 26px; }

.rank-cover {
  width: 48px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
}

.rank-info {
  flex: 1;
}

.rank-title {
  font-size: 16px;
  font-weight: 700;
}

.rank-meta {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 4px;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-light);
}

.timeline-item {
  display: flex;
  gap: 24px;
  position: relative;
}

.timeline-date {
  width: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  text-align: right;
  padding-top: 4px;
  flex-shrink: 0;
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--accent-blue);
  border-radius: 50%;
  border: 2px solid #fff;
}

.timeline-content {
  display: flex;
  gap: 16px;
  background: #fff;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  flex: 1;
}

.timeline-cover {
  width: 48px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
}

.timeline-info h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-info p {
  font-size: 12px;
  color: var(--text-sub);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.feature-item {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.feature-timecode {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-coral);
  margin-bottom: 8px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-sub);
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.review-card {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.review-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.avatar {
  width: 32px;
  height: 32px;
  background: var(--bg-blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-blue);
  font-size: 14px;
}

.review-text {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 8px;
}

.review-drama {
  font-size: 12px;
  color: var(--text-sub);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 16px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 20px;
  color: var(--accent-blue);
  transition: transform 0.3s;
}

.faq-question.active::after {
  content: '-';
}

.faq-answer {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding-bottom: 16px;
  font-size: 14px;
  color: var(--text-sub);
}

/* Download */
.download-section {
  background: var(--bg-blue-ice);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  text-align: center;
}

.download-section h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--text-main);
}

.download-desc {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 24px;
}

.download-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 300px;
  margin: 0 auto;
}

.btn-download {
  background: var(--text-main);
  color: #fff;
  padding: 14px 24px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-download:hover {
  background: #0d1f33;
}

/* Footer */
footer {
  padding: 40px 0 20px;
  background: #fff;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-sub);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-brand {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.footer-col h4 {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  margin-bottom: 8px;
  color: var(--text-sub);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--bg-blue-light);
  padding-top: 20px;
}

.footer-bottom p {
  margin-bottom: 8px;
}

.footer-bottom a {
  color: var(--text-sub);
}

/* Desktop Adjustments */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .header-btn { display: inline-flex; }
  .menu-toggle { display: none; }
  
  .hero { padding: 120px 0 60px; }
  .hero-layout {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }
  .hero h1 { font-size: 42px; }
  
  .hooks-layout {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .hook-item {
    flex-direction: row;
    flex: 1 1 calc(50% - 20px);
  }
  .hook-img {
    width: 40%;
    aspect-ratio: auto;
    height: 100%;
  }
  .hook-content { width: 60%; }
  
  .ongoing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .playlists-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .download-btns {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }
  
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }
  .footer-links {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 52px; }
  .hero-card-main { width: 240px; }
  .hero-card-side { width: 160px; }
  
  .ongoing-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .playlists-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}