:root {
  --brand-coral: #FF5A5F;
  --brand-peach: #FF9A62;
  --brand-mango: #FFD166;
  --brand-lemon: #F9F871;
  --brand-mint: #06D6A0;
  --bg-dark: #2B1935;
  --bg-light: #FFF5EE;
  --text-dark: #2B1935;
  --text-light: #FFFFFF;
  --text-muted: #A094A8;
  --card-bg-dark: #3B2548;
  --card-bg-light: #FFFFFF;
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shadow-jelly: 0 12px 24px rgba(255, 90, 95, 0.3), inset 0 2px 6px rgba(255,255,255,0.4);
  --font-main: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

img { max-width: 100%; display: block; object-fit: cover; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* Typography */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; }
h1 { font-size: 2.5rem; color: var(--text-light); }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header-capsule {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  background: rgba(43, 25, 53, 0.7);
  backdrop-filter: blur(12px);
  border-radius: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  z-index: 1000;
  transition: all 0.4s var(--transition-bounce);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.header-capsule.scrolled { width: 80%; max-width: 800px; padding: 8px 20px; background: rgba(43, 25, 53, 0.9); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 32px; width: auto; border-radius: 8px; }
.brand span { color: var(--text-light); font-weight: 800; font-size: 1.2rem; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--text-light); font-weight: 600; font-size: 0.9rem; opacity: 0.8; transition: opacity 0.3s; }
.nav-links a:hover { opacity: 1; color: var(--brand-mango); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-coral), var(--brand-peach));
  color: var(--text-light);
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(255, 90, 95, 0.4);
  transition: transform 0.3s var(--transition-bounce);
  display: inline-block;
}
.btn-primary:hover { transform: scale(1.05) translateY(-2px); }

/* Section Common */
section {
  padding: 80px 0;
  position: relative;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.section-header .bar {
  width: 6px;
  height: 24px;
  background: var(--brand-coral);
  border-radius: 4px;
}
.section-header h2 { color: var(--text-light); }
.section-header .tag {
  background: rgba(255, 209, 102, 0.2);
  color: var(--brand-mango);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}
.section-num {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 6rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  z-index: 0;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, #4A235A 0%, var(--bg-dark) 70%);
  overflow: hidden;
  padding-top: 100px;
}
.sugar-particles {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  background-image: radial-gradient(var(--brand-mango) 1px, transparent 1px), radial-gradient(var(--brand-coral) 1px, transparent 1px);
  background-size: 50px 50px, 80px 80px;
  background-position: 0 0, 25px 25px;
  opacity: 0.1;
  animation: drift 20s linear infinite;
}
@keyframes drift { from { background-position: 0 0, 25px 25px; } to { background-position: 50px 50px, 75px 75px; } }

.hero h1 { font-size: 3.5rem; margin-bottom: 20px; text-shadow: 0 4px 20px rgba(255, 90, 95, 0.4); }
.hero h1 span { color: var(--brand-mango); }
.hero p { color: var(--text-light); font-size: 1.2rem; margin-bottom: 40px; opacity: 0.9; max-width: 600px; }
.hero-btns { display: flex; gap: 20px; margin-bottom: 60px; }
.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-light);
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 700;
  transition: all 0.3s;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.2); }

.data-capsules { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 60px; z-index: 10;}
.data-capsule {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 12px 24px;
  border-radius: 30px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.data-capsule span { font-size: 0.85rem; opacity: 0.8; }
.data-capsule strong { color: var(--brand-mango); font-size: 1.1rem; }

.hero-main-card {
  display: flex;
  background: var(--card-bg-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 90%;
  max-width: 800px;
  text-align: left;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.05);
  z-index: 10;
  margin-bottom: 40px;
}
.hero-main-card img { width: 40%; height: auto; }
.hero-main-info { padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.hero-main-info h3 { color: var(--text-light); font-size: 1.8rem; margin-bottom: 10px; }
.hero-main-info p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rating-badge { display: inline-block; background: var(--brand-coral); color: #fff; padding: 4px 10px; border-radius: 8px; font-weight: bold; margin-bottom: 20px; font-size: 0.9rem;}
.play-btn { align-self: flex-start; background: var(--brand-mango); color: var(--text-dark); padding: 12px 30px; border-radius: 30px; font-weight: 800; transition: transform 0.2s var(--transition-bounce); }
.play-btn:hover { transform: scale(1.05); }

.mini-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  width: 90%;
  max-width: 1200px;
  padding: 20px 0;
  scrollbar-width: none;
}
.mini-track::-webkit-scrollbar { display: none; }
.mini-card { flex: 0 0 140px; border-radius: var(--radius-md); overflow: hidden; position: relative; transition: transform 0.3s; cursor: pointer;}
.mini-card:hover { transform: translateY(-6px); }
.mini-card img { width: 100%; height: 200px; border-radius: var(--radius-md); }
.mini-card h4 { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); color: #fff; padding: 20px 10px 10px; font-size: 0.9rem; text-align: center; }

/* Hot Theater */
.theater { background: var(--bg-light); color: var(--text-dark); }
.theater .section-header h2 { color: var(--text-dark); }
.genre-row { display: flex; gap: 30px; margin-bottom: 40px; align-items: stretch; }
.genre-card {
  flex: 0 0 240px;
  background: linear-gradient(135deg, var(--brand-coral), var(--brand-peach));
  border-radius: var(--radius-lg);
  padding: 30px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-jelly);
  position: relative;
  overflow: hidden;
}
.genre-card::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%); transform: rotate(30deg); pointer-events: none;}
.genre-card h3 { font-size: 2rem; margin-bottom: 10px; }
.genre-card p { font-size: 0.9rem; opacity: 0.9; margin-bottom: 20px; }
.genre-card .count { background: rgba(0,0,0,0.2); display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; width: max-content;}

.scroll-track { display: flex; gap: 20px; overflow-x: auto; flex: 1; padding-bottom: 20px; scrollbar-width: thin; scrollbar-color: var(--brand-coral) transparent; }
.scroll-track::-webkit-scrollbar { height: 6px; }
.scroll-track::-webkit-scrollbar-thumb { background: var(--brand-coral); border-radius: 10px; }
.vertical-card {
  flex: 0 0 160px; background: var(--card-bg-light); border-radius: var(--radius-md);
  box-shadow: 0 8px 16px rgba(0,0,0,0.05); overflow: hidden; transition: transform 0.3s var(--transition-bounce);
}
.vertical-card:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(0,0,0,0.1); }
.vertical-card img { width: 100%; height: 220px; border-radius: var(--radius-md) var(--radius-md) 0 0; object-fit: cover; }
.vertical-card .info { padding: 12px; }
.vertical-card h4 { font-size: 1rem; color: var(--text-dark); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vertical-card p { font-size: 0.8rem; color: var(--text-muted); }

/* Library */
.library { background: var(--bg-dark); color: var(--text-light); }
.filter-bar { display: flex; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.filter-chip { background: rgba(255,255,255,0.1); padding: 8px 20px; border-radius: 20px; font-size: 0.9rem; color: var(--text-light); cursor: pointer; transition: all 0.3s; border: 1px solid transparent; }
.filter-chip.active, .filter-chip:hover { background: var(--brand-coral); border-color: var(--brand-coral); box-shadow: 0 4px 10px rgba(255,90,95,0.3); }
.mixed-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }
.mixed-card { background: var(--card-bg-dark); border-radius: var(--radius-md); overflow: hidden; position: relative; transition: transform 0.3s var(--transition-bounce); border: 1px solid rgba(255,255,255,0.05);}
.mixed-card:hover { transform: scale(1.02); }
.mixed-card.large { grid-column: 1 / 2; grid-row: 1 / 3; display: flex; flex-direction: column; }
.mixed-card.large img { width: 100%; height: 60%; object-fit: cover; }
.mixed-card.large .info { padding: 20px; }
.mixed-card.large h3 { color: var(--text-light); margin-bottom: 10px; font-size: 1.5rem;}
.mixed-card.large p { color: var(--text-muted); font-size: 0.9rem; }
.mixed-card.small img { width: 100%; height: 150px; }
.mixed-card.small .info { padding: 12px 16px; }
.mixed-card.small h4 { color: var(--text-light); font-size: 1rem; margin-bottom: 4px;}
.mixed-card.small p { color: var(--text-muted); font-size: 0.8rem; }
.load-more { text-align: center; margin-top: 40px; }
.load-more button { background: transparent; border: 1px solid var(--brand-mango); color: var(--brand-mango); padding: 12px 40px; border-radius: 30px; font-size: 1rem; transition: all 0.3s; }
.load-more button:hover { background: var(--brand-mango); color: var(--text-dark); }

/* Rankings */
.rankings { background: var(--bg-light); color: var(--text-dark); }
.rankings .section-header h2 { color: var(--text-dark); }
.ranking-grid { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; gap: 24px; }
.rank-col { background: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.rank-col h3 { font-size: 1.2rem; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; color: var(--text-dark); border-bottom: 2px solid #f0f0f0; padding-bottom: 12px;}
.rank-col h3 span { background: var(--brand-coral); color: #fff; padding: 2px 8px; border-radius: 8px; font-size: 0.8rem; }

.king-card { text-align: center; }
.king-card img { width: 80%; margin: 0 auto 16px; border-radius: var(--radius-md); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.king-card h4 { font-size: 1.4rem; margin-bottom: 8px; color: var(--text-dark); }
.king-card .heat-bar { width: 100%; height: 8px; background: #f0f0f0; border-radius: 4px; margin-top: 16px; overflow: hidden; }
.king-card .heat-bar div { width: 95%; height: 100%; background: linear-gradient(90deg, var(--brand-coral), var(--brand-mango)); border-radius: 4px; }

.top-list { display: flex; flex-direction: column; gap: 12px; }
.top-item { display: flex; align-items: center; gap: 12px; }
.top-item .number { font-size: 1.2rem; font-weight: 900; color: var(--text-muted); width: 20px; font-style: italic;}
.top-item:nth-child(1) .number { color: var(--brand-coral); }
.top-item:nth-child(2) .number { color: var(--brand-peach); }
.top-item:nth-child(3) .number { color: var(--brand-mango); }
.top-item img { width: 40px; height: 55px; border-radius: 8px; object-fit: cover; }
.top-item-info { flex: 1; overflow: hidden; }
.top-item-info h4 { font-size: 0.95rem; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-item-info p { font-size: 0.75rem; color: var(--text-muted); }
.trend-up { color: var(--brand-coral); font-size: 0.8rem; font-weight: bold; }
.trend-new { color: var(--brand-mint); font-size: 0.8rem; font-weight: bold; background: rgba(6, 214, 160, 0.1); padding: 2px 6px; border-radius: 4px;}

/* Comments */
.comments-wall { background: var(--bg-dark); color: var(--text-light); }
.big-numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 50px; text-align: center; }
.big-num .count { font-size: 3rem; font-weight: 900; color: var(--brand-mango); line-height: 1; display: block; text-shadow: 0 4px 20px rgba(255, 209, 102, 0.3);}
.big-num p { font-size: 0.9rem; color: var(--text-muted); margin-top: 8px; }

.masonry { column-count: 3; column-gap: 20px; margin-bottom: 40px; }
.comment-card {
  break-inside: avoid;
  background: var(--card-bg-dark);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: jellyPulse 4s infinite alternate;
}
@keyframes jellyPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 209, 102, 0); }
  100% { transform: scale(1.02); box-shadow: 0 10px 20px rgba(255, 90, 95, 0.1); }
}
.comment-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.comment-header img { width: 36px; height: 36px; border-radius: 50%; background: #fff; padding: 4px; }
.comment-header h4 { font-size: 0.9rem; color: var(--text-light); }
.comment-card p { font-size: 0.9rem; color: rgba(255,255,255,0.8); line-height: 1.5; }
.comment-card .drama-tag { font-size: 0.75rem; color: var(--brand-peach); margin-top: 12px; display: inline-block; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.tag-cloud span { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 8px 16px; border-radius: 20px; font-size: 0.85rem; color: var(--text-muted); cursor: pointer; transition: all 0.3s;}
.tag-cloud span:hover { color: var(--brand-mango); border-color: var(--brand-mango); }

/* Calendar */
.calendar-section { background: var(--bg-light); color: var(--text-dark); }
.calendar-section .section-header h2 { color: var(--text-dark); }
.calendar-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.day-cell {
  background: #fff; border-radius: var(--radius-sm); padding: 12px; text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03); border: 1px solid #f0f0f0;
}
.day-cell.active { background: var(--brand-coral); color: #fff; border-color: var(--brand-coral); box-shadow: 0 8px 16px rgba(255,90,95,0.3);}
.day-cell .date { font-size: 0.8rem; font-weight: bold; margin-bottom: 8px; opacity: 0.8; }
.day-cell .drama-name { font-size: 0.75rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 4px;}
.day-cell .ep { font-size: 0.7rem; opacity: 0.6; }

.timeline { position: relative; padding-left: 20px; border-left: 2px solid #eee; }
.timeline-item { position: relative; margin-bottom: 30px; padding-left: 20px; }
.timeline-item::before { content: ''; position: absolute; left: -26px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-coral); border: 3px solid var(--bg-light); }
.timeline-item .time { font-size: 1.1rem; font-weight: bold; color: var(--brand-coral); margin-bottom: 4px; }
.timeline-item h4 { font-size: 1.1rem; color: var(--text-dark); margin-bottom: 4px;}
.timeline-item p { font-size: 0.9rem; color: var(--text-muted); }
.btn-remind { display: block; width: 100%; margin-top: 20px; background: var(--brand-mango); color: var(--text-dark); padding: 16px; border-radius: var(--radius-md); font-size: 1.1rem; font-weight: 800; text-align: center; box-shadow: 0 8px 20px rgba(255, 209, 102, 0.4); transition: transform 0.3s var(--transition-bounce);}
.btn-remind:hover { transform: scale(1.02); }

/* Footer & FAQ */
.footer-section { background: #1A0F22; color: var(--text-muted); padding: 60px 0 30px; border-top: 1px solid rgba(255,255,255,0.05); }
.faq-area { margin-bottom: 60px; }
.accordion { border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 10px; }
.accordion-header { width: 100%; text-align: left; padding: 20px 0; font-size: 1.1rem; font-weight: bold; color: var(--text-light); display: flex; justify-content: space-between; align-items: center; }
.accordion-header::after { content: '+'; font-size: 1.5rem; color: var(--brand-mango); transition: transform 0.3s; }
.accordion.active .accordion-header::after { transform: rotate(45deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.accordion-content p { padding-bottom: 20px; font-size: 0.95rem; color: var(--text-muted); }

.download-area { display: flex; justify-content: center; gap: 20px; margin-bottom: 60px; }
.btn-download { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); padding: 12px 30px; border-radius: 30px; color: var(--text-light); font-weight: bold; transition: all 0.3s;}
.btn-download:hover { background: var(--brand-coral); border-color: var(--brand-coral); }
.btn-download span { font-size: 0.8rem; font-weight: normal; display: block; opacity: 0.7; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--text-light); font-size: 1.1rem; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { font-size: 0.9rem; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--brand-coral); }
.footer-brand p { font-size: 0.9rem; margin-top: 10px; max-width: 250px; }

.copyright-bar { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; text-align: center; font-size: 0.8rem; }
.copyright-bar a { color: var(--text-muted); }
.copyright-bar a:hover { color: var(--brand-mango); }
.update-time { font-size: 0.75rem; opacity: 0.6; }

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.8rem; }
  .mixed-grid { grid-template-columns: 1fr 1fr 1fr; }
  .mixed-card.large { grid-column: 1 / -1; }
  .rankings .ranking-grid { grid-template-columns: 1fr 1fr; }
  .rankings .rank-col:first-child { grid-column: 1 / -1; display: flex; gap: 20px; align-items: center; }
  .rankings .king-card img { width: 150px; margin: 0; }
  .calendar-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-capsule { width: 95%; padding: 10px 16px; }
  .nav-links { display: none; }
  .hero h1 { font-size: 2.2rem; }
  .hero-main-card { flex-direction: column; }
  .hero-main-card img { width: 100%; height: 200px; }
  .genre-row { flex-direction: column; }
  .genre-card { flex: auto; }
  .mixed-grid { grid-template-columns: 1fr; }
  .rankings .ranking-grid { grid-template-columns: 1fr; }
  .rankings .rank-col:first-child { flex-direction: column; text-align: center; }
  .big-numbers { grid-template-columns: 1fr 1fr; }
  .masonry { column-count: 1; }
  .download-area { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-num { font-size: 4rem; }
}