:root {
  --bg: #0a0c10;
  --bg-alt: #11151c;
  --bg-card: #161b24;
  --brand: #7fa6c9;
  --brand-light: #a8c4dd;
  --accent: #c9a96e;
  --text: #e6e9ee;
  --text-sub: #9aa4b2;
  --text-muted: #667080;
  --border: #232a35;
  --radius: 8px;
  --spacing: 20px;
  --transition: 0.3s ease;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  width: 0%; z-index: 9999; transition: width 0.1s;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing); }

/* Header */
header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.nav-logo img { height: 32px; width: auto; border-radius: 6px; }
.nav-logo span { font-size: 18px; font-weight: 700; letter-spacing: 0.5px; }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a {
  color: var(--text-sub); text-decoration: none; font-size: 14px;
  transition: color var(--transition); position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -20px; left: 0; width: 100%;
  height: 2px; background: var(--brand);
}
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-search {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 14px; display: flex; align-items: center; gap: 8px;
}
.nav-search input {
  background: transparent; border: none; outline: none; color: var(--text);
  font-size: 13px; width: 120px;
}
.nav-search input::placeholder { color: var(--text-muted); }
.nav-search svg { width: 14px; height: 14px; fill: var(--text-muted); }
.btn-download {
  background: var(--brand); color: #0a0c10; padding: 8px 18px;
  border-radius: 20px; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: background var(--transition);
}
.btn-download:hover { background: var(--brand-light); }

/* Section base */
section { padding: 60px 0; border-bottom: 1px solid var(--border); }
section:nth-child(even) { background: var(--bg-alt); }
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.section-header h2 { font-size: 22px; font-weight: 700; color: var(--text); }
.section-header h2 span { color: var(--brand); font-size: 14px; font-weight: 400; margin-left: 8px; }
.more-link { color: var(--text-muted); text-decoration: none; font-size: 13px; transition: color var(--transition); }
.more-link:hover { color: var(--brand); }

/* Hero */
.hero { padding-top: 100px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: start; }
.hero-main {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; display: flex; gap: 20px;
}
.hero-poster { width: 180px; flex-shrink: 0; border-radius: 6px; overflow: hidden; position: relative; }
.hero-poster img { width: 100%; height: 260px; object-fit: cover; display: block; }
.hero-info h1 { font-size: 24px; margin-bottom: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag {
  background: rgba(127, 166, 201, 0.15); color: var(--brand);
  font-size: 11px; padding: 2px 8px; border-radius: 4px;
}
.hero-info .meta { font-size: 13px; color: var(--text-sub); margin-bottom: 6px; }
.hero-info .desc { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.7; }
.hero-actions { display: flex; gap: 10px; }
.btn-primary {
  background: var(--brand); color: #0a0c10; padding: 8px 20px;
  border-radius: 6px; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: opacity var(--transition); border: none; cursor: pointer;
}
.btn-primary:hover { opacity: 0.85; }
.btn-outline {
  background: transparent; color: var(--text); padding: 8px 20px;
  border-radius: 6px; font-size: 13px; border: 1px solid var(--border);
  cursor: pointer; transition: border-color var(--transition);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.hero-player {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
}
.player-screen {
  position: relative; width: 100%; aspect-ratio: 16/9;
  border-radius: 6px; overflow: hidden; background: #000;
}
.player-screen img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(127, 166, 201, 0.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.play-btn svg { width: 20px; height: 20px; fill: #0a0c10; margin-left: 3px; }
.player-progress {
  height: 3px; background: var(--border); border-radius: 2px; margin-top: 12px;
  position: relative; overflow: hidden;
}
.player-progress::after {
  content: ''; position: absolute; top: 0; left: 0; height: 100%;
  width: 45%; background: var(--brand); animation: progressDemo 8s linear infinite;
}
@keyframes progressDemo { 0% { width: 0%; } 100% { width: 100%; } }
.episode-strip { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.episode-btn {
  flex-shrink: 0; width: 40px; height: 30px; border-radius: 4px;
  background: var(--bg-alt); border: 1px solid var(--border);
  color: var(--text-sub); font-size: 12px; cursor: pointer;
  transition: all var(--transition);
}
.episode-btn.active { background: var(--brand); color: #0a0c10; border-color: var(--brand); }
.today-updates { margin-top: 16px; }
.today-updates h3 { font-size: 14px; color: var(--text-sub); margin-bottom: 10px; }
.update-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--border); font-size: 13px;
  transition: background var(--transition);
}
.update-item:hover { background: rgba(127, 166, 201, 0.05); }
.update-item img { width: 36px; height: 48px; object-fit: cover; border-radius: 4px; }
.update-item .info { flex: 1; }
.update-item .info strong { color: var(--text); font-weight: 500; }
.update-item .info span { color: var(--text-muted); font-size: 12px; display: block; }
.update-item .time { color: var(--text-muted); font-size: 11px; }

/* Charts */
.tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tab-btn {
  background: transparent; border: 1px solid var(--border); color: var(--text-sub);
  padding: 6px 16px; border-radius: 20px; font-size: 13px; cursor: pointer;
  transition: all var(--transition);
}
.tab-btn.active { background: var(--brand); color: #0a0c10; border-color: var(--brand); }
.chart-list { display: flex; flex-direction: column; gap: 10px; }
.chart-item {
  display: flex; align-items: center; gap: 14px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 16px;
  transition: transform var(--transition);
}
.chart-item:hover { transform: translateX(4px); }
.rank { font-size: 20px; font-weight: 700; color: var(--text-muted); width: 30px; text-align: center; }
.rank.top { color: var(--accent); }
.chart-item img { width: 44px; height: 60px; object-fit: cover; border-radius: 4px; }
.chart-info { flex: 1; }
.chart-info h4 { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.chart-info .tags { margin-bottom: 4px; }
.chart-info .meta { font-size: 12px; color: var(--text-muted); }
.chart-heat { font-size: 13px; color: var(--accent); font-weight: 600; }

/* Categories */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.cat-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; text-align: center;
  cursor: pointer; transition: all var(--transition);
}
.cat-item:hover { border-color: var(--brand); background: rgba(127, 166, 201, 0.05); }
.cat-item strong { display: block; font-size: 14px; margin-bottom: 4px; }
.cat-item span { font-size: 12px; color: var(--text-muted); }

/* Grid wall */
.poster-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.poster-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: transform var(--transition);
  cursor: pointer;
}
.poster-card:hover { transform: translateY(-6px); }
.poster-card .img-wrap { position: relative; overflow: hidden; aspect-ratio: 3/4; }
.poster-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.poster-card:hover .img-wrap img { transform: scale(1.05); }
.poster-card .info { padding: 10px 12px; }
.poster-card .info h4 { font-size: 13px; font-weight: 500; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster-card .info .tags { margin-bottom: 4px; }
.poster-card .info .meta { font-size: 11px; color: var(--text-muted); display: flex; justify-content: space-between; }

/* Detail */
.detail-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; display: flex; gap: 24px;
}
.detail-poster { width: 200px; flex-shrink: 0; border-radius: 6px; overflow: hidden; }
.detail-poster img { width: 100%; height: 280px; object-fit: cover; display: block; }
.detail-info { flex: 1; }
.detail-info h2 { font-size: 24px; margin-bottom: 8px; }
.detail-info .rating { color: var(--accent); font-size: 14px; margin-bottom: 8px; }
.detail-info .desc { font-size: 14px; color: var(--text-sub); margin: 12px 0; line-height: 1.8; }
.actor-list { display: flex; gap: 12px; margin-bottom: 16px; }
.actor-chip { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-sub); }
.actor-chip .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.detail-episodes { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; }
.detail-episodes .episode-btn { width: 48px; height: 34px; }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; }
.stat-item { text-align: center; padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.stat-item .num { font-size: 28px; font-weight: 700; color: var(--brand); }
.stat-item .label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.logo-marquee { overflow: hidden; white-space: nowrap; }
.logo-track { display: inline-flex; gap: 48px; animation: marquee 20s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.logo-placeholder { width: 100px; height: 40px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 12px; }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--border); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--text-sub); }
.review-name { font-size: 14px; font-weight: 500; }
.review-stars { color: var(--accent); font-size: 12px; margin-top: 2px; }
.review-text { font-size: 13px; color: var(--text-sub); line-height: 1.7; }
.review-footer { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12px; color: var(--text-muted); }

/* Cast */
.cast-scroll { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; }
.cast-card { flex-shrink: 0; width: 160px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; transition: transform var(--transition); }
.cast-card:hover { transform: translateY(-4px); }
.cast-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--border); margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--text-muted); }
.cast-name { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.cast-role { font-size: 12px; color: var(--brand); margin-bottom: 8px; }
.cast-work { font-size: 11px; color: var(--text-muted); line-height: 1.5; }

/* App section */
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.phone-mockups { display: flex; gap: 12px; justify-content: center; }
.phone-mockup { width: 120px; height: 240px; border-radius: 16px; border: 2px solid var(--border); background: var(--bg-card); overflow: hidden; position: relative; display: flex; flex-direction: column; }
.phone-screen { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.ph-bar { height: 8px; background: var(--border); border-radius: 4px; }
.ph-bar.short { width: 60%; }
.ph-img { height: 60px; background: var(--bg); border-radius: 4px; }
.app-features { list-style: none; }
.app-features li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.app-features li:last-child { border-bottom: none; }
.feat-icon { width: 32px; height: 32px; border-radius: 8px; background: rgba(127, 166, 201, 0.15); display: flex; align-items: center; justify-content: center; color: var(--brand); font-size: 14px; flex-shrink: 0; }
.feat-text strong { display: block; font-size: 14px; margin-bottom: 2px; }
.feat-text span { font-size: 12px; color: var(--text-muted); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; background: none; border: none; color: var(--text); text-align: left; padding: 16px 0; font-size: 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; font-size: 20px; color: var(--text-muted); transition: transform var(--transition); }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--transition); }
.faq-answer p { padding-bottom: 16px; font-size: 13px; color: var(--text-sub); line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 200px; }

/* Footer */
footer { background: var(--bg); padding: 40px 0 20px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 30px; }
.footer-col h4 { font-size: 14px; margin-bottom: 12px; color: var(--text); }
.footer-col a { display: block; color: var(--text-muted); text-decoration: none; font-size: 13px; margin-bottom: 8px; transition: color var(--transition); }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; text-align: center; font-size: 12px; color: var(--text-muted); }
.footer-bottom a { color: var(--text-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--brand); }

/* Floating feedback */
.feedback-btn {
  position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
  border-radius: 50%; background: var(--brand); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 900;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4); transition: transform var(--transition);
}
.feedback-btn:hover { transform: scale(1.1); }
.feedback-btn svg { width: 22px; height: 22px; fill: #0a0c10; }
.feedback-popup {
  position: fixed; bottom: 90px; right: 30px; width: 300px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; z-index: 901;
  transform: scale(0.9); opacity: 0; visibility: hidden;
  transition: all var(--transition);
}
.feedback-popup.show { transform: scale(1); opacity: 1; visibility: visible; }
.feedback-popup h4 { font-size: 15px; margin-bottom: 8px; }
.feedback-popup p { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.feedback-popup .btn-primary { width: 100%; text-align: center; display: block; margin-top: 8px; }

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .poster-grid { grid-template-columns: repeat(3, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 768px) {
  .hero-main { flex-direction: column; }
  .hero-poster { width: 100%; }
  .hero-poster img { height: 200px; }
  .poster-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .detail-card { flex-direction: column; }
  .detail-poster { width: 100%; }
  .detail-poster img { height: 220px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-search input { width: 80px; }
  .section-header h2 { font-size: 18px; }
  .phone-mockups { flex-wrap: wrap; }
  .phone-mockup { width: 100px; height: 200px; }
  .feedback-popup { width: calc(100% - 60px); right: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}