:root {
  --navy: #0a1c3a;
  --cobalt: #1d4ed8;
  --ice: #eef4ff;
  --white: #ffffff;
  --coral: #ff6b4a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #dbeafe;
  --radius: 8px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--ice);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
section { padding: 60px 0; }
.section-header { margin-bottom: 30px; position: relative; }
.section-header h2 {
  font-size: 1.8rem;
  color: var(--navy);
  display: inline-block;
  position: relative;
  z-index: 1;
}
.section-header h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: 4px;
  width: 100%; height: 8px;
  background-color: var(--border);
  z-index: -1;
  border-radius: 4px;
}
.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 10px;
}

/* Header */
.header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--navy);
}
.brand img { height: 32px; width: auto; }
.nav-links { display: none; gap: 24px; font-size: 0.95rem; color: var(--text-muted); }
.nav-links a:hover { color: var(--cobalt); }
.btn-download {
  background-color: var(--cobalt);
  color: var(--white);
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s;
  display: inline-block;
  min-height: 44px;
  line-height: 28px;
}
.btn-download:hover { background-color: #1e40af; }
.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy);
  cursor: pointer;
  padding: 8px;
}
.mobile-nav {
  display: none;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
}
.mobile-nav.active { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--ice);
  color: var(--navy);
}

/* Hero */
.hero {
  background-color: var(--white);
  text-align: center;
  padding: 40px 0 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; width: 100%; height: 1px;
  background: repeating-linear-gradient(90deg, transparent, transparent 10px, var(--border) 10px, var(--border) 20px);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  background: var(--white);
  display: inline-block;
  padding: 0 20px;
}
.hero h1 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.3;
}
.hero p {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-download {
  margin-bottom: 40px;
}
.hero-download .btn-download {
  padding: 12px 32px;
  font-size: 1.1rem;
  min-height: 48px;
  line-height: 24px;
}
.hero-route {
  position: relative;
  z-index: 1;
  padding-bottom: 40px;
}
.route-line {
  position: absolute;
  top: 50%; left: 0; width: 100%; height: 2px;
  background: var(--cobalt);
  z-index: -1;
}
.route-covers {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.route-covers::-webkit-scrollbar { display: none; }
.route-item {
  flex: 0 0 140px;
  scroll-snap-align: center;
  position: relative;
  background: var(--white);
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(10,28,58,0.05);
  display: flex;
  flex-direction: column;
}
.route-item img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 4px;
}
.route-item.center {
  flex: 0 0 180px;
  transform: translateY(-20px);
  border-color: var(--cobalt);
  box-shadow: 0 8px 24px rgba(29,78,216,0.15);
}
.route-meta {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--cobalt);
  text-align: left;
  font-family: monospace;
}
.route-meta span { color: var(--coral); }

/* Grid Layouts */
.grid-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); }
.card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-info { padding: 12px; }
.card-info h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Ranking */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.rank-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--border);
  width: 30px;
  text-align: center;
  font-style: italic;
}
.rank-num.top { color: var(--cobalt); }
.rank-cover {
  width: 60px;
  aspect-ratio: 2/3;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.rank-cover img { width: 100%; height: 100%; object-fit: cover; }
.rank-info { flex-grow: 1; }
.rank-info h3 { font-size: 0.95rem; color: var(--navy); margin-bottom: 4px; }
.rank-progress {
  height: 4px;
  background: var(--ice);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}
.rank-progress-bar {
  height: 100%;
  background: var(--coral);
  width: 80%;
}
.rank-badge {
  font-size: 0.75rem;
  color: var(--coral);
  border: 1px solid var(--coral);
  padding: 2px 6px;
  border-radius: 10px;
}

/* Filters */
.filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.filters::-webkit-scrollbar { display: none; }
.filter-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}
.filter-btn.active {
  background: var(--cobalt);
  color: var(--white);
  border-color: var(--cobalt);
}

/* Timeline */
.timeline {
  border-left: 2px solid var(--border);
  margin-left: 10px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.timeline-item {
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cobalt);
  border: 2px solid var(--white);
}
.timeline-item h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.timeline-item p { font-size: 0.85rem; color: var(--text-muted); }
.timeline-covers {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
}
.timeline-covers img {
  width: 80px;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 4px;
}

/* Feature */
.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 20px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.feature::after {
  content: '';
  position: absolute;
  top: 10px; right: 10px; width: 30px; height: 30px;
  border-top: 2px solid var(--cobalt);
  border-right: 2px solid var(--cobalt);
}
.feature-cover {
  width: 160px;
  aspect-ratio: 2/3;
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(10,28,58,0.1);
}
.feature-cover img { width: 100%; height: 100%; object-fit: cover; }
.feature-info { text-align: center; }
.feature-info h2 { font-size: 1.5rem; color: var(--navy); margin-bottom: 10px; }
.feature-info p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }
.feature-tags { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.feature-tags span {
  font-size: 0.8rem;
  background: var(--ice);
  color: var(--cobalt);
  padding: 4px 10px;
  border-radius: 4px;
}

/* Themes */
.theme-grid { display: flex; flex-direction: column; gap: 24px; }
.theme-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
}
.theme-header { margin-bottom: 12px; }
.theme-header h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 4px; }
.theme-header p { font-size: 0.85rem; color: var(--text-muted); }
.theme-covers { display: flex; gap: 12px; overflow-x: auto; }
.theme-covers img {
  width: 90px;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Route */
.watch-route { display: flex; flex-direction: column; gap: 16px; }
.route-step {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.route-step-num {
  font-family: monospace;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--cobalt);
  background: var(--ice);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.route-step-cover {
  width: 50px; aspect-ratio: 2/3;
  border-radius: 4px; overflow: hidden;
}
.route-step-cover img { width: 100%; height: 100%; object-fit: cover; }
.route-step-info h3 { font-size: 0.95rem; color: var(--navy); }

/* Experience */
.exp-box {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.exp-ui {
  background: var(--ice);
  border-radius: 6px;
  padding: 16px;
  border: 1px solid var(--border);
}
.exp-bar { height: 6px; background: var(--border); border-radius: 3px; margin: 8px 0; overflow: hidden; }
.exp-bar-fill { height: 100%; background: var(--cobalt); width: 60%; }
.exp-episodes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.exp-ep {
  width: 24px; height: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.exp-ep.active { background: var(--cobalt); color: var(--white); border-color: var(--cobalt); }
.exp-text h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 8px; }
.exp-text p { font-size: 0.9rem; color: var(--text-muted); }

/* Download */
.download {
  background-color: var(--cobalt);
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  margin: 0 20px 60px;
}
.download::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 20px;
  background: repeating-linear-gradient(90deg, transparent, transparent 10px, rgba(255,255,255,0.2) 10px, rgba(255,255,255,0.2) 20px);
}
.download h2 { font-size: 1.6rem; margin-bottom: 16px; }
.download p { margin-bottom: 24px; opacity: 0.9; }
.download .btn-download {
  background-color: var(--white);
  color: var(--cobalt);
  padding: 12px 32px;
  font-size: 1.1rem;
}
.download .btn-download:hover { background-color: var(--ice); }

/* Footer */
.footer {
  background: var(--white);
  padding: 30px 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-brand {
  font-weight: bold;
  color: var(--navy);
  margin-bottom: 12px;
  font-size: 1rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.footer-links a:hover { color: var(--cobalt); }
.footer-meta p { margin-bottom: 4px; }
.footer-meta a { color: var(--text-muted); }
.footer-meta a:hover { color: var(--cobalt); }

/* Responsive */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .mobile-menu-btn { display: none; }
  .mobile-nav { display: none !important; }
  .hero h1 { font-size: 2.5rem; }
  .grid-list { grid-template-columns: repeat(3, 1fr); }
  .route-covers { justify-content: center; overflow: visible; padding: 40px 0; }
  .route-item { flex: 0 0 160px; }
  .route-item.center { flex: 0 0 200px; transform: translateY(-30px); }
  .feature { flex-direction: row; align-items: center; padding: 40px; }
  .feature-cover { width: 220px; margin: 0; }
  .feature-info { text-align: left; flex-grow: 1; padding-left: 30px; }
  .feature-tags { justify-content: flex-start; }
  .theme-grid { display: grid; grid-template-columns: 1fr 1fr; }
  .exp-box { flex-direction: row; align-items: center; }
  .exp-ui { flex: 1; }
  .exp-text { flex: 1; padding-left: 20px; }
  .download { margin: 0 auto 60px; max-width: 800px; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 3rem; }
  .grid-list { grid-template-columns: repeat(4, 1fr); }
  .route-item { flex: 0 0 180px; }
  .route-item.center { flex: 0 0 240px; }
  .theme-grid { grid-template-columns: repeat(4, 1fr); }
  .watch-route { flex-direction: row; overflow-x: auto; padding-bottom: 10px; }
  .route-step { flex-direction: column; text-align: center; flex: 0 0 180px; }
  .route-step-cover { width: 100px; margin-bottom: 10px; }
}