/* ============================================
   ESTILIZAÇÃO PROFISSIONAL - AUTOMAÇÃO RÁDIO
   ============================================ */

/* Importar fonte profissional */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');
@import url('components.css');
@import url('custom-player.css');

/* Variáveis de cores profissionais - Estilo Black Profissional */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    --bg-card: #0f0f0f;
    --bg-hover: #2a2a2a;
    --accent-primary: #00d4ff;
    --accent-secondary: #00ff88;
    --accent-warning: #ffb800;
    --accent-danger: #ff4757;
    --accent-info: #5b9bd5;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --border-color: #2a2a2a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 6px 18px rgba(0, 0, 0, 0.7);
    --glow-primary: 0 0 8px rgba(0, 212, 255, 0.2);
    --glow-success: 0 0 8px rgba(0, 255, 136, 0.2);
    --glow-danger: 0 0 8px rgba(255, 71, 87, 0.2);
    --transition-fast: all 0.1s ease;
    --transition-normal: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

/* Reset e base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Remover efeitos de fundo exagerados */
body::before,
body::after {
    display: none;
}

/* ============================================
   HEADER PROFISSIONAL
   ============================================ */
header {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(42, 42, 42, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

header:hover {
    border-bottom-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 212, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

header > div:first-child {
    display: flex;
    align-items: center;
    gap: 20px;
}

header h1 {
    margin: 0;
    color: var(--accent-primary);
    font-size: 22px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding-left: 16px;
}

header h1::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

header > div:first-child span {
    color: var(--accent-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.12), rgba(0, 204, 119, 0.08));
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 2px 6px rgba(0, 255, 136, 0.15);
    transition: var(--transition-normal);
}

header > div:first-child span:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.18), rgba(0, 204, 119, 0.12));
    border-color: rgba(0, 255, 136, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 255, 136, 0.25);
}

header > div:last-child {
    display: flex;
    align-items: center;
    gap: 18px;
}

header > div:last-child > span {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    padding: 8px 18px;
    background: rgba(26, 26, 26, 0.6);
    border-radius: 6px;
    border: 1px solid rgba(42, 42, 42, 0.6);
    transition: var(--transition-normal);
}

header > div:last-child > span:hover {
    background: rgba(26, 26, 26, 0.8);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}

#logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.12), rgba(0, 204, 119, 0.08));
    border: 2px solid var(--accent-secondary);
    color: var(--accent-secondary);
    text-decoration: none;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.2);
}

#logout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.4s;
}

#logout-btn:hover::before {
    left: 100%;
}

#logout-btn:hover {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.18), rgba(255, 45, 74, 0.12));
    border-color: var(--accent-danger);
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(255, 71, 87, 0.35);
}

#logout-btn:active {
    transform: scale(1.02);
}

#logout-btn i {
    position: absolute;
    font-size: 24px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#logout-btn .fa-toggle-on {
    color: var(--accent-secondary);
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 3px rgba(0, 255, 136, 0.4));
}

#logout-btn .fa-power-off {
    color: var(--accent-danger);
    opacity: 0;
    transform: scale(0.8);
}

#logout-btn:hover .fa-toggle-on {
    opacity: 0;
    transform: scale(0.8);
}

#logout-btn:hover .fa-power-off {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 5px rgba(255, 71, 87, 0.5));
}

/* Container principal - Layout Profissional de Automação */
#container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 24px;
    padding: 20px;
    max-width: 1920px;
    margin: 0 auto;
    min-height: calc(100vh - 60px);
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(15, 15, 15, 0.98) 100%);
}

/* ============================================
   BIBLIOTECA DE MÚSICAS (Sidebar) - ESTILO PROFISSIONAL
   ============================================ */
#file-list {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
    border: 2px solid rgba(42, 42, 42, 0.6);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(0, 212, 255, 0.1);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 80px);
    position: sticky;
    top: 60px;
    transition: var(--transition-normal);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

#file-list:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(0, 212, 255, 0.2),
        0 0 40px rgba(0, 212, 255, 0.15);
}

#file-list h2 {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

#file-list h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    display: block;
}

#file-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
}

#file-list-header h2 {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

#saved-playlists-btn {
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 255, 136, 0.15));
    color: var(--accent-primary);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition-normal);
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#saved-playlists-btn:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(0, 255, 136, 0.25));
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}


/* Container de pesquisa - Estilo Profissional */
#search-container {
    width: 100%;
    margin-bottom: 24px;
    display: flex;
    gap: 10px;
}

#search-input {
    flex: 1;
    padding: 14px 18px;
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid rgba(42, 42, 42, 0.6);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

#search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(26, 26, 26, 0.9);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.15), inset 0 0 20px rgba(0, 212, 255, 0.05);
    transform: translateY(-1px);
}

#search-input::placeholder {
    color: rgba(136, 136, 136, 0.7);
    font-weight: 400;
}

#search-btn {
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--accent-primary), #00b8e6);
    color: var(--bg-primary);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: var(--transition-normal);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3), 0 0 20px rgba(0, 212, 255, 0.2);
    position: relative;
    overflow: hidden;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

#search-btn:hover::before {
    left: 100%;
}

#search-btn:hover {
    background: linear-gradient(135deg, var(--accent-secondary), #00cc77);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4), 0 0 30px rgba(0, 255, 136, 0.3);
}

#search-btn:active {
    transform: translateY(-1px);
}

/* Lista de arquivos - Estilo Profissional */
#music-files {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-secondary);
}

#music-files::-webkit-scrollbar {
    width: 6px;
}

#music-files::-webkit-scrollbar-track {
    background: rgba(20, 20, 20, 0.5);
    border-radius: 3px;
}

#music-files::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 3px;
}

#music-files::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-secondary), var(--accent-primary));
}

#music-files li {
    padding: 14px 16px;
    margin: 6px 0;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(42, 42, 42, 0.4);
    border-left: 4px solid transparent;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

#music-files li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.15), transparent);
    transition: width 0.3s ease;
    z-index: 0;
}

/* Estilo para botão "Voltar" */
#music-files li:first-child {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 255, 136, 0.1));
    border-left-color: var(--accent-primary);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 14px;
}

#music-files li:first-child:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.25), rgba(0, 204, 119, 0.2));
    border-left-color: var(--accent-secondary);
    border-color: rgba(0, 255, 136, 0.5);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

#music-files li:first-child:hover::before {
    width: 100%;
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.2), transparent);
}

/* Estilo para pastas/categorias */
#music-files li[data-type="folder"],
#music-files li:has(> .folder-icon) {
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.12), rgba(255, 152, 0, 0.08));
    border-left-color: var(--accent-warning);
    border-color: rgba(255, 184, 0, 0.2);
    color: #ffd700;
}

#music-files li[data-type="folder"]:hover,
#music-files li:has(> .folder-icon):hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 204, 119, 0.15));
    border-left-color: var(--accent-secondary);
    border-color: rgba(0, 255, 136, 0.4);
    color: var(--text-primary);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

#music-files li[data-type="folder"]:hover::before,
#music-files li:has(> .folder-icon):hover::before {
    width: 100%;
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.2), transparent);
}

#music-files li[data-type="folder"]::before,
#music-files li:has(> .folder-icon)::before {
    background: linear-gradient(90deg, rgba(255, 184, 0, 0.15), transparent);
}

/* Estilo para músicas */
#music-files li[data-type="file"],
#music-files li:has(> .music-icon) {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(0, 169, 204, 0.08));
    border-left-color: var(--accent-primary);
    border-color: rgba(0, 212, 255, 0.2);
    color: rgba(180, 230, 255, 0.9);
}

#music-files li:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 204, 119, 0.15));
    border-left-color: var(--accent-secondary);
    border-color: rgba(0, 255, 136, 0.4);
    color: var(--text-primary);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

#music-files li:hover::before {
    width: 100%;
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.2), transparent);
}

#music-files li:active {
    transform: translateX(2px);
    transition: all 0.1s ease;
}

/* Ícones */
#music-files li .folder-icon,
#music-files li .music-icon {
    font-size: 18px;
    flex-shrink: 0;
    z-index: 1;
    position: relative;
}

#music-files li .folder-icon {
    color: #ffb800;
}

#music-files li .music-icon {
    color: #00d4ff;
}

/* Indicador de carregamento */
#loading-indicator {
    text-align: center;
    padding: 20px;
    color: var(--accent-primary);
    font-size: 14px;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}

#loading-indicator::after {
    content: "...";
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

/* ============================================
   CONTAINER DE PLAYLIST (Principal) - ESTILO AUTOMAÇÃO PROFISSIONAL
   ============================================ */
#playlist-container {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
    border: 2px solid rgba(42, 42, 42, 0.6);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(0, 212, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

#playlist-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(0, 212, 255, 0.4) 20%,
        rgba(0, 255, 136, 0.4) 50%,
        rgba(0, 212, 255, 0.4) 80%,
        transparent 100%);
    opacity: 0.6;
    animation: scanline 3s linear infinite;
}

@keyframes scanline {
    0% { opacity: 0.3; }
    50% { opacity: 0.8; }
    100% { opacity: 0.3; }
}

#playlist-container:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(0, 212, 255, 0.2),
        0 0 40px rgba(0, 212, 255, 0.15);
}

#playlist-container h2 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

#playlist-container h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    display: block;
}

/* Lista da playlist - Estilo Profissional */
#playlist-items {
    list-style: none;
    padding: 0;
    margin: 0;
    min-height: 320px;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-secondary) var(--bg-secondary);
    position: relative;
    background: rgba(10, 10, 10, 0.4);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(42, 42, 42, 0.3);
}

/* Quando vazia, manter altura mínima e mostrar mensagem */
#playlist-items:empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

#playlist-items:empty::before {
    content: 'Nenhuma música na playlist';
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

#playlist-items::-webkit-scrollbar {
    width: 4px;
}

#playlist-items::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 2px;
}

#playlist-items::-webkit-scrollbar-thumb {
    background: var(--accent-secondary);
    border-radius: 2px;
}

#playlist-items li {
    padding: 16px 20px;
    margin: 10px 0;
    background: rgba(20, 27, 45, 0.6);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-secondary);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: var(--transition-normal);
    user-select: none;
    position: relative;
    overflow: hidden;
}

/* Música já tocada - VERMELHO */
#playlist-items li.played {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.15) 0%, rgba(255, 45, 74, 0.1) 100%);
    border-left: 4px solid #ff4757;
    border-color: rgba(255, 71, 87, 0.3);
    color: rgba(255, 200, 200, 0.8);
}

#playlist-items li.played:hover {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.25) 0%, rgba(255, 45, 74, 0.15) 100%);
    border-left-color: #ff4757;
    border-color: rgba(255, 71, 87, 0.5);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.2);
}

/* Música tocando - VERDE */
#playlist-items li.playing {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 204, 119, 0.15) 100%);
    border-left: 4px solid #00ff88;
    border-color: rgba(0, 255, 136, 0.4);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3), 0 4px 12px rgba(0, 255, 136, 0.2);
}

#playlist-items li.playing::before {
    width: 100%;
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.2), transparent);
}

#playlist-items li.playing:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3) 0%, rgba(0, 204, 119, 0.2) 100%);
    border-left-color: #00ff88;
    border-color: rgba(0, 255, 136, 0.6);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.4), 0 6px 16px rgba(0, 255, 136, 0.3);
}

/* Música que vai tocar - AMARELO */
#playlist-items li.upcoming {
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.15) 0%, rgba(255, 152, 0, 0.1) 100%);
    border-left: 4px solid #ffb800;
    border-color: rgba(255, 184, 0, 0.3);
    color: rgba(255, 240, 200, 0.9);
}

#playlist-items li.upcoming:hover {
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.25) 0%, rgba(255, 152, 0, 0.15) 100%);
    border-left-color: #ffb800;
    border-color: rgba(255, 184, 0, 0.5);
    box-shadow: 0 4px 12px rgba(255, 184, 0, 0.2);
}

/* Música depois da próxima - AZUL */
#playlist-items li.upcoming-next {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 169, 204, 0.1) 100%);
    border-left: 4px solid #00d4ff;
    border-color: rgba(0, 212, 255, 0.3);
    color: rgba(180, 230, 255, 0.9);
}

#playlist-items li.upcoming-next:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25) 0%, rgba(0, 169, 204, 0.15) 100%);
    border-left-color: #00d4ff;
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

/* Badge de Hora Certa na playlist */
#playlist-items li .hora-certa-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--accent-warning), #ff9800);
    color: var(--bg-primary);
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    margin-right: 8px;
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.3);
    animation: pulse-badge 2s ease-in-out infinite;
    white-space: nowrap;
    flex-shrink: 0;
}

@keyframes pulse-badge {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.05);
    }
}

#playlist-items li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.1), transparent);
    transition: width 0.3s ease;
    z-index: 0;
}

/* Hover geral - apenas para itens sem classe específica */
#playlist-items li:not(.played):not(.playing):not(.upcoming):hover::before {
    width: 100%;
}

#playlist-items li:not(.played):not(.playing):not(.upcoming):hover {
    background: rgba(37, 49, 67, 0.8);
    border-left-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 212, 255, 0.2);
}

#playlist-items li:active {
    transform: translateX(2px);
}

.remove-btn {
    background: linear-gradient(135deg, var(--accent-danger), #ff2d4a);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: var(--transition-normal);
    opacity: 0.9;
    min-width: 36px;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
    position: relative;
    overflow: hidden;
}

/* Botões de mover música */
.move-btn {
    background: linear-gradient(135deg, var(--accent-info), #5b9fd3);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    transition: var(--transition-normal);
    opacity: 0.9;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(91, 155, 211, 0.3);
    position: relative;
    overflow: hidden;
}

.move-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: linear-gradient(135deg, #555555, #444444);
}

.move-btn:not(:disabled):hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(91, 155, 211, 0.5);
}

.move-btn:not(:disabled):active {
    transform: scale(1.05);
}

.move-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.move-btn:not(:disabled):hover::before {
    width: 80px;
    height: 80px;
}

.remove-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.remove-btn:hover::before {
    width: 100px;
    height: 100px;
}

.remove-btn:hover {
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(255, 71, 87, 0.6), var(--glow-danger);
}

.remove-btn:active {
    transform: scale(1.05);
}

/* Informações da playlist */
#playlist-info {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 16px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--accent-info);
    text-align: center;
    font-weight: 600;
    box-shadow: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 120px;
}

#playlist-info::before {
    display: none;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Botão limpar playlist dentro do playlist-info */
#playlist-info #clear-playlist {
    width: 100%;
    height: 40px;
    padding: 12px 16px;
    background: var(--accent-danger);
    color: white;
    font-weight: 600;
    font-size: 13px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin-top: auto;
}

#playlist-info #clear-playlist:hover {
    background: linear-gradient(135deg, #ff4757, #ff2d4a);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
}

#playlist-info #clear-playlist:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.3);
}

/* Texto de informações dentro do playlist-info */
#playlist-info .playlist-info-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--accent-info);
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* Informações da música atual - Estilo Profissional Compacto */
#current-track-info {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
    border: 1px solid rgba(42, 42, 42, 0.5);
    border-left: 4px solid var(--accent-primary);
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
    flex: 1;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

#current-track-info:hover {
    border-left-color: var(--accent-secondary);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 0 20px rgba(0, 212, 255, 0.15);
}

#current-track-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
}

#current-track-info p {
    margin: 2px 0;
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

#current-track-info strong {
    color: var(--accent-primary);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

#current-track-info span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 11px;
    flex: 1;
}

/* Player de áudio - Estilo customizado */
#audio-player {
    width: 100%;
    height: 48px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    margin-top: 0;
}

/* Barra de progresso - Estilo Profissional */
#progress-container {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(26, 26, 26, 0.9) 100%);
    border: 1px solid rgba(42, 42, 42, 0.5);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

#progress-container:hover {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 0 20px rgba(0, 212, 255, 0.1);
}

#progress-bar {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, rgba(26, 26, 26, 0.8), rgba(42, 42, 42, 0.6));
    border-radius: 4px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: var(--transition-normal);
}

#progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--glow-primary), 0 0 0 4px rgba(0, 212, 255, 0.2);
    transition: var(--transition-normal);
    border: 2px solid var(--bg-primary);
}

#progress-bar::-webkit-slider-thumb:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    transform: scale(1.3);
    box-shadow: var(--glow-success), 0 0 0 6px rgba(0, 255, 136, 0.2);
}

#progress-bar::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: var(--glow-primary);
}

/* Controle de volume - Estilo Profissional */
#volume-container {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(26, 26, 26, 0.9) 100%);
    border: 1px solid rgba(42, 42, 42, 0.5);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

#volume-container:hover {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 0 20px rgba(0, 212, 255, 0.1);
}

#volume-container label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 80px;
}

#volume-slider {
    flex: 1;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent-info);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

#volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

#volume-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--accent-info);
    min-width: 45px;
    text-align: right;
    font-weight: 600;
}

/* Botões de controle - Estilo Profissional */
#audio-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(26, 26, 26, 0.9) 100%);
    border: 1px solid rgba(42, 42, 42, 0.5);
    border-radius: 12px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
    margin-top: 0;
}

#audio-controls:hover {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 0 20px rgba(0, 212, 255, 0.1);
}

#audio-controls button,
#audio-controls select {
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#audio-controls button {
    overflow: hidden;
}

/* Customização do select - seta igual ao botão Hora Certa */
#audio-controls select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0;
    padding-right: 35px;
    background: transparent;
    border: none;
    background-image: none;
    overflow: visible;
    width: 100%;
    position: relative;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-align: center;
    outline: none;
}

/* Wrapper do select com seta */
#speed-btn-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#speed-btn-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

#speed-btn-wrapper:hover::before {
    width: 300px;
    height: 300px;
}

#speed-btn-wrapper:hover {
    background: linear-gradient(135deg, var(--bg-hover) 0%, #333333 100%);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 212, 255, 0.3);
}

#speed-btn-wrapper:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), 0 0 10px rgba(0, 212, 255, 0.2);
}

/* Seta customizada usando elemento HTML real */
#speed-btn-wrapper .speed-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    opacity: 0.7;
    pointer-events: none;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1;
    transition: transform 0.2s ease;
    z-index: 2;
}

#speed-btn-wrapper:hover .speed-arrow {
    opacity: 0.8;
}

#speed-btn-wrapper .speed-arrow,
#speed-btn:focus ~ .speed-arrow,
#speed-btn-wrapper.open .speed-arrow {
    opacity: 0.8;
}

#speed-btn-wrapper.open .speed-arrow {
    transform: translateY(-50%) rotate(180deg);
}

#speed-btn:focus ~ .speed-arrow {
    transform: translateY(-50%) rotate(180deg);
}

#audio-controls button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

#audio-controls button:hover::before {
    width: 300px;
    height: 300px;
}

#audio-controls button:hover {
    background: linear-gradient(135deg, var(--bg-hover) 0%, #333333 100%);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}

#audio-controls button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), 0 0 10px rgba(0, 212, 255, 0.2);
}

#audio-controls button > * {
    position: relative;
    z-index: 1;
}

#play-stop-btn {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #0099cc 100%);
    color: var(--bg-primary);
    font-weight: 700;
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4), 0 0 20px rgba(0, 212, 255, 0.3);
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

#play-stop-btn i {
    font-size: 14px;
    transition: all 0.25s ease;
}

#play-stop-btn.paused {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, #00cc77 100%);
    border-color: var(--accent-secondary);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.4), 0 0 20px rgba(0, 255, 136, 0.3);
}

#play-stop-btn.paused i {
    color: var(--accent-secondary);
}

#play-stop-btn.playing {
    background: linear-gradient(135deg, #888888 0%, #666666 100%);
    border-color: #888888;
    box-shadow: 0 4px 12px rgba(136, 136, 136, 0.4), 0 0 20px rgba(136, 136, 136, 0.3);
}

#play-stop-btn.playing i {
    color: #cccccc;
}

#play-stop-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

#play-stop-btn:hover::after {
    left: 100%;
}

#play-stop-btn:hover {
    transform: translateY(-4px) scale(1.02);
}

#play-stop-btn.paused:hover {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, #00cc77 100%);
    border-color: var(--accent-secondary);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.5), 0 0 30px rgba(0, 255, 136, 0.4);
}

#play-stop-btn.playing:hover {
    background: linear-gradient(135deg, #999999 0%, #777777 100%);
    border-color: #999999;
    box-shadow: 0 6px 20px rgba(153, 153, 153, 0.5), 0 0 30px rgba(153, 153, 153, 0.4);
}

#play-stop-btn:active {
    transform: translateY(-1px) scale(1);
}

#play-stop-btn .play-text {
    margin-left: 6px;
}

#prev-btn,
#next-btn {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1.5px solid var(--border-color);
}

#prev-btn:hover,
#next-btn:hover {
    background: linear-gradient(135deg, var(--bg-hover) 0%, #353535 100%);
    border-color: var(--accent-info);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 20px rgba(91, 155, 213, 0.25);
}

#mute-btn {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1.5px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

#mute-btn i {
    font-size: 16px;
    transition: all 0.25s ease;
    color: var(--text-primary);
}

#mute-btn:hover {
    background: linear-gradient(135deg, var(--bg-hover) 0%, #353535 100%);
    border-color: var(--accent-info);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 20px rgba(91, 155, 213, 0.25);
}

#mute-btn.active {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15) 0%, rgba(0, 255, 136, 0.1) 100%);
    border-color: var(--accent-secondary);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.4), 0 0 20px rgba(0, 255, 136, 0.5);
}

#mute-btn.active i {
    color: var(--accent-secondary);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.8), 0 0 20px rgba(0, 255, 136, 0.5);
}

#mute-btn.active:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.25) 0%, rgba(0, 255, 136, 0.15) 100%);
    border-color: var(--accent-secondary);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.5), 0 0 30px rgba(0, 255, 136, 0.6);
}

#mute-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

#mute-btn:hover::before {
    width: 300px;
    height: 300px;
}

#mute-btn.active::before {
    background: radial-gradient(circle, rgba(0, 255, 136, 0.25) 0%, transparent 70%);
}

#mute-btn > * {
    position: relative;
    z-index: 1;
}

#shuffle-btn,
#repeat-btn {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1.5px solid var(--border-color);
}

#shuffle-btn:hover,
#repeat-btn:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 212, 255, 0.1) 100%);
    border-color: var(--accent-primary);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 212, 255, 0.3);
}

#shuffle-btn.active,
#repeat-btn.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25) 0%, rgba(0, 212, 255, 0.15) 100%);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4), 0 0 15px rgba(0, 212, 255, 0.3);
    color: var(--accent-primary);
}

/* Botão limpar playlist */
#clear-playlist {
    width: 100%;
    height: 120px; /* Tamanho fixo de altura */
    padding: 12px 16px;
    background: var(--accent-danger);
    color: white;
    font-weight: 600;
    font-size: 13px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

#clear-playlist:hover {
    background: #ff2d4a;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.4);
}

#clear-playlist:active {
    transform: translateY(0);
}

/* Controles de Hora Certa */
#hora-certa-controls {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 0;
}

#hora-certa-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    user-select: none;
}

#hora-certa-controls input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-primary);
}

#hora-certa-controls input[type="checkbox"]:checked {
    accent-color: var(--accent-secondary);
}

#hora-certa-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    color: var(--accent-primary);
    font-weight: 600;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    min-width: 90px;
    text-align: center;
}

/* Controle de Hora Certa em Segundo Específico */
#hora-certa-segundo-controls {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    margin-top: 0;
}

#hora-certa-segundo-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    user-select: none;
}

#hora-certa-segundo-controls input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-primary);
}

#hora-certa-segundo-controls input[type="checkbox"]:checked {
    accent-color: var(--accent-secondary);
}

#hora-certa-segundo-controls input[type="number"] {
    width: 80px;
    padding: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
}

#hora-certa-segundo-controls input[type="number"]:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 4px rgba(0, 212, 255, 0.3);
}

#hora-certa-segundo-controls span {
    color: var(--text-secondary);
    font-size: 12px;
}

/* Controle de Hora Certa a cada X Segundos */
#hora-certa-intervalo-segundos-controls {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    margin-top: 0;
}

#hora-certa-intervalo-segundos-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    user-select: none;
}

#hora-certa-intervalo-segundos-controls input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-primary);
}

#hora-certa-intervalo-segundos-controls input[type="checkbox"]:checked {
    accent-color: var(--accent-secondary);
}

#hora-certa-intervalo-segundos-controls input[type="number"] {
    width: 80px;
    padding: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
}

#hora-certa-intervalo-segundos-controls input[type="number"]:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 4px rgba(0, 212, 255, 0.3);
}

#hora-certa-intervalo-segundos-controls span {
    color: var(--text-secondary);
    font-size: 12px;
}

/* Controle de Hora Certa a cada X Músicas */
#hora-certa-intervalo-musicas-controls {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    margin-top: 0;
}

#hora-certa-intervalo-musicas-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    user-select: none;
}

#hora-certa-intervalo-musicas-controls input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-primary);
}

#hora-certa-intervalo-musicas-controls input[type="checkbox"]:checked {
    accent-color: var(--accent-secondary);
}

#hora-certa-intervalo-musicas-controls input[type="number"] {
    width: 80px;
    padding: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
}

#hora-certa-intervalo-musicas-controls input[type="number"]:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 4px rgba(0, 212, 255, 0.3);
}

#hora-certa-intervalo-musicas-controls span {
    color: var(--text-secondary);
    font-size: 12px;
}

#hora-certa-btn {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

#hora-certa-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

#hora-certa-btn:hover::before {
    width: 300px;
    height: 300px;
}

#hora-certa-btn:hover {
    background: linear-gradient(135deg, var(--bg-hover) 0%, #333333 100%);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 212, 255, 0.3);
}

#hora-certa-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), 0 0 10px rgba(0, 212, 255, 0.2);
}

#hora-certa-btn > * {
    position: relative;
    z-index: 1;
}

/* Flechinha dentro do botão Hora Certa (igual ao select) */
#hora-certa-btn .hora-certa-arrow {
    font-size: 11px;
    opacity: 0.7;
    transition: transform 0.2s ease;
    pointer-events: none;
    color: var(--text-primary);
    line-height: 1;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    font-family: 'Inter', sans-serif;
}

#hora-certa-dropdown-container.show #hora-certa-btn .hora-certa-arrow {
    transform: rotate(180deg);
}

#hora-certa-btn > span:first-child {
    flex-shrink: 0;
}

/* Container do dropdown */
#hora-certa-dropdown-container {
    position: relative;
    display: inline-block;
}

/* Menu dropdown de Hora Certa */
.hora-certa-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    min-width: 400px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 1000;
    animation: fadeInDropdown 0.2s ease-out;
}

.hora-certa-dropdown-menu.show {
    display: block;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajustar controles dentro do dropdown */
.hora-certa-dropdown-menu #hora-certa-controls,
.hora-certa-dropdown-menu #hora-certa-segundo-controls,
.hora-certa-dropdown-menu #hora-certa-intervalo-segundos-controls,
.hora-certa-dropdown-menu #hora-certa-intervalo-musicas-controls {
    margin-bottom: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.hora-certa-dropdown-menu #hora-certa-controls:last-child,
.hora-certa-dropdown-menu #hora-certa-segundo-controls:last-child,
.hora-certa-dropdown-menu #hora-certa-intervalo-segundos-controls:last-child,
.hora-certa-dropdown-menu #hora-certa-intervalo-musicas-controls:last-child {
    margin-bottom: 0;
}

/* Informações de tempo - Estilo Profissional Compacto */
#track-time-info {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
    border: 1px solid rgba(42, 42, 42, 0.5);
    border-left: 4px solid var(--accent-secondary);
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
    flex: 1;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
}

#track-time-info:hover {
    border-left-color: var(--accent-primary);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 0 20px rgba(0, 255, 136, 0.15);
}

#track-time-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-info), var(--accent-primary));
}

#track-time-info p {
    margin: 2px 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 11px;
}

#track-time-info strong {
    color: var(--accent-info);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 9px;
    white-space: nowrap;
}

#track-time-info span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 11px;
    flex: 1;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#music-files li,
#playlist-items li {
    animation: fadeIn 0.3s ease-out;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Indicador de reprodução */
.playing {
    border-left-color: var(--accent-secondary) !important;
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(0, 255, 136, 0.1)) !important;
    box-shadow: var(--glow-success), inset 0 0 20px rgba(0, 255, 136, 0.1) !important;
    animation: playingPulse 2s ease-in-out infinite;
}

@keyframes playingPulse {
    0%, 100% {
        box-shadow: var(--glow-success), inset 0 0 20px rgba(0, 255, 136, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.4), inset 0 0 30px rgba(0, 255, 136, 0.15);
    }
}

/* Acessibilidade */
button:focus,
input:focus,
select:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 1024px) {
    #container {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }

    #file-list {
        position: relative;
        top: 0;
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    #container {
        padding: 12px;
    }

    #file-list,
    #playlist-container {
        padding: 16px;
    }

    #audio-controls {
        grid-template-columns: repeat(2, 1fr);
    }

    #search-container {
        flex-direction: column;
    }

    #search-btn {
        width: 100%;
    }

    #playlist-items {
        max-height: 200px;
    }
}

/* Estilo para scrollbar personalizado em todos os elementos */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* ============================================
   SISTEMA DE PLAYLISTS SALVAS
   ============================================ */

#file-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

#saved-playlists-btn {
    padding: 8px 16px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-fast);
}

#saved-playlists-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

#saved-playlists-section {
    width: 100%;
    padding: 24px;
}

#saved-playlists-container {
    max-width: 1200px;
    margin: 0 auto;
}

#saved-playlists-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

#saved-playlists-header h2 {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 700;
}

#back-to-library-btn {
    padding: 10px 20px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-fast);
}

#back-to-library-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

#playlists-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

#playlists-controls button,
#save-playlist-btn,
#start-queue-btn {
    padding: 12px 24px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-fast);
}

#playlists-controls button:hover,
#save-playlist-btn:hover,
#start-queue-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

#playlists-queue-container {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
}

#playlists-queue-container h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}

#playlists-queue {
    list-style: none;
    min-height: 100px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 2px dashed var(--border-color);
}

#playlists-queue.drag-over {
    border-color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.1);
}

.queue-playlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: move;
    transition: var(--transition-fast);
}

.queue-playlist-item:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.queue-playlist-item.playing {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--accent-primary);
    box-shadow: var(--glow-primary);
}

.queue-playlist-item.dragging {
    opacity: 0.5;
}

.queue-playlist-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.queue-order {
    color: var(--accent-primary);
    font-weight: 600;
    min-width: 24px;
}

.queue-playlist-name {
    color: var(--text-primary);
    font-weight: 500;
    flex: 1;
}

.queue-playlist-count {
    color: var(--text-muted);
    font-size: 14px;
}

.queue-playlist-actions {
    display: flex;
    gap: 8px;
}

.queue-playlist-actions button {
    padding: 6px 12px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.queue-playlist-actions button:hover {
    background: var(--accent-danger);
    color: var(--text-primary);
    border-color: var(--accent-danger);
}

#saved-playlists-list-container {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

#saved-playlists-list-container h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}

#saved-playlists-list {
    list-style: none;
}

.saved-playlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    margin-bottom: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: move;
    transition: var(--transition-fast);
}

.saved-playlist-item:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.playlist-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.playlist-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
}

.playlist-count {
    color: var(--text-muted);
    font-size: 14px;
}

.playlist-actions {
    display: flex;
    gap: 8px;
}

.playlist-actions button {
    padding: 8px 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 16px;
}

.playlist-actions button:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.playlist-actions button:last-child:hover {
    background: var(--accent-danger);
    border-color: var(--accent-danger);
}

.draggable-list {
    min-height: 80px;
}

/* Modal de Playlist */
#playlist-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

#playlist-modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    position: relative;
}

#close-modal-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

#close-modal-btn:hover {
    color: var(--accent-danger);
    transform: scale(1.2);
}

#modal-title {
    color: var(--text-primary);
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 700;
}

#playlist-name-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 24px;
    transition: var(--transition-fast);
}

#playlist-name-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

#modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

#modal-buttons button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-fast);
}

#save-playlist-modal-btn {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

#save-playlist-modal-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

#cancel-modal-btn {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

#cancel-modal-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-danger);
}

#playlist-controls-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

#save-playlist-btn {
    flex: 1;
}

/* Responsividade para playlists salvas */
@media (max-width: 1024px) {
    #saved-playlists-section {
        padding: 16px;
    }

    #playlists-controls {
        flex-direction: column;
    }

    #playlists-controls button,
    #save-playlist-btn {
        width: 100%;
    }
}

/* ============================================
   MELHORIAS E FUNCIONALIDADES AVANÇADAS
   ============================================ */

/* Animação pulsante para música tocando */
#playlist-items li.playing {
    animation: playingPulseGlow 2s ease-in-out infinite;
}

@keyframes playingPulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.3), 0 4px 12px rgba(0, 255, 136, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.5), 0 6px 16px rgba(0, 255, 136, 0.4);
    }
}

/* Indicador de ondas no botão de volume quando ativo */
#volume-container.has-active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-secondary);
    animation: volumeWave 1.5s ease-out infinite;
    pointer-events: none;
}

#volume-container {
    position: relative;
}

@keyframes volumeWave {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

/* Skeleton Loading */
.skeleton-item {
    background: linear-gradient(90deg, 
        rgba(26, 26, 26, 0.6) 0%, 
        rgba(42, 42, 42, 0.8) 50%, 
        rgba(26, 26, 26, 0.6) 100%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Tooltips */
.custom-tooltip {
    position: absolute;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.98), rgba(20, 20, 20, 0.98));
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10001;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    border: 1px solid rgba(42, 42, 42, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.custom-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

/* Drag and Drop */
#playlist-items li.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

#playlist-items li.drag-over {
    border-top: 3px solid var(--accent-secondary);
    border-top-width: 3px;
}

#playlist-items li.drag-over::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

/* Preview de música - Carregando */
#music-files li.preview-loading::after {
    content: '\f110'; /* Font Awesome Spinner icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--accent-primary);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    animation: previewSpinner 1s linear infinite;
    z-index: 10;
}

@keyframes previewSpinner {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Preview de música - Indicador disponível (só aparece no hover) */
#music-files li.preview-available {
    position: relative;
}

#music-files li.preview-available::after {
    content: '\f04b'; /* Font Awesome Play icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--accent-primary);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    animation: previewPulse 1.5s ease-in-out infinite;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#music-files li.preview-available:hover::after {
    opacity: 1;
    background: rgba(0, 212, 255, 0.25);
    border-color: rgba(0, 212, 255, 0.5);
}

/* Preview de música - Reproduzindo */
#music-files li.previewing {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(0, 169, 204, 0.2));
    border-left-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

#music-files li.previewing::after {
    content: '\f028'; /* Font Awesome Volume High icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: white;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary), #5b9fd3);
    border: 1px solid rgba(0, 212, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    animation: previewPulse 1s ease-in-out infinite;
    z-index: 10;
}

@keyframes previewPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Indicador de qualidade de áudio */
.audio-quality-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-primary);
    margin-left: 8px;
}

/* Histórico de reprodução */
#play-history-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

#play-history-section h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#play-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

#play-history-list li {
    padding: 8px 12px;
    margin: 4px 0;
    background: rgba(26, 26, 26, 0.4);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#play-history-list li:hover {
    background: rgba(0, 212, 255, 0.15);
    border-left: 3px solid var(--accent-primary);
    color: var(--text-primary);
}

#play-history-list li .history-time {
    font-size: 10px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* Metadados expandidos */
.metadata-expanded {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(42, 42, 42, 0.5);
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.6;
}

.metadata-expanded .metadata-item {
    display: flex;
    justify-content: space-between;
    margin: 4px 0;
}

.metadata-expanded .metadata-label {
    font-weight: 600;
    color: var(--text-secondary);
}

/* Filtros e ordenação */
#filters-section {
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(20, 20, 20, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(42, 42, 42, 0.5);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.filter-group select,
.filter-group input {
    padding: 6px 10px;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(42, 42, 42, 0.6);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 12px;
    font-family: 'Inter', sans-serif;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

/* Estatísticas */
#stats-section {
    margin-top: 20px;
    padding: 16px;
    background: rgba(20, 20, 20, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(42, 42, 42, 0.5);
}

#stats-section h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(42, 42, 42, 0.3);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-item .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.stat-item .stat-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-primary);
    font-family: 'JetBrains Mono', monospace;
}

/* Salvar posição de reprodução */
.position-saved-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 4px;
    font-size: 10px;
    color: var(--accent-secondary);
    margin-left: 8px;
    font-family: 'JetBrains Mono', monospace;
}

@media (max-width: 768px) {
    .playlist-info {
        flex-direction: column;
    }

    .playlist-actions {
        flex-wrap: wrap;
    }

    .queue-playlist-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}