/* Layout base */
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;color:#fff}

/* Fundo animado (gradiente em movimento) */
.bg-animated{
  background: linear-gradient(120deg, var(--c1), var(--c2), var(--c1));
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
}
@keyframes gradientMove{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

/* Splash */
.splash{
  position:fixed;inset:0;
  display:flex;align-items:center;justify-content:center;
  z-index:9999;
  padding:24px;
  backdrop-filter: blur(10px);
}
.splash-card{
  width:min(520px, 92vw);
  text-align:center;
  padding:26px 18px;
  border-radius:18px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.splash-logo-wrap{display:flex;justify-content:center}
.splash-logo{
  width:120px;height:120px;object-fit:contain;
  transform: translateY(6px) scale(.92);
  opacity:0;
  animation: popIn .9s ease forwards;
}
.splash-title{
  margin-top:12px;
  font-size:20px;
  font-weight:700;
  letter-spacing:.2px;
  opacity:0;
  transform: translateY(10px);
  animation: fadeUp .9s ease .2s forwards;
}
@keyframes popIn{
  to{opacity:1; transform: translateY(0) scale(1)}
}
@keyframes fadeUp{
  to{opacity:1; transform: translateY(0)}
}
.hidden{display:none}
.fade-out{animation: fadeOut .45s ease forwards}
@keyframes fadeOut{to{opacity:0; transform: scale(.98)}}

/* Site */
.app{min-height:100%; display:flex; flex-direction:column}

.topbar{
  padding:14px 16px;
  position:sticky; top:0;
  background: rgba(0,0,0,.18);
  border-bottom:1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}
.brand{display:flex;align-items:center;gap:12px}
.brand-logo{width:44px;height:44px;object-fit:contain;border-radius:10px;background:rgba(0,0,0,.18);padding:6px}
.brand-name{font-size:18px;font-weight:800}

/* Ícones */
.icons-row{
  display:flex;flex-wrap:wrap;
  gap:10px;
  padding:12px 16px;
}
.icon-btn{
  width:44px;height:44px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.18);
  color:#fff;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.icon-btn:hover{transform: translateY(-1px); background: rgba(0,0,0,.26); border-color: rgba(255,255,255,.22)}
.icon-btn svg{width:22px;height:22px;fill:#fff}


/* Video (HLS) */
.responsive-video{
  position:relative;
  width:100%;
  height: clamp(220px, 56vw, 620px);
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
}
.tv-video{width:100%;height:100%;object-fit:contain;background:transparent}
.unmute-btn{
  z-index: 5;
  
  position:absolute;
  left:14px;
  bottom:14px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.55);
  color:#fff;
  font-weight:700;
  cursor:pointer;
  backdrop-filter: blur(6px);
}
.unmute-btn:hover{transform: translateY(-1px);}
/* Player */
.player-wrap{padding: 0 16px 18px}
.responsive-iframe{
  width:100%;
  height: clamp(220px, 56vw, 620px);
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
}
.responsive-iframe iframe{width:100%;height:100%}
.raw-iframe iframe{max-width:100%}
.empty-player{
  width:100%;
  padding:18px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
}
.empty-title{font-weight:800;font-size:18px}
.empty-sub{opacity:.9;margin-top:6px}

/* Rodapé */
.footer{
  margin-top:auto;
  padding:18px 16px 22px;
  background: rgba(0,0,0,.16);
  border-top:1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}
.footer-row{display:flex;flex-wrap:wrap;gap:10px;opacity:.95}
.footer-copy{margin-top:10px;opacity:.9;font-weight:700}

/* Admin */
.admin-shell{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.admin-shell.wide{align-items:flex-start}
.card{
  width:min(540px, 94vw);
  border-radius:18px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  padding:18px;
}
.admin-shell.wide .card{width:min(980px, 96vw); margin-top:14px}
.card-title{margin:0 0 14px;font-size:22px}
.form label{display:block;margin-top:10px;font-weight:700}
.form input{width:100%;margin-top:6px;padding:12px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.16);background: rgba(0,0,0,.18);color:#fff}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.18);
  color:#fff;
  text-decoration:none;
  cursor:pointer;
}
.btn:hover{background: rgba(0,0,0,.26)}
.btn.primary{background: rgba(255,255,255,.16);font-weight:800}
.hint{margin-top:10px;opacity:.9;font-size:13px}
.mini-links{margin-top:14px;opacity:.95}
.mini-links a{color:#fff}
.alert{padding:10px 12px;border-radius:12px;background: rgba(255,0,0,.22);border:1px solid rgba(255,0,0,.35);margin-bottom:12px}
.alert.ok{background: rgba(0,255,120,.16);border-color: rgba(0,255,120,.25)}

.admin-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.admin-actions{display:flex;gap:10px;flex-wrap:wrap}
.sep{border:none;border-top:1px solid rgba(255,255,255,.14);margin:18px 0}
.subhead{margin:0 0 12px;font-size:18px}

/* Form grid */
.grid-form{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.field{display:flex;flex-direction:column}
.field label{font-weight:800;margin-bottom:6px}
.field input,.field textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.18);
  color:#fff;
}
.field textarea{resize:vertical}
.field.full{grid-column:1/-1}
@media (max-width: 820px){
  .grid-form{grid-template-columns:1fr}
  .brand-name{font-size:16px}
}

.responsive-video video{width:100%;height:100%}


/* Mobile CTA para vídeo */
.mobile-player-cta{width:100%;display:flex;flex-direction:column;align-items:center;gap:10px;padding:18px;border-radius:18px;background:rgba(0,0,0,.25);backdrop-filter: blur(8px);}
.watch-btn{display:inline-flex;align-items:center;justify-content:center;width:100%;max-width:420px;padding:14px 16px;border-radius:16px;font-weight:800;text-decoration:none;border:1px solid rgba(255,255,255,.35);}
.watch-hint{font-size:13px;opacity:.8;text-align:center;}

/* Modernização visual sem mudar a essência do site */
.site-container{width:min(1180px, calc(100% - 32px));margin-inline:auto}
.main-content{flex:1;width:min(1180px, calc(100% - 32px));padding:22px 0 26px}
.topbar{padding:12px 0;z-index:50;background:rgba(5,10,25,.36);box-shadow:0 8px 28px rgba(0,0,0,.14)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.brand{min-width:220px}
.brand-logo{width:58px;height:58px;border-radius:16px;background:rgba(255,255,255,.10);box-shadow:0 10px 24px rgba(0,0,0,.20)}
.brand-text{line-height:1.15}
.brand-name{font-size:clamp(19px,2.4vw,30px);font-weight:900;letter-spacing:.2px;text-shadow:0 3px 14px rgba(0,0,0,.28)}
.brand-sub{margin-top:4px;font-size:13px;opacity:.88;font-weight:700}
.icons-row{padding:0}
.header-icons,.footer-icons{display:flex;flex-wrap:wrap;gap:9px;justify-content:center}
.icon-btn{width:46px;height:46px;border-radius:15px;background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,.07));box-shadow:0 8px 20px rgba(0,0,0,.15);backdrop-filter:blur(8px)}
.icon-btn:hover{transform:translateY(-3px);background:linear-gradient(180deg,rgba(255,255,255,.28),rgba(255,255,255,.10))}
.player-wrap{padding:0}
.responsive-iframe,.responsive-video,.raw-iframe{
  width:100%;
  aspect-ratio:16/9;
  height:auto;
  min-height:auto;
  border-radius:24px;
  background:rgba(0,0,0,.28);
  box-shadow:0 22px 55px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.12);
}
.responsive-iframe iframe,.raw-iframe iframe{
  display:block;
  width:100%!important;
  height:100%!important;
  min-height:100%;
  border:0;
}
.raw-iframe{overflow:hidden;border:1px solid rgba(255,255,255,.14)}
.responsive-video{position:relative;overflow:hidden}
.tv-video{display:block;object-fit:contain}
.empty-player{box-shadow:0 18px 38px rgba(0,0,0,.20)}

.section-title-wrap{text-align:center;margin:26px 0 14px}
.section-title{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin:0;
  padding:10px 18px;
  border-radius:999px;
  background:rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 10px 26px rgba(0,0,0,.16);
  font-size:clamp(19px,2.2vw,26px);
}

/* Patrocinadores */
.sponsors-section{margin-top:26px}
.sponsors-carousel{
  position:relative;
  overflow:hidden;
  border-radius:24px;
  padding:18px;
  background:rgba(0,0,0,.20);
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 18px 40px rgba(0,0,0,.22);
}
.sponsors-track{
  display:flex;
  gap:16px;
  transition:transform .45s ease;
  will-change:transform;
}
.sponsor-card{
  flex:0 0 calc((100% - 32px)/3);
  min-width:0;
  display:flex;
  flex-direction:column;
  text-align:center;
  text-decoration:none;
  color:#fff;
  border-radius:20px;
  overflow:hidden;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 12px 26px rgba(0,0,0,.18);
  transition:transform .14s ease, background .14s ease;
}
.sponsor-card:hover{
  transform:translateY(-3px);
  background:rgba(255,255,255,.14);
}

/* Correção: imagem dos patrocinadores responsiva sem cortar */
.sponsor-card img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:contain;
  object-position:center;
  display:block;
  background:rgba(255,255,255,.08);
  padding:8px;
  box-sizing:border-box;
}
.sponsor-name{
  padding:11px 10px;
  font-weight:900;
  line-height:1.2;
  background:rgba(0,0,0,.16);
}
.sponsors-dots{
  display:flex;
  justify-content:center;
  gap:7px;
  margin-top:14px;
}
.sponsors-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:rgba(255,255,255,.35);
}
.sponsors-dot.active{background:#fff}

/* Rodapé moderno */
.footer{padding:24px 0;background:rgba(5,10,25,.30)}
.footer-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:13px;
}
.footer-brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
}
.footer-logo{
  width:54px;
  height:54px;
  object-fit:contain;
  border-radius:14px;
  background:rgba(255,255,255,.10);
  padding:6px;
}
.footer-name{font-size:20px;font-weight:900}
.footer-sub{font-size:13px;opacity:.85;font-weight:700}
.footer-row{justify-content:center}

@media (max-width: 900px){
  .header-inner{justify-content:center;text-align:center}
  .brand{justify-content:center}
  .sponsor-card{flex-basis:calc((100% - 16px)/2)}
}
@media (max-width: 560px){
  .site-container,.main-content{width:min(100% - 22px,1180px)}
  .topbar{position:relative}
  .brand{flex-direction:column}
  .brand-logo{width:74px;height:74px}
  .header-icons,.footer-icons{gap:8px}
  .icon-btn{width:43px;height:43px}
  .responsive-iframe,.responsive-video,.raw-iframe{border-radius:18px}
  .sponsors-carousel{padding:12px;border-radius:18px}
  .sponsor-card{flex-basis:100%}
  .footer-brand{flex-direction:column}
  .mobile-player-cta{border-radius:18px}
}


/* Ajustes finais: centralização geral, logo responsiva no cabeçalho e rodapé */
.topbar,
.footer{
  text-align:center;
}
.header-inner{
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
}
.brand,
.footer-brand{
  width:100%;
  min-width:0;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  gap:10px;
}
.brand-logo,
.footer-logo{
  display:block;
  width:clamp(64px, 9vw, 96px) !important;
  height:auto !important;
  max-width:96px !important;
  max-height:96px !important;
  object-fit:contain !important;
  margin:0 auto !important;
  padding:6px;
  border-radius:16px;
  background:rgba(255,255,255,.10);
  box-shadow:0 10px 24px rgba(0,0,0,.20);
}
.brand-text,
.footer-brand > div{
  width:100%;
  text-align:center;
}
.header-icons,
.footer-icons,
.footer-row{
  width:100%;
  justify-content:center !important;
  align-items:center;
  text-align:center;
}
.footer-inner{
  align-items:center !important;
  justify-content:center;
  text-align:center;
}
@media (max-width:560px){
  .brand-logo,
  .footer-logo{
    width:clamp(70px, 24vw, 92px) !important;
    max-width:92px !important;
    max-height:92px !important;
  }
}

/* Correção de layout solicitada: cabeçalho não fixo, mais compacto e horizontal */
.topbar{
  position:relative !important;
  top:auto !important;
  padding:10px 0 !important;
}
.header-inner{
  flex-direction:row !important;
  align-items:center !important;
  justify-content:space-between !important;
  text-align:left !important;
  gap:18px !important;
}
.brand{
  width:auto !important;
  min-width:0 !important;
  flex-direction:row !important;
  justify-content:flex-start !important;
  align-items:center !important;
  text-align:left !important;
  gap:10px !important;
}
.brand-logo{
  width:clamp(46px, 5.5vw, 68px) !important;
  max-width:68px !important;
  max-height:68px !important;
  margin:0 !important;
}
.brand-text{
  width:auto !important;
  text-align:left !important;
}
.brand-name{
  font-size:clamp(18px, 2vw, 26px) !important;
  line-height:1.08 !important;
}
.brand-sub{
  font-size:13px !important;
  margin-top:3px !important;
}
.header-icons{
  width:auto !important;
  justify-content:flex-end !important;
  margin-left:auto !important;
}
.icon-btn{
  width:42px !important;
  height:42px !important;
  border-radius:13px !important;
}
.icon-btn svg{
  width:21px !important;
  height:21px !important;
}

/* Rodapé replicando a mesma organização do cabeçalho */
.footer{
  padding:18px 0 20px !important;
  text-align:left !important;
}
.footer-inner{
  display:grid !important;
  grid-template-columns:auto 1fr auto !important;
  grid-template-areas:
    "brand info icons"
    "copy copy copy" !important;
  align-items:center !important;
  gap:12px 18px !important;
  text-align:left !important;
}
.footer-brand{
  grid-area:brand !important;
  width:auto !important;
  min-width:0 !important;
  flex-direction:row !important;
  justify-content:flex-start !important;
  align-items:center !important;
  text-align:left !important;
  gap:10px !important;
}
.footer-logo{
  width:clamp(46px, 5.5vw, 68px) !important;
  max-width:68px !important;
  max-height:68px !important;
  height:auto !important;
  margin:0 !important;
  object-fit:contain !important;
}
.footer-brand > div{
  width:auto !important;
  text-align:left !important;
}
.footer-name{
  font-size:clamp(18px, 2vw, 24px) !important;
  line-height:1.08 !important;
}
.footer-sub{
  margin-top:3px !important;
}
.footer-row{
  grid-area:info !important;
  width:auto !important;
  justify-content:center !important;
  align-items:center !important;
  text-align:center !important;
  margin:0 !important;
}
.footer-icons{
  grid-area:icons !important;
  width:auto !important;
  justify-content:flex-end !important;
}
.footer-copy{
  grid-area:copy !important;
  text-align:center !important;
  margin-top:4px !important;
}

@media (max-width: 760px){
  .header-inner,
  .footer-inner{
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    align-items:center !important;
    text-align:center !important;
  }
  .brand,
  .footer-brand{
    flex-direction:row !important;
    justify-content:center !important;
    align-items:center !important;
    text-align:left !important;
  }
  .brand-text,
  .footer-brand > div{
    text-align:left !important;
  }
  .header-icons,
  .footer-icons,
  .footer-row{
    width:100% !important;
    justify-content:center !important;
    text-align:center !important;
    margin-left:0 !important;
  }
}

@media (max-width: 430px){
  .brand,
  .footer-brand{
    flex-direction:column !important;
    text-align:center !important;
  }
  .brand-text,
  .footer-brand > div{
    text-align:center !important;
  }
}