/* Animations catalog - gallery layout: quiet sticky sidebar on the left,
   three columns of unboxed previews on the right. */

.animations-page {
  --anim-bg: #09090b;
  --anim-surface: #111114;
  --anim-line: #ffffff12;
  --anim-line-strong: #ffffff24;
  --anim-text: #f5f7ff;
  --anim-muted: #9a9fb0;
  --anim-faint: #686d7e;
  --anim-accent: #3264f0;
  --anim-accent-soft: #8aa4ff;
  --anim-green: #4ade80;
  --anim-ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* Bottom edge of the floating site header (top 16px + 64px) plus breathing room. */
  --anim-header-clear: 104px;

  min-height: 100vh;
  background: var(--anim-bg);
  overflow-x: clip;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  color: var(--anim-text);
}

.animations-page .bg-mesh {
  display: none;
}

.animations-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── Shell: sidebar + gallery ───────────────────────────────── */
.animations-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0 40px;
  width: min(100% - 48px, 1600px);
  margin: 0 auto;
  padding: var(--anim-header-clear) 0 112px;
}

.animations-side {
  position: sticky;
  top: var(--anim-header-clear);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px 0 24px;
}

.animations-intro h1 {
  margin: 0;
  font-family: "Dela Gothic One", var(--display, fantasy);
  font-size: 46px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  /* Room for the „j” descender without pushing the lead down. */
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.animations-lead {
  margin: 14px 0 0;
  max-width: 30ch;
  color: var(--anim-muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}

.animations-lead .fm-mark {
  color: #fff;
}

/* Search */
.animations-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 8px 0 14px;
  border: 1px solid #ffffff0f;
  border-radius: 12px;
  background: #ffffff08;
  cursor: text;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.animations-search:hover {
  border-color: #ffffff1c;
}

.animations-search:focus-within {
  border-color: #3264f0a0;
  background: #0e1017;
  box-shadow: 0 0 0 4px #3264f024;
}

.animations-search svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--anim-muted);
}

.animations-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}

.animations-search input::placeholder {
  color: var(--anim-faint);
}

.animations-search input::-webkit-search-cancel-button {
  display: none;
  appearance: none;
}

.animations-search-clear {
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0 0 2px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--anim-muted);
  font: 500 19px/1 Inter, sans-serif;
  cursor: pointer;
  transition: color .18s, background .18s;
}

.animations-search-clear[hidden] {
  display: none;
}

.animations-search-clear:hover,
.animations-search-clear:focus-visible {
  outline: 0;
  color: #fff;
  background: #ffffff0d;
}

.animations-search kbd {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid var(--anim-line-strong);
  border-radius: 6px;
  background: #ffffff06;
  color: var(--anim-muted);
  font: 500 11px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  transition: opacity 0.2s;
}

.animations-search:focus-within kbd,
.animations-search.has-value kbd {
  display: none;
}

/* Categories */
.animations-cats-label {
  margin: 0 0 14px 12px;
  color: var(--anim-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.animations-cats {
  display: grid;
  gap: 2px;
}

.animations-category {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 9px 10px 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--anim-muted);
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.animations-page .animations-category:hover,
.animations-page .animations-category:active {
  transform: none;
}

.animations-category svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  transition: color 0.2s;
}

.animations-category:hover {
  color: #fff;
  background: #ffffff07;
}

.animations-category.active {
  color: #fff;
  background: #ffffff0f;
}

.animations-category.active svg {
  color: var(--anim-accent-soft);
}

.animations-category .n {
  margin-left: auto;
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffffff08;
  color: var(--anim-muted);
  font: 500 11px/1.5 ui-monospace, "SFMono-Regular", Menlo, monospace;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.animations-category.active .n {
  background: var(--anim-accent);
  color: #fff;
}

.animations-category:focus-visible {
  outline: 2px solid var(--anim-accent-soft);
  outline-offset: 2px;
}

/* ── Main column ────────────────────────────────────────────── */
.animations-main {
  min-width: 0;
  padding-top: 32px;
}

.animations-sub {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 40px;
  padding: 18px 24px 18px 18px;
  border-radius: 22px;
  /* One deep navy family for fill and border, so the 3px outline reads as the
     card's own edge rather than a frame laid on top. */
  background:
    radial-gradient(120% 140% at 0% 0%, #1d2c5e, transparent 60%),
    linear-gradient(135deg, #141d3f, #0b1024 70%);
  box-shadow: 0 22px 50px -28px #3264f0aa;
}

/* Gradient border: bright where the light comes from, settling into navy. */
.animations-sub::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 3px;
  border-radius: inherit;
  background: linear-gradient(120deg, #a9c1ff, #5b7fe6 30%, #26386f 70%, #3a529a);
  -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);
  pointer-events: none;
}

@keyframes anim-sub-underline {
  to { -webkit-mask-position: 0 0, 0 0; mask-position: 0 0, 0 0; }
}

.animations-sub-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.animations-sub-icon svg {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 4px 10px #3264f088);
}

.animations-sub p {
  margin: 0;
  min-width: 0;
  color: #b4c1e6;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

/* Hand-drawn underline under the title, drawn in once when the card appears. */
.animations-sub p b {
  display: table;
  margin-bottom: 4px;
  padding-bottom: 7px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 7.2C30 4.6 62 3.4 98 3.9c34 .5 62 2.1 99-.9' fill='none' stroke='%238fb0ff' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M14 8.6c40-2.4 92-2.6 150-1.7' fill='none' stroke='%238fb0ff' stroke-opacity='.45' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") 0 100% / 100% 9px no-repeat;
  -webkit-mask: linear-gradient(90deg, #000 50%, transparent 50%) 0 0 / 200% 100% no-repeat, linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 9px) no-repeat;
  -webkit-mask-position: 100% 0, 0 0;
  mask: linear-gradient(90deg, #000 50%, transparent 50%) 100% 0 / 200% 100% no-repeat, linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 9px) no-repeat;
  animation: anim-sub-underline 0.7s 0.35s var(--anim-ease) forwards;
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.animations-promo-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px 0 18px;
  border-radius: 13px;
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(135deg, #6d8eff, #3264f0 55%, #193dbb);
  box-shadow: 0 12px 26px -14px #3264f0cc, inset 0 1px #ffffff47;
  transition: filter 0.18s, transform 0.18s;
}

.animations-promo-cta svg {
  width: 17px;
  height: 17px;
  transition: transform 0.25s var(--anim-ease);
}

.animations-promo-cta:hover {
  filter: brightness(1.08);
}

.animations-promo-cta:hover svg {
  transform: translateX(3px);
}

.animations-promo-cta:focus-visible {
  outline: 2px solid #a9c1ff;
  outline-offset: 3px;
}

/* ── Upsell for visitors without a plan ───────────────────────
   The subscriber card's layout, with one effect: a single solid accent colour
   (edge, icon, underline, button, glow) that drifts smoothly around the RGB
   wheel. OKLCH keeps every hue at the same perceived brightness. */
@property --promo-hue {
  syntax: "<number>";
  inherits: true;
  initial-value: 265;
}

.animations-sub--promo {
  --accent: oklch(0.7 0.19 var(--promo-hue));
  --accent-strong: oklch(0.6 0.21 var(--promo-hue));
  animation: promo-hue 14s linear infinite;
  background: color-mix(in oklch, var(--accent) 9%, #0b0c12);
  box-shadow: 0 20px 48px -30px var(--accent);
}

@keyframes promo-hue {
  from { --promo-hue: 265; }
  to { --promo-hue: 625; }
}

.animations-sub--promo::before {
  padding: 2px;
  background: var(--accent);
}

.animations-sub--promo p {
  flex: 1 1 auto;
  color: #c4c7d0;
}

.animations-sub--promo .promo-stop-a,
.animations-sub--promo .promo-stop-b { stop-color: var(--accent); }

.animations-sub--promo .animations-sub-icon svg {
  filter: drop-shadow(0 4px 10px color-mix(in oklch, var(--accent) 55%, transparent));
}

/* Underline drawn as a mask so it can take the moving colour. */
.animations-sub--promo p b {
  position: relative;
  background: none;
}

.animations-sub--promo p b::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 7.2C30 4.6 62 3.4 98 3.9c34 .5 62 2.1 99-.9' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M14 8.6c40-2.4 92-2.6 150-1.7' fill='none' stroke='%23000' stroke-opacity='.45' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 7.2C30 4.6 62 3.4 98 3.9c34 .5 62 2.1 99-.9' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M14 8.6c40-2.4 92-2.6 150-1.7' fill='none' stroke='%23000' stroke-opacity='.45' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}

.animations-sub--promo .animations-promo-cta {
  background: var(--accent-strong);
  box-shadow: 0 12px 26px -14px var(--accent-strong), inset 0 1px #ffffff38;
}

/* ── Grid: 3 unboxed previews in a row ──────────────────────── */
.youtube-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 24px;
}

.youtube-animation {
  position: relative;
  min-width: 0;
  border-radius: 16px;
  cursor: pointer;
  outline: none;
  isolation: isolate;
  animation: anim-card-in 0.6s var(--anim-ease) backwards;
  animation-delay: calc(min(var(--i, 0), 11) * 45ms + 120ms);
}

/* YouTube-style hover: a panel tinted with the animation's one vivid colour
   (--glow, picked server-side in lib/card-preview.js) grows out from behind the card.
   Measured from YT at 30fps: in ≈230ms ease-out from ~96% size, out ≈130ms. */
.youtube-animation::before {
  content: "";
  position: absolute;
  inset: -14px -14px -16px;
  z-index: -1;
  border-radius: 26px;
  background: color-mix(in srgb, var(--glow, #3264f0) 17%, #0e0e10);
  opacity: 0;
  transform: scale(0.96, 0.94);
  transition: opacity 0.13s ease-in, transform 0.13s ease-in, background-color 0.2s;
  pointer-events: none;
}

.youtube-animation:hover::before,
.youtube-animation:focus-visible::before {
  opacity: 1;
  transform: none;
  transition: opacity 0.2s ease-out, transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s;
}

/* Image Motion presets (cards that open /editor): their purple tint stays on (the owner's
   pick: the hover look, faint, always). At rest it is a touch smaller, so neighbouring preset
   tints keep a gap; under the pointer it grows to the full hover panel, a little stronger. */
.youtube-animation.is-image-motion::before {
  opacity: 1;
  transform: scale(0.97, 0.96);
}

.youtube-animation.is-image-motion:hover::before,
.youtube-animation.is-image-motion:focus-visible::before {
  background: color-mix(in srgb, var(--glow, #a855f7) 24%, #0e0e10);
}

/* While the page scrolls, cards sliding under the cursor must not start hover
   transitions (that was the main scroll stutter). Hover returns on stop. */
.youtube-grid.is-scrolling {
  pointer-events: none;
}

.youtube-animation .thumb {
  contain: layout paint;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 70% 0, #3264f01c, transparent 60%),
    #0c0c0f;
  transition: box-shadow 0.3s;
}

.youtube-animation:focus-visible .thumb {
  box-shadow: 0 0 0 2px var(--anim-bg), 0 0 0 4px var(--anim-accent-soft) !important;
}

/* Loading shimmer behind the video until the first frame arrives.
   The sheen moves with transform (compositor-only) instead of background-position,
   which would repaint every loading card on every frame. */
.youtube-animation .thumb::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100%;
  width: 300%;
  z-index: -1;
  background: linear-gradient(100deg, transparent 38%, #ffffff0a 50%, transparent 62%);
  animation: anim-shimmer 1.6s linear infinite;
  will-change: transform;
}

.youtube-animation .thumb.is-loaded {
  background: #0c0c0f;
}

.youtube-animation .thumb.is-loaded::before {
  animation: none;
  display: none;
}

.youtube-animation video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Older card encodes carry a 2px black pad on the right edge; a static
     (never animated) overscan from the left hides it. */
  transform: scale(1.014);
  transform-origin: 0 50%;
}

.youtube-animation .meta {
  display: grid;
  gap: 4px;
  margin-top: 14px;
}

.youtube-animation .meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.youtube-animation h2 {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Dela Gothic One", var(--display, fantasy);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--anim-text);
  transition: color 0.2s;
}

.youtube-animation:hover h2 {
  color: #fff;
}

.youtube-animation .meta-cat {
  color: var(--anim-muted);
  font-size: 13px;
  font-weight: 700;
}

/* Format / style-variant tags next to the title: glass chips with the
   header's corner shape (20px on the 64px topbar ≈ 8px here). */
.anim-tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 8px;
  color: #e9edf7;
  background: linear-gradient(180deg, #ffffff17, #ffffff08);
  box-shadow: inset 0 1px 0 #ffffff1c, inset 0 0 0 1px #ffffff0f;
  font: 600 11px/1 Inter, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.anim-tag .ar {
  display: inline-block;
  flex: 0 0 auto;
  border: 1.4px solid #ffffffb3;
  border-radius: 2.5px;
  background: #ffffff14;
}

.anim-tag .ar.h {
  width: 13px;
  height: 8px;
}

.anim-tag .ar.v {
  width: 8px;
  height: 13px;
}

.anim-tag svg {
  width: 13px;
  height: 13px;
  color: #a9c1ff;
}

.anim-tag--formats {
  gap: 0;
  padding: 0 3px;
  color: #86efac;
  background: linear-gradient(180deg, #4ade8026, #22c55e0d);
  box-shadow: inset 0 1px 0 #bbf7d024, inset 0 0 0 1px #4ade8033;
}

.anim-tag--formats .ar {
  border-color: #86efacd9;
  background: #4ade801f;
}

.anim-tag--formats .seg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 7px;
}

.anim-tag--formats .seg + .seg {
  box-shadow: inset 1px 0 0 #4ade8040;
}

.anim-tag--image-motion {
  color: #d8b4fe;
  background: linear-gradient(180deg, #a855f72e, #9333ea12);
  box-shadow: inset 0 1px 0 #e9d5ff24, inset 0 0 0 1px #c084fc40;
  font-weight: 700;
}

/* Placeholder cards while the library loads */
.youtube-animation.is-skeleton {
  cursor: default;
  pointer-events: none;
}

.youtube-animation.is-skeleton .meta span {
  display: block;
  height: 14px;
  width: 52%;
  border-radius: 6px;
  background: #ffffff0c;
}

.youtube-animation.is-skeleton .meta span + span {
  width: 28%;
  height: 11px;
}

.animations-empty {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 82px;
  margin: 0;
  padding: 24px 28px;
  border: 1px dashed #ffffff1c;
  border-radius: 20px;
  background: #ffffff04;
  text-align: center;
  color: var(--anim-muted);
  font-size: 15px;
  line-height: 1.5;
}

.animations-empty[hidden] {
  display: none;
}

@keyframes anim-card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes anim-shimmer {
  from { transform: translateX(-33%); }
  to { transform: translateX(33%); }
}

/* ── Login modal (unchanged behavior) ───────────────────────── */
.animations-login-backdrop {
  background:
    radial-gradient(ellipse at 50% 42%, rgba(50, 100, 240, 0.22), transparent 52%),
    rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  transition: none;
}

.animations-login-backdrop.open {
  animation: animations-login-fade 0.42s ease both;
}

.animations-login-modal {
  width: min(440px, calc(100vw - 32px));
  padding: 32px 30px 24px;
  overflow: hidden;
  text-align: center;
  color: #f4f6fb;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(ellipse at 50% -10%, rgba(50, 100, 240, 0.34), transparent 58%),
    linear-gradient(180deg, rgba(18, 24, 42, 0.96), rgba(9, 9, 11, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 30px 80px rgba(0, 0, 0, 0.55);
  transition: none;
}

.animations-login-modal.open {
  animation: animations-login-pop 0.62s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes animations-login-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes animations-login-pop {
  from {
    opacity: 0;
    transform: translate(-50%, -44%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.animations-login-grid {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(101, 138, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 138, 255, 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(#000, transparent 72%);
  mask-image: linear-gradient(#000, transparent 72%);
}

.animations-login-brand,
.animations-login-modal h2,
.animations-login-modal p.lead,
.animations-login-modal .modal-actions,
.animations-modal-close {
  position: relative;
  z-index: 1;
}

.animations-login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 22px;
  color: #fff;
  text-decoration: none;
}

.animations-login-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(50, 100, 240, 0.45));
}

.animations-login-brand span {
  font-family: "Dela Gothic One", var(--display, fantasy);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.animations-login-modal h2 {
  margin: 0;
  font-family: "Dela Gothic One", var(--display, fantasy);
  font-size: clamp(1.7rem, 3.4vw, 2.05rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #fff;
}

.animations-login-modal h2 span {
  display: block;
}

.animations-login-modal h2 span:last-child {
  color: #3264f0;
}

.animations-login-modal p.lead {
  max-width: 34ch;
  margin: 14px auto 24px;
  color: #c2bec8;
  font-size: 0.98rem;
  line-height: 1.55;
}

.animations-login-modal .modal-actions {
  display: grid;
  gap: 10px;
}

.animations-login-go {
  width: 100%;
  min-height: 58px;
  border-radius: 18px;
  font-size: 1.05rem;
  gap: 12px;
  text-decoration: none;
}

.animations-login-go svg {
  width: 20px;
  height: 20px;
}

.animations-login-register {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  font-weight: 700;
  text-decoration: none;
}

.animations-modal-close {
  display: block;
  margin: 16px auto 0;
  padding: 0;
  border: 0;
  background: none;
  color: #9a9aa3;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.animations-modal-close:hover {
  color: #fff;
}

@media (max-width: 1180px) {
  .youtube-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .animations-shell {
    grid-template-columns: minmax(0, 1fr);
    width: min(100% - 32px, 1600px);
    padding-top: 96px;
  }

  .animations-side {
    position: static;
    gap: 20px;
    padding: 16px 0 0;
  }

  .animations-cats-label {
    display: none;
  }

  .animations-cats {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 0 16px;
  }

  .animations-cats::-webkit-scrollbar {
    display: none;
  }

  .animations-category {
    flex: 0 0 auto;
    width: auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: #ffffff07;
  }

  .animations-main {
    padding-top: 28px;
  }

  .animations-sub {
    margin-bottom: 28px;
  }

  .youtube-grid {
    gap: 36px 16px;
  }

  .animations-login-modal h2 {
    font-size: 1.42rem;
  }
}

@media (max-width: 600px) {
  .animations-intro h1 {
    font-size: 40px;
  }

  .youtube-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .animations-sub {
    padding: 16px 18px 16px 14px;
  }

  .animations-sub--promo {
    flex-wrap: wrap;
  }

  .animations-sub--promo p {
    flex-basis: calc(100% - 62px);
  }

  .animations-promo-cta {
    width: 100%;
    justify-content: center;
  }

  .animations-login-modal {
    padding: 28px 22px 20px;
  }
}

@media (hover: none) {
  .animations-search kbd {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .youtube-animation,
  .youtube-animation .thumb::before,
  .animations-sub--promo {
    animation: none;
  }

  .animations-sub p b {
    animation: none;
    -webkit-mask: none;
    mask: none;
  }

  .youtube-animation::before,
  .youtube-animation h2,
  .animations-category {
    transition: none;
  }
}
