html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: #071a33 !important;
  overflow-x: hidden !important;
}

#f5tv-preloader {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  overflow: hidden;
  background: #06152b;
  transition: opacity .6s ease, visibility .6s ease;
}

#f5tv-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.f5tv-preloader-logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 180px;
  height: 110px;
  animation: f5-preloader-float 2.2s ease-in-out infinite;
}

.f5tv-preloader-logo {
  position: relative;
  z-index: 2;
  display: block;
  width: auto;
  height: 76px;
  max-width: 180px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, .38)) drop-shadow(0 0 24px rgba(220, 38, 38, .34));
  animation: f5-preloader-glow 1.8s ease-in-out infinite;
}

.f5tv-preloader-logo-wrap::before {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 160, .28), transparent 68%);
  filter: blur(8px);
}

.f5tv-preloader-scan {
  position: absolute;
  z-index: 3;
  width: 150px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent);
  box-shadow: 0 0 14px rgba(255, 255, 255, .7);
  animation: f5-preloader-scan 1.6s ease-in-out infinite;
}

.f5tv-preloader-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(78, 146, 207, .18);
  border-radius: 50%;
  transform: rotate(-25deg);
  animation: f5-preloader-orbit 4s linear infinite;
}

.f5tv-preloader-orbit-one { width: 300px; height: 92px; margin: -46px 0 0 -150px; }
.f5tv-preloader-orbit-two { width: 360px; height: 120px; margin: -60px 0 0 -180px; transform: rotate(32deg); animation-direction: reverse; animation-duration: 5s; }

.f5tv-preloader-label {
  color: rgba(255, 255, 255, .54);
  font: 700 10px/1 monospace;
  letter-spacing: .22em;
  text-transform: uppercase;
  animation: f5-preloader-label 1.8s ease-in-out infinite;
}

@keyframes f5-preloader-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes f5-preloader-glow { 0%, 100% { filter: drop-shadow(0 0 8px rgba(255,255,255,.38)) drop-shadow(0 0 20px rgba(220,38,38,.28)); } 50% { filter: drop-shadow(0 0 14px rgba(255,255,255,.72)) drop-shadow(0 0 34px rgba(220,38,38,.54)); } }
@keyframes f5-preloader-scan { 0% { transform: translateY(-48px); opacity: 0; } 20%, 80% { opacity: 1; } 100% { transform: translateY(48px); opacity: 0; } }
@keyframes f5-preloader-orbit { from { transform: rotate(-25deg) rotate(0deg); } to { transform: rotate(-25deg) rotate(360deg); } }
@keyframes f5-preloader-label { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .f5tv-preloader-logo-wrap,
  .f5tv-preloader-logo,
  .f5tv-preloader-scan,
  .f5tv-preloader-orbit,
  .f5tv-preloader-label { animation: none !important; }
}

#f5tv-app,
#f5-landing-root,
.wp-site-blocks {
  width: 100%;
  min-height: 100vh;
  background: #071a33 !important;
}

#f5tv-app > header,
#f5tv-mobile-menu {
  background-color: #071a33 !important;
}

/* Content cards: a subtle consistent radius across the site. */
.f5tv-card,
.f5tv-archive-grid > article,
#f5-landing-root a.group.relative.bg-f5-blue-950,
#f5tv-main a.group.relative.bg-f5-blue-950 {
  border-radius: 10px !important;
  overflow: hidden !important;
}

#f5tv-app > header .f5tv-site-logo {
  display: block !important;
  width: auto !important;
  height: 40px !important;
  max-width: 180px !important;
  object-fit: contain !important;
  flex: 0 0 auto !important;
}

@media (max-width: 1023px) {
  #f5tv-app > header .f5tv-site-logo {
    height: 36px !important;
    max-width: 150px !important;
  }
}

@media (max-width: 639px) {
  #f5tv-app > footer {
    padding-bottom: 1.25rem !important;
  }

  #f5tv-app > header .f5tv-site-logo {
    height: 30px !important;
    max-width: 120px !important;
  }
}

.bg-f5-blue {
  background-color: #071a33 !important;
}

a[href*="plano-basico"] {
  background-color: #194b7a !important;
}

a[href*="plano-basico"]:hover {
  background-color: #2869a5 !important;
}

a[href*="plano-premium"] {
  background-color: #194b7a !important;
}

a[href*="plano-premium"]:hover {
  background-color: #2869a5 !important;
}

#f5-landing-root > section,
#f5tv-main > section {
  background-color: #071a33 !important;
}

#f5-landing-root [class*="bg-[#050505"],
#f5-landing-root .bg-black {
  background-color: #06152b !important;
}

#f5-landing-root [class*="from-[#100c0c]"] {
  background-image: linear-gradient(to bottom, #101c32, #06152b) !important;
}

#hero {
  background-color: #071a33 !important;
  isolation: isolate;
  box-shadow: inset 0 -80px 120px rgba(1, 10, 24, .55);
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 22%, rgba(40, 105, 165, .24), transparent 34%),
    radial-gradient(circle at 14% 78%, rgba(220, 38, 38, .12), transparent 30%);
  mix-blend-mode: screen;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(2, 12, 28, .22), transparent 48%, rgba(2, 8, 20, .38)),
    linear-gradient(180deg, rgba(2, 8, 20, .08), transparent 42%, rgba(2, 8, 20, .58));
}

#hero > div.absolute.z-0 {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.06);
  animation: f5-hero-breath 18s ease-in-out infinite alternate;
}

#hero > div.relative.z-20 {
  z-index: 20 !important;
}

#hero > div.relative.z-20 > div.inline-flex {
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 10px 34px rgba(220, 38, 38, .24), inset 0 1px rgba(255, 255, 255, .22);
}

#hero h1 {
  text-shadow: 0 8px 34px rgba(0, 0, 0, .34);
}

#hero p {
  text-shadow: 0 3px 16px rgba(0, 0, 0, .55);
}

#hero a {
  box-shadow: 0 14px 32px rgba(0, 0, 0, .22);
}

#hero a:first-child {
  box-shadow: 0 14px 32px rgba(255, 255, 255, .12), 0 8px 22px rgba(0, 0, 0, .28);
}

@keyframes f5-hero-breath {
  from { transform: scale(1.045); }
  to { transform: scale(1.085); }
}

#hero > div.absolute.z-10:first-of-type {
  background-image: linear-gradient(to right, #071a33 0%, rgb(7 26 51 / 80%) 58%, transparent 100%) !important;
}

#hero > div.absolute.z-10:nth-of-type(2) {
  background-image: linear-gradient(to top, #071a33 0%, transparent 100%) !important;
}

#f5tv-mobile-menu-btn {
  position: relative !important;
  z-index: 10000 !important;
  pointer-events: auto !important;
}

#f5tv-mobile-menu {
  position: fixed !important;
  top: 4.5rem !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  pointer-events: auto !important;
  isolation: isolate;
  background: #071a33 !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid #3f3f46 !important;
}

#f5tv-mobile-menu:not(.hidden) {
  display: block !important;
}

#f5tv-user-dropdown {
  z-index: 10000 !important;
  background: #0a0f1d !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#f5tv-user-dropdown.pointer-events-auto,
#f5tv-user-dropdown.visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: scale(1) !important;
}

@media (max-width: 1023px) {
  #f5tv-user-dropdown {
    position: fixed !important;
    top: 5.25rem !important;
    right: 1rem !important;
    width: min(16rem, calc(100vw - 2rem)) !important;
    z-index: 100000 !important;
  }
}

@media (max-width: 1023px) {
  #hero {
    height: auto !important;
    min-height: 560px;
    padding: 2rem 1.25rem 2.5rem !important;
  }

  #hero h1 {
    font-size: 2.25rem !important;
    line-height: 1 !important;
  }

  #hero p {
    font-size: 0.875rem !important;
  }

  #hero a {
    padding: 0.75rem 1.25rem !important;
  }

  #hero .mt-8 {
    margin-top: 1.5rem !important;
  }

  #hero .gap-6 {
    column-gap: 1rem !important;
    row-gap: 0.5rem !important;
  }
}

@media (min-width: 1024px) {
  #hero {
    height: auto !important;
    min-height: clamp(560px, calc(100vh - 75px), 720px);
    padding: 4rem clamp(2rem, 6vw, 7rem) 5rem !important;
  }

  #hero > div.relative {
    max-width: 72rem !important;
  }

  #hero h1 {
    max-width: 1000px !important;
    font-size: clamp(3.5rem, 6vw, 6.5rem) !important;
    line-height: 0.98 !important;
  }

  #hero p {
    max-width: 800px !important;
    font-size: clamp(1rem, 1.3vw, 1.25rem) !important;
  }

  #hero .max-w-md {
    max-width: 32rem !important;
  }

  #hero a {
    white-space: nowrap;
    padding: 0.875rem 1.75rem !important;
  }

  #f5tv-mobile-menu-btn {
    display: none !important;
  }

  #f5tv-mobile-menu {
    display: none !important;
  }

  #f5tv-app > header > div > nav {
    display: flex !important;
  }
}

@media (max-width: 1023px) {
  #f5tv-app > header > div > nav {
    display: none !important;
  }
}

/* Mobile/tablet primary navigation: compact fixed dock inspired by social app bars. */
.f5tv-mobile-bottom-nav {
  display: none;
}

@media (max-width: 1023px) {
  #f5tv-app > header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
  }

  .f5tv-mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.25rem;
    padding: 0.55rem 0.5rem calc(0.55rem + env(safe-area-inset-bottom));
    background: rgba(6, 15, 31, 0.97);
    border-top: 1px solid rgba(116, 145, 180, 0.22);
    box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .f5tv-bottom-nav-item {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex-direction: column;
    color: rgba(255, 255, 255, 0.58);
    font: 700 9px/1.1 monospace;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
  }

  .f5tv-bottom-nav-item svg {
    width: 1.2rem;
    height: 1.2rem;
  }

  .f5tv-bottom-nav-item:hover,
  .f5tv-bottom-nav-item:focus-visible,
  .f5tv-bottom-nav-item[aria-current="page"] {
    color: #ef2b32;
  }

  .f5tv-bottom-nav-item:active {
    transform: scale(.94);
  }

  #f5tv-main {
    padding-bottom: 1rem;
  }

  #f5tv-app > footer {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)) !important;
  }
}

/* Desktop header remains visible while scrolling, with a light glass effect. */
@media (min-width: 1024px) {
  #f5tv-app > header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    min-height: 74px;
    z-index: 1000 !important;
    background: rgba(6, 9, 19, 0.84) !important;
    border-bottom-color: rgba(148, 163, 184, 0.18) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  #f5tv-main {
    padding-top: 74px;
  }

}

.f5tv-back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1050;
  display: grid;
  width: 2.9rem;
  height: 2.9rem;
  place-items: center;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(7, 26, 51, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.75rem);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease, background .2s ease;
}

.f5tv-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.f5tv-back-to-top:hover,
.f5tv-back-to-top:focus-visible {
  color: #fff;
  background: rgba(229, 35, 41, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
  outline: none;
}

.f5tv-back-to-top svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (max-width: 1023px) {
  .f5tv-back-to-top {
    right: 0.8rem;
    bottom: calc(5.7rem + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .f5tv-back-to-top {
    transition: none;
  }
}
