:root {
  --brand-red: #e63946;
  --brand-yellow: #ffca3a;
  --warm-white: #fdfbf7;
  --ink-black: #1d1d1d;
  --text-gray: #555;
  --line-color: #e5e0d8;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-stack);
  background-color: var(--warm-white);
  color: var(--ink-black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background-color: var(--brand-red);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: #c1121f;
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
}
.btn-primary:active {
  transform: scale(0.98);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-color);
  z-index: 100;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 900;
  color: var(--brand-red);
}
.brand img {
  height: 32px;
  width: auto;
}
.nav-links {
  display: none;
  gap: 24px;
  font-size: 15px;
  font-weight: 600;
}
.nav-links a:hover {
  color: var(--brand-red);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.menu-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink-black);
}

/* Hero */
.hero {
  padding: 40px 0;
  border-bottom: 1px solid var(--line-color);
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.hero-text h1 {
  font-size: 40px;
  margin-bottom: 16px;
  color: var(--ink-black);
}
.hero-text h1 span {
  color: var(--brand-red);
}
.hero-text p {
  font-size: 16px;
  color: var(--text-gray);
  margin-bottom: 24px;
}
.hero-covers {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
}
.hero-covers::-webkit-scrollbar {
  display: none;
}
.cover-item {
  flex: 0 0 140px;
  scroll-snap-align: start;
  position: relative;
}
.cover-item img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.cover-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  background-color: var(--brand-red);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 2px;
  transform: rotate(-5deg);
}
.cover-main {
  flex: 0 0 200px;
}
.cover-main img {
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.2);
}
.cover-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background-color: var(--brand-yellow);
  color: var(--ink-black);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
}

/* Section Common */
section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line-color);
}
.sec-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--ink-black);
  padding-bottom: 8px;
}
.sec-title {
  font-size: 28px;
  color: var(--ink-black);
}
.sec-subtitle {
  color: var(--brand-red);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
}

/* Editor's Pick */
.editor-pick {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.editor-img {
  flex: 0 0 160px;
  position: relative;
}
.editor-img img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 4px;
}
.editor-info h3 {
  font-size: 24px;
  margin-bottom: 8px;
}
.editor-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.editor-tags span {
  font-size: 12px;
  background-color: #f0f0f0;
  padding: 4px 8px;
  border-radius: 2px;
  font-weight: 600;
}
.editor-desc {
  font-size: 15px;
  color: var(--text-gray);
  border-left: 4px solid var(--brand-red);
  padding-left: 16px;
  margin-top: 16px;
}

/* Trending Grid */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.trend-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.trend-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}
.trend-info {
  padding: 12px;
}
.trend-rank {
  font-size: 20px;
  font-weight: 900;
  color: var(--brand-red);
  display: block;
  margin-bottom: 4px;
}
.trend-info h4 {
  font-size: 16px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trend-info p {
  font-size: 12px;
  color: var(--text-gray);
}

/* Genre Filter */
.filter-nav {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
}
.filter-nav::-webkit-scrollbar {
  display: none;
}
.filter-item {
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-gray);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.filter-item.active {
  color: var(--brand-red);
  border-bottom-color: var(--brand-red);
}
.genre-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.genre-grid img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 4px;
}

/* New Releases */
.list-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-color);
}
.list-item img {
  width: 60px;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 2px;
}
.list-content h4 {
  font-size: 16px;
  margin-bottom: 4px;
}
.list-content p {
  font-size: 14px;
  color: var(--text-gray);
}
.list-status {
  font-size: 12px;
  color: var(--brand-red);
  font-weight: 700;
  margin-top: 4px;
  display: inline-block;
}

/* Weekly Rank */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rank-top-item {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  padding: 16px;
  border-radius: 4px;
}
.rank-num {
  font-size: 36px;
  font-weight: 900;
  color: var(--brand-red);
  line-height: 1;
  min-width: 40px;
}
.rank-top-item img {
  width: 60px;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 2px;
}
.rank-info h4 {
  font-size: 18px;
  margin-bottom: 4px;
}
.rank-info p {
  font-size: 14px;
  color: var(--text-gray);
}

/* Plot Index */
.plot-index {
  background: #fff;
  padding: 24px;
  border-radius: 4px;
}
.index-track {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 24px;
}
.index-track::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--line-color);
  z-index: 1;
}
.index-node {
  position: relative;
  z-index: 2;
  text-align: center;
  cursor: pointer;
}
.node-dot {
  width: 20px;
  height: 20px;
  background-color: var(--line-color);
  border-radius: 50%;
  margin: 0 auto 8px;
  transition: all 0.3s;
}
.index-node.active .node-dot {
  background-color: var(--brand-red);
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.2);
}
.node-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-gray);
}
.index-node.active .node-label {
  color: var(--brand-red);
}
.index-content {
  font-size: 15px;
  color: var(--text-gray);
  min-height: 60px;
}

/* Mood Selection */
.mood-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.mood-card {
  display: flex;
  gap: 16px;
  background: #fff;
  padding: 16px;
  border-radius: 4px;
}
.mood-card img {
  width: 80px;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 4px;
}
.mood-content h4 {
  font-size: 18px;
  color: var(--brand-red);
  margin-bottom: 8px;
}
.mood-content p {
  font-size: 14px;
  color: var(--text-gray);
}

/* App Features */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.feature-item h4 {
  font-size: 18px;
  margin-bottom: 8px;
}
.feature-item p {
  font-size: 14px;
  color: var(--text-gray);
}
.feature-bar {
  height: 4px;
  background-color: #eee;
  border-radius: 2px;
  margin-top: 12px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background-color: var(--brand-red);
  width: 80%;
}

/* Reviews */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-item {
  border-left: 2px solid var(--brand-red);
  padding-left: 16px;
}
.review-user {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-black);
  margin-bottom: 4px;
}
.review-text {
  font-size: 15px;
  color: var(--text-gray);
}
.review-drama {
  font-size: 12px;
  color: var(--brand-red);
  margin-top: 4px;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border-bottom: 1px solid var(--line-color);
  padding-bottom: 12px;
}
.faq-q {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}
.faq-a {
  font-size: 14px;
  color: var(--text-gray);
  margin-top: 8px;
  display: none;
}
.faq-item.open .faq-a {
  display: block;
}

/* Download Section */
.download-section {
  background-color: var(--brand-red);
  color: #fff;
  text-align: center;
  padding: 64px 0;
  border-bottom: none;
}
.download-section h2 {
  font-size: 32px;
  margin-bottom: 16px;
}
.download-section p {
  font-size: 16px;
  margin-bottom: 32px;
  opacity: 0.9;
}
.dl-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}
.dl-buttons .btn {
  background-color: #fff;
  color: var(--brand-red);
  font-size: 18px;
  padding: 16px 32px;
}
.dl-buttons .btn:hover {
  background-color: var(--warm-white);
}

/* Footer */
.site-footer {
  background-color: var(--ink-black);
  color: #999;
  padding: 48px 0 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
}
.footer-bottom p {
  margin-bottom: 8px;
}

/* Responsive */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .hero-covers {
    justify-content: flex-end;
    overflow: visible;
  }
  .cover-item {
    flex: 0 0 120px;
  }
  .cover-main {
    flex: 0 0 180px;
  }
  .editor-pick {
    flex-direction: row;
    align-items: flex-start;
  }
  .trending-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .genre-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .mood-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dl-buttons {
    flex-direction: row;
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .hero-text h1 {
    font-size: 56px;
  }
  .sec-title {
    font-size: 36px;
  }
  .trending-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}