/* =========================================
   GLOBAL & RESET
   ========================================= */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

/* Scrollbar customizada (Webkit) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: #cbd5e1; /* slate-300 */
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8; /* slate-400 */
}

.dark ::-webkit-scrollbar-thumb {
    background-color: #475569; /* slate-600 */
}
.dark ::-webkit-scrollbar-thumb:hover {
    background-color: #64748b; /* slate-500 */
}

/* Remove o 'x' padrão de inputs de busca */
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    display: none;
}

/* =========================================
   ANIMAÇÕES DE UI
   ========================================= */

/* Equalizer (Ondas sonoras) */
.wave-animation { 
    display: flex; 
    align-items: flex-end; 
    justify-content: center; 
    height: 24px; 
}
.wave-bar { 
    width: 4px; 
    margin: 0 2px; 
    background-color: #06b6d4; /* cyan-500 */ 
    animation: wave-animation 1.2s infinite ease-in-out; 
    border-radius: 2px;
}
@keyframes wave-animation { 
  0%, 100% { height: 4px; } 
  50% { height: 24px; } 
}
.wave-bar:nth-child(2) { animation-delay: -1.0s; }
.wave-bar:nth-child(3) { animation-delay: -0.8s; }
.wave-bar:nth-child(4) { animation-delay: -0.6s; }
.wave-bar:nth-child(5) { animation-delay: -0.4s; }
.wave-bar:nth-child(6) { animation-delay: -0.2s; }

/* Rotação de Disco/Capa */
.playing-rotation { 
    animation: spin 6s linear infinite; 
}
@keyframes spin { 
    from { transform: rotate(0deg); } 
    to { transform: rotate(360deg); } 
}

/* Entrada de Modais */
@keyframes fadeIn { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}
@keyframes scaleIn { 
    from { opacity: 0; transform: scale(0.95); } 
    to { opacity: 1; transform: scale(1); } 
}
#playerModal { 
    animation: fadeIn 0.3s ease-out; 
}
#playerModal > div { 
    animation: scaleIn 0.3s ease-out; 
}

/* Fade In Genérico */
.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* =========================================
   LETREIRO (MARQUEE) DO FOOTER & SKINS
   ========================================= */
.marquee-wrapper {
    position: relative;
    overflow: hidden;
    min-width: 0; /* CORREÇÃO CRÍTICA: Impede que o conteúdo interno (texto longo) dite o tamanho da coluna. */
    /* Máscara para suavizar o corte do texto nas pontas */
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 15s linear infinite;
}

/* Pausa ao passar o mouse para leitura */
.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(100%); } /* Entra pela direita */
    100% { transform: translateX(-100%); } /* Sai pela esquerda */
}

/* =========================================
   MODOS FULLSCREEN E UTILITÁRIOS
   ========================================= */

/* Ajustes para telas cheias (PWA/Mobile) */
body:fullscreen #playerModal,
body:-webkit-full-screen #playerModal { 
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    background-color: #000;
}

body:fullscreen #playerModal > div,
body:-webkit-full-screen #playerModal > div {
    border-radius: 0;
    max-height: 100vh;
    width: 100%;
    max-width: 100%;
}

/* Responsividade para anúncios nativos */
.ad-slot img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
}