/* CutFocus shared styles: used by the homepage, guides and 404 page */
/* Archivo (SIL Open Font License), self-hosted: weight 400-900, width 62-125 */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('/assets/fonts/archivo-latin.woff2') format('woff2-variations'), url('/assets/fonts/archivo-latin.woff2') format('woff2');
}
:root {
  --panel: #1b1c20;      /* page background, editor-panel graphite */
  --panel-2: #232429;    /* raised surfaces */
  --panel-3: #2b2d33;
  --line: #36383f;
  --ink: #eceae4;        /* main text */
  --ink-2: #a9a7b0;      /* secondary text */
  --gold: #d4af37;       /* CutFocus brand: playhead, primary action */
  --gold-ink: #1d1704;
  --clip-video: #464954; /* timeline clips: muted, so gold stays the only accent */
  --clip-audio: #3a4642;
  --clip-ref: #4f4b55;
  --radius: 6px;
  --wrap: 1120px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--panel);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: 'wdth' 100;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--gold) 70%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
.tc { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Display type: condensed Archivo, like a slate or a track header */
.display {
  font-variation-settings: 'wdth' 72;
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.005em;
  margin: 0;
}
h2.display { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 8px; font-weight: 650; }
p { margin: 0 0 14px; }
.muted { color: var(--ink-2); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.1rem; font-variation-settings: 'wdth' 80; letter-spacing: 0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { text-decoration: none; color: var(--ink-2); font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.nav-tog { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.nav-burger { display: none; }
@media (max-width: 760px) {
  .site-header .wrap { flex-wrap: wrap; height: auto; gap: 12px; row-gap: 0; padding-top: 8px; padding-bottom: 8px; }
  .site-header .btn { margin-left: auto; }
  .nav-burger { display: grid; place-content: center; gap: 4px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; flex: none; }
  .nav-burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-tog:checked + .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-tog:checked + .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-tog:checked + .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-header .wrap > .btn { order: 2; }
  .nav-burger { order: 3; }
  .site-nav { display: none; order: 4; width: 100%; margin: 0; flex-direction: column; gap: 0; padding: 4px 0 12px; }
  .nav-tog:checked ~ .site-nav { display: flex; }
  .site-nav a { font-size: 1.05rem; padding: 13px 2px; border-top: 1px solid var(--line); color: var(--ink); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: var(--radius); font-weight: 650; text-decoration: none; font-size: 1rem; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--gold); color: var(--gold-ink); }
.btn-primary:hover { background: #e2c04e; color: var(--gold-ink); }
.btn-quiet { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-quiet:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-sm { padding: 8px 14px; font-size: 0.92rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 40px 0 56px; color: var(--ink-2); font-size: 0.95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 0.95rem; color: var(--ink); margin: 0 0 10px; font-weight: 650; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Long-form pages (guides) */
.prose { max-width: 68ch; }
.prose h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); margin: 12px 0 20px; }
.prose h2 { font-size: 1.45rem; margin: 40px 0 10px; font-weight: 700; line-height: 1.25; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose .lead { font-size: 1.2rem; color: var(--ink); line-height: 1.55; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.crumbs { font-size: 0.9rem; color: var(--ink-2); padding-top: 36px; }
.crumbs a { color: var(--ink-2); }
.page-meta { color: var(--ink-2); font-size: 0.92rem; margin-bottom: 28px; }
.aside-cta { margin-top: 48px; border-left: 3px solid var(--gold); background: var(--panel-2); padding: 22px 24px; border-radius: 0 var(--radius) var(--radius) 0; }
.aside-cta p { color: var(--ink-2); }
.aside-cta strong { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: 6px; }
.guide-list { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.guide-list li { border-bottom: 1px solid var(--line); margin: 0; }
.guide-list a { display: block; padding: 20px 0; text-decoration: none; }
.guide-list a strong { display: block; font-size: 1.2rem; color: var(--ink); margin-bottom: 4px; }
.guide-list a span { color: var(--ink-2); }
.guide-list a:hover strong { color: var(--gold); }

/* ======================================================================
   Motion vignettes (homepage feature rows, plan pages)
   Illustrations of what each feature does, not screenshots of the app.
   They only animate while visible (.on, set by /assets/motion.js).
   ====================================================================== */
.vig { position: relative; height: 136px; background: #141518; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 24px; }
.vig-label { position: absolute; left: 14px; top: 11px; font-size: 0.78rem; color: #8c8a94; display: flex; align-items: center; gap: 8px; z-index: 2; }
.vig-label .tc { color: var(--ink-2); }

/* Sound: listening to a preview */
.vig-sound { display: flex; align-items: center; gap: 16px; padding: 30px 18px 14px; }
.play { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center; position: relative; }
.play::before { content: ""; width: 0; height: 0; border-left: 12px solid var(--gold); border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.vig.on:not(.done) .play::before { width: 11px; height: 14px; border: 0; margin-left: 0; background: linear-gradient(90deg, var(--gold) 0 35%, transparent 35% 65%, var(--gold) 65%); }
.play::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; }
.vig.on .play::after { animation: ring 1.8s ease-out 2; }
@keyframes ring { from { opacity: .55; transform: scale(.85); } to { opacity: 0; transform: scale(1.25); } }
.wave2 { position: relative; flex: 1; height: 64px; }
.wave2 .bars { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; }
.wave2 .bars i { flex: 1; border-radius: 1px; background: #4a4d57; }
.wave2 .bars.lit i { background: var(--gold); }
.wave2 .bars.lit { clip-path: inset(0 100% 0 0); z-index: 1; }
.wave2 .cursor { z-index: 2; }
.vig.on .wave2 .bars.lit { animation: listen 4s linear 1 forwards; }
@keyframes listen { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.wave2 .cursor { position: absolute; top: -4px; bottom: -4px; width: 1.5px; background: var(--ink); left: 0; opacity: 0; }
.vig.on .wave2 .cursor { animation: cursor 4s linear 1 forwards; }
@keyframes cursor { 0% { left: 0; opacity: 1; } 97% { left: 100%; opacity: 1; } 100% { left: 100%; opacity: 0; } }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 10px; }
.eq b { width: 2px; height: 3px; background: var(--gold); }
.vig.on:not(.done) .eq b { animation: eq .7s ease-in-out infinite alternate; }
.vig.on .eq b:nth-child(2) { animation-delay: .2s; } .vig.on .eq b:nth-child(3) { animation-delay: .4s; }
@keyframes eq { from { height: 3px; } to { height: 10px; } }

/* Stock: a stock-site results grid that keeps scrolling (the only looping motion) */
.vig-grid { height: 300px; }
.vig-grid .sbar { position: absolute; left: 12px; right: 12px; top: 10px; height: 36px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: #1f2025; border: 1px solid #3b3d45; border-radius: 6px; z-index: 3; font-size: 0.9rem; }
.vig-grid .sbar svg { width: 15px; height: 15px; color: var(--ink-2); flex: none; }
.vig-grid .sbar .q { color: #8c8a94; }
.vig-grid .sbar .caret { width: 1px; height: 16px; background: var(--gold); margin-left: -6px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.vig-grid .sbar .src { margin-left: auto; color: #8c8a94; font-size: 0.78rem; white-space: nowrap; }
.vig-grid .viewport { position: absolute; left: 12px; right: 12px; top: 56px; bottom: 0; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18px, #000 80%, transparent); mask-image: linear-gradient(180deg, transparent 0, #000 18px, #000 80%, transparent); }
.vig-grid .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; will-change: transform; }
.vig-grid .cols { animation: rise 40s linear infinite; }
@keyframes rise { to { transform: translateY(-50%); } }
.vig-grid .col { display: flex; flex-direction: column; gap: 8px; }
.tile { position: relative; border-radius: 5px; overflow: hidden; background: #2a2c32; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .dur { position: absolute; right: 6px; bottom: 6px; font-size: 0.7rem; color: #fff; background: rgba(0,0,0,.6); padding: 1px 5px; border-radius: 3px; font-variant-numeric: tabular-nums; }
.tile.pick { outline: 2px solid var(--gold); outline-offset: -2px; }
.tile.pick::after { content: "Preview"; position: absolute; left: 6px; top: 6px; font-size: 0.7rem; background: var(--gold); color: var(--gold-ink); padding: 1px 6px; border-radius: 3px; font-weight: 650; }
.t1 { aspect-ratio: 16/10; background: linear-gradient(180deg, #2c3552, #8b6a5c 70%, #c99a68); }
.t2 { aspect-ratio: 4/5; background: radial-gradient(circle at 45% 40%, #c79a62 0 18%, transparent 19%), radial-gradient(ellipse at 50% 85%, #6a7f4a 0 40%, transparent 41%), linear-gradient(180deg, #9fb7c9, #c8d6b8); }
.t3 { aspect-ratio: 16/9; background: linear-gradient(180deg, #8fb0c4, #c7d6dc 48%, #2d5f73 50%, #173a4a); }
.t4 { aspect-ratio: 1/1; background: radial-gradient(circle at 70% 35%, #e0b98a 0 12%, transparent 13%), linear-gradient(160deg, #5a4535, #2a211b); }
.t5 { aspect-ratio: 4/3; background: linear-gradient(180deg, #1d2a22, #3c5a3f 60%, #24382a); }
.t6 { aspect-ratio: 3/4; background: linear-gradient(135deg, #2a1f3d, #5b3a63 55%, #b0567a); }
.t7 { aspect-ratio: 16/10; background: linear-gradient(180deg, #d9dde2, #9aa3ad 70%, #6b737c); }
.t8 { aspect-ratio: 4/5; background: radial-gradient(circle at 50% 45%, #e6c08c 0 16%, transparent 17%), linear-gradient(180deg, #3d4a5c, #1c2430); }
@media (max-width: 600px) { .vig-grid { height: 260px; } .vig-grid .cols { grid-template-columns: repeat(2, 1fr); } .vig-grid .col:nth-child(3) { display: none; } }

/* References: a saved second you can jump back to */
.vig-ref { padding: 0 18px; }
.ref-track { position: absolute; left: 18px; right: 18px; top: 72px; height: 4px; background: #33353c; border-radius: 2px; }
.ref-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 62%; background: #6b6d75; border-radius: 2px; }
.ref-mark { position: absolute; left: 62%; top: -22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ref-mark span { font-size: 0.74rem; color: var(--gold); white-space: nowrap; font-weight: 600; }
.ref-mark i { width: 2px; height: 14px; background: var(--gold); }
.ref-head { position: absolute; top: -6px; left: 62%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px rgba(236,234,228,.12); }
.vig.on .ref-fill { animation: rfill 5s cubic-bezier(.4,0,.2,1) 1 forwards; }
.vig.on .ref-head { animation: rhead 5s cubic-bezier(.4,0,.2,1) 1 forwards; }
@keyframes rfill { 0% { width: 4%; } 60% { width: 92%; } 72% { width: 92%; } 84%, 100% { width: 62%; } }
@keyframes rhead { 0% { left: 4%; } 60% { left: 92%; } 72% { left: 92%; } 84%, 100% { left: 62%; } }
.ref-times { position: absolute; left: 18px; right: 18px; top: 92px; display: flex; justify-content: space-between; font-size: 0.74rem; color: #7d7b85; }
.ref-jump { position: absolute; right: 18px; top: 11px; font-size: 0.78rem; color: var(--ink-2); opacity: 1; }
.vig.on .ref-jump { animation: rjump 5s ease 1 forwards; }
@keyframes rjump { 0%, 72% { opacity: .25; } 84%, 100% { opacity: 1; color: var(--gold); } }

/* Notes: lines written for the next pass */
.vig-notes { padding: 34px 18px 0; }
.note { display: flex; align-items: center; gap: 10px; height: 28px; font-size: 0.92rem; color: var(--ink); }
.note i { flex: none; width: 12px; height: 12px; border: 1.5px solid #6b6d75; border-radius: 3px; }
.note span { white-space: nowrap; overflow: hidden; clip-path: inset(0 0 0 0); }
.vig.on .note span { animation: type 1.6s steps(28, end) 1 both; }
.vig.on .note:nth-child(3) span { animation-delay: 1.9s; }
.vig.on .note:nth-child(4) span { animation-delay: 3.8s; }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Startup: editor starts, CutFocus follows */
.vig-start { padding: 34px 18px 0; }
.boot { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 12px; height: 34px; font-size: 0.92rem; }
.boot .dot { width: 8px; height: 8px; border-radius: 50%; background: #4a4d57; }
.boot small { color: #8c8a94; font-size: 0.8rem; }
.boot-link { margin: 0 0 0 3px; width: 2px; height: 18px; background: #33353c; position: relative; overflow: hidden; }
.boot-link::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 0; background: var(--gold); }
.vig.on .boot.b1 .dot { animation: on1 3.2s ease 1 forwards; }
.vig.on .boot-link::after { animation: link 3.2s ease 1 forwards; }
.vig.on .boot.b2 .dot { animation: on2 3.2s ease 1 forwards; }
.vig.on .boot.b2 small { animation: ready 3.2s ease 1 forwards; }
@keyframes on1 { 0%, 10% { background: #4a4d57; } 18%, 100% { background: var(--ink); } }
@keyframes link { 0%, 22% { height: 0; } 50%, 100% { height: 100%; } }
@keyframes on2 { 0%, 50% { background: #4a4d57; box-shadow: none; } 62%, 100% { background: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,55,.18); } }
@keyframes ready { 0%, 52% { opacity: .35; } 64%, 100% { opacity: 1; color: var(--gold); } }

/* Static, complete states when motion is reduced */
@media (prefers-reduced-motion: reduce) {
  .vig *, .vig *::before, .vig *::after { animation: none !important; }
  .wave2 .bars.lit { clip-path: inset(0 40% 0 0); }
  .note span { clip-path: none; }
  .boot.b1 .dot { background: var(--ink); }
  .boot.b2 .dot { background: var(--gold); }
  .boot-link::after { height: 100%; }
}

/* ======================================================================
   Plan pages
   ====================================================================== */
.plan-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; column-gap: 64px; row-gap: 40px; align-items: start; padding: 64px 0 24px; }
.plan-hero .buybox { grid-column: 2; grid-row: 1 / span 2; }
.plan-hero .hero-vig { grid-column: 1; grid-row: 2; max-width: 560px; margin: 0; }
.plan-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); max-width: 15ch; text-wrap: balance; }
.plan-hero .lede { color: var(--ink-2); font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: 50ch; margin: 24px 0 0; }
.kicker { display: block; font-size: 0.9rem; color: var(--gold); margin-bottom: 14px; font-weight: 550; }
.buybox { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 28px; position: sticky; top: 86px; }
.buybox .bb-name { font-weight: 650; font-size: 1.05rem; }
.buybox .bb-price { font-size: 3.2rem; font-weight: 700; font-variation-settings: 'wdth' 78; line-height: 1; margin: 14px 0 6px; }
.buybox .bb-price small { font-size: 1rem; font-weight: 450; color: var(--ink-2); font-variation-settings: 'wdth' 100; }
.buybox .bb-math { color: var(--gold); font-size: 0.92rem; margin: 0 0 18px; }
.buybox ul { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid var(--line); }
.buybox li { padding: 11px 0 11px 26px; border-bottom: 1px solid #2c2e34; color: var(--ink-2); position: relative; font-size: 0.97rem; }
.buybox li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 10px; height: 5px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.buybox li strong { color: var(--ink); font-weight: 600; }
.buybox .btn { width: 100%; justify-content: center; padding: 14px 20px; font-size: 1.05rem; }
.buybox .bb-safe { font-size: 0.85rem; color: #8c8a94; margin: 12px 0 0; text-align: center; }
.buybox .bb-try { font-size: 0.92rem; color: var(--ink-2); margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .plan-hero { grid-template-columns: 1fr; row-gap: 32px; padding-top: 40px; } .plan-hero .buybox, .plan-hero .hero-vig { grid-column: 1; grid-row: auto; } .buybox { position: static; } }

/* An example session: the experience, beat by beat */
.session { margin-top: 8px; }
.session-bar { position: relative; height: 54px; margin-bottom: 8px; }
.session-bar .rail { position: absolute; left: 0; right: 0; top: 30px; height: 2px; background: var(--line); }
.session-bar .done { position: absolute; left: 0; top: 30px; height: 2px; background: var(--gold); width: calc(var(--sp, 1) * 100%); }
.session-bar .head { position: absolute; top: 14px; bottom: 0; width: 2px; background: var(--gold); left: calc(var(--sp, 1) * 100%); }
.session-bar .head::before { content: ""; position: absolute; top: 0; left: -6px; border: 7px solid transparent; border-top: 9px solid var(--gold); }
.session-bar .tick { position: absolute; top: 25px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--panel); border: 2px solid #5b5d66; transition: border-color .3s, background .3s; }
.session-bar .tick.hit { border-color: var(--gold); background: var(--gold); }
.beats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.beats li { padding-top: 6px; transition: opacity .4s; }
.js .session:not(.played) .beats li:not(.hit) { opacity: .45; }
.beats time { display: block; color: var(--gold); font-weight: 600; font-size: 0.92rem; margin-bottom: 8px; }
.beats h3 { font-size: 1.08rem; margin-bottom: 6px; }
.beats p { color: var(--ink-2); font-size: 0.95rem; margin: 0; }
@media (max-width: 900px) {
  .session-bar { display: none; }
  .beats { grid-template-columns: 1fr; gap: 0; border-left: 2px solid var(--line); }
  .beats li { padding: 14px 0 14px 22px; position: relative; }
  .beats li::before { content: ""; position: absolute; left: -7px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: var(--panel); border: 2px solid var(--gold); }
  .js .session:not(.played) .beats li:not(.hit) { opacity: 1; }
}

/* Included list */
.included { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; border-top: 1px solid var(--line); }
.included div { padding: 18px 0; border-bottom: 1px solid #2c2e34; }
.included h3 { font-size: 1.05rem; margin-bottom: 4px; }
.included p { color: var(--ink-2); margin: 0; font-size: 0.97rem; }
@media (max-width: 760px) { .included { grid-template-columns: 1fr; } }

/* Plan comparison */
.compare-plans { width: 100%; border-collapse: collapse; }
.compare-plans th, .compare-plans td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-plans th { font-weight: 600; color: var(--ink-2); font-size: 0.92rem; }
.compare-plans td { color: var(--ink-2); }
.compare-plans td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.compare-plans tr.current td { background: color-mix(in srgb, var(--gold) 8%, transparent); }
.compare-plans tr.current td:first-child { box-shadow: inset 2px 0 0 var(--gold); }
.compare-plans .tc { color: var(--ink); font-weight: 600; }
.table-wrap { overflow-x: auto; }
@media (max-width: 700px) {
  .compare-plans thead { display: none; }
  .compare-plans, .compare-plans tbody, .compare-plans tr, .compare-plans td { display: block; width: 100%; }
  .compare-plans tr { padding: 14px 14px; border-bottom: 1px solid var(--line); }
  .compare-plans td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 104px 1fr; gap: 10px; }
  .compare-plans td::before { content: attr(data-label); color: #8c8a94; font-weight: 450; font-size: 0.88rem; }
  .compare-plans td:first-child { font-size: 1.1rem; }
  .compare-plans td:first-child::before { content: none; }
  .compare-plans td:first-child { display: block; margin-bottom: 4px; }
  .compare-plans tr.current td { background: none; }
  .compare-plans tr.current { background: color-mix(in srgb, var(--gold) 8%, transparent); box-shadow: inset 2px 0 0 var(--gold); }
  .compare-plans tr.current td:first-child { box-shadow: none; }
}
.plan-note { color: var(--ink-2); margin-top: 20px; max-width: 70ch; }
.maker { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; max-width: 720px; }
.maker img { width: 56px; height: 56px; border-radius: 12px; }
.maker p { color: var(--ink-2); margin: 0 0 10px; }
.maker strong { color: var(--ink); }

/* ======================================================================
   Interaction: every vignette also answers the visitor
   ====================================================================== */
.vig { transition: border-color .2s; }
.vig:hover { border-color: #4a4c55; }
button.play { appearance: none; background: transparent; padding: 0; cursor: pointer; transition: transform .15s, background .15s; }
button.play:hover { background: rgba(212,175,55,.12); transform: scale(1.06); }
button.play:active { transform: scale(.96); }
.vig-sound .wave2 { cursor: pointer; }

button.ref-jump { appearance: none; background: transparent; border: 1px solid transparent; border-radius: 5px; padding: 2px 8px; margin: -3px -8px 0 0; font: inherit; font-size: 0.78rem; color: var(--ink-2); cursor: pointer; }
button.ref-jump:hover { border-color: #4a4c55; color: var(--gold); }
.vig-ref .ref-track { cursor: pointer; }
.vig-ref .ref-track::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; bottom: -12px; }
.vig-ref.manual .ref-fill, .vig-ref.manual .ref-head, .vig-ref.manual .ref-jump { animation: none !important; }
.vig-ref.manual .ref-fill { transition: width .55s cubic-bezier(.4,0,.2,1); }
.vig-ref.manual .ref-head { transition: left .55s cubic-bezier(.4,0,.2,1); }
.vig-ref.manual .ref-jump { opacity: 1; }

.vig-notes .note { cursor: pointer; border-radius: 5px; margin: 0 -6px; padding: 0 6px; transition: background .15s; }
.vig-notes .note:hover { background: rgba(255,255,255,.04); }
.vig-notes .note i { position: relative; transition: background .15s, border-color .15s; }
.vig-notes .note.done i { background: var(--gold); border-color: var(--gold); }
.vig-notes .note.done i::after { content: ""; position: absolute; left: 3px; top: 0; width: 4px; height: 7px; border: solid var(--gold-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.vig-notes .note.done span { color: #7d7b85; text-decoration: line-through; text-decoration-color: #7d7b85; }

.vig-start { cursor: pointer; }

.tile { transition: outline-color .15s, transform .2s; outline: 2px solid transparent; outline-offset: -2px; cursor: pointer; }
.vig-grid:hover .tile.pick:not(:hover) { outline-color: transparent; }
.vig-grid:hover .tile.pick:not(:hover)::after { display: none; }
.tile:hover { outline-color: var(--gold); }
.tile:hover::after { content: "Preview"; position: absolute; left: 6px; top: 6px; font-size: 0.7rem; background: var(--gold); color: var(--gold-ink); padding: 1px 6px; border-radius: 3px; font-weight: 650; }
.tile.saved::before { content: "Downloaded"; position: absolute; right: 6px; top: 6px; z-index: 2; font-size: 0.7rem; background: rgba(0,0,0,.7); color: var(--gold); padding: 1px 6px; border-radius: 3px; font-weight: 600; }

.timeline { cursor: pointer; touch-action: pan-y; }
.timeline.dragging { cursor: grabbing; }
.stage .hint { display: inline-block; margin-left: 8px; color: #6e6c76; }

.beats li { cursor: pointer; }
.beats li:hover h3 { color: var(--gold); }

/* Stock search: typing filters the photos to the closest matches */
.vig-grid .sbar { cursor: text; }
.vig-grid .sbar input.q { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--ink); font: inherit; font-size: 0.9rem; padding: 0; }
.vig-grid .sbar input.q::placeholder { color: #8c8a94; }
.vig-grid .sbar input.q::-webkit-search-cancel-button { filter: grayscale(1) brightness(1.6); cursor: pointer; }
.vig-grid .sbar:focus-within { border-color: var(--gold); }
.vig-grid .sbar .caret { display: none; }
.vig-grid.searching .cols { animation: none !important; transform: none; }
.vig-grid.searching .col .tile { animation: pop .25s ease-out both; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.tile .tag { position: absolute; left: 6px; bottom: 6px; font-size: 0.68rem; color: #fff; background: rgba(0,0,0,.55); padding: 1px 5px; border-radius: 3px; max-width: calc(100% - 52px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ======================================================================
   Interactive demo (.cfd): a working replica of the CutFocus window
   with sample content. Mirrors the real app's layout and colours.
   ====================================================================== */
.demo-wrap { margin-top: 8px; }
.demo-note { font-size: 0.88rem; color: #85838d; margin-top: 14px; }
.cfd { --a: #22c55e; --a-dim: #16a34a; --a-rgb: 34,197,94; --side: #17181b; --line: #2a2b31; --line2: #34363d; --t2: #a3a3ab; --t3: #6e6c76; position: relative; height: 620px; background: #1b1c20; border: 1px solid #3a3c44; border-radius: 10px; overflow: hidden; color: #fff; font-family: 'Segoe UI Variable', 'Segoe UI', var(--font); font-size: 13px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); user-select: none; }
.cfd button { font: inherit; }
.cfd input, .cfd textarea { font: inherit; user-select: text; }
.cfd [hidden] { display: none !important; }
.cfd-win { height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #141518; border-bottom: 1px solid var(--line); color: #8c8a94; font-size: 12px; }
.cfd-win i { width: 10px; height: 10px; border-radius: 50%; background: #3a3c44; }
.cfd-win span { margin-left: 6px; }

/* topbar */
.cfd-top { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 18px; border-bottom: 1px solid var(--line); background: var(--side); }
.cfd-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .6px; font-size: 13.5px; }
.cfd-brand b { color: #666; font-weight: 500; }
.cfd-badge { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 7px; border-radius: 6px; font-size: 10.5px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: #e9cf7a; background: rgba(212,175,55,.08); border: 1px solid rgba(212,175,55,.38); }
.cfd-badge svg { width: 12px; height: 12px; }
.cfd-badge::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255,240,190,.22), transparent); transform: skewX(-18deg); animation: cfdSweep 5.5s ease-in-out infinite; }
@keyframes cfdSweep { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }
.cfd-controls { display: flex; align-items: center; gap: 10px; }
.cfd-timer { display: inline-flex; align-items: center; gap: 6px; font-family: Consolas, monospace; font-size: 11.5px; font-weight: 600; color: var(--t2); padding: 4px 10px; border-radius: 20px; border: 1px solid var(--line2); background: #1f2024; }
.cfd-timer svg { width: 12px; height: 12px; color: var(--a); }
.cfd-focus { display: inline-flex; align-items: center; gap: 8px; padding: 3px 4px 3px 12px; border: 1px solid var(--line2); border-radius: 22px; background: #1f2024; }
.cfd-status { font-size: 12px; color: var(--t2); white-space: nowrap; }
.cfd-switch { width: 42px; height: 24px; background: #363840; border-radius: 14px; position: relative; cursor: pointer; border: 1px solid #3a3c44; transition: background .25s; padding: 0; flex: none; }
.cfd-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .25s; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.cfd-switch.on { background: var(--a-dim); border-color: var(--a); }
.cfd-switch.on::after { transform: translateX(18px); }

/* shell */
.cfd-shell { position: absolute; top: 82px; left: 0; right: 0; bottom: 0; display: flex; }
.cfd-nav { width: 190px; flex: none; border-right: 1px solid var(--line); background: var(--side); padding: 12px 9px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.cfd-nav button.nav { all: unset; position: relative; padding: 8px 11px; border-radius: 8px; font-size: 13px; color: var(--t2); cursor: pointer; display: flex; align-items: center; gap: 10px; transition: background-color .15s, color .15s; }
.cfd-nav button.nav:hover { background: #222328; color: #fff; }
.cfd-nav button.nav.active { background: #26272d; color: #fff; }
.cfd-nav button.nav.active::before { content: ""; position: absolute; left: -9px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--a); }
.cfd-nav button.nav:focus-visible { outline: 2px solid var(--gold); }
.cfd-nav svg { width: 15px; height: 15px; flex: none; }
.cfd-nav .kbd { margin-left: auto; font-family: Consolas, monospace; font-size: 10px; color: var(--t3); }
.cfd-nav .grp { font-size: 10px; color: var(--t3); letter-spacing: .08em; text-transform: uppercase; padding: 14px 11px 5px; }
.cfd-nav .spacer { flex: 1; }
.cfd-nav .div { height: 1px; background: var(--line); margin: 6px 4px; }
.cfd-content { flex: 1; min-width: 0; position: relative; }
.cfd-panel { position: absolute; inset: 0; overflow-y: auto; padding: 22px 26px; }
.cfd-panel.flush { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.cfd-page { display: none; }
.cfd-page.active { display: block; }
.cfd-h { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.cfd-d { font-size: 12.5px; color: #888; margin-bottom: 16px; max-width: 520px; line-height: 1.5; }

/* search start screen */
.cfd-hero { transition: padding-top .35s ease; }
.cfd-page.idle .cfd-hero { padding-top: 54px; }
.cfd-h1 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 5px; }
.cfd-sub1 { font-size: 12.5px; color: #8a8a92; margin-bottom: 16px; }
.cfd-page:not(.idle) .cfd-h1, .cfd-page:not(.idle) .cfd-sub1, .cfd-page:not(.idle) .cfd-chips, .cfd-page:not(.idle) .cfd-recent { display: none; }
.cfd-page.idle .cfd-results { display: none; }
.cfd-sbox { display: flex; align-items: center; gap: 10px; height: 46px; background: #222328; border: 1px solid #3a3c44; border-radius: 11px; padding: 0 6px 0 14px; transition: border-color .15s, box-shadow .15s; margin: 0; }
.cfd-sbox:focus-within { border-color: var(--a); box-shadow: 0 0 0 3px rgba(var(--a-rgb), .12); }
.cfd-sbox svg { width: 17px; height: 17px; color: #8a8a92; flex: none; }
.cfd-sbox input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #fff; font-size: 14px; }
.cfd-sbox input::placeholder { color: var(--t3); }
.cfd-go { background: var(--a-dim); border: 1px solid var(--a); color: #06210f; font-weight: 600; font-size: 12.5px; border-radius: 8px; padding: 7px 14px; cursor: pointer; }
.cfd-go:hover { filter: brightness(1.12); }
.cfd-row2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.cfd-seg { display: inline-flex; background: #202126; border: 1px solid var(--line2); border-radius: 9px; padding: 3px; }
.cfd-seg button { border: 0; background: transparent; color: var(--t2); font-size: 12px; padding: 5px 12px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.cfd-seg button svg { width: 13px; height: 13px; }
.cfd-seg button:hover { color: #fff; }
.cfd-seg button.active { background: #2f3037; color: #fff; }
.cfd-note2 { font-size: 11px; color: var(--t3); }
.cfd-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 16px; }
.cfd-chip { font-size: 11.5px; color: var(--t2); background: #202126; border: 1px solid var(--line2); border-radius: 20px; padding: 4px 11px; cursor: pointer; }
.cfd-chip:hover { color: #fff; border-color: #4a4c55; }
.cfd-results { margin-top: 18px; }
.cfd-pane { display: none; }
.cfd-pane.active { display: block; }
.cfd-recent { margin-top: 32px; }
.cfd-lbl { font-size: 10.5px; color: var(--t3); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.cfd-ref { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #202126; border-bottom: 1px solid var(--line); cursor: pointer; }
.cfd-ref:last-child { border-bottom: 0; }
.cfd-ref:hover { background: #25262b; }
.cfd-ref .tm { font-family: Consolas, monospace; font-size: 11px; color: var(--a); min-width: 36px; }
.cfd-ref .tt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfd-ref .op { font-size: 11px; color: var(--t3); }
.cfd-ref:hover .op { color: #fff; }

/* shared bits */
.cfd-btn { background: #2a2b31; border: 1px solid #3a3c44; color: #fff; border-radius: 8px; padding: 8px 14px; cursor: pointer; font-size: 12.5px; }
.cfd-btn:hover { background: #363840; }
.cfd-btn.acc { background: var(--a-dim); border-color: var(--a); color: #06210f; font-weight: 600; }
.cfd-btn.acc:hover { background: var(--a-dim); filter: brightness(1.12); }
.cfd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cfd-card { border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; background: #202126; animation: cfdIn .25s ease-out both; }
@keyframes cfdIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.cfd .cfd-thumb.tile { aspect-ratio: 16/10; border-radius: 0; outline: none; cursor: default; }
.cfd-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cfd-meta { padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cfd-src { font-size: 10.5px; color: var(--a); text-decoration: underline; }
.cfd-dl { background: #2a2b31; border: 1px solid #3a3c44; color: #fff; border-radius: 6px; padding: 4px 10px; font-size: 11px; cursor: pointer; }
.cfd-dl:hover { background: #363840; }
.cfd-dl.done { color: var(--a); border-color: var(--a); }
.cfd-empty { color: #666; text-align: center; padding: 34px 10px; grid-column: 1 / -1; }
.cfd-list { border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; }
.cfd-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #202126; }
.cfd-item:last-child { border-bottom: 0; }
.cfd-play { width: 32px; height: 32px; border-radius: 50%; background: var(--a-dim); border: 0; cursor: pointer; display: grid; place-items: center; flex: none; padding: 0; }
.cfd-play:hover { filter: brightness(1.12); }
.cfd-play::before { content: ""; border-left: 10px solid #06210f; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.cfd-play.on::before { width: 10px; height: 12px; border: 0; margin: 0; background: linear-gradient(90deg, #06210f 0 35%, transparent 35% 65%, #06210f 65%); }
.cfd-info { flex: 1; min-width: 0; }
.cfd-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfd-sub { display: flex; gap: 8px; align-items: center; margin-top: 2px; font-size: 11px; color: #777; font-variant-numeric: tabular-nums; }
.cfd-lic { font-size: 10px; color: #999; background: #2a2b31; border: 1px solid #3a3c44; border-radius: 4px; padding: 0 6px; }
.cfd-wave { width: 120px; height: 24px; display: flex; align-items: center; gap: 1px; }
.cfd-wave i { flex: 1; background: #4a4d57; border-radius: 1px; }
.cfd-wave.lit i { background: var(--a); }
.cfd-clip { flex-direction: column; align-items: stretch; }
.cfd-clip-top { display: flex; justify-content: space-between; align-items: center; }
.cfd-clip-t { font-size: 11px; color: var(--a); font-variant-numeric: tabular-nums; margin-top: 2px; }
.cfd-note { width: 100%; margin-top: 8px; background: #232429; border: 1px solid #363840; border-radius: 6px; padding: 6px 8px; color: #ccc; font-size: 12px; outline: none; }
.cfd-x { color: #666; cursor: pointer; padding: 2px 6px; background: none; border: 0; }
.cfd-x:hover { color: #ef4444; }
.cfd-split { display: grid; grid-template-columns: 170px 1fr; gap: 16px; }
.cfd-pages button { all: unset; display: block; box-sizing: border-box; width: 100%; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.cfd-pages button:hover { background: #25262b; }
.cfd-pages button.active { background: #2a2b31; }
.cfd-titlein { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line2); color: #fff; font-size: 15px; font-weight: 600; padding: 6px 2px 10px; margin-bottom: 12px; outline: none; }
.cfd-titlein:focus { border-bottom-color: var(--a); }
.cfd-area { width: 100%; min-height: 220px; background: #202126; border: 1px solid var(--line2); border-radius: 10px; padding: 14px; color: #fff; line-height: 1.6; outline: none; resize: none; }
.cfd-apps .cfd-item { justify-content: space-between; }
.cfd-set { margin-bottom: 18px; }
.cfd-setl { font-weight: 600; margin-bottom: 8px; }
.cfd-swatches { display: flex; gap: 8px; }
.cfd-swatches button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.cfd-swatches button.on { border-color: #fff; }
.cfd-kbdbox, .cfd-path { display: inline-block; background: #232429; border: 1px solid #3a3c44; border-radius: 8px; padding: 8px 12px; font-family: Consolas, monospace; font-size: 12px; color: #ddd; }
.cfd-path { color: #888; }

/* YouTube page */
.cfd-yt-bar { height: 44px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.cfd-ytb { width: 30px; height: 30px; border-radius: 7px; border: 1px solid transparent; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--t2); padding: 0; }
.cfd-ytb:hover:not(:disabled) { background: #26272d; color: #fff; }
.cfd-ytb:disabled { opacity: .35; cursor: default; }
.cfd-ytb svg { width: 16px; height: 16px; }
.cfd-ytsep { width: 1px; height: 18px; background: var(--line2); margin: 0 6px; flex: none; }
.cfd-ythint { font-size: 12px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cfd-ytmsg { font-size: 12px; color: var(--a); white-space: nowrap; }
.cfd-yt-bar.has-msg .cfd-ythint { display: none; }
.cfd-ytsave { margin-left: auto; flex: none; display: flex; align-items: center; gap: 7px; background: #26272d; border: 1px solid #3a3c44; color: #fff; border-radius: 8px; padding: 6px 12px; font-size: 12.5px; cursor: pointer; }
.cfd-ytsave:hover { background: #303138; }
.cfd-ytsave svg { width: 14px; height: 14px; color: var(--a); }
.cfd-ytsave.pulse { animation: cfdPulse .5s ease; }
@keyframes cfdPulse { 50% { transform: scale(1.06); border-color: var(--a); } }
.cfd-yt { flex: 1; min-height: 0; position: relative; background: #0f0f0f; display: flex; flex-direction: column; font-family: Roboto, Arial, sans-serif; transition: opacity .2s; }
.yt-mast { height: 46px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 16px; }
.yt-burger { display: grid; gap: 3px; width: 16px; }
.yt-burger i { height: 2px; background: #f1f1f1; border-radius: 1px; }
.yt-search { flex: 1; max-width: 460px; margin: 0 auto; display: flex; height: 32px; }
.yt-search input { flex: 1; min-width: 0; background: #121212; border: 1px solid #303030; border-right: 0; border-radius: 16px 0 0 16px; padding: 0 14px; color: #f1f1f1; font-size: 13px; outline: none; }
.yt-search input:focus { border-color: #1c62b9; }
.yt-search button { width: 54px; background: #222; border: 1px solid #303030; border-radius: 0 16px 16px 0; color: #f1f1f1; cursor: pointer; display: grid; place-items: center; }
.yt-search button svg { width: 16px; height: 16px; }
.yt-mic { width: 32px; height: 32px; border-radius: 50%; background: #222; display: grid; place-items: center; color: #f1f1f1; flex: none; }
.yt-mic svg { width: 15px; height: 15px; }
.yt-avatar { width: 26px; height: 26px; border-radius: 50%; background: #7c4dff; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.yt-body { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.yt-view { position: absolute; inset: 0; overflow-y: auto; padding: 4px 18px 18px; }
.yt-chips { display: flex; gap: 8px; margin: 4px 0 14px; overflow: hidden; }
.yt-chips span { background: #272727; color: #f1f1f1; font-size: 12px; padding: 5px 11px; border-radius: 7px; white-space: nowrap; }
.yt-chips span.on { background: #f1f1f1; color: #0f0f0f; font-weight: 500; }
.yt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 14px; }
.yt-card { cursor: pointer; min-width: 0; }
.yt-thumb { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; }
.cfd .yt-thumb.tile { aspect-ratio: 16/9; border-radius: 10px; outline: none; }
.yt-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.yt-card:hover .yt-thumb img { transform: scale(1.04); }
.yt-dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.8); color: #fff; font-size: 11px; font-weight: 500; padding: 1px 4px; border-radius: 4px; }
.yt-meta { display: flex; gap: 10px; margin-top: 9px; }
.yt-meta .av { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 600; }
.yt-vt { color: #f1f1f1; font-size: 13px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-vs { color: #aaa; font-size: 11.5px; margin-top: 3px; }
.yt-hidden { display: none; max-width: 360px; margin: 54px auto 0; text-align: center; color: #aaa; font-size: 12.5px; line-height: 1.6; }
.yt-hidden svg { width: 34px; height: 34px; color: #555; display: block; margin: 0 auto 10px; }
.yt-hidden span { display: block; }
.yt-hidden strong { display: block; color: #f1f1f1; font-size: 15px; margin-bottom: 6px; }
.yt-hidden .cfd-btn { margin-top: 16px; font-family: inherit; }
.cfd.focus .yt-chips, .cfd.focus .yt-grid { display: none; }
.cfd.focus .yt-hidden { display: block; }
.yt-results { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-top: 8px; }
.yt-res { display: grid; grid-template-columns: 240px 1fr; gap: 14px; cursor: pointer; }
.yt-res .yt-vt { font-size: 15px; font-weight: 400; }
.yt-res .yt-desc { color: #aaa; font-size: 11.5px; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-watch { display: flex; gap: 16px; padding-top: 6px; }
.yt-main { flex: 1; min-width: 0; }
.cfd-video { position: relative; width: 100%; aspect-ratio: 16/9; max-height: 330px; border-radius: 10px; overflow: hidden; background: #000; display: grid; place-items: center; cursor: pointer; outline: none; }
.cfd-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 40%; }
.cfd-video.playing img { animation: kb 40s linear forwards; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.18); } }
.cfd-video .big { position: relative; z-index: 2; width: 58px; height: 40px; border-radius: 12px; background: rgba(0,0,0,.7); display: grid; place-items: center; transition: opacity .3s, background .2s; }
.cfd-video:hover .big { background: #f00; }
.cfd-video .big::before { content: ""; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.cfd-video.playing .big { opacity: 0; }
.yt-ctrl { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 18px 12px 6px; background: linear-gradient(transparent, rgba(0,0,0,.65)); opacity: 1; transition: opacity .25s; }
.cfd-video.playing:not(:hover) .yt-ctrl { opacity: 0; }
.yt-ctrlrow { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.yt-pp { width: 12px; height: 14px; position: relative; }
.yt-pp::before { content: ""; position: absolute; left: 1px; top: 0; border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.cfd-video.playing .yt-pp::before { border: 0; width: 11px; height: 14px; background: linear-gradient(90deg, #fff 0 35%, transparent 35% 65%, #fff 65%); }
.cfd-prog { height: 4px; background: rgba(255,255,255,.25); border-radius: 2px; position: relative; cursor: pointer; transition: height .1s; }
.cfd-prog:hover { height: 6px; }
.cfd-prog b { position: absolute; left: 0; top: 0; bottom: 0; background: #f00; border-radius: 2px; }
.cfd-prog i { position: absolute; top: -3px; bottom: -3px; width: 3px; background: var(--a); border-radius: 1px; box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.cfd-time { font-variant-numeric: tabular-nums; color: #fff; font-size: 12px; }
.yt-frame { width: 100%; aspect-ratio: 16/9; max-height: 330px; border-radius: 10px; overflow: hidden; background: #000; }
.yt-frame iframe, .yt-frame > div { width: 100%; height: 100%; border: 0; display: block; }
.cfd-title { font-size: 16px; font-weight: 600; color: #f1f1f1; margin-top: 10px; }
.yt-chan { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.yt-cav { width: 34px; height: 34px; border-radius: 50%; background: #e65100; color: #fff; display: grid; place-items: center; font-weight: 600; flex: none; }
.yt-cname { color: #f1f1f1; font-weight: 500; font-size: 13px; }
.yt-csub { color: #aaa; font-size: 11.5px; }
.yt-sub { margin-left: 8px; background: #f1f1f1; color: #0f0f0f; font-size: 12.5px; font-weight: 500; padding: 7px 14px; border-radius: 18px; }
.yt-comments { margin-top: 16px; color: #f1f1f1; font-size: 13px; }
.yt-comments .cm { display: flex; gap: 10px; margin-top: 12px; }
.yt-comments .cm i { width: 28px; height: 28px; border-radius: 50%; background: #333; flex: none; }
.yt-comments .cm span { display: block; height: 8px; width: 220px; border-radius: 4px; background: #2a2a2a; margin-top: 4px; }
.yt-comments .cm span + span { width: 140px; margin-top: 8px; }
.cfd.focus .yt-comments { display: none; }
.cfd-side { width: 220px; flex: none; display: flex; flex-direction: column; gap: 10px; }
.yt-up { display: grid; grid-template-columns: 96px 1fr; gap: 8px; cursor: pointer; }
.yt-up .yt-thumb { border-radius: 7px; }
.yt-up .yt-vt { font-size: 12px; }
.yt-up .yt-vs { font-size: 11px; }
.cfd-focusmsg { display: none; width: 220px; flex: none; align-self: flex-start; font-size: 12px; color: #aaa; border: 1px dashed #3a3c44; border-radius: 8px; padding: 14px; line-height: 1.5; }
.cfd-focusmsg strong { color: #fff; display: block; margin-bottom: 4px; }
.cfd.focus .cfd-side { display: none; }
.cfd.focus .cfd-focusmsg { display: block; }
.cfd-toast { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(10px); background: #2a2b31; border: 1px solid #3a3c44; color: #fff; padding: 8px 14px; border-radius: 8px; font-size: 12.5px; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; z-index: 30; white-space: nowrap; }
.cfd-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cfd-mini { transform: scale(.9); }
.cfd .tile:hover::after, .cfd .tile.pick::after { content: none; display: none; }
.cfd .tile:hover { outline-color: transparent; }
@media (prefers-reduced-motion: reduce) { .cfd-badge::after, .cfd-card, .cfd-video.playing img { animation: none !important; } }
@media (max-width: 860px) {
  .cfd { height: 660px; }
  .cfd-timer, .cfd-status { display: none; }
  .cfd-focus { padding: 3px; }
  .cfd-shell { flex-direction: column; }
  .cfd-nav { width: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; gap: 4px; flex: none; }
  .cfd-nav .grp, .cfd-nav .spacer, .cfd-nav .div, .cfd-nav .kbd { display: none; }
  .cfd-nav button.nav { white-space: nowrap; }
  .cfd-nav button.nav.active::before { display: none; }
  .cfd-panel { padding: 16px; }
  .cfd-page.idle .cfd-hero { padding-top: 16px; }
  .cfd-grid, .yt-grid { grid-template-columns: repeat(2, 1fr); }
  .yt-mic, .yt-burger { display: none; }
  .yt-res { grid-template-columns: 130px 1fr; }
  .yt-res .yt-vt { font-size: 13px; }
  .yt-res .yt-desc { display: none; }
  .cfd-wave, .cfd-side, .cfd-focusmsg, .cfd.focus .cfd-focusmsg, .cfd-ythint, .cfd-note2 { display: none !important; }
  .cfd-split { grid-template-columns: 1fr; }
}
