@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Montserrat:wght@600&display=swap');

:root {
  /* 🎯 DARK como padrão */
  --body-bg: #1a1d2e;
  --card-bg: #23272f;
  --hover-bg: #282c34;
  --accent: #2f93ff;
  --accent-hover: #0088cc;
  --text-light: #f0f0f5;
  --text-muted: #a0a0b0;
  --border-color: #353a43;
  --shadow-color: rgba(0, 0, 0, 0.4);
  --surface-color: #1E1E1E;
  --primary-text-color: #E0E0E0;
  --secondary-text-color: #B0B0B0;
  --success-color: #03DAC5;
  --error-color: #CF6679;
  --font-family-main: 'Poppins', sans-serif; 
  --font-heading: 'Montserrat', sans-serif;
  --border-radius-md: 8px;
  --border-radius-sm: 4px;
}

html[data-theme='light'] {
  /* 🌞 LIGHT como alternativo */
  --body-bg: #e9ecf1;
  --card-bg: #f8faff;
  --hover-bg: #f1f4f8;
  --accent: #0056d2;
  --accent-hover: #0041a8;
  --text-light: #1c1c28;
  --text-muted: #5a5a6a;
  --border-color: #d6dae2;
  --shadow-color: rgba(0, 0, 0, 0.2);
  --surface-color: #ffffff;
  --primary-text-color: #2b2b2b;
  --secondary-text-color: #555a66;
  --success-color: #00b894;
  --error-color: #d63031;
}

body {
  margin: 0;
  padding: 0;
  color: var(--text-light);
  font-family: var(--font-family-main);
}

h1, h2, h3 {
  font-family: var(--font-heading);
}

/* Estilos para o Toggle Switch */
.fieldSwitch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--body-bg);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--card-bg);
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--accent);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--accent);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

  .modal.is-active .modal-background {
    background-color: rgba(10, 10, 10, 0.86);
  }

  .modal-content {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 420px;
    margin: 0 auto;
    padding: 40px !important;
  }

  .modal-close {
    background-color: rgba(30, 30, 30, 0.5);
    color: var(--primary-text-color);
  }

  .modal-close:hover {
    background-color: rgba(40, 40, 40, 0.7);
  }

  .subtitle {
    color: var(--primary-text-color) !important;
    font-weight: 500;
    margin-bottom: 2rem !important;
  }

  .box {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: none;
  }

  .box .title {
    color: var(--primary-text-color) !important;
  }

  .box p {
    color: var(--secondary-text-color);
  }

  .google-btn {
    background-color: #FFFFFF;
    color: #333333;
    border: 1px solid #DDDDDD;
    font-weight: 600;
    transition: background-color 0.3s, box-shadow 0.3s;
  }

  .google-btn:hover {
    background-color: #F8F8F8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .divider {
    color: var(--secondary-text-color);
    font-weight: 600;
    margin: 1.5rem 0;
  }

  .label {
    color: var(--secondary-text-color);
    font-weight: 500;
  }

  .input {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--primary-text-color);
    border-radius: 6px;
    transition: border-color 0.3s, box-shadow 0.3s;
  }

  .input::placeholder {
    color: var(--secondary-text-color);
  }

  .input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.125em rgba(98, 0, 238, 0.25);
  }

  #resendTimer {
    color: var(--secondary-text-color);
    font-size: 0.9rem;
  }

.section, body{
  background: var(--body-bg);
  min-height: 100vh;
}

html {
    background: var(--body-bg) !important;
}

.title {
  color: var(--primary-text-color);
}

@supports (-webkit-touch-callout: none) {
  body::after {
    content: "";
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: env(safe-area-inset-bottom, 20px);
    background-color: #000000; /* Cor preta */
    z-index: 9999;
  }
}

#loaderContainer {
  position: fixed;
  inset: 0; /* Equivalente a: top: 0; right: 0; bottom: 0; left: 0; */
  z-index: 10000;
  background-color: rgba(10, 12, 16, 0.7);
  backdrop-filter: blur(5px); /* Efeito de vidro fosco (moderno!) */
  -webkit-backdrop-filter: blur(5px); /* Para Safari */
  
  display: flex;
  justify-content: center;
  align-items: center;
  
  /* Controla a visibilidade com opacidade para transições suaves */
  opacity: 0;
  pointer-events: none; /* Não interage com o mouse quando invisível */
  transition: opacity 0.3s ease-in-out;
}

/* Classe para mostrar o loader */
#loaderContainer.is-loading {
  opacity: 1;
  pointer-events: auto; /* Permite que o overlay bloqueie cliques */
}

/* Estilo do Spinner */
#loaderContainer .loaderNosso i {
  font-size: 48px; /* Um pouco maior */
  color: #ffffff;
  animation: spin 1s linear infinite;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3); /* Um brilho sutil */
}


.menu-item i {
  font-size: 24px;
  padding: 5px 0;
}

.mobile-menu i {
  font-size: 24px;
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.sidebar {
  background-color: var(--card-bg);
  padding: 1rem;
  width: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1;
  border-right: 1px solid var(--border-color);
}

.main-content {
margin-left: 60px;
transition: margin-left 0.3s ease;
}

.skeleton {
  background-color: var(--card-bg);
  background-image: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--text-light) 5%, transparent),
    transparent
  );
  background-size: 40px 100%;
  background-repeat: no-repeat;
  background-position: left -40px top 0;
  animation: skeleton-shine 1.2s ease-in-out infinite;
  border-radius: var(--border-radius-sm);
}

@keyframes skeleton-shine {
  to {
    background-position: right -40px top 0;
  }
}

/* Container de uma seção de esqueleto */
.skeleton-section {
  margin-bottom: 2.5rem; /* Idêntico ao .genre-section para evitar saltos */
  padding-top: 1rem;
}

/* Simula o título da categoria */
.skeleton-title {
  height: 32px; /* Altura aproximada do título real */
  width: 40%;
  max-width: 250px; /* Largura para parecer um título */
  margin-bottom: 1rem;
  margin-left: 1rem;
  border-radius: 8px;
}

/* Simula o container do carrossel */
.skeleton-carousel {
  display: flex;
  gap: 16px; /* Idêntico ao .radio-carousel */
  padding: 0.5rem 1rem; /* Idêntico ao .radio-carousel */
  overflow: hidden; /* Importante para não mostrar uma barra de rolagem */
}

/* Simula um card de rádio */
.skeleton-card {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 12px;
}

.section-content {
  display: none;
}

.section-content.active {
  display: block;
}

.menu-list a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--primary-text-color);
}

.menu-list li {
  list-style: none;
  margin: 0.5rem 0;
}

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

.player-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.control-button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.control-button:active {
  transform: scale(0.9);
}

.control-button i {
  pointer-events: none;
}

.column.is-one-third {max-width: 100%;margin: auto;}

.player-fixed {
  position: fixed;
  bottom: 0;
  left: 60px;
  width: calc(100% - 60px);
  background: linear-gradient(270deg, var(--card-bg), var(--hover-bg), var(--card-bg));
  color: var(--text-light);
  padding: 0.5rem 1rem;
  z-index: 1001;
  box-shadow: 0 -2px 5px 2px var(--shadow-color);
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 1s ease, transform 1s ease;
  background-size: 200% 200%;
  animation: gradientMove 6s ease-in-out infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.loading-overlay {
position: relative;
}

.loading-overlay::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;  /* mantém o formato da div */
  background: rgba(255, 255, 255, 0.3);
  animation: pulse 1s ease-in-out infinite;
}

button span, button i {
  pointer-events: none;
}

.player-fixed.show {opacity: 1;transform: translateY(0);}
.radio-details {
  font-size: 12px;
  display: inline-block;
}

.player-fixed .controls {
  display: flex;
  align-items: center;
  max-width: 800px;
  margin: auto;
  justify-content: space-between;
}

.radio-detailsModal p {
  margin: 10px 0;
  line-height: 1.6;
  font-size: 1rem;
}

.radio-detailsModal strong {
  color: #555555; 
  font-weight: bold;
}

.radio-detailsModal a {
  color: #007BFF;
  text-decoration: none;
  font-weight: bold;
}

.radio-detailsModal a:hover {
  text-decoration: underline;
}

.radio-detailsModal p:last-child {
  margin-top: 15px;
}

.radio-detailsModal p:first-of-type {
  font-style: italic;
  color: #777777;
}

.player-fixed .radio-info {
  flex: 1;
  text-align: center;
}

.generoFavoritos {
  white-space: nowrap;
  overflow: hidden;
  min-width: 130px;
  max-width: 130px;
  text-overflow: ellipsis;
}

.navbar-search .control.is-expanded {
  position: relative;
}

.navbar-search .icon.is-rigth {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--secondary-text-color);
}

.navbar-search .input {
  padding-left: 2.5rem;
}

.radio-info {
  max-width: 150px;
  text-align: center;
}

.modal-card-foot {
  justify-content: end;
}

.radio-info {
  margin: 10px 0;
}

.radio-name {
  color: var(--primary-text-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 1rem;
  font-weight: bold;
}

#play-pause-button {
  background: none;
  border: none;
  color: #3273dc;
  font-size: 2rem;
  cursor: pointer;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.radio-description {
  color: var(--secondary-text-color);
  margin: 15px auto;
  font-size: 1rem;
  max-width: 800px;
  text-align: center;
  line-height: 1.6;
  font-style: italic;
}

#fotoEmisoraVivo {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

#fotoEmisoraVivo::after {
  content: "Toque para expandir";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  white-space: nowrap;
  display: none;
}

#fotoEmisoraVivo:hover::after {
  display: flex;
}

#fotoEmisoraVivo:hover {
  transform: scale(1.1);
}
.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #ff5252;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ff5252;
  animation: pulse 1.5s infinite;
}

  input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #64748b;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
  }
  
  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #38bdf8;
    border-radius: 50%;
    cursor: pointer;
  }
  
  input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #38bdf8;
    border-radius: 50%;
    cursor: pointer;
  }

.modal {
  z-index: 1031 !important;
  transition: opacity 0.3s ease;
}

.card-content {
  padding: 1rem;
  background: var(--card-bg);
  border-radius: 0 0 8px 8px;
  border-color: var(--border-color) 1px solid;
}

.modal-background {
  cursor: pointer;
}

button, a, img, .radio-info {
  -webkit-tap-highlight-color: transparent;
}

.modal.is-active {
  opacity: 1;
}

.modal-card {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.radio-modal-image {
  width: 200px;
  border-radius: 12px;
}

.black {
  color: #000000;
}

.toast-notification {
  /* Posicionamento fixo no canto superior direito */
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex; /* Alinha ícone e texto lado a lado */
  align-items: center;
  padding: 15px 20px;
  border-radius: 8px; /* Bordas mais suaves */
  background-color: var(--card-bg); /* Fundo branco para um look mais clean */
  color: var(--text-muted);
  box-shadow: 0 4px 12px var(--shadow-color);
  font-size: 16px;
  z-index: 100000;
  transform: translateX(120%); /* Começa fora da tela */
  transition: transform 0.5s ease-in-out;
  overflow: hidden; 
  max-width: 350px;
  visibility: hidden;
}

/* Estado visível do toast */
.toast-notification.show {
  transform: translateX(0);
  visibility: visible;
}

/* Ícone dentro do toast */
.toast-notification .icon {
  margin-right: 12px;
  font-size: 1.5em; /* Ícone maior e mais visível */
  line-height: 1;
}

/* Barra de progresso na base do toast */
.toast-notification::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  animation: progress-bar 3s linear forwards;
}

/* Animação da barra de progresso */
@keyframes progress-bar {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* Cores e ícones para cada tipo de notificação */

/* Sucesso */
.toast-notification.success {
  border-left: 5px solid #28a745;
}
.toast-notification.success .icon {
  color: #28a745;
}

/* Erro */
.toast-notification.error {
  border-left: 5px solid #dc3545;
}
.toast-notification.error .icon {
  color: #dc3545;
}

/* Informação */
.toast-notification.info {
  border-left: 5px solid #007BFF;
}
.toast-notification.info .icon {
  color: #007BFF;
}

.toast-notification.warning {
  border-left:  #eab308;
}

.toast-notification.warning .icon{
  color:  #eab308;
}

.azul{color: var(--accent); background:none; border: none; cursor: pointer;}
.azul i{font-size: 1.5rem;}

.installPrompt {
  position: fixed;
  bottom: 90px;
  left: 8px;
  right: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-light);
  font-weight: bold;
  padding: 20px;
  box-shadow: 0 4px 8px var(--shadow-color);
  text-align: center;
  z-index: 10000;
  display: none;
  opacity: 0;
  margin: auto;
  max-width: 500px;
}

.installPrompt.show {
  display: block;
  animation: slideIn 0.5s forwards;
  opacity: 1;
}

.installPrompt p {
  margin: 0 0 10px 0;
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#expanded-image-container {
  text-align: center;
  margin-bottom: 15px;
}

#expanded-image {
  border-radius: 12px;
  box-shadow: 0 4px 4px 2px rgba(0, 0, 0, 0.1);
}

hr {
  background-color: var(--border-color);
}

.app-footer {
  background: var(--card-bg);
  color: var(--text-muted);
  padding: 40px 20px;
  text-align: center;
  border-top: var(--border-color) solid 2px;
}

.app-footer a {
  color: var(--accent);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.footer-logo h2 {
  font-size: 1.8rem;
  margin-bottom: 5px;
  color: var(--primary-text-color);
}

.footer-logo p {
  font-size: 1rem;
  margin: 0;
  color: var(--secondary-text-color);
}

.footer-links {
  text-align: center;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a i {
  font-size: 1.5rem;
}

.footer-credits{
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover, .footer-credits:hover {
  color: var(--accent-hover);
  transform: scale(1.1);
}

.footer-links p {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-credits p {
  margin: 5px 0;
  font-size: 1rem;
  color: var(--secondary-text-color);
}

.footer-credits strong {
  color: var(--primary-text-color);
}

.footer-credits small {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.notification-container {
margin-top: 10px;
}

svg path {
      stroke: var(--primary-text-color);
      stroke-width: 1;
      fill: none;
      stroke-dasharray: 500;  
      stroke-dashoffset: 500;
      }
      .animate path {
      animation: desenhar 15s ease forwards;
      }
      svg:hover path {
      stroke-width: 0;
      fill: var(--primary-text-color) !important;
      transition:stroke-width .5s ease;
      }
      @keyframes desenhar {
      to {
        stroke-dashoffset: 0;
      }
      }

.profile-card {
max-width: 480px;
padding: 20px;
display: flex;
justify-content: space-between;
gap: 8px;
}

.avatar {
width: 100px;
height: 100px;
border-radius: 50%;
object-fit: cover;
margin-bottom: 10px;
box-shadow: 0 2px 4px 2px rgba(255, 255, 255, 0.301);
border: solid 2px rgb(193 193 193 / 51%);
}

.google-btn img {
width: 20px;
height: 20px;
}

.bio.empty {
color: #999;
font-style: italic;
}

.section {
  padding: 0 !important;
  max-width: 1320px;
  margin: 0 auto;
}

.singUp {
background: linear-gradient(to right, #485fc7, #6785d0);
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 1rem;
width: 100%;
transition: background 0.3s;
}

.no-scroll {
overflow: hidden;
height: 100vh;
}

.abrir-player {
margin-top: 1rem;
}

.focusable:focus {
outline: none;
box-shadow: 0 0 0 3px #3273dc;
transform: scale(1.05);
transition: transform .2s;
}

.toggle-container {
display: flex;
align-items: center;
margin-bottom: 15px;
}
.toggle-label {
margin: 0 10px;
font-weight: bold;
}
.switch {
position: relative;
display: inline-block;
width: 60px;
height: 28px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: gainsboro;
transition: .4s;
border-radius: 34px;
}
.slider:before {
position: absolute;
content: "";
height: 22px;
width: 22px;
left: 3px;
bottom: 3px;
background-color: white;
transition: .4s;
border-radius: 50%;
}

input:checked + .slider:before {
transform: translateX(32px);
}

.filtros-container {
    position: sticky;
    top: 0;
    width: 100%;
    margin: 0;
    transition: transform 0.4s ease-in-out;
    z-index: 100;
    background: var(--body-bg);
    padding: 1rem;
    display: flex; 
    gap: 16px; 
    justify-content: center; 
    align-items: center;
}

.filtros-container.oculto {
    transform: translateY(-120%);
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.volume-slider {
  width: 100px;
  height: 4px;
  border-radius: 2px;
  background: #ccc;
  cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #555;
  transition: background 0.2s;
}
.volume-slider::-webkit-slider-thumb:hover {
  background: #3273dc;
}

#watch-live-fab {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 999;
  background-color: var(--accent);
  color: white;
  padding: 0.8rem 1.6rem;
  border-radius: 50px; /* Mais arredondado para um look de "pílula" */
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none; /* Remover sublinhado do link */
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

#watch-live-fab:hover {
  background-color: var(--accent-hover);
  transform: translateY(-4px) scale(1.05); /* Efeito de elevação e aumento */
  box-shadow: 0 8px 20px var(--shadow-color);
  color: white;
}

.action-button {
  background: none;
  color: #0d6efd;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.2s, transform 0.2s;
  font-size: 1.2rem;
}

.action-button:hover {
  background-color: #e0e0e0;
  transform: scale(1.1);
}

.action-button.remove-button i {
  color: #ff3860 !important;
}

.player-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s 0.4s;
  z-index: 998; /* Abaixo do player */
}

.player-overlay.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease;
}

.expanded-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--card-bg);
  color: #333;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
  z-index: 999;
  padding: 20px;
  padding-top: 40px; /* Espaço para o botão de fechar */
}

.expanded-player.show {
  transform: translateY(0%);
}

.close-handle {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 5px;
  background-color: #ccc;
  border-radius: 2.5px;
  cursor: pointer;
}

/* Melhoras visuais gerais */
#expanded-image-container {
  margin-bottom: 20px;
}

#expanded-image {
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.radio-description {
  margin: 15px auto;
  font-size: 1rem;
  text-align: center;
  max-height: 30vh;
  overflow: hidden;
}

.scroll-lock {
  height: 100vh;
  overflow: hidden;
}

.player-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s 0.4s;
  z-index: 1000; /* Z-index base */
}

.player-overlay.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease;
}

/* =================================== */
/* Estilos do Sleep Timer              */
/* =================================== */

/* O painel que desliza de baixo para cima */
.sleep-timer-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--surface-color);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 20px;
    box-shadow: 0 -5px 15px var(--shadow-color);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 100;
    max-width: 800px;
    margin: auto;
}

/* Classe para mostrar o painel */
.sleep-timer-panel.is-active {
    transform: translateY(0);
}

.sleep-timer-panel .panel-header {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-text-color);
}

.sleep-timer-panel .timer-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.sleep-timer-panel .timer-option {
    background-color: var(--card-bg);
    color: var(--text-light);
    border: solid 1px var(--border-color);
    font-weight: bold;
}

#cancel-timer-button {
    margin: 10px 0;
}

.ticker {
  flex: 1;             /* Faz o ticker ocupar o espaço disponível no flex */
  overflow: hidden;
}

#current-show {
  display: block;       /* ou inline-block */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =============================================== */
/*  ESTILOS PARA A LISTA DE RÁDIOS (CARROSSÉIS)    */
/* =============================================== */

/* Container principal que agrupa todas as seções */
#radio-list {
  padding: 1rem 0;
  width: 100%;
  overflow: hidden;
}

/* --- Estilo para cada Seção/Categoria (Ex: "Populares") --- */
.genre-section {
  margin-bottom: 2.5rem; /* Espaço vertical entre as categorias */
  width: 90%;
  margin: 0 auto;
}

/* --- Título da Categoria (H2) --- */
.genre-title {
  font-size: 1.6rem; /* Tamanho de fonte destacado */
  font-weight: 700;   /* Negrito */
  color: var(--primary-text-color);    /* Cor branca */
  margin-bottom: 1rem;
  /* Adiciona um padding para alinhar com os cards do carrossel */
  padding-left: 1rem; 
}

/* --- O Carrossel Horizontal --- */
.radio-carousel {
  display: flex; /* Alinha os cards horizontalmente */
  overflow-x: auto; /* A MÁGICA: Habilita o scroll horizontal */
  overflow-y: hidden; /* Esconde qualquer scroll vertical */
  gap: 16px; /* Espaçamento consistente entre os cards */
  padding: 0.5rem 1rem;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

/* --- Escondendo a Barra de Rolagem do Carrossel --- */
/* Para Firefox */
.radio-carousel {
  scrollbar-width: none;
}
/* Para Chrome, Safari e Opera */
.radio-carousel::-webkit-scrollbar {
  display: none;
}


/* =============================================== */
/*  ESTILOS PARA O CARD DA RÁDIO (DENTRO DO CARROSSEL) */
/* =============================================== */

.radio-card {
  flex-shrink: 0; 
  width: 180px; 
  scroll-snap-align: start;
  transition: transform 0.2s ease-in-out;
}

.radio-card:hover, .card-filmes:hover {
  transform: scale(1.05);
}

/* --- Imagem da Rádio --- */
.radio-thumbnail {
  position: relative;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:  0 4px 8px var(--shadow-color);
}

.radio-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1; 
  object-fit: cover;
  background-color: var(--card-bg);
}

/* ============================================= */
/* ====== BOTÃO PLAY SOBRE A CAPA (THUMBNAIL) ====== */
/* ============================================= */

.radio-thumbnail .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: #fff;
  font-size: 1.8rem;
  outline: none;
  opacity: 0;
  box-shadow: 0 8px 24px rgba(0, 123, 255, 0.3); /* Sombra mais suave e elevada */
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1); /* Transição mais orgânica */
}

/* Efeito ao passar o mouse sobre a capa */
.radio-thumbnail:hover .play-button {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Feedback de clique no botão */
.radio-thumbnail .play-button:active {
  transform: translate(-50%, -50%) scale(0.95);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

/* Classe 'show' para quando a rádio está tocando */
.radio-thumbnail .play-button.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
  background: var(--accent);
}

/* Efeito no nome da rádio quando está tocando */
.radio-card:has(.play-button.show) .radio-name {
  color: var(--accent) !important;
  transition: all 0.3s ease;
  font-weight: bold;
}

/* ====================================================== */
/* ======== ESTILO DIFERENCIADO PARA "section-recentes" ======== */
/* ====================================================== */


/* --- Carrossel de Rádios --- */
#section-recentes .radio-carousel {
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
}

/* --- Card de Rádio --- */
#section-recentes .radio-card {
 min-width: 90px;
 flex: 1;
 max-width: 180px;
}

/* --- Nome da Rádio --- */
#section-recentes .radio-name {
  font-size: 12px;
}

#section-recentes .radio-thumbnail {
  /* Uma sombra um pouco mais suave para os itens recentes */
  box-shadow: 0 2px 4px var(--shadow-color);
}


/* ================================================== */
/* ====== SETAS DE NAVEGAÇÃO DO CARROSSEL ====== */
/* ================================================== */

.carousel-wrapper {
  position: relative;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%); 
  width: 40px;
  height: 40px;
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  font-size: 1.25rem; /* Ícone um pouco menor */
  cursor: pointer;
  opacity: 0.7; /* Leve transparência para não competir com o conteúdo */
  z-index: 10;
  pointer-events: auto;
  transition: all 0.25s ease-in-out; /* Transição suave para todas as propriedades */
  display: flex; /* Garante que o ícone interno esteja perfeitamente centralizado */
  align-items: center;
  justify-content: center;
}

.carousel-button.prev {
  left: -40px; /* Posiciona a seta metade para fora, metade para dentro */
}

.carousel-button.next {
  right: -40px; /* Posiciona a seta metade para fora, metade para dentro */
}

/* Efeito de hover nos próprios botões para feedback visual */
.carousel-button:hover {
  background-color: rgba(10, 12, 16, 0.8);
  color: #fff;
  transform: translateY(-50%) scale(1.05); /* Leve aumento para destacar */
}

/* Classe utilizada pelo JavaScript para ocultar as setas dinamicamente */
.carousel-button:disabled {
  opacity: 0;
  pointer-events: none; 
}

/* ============================================= */
/*          ESTILOS PARA FAVORITOS (PERFIL)        */
/* ============================================= */

/* O contêiner principal para a lista de favoritos no perfil */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

/* O card individual de cada rádio favorita */
.favorite-item-profile {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background-color: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

.favorite-item-profile:hover {
  background-color: var(--hover-bg);
}

/* Imagem da rádio */
.favorite-item-profile .favorite-item__image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 1rem; /* Espaço entre a imagem e as informações */
  flex-shrink: 0; /* Impede que a imagem encolha */
}

/* Contêiner para o nome e gênero */
.favorite-item-profile .favorite-item__info {
  flex-grow: 1; /* Faz esta div ocupar todo o espaço restante */
  overflow: hidden; /* Evita que texto muito longo quebre o layout */
}

/* Nome da rádio */
.favorite-item-profile .favorite-item__name {
  color: var(--text-light);
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Gênero da rádio */
.favorite-item-profile .favorite-item__genre {
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Contêiner para os botões de ação (Play, Remover) */
.favorite-item-profile .favorite-item__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Espaço entre os botões */
  margin-left: 1rem;
}

/* Estilo geral para os botões de ação */
.favorite-item-profile .action-button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.favorite-item-profile .action-button:hover {
  background-color: var(--hover-bg);
  color: var(--text-light);
}

/* Estilo específico para o botão de remover no hover */
.favorite-item-profile .remove-favorite-btn:hover {
  color: #ff3860; /* Cor de perigo do Bulma */
}

/* ============================================= */
/*          ESTILO DO BOTÃO FAVORITAR (PLAYER)     */
/* ============================================= */

/* Estilo base para o botão de favoritar no player fixo */
.like-button-player {
  color: var(--text-muted);
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.2s ease;
}

/* Estilo quando o botão está no estado 'hover' (mouse em cima) */
.like-button-player:hover {
  color: var(--text-light);
}

/* Estilo para o estado 'favorited' */
.like-button-player.favorited {
  color: #ff3860; /* Cor de 'perigo' do Bulma, um vermelho vibrante */
}

.like-button-player.favorited:hover {
  color: #ff577f; /* Um vermelho um pouco mais claro no hover */
}

/* Uma pequena animação de 'pulso' ao favoritar */
.like-button-player:active {
  transform: scale(0.9);
}

#expanded-song-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-light);
  margin: 0.5rem 0;
}

.filtros-container input, .filtros-container select {
    padding: 0.6rem 0.8rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    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);
  }

  .filtros-container .navbar-search {
    flex: 1;
    min-width: 200px;
    max-width: 480px;
  }

  .filtros-container .navbar-search input {
    width: 100%;
  }

  #grid, .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    flex: 1;
  }

  #Esportes {
    padding: 1.5rem !important;
  }

  .card-filmes {
    background: var(--body-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: 200px;
    cursor: pointer;
  }

.card-image-container {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--body-bg);
  border-radius: var(--border-radius-md);
}

.card-filmes 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: var(--surface-color);
    color: var(--text-light);
    font-size: 0.8rem;
    padding: 5px 8px;
    border-radius: 4px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.has-text-light {
    color: var(--text-light) !important;
}

.button.is-light {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
}

.button.is-light:hover {
    background-color: var(--hover-bg);
    color: var(--text-light);
}

.button.is-light.is-active, .button.is-light:active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

#search-section .radio-carousel {
  overflow-x: hidden;
  flex-wrap: wrap;
}

.no-results {
  padding: 2rem;
}

strong {
    color: var(--text-light);
    font-weight: 700;
}

#esportes .container {
    padding: 20px;
}

/* Estilo para cada grupo de país (título + grid) */
.country-group {
    margin-bottom: 40px;
}

/* Cabeçalho do país (Bandeira + Nome) */
.country-header {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
    color: var(--text-light);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.country-header img {
    width: 40px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 5px var(--shadow-color);
}

/* Grid de canais dentro de cada país */
.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* O NOVO CARD - Onde a mágica acontece */
.sports-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centraliza o conteúdo verticalmente */
    min-height: 100px;
}

/* Efeito de hover para dar feedback ao usuário */
.sports-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    border-color: var(--success-color); /* Um verde vibrante para destacar */
}

/* Informações dentro do card */
.card-info {
    text-align: left;
}

.channel-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0;
}

/* Indicador de status (Online/Offline) */
.channel-status {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

/* O círculo verde "ao vivo" */
.channel-status.active::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--success-color);
    border-radius: 50%;
    box-shadow: 0 0 5px #00ff7f;
}

.loading h2 {
    color: var(--text-light);
    text-align: center;
    padding: 40px;
}

.country-header i {
    font-size: 32px; /* Tamanho aproximado de uma bandeira de 40px de largura */
    color: var(--text-muted); /* Uma cor neutra para o ícone */
    width: 40px;    /* Garante o mesmo espaço que a bandeira ocupa */
    text-align: center;
}
  
@media (max-width: 768px) {
  .filtros-container {
    justify-content: start; overflow-x: auto;
    left: 0;
    border-radius: 0;
  }
  .radio-name {
    max-width: 300px;
  }
  .player-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
}
  #radio-info {
    max-width: 100px;
  }

  .media.mb-4{
    flex-direction: column;
    gap: 16px;
  }

  #playlist-container-todas {
    padding-bottom: 2rem;
  }

  .modal-card {
    height: 100% !important;
    max-height: 100vh !important;
    width: 100% !important;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links a {
    font-size: 1rem;
  }
  .ticker span {
    font-size: 12px;
  }
.sidebar {
  display: none;
}

.mobile-menu {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--card-bg);
  padding: 0.5rem 0;
  z-index: 1022;
  border-top: var(--border-color) 1px solid;
}

.mobile-menu a {
  color: var(--text-light);
  font-size: 1.2rem;
  opacity: 0.8;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-menu a.is-active {
  color: var(--accent);
  font-weight: bold;
  opacity: 1;
}

.main-content {
margin-left: 0;
}

.player-fixed {
  bottom: 68.8px;
  left: 0;
  width: 100%;
}

.volume-control {
  display: none;
}

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.radio-card {
  width: 140px;
}

#section-recentes .radio-card {
 max-width: 140px;
}

.skeleton-card {
  width: 140px;
  height: 140px;
}

.carousel-button {
  display: none;
}

#Esportes {
  padding: 1rem !important;
}

#grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
    padding: 1rem !important;
  }

  #search-section .radio-card {
    min-width: 100px;
    flex: 1;
    max-width: 120px;
  }
  #search-section .radio-carousel {
    padding: .5rem .25rem;
    gap: 8px;
  }
  #search-section .radio-name {
    font-size: .8rem;
  }

  .modal-content {
    min-height: 100%;
    border-radius: 0;
  }
}

@media (min-width: 769px) {
  .mobile-menu {
      display: none;
  }

  .app-footer {
    margin-left: 60px;
  }

.content ol {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  }

.content li+li, .track-item {
  max-width: 300px;
  width: 300px;
}
    ::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }

      ::-webkit-scrollbar-track {
        background: var(--body-bg);
        border-radius: 10px;
      }

      ::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, var(--accent), var(--accent));
        border-radius: 10px;
        border: 1px solid var(--border-color);
      }

      ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, var(--accent), var(--accent));
        cursor: move;
      }

  #radio-info {
    max-width: 400px;
  }

  .genre-title {
    font-size: 2rem; /* Tamanho de fonte destacado */
  }

  #search-section .radio-card {
    min-width: 180px;
    flex: 1;
    max-width: 220px;
  }

}