@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@600;700;800&display=swap');

:root {
  /* 🎯 DARK como padrão - Tema Moderno 2026 */
  --body-bg: #0a0e27;
  --card-bg: #141b2d;
  --hover-bg: #1a2332;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --text-light: #f1f5f9;
  --text-muted: #94a3b8;
  --border-color: #1e293b;
  --shadow-color: rgba(99, 102, 241, 0.15);
  --surface-color: #0f172a;
  --primary-text-color: #e2e8f0;
  --secondary-text-color: #cbd5e1;
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  --font-family-main: 'Inter', -apple-system, system-ui, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --border-radius-md: 12px;
  --border-radius-sm: 6px;
  --bg-timer-number: linear-gradient(135deg, #818cf8, #6366f1);

  /* === Spacing (Sistema 4px) === */
  --space-xs: 0.25rem;  /* 4px */
  --space-sm: 0.5rem;   /* 8px */
  --space-md: 1rem;     /* 16px */
  --space-lg: 1.5rem;   /* 24px */
  --space-xl: 2rem;     /* 32px */
  --space-2xl: 3rem;    /* 48px */
  
  /* === Border Radius === */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* === Transições === */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* === Sombras === */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* === Z-index === */
  --z-base: 1;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

html[data-theme='light'] {
  /* 🌞 LIGHT como alternativo - Minimalista Clean */
  --body-bg: #f8fafc;
  --card-bg: #ffffff;
  --hover-bg: #f1f5f9;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --text-light: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-color: rgba(15, 23, 42, 0.08);
  --surface-color: #ffffff;
  --primary-text-color: #1e293b;
  --secondary-text-color: #475569;
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  --bg-timer-number: linear-gradient(135deg, #6366f1, #4f46e5);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--body-bg);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-main);
  color: var(--text-light);
  background: var(--body-bg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-text-color);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.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;
}

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 var(--shadow-color);
    max-width: 420px;
    margin: 0 auto;
  }

  .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);
  display: flex;
  justify-content: center;
  align-items: center;
  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: 1002;
  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;
  }
}

.skeleton-section {
  margin-bottom: 2.5rem;
}

.skeleton-card {
  flex-shrink: 0;
  height: 120px;
  border-radius: 12px;
}

.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;
}

.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;
  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: 0; /* Ajuste para mobile se necessário, ou mantenha left: 60px para desktop */
  width: 100%; /* Ajuste conforme seu layout */
  
  /* Use APENAS a variável de superfície. Remova os gradientes hardcoded */
  background-color: var(--surface-color); 
  color: var(--text-light);
  
  padding: 0.5rem 1rem;
  
  
  opacity: 0;
  transform: translateY(80px);
  transition: background 1.2s ease, opacity 0.5s ease, transform 0.5s ease;
  z-index: 1001;


  border-top: 1px solid var(--border-color);
  padding: var(--space-md);
  box-shadow: 0 -4px 12px var(--shadow-color);
  z-index: var(--z-fixed);
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}

.player-fixed.has-ambilight {
  color: #ffffff !important;
}

.player-fixed.has-ambilight .mini-subtitle,
.player-fixed.has-ambilight i {
  color: rgba(255, 255, 255, 0.8);
}

/* Ajuste para botões dentro do player quando colorido */
.player-fixed.has-ambilight .control-button {
  color: #ffffff;
}

@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 {
  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-weight: bold;
  font-size: 0.9rem;
}

.radio-subtitle {
  color: var(--secondary-text-color);
  font-size: 0.8rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

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

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

#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 {
  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;
}

label .slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: gainsboro;
transition: .4s;
border-radius: 34px;
}
label .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: 999;
    background: var(--body-bg);
    display: flex; 
    gap: 16px; 
    justify-content: center; 
    align-items: center;
    padding: 10px;
}

.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;
}

.expanded-player {
  position: fixed;
  max-height: 100vh;
  bottom: 0;
  left: 0;
  right: 0;
  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: 1020;
  padding: 20px;
  padding-top: 40px;
  overflow-x: auto;
  background: var(--body-bg);
}

.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);
}

.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;
}

.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 {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--surface-color);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    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);
    display: block;
}

.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;
}

#radio-list {
  padding: 1rem 0;
  width: 100%;
  overflow: hidden;
}

.genre-section {
  margin-bottom: 2.5rem;
}

.genre-title {
  font-size: 1.6rem; /* Tamanho de fonte destacado */
  font-weight: 700;   /* Negrito */
  color: var(--primary-text-color);    /* Cor branca */
  margin-bottom: 1rem;
}

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

.radio-card {
  transition: transform 0.2s ease-in-out;
}

.radio-card:hover {
  transform: translateY(-5px);
}

/* --- Imagem da Rádio --- */
.radio-thumbnail {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.radio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

/* ============================================= */
/* ====== 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(20%, 20%) scale(1.05);
  background: var(--accent);
}

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

/* --- Carrossel de Rádios --- */
.radio-carousel, .skeleton-carousel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

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

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


/* ============================================= */
/*          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);
}

.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;
  }

.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-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;
}

.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;
}

.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;
}

.visualizer-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 60px; /* Altura do visualizador */
    gap: 3px;
    margin: 20px 0;
    opacity: 0.8;
}

.visualizer-container .bar {
    width: 6px;
    background: var(--accent); /* Usa a cor do seu tema */
    border-radius: 5px 5px 0 0;
    animation: bounce 1s infinite ease-in-out;
    box-shadow: 0 0 10px var(--accent);
}

/* Criamos variações para parecer aleatório e orgânico */
.bar:nth-child(1)  { animation-duration: 0.8s; height: 20%; }
.bar:nth-child(2)  { animation-duration: 1.1s; height: 40%; }
.bar:nth-child(3)  { animation-duration: 1.3s; height: 60%; }
.bar:nth-child(4)  { animation-duration: 0.9s; height: 80%; }
.bar:nth-child(5)  { animation-duration: 1.2s; height: 50%; }
.bar:nth-child(6)  { animation-duration: 0.7s; height: 90%; }
.bar:nth-child(7)  { animation-duration: 1.4s; height: 30%; }
.bar:nth-child(8)  { animation-duration: 0.8s; height: 70%; }
.bar:nth-child(9)  { animation-duration: 1.0s; height: 60%; }
.bar:nth-child(10) { animation-duration: 1.5s; height: 40%; }
.bar:nth-child(11) { animation-duration: 0.9s; height: 80%; }
.bar:nth-child(12) { animation-duration: 1.2s; height: 30%; }
.bar:nth-child(13) { animation-duration: 0.8s; height: 50%; }
.bar:nth-child(14) { animation-duration: 1.1s; height: 70%; }
.bar:nth-child(15) { animation-duration: 0.7s; height: 40%; }
.bar:nth-child(16) { animation-duration: 1.3s; height: 60%; }

/* Animação que estica as barras */
@keyframes bounce {
    0%, 100% { height: 10%; }
    50% { height: 100%; }
}

.visualizer-container.paused .bar {
    animation-play-state: paused;
    height: 5px !important;
    transition: height 0.5s;
}

/* --- Badges de Prova Social (Dopamina) --- */
.radio-thumbnail {
  position: relative;
  overflow: hidden; /* Garante que a etiqueta fique dentro da borda arredondada */
}

.badge-social {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  border-radius: var(--border-radius-md);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: white;
  box-shadow: 0 2px 4px var(--shadow-color);
  z-index: 2;
  pointer-events: none;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.badge-fire {
  background: linear-gradient(45deg, #ff9a9e 0%, #ff0f7b 100%);
}

.badge-popular {
  background: linear-gradient(45deg, #4facfe 0%, #00f2fe 100%);
}

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

/* --- Ajuste Fino do Visualizer --- */
.visualizer-container.paused .bar {
  animation-play-state: paused !important;
  height: 2px !important; /* Colapsa as barras quando pausado */
  transition: height 0.3s ease;
}

/* Animação de "Pulsar" do Coração */
@keyframes heartBurst {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); } /* Cresce rápido */
  70% { transform: scale(0.9); }  /* Encolhe um pouco */
  100% { transform: scale(1); }   /* Volta ao normal */
}

/* Quando o botão tiver a classe .favorited */
.like-button.favorited i, 
.like-button-player.favorited i {
  color: #ff3860; /* Vermelho vibrante */
  animation: heartBurst 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Pulo elástico */
}

/* Garante que o ícone tenha transição suave de cor */
.like-button i, 
.like-button-player i {
  transition: color 0.2s ease, transform 0.2s ease;
}

/* --- Botão Roleta (Surpreenda-me) --- */
.roulette-btn {
  position: absolute;
  bottom: -20px; /* Fica na borda inferior da imagem */
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Roxo místico */
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roulette-btn:active {
  transform: scale(0.9) rotate(180deg); /* Gira ao clicar */
}

.roulette-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(118, 75, 162, 0.6);
}

/* Animação enquanto "pensa" */
.roulette-btn.spinning i {
  animation: spinDice 0.5s linear infinite;
}

@keyframes spinDice {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Garante que o container da imagem permita posicionamento absoluto */
#expanded-image-container {
  position: relative; 
  /* Adicione isso se não tiver */
  display: flex;
  justify-content: center;
}

/* --- Passaporte Musical --- */
.passport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 15px;
  background-color: var(--card-bg); /* Fundo do container */
  padding: 15px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.passport-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-color);
  padding: 10px;
  border-radius: 8px;
  border: 2px dashed var(--border-color); /* Borda tracejada tipo selo */
  transition: transform 0.2s;
  opacity: 0;
  animation: stampFadeIn 0.5s forwards;
}

@keyframes stampFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.passport-stamp:hover {
  transform: scale(1.05) rotate(2deg);
  border-color: var(--accent);
  background-color: var(--hover-bg);
}

.stamp-flag {
  font-size: 2.5rem;
  margin-bottom: 5px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.stamp-name {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  color: var(--secondary-text-color);
  text-transform: uppercase;
}

.empty-passport {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--secondary-text-color);
  border: 2px dashed var(--border-color);
  border-radius: 8px;
}

/* --- Perfil Moderno --- */
.profile-container {
  max-width: 600px !important; /* Centraliza e evita que fique esticado em telas grandes */
  margin: 0 auto;
  padding-bottom: 100px; /* Espaço para o player fixo não tapar */
}

/* Card Genérico Moderno */
.modern-card {
  margin-bottom: 24px;
}

/* Cabeçalho do Perfil (Destaque) */
.profile-header-card {
  text-align: center;
  background: linear-gradient(180deg, var(--card-bg) 0%, var(--hover-bg) 100%);
  position: relative;
  overflow: hidden;
}

/* Avatar com brilho */
.profile-avatar-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 15px var(--accent); /* Glow na foto */
}

.user-level-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Linhas de Configuração */
.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-icon {
  width: 30px;
  color: var(--text-muted);
  text-align: center;
  margin-right: 10px;
}

/* Ajuste no título das seções */
.card-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--primary-text-color);
  font-weight: 600;
  font-size: 1.1rem;
}

/* --- Busca Inteligente --- */
.search-suggestions {
  position: fixed;
  top: 10%;
  width: 90%;
  left: 5%;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px; /* Arredonda só embaixo */
  padding: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.search-suggestions.active {
  opacity: 1;
  visibility: visible;
}

.suggestion-group {
  margin-bottom: 15px;
}

.suggestion-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.clear-history {
  cursor: pointer;
  color: var(--error-color);
  font-size: 0.7rem;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-tag {
  background-color: var(--surface-color);
  color: var(--primary-text-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-tag:hover {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.search-tag i {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* --- Estilo "Sem Resultados" --- */
.no-results-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px; /* Garante altura suficiente para centralizar verticalmente */
  width: 100%;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.no-results-content {
  background-color: var(--card-bg);
  max-width: 400px;
  padding: 2rem;
  border-radius: 12px;
}

.no-results-icon {
  color: var(--text-light) !important;
  font-size: 4rem; /* Ícone bem grande */
  color: var(--border-color); /* Cor sutil (cinza escuro no dark mode) */
  margin-bottom: 1.5rem;
  opacity: 0.5;
  animation: floatIcon 3s ease-in-out infinite; /* Flutuação suave */
}

/* Animação de flutuação para dar vida */
@keyframes floatIcon {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Ajuste no título e texto para ficarem harmoniosos */
.no-results-content h2 {
  color: var(--primary-text-color);
  margin-bottom: 0.5rem;
}

.no-results-content p {
  color: var(--text-muted) !important;
  margin-bottom: 1.5rem;
}

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

.recording-active {
    background-color: #ff3860 !important;
    color: white !important;
    animation: pulse-red 1s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 56, 96, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(255, 56, 96, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 56, 96, 0); }
} 


/* --- MINI PLAYER REESTRUTURADO --- */
.mini-player-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 5px;
    cursor: pointer; /* Indica clicável */
}

.mini-info-container {
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.mini-cover {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.mini-text-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.mini-title {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-color);
}

.mini-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

.expand-indicator {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* --- PLAYER EXPANDIDO MODERNO --- */
.expanded-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    overflow-y: auto;
}

.close-handle-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
}

.close-icon {
    margin-top: 5px;
    color: var(--text-muted);
    opacity: 0.5;
}

#expanded-image-container {
    position: relative;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 20px;
}

#expanded-image {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    object-fit: cover;
}

.track-info {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}

.big-visualizer {
    height: 30px;
    justify-content: center;
    opacity: 0.7;
}

/* Controles de Transporte (Play, Next, Prev) */
.main-transport-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    width: 100%;
}

.transport-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: transform 0.2s;
}

.transport-btn:active {
    transform: scale(0.9);
}

.transport-btn.secondary {
    font-size: 2rem;
    opacity: 0.8;
}

.transport-btn.primary {
    width: 70px;
    height: 70px;
    background: var(--accent);
    border-radius: 50%;
    font-size: 2.5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

/* Volume */
.volume-container-expanded {
    display: flex;
    align-items: center;
    width: 80%;
    gap: 15px;
    margin-bottom: 40px;
    color: var(--text-muted);
}
.volume-slider {
    flex: 1;
    accent-color: var(--primary-color);
}

/* --- BARRA DE FERRAMENTAS (GRID) --- */
.action-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.tool-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: transform 0.2s, filter 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.tool-item:active .tool-icon {
    transform: scale(0.95);
    filter: brightness(0.9);
}

.tool-item span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #B0B0B0;
}

/* Cores dos Ícones */
.bg-red { background: linear-gradient(135deg, #ff416c, #ff4b2b); }
.bg-yellow { background: linear-gradient(135deg, #f7971e, #ffd200); }
.bg-purple { background: linear-gradient(135deg, #8e2de2, #4a00e0); }
.bg-blue { background: linear-gradient(135deg, #2193b0, #6dd5ed); }
.tool-item.is-active .tool-icon { border: 2px solid white; box-shadow: 0 0 15px var(--primary-color); }

/* Ajuste Timer Grid */
.timer-options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

/* --- Ajustes Expanded Player --- */

.track-info {
    text-align: center;
    margin-bottom: 1rem;
}

/* Título principal (Música) */
#expanded-song-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
    line-height: 1.2;
    /* Limita a 2 linhas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Subtítulo (Nome da Rádio) */
.station-subtitle {
    font-size: 1rem;
    color: #B0B0B0;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 10px;
}

/* =========================================
   LISTA DE GRAVAÇÕES (Recordings List)
   ========================================= */

.recordings-list {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 8px; /* Espaço para não colar no scroll */
    
    /* Scrollbar Estilizada (Webkit) */
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

/* Estilo do Scrollbar para Chrome/Safari */
.recordings-list::-webkit-scrollbar {
    width: 6px;
}
.recordings-list::-webkit-scrollbar-track {
    background: transparent;
}
.recordings-list::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 20px;
}

/* Item Individual da Gravação */
.recording-item {
    background-color: var(--hover-bg); /* Adapta ao Light/Dark */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    margin-bottom: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Sombra leve */
}

.recording-item:hover {
    background-color: var(--surface-color);
    border-color: var(--accent); /* Destaque na borda ao passar o mouse */
    transform: translateY(-1px);
}

/* Cabeçalho do Item (Nome e Data) */
.rec-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.rec-info h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-text-color); /* Texto principal (Preto no Light / Branco no Dark) */
    margin-bottom: 4px;
    font-size: 1rem;
    line-height: 1.2;
}

.rec-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Controles do Player Interno */
.rec-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

/* Barra de Progresso */
.rec-player-bar {
    flex-grow: 1;
    height: 6px; /* Um pouco mais grossa para toque */
    background-color: var(--border-color); /* Fundo da barra adapta ao tema */
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.rec-progress {
    height: 100%;
    background: var(--accent); /* Usa a cor de destaque do tema */
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 10px;
}

/* Botões de Ação (Play, Share, Delete) */
.btn-rec-action {
    background: transparent;
    border: none;
    color: var(--secondary-text-color);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-rec-action:hover {
    background-color: rgba(128, 128, 128, 0.1); /* Hover genérico */
    transform: scale(1.1);
}

/* Cores Específicas dos Botões */
.btn-rec-play { 
    color: var(--accent); 
    font-size: 1.5rem; 
}
.btn-rec-play:hover { 
    color: var(--accent-hover); 
}

.btn-rec-share { 
    color: var(--success-color); 
}

.btn-rec-delete { 
    color: var(--error-color); 
}

/* Estado Vazio */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* =========================================
   CARD DE FERRAMENTA NO PERFIL
   ========================================= */

.profile-tools-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem; /* Espaçamento entre cards */
    
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.profile-tools-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 6px 12px var(--shadow-color);
}

.profile-tools-card:active {
    transform: scale(0.98);
}

/* Container interno do card */
.profile-tools-card .tool-item {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 16px;
}

/* Ícone com fundo circular */
.profile-tools-card .tool-icon {
    width: 44px;
    height: 44px;
    min-width: 44px; /* Impede encolher */
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    
    /* Cores padrão se não tiver bg-green */
    background-color: rgba(128, 128, 128, 0.1);
    color: var(--text-light);
}

/* Estilização específica para a pasta (verde) */
.profile-tools-card .tool-icon.bg-green {
    background-color: rgba(3, 218, 197, 0.15); /* Baseado no seu --success-color */
    color: var(--success-color);
}

/* Texto do card */
.profile-tools-card span {
    font-family: var(--font-main);
    font-weight: 500;
    color: var(--primary-text-color);
    font-size: 1.05rem;
}

/* Ícone da seta (chevron) */
.profile-tools-card .fa-chevron-right {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.profile-tools-card:hover .fa-chevron-right {
    color: var(--accent);
    transform: translateX(3px);
}

/* Wrapper para posicionar o badge em cima da imagem */
.mini-cover-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* O Badge do Timer no Mini Player */
.mini-timer-badge {
    position: fixed;
    bottom: 73px;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 1); /* Fundo escuro semi-transparente */
    color: #ffd700; /* Cor dourada (Lua) */
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 2px 0;
    border-top-left-radius: 4px; /* Combina com o arredondamento da imagem se houver */
    border-top-right-radius: 4px;
    opacity: 0; /* Escondido por padrão */
    transition: opacity 0.3s ease;
    pointer-events: none; /* Deixa clicar na imagem através dele */
}

.mini-timer-badge.show {
    opacity: 1;
}

.mini-rec-badge {
    position: absolute;
    top: 5px; /* Fica no topo para não brigar com o Timer */
    left: 5px;
    background-color: rgba(0, 0, 0, 0.85);
    color: #ff4757; /* Vermelho vibrante */
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.mini-rec-badge.show {
    opacity: 1;
}

/* Bolinha pulsante vermelha */
.pulsing-dot {
    width: 8px;
    height: 8px;
    background-color: #ff4757;
    border-radius: 50%;
    animation: rec-pulse 1.5s infinite;
}

@keyframes rec-pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

/* Botão de Gravar Ativo no Player Expandido */
.tool-item.is-recording .tool-icon {
    background-color: #ff4757 !important;
    color: white !important;
    animation: pulse-border 1.5s infinite;
}
@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 71, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

/* Barra de Progresso Interativa (Modal) */
.rec-player-bar {
    cursor: pointer; /* Indica que pode clicar */
    height: 8px; /* Mais grossa para facilitar o toque */
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    flex-grow: 1;
    margin: 0 10px;
}
.rec-progress {
    height: 100%;
    background: var(--accent);
    width: 0%;
    pointer-events: none; /* O clique vai no pai (.rec-player-bar) */
}

/* Melhoria visual para o Botão do Timer no Expanded quando ativo */
.tool-item.is-active .tool-icon {
    background-color: #ffd700 !important; /* Fica amarelo/dourado */
    color: #000 !important;
    animation: pulse-glow 2s infinite;
}

.tool-item.is-active span {
    color: #ffd700;
    font-weight: bold;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-color);
  padding-left: 10px; /* Alinhamento visual */
}

/* Ajuste do botão Limpar dentro do Input */
.navbar-search .icon.is-right {
    pointer-events: all; /* Permite clicar no ícone mesmo estando dentro do span */
}

#clear-search-btn:hover {
    color: #ff3860; /* Cor de destaque ao passar o mouse no X */
}


@media (max-width: 768px) {
  .visualizer-container {
    height: 40px;
    margin: 0;
  }

  .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;
}

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

  #search-section .radio-name {
    font-size: .8rem;
  }

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

  .radio-thumbnail .play-button {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .section {
    padding: 1rem;
  }
}

@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);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: var(--radius-full);
  border: 2px solid var(--body-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--body-bg);
}

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

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

  .radio-carousel, .skeleton-carousel {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
  }

  .skeleton-card {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    border-radius: 12px;
  }

  .expanded-player {
    max-width: 500px;
    border-radius: 16px;
    margin: auto;
  }

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

}

.card, .modern-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

/* === Inputs Modernos === */
.input, input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: var(--surface-color);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--primary-text-color);
  font-size: 0.95rem;
  transition: all var(--transition-base);
  outline: none;
}

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

/* === Toggle Switch Moderno === */
.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border-color);
  transition: var(--transition-base);
  border-radius: var(--radius-full);
}

.slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: white;
  transition: var(--transition-base);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

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

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

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* === Grid System === */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  :root {
    --space-md: 0.75rem;
    --space-lg: 1.25rem;
  }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible moderno */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Loading skeleton */
@keyframes skeleton-pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.skeleton {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

/* ============================================
   🆕 LAZY LOADING - ANIMAÇÕES
   ============================================ */

/* Estado inicial: Imagem ainda não carregada */
img.lazy {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  background: linear-gradient(
    90deg, 
    rgba(255,255,255,0.05) 25%, 
    rgba(255,255,255,0.1) 50%, 
    rgba(255,255,255,0.05) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Animação de loading (efeito shimmer) */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Estado final: Imagem carregada */
img.loaded {
  opacity: 1;
  animation: none; /* Remove o shimmer */
}

/* Transição suave ao aparecer */
img.loaded {
  animation: fadeIn 0.4s ease-in-out;
}

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


/* ============================================
   ONBOARDING SYSTEM
   ============================================ */

.onboarding-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(3px);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.onboarding-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Spotlight - Destaque circular no elemento */
.onboarding-spotlight {
  position: absolute;
  border-radius: 12px;
  box-shadow: 
    0 0 0 4px rgba(59, 130, 246, 0.6),
    0 0 0 9999px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100000;
}

/* Tooltip - Balão de explicação */
.onboarding-tooltip {
  position: absolute;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 360px;
  width: calc(100vw - 2rem);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(59, 130, 246, 0.2);
  z-index: 100001;
  opacity: 0;
  transform: scale(0.9) translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.onboarding-tooltip.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Header do Tooltip */
.onboarding-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.onboarding-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.onboarding-title::before {
  content: '✨';
  font-size: 1.5rem;
}

.onboarding-skip {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding-skip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Descrição */
.onboarding-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}

/* Footer */
.onboarding-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Indicadores de progresso (dots) */
.onboarding-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.onboarding-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s;
}

.onboarding-dot.active {
  width: 24px;
  border-radius: 4px;
  background: #3b82f6;
}

/* Botões de ação */
.onboarding-actions {
  display: flex;
  gap: 0.5rem;
}

.onboarding-btn {
  padding: 0.625rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.onboarding-btn-prev {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.onboarding-btn-prev:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-2px);
}

.onboarding-btn-next,
.onboarding-btn-finish {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
}

.onboarding-btn-next:hover,
.onboarding-btn-finish:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateX(2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.onboarding-btn-finish {
  display: none;
}

.onboarding-btn-prev[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* Seta indicadora (opcional - aponta para o elemento) */
.onboarding-tooltip::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border: 12px solid transparent;
}

/* Seta quando tooltip está abaixo do elemento */
.onboarding-tooltip.position-bottom::before {
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-color: #1e293b;
}

/* Seta quando tooltip está acima do elemento */
.onboarding-tooltip.position-top::before {
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  border-top-color: #1e293b;
}

/* Responsivo */
@media (max-width: 640px) {
  .onboarding-tooltip {
    padding: 1rem;
    max-width: calc(100vw - 2rem);
  }

  .onboarding-title {
    font-size: 1.1rem;
  }

  .onboarding-description {
    font-size: 0.9rem;
  }

  .onboarding-actions {
    flex-direction: column;
    width: 100%;
  }

  .onboarding-btn {
    width: 100%;
    justify-content: center;
  }

  .onboarding-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .onboarding-dots {
    justify-content: center;
    order: -1;
    margin-bottom: 0.75rem;
  }
}

/* Animação de entrada */
@keyframes onboardingPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.6), 0 0 0 9999px rgba(0, 0, 0, 0.85); }
  50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.4), 0 0 0 9999px rgba(0, 0, 0, 0.85); }
}

.onboarding-spotlight {
  animation: onboardingPulse 2s infinite;
}

/* ================================================
   MOOD CARDS - 2026 MODERN STYLES
   ================================================ */

/* --- SECTION CONTAINER --- */
.mood-section {
  width: 100%;
  margin: 2rem 0;
  padding: 0;
}

.mood-header {
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.mood-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary, #1a202c);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mood-title i {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.5rem;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.7; transform: scale(1.1) rotate(10deg); }
}

.mood-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary, #718096);
  font-weight: 400;
}

/* --- SCROLL WRAPPER --- */
.mood-scroll-wrapper {
  position: relative;
  padding: 0 3rem;
}

/* --- SCROLL BUTTONS --- */
.mood-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a5568;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.mood-scroll-btn:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.1);
  color: #667eea;
}

.mood-scroll-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.mood-scroll-left {
  left: 0;
}

.mood-scroll-right {
  right: 0;
}

/* --- GRID HORIZONTAL SCROLL --- */
.mood-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1rem 0.5rem;
  scroll-behavior: smooth;
  
  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mood-grid::-webkit-scrollbar {
  display: none;
}

.mood-grid.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

/* --- MOOD CARD --- */
.mood-card {
  position: relative;
  min-width: 160px;
  width: 160px;
  height: 160px;
  border-radius: 20px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  
  /* Glassmorphism base */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Glow effect background */
.mood-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  opacity: 0.3;
  filter: blur(30px);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Content wrapper */
.mood-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Shine effect */
.mood-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

/* --- CARD STATES --- */
.mood-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.mood-card:hover .mood-glow {
  opacity: 0.5;
}

.mood-card:hover .mood-shine {
  transform: translateX(100%);
}

.mood-card:hover .mood-icon {
  transform: scale(1.1) rotate(5deg);
}

.mood-card:active {
  transform: translateY(-4px) scale(1.02);
}

/* Active vibe state */
.mood-card.active-vibe {
  transform: translateY(-8px) scale(1.08);
  box-shadow: 
    0 25px 50px rgba(102, 126, 234, 0.4),
    0 0 0 3px #667eea,
    0 0 0 6px rgba(102, 126, 234, 0.2);
  animation: pulse-active 2s ease-in-out infinite;
}

@keyframes pulse-active {
  0%, 100% {
    box-shadow: 
      0 25px 50px rgba(102, 126, 234, 0.4),
      0 0 0 3px #667eea,
      0 0 0 6px rgba(102, 126, 234, 0.2);
  }
  50% {
    box-shadow: 
      0 25px 50px rgba(102, 126, 234, 0.5),
      0 0 0 3px #667eea,
      0 0 0 8px rgba(102, 126, 234, 0.3);
  }
}

/* "Explorar Tudo" special card */
.mood-card-all {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.mood-card-all .mood-icon {
  color: rgba(255, 255, 255, 0.95);
}

.mood-card-all .mood-glow {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* --- CARD ELEMENTS --- */
.mood-icon {
  font-size: 2.5rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.mood-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mood-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.3px;
}

.mood-count {
  font-size: 0.8rem;
  opacity: 0.85;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .mood-scroll-wrapper {
    padding: 0 2.5rem;
  }
  
  .mood-card {
    min-width: 150px;
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 768px) {
  .mood-section {
    margin: 1.5rem 0;
  }
  
  .mood-header {
    padding: 0 0.75rem;
  }
  
  .mood-title {
    font-size: 1.6rem;
  }
  
  .mood-title i {
    font-size: 1.25rem;
  }
  
  .mood-subtitle {
    font-size: 0.875rem;
  }
  
  .mood-scroll-wrapper {
    padding: 0 2rem;
  }
  
  .mood-scroll-btn {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }
  
  .mood-card {
    min-width: 140px;
    width: 140px;
    height: 140px;
  }
  
  .mood-icon {
    font-size: 2rem;
  }
  
  .mood-name {
    font-size: 0.9rem;
  }
  
  .mood-count {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .mood-scroll-wrapper {
    padding: 0 1.5rem;
  }
  
  .mood-scroll-btn {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
  
  .mood-card {
    min-width: 130px;
    width: 130px;
    height: 130px;
  }
  
  .mood-content {
    padding: 1rem;
  }
  
  .mood-icon {
    font-size: 1.75rem;
  }
  
  .mood-name {
    font-size: 0.85rem;
  }
  
  .mood-count {
    font-size: 0.7rem;
  }
  
  .mood-grid {
    gap: 0.75rem;
  }
}

/* --- ACCESSIBILITY --- */
@media (prefers-reduced-motion: reduce) {
  .mood-card,
  .mood-icon,
  .mood-shine,
  .mood-scroll-btn {
    transition: none;
    animation: none;
  }
}

/* --- DARK MODE SUPPORT --- */
@media (prefers-color-scheme: dark) {
  .mood-title {
    color: #e2e8f0;
  }
  
  .mood-subtitle {
    color: #a0aec0;
  }
  
  .mood-scroll-btn {
    background: rgba(45, 55, 72, 0.95);
    color: #e2e8f0;
  }
  
  .mood-scroll-btn:hover {
    background: rgba(45, 55, 72, 1);
    color: #667eea;
  }
  
  .mood-card {
    background: rgba(45, 55, 72, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
  }
}

/* --- LOADING STATE (OPCIONAL) --- */
.mood-card.loading {
  pointer-events: none;
  opacity: 0.6;
}

.mood-card.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* --- CUSTOM SCROLLBAR (OPCIONAL - PARA DESKTOP) --- */
@media (min-width: 1024px) {
  .mood-grid:hover::-webkit-scrollbar {
    display: block;
    height: 4px;
  }
  
  .mood-grid::-webkit-scrollbar {
    height: 4px;
  }
  
  .mood-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
  }
  
  .mood-grid::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 2px;
    transition: background 0.3s ease;
  }
  
  .mood-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
  }
}

/* ============================================
   PERFIL: LAYOUT 2 COLUNAS (desktop) + PROMO
   ============================================ */

.perfil-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 8px;
}

/* Coluna esquerda ocupa o espaço disponível */
.perfil-layout > .profile-container {
  flex: 1;
  min-width: 0;
}

/* Coluna direita: fixa e grudada no topo ao rolar */
.perfil-promo-col {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
}

/* Card promo */
.perfil-promo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #0d1117;
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 20px;
  padding: 28px 20px 24px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.perfil-promo-card:hover {
  border-color: rgba(124, 58, 237, 0.9);
  transform: translateY(-3px);
}
.perfil-promo-card::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(124,58,237,0.15), transparent 70%);
  pointer-events: none;
}

.perfil-promo-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: #10b981;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.perfil-promo-icon {
  width: 56px; height: 56px;
  background: #7c3aed;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: #fff;
  margin-bottom: 14px;
}

.perfil-promo-eyebrow {
  color: #a78bfa;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.perfil-promo-title {
  color: #f8fafc;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.perfil-promo-sub {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.perfil-promo-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  width: 100%;
  text-align: left;
}
.perfil-promo-list li {
  color: #cbd5e1;
  font-size: 12px;
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.perfil-promo-list li i {
  color: #10b981;
  font-size: 10px;
  flex-shrink: 0;
}
.perfil-promo-list li strong {
  color: #a78bfa;
}

.perfil-promo-case {
  background: rgba(124,58,237,.12);
  border: 1px solid rgba(124,58,237,.25);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 16px;
}
.perfil-promo-case i { color: #a78bfa; }
.perfil-promo-case strong { color: #f8fafc; }

.perfil-promo-btn {
  background: #7c3aed;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 12px;
  width: 100%;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}
.perfil-promo-card:hover .perfil-promo-btn {
  background: #6d28d9;
}

.perfil-promo-url {
  color: #475569;
  font-size: 10px;
}

/* Mobile: coluna direita vai para baixo do perfil */
@media (max-width: 900px) {
  .perfil-layout {
    flex-direction: column;
  }
  .perfil-promo-col {
    width: 100%;
    position: static;
  }
  .perfil-promo-card {
    padding: 20px 16px;
  }
}