:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0b1728;
  --panel: #0f1d30;
  --panel-2: #13243a;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f7fb;
  --muted: #9badc2;
  --teal: #2dd4bf;
  --coral: #ff7c5c;
  --gold: #f5c967;
  --max: 1240px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; transform: translateY(-160%); background: #fff; color: #111; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(7, 17, 31, 0.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.header-inner { max-width: var(--max); margin: 0 auto; min-height: 74px; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 20px; font-weight: 800; text-decoration: none; white-space: nowrap; letter-spacing: -0.03em; }
.brand > span:last-child > span { color: var(--teal); }
.brand-mark { position: relative; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(45,212,191,.45); border-radius: 11px; background: linear-gradient(145deg, rgba(45,212,191,.22), rgba(255,124,92,.16)); box-shadow: 0 8px 24px rgba(45,212,191,.12); }
.brand-mark span { width: 0; height: 0; margin-left: 2px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid var(--coral); }
.brand-mark.small { width: 30px; height: 30px; border-radius: 9px; }
.main-nav { display: flex; align-items: center; gap: 6px; flex: 1; }
.nav-link { position: relative; border: 0; background: transparent; padding: 25px 10px 23px; color: var(--muted); cursor: pointer; font-size: 14px; }
.nav-link::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: var(--teal); transition: .2s ease; transform: translateX(-50%); }
.nav-link:hover, .nav-link:focus-visible, .nav-link.active { color: var(--text); }
.nav-link.active::after { width: 24px; }
.search { width: 250px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); transition: .2s ease; }
.search:focus-within { border-color: rgba(45,212,191,.55); box-shadow: 0 0 0 3px rgba(45,212,191,.08); }
.search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 10px 2px 10px 16px; background: transparent; color: var(--text); font-size: 14px; }
.search input::placeholder { color: #72849a; }
.search button, .mobile-search { width: 42px; height: 42px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.search svg, .mobile-search svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.mobile-search { display: none; }

main { max-width: var(--max); margin: 0 auto; padding: 26px 24px 72px; }
.hero { position: relative; min-height: 470px; overflow: hidden; border-radius: 24px; border: 1px solid rgba(255,255,255,.12); background: var(--panel); box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,10,18,.96) 0%, rgba(4,10,18,.82) 38%, rgba(4,10,18,.16) 74%), linear-gradient(0deg, rgba(4,10,18,.45), transparent 54%); }
.hero-content { position: relative; z-index: 2; width: min(500px, 62%); padding: 76px 0 64px 64px; }
.eyebrow, .section-kicker { margin: 0 0 10px; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #d6fff9; }
.eyebrow span { width: 24px; height: 2px; background: var(--teal); }
.hero h1 { margin: 0; font-size: clamp(40px, 5vw, 68px); line-height: 1.08; letter-spacing: -.05em; }
.hero-content > p:not(.eyebrow) { color: #c6d2df; margin: 20px 0 15px; max-width: 460px; }
.hero-meta { display: flex; gap: 18px; color: #a8b7c7; font-size: 13px; }
.hero-meta span + span::before { content: "•"; margin-right: 18px; color: var(--coral); }
.primary-button, .ghost-button { border: 0; border-radius: 12px; cursor: pointer; font-weight: 750; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.primary-button { margin-top: 28px; display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; background: var(--coral); color: #160b08; box-shadow: 0 12px 30px rgba(255,124,92,.24); }
.primary-button svg { width: 18px; fill: currentColor; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(255,124,92,.34); }
.hero-index { position: absolute; z-index: 2; right: 28px; bottom: 24px; display: flex; align-items: baseline; gap: 6px; color: rgba(255,255,255,.55); }
.hero-index strong { font-size: 28px; color: #fff; }

.quick-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 2px 10px; }
.quick-scroll { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.quick-scroll::-webkit-scrollbar { display: none; }
.filter-chip { border: 1px solid var(--line); background: rgba(255,255,255,.035); color: var(--muted); padding: 8px 14px; border-radius: 999px; white-space: nowrap; cursor: pointer; font-size: 14px; transition: .18s ease; }
.filter-chip:hover, .filter-chip:focus-visible { border-color: rgba(45,212,191,.45); color: var(--text); }
.filter-chip.active { color: #07111f; border-color: var(--teal); background: var(--teal); font-weight: 750; }
.free-note { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.free-note span { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(45,212,191,.1); }

.video-section { padding-top: 30px; }
.section-heading { margin-bottom: 20px; display: flex; align-items: flex-end; justify-content: space-between; }
.section-heading h2, .editor-pick h2 { margin: 0; font-size: clamp(28px, 3vw, 38px); line-height: 1.2; letter-spacing: -.04em; }
.section-heading > p { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 18px; }
.video-card { min-width: 0; }
.poster { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 15px; background: var(--panel); border: 1px solid rgba(255,255,255,.08); cursor: pointer; isolation: isolate; }
.poster::before, .poster::after { content: ""; position: absolute; border-radius: 999px; filter: blur(1px); opacity: .86; }
.poster::before { width: 66%; aspect-ratio: 1; right: -15%; top: -38%; background: var(--poster-a); }
.poster::after { width: 46%; aspect-ratio: 1; left: -10%; bottom: -35%; background: var(--poster-b); }
.poster-pattern { position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.07) 31%, transparent 32%), linear-gradient(160deg, rgba(255,255,255,.08), transparent 45%); background-size: 24px 24px, auto; }
.poster-number { position: absolute; left: 16px; top: 14px; font: 800 12px/1 monospace; letter-spacing: .1em; color: rgba(255,255,255,.68); }
.poster-symbol { position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; opacity: .92; filter: drop-shadow(0 8px 18px rgba(0,0,0,.18)); }
.duration { position: absolute; right: 10px; bottom: 9px; padding: 3px 8px; border-radius: 6px; background: rgba(3,8,14,.76); color: #fff; font-size: 12px; backdrop-filter: blur(8px); }
.play-badge { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(4,10,18,.14); opacity: 0; transition: .22s ease; }
.play-badge span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.92); color: #07111f; transform: translateY(8px) scale(.92); transition: .22s ease; box-shadow: 0 12px 32px rgba(0,0,0,.3); }
.play-badge svg { width: 20px; margin-left: 3px; fill: currentColor; }
.poster:hover .play-badge, .poster:focus-visible .play-badge { opacity: 1; }
.poster:hover .play-badge span, .poster:focus-visible .play-badge span { transform: none; }
.poster:focus-visible { outline: 3px solid rgba(45,212,191,.65); outline-offset: 3px; }
.video-card h3 { margin: 12px 0 3px; font-size: 16px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
.card-meta span:last-child { color: #71849a; }
.empty-state { padding: 70px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 18px; background: rgba(255,255,255,.02); }
.empty-icon { font-size: 38px; color: var(--muted); }
.empty-state h3 { margin: 8px 0 2px; font-size: 22px; }
.empty-state p { margin: 0 0 20px; color: var(--muted); }
.ghost-button { padding: 10px 16px; border: 1px solid var(--line); background: var(--panel-2); }

.editor-pick { margin-top: 76px; padding: 34px 38px; display: flex; align-items: center; justify-content: space-between; gap: 40px; border: 1px solid rgba(45,212,191,.18); border-radius: 20px; background: radial-gradient(circle at 85% 20%, rgba(45,212,191,.14), transparent 30%), linear-gradient(120deg, #0d1c2e, #0a1524); }
.pick-copy { max-width: 610px; }
.pick-copy > p:last-child { margin: 12px 0 0; color: var(--muted); }
.pick-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pick-stats div { min-width: 74px; }
.pick-stats strong, .pick-stats span { display: block; }
.pick-stats strong { font-size: 24px; color: var(--teal); }
.pick-stats span { color: var(--muted); font-size: 12px; }

footer { border-top: 1px solid var(--line); background: #050d17; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 26px 24px; display: flex; align-items: center; gap: 22px; color: #74869a; font-size: 13px; }
.footer-brand { display: flex; align-items: center; gap: 9px; color: var(--text); margin-right: auto; }
.footer-inner p { margin: 0; }

.player-modal[hidden] { display: none; }
.player-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2,7,12,.84); backdrop-filter: blur(14px); }
.player-dialog { position: relative; z-index: 1; width: min(960px, 100%); overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #0b1728; box-shadow: 0 40px 120px rgba(0,0,0,.55); }
.video-frame { aspect-ratio: 16 / 9; background: #000; }
.video-frame video { width: 100%; height: 100%; object-fit: contain; }
.close-button { position: absolute; z-index: 2; right: 12px; top: 12px; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(4,10,18,.64); cursor: pointer; font-size: 26px; line-height: 1; }
.player-info { padding: 20px 24px 23px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.player-info h2 { margin: 0; font-size: 24px; }
.player-info .section-kicker { margin-bottom: 3px; }
.favorite-button { border: 1px solid var(--line); background: rgba(255,255,255,.04); padding: 9px 14px; border-radius: 10px; cursor: pointer; }
.favorite-button[aria-pressed="true"] { border-color: rgba(255,124,92,.45); color: var(--coral); background: rgba(255,124,92,.08); }
body.modal-open { overflow: hidden; }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .search { margin-left: auto; }
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { min-height: 430px; }
  .hero-content { padding-left: 44px; }
  .editor-pick { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 720px) {
  .header-inner { min-height: 64px; padding: 0 16px; }
  .search { display: none; position: absolute; left: 16px; right: 16px; top: 70px; width: auto; background: #101f31; box-shadow: 0 16px 40px rgba(0,0,0,.34); }
  .search.open { display: flex; }
  .mobile-search { display: grid; margin-left: auto; }
  main { padding: 16px 14px 54px; }
  .hero { min-height: 500px; border-radius: 18px; }
  .hero > img { object-position: 67% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(4,10,18,.98) 4%, rgba(4,10,18,.72) 56%, rgba(4,10,18,.12) 100%); }
  .hero-content { width: 100%; padding: 225px 24px 34px; }
  .hero h1 { font-size: 42px; }
  .hero-index { top: 18px; right: 18px; bottom: auto; }
  .quick-row { padding-top: 16px; }
  .free-note { display: none; }
  .video-section { padding-top: 20px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .section-heading > p { display: none; }
  .poster { border-radius: 12px; }
  .video-card h3 { font-size: 14px; }
  .card-meta { font-size: 12px; }
  .editor-pick { margin-top: 54px; padding: 28px 24px; }
  .pick-stats { width: 100%; gap: 14px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
  .footer-brand { margin-bottom: 4px; }
  .player-modal { padding: 12px; }
  .player-info { align-items: flex-start; }
}

@media (max-width: 420px) {
  .hero-content { padding-left: 20px; padding-right: 20px; }
  .hero-content > p:not(.eyebrow) { font-size: 14px; }
  .hero-meta { gap: 9px; }
  .hero-meta span + span::before { margin-right: 9px; }
  .pick-stats strong { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
