/* ========================================
   Web Radio - Estilos Principais
   ======================================== */

/* === Reset e Configurações Base === */
* {
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}

/* === Layout Principal === */
.main-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  position: relative;
  height: 100%;
}

/* ========================================
   SIDEBAR - Menu Lateral
   ======================================== */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 16rem; /* 256px */
  background: rgba(24, 24, 27, 0.95);
  backdrop-filter: blur(8px);
  z-index: 50;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  border-right: 1px solid rgba(39, 39, 42, 1);
  display: flex;
  flex-direction: column;
}

.sidebar.open {
  transform: translateX(0);
}

/* No desktop, sidebar sempre visível */
@media (min-width: 1024px) {
  .sidebar {
    position: relative;
    transform: translateX(0);
  }
}

.sidebar-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(39, 39, 42, 0.4);
  border-radius: 0.5rem;
  border: none;
  color: rgba(161, 161, 170, 1);
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.sidebar-close-btn:hover {
  background: rgba(63, 63, 70, 0.6);
  color: rgba(212, 212, 216, 1);
}

@media (min-width: 1024px) {
  .sidebar-close-btn {
    display: none;
  }
}

/* Logo Section */
.sidebar-logo {
  padding: 2rem 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(39, 39, 42, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-image {
  max-width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
}

/* Navigation Menu */
.sidebar-nav {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  color: rgba(228, 228, 231, 1);
  text-decoration: none;
  transition: background-color 0.2s;
  font-weight: 500;
}

.menu-item:hover {
  background-color: rgba(39, 39, 42, 1);
}

.menu-item.active {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.2) 0%, rgba(190, 18, 60, 0.2) 100%);
  color: white;
}

.menu-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-icon svg {
  width: 100%;
  height: 100%;
  color: inherit;
}

/* Menu Expansível */
.menu-item-expandable {
  display: flex;
  flex-direction: column;
}

.menu-item-expandable .menu-item {
  cursor: pointer;
  position: relative;
  justify-content: space-between;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
}

.expand-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.menu-item-expandable .menu-item.expanded .expand-icon {
  transform: rotate(180deg);
}

/* Submenu */
.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.submenu.expanded {
  max-height: 500px;
  margin-top: 0.5rem;
}

.submenu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem 0.625rem 2.5rem;
  border-radius: 0.75rem;
  color: rgba(161, 161, 170, 1);
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 400;
  font-size: 0.9375rem;
}

.submenu-item:hover {
  background-color: rgba(39, 39, 42, 0.7);
  color: rgba(228, 228, 231, 1);
}

.submenu-item.active {
  background: rgba(225, 29, 72, 0.15);
  color: white;
}

.submenu-icon {
  width: 1.125rem;
  height: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.submenu-icon svg {
  width: 100%;
  height: 100%;
  color: inherit;
}

.submenu-icon .category-dot {
  width: 0.625rem;
  height: 0.625rem;
}

/* Settings Section */
.sidebar-settings {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(39, 39, 42, 1);
}

@media (max-width: 1023px) {
  .sidebar-settings {
    padding-bottom: 6rem;
  }
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .sidebar-overlay {
    display: none;
  }
}

/* ========================================
   HEADER - Cabeçalho
   ======================================== */
.header {
  padding: 0;
  border-bottom: 1px solid rgba(39, 39, 42, 0.5);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
  .header {
    padding: 0;
  }
}

@media (min-width: 1024px) {
  .header {
    padding: 1.25rem 2rem;
  }
}

/* Header Content - Container principal */
.header-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

@media (min-width: 1024px) {
  .header-content {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
}

/* Header Left - Menu Toggle e Logo */
.header-left {
  display: flex;
  align-items: center;
  width: 100%;
  height: 60px;
  padding: 0 16px;
  position: relative;
}

/* Container do Logo Centralizado */
.header-logo-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logo Mobile */
.header-logo-mobile {
  height: 40px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

@media (min-width: 1024px) {
  .header-left {
    display: none;
  }
}

/* Header Center - Search Bar */
.header-center {
  flex: 1;
  min-width: 0;
  padding: 0 16px 16px 16px;
}

@media (min-width: 1024px) {
  .header-center {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    max-width: none;
    padding: 0;
    padding-left: 1.5rem;
    gap: 0;
  }
}

/* Header Right - Player Desktop */
.header-right {
  display: none;
}

@media (min-width: 1024px) {
  .header-right {
    display: block;
    flex-shrink: 0;
  }
}

.menu-toggle-btn {
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s;
  border: none;
  color: rgba(212, 212, 216, 1);
  flex-shrink: 0;
}

.menu-toggle-btn:hover {
  color: white;
}

@media (min-width: 1024px) {
  .menu-toggle-btn {
    display: none;
  }
}

/* Search Bar */
.search-container {
  position: relative;
  width: 100%;
  flex: 1;
}

@media (min-width: 1024px) {
  .search-container {
    max-width: 420px;
    width: 100%;
  }
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.35rem;
  height: 1.35rem;
  color: rgba(161, 161, 170, 1);
  transition: color 0.2s ease;
}

.search-icon path {
  stroke: currentColor;
}

.search-container:focus-within .search-icon {
  color: #E11D48;
}

.search-input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  outline: none;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

@media (min-width: 1024px) {
  .search-input {
    padding: 1.125rem 1.5rem 1.125rem 3.75rem;
    font-size: 1rem;
  }
}

.search-input::placeholder {
  color: rgba(161, 161, 170, 1);
}

.search-input:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #E11D48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

/* ========================================
   MAIN CONTENT - Conteúdo Principal
   ======================================== */
.main-content {
  flex: 1;
  padding: 0 1.25rem 8rem;
  overflow-y: auto;
}

@media (min-width: 1024px) {
  .main-content {
    padding-bottom: 2rem;
  }
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
}

.view-all-btn {
  color: #f43f5e;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
}

.view-all-btn:hover {
  color: #fb7185;
}

/* ========================================
   LOAD MORE BUTTON - Botão Mostrar Mais
   ======================================== */
.load-more-container {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
  margin: 1rem 0;
}

.load-more-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.4);
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
}

.load-more-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.3);
}

.load-more-count {
  opacity: 0.9;
  font-weight: 500;
}

/* ========================================
   END OF LIST MESSAGE - Mensagem de Fim de Lista
   ======================================== */
.end-of-list-message {
  text-align: center;
  padding: 1rem 0;
  margin: 1rem 0;
}

.end-of-list-message p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
  font-weight: 400;
  margin: 0;
}

/* ========================================
   RADIO CARDS - Cards de Rádios
   ======================================== */
.radio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .radio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .radio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.radio-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
  padding: 1rem;
  border-radius: 1rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
  will-change: transform;
}

.radio-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #1f1f1f 0%, #2b2b2b 100%);
  z-index: 10;
}

.radio-card:active {
  transform: translateY(-2px) scale(1.01);
  transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ajustes para dispositivos móveis */
@media (max-width: 768px) {
  .radio-card:hover {
    transform: translateY(-2px) scale(1.02);
  }
  
  .radio-card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }
}

/* Desabilitar hover em dispositivos touch */
@media (hover: none) and (pointer: coarse) {
  .radio-card:hover {
    transform: none;
    box-shadow: none;
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    z-index: auto;
  }
  
  .radio-card:hover .radio-icon {
    background: linear-gradient(to bottom right, rgba(63, 63, 70, 1), rgba(39, 39, 42, 1));
    transform: none;
  }
  
  .radio-card:hover .radio-name {
    color: white;
    text-shadow: none;
  }
  
  .radio-card:hover .category-badge {
    background: rgba(225, 29, 72, 0.15);
    color: #f87171;
  }
  
  .radio-card:hover .radio-frequency {
    color: rgba(113, 113, 122, 1);
  }
}

.radio-card.playing::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 1rem;
  padding: 2px;
  background: linear-gradient(135deg, #e11d48, #be123c);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: borderPulse 2s ease-in-out infinite;
  pointer-events: none;
}

.radio-card.playing {
  background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
}

.radio-card.playing:hover {
  transform: translateY(-4px) scale(1.03);
  background: linear-gradient(135deg, #242424 0%, #303030 100%);
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.3);
  z-index: 10;
}

.radio-card.playing:active {
  transform: translateY(-2px) scale(1.01);
  transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes borderPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.radio-card-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.radio-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(to bottom right, rgba(63, 63, 70, 1), rgba(39, 39, 42, 1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: all 0.25s ease;
  overflow: hidden;
  position: relative;
}

.radio-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
}

.radio-icon.has-logo {
  background: #ffffff;
  padding: 0.25rem;
}

.fallback-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(to bottom right, rgba(63, 63, 70, 1), rgba(39, 39, 42, 1));
  border-radius: 0.5rem;
}

.radio-card:hover .radio-icon {
  background: linear-gradient(to bottom right, rgba(75, 75, 82, 1), rgba(52, 52, 59, 1));
  transform: scale(1.05);
}

.radio-card:hover .radio-icon.has-logo {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.radio-info {
  flex: 1;
  min-width: 0;
}

.radio-name {
  font-weight: 600;
  color: white;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  transition: color 0.25s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  
  /* Sempre reservar espaço para 2 linhas */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.3;
  min-height: 2.6em; /* Sempre 2 linhas * 1.3 line-height */
  white-space: normal;
}

.radio-card:hover .radio-name {
  color: #f0f0f0;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.radio-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.category-badge {
  background: rgba(225, 29, 72, 0.15);
  color: #f87171;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.radio-card:hover .category-badge {
  background: rgba(225, 29, 72, 0.25);
  color: #fca5a5;
}

.radio-frequency {
  color: rgba(113, 113, 122, 1);
  font-size: 0.75rem;
  transition: color 0.25s ease;
}

.radio-card:hover .radio-frequency {
  color: rgba(161, 161, 170, 1);
}

/* Live Indicator */
.live-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  background: rgba(225, 29, 72, 0.15);
  border-radius: 9999px;
  flex-shrink: 0;
}

.live-indicator .equalizer {
  height: 0.875rem;
}

.live-indicator .eq-bar {
  width: 2.5px;
}

@media (max-width: 480px) {
  .live-indicator {
    padding: 0.4rem 0.6rem;
  }
  
  .live-indicator .equalizer {
    height: 0.75rem;
  }
  
  .live-indicator .eq-bar {
    width: 2px;
  }
}

/* ========================================
   CATEGORIES - Categorias
   ======================================== */
.categories-section {
  margin-top: 2rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.category-card {
  height: 60px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  color: #4B5563;
  font-weight: 500;
  font-size: 0.9rem;
}

.category-card:hover {
  background: #F3F4F6;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: #D1D5DB;
}

/* Estado ativo com destaque vermelho */
.category-card.active {
  background: #E11D48;
  color: white;
  border-color: #BE123C;
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.25);
  transform: translateY(-2px);
}

.category-card.active:hover {
  background: #BE123C;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.35);
}

.category-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-icon svg {
  width: 100%;
  height: 100%;
  color: inherit;
}

.category-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Tema escuro - ajuste das categorias */
body:not(.light-mode) .category-card {
  background: rgba(39, 39, 42, 0.6);
  border-color: rgba(63, 63, 70, 1);
  color: #D4D4D8;
}

body:not(.light-mode) .category-card:hover {
  background: rgba(39, 39, 42, 0.8);
  border-color: rgba(82, 82, 91, 1);
}

body:not(.light-mode) .category-card.active {
  background: #E11D48;
  color: white;
  border-color: #BE123C;
}

/* ========================================
   MINI PLAYER - Player Responsivo
   ======================================== */

/* Player Mobile: fixo na parte inferior */
.mini-player-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, #1f1f1f 0%, #171717 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
}

@media (min-width: 1024px) {
  .mini-player-mobile {
    display: none;
  }
}

/* Player Desktop: dentro do header */
.mini-player-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .mini-player-desktop {
    display: block;
    padding: 0.75rem 1rem;
    background: rgba(31, 31, 31, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
    min-width: 320px;
    max-width: 400px;
  }
}

.mini-player.hidden {
  display: none !important;
}

.mini-player-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .mini-player-content {
    gap: 1rem;
  }
}

.player-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.player-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: linear-gradient(to bottom right, #f43f5e, #be123c);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .player-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
  }
}

.player-favicon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  position: absolute;
  top: 0;
  left: 0;
}

@media (min-width: 1024px) {
  .player-favicon {
    border-radius: 0.625rem;
  }
}

.player-favicon.hidden {
  display: none;
}

.player-details {
  min-width: 0;
  flex: 1;
}

@media (min-width: 1024px) {
  .player-details {
    max-width: 150px;
  }
}

.player-name {
  font-weight: 600;
  color: white;
  font-size: 0.8125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 1024px) {
  .player-name {
    font-size: 0.875rem;
  }
}

.player-meta {
  color: rgba(161, 161, 170, 1);
  font-size: 0.6875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 1024px) {
  .player-meta {
    font-size: 0.75rem;
  }
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .player-controls {
    gap: 0.75rem;
  }
}

.volume-control {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .volume-control {
    display: flex;
  }
}

.volume-icon {
  width: 1rem;
  height: 1rem;
  color: rgba(161, 161, 170, 1);
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 3.5rem;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, #e11d48 0%, #e11d48 var(--volume, 70%), #3f3f46 var(--volume, 70%), #3f3f46 100%);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .volume-slider {
    width: 4.5rem;
  }
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: none;
}

/* ========================================
   LIGHT MODE - Tema Claro
   ======================================== */

/* Cores principais do tema claro */
body.light-mode {
  background-color: #F8F9FB !important;
  color: #1F2937;
}

/* Sidebar no tema claro */
body.light-mode .sidebar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-right: 1px solid #E5E7EB;
}

body.light-mode .sidebar-logo {
  border-bottom: 1px solid #E5E7EB;
}

/* Menu items no tema claro */
body.light-mode .menu-item {
  color: #6B7280;
}

body.light-mode .menu-item:hover {
  background: #F3F4F6;
  color: #1F2937;
}

body.light-mode .menu-item.active {
  background: rgba(225, 29, 72, 0.1);
  color: #E11D48;
}

body.light-mode .submenu {
  background: #F9FAFB;
}

body.light-mode .submenu-item {
  color: #6B7280;
}

body.light-mode .submenu-item:hover {
  background: #F3F4F6;
  color: #1F2937;
}

body.light-mode .submenu-item.active {
  background: rgba(225, 29, 72, 0.1);
  color: #E11D48;
}

/* Header no tema claro */
body.light-mode .header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #E5E7EB;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.light-mode .menu-toggle-btn {
  color: #4B5563;
}

body.light-mode .menu-toggle-btn:hover {
  color: #111827;
}

/* Search bar no tema claro */
body.light-mode .search-container {
  background: transparent;
  border: none;
}

body.light-mode .search-input {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  color: #1F2937;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.light-mode .search-input:hover {
  background: #FFFFFF;
  border-color: #D1D5DB;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

body.light-mode .search-input:focus {
  background: #FFFFFF;
  border-color: #E11D48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
}

body.light-mode .search-input::placeholder {
  color: #9CA3AF;
}

body.light-mode .search-icon {
  color: #1F2937 !important;
}

body.light-mode .search-icon path {
  stroke: #1F2937 !important;
}

body.light-mode .search-container:focus-within .search-icon {
  color: #E11D48 !important;
}

body.light-mode .search-container:focus-within .search-icon path {
  stroke: #E11D48 !important;
}

/* Section titles no tema claro */
body.light-mode .section-title {
  color: #1F2937;
}

body.light-mode .view-all-btn {
  color: #6B7280;
}

body.light-mode .view-all-btn:hover {
  color: #E11D48;
}

/* Radio cards no tema claro */
body.light-mode .radio-card {
  background: #FFFFFF;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #E5E7EB;
}

body.light-mode .radio-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: #E11D48;
  transform: translateY(-4px);
}

body.light-mode .radio-card.playing {
  border-color: #E11D48;
  box-shadow: 0 12px 32px rgba(225, 29, 72, 0.15);
}

body.light-mode .radio-card.playing::before {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.15) 0%, rgba(225, 29, 72, 0.05) 100%);
}

body.light-mode .radio-name {
  color: #1F2937;
}

body.light-mode .radio-card:hover .radio-name {
  color: #E11D48;
}

body.light-mode .category-badge {
  background: rgba(225, 29, 72, 0.1);
  color: #E11D48;
}

body.light-mode .radio-frequency {
  color: #9CA3AF;
}

body.light-mode .radio-icon {
  background: #F3F4F6;
}

body.light-mode .radio-card:hover .radio-icon {
  background: rgba(225, 29, 72, 0.1);
}

/* Live indicator no tema claro */
body.light-mode .live-indicator {
  background: rgba(225, 29, 72, 0.1);
}

/* Category cards no tema claro */
body.light-mode .category-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  color: #4B5563;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

body.light-mode .category-card:hover {
  background: #F3F4F6;
  border-color: #D1D5DB;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

body.light-mode .category-card.active {
  background: #E11D48;
  color: white;
  border-color: #BE123C;
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.25);
}

body.light-mode .category-card.active:hover {
  background: #BE123C;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.35);
}

/* Mini Player (Desktop) no tema claro */
body.light-mode .mini-player-desktop {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #E5E7EB;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.light-mode .player-name {
  color: #1F2937;
}

body.light-mode .player-meta {
  color: #6B7280;
}

body.light-mode .volume-icon {
  color: #6B7280;
}

body.light-mode .volume-slider {
  background: linear-gradient(to right, #E11D48 0%, #E11D48 var(--volume, 70%), #E5E7EB var(--volume, 70%), #E5E7EB 100%);
}

body.light-mode .player-control-btn {
  background: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
}

body.light-mode .player-control-btn:hover {
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

body.light-mode .player-control-btn svg {
  color: white;
}

/* Player favorite button no tema claro */
body.light-mode .player-favorite-btn {
  background: #F3F4F6;
  border-color: #E5E7EB;
}

body.light-mode .player-favorite-btn:hover {
  background: #FFFFFF;
  border-color: #E11D48;
}

body.light-mode .player-favorite-btn.active {
  background: rgba(225, 29, 72, 0.1);
  border-color: #E11D48;
}

/* Mini Player (Mobile) no tema claro */
body.light-mode .mini-player-mobile {
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid #E5E7EB;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

/* Sidebar overlay no tema claro */
body.light-mode .sidebar-overlay {
  background: rgba(0, 0, 0, 0.3);
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  min-width: 280px;
  max-width: 400px;
  padding: 1rem 1.25rem;
  background: rgba(24, 24, 27, 0.98);
  border: 1px solid rgba(63, 63, 70, 1);
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 0.875rem;
  pointer-events: auto;
  animation: slideIn 0.3s ease-out;
  transition: all 0.3s ease;
}

.toast.hiding {
  animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

.toast-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-icon svg {
  width: 100%;
  height: 100%;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-message {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(228, 228, 231, 1);
  line-height: 1.4;
  margin: 0;
}

/* Tipos de toast */
.toast.info {
  border-left: 3px solid #3b82f6;
}

.toast.info .toast-icon {
  color: #3b82f6;
}

.toast.warning {
  border-left: 3px solid #eab308;
}

.toast.warning .toast-icon {
  color: #eab308;
}

.toast.error {
  border-left: 3px solid #ef4444;
}

.toast.error .toast-icon {
  color: #ef4444;
}

.toast.success {
  border-left: 3px solid #10b981;
}

.toast.success .toast-icon {
  color: #10b981;
}

/* Toast no tema claro */
body.light-mode .toast {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #E5E7EB;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

body.light-mode .toast-message {
  color: #1F2937;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .toast-container {
    top: 1rem;
    right: 1rem;
    left: 1rem;
  }
  
  .toast {
    min-width: auto;
    width: 100%;
  }
}

body.light-mode .sidebar-close-btn {
  background: rgba(0, 0, 0, 0.04);
  color: #9CA3AF;
}

body.light-mode .sidebar-close-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #4B5563;
}

/* Scrollbar no tema claro */
body.light-mode::-webkit-scrollbar {
  width: 10px;
}

body.light-mode::-webkit-scrollbar-track {
  background: #F3F4F6;
}

body.light-mode::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 5px;
}

body.light-mode::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

/* Equalizer no tema claro */
body.light-mode .eq-bar {
  background: #E11D48;
}

/* Ajustes finos */
body.light-mode .content-wrapper {
  background: transparent;
}

body.light-mode .main-content {
  color: #1F2937;
}

/* Theme toggle icon */
.theme-toggle-icon {
  transition: transform 0.3s ease;
}

body.light-mode .theme-toggle-icon {
  transform: rotate(180deg);
}

/* Expand icon no tema claro */
body.light-mode .expand-icon {
  color: #6B7280;
}

body.light-mode .menu-item-expandable .menu-item:hover .expand-icon {
  color: #1F2937;
}

body.light-mode .menu-item-expandable .menu-item.expanded .expand-icon {
  color: #E11D48;
}

/* Ajuste do ícone do player no tema claro */
body.light-mode .player-icon {
  background: #F3F4F6;
}

/* Ajuste das sombras dos cards para melhor contraste */
body.light-mode .radio-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

body.light-mode .radio-card.playing {
  box-shadow: 0 12px 40px rgba(225, 29, 72, 0.2);
}

/* Transição suave para mudança de tema */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar,
.header,
.radio-card,
.category-card,
.mini-player-desktop,
.mini-player-mobile {
  transition: all 0.3s ease;
}

/* Garantir que o texto em modo claro seja sempre legível */
body.light-mode * {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.player-control-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
  border: none;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .player-control-btn {
    width: 2.75rem;
    height: 2.75rem;
  }
}

.player-control-btn:hover {
  transform: scale(1.05);
}

.player-control-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  color: black;
}

/* Player Favorite Button */
.player-favorite-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(24, 24, 27, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .player-favorite-btn {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
  }
}

.player-favorite-btn:hover {
  transform: scale(1.1);
  background: rgba(24, 24, 27, 0.95);
  border-color: rgba(255, 255, 255, 0.2);
}

.player-favorite-btn:active {
  transform: scale(0.95);
}

.player-favorite-btn.active {
  background: rgba(225, 29, 72, 0.2);
  border-color: rgba(225, 29, 72, 0.4);
}

.player-favorite-btn.active:hover {
  background: rgba(225, 29, 72, 0.3);
  border-color: rgba(225, 29, 72, 0.6);
  transform: scale(1.15);
}

/* ========================================
   EQUALIZER - Visualizador de Áudio
   ======================================== */
.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 1rem;
}

.eq-bar {
  width: 3px;
  background: #e11d48;
  border-radius: 1px;
  animation: equalizer 0.8s ease-in-out infinite;
}

.eq-bar:nth-child(1) {
  animation-delay: 0s;
}

.eq-bar:nth-child(2) {
  animation-delay: 0.2s;
}

.eq-bar:nth-child(3) {
  animation-delay: 0.4s;
}

.eq-bar:nth-child(4) {
  animation-delay: 0.1s;
}

@keyframes equalizer {
  0%, 100% {
    height: 3px;
  }
  50% {
    height: 14px;
  }
}

/* ========================================
   ANIMATIONS - Animações
   ======================================== */

/* ========================================
   UTILITY CLASSES - Classes Utilitárias
   ======================================== */
.hidden {
  display: none !important;
}

.icon-svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Content Wrapper */
.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: auto;
}
