body {
  font-family: 'Montserrat', sans-serif !important;
}

header {
  padding: 48px 0 28px;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: .5rem;
}

header p {
  font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

p, .title {
  font-weight: 400;
}

.font-weight-normal {font-weight: 400 !important;}


    /* Barra de busca fixa */
    .search-bar.sticky-top {
      background: #f8f9fa;
      border-top: 1px solid #e9ecef;
      border-bottom: 1px solid #e9ecef;
      z-index: 1030;
    }
    .search-bar .container { padding-top: .75rem; padding-bottom: .75rem; }

    /* Card base */
    .link-card {
      border: 1px solid #e9ecef;
      border-radius: 10px;
      overflow: hidden;
      transition: transform .15s ease, box-shadow .15s ease;
      background: #fff;
      height: 100%;
      display: flex;
      flex-direction: column;
    }
    .link-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 18px rgba(0,0,0,.06);
    }

    .thumb {
      width: 100%;
      aspect-ratio: 1 / 1;
      object-fit: cover;
      display: block;
    }

    .header {
    display: flex;
    flex-direction: column;
    align-items: center;
    }

    .title {
      text-align: center;
      margin: .5rem 0 .8rem;
      color: #212529;
      padding: 0 .4rem;
      font-size: 0.9rem;
    }

    /* Seção destaque */
    section.featured-section {
      background: #f0f6ff;
      padding: 40px 0;
    }
    .featured-grid {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 16px;
    }
    /* Featured grid com 6 colunas no desktop */
.featured-grid .link-item {
  flex: 0 0 calc(16.666% - 16px);
  max-width: calc(16.666% - 16px);
}

@media (max-width: 991.98px) {
  .featured-grid .link-item {
    flex: 0 0 calc(33.333% - 16px); /* 3 colunas no tablet */
    max-width: calc(33.333% - 16px);
  }
}

@media (max-width: 767.98px) {
  .featured-grid .link-item {
    flex: 0 0 calc(50% - 16px); /* 2 colunas no mobile */
    max-width: calc(50% - 16px);
  }
}

    .link-card.featured .title {
      font-weight: 600;
    }

    /* Cards normais */
    .link-card.normal {
      flex-direction: row;
      align-items: center;
      padding: .5rem;
    }
    .link-card.normal .thumb {
      width: 70px;
      height: 70px;
      flex-shrink: 0;
      border-radius: 8px;
    }
    .link-card.normal .title {
      margin: 0 0 0 .75rem;
      text-align: left;
      font-size: .9rem;
      font-weight: 500;
    }

    /* Footer */
    footer {
      font-size: .75rem;
      text-align: center;
      color: #6c757d;
      padding: 18px 0 2px;
      border-top: 1px solid #e9ecef;
      margin-top: 36px;
    }


/* ====== Dark Theme ====== */
body {
  background: #121212 !important;
  color: #e0e0e0;
}

header {
  background: #1e1e1e; /* Fallback sólido para navegadores muito antigos */
  background: -webkit-radial-gradient(circle at 50% 50%, #003b55, #002e44, #002233, #001623, #000b14, #000307, #000001, #000000);
  background: -moz-radial-gradient(circle at 50% 50%, #003b55, #002e44, #002233, #001623, #000b14, #000307, #000001, #000000);
  background: radial-gradient(circle at 50% 50%, #003b55, #002e44, #002233, #001623, #000b14, #000307, #000001, #000000);
  color: #e0e0e0 !important;
}

header p {
  color: #9e9e9e !important;
}

.search-bar.sticky-top {
  background: #1e1e1e !important;
  border-top: 1px solid #2c2c2c;
  border-bottom: 1px solid #2c2c2c;
}

#searchInput {
  text-align: center;
}

.form-control {
  background-color: #2c2c2c !important;
  border: 1px solid #3a3a3a !important;
  color: #e0e0e0 !important;
}
.form-control::placeholder {
  color: #9e9e9e !important;
}

/* Cards */
.link-card {
  background: #1e1e1e !important;
  border: 1px solid #2c2c2c !important;
}
.link-card .title {
  color: #e0e0e0 !important;
}
.link-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.4) !important;
}

/* Featured section */
section.featured-section {
  background: #181818 !important;
}

/* Footer */
footer {
  background: #1e1e1e !important;
  border-top: 1px solid #2c2c2c !important;
  color: #9e9e9e !important;
}

/*---------------------------------*/


.live {
  background: #2957a4 !important;
    border: 2px solid #2957a4 !important;
}

body.empty-results {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.empty-results main {
  flex: 1;
}

body.empty-results footer {
  margin-top: auto;
}

/* ---------------------------
   Custom scrollbar (cross-browser)
   Thumb color: #2957a4
   Track/background: #000
   --------------------------- */

/* -------- WebKit browsers (Chrome, Edge Chromium, Safari, Opera) -------- */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background-color: #2957a4;
  border-radius: 10px;
  border: 3px solid #000;
  min-height: 28px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #3b73c8;
}

::-webkit-scrollbar-thumb:active {
  box-shadow: 0 0 0 3px rgba(41,87,164,0.12);
}

/* ===== Scrollbar ===== */
  /* Firefox */
  * {
    scrollbar-width: auto;
    scrollbar-color: #2957a4 #0f0f0f;
  }

  /* Chrome, Edge, and Safari */
  *::-webkit-scrollbar {
    width: 16px;
  }

  *::-webkit-scrollbar-track {
    background: #0f0f0f;
  }

  *::-webkit-scrollbar-thumb {
    background-color: #2957a4;
    border-radius: 10px;
    border: 3px solid #000000;
  }

/* -------- Botões de idioma -------- */

.lang-switch {
  position: absolute;
  top: 15px;
  right: 20px;
  display: flex;
  gap: 8px;
}

.lang-btn {
  text-decoration: none;
  font-size: 1.2rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.lang-btn:hover {
  opacity: 1;
}

.lang-btn.active {
  opacity: 1;
  font-weight: bold;
}
