
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.06);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Noto Sans SC, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #f8fafc 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}
.page-shell { padding-bottom: 56px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px);
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(226,232,240,.85);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
}
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: .2s ease;
}
.nav a:hover, .nav a.active {
  background: #eff6ff;
  color: var(--primary);
}
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.hero {
  position: relative;
  overflow: hidden;
  margin: 22px auto 0;
  min-height: clamp(520px, 74vh, 820px);
  border-radius: 32px;
  background: #0f172a;
  box-shadow: var(--shadow);
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .85s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.15) 0%, rgba(15,23,42,.62) 56%, rgba(15,23,42,.9) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  min-height: clamp(520px, 74vh, 820px);
  display: flex;
  align-items: center;
  color: white;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 28px;
  align-items: end;
  width: 100%;
  padding: 52px 0;
}
.hero-title {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.04;
  margin: 10px 0 14px;
  max-width: 12ch;
}
.hero-copy {
  max-width: 780px;
  color: rgba(255,255,255,.88);
  font-size: 1.04rem;
  line-height: 1.85;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}
.chip, .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: .2s ease;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  color: white;
  box-shadow: 0 14px 28px rgba(37,99,235,.26);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.16);
  color: white;
}
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.hero-side {
  display: grid;
  gap: 14px;
  align-self: stretch;
}
.hero-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(16px);
}
.hero-card img {
  width: 96px;
  height: 128px;
  object-fit: cover;
  border-radius: 16px;
}
.hero-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.4;
}
.hero-card p {
  margin: 0;
  color: rgba(255,255,255,.80);
  font-size: .88rem;
  line-height: 1.55;
}
.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
  gap: 16px;
}
.hero-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.45);
  cursor: pointer;
}
.hero-dot.active { width: 34px; background: #fff; }
.section {
  padding: 28px 0 0;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.section-head h2, .section-head h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}
.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}
.section-link {
  color: var(--primary);
  font-weight: 600;
}
.grid {
  display: grid;
  gap: 18px;
}
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #e2e8f0;
}
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .poster img { transform: scale(1.06); }
.poster .tag {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(37,99,235,.94);
  color: white;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(37,99,235,.24);
}
.poster .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(15,23,42,.35) 100%);
  opacity: 0;
  transition: opacity .25s ease;
}
.card:hover .poster .play { opacity: 1; }
.play-btn {
  width: 66px;
  height: 66px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 26px rgba(15,23,42,.28);
}
.play-btn:before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 17px solid var(--primary);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 4px;
}
.card-body { padding: 14px 15px 16px; }
.card-title {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-copy {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meta-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #94a3b8;
  font-size: .82rem;
}
.meta-line span { display: inline-flex; gap: 6px; align-items: center; }
.strip {
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  border: 1px solid #dbeafe;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.search, .select {
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: white;
  padding: 0 16px;
  outline: none;
  min-width: 220px;
}
.search { flex: 1 1 280px; }
.select { min-width: 180px; }
.pager {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}
.pager a, .pager span {
  min-width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  padding: 0 12px;
}
.pager a.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.detail {
  padding-top: 20px;
}
.detail-hero {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: start;
}
.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: white;
  border: 1px solid var(--line);
}
.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.detail-info {
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.detail-info h1 {
  margin: 6px 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}
.detail-info .lead {
  color: var(--muted);
  line-height: 1.85;
  margin: 0;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 20px;
}
.detail-meta .chip {
  background: #eff6ff;
  border-color: #dbeafe;
  color: #1d4ed8;
}
.playbox {
  margin-top: 18px;
  background: #0f172a;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}
.playbox .stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}
.playbox video {
  width: 100%;
  height: 100%;
  background: #020617;
  display: block;
}
.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(2,6,23,.15), rgba(2,6,23,.65));
}
.play-cta {
  border: 0;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: white;
  padding: 14px 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 18px 30px rgba(37,99,235,.35);
}
.play-cta:before {
  content: '';
  width: 0;
  height: 0;
  border-left: 13px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
.video-note {
  padding: 14px 18px;
  color: rgba(255,255,255,.84);
  font-size: .92rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.content-card {
  margin-top: 18px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow-soft);
}
.content-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
}
.content-card p {
  margin: 0;
  line-height: 1.9;
  color: var(--text);
}
.footer {
  margin-top: 40px;
  padding: 28px 0 40px;
  color: var(--muted);
}
.footer .line {
  height: 1px;
  background: var(--line);
  margin-bottom: 18px;
}
.footer-links { display:flex; flex-wrap:wrap; gap:12px; margin-top:12px; }
.footer-links a { color: var(--primary); }
.kicker {
  display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px;
  background: #eff6ff; color: var(--primary); font-weight: 700; font-size: .84rem;
}
.muted { color: var(--muted); }
.ranking-list { display:grid; gap:14px; }
.rank-row {
  display:grid;
  grid-template-columns: 84px 1fr auto;
  gap: 16px;
  align-items:center;
  padding: 14px;
  border-radius: 20px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.rank-num {
  width: 52px; height: 52px; border-radius: 18px; display:grid; place-items:center;
  font-weight: 900; color:white; background: linear-gradient(135deg, #2563eb, #60a5fa);
}
.rank-row h3 { margin:0 0 6px; font-size: 1rem; }
.rank-row p { margin:0; color: var(--muted); line-height: 1.6; }
.rank-row .goto { color: var(--primary); font-weight:700; }
.cat-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.cat-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-soft);
}
.cat-card h3 { margin:0 0 8px; }
.cat-card .count { color: var(--primary); font-weight:700; }
.cat-card .preview { display:flex; gap:10px; flex-wrap:wrap; margin-top: 12px; }
.cat-card .preview a { padding: 8px 10px; border-radius: 999px; background:#eff6ff; color:#1d4ed8; font-size:.85rem; }
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-grid, .detail-hero { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .container { width: min(100% - 20px, 1200px); }
  .nav {
    position: fixed;
    left: 10px; right: 10px; top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .menu-btn { display: inline-grid; place-items:center; }
  .grid-4, .grid-3, .grid-2, .cat-grid, .hero-side { grid-template-columns: 1fr; }
  .hero { min-height: 760px; }
  .hero-content { min-height: 760px; }
  .hero-grid { padding: 28px 0 70px; }
  .hero-controls { flex-direction: column; align-items:flex-start; }
  .rank-row { grid-template-columns: 1fr; }
  .rank-num { width: 42px; height: 42px; }
}
