/* ===== TOAST ===== */

  /* ===== адаптив каталога ===== */
  @media (hover: none) { #catalogView .card-overlay { display: none; } }

  @media (max-width: 980px) {
    #catalogView .page { grid-template-columns: 1fr; gap: 22px; padding-top: 22px; }
    #catalogView .sidebar { position: static; max-height: none; overflow: visible; }
    #catalogView .cat-list { flex-direction: row; flex-wrap: wrap; gap: 6px; }
    #catalogView .cat-btn { width: auto; padding: 8px 11px; }
  }

  @media (max-width: 640px) {
    #catalogView .player { padding: 18px; gap: 14px; }
    #catalogView .player-poster { width: 104px; }
    #catalogView .player-title { font-size: 19px; }
    #catalogView .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
  }

  @media (max-width: 460px) {
    #catalogView .player { flex-direction: column; max-height: 92vh; overflow-y: auto; }
    #catalogView .player-poster { width: 100%; max-height: 190px; aspect-ratio: 16/9; }
  }

  @media (max-width: 900px) {
    .header-inner { flex-wrap: wrap; gap: 12px; }
    nav { order: 3; width: 100%; overflow-x: auto; }
    nav ul { gap: 20px; }
    nav a, nav button { white-space: nowrap; font-size: 13px; }
  }

  @media (max-width: 700px) {
    .profile-head { flex-wrap: wrap; }
    .profile-stats { margin-left: 0; width: 100%; justify-content: space-between; }
    .settings-grid { grid-template-columns: 1fr; }
    .admin-form { grid-template-columns: 1fr; }
    .admin-search { max-width: none; margin-left: 0; width: 100%; }
    .admin-list { max-height: none; }
  }

  /* ===================== МИНИМАЛЬНЫЕ АНИМАЦИИ ===================== */
  :root { --ease: cubic-bezier(0.22, 0.61, 0.36, 1); }

  @keyframes viewIn {
    from { opacity: 0; transform: translate3d(0, 12px, 0); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes cardIn {
    from { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.985); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  @keyframes menuIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
  }
  @keyframes lineIn {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
  @keyframes popIn {
    from { opacity: 0.3; transform: scale(0.6); }
    to   { opacity: 1; transform: scale(1); }
  }

  /* --- смена экранов: мягкое появление --- */
  .view.active { animation: viewIn 0.4s var(--ease) both; }

  /* --- карточки: лёгкий каскад --- */
  .movie-card, #catGrid .card, .fav-card {
    animation: cardIn 0.45s var(--ease) backwards;
  }
  .movie-card:nth-child(2), #catGrid .card:nth-child(2), .fav-card:nth-child(2) { animation-delay: 0.03s; }
  .movie-card:nth-child(3), #catGrid .card:nth-child(3), .fav-card:nth-child(3) { animation-delay: 0.06s; }
  .movie-card:nth-child(4), #catGrid .card:nth-child(4), .fav-card:nth-child(4) { animation-delay: 0.09s; }
  .movie-card:nth-child(5), #catGrid .card:nth-child(5), .fav-card:nth-child(5) { animation-delay: 0.12s; }
  .movie-card:nth-child(6), #catGrid .card:nth-child(6), .fav-card:nth-child(6) { animation-delay: 0.15s; }
  .movie-card:nth-child(7), #catGrid .card:nth-child(7) { animation-delay: 0.18s; }
  .movie-card:nth-child(8), #catGrid .card:nth-child(8) { animation-delay: 0.21s; }
  .movie-card:nth-child(9), #catGrid .card:nth-child(9) { animation-delay: 0.24s; }
  .movie-card:nth-child(n+10), #catGrid .card:nth-child(n+10) { animation-delay: 0.27s; }

  /* --- выпадающие меню и вкладки --- */
  .mega-menu:not([hidden]) { animation: menuIn 0.2s var(--ease) both; }

  .watch-panel.active,
  .dash-panel.active { animation: fadeIn 0.3s var(--ease) both; }

  .watch-tab.active::after { animation: lineIn 0.28s var(--ease); }

  #watchEpisodes .we-grid,
  #tab-awards ul { animation: fadeIn 0.35s var(--ease) both; }

  /* --- «Я смотрю»: группы сериалов --- */
  .series-group { animation: cardIn 0.4s var(--ease) backwards; }

  /* --- закладка: маленький «пружинный» отклик --- */
  .fav-toggle.added svg { animation: popIn 0.3s var(--ease); }

  /* --- полоса прогресса плеера --- */
  .vc-played { transition: width 0.5s var(--ease); }
  .vc-knob { transition: left 0.5s var(--ease), transform 0.18s ease; }

  /* --- тост --- */
  .toast {
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
  }
  .toast.show { transform: none; }

  /* --- тактильный отклик кнопок --- */
  .submit-btn:active,
  .text-btn:active,
  .vc-btn:active,
  .vc-center-btn:active,
  .cat-btn:active,
  .dash-tab:active,
  .we-item:active,
  .watch-tab:active,
  .watch-fav:active,
  .watch-report:active,
  .video-bigplay:active { transform: scale(0.97); }

  .fav-toggle:active { transform: scale(0.9); }

  /* --- уважение к настройкам системы --- */
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
      animation-duration: 0.001ms !important;
      animation-delay: 0ms !important;
      transition-duration: 0.001ms !important;
      transition-delay: 0ms !important;
    }
  }
