@font-face {
  font-family: "Bricolage";
  src: url(/fonts/bricolage.woff2) format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #09090d;
  --ink: #f4f3f8;
  --ink-2: #aeacbf;
  --ink-3: #75738a;
  --glass: rgb(255 255 255 / 4.5%);
  --glass-2: rgb(255 255 255 / 8%);
  --glass-3: rgb(255 255 255 / 12%);
  --line: rgb(255 255 255 / 9%);
  --line-2: rgb(255 255 255 / 15%);
  --panel: rgb(20 20 28 / 72%);
  --c1: #7c6cff;
  --c2: #e85aad;
  --c3: #ffb36b;
  --grad: linear-gradient(120deg, var(--c1) 0%, var(--c2) 55%, var(--c3) 100%);
  --a1: var(--c1);
  --a2: var(--c2);
  --accent: linear-gradient(135deg, var(--a1), var(--a2));
  --danger: #ff8f84;
  --ok: #5fe0a5;
  --r-xl: 30px;
  --r-lg: 24px;
  --r: 18px;
  --r-sm: 13px;
  --display: "Bricolage", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --tabbar-h: 0px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.3, 1.35, .45, 1);
  color-scheme: dark;
}
[data-cat="video"] { --a1: #7c6cff; --a2: #e85aad; }
[data-cat="audio"] { --a1: #2dd4bf; --a2: #7c6cff; }
[data-cat="image"] { --a1: #ffb36b; --a2: #e85aad; }
[data-cat] { --accent: linear-gradient(135deg, var(--a1), var(--a2)); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: 90px; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
main { flex: 1; outline: none; padding-bottom: calc(var(--tabbar-h) + 10px); }
svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
img, video, canvas { max-width: 100%; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: calc(20px + var(--safe-l)); padding-right: calc(20px + var(--safe-r)); }
.narrow { max-width: 720px; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ======================================================= background */
.aura { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aura i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .85; will-change: transform; }
.aura .b1 { width: 560px; height: 560px; left: -200px; top: -220px; background: radial-gradient(closest-side, #6d5bff, transparent); animation: drift1 22s ease-in-out infinite alternate; }
.aura .b2 { width: 480px; height: 480px; right: -200px; top: -60px; background: radial-gradient(closest-side, #e0479f, transparent); opacity: .6; animation: drift2 26s ease-in-out infinite alternate; }
.aura .b3 { width: 460px; height: 460px; left: 25%; top: 480px; background: radial-gradient(closest-side, #ff9d5c, transparent); opacity: .2; animation: drift1 30s ease-in-out infinite alternate-reverse; }
.aura::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / 3.5%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 3.5%) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 25%, transparent 75%);
}
.aura::after {
  content: ""; position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .07; mix-blend-mode: overlay;
}
@keyframes drift1 { to { transform: translate(90px, 70px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-80px, 110px) scale(.92); } }

/* ======================================================= top bar */
.topbar { position: sticky; top: 0; z-index: 40; padding-top: var(--safe-t); transition: background-color .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.topbar.scrolled { background: rgb(9 9 13 / 70%); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
.topbar-inner { max-width: 1160px; margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 calc(20px + var(--safe-r)) 0 calc(20px + var(--safe-l)); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 750 21px/1 var(--display); letter-spacing: -0.02em; min-height: 44px; }
.brand-mark { width: 32px; height: 32px; filter: drop-shadow(0 4px 14px rgb(232 90 173 / 35%)); transition: transform .4s var(--spring); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.topnav { position: relative; display: none; margin: 0 auto; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); }
.topnav a { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 38px; padding: 0 18px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 650; font-size: 14.5px; transition: color .2s; }
.topnav a:hover, .topnav a[aria-current="page"] { color: #fff; }
.topnav-glider { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--glass-3); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%), 0 6px 16px rgb(0 0 0 / 30%); transition: transform .45s var(--spring), width .45s var(--spring), opacity .2s; opacity: 0; }
.topbar-cta { display: none; min-height: 40px; padding: 0 16px; align-items: center; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px; background: var(--glass-2); border: 1px solid var(--line-2); transition: background-color .2s; }
.topbar-cta:hover, .topbar-cta[aria-current="page"] { background: var(--glass-3); }
@media (min-width: 860px) {
  .topnav { display: inline-flex; }
  .topbar-cta { display: inline-flex; }
}

/* ======================================================= mobile tab bar */
.tabbar {
  position: fixed; z-index: 50; left: 50%; bottom: calc(10px + var(--safe-b)); transform: translateX(-50%);
  width: min(calc(100% - 24px), 440px); display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px; border-radius: 24px;
  background: rgb(18 18 25 / 78%); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: 0 18px 50px rgb(0 0 0 / 55%), inset 0 1px 0 rgb(255 255 255 / 7%);
}
.tabbar a { display: grid; justify-items: center; gap: 3px; padding: 7px 0 6px; border-radius: 18px; text-decoration: none; color: var(--ink-3); font-size: 11.5px; font-weight: 650; transition: color .2s, background-color .2s; }
.tabbar svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--spring); }
.tabbar a[aria-current="page"] { color: #fff; background: var(--glass-2); }
.tabbar a[aria-current="page"] svg { transform: translateY(-1px) scale(1.08); filter: drop-shadow(0 0 10px rgb(232 90 173 / 60%)); }
.tabbar a:active svg { transform: scale(.9); }
@media (max-width: 859px) { :root { --tabbar-h: calc(84px + var(--safe-b)); } }
@media (min-width: 860px) { .tabbar { display: none; } }

/* ======================================================= type + basics */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  padding: 6px 13px 6px 10px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 13px; font-weight: 600;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgb(95 224 165 / 18%); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgb(95 224 165 / 6%); } }
.h-display { font: 800 clamp(40px, 11vw, 78px)/.98 var(--display); letter-spacing: -0.04em; margin: 0 0 16px; text-wrap: balance; }
.h-page { font: 800 clamp(34px, 8.5vw, 56px)/1.02 var(--display); letter-spacing: -0.035em; margin: 0 0 12px; text-wrap: balance; }
.h-sec { font: 780 clamp(24px, 5.5vw, 34px)/1.1 var(--display); letter-spacing: -0.025em; margin: 0 0 6px; }
.grad {
  background: linear-gradient(110deg, var(--c1), var(--c2) 40%, var(--c3) 60%, var(--c1));
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 8s linear infinite; padding-right: .04em;
}
.grad-a { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes sheen { to { background-position: -250% 0; } }
.lede { margin: 0; color: var(--ink-2); font-size: clamp(16.5px, 2.2vw, 19px); max-width: 36em; text-wrap: pretty; }
.muted { color: var(--ink-3); }

/* entrance + reveal */
.enter > * { animation: up .7s var(--ease) both; }
.enter > :nth-child(2) { animation-delay: .06s; } .enter > :nth-child(3) { animation-delay: .12s; } .enter > :nth-child(4) { animation-delay: .18s; } .enter > :nth-child(5) { animation-delay: .24s; } .enter > :nth-child(6) { animation-delay: .3s; }
@keyframes up { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } }
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 50ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* view transitions */
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
.topbar, .tabbar { view-transition-name: none; }

/* ======================================================= buttons */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 22px; border: 0; border-radius: var(--r);
  font-weight: 700; font-size: 16.5px; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), filter .2s, background-color .2s, box-shadow .25s, opacity .2s;
  touch-action: manipulation; -webkit-user-select: none; user-select: none;
}
.btn:active { transform: scale(.975); }
.btn svg { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.btn.wide { width: 100%; }
.cta {
  color: #fff; background: var(--grad); background-size: 160% 100%; background-position: 0 0;
  box-shadow: 0 14px 36px -10px rgb(232 90 173 / 60%), inset 0 1px 0 rgb(255 255 255 / 28%);
  text-shadow: 0 1px 1px rgb(0 0 0 / 15%);
}
.cta.accent { background: var(--accent); box-shadow: 0 14px 36px -10px color-mix(in srgb, var(--a2) 60%, transparent), inset 0 1px 0 rgb(255 255 255 / 28%); }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 32%) 50%, transparent 70%); transform: translateX(-120%); }
@media (hover: hover) {
  .cta:hover::after { transform: translateX(120%); transition: transform .9s ease; }
  .cta:hover { filter: brightness(1.07); background-position: 100% 0; }
  .glass:hover { background: var(--glass-3); }
}
.cta .arrow { transition: transform .25s var(--ease); }
.cta:hover .arrow { transform: translateX(4px); }
.btn[disabled], .btn.is-disabled { filter: saturate(.5) brightness(.75); cursor: default; pointer-events: none; }
.glass { background: var(--glass-2); border: 1px solid var(--line-2); color: var(--ink); }
.ghost { background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); min-height: 48px; font-size: 15px; }
.btn.big { min-height: 66px; justify-content: flex-start; padding: 0 20px; }
.btn.small { min-height: 52px; font-size: 15px; padding: 0 12px; gap: 8px; }
.btn.small svg { width: 20px; height: 20px; }
.btn .txt { display: grid; line-height: 1.2; text-align: left; flex: 1; }
.btn .sub { font-size: 13px; font-weight: 550; opacity: .85; }
.btn .bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--grad); width: 0; transition: width .15s; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { justify-self: center; display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0; color: var(--ink-2); font-weight: 650; min-height: 44px; padding: 0 12px; cursor: pointer; font-size: 15px; border-radius: 10px; text-decoration: none; }
.link-btn:hover { color: var(--ink); }
.link-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
:is(.btn, .link-btn, a, button, input, summary, [tabindex]):focus-visible { outline: 3px solid rgb(124 108 255 / 75%); outline-offset: 2px; }

.error { margin: 12px 0 0; padding: 12px 14px; border-radius: var(--r-sm); background: rgb(255 120 105 / 10%); border: 1px solid rgb(255 120 105 / 25%); color: var(--danger); font-size: 15px; font-weight: 550; animation: shake .4s ease; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ======================================================= cards (shared) */
.card {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  box-shadow: 0 30px 80px -24px rgb(0 0 0 / 65%), inset 0 1px 0 rgb(255 255 255 / 6%);
}
.card.pop { animation: rise .45s var(--spring); }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* ======================================================= HOME */
.hero { padding: clamp(28px, 7vw, 76px) 0 10px; text-align: left; }
@media (min-width: 860px) { .hero { text-align: center; } .hero .lede { margin: 0 auto; } .hero .grab { margin-left: auto; margin-right: auto; } }
.grab { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 26px; max-width: 720px; }
.field {
  position: relative; display: flex; align-items: center;
  background: rgb(18 18 26 / 75%); border: 1px solid var(--line-2); border-radius: 20px;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgb(0 0 0 / 45%), inset 0 1px 0 rgb(255 255 255 / 6%);
  transition: box-shadow .25s;
}
.field::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: var(--grad); opacity: 0; transition: opacity .3s; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.field:focus-within::before { opacity: 1; }
.field:focus-within { box-shadow: 0 20px 60px rgb(0 0 0 / 45%), 0 0 0 7px rgb(124 108 255 / 13%); }
.field .ico { margin-left: 18px; color: var(--ink-3); }
.field input { flex: 1; min-width: 0; height: 62px; padding: 0 8px 0 12px; border: 0; background: transparent; color: var(--ink); font-size: 17px; outline: none; }
.field input::placeholder { color: var(--ink-3); }
.field-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; min-width: 44px; margin-right: 9px; padding: 0 10px; border: 0; border-radius: 13px; background: transparent; cursor: pointer; color: var(--ink-3); }
.field-btn.paste { background: var(--glass-2); border: 1px solid var(--line); color: var(--ink); font-weight: 650; font-size: 15px; padding: 0 14px 0 11px; }
.go { height: 62px; font-size: 18px; }
.go .spinner { display: none; }
.go.loading .spinner { display: block; }
.go.loading .arrow { display: none; }
@media (min-width: 560px) { .grab { grid-template-columns: minmax(0, 1fr) auto; } .go { padding: 0 28px; height: 64px; } }

.marquee { position: relative; margin: 26px 0 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 14px; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--pc, var(--c2)); box-shadow: 0 0 12px var(--pc, var(--c2)); }
.pill.off { opacity: .45; text-decoration: line-through; text-decoration-color: rgb(255 255 255 / 30%); }

.result { margin: 24px auto 0; max-width: 720px; scroll-margin-top: 90px; }
.card.has-poster::before { content: ""; position: absolute; inset: -30%; z-index: -1; background: var(--poster) center / cover no-repeat; filter: blur(60px) saturate(1.5); opacity: .32; }
.card-body { padding: 16px 16px 14px; display: grid; gap: 14px; }
.media { margin: 10px 10px 0; border-radius: 18px; overflow: hidden; background: #000; display: flex; justify-content: center; box-shadow: 0 10px 30px rgb(0 0 0 / 45%); }
.media video, .media img { display: block; width: 100%; max-height: min(62vh, 640px); object-fit: contain; background: #000; }
.media.portrait video, .media.portrait img { width: auto; max-width: 100%; }
.gallery-wrap { margin: 10px 10px 0; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 18px; background: #000; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; position: relative; display: flex; align-items: center; justify-content: center; min-height: 240px; }
.slide img, .slide video { width: 100%; max-height: min(62vh, 640px); object-fit: contain; }
.save-one { position: absolute; right: 12px; bottom: 12px; min-height: 44px; padding: 0 15px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 18%); background: rgb(10 10 14 / 60%); color: #fff; font-weight: 650; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.save-one svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.count { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgb(10 10 14 / 60%); color: #fff; font-size: 13px; font-weight: 650; pointer-events: none; }
.dots { display: flex; gap: 6px; justify-content: center; padding: 12px 0 0; flex-wrap: wrap; }
.dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--line-2); transition: background .2s, width .25s; }
.dots span.on { background: var(--c2); width: 18px; }
.meta { display: grid; gap: 4px; }
.author { font-weight: 750; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--line); color: var(--ink-2); }
.badge.good { color: var(--ok); background: rgb(95 224 165 / 10%); border-color: rgb(95 224 165 / 30%); }
.caption { margin: 0; color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.actions { display: grid; gap: 10px; }
.actions .row { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 10px; }
details.more { border-top: 1px solid var(--line); padding-top: 2px; }
details.more summary { list-style: none; cursor: pointer; min-height: 46px; display: flex; align-items: center; justify-content: space-between; font-weight: 650; font-size: 15px; color: var(--ink-2); }
details.more summary::-webkit-details-marker { display: none; }
details.more summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform .25s; }
details.more[open] summary svg { transform: rotate(180deg); }
.qlist { list-style: none; margin: 2px 0 6px; padding: 0; display: grid; gap: 6px; }
.qlist a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 14px 0 16px; border-radius: var(--r-sm); background: var(--glass); border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 15px; }
.qlist a:active { background: var(--glass-2); }
.q-right { display: flex; align-items: center; gap: 10px; }
.q-note { color: var(--ink-3); font-weight: 550; font-size: 13px; white-space: nowrap; }
.qlist svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.skeleton .sk { background: linear-gradient(90deg, var(--glass) 0%, var(--glass-3) 50%, var(--glass) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: 10px; }
.sk-media { height: 300px; margin: 10px 10px 0; border-radius: 18px !important; }
.sk-line { height: 14px; } .w40 { width: 40%; } .w90 { width: 90%; }
.sk-btn { height: 66px; border-radius: var(--r) !important; }
@keyframes shimmer { to { background-position: -200% 0; } }

.section { padding: clamp(46px, 9vw, 96px) 0 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec-head .link-btn { white-space: nowrap; flex: none; }
@media (max-width: 600px) { .sec-head { flex-direction: column; align-items: flex-start; gap: 8px; } .sec-head .link-btn { margin-left: -12px; } }
.sec-head p { margin: 0; color: var(--ink-2); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; position: relative; padding: 20px 18px 18px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 12px; background: var(--grad); font: 800 17px/1 var(--display); color: #fff; box-shadow: 0 8px 20px -6px rgb(232 90 173 / 60%); }
.steps b { display: block; font: 750 18px/1.2 var(--display); margin-bottom: 4px; }
.steps span { color: var(--ink-2); font-size: 15px; }

/* ======================================================= tool cards + hubs */
.tool-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .tool-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1020px) { .tool-grid { grid-template-columns: repeat(4, 1fr); } }
.tool-card {
  --x: 50%; --y: 50%;
  position: relative; display: grid; align-content: start; gap: 4px; min-height: 150px; padding: 16px 15px 15px;
  border-radius: var(--r-lg); text-decoration: none; overflow: hidden; isolation: isolate;
  background: rgb(22 22 30 / 62%); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: transform .35s var(--spring), border-color .3s, box-shadow .35s;
}
.tool-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--x) var(--y), color-mix(in srgb, var(--a2) 22%, transparent), transparent 65%); }
.tool-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity .3s; pointer-events: none; background: radial-gradient(220px circle at var(--x) var(--y), color-mix(in srgb, var(--a1) 90%, white), transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
@media (hover: hover) {
  .tool-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -20px rgb(0 0 0 / 70%); border-color: var(--line-2); }
  .tool-card:hover::before, .tool-card:hover::after { opacity: 1; }
  .tool-card:hover .tool-ico { transform: scale(1.08) rotate(-4deg); }
}
.tool-card:active { transform: scale(.98); }
.tool-ico { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 12px; background: var(--accent); box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--a2) 70%, transparent), inset 0 1px 0 rgb(255 255 255 / 25%); transition: transform .4s var(--spring); }
.tool-ico svg { width: 23px; height: 23px; fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.tool-card b { font: 720 16.5px/1.2 var(--display); letter-spacing: -0.01em; }
.tool-card span { font-size: 13.5px; color: var(--ink-3); line-height: 1.4; }
.tool-card .tag { font-style: normal; position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--line); color: var(--ink-2); }

.hub-head { padding: clamp(26px, 6vw, 60px) 0 26px; }
.hub-head .cat-ico { width: 58px; height: 58px; border-radius: 19px; display: grid; place-items: center; margin-bottom: 18px; background: var(--accent); box-shadow: 0 16px 34px -10px color-mix(in srgb, var(--a2) 70%, transparent); }
.hub-head .cat-ico svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.cat-block + .cat-block { margin-top: 40px; }
.cat-block h2 { display: flex; align-items: center; gap: 10px; font: 760 22px/1.2 var(--display); margin: 0 0 14px; }
.cat-block h2 i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* ======================================================= workbench */
.wb-head { padding: clamp(18px, 4vw, 40px) 0 20px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 18px -6px; padding: 6px 10px 6px 6px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 650; font-size: 14px; }
.crumb:hover { color: var(--ink); background: var(--glass); }
.crumb svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wb-title { display: flex; align-items: center; gap: 14px; }
.wb-title .tool-ico { margin: 0; width: 54px; height: 54px; border-radius: 17px; flex: none; }
.wb-title .tool-ico svg { width: 26px; height: 26px; }
.wb-title h1 { margin: 0; font: 800 clamp(30px, 7vw, 46px)/1.04 var(--display); letter-spacing: -0.03em; }
.wb-desc { margin: 12px 0 0; color: var(--ink-2); max-width: 40em; }

.drop { position: relative; border-radius: var(--r-xl); padding: 2px; background: conic-gradient(from var(--ang, 0deg), var(--a1), var(--a2), transparent 35%, transparent 60%, var(--a1)); animation: spinbg 6s linear infinite; }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spinbg { to { --ang: 360deg; } }
.drop-inner { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding: clamp(36px, 8vw, 64px) 20px; border-radius: calc(var(--r-xl) - 2px); cursor: pointer; background: rgb(14 14 20 / 92%); transition: background-color .25s; }
.drop:hover .drop-inner, .drop.over .drop-inner { background: rgb(22 18 30 / 92%); }
.drop.over { transform: scale(1.01); }
.drop-ico { width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center; margin-bottom: 12px; background: var(--accent); box-shadow: 0 16px 34px -10px color-mix(in srgb, var(--a2) 70%, transparent); animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.drop-ico svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.drop-title { font: 760 22px/1.2 var(--display); letter-spacing: -0.01em; }
.drop-sub { color: var(--ink-3); font-size: 14.5px; }
.drop-btn { margin-top: 14px; pointer-events: none; }

.bench { display: grid; gap: 14px; }
@media (min-width: 900px) { .bench { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } .bench .opts-card { position: sticky; top: 84px; } }
.preview-card { padding: 10px; display: grid; gap: 10px; }
.preview { border-radius: 18px; overflow: hidden; background: #000; display: flex; align-items: center; justify-content: center; min-height: 120px; }
.preview video, .preview img, .preview canvas { display: block; max-width: 100%; max-height: min(58vh, 560px); object-fit: contain; }
.preview audio { width: 100%; margin: 18px; }
.preview.light { background: repeating-conic-gradient(#1b1b22 0 25%, #14141a 0 50%) 0 0 / 22px 22px; }
.file-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 4px 6px 4px 4px; }
.file-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--line); }
.file-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.file-meta { min-width: 0; display: grid; }
.file-meta b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15.5px; }
.file-meta span { color: var(--ink-3); font-size: 13.5px; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--glass-2); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.opts-card { padding: 18px 16px 16px; display: grid; gap: 18px; }
.opt { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 9px; }
.opt > legend, .opt > .opt-label { padding: 0; margin-bottom: 9px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); width: 100%; }
.opt > .opt-label { margin-bottom: 0; }
.opt .val { font: 700 14px/1 var(--body); letter-spacing: 0; text-transform: none; color: var(--ink); font-variant-numeric: tabular-nums; }
.opt-hint { margin: -2px 0 0; font-size: 13px; color: var(--ink-3); }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--chip-min, 84px), 1fr)); gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: grid; place-items: center; min-height: 50px; padding: 6px 8px; border-radius: var(--r-sm); background: var(--glass); border: 1px solid var(--line); cursor: pointer; font-weight: 720; font-size: 14.5px; line-height: 1.15; text-align: center; transition: background-color .15s, border-color .15s, transform .2s var(--spring), box-shadow .2s; }
.chip small { display: block; font-size: 11px; font-weight: 550; color: var(--ink-3); margin-top: 2px; }
.chip input:checked + span { background: linear-gradient(135deg, color-mix(in srgb, var(--a1) 30%, transparent), color-mix(in srgb, var(--a2) 26%, transparent)); border-color: color-mix(in srgb, var(--a2) 75%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a2) 15%, transparent); }
.chip input:checked + span small { color: var(--ink-2); }
.chip input:disabled + span { opacity: .3; cursor: not-allowed; }
.chip span:active { transform: scale(.96); }
.chip input:focus-visible + span { outline: 3px solid rgb(124 108 255 / 75%); outline-offset: 2px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 15px; background: var(--glass); border: 1px solid var(--line); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: grid; place-items: center; min-height: 44px; padding: 0 6px; border-radius: 11px; font-weight: 650; font-size: 14.5px; color: var(--ink-2); cursor: pointer; text-align: center; transition: background-color .15s, color .15s; }
.seg input:checked + span { background: var(--glass-3); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%); }
.seg input:focus-visible + span { outline: 3px solid rgb(124 108 255 / 75%); }

.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 4px 0 2px; cursor: pointer; font-weight: 650; font-size: 15px; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .sw { position: relative; width: 50px; height: 30px; border-radius: 99px; background: var(--glass-3); border: 1px solid var(--line-2); transition: background .25s; flex: none; }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgb(0 0 0 / 40%); transition: transform .3s var(--spring); }
.toggle input:checked + .sw { background: var(--accent); border-color: transparent; }
.toggle input:checked + .sw::after { transform: translateX(20px); }
.toggle input:focus-visible + .sw { outline: 3px solid rgb(124 108 255 / 75%); outline-offset: 2px; }

input[type="range"].slider { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"].slider::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--a1), var(--a2)) 0 0 / var(--fill, 50%) 100% no-repeat, var(--glass-3); }
input[type="range"].slider::-moz-range-track { height: 8px; border-radius: 99px; background: var(--glass-3); }
input[type="range"].slider::-moz-range-progress { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--a1), var(--a2)); }
input[type="range"].slider::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 4px 14px rgb(0 0 0 / 50%), 0 0 0 5px color-mix(in srgb, var(--a2) 25%, transparent); transition: transform .2s var(--spring); }
input[type="range"].slider::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 4px 14px rgb(0 0 0 / 50%); }
input[type="range"].slider:active::-webkit-slider-thumb { transform: scale(1.15); }

/* dual range (trim) */
.trim { display: grid; gap: 10px; }
.trim-bar { position: relative; height: 56px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); overflow: hidden; touch-action: none; }
.trim-bar canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.trim-sel { position: absolute; top: 0; bottom: 0; border: 2px solid var(--a2); border-radius: 12px; background: color-mix(in srgb, var(--a2) 14%, transparent); box-shadow: 0 0 0 999px rgb(9 9 13 / 55%); pointer-events: none; }
.trim-handle { position: absolute; top: 0; bottom: 0; width: 26px; margin-left: -13px; display: grid; place-items: center; cursor: ew-resize; z-index: 2; }
.trim-handle::before { content: ""; width: 10px; height: 34px; border-radius: 6px; background: #fff; box-shadow: 0 2px 10px rgb(0 0 0 / 50%); }
.trim-play { position: absolute; top: 4px; bottom: 4px; width: 2px; background: #fff; border-radius: 2px; pointer-events: none; opacity: .9; z-index: 1; }
.trim-times { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; font-size: 14px; color: var(--ink-2); font-weight: 650; }
.trim-times b { color: var(--ink); }
.trim-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trim-btns .btn { min-height: 44px; font-size: 14px; }

.text-in, .num-in { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--glass); border: 1px solid var(--line-2); color: var(--ink); font-size: 16px; outline: none; resize: vertical; }
.text-in:focus, .num-in:focus { border-color: color-mix(in srgb, var(--a2) 70%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a2) 15%, transparent); }
.num-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.num-row span { color: var(--ink-3); }
.colors { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.color-in { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 12px; border-radius: var(--r-sm); background: var(--glass); border: 1px solid var(--line); font-weight: 650; font-size: 14.5px; cursor: pointer; }
.color-in input { width: 30px; height: 30px; border: 0; padding: 0; border-radius: 8px; background: none; cursor: pointer; }
.color-in input::-webkit-color-swatch-wrapper { padding: 0; } .color-in input::-webkit-color-swatch { border: 1px solid var(--line-2); border-radius: 8px; }

/* progress overlay */
.progress { display: grid; justify-items: center; gap: 14px; padding: 26px 10px 8px; text-align: center; }
.ring { position: relative; width: 132px; height: 132px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .track { stroke: var(--glass-3); }
.ring .fill { stroke: url(#ringgrad); stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; transition: stroke-dashoffset .25s var(--ease); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--a2) 60%, transparent)); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.progress p { margin: 0; color: var(--ink-2); font-weight: 600; }

/* result */
.done { display: grid; gap: 12px; }
.done-head { display: flex; align-items: center; gap: 12px; }
.done-badge { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgb(95 224 165 / 14%); border: 1px solid rgb(95 224 165 / 40%); animation: pop .5s var(--spring); flex: none; }
.done-badge svg { width: 24px; height: 24px; fill: none; stroke: var(--ok); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .15s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.done-title { margin: 0; font: 800 22px/1.1 var(--display); }
.done-sub { margin: 2px 0 0; color: var(--ink-3); font-size: 14px; overflow-wrap: anywhere; }
.next-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.next-tools a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 13px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 650; color: var(--ink-2); transition: background-color .2s, color .2s; }
.next-tools a:hover { background: var(--glass-2); color: var(--ink); }
.outs { display: grid; gap: 8px; max-height: 360px; overflow: auto; }
.out-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 6px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
.out-row img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; background: #000; }
.out-row b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.out-row span { font-size: 13px; color: var(--ink-3); }

.qr-box { display: grid; place-items: center; padding: 18px; border-radius: 18px; background: #fff; }
.qr-box canvas { width: min(100%, 320px); height: auto; image-rendering: pixelated; border-radius: 6px; }

/* toast */
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--tabbar-h) + 18px); transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: rgb(28 28 36 / 92%); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 14px 40px rgb(0 0 0 / 50%); font-weight: 600; font-size: 15px; animation: toast .35s var(--spring); }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 12px) scale(.96); } }

/* ======================================================= footer */
.foot { padding: 56px 0 calc(var(--tabbar-h) + 24px); }
.foot-inner { max-width: 1160px; margin: 0 auto; padding: 18px calc(20px + var(--safe-r)) 0 calc(20px + var(--safe-l)); border-top: 1px solid var(--line); display: grid; gap: 6px; }
.foot p { margin: 0; font-size: 13px; color: var(--ink-3); }

@media (max-width: 400px) {
  .wrap { padding-left: calc(16px + var(--safe-l)); padding-right: calc(16px + var(--safe-r)); }
  .tool-card { min-height: 138px; padding: 14px 13px 13px; }
  .tool-ico { width: 42px; height: 42px; border-radius: 13px; margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
