:root {
    --bg: #1a1d24;
    --card-bg: #252a33;
    --accent: #007BFF;
    --accent-hover: #0088cc;
    --text-light: #f0f0f5;
    --text-muted: #a0a0b0;
    --border-color: #353a43;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --font-family-main: 'Inter', sans-serif;
    --border-radius-md: 8px;
    --border-radius-sm: 4px;
  }

.filtros-container input, .filtros-container select {
    padding: 0.6rem 0.8rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    background: #2f3542; /* Um pouco mais claro para inputs */
    color: var(--text-light);
    font-family: var(--font-family-main);
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

.filtros-container input:focus , .filtros-container select:focus{
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-hover);
  }

  #grid, .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); /* Cards um pouco maiores */
    gap: 1.5rem;
    padding: 1.5rem;
    flex: 1;
  }
  /* Mensagens de estado para o grid */
  .grid-message {
      grid-column: 1 / -1; /* Ocupa todas as colunas */
      text-align: center;
      font-size: 1.1rem;
      color: var(--text-muted);
      padding: 2rem;
  }

  .card {
    background: var(--bg);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-height: 250px;
  }

  .card:hover, .radio-thumbnail img:hover, .cardFilmes:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 10px 5px rgb(0, 170, 255);
  }
.card-image-container {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #252a33 0%, #1e2228 100%);
  border-radius: 12px;
}

.loader-modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 1.2em;
}

.loader-spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1.5s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.card img {
  max-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 16px;
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
  .card-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .card-content h2 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
  }

  .meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
  }

  .card:hover {
    cursor: pointer;
  }

  .current-program {
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.8rem;
    padding: 5px 8px;
    border-radius: 4px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    #grid {
    grid-template-columns: 1fr 1fr;
  }
}