:root {
  --brand-grad: linear-gradient(135deg, #FF7E40 0%, #00C9C9 50%, #A855F7 100%);
  --accent: #FFD700;
  --bg-main: #FFFFFF;
  --bg-alt: #F7F8FA;
  --text-main: #1C1C1E;
  --text-muted: #666666;
  --radius-lg: 32px;
  --radius-md: 20px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 16px 40px rgba(255, 126, 64, 0.15);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
header::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--brand-grad);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-area img { height: 32px; width: auto; }
.logo-text {
  font-size: 22px;
  font-weight: 900;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}
.nav-menu { display: none; gap: 24px; font-weight: 600; color: var(--text-main); font-size: 15px; }
.nav-menu a:hover { color: #FF7E40; }
.header-right { display: flex; align-items: center; gap: 16px; }
.search-box {
  display: none;
  align-items: center;
  background: var(--bg-alt);
  border-radius: 20px;
  padding: 6px 16px;
}
.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 160px;
  color: var(--text-main);
}
.search-box input::placeholder { color: #aaa; }
.btn-download-small {
  background: var(--brand-grad);
  color: #fff;
  padding: 10px 20px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(255, 126, 64, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-download-small:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 126, 64, 0.5); }

/* Hero */
.hero {
  position: relative;
  padding: 60px 0 80px;
  background: radial-gradient(circle at 10% 20%, rgba(255,126,64,0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(0,201,201,0.08) 0%, transparent 40%);
  overflow: hidden;
}
.hero-inner { display: flex; flex-direction: column; gap: 40px; align-items: center; }
.hero-text { flex: 1; text-align: center; }
.hero-text h1 {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--text-main);
}
.hero-text h1 span {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--brand-grad);
  color: #fff;
  padding: 16px 40px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(255, 126, 64, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(255, 126, 64, 0.5); }
.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--accent);
  padding: 14px 36px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
  display: inline-block;
}
.btn-secondary:hover { background: var(--accent); color: #1C1C1E; }
.hero-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}
.hero-img-wrap {
  position: relative;
  width: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  transform: rotate(-4deg) translateY(0);
  transition: transform 0.4s ease;
  border: 4px solid #fff;
}
.hero-img-wrap:hover { transform: rotate(0deg) translateY(-10px); }
.hero-img-wrap img { width: 100%; display: block; }

/* Features */
.features { padding: 60px 0; background: var(--bg-alt); }
.section-title { text-align: center; font-size: 32px; font-weight: 900; margin-bottom: 40px; }
.section-title span {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.features-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.feature-card::before {
  content: ''; position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: var(--brand-grad); border-radius: calc(var(--radius-lg) + 2px); z-index: -1;
  opacity: 0.3; transition: opacity 0.3s ease;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:nth-child(2) { margin-top: 0; }
.feature-icon {
  font-size: 36px; margin-bottom: 16px; display: inline-block;
}
.feature-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.feature-card p { font-size: 15px; color: var(--text-muted); }

/* Hot Search */
.hot-search { padding: 60px 0; }
.bubbles { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.bubble {
  padding: 12px 28px; border-radius: 30px; font-weight: 700; font-size: 16px;
  color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}
.bubble:hover { transform: scale(1.05); }
.bubble:nth-child(1) { background: #FF7E40; }
.bubble:nth-child(2) { background: #00C9C9; }
.bubble:nth-child(3) { background: #A855F7; }
.bubble:nth-child(4) { background: #FFD700; color: #1C1C1E; }
.bubble:nth-child(5) { background: #FF6B6B; }

/* Trending Series */
.trending { padding: 60px 0; background: var(--bg-alt); }
.poster-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.poster-card {
  background: #fff; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.3s ease;
}
.poster-card:hover { transform: translateY(-6px); }
.poster-img-box { position: relative; padding-top: 130%; }
.poster-img-box img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.poster-info { padding: 12px 16px; }
.poster-info h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.poster-info p { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.progress-bar {
  display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 10px;
  background: var(--brand-grad); color: #fff; margin-top: 6px;
}
.poster-card:nth-child(2n) { transform: translateY(20px); }
.poster-card:nth-child(2n):hover { transform: translateY(14px); }

/* Editor's Picks */
.picks { padding: 60px 0; }
.picks-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.pick-card {
  background: #fff; border-radius: var(--radius-lg); padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.pick-card::before {
  content: ''; position: absolute; top: -50px; right: -50px; width: 120px; height: 120px;
  border-radius: 50%; background: var(--brand-grad); opacity: 0.15; filter: blur(20px);
}
.pick-card img { width: 100%; border-radius: var(--radius-md); aspect-ratio: 4/5; object-fit: cover; }
.pick-content h4 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.pick-content p { font-size: 15px; color: var(--text-muted); font-style: italic; }

/* Cinema */
.cinema { padding: 60px 0; background: var(--bg-alt); overflow: hidden; }
.cinema-scroll {
  display: flex; gap: 20px; overflow-x: auto; padding: 10px 0 20px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.cinema-scroll::-webkit-scrollbar { display: none; }
.cinema-card {
  flex: 0 0 220px; background: #fff; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow);
}
.cinema-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.cinema-card p { padding: 12px; font-size: 15px; font-weight: 700; text-align: center; }

/* Thriller */
.thriller { padding: 80px 0; background: #1C1C1E; color: #fff; position: relative; overflow: hidden; }
.thriller::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(0,201,201,0.15) 0%, transparent 60%); z-index: 0;
}
.thriller-content { position: relative; z-index: 1; text-align: center; }
.thriller h2 { font-size: 32px; font-weight: 900; margin-bottom: 16px; }
.thriller h2 span {
  background: linear-gradient(90deg, #00C9C9, #A855F7);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.thriller p { font-size: 18px; color: #aaa; margin-bottom: 40px; }
.thriller-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; } 
.thriller-grid img { border-radius: var(--radius-md); width: 100%; aspect-ratio: 2/3; object-fit: cover; border: 2px solid transparent; background-image: var(--brand-grad); background-origin: border-box; background-clip: padding-box, border-box; }

/* Comedy */
.comedy { padding: 60px 0; background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%); }
.comedy h2 { text-align: center; font-size: 32px; font-weight: 900; margin-bottom: 40px; color: #D97706; }
.comedy-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.comedy-card {
  background: #fff; border-radius: var(--radius-lg); padding: 20px;
  display: flex; gap: 16px; align-items: center; box-shadow: var(--shadow);
}
.comedy-card img { width: 100px; height: 140px; object-fit: cover; border-radius: var(--radius-md); }
.comedy-card h4 { font-size: 18px; font-weight: 800; color: #B45309; margin-bottom: 6px; }
.comedy-card p { font-size: 14px; color: var(--text-muted); }

/* Anime */
.anime { padding: 60px 0; background: var(--bg-main); }
.anime h2 { text-align: center; font-size: 32px; font-weight: 900; margin-bottom: 40px; }
.anime-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.anime-card { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow); }
.anime-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }

/* Categories */
.categories { padding: 60px 0; background: var(--bg-alt); }
.categories h2 { text-align: center; font-size: 32px; font-weight: 900; margin-bottom: 40px; }
.capsule-wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.capsule {
  padding: 10px 24px; border-radius: 20px; background: #fff; color: var(--text-main);
  font-weight: 600; font-size: 15px; border: 1px solid #E5E7EB; cursor: pointer;
  transition: all 0.3s ease;
}
.capsule:hover { background: var(--brand-grad); color: #fff; border-color: transparent; box-shadow: 0 4px 15px rgba(255,126,64,0.3); }

/* Smart */
.smart { padding: 60px 0; }
.smart-inner { display: flex; flex-direction: column; gap: 40px; align-items: center; }
.smart-text { flex: 1; text-align: center; }
.smart-text h2 { font-size: 32px; font-weight: 900; margin-bottom: 16px; }
.smart-text p { font-size: 16px; color: var(--text-muted); }
.smart-img { flex: 1; width: 100%; display: flex; justify-content: center; }
.smart-img img { width: 260px; border-radius: var(--radius-lg); box-shadow: 0 20px 40px rgba(0,0,0,0.1); border: 4px solid #fff; }

/* Danmaku */
.danmaku { padding: 60px 0; background: #0f172a; color: #fff; text-align: center; overflow: hidden; }
.danmaku h2 { font-size: 32px; font-weight: 900; margin-bottom: 16px; color: #00C9C9; }
.danmaku p { font-size: 18px; color: #94a3b8; margin-bottom: 40px; }
.danmaku-screen { position: relative; height: 120px; overflow: hidden; width: 100%; margin-top: 20px;}
.dm-item {
  position: absolute; white-space: nowrap; font-weight: 700; font-size: 18px;
  animation: float linear infinite;
}
.dm-item:nth-child(1) { top: 10px; animation-duration: 12s; color: #FFD700; }
.dm-item:nth-child(2) { top: 45px; animation-duration: 15s; color: #00C9C9; animation-delay: -3s; }
.dm-item:nth-child(3) { top: 80px; animation-duration: 10s; color: #A855F7; animation-delay: -6s; }
@keyframes float { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }

/* Ranking */
.ranking { padding: 60px 0; background: var(--bg-alt); }
.ranking h2 { text-align: center; font-size: 32px; font-weight: 900; margin-bottom: 40px; }
.rank-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.rank-item {
  display: flex; align-items: center; background: #fff; padding: 16px 24px;
  border-radius: var(--radius-md); box-shadow: var(--shadow);
}
.rank-num {
  font-size: 28px; font-weight: 900; width: 50px;
  background: var(--brand-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.rank-item:nth-child(1) .rank-num, .rank-item:nth-child(2) .rank-num, .rank-item:nth-child(3) .rank-num { font-size: 34px; }
.rank-title { flex: 1; font-size: 18px; font-weight: 700; }
.rank-desc { font-size: 14px; color: var(--text-muted); display: none; }

/* Sanctuary */
.sanctuary { padding: 80px 0; background: #FAFAFA; }
.sanctuary-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.sanctuary h2 { font-size: 32px; font-weight: 900; margin-bottom: 24px; }
.sanctuary p { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; }
.polaroid-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.polaroid {
  background: #fff; padding: 12px 12px 24px; box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  transform: rotate(-3deg); transition: transform 0.3s ease;
}
.polaroid:nth-child(even) { transform: rotate(3deg); }
.polaroid:hover { transform: rotate(0) scale(1.05); z-index: 10; }
.polaroid img { width: 160px; height: 200px; object-fit: cover; }

/* Testimonials */
.testimonials { padding: 60px 0; }
.testimonials h2 { text-align: center; font-size: 32px; font-weight: 900; margin-bottom: 40px; }
.testi-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.testi-card {
  background: #fff; padding: 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.stars { color: var(--accent); font-size: 18px; margin-bottom: 12px; }
.testi-text { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin-bottom: 16px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-grad); }
.testi-name { font-weight: 700; font-size: 14px; }

/* Download */
.download { padding: 80px 0; background: var(--brand-grad); color: #fff; text-align: center; }
.download h2 { font-size: 36px; font-weight: 900; margin-bottom: 16px; }
.download p { font-size: 18px; margin-bottom: 40px; opacity: 0.9; }
.download-btns { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.dl-btn {
  background: #fff; color: #1C1C1E; width: 100%; max-width: 320px;
  padding: 16px; border-radius: 30px; font-weight: 800; font-size: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15); transition: transform 0.2s ease;
}
.dl-btn:hover { transform: scale(1.02); }

/* FAQ */
.faq { padding: 60px 0; background: var(--bg-alt); }
.faq h2 { text-align: center; font-size: 32px; font-weight: 900; margin-bottom: 40px; }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
details {
  background: #fff; border-radius: var(--radius-md); padding: 16px 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03); border: 1px solid #E5E7EB;
}
details[open] { border-color: #FF7E40; }
summary {
  font-weight: 700; font-size: 16px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 24px; color: #FF7E40; font-weight: 400; }
details[open] summary::after { content: '-'; }
.faq-answer { padding-top: 12px; font-size: 15px; color: var(--text-muted); border-top: 1px dashed #eee; margin-top: 12px; }

/* Footer */
footer {
  background: var(--bg-alt); padding: 40px 0 20px; font-size: 13px; color: var(--text-muted);
  position: relative; border-top: 1px solid #E5E7EB;
}
footer::before {
  content: ''; position: absolute; top: -2px; left: 0; width: 100%; height: 3px;
  background: var(--brand-grad);
}
.footer-inner {
  display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center;
}
.footer-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--text-main); font-size: 16px; }
.footer-logo img { height: 24px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.footer-nav a:hover { color: #FF7E40; }
.footer-info { font-size: 12px; line-height: 1.8; }
.footer-info a { color: var(--text-muted); }
.footer-info a:hover { color: #FF7E40; }
.footer-time { margin-top: 12px; font-size: 12px; color: #999; }
.friend-links-wrap { width: 100%; max-width: 800px; margin-top: 16px; }
.friend-links-wrap details { background: transparent; box-shadow: none; border: none; padding: 0; text-align: center; }
.friend-links-wrap summary { font-size: 13px; color: #999; font-weight: normal; justify-content: center; }
.friend-links-wrap summary::after { display: none; }
.friend-links-wrap details[open] summary { margin-bottom: 12px; }

@media (min-width: 768px) {
  .nav-menu { display: flex; }
  .search-box { display: flex; }
  .hero-inner { flex-direction: row; text-align: left; }
  .hero-text { text-align: left; }
  .hero-btns { justify-content: flex-start; }
  .hero-img-wrap { width: 320px; transform: rotate(-5deg) translateY(-20px); }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-card:nth-child(2) { margin-top: 30px; }
  .feature-card:nth-child(3) { margin-top: 60px; }
  .poster-grid { grid-template-columns: repeat(3, 1fr); }
  .poster-card:nth-child(2n) { transform: none; }
  .poster-card:nth-child(3n) { transform: translateY(20px); }
  .poster-card:nth-child(3n):hover { transform: translateY(14px); }
  .picks-grid { grid-template-columns: repeat(2, 1fr); }
  .thriller-grid { grid-template-columns: repeat(3, 1fr); }
  .comedy-grid { grid-template-columns: repeat(2, 1fr); }
  .anime-grid { grid-template-columns: repeat(4, 1fr); }
  .smart-inner { flex-direction: row; text-align: left; }
  .smart-text { text-align: left; }
  .smart-img { justify-content: flex-end; }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .download-btns { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .rank-desc { display: block; }
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .footer-logo-area { flex: 1; }
  .footer-nav { justify-content: flex-start; }
  .footer-right { flex: 1; text-align: right; }
}

@media (min-width: 1024px) {
  .hero-text h1 { font-size: 52px; }
  .hero-img-wrap { width: 380px; }
  .poster-grid { grid-template-columns: repeat(4, 1fr); }
  .poster-card:nth-child(3n) { transform: none; }
  .poster-card:nth-child(4n) { transform: translateY(20px); }
  .poster-card:nth-child(4n):hover { transform: translateY(14px); }
  .picks-grid { grid-template-columns: repeat(3, 1fr); }
  .comedy-grid { grid-template-columns: repeat(3, 1fr); }
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
  .sanctuary h2 { font-size: 40px; }
}