/* ─────────────────────────────────────────────────────────────────────────
   youtubetomp3.top — extreme glassmorphism layer (v4 glass)
   Loaded AFTER assets/css/app.css on every page. Overrides only — the
   6215-line app.css is untouched. Works in BOTH light and dark themes:
   the aurora is veiled by a translucent body background so text keeps
   4.5:1 contrast in either theme. No layout shift, 44px touch targets,
   no horizontal overflow, motion off under prefers-reduced-motion.
   ───────────────────────────────────────────────────────────────────────── */

/* Aurora backdrop (the <div class="vt-aurora"> is injected by ui.js) */
html { background: #e9eefb; }
html.dark { background: #04060f; }
body.bg-background {
  background-color: rgba(255, 255, 255, 0.58) !important;
}
html.dark body.bg-background {
  background-color: rgba(5, 8, 18, 0.66) !important;
}
.vt-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(42rem 30rem at 12% -8%, rgba(24, 86, 255, 0.55), transparent 62%),
    radial-gradient(38rem 28rem at 88% 4%, rgba(45, 212, 191, 0.5), transparent 60%),
    radial-gradient(30rem 26rem at 78% 88%, rgba(255, 176, 32, 0.34), transparent 62%),
    radial-gradient(34rem 30rem at 8% 82%, rgba(24, 86, 255, 0.34), transparent 64%);
}
html.dark .vt-aurora {
  background:
    radial-gradient(42rem 30rem at 12% -8%, rgba(24, 86, 255, 0.75), transparent 62%),
    radial-gradient(38rem 28rem at 88% 4%, rgba(45, 212, 191, 0.6), transparent 60%),
    radial-gradient(30rem 26rem at 78% 88%, rgba(255, 176, 32, 0.42), transparent 62%),
    radial-gradient(34rem 30rem at 8% 82%, rgba(24, 86, 255, 0.45), transparent 64%);
}
.vt-aurora::before,
.vt-aurora::after {
  content: "";
  position: absolute;
  border-radius: 9999px;
  filter: blur(70px);
  will-change: transform;
}
.vt-aurora::before {
  width: 34rem; height: 34rem; left: -8rem; top: -10rem;
  background: rgba(24, 86, 255, 0.5);
  animation: vt-drift-a 26s ease-in-out infinite alternate;
}
.vt-aurora::after {
  width: 28rem; height: 28rem; right: -6rem; top: 22vh;
  background: rgba(45, 212, 191, 0.45);
  animation: vt-drift-b 32s ease-in-out infinite alternate;
}
@keyframes vt-drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(9vw, 12vh, 0) scale(1.18); }
}
@keyframes vt-drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to   { transform: translate3d(-8vw, 10vh, 0) scale(0.92); }
}
html, body { overflow-x: clip; }

/* ── Glass header pill ────────────────────────────────────────────────── */
header.sticky {
  background: color-mix(in oklab, var(--background) 58%, transparent) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  backdrop-filter: blur(22px) saturate(1.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 32px -18px rgba(24, 86, 255, 0.35);
}
html.dark header.sticky {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.8);
}
header.sticky nav[aria-label="Primary"] a {
  border-radius: 9999px;
  padding: 0.5rem 0.85rem;
}
header.sticky nav[aria-label="Primary"] a:hover {
  background: rgba(24, 86, 255, 0.12);
}
header.sticky nav[aria-label="Primary"] a[aria-current="page"] {
  background: rgba(24, 86, 255, 0.16);
  color: var(--foreground);
  box-shadow: inset 0 0 0 1px rgba(24, 86, 255, 0.35);
}
/* Theme + menu icon buttons: glass chips, 44px targets */
header.sticky button[aria-label="Toggle dark mode"],
header.sticky button[aria-label="Open menu"],
header.sticky button[aria-label="Close menu"] {
  min-width: 44px;
  min-height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 18px -8px rgba(24, 86, 255, 0.35);
}
html.dark header.sticky button[aria-label="Toggle dark mode"],
html.dark header.sticky button[aria-label="Open menu"],
html.dark header.sticky button[aria-label="Close menu"] {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}
header.sticky button.vt-menu-open svg {
  animation: vt-pop 0.25s ease;
}
@keyframes vt-pop {
  from { transform: rotate(-90deg) scale(0.6); opacity: 0.4; }
  to   { transform: rotate(0deg) scale(1); opacity: 1; }
}

/* ── Mobile nav drawer ──────────────────────────────────────────────── */
.vt-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}
.vt-mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 15, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.26s ease;
}
.vt-mobile-nav-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(21rem, 86vw);
  display: flex;
  flex-direction: column;
  padding: 1rem 1.1rem 2rem;
  background: color-mix(in oklab, var(--background) 72%, transparent);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  backdrop-filter: blur(28px) saturate(1.6);
  border-left: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: -24px 0 60px -20px rgba(24, 86, 255, 0.35);
  transform: translateX(105%);
  transition: transform 0.26s cubic-bezier(0.32, 0.72, 0.35, 1);
  pointer-events: auto;
}
html.dark .vt-mobile-nav-panel {
  border-left-color: rgba(255, 255, 255, 0.12);
  box-shadow: -24px 0 60px -20px rgba(0, 0, 0, 0.85);
}
.vt-mobile-nav.vt-open { pointer-events: auto; }
.vt-mobile-nav.vt-open .vt-mobile-nav-backdrop { opacity: 1; }
.vt-mobile-nav.vt-open .vt-mobile-nav-panel { transform: translateX(0); }
.vt-mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}
.vt-mobile-nav-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.vt-mobile-nav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
html.dark .vt-mobile-nav-close {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}
.vt-mobile-nav-panel nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.75rem;
  overflow-y: auto;
}
.vt-mobile-nav-panel nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.5);
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  transition-delay: calc(var(--vt-i, 0) * 35ms);
}
html.dark .vt-mobile-nav-panel nav a {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
.vt-mobile-nav.vt-open .vt-mobile-nav-panel nav a { opacity: 1; transform: translateX(0); }
.vt-mobile-nav-panel nav a:hover { background: rgba(24, 86, 255, 0.14); }
.vt-mobile-nav-panel nav a[aria-current="page"] {
  background: rgba(24, 86, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(24, 86, 255, 0.4);
}

/* ── Converter card ─────────────────────────────────────────────────── */
#converter {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)) !important;
  -webkit-backdrop-filter: blur(26px) saturate(1.6);
  backdrop-filter: blur(26px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  box-shadow:
    0 24px 60px -24px rgba(24, 86, 255, 0.45),
    0 2px 0 rgba(255, 255, 255, 0.6) inset !important;
}
html.dark #converter {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow:
    0 24px 60px -24px rgba(0, 0, 0, 0.9),
    0 1px 0 rgba(255, 255, 255, 0.12) inset !important;
}
/* Glowing URL input */
#yt-url {
  background: rgba(255, 255, 255, 0.75) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-color: rgba(24, 86, 255, 0.35) !important;
  transition: border-color 0.2s ease, box-shadow 0.25s ease !important;
}
html.dark #yt-url { background: rgba(255, 255, 255, 0.07) !important; }
#yt-url:focus-visible {
  border-color: #1856ff !important;
  box-shadow: 0 0 0 4px rgba(24, 86, 255, 0.25), 0 0 24px rgba(24, 86, 255, 0.35) !important;
}
/* Big Convert button: gradient + shine sweep + press scale */
#converter button.bg-red-600 {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #ff2d55, #dc2626 45%, #1856ff 130%) !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 14px 30px -10px rgba(220, 38, 38, 0.6), 0 2px 0 rgba(255, 255, 255, 0.35) inset !important;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
}
#converter button.bg-red-600::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -70%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
#converter button.bg-red-600:hover { filter: brightness(1.07); }
#converter button.bg-red-600:hover::after { left: 130%; }
#converter button.bg-red-600:active { transform: scale(0.97); }
/* Paste button glass chip */
#converter button[aria-label="Paste from clipboard"] {
  background: rgba(255, 255, 255, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
html.dark #converter button[aria-label="Paste from clipboard"] {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

/* ── Result / preview cards (rendered by app.js) ────────────────────── */
.vt-result {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.45)) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  box-shadow: 0 20px 50px -22px rgba(24, 86, 255, 0.45), 0 1px 0 rgba(255, 255, 255, 0.6) inset !important;
  overflow: hidden;
}
html.dark .vt-result {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 20px 50px -22px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.12) inset !important;
}
.vt-result-thumb {
  position: relative;
  display: block;
  margin: -1rem -1rem 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0a0a;
}
.vt-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.vt-result-thumb:hover img { transform: scale(1.04); }
.vt-result-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(4, 6, 15, 0.55));
  pointer-events: none;
}
.vt-result-duration {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  z-index: 1;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: rgba(4, 6, 15, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.vt-result-body { padding: 1rem 0 0.25rem; }
.vt-result-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--foreground);
}
.vt-result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}
.vt-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--foreground);
  background: rgba(24, 86, 255, 0.12);
  border: 1px solid rgba(24, 86, 255, 0.3);
}
html.dark .vt-chip { background: rgba(45, 212, 191, 0.12); border-color: rgba(45, 212, 191, 0.35); }
.vt-chip-teal {
  background: rgba(45, 212, 191, 0.14);
  border-color: rgba(45, 212, 191, 0.4);
}
.vt-save-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #1856ff, #2dd4bf 130%) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 14px 30px -10px rgba(24, 86, 255, 0.65), 0 2px 0 rgba(255, 255, 255, 0.3) inset !important;
}
.vt-save-btn::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -70%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.vt-save-btn:hover::after { left: 130%; }
.vt-save-btn:active { transform: scale(0.98); }
.vt-result .vt-thumb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1856ff;
}
html.dark .vt-result .vt-thumb-link { color: #7dd3fc; }
/* Format option buttons in the preview card */
.vt-format-btn {
  background: rgba(255, 255, 255, 0.5) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
html.dark .vt-format-btn { background: rgba(255, 255, 255, 0.05) !important; }
.vt-format-btn[aria-checked="true"] {
  border-color: #1856ff !important;
  background: rgba(24, 86, 255, 0.14) !important;
  box-shadow: 0 0 0 3px rgba(24, 86, 255, 0.18), 0 8px 20px -10px rgba(24, 86, 255, 0.5) !important;
}
/* Glass progress bar */
[data-slot="progress"] {
  background: rgba(24, 86, 255, 0.16) !important;
  border: 1px solid rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
[data-slot="progress-indicator"] {
  background: linear-gradient(90deg, #1856ff, #2dd4bf) !important;
  box-shadow: 0 0 14px rgba(45, 212, 191, 0.7);
}

/* ── FAQ ────────────────────────────────────────────────────────────── */
[data-slot="accordion-item"] {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  margin: 0.5rem 0;
  padding: 0 0.9rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
html.dark [data-slot="accordion-item"] {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
[data-slot="accordion-item"][data-state="open"] {
  border-color: rgba(24, 86, 255, 0.45);
  background: rgba(24, 86, 255, 0.08);
  box-shadow: 0 14px 34px -18px rgba(24, 86, 255, 0.55), 0 0 0 3px rgba(24, 86, 255, 0.1);
}
html.dark [data-slot="accordion-item"][data-state="open"] {
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(45, 212, 191, 0.07);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.9), 0 0 0 3px rgba(45, 212, 191, 0.12);
}
[data-slot="accordion-trigger"] {
  min-height: 48px;
  border-radius: 12px;
}
[data-slot="accordion-trigger"]:hover { text-decoration: none !important; }
[data-slot="accordion-trigger"] svg {
  transition: transform 0.3s ease !important;
  color: #1856ff;
}
html.dark [data-slot="accordion-trigger"] svg { color: #2dd4bf; }
[data-slot="accordion-trigger"][data-state="open"] svg { transform: rotate(180deg); }
[data-slot="accordion-content"] {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.32, 0.72, 0.35, 1);
}
[data-slot="accordion-content"][hidden] { display: none !important; }
[data-slot="accordion-content"][data-state="open"] { grid-template-rows: 1fr; }
.vt-faq-answer {
  min-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 0 1rem;
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

/* ── Glass cards, tables, footer ────────────────────────────────────── */
main .rounded-2xl.border {
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
}
footer {
  background: color-mix(in oklab, var(--background) 55%, transparent) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}
html.dark footer { border-top-color: rgba(255, 255, 255, 0.1); }
footer a:hover { color: #1856ff !important; }
html.dark footer a:hover { color: #2dd4bf !important; }

/* ── Toasts (beat the runtime-injected <style> with higher specificity) */
body .vt-toaster .vt-toast {
  background: rgba(255, 255, 255, 0.78) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 40px -16px rgba(24, 86, 255, 0.5) !important;
  color: #0a0a0a;
}
html.dark body .vt-toaster .vt-toast {
  background: rgba(10, 14, 26, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #fafafa;
}
body .vt-toaster .vt-toast.vt-error {
  border-color: rgba(220, 38, 38, 0.55) !important;
  box-shadow: 0 18px 40px -16px rgba(220, 38, 38, 0.55) !important;
}
body .vt-toaster .vt-toast .vt-desc { color: var(--muted-foreground); }

/* Error card glass */
div[role="alert"].rounded-xl {
  background: rgba(220, 38, 38, 0.08) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-color: rgba(220, 38, 38, 0.4) !important;
}

/* Touch targets + overflow safety */
button, a { -webkit-tap-highlight-color: transparent; }
@media (max-width: 640px) {
  #converter { padding: 1rem !important; }
  .vt-result-body { padding-top: 0.85rem; }
}

/* ── Film grain over everything (4% opacity, never blocks clicks) ──── */
.vt-grain {
  position: fixed;
  inset: -50%;
  z-index: 200;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: vt-grain-shift 1.2s steps(4) infinite;
}
@keyframes vt-grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1.5%); }
  50% { transform: translate(1.5%, -2%); }
  75% { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}

/* ── First-screen entrance: alive within one second ─────────────────── */
header.sticky { animation: vt-fade-down 0.6s ease both; }
#converter { animation: vt-rise 0.7s cubic-bezier(0.32, 0.72, 0.35, 1) both 0.08s; }
main h1, main h1 + p { animation: vt-rise 0.6s ease both; }
@keyframes vt-fade-down {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes vt-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Floating logo mark + hero accents ──────────────────────────────── */
header.sticky a[aria-label*="home"] span.bg-red-600 {
  animation: vt-float 6s ease-in-out infinite;
  box-shadow: 0 8px 22px -6px rgba(220, 38, 38, 0.65), 0 0 18px rgba(24, 86, 255, 0.35);
}
@keyframes vt-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* ── Converter: gradient border, shimmer sheen, breathing glow ─────── */
#converter {
  position: relative;
  overflow: hidden;
  animation: vt-rise 0.7s cubic-bezier(0.32, 0.72, 0.35, 1) both 0.08s, vt-glow-breathe 7s ease-in-out infinite 0.8s;
}
#converter::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(24, 86, 255, 0.85), rgba(45, 212, 191, 0.6) 45%, rgba(255, 176, 32, 0.65) 80%, rgba(24, 86, 255, 0.85));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
#converter::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-18deg);
  animation: vt-sheen 9s ease-in-out infinite 1.2s;
  pointer-events: none;
  z-index: 1;
}
@keyframes vt-sheen {
  0%, 55% { left: -60%; }
  85%, 100% { left: 130%; }
}
@keyframes vt-glow-breathe {
  0%, 100% { box-shadow: 0 24px 60px -24px rgba(24, 86, 255, 0.45), 0 2px 0 rgba(255, 255, 255, 0.6) inset; }
  50%      { box-shadow: 0 24px 74px -20px rgba(24, 86, 255, 0.65), 0 2px 0 rgba(255, 255, 255, 0.6) inset; }
}
html.dark #converter { animation: vt-rise 0.7s cubic-bezier(0.32, 0.72, 0.35, 1) both 0.08s, vt-glow-breathe-dark 7s ease-in-out infinite 0.8s; }
@keyframes vt-glow-breathe-dark {
  0%, 100% { box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.12) inset; }
  50%      { box-shadow: 0 24px 74px -18px rgba(24, 86, 255, 0.55), 0 1px 0 rgba(255, 255, 255, 0.12) inset; }
}
/* Converter is the brightest thing on the page: glowing input + CTA */
#yt-url:focus-visible {
  box-shadow: 0 0 0 4px rgba(24, 86, 255, 0.25), 0 0 32px rgba(24, 86, 255, 0.5) !important;
}

/* ── Save button: gradient border + shine ───────────────────────────── */
.vt-save-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(45, 212, 191, 0.8), rgba(255, 255, 255, 0.9));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* ── Micro-interactions: lift + glow ────────────────────────────────── */
.vt-format-btn {
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease, background 0.2s ease !important;
}
.vt-format-btn:hover { transform: translateY(-2px); }
.vt-format-btn[aria-checked="true"]:hover { transform: translateY(-2px) scale(1.01); }
[data-slot="accordion-item"] { transition: transform 0.2s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease; }
[data-slot="accordion-item"]:hover { transform: translateY(-1px); }
[data-slot="accordion-item"][data-state="open"]:hover { transform: none; }
main .rounded-2xl.border { transition: transform 0.25s ease, box-shadow 0.25s ease; }
main .rounded-2xl.border:hover { transform: translateY(-2px); }
#converter:hover { transform: none; } /* entrance/breathe own the card */
footer a { transition: color 0.2s ease, transform 0.2s ease; }
.vt-result-thumb { transition: box-shadow 0.3s ease; }
.vt-result-thumb:hover { box-shadow: 0 0 0 3px rgba(24, 86, 255, 0.35), 0 18px 40px -18px rgba(24, 86, 255, 0.6); }

/* ── Reduced motion: EVERYTHING above goes still ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .vt-grain { animation: none !important; }
  header.sticky, #converter, main h1, main h1 + p,
  header.sticky a[aria-label*="home"] span.bg-red-600 { animation: none !important; }
  #converter::after { display: none; }
  .vt-format-btn:hover, [data-slot="accordion-item"]:hover,
  main .rounded-2xl.border:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .vt-aurora::before, .vt-aurora::after { animation: none !important; }
  .vt-result-thumb img { transition: none; }
  [data-slot="accordion-content"] { transition: none; }
  #converter button.bg-red-600::after, .vt-save-btn::after { display: none; }
}
