/*
Theme Name: Portal News G1
Theme URI: https://example.com/portal-news
Author: Custom Theme
Author URI: https://example.com
Description: Tema de portal de notícias estilo G1, com áreas de anúncios gerenciáveis, carrossel de artigos, "Mais lidas" estilo G1, busca e posts relacionados. Configure logo, tamanho da logo e anúncios em Aparência → Personalizar.
 Version: 5.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: portal-news
Tags: news, blog, custom-logo, custom-menu, featured-images, translation-ready
*/

/* === Reset & base === */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; width: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1a1a1a; background: #fff; line-height: 1.5; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: #c4170c; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; border: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 800; color: #1a1a1a; line-height: 1.2; }
.screen-reader-text { position: absolute !important; left: -9999px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0; }
.site-main { padding-top: 0; padding-bottom: 0; min-height: 50vh; overflow: visible; }
.site-main::after { content: ""; display: table; clear: both; }

/* === Header === */
.site-header {
  background: #c4170c;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: 100vw;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.header-left { display: flex; align-items: center; gap: 20px; }
.weather-widget { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #fff; opacity: 0.9; }
@media (max-width: 600px) { .weather-widget { display: none; } }
.header-menu-btn, .header-search-btn {
  background: transparent;
  color: #fff;
  border: 0;
  width: 48px;
  height: 48px;
  min-width: 48px;
  max-width: 48px;
  font-size: 0;
  font-weight: 800;
  letter-spacing: .5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  border-radius: 10px;
  white-space: nowrap;
  overflow: hidden;
}
.header-menu-btn .btn-text, .header-search-btn .btn-text { display: none !important; }
.header-menu-btn { justify-self: start; }
.header-search-btn { justify-self: end; background: rgba(0,0,0,.22); }
.header-menu-btn:hover, .header-search-btn:hover { background: rgba(0,0,0,.32); }

.header-logo {
  text-align: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.header-logo a {
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  overflow: hidden;
  text-decoration: none;
}
.header-logo .logo-text {
  display: block;
  width: 100%;
  max-width: min(620px, 100%);
  font-weight: 900;
  letter-spacing: -.8px;
  font-size: var(--logo-size-desktop, 56px);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.header-logo img {
  height: var(--logo-size-desktop, 56px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.burger { display: inline-flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.burger span { display:block; width:22px; height:2px; background:#fff; border-radius: 2px; }

@media (max-width: 900px){
  .header-inner {
    grid-template-columns: 50px minmax(0, 1fr) 50px;
    min-height: 64px;
    padding: 6px 10px;
    gap: 6px;
  }
  .header-menu-btn, .header-search-btn {
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    height: 48px;
  }
  .header-search-btn svg { width: 24px; height: 24px; }
  .burger span { width: 24px; height: 3px; }
  .header-logo .logo-text {
    font-size: clamp(30px, 9.8vw, var(--logo-size-mobile, 46px));
    max-width: calc(100vw - 132px);
  }
  .header-logo img {
    height: var(--logo-size-mobile, 46px);
    max-width: calc(100vw - 132px);
  }
}

@media (max-width: 380px){
  .header-inner { grid-template-columns: 40px minmax(0, 1fr) 40px; padding-left: 8px; padding-right: 8px; }
  .header-menu-btn, .header-search-btn { width: 40px; min-width: 40px; max-width: 40px; height: 40px; }
  .header-logo .logo-text { font-size: clamp(24px, 8vw, 34px); max-width: calc(100vw - 108px); }
  .header-logo img { max-width: calc(100vw - 108px); }
}

/* === Mobile menu (drawer estilo G1) === */
.mobile-menu {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 200; display: none;
}
.mobile-menu.open { display: block; }
.mobile-menu-panel {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 320px; max-width: 88vw;
  background: #fff; overflow-y: auto; overflow-x: hidden;
  box-shadow: 4px 0 24px rgba(0,0,0,.25);
  animation: slideIn .25s ease;
}
@keyframes slideIn { from{transform:translateX(-100%);} to{transform:translateX(0);} }
.mobile-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #eee;
  font-weight: 800; font-size: 18px; color: #1a1a1a;
  position: sticky; top: 0; background: #fff;
}
.mobile-menu-close {
  background: none; border: 0; font-size: 28px; line-height: 1;
  cursor: pointer; color: #1a1a1a; padding: 4px 10px; border-radius: 4px;
}
.mobile-menu-close:hover { background: #f3f3f3; }
.mobile-nav-list, .mobile-menu-panel ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu-panel li { border-bottom: 1px solid #eee; }
.mobile-menu-panel li a {
  display: block; padding: 16px 20px; color: #1a1a1a;
  font-weight: 700; font-size: 16px;
  border-left: 3px solid transparent; transition: all .15s;
}
.mobile-menu-panel li a:hover {
  background: #faeae8; color: #c4170c; border-left-color: #c4170c;
  text-decoration: none;
}

/* === Search overlay (redesenhado) === */
.search-overlay {
  position: fixed; inset: 0; background: rgba(20,20,20,.78); backdrop-filter: blur(4px);
  z-index: 200; display: none; align-items: flex-start; justify-content: center;
  padding: 80px 16px 16px;
}
.search-overlay.open { display: flex; }
.search-box {
  position: relative; background: #fff; padding: 32px 24px 24px;
  border-radius: 12px; width: min(640px, 100%);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.search-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: 0; font-size: 30px; line-height: 1;
  cursor: pointer; color: #888; padding: 4px 10px; border-radius: 4px;
}
.search-close:hover { color: #c4170c; background: #f5f5f5; }
.search-box form { display: flex; flex-direction: column; gap: 12px; }
.search-field {
  display: flex; align-items: center; gap: 10px;
  background: #f5f5f5; border: 2px solid transparent;
  border-radius: 10px; padding: 4px 14px;
  transition: border-color .15s, background .15s;
}
.search-field:focus-within { border-color: #c4170c; background: #fff; }
.search-field svg { color: #888; flex-shrink: 0; }
.search-field input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-size: 17px; padding: 14px 0; color: #1a1a1a; min-width: 0;
}
.search-submit {
  background: #c4170c; color: #fff; border: 0; border-radius: 10px;
  padding: 14px 22px; font-weight: 800; font-size: 15px; cursor: pointer;
  text-transform: uppercase; letter-spacing: .5px;
}
.search-submit:hover { background: #a01209; }

/* === Ad slots === */
.top-ad-wrap {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 10px 16px;
  position: relative;
  z-index: 101;
}
.top-ad-before-menu { border-top: 0; }
.top-ad-wrap .ad-slot {
  max-width: 970px;
  margin: 0 auto;
}
.ad-slot { margin: 0 0 24px; text-align: center; width: 100%; max-width: 100%; clear: none; display: block; }
.ad-slot:empty { display: none !important; }
.ad-slot-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
  color: #999; margin-bottom: 4px;
}
.ad-slot a { display: inline-block; max-width: 100%; }
.ad-slot img { margin: 0 auto; max-width: 100%; height: auto; }
.ad-placeholder {
  background: #f0e7c8; border: 1px dashed #c9b270; color: #6b5a1f;
  padding: 16px 14px; font-weight: 700; text-align: center;
  border-radius: 4px; font-size: 13px; line-height: 1.4;
  overflow-wrap: anywhere;
}
.ad-slot:not(.ad-slot-square) .ad-placeholder {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ad-slot-square { max-width: 300px; margin: 0 auto 20px; }
.ad-slot-square .ad-placeholder { min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; }

.ad-slot[data-ad^="banner_"] .ad-placeholder::before,
.ad-slot[data-ad^="square_"] .ad-placeholder::before {
  content: "PUBLICIDADE";
  display: block;
  font-size: 10px;
  letter-spacing: .12em;
  color: #8d7a34;
  margin-bottom: 6px;
}

.grid-ad {
  grid-column: 1 / -1;
}
.grid-ad .ad-slot {
  margin: 10px 0;
}
.preloaded-more { display: block; min-width: 0; }
.preloaded-more .article-card { width: 100%; }
.preloaded-more.is-hidden { display: none !important; }

/* === Carousel === */
.carousel-section { margin: 20px 0; }
.carousel-wrap { position: relative; overflow: hidden; border-radius: 8px; background: #000; }
.carousel-track { display: flex; transition: transform .5s ease; }
.carousel-slide { min-width: 100%; position: relative; display: block; }
.carousel-slide img { width: 100%; height: clamp(220px, 38vw, 460px); object-fit: cover; display: block; }
.carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 24px 24px;
  background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,0));
  color: #fff;
}
.carousel-caption .cat { font-size: 12px; text-transform: uppercase; opacity: .9; font-weight: 700; }
.carousel-caption h2 { color: #fff; font-size: clamp(18px, 3.2vw, 28px); line-height: 1.2; margin-top: 6px; }
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.55); color: #fff; border: 0; width: 42px; height: 42px;
  border-radius: 50%; font-size: 20px; cursor: pointer;
}
.carousel-nav.prev { left: 10px; } .carousel-nav.next { right: 10px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.carousel-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #ccc; cursor: pointer; padding: 0; }
.carousel-dots button.active { background: #c4170c; }

/* === YouTube Shorts estilo G1 === */
.shorts-section {
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin: 0 0 32px;
  padding: 24px 20px;
  overflow: hidden;
}
.shorts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.shorts-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  color: #333;
  margin: 0;
  font-weight: 800;
}
.shorts-arrows { display: flex; align-items: center; gap: 12px; }
.shorts-nav {
  border: 0;
  background: transparent;
  color: #111;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}
.shorts-nav:disabled { opacity: .32; cursor: default; }
.shorts-prev { color: #999; }
.shorts-scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0 4px 16px;
}
.shorts-scroller::-webkit-scrollbar { display: none; }
.short-card {
  flex: 0 0 170px;
  scroll-snap-align: start;
  min-width: 170px;
  transition: transform .2s ease;
}
.short-card:hover { transform: scale(1.02); }
.short-thumb {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 9 / 16;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.short-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.08) 58%, rgba(0,0,0,0));
}
.short-thumb img { width: 100%; height: 100%; object-fit: cover; }
.short-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #c4170c;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s;
  padding-left: 4px;
}
.short-card:hover .short-play { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }

/* === Vídeos do canal === */
.videos-section {
  background: #fff;
  border-radius: 8px;
  margin: 24px 0;
  padding: 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-title-row h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); border-left: 4px solid #c4170c; padding-left: 12px; }
.section-title-row a { color: #c4170c; font-weight: 900; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; }
.videos-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .9fr); gap: 18px; align-items: start; }
.video-card { display: block; color: #1a1a1a; font-weight: 900; }
.video-card:hover { color: #c4170c; text-decoration: none; }
.video-thumb { position: relative; display: block; overflow: hidden; background: #111; border-radius: 8px; aspect-ratio: 16 / 9; margin-bottom: 10px; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; left: 14px; bottom: 14px; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #c4170c; display: flex; align-items: center; justify-content: center; padding-left: 3px; font-size: 22px; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.video-card-featured strong { display: block; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.18; }
.video-list { display: grid; gap: 14px; }
.video-card-small { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; align-items: center; }
.video-card-small .video-thumb { margin: 0; border-radius: 6px; }
.video-card-small .video-play { width: 32px; height: 32px; left: 8px; bottom: 8px; font-size: 16px; }
.video-card-small strong { font-size: 15px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* === Layout grid === */
.main-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; margin: 0 0 40px; align-items: start; }
.main-layout > * { min-width: 0; }
.content-col { min-width: 0; display: flex; flex-direction: column; gap: 0; }
.content-col > .load-more-wrap { margin-top: 24px; }
.sidebar-col { display: flex; flex-direction: column; gap: 0; min-width: 0; align-self: start; }
@media (max-width: 960px) { .main-layout { grid-template-columns: 1fr; gap: 0; } .content-col { display: block; } .sidebar-col { padding: 0 16px; } }

/* === Article cards === */
.article-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 0 20px 24px; }
.grid-shorts { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 1100px) { .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .article-grid { grid-template-columns: 1fr; gap: 20px; padding: 0 16px 20px; } }

.article-card {
  background: #fff; border-radius: 0; overflow: hidden;
  display: flex; flex-direction: column;
  border-bottom: 1px solid #eee;
  padding-bottom: 16px;
}
.article-card:hover { transform: none; box-shadow: none; }
.article-card .thumb { aspect-ratio: 16/9; overflow: hidden; background: #eee; display: block; margin-bottom: 12px; }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card .body { padding: 0; }
.article-card .cat { font-size: 11px; color: #c4170c; text-transform: uppercase; letter-spacing: .5px; font-weight: 800; margin-bottom: 4px; display: block; }
.article-card h3 { font-size: 20px; line-height: 1.2; margin: 0; color: #1a1a1a; font-weight: 900; }
.article-card h3 a { color: inherit; }
.article-card h3 a:hover { color: #c4170c; text-decoration: none; }
.article-card .meta { font-size: 12px; color: #888; margin-top: 8px; font-weight: 400; }

.article-grid > .article-card:last-child:nth-child(odd) { grid-column: auto; }
.article-grid > .article-card:last-child:nth-child(odd) .thumb { max-height: none; }

.article-card.featured { grid-column: 1 / -1; flex-direction: row; }
.article-card.featured .thumb { flex: 1.4; aspect-ratio: auto; min-height: 280px; }
.article-card.featured .body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 24px 28px; }
.article-card.featured h3 { font-size: clamp(20px, 2.4vw, 28px); }
@media (max-width: 700px) {
  .article-card.featured { flex-direction: column; }
  .article-card.featured .thumb { min-height: 0; aspect-ratio: 16/10; }
  .article-card.featured .body { padding: 14px 16px 18px; }
}

/* Toolbar (filters + search) */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.toolbar h2 { margin: 0; font-size: 20px; font-weight: 900; color: #c4170c; }
.toolbar .filters { display: flex; gap: 12px; }
.toolbar .filters a { padding: 7px 12px; border-radius: 999px; background: #f3f3f3; color: #333; font-size: 13px; font-weight: 800; }
.toolbar .filters a.active, .toolbar .filters a:hover { background: #c4170c; color: #fff; text-decoration: none; }
.toolbar .inline-search {
  display: flex;
  gap: 0;
  width: min(380px, 100%);
  border: 1px solid #e3e3e3;
  border-radius: 999px;
  overflow: hidden;
  background: #fafafa;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.03);
}
.toolbar .inline-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  font-size: 14px;
  outline: none;
}
.toolbar .inline-search:focus-within { border-color: #c4170c; background: #fff; }
.toolbar .inline-search button {
  padding: 0 18px;
  background: #c4170c;
  color: #fff;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .toolbar { grid-template-columns: 1fr; padding: 12px 0; border-radius: 0; margin-left: 0; margin-right: 0; background: transparent; box-shadow: none; }
  .toolbar .inline-search { width: 100%; }
  .toolbar .filters { overflow-x: visible; flex-wrap: wrap; padding-bottom: 0; }
  .toolbar .filters a { flex: 1 1 auto; text-align: center; padding-left: 10px; padding-right: 10px; }
}

/* Load more button */
.load-more-wrap { text-align: center; margin: 28px 0; }
.load-more-btn {
  display: inline-block; background: #c4170c; color: #fff;
  font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 16px 40px; border: 0; border-radius: 8px; cursor: pointer;
  font-size: 14px; box-shadow: 0 4px 12px rgba(196,23,12,.25);
  width: 100%; max-width: 920px; transition: background .15s;
}
.load-more-btn:hover:not(:disabled) { background: #a01209; }
.load-more-btn:disabled { opacity: .7; cursor: wait; }
.load-more-end { color: #888; font-size: 14px; margin-top: 14px; }

/* === Mais lidas (estilo G1) === */
.popular-widget {
  background: #fff; border-radius: 0; padding: 24px 20px;
  margin: 0; border-bottom: 1px solid #eee;
}
.popular-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; color: #c4170c; font-weight: 900;
  margin: 0 0 20px;
}
.popular-title strong { font-weight: 900; }
.popular-icon { color: #c4170c; font-size: 18px; }
.popular-list { list-style: none; padding: 0; margin: 0; counter-reset: pop; }
.popular-item { border-bottom: 1px solid #f0f0f0; }
.popular-item:last-child { border-bottom: 0; }
.popular-link {
  display: grid; grid-template-columns: 28px 1fr 76px; gap: 12px;
  align-items: center; padding: 14px 0; color: #1a1a1a;
}
.popular-link:hover { text-decoration: none; }
.popular-link:hover .popular-text { color: #c4170c; }
.popular-num {
  font-size: 26px; font-weight: 300; color: #bbb; line-height: 1; text-align: center;
}
.popular-text {
  font-size: 14.5px; font-weight: 800; line-height: 1.3; color: #c4170c;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.popular-thumb {
  width: 76px; height: 56px; border-radius: 4px; overflow: hidden; background: #eee;
}
.popular-thumb img { width: 100%; height: 100%; object-fit: cover; }
.popular-item:not(:has(.popular-thumb)) .popular-link { grid-template-columns: 28px 1fr; }

/* Sidebar (legacy widgets) */
.sidebar-widget { background: #fff; border-radius: 0; padding: 24px 20px; margin: 0; border-bottom: 1px solid #eee; }
.sidebar-widget h3 { font-size: 20px; color: #c4170c; font-weight: 900; margin-bottom: 20px; }
.sidebar-widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar-widget > ul > li { padding: 12px 0; border-bottom: 1px solid #f0f0f0; display: flex; gap: 12px; align-items: center; }
.sidebar-widget > ul > li:last-child { border-bottom: 0; }
.sidebar-widget li a { color: #c4170c; font-weight: 700; font-size: 14px; line-height: 1.3; }
.sidebar-widget li .thumb { width: 76px; height: 56px; overflow: hidden; border-radius: 4px; flex-shrink: 0; }
.sidebar-widget li .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* === Single post === */
.portal-single-post { background: #fff; padding: 28px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
@media (max-width: 600px){ .portal-single-post { padding: 18px 14px; } }
.portal-single-post .post-cat { display: inline-block; background: #c4170c; color: #fff; padding: 4px 10px; font-size: 11px; font-weight: 800; text-transform: uppercase; border-radius: 3px; margin-bottom: 12px; }
.portal-single-post h1 { font-size: clamp(24px, 4vw, 38px); line-height: 1.15; margin-bottom: 14px; }
.portal-single-post .post-meta { color: #666; font-size: 13px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid #eee; }
.portal-single-post .post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0; padding: 14px; background: #fafafa; border: 1px solid #ececec; border-radius: 10px; }
.portal-single-post .post-share-label { font-weight: 800; color: #555; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin-right: 4px; }
.portal-single-post .post-share .share-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: #fff; background: #444; border: none; cursor: pointer; transition: transform .12s ease, filter .12s ease; line-height: 1; text-decoration: none; }
.portal-single-post .post-share .share-btn:hover { transform: translateY(-1px); filter: brightness(1.08); text-decoration: none; color: #fff; }
.portal-single-post .post-share .share-btn svg { display: block; }
.portal-single-post .post-share .share-facebook { background: #1877f2; }
.portal-single-post .post-share .share-whatsapp { background: #25d366; }
.portal-single-post .post-share .share-twitter  { background: #0f1419; }
.portal-single-post .post-share .share-telegram { background: #229ed9; }
.portal-single-post .post-share .share-copy     { background: #6b7280; }
.portal-single-post .post-share .share-copy.is-copied { background: #16a34a; }
.shorts-config-hint { background: #fff8e1; border: 1px dashed #d4a017; color: #6b4f00; padding: 14px 16px; border-radius: 8px; font-size: 14px; margin: 0; }
.shorts-empty, .videos-empty { padding: 18px 20px; }
.portal-single-post .post-content { font-size: 17px; line-height: 1.7; color: #2a2a2a; word-wrap: break-word; overflow-wrap: break-word; }
.portal-single-post .post-content p { margin: 0 0 1em; }
.portal-single-post .post-content img { margin: 20px auto; border-radius: 4px; height: auto; }
.portal-single-post .post-content h2, .portal-single-post .post-content h3 { margin-top: 1.5em; }
.portal-single-post .post-content iframe, .portal-single-post .post-content video { max-width: 100%; }

/* Related posts */
.related-posts { margin-top: 36px; }
.related-posts h2 { font-size: 22px; border-left: 4px solid #c4170c; padding-left: 12px; margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .related-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .related-grid { grid-template-columns: 1fr; } }


/* === Recomendações === */
.recommend-widget {
  background: #fff;
  border-radius: 0;
  padding: 24px 20px;
  margin: 0;
  border-bottom: 1px solid #eee;
}
.recommend-title {
  font-size: 20px;
  font-weight: 900;
  color: #c4170c;
  margin-bottom: 20px;
}
.recommend-list { display: grid; gap: 12px; }
.recommend-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  color: #c4170c;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.25;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.recommend-item:last-child { border-bottom: 0; padding-bottom: 0; }
.recommend-item:hover { text-decoration: none; color: #a01209; }
.recommend-thumb { width: 88px; height: 66px; overflow: hidden; border-radius: 6px; background: #eee; }
.recommend-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recommend-item:not(:has(.recommend-thumb)) { grid-template-columns: 1fr; }

.post-featured-image { margin: 0 0 24px; }
.post-featured-image img { width: 100%; border-radius: 8px; }

/* === Correções fortes para mobile / overflow === */
.site-main, .content-col, .sidebar-col, .article-grid, .related-grid, .portal-single-post, .post-content { min-width: 0; max-width: 100%; }
.post-content table, .post-content pre, .post-content code { max-width: 100%; overflow-x: auto; }
.post-content iframe, .post-content embed, .post-content object, .post-content video { width: 100%; max-width: 100%; }

@media (max-width: 760px) {
  .container { padding-left: 0; padding-right: 0; }
  .site-main { padding-top: 0; overflow: visible; }
  .site-header { position: sticky; top: 0; }
  .header-inner { min-height: 64px; padding-left: 12px; padding-right: 12px; }
  .top-ad-wrap { padding: 10px 12px; }
  .top-ad-before-menu { order: 0; }
  .ad-slot { margin: 14px auto; max-width: 100%; }
  .ad-slot-square { max-width: 300px; }
  .ad-placeholder { font-size: 13px; padding: 18px 12px; }
  .ad-slot:not(.ad-slot-square) .ad-placeholder { min-height: 82px; display: flex; align-items: center; justify-content: center; }
  .ad-slot-square .ad-placeholder { min-height: 220px; }
  .carousel-section { margin: 0 0 18px; }
  .carousel-wrap { border-radius: 0; }
  .carousel-slide img { height: 260px; }
  .carousel-caption { padding: 54px 16px 18px; }
  .carousel-nav { width: 36px; height: 36px; }
  .shorts-section { margin: 22px 0; padding: 20px 12px 8px; }
  .shorts-head { margin-bottom: 14px; }
  .shorts-arrows { gap: 6px; }
  .shorts-nav { font-size: 30px; padding: 4px; }
  .shorts-scroller { grid-auto-columns: 82vw; gap: 14px; padding-right: 12px; }
  .short-card strong { font-size: 18px; }
  .short-play { width: 50px; height: 50px; left: 16px; bottom: 16px; font-size: 24px; }
  .short-duration { left: 78px; bottom: 28px; font-size: 16px; }
  .videos-section { border-radius: 0; margin: 20px 0; padding: 18px 12px; box-shadow: none; }
  .videos-layout { grid-template-columns: 1fr; gap: 16px; }
  .video-list { grid-template-columns: 1fr; }
  .video-card-small { grid-template-columns: 124px minmax(0, 1fr); }
  .main-layout { display: block; margin-top: 12px; }
  .content-col, .sidebar-col { width: 100%; max-width: 100%; }
  .sidebar-col { margin-top: 22px; }
  .article-grid { display: block; }
  .article-grid .article-card,
  .preloaded-more { margin-bottom: 14px; }
  .article-card { border-radius: 0; margin-left: 0; margin-right: 0; width: 100%; }
  .article-card .body { padding-left: 16px; padding-right: 16px; }
  .portal-single-post { margin-left: 0; margin-right: 0; border-radius: 0; padding: 20px 0; box-shadow: none; width: 100%; max-width: 100%; }
  .portal-single-post > *:not(.post-featured-image):not(.post-content):not(.ad-slot),
  .portal-single-post .post-content > *:not(.ad-slot) { padding-left: 16px; padding-right: 16px; }
  .portal-single-post h1 { font-size: clamp(26px, 7.4vw, 34px); line-height: 1.12; overflow-wrap: anywhere; }
  .portal-single-post .post-share .share-btn { flex: 1 1 calc(50% - 4px); justify-content: center; }
  .portal-single-post .post-share-label { flex-basis: 100%; margin-bottom: 4px; }
  .post-featured-image { margin-left: 0; margin-right: 0; }
  .post-featured-image img { border-radius: 0; }
  .popular-widget, .recommend-widget, .sidebar-widget { border-radius: 0; margin-left: -12px; margin-right: -12px; box-shadow: none; border-top: 1px solid #eee; }
  .popular-link { grid-template-columns: 32px minmax(0, 1fr) 82px; }
  .popular-text { font-size: 15px; -webkit-line-clamp: 3; }
  .recommend-item { grid-template-columns: 92px minmax(0, 1fr); font-size: 16px; gap: 12px; }
  .recommend-thumb { width: 92px; height: 66px; }
  .related-grid { grid-template-columns: 1fr; }
  .search-overlay { padding: 64px 12px 12px; }
  .search-box { border-radius: 14px; padding: 34px 16px 18px; }
  .mobile-menu-panel { width: min(84vw, 340px); max-width: 84vw; }
}

@media (max-width: 420px) {
  .popular-link { grid-template-columns: 30px minmax(0, 1fr) 74px; gap: 10px; }
  .popular-thumb { width: 74px; height: 54px; }
  .recommend-item { grid-template-columns: 80px 1fr; }
  .recommend-thumb { width: 80px; height: 60px; }
}

/* Footer */
.site-footer { background: #c4170c; color: #fff; padding: 36px 0 24px; margin-top: 40px; text-align: center; font-size: 14px; }
.site-footer a { color: #fff; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 30px 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; background: #fff; border-radius: 4px; color: #333; font-weight: 700; }
.pagination .current { background: #c4170c; color: #fff; }


/* === Ajustes v2.2: sem espaços vazios e lateral sempre visível === */
.content-col > .ad-slot:last-child,
.site-main > .ad-slot:last-child {
  margin-bottom: 0;
}
.sidebar-col > .ad-slot-square + .ad-slot-square {
  margin-top: 0;
}
.article-grid:empty,
#moreArticles:empty {
  display: none;
}
.portal-single-post,
.post-content,
.post-content * {
  max-width: 100%;
}
.post-content table,
.post-content pre {
  display: block;
  overflow-x: auto;
}
@media (min-width: 961px) {
  .popular-widget,
  .recommend-widget,
  .sidebar-widget {
    display: block !important;
    visibility: visible !important;
  }
}
@media (max-width: 760px) {
  .top-ad-wrap .ad-slot { margin: 0 auto; }
  .header-inner { width: 100%; max-width: 100vw; }
  .post-content p,
  .post-content li {
    overflow-wrap: anywhere;
  }
}


/* === Ajustes finais v2.3: menos vazios, desktop consistente e mobile sem estouro === */
body.menu-open,
body.search-open { overflow: hidden; }
.mobile-menu { overflow: hidden; }
.mobile-menu-panel,
.mobile-menu-panel * { max-width: 100%; }
.mobile-menu-panel a { overflow-wrap: anywhere; }
.sidebar-col .ad-slot:empty,
.content-col .ad-slot:empty { display: none; }
.sidebar-col > *:last-child { margin-bottom: 0; }
@media (min-width: 961px) {
  .main-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
  .sidebar-col { display: flex !important; flex-direction: column; gap: 0; width: 100%; }
  .sidebar-col .popular-widget,
  .sidebar-col .recommend-widget,
  .sidebar-col .sidebar-widget { width: 100%; }
}
@media (max-width: 760px) {
  .header-logo .logo-text { letter-spacing: -1.2px; }
  .top-ad-wrap { border-bottom: 1px solid #eee; }
  .mobile-menu-panel { width: min(86vw, 340px); max-width: 86vw; }
  .post-content { font-size: 16px; line-height: 1.65; }
  .portal-single-post .ad-slot { margin: 18px 0; }
  #moreArticles { margin-top: 0; }
}

/* =====================================================================
   v3.0 — Layout G1: container centralizado, destaques grid, blocos por
   categoria, miniaturas sem corte, vídeos longos quadrados, rodapé novo.
   ===================================================================== */

/* Container mais respirado — espaço nas laterais */
.container { max-width: 1200px; padding-left: 0; padding-right: 0; }
@media (max-width: 760px){
  .container { padding-left: 0; padding-right: 0; }
}

/* Miniaturas dos cards não cortam */
.article-card .thumb {
  aspect-ratio: 16 / 9;
  background: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* sem corte; mostra a foto inteira */
  object-position: center;
  background: #f1f1f1;
}
.article-card .thumb .thumb-empty { width:100%; height:100%; background: #ececec; display:block; }
.article-card.featured .thumb { aspect-ratio: 16 / 9; min-height: 0; }
@media (min-width: 901px){
  .article-card.featured .thumb { aspect-ratio: 21 / 11; }
}

/* === Grid de destaques (topo) ============================================ */
.hero-carousel {
  margin: 0 0 24px;
  position: relative;
  width: 100%;
}
.hero-carousel-wrap {
  position: relative;
  overflow: hidden;
  background: #000;
  width: 100%;
}
.hero-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.hero-slide {
  min-width: 100%;
  flex: 0 0 100%;
  position: relative;
  display: block;
  aspect-ratio: 21 / 9;
}
@media (max-width: 760px) {
  .hero-slide { aspect-ratio: 16 / 10; }
}
.hero-slide-thumb {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-slide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-no-img {
  display: block;
  width: 100%;
  height: 100%;
  background: #222;
}
.hero-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 60px 28px 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
  color: #fff;
}
.hero-slide-cat {
  display: inline-block;
  background: #c4170c;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.hero-slide-title {
  color: #fff;
  margin: 0;
  font-size: clamp(20px, 3.5vw, 42px);
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.3);
  color: #fff;
  border: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-nav:hover { background: rgba(196, 23, 12, 0.8); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}
.hero-dot.is-active {
  background: #fff;
  transform: scale(1.2);
}
.destaques-empty-hint {
  background: #fffbe6;
  border: 1px dashed #ffe58f;
  padding: 20px;
  text-align: center;
  margin: 20px 0;
  border-radius: 8px;
}

.destaque-card {
  display: block;
  position: relative;
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.destaque-card:hover { text-decoration: none; }
.destaque-thumb { display: block; width: 100%; }
.destaque-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.destaque-card-large .destaque-thumb { aspect-ratio: 16 / 11; }
.destaque-card-medium .destaque-thumb { aspect-ratio: 16 / 10; }
.destaque-card-small  .destaque-thumb { aspect-ratio: 16 / 10; }
.destaque-no-img { display:block; width:100%; aspect-ratio:16/10; background:#222; }

.destaque-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 22px 18px;
  background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,.05));
  color: #fff;
}
.destaque-cat {
  display: inline-block;
  background: #c4170c;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.destaque-title { color: #fff; margin: 0; font-weight: 900; line-height: 1.18; }
.destaque-card-large  .destaque-title { font-size: clamp(20px, 2.6vw, 32px); }
.destaque-card-medium .destaque-title { font-size: clamp(16px, 1.6vw, 20px); }
.destaque-card-small  .destaque-title { font-size: clamp(15px, 1.5vw, 18px); }
.destaque-card-medium .destaque-caption,
.destaque-card-small  .destaque-caption { padding: 16px 14px 14px; }

@media (max-width: 900px){
  .destaques-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "main" "side" "bottom";
  }
  .destaques-side { grid-template-rows: auto; grid-template-columns: 1fr 1fr; }
  .destaques-bottom { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .destaques-side, .destaques-bottom { grid-template-columns: 1fr; }
}

/* === Bloco por categoria (na sequência do menu) ========================== */
.cat-block { margin: 28px 0; }
.cat-block-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
  border-bottom: 2px solid #c4170c; padding-bottom: 8px;
}
.cat-block-title { margin: 0; font-size: clamp(20px, 2.2vw, 26px); }
.cat-block-title a { color: #1a1a1a; }
.cat-block-title a:hover { color: #c4170c; text-decoration: none; }
.cat-block-more {
  color: #c4170c; font-weight: 900; text-transform: uppercase;
  font-size: 12px; letter-spacing: .06em;
}
.cat-block-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.cat-feature {
  display: block; background: #fff; border-radius: 10px;
  overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06);
  color: #1a1a1a;
}
.cat-feature:hover { text-decoration: none; }
.cat-feature-thumb { display:block; aspect-ratio: 16/9; background: #f1f1f1; }
.cat-feature-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-feature-body { display:block; padding: 16px 18px 18px; }
.cat-feature-body h3 { margin: 6px 0 0; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.25; color: inherit; }
.cat-tag {
  display:inline-block; color:#c4170c; font-weight:800;
  text-transform: uppercase; font-size: 11px; letter-spacing: .06em;
}
.cat-smalls { display: grid; gap: 12px; }
.cat-small {
  display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px;
  align-items: center; background: #fff; border-radius: 8px;
  padding: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.05);
  color: #1a1a1a;
}
.cat-small:hover { text-decoration: none; color: #c4170c; }
.cat-small-thumb { display:block; width:130px; aspect-ratio: 4/3; background:#eee; border-radius: 6px; overflow:hidden; }
.cat-small-thumb img { width:100%; height:100%; object-fit: cover; }
.cat-small-title { font-weight: 800; font-size: 14.5px; line-height: 1.3; }
.cat-no-img { display:block; width:100%; height:100%; background:#eee; }
@media (max-width: 760px){
  .cat-block-grid { grid-template-columns: 1fr; }
  .cat-small { grid-template-columns: 110px minmax(0, 1fr); }
  .cat-small-thumb { width: 110px; }
}

/* === Vídeos Longos (grade quadrada, final da home) ======================= */
.long-videos { margin: 32px 0; }
.long-videos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1000px){ .long-videos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .long-videos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.long-video-card { display: block; color: #1a1a1a; font-weight: 800; }
.long-video-card:hover { text-decoration: none; color: #c4170c; }
.long-video-thumb {
  position: relative; display: block; aspect-ratio: 1 / 1;
  border-radius: 10px; overflow: hidden; background: #111; margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.long-video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.long-video-play {
  position: absolute; inset: 0; margin: auto;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: #c4170c;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; padding-left: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.long-video-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 15px; line-height: 1.3;
}

/* === Anúncios: aceitar qualquer tamanho de imagem ======================== */
.ad-slot { max-width: 100% !important; }
.ad-slot img {
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 0 auto;
  display: block;
}
.ad-slot-square { max-width: 100%; }
.ad-slot-square img { max-width: 100%; }

/* === Sidebar sticky para não deixar espaço em branco ===================== */
@media (min-width: 961px){
  .sidebar-col > .ad-slot-square:last-child,
  .sidebar-col > .ad-slot:last-child {
    position: sticky;
    top: 90px;
  }
}

/* === Sem espaços em branco em qualquer grid ============================== */
.cat-block-grid:empty, .long-videos-grid:empty, .destaques-grid:empty { display: none; }

/* === Rodapé estilo G1 ==================================================== */
.site-footer {
  background: #c4170c;
  color: #fff;
  padding: 32px 0 22px;
  margin-top: 48px;
  text-align: center;
}
.site-footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.site-footer-logo { display: inline-flex; align-items: center; justify-content: center; }
.site-footer-logo img { height: 46px; width: auto; filter: brightness(0) invert(1); }
.site-footer-logo-text { font-size: 28px; font-weight: 900; letter-spacing: -.5px; color: #fff; }
.site-footer-nav { width: 100%; }
.site-footer-menu {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 6px 26px;
  justify-content: center; align-items: center;
}
.site-footer-menu li a {
  color: #fff; font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 6px 4px; display: inline-block;
}
.site-footer-menu li a:hover { text-decoration: underline; }
.site-footer-copy { margin: 0; font-size: 13px; opacity: .92; }
.site-footer-hint { font-size: 12px; opacity: .8; max-width: 520px; margin: 0 auto; }

@media (max-width: 600px){
  .site-footer-menu { gap: 4px 18px; }
  .site-footer-menu li a { font-size: 13px; padding: 4px 2px; }
}


/* =====================================================================
   v3.1 — Carrossel de Destaques, Shorts estilo G1, Rodapé G1, anti-vazios
   ===================================================================== */

/* === Hero Carousel (Destaques) === */
.hero-carousel {
  margin: 0 0 20px;
  background: #111;
}
.hero-carousel-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #111;
}
.hero-carousel-track {
  display: flex;
  width: 100%;
  transition: transform .55s cubic-bezier(.4,.0,.2,1);
  will-change: transform;
}
.hero-slide {
  flex: 0 0 100%;
  min-width: 100%;
  position: relative;
  display: block;
  color: #fff;
  background: #000;
}
.hero-slide:hover { text-decoration: none; color: #fff; }
.hero-slide-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 10;
  background: #000;
  overflow: hidden;
}
.hero-slide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-no-img { display: block; width: 100%; height: 100%; background: #222; }
.hero-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 80px 40px 36px;
  background: linear-gradient(to top, rgba(0,0,0,.92), rgba(0,0,0,.55) 45%, rgba(0,0,0,0));
  color: #fff;
  display: block;
}
.hero-slide-cat {
  display: inline-block;
  background: #c4170c;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.hero-slide-title {
  color: #fff;
  margin: 0 0 8px;
  font-size: clamp(22px, 3.4vw, 38px);
  font-weight: 900;
  line-height: 1.15;
  max-width: 900px;
}
.hero-slide-excerpt {
  display: block;
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 500;
  line-height: 1.4;
  opacity: .95;
  max-width: 720px;
}
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(0,0,0,.55);
  color: #fff;
  border: 0;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  z-index: 3;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.hero-nav:hover { background: rgba(196,23,12,.92); }
.hero-prev { left: 14px; }
.hero-next { right: 14px; }
.hero-dots {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  display: flex; justify-content: center; gap: 8px;
  z-index: 3;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  padding: 0;
  transition: background .15s, transform .15s;
}
.hero-dot.is-active { background: #fff; transform: scale(1.25); }

@media (max-width: 760px) {
  .hero-carousel-wrap { border-radius: 0; }
  .hero-slide-thumb { aspect-ratio: 4 / 3; }
  .hero-slide-caption { padding: 60px 18px 24px; }
  .hero-nav { width: 38px; height: 38px; font-size: 18px; }
  .hero-prev { left: 8px; } .hero-next { right: 8px; }
  .hero-slide-excerpt { display: none; }
}

.destaques-empty-hint {
  background: #fff8e1; border: 1px dashed #d4a017; color: #6b4f00;
  padding: 14px 16px; border-radius: 8px; margin: 0 0 18px; font-size: 14px;
}

/* === Shorts G1 (vertical 9:16, sem ícone azul) === */
.shorts-section {
  background: transparent;
  border-top: 0;
  margin: 24px 0 16px;
  padding: 0;
}
.shorts-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin: 0 0 14px;
  border-bottom: 2px solid #c4170c; padding-bottom: 8px;
}
.shorts-head h2 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 26px);
  color: #1a1a1a;
  font-weight: 800;
}
.shorts-arrows { display: flex; gap: 6px; }
.shorts-nav { color: #c4170c; }
.shorts-prev { color: #c4170c; }

.shorts-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * 14px) / 5);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 6px;
}
@media (max-width: 1100px) { .shorts-scroller { grid-auto-columns: calc((100% - 3 * 12px) / 4); } }
@media (max-width: 900px)  { .shorts-scroller { grid-auto-columns: calc((100% - 2 * 12px) / 3); } }
@media (max-width: 640px)  { .shorts-scroller { grid-auto-columns: 46vw; gap: 10px; } }
@media (max-width: 420px)  { .shorts-scroller { grid-auto-columns: 60vw; } }

.short-card {
  display: block;
  scroll-snap-align: start;
  min-width: 0;
  color: inherit;
}
.short-card:hover { text-decoration: none; color: inherit; }

.short-thumb {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 9 / 16;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.short-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.short-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.2) 45%, rgba(0,0,0,.0) 70%);
  pointer-events: none;
}

/* Faixa vertical vermelha com marca à esquerda */
.short-brand {
  position: absolute;
  top: 0; left: 0;
  z-index: 2;
  background: #c4170c;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .03em;
  padding: 6px 6px 10px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border-bottom-right-radius: 6px;
  max-height: 90px;
  overflow: hidden;
  white-space: nowrap;
  text-transform: lowercase;
}

/* Badge de duração no canto superior */
.short-duration {
  position: absolute;
  top: 10px;
  left: 32px;
  z-index: 2;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Play branco circular */
.short-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  color: #c4170c;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
  padding-left: 2px;
  transition: transform .15s;
}
.short-card:hover .short-play { transform: translate(-50%, -50%) scale(1.08); }

/* Título sobreposto na parte inferior da imagem */
.short-title-overlay {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 2;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}

/* Esconde o <strong> antigo se vier de cache */
.short-card > strong { display: none; }

/* === Long videos — layout horizontal G1 (16:9) === */
.long-videos { margin: 28px 0 16px; }
.long-videos .cat-block-head { border-bottom: 2px solid #c4170c; }
.long-videos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1000px){ .long-videos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .long-videos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.long-video-thumb {
  aspect-ratio: 16 / 9;  /* G1 usa horizontal para vídeos longos */
  border-radius: 8px;
}
.long-video-play {
  inset: auto auto 10px 10px;
  position: absolute;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: #c4170c;
  display: flex; align-items: center; justify-content: center;
  padding-left: 2px;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
  margin: 0;
}
.long-video-title { color: #1a1a1a; font-weight: 800; font-size: 15px; line-height: 1.3; }

/* === Ads: aceitar qualquer tamanho, sem deformar === */
.ad-slot, .ad-slot-square { max-width: 100% !important; }
.ad-slot img, .ad-slot-square img {
  max-width: 100%;
  height: auto;
  width: auto;
  margin: 0 auto;
  display: block;
}
.ad-slot-html { width: 100%; display: flex; justify-content: center; }
.ad-slot-html iframe, .ad-slot-html video, .ad-slot-html img {
  max-width: 100%;
  height: auto;
  display: block;
}
.sidebar-col .ad-slot { margin: 12px 0 18px; }
.top-ad-wrap:has(.ad-slot:empty) { display: none; }
.top-ad-wrap { padding: 8px 16px; }

/* === Sidebar começa colada no topo do conteúdo === */
.main-layout { margin-top: 18px; align-items: start; }
.content-col > *:first-child { margin-top: 0; }
.content-col > *:last-child { margin-bottom: 0; }
.sidebar-col > *:first-child { margin-top: 0; }
.sidebar-col { gap: 0; }

/* Bloco de categoria mais apertado */
.cat-block { margin: 22px 0; }
.cat-block:first-child { margin-top: 0; }

/* === Anti-vazio universal === */
.ad-slot:empty, .ad-slot-html:empty,
.cat-block-grid:empty, .long-videos-grid:empty,
.hero-carousel:empty, .shorts-scroller:empty,
.article-grid:empty, #moreArticles:empty,
.grid-ad:empty { display: none !important; }
.sidebar-col .ad-slot:empty + .ad-slot:empty { display: none; }

/* === Rodapé estilo G1: faixa vermelha fina com 3 colunas === */
.site-footer {
  background: #c4170c;
  color: #fff;
  padding: 18px 0;
  margin-top: 36px;
  text-align: left;
}
.site-footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}
.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-footer-logo { display: inline-flex; align-items: center; }
.site-footer-logo img { height: 30px; width: auto; filter: brightness(0) invert(1); }
.site-footer-logo-text { font-size: 22px; font-weight: 900; letter-spacing: -.5px; color: #fff; }
.site-footer-tagline {
  font-size: 13px;
  font-weight: 500;
  opacity: .92;
  white-space: nowrap;
}
.site-footer-copy {
  margin: 0;
  font-size: 13px;
  opacity: .92;
  text-align: center;
}
.site-footer-nav { justify-self: end; }
.site-footer-menu {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 4px 0;
  align-items: center;
}
.site-footer-menu li {
  position: relative;
  padding: 0 14px;
  border-right: 1px solid rgba(255,255,255,.4);
}
.site-footer-menu li:last-child { border-right: 0; padding-right: 0; }
.site-footer-menu li:first-child { padding-left: 0; }
.site-footer-menu li a {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0;
  padding: 0;
}
.site-footer-menu li a:hover { text-decoration: underline; }
.site-footer-hint { display: none; }

@media (max-width: 900px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 10px;
  }
  .site-footer-brand { justify-content: center; }
  .site-footer-nav { justify-self: center; }
  .site-footer-menu { justify-content: center; }
  .site-footer-copy { text-align: center; }
}

/* =====================================================================
   v4 — Correção solicitada: estrutura G1 real, sem vazios, com anúncios,
   carrossel de destaques, shorts limpos e tempo no topo.
   ===================================================================== */

body { background: #f3f3f3; }
.container {
  width: min(100%, 1220px);
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 18px;
}
.site-main { padding: 18px 0 0; }

.header-inner {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(56px, 1fr);
  gap: 16px;
  min-height: 70px;
  padding: 8px 18px;
}
.header-left { justify-self: start; gap: 16px; min-width: 0; }
.header-search-btn { justify-self: end; }
.weather-widget {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: rgba(0,0,0,.18);
  border-radius: 999px;
  padding: 6px 11px;
  line-height: 1.05;
  white-space: nowrap;
}
.weather-icon { font-size: 17px; }
.weather-copy { display: grid; gap: 1px; }
.weather-copy strong { font-size: 13px; font-weight: 900; }
.weather-copy small { font-size: 10px; opacity: .9; }
.weather-temp { font-size: 18px; font-weight: 900; }

.top-ad-wrap { padding: 8px 18px; background: #fff; }
.top-ad-wrap .ad-slot { margin: 0 auto; }
.ad-slot { margin: 0 0 22px; }
.ad-placeholder {
  min-height: 90px;
  background: #f7edc9;
  border: 1px dashed #cdb872;
  color: #756022;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border-radius: 6px;
}
.ad-slot-square { max-width: 100% !important; margin: 0 0 18px; }
.ad-slot-square .ad-placeholder { min-height: 250px; }

.hero-carousel { margin: 0 0 18px; background: transparent; }
.hero-carousel-wrap {
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.10);
}
.hero-carousel-track { display: flex; width: 100%; }
.hero-slide {
  min-width: 100%;
  flex: 0 0 100%;
  position: relative;
  color: #fff;
  background: #111;
}
.hero-slide-thumb { display: block; width: 100%; aspect-ratio: 16 / 7; }
.hero-slide-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 70px 34px 32px;
  background: linear-gradient(to top, rgba(0,0,0,.92), rgba(0,0,0,.48) 50%, rgba(0,0,0,0));
}
.hero-slide-title {
  color: #fff;
  max-width: 850px;
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.08;
  margin: 0;
}
.hero-slide-cat { background: #c4170c; color: #fff; }
.hero-nav {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.92);
  color: #c4170c;
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
}
.hero-nav:hover { background: #fff; }
.hero-dot.is-active { background: #c4170c; }

.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
  margin: 0;
}
.content-col,
.sidebar-col { min-width: 0; }
.content-col { display: flex; flex-direction: column; }
.sidebar-col { display: flex; flex-direction: column; gap: 0; }

.cat-block {
  margin: 0 0 24px;
  background: #fff;
  padding: 0 0 4px;
}
.cat-block-head,
.long-videos .cat-block-head {
  margin: 0;
  padding: 18px 0 10px;
  border-bottom: 2px solid #c4170c;
  align-items: center;
}
.cat-block-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 18px;
  padding-top: 18px;
}
.cat-feature,
.cat-small,
.article-card,
.popular-widget,
.recommend-widget,
.sidebar-widget {
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
  border-radius: 8px;
  background: #fff;
}
.cat-feature-thumb img,
.cat-small-thumb img,
.article-card .thumb img { object-fit: cover; }

.shorts-section {
  margin: 0 0 24px;
  padding: 0;
  background: #fff;
  border: 0;
}
.shorts-head {
  padding: 18px 0 10px;
  margin: 0 0 18px;
  border-bottom: 2px solid #c4170c;
}
.shorts-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 900; }
.shorts-nav {
  font-size: 38px;
  color: #c4170c;
  background: transparent;
}
.shorts-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * 16px) / 5);
  gap: 16px;
  padding: 0 0 14px;
}
.short-card { display: block; color: inherit; }
.short-thumb {
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.short-thumb::after { background: linear-gradient(to top, rgba(0,0,0,.28), rgba(0,0,0,0)); }
.short-brand,
.short-duration,
.short-title-overlay,
.short-card > strong { display: none !important; }
.short-play {
  width: 54px;
  height: 54px;
  background: rgba(255,255,255,.96);
  color: #c4170c;
  border: 0;
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
}

.article-grid { padding: 0; gap: 20px; }
.toolbar { margin: 0 0 18px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.07); }
.grid-ad { grid-column: 1 / -1; }
.load-more-wrap { margin: 8px 0 24px; }

.popular-widget,
.recommend-widget,
.sidebar-widget {
  margin: 0 0 18px;
  padding: 18px;
  border: 0;
}
.popular-title,
.recommend-title,
.sidebar-widget h3 { color: #1a1a1a; }
.sidebar-col .ad-slot { margin: 0 0 18px; }
.sidebar-col > *:last-child { margin-bottom: 0; }

.long-videos {
  width: min(100%, 1220px);
  margin: 26px auto 0;
  padding: 0 18px;
}
.long-videos-grid { gap: 18px; }

@media (max-width: 960px) {
  .container { padding: 0 14px; }
  .main-layout { grid-template-columns: 1fr; gap: 0; }
  .sidebar-col { margin-top: 8px; }
  .hero-slide-thumb { aspect-ratio: 16 / 10; }
  .shorts-scroller { grid-auto-columns: calc((100% - 2 * 14px) / 3); gap: 14px; }
}
@media (max-width: 640px) {
  .container { padding: 0; }
  .site-main { padding-top: 0; }
  .header-inner { grid-template-columns: 48px 1fr 48px; padding: 6px 10px; }
  .weather-widget { display: none; }
  .hero-slide-caption { padding: 58px 18px 24px; }
  .hero-nav { width: 36px; height: 36px; }
  .cat-block,
  .shorts-section,
  .toolbar,
  .popular-widget,
  .recommend-widget,
  .sidebar-widget { border-radius: 0; }
  .cat-block-head,
  .cat-block-grid,
  .shorts-head,
  .shorts-scroller,
  .article-grid,
  .toolbar,
  .sidebar-col { padding-left: 14px; padding-right: 14px; }
  .cat-block-grid { grid-template-columns: 1fr; }
  .shorts-scroller { grid-auto-columns: 58vw; }
}

/* =====================================================================
   v4.2 — Pacote final: home compacta, carrossel no topo, anúncios visíveis,
   shorts limpos no estilo G1 e tempo também na lateral.
   ===================================================================== */
body { background: #fff; }
.container { width: min(100%, 1180px); max-width: 1180px; padding: 0 16px; }
.site-main { padding-top: 0; }
.top-home-ad { margin: 0; padding: 8px 0 10px; background: #fff; }
.top-home-ad .ad-slot,
.site-main > .ad-slot { margin: 0 0 16px; }
.ad-slot { text-align: center; }
.ad-placeholder {
  min-height: 82px;
  background: #fff8dc;
  border: 1px dashed #d0b85c;
  color: #7a6519;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.35;
  padding: 14px;
}
.ad-slot-square .ad-placeholder { min-height: 250px; }
.ad-slot img,
.ad-slot video,
.ad-slot iframe { max-width: 100%; height: auto; display: block; margin: 0 auto; }

.hero-carousel { margin: 0 0 16px; }
.hero-carousel-wrap { border-radius: 0; box-shadow: none; }
.hero-slide-thumb { aspect-ratio: 16 / 6.8; }
.hero-slide-caption { padding: 64px 32px 30px; }
.hero-slide-title { font-size: clamp(24px, 3.8vw, 42px); max-width: 860px; }
.hero-nav { background: rgba(255,255,255,.94); color: #c4170c; width: 42px; height: 42px; }
.hero-dot { width: 9px; height: 9px; }
.hero-dot.is-active { background: #c4170c; }

.main-layout { grid-template-columns: minmax(0, 1fr) 318px; gap: 24px; margin: 0; align-items: start; }
.content-col { gap: 0; }
.cat-block,
.shorts-section,
.toolbar,
.popular-widget,
.recommend-widget,
.sidebar-widget,
.weather-card { background: #fff; border-radius: 0; box-shadow: none; }
.cat-block { margin: 0 0 20px; padding: 0; }
.cat-block-head,
.shorts-head,
.long-videos .cat-block-head {
  margin: 0 0 14px;
  padding: 0 0 8px;
  border-bottom: 2px solid #c4170c;
}
.cat-block-title,
.shorts-head h2 { color: #1a1a1a; font-size: clamp(20px, 2.1vw, 26px); font-weight: 900; }
.cat-block-grid { padding-top: 0; gap: 18px; grid-template-columns: minmax(0,1.28fr) minmax(0,1fr); }
.cat-feature,
.cat-small { box-shadow: none; border-radius: 0; border-bottom: 1px solid #eee; padding-bottom: 12px; }
.cat-feature-body { padding: 12px 0 0; }
.cat-small { padding: 0 0 12px; grid-template-columns: 138px minmax(0,1fr); }
.cat-small-thumb { width: 138px; border-radius: 0; aspect-ratio: 16/10; }

.shorts-section { margin: 0 0 20px; }
.shorts-head { justify-content: space-between; min-height: 0; }
.shorts-head-controls-only { justify-content: flex-end; border-bottom: 0; margin-bottom: 8px; padding-bottom: 0; }
.shorts-nav { font-size: 30px; line-height: 1; color: #c4170c; background: transparent; border: 0; }
.shorts-scroller { grid-auto-columns: calc((100% - 4 * 12px) / 5); gap: 12px; padding: 0 0 8px; }
.short-thumb { border-radius: 10px; box-shadow: none; }
.short-thumb::after,
.short-brand,
.short-duration,
.short-title-overlay,
.short-card > strong { display: none !important; }
.short-play {
  width: 50px; height: 50px;
  background: #fff;
  color: #c4170c;
  box-shadow: 0 4px 16px rgba(0,0,0,.30);
}

.toolbar { padding: 0 0 12px; margin: 0 0 16px; border-bottom: 1px solid #eee; display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.toolbar h2 { color: #1a1a1a; }
.toolbar .filters { grid-column: 1 / -1; }
.toolbar .inline-search { width: 260px; }
.article-grid { padding: 0; gap: 18px; }
.load-more-wrap { margin: 10px 0 20px; }

.sidebar-col { gap: 0; }
.popular-widget,
.recommend-widget,
.sidebar-widget,
.weather-card { padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px solid #eee; }
.popular-title,
.recommend-title,
.sidebar-widget h3 { color: #c4170c; margin-bottom: 12px; }
.sidebar-col .ad-slot { margin: 0 0 18px; }
.weather-card { color: #1a1a1a; }
.weather-card-kicker { color: #c4170c; font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.weather-card-main { display: flex; align-items: center; gap: 10px; }
.weather-card-main strong { font-size: 38px; line-height: 1; color: #1a1a1a; }
.weather-card-icon { font-size: 30px; }
.weather-card-city { margin-top: 8px; font-weight: 900; }
.weather-card-condition { color: #555; font-size: 14px; }

.long-videos { width: min(100%, 1180px); margin: 18px auto 0; padding: 0 16px; }
.site-footer { margin-top: 28px; }

@media (max-width: 960px) {
  .main-layout { grid-template-columns: 1fr; gap: 0; }
  .hero-slide-thumb { aspect-ratio: 16 / 9; }
  .shorts-scroller { grid-auto-columns: calc((100% - 2 * 12px) / 3); }
  .toolbar { grid-template-columns: 1fr; }
  .toolbar .inline-search { width: 100%; }
}
@media (max-width: 640px) {
  .container { padding: 0; }
  .top-home-ad { padding: 6px 12px; }
  .hero-slide-thumb { aspect-ratio: 4 / 3; }
  .hero-slide-caption { padding: 52px 16px 22px; }
  .hero-slide-title { font-size: clamp(21px, 7vw, 30px); }
  .cat-block,
  .shorts-section,
  .toolbar,
  .article-grid,
  .sidebar-col { padding-left: 12px; padding-right: 12px; }
  .cat-block-grid { grid-template-columns: 1fr; }
  .cat-small { grid-template-columns: 116px minmax(0,1fr); }
  .cat-small-thumb { width: 116px; }
  .shorts-scroller { grid-auto-columns: 52vw; gap: 10px; padding-left: 0; padding-right: 0; }
  .article-grid { grid-template-columns: 1fr; }
  .long-videos { padding: 0 12px; }
}

/* =====================================================================
   v4.3 — Ajustes finais: banner topo acima do header, shorts maiores
   (4 por tela), ad lateral fixo, clima no topo, redes sociais.
   ===================================================================== */

/* Banner reservado ACIMA da barra vermelha */
.top-banner-wrap {
  width: 100%;
  background: #f5f5f5;
  padding: 10px 16px;
  display: flex;
  justify-content: center;
}
.top-banner-wrap .ad-slot { margin: 0; width: 100%; max-width: 970px; }
.top-banner-wrap .ad-placeholder { min-height: 90px; }
@media (max-width: 640px){
  .top-banner-wrap { padding: 8px 10px; }
  .top-banner-wrap .ad-placeholder { min-height: 70px; font-size: 12px; padding: 10px; }
}

/* Remover top-home-ad antigo se ainda houver no DOM via cache */
.top-home-ad { display: none; }

/* Título "Últimas notícias" minimalista (sem toolbar de filtros) */
.latest-news-title {
  font-size: clamp(20px, 2.2vw, 26px);
  color: #1a1a1a;
  font-weight: 900;
  margin: 8px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #c4170c;
}
@media (max-width: 640px){
  .latest-news-title { padding-left: 12px; padding-right: 12px; }
}

/* SHORTS: 4 por tela em desktop, mais altos/destacados */
.shorts-scroller { grid-auto-columns: calc((100% - 3 * 14px) / 4) !important; gap: 14px !important; }
@media (max-width: 1100px) { .shorts-scroller { grid-auto-columns: calc((100% - 2 * 12px) / 3) !important; } }
@media (max-width: 760px)  { .shorts-scroller { grid-auto-columns: calc((100% - 12px) / 2) !important; } }
@media (max-width: 480px)  { .shorts-scroller { grid-auto-columns: 70vw !important; } }
.short-thumb {
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18) !important;
}
.short-play { width: 60px !important; height: 60px !important; }
.short-play svg { width: 36px; height: 36px; }

/* Ad lateral fixo (square_5) quando o usuário rola */
.sidebar-sticky-ad {
  position: sticky;
  top: 92px;
  margin: 0 0 18px;
  z-index: 5;
}
.sidebar-sticky-ad .ad-slot { margin: 0; }
@media (max-width: 960px) { .sidebar-sticky-ad { position: static; } }

/* Cartão de clima na sidebar — visual mais bonito */
.weather-card {
  background: linear-gradient(135deg, #fff 0%, #fff5f0 100%) !important;
  border: 1px solid #f1d9d2 !important;
  border-radius: 12px !important;
  padding: 18px !important;
  box-shadow: 0 2px 10px rgba(196,23,12,.06) !important;
  margin-bottom: 18px;
}
.weather-card-kicker { color: #c4170c; }
.weather-card-main { gap: 14px !important; align-items: center; }
.weather-card-icon { font-size: 44px !important; line-height: 1; }
.weather-card-main strong { font-size: 44px !important; font-weight: 900; }
.weather-card-city { font-size: 18px; font-weight: 900; margin-top: 10px; }
.weather-card-condition { color: #666; font-size: 14px; }

/* Widget de clima no header — mais elegante */
.weather-widget {
  background: rgba(0,0,0,.22) !important;
  padding: 7px 14px !important;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
}
.weather-widget .weather-icon { font-size: 20px !important; }
.weather-widget .weather-temp { font-size: 20px !important; }

/* Redes sociais no footer */
.site-footer-social {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
  align-items: center;
  justify-content: center;
}
.site-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  transition: background .2s, transform .2s;
}
.site-footer-social a:hover {
  background: #fff;
  color: #c4170c;
  transform: translateY(-2px);
  text-decoration: none;
}
.site-footer-inner { grid-template-columns: auto 1fr auto auto !important; }
@media (max-width: 900px) {
  .site-footer-inner { grid-template-columns: 1fr !important; }
  .site-footer-social { margin-top: 4px; }
}

/* =====================================================================
   v4.5 — Logo centralizada, rodapé G1, 2 carrosséis, anúncio acima
   ===================================================================== */

/* Logo perfeitamente centralizada vertical e horizontalmente */
.site-header .header-inner{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
}
.site-header .header-left{ justify-self: start; align-self: center; }
.site-header .header-search-btn{ justify-self: end; align-self: center; }
.site-header .header-logo{
  justify-self: center;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  line-height: 1;
}
.site-header .header-logo a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.site-header .header-logo .logo-text,
.site-header .header-logo img{ display: inline-flex; align-items: center; vertical-align: middle; }

/* Espaço/visual entre os 2 carrosséis de destaque */
.hero-carousel + .hero-carousel{ margin-top: 14px; }
@media (max-width: 720px){
  .hero-carousel + .hero-carousel{ margin-top: 10px; }
}

/* Anúncio que agora vem acima dos carrosséis */
.site-main > .ad-slot:first-child{ margin: 0 0 14px; }

/* ===================== RODAPÉ ESTILO G1 ===================== */
.site-footer{
  background: #c4170c;
  color: #fff;
  padding: 32px 0 22px;
  margin-top: 40px;
  text-align: center;
}
.site-footer a{ color: #fff; text-decoration: none; }
.site-footer-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  grid-template-columns: none;
}
.site-footer-brand{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.site-footer-logo{ display: inline-flex; align-items: center; justify-content: center; }
.site-footer-logo img{ height: 40px; width: auto; filter: brightness(0) invert(1); }
.site-footer-logo-text{ font-size: 26px; font-weight: 900; letter-spacing: -.5px; color: #fff; }
.site-footer-tagline{
  font-size: 13px;
  font-weight: 500;
  opacity: .92;
  text-transform: lowercase;
  letter-spacing: .2px;
  white-space: normal;
}

.site-footer-social{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.site-footer-social li a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  transition: background .15s ease, transform .15s ease;
}
.site-footer-social li a:hover{ background: rgba(255,255,255,.28); transform: translateY(-1px); }
.site-footer-social svg{ width: 18px; height: 18px; }

.site-footer-nav{ width: 100%; justify-self: center; }
.site-footer-menu{
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  justify-content: center;
  align-items: center;
  max-width: 920px;
}
.site-footer-menu li{
  padding: 0 14px;
  border-right: 1px solid rgba(255,255,255,.45);
  line-height: 1;
}
.site-footer-menu li:last-child{ border-right: 0; }
.site-footer-menu li a{
  font-size: 13px;
  font-weight: 500;
  text-transform: lowercase;
  padding: 0;
}
.site-footer-menu li a:hover{ text-decoration: underline; }

.site-footer-copy{
  margin: 0;
  font-size: 12.5px;
  opacity: .9;
  text-align: center;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,.18);
  width: 100%;
  max-width: 920px;
}

@media (max-width: 720px){
  .site-footer{ padding: 26px 0 18px; }
  .site-footer-logo img{ height: 34px; }
  .site-footer-logo-text{ font-size: 22px; }
  .site-footer-menu{ gap: 4px 0; }
  .site-footer-menu li{ padding: 0 10px; }
  .site-footer-menu li a{ font-size: 12.5px; }
}

/* =====================================================================
   v4.7 — Hero duo lado a lado, sticky ad funcional, menos espaços vagos
   ===================================================================== */

/* Sticky precisa que NENHUM ancestral tenha overflow hidden/auto.
   O reset global tinha overflow-x:hidden no html/body — trocamos por clip
   no body (mantém scroll lateral bloqueado sem quebrar position:sticky). */
html { overflow-x: clip; overflow-y: auto; }
body { overflow-x: clip; }

/* ---- Carrosséis de destaque LADO A LADO no desktop ---- */
.hero-duo{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 20px;
  align-items: stretch;
}
.hero-duo > .hero-carousel{
  margin: 0 !important;
  min-width: 0;
  width: 100%;
}
.hero-duo .hero-carousel-wrap{
  height: 100%;
  border-radius: 8px;
}
/* Proporção mais quadrada/equilibrada quando lado a lado */
.hero-duo .hero-slide-thumb{ aspect-ratio: 4 / 3; }
.hero-duo .hero-slide-thumb img{ object-fit: cover; }
.hero-duo .hero-slide-caption{ padding: 50px 20px 20px; }
.hero-duo .hero-slide-title{ font-size: clamp(18px, 1.8vw, 26px); }
.hero-duo .hero-nav{ width: 38px; height: 38px; font-size: 16px; }

/* No mobile mostra apenas o primeiro carrossel */
@media (max-width: 900px){
  .hero-duo{ grid-template-columns: 1fr; gap: 0; }
  .hero-duo > .hero-carousel:nth-child(2){ display: none !important; }
  .hero-duo .hero-slide-thumb{ aspect-ratio: 16 / 10; }
  .hero-duo .hero-slide-caption{ padding: 60px 16px 18px; }
  .hero-duo .hero-slide-title{ font-size: clamp(18px, 5.2vw, 26px); }
  .hero-duo .hero-nav{ width: 34px; height: 34px; }
}

/* Anula a regra antiga que empilhava com margem entre os dois */
.hero-duo .hero-carousel + .hero-carousel{ margin-top: 0 !important; }

/* ---- Sticky lateral: garantir que funcione de verdade ---- */
@media (min-width: 961px){
  .main-layout{ overflow: visible !important; align-items: start; }
  .content-col, .sidebar-col{ overflow: visible !important; }
  .sidebar-col{ height: auto; }
  .sidebar-sticky-ad{
    position: sticky !important;
    top: 92px !important;
    z-index: 5;
    align-self: start;
    margin-top: 0;
  }
  /* Desativa a regra antiga que tentava prender qualquer último ad-slot */
  .sidebar-col > .ad-slot-square:last-child,
  .sidebar-col > .ad-slot:last-child{ position: static; top: auto; }
}

/* ---- Menos espaços vagos: encolher placeholders e gaps ---- */
.ad-placeholder{ min-height: 60px !important; padding: 10px 12px !important; font-size: 12px !important; }
.ad-slot-square .ad-placeholder{ min-height: 220px !important; }
.sidebar-col .ad-slot{ margin: 0 0 14px !important; }
.cat-block{ margin: 0 0 18px !important; }
.shorts-section{ margin: 0 0 18px !important; }
.popular-widget, .recommend-widget, .sidebar-widget, .weather-card{ margin: 0 0 14px !important; padding-bottom: 14px !important; }

/* Mobile geral: menos gordura, layout mais limpo */
@media (max-width: 760px){
  .site-main > .ad-slot{ margin: 0 0 10px !important; }
  .hero-duo{ margin: 0 0 12px; }
  .latest-news-title{ margin: 8px 12px 10px; padding: 0 0 6px; }
  .article-grid{ gap: 14px !important; padding: 0 12px 14px !important; }
  .cat-block-grid{ gap: 12px !important; }
  .sidebar-col{ padding: 0 12px !important; }
  .grid-ad{ margin: 4px 0 !important; }
}

/* =====================================================================
   v4.8 — Correção definitiva: sem buracos, hero mais alto, ad lateral fixo
   ===================================================================== */

/* Carrosséis superiores mais altos/quadrados para não parecerem faixa fina */
.hero-duo .hero-slide-thumb{ aspect-ratio: 5 / 4 !important; }
.hero-duo .hero-carousel-wrap{ min-height: 0; }
.hero-duo .hero-slide-caption{ padding: 66px 22px 22px !important; }
.hero-duo .hero-slide-title{ font-size: clamp(20px, 2vw, 30px) !important; line-height: 1.08; }
@media (max-width: 900px){
  .hero-duo .hero-slide-thumb{ aspect-ratio: 4 / 3 !important; }
  .hero-duo .hero-slide-caption{ padding: 58px 16px 20px !important; }
}

/* Últimas notícias: grade cheia e alinhada, sem card gigante criando vazio */
#articleGrid.article-grid,
#moreArticles.article-grid{
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-flow: row dense;
  gap: 18px !important;
}
#articleGrid .article-card,
#moreArticles .article-card{
  grid-column: auto !important;
  min-height: 100%;
}
#articleGrid .article-card.featured,
#moreArticles .article-card.featured{
  grid-column: auto !important;
  flex-direction: column !important;
}
#articleGrid .article-card.featured .thumb,
#moreArticles .article-card.featured .thumb{
  flex: none !important;
  aspect-ratio: 16 / 9 !important;
  min-height: 0 !important;
}
#articleGrid .article-card.featured .body,
#moreArticles .article-card.featured .body{
  padding: 0 !important;
  display: block !important;
}
.grid-ad{ grid-column: 1 / -1 !important; margin: 0 !important; }
.grid-ad .ad-slot{ margin: 2px 0 0 !important; }
@media (max-width: 900px){
  #articleGrid.article-grid,
  #moreArticles.article-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px){
  #articleGrid.article-grid,
  #moreArticles.article-grid{ grid-template-columns: 1fr !important; gap: 14px !important; }
}

/* Última publicidade lateral fica presa na tela ao chegar nela e volta ao lugar ao subir */
@media (min-width: 961px){
  .sidebar-sticky-placeholder{ display: none; }
  .sidebar-sticky-ad.is-fixed{
    position: fixed !important;
    top: 92px !important;
    z-index: 60;
    margin: 0 !important;
  }
  .sidebar-sticky-ad.is-fixed .ad-slot{ margin: 0 !important; }
}

/* Compartilhamento: uma linha no desktop e rolagem compacta no mobile */
.portal-single-post .post-share{
  flex-wrap: nowrap !important;
  gap: 10px !important;
  padding: 12px 14px !important;
  overflow-x: auto;
  scrollbar-width: thin;
}
.portal-single-post .post-share-label{ flex: 0 0 auto !important; margin: 0 2px 0 0 !important; white-space: nowrap; }
.portal-single-post .post-share .share-btn{
  flex: 0 0 auto !important;
  white-space: nowrap;
  padding: 10px 14px !important;
  min-height: 40px;
}
@media (max-width: 760px){
  .portal-single-post .post-share{
    margin: 14px 0 !important;
    padding: 10px 12px !important;
    border-radius: 0 !important;
    gap: 8px !important;
    -webkit-overflow-scrolling: touch;
  }
  .portal-single-post .post-share-label{ font-size: 12px !important; }
  .portal-single-post .post-share .share-btn{ padding: 9px 12px !important; font-size: 13px !important; }
}

/* =====================================================================
   v5.0 — Carrosséis mais altos, share inline, sidebar alinhada,
   anúncio fixo limitado à seção de vídeos longos
   ===================================================================== */

/* 1) Carrosséis de destaque do topo — mais altos/quadrados */
.hero-duo .hero-slide-thumb{ aspect-ratio: 4 / 3 !important; }
.hero-duo .hero-slide-caption{ padding: 80px 24px 24px !important; }
.hero-duo .hero-slide-title{ font-size: clamp(20px, 1.9vw, 28px) !important; line-height: 1.1; }
.hero-duo .hero-nav{ width: 42px !important; height: 42px !important; }
@media (max-width: 900px){
  .hero-duo .hero-slide-thumb{ aspect-ratio: 1 / 1 !important; }
  .hero-duo .hero-slide-caption{ padding: 70px 16px 20px !important; }
}

/* 2) Sidebar: respiro do topo para "Mais lidas" não colar no menu vermelho
      e alinhar com a primeira linha de conteúdo */
@media (min-width: 961px){
  .sidebar-col{ padding-top: 4px; }
  .sidebar-col .popular-widget:first-child,
  .sidebar-col > :first-child{ margin-top: 0 !important; }
  .main-layout{ align-items: flex-start; }
}

/* 3) Compartilhar (post único) — tudo em UMA linha, sem barra de rolagem */
.portal-single-post .post-share{
  flex-wrap: nowrap !important;
  overflow: hidden !important;
  gap: 6px !important;
  padding: 10px 12px !important;
  scrollbar-width: none;
}
.portal-single-post .post-share::-webkit-scrollbar{ display: none !important; width: 0; height: 0; }
.portal-single-post .post-share .share-btn{
  flex: 1 1 0 !important;
  min-width: 0 !important;
  padding: 9px 10px !important;
  font-size: 13px !important;
  gap: 6px !important;
  justify-content: center;
}
.portal-single-post .post-share .share-btn span{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portal-single-post .post-share .share-btn svg{ flex: 0 0 auto; }

@media (max-width: 760px){
  .portal-single-post .post-share{
    gap: 6px !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
  }
  .portal-single-post .post-share-label{ display: none !important; }
  .portal-single-post .post-share .share-btn{
    padding: 10px !important;
    width: auto;
  }
  /* No mobile, mostra só ícone para caber todos numa linha */
  .portal-single-post .post-share .share-btn span{ display: none !important; }
  .portal-single-post .post-share .share-btn svg{
    width: 20px !important; height: 20px !important;
  }
}

/* 4) Anúncio lateral fixo SOMENTE durante a seção de vídeos longos.
      Fora dela, fica no fluxo normal e não cobre nada. */
.long-videos{ position: relative; }
.long-videos-sticky-ad-wrap{
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  pointer-events: none; /* só o filho recebe cliques */
}
.long-videos-sticky-ad-wrap > *{ pointer-events: auto; }
.long-videos-sticky-ad-wrap .ad-slot{ margin: 0 !important; }

@media (min-width: 961px){
  .long-videos-sticky-ad-wrap.is-stuck > .ad-slot,
  .long-videos-sticky-ad-wrap.is-stuck > .long-videos-sticky-inner{
    position: fixed !important;
    top: 92px !important;
    width: 300px;
    z-index: 40;
  }
  .long-videos-sticky-ad-wrap.is-bottom > .ad-slot,
  .long-videos-sticky-ad-wrap.is-bottom > .long-videos-sticky-inner{
    position: absolute !important;
    bottom: 0;
    top: auto !important;
    width: 100%;
  }
  /* Abre espaço à direita na grade de vídeos longos para o ad fixo */
  .long-videos .long-videos-grid{
    padding-right: 320px;
  }
}
@media (max-width: 960px){
  .long-videos-sticky-ad-wrap{
    position: static;
    width: 100%;
    height: auto;
    margin: 12px 0;
  }
}

/* =====================================================================
   v5.1 — Carrossel mais alto, setas fora do título no mobile,
   sidebar do post único alinhada, sticky ad de vídeos longos removido
   ===================================================================== */

/* Remove o anúncio sticky lateral da seção de vídeos longos */
.long-videos-sticky-ad-wrap{ display: none !important; }
.long-videos .long-videos-grid{ padding-right: 0 !important; }

/* Carrossel de destaque do topo — mais alto, sem mexer na largura */
.hero-duo .hero-slide-thumb{ aspect-ratio: 5 / 6 !important; }
.hero-duo .hero-slide-caption{
  padding: 0 24px 28px !important;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 65%, rgba(0,0,0,.92) 100%) !important;
}
.hero-duo .hero-slide-title{ font-size: clamp(20px, 1.9vw, 28px) !important; line-height: 1.12; }

/* Setas do carrossel — no mobile sobem para o terço superior da imagem
   para não cobrirem o título da matéria (que fica embaixo). */
@media (max-width: 900px){
  .hero-duo .hero-slide-thumb{ aspect-ratio: 4 / 5 !important; }
  .hero-duo .hero-slide-caption{ padding: 0 16px 22px !important; }
  .hero-duo .hero-nav{
    top: 32% !important;
    transform: translateY(-50%) !important;
    width: 36px !important; height: 36px !important;
  }
  .hero-duo .hero-prev{ left: 10px !important; }
  .hero-duo .hero-next{ right: 10px !important; }
}

/* Sidebar do post único — "Mais lidas" alinhado com o topo do artigo */
.single .sidebar-col,
.portal-single-post + .sidebar-col,
body.single .main-layout .sidebar-col{
  padding-top: 0 !important;
}
@media (min-width: 961px){
  body.single .main-layout{ align-items: flex-start; }
  body.single .sidebar-col > :first-child{ margin-top: 0 !important; }
  body.single .sidebar-col .popular-widget:first-child .popular-title,
  body.single .sidebar-col > :first-child .popular-title{
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

/* =====================================================================
   v5.2 — pacote final: carrossel realmente mais alto, mobile limpo,
   sem anúncio extra embaixo e "Mais lidas" alinhado no post único
   ===================================================================== */

/* Força o carrossel do topo a ganhar ALTURA de verdade. A largura continua
   a mesma; a mudança abaixo só aumenta a altura mínima do bloco. */
.hero-duo .hero-slide,
.hero-duo .hero-slide-thumb{
  aspect-ratio: auto !important;
  height: clamp(440px, 46vw, 620px) !important;
  min-height: 440px !important;
}
.hero-duo .hero-carousel-wrap{
  min-height: 440px !important;
}
.hero-duo .hero-slide-caption{
  padding: 0 26px 30px !important;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.58) 62%, rgba(0,0,0,.94) 100%) !important;
}
.hero-duo .hero-slide-title{
  font-size: clamp(22px, 2.1vw, 32px) !important;
  line-height: 1.08 !important;
}

/* As setas ficam no meio da imagem, longe do título que fica no rodapé. */
.hero-duo .hero-nav{
  top: 46% !important;
  transform: translateY(-50%) !important;
  z-index: 6 !important;
}

/* Mobile: um carrossel mais alto e elegante, com setas menores no meio da foto
   para nunca ficarem por cima do título. */
@media (max-width: 900px){
  .hero-duo .hero-slide,
  .hero-duo .hero-slide-thumb{
    height: clamp(390px, 118vw, 520px) !important;
    min-height: 390px !important;
  }
  .hero-duo .hero-carousel-wrap{
    min-height: 390px !important;
    border-radius: 0 !important;
  }
  .hero-duo .hero-slide-caption{
    padding: 0 16px 24px !important;
  }
  .hero-duo .hero-slide-title{
    font-size: clamp(22px, 7.2vw, 31px) !important;
    line-height: 1.05 !important;
  }
  .hero-duo .hero-nav{
    top: 42% !important;
    width: 34px !important;
    height: 34px !important;
    font-size: 15px !important;
    background: rgba(255,255,255,.92) !important;
  }
  .hero-duo .hero-prev{ left: 8px !important; }
  .hero-duo .hero-next{ right: 8px !important; }
}

/* Remove de vez qualquer anúncio que tenha sobrado dentro/abaixo da área dos
   vídeos longos por cache ou versão anterior. Mantém apenas o square_5 da sidebar. */
.long-videos .long-videos-sticky-ad-wrap,
.long-videos-sticky-ad-wrap,
.long-videos > .ad-slot,
.long-videos + .ad-slot-square{
  display: none !important;
}

/* Post único: alinha a coluna "Mais lidas" ao topo do post e remove o recuo
   que deixava a sidebar parecendo caída/desalinhada. */
body.single .main-layout{
  align-items: flex-start !important;
}
body.single .sidebar-col{
  padding-top: 0 !important;
  margin-top: 0 !important;
  align-self: flex-start !important;
}
body.single .sidebar-col > :first-child,
body.single .sidebar-col .popular-widget:first-child{
  margin-top: 0 !important;
}
body.single .sidebar-col .popular-widget:first-child .popular-title,
body.single .sidebar-col .popular-title:first-child{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Compartilhamento do post único: permanece em uma linha, sem barra e sem
   quebra feia no desktop/mobile. */
.portal-single-post .post-share{
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow: hidden !important;
  gap: 6px !important;
}
.portal-single-post .post-share .share-btn{
  flex: 1 1 0 !important;
  min-width: 0 !important;
}

/* =====================================================================
   v5.3 — Correções finais:
   - Sticky ad lateral nunca cobre a seção de vídeos longos
   - "Mais lidas" no post único alinhado e sem encostar no menu
   - Publicidade acima dos carrosséis removida
   - Mobile: anúncios laterais lado a lado e mais para cima
   ===================================================================== */

/* 1) Anúncio lateral fixo: confina ao seu container (sidebar-col) e nunca
      sobrepõe a seção de vídeos longos que vem depois do .main-layout. */
@media (min-width: 961px){
  .sidebar-sticky-ad,
  .sidebar-sticky-ad.is-fixed{
    position: sticky !important;
    top: 92px !important;
    z-index: 5 !important;
  }
}

/* 2) Remove a publicidade extra acima dos carrosséis (banner_2 no topo do index). */
.top-banner-wrap + .ad-slot,
.hero-duo + .ad-slot,
body.home > .ad-slot:first-of-type{ display: none !important; }
/* Esconde o banner_2 quando renderizado logo antes do .hero-duo */
.site-main > .ad-slot:has(+ .hero-duo){ display: none !important; }

/* 3) Post único — "Mais lidas" alinhado ao topo do artigo, sem grudar no menu. */
body.single .main-layout{ align-items: flex-start !important; }
body.single .sidebar-col{
  padding-top: 12px !important;
  margin-top: 0 !important;
}
body.single .sidebar-col > :first-child{ margin-top: 0 !important; }

/* 4) Mobile — anúncios da sidebar em duas colunas (lado a lado) e subindo
      em direção à primeira dobra. Os widgets (Mais lidas, Recomendações,
      clima) seguem ocupando largura total. */
@media (max-width: 960px){
  .sidebar-col{
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-top: 12px !important;
    padding: 0 12px !important;
  }
  .sidebar-col > .popular-widget,
  .sidebar-col > .recommend-widget,
  .sidebar-col > .sidebar-widget,
  .sidebar-col > .weather-card,
  .sidebar-col > .sidebar-sticky-ad{
    grid-column: 1 / -1 !important;
  }
  .sidebar-col > .ad-slot,
  .sidebar-col > .ad-slot-square{
    grid-column: auto !important;
    margin: 0 !important;
    width: 100% !important;
  }
  /* Sobe os ads do conteúdo: reduz o espaçamento dos blocos de categoria
     no mobile para a sidebar/anúncios aparecerem mais perto da dobra. */
  .cat-block{ margin-bottom: 18px !important; }
  .latest-news-title{ margin-top: 14px !important; }
}

/* =====================================================================
   v5.4 — Correções imediatas: anúncio não cobre vídeos, respiro no topo,
   Mais lidas afastado do menu e clima só por cidade escolhida.
   ===================================================================== */

/* Carrosséis do topo: deixa um respiro abaixo da barra vermelha. */
body.home .hero-duo,
.site-main > .hero-duo:first-child{
  margin-top: 24px !important;
}
@media (max-width: 900px){
  body.home .hero-duo,
  .site-main > .hero-duo:first-child{
    margin-top: 14px !important;
  }
}

/* Anúncio lateral: fica preso apenas dentro da sidebar e solta antes dos vídeos. */
@media (min-width: 961px){
  .sidebar-sticky-placeholder{ display: none !important; }
  .sidebar-sticky-ad,
  .sidebar-sticky-ad.is-fixed{
    position: sticky !important;
    top: 92px !important;
    left: auto !important;
    width: auto !important;
    z-index: 3 !important;
    margin: 0 0 18px !important;
  }
  .sidebar-sticky-ad .ad-slot{ margin: 0 !important; }
}
.long-videos-sticky-ad-wrap,
.long-videos .long-videos-sticky-ad-wrap,
.long-videos > .ad-slot,
.long-videos + .ad-slot-square{
  display: none !important;
}
.long-videos .long-videos-grid{
  padding-right: 0 !important;
}

/* Post único: Mais lidas com padding abaixo do menu vermelho, alinhado ao conteúdo. */
body.single .main-layout{
  padding-top: 24px !important;
}
body.single .sidebar-col{
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body.single .sidebar-col > .popular-widget:first-child{
  padding-top: 18px !important;
}
@media (max-width: 960px){
  body.single .main-layout{
    margin-top: 0 !important;
    padding-top: 22px !important;
  }
  body.single .sidebar-col{
    margin-top: 18px !important;
  }
  body.single .sidebar-col > .popular-widget:first-child{
    padding-top: 18px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Clima: sem botão de localização/IP; seleção manual da cidade. */
.weather-city-form{
  margin-top: 14px;
  display: grid;
  gap: 7px;
}
.weather-city-form label{
  font-size: 12px;
  font-weight: 900;
  color: #c4170c;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.weather-city-row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.weather-city-row input{
  min-width: 0;
  border: 1px solid #eed0c8;
  border-radius: 8px;
  padding: 10px 11px;
  font: inherit;
  font-weight: 700;
}
.weather-city-row button{
  border: 0;
  border-radius: 8px;
  background: #c4170c;
  color: #fff;
  padding: 0 14px;
  font-weight: 900;
  cursor: pointer;
}
.weather-city-status{
  color: #666;
  font-size: 12px;
}
