/* ============================================================
   videoxd.com â€” Sistema de DiseÃ±o Principal
   Arquitectura: Apple HIG aplicado a UIkit + scroll-snap nativo
   INSTRUCCIÃ“N FTP: Subir a /css/app.css
   ============================================================ */

/* â”€â”€ Variables del Sistema de DiseÃ±o â”€â”€ */
:root {
  --vidxd-black: #000000;
  --vidxd-glass-bg: rgba(0, 0, 0, 0.35);
  --vidxd-glass-border: rgba(255, 255, 255, 0.12);
  --vidxd-white: #ffffff;
  --vidxd-white-60: rgba(255, 255, 255, 0.60);
  --vidxd-accent: #ff2d55;
  /* Rojo Apple â€” botÃ³n like */
  --vidxd-accent-glow: rgba(255, 45, 85, 0.45);
  --vidxd-radius-btn: 50%;
  --vidxd-radius-bar: 20px;
  --vidxd-blur: blur(16px) saturate(180%);
  --vidxd-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --vidxd-font: -apple-system, BlinkMacSystemFont, 'SF Pro Display',
    'Segoe UI', Roboto, sans-serif;
}

/* â”€â”€ Reset & Base â”€â”€ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  /* El scroll lo maneja #video-feed */
  background: var(--vidxd-black);
  color: var(--vidxd-white);
  font-family: var(--vidxd-font);
  /* Soporte de safe-area en iPhone con notch */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

/* â”€â”€ Splash Screen â”€â”€ */
#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--vidxd-black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: splashPulse 1.2s ease-in-out infinite alternate;
}

.splash-icon {
  font-size: 56px;
  color: var(--vidxd-accent);
  filter: drop-shadow(0 0 20px var(--vidxd-accent-glow));
}

.splash-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--vidxd-white);
}

@keyframes splashPulse {
  from {
    transform: scale(1);
    opacity: 1;
  }

  to {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FEED PRINCIPAL â€” Scroll Snap Vertical
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#video-feed {
  height: 100dvh;
  /* dvh: respeta la barra de herramientas mÃ³vil */
  width: 100vw;
  overflow-y: scroll;
  overflow-x: hidden;

  /* â”€â”€ SCROLL SNAP: preciso como TikTok nativo â”€â”€ */
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;

  /* Ocultar scrollbar (visual) en todos los navegadores */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#video-feed::-webkit-scrollbar {
  display: none;
}

/* â”€â”€ Cada slide ocupa exactamente la pantalla completa â”€â”€ */
.video-slide {
  position: relative;
  height: 100dvh;
  width: 100vw;
  flex-shrink: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  /* Fuerza detenerse en cada video */
  overflow: hidden;
  background: #111;
}

/* â”€â”€ Elemento <video> a pantalla completa â”€â”€ */
.video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Contain: preserva ratio sin recortar */
  background: var(--vidxd-black);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* â”€â”€ Video 9:16 o mÃ¡s alto: llenar pantalla completamente â”€â”€ */
.video-slide[data-ratio="vertical"] .video-player {
  object-fit: cover;
  /* Vertical puro: sÃ­ puede llenar */
}

/* â”€â”€ Video cuadrado o ligeramente horizontal: centrado â”€â”€ */
.video-slide[data-ratio="square"] .video-player,
.video-slide[data-ratio="horizontal"] .video-player {
  object-fit: contain;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   OVERLAY â€” Girar Pantalla (solo en videos horizontales)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.rotate-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.rotate-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

.rotate-hint-icon {
  font-size: 48px;
  animation: rotateWiggle 1.8s ease-in-out infinite;
}

.rotate-hint-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--vidxd-white);
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.3px;
}

@keyframes rotateWiggle {
  0% {
    transform: rotate(0deg);
  }

  20% {
    transform: rotate(-25deg);
  }

  40% {
    transform: rotate(25deg);
  }

  60% {
    transform: rotate(-25deg);
  }

  80% {
    transform: rotate(25deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

/* En landscape, el hint desaparece (el video pasa a fullscreen via JS) */
@media (orientation: landscape) {
  .rotate-hint {
    opacity: 0;
    pointer-events: none;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   OVERLAY â€” InformaciÃ³n + Botones
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.video-overlay {
  position: absolute;
  inset: 0;
  /* Degradado sutil en la parte inferior para legibilidad del tÃ­tulo */
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.15) 40%,
      transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 16px 32px 16px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
  pointer-events: none;
  /* Pasa clics al video por defecto */
}

/* â”€â”€ Info del Video (izquierda) â”€â”€ */
.video-info {
  pointer-events: auto;
  max-width: calc(100% - 90px);
  padding-right: 12px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--vidxd-white);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  margin-bottom: 6px;
  /* MÃ¡x 3 lÃ­neas */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--vidxd-white-60);
  background: var(--vidxd-glass-bg);
  backdrop-filter: var(--vidxd-blur);
  -webkit-backdrop-filter: var(--vidxd-blur);
  border: 1px solid var(--vidxd-glass-border);
  border-radius: 100px;
  padding: 3px 10px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ACTION BAR â€” Glassmorphism "Liquid UI"
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.action-bar {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--vidxd-glass-bg);
  backdrop-filter: var(--vidxd-blur);
  -webkit-backdrop-filter: var(--vidxd-blur);
  border: 1px solid var(--vidxd-glass-border);
  border-radius: var(--vidxd-radius-bar);
  padding: 12px 10px 8px;
  cursor: pointer;
  transition:
    transform var(--vidxd-transition),
    background var(--vidxd-transition),
    box-shadow var(--vidxd-transition);
  min-width: 54px;
  color: var(--vidxd-white);
  user-select: none;
  -webkit-user-select: none;
}

.action-btn:active {
  transform: scale(0.92);
}

.action-icon {
  font-size: 26px;
  line-height: 1;
  display: block;
}

.action-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--vidxd-white-60);
  letter-spacing: 0.2px;
}

/* â”€â”€ BotÃ³n Like â€” estado base â”€â”€ */
.btn-like .action-icon {
  color: var(--vidxd-white);
  transition: color var(--vidxd-transition), transform var(--vidxd-transition);
}

/* â”€â”€ BotÃ³n Like â€” estado activo (liked) â”€â”€ */
.btn-like.is-liked {
  background: rgba(255, 45, 85, 0.20);
  border-color: var(--vidxd-accent);
  box-shadow: 0 0 18px var(--vidxd-accent-glow);
}

.btn-like.is-liked .action-icon {
  color: var(--vidxd-accent);
}

/* â”€â”€ Micro-animaciÃ³n "Pop" al dar like â”€â”€ */
@keyframes heartPop {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.55) rotate(-8deg);
  }

  60% {
    transform: scale(0.88) rotate(4deg);
  }

  80% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

.btn-like.pop .action-icon {
  animation: heartPop 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* â”€â”€ BotÃ³n compartir â”€â”€ */
.btn-share:hover,
.btn-share:active {
  background: rgba(100, 200, 255, 0.18);
  border-color: rgba(100, 200, 255, 0.5);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ESTADOS DE CARGA
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.loading-indicator {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--vidxd-white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.end-of-feed {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--vidxd-glass-bg);
  backdrop-filter: var(--vidxd-blur);
  -webkit-backdrop-filter: var(--vidxd-blur);
  border: 1px solid var(--vidxd-glass-border);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--vidxd-white-60);
  z-index: 100;
}

/* â”€â”€ Slide de esqueleto (placeholder mientras carga) â”€â”€ */
.video-slide-skeleton {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
  background-size: 200% 200%;
  animation: skeleton 1.5s ease infinite;
}

@keyframes skeleton {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* â”€â”€ Toast de notificaciÃ³n rÃ¡pida â”€â”€ */
.toast-notification {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(30, 30, 30, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--vidxd-glass-border);
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--vidxd-white);
  z-index: 500;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* â”€â”€ Category Drawer (glass, lado derecho) â”€â”€ */
.category-toggle {
  position: fixed;
  right: 12px;
  top: 40%;
  transform: translateY(-50%);
  z-index: 420;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(10, 10, 10, 0.52);
  color: var(--vidxd-white);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
  padding: 10px 13px;
  cursor: pointer;
  transition: transform .24s ease, background .24s ease, box-shadow .24s ease;
}

.category-toggle:active {
  transform: translateY(-50%) scale(.96);
}

.category-toggle:hover {
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
}

.category-toggle-arrow {
  font-size: 13px;
  transition: transform .24s ease;
}

.category-toggle-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2px;
}

body.categories-open .category-toggle-arrow {
  transform: rotate(180deg);
}

body.categories-open {
  overflow: hidden;
}

.category-drawer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-height: none;
  z-index: 430;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at top left, rgba(90, 185, 255, .14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 74, 87, .10), transparent 26%),
    linear-gradient(160deg, rgba(22, 24, 31, .96), rgba(8, 8, 10, .92));
  backdrop-filter: blur(22px) saturate(175%);
  -webkit-backdrop-filter: blur(22px) saturate(175%);
  box-shadow: none;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
}

.category-drawer::before,
.category-drawer::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(0);
  pointer-events: none;
  opacity: .8;
}

.category-drawer::before {
  top: -120px;
  left: -90px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(90, 185, 255, .18), transparent 70%);
}

.category-drawer::after {
  right: -80px;
  bottom: 60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 74, 87, .12), transparent 72%);
}

body.categories-open .category-drawer {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.category-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: calc(env(safe-area-inset-top) + 14px) 16px 12px;
  background: linear-gradient(to bottom, rgba(9, 10, 14, .92), rgba(9, 10, 14, .68), transparent);
  pointer-events: none;
}

.category-drawer-title {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--vidxd-white);
  text-shadow: 0 4px 18px rgba(0, 0, 0, .35);
}

.category-drawer-title::after {
  content: "Explora rapido por tema";
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .62);
}

.category-close {
  border: 0;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)),
    rgba(0, 0, 0, .32);
  color: var(--vidxd-white);
  font-size: 17px;
  cursor: pointer;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
  pointer-events: auto;
}

.category-list {
  position: relative;
  z-index: 1;
  height: calc(100dvh - env(safe-area-inset-top) - 82px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 14px;
  grid-auto-flow: dense;
  gap: 14px;
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 8px 16px calc(env(safe-area-inset-bottom) + 28px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.category-card {
  position: relative;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)),
    rgba(255, 255, 255, .03);
  color: var(--vidxd-white);
  cursor: pointer;
  overflow: hidden;
  min-height: 0;
  min-width: 0;
  grid-column: span 4;
  grid-row: span 22;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 16px 34px rgba(0, 0, 0, .24);
  transition: border-color .22s ease, background .22s ease, transform .28s ease, box-shadow .28s ease, filter .28s ease;
  animation: category-card-reveal .55s cubic-bezier(.22, .8, .25, 1) both;
  isolation: isolate;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .18), transparent 26%, transparent 68%, rgba(255, 255, 255, .08)),
    linear-gradient(to top, rgba(0, 0, 0, .38), transparent 48%);
  opacity: .68;
  transition: opacity .28s ease;
  pointer-events: none;
  z-index: 1;
}

.category-card:active {
  transform: scale(.985) translateY(2px);
}

.category-card:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 28px 52px rgba(0, 0, 0, .34);
  transform: translateY(-6px) scale(1.01);
}

.category-card:hover::before,
.category-card.active::before {
  opacity: .82;
}

.category-card.active {
  border-color: rgba(90, 185, 255, .50);
  background:
    linear-gradient(180deg, rgba(90, 185, 255, .14), rgba(255, 255, 255, .03)),
    rgba(255, 255, 255, .04);
  box-shadow: 0 0 0 1px rgba(90, 185, 255, .16), 0 28px 52px rgba(0, 0, 0, .36);
}

.category-card-media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(90, 185, 255, .28), transparent 58%),
    linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
}

.category-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 18px 16px 16px;
  background: linear-gradient(to top, rgba(4, 6, 12, .94), rgba(4, 6, 12, .26) 68%, transparent);
  pointer-events: none;
}

.category-card-name {
  display: block;
  max-width: 100%;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .01em;
  color: var(--vidxd-white);
  text-align: left;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}

.category-card-meta {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, .88);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.category-card-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff3d6;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 149, 0, .22);
  border: 1px solid rgba(255, 185, 90, .34);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.category-card-all .category-card-media {
  background:
    radial-gradient(circle at top left, rgba(90, 185, 255, .28), transparent 58%),
    radial-gradient(circle at bottom right, rgba(255, 74, 87, .18), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
}

.category-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform .7s ease, filter .35s ease;
}

.category-card:hover .category-card-thumb,
.category-card.active .category-card-thumb {
  transform: scale(1.08);
}

.category-card.is-locked .category-card-media {
  background:
    linear-gradient(145deg, rgba(255, 149, 0, .18), rgba(255, 255, 255, .04)),
    rgba(255, 255, 255, .03);
}

.category-card.is-locked .category-card-thumb {
  filter: blur(10px) saturate(.8);
  transform: scale(1.12);
}

.category-card-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 76px;
  border-radius: 20px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .10);
  color: var(--vidxd-white);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
}

.category-card-fallback-empty {
  min-width: 100%;
  min-height: 100%;
  border-radius: 0;
  padding: 0;
  background:
    radial-gradient(circle at top left, rgba(90, 185, 255, .20), transparent 55%),
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 0;
}

.category-card-fallback-all {
  background:
    radial-gradient(circle at top left, rgba(90, 185, 255, .28), transparent 58%),
    radial-gradient(circle at bottom right, rgba(255, 74, 87, .18), transparent 44%),
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
}

.category-card-shape-0 {
  grid-column: span 6;
  grid-row: span 32;
}

.category-card-shape-1 {
  grid-column: span 3;
  grid-row: span 20;
}

.category-card-shape-2 {
  grid-column: span 3;
  grid-row: span 26;
}

.category-card-shape-3 {
  grid-column: span 4;
  grid-row: span 18;
}

.category-card-shape-4 {
  grid-column: span 5;
  grid-row: span 24;
}

.category-card-shape-5 {
  grid-column: span 4;
  grid-row: span 22;
}

.category-card-all {
  grid-column: span 7;
  grid-row: span 28;
}

.category-card:nth-child(2n) {
  animation-delay: .04s;
}

.category-card:nth-child(3n) {
  animation-delay: .08s;
}

.category-card:nth-child(4n) {
  animation-delay: .12s;
}

@keyframes category-card-reveal {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(18vw, 18vw);
    gap: 10px;
    height: calc(100dvh - env(safe-area-inset-top) - 78px);
    padding: 6px 12px calc(env(safe-area-inset-bottom) + 20px);
  }

  .category-card {
    border-radius: 24px;
    grid-column: span 1;
    grid-row: span 8;
  }

  .category-card-shape-0,
  .category-card-shape-4,
  .category-card-all {
    grid-column: span 2;
    grid-row: span 11;
  }

  .category-card-shape-2,
  .category-card-shape-5 {
    grid-row: span 10;
  }

  .category-card-overlay {
    gap: 5px;
    padding: 14px 12px 12px;
  }

  .category-card-name {
    font-size: 14px;
  }

  .category-card-meta,
  .category-card-badge {
    font-size: 10px;
    padding: 5px 8px;
  }

  .category-drawer-head {
    padding: calc(env(safe-area-inset-top) + 12px) 12px 10px;
  }

  .category-drawer-title {
    font-size: 18px;
  }

  .category-drawer-title::after {
    font-size: 11px;
  }
}

/* â”€â”€ Share sheet (redes sociales) â”€â”€ */
.share-sheet {
  position: fixed;
  inset: 0;
  z-index: 520;
}

.share-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(2px);
}

.share-panel {
  position: absolute;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(92vw, 420px);
  border: 1px solid var(--vidxd-glass-border);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(20, 20, 20, .86), rgba(8, 8, 8, .72));
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  padding: 14px;
}

.share-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
}

.share-close {
  border: 0;
  background: transparent;
  color: var(--vidxd-white-60);
  cursor: pointer;
}

.share-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.share-action {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  color: var(--vidxd-white);
  font-size: 12px;
  font-weight: 600;
  padding: 11px 10px;
  cursor: pointer;
}

.share-action:active {
  transform: scale(.98);
}

/* Aviso legal de primera visita */
.legal-notice {
  position: fixed;
  inset: 0;
  z-index: 650;
}

body.legal-open #video-feed {
  pointer-events: none;
}

.legal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .56);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.legal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 560px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: linear-gradient(145deg, rgba(24, 24, 24, .88), rgba(8, 8, 8, .75));
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .48);
  padding: 18px;
}

.legal-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: .2px;
}

.legal-text {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 10px;
}

.legal-text-soft {
  color: var(--vidxd-white-60);
}

.legal-accept {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  color: var(--vidxd-white);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 14px;
  cursor: pointer;
  min-width: 136px;
}

.legal-accept:active {
  transform: scale(.98);
}

/* Gate global 18+ */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 670;
}

body.age-gate-open #video-feed {
  pointer-events: none;
}

.age-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.age-gate-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 520px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: linear-gradient(145deg, rgba(24, 24, 24, .9), rgba(8, 8, 8, .78));
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .52);
  padding: 18px;
}

.age-gate-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: .2px;
}

.age-gate-text {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 14px;
}

.age-gate-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.age-gate-btn {
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
  border: 1px solid transparent;
}

.age-gate-btn-main {
  background: linear-gradient(135deg, #ff5a5f, #ff2d55);
  border-color: rgba(255, 95, 95, .35);
  color: #fff;
}

.age-gate-btn-ghost {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .18);
  color: var(--vidxd-white);
}

.age-gate-btn:active {
  transform: scale(.98);
}

/* Advertencia por categoria sensible */
.content-gate {
  position: fixed;
  inset: 0;
  z-index: 660;
}

body.content-gate-open #video-feed {
  pointer-events: none;
}

.content-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.content-gate-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 520px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: linear-gradient(145deg, rgba(24, 24, 24, .9), rgba(8, 8, 8, .75));
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
  padding: 18px;
}

.content-gate-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: .2px;
}

.content-gate-text {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 14px;
}

.content-gate-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.content-gate-btn {
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
  border: 1px solid transparent;
}

.content-gate-btn-main {
  background: linear-gradient(135deg, #ff5a5f, #ff2d55);
  border-color: rgba(255, 95, 95, .35);
  color: #fff;
}

.content-gate-btn-ghost {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .18);
  color: var(--vidxd-white);
}

.content-gate-btn:active {
  transform: scale(.98);
}

/* Slide de anuncio entre videos */
.video-slide.ad-slide {
  background:
    radial-gradient(110% 80% at 0% 0%, rgba(38, 121, 255, .30), transparent 50%),
    radial-gradient(110% 80% at 100% 100%, rgba(255, 45, 85, .30), transparent 46%),
    #080808;
}

.ad-shell {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.ad-card {
  width: min(92vw, 560px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(145deg, rgba(28, 28, 28, .82), rgba(12, 12, 12, .68));
  backdrop-filter: blur(24px) saturate(168%);
  -webkit-backdrop-filter: blur(24px) saturate(168%);
  box-shadow: 0 24px 56px rgba(0, 0, 0, .46);
  padding: 16px;
}

.ad-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ad-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  color: rgba(255, 255, 255, .84);
  text-transform: uppercase;
}

.ad-caption {
  font-size: 12px;
  color: var(--vidxd-white-60);
}

.ad-provider-slot {
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.video-slide.promo-slide {
  background:
    radial-gradient(120% 95% at 8% 6%, rgba(255, 88, 88, .38), transparent 50%),
    radial-gradient(120% 95% at 100% 0%, rgba(255, 196, 0, .26), transparent 42%),
    radial-gradient(110% 90% at 100% 100%, rgba(0, 224, 255, .28), transparent 48%),
    linear-gradient(145deg, #12081d 0%, #08111f 48%, #041516 100%);
}

.promo-shell {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.promo-card {
  width: min(92vw, 560px);
  max-height: calc(100vh - 56px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .18);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)),
    linear-gradient(135deg, rgba(255, 74, 74, .22), rgba(0, 229, 255, .14) 58%, rgba(255, 196, 0, .12));
  backdrop-filter: blur(26px) saturate(185%);
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, .38),
    0 0 0 1px rgba(255, 255, 255, .04) inset,
    0 0 36px rgba(255, 82, 82, .12);
  padding: 24px;
  text-align: left;
  overflow: auto;
}

.promo-card.promo-card-campaign {
  width: min(94vw, 520px);
  padding: 18px;
}

.promo-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.promo-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffe38b;
  margin-bottom: 12px;
}

.promo-kicker-link {
  margin-bottom: 0;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.promo-kicker-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .18);
}

.promo-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.02;
  color: #fff;
  text-shadow: 0 6px 22px rgba(0, 0, 0, .26);
}

.promo-text {
  margin: 0 0 18px;
  color: rgba(245, 250, 255, .90);
  font-size: 15px;
  line-height: 1.65;
}

.promo-fallback {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.promo-image-link {
  display: block;
  text-decoration: none;
}

.promo-banner-image {
  display: block;
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  margin: 0 auto 18px;
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .28);
}

.promo-banner-image-only {
  width: min(100%, 460px);
  margin: 0 auto;
}

.promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe066 0%, #ff7a18 48%, #ff3d6e 100%);
  color: #140b07;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(255, 93, 58, .30);
}

.ad-debug-badge {
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  line-height: 1.2;
  color: rgba(255, 255, 255, .88);
  background: rgba(255, 255, 255, .06);
  width: fit-content;
}

.ad-debug-badge[data-ad-debug-state="loading"] {
  border-color: rgba(255, 214, 102, .58);
  color: #ffe199;
}

.ad-debug-badge[data-ad-debug-state="filled"] {
  border-color: rgba(48, 209, 88, .52);
  color: #7ef7a5;
}

.ad-debug-badge[data-ad-debug-state="unfilled"],
.ad-debug-badge[data-ad-debug-state="timeout"] {
  border-color: rgba(255, 214, 102, .46);
  color: #ffe199;
}

.ad-debug-badge[data-ad-debug-state="fallback"],
.ad-debug-badge[data-ad-debug-state="error"] {
  border-color: rgba(255, 107, 107, .52);
  color: #ff9898;
}

.ad-fallback {
  text-align: center;
}

.ad-fallback-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.ad-fallback-sub {
  font-size: 12px;
  color: var(--vidxd-white-60);
}

.site-footer-nav {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
  transform: translateX(-50%);
  z-index: 430;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.58);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.site-footer-link {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 12px;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 999px;
  transition: background-color .2s ease, color .2s ease;
}

.site-footer-link:hover,
.site-footer-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

@media (max-width: 560px) {
  .site-footer-nav {
    max-width: calc(100vw - 18px);
    gap: 4px;
    padding: 6px;
  }

  .site-footer-link {
    font-size: 11px;
    padding: 7px 8px;
  }

  .category-toggle-label {
    display: none;
  }

  .category-toggle {
    right: 10px;
    padding: 10px 11px;
  }
}

/* â”€â”€ BotÃ³n PWA Install â”€â”€ */
.install-pwa-btn {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 500;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(90, 185, 255, 0.25), rgba(90, 185, 255, 0.08));
  color: #fff;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  padding: 12px 20px;
  min-height: 52px;
  gap: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.install-pwa-btn.is-attention {
  animation: installPwaFloat 3.2s ease-in-out infinite;
}

.install-pwa-btn.is-attention::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(130, 215, 255, 0.38);
  opacity: 0;
  pointer-events: none;
  animation: installPwaPulseRing 3.2s ease-out infinite;
}

.install-pwa-btn:hover,
.install-pwa-btn:active {
  background: linear-gradient(135deg, rgba(90, 185, 255, 0.35), rgba(90, 185, 255, 0.15));
  transform: translateY(-2px);
}

.install-pwa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 18px;
  line-height: 1;
}

.install-pwa-label {
  white-space: nowrap;
}

.install-pwa-btn[hidden] {
  display: none !important;
}

.install-pwa-sheet {
  position: fixed;
  inset: 0;
  z-index: 640;
}

.install-pwa-sheet[hidden] {
  display: none !important;
}

body.install-pwa-sheet-open #video-feed {
  pointer-events: none;
}

.install-pwa-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 40% at 50% 45%, rgba(88, 173, 255, 0.18), transparent 70%),
    rgba(5, 9, 18, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.install-pwa-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 430px);
  padding: 24px 22px 20px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(140% 90% at 0% 0%, rgba(86, 175, 255, 0.18), transparent 52%),
    linear-gradient(160deg, rgba(20, 24, 31, 0.96), rgba(8, 10, 16, 0.94));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%) scale(0.9);
  animation: installPwaCardIn 0.32s cubic-bezier(.2, .8, .2, 1) forwards;
}

.install-pwa-dismiss {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.install-pwa-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(122, 198, 255, 0.12);
  border: 1px solid rgba(122, 198, 255, 0.2);
  color: rgba(214, 239, 255, 0.96);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.install-pwa-title {
  margin: 16px 0 10px;
  font-size: 30px;
  line-height: 1.06;
  font-weight: 800;
  color: #fff;
}

.install-pwa-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.6;
}

.install-pwa-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.install-pwa-cta,
.install-pwa-secondary {
  min-height: 52px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.install-pwa-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1 1 220px;
  padding: 12px 18px;
  border: 1px solid rgba(130, 215, 255, 0.24);
  background: linear-gradient(135deg, rgba(90, 185, 255, 0.34), rgba(90, 185, 255, 0.16));
  color: #fff;
  box-shadow: 0 14px 36px rgba(57, 128, 199, 0.26);
}

.install-pwa-secondary {
  flex: 1 1 140px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
}

@keyframes installPwaFloat {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  }
  50% {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(44, 124, 188, 0.34);
  }
}

@keyframes installPwaPulseRing {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }
  20% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

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

@media (max-width: 560px) {
  .install-pwa-btn {
    top: 12px;
    left: 12px;
    min-height: 48px;
    padding: 11px 16px;
    font-size: 14px;
    gap: 8px;
  }

  .install-pwa-icon {
    width: 24px;
    height: 24px;
    font-size: 16px;
  }

  .install-pwa-card {
    width: min(92vw, 390px);
    padding: 22px 18px 18px;
  }

  .install-pwa-title {
    font-size: 25px;
  }

  .install-pwa-text {
    font-size: 14px;
  }

  .install-pwa-cta,
  .install-pwa-secondary {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .install-pwa-label {
    display: none;
  }

  .install-pwa-btn {
    min-width: 48px;
    padding: 11px;
  }
}
