:root {
  --bg-dark: #0a0c10;
  --bg-panel: #12161f;
  --bg-card: #181d28;
  --border-color: #262c3a;
  --text-main: #e2e6ee;
  --text-muted: #8b94a6;
  --brand-blue: #7fa4d4;
  --brand-gold: #d4af7f;
  --brand-rose: #c76b7f;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 64px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; object-fit: cover; }
ul { list-style: none; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-sm); }
.section-title-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: var(--spacing-md); border-bottom: 1px solid var(--border-color); padding-bottom: var(--spacing-xs); }
.section-title { font-size: 20px; font-weight: 600; color: var(--text-main); display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; display: block; width: 3px; height: 16px; background: var(--brand-gold); border-radius: 2px; }
.section-more { font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.section-more:hover { color: var(--brand-gold); }

.header { position: fixed; top: 0; width: 100%; z-index: 100; background: rgba(10, 12, 16, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); transition: background 0.3s; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo-area { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; letter-spacing: 1px; color: #fff; }
.logo-area img { height: 32px; width: auto; border-radius: 4px; }
.nav-links { display: flex; gap: var(--spacing-md); font-size: 14px; color: var(--text-muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--brand-blue); }
.header-actions { display: flex; align-items: center; gap: var(--spacing-sm); }
.btn-outline { border: 1px solid var(--border-color); padding: 6px 14px; border-radius: 20px; font-size: 13px; color: var(--text-main); transition: all 0.2s; }
.btn-outline:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.btn-primary { background: var(--brand-blue); color: #000; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; transition: background 0.2s; }
.btn-primary:hover { background: #9bbce6; }

.scroll-progress { position: fixed; top: 64px; left: 0; height: 2px; background: var(--brand-gold); width: 0; z-index: 101; }

.hero { padding-top: 100px; padding-bottom: var(--spacing-xl); background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-panel) 100%); border-bottom: 1px solid var(--border-color); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--spacing-lg); }
.hero-main { display: flex; gap: var(--spacing-md); }
.hero-poster { width: 240px; flex-shrink: 0; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-color); position: relative; }
.hero-poster img { width: 100%; height: 100%; aspect-ratio: 3/4; }
.hero-info { display: flex; flex-direction: column; justify-content: center; }
.hero-info h1 { font-size: 32px; font-weight: 700; margin-bottom: var(--spacing-xs); line-height: 1.2; color: #fff; }
.hero-tags { display: flex; gap: 8px; margin-bottom: var(--spacing-sm); }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 4px; background: rgba(212, 175, 127, 0.15); color: var(--brand-gold); }
.tag.hot { background: rgba(199, 107, 127, 0.15); color: var(--brand-rose); }
.hero-info p { font-size: 14px; color: var(--text-muted); margin-bottom: var(--spacing-sm); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-btns { display: flex; gap: var(--spacing-sm); }
.hero-btns .btn-play { background: var(--brand-gold); color: #000; padding: 10px 24px; border-radius: 24px; font-weight: 600; font-size: 14px; border: none; cursor: pointer; transition: transform 0.2s; text-align: center; }
.hero-btns .btn-play:hover { transform: scale(1.05); }
.hero-btns .btn-collect { background: rgba(255,255,255,0.1); color: #fff; padding: 10px 24px; border-radius: 24px; font-weight: 600; font-size: 14px; border: 1px solid var(--border-color); cursor: pointer; transition: background 0.2s; text-align: center; }
.hero-btns .btn-collect:hover { background: rgba(255,255,255,0.15); }

.hero-side { display: flex; flex-direction: column; gap: var(--spacing-md); }
.player-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: var(--spacing-sm); }
.player-screen { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: var(--radius-md); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.player-screen img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.play-icon { width: 48px; height: 48px; background: rgba(255,255,255,0.2); backdrop-filter: blur(4px); border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 2; cursor: pointer; transition: transform 0.2s; }
.play-icon:hover { transform: scale(1.1); }
.play-icon::after { content: ''; width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 12px solid #fff; margin-left: 4px; }
.player-progress { width: 100%; height: 4px; background: rgba(255,255,255,0.2); margin-top: var(--spacing-sm); border-radius: 2px; overflow: hidden; }
.player-progress-bar { height: 100%; background: var(--brand-gold); width: 30%; transition: width 0.1s linear; }
.episode-thumbs { display: flex; gap: 8px; margin-top: var(--spacing-sm); overflow-x: auto; padding-bottom: 4px; }
.ep-thumb { flex-shrink: 0; width: 60px; height: 80px; background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-muted); cursor: pointer; }
.ep-thumb.active { border-color: var(--brand-gold); color: var(--brand-gold); }
.today-updates { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: var(--spacing-sm); }
.today-updates h3 { font-size: 14px; color: var(--text-main); margin-bottom: var(--spacing-sm); }
.update-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; padding: 6px; border-radius: var(--radius-sm); cursor: pointer; transition: background 0.3s; }
.update-list li.active { background: rgba(212, 175, 127, 0.1); }
.update-list img { width: 32px; height: 48px; border-radius: 4px; }
.update-list .info { flex: 1; }
.update-list .name { color: var(--text-main); }
.update-list .time { color: var(--text-muted); font-size: 12px; }

.new-releases-strip { margin-top: var(--spacing-lg); overflow: hidden; }
.strip-track { display: flex; gap: var(--spacing-md); animation: scroll-x 20s linear infinite; width: max-content; }
.strip-track:hover { animation-play-state: paused; }
.strip-track img { width: 100px; height: 140px; border-radius: var(--radius-sm); border: 1px solid var(--border-color); }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.section-dark { background: var(--bg-dark); padding: var(--spacing-xl) 0; border-bottom: 1px solid var(--border-color); }
.section-panel { background: var(--bg-panel); padding: var(--spacing-xl) 0; border-bottom: 1px solid var(--border-color); }

.ranking-tabs { display: flex; gap: var(--spacing-sm); margin-bottom: var(--spacing-md); }
.tab-btn { background: none; border: none; color: var(--text-muted); font-size: 15px; cursor: pointer; padding-bottom: 6px; border-bottom: 2px solid transparent; transition: all 0.2s; }
.tab-btn.active { color: var(--brand-gold); border-bottom-color: var(--brand-gold); }
.ranking-list { display: grid; gap: 8px; }
.rank-item { display: flex; align-items: center; gap: var(--spacing-sm); padding: 10px var(--spacing-sm); background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.rank-num { width: 24px; font-weight: 700; color: var(--text-muted); text-align: center; }
.rank-item:nth-child(1) .rank-num { color: #ff4d4f; }
.rank-item:nth-child(2) .rank-num { color: #faad14; }
.rank-item:nth-child(3) .rank-num { color: #d4af7f; }
.rank-item img { width: 40px; height: 56px; border-radius: 4px; }
.rank-info { flex: 1; }
.rank-title { font-size: 14px; color: var(--text-main); font-weight: 600; }
.rank-meta { font-size: 12px; color: var(--text-muted); }
.rank-hot { font-size: 13px; color: var(--brand-rose); }

.genre-wall { display: flex; flex-wrap: wrap; gap: var(--spacing-sm); margin-bottom: var(--spacing-md); }
.genre-pill { padding: 10px 20px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 30px; font-size: 14px; cursor: pointer; transition: all 0.2s; }
.genre-pill:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.genre-pill span { font-size: 12px; color: var(--text-muted); margin-left: 4px; }
.genre-samples { display: flex; gap: var(--spacing-sm); overflow-x: auto; padding-bottom: 8px; }

.calendar-area { display: flex; gap: var(--spacing-md); }
.date-tabs { display: flex; gap: 8px; margin-bottom: var(--spacing-sm); }
.date-btn { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-muted); padding: 6px 16px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.date-btn.active { border-color: var(--brand-gold); color: var(--brand-gold); }
.calendar-list { display: grid; gap: 8px; }
.calendar-item { display: flex; align-items: center; gap: var(--spacing-sm); padding: 12px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.calendar-item img { width: 60px; height: 84px; border-radius: 4px; }
.calendar-info { flex: 1; }
.calendar-info h4 { font-size: 15px; color: var(--text-main); }
.calendar-info p { font-size: 13px; color: var(--text-muted); }
.badge-updated { font-size: 11px; padding: 2px 6px; background: rgba(127, 164, 212, 0.15); color: var(--brand-blue); border-radius: 4px; }

.poster-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--spacing-sm); margin-bottom: var(--spacing-md); }
.poster-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; position: relative; }
.poster-card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0,0,0,0.4); }
.poster-card img { width: 100%; aspect-ratio: 3/4; transition: transform 0.3s; }
.poster-card:hover img { transform: scale(1.05); }
.poster-info { padding: 10px; }
.poster-info h4 { font-size: 14px; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster-info p { font-size: 12px; color: var(--text-muted); margin-top: 4px; display: flex; justify-content: space-between; }
.poster-card .hover-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8); opacity: 0; transition: all 0.3s; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.poster-card:hover .hover-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hover-play::after { content: ''; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid #fff; margin-left: 3px; }
.load-more-btn { display: block; margin: 0 auto; padding: 10px 30px; background: transparent; border: 1px solid var(--border-color); color: var(--text-muted); border-radius: 20px; font-size: 14px; cursor: pointer; transition: all 0.2s; }
.load-more-btn:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

.detail-card { display: flex; gap: var(--spacing-lg); background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: var(--spacing-md); }
.detail-poster { width: 200px; flex-shrink: 0; border-radius: var(--radius-md); overflow: hidden; }
.detail-info { flex: 1; }
.detail-info h2 { font-size: 24px; color: #fff; margin-bottom: var(--spacing-xs); }
.detail-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--spacing-sm); align-items: center; }
.stars { color: var(--brand-gold); font-size: 16px; }
.detail-desc { font-size: 14px; color: var(--text-muted); margin-bottom: var(--spacing-md); line-height: 1.8; }
.cast-list { display: flex; gap: var(--spacing-md); margin-bottom: var(--spacing-md); }
.cast-item { display: flex; align-items: center; gap: 8px; }
.cast-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-panel); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-muted); }
.cast-name { font-size: 14px; color: var(--text-main); }
.ep-track { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: var(--spacing-sm); }
.ep-btn { padding: 6px 16px; background: var(--bg-panel); border: 1px solid var(--border-color); color: var(--text-muted); border-radius: 6px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.ep-btn.active { background: var(--brand-gold); color: #000; border-color: var(--brand-gold); }
.detail-play-btn { background: var(--brand-gold); color: #000; padding: 10px 30px; border-radius: 24px; font-weight: 600; font-size: 15px; border: none; cursor: pointer; transition: transform 0.2s; }
.detail-play-btn:hover { transform: scale(1.05); }

.stats-row { display: flex; justify-content: space-around; text-align: center; margin-bottom: var(--spacing-lg); }
.stat-item h3 { font-size: 32px; color: var(--brand-blue); font-weight: 700; margin-bottom: var(--spacing-xs); }
.stat-item p { font-size: 14px; color: var(--text-muted); }
.partner-marquee { overflow: hidden; width: 100%; }
.partner-track { display: flex; gap: var(--spacing-lg); width: max-content; animation: scroll-x 30s linear infinite; }
.partner-item { width: 100px; height: 40px; background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-muted); }

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-md); }
.review-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: var(--spacing-md); }
.review-header { display: flex; align-items: center; gap: var(--spacing-sm); margin-bottom: var(--spacing-sm); }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-panel); }
.review-user { font-size: 14px; color: var(--text-main); }
.review-stars { color: var(--brand-gold); font-size: 12px; }
.review-text { font-size: 14px; color: var(--text-muted); margin-bottom: var(--spacing-sm); font-style: italic; }
.review-likes { font-size: 12px; color: var(--text-muted); }

.actor-scroll { display: flex; gap: var(--spacing-md); overflow-x: auto; padding-bottom: var(--spacing-sm); }
.actor-card { flex-shrink: 0; width: 140px; text-align: center; }
.actor-card img { width: 100px; height: 100px; border-radius: 50%; margin: 0 auto var(--spacing-sm); border: 2px solid var(--border-color); transition: transform 0.3s; }
.actor-card:hover img { transform: translateY(-4px); border-color: var(--brand-gold); }
.actor-name { font-size: 15px; color: var(--text-main); font-weight: 600; }
.actor-role { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.app-download { display: flex; align-items: center; gap: var(--spacing-xl); }
.phone-mockup { width: 120px; height: 240px; background: #000; border: 4px solid var(--border-color); border-radius: 20px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.phone-screen { flex: 1; background: var(--bg-panel); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-muted); border-bottom: 1px solid var(--border-color); }
.phone-screen:last-child { border-bottom: none; }
.feature-list { flex: 1; }
.feature-item { display: flex; align-items: center; gap: var(--spacing-sm); margin-bottom: var(--spacing-md); }
.feature-icon { width: 40px; height: 40px; background: rgba(127, 164, 212, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--brand-blue); font-size: 18px; }
.feature-text h4 { font-size: 16px; color: var(--text-main); margin-bottom: 4px; }
.feature-text p { font-size: 13px; color: var(--text-muted); }
.app-btns { display: flex; gap: var(--spacing-sm); margin-top: var(--spacing-md); }

.faq-list { display: grid; gap: var(--spacing-sm); }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; }
.faq-q { padding: var(--spacing-md); font-size: 15px; color: var(--text-main); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.faq-q::after { content: '+'; font-size: 18px; color: var(--text-muted); transition: transform 0.3s; }
.faq-item.active .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 var(--spacing-md); max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s; font-size: 14px; color: var(--text-muted); }
.faq-item.active .faq-a { padding: 0 var(--spacing-md) var(--spacing-md); max-height: 200px; }

.footer { background: var(--bg-dark); padding: var(--spacing-lg) 0 var(--spacing-md); border-top: 1px solid var(--border-color); }
.cta-banner { background: linear-gradient(135deg, rgba(127, 164, 212, 0.1) 0%, rgba(212, 175, 127, 0.1) 100%); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: var(--spacing-lg); text-align: center; margin-bottom: var(--spacing-lg); }
.cta-banner h2 { font-size: 24px; color: var(--text-main); margin-bottom: var(--spacing-sm); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--spacing-md); margin-bottom: var(--spacing-lg); }
.footer-col h4 { font-size: 15px; color: var(--text-main); margin-bottom: var(--spacing-sm); }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 13px; color: var(--text-muted); }
.footer-col a:hover { color: var(--brand-blue); }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: var(--spacing-md); text-align: center; font-size: 12px; color: var(--text-muted); }
.footer-bottom p { margin-bottom: 8px; }

.floating-btn { position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; background: var(--brand-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #000; font-weight: bold; font-size: 20px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.3); z-index: 100; transition: transform 0.2s; }
.floating-btn:hover { transform: scale(1.1); }
.floating-panel { position: fixed; right: 24px; bottom: 84px; width: 280px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: var(--spacing-md); box-shadow: 0 8px 24px rgba(0,0,0,0.5); z-index: 100; display: none; }
.floating-panel.show { display: block; animation: fadeInScale 0.3s ease; }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.floating-panel h4 { color: var(--text-main); margin-bottom: var(--spacing-sm); font-size: 15px; }
.floating-panel p { font-size: 13px; color: var(--text-muted); margin-bottom: var(--spacing-sm); }
.floating-panel input, .floating-panel textarea { width: 100%; background: var(--bg-panel); border: 1px solid var(--border-color); color: var(--text-main); padding: 8px; border-radius: 4px; margin-bottom: 8px; font-family: inherit; resize: none; }
.floating-panel button { width: 100%; background: var(--brand-blue); color: #000; border: none; padding: 8px; border-radius: 4px; font-weight: bold; cursor: pointer; }

.reveal { opacity: 1; transform: translateY(0); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.pre-animate { opacity: 0; transform: translateY(20px); }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .poster-grid { grid-template-columns: repeat(4, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 768px) {
  .hero-main { flex-direction: column; align-items: center; text-align: center; }
  .hero-poster { width: 200px; }
  .hero-info h1 { font-size: 24px; }
  .hero-btns { justify-content: center; }
  .poster-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .detail-card { flex-direction: column; }
  .detail-poster { width: 100%; max-width: 240px; margin: 0 auto; }
  .app-download { flex-direction: column; text-align: center; }
  .feature-item { text-align: left; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { flex-wrap: wrap; gap: var(--spacing-md); }
  .stat-item { width: 40%; }
  .calendar-area { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .strip-track, .partner-track, .player-progress-bar { animation: none !important; }
  .reveal, .poster-card, .actor-card img { transition: none !important; }
  * { scroll-behavior: auto !important; }
}