:root {
  --red: #e30613;
  --red-dark: #b8050f;
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --radius: 8px;
  --container: 1240px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(var(--container), 100% - 2rem);
  margin-inline: auto;
}

/* ── Top bar ── */
.topbar {
  background: var(--black);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
}

.topbar-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.85;
}

.topbar-date svg {
  color: var(--red);
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-links a {
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
}

.topbar-links a:hover {
  opacity: 1;
  color: var(--red);
}

.topbar-links li {
  display: inline;
  list-style: none;
}

/* ── Breaking news ticker ── */
.ticker {
  background: var(--red);
  color: var(--white);
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  align-items: stretch;
  min-height: 38px;
}

.ticker-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--black);
  padding: 0 1rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ticker-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.ticker-track-wrap {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
  padding-left: 1rem;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-track a {
  font-size: 0.82rem;
  font-weight: 600;
  transition: opacity 0.2s;
}

.ticker-track a:hover {
  opacity: 0.8;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Header ── */
.header {
  background: var(--white);
  border-bottom: 3px solid var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0;
}

.logo-link img {
  height: 48px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover,
.nav a.active {
  background: var(--red);
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-btn,
.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--black);
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.search-btn:hover,
.menu-btn:hover {
  background: var(--black);
  color: var(--white);
}

.menu-btn {
  display: none;
}

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-box {
  width: min(560px, 90%);
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.25rem;
  font-family: inherit;
  font-size: 1.1rem;
  border: none;
  border-bottom: 3px solid var(--red);
  background: transparent;
  color: var(--white);
  outline: none;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
}

/* ── Ads ── */
.ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border: 1px dashed var(--gray-200);
  position: relative;
  overflow: hidden;
}

.ad-label {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
  background: var(--white);
  padding: 2px 6px;
  border-radius: 2px;
}

.ad-banner {
  width: 100%;
  min-height: 90px;
  margin: 1.25rem 0;
}

.ad-banner-inner {
  min-height: 90px;
  font-size: 0.85rem;
  color: var(--gray-400);
  font-weight: 600;
}

.ad-sidebar {
  min-height: 250px;
  margin-bottom: 1.5rem;
}

.ad-sidebar-inner {
  min-height: 250px;
  font-size: 0.85rem;
  color: var(--gray-400);
  font-weight: 600;
}

.ad-leaderboard {
  min-height: 120px;
}

/* ── Hero / Destaques ── */
.hero {
  padding: 1.5rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.hero-main {
  grid-row: 1 / 3;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 480px;
  group: hero;
}

.hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-main:hover img {
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.2) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.hero-side {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 230px;
}

.hero-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-side:hover img {
  transform: scale(1.04);
}

.hero-side .hero-overlay {
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.88) 0%, transparent 70%);
}

.tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 3px;
  margin-bottom: 0.65rem;
  width: fit-content;
}

.tag-red { background: var(--red); color: var(--white); }
.tag-black { background: var(--black); color: var(--white); }
.tag-live {
  background: var(--red);
  color: var(--white);
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(227, 6, 19, 0); }
}

.hero-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.hero-side .hero-title {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
}

.hero-meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* ── Section headers ── */
.section {
  padding: 2rem 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--black);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--red);
}

.section-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.section-link:hover {
  opacity: 0.7;
}

/* ── Layout grid ── */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

/* ── News cards ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.news-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s;
}

.news-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.news-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.05);
}

.news-card-body {
  padding: 1rem;
}

.news-card-body .tag {
  margin-bottom: 0.5rem;
}

.news-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-meta {
  font-size: 0.72rem;
  color: var(--gray-400);
  font-weight: 500;
}

/* ── Horizontal scroll categories ── */
.category-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--red) var(--gray-100);
}

.category-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid var(--black);
  border-radius: 100px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
  color: inherit;
}

.category-chip:hover,
.category-chip.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ── Sidebar widgets ── */
.widget {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--gray-200);
}

.widget-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--red);
}

.trending-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.trending-list li:last-child {
  border-bottom: none;
}

.trending-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  min-width: 28px;
}

.trending-text {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.trending-text a:hover {
  color: var(--red);
}

/* ── Lista compacta ── */
.compact-list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: center;
}

.compact-list li:last-child {
  border-bottom: none;
}

.compact-list img {
  width: 100px;
  height: 68px;
  object-fit: cover;
  border-radius: 4px;
}

.compact-list h3 {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

.compact-list h3 a:hover {
  color: var(--red);
}

.compact-list time {
  font-size: 0.7rem;
  color: var(--gray-400);
  margin-top: 0.25rem;
  display: block;
}

/* ── Instagram feed ── */
.instagram-section {
  margin-bottom: 2.5rem;
}

.instagram-feed {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.75rem;
  -webkit-overflow-scrolling: touch;
}

.instagram-feed::-webkit-scrollbar {
  height: 6px;
}

.instagram-feed::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 999px;
}

.instagram-feed-item {
  flex: 0 0 min(320px, 85vw);
  scroll-snap-align: start;
}

.instagram-embed-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-100);
  box-shadow: var(--shadow-sm);
  min-height: 480px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.instagram-embed-wrap blockquote.instagram-media,
.instagram-embed-wrap .instagram-media {
  margin: 0 !important;
  min-width: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}

.instagram-feed-title {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.35;
}

.instagram-feed-title a:hover {
  color: var(--red);
}

/* ── Vídeos / Multimídia ── */
.video-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
}

.video-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
}

.video-main img,
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-main .hero-overlay {
  padding: 1.5rem;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(227, 6, 19, 0.5);
  transition: transform 0.2s, background 0.2s;
}

.video-main:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--red-dark);
}

.video-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  flex: 1;
  min-height: 130px;
}

.video-thumb .play-btn {
  width: 44px;
  height: 44px;
}

.video-thumb .play-btn svg {
  width: 18px;
  height: 18px;
}

/* ── Newsletter ── */
.newsletter {
  background: var(--black);
  color: var(--white);
  padding: 2.5rem 0;
  margin-top: 1rem;
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.newsletter-text h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.newsletter-text h2 span {
  color: var(--red);
}

.newsletter-text p {
  font-size: 0.9rem;
  opacity: 0.75;
}

.newsletter-form {
  display: flex;
  gap: 0;
  flex: 1;
  max-width: 460px;
}

.newsletter-form input {
  flex: 1;
  padding: 0.85rem 1rem;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  border-radius: 4px 0 0 4px;
}

.newsletter-form button {
  padding: 0.85rem 1.5rem;
  background: var(--red);
  color: var(--white);
  border: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
  transition: background 0.2s;
}

.newsletter-form button:hover {
  background: var(--red-dark);
}

/* ── Footer ── */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 2.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-about {
  font-size: 0.85rem;
  opacity: 0.7;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: var(--red);
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.85rem;
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--red);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  opacity: 0.6;
}

.footer-bar {
  height: 4px;
  background: linear-gradient(
    to right,
    var(--black) 0%,
    var(--black) calc(50% - 14px),
    var(--red) calc(50% - 14px),
    var(--red) calc(50% + 14px),
    var(--black) calc(50% + 14px),
    var(--black) 100%
  );
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  transition: background 0.2s, border-color 0.2s;
}

.social-links a:hover {
  background: var(--red);
  border-color: var(--red);
}

/* ── Mobile nav ── */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 150;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.mobile-nav-header img {
  height: 40px;
}

.mobile-nav ul li {
  border-bottom: 1px solid var(--gray-200);
}

.mobile-nav ul a {
  display: block;
  padding: 1rem 0;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.mobile-nav ul a:hover {
  color: var(--red);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .hero-main {
    grid-row: auto;
    min-height: 360px;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-grid {
    grid-template-columns: 1fr 1fr;
  }

  .video-main {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .topbar-links {
    display: none;
  }

  .nav {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-inner {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form {
    width: 100%;
    max-width: none;
  }

  .compact-list li {
    grid-template-columns: 80px 1fr;
  }

  .compact-list img {
    width: 80px;
    height: 54px;
  }
}
