/* =====================================================================
   THE CRIAS TV — molduras de perfil em CSS/SVG (arte própria)
   ===================================================================== */

.avf.tfx .tframe {
  position: absolute;
  inset: -7%;
  width: 114%;
  height: 114%;
  pointer-events: none;
  z-index: 2;
}
.avf.tfx .tframe svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* ---------------- animações ---------------- */
@keyframes tf-spin { to { transform: rotate(360deg); } }
@keyframes tf-spin-r { to { transform: rotate(-360deg); } }
@keyframes tf-sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes tf-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes tf-dash { to { stroke-dashoffset: -36; } }
@keyframes tf-march { to { stroke-dashoffset: 24; } }
@keyframes tf-scan { 0% { transform: translateY(-14px); opacity: 0; } 25% { opacity: .5; } 100% { transform: translateY(16px); opacity: 0; } }
@keyframes tf-fall { 0% { transform: translateY(-10px); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateY(18px); opacity: 0; } }
@keyframes tf-blink { 0%, 100% { opacity: 1; } 50% { opacity: .1; } }
@keyframes tf-rise { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
@keyframes tf-twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes tf-glitch-a { 0%, 100% { transform: translate(0, 0); opacity: .9; } 47% { transform: translate(-1.6px, 1px); opacity: .5; } 53% { transform: translate(1.4px, -1px); opacity: .95; } }
@keyframes tf-glitch-b { 0%, 100% { transform: translate(0, 0); opacity: .8; } 46% { transform: translate(1.6px, -1.2px); opacity: .4; } 54% { transform: translate(-1.4px, 1.2px); opacity: .9; } }
@keyframes tf-ember { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-16px); opacity: 0; } }

.tf-spin { animation: tf-spin 9s linear infinite; transform-origin: 50px 50px; }
.tf-spin-slow { animation: tf-spin-r 20s linear infinite; }
.tf-sway { animation: tf-sway 5s ease-in-out infinite; }
.tf-pulse { animation: tf-pulse 2.4s ease-in-out infinite; }
.tf-dash { animation: tf-dash 3s linear infinite; }
.tf-march { animation: tf-march 4s linear infinite; }
.tf-scan { animation: tf-scan 3.2s linear infinite; }
.tf-fall { animation: tf-fall 3.6s linear infinite; }
.tf-blink { animation: tf-blink 1.2s steps(2) infinite; }
.tf-rise { animation: tf-rise 4s ease-in-out infinite; }
.tf-twinkle { animation: tf-twinkle 2.8s ease-in-out infinite; }
.tf-glitch-a { animation: tf-glitch-a 3.4s steps(2) infinite; }
.tf-glitch-b { animation: tf-glitch-b 2.9s steps(2) infinite; }
.tf-ember { animation: tf-ember 3.2s linear infinite; }
.tf-ember circle:nth-child(2) { animation-delay: 1s; }
.tf-ember circle:nth-child(3) { animation-delay: 2s; }
.tf-fall rect:nth-child(2) { animation-delay: 1.1s; }
.tf-fall rect:nth-child(3) { animation-delay: 2.2s; }

@media (prefers-reduced-motion: reduce) {
  .tframe [class^="tf-"], .tframe [class*=" tf-"] { animation: none !important; }
}
