:root {
  --bg: #0f0f11;
  --bg-elev: #17171a;
  --bg-card: #1d1d21;
  --amber: #f5b942;
  --amber-dim: #a87c2a;
  --text: #ececec;
  --text-dim: #9a9a9f;
  --border: #2a2a2f;
  --radius: 6px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; object-fit: cover; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(15, 15, 17, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: 0.5px; }
.brand img { height: 34px; width: auto; }
.main-nav { display: flex; gap: 24px; font-size: 15px; color: var(--text-dim); }
.main-nav a:hover, .main-nav a.active { color: var(--amber); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.search-box input {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  width: 180px;
  outline: none;
  transition: border-color 0.3s;
}
.search-box input:focus { border-color: var(--amber); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}
.btn-amber { background: var(--amber); color: #000; }
.btn-amber:hover { background: #ffca5c; }
.btn-outline { border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--amber); color: var(--amber); }
.btn-login { font-size: 14px; color: var(--text-dim); }
.btn-login:hover { color: var(--text); }
.hamburger { display: none; font-size: 24px; }

/* Layout */
.page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.main-content { min-width: 0; display: flex; flex-direction: column; gap: 48px; }

/* Hero */
.hero-wrap { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; }
.hero-slider { position: relative; aspect-ratio: 21/9; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15,15,17,0.95) 0%, rgba(15,15,17,0.7) 40%, transparent 100%);
}
.hero-content {
  position: absolute;
  bottom: 40px;
  left: 40px;
  max-width: 60%;
  z-index: 2;
}
.hero-tag {
  display: inline-block;
  background: var(--amber);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.hero-title { font-size: 40px; font-weight: 800; line-height: 1.2; margin-bottom: 12px; text-shadow: 0 4px 12px rgba(0,0,0,0.6); }
.hero-desc { font-size: 16px; color: #ccc; margin-bottom: 24px; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.hero-actions { display: flex; gap: 12px; }
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  color: #fff;
  transition: background 0.3s;
}
.hero-nav:hover { background: var(--amber); color: #000; }
.hero-nav.prev { left: 16px; }
.hero-nav.next { right: 16px; }
.hero-dots {
  position: absolute;
  bottom: 24px;
  right: 40px;
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
}
.hero-dot.active { background: var(--amber); width: 24px; border-radius: 4px; }

/* Section Title */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; display: block; width: 4px; height: 18px; background: var(--amber); border-radius: 2px; }
.section-more { font-size: 14px; color: var(--text-dim); }
.section-more:hover { color: var(--amber); }

/* Grid & Cards */
.grid-ranking { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.poster-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid transparent;
  transition: transform 0.3s, border-color 0.3s;
  cursor: pointer;
}
.poster-card:hover {
  transform: translateY(-4px);
  border-color: var(--amber);
}
.poster-img-wrap { position: relative; aspect-ratio: 3/4; }
.poster-img-wrap img { width: 100%; height: 100%; transition: transform 0.3s; }
.poster-card:hover .poster-img-wrap img { transform: scale(1.05); }
.poster-badge {
  position: absolute;
  top: 0; left: 0;
  background: var(--amber);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-bottom-right-radius: var(--radius);
}
.poster-info { padding: 12px; }
.poster-title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.poster-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); }
.poster-rating { color: var(--amber); font-weight: 700; }

/* Editor Picks */
.grid-picks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pick-card {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}
.pick-card:hover { border-color: var(--amber-dim); }
.pick-img { width: 140px; aspect-ratio: 3/4; flex-shrink: 0; }
.pick-content { padding: 16px; display: flex; flex-direction: column; justify-content: center; }
.pick-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.pick-desc { font-size: 13px; color: var(--text-dim); line-height: 1.5; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick-tags { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.pick-tag { font-size: 11px; padding: 2px 6px; background: rgba(245,185,66,0.1); color: var(--amber); border-radius: 2px; }
.pick-eps { font-size: 12px; color: var(--text-dim); }

/* Scroll Track */
.scroll-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.scroll-track::-webkit-scrollbar { height: 6px; }
.scroll-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.scroll-item { width: 180px; flex-shrink: 0; }
.scroll-item .poster-info { padding: 10px 0; }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 24px; }
.timeline::before {
  content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding: 12px 0 12px 16px; }
.timeline-item::before {
  content: ''; position: absolute; left: -24px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); border: 2px solid var(--bg); z-index: 1;
}
.timeline-time { font-size: 13px; color: var(--amber); font-weight: 600; margin-bottom: 4px; }
.timeline-content { font-size: 15px; }
.timeline-eps { font-size: 13px; color: var(--text-dim); margin-left: 8px; }

/* Story */
.story-text { font-size: 15px; color: #ccc; line-height: 1.8; text-indent: 2em; background: var(--bg-card); padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.faq-q { font-size: 16px; font-weight: 600; margin-bottom: 8px; display: flex; gap: 8px; }
.faq-q::before { content: 'Q'; color: var(--amber); font-weight: 800; }
.faq-a { font-size: 14px; color: var(--text-dim); line-height: 1.6; padding-left: 18px; }

/* Sidebar */
.sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 24px; }
.sidebar-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.sidebar-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.sidebar-title::before { content: ''; display: block; width: 4px; height: 14px; background: var(--amber); border-radius: 2px; }
.update-list { display: flex; flex-direction: column; }
.update-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.update-item:last-child { border-bottom: none; padding-bottom: 0; }
.update-date { color: var(--text-dim); font-size: 12px; }
.update-name { flex: 1; margin: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.update-eps { color: var(--amber); font-size: 12px; }

/* Download Area */
.download-section {
  background: linear-gradient(135deg, #1a1a1c 0%, #111 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.download-section::before {
  content: ''; position: absolute; top: -50%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(245,185,66,0.08) 0%, transparent 70%); pointer-events: none;
}
.download-inner { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; gap: 40px; }
.download-text h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.download-text p { color: var(--text-dim); margin-bottom: 24px; font-size: 15px; }
.download-btns { display: flex; gap: 16px; margin-bottom: 20px; }
.download-meta { font-size: 12px; color: var(--text-dim); line-height: 1.6; }
.qr-card { background: #fff; padding: 16px; border-radius: var(--radius); width: 180px; flex-shrink: 0; text-align: center; }
.qr-placeholder { width: 100%; aspect-ratio: 1; background: #eee; border-radius: 4px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; color: #999; font-size: 12px; }
.qr-text { color: #333; font-size: 12px; font-weight: 600; }
.install-steps { display: flex; gap: 24px; margin-top: 48px; border-top: 1px solid var(--border); padding-top: 32px; }
.step-item { flex: 1; display: flex; gap: 12px; }
.step-num { width: 24px; height: 24px; border-radius: 50%; background: var(--amber); color: #000; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.step-text { font-size: 14px; color: var(--text-dim); }
.step-text strong { color: var(--text); display: block; margin-bottom: 4px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 2;
}
.site-footer a { color: var(--text-dim); transition: color 0.3s; }
.site-footer a:hover { color: var(--amber); }
.footer-links { margin-top: 12px; font-size: 12px; }

/* Mobile Bottom Bar */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding: 12px 24px;
  z-index: 99;
  justify-content: space-between;
  align-items: center;
}
.mobile-bar .btn { width: 100%; }

/* Responsive */
@media (max-width: 1024px) {
  .page-container { grid-template-columns: 1fr; padding-bottom: 96px; }
  .sidebar { position: static; margin-top: 32px; }
  .main-nav, .search-box { display: none; }
  .hamburger { display: block; }
  .header-actions { gap: 12px; }
  .install-steps { flex-direction: column; gap: 16px; }
  .download-inner { flex-direction: column; align-items: flex-start; }
  .qr-card { display: none; }
  .mobile-bar { display: flex; }
}

@media (max-width: 860px) {
  .grid-ranking { grid-template-columns: repeat(3, 1fr); }
  .grid-picks { grid-template-columns: 1fr; }
  .hero-slider { aspect-ratio: 16/9; }
  .hero-content { bottom: 24px; left: 24px; max-width: 80%; }
  .hero-title { font-size: 32px; }
}

@media (max-width: 560px) {
  .header-inner { padding: 0 16px; height: 56px; }
  .brand img { height: 28px; }
  .page-container { padding: 16px; gap: 32px; }
  .grid-ranking { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-content { bottom: 16px; left: 16px; max-width: 90%; }
  .hero-title { font-size: 24px; }
  .hero-desc { font-size: 13px; }
  .btn { font-size: 13px; padding: 6px 14px; }
  .download-section { padding: 24px; }
  .download-btns { flex-direction: column; }
  .download-btns .btn { width: 100%; }
  .pick-img { width: 100px; }
  .section-title { font-size: 18px; }
}