:root { --ink:#20242b; --muted:#858b95; --line:#e9ebef; --video-accent:#a54253; --motion-accent:#4765a4; --editing-accent:#8d659b; --content:1180px; --accent:#4765a4; --accent-strong:#36508a; --accent-soft:#edf1fa; --accent-light:#86a6e8; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:32px; }
body { margin:0; font-family:Inter,"Helvetica Neue",Arial,sans-serif; color:var(--ink); background:#fff; -webkit-font-smoothing:antialiased; }
button,a { -webkit-tap-highlight-color:transparent; }
button { font:inherit; }
a { color:inherit; }
:focus-visible { outline:3px solid var(--accent); outline-offset:5px; }
.hero { position:relative; overflow:hidden; background:linear-gradient(120deg,#132b38 0%,#1c2535 34%,#302339 68%,#422630 100%); color:#f5f5f8; border-bottom:1px solid #30343b; }
.hero::before { content:""; position:absolute; inset:0; pointer-events:none; opacity:.17; background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.22' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
.hero-glow { position:absolute; inset:0; pointer-events:none; background:radial-gradient(ellipse at 8% 10%,#588da728,transparent 52%),radial-gradient(ellipse at 92% 0%,#b6739224,transparent 55%),linear-gradient(180deg,transparent 35%,#11151d66 100%); }
.hero-topbar { position:absolute; z-index:1; top:20px; left:28px; }
.hero-content { position:relative; max-width:var(--content); margin:auto; padding:20px 36px 24px; }
.brand-bar { display:flex; align-items:center; gap:18px; width:max-content; max-width:100%; margin:0; flex-shrink:0; }
.brand-tencent { display:block; width:auto; height:30px; filter:brightness(0) invert(1); }
.brand-solar { display:flex; align-items:center; gap:8px; }
.brand-mark { display:block; width:auto; height:34px; }
.brand-name { color:#fff; font-family:"Arial Narrow","Helvetica Neue",Arial,sans-serif; font-size:15px; font-weight:600; line-height:1.1; letter-spacing:.15px; white-space:nowrap; }
h1 { margin:0; text-align:center; font-weight:600; }
.wordmark { display:block; font-size:clamp(56px,6.4vw,84px); line-height:1.05; letter-spacing:-.045em; font-weight:800; margin-bottom:14px; }
.hero .video-color { color:#e5848f; }
.hero .motion-color { color:#86a6e8; }
.hero .editing-color { color:#c7a3d8; }
.video-color { color:var(--video-accent); }
.motion-color { color:var(--motion-accent); }
.editing-color { color:var(--editing-accent); }
.title-full { display:block; font-size:clamp(22px,2.25vw,32px); line-height:1.3; letter-spacing:-.025em; font-weight:600; }
@media(min-width:1000px) { .title-full { white-space:nowrap; } }
.author-block { margin:25px auto 0; text-align:center; }
.author-list { display:flex; justify-content:center; align-items:baseline; flex-wrap:wrap; gap:10px 26px; font-size:clamp(16px,1.5vw,19px); font-weight:500; color:#f0f1f5; }
.author-list a { text-decoration:none; text-underline-offset:4px; }
.author-list a:hover { text-decoration:underline; }
.author-list sup { margin-left:2px; font-size:.65em; color:#fff; }
.author-note { margin:7px 0 0; font-size:12px; color:#aeb9c9; }
.paper-links { display:flex; justify-content:center; flex-wrap:wrap; gap:12px; margin:16px 0 0; }
.paper-link { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:8px 18px; border:2px solid #ffffff80; border-radius:999px; background:#ffffff29; color:#fff; text-decoration:none; font-size:16px; line-height:1.25; font-weight:600; transition:background .18s,border-color .18s; }
.paper-link svg { width:1.25em; height:1.25em; flex:none; }
.paper-link:hover { background:#ffffff3b; border-color:#ffffffb3; }
.paper-link:focus-visible { outline:2px solid #c5b4ff; outline-offset:4px; }
.teaser { max-width:980px; margin:26px auto 0; }
.teaser-pair { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:14px; }
.teaser-label { margin:0 0 9px; text-align:center; font-size:14px; font-weight:600; color:#b9bfc9; }
.teaser-label.ours { color:var(--accent-light); }
.teaser-frame { aspect-ratio:3/2; border-radius:12px; overflow:hidden; background:#000; border:1px solid #ffffff1f; box-shadow:0 18px 40px #0006; }
.teaser-frame.ours { border:2px solid var(--accent-light); }
.teaser-video { display:block; width:100%; height:100%; object-fit:cover; }
.teaser-arrow { padding-top:26px; font-size:24px; color:#ffffff59; }
.teaser-instruction { margin:20px auto 0; max-width:820px; text-align:center; font-size:19px; font-style:italic; line-height:1.5; color:#f2f3f6; }
.hero-nav { display:flex; justify-content:center; align-items:center; gap:12px; margin:24px 0 0; flex-wrap:wrap; }
.hero-nav a { display:inline-flex; align-items:center; justify-content:center; padding:9px 14px; border:1px solid #ffffff24; border-radius:999px; background:#ffffff08; font-size:14px; font-weight:600; text-decoration:none; color:#d1d5dc; transition:color .2s,background .2s,border-color .2s; }
.hero-nav a:hover { color:white; background:#ffffff14; border-color:#ffffff45; }
.overview-intro { max-width:820px; margin:0 auto 30px; text-align:center; color:#4a525d; font-size:17px; line-height:1.7; }
.overview-block { margin:0; }
.overview-scroll { overflow-x:auto; }
.overview-figure { display:block; width:100%; min-width:760px; height:auto; }
.overview-caption { max-width:860px; margin:16px auto 0; text-align:center; color:#69717d; font-size:14px; line-height:1.7; }
.overview-caption strong { color:#3a414b; font-weight:600; }
main { max-width:var(--content); margin:auto; padding:0 36px; }
.demo-section { padding:64px 0 54px; border-bottom:1px solid var(--line); }
.demo-section:last-child { border-bottom:0; }
.section-heading { display:flex; align-items:center; justify-content:center; text-align:center; margin-bottom:24px; gap:15px; }
.section-heading h2 { font-size:clamp(25px,3vw,34px); font-weight:600; letter-spacing:-.045em; line-height:1.15; margin:0; }

/* Thumbnail navigation: independent scrollable strips; Versatile shows VMEBench | More Applications side by side */
.thumb-strips { display:grid; grid-template-columns:var(--strip-cols, 1fr); gap:28px; margin:0 0 18px; }
.thumb-strip { min-width:0; }
.thumb-strip + .thumb-strip { padding-left:28px; border-left:1px solid var(--line); }
.thumb-group-title { margin:0 0 8px; text-align:center; font-size:12px; font-weight:650; letter-spacing:.06em; text-transform:uppercase; color:#6b7480; }
.thumb-strip-body { display:flex; align-items:center; gap:6px; }
.thumb-scroll { position:relative; flex:1; min-width:0; display:flex; gap:8px; overflow-x:auto; padding:4px 2px 10px; scrollbar-width:thin; scrollbar-color:#d5dae0 transparent; }
.thumb-scroll > :first-child { margin-left:auto; }
.thumb-scroll > :last-child { margin-right:auto; }
.carousel-dot { flex:0 0 auto; width:96px; padding:0; border:2px solid transparent; border-radius:9px; background:none; cursor:pointer; opacity:.62; filter:saturate(.55); transition:opacity .2s,filter .2s,border-color .2s; }
.carousel-dot img { display:block; width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:7px; background:#e9ecef; }
.carousel-dot:hover { opacity:.9; filter:none; }
.carousel-dot[aria-current="true"] { opacity:1; filter:none; border-color:var(--accent); }
.thumb-nav { display:none; flex:0 0 auto; width:28px; height:28px; margin-bottom:6px; border:1px solid #dfe3e8; border-radius:50%; background:#fff; color:#5b6470; font-size:18px; line-height:1; cursor:pointer; }
.thumb-strip.has-overflow .thumb-nav { display:grid; place-items:center; }
.thumb-nav:hover:not(:disabled) { background:var(--accent-soft); border-color:#cbd6ee; color:var(--accent-strong); }
.thumb-nav:disabled { opacity:.35; cursor:default; }

/* Slides */
.carousel-track { border-radius:18px; }
.slide { padding:24px; border:1px solid #e5e8ed; border-radius:18px; background:#fbfcfd; }
.slide[hidden] { display:none; }
.instruction-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:10px 16px; margin:0 0 22px; text-align:center; }
.instruction-text { margin:0; max-width:860px; font-size:20px; font-weight:500; font-style:italic; line-height:1.5; color:#1f242b; }
.edit-types { display:flex; flex-wrap:wrap; justify-content:center; gap:7px; }
.edit-type { display:inline-flex; align-items:center; padding:5px 9px; border-radius:8px; font-size:12px; font-weight:600; line-height:1.4; white-space:nowrap; }
.edit-type.temporal { background:#eaf1fc; color:#315f95; }
.edit-type.intensity { background:#fbefdf; color:#97571e; }
.edit-type.spatial { background:#fcebee; color:#9c3a4d; }
.edit-type.replacement { background:#f0eafa; color:#69508c; }

/* Video grid: fixed square frames per module; the video is centered inside at its own ratio, the rest shows the card background */
.media-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
.media-grid.rounds,.media-grid.comparisons { grid-template-columns:repeat(4,minmax(0,1fr)); }
.media-panel { display:flex; flex-direction:column; align-items:center; min-width:0; }
.media-label { display:flex; align-items:center; justify-content:center; min-height:26px; font-size:15px; font-weight:600; color:#69717d; }
.media-label.ours { color:var(--accent-strong); }
.media-label.ours-main { padding:3px 12px; border-radius:999px; background:var(--accent); color:#fff; }
/* Fixed per-module frame (aspect --box-ar, set in app.js) plus a label slot on top; each video is centered with its label right above it */
/* Versatile: fixed stage height (module height never changes between samples); each clip is fitted inside
   column-width x stage-height at its own aspect ratio, so landscape clips fill the width and portrait/square clips fill the height */
.media-grid.single-edits { --stage-h:clamp(260px, calc(100vh - 460px), 460px); }
.media-grid.single-edits .video-area { aspect-ratio:auto; height:var(--stage-h); }
.media-grid.single-edits .video-stack { width:min(100%, calc(var(--stage-h) * var(--ar))); }
.real-video-frame { width:100%; padding-top:38px; }
/* Multi-round clips are all portrait; cap the frame so per-video area (~44k px²) sits between Comparison (~37k) and Versatile (~55k) */
.media-grid.rounds .real-video-frame { max-width:160px; margin-inline:auto; }
.video-area { aspect-ratio:var(--box-ar, 1); display:flex; align-items:center; justify-content:center; }
.video-stack { position:relative; width:var(--w, 100%); }
.video-stack .media-label { position:absolute; bottom:100%; left:50%; transform:translateX(-50%); margin-bottom:8px; white-space:nowrap; }
.video-box { position:relative; aspect-ratio:var(--ar); width:100%; background:#000; border:1px solid #dce2e8; border-radius:10px; overflow:hidden; }
.video-box.ours { border:2px solid var(--accent); box-shadow:0 6px 18px #4765a426; }
.video-box video { display:block; width:100%; height:100%; object-fit:cover; background:#000; }
.media-state { position:absolute; right:7px; bottom:7px; color:white; background:#0009; border-radius:4px; font-size:10px; padding:3px 5px; }
.media-state:empty { display:none; }
.round-caption { margin:12px 0 0; max-width:100%; text-align:center; font-size:15px; font-style:italic; line-height:1.55; color:#2f3640; }
.baseline-note { max-width:none; margin:16px auto 0; text-align:center; font-size:13px; line-height:1.7; color:#6b7480; }
.baseline-note strong { color:#3a414b; font-weight:600; }

/* BibTeX */
.bibtex-block { position:relative; max-width:860px; margin:0 auto; border:1px solid #e5e8ed; border-radius:14px; background:#fbfcfd; }
.bibtex-block pre { margin:0; padding:22px 26px; overflow-x:auto; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:14px; line-height:1.65; color:#2f3640; }
.bibtex-copy { position:absolute; top:12px; right:12px; padding:5px 12px; border:1px solid #dce3e8; border-radius:7px; background:#fff; color:#465564; font-size:12px; cursor:pointer; transition:background .2s,color .2s; }
.bibtex-copy:hover { background:var(--accent-soft); color:var(--accent-strong); }

/* Playback controls */
.playback-bar { display:flex; align-items:center; gap:12px; margin-top:22px; border-top:1px solid #e7eaef; padding-top:17px; }
.playback-bar button { cursor:pointer; padding:7px 13px; border:1px solid #dce3e8; border-radius:7px; color:#465564; background:white; font-size:12px; }
.playback-bar button:hover { background:var(--accent-soft); }
.group-seek { flex:1; min-width:30px; accent-color:var(--accent); }
.group-time { font-size:11px; min-width:65px; color:#808995; font-variant-numeric:tabular-nums; }
.group-loop,.group-autoplay { display:inline-flex; align-items:center; gap:5px; white-space:nowrap; font-size:12px; color:#536675; cursor:pointer; }
.group-loop input,.group-autoplay input { accent-color:var(--accent); cursor:pointer; }

@media(max-width:1000px) {
 .hero-topbar { position:relative; top:auto; left:auto; padding:16px 22px 0; }
 .hero-nav { gap:8px; }
 .hero-nav a { font-size:12px; padding:8px 11px; }
}
@media(max-width:700px) {
 .hero-topbar { padding:16px 16px 0; }
 .hero-content { padding:22px 22px 20px; }
 .brand-bar { gap:12px; }
 .brand-tencent { height:23px; }
 .brand-mark { height:27px; }
 .brand-solar { gap:6px; }
 .brand-name { font-size:12px; }
 .wordmark { font-size:56px; margin-bottom:12px; }.title-full { font-size:22px; }
 .hero-nav { width:100%; justify-content:center; gap:7px; margin:22px 0 0; }.hero-nav a { font-size:11px; padding:8px 10px; }
 .overview-intro { font-size:15px; margin-bottom:22px; }
 .teaser-pair { gap:8px; grid-template-columns:repeat(2,minmax(0,1fr)); } .teaser-arrow { display:none; } .teaser-label { font-size:12px; } .teaser-instruction { font-size:16px; }
 main { padding:0 20px; }.demo-section { padding:40px 0 35px; }
 .thumb-strips { grid-template-columns:1fr; gap:14px; } .thumb-strip + .thumb-strip { padding-left:0; border-left:0; } .carousel-dot { width:78px; } .thumb-strip.has-overflow .thumb-nav { display:none; }
 .slide { padding:15px; }
 .instruction-text { font-size:16px; } .instruction-head { margin-bottom:16px; }
 .media-grid { gap:10px; } .media-grid.rounds,.media-grid.comparisons { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 10px; }
 .media-label { font-size:13px; } .real-video-frame { padding-top:34px; } .round-caption { font-size:13px; }
 .media-grid.single-edits { --stage-h:240px; }
 .playback-bar { gap:7px; flex-wrap:wrap; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } * { transition:none!important; } }
