@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&display=swap");

:root {
  --ink: #111111;
  --ink-soft: #525252;
  --muted: #737373;
  --surface: #ffffff;
  --surface-muted: #f5f5f5;
  --surface-dark: #121212;
  --surface-dark-2: #1a1a1a;
  --line: rgba(0, 0, 0, 0.1);
  --line-dark: rgba(255, 255, 255, 0.1);
  --nav: #111111;
  --nav-dark: #000000;
  --accent: #0f766e;
  --accent-ink: #111111;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 18px 50px rgba(15, 23, 42, 0.12);
  --font-ui:
    "SF Pro Display", "SF Pro Text", "Inter", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-editorial: "Source Serif 4", Georgia, "Times New Roman", serif;
}

[data-bs-theme="dark"] {
  --ink: #f5f5f5;
  --ink-soft: #d4d4d4;
  --muted: #a3a3a3;
  --surface: #121212;
  --surface-muted: #1a1a1a;
  --line: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"]
  body:not([data-site-fundo="cor"]):not([data-site-fundo="imagem"]) {
  background: linear-gradient(
    145deg,
    #000000 0%,
    #1a1a1a 50%,
    #050505 100%
  ) !important;
  background-attachment: fixed !important;
  position: relative;
  z-index: 0;
}

/* Orbes flutuantes no Modo Escuro (Fundo Vivo global web/mobile) */
[data-bs-theme="dark"]
  body:not([data-site-fundo="cor"]):not([data-site-fundo="imagem"])::before,
[data-bs-theme="dark"]
  body:not([data-site-fundo="cor"]):not([data-site-fundo="imagem"])::after {
  content: "";
  position: fixed;
  width: max(60vw, 350px);
  height: max(60vw, 350px);
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  animation: floatOrbs 18s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.15; /* Opacidade sutil para não prejudicar a leitura das notícias */
  pointer-events: none;
}

[data-bs-theme="dark"]
  body:not([data-site-fundo="cor"]):not([data-site-fundo="imagem"])::before {
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent) 60%, transparent) 0%,
    transparent 70%
  );
  top: -10%;
  left: -10%;
}
[data-bs-theme="dark"]
  body:not([data-site-fundo="cor"]):not([data-site-fundo="imagem"])::after {
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent) 50%, transparent) 0%,
    transparent 70%
  );
  bottom: -10%;
  right: -10%;
  animation-delay: -9s;
  animation-direction: alternate-reverse;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #eceff3 0%, #f7f8fa 180px, #f7f8fa 100%);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[data-site-fundo="cor"] body.site-body,
html[data-site-fundo="cor"] body.admin-body {
  background: var(--site-bg-color, #f7f8fa);
}

html[data-site-fundo="imagem"] body.site-body,
html[data-site-fundo="imagem"] body.admin-body {
  background-color: var(--site-bg-color, #f7f8fa);
  background-image: var(--site-bg-image);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

html[data-site-fundo="imagem"] body.site-body::before,
html[data-site-fundo="imagem"] body.admin-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, var(--site-bg-overlay, 0));
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
}

.container {
  max-width: 1180px;
}

/* ---- Navegação ---- */

.glass-nav {
  position: relative;
  isolation: isolate;
  background-color: var(--nav);
  background-image: var(--nav-bg-image, none);
  background-size: cover;
  background-position: center;
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.3s ease;
}

.glass-nav.nav-hidden {
  transform: translateY(-100%);
}

html[data-nav-fundo="imagem"] .glass-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--nav-bg-overlay, 0.35));
  pointer-events: none;
  z-index: 0;
}

html[data-nav-fundo="imagem"] .glass-nav > .container {
  position: relative;
  z-index: 1;
}

.glass-nav .navbar-brand {
  color: #f8fafc;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0 !important; /* Esconde textos "fantasmas" no carregamento */
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #ffffff;
  border: 1px solid var(--line-dark);
  flex-shrink: 0;
}

.brand-lockup--banner,
.brand-lockup--icone {
  gap: 12px;
}

.brand-banner {
  display: block;
  width: auto;
  max-width: min(320px, 58vw);
  height: auto;
  max-height: var(--brand-banner-height, 52px);
  object-fit: contain;
  object-position: left center;
}

.brand-text {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.15rem; /* Restaura a fonte do texto inserido pelo JS */
}

.glass-nav .brand-lockup--banner .brand-text {
  display: none;
}

/* Efeito Tremer na Logo (Load e Hover) */
:root {
  --logo-shake-px: 4px;
  --logo-shake-deg: 2deg;
  --logo-anim-load: logoShakeLoad;
  --logo-anim-hover: logoShakeHover;
}

@keyframes logoShakeLoad {
  10%,
  90% {
    transform: translate3d(calc(var(--logo-shake-px) * -0.25), 0, 0)
      rotate(calc(var(--logo-shake-deg) * -0.5));
  }
  20%,
  80% {
    transform: translate3d(calc(var(--logo-shake-px) * 0.5), 0, 0)
      rotate(calc(var(--logo-shake-deg) * 0.5));
  }
  30%,
  50%,
  70% {
    transform: translate3d(calc(var(--logo-shake-px) * -1), 0, 0)
      rotate(calc(var(--logo-shake-deg) * -1));
  }
  40%,
  60% {
    transform: translate3d(var(--logo-shake-px), 0, 0)
      rotate(var(--logo-shake-deg));
  }
}

@keyframes logoShakeHover {
  10%,
  90% {
    transform: translate3d(calc(var(--logo-shake-px) * -0.25), 0, 0)
      rotate(calc(var(--logo-shake-deg) * -0.5));
  }
  20%,
  80% {
    transform: translate3d(calc(var(--logo-shake-px) * 0.5), 0, 0)
      rotate(calc(var(--logo-shake-deg) * 0.5));
  }
  30%,
  50%,
  70% {
    transform: translate3d(calc(var(--logo-shake-px) * -1), 0, 0)
      rotate(calc(var(--logo-shake-deg) * -1));
  }
  40%,
  60% {
    transform: translate3d(var(--logo-shake-px), 0, 0)
      rotate(var(--logo-shake-deg));
  }
}

/* Efeito: Pulso */
@keyframes logoPulseLoad {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}
@keyframes logoPulseHover {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

/* Efeito: Balanço (Bounce) */
@keyframes logoBounceLoad {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-12px);
  }
  60% {
    transform: translateY(-6px);
  }
}
@keyframes logoBounceHover {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Efeito: Giro */
@keyframes logoSpinLoad {
  from {
    transform: rotate(-180deg) scale(0.5);
    opacity: 0;
  }
  to {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
}
@keyframes logoSpinHover {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.brand-logo,
.brand-banner {
  animation: var(--logo-anim-load, logoShakeLoad) 0.8s
    cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.navbar-brand:hover .brand-logo,
.navbar-brand:hover .brand-banner,
#preview-logo img:hover {
  animation: var(--logo-anim-hover, logoShakeHover) 0.8s
    cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.btn-accent,
.btn-dark {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--accent-ink) !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm) !important;
  padding: 0.55rem 1rem !important;
}

.btn-accent:hover,
.btn-dark:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-ghost,
.glass-nav .btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.btn-ghost:hover,
.glass-nav .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.34) !important;
}

.glass-nav .btn-light {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--accent-ink) !important;
  font-weight: 800;
  border-radius: var(--radius-sm) !important;
}

/* ---- Cabeçalhos de seção ---- */

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: none;
}

.section-heading span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading span::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.section-heading small {
  color: var(--muted);
  font-weight: 600;
}

/* ---- Toolbar da home ---- */

.home-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 31px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

#layout-home {
  align-items: start;
}

#col-noticias .news-list {
  gap: 14px;
}

.home-toolbar strong {
  display: block;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-toolbar span {
  color: var(--muted);
  font-size: 0.9rem;
}

.toolbar-form,
.admin-panel__toolbar form,
.admin-search-form {
  display: flex !important;
  flex-grow: 1 !important;
  flex-shrink: 1 !important;
  flex-basis: 0% !important;
  min-width: 250px !important;
  position: relative;
  max-width: none !important; /* Desativa estilos inline que possam estar limitando o form */
}

/* Força a barra (seja via input-group do Bootstrap ou a nova div customizada) a esticar */
.toolbar-form .input-group,
.toolbar-form > div.position-relative,
.admin-panel__toolbar form > div.position-relative,
.admin-search-form > div.position-relative {
  display: flex !important;
  flex: 1 1 auto !important;
  width: 100% !important;
}

.form-control,
.form-select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  background: var(--surface-muted);
}

.form-control:focus,
.form-select:focus {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.toolbar-form .input-group > .form-control {
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  padding: 0.85rem 1.5rem;
  font-size: 1.05rem;
}

.toolbar-form .input-group > .btn {
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding: 0.85rem 1.8rem 0.85rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
}

/* Força o estilo moderno da barra de busca e previne cortes do Bootstrap/Navegador */
#busca,
#busca-admin,
.admin-search-form input[type="search"] {
  border-radius: 50px !important;
  padding: 18px 20px 18px 55px !important;
  font-size: 1.1rem !important;
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  width: 100% !important;
  flex: 1 1 auto !important;
  -webkit-appearance: none !important; /* Libera a altura e bordas reais no Mac/iOS/Chrome */
}

#busca::placeholder,
#busca-admin::placeholder,
.admin-search-form input[type="search"]::placeholder {
  text-overflow: ellipsis !important;
  color: var(--muted);
}

#busca:focus,
#busca-admin:focus,
.admin-search-form input[type="search"]:focus {
  background: #ffffff !important;
}

[data-bs-theme="dark"] #busca,
[data-bs-theme="dark"] #busca-admin,
[data-bs-theme="dark"] .admin-search-form input[type="search"] {
  background: var(--surface-muted) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
}
[data-bs-theme="dark"] #busca:focus,
[data-bs-theme="dark"] #busca-admin:focus,
[data-bs-theme="dark"] .admin-search-form input[type="search"]:focus {
  background: var(--surface) !important;
}

#live-search-results,
#live-search-results-admin {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-top: 8px;
  overflow: hidden;
}

/* ---- Hero carousel ---- */

.hero-carousel {
  --carousel-stage-min: 380px;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  touch-action: pan-y; /* Bloqueia o arraste horizontal da tela inteira, focando apenas no carrossel */
}

.hero-carousel--editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 0;
}

.hero-carousel--light {
  background: #ffffff;
}

.hero-carousel--dark {
  background: #0a0a0a;
  border-color: rgba(255, 255, 255, 0.08);
}

.hero-carousel__stage {
  position: relative;
  min-height: var(--carousel-stage-min);
  background: #111111;
}

.hero-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  transition:
    opacity 0.7s ease,
    transform 1.1s ease,
    visibility 0.7s ease;
}

.hero-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
}

.hero-carousel__link {
  display: block;
  height: 100%;
  color: #ffffff;
  text-decoration: none;
}

.hero-carousel__media {
  position: absolute;
  inset: 0;
}

.hero-carousel__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      110deg,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.35) 42%,
      rgba(0, 0, 0, 0.12) 100%
    ),
    linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, transparent 55%);
}

.hero-carousel__img,
.hero-carousel__fallback {
  width: 100%;
  height: 100%;
  min-height: var(--carousel-stage-min);
  object-fit: cover;
  display: block;
}

.hero-carousel__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, #1f1f1f, #333333);
}

.hero-carousel__overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: var(--carousel-stage-min);
  padding: 28px 26px 24px;
  max-width: 82%;
}

.hero-carousel__kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-carousel__title {
  margin: 0 0 10px;
  font-family: var(--font-ui);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-carousel__excerpt {
  margin: 0 0 14px;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-carousel__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-carousel__cta::after {
  content: "→";
  transition: transform 0.25s ease;
}

.hero-carousel__link:hover .hero-carousel__cta::after {
  transform: translateX(4px);
}

.hero-carousel__chrome {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(
    180deg,
    var(--surface-dark-2) 0%,
    var(--surface-dark) 100%
  );
}

.hero-carousel__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-carousel__progress {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.hero-carousel__dot {
  flex: 1;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: background 0.25s ease;
}

.hero-carousel__dot.is-active {
  background: rgba(255, 255, 255, 0.28);
}

.hero-carousel__dot.is-animating::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--accent);
  border-radius: inherit;
  animation: hero-progress var(--hero-autoplay, 6s) linear forwards;
}

.hero-carousel.is-paused .hero-carousel__dot.is-active::after {
  animation-play-state: paused;
}

@keyframes hero-progress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.hero-carousel__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.hero-carousel__nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-carousel__toolbar--no-dots .hero-carousel__controls {
  margin-left: 0;
  width: 100%;
  justify-content: flex-end;
}

.hero-carousel__toolbar--no-counter .hero-carousel__controls--no-counter {
  gap: 8px;
}

.hero-carousel__toolbar--no-arrows .hero-carousel__nav {
  display: none;
}

.hero-carousel__toolbar--no-counter .hero-carousel__counter {
  display: none;
}

.hero-carousel--compacto .hero-carousel__footer-compact .hero-carousel__toolbar,
.hero-carousel--editorial
  .hero-carousel__chrome--toolbar-only
  .hero-carousel__toolbar {
  padding: 0;
}

.hero-carousel__counter {
  min-width: 58px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: right;
}

.hero-carousel__counter strong {
  color: #ffffff;
}

.hero-carousel__btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-carousel__btn:hover {
  background: #ffffff;
  color: #111418;
  border-color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-carousel__btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.hero-carousel__btn[data-dir="prev"]:hover svg {
  transform: translateX(-3px);
}

.hero-carousel__btn[data-dir="next"]:hover svg {
  transform: translateX(3px);
}

/* Setas Flutuantes sobre a imagem (Desktop) */
.hero-carousel__floating-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 10;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.hero-carousel__btn-float {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  opacity: 0.85; /* Sempre visíveis e elegantes */
  transform: scale(1);
}

.hero-carousel__btn-float.prev {
  transform: translateX(-10px);
}
.hero-carousel__btn-float.next {
  transform: translateX(10px);
}

.hero-carousel:hover .hero-carousel__btn-float {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.hero-carousel__btn-float:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #111111;
  border-color: #ffffff;
  transform: scale(1.08) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.hero-carousel__btn-float svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.hero-carousel__btn-float.prev:hover svg {
  transform: translateX(-3px);
}
.hero-carousel__btn-float.next:hover svg {
  transform: translateX(3px);
}

.hero-carousel__thumbs {
  display: grid;
  gap: 10px;
  flex: 1;
  overflow: auto;
}

.hero-carousel__thumb {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.hero-carousel__thumb.is-active,
.hero-carousel__thumb:hover {
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.hero-carousel__thumb-media {
  display: block;
  width: 72px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #262626;
}

.hero-carousel__thumb-img,
.hero-carousel__thumb-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-carousel__thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.35);
}

.hero-carousel__thumb-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.hero-carousel__thumb-kicker {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-carousel__thumb-copy strong {
  font-family: var(--font-editorial);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Carrossel tema claro */
.hero-carousel--light .hero-carousel__stage {
  background: #eef2f6;
}

.hero-carousel--light .hero-carousel__media::after {
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.42) 0%,
      rgba(0, 0, 0, 0.12) 38%,
      transparent 68%
    ),
    linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.12) 38%,
      transparent 72%
    );
}

.hero-carousel--light .hero-carousel__link {
  color: #ffffff;
}

.hero-carousel--light .hero-carousel__excerpt {
  color: rgba(255, 255, 255, 0.88);
}

.hero-carousel--light .hero-carousel__title {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-carousel--light .hero-carousel__chrome {
  background: linear-gradient(180deg, #f5f5f5 0%, #e5e5e5 100%);
  border-left: 1px solid var(--line);
}

.hero-carousel--light .hero-carousel__dot {
  background: rgba(0, 0, 0, 0.12);
}

.hero-carousel--light .hero-carousel__dot.is-active {
  background: rgba(0, 0, 0, 0.2);
}

.hero-carousel--light .hero-carousel__counter {
  color: var(--muted);
}

.hero-carousel--light .hero-carousel__counter strong {
  color: var(--ink);
}

.hero-carousel--light .hero-carousel__btn {
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.hero-carousel--light .hero-carousel__btn:hover {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.hero-carousel--light .hero-carousel__thumb {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.hero-carousel--light .hero-carousel__thumb.is-active,
.hero-carousel--light .hero-carousel__thumb:hover {
  background: color-mix(in srgb, var(--accent) 10%, white);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.hero-carousel--light .hero-carousel__thumb-kicker {
  color: var(--muted);
}

.hero-carousel--light .hero-carousel__thumb-media {
  background: var(--surface-muted);
}

.hero-carousel--light .hero-carousel__fallback {
  background: linear-gradient(135deg, #e5e5e5, #d4d4d4);
  color: rgba(0, 0, 0, 0.2);
}

/* Carrossel tema escuro (mantem visual anterior) */
.hero-carousel--dark .hero-carousel__stage {
  background: #111111;
}

.hero-carousel--dark .hero-carousel__media::after {
  background:
    linear-gradient(
      110deg,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.35) 42%,
      rgba(0, 0, 0, 0.12) 100%
    ),
    linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, transparent 55%);
}

.hero-carousel--dark .hero-carousel__link {
  color: #ffffff;
}

.hero-carousel--dark .hero-carousel__excerpt {
  color: rgba(255, 255, 255, 0.82);
}

.hero-carousel--dark .hero-carousel__chrome {
  background: linear-gradient(
    180deg,
    var(--surface-dark-2) 0%,
    var(--surface-dark) 100%
  );
}

/* Alturas do carrossel */
.hero-carousel--h-baixo {
  --carousel-stage-min: 280px;
}
.hero-carousel--h-medio {
  --carousel-stage-min: 380px;
}
.hero-carousel--h-alto {
  --carousel-stage-min: 480px;
}
.hero-carousel--h-extra {
  --carousel-stage-min: 580px;
}

/* Modelo: tela cheia */
.hero-carousel--fullscreen .hero-carousel__overlay-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 14px 18px 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, transparent 100%);
}

.hero-carousel--fullscreen .hero-carousel__toolbar {
  margin: 0;
}

/* Modelo: compacto / split / bottom footer */
.hero-carousel__footer-compact {
  padding: 12px 16px 14px;
  background: var(--surface-muted);
  border-top: 1px solid var(--line);
}

.hero-carousel--dark .hero-carousel__footer-compact,
[data-bs-theme="dark"] .hero-carousel__footer-compact {
  background: #ffffff !important;
  border-top-color: rgba(0, 0, 0, 0.1) !important;
}

.hero-carousel--dark .hero-carousel__footer-compact .hero-carousel__dot,
[data-bs-theme="dark"] .hero-carousel__footer-compact .hero-carousel__dot {
  background: rgba(0, 0, 0, 0.12) !important;
}

.hero-carousel--dark
  .hero-carousel__footer-compact
  .hero-carousel__dot.is-active,
[data-bs-theme="dark"]
  .hero-carousel__footer-compact
  .hero-carousel__dot.is-active {
  background: rgba(0, 0, 0, 0.2) !important;
}

.hero-carousel--dark .hero-carousel__footer-compact .hero-carousel__counter,
[data-bs-theme="dark"] .hero-carousel__footer-compact .hero-carousel__counter {
  color: #737373 !important;
}

.hero-carousel--dark
  .hero-carousel__footer-compact
  .hero-carousel__counter
  strong,
[data-bs-theme="dark"]
  .hero-carousel__footer-compact
  .hero-carousel__counter
  strong {
  color: #111111 !important;
}

.hero-carousel--dark .hero-carousel__footer-compact .hero-carousel__btn,
[data-bs-theme="dark"] .hero-carousel__footer-compact .hero-carousel__btn {
  border-color: rgba(0, 0, 0, 0.15) !important;
  background: rgba(255, 255, 255, 0.75) !important;
  color: #111111 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

.hero-carousel--dark .hero-carousel__footer-compact .hero-carousel__btn:hover,
[data-bs-theme="dark"]
  .hero-carousel__footer-compact
  .hero-carousel__btn:hover {
  background: #111111 !important;
  color: #ffffff !important;
  border-color: #111111 !important;
}

/* Modelo: dividido */
.hero-carousel--split .hero-carousel__stage {
  background: var(--surface);
}

.hero-carousel--split .hero-carousel__slide--split {
  position: absolute;
  inset: 0;
}

.hero-carousel__split-link {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  height: 100%;
  min-height: var(--carousel-stage-min);
  color: inherit;
  text-decoration: none;
}

.hero-carousel__split-media {
  position: relative;
  min-height: var(--carousel-stage-min);
  background: #111111;
}

.hero-carousel__split-media .hero-carousel__img,
.hero-carousel__split-media .hero-carousel__fallback {
  min-height: 100%;
}

.hero-carousel__split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 26px;
  background: var(--surface);
  color: var(--ink);
}

.hero-carousel--dark.hero-carousel--split .hero-carousel__split-copy {
  background: var(--surface-dark-2);
  color: #ffffff;
}

.hero-carousel--split .hero-carousel__split-copy .hero-carousel__excerpt {
  color: var(--ink-soft);
}

.hero-carousel--dark.hero-carousel--split
  .hero-carousel__split-copy
  .hero-carousel__excerpt {
  color: rgba(255, 255, 255, 0.78);
}

/* Modelo: filmstrip */
.hero-carousel--filmstrip .hero-carousel__filmstrip-bar {
  padding: 12px 14px 14px;
  background: var(--surface-muted);
  border-top: 1px solid var(--line);
}

.hero-carousel--filmstrip .hero-carousel__thumbs--strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 220px);
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.hero-carousel--filmstrip .hero-carousel__thumb {
  grid-template-columns: 64px 1fr;
}

/* Modelo: magazine */
.hero-carousel--magazine .hero-carousel__overlay {
  align-items: center;
  text-align: center;
  max-width: 100%;
  padding-bottom: 72px;
}

.hero-carousel--magazine .hero-carousel__title {
  max-width: 760px;
}

.hero-carousel--magazine .hero-carousel__magazine-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 14px 18px 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
}

/* Modelo: card */
.hero-carousel--card .hero-carousel__overlay {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px;
  max-width: 460px;
  min-height: 0;
  box-shadow: var(--shadow-card);
}
.hero-carousel--dark.hero-carousel--card .hero-carousel__overlay {
  background: var(--surface-dark-2);
  color: #ffffff;
}
.hero-carousel--card .hero-carousel__excerpt {
  color: var(--ink-soft);
}
.hero-carousel--dark.hero-carousel--card .hero-carousel__excerpt {
  color: rgba(255, 255, 255, 0.7);
}

/* Modelo: bottom */
.hero-carousel--bottom .hero-carousel__link {
  display: flex;
  flex-direction: column;
}
.hero-carousel--bottom .hero-carousel__media {
  position: relative;
  flex: 1;
}
.hero-carousel--bottom .hero-carousel__overlay {
  position: relative;
  min-height: 0;
  max-width: 100%;
  background: var(--surface);
  color: var(--ink);
  padding: 24px 20px 16px;
}
.hero-carousel--dark.hero-carousel--bottom .hero-carousel__overlay {
  background: var(--surface-dark-2);
  color: #ffffff;
}
.hero-carousel--bottom .hero-carousel__excerpt {
  color: var(--ink-soft);
}
.hero-carousel--dark.hero-carousel--bottom .hero-carousel__excerpt {
  color: rgba(255, 255, 255, 0.7);
}

/* Modelo: gradient */
.hero-carousel--gradient .hero-carousel__media::after {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.5) 60%,
    transparent 100%
  );
}
.hero-carousel--gradient .hero-carousel__overlay {
  max-width: 65%;
  padding-left: 40px;
}

.hero-carousel__chrome--toolbar-only {
  padding: 14px 16px;
}

/* Admin: grade de modelos de carrossel */
.carousel-model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.carousel-model-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.carousel-model-card strong {
  font-size: 0.84rem;
  letter-spacing: 0.03em;
}

.carousel-model-card span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.carousel-model-card.is-active,
.carousel-model-card:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, white);
  transform: translateY(-1px);
}

.image-preview.brand-preview {
  aspect-ratio: 4 / 1;
  max-width: 100%;
}

.image-preview.brand-preview img {
  object-fit: contain;
  background: #111111;
}

.fundo-config {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.image-preview.fundo-preview {
  aspect-ratio: 16 / 5;
}

.image-preview.fundo-preview img {
  object-fit: cover;
}

/* ---- Lista de notícias ---- */

.news-list {
  display: grid;
  gap: 16px;
}

.news-item {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

/* Efeito Premium de Aparição no Scroll (Apenas Mobile) */
@media (max-width: 768px) {
  .reveal-on-scroll {
    opacity: 0;
  }
  .reveal-on-scroll.is-revealed {
    animation: reveal-anim 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  @keyframes reveal-anim {
    0% {
      opacity: 0;
      transform: translateY(25px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.news-item:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: var(--shadow-card);
}

.thumb-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  width: 210px;
  height: 140px;
  flex-shrink: 0;
}

.thumb-wrapper img,
.thumb,
.thumb-fallback {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  background: linear-gradient(135deg, var(--nav), #404040);
  display: block;
}

.thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 900;
  font-size: 2.2rem;
}

.news-item h2 {
  margin: 0 0 10px;
  font-family: var(--font-ui);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.news-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.news-meta span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-meta span:first-child {
  background: color-mix(in srgb, var(--accent) 18%, white);
  color: var(--accent-ink);
}

.news-meta a {
  color: inherit;
  text-decoration: none;
}

/* Garante que elementos interativos fiquem acima do link clicável geral do card */
.news-meta a,
.tag-row a,
.news-item__share {
  position: relative;
  z-index: 2;
}

.news-meta a:hover {
  text-decoration: underline;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag-row span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 700;
}

.news-item p,
.article-lead {
  color: var(--ink-soft);
  line-height: 1.6;
  font-weight: 500;
}

/* ---- Paginação ---- */

.pagination {
  gap: 8px;
}

.pagination .page-link {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm) !important;
  color: var(--ink);
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  background: var(--surface);
}

.pagination .page-item.active .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.pagination .page-link:hover {
  background: var(--surface-muted);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

/* ---- Sidebar ---- */

.side-panel,
.admin-panel,
.article-shell,
.login-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.side-panel {
  padding: 18px;
  background: linear-gradient(180deg, #5a6472 0%, #4f5865 100%);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f8fafc;
}

.side-panel h2 {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.side-panel h2::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 3px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--accent);
  vertical-align: middle;
}

.side-link {
  display: block;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-editorial);
  font-size: 1rem;
  line-height: 1.28;
  text-decoration: none;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.9);
  transition:
    color 0.2s ease,
    padding-left 0.2s ease;
}

.side-link:hover {
  color: var(--accent);
  padding-left: 4px;
}

.side-panel .game-box {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.side-panel .game-box .text-secondary {
  color: rgba(255, 255, 255, 0.72) !important;
}

.side-panel .teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
}

.side-panel .poll-option {
  width: 100%;
  margin-bottom: 8px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: var(--radius-sm) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.7rem 0.9rem !important;
}

.side-panel .poll-option:hover {
  border-color: color-mix(in srgb, var(--accent) 70%, white) !important;
  background: rgba(255, 255, 255, 0.18) !important;
}

#widget-enquete p.fw-bold {
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--font-editorial);
  font-size: 1.05rem;
}

.admin-panel .game-box {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.sticky-sidebar {
  position: sticky;
  top: 92px;
}

/* ---- Widgets da sidebar (index) ---- */

.widgets-stack {
  display: grid;
  gap: 16px;
}

.widget-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.widget-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    var(--surface-muted) 0%,
    var(--surface) 100%
  );
}

.widget-card__icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 16%, white);
  color: var(--ink);
  flex-shrink: 0;
}

.widget-card__icon svg {
  width: 18px;
  height: 18px;
}

.widget-card__head:not(:has(.widget-card__icon)) > div {
  margin-left: 0;
}

.widget-card__head h2 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}

.widget-card__head p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

/* Estilo exclusivo do cabeçalho da Enquete */
[data-widget="enquete"] .widget-card__head {
  background: #f8db52 !important;
}
[data-widget="enquete"] .widget-card__head h2 {
  color: #111111 !important;
}
[data-widget="enquete"] .widget-card__head p {
  color: #525252 !important;
}
[data-widget="enquete"] .widget-card__icon {
  color: #111111 !important;
}

.widget-card__body {
  padding: 14px 16px 16px;
}

.trending-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.2s ease;
}

.trending-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.trending-item:hover {
  color: var(--ink);
}

.trending-item:hover .trending-rank {
  background: var(--accent);
  color: var(--accent-ink);
}

.trending-rank {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.trending-copy strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 4px;
}

.trending-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.game-card {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.game-card:first-child {
  border-top: 0;
  padding-top: 0;
}

.game-card__league {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.game-card__match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.game-card__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.game-card__shield {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.game-card__score {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--ink);
  white-space: nowrap;
}

.game-card__score small {
  margin: 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.game-card__date {
  display: block;
  margin-top: 8px;
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 600;
}

.game-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: 4px;
}

.game-status--encerrado {
  background: var(--surface-muted);
  color: var(--muted);
  border: 1px solid var(--line);
}

.game-status--aovivo {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.05);
}

.game-status--hoje {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.game-status .blink {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-dot-live 2s infinite;
}

@keyframes pulse-dot-live {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  }
  70% {
    transform: scale(1.2);
    box-shadow: 0 0 0 5px transparent;
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 transparent;
  }
}

/* ---- Enquete Premium ---- */
.poll-premium-option {
  transition: all 0.25s cubic-bezier(0.2, 0, 0.2, 1);
  background: var(--surface-muted);
  border: 1px solid var(--line);
}
.poll-premium-option:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}
.poll-premium-option:active {
  transform: scale(0.96);
}
.poll-premium-radio {
  transition: all 0.2s ease;
  border-color: color-mix(in srgb, var(--ink) 25%, transparent) !important;
}
.poll-premium-option:hover .poll-premium-radio {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}
[data-bs-theme="dark"] .poll-premium-option {
  background: var(--surface-dark-2);
}
[data-bs-theme="dark"] .poll-premium-option:hover {
  background: color-mix(in srgb, var(--accent) 15%, #000);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* ---- Mobile Poll Popup (Bottom Sheet) ---- */
.mobile-poll-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
  z-index: 1060;
  transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  max-height: 85vh;
  overflow-y: auto;
}
.mobile-poll-popup.is-visible {
  bottom: 0;
}
.mobile-poll-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1055;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.mobile-poll-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}
[data-bs-theme="dark"] .mobile-poll-popup {
  background: var(--surface-dark-2);
  border-top: 1px solid var(--line);
}
[data-bs-theme="dark"] .mobile-poll-popup .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Botão Flutuante de Enquete (Mobile) */
.floating-poll-btn {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) scale(1);
  z-index: 1040;
  background: linear-gradient(135deg, #f8db52, #e5c840);
  color: #111111;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 25px rgba(248, 219, 82, 0.35);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: floatBreathe 2.5s infinite ease-in-out;
}
.floating-poll-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px) scale(0.9);
}
@keyframes floatBreathe {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.05);
  }
}
[data-bs-theme="dark"] .floating-poll-btn {
  box-shadow: 0 8px 25px rgba(248, 219, 82, 0.15);
}

/* Layouts: mais lidas */
.trending-item--compact {
  display: block;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.trending-item--compact:first-child {
  border-top: 0;
  padding-top: 0;
}

.trending-item--compact strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.trending-item--compact small {
  color: var(--muted);
  font-size: 0.72rem;
}

.trending-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.trending-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  transform: translateY(-1px);
}

.trending-card__rank {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.trending-card__title {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.trending-card__meta {
  font-size: 0.74rem;
  color: var(--muted);
}

/* Layouts: jogos */
.game-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}

.game-line:first-child {
  border-top: 0;
  padding-top: 0;
}

.game-line__league {
  grid-column: 1 / -1;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.game-line__team {
  display: flex;
  align-items: center;
  gap: 6px;
}

.game-line__shield {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.game-line__score {
  font-weight: 900;
  text-align: center;
}

.game-line time {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: right;
}

.game-table {
  width: 100%;
  font-size: 0.82rem;
}

.game-table th,
.game-table td {
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.game-table th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.game-table small {
  color: var(--muted);
}

/* Layouts: enquete */
.poll-options--classic .poll-option--classic {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--surface-muted) !important;
  text-align: left;
  font-weight: 700;
}

.poll-options--minimal .poll-option--minimal {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 8px 0;
  border: 0 !important;
  border-top: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.poll-options--minimal .poll-option--minimal:first-child {
  border-top: 0 !important;
}

/* Admin: widgets e carrossel */
.widgets-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.widget-admin-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.widget-admin-card h4 {
  margin: 0 0 12px;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.widget-admin-preview {
  margin-top: 12px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.widget-admin-preview .widget-card {
  box-shadow: none;
}

@media (max-width: 992px) {
  .widgets-admin-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Rodapé ---- */

.site-footer {
  padding: 24px 16px;
  margin-top: 48px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
}

/* ---- Artigo ---- */

.article-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px);
  overflow: hidden;
}

.article-shell .news-meta span:first-child {
  background: var(--accent);
  color: var(--accent-ink);
}

.article-shell h1 {
  font-family: var(--font-ui);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-top: 8px;
}

.article-image,
.article-fallback {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  margin: 28px 0;
  object-fit: cover;
  background: linear-gradient(135deg, var(--nav), #404040);
  box-shadow: var(--shadow-soft);
}

.article-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.28);
  font-size: 6rem;
  font-weight: 900;
}

.article-body {
  font-family: var(--font-editorial);
  font-size: clamp(1.15rem, 2vw, 1.28rem);
  line-height: 1.8;
  color: var(--ink);
}

/* Restringe a largura apenas do texto (Leitura confortável) */
.article-body p,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body ul,
.article-body ol,
.article-body blockquote {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* O primeiro parágrafo atua como Linha Fina (Lead) para matérias RSS */
.article-body > p:first-of-type {
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
}

.article-body p {
  margin-bottom: 1.8em;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
}

/* Efeito de Letra Capitular (Dropcap) Sofisticado */
.article-body p.dropcap::first-letter {
  float: left;
  font-size: 3.8rem;
  line-height: 0.85;
  padding-top: 6px;
  padding-right: 8px;
  padding-left: 2px;
  font-weight: 900;
  color: var(--ink);
  text-transform: uppercase;
}

.article-body blockquote {
  font-family: var(--font-editorial);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ink);
  border-left: 4px solid var(--accent);
  padding: 18px 24px;
  margin: 2.5em auto;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent) 5%, transparent),
    transparent
  );
  border-radius: 0 12px 12px 0;
}

.article-body blockquote p {
  margin-bottom: 0;
}

.article-byline {
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

.article-byline__author strong {
  color: var(--ink);
  font-weight: 700;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.share-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--muted);
  transition: all 0.2s ease;
}

.share-btn svg {
  width: 16px;
  height: 16px;
}

.share-btn:hover {
  color: #ffffff;
}
.share-btn--whatsapp:hover {
  background: #25d366;
}
.share-btn--twitter:hover {
  background: #14171a;
}
.share-btn--facebook:hover {
  background: #1877f2;
}

.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--accent);
  width: 0;
  z-index: 1050;
  transition: width 0.1s linear;
}

/* ---- Admin ---- */

body.admin-body {
  background: #f4f6f8;
  position: relative;
  overflow-x: hidden;
}

/* Orbes Líquidos no Fundo do Admin (Liquid Glass Background) */
body.admin-body::before,
body.admin-body::after {
  content: "";
  position: fixed;
  width: max(50vw, 500px);
  height: max(50vw, 500px);
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  animation: floatOrbs 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.5; /* Mais vibrante para garantir visibilidade */
  pointer-events: none;
}

body.admin-body::before {
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -15%;
  left: -10%;
}

body.admin-body::after {
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  bottom: -15%;
  right: -10%;
  animation-delay: -10s;
  animation-direction: alternate-reverse;
}

/* Navbar Admin Premium */
.admin-glass-nav {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.admin-glass-nav .navbar-brand {
  color: #111 !important;
}

/* ---- Estilos Apple/macOS para Campos e Selects ---- */
.admin-body .form-control,
.admin-body .form-select {
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
  background-color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  transition: all 0.25s ease;
}

.admin-body .form-control:focus,
.admin-body .form-select:focus {
  background-color: #ffffff;
  border-color: var(--accent) !important;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent),
    inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
  transform: translateY(-2px); /* Efeito Zen de elevação ao focar/digitar */
}

/* ---- Uploader de Imagem Premium ---- */
.admin-body input[type="file"] {
  padding: 8px !important;
  border: 2px dashed rgba(0, 0, 0, 0.15) !important;
  color: var(--ink-soft);
  cursor: pointer;
}
.admin-body input[type="file"]:focus {
  border-style: solid !important;
}
.admin-body input[type="file"]::file-selector-button {
  background: linear-gradient(180deg, #2e2e2e 0%, #151515 100%);
  color: #ffffff;
  border: 1px solid #000;
  padding: 8px 16px;
  border-radius: 8px;
  margin-right: 14px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}
.admin-body input[type="file"]::file-selector-button:active {
  transform: scale(0.95); /* Efeito tátil de afundamento (haptic) */
}

.admin-body input[list],
.admin-body .form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23444444' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 14px 12px !important;
  padding-right: 2.5rem !important;
}

/* ---- Botões Estilo Apple (Admin Premium) ---- */
.admin-body .btn {
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none !important;
  border-radius: 10px !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.admin-body .btn:active {
  transform: scale(0.96);
}

.admin-body .btn-accent,
.admin-body .btn-dark {
  background: linear-gradient(180deg, #2e2e2e 0%, #151515 100%) !important;
  border: 1px solid #000000 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.admin-body .btn-accent:hover,
.admin-body .btn-dark:hover {
  background: linear-gradient(180deg, #3a3a3a 0%, #1c1c1c 100%) !important;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-1px);
}

.admin-body .btn-outline-secondary {
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #333 !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.admin-body .btn-outline-secondary:hover {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
  color: #000 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.admin-body .btn-outline-danger {
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(220, 38, 38, 0.2) !important;
  color: #dc2626 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.admin-body .btn-outline-danger:hover {
  background: #fef2f2 !important;
  border-color: rgba(220, 38, 38, 0.4) !important;
  color: #b91c1c !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.1);
}

/* Estilo Liquid Glass para os Painéis do Admin */
.admin-body .admin-panel,
.admin-body .admin-section,
.admin-body .card {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08) !important;
}

.admin-body .admin-subcard {
  background: rgba(255, 255, 255, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
}

.admin-body .admin-section__head {
  background: rgba(255, 255, 255, 0.25) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.admin-shell {
  max-width: 1280px;
  position: relative;
  z-index: 2;
}

.admin-tab-panels {
  min-height: 200px;
}

.admin-page-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.admin-page-header__title {
  margin: 0 0 6px;
  font-family: var(--font-ui);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.admin-page-header__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 640px;
}

.admin-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 88px;
}

.admin-section {
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.admin-section__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.admin-section .accordion-button {
  padding: 18px 22px;
  background: linear-gradient(
    180deg,
    var(--surface-muted) 0%,
    var(--surface) 100%
  );
  color: var(--ink);
  box-shadow: none !important;
}
.admin-section .accordion-button:not(.collapsed) {
  border-bottom: 1px solid var(--line);
}
.admin-section .accordion-button::after {
  filter: grayscale(1) opacity(0.5);
}
.admin-section .accordion-item {
  border: none;
  background: transparent;
}

.admin-section__badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--nav);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-section__title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.admin-section__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.admin-section__body {
  padding: 20px 22px 22px;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-grid-2--uneven {
  grid-template-columns: 1fr 1fr;
}

.admin-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-subcards {
  display: grid;
  gap: 14px;
}

.admin-subcard {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.admin-subcard--wide {
  grid-column: 1 / -1;
}

.admin-subcard__title {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.admin-check:last-child {
  margin-bottom: 0;
}

.admin-sticky-bar {
  position: sticky;
  bottom: 24px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 40px auto 0;
  max-width: fit-content;
  padding: 16px 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);

  /* Animação Contextual Oculta */
  transform: translateY(150px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.admin-sticky-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.admin-split {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.admin-split__form {
  position: sticky;
  top: 88px;
}

.admin-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.admin-panel--single {
  max-width: 900px;
}

.admin-panel__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-panel h1 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.admin-tabs .nav-link {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm) !important;
  margin-right: 0;
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
}

.admin-tabs .nav-link.active {
  background: var(--nav);
  border-color: var(--nav);
  color: #ffffff;
}

.admin-tabs .nav-link:hover:not(.active) {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.image-preview {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.image-preview.compact {
  max-width: 220px;
  aspect-ratio: 3 / 1;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fundo-config {
  padding: 0;
  border: 0;
  background: transparent;
}

.home-switches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-switches--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 992px) {
  .admin-grid-2,
  .admin-grid-2--uneven,
  .admin-grid-3,
  .admin-subcards.admin-grid-2 {
    grid-template-columns: 1fr;
  }

  .admin-subcard--wide {
    grid-column: auto;
  }

  .admin-split {
    grid-template-columns: 1fr;
  }

  .admin-split__form {
    position: static;
  }

  .home-switches--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .carousel-model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.home-switches label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  font-weight: 700;
  cursor: pointer;
}

.home-help {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--accent) 12%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.config-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

#form-enquete.admin-grid-2 {
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
}

/* ---- Editor de texto (admin) ---- */

.rich-editor-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.editor-toolbar__btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.editor-toolbar__btn:hover,
.editor-toolbar__btn.is-active {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, white);
}

.editor-toolbar__sep {
  width: 1px;
  height: 28px;
  background: var(--line);
  margin: 3px 2px;
}

.rich-editor {
  min-height: 220px;
  max-height: 420px;
  overflow-y: auto;
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
  outline: none;
}

.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
  pointer-events: none;
}

.rich-editor p {
  margin: 0 0 0.85em;
}

.rich-editor ul,
.rich-editor ol {
  margin: 0 0 0.85em;
  padding-left: 1.4em;
}

.image-source-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.image-source-tab {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.image-source-tab.is-active {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, white);
  color: var(--ink);
}

.article-body strong,
.article-body b {
  font-weight: 800;
}

.article-body em,
.article-body i {
  font-style: italic;
}

.article-body u {
  text-decoration: underline;
}

.article-body s,
.article-body strike {
  text-decoration: line-through;
}

.article-body h2,
.article-body h3 {
  font-family: var(--font-editorial);
  font-weight: 800;
  margin: 1.2em 0 0.5em;
  color: var(--ink);
}

.article-body h2 {
  font-size: 1.45rem;
}
.article-body h3 {
  font-size: 1.2rem;
}

.article-body a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: all 0.25s ease;
}
.article-body a:hover {
  background-color: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
}

.article-body ul,
.article-body ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

/* Estilo Editorial Premium para a Lista de Tópicos Gerada pela IA */
.article-body h5 {
  font-family: var(--font-ui);
  font-weight: 850;
  font-size: 1.3rem;
  margin: 1.8em 0 1em;
  color: var(--ink);
}

.article-body ul {
  background-color: var(--surface-muted);
  border-left: 4px solid var(--accent);
  padding: 24px 24px 24px 44px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 2.2em;
  font-family: var(--font-ui);
}

.article-body li {
  margin-bottom: 0.5em;
}

.article-body figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 10px;
  font-style: italic;
  font-family: var(--font-ui);
}

/* Uniformização de Vídeos Embutidos (YouTube) no corpo da matéria */
.article-body iframe {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  border: none;
  box-shadow: var(--shadow-soft);
  margin: 2.5em auto;
  background: #000000;
  display: block;
}

.article-body img,
.article-body figure {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: var(--radius-md);
  margin: 2.5em auto;
  display: block;
}

.article-meta-info {
  font-size: 0.85rem;
}

/* Zoom de Imagens do Artigo (Lightbox Mágico) */
.article-body img {
  cursor: zoom-in;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}
.article-body img.is-zoomed {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  max-width: 90vw !important;
  max-height: 90vh !important;
  z-index: 1060 !important;
  cursor: zoom-out;
  border-radius: 12px !important;
  margin: 0 !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4) !important;
}

.home-layout-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.layout-chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px dashed #d4d4d4;
  background: #f5f5f5;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.layout-chip.is-on {
  border-style: solid;
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, white);
  color: var(--ink);
}

.layout-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.home-destaques-preview .destaques-list {
  display: grid;
  gap: 10px;
}

.destaque-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.destaque-item strong {
  display: block;
  margin-bottom: 4px;
}

.destaque-item span {
  color: var(--muted);
  font-size: 0.84rem;
}

.carousel-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.carousel-picker-count {
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, white);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
}

.carousel-picker-hint {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.carousel-picker-list {
  display: grid;
  gap: 8px;
  min-height: 120px;
}

.carousel-picker-list--scroll {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.carousel-picker-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.carousel-picker-item.is-selected {
  grid-template-columns: auto 1fr auto;
}

.carousel-picker-item.is-selected {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, white);
}

.carousel-picker-pos {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--nav);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
}

.carousel-picker-copy {
  min-width: 0;
}

.carousel-picker-copy strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.92rem;
  line-height: 1.3;
}

.carousel-picker-copy span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.carousel-picker-actions {
  display: flex;
  gap: 6px;
}

.carousel-picker-alert {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.admin-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
}

.poll-result,
.admin-game-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.admin-game-row span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.table {
  --bs-table-bg: transparent;
}

.table thead th {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--line);
}

.btn-outline-dark,
.btn-outline-secondary,
.btn-outline-danger {
  border-radius: var(--radius-sm) !important;
  font-weight: 700;
}

.btn-outline-dark:hover {
  background: var(--nav);
  border-color: var(--nav);
  color: #fff;
}

/* ---- Login ---- */

body.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #000000 0%, #1a1a1a 50%, #050505 100%);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Fundo Vivo Estilo Gemini (Orbes Animados) */
body.login-page::before,
body.login-page::after {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  animation: floatOrbs 18s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.4;
}

body.login-page::before {
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent) 60%, transparent) 0%,
    transparent 70%
  );
  top: -10%;
  left: -10%;
}

body.login-page::after {
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent) 50%, transparent) 0%,
    transparent 70%
  );
  bottom: -10%;
  right: -10%;
  animation-delay: -9s;
  animation-direction: alternate-reverse;
}

@keyframes floatOrbs {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(10vw, -10vh, 0) scale(1.1);
  }
  66% {
    transform: translate3d(-10vw, 10vh, 0) scale(0.9);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.login-shell {
  width: min(440px, calc(100% - 28px));
}

.login-card {
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 15, 15, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: #ffffff;
  border-radius: 24px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.login-card h1 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.login-card p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.65);
}

.login-card .form-label {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-card .form-control {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  transition: all 0.3s ease;
}

.login-card .form-control:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent) !important;
}

.login-card .form-control::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.login-card .btn-dark {
  background: #ffffff !important;
  color: #000000 !important;
  border: none !important;
  padding: 12px !important;
  transition: all 0.3s ease;
}

.login-card .btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

/* Efeito Shake de Erro na Senha */
.shake-error {
  animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  border: 1px solid rgba(239, 68, 68, 0.5) !important;
}
@keyframes shake {
  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }
  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }
  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }
  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

.back-link {
  display: block;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  color: var(--accent);
}

/* Suaviza a entrada da caixa de "Carregando" para não piscar rápido na tela */
.loading-box {
  opacity: 0;
  animation: fadeInLoading 0.3s 0.15s forwards;
}
@keyframes fadeInLoading {
  to {
    opacity: 1;
  }
}

/* Esconde textos temporários de widgets na index até o JS estar pronto */
body:not(.js-ready) #busca-titulo-display,
body:not(.js-ready) #busca-subtitulo-display,
body:not(.js-ready) .widget-card__head h2,
body:not(.js-ready) .widget-card__head p {
  color: transparent !important;
}

.loading-box,
.empty-box {
  padding: 28px;
  border: 1px dashed color-mix(in srgb, var(--accent) 30%, #cbd5e1);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
  background: var(--surface-muted);
}

/* ---- Skeleton Loading ---- */
.skeleton-item {
  pointer-events: none;
}

.skeleton {
  background-color: #e5e5e5;
  background-image: linear-gradient(90deg, #e5e5e5, #f5f5f5, #e5e5e5);
  background-size: 200px 100%;
  background-repeat: no-repeat;
  animation: skeleton-shine 1.5s linear infinite;
}

.skeleton-text {
  border-radius: 4px;
}

@keyframes skeleton-shine {
  from {
    background-position: -200px 0;
  }
  to {
    background-position: calc(100% + 200px) 0;
  }
}

.side-panel .empty-box,
.side-panel .loading-box {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.65);
}

/* ---- Responsivo ---- */

@media (max-width: 992px) {
  .hero-carousel--editorial {
    grid-template-columns: 1fr;
  }

  .hero-carousel__split-link {
    grid-template-columns: 1fr;
  }

  .carousel-model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-carousel__chrome {
    padding: 14px 16px 16px;
  }

  .hero-carousel__thumbs {
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 78%);
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }

  .hero-carousel__thumb {
    scroll-snap-align: start;
  }
}

@media (max-width: 768px) {
  .home-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .toolbar-form {
    grid-template-columns: 1fr;
  }

  #busca,
  #busca-admin,
  .admin-search-form input[type="search"] {
    font-size: 0.85rem !important;
    padding: 14px 18px 14px 45px !important;
  }
  #busca::placeholder,
  #busca-admin::placeholder,
  .admin-search-form input[type="search"]::placeholder {
    font-size: 0.85rem !important;
  }

  .news-item {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 0;
    overflow: hidden;
  }

  .thumb-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .thumb-wrapper img,
  .thumb,
  .thumb-fallback {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: unset;
  }

  /* Espaçamento interno da área de texto do card no mobile */
  .news-item > div.d-flex {
    padding: 16px;
  }

  .hero-carousel--h-baixo {
    --carousel-stage-min: 220px;
  }
  .hero-carousel--h-medio {
    --carousel-stage-min: 260px;
  }
  .hero-carousel--h-alto {
    --carousel-stage-min: 300px;
  }
  .hero-carousel--h-extra {
    --carousel-stage-min: 340px;
  }

  .carousel-model-grid {
    grid-template-columns: 1fr;
  }

  .hero-carousel__overlay {
    max-width: 100%;
    padding: 24px 20px 22px;
  }

  .hero-carousel__title {
    font-size: 1.2rem;
    line-height: 1.15;
  }

  .hero-carousel__excerpt {
    -webkit-line-clamp: 2;
    font-size: 0.86rem;
  }

  .hero-carousel--card .hero-carousel__overlay {
    margin: 12px;
    padding: 20px;
  }

  .sticky-sidebar {
    position: static;
  }

  .home-switches,
  .home-switches--compact {
    grid-template-columns: 1fr;
  }

  #form-enquete.admin-grid-2 {
    grid-template-columns: 1fr;
  }

  .admin-sticky-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .carousel-model-grid {
    grid-template-columns: 1fr;
  }

  .article-meta-info {
    font-size: 0.65rem !important;
  }
  .article-meta-info svg {
    width: 12px !important;
    height: 12px !important;
  }

  /* --- Otimizações Premium para Admin Mobile --- */

  /* 1. Previne zoom automático do iOS e aumenta a área de toque */
  .admin-body .form-control,
  .admin-body .form-select,
  .rich-editor {
    font-size: 16px !important;
    padding: 14px 16px !important;
  }

  /* 2. Barra de salvamento sempre visível (Sticky Action Bar) */
  #form-noticia > .d-flex.gap-2.mt-4 {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 !important;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08);
    z-index: 1050;
  }
  [data-bs-theme="dark"] #form-noticia > .d-flex.gap-2.mt-4 {
    background: rgba(18, 18, 18, 0.85);
    border-top-color: rgba(255, 255, 255, 0.08);
  }
  #form-noticia {
    padding-bottom: 90px; /* Dá espaço para o formulário não esconder sob a barra fixa */
  }

  /* 3. Editor expande naturalmente junto com o texto (Sem scroll duplo) */
  .rich-editor {
    max-height: none !important;
    height: auto;
    min-height: 250px;
  }

  /* 4. Converte a tabela de "Matérias Ativas" em Cards */
  .admin-body .table-responsive {
    border: none;
  }
  .admin-body .table thead {
    display: none;
  }
  .admin-body .table tbody tr {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  }
  .admin-body .table tbody td {
    display: block;
    border: none;
    padding: 4px 0;
    text-align: left !important;
  }
  .admin-body .table tbody td img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
  }
  .admin-body .table tbody td .btn-group {
    width: 100%;
    margin-top: 12px;
  }
  .admin-body .table tbody td .btn-group .btn {
    flex: 1;
    padding: 12px !important;
    font-size: 0.95rem;
  }
}

/* Botão de Play Responsivo */
.live-play-wrapper {
  top: 50%;
}
.live-play-btn {
  width: 64px;
  height: 64px;
  background: rgba(225, 6, 0, 0.9);
  box-shadow: 0 0 20px rgba(225, 6, 0, 0.6);
  animation: pulse-dot 1.5s infinite;
}
.live-play-btn svg {
  width: 32px;
  height: 32px;
  margin-left: 4px;
}

/* Efeitos Premium para Lives no YouTube */
.hero-carousel__kicker--live {
  background: #e10600 !important;
  color: #ffffff !important;
  border: 1px solid #ff4d4d;
  box-shadow: 0 0 15px rgba(225, 6, 0, 0.6);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: live-glow 2s infinite alternate;
}

/* Ajustes Responsivos do Botão de Play no Mobile */
@media (max-width: 768px) {
  .live-mobile-overlay {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.25);
  }
  .live-play-wrapper {
    top: 35% !important; /* Ajuste equilibrado para centralizar melhor a imagem no mobile */
  }
  .live-play-btn {
    width: 52px !important;
    height: 52px !important;
  }
  .live-play-btn svg {
    width: 26px !important;
    height: 26px !important;
    margin-left: 3px !important;
  }
}

.hero-carousel__thumb-kicker--live {
  color: #ff4d4d !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.live-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

.hero-carousel__thumb-kicker--live .live-pulse {
  background-color: #ff4d4d;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes live-glow {
  from {
    box-shadow: 0 0 10px rgba(225, 6, 0, 0.4);
  }
  to {
    box-shadow: 0 0 20px rgba(225, 6, 0, 0.8);
  }
}

/* ---- Alertas e Toasts (Admin Premium) ---- */
.premium-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-left: 5px solid #10b981; /* Verde Sucesso */
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 9999;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Efeito elástico */
}

.premium-toast.danger {
  border-left-color: #f43f5e; /* Vermelho Erro */
}

.premium-toast.show {
  transform: translateX(0);
  opacity: 1;
}
