
:root{
  --bg:#020b15;
  --bg2:#071829;
  --panel:#081627;
  --panel-2:#0b1b30;
  --stroke:rgba(36,145,255,.24);
  --text:#f4f8ff;
  --muted:#9cb3d0;
  --blue:#1ea5ff;
  --blue2:#2ed8ff;
  --radius:22px;
  --shadow:0 20px 60px rgba(0,0,0,.45);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(15,82,152,.25), transparent 24%),
    radial-gradient(circle at 80% 70%, rgba(0,132,255,.18), transparent 18%),
    linear-gradient(180deg, #041220 0%, #020911 100%);
}
body.modal-open{overflow:hidden}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
button{font:inherit}
.container{width:min(1380px,calc(100% - 48px));margin:0 auto}
.site-shell{padding-bottom:40px}

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter:blur(18px);
  background:rgba(2,10,20,.78);
  border-bottom:1px solid rgba(73,127,189,.2);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:34px;
  min-height:88px;
}
.brand img{height:46px;width:auto}
.nav-links{display:flex;gap:34px;justify-content:center;align-items:center;flex:1;white-space:nowrap;flex-wrap:nowrap}
.nav-links a{color:#eef6ff;font-size:15px;opacity:.94;position:relative;padding:31px 0 27px;white-space:nowrap}
.nav-links a.active::after,.nav-links a:hover::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:3px;border-radius:999px;background:linear-gradient(90deg,var(--blue),var(--blue2))}
.header-tools{display:flex;gap:14px;align-items:center;flex:0 0 auto}
.search-pill{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.05);border:1px solid rgba(96,140,190,.18);height:48px;padding:0 18px;border-radius:999px;min-width:310px}
.search-pill input{border:0;outline:none;background:transparent;color:#ddebff;width:100%}
.icon-buttons{display:flex;gap:12px;align-items:center}
.icon-btn{width:40px;height:40px;border-radius:50%;border:1px solid rgba(133,174,226,.18);background:rgba(255,255,255,.04);display:grid;place-items:center;color:#f5faff;font-size:18px}
.menu-btn{font-size:22px}

.hero{padding:28px 0 20px}
.hero-grid{display:grid;grid-template-columns: 420px minmax(620px, 1fr) 265px; gap: 24px; align-items: start}
.hero-copy,.hero-player,.hero-sidebar,.schedule-card,.promo-card,.channel-section{
  background:linear-gradient(180deg,rgba(3,18,32,.86),rgba(4,18,31,.96));
  border:1px solid rgba(39,118,198,.23);
  box-shadow: var(--shadow);
}
.hero-copy{padding:28px 32px;border-radius:24px}
.live-badge{display:inline-flex;gap:8px;align-items:center;background:#0d5eb2;padding:10px 16px;border-radius:999px;font-size:14px;font-weight:800;margin-bottom:18px}
.hero-copy h1{font-size:68px;line-height:.98;letter-spacing:-2.2px;margin:0 0 18px;font-weight:900;max-width:100%}
.hero-copy h1 span{color:#2aa8ff}
.hero-copy p{margin:0 0 22px;color:#d1deee;font-size:16px;line-height:1.6;max-width:95%}
.cta-row{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-bottom:26px}
.btn{border:0;cursor:pointer;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;gap:10px;transition:.25s ease}
.btn-primary{background:linear-gradient(90deg,#1598ff,#38c9ff);color:#fff;box-shadow:0 12px 26px rgba(0,138,255,.28)}
.btn-primary:hover{transform:translateY(-2px)}
.btn-secondary{background:transparent;color:#2eb3ff}
.btn-large{padding:18px 26px;font-size:16px;font-weight:800}
.btn-small{padding:11px 16px;font-size:14px;font-weight:800}
.feature-points{display:flex;gap:18px;flex-wrap:wrap}
.feature-point{display:flex;align-items:center;gap:12px;min-width:145px}
.feature-icon{width:52px;height:52px;border-radius:50%;border:1px solid rgba(68,151,231,.25);display:grid;place-items:center;font-size:22px;color:#fff;background:rgba(255,255,255,.03)}
.feature-point strong{display:block;font-size:16px}
.feature-point span{color:var(--muted);font-size:13px}

.hero-player{padding:14px;border-radius:22px;align-self:start}
.hero-player .preview{border-radius:18px;overflow:hidden;border:1px solid rgba(59,138,220,.3);aspect-ratio:16/9}
.hero-player img{width:100%;height:100%;object-fit:cover}
.hero-player .overlay-play{margin-top:14px;display:flex;justify-content:space-between;align-items:center;padding:0 4px}
.mini-pill{font-size:13px;color:#9ed8ff;padding:8px 12px;border-radius:999px;background:rgba(0,0,0,.25);border:1px solid rgba(67,139,216,.25)}

.hero-sidebar{padding:12px;border-radius:18px;align-self:start}
.live-channel-list{display:flex;flex-direction:column;gap:10px}
.live-channel-item{width:100%;border:1px solid rgba(60,132,206,.22);background:linear-gradient(180deg,rgba(7,25,43,.95),rgba(7,22,38,.95));border-radius:16px;padding:11px 12px;display:grid;grid-template-columns:50px 1fr 28px;gap:10px;align-items:center;color:#fff;cursor:pointer}
.live-channel-item img{width:50px;height:32px;object-fit:contain;background:#0b1f34;border-radius:10px;padding:4px}
.live-channel-item strong{display:block;font-size:14px}
.live-channel-item span{font-size:12px;color:#a1bad6}
.live-channel-item em{font-style:normal;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.06)}

.section-headline{display:flex;justify-content:space-between;align-items:center;margin:34px 0 16px}
.section-headline h2{margin:0;font-size:24px;letter-spacing:-.5px}
.section-headline a{color:#2cb6ff;font-weight:700}

.featured-slider{position:relative}
.featured-track{display:flex;gap:14px;overflow:auto;scrollbar-width:none;padding:2px 44px 2px 0}
.featured-track::-webkit-scrollbar{display:none}
.slider-arrow{position:absolute;top:50%;transform:translateY(-50%);width:38px;height:38px;border-radius:50%;border:1px solid rgba(83,145,217,.23);background:rgba(255,255,255,.05);color:#fff;display:grid;place-items:center;cursor:pointer;z-index:2}
.slider-arrow.prev{left:-18px}.slider-arrow.next{right:-18px}
.featured-card{min-width:84px;background:linear-gradient(180deg,#0b1f34,#081524);border:1px solid rgba(54,128,208,.24);border-radius:16px;padding:14px 10px 12px;color:#fff;display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 10px 20px rgba(0,0,0,.25)}
.featured-logo-wrap{width:76px;height:44px;display:grid;place-items:center;background:rgba(255,255,255,.02);border-radius:10px}
.featured-logo{max-width:68px;max-height:28px;object-fit:contain}
.featured-card span{font-size:13px;font-weight:700;text-align:center;line-height:1.2}

.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
.category-card{position:relative;display:block;border-radius:16px;overflow:hidden;border:1px solid rgba(60,128,197,.22);height:120px;background:#081726}
.category-card img{width:100%;height:100%;object-fit:cover}
.category-card::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(2,8,15,.05),rgba(2,8,15,.18))}

.info-row{display:grid;grid-template-columns:430px 1fr;gap:18px;margin-top:18px}
.schedule-card{padding:18px;border-radius:18px}
.schedule-card h3{margin:0 0 14px;font-size:20px}
.schedule-list{display:flex;flex-direction:column;gap:16px;margin-bottom:20px}
.schedule-item{display:grid;grid-template-columns:64px 1fr 52px;gap:10px;align-items:center}
.schedule-item time{font-size:14px;font-weight:800;color:#1fb0ff}
.schedule-item strong{font-size:16px}
.schedule-item img{width:46px;height:28px;object-fit:contain;justify-self:end}
.schedule-card .btn{padding:13px 20px}
.promo-card{border-radius:18px;overflow:hidden}
.promo-card img{width:100%;height:100%;object-fit:cover}

.content-section{padding-top:28px}
.channel-section{padding:22px;border-radius:20px;margin-bottom:18px}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:16px}
.section-kicker{color:#3cb9ff;font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.12em}
.section-head h2{margin:6px 0 0;font-size:26px;letter-spacing:-.5px}
.section-count{color:#9db5d1;font-size:14px}
.channels-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:16px}
.channel-card{background:linear-gradient(180deg,#0a1c2e,#081523);border:1px solid rgba(59,129,204,.18);border-radius:18px;padding:16px;box-shadow:0 12px 24px rgba(0,0,0,.22);transition:.2s ease;display:flex;flex-direction:column;justify-content:space-between}
.channel-card:hover{transform:translateY(-2px);border-color:rgba(66,157,255,.45)}
.channel-logo-wrap{height:64px;display:grid;place-items:center;background:rgba(255,255,255,.02);border-radius:14px;margin-bottom:12px}
.channel-logo{max-height:34px;max-width:100%;object-fit:contain}
.channel-card h3{margin:0 0 14px;font-size:15px;line-height:1.25;min-height:40px}
.channel-card-actions{display:flex;gap:8px;flex-wrap:wrap}
.channel-card .btn{flex:1;min-width:0}
.channel-card .btn-secondary{background:rgba(255,255,255,.04);border:1px solid rgba(77,138,204,.18);color:#dbeeff}
.hidden{display:none!important}
.hidden-section{display:none!important}

.modal{position:fixed;inset:0;background:rgba(2,7,13,.82);backdrop-filter:blur(10px);display:none;align-items:center;justify-content:center;padding:20px;z-index:120}
.modal.open{display:flex}
.modal-panel{width:min(980px,100%);background:linear-gradient(180deg,#08192b,#050f19);border:1px solid rgba(62,130,200,.3);border-radius:24px;box-shadow:0 30px 80px rgba(0,0,0,.5);overflow:hidden}
.modal-head{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid rgba(80,137,193,.18)}
.modal-head h3{margin:0;font-size:22px}
.close-btn{border:0;background:rgba(255,255,255,.06);color:#fff;width:42px;height:42px;border-radius:50%;cursor:pointer;font-size:24px}
.modal-body{padding:20px}
.player-frame-wrap{background:#000;border-radius:18px;overflow:hidden;border:1px solid rgba(61,133,207,.22)}
.player-frame-wrap iframe{width:100%;height:520px;border:0;background:#000}
.player-url-box{display:grid;grid-template-columns:1fr auto;gap:12px;margin-top:16px}
.player-url-box input{height:48px;border-radius:14px;border:1px solid rgba(82,143,205,.22);background:#071422;color:#dcecff;padding:0 16px}

.seo-footer-wrap{margin-top:26px;padding:4px 0 16px}
.seo-footer-toggle{display:block;margin:0 auto 12px;padding:14px 20px;font-size:16px;font-weight:800;background:linear-gradient(180deg,#0b223a,#09182a);color:#fff;border:1px solid rgba(67,132,198,.22);border-radius:14px;cursor:pointer;box-shadow:0 16px 32px rgba(0,0,0,.22)}
.seo-footer-content{max-height:0;overflow:hidden;transition:max-height .45s ease,padding .45s ease;background:linear-gradient(180deg,rgba(7,22,39,.88),rgba(5,17,29,.92));border:1px solid rgba(67,132,198,.18);border-radius:18px;color:#c7d8eb;padding:0 24px;text-align:justify}
.seo-footer-content.open{max-height:2200px;padding:16px 24px 26px}
.seo-footer-content h2{color:#fff;font-size:21px;margin:14px 0}
.seo-footer-content p{line-height:1.75;margin-bottom:16px}
.seo-footer-content a{color:#8ebeff}

.site-footer{border-top:1px solid rgba(80,132,185,.18);margin-top:16px;padding:26px 0 8px}
.footer-grid{display:grid;grid-template-columns:1.25fr .7fr .8fr .8fr;gap:22px;align-items:start}
.footer-brand img{height:42px;margin-bottom:16px}
.footer-brand p,.footer-col a,.copyright{color:#a6bfd8;font-size:15px;line-height:1.7}
.footer-col h4{margin:0 0 12px;font-size:18px}
.footer-links{display:flex;flex-direction:column;gap:8px}
.social-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:10px}
.social-row span{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.05);border:1px solid rgba(77,139,206,.18)}
.copyright{text-align:right;padding-top:18px}

@media (max-width: 1440px){
  .container{width:min(1360px,calc(100% - 34px))}
  .hero-grid{grid-template-columns: 390px minmax(560px,1fr) 250px}
  .hero-copy h1{font-size:62px}
  .channels-grid{grid-template-columns:repeat(5,1fr)}
}
@media (max-width: 1260px){
  .container{width:min(100% - 28px, 1220px)}
  .topbar-inner{display:grid;grid-template-columns:auto 1fr auto;gap:18px}
  .hero-grid{grid-template-columns:1fr}
  .hero-copy h1{font-size:58px}
  .category-grid{grid-template-columns:repeat(3,1fr)}
  .info-row{grid-template-columns:1fr}
  .channels-grid{grid-template-columns:repeat(4,1fr)}
  .footer-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 840px){
  .topbar-inner{grid-template-columns:1fr;gap:14px;padding:10px 0 14px}
  .nav-links{gap:16px;flex-wrap:wrap;white-space:normal}
  .search-pill{min-width:0;width:100%}
  .hero-copy h1{font-size:42px}
  .channels-grid{grid-template-columns:repeat(2,1fr)}
  .category-grid{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr}
  .copyright{text-align:left}
  .player-frame-wrap iframe{height:300px}
  .player-url-box{grid-template-columns:1fr}
}
@media (max-width: 560px){
  .container{width:min(100% - 22px, 1150px)}
  .hero-copy{padding:20px}
  .hero-copy h1{font-size:36px}
  .featured-card{min-width:110px}
  .channels-grid{grid-template-columns:1fr}
}


/* ===============================
   V5 - HERO FIEL AO MOCKUP
   =============================== */
@media (min-width:1261px){
  .container{width:min(1340px,calc(100% - 40px));margin-inline:auto}
  .topbar-inner{min-height:64px;gap:24px}
  .brand img{height:39px}
  .nav-links{gap:30px}
  .nav-links a{font-size:13px;padding:22px 0 20px}
  .search-pill{min-width:270px;height:40px;font-size:12px}
  .icon-btn{width:34px;height:34px;font-size:15px}

  .hero{padding:26px 0 8px}
  .hero-layout{display:grid;grid-template-columns:minmax(0,1030px) 240px;gap:20px;align-items:start;justify-content:center}
  .hero-main{min-width:0}
  .hero-top{display:grid;grid-template-columns:350px minmax(0,1fr);gap:26px;align-items:center}

  .hero-copy,
  .hero-player{
    background:none!important;
    border:0!important;
    box-shadow:none!important;
    border-radius:0!important;
  }
  .hero-copy{padding:0!important}
  .live-badge{font-size:11px;padding:7px 13px;margin-bottom:14px}
  .hero-copy h1{font-size:42px!important;line-height:1.03!important;letter-spacing:-1.45px!important;margin:0 0 14px!important;max-width:none!important}
  .hero-copy h1 span{color:#35aaff}
  .hero-copy p{font-size:13px!important;line-height:1.5!important;max-width:320px!important;margin:0 0 18px!important;color:#c5d4e6}
  .cta-row{gap:12px!important;margin-bottom:0!important;flex-wrap:nowrap!important}
  .btn-large{padding:13px 18px;font-size:12px}
  .hero-copy .btn-secondary{white-space:nowrap;padding-left:8px;padding-right:8px}

  .hero-player{padding:0!important;align-self:center!important}
  .hero-player .preview{aspect-ratio:auto!important;border-radius:7px!important;overflow:hidden;border:1px solid rgba(55,142,225,.42)!important;box-shadow:0 15px 42px rgba(0,0,0,.3)}
  .hero-player .preview img{width:100%!important;height:auto!important;object-fit:contain!important;display:block!important}
  .hero-player .overlay-play{display:none!important}

  .feature-points{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:32px!important;margin-top:22px!important;max-width:850px}
  .feature-point{min-width:0!important;gap:10px!important}
  .feature-icon{width:42px!important;height:42px!important;font-size:17px!important}
  .feature-point strong{font-size:13px!important}
  .feature-point span{font-size:11px!important}

  .hero-sidebar{padding:0!important;border-radius:7px!important;background:rgba(4,20,35,.52)!important;border:1px solid rgba(39,118,198,.22)!important;box-shadow:none!important;overflow:hidden}
  .live-channel-list{gap:0!important}
  .live-channel-item{border:0!important;border-bottom:1px solid rgba(55,119,181,.14)!important;border-radius:0!important;padding:8px 9px!important;grid-template-columns:47px 1fr 26px!important;gap:8px!important;background:transparent!important;min-height:52px}
  .live-channel-item:last-child{border-bottom:0!important}
  .live-channel-item img{width:47px!important;height:28px!important;background:transparent!important;border-radius:5px!important;padding:2px!important}
  .live-channel-item strong{font-size:12px!important}
  .live-channel-item span{font-size:10px!important;white-space:nowrap}
  .live-channel-item em{width:25px!important;height:25px!important;font-size:10px!important}

  .section-headline{margin:26px 0 11px!important}
  .section-headline h2{font-size:18px!important}
  .section-headline a{font-size:12px}
  .featured-card{min-width:82px!important;padding:12px 9px 10px!important;border-radius:7px!important}
  .featured-logo-wrap{width:70px!important;height:38px!important}
  .featured-card span{font-size:10px!important}

  .category-grid{gap:10px!important}
  .category-card{height:auto!important;aspect-ratio:1.73/1!important;border:0!important;border-radius:7px!important;background:transparent!important}
  .category-card::after{display:none!important}
  .category-card img{width:100%!important;height:100%!important;object-fit:fill!important;object-position:center!important;border-radius:7px!important}

  .info-row{grid-template-columns:345px 1fr!important;gap:14px!important}
  .schedule-card{border-radius:8px!important;padding:14px!important}
  .promo-card{border-radius:8px!important}

  .channel-section{border-radius:10px!important}
  .channels-grid{grid-template-columns:repeat(6,1fr)!important;gap:12px!important}
  .channel-card{border-radius:10px!important;padding:13px!important}
}

@media (max-width:1260px){
  .hero-layout{display:grid;grid-template-columns:1fr;gap:18px}
  .hero-main{min-width:0}
  .hero-top{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr);gap:20px;align-items:center}
  .hero-copy,.hero-player{background:none!important;border:0!important;box-shadow:none!important}
  .hero-copy{padding:0!important}
  .hero-player{padding:0!important}
  .hero-player .preview{aspect-ratio:auto!important}
  .hero-player .preview img{width:100%!important;height:auto!important;object-fit:contain!important}
  .hero-player .overlay-play{display:none!important}
  .feature-points{margin-top:18px}
}
@media (max-width:840px){
  .hero-top{grid-template-columns:1fr}
  .hero-copy h1 br{display:none}
  .category-card{aspect-ratio:1.73/1;height:auto!important}
  .category-card img{object-fit:fill!important}
}

/* ==================================================
   FIX 6 - BRASILEIRAO, BUSCA, TEMAS E MENU RESPONSIVO
   ================================================== */
.topbar-inner{
  justify-content:space-between;
}
.brand{flex:0 0 auto}
.header-tools{
  margin-left:auto;
}
.search-wrap{
  position:relative;
  width:min(380px,34vw);
  z-index:4;
}
.search-pill{
  min-width:0!important;
  width:100%;
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
.search-pill:focus-within{
  border-color:rgba(46,184,255,.62);
  box-shadow:0 0 0 4px rgba(30,165,255,.12);
}
.search-pill input[type="search"]::-webkit-search-cancel-button{filter:invert(1);cursor:pointer}
.search-results{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  right:0;
  display:none;
  max-height:390px;
  overflow:auto;
  padding:8px;
  border:1px solid rgba(61,139,221,.32);
  border-radius:16px;
  background:rgba(4,17,30,.98);
  box-shadow:0 22px 55px rgba(0,0,0,.48);
}
.search-results.open{display:block}
.search-result{
  width:100%;
  display:grid;
  grid-template-columns:46px 1fr auto;
  align-items:center;
  gap:11px;
  padding:10px;
  border:0;
  border-radius:12px;
  color:var(--text);
  background:transparent;
  text-align:left;
  cursor:pointer;
}
.search-result:hover,.search-result:focus-visible{background:rgba(30,165,255,.12);outline:none}
.search-result img{width:46px;height:30px;object-fit:contain;border-radius:7px;background:rgba(255,255,255,.04);padding:3px}
.search-result strong{font-size:13px}
.search-result span{font-size:12px;color:var(--blue)}
.search-empty{margin:0;padding:15px 12px;color:var(--muted);font-size:13px;text-align:center}
.search-status{margin:-4px 0 18px;color:var(--muted);font-size:14px}

.nav-panel{
  position:absolute;
  top:100%;
  left:0;
  right:0;
  max-height:0;
  overflow:hidden;
  opacity:0;
  visibility:hidden;
  background:rgba(3,15,27,.98);
  border-bottom:1px solid rgba(73,127,189,.24);
  box-shadow:0 20px 45px rgba(0,0,0,.32);
  transition:max-height .25s ease,opacity .2s ease,visibility .2s ease;
}
.nav-panel.open{max-height:180px;opacity:1;visibility:visible}
.nav-panel-inner{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding-block:12px}
.nav-panel a{padding:10px 15px;border-radius:10px;color:var(--text);font-size:14px;font-weight:700}
.nav-panel a:hover,.nav-panel a.active{background:rgba(30,165,255,.12);color:var(--blue2)}
.menu-btn[aria-expanded="true"]{background:rgba(30,165,255,.18);border-color:rgba(30,165,255,.5)}

.hero-player .preview{
  aspect-ratio:16/9!important;
  background:#020a12;
}
.hero-player .preview img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
}
.category-card{aspect-ratio:1.72/1!important;height:auto!important;background:#07182a!important}
.category-card img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:50% 50%!important;
}

/* Tema claro completo, salvo pelo JavaScript. */
html[data-theme="light"]{
  --bg:#eef5fc;
  --bg2:#f7fbff;
  --panel:#ffffff;
  --panel-2:#edf5fd;
  --stroke:rgba(26,113,190,.22);
  --text:#10233a;
  --muted:#5d7188;
  --shadow:0 18px 45px rgba(40,85,128,.13);
}
html[data-theme="light"] body{
  background:radial-gradient(circle at 18% 0%,rgba(34,157,255,.13),transparent 26%),linear-gradient(180deg,#f7fbff 0%,#eaf3fb 100%);
}
html[data-theme="light"] .topbar{background:rgba(248,252,255,.9);border-color:rgba(26,113,190,.16)}
html[data-theme="light"] .search-pill,
html[data-theme="light"] .icon-btn{background:#fff;color:#173451;border-color:rgba(32,104,170,.2)}
html[data-theme="light"] .search-pill input{color:#173451}
html[data-theme="light"] .search-pill input[type="search"]::-webkit-search-cancel-button{filter:none}
html[data-theme="light"] .search-results,
html[data-theme="light"] .nav-panel{background:rgba(250,253,255,.99);box-shadow:0 20px 45px rgba(42,84,124,.15)}
html[data-theme="light"] .hero-copy,
html[data-theme="light"] .hero-player{color:var(--text)}
html[data-theme="light"] .hero-copy p{color:#536b84!important}
html[data-theme="light"] .hero-sidebar,
html[data-theme="light"] .schedule-card,
html[data-theme="light"] .promo-card,
html[data-theme="light"] .channel-section,
html[data-theme="light"] .channel-card,
html[data-theme="light"] .featured-card,
html[data-theme="light"] .seo-footer-toggle,
html[data-theme="light"] .seo-footer-content,
html[data-theme="light"] .live-channel-item{
  color:var(--text);
  background:linear-gradient(180deg,#fff,#f2f7fc)!important;
  border-color:rgba(28,105,174,.18)!important;
  box-shadow:var(--shadow);
}
html[data-theme="light"] .live-channel-item strong,
html[data-theme="light"] .channel-card,
html[data-theme="light"] .featured-card,
html[data-theme="light"] .seo-footer-toggle,
html[data-theme="light"] .seo-footer-content h2,
html[data-theme="light"] .footer-col h4{color:var(--text)}
html[data-theme="light"] .channel-logo-wrap,
html[data-theme="light"] .featured-logo-wrap,
html[data-theme="light"] .live-channel-item img{background:#eaf2fa!important}
html[data-theme="light"] .feature-icon,
html[data-theme="light"] .social-row span{color:#173451;background:#fff;border-color:rgba(28,105,174,.18)}
html[data-theme="light"] .site-footer{border-color:rgba(28,105,174,.16)}
html[data-theme="light"] .footer-brand p,
html[data-theme="light"] .footer-col a,
html[data-theme="light"] .copyright,
html[data-theme="light"] .seo-footer-content{color:#5b7086}
html[data-theme="light"] .modal-panel{background:#f7fbff;color:#10233a}
html[data-theme="light"] .modal-head{border-color:rgba(28,105,174,.16)}
html[data-theme="light"] .close-btn{background:#e6f0f9;color:#173451}
html[data-theme="light"] .player-url-box input{background:#fff;color:#173451;border-color:rgba(28,105,174,.22)}

@media (min-width:1261px){
  .topbar-inner{min-height:72px!important}
  .search-wrap{width:360px}
  .category-card img{object-fit:contain!important}
}

@media (max-width:1260px){
  .topbar-inner{display:flex!important;grid-template-columns:none!important;min-height:72px;padding-block:8px}
  .search-wrap{width:min(350px,38vw)}
  .hero-layout{display:grid;grid-template-columns:1fr!important}
  .hero-sidebar{width:100%}
  .category-card img{object-fit:contain!important}
}

@media (max-width:840px){
  .container{width:min(100% - 24px,1150px)}
  .topbar-inner{
    display:grid!important;
    grid-template-columns:1fr auto!important;
    grid-template-rows:auto auto;
    gap:9px 12px!important;
    padding:9px 0 11px!important;
  }
  .brand{grid-column:1;grid-row:1;align-self:center}
  .brand img{height:36px}
  .header-tools{display:contents}
  .icon-buttons{grid-column:2;grid-row:1;justify-self:end;gap:8px}
  .search-wrap{grid-column:1/-1;grid-row:2;width:100%}
  .search-pill{height:42px;padding-inline:15px}
  .search-results{position:fixed;left:12px;right:12px;top:111px;max-height:min(55vh,390px)}
  .nav-panel.open{max-height:330px}
  .nav-panel-inner{flex-direction:column;align-items:stretch;gap:4px;padding-block:10px}
  .nav-panel a{text-align:center;padding:11px 15px}

  .hero{padding-top:16px}
  .hero-layout{gap:14px!important}
  .hero-main{order:2}
  .hero-sidebar{order:1;padding:12px!important;border-radius:14px!important;overflow:visible!important}
  .hero-sidebar::before{content:'Canais ao vivo';display:block;margin:0 0 10px;font-size:17px;font-weight:800;color:var(--text)}
  .live-channel-list{
    display:grid!important;
    grid-auto-flow:column;
    grid-auto-columns:minmax(155px,46%);
    gap:9px!important;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
    padding-bottom:2px;
  }
  .live-channel-list::-webkit-scrollbar{display:none}
  .live-channel-item{scroll-snap-align:start;border:1px solid rgba(60,132,206,.22)!important;border-radius:12px!important;padding:9px!important;grid-template-columns:42px 1fr 25px!important;min-height:58px}
  .live-channel-item img{width:42px!important;height:30px!important}
  .live-channel-item span{white-space:normal!important;line-height:1.25}
  .hero-top{gap:16px}
  .hero-copy h1{font-size:clamp(32px,10vw,42px)!important;line-height:1.02!important;letter-spacing:-1.3px!important}
  .hero-copy p{font-size:14px!important;max-width:620px!important}
  .cta-row{margin-bottom:0!important}
  .hero-player .preview{border-radius:13px!important}
  .feature-points{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
  .feature-point{min-width:0;flex-direction:column;text-align:center;gap:7px}
  .feature-icon{width:42px;height:42px}
  .feature-point span{display:none}

  .section-headline{margin:25px 0 13px}
  .featured-track{padding-right:30px;scroll-snap-type:x proximity}
  .featured-card{min-width:108px!important;scroll-snap-align:start}
  .category-grid{gap:10px}
  .category-card{border-radius:12px!important}
  .category-card img{object-fit:contain!important}
  .info-row{margin-top:15px}
  .channels-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .channel-section{padding:14px!important}
  .channel-card{padding:11px!important;border-radius:13px!important}
  .channel-logo-wrap{height:54px;margin-bottom:9px}
  .channel-card h3{font-size:13px;min-height:33px;margin-bottom:10px}
  .channel-card-actions .btn{font-size:12px;padding:10px 8px}
  .channel-card-actions .btn-secondary{display:none}
}

@media (max-width:430px){
  .container{width:calc(100% - 20px)}
  .icon-btn{width:38px;height:38px}
  .hero-copy h1 br{display:none}
  .btn-large{padding:14px 17px;font-size:13px}
  .feature-points{gap:4px!important}
  .feature-point strong{font-size:12px}
  .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .channels-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* ==================================================
   FIX 7 - TEMA CLARO AZUL-GELO, COERENTE COM A MARCA
   ================================================== */
html[data-theme="light"]{
  --bg:#dceaf6;
  --bg2:#edf6fd;
  --panel:#f7fbff;
  --panel-2:#e8f2fa;
  --stroke:rgba(18,91,151,.26);
  --text:#0a2742;
  --muted:#526f88;
  --blue:#078fe8;
  --blue2:#17b9ef;
  --shadow:0 16px 38px rgba(23,68,105,.14);
}
html[data-theme="light"] body{
  color:#0a2742;
  background:
    radial-gradient(circle at 12% 0%,rgba(18,159,235,.18),transparent 30%),
    radial-gradient(circle at 88% 62%,rgba(19,124,208,.11),transparent 24%),
    linear-gradient(180deg,#eaf5fc 0%,#dceaf6 100%);
}

/* O topo continua marinho para conversar com a logo e o player. */
html[data-theme="light"] .topbar{
  background:rgba(4,18,32,.96);
  border-color:rgba(69,151,224,.28);
  box-shadow:0 10px 28px rgba(10,46,77,.16);
}
html[data-theme="light"] .search-pill,
html[data-theme="light"] .icon-btn{
  color:#eaf6ff;
  background:#0a2036;
  border-color:rgba(96,174,235,.3);
}
html[data-theme="light"] .search-pill input{color:#eff8ff}
html[data-theme="light"] .search-pill input::placeholder{color:#8faac0}
html[data-theme="light"] .search-pill input[type="search"]::-webkit-search-cancel-button{filter:invert(1)}
html[data-theme="light"] .nav-panel,
html[data-theme="light"] .search-results{
  color:#eef8ff;
  background:rgba(5,22,38,.99);
  border-color:rgba(67,153,225,.3);
  box-shadow:0 20px 48px rgba(8,41,70,.3);
}
html[data-theme="light"] .nav-panel a,
html[data-theme="light"] .search-result{color:#eef8ff}
html[data-theme="light"] .search-result img{background:#0d2944}

html[data-theme="light"] .hero-copy h1,
html[data-theme="light"] .section-headline h2,
html[data-theme="light"] .section-head h2,
html[data-theme="light"] .schedule-card h3{color:#092943}
html[data-theme="light"] .hero-copy p{color:#456680!important}
html[data-theme="light"] .feature-icon{
  color:#0876bd;
  background:#f8fcff;
  border-color:rgba(22,105,169,.24);
  box-shadow:0 8px 20px rgba(17,75,121,.1);
}

/* A lista lateral fica marinho: contraste alto e logos sempre legiveis. */
html[data-theme="light"] .hero-sidebar{
  color:#f1f8ff;
  background:linear-gradient(180deg,#071d31,#061626)!important;
  border-color:rgba(38,137,213,.44)!important;
  box-shadow:0 18px 42px rgba(9,53,88,.2)!important;
}
html[data-theme="light"] .hero-sidebar::before{color:#eef8ff}
html[data-theme="light"] .live-channel-item{
  color:#f1f8ff;
  background:transparent!important;
  border-color:rgba(74,148,207,.22)!important;
  box-shadow:none!important;
}
html[data-theme="light"] .live-channel-item strong{color:#fff}
html[data-theme="light"] .live-channel-item span{color:#91b3cf}
html[data-theme="light"] .live-channel-item img{background:#0d2a44!important}
html[data-theme="light"] .live-channel-item em{background:#123754;color:#fff}

html[data-theme="light"] .featured-card,
html[data-theme="light"] .channel-card,
html[data-theme="light"] .schedule-card,
html[data-theme="light"] .channel-section,
html[data-theme="light"] .seo-footer-toggle,
html[data-theme="light"] .seo-footer-content{
  color:#0a2742;
  background:linear-gradient(180deg,#ffffff,#edf5fb)!important;
  border-color:rgba(26,105,166,.25)!important;
  box-shadow:0 12px 30px rgba(21,69,107,.11);
}
html[data-theme="light"] .featured-card:hover,
html[data-theme="light"] .channel-card:hover{
  border-color:rgba(6,145,232,.58)!important;
  box-shadow:0 14px 34px rgba(13,109,176,.17);
}

/* Poços marinhos corrigem as marcas brancas invisíveis vistas no print. */
html[data-theme="light"] .featured-logo-wrap,
html[data-theme="light"] .channel-logo-wrap{
  background:linear-gradient(145deg,#102c45,#06182a)!important;
  border:1px solid rgba(43,135,205,.2);
}
html[data-theme="light"] .featured-logo,
html[data-theme="light"] .channel-logo{filter:none;opacity:1}
html[data-theme="light"] .section-count,
html[data-theme="light"] .search-status{color:#58748d}
html[data-theme="light"] .channel-card .btn-secondary{
  color:#096eae;
  background:#e4f2fc;
  border-color:rgba(10,126,201,.42);
}
html[data-theme="light"] .channel-card .btn-secondary:hover{
  color:#fff;
  background:#087fc8;
}
html[data-theme="light"] .slider-arrow{
  color:#fff;
  background:#0b4169;
  border-color:#197ebd;
  box-shadow:0 8px 18px rgba(12,66,104,.2);
}
html[data-theme="light"] .category-card{
  background:#071a2d!important;
  border:1px solid rgba(18,104,169,.28)!important;
  box-shadow:0 10px 24px rgba(18,62,98,.14);
}
html[data-theme="light"] .promo-card{
  background:#071a2d!important;
  border-color:rgba(18,104,169,.28)!important;
}

html[data-theme="light"] .seo-footer-content{color:#496982}
html[data-theme="light"] .seo-footer-content h2{color:#0a2742}
html[data-theme="light"] .site-footer{
  color:#eaf6ff;
  background:linear-gradient(180deg,#071b2e,#04121f);
  border-color:rgba(52,134,198,.28);
  padding-top:28px;
}
html[data-theme="light"] .site-footer .footer-brand p,
html[data-theme="light"] .site-footer .footer-col a,
html[data-theme="light"] .site-footer .copyright{color:#9ab6cd}
html[data-theme="light"] .site-footer .footer-col h4{color:#f2f9ff}
html[data-theme="light"] .site-footer .social-row span{
  color:#eaf6ff;
  background:#0c2b46;
  border-color:rgba(69,151,216,.28);
}

/* ==================================================
   FIX 9 - SVG CORRIGIDO E HERO MOBILE RESTAURADO
   ================================================== */
.brand{
  width:86px;
  height:64px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.brand img{
  display:block;
  width:100%!important;
  height:100%!important;
  object-fit:contain;
}
.footer-brand img{
  display:block;
  width:112px!important;
  height:84px!important;
  object-fit:contain;
  object-position:left center;
  margin-bottom:12px;
}

@media (max-width:840px){
  .brand{width:68px!important;height:51px!important}
  .brand img{width:68px!important;height:51px!important}
  .hero{overflow:hidden}
  .hero-layout,
  .hero-main,
  .hero-top,
  .hero-copy,
  .hero-player,
  .hero-player .preview,
  .feature-points{
    max-width:100%!important;
    min-width:0!important;
  }
  .hero-top{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:15px!important;
  }
  .hero-copy{padding:0!important}
  .live-badge{
    width:max-content;
    max-width:100%!important;
    margin-bottom:13px!important;
    white-space:nowrap;
  }
  .hero-copy h1{
    margin:0 0 14px!important;
    font-size:36px!important;
    line-height:1.04!important;
    letter-spacing:-1.2px!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:break-word;
  }
  .hero-copy h1 br{display:block!important}
  .hero-copy p{
    max-width:100%!important;
    margin:0 0 17px!important;
    white-space:normal!important;
    overflow-wrap:break-word;
  }
  .cta-row{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:9px 13px!important;
  }
  .hero-player{
    display:block!important;
    width:100%!important;
    padding:0!important;
  }
  .hero-player .preview{
    display:block!important;
    width:100%!important;
    aspect-ratio:16/9!important;
    overflow:hidden!important;
    border-radius:12px!important;
  }
  .hero-player .preview img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center center!important;
  }
  .feature-points{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    width:100%!important;
    gap:8px!important;
    margin-top:16px!important;
  }
  .feature-point{
    min-width:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    gap:6px!important;
    padding:0!important;
    text-align:center;
  }
  .feature-point>div:last-child{min-width:0;max-width:100%}
  .feature-icon{
    width:40px!important;
    height:40px!important;
    flex:none!important;
  }
  .feature-point strong{
    display:block!important;
    max-width:100%;
    font-size:12px!important;
    line-height:1.2!important;
    white-space:normal!important;
    overflow-wrap:anywhere;
  }
  .feature-point span{display:none!important}
  .footer-brand img{width:96px!important;height:72px!important}
}

@media (max-width:430px){
  .hero-copy h1{font-size:34px!important}
  .btn-large{padding:13px 15px!important;font-size:12px!important}
}

/* FIX 10: no mobile, a busca e seguida diretamente pelos canais em destaque. */
@media screen and (max-width:840px){
  .site-shell main > section.hero{
    display:none!important;
    visibility:hidden!important;
    height:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
  }
}
