/* ═══════════════════════════════════════════════════════════════
   PROYECTO ARES — Sistema de Estilos Global
   Paleta: negro profundo · verde #1ed760 · grises neutros
═══════════════════════════════════════════════════════════════ */

/* ── Tokens de diseño ───────────────────────────────────────── */
:root {
    --c-bg:        #0a0a0a;
    --c-surface:   #141414;
    --c-surface2:  #1a1a1a;
    --c-border:    #242424;
    --c-border2:   #2e2e2e;
    --c-text:      #ffffff;
    --c-text-muted:#888888;
    --c-green:     #1ed760;
    --c-green-dk:  #17a84a;
    --c-orange:    #ffa42b;
    --c-blue:      #539df5;
    --c-red:       #f04040;
    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   16px;
    --radius-xl:   20px;
    --shadow-sm:   0 2px 8px rgba(0,0,0,0.35);
    --shadow-md:   0 4px 20px rgba(0,0,0,0.5);
    --shadow-lg:   0 8px 40px rgba(0,0,0,0.65);
    --transition:  all 0.18s ease;
}

/* ── Reset mínimo ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html, body {
    height: 100%;
    background-color: var(--c-bg);
    color: var(--c-text);
}

/* ── Scrollbar personalizada ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* ════════════════════════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════════════════════════ */
.sidebar-link {
    color: var(--c-text-muted);
    text-decoration: none;
}

.sidebar-icon {
    background: var(--c-surface2);
    color: var(--c-text-muted);
}

.sidebar-link:hover {
    color: var(--c-text);
    background: var(--c-surface);
}

.sidebar-link:hover .sidebar-icon {
    background: var(--c-surface2);
    color: var(--c-text);
}

.sidebar-link-active {
    color: var(--c-text) !important;
    background: var(--c-surface) !important;
}

.sidebar-link-active .sidebar-icon {
    background: var(--c-green) !important;
    color: #000 !important;
}

/* Mobile nav active */
.nav-link-m { color: #888; text-decoration: none; }
.nav-link-m:hover { color: #fff; background: #1a1a1a; }
.nav-link-m.active { color: #fff; background: #1a1a1a; }

/* ════════════════════════════════════════════════════════════════
   TARJETAS / CARDS
════════════════════════════════════════════════════════════════ */
.card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--c-border2);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* Alias compatibilidad con código anterior */
.spotify-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition);
}
.spotify-card:hover {
    border-color: var(--c-border2);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════════════════
   BOTONES
════════════════════════════════════════════════════════════════ */
/* Botón principal verde */
.btn-primary, .spotify-btn-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background: var(--c-green);
    color: #000;
    font-weight: 700;
    font-size: 0.8125rem;
    border-radius: 500px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.btn-primary:hover, .spotify-btn-green:hover {
    background: #22ee6a;
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(30,215,96,0.35);
}
.btn-primary:active, .spotify-btn-green:active { transform: scale(0.98); }

/* Botón secundario (outline) */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    background: transparent;
    color: #ccc;
    font-weight: 600;
    font-size: 0.8125rem;
    border-radius: 500px;
    border: 1px solid #333;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}
.btn-secondary:hover { border-color: #666; color: #fff; }

/* ════════════════════════════════════════════════════════════════
   BADGES / ETIQUETAS
════════════════════════════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 500px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Alias compatibilidad */
.spotify-badge         { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 500px; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.spotify-badge-success { background: rgba(30,215,96,0.12); color: #1ed760; }
.spotify-badge-info    { background: rgba(83,157,245,0.12); color: #539df5; }
.spotify-badge-warning { background: rgba(255,164,43,0.12); color: #ffa42b; }
.spotify-badge-danger  { background: rgba(240,64,64,0.12);  color: #f04040; }

/* ════════════════════════════════════════════════════════════════
   INPUTS & FORM CONTROLS
════════════════════════════════════════════════════════════════ */
input[type="text"],
input[type="url"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="number"],
.input,
.spotify-input-pill,
.junta-input {
    background-color: #121212 !important;
    border: 1px solid #282828 !important;
    border-radius: 12px;
    color: #ffffff !important;
    font-size: 0.875rem;
    padding: 10px 14px;
    width: 100%;
    outline: none;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
.input:focus,
.spotify-input-pill:focus,
.junta-input:focus {
    border-color: var(--c-green) !important;
    background-color: #181818 !important;
    box-shadow: 0 0 0 3px rgba(30,215,96,0.15) !important;
}

input::placeholder,
.input::placeholder,
.spotify-input-pill::placeholder,
.junta-input::placeholder {
    color: #666666 !important;
}

/* Input con icono izquierdo */
.input-icon-wrap { position: relative; }
.input-icon-wrap .input-icon {
    position: absolute; left: 16px; top: 50%;
    transform: translateY(-50%);
    color: #555; pointer-events: none;
}
.input-icon-wrap .input { padding-left: 42px; }

/* Tabs de navegación de modo (Juntas / Mejorar Audio) */
.tab-mode-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #888888;
}

.tab-mode-btn:hover {
    color: #ffffff;
}

.tab-mode-btn.active {
    background: #1ed760 !important;
    color: #000000 !important;
    box-shadow: 0 2px 10px rgba(30, 215, 96, 0.3) !important;
}

/* ════════════════════════════════════════════════════════════════
   SELECT
════════════════════════════════════════════════════════════════ */
select {
    background: var(--c-surface2);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    color: var(--c-text);
    font-size: 0.875rem;
    padding: 10px 14px;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
select:focus { border-color: var(--c-green); }

/* ════════════════════════════════════════════════════════════════
   CHECKBOX / TOGGLE
════════════════════════════════════════════════════════════════ */
.toggle-wrap { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle-wrap input[type="checkbox"] {
    width: 42px; height: 24px;
    appearance: none; -webkit-appearance: none;
    background: #333; border-radius: 12px;
    cursor: pointer; transition: background 0.2s;
    position: relative; flex-shrink: 0;
}
.toggle-wrap input[type="checkbox"]::after {
    content: '';
    position: absolute; top: 3px; left: 3px;
    width: 18px; height: 18px;
    border-radius: 50%; background: #fff;
    transition: left 0.2s;
}
.toggle-wrap input[type="checkbox"]:checked { background: var(--c-green); }
.toggle-wrap input[type="checkbox"]:checked::after { left: 21px; }

/* ════════════════════════════════════════════════════════════════
   SECCIÓN HEADERS
════════════════════════════════════════════════════════════════ */
.section-header {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--c-border);
}
.section-title {
    font-size: 1.25rem; font-weight: 800;
    color: var(--c-text); letter-spacing: -0.02em;
}
.section-subtitle {
    font-size: 0.8125rem; color: var(--c-text-muted);
    margin-top: 3px;
}

/* ════════════════════════════════════════════════════════════════
   ESTADO VACÍO
════════════════════════════════════════════════════════════════ */
.empty-state {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 64px 32px; text-align: center;
    border: 2px dashed var(--c-border);
    border-radius: var(--radius-lg);
    gap: 12px;
}
.empty-state-icon { font-size: 2.5rem; color: #333; margin-bottom: 4px; }
.empty-state h3   { font-size: 1.125rem; font-weight: 700; color: #ccc; }
.empty-state p    { font-size: 0.875rem; color: var(--c-text-muted); max-width: 320px; }

/* ════════════════════════════════════════════════════════════════
   BARRA DE PROGRESO GENÉRICA
════════════════════════════════════════════════════════════════ */
.progress-bar-track {
    width: 100%; height: 5px;
    background: var(--c-border);
    border-radius: 3px; overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}
.progress-bar-fill-green  { background: var(--c-green); }
.progress-bar-fill-orange { background: var(--c-orange); }

/* Alias compatibilidad */
.progreso-barra-container {
    width: 100%; height: 5px;
    background: var(--c-border);
    border-radius: 3px; overflow: hidden;
    cursor: pointer;
}
#progresoBarra {
    height: 100%; width: 0%;
    background: var(--c-green);
    border-radius: 3px;
    transition: width 0.1s linear;
}

/* ════════════════════════════════════════════════════════════════
   PANEL DE LETRAS EN REPRODUCTOR.HTML (vista completa)
════════════════════════════════════════════════════════════════ */
.lyrics-scroll-container {
    overflow-y: auto;
    max-height: 400px;
    padding-right: 4px;
    scroll-behavior: smooth;
}
.lyrics-scroll-container::-webkit-scrollbar { width: 4px; }
.lyrics-scroll-container::-webkit-scrollbar-thumb { background: var(--c-border2); border-radius: 2px; }

.segmento-letra {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: 0.45;
    border-left: 3px solid transparent;
    transition: opacity 0.2s, background 0.2s, border-color 0.2s;
}
.segmento-letra:hover { opacity: 0.75; background: rgba(255,255,255,0.04); }
.segmento-letra.activo {
    opacity: 1;
    border-left-color: var(--c-green);
    background: rgba(255,255,255,0.05);
}
.segmento-letra p { font-size: 0.9375rem; font-weight: 600; color: #fff; line-height: 1.5; }
.traduccion-segmento { font-size: 0.8125rem !important; font-weight: 500 !important; color: #888 !important; margin-top: 4px !important; }
.segmento-letra.activo .traduccion-segmento { color: var(--c-green) !important; }

/* ════════════════════════════════════════════════════════════════
   TABS (reproductor.html)
════════════════════════════════════════════════════════════════ */
.tab-activo {
    color: #000 !important;
    background: #fff !important;
    border-color: #fff !important;
}

/* ════════════════════════════════════════════════════════════════
   BOTÓN DE VELOCIDAD
════════════════════════════════════════════════════════════════ */
.speed-btn {
    padding: 5px 12px;
    background: var(--c-surface2);
    border: 1px solid var(--c-border);
    border-radius: 500px;
    color: #ccc;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}
.speed-btn:hover { border-color: #555; color: #fff; }

/* ════════════════════════════════════════════════════════════════
   SPINNERS / LOADERS
════════════════════════════════════════════════════════════════ */
.spinner {
    display: inline-block;
    width: 28px; height: 28px;
    border: 3px solid var(--c-border2);
    border-top-color: var(--c-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════════════════════════
   MODAL
════════════════════════════════════════════════════════════════ */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.modal-box {
    background: var(--c-surface);
    border: 1px solid var(--c-border2);
    border-radius: var(--radius-xl);
    padding: 32px;
    width: 100%; max-width: 520px;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.25s ease forwards;
}
@keyframes modalIn {
    from { opacity:0; transform: scale(0.96) translateY(10px); }
    to   { opacity:1; transform: scale(1)    translateY(0); }
}

/* ════════════════════════════════════════════════════════════════
   STAT CARDS (index.html)
════════════════════════════════════════════════════════════════ */
.stat-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex; align-items: center;
    gap: 16px;
    transition: var(--transition);
    text-decoration: none;
}
.stat-card:hover {
    border-color: var(--c-border2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.stat-icon {
    width: 48px; height: 48px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════
   SONG CARDS (index / biblioteca)
════════════════════════════════════════════════════════════════ */
.song-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex; flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.song-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(30,215,96,0.03), transparent);
    opacity: 0; transition: opacity 0.2s;
}
.song-card:hover { border-color: var(--c-border2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.song-card:hover::before { opacity: 1; }

.song-thumb {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    background: var(--c-surface2);
    display: flex; align-items: center; justify-content: center;
    color: var(--c-green); font-size: 1.1rem;
    flex-shrink: 0; overflow: hidden;
}
.song-thumb img { width:100%; height:100%; object-fit:cover; }

.song-title {
    font-size: 0.9375rem; font-weight: 700;
    color: var(--c-text); overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
}
.song-meta {
    font-size: 0.75rem; color: var(--c-text-muted);
    display: flex; align-items: center; gap: 4px; margin-top: 3px;
}

/* Botón play flotante en hover */
.play-hover-btn {
    position: absolute; bottom: 16px; right: 16px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--c-green);
    color: #000; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.875rem;
    opacity: 0; transform: scale(0.85) translateY(4px);
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 4px 16px rgba(30,215,96,0.4);
}
.song-card:hover .play-hover-btn { opacity: 1; transform: scale(1) translateY(0); }
.play-hover-btn:hover { transform: scale(1.08) !important; background: #22ee6a; }

/* ════════════════════════════════════════════════════════════════
   PROCESO ITEM (procesos.html)
════════════════════════════════════════════════════════════════ */
.proceso-item {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    transition: var(--transition);
}
.proceso-item:hover { border-color: var(--c-border2); }

/* ════════════════════════════════════════════════════════════════
   REPRODUCTOR.HTML — controles internos
════════════════════════════════════════════════════════════════ */
.rep-control-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer;
    transition: var(--transition);
    outline: none;
}
.rep-play-btn {
    background: var(--c-green); color: #000; font-size: 1.1rem;
}
.rep-play-btn:hover { background: #22ee6a; transform: scale(1.06); }
.rep-icon-btn {
    background: var(--c-surface2); color: #888; font-size: 0.9375rem;
}
.rep-icon-btn:hover { color: #fff; background: var(--c-border2); }

/* Volume slider (reproductor.html) */
.volume-slider {
    -webkit-appearance: none;
    height: 4px;
    background: var(--c-border2);
    border-radius: 2px;
    cursor: pointer;
    outline: none;
}
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px; height: 12px;
    border-radius: 50%; background: #fff; cursor: pointer;
}
.volume-slider:hover { background: #444; }

/* ════════════════════════════════════════════════════════════════
   ANIMACIONES GENERALES
════════════════════════════════════════════════════════════════ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.3s ease forwards; }

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(30,215,96,0); }
    50%       { box-shadow: 0 0 0 8px rgba(30,215,96,0.12); }
}
.pulse-green { animation: pulse-green 2s ease-in-out infinite; }

/* ════════════════════════════════════════════════════════════════
   DIVISORES
════════════════════════════════════════════════════════════════ */
.divider { height: 1px; background: var(--c-border); margin: 20px 0; }

/* ════════════════════════════════════════════════════════════════
   UTILIDADES
   ════════════════════════════════════════════════════════════════ */
.text-muted  { color: var(--c-text-muted); }
.text-green  { color: var(--c-green); }
.text-orange { color: var(--c-orange); }
.text-blue   { color: var(--c-blue); }
.text-red    { color: var(--c-red); }
.truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ════════════════════════════════════════════════════════════════
   CORRECCIÓN DE ERRORES Y ESTILOS (Spotify Theme & Modals)
   ════════════════════════════════════════════════════════════════ */

/* Fix para que los modales con la clase 'hidden' se oculten correctamente */
.modal-backdrop.hidden {
    display: none !important;
}

/* Clases de pestañas de Spotify (reproductor.html) */
.spotify-tab {
    padding: 8px 16px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #b3b3b3;
    background: none;
    border: 1px solid transparent;
    border-radius: 500px;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}
.spotify-tab:hover {
    color: #fff;
}

/* Mapeo de clases de estilo de Spotify para reproductor.html */
.bg-spotify-black { background-color: #121212 !important; }
.bg-spotify-card { background-color: #181818 !important; }
.border-spotify-gray { border-color: #282828 !important; }
.text-spotify-green { color: #1ed760 !important; }
.border-spotify-green { border-color: #1ed760 !important; }
.bg-spotify-green { background-color: #1ed760 !important; }
.text-spotify-silver { color: #b3b3b3 !important; }
.text-spotify-gold { color: #ffa42b !important; }
.transition-spotify { transition: all 0.2s ease-in-out !important; }

/* Clases de compatibilidad para valores arbitrarios de Tailwind CSS */
.bg-\[\#0a0a0a\] { background-color: #0a0a0a !important; }
.bg-\[\#1a1a1a\] { background-color: #1a1a1a !important; }
.bg-\[\#181818\] { background-color: #181818 !important; }
.bg-\[\#1f1f1f\] { background-color: #1f1f1f !important; }
.bg-\[\#3e3e3e\] { background-color: #3e3e3e !important; }
.bg-black { background-color: #000000 !important; }
.text-\[\#ffffff\] { color: #ffffff !important; }
.text-\[\#b3b3b3\] { color: #b3b3b3 !important; }
.text-\[\#1ed760\] { color: #1ed760 !important; }
.text-\[\#f3727f\] { color: #f3727f !important; }
.border-\[\#282828\] { border-color: #282828 !important; }
.border-\[\#242424\] { border-color: #242424 !important; }

/* =========================================================================
   REPRODUCTOR GLOBAL (BASE.HTML)
   ========================================================================= */
body { font-family: 'Inter', sans-serif; }

#globalPlayerBar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 88px;
    background: linear-gradient(to right, #0a0a0a 0%, #111111 50%, #0d0d0d 100%);
    border-top: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 9999;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.7);
    gap: 16px;
}
#globalPlayerBar.hidden { display: none !important; }

.gp-zone-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    width: 280px;
    flex-shrink: 0;
}
.gp-zone-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 560px;
}
.gp-zone-right {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 240px;
    flex-shrink: 0;
    justify-content: flex-end;
}

#gThumbWrap {
    width: 54px; height: 54px;
    border-radius: 8px;
    background: #1e1e1e;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
#gThumbWrap img { width:100%; height:100%; object-fit:cover; }
#gThumbIcon {
    width:100%; height:100%;
    display:flex; align-items:center; justify-content:center;
    color:#1ed760; font-size:1.25rem;
}
#gThumbImg.hidden, #gThumbIcon.hidden { display:none; }

#gPlayerTitle {
    font-size: 0.8125rem; font-weight: 700;
    color: #fff; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
    cursor: default;
}
#gPlayerLang {
    font-size: 0.6875rem; color: #a0a0a0;
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-top: 2px;
}

.gp-controls-row {
    display: flex;
    align-items: center;
    gap: 20px;
}
.gp-ctrl-btn {
    background: none; border: none;
    color: #a0a0a0; cursor: pointer;
    font-size: 1rem; padding: 6px;
    border-radius: 50%;
    transition: color 0.15s, transform 0.1s;
    outline: none; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}
.gp-ctrl-btn:hover { color: #fff; transform: scale(1.12); }
.gp-ctrl-btn.active { color: #1ed760; }

#gBtnPlay {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #fff; color: #000;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    transition: transform 0.1s, background 0.15s;
    outline: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
#gBtnPlay:hover { transform: scale(1.07); background: #f0f0f0; }
#gBtnPlay:active { transform: scale(0.95); }
#gBtnPlay.playing { background: #1ed760; }

.gp-progress-row {
    display: flex; align-items: center;
    gap: 10px; width: 100%;
}
.gp-time {
    font-size: 0.6875rem; font-weight: 600;
    color: #a0a0a0; min-width: 36px;
    font-variant-numeric: tabular-nums;
}
.gp-time:last-child { text-align: right; }
#gProgressTrack {
    flex: 1; height: 4px;
    background: #3a3a3a; border-radius: 2px;
    cursor: pointer; position: relative;
    transition: height 0.15s;
}
#gProgressTrack:hover { height: 6px; }
#gProgressFill {
    position: absolute; left:0; top:0; height:100%;
    background: #b3b3b3; border-radius: 2px;
    width: 0%; pointer-events: none;
    transition: background 0.15s;
}
#gProgressTrack:hover #gProgressFill { background: #1ed760; }
#gProgressDot {
    position: absolute; top: 50%;
    transform: translate(100%, -50%) scale(0);
    width: 12px; height: 12px;
    background: #fff; border-radius: 50%;
    pointer-events: none;
    transition: transform 0.15s;
}
#gProgressTrack:hover #gProgressDot { transform: translate(100%,-50%) scale(1); }

#gVolume {
    -webkit-appearance: none;
    width: 80px; height: 4px;
    background: #3a3a3a; border-radius: 2px;
    cursor: pointer; outline: none;
}
#gVolume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #fff; cursor: pointer;
}
#gVolume:hover { background: #4a4a4a; }

#gBtnLyrics.active { color: #1ed760 !important; }

@keyframes gpSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
#globalPlayerBar:not(.hidden) {
    animation: gpSlideUp 0.32s cubic-bezier(0.3,0,0,1) forwards;
}

body.gp-active #mainContent { padding-bottom: 92px !important; }

#globalLyricsPanel {
    position: absolute; inset: 0;
    z-index: 9990; pointer-events: none;
    display: flex; flex-direction: column; justify-content: flex-end;
}
#globalLyricsPanel.hidden { display: none; }
#globalLyricsPanel.open  { pointer-events: auto; }

#lyricsPanelBackdrop {
    position: absolute; inset: 0;
    background: transparent;
    transition: background 0.35s;
    cursor: pointer;
}
#globalLyricsPanel.open #lyricsPanelBackdrop {
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
}

#lyricsSheet {
    position: relative; z-index: 1;
    background: #0f0f0f;
    border: 1px solid #282828;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    height: calc(100vh - 120px);
    display: flex; flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.3,0,0,1);
    box-shadow: 0 4px 40px rgba(0,0,0,0.8);
    margin-bottom: 88px;
}
#globalLyricsPanel.open #lyricsSheet { transform: translateY(0); }

.lp-handle { display: flex; justify-content: center; padding: 12px 0 6px; }
.lp-handle-bar { width: 40px; height: 4px; background: #3a3a3a; border-radius: 2px; }

#lyricsSheetHeader {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 8px 20px 14px;
    border-bottom: 1px solid #1e1e1e;
    gap: 12px;
}
.lp-song-info { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.lp-thumb {
    width: 42px; height: 42px;
    border-radius: 8px; background: #1e1e1e;
    overflow: hidden; flex-shrink: 0;
}
.lp-thumb img, .lp-thumb div { width:100%; height:100%; }
#lyricsThumbIcon { display:flex; align-items:center; justify-content:center; color:#1ed760; }

.lp-tabs { display: flex; gap: 6px; flex-shrink: 0; }
.lp-tab {
    padding: 6px 16px; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: #a0a0a0; background: none;
    border: 1px solid #2a2a2a; border-radius: 500px;
    cursor: pointer; transition: all 0.2s; outline: none;
    font-family: 'Inter', sans-serif;
}
.lp-tab:hover { color: #fff; border-color: #555; }
.lp-tab.active { color: #000; background: #fff; border-color: #fff; }
.lp-tab.hidden { display: none; }

#lyricsScrollOrig, #lyricsScrollTrans {
    flex: 1; overflow-y: auto;
    padding: 12px 0 24px;
    scroll-behavior: smooth;
}
#lyricsScrollOrig::-webkit-scrollbar,
#lyricsScrollTrans::-webkit-scrollbar { width: 4px; }
#lyricsScrollOrig::-webkit-scrollbar-thumb,
#lyricsScrollTrans::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }
#lyricsScrollTrans { display: none; }
#lyricsScrollTrans.visible { display: block; }

.lp-empty {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 60px 20px; gap: 12px;
    color: #555; font-size: 0.875rem;
}

.lp-seg {
    padding: 10px 24px;
    cursor: pointer;
    text-align: center;
    opacity: 0.4;
    transition: opacity 0.2s, background 0.2s;
}
.lp-seg:hover { opacity: 0.7; background: rgba(255,255,255,0.03); }
.lp-seg.active {
    opacity: 1;
    background: rgba(255,255,255,0.04);
}
.lp-seg .lp-text {
    font-size: 1.0625rem; font-weight: 700;
    color: #fff; line-height: 1.45;
}
.lp-seg .lp-sub {
    font-size: 0.8125rem; color: #888;
    margin-top: 3px; line-height: 1.4;
}
.lp-seg.active .lp-sub { color: #1ed760; }

/* =========================================================================
   FOCUS PLAYER (REPRODUCTOR.HTML)
   ========================================================================= */
@media (min-width: 768px) {
    body.focus-player-mode #mainContent {
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        height: calc(100vh - 88px) !important;
        box-sizing: border-box !important;
    }
}

.glow-container {
    position: relative;
}

.glow-shadow {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: #1ed760;
    background-image: var(--glow-image, none);
    background-size: cover;
    background-position: center;
    filter: blur(40px);
    opacity: 0.35;
    z-index: 0;
    transform: scale(0.95) translateY(12px);
    transition: all 0.5s ease;
}

.glow-container:hover .glow-shadow {
    opacity: 0.55;
    filter: blur(50px);
    transform: scale(1) translateY(16px);
}

.glow-image-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease;
}

.rp-tab {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 16px;
    cursor: pointer;
    border-radius: 500px;
    border: 1px solid transparent;
    transition: all 0.25s;
    outline: none;
}

.rp-tab:hover {
    color: #ffffff;
}

.rp-tab.active {
    color: #ffffff;
    background: #1f1f1f;
    border-color: rgba(255, 255, 255, 0.1);
}

.rp-lyrics-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1rem;
    scroll-behavior: smooth;
    position: relative !important;
}

.rp-lyrics-container::-webkit-scrollbar {
    width: 6px;
}

.rp-lyrics-container::-webkit-scrollbar-track {
    background: transparent;
}

.rp-lyrics-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

.rp-lyrics-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

.rp-line {
    text-align: center;
    padding: 12px 16px;
    cursor: pointer;
    opacity: 0.3;
    transition: all 0.25s ease;
    border-radius: 12px;
}

.rp-line:hover {
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.02);
}

.rp-line.active {
    opacity: 1;
    transform: scale(1.03);
    background: rgba(255, 255, 255, 0.04);
}

.rp-orig {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
}

.rp-line.active .rp-orig {
    color: #fefefe;
}

.rp-trans {
    font-size: 0.95rem;
    font-weight: 600;
    color: #a0a0a0;
    margin-top: 6px;
    line-height: 1.4;
}

.rp-line.active .rp-trans {
    color: #1ed760;
}

/* =========================================================================
   LETRA EN PANTALLA COMPLETA (FULLSCREEN.HTML)
   ========================================================================= */
body.fullscreen-mode aside,
body.fullscreen-mode header,
body.fullscreen-mode #globalPlayerBar {
    display: none !important;
}

body.fullscreen-mode #mainContent {
    padding: 0 !important;
    overflow: hidden !important;
}

.fs-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    background: radial-gradient(circle at center, #181818 0%, #050505 100%);
    color: #ffffff;
    padding: 2.5rem;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

.fs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 1.25rem;
    flex-shrink: 0;
}

.fs-song-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.fs-thumbnail {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #1f1f1f;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1ed760;
    font-size: 1.25rem;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.fs-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fs-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
}

.fs-subtitle {
    color: #b3b3b3;
    font-size: 0.8125rem;
    margin-top: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fs-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 500px;
    padding: 4px;
    gap: 4px;
}

.fs-tab {
    padding: 6px 18px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #b3b3b3;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 500px;
    transition: all 0.2s;
    outline: none;
}

.fs-tab:hover {
    color: #ffffff;
}

.fs-tab.active {
    color: #000000;
    background: #ffffff;
}

.fs-tab.hidden {
    display: none;
}

.fs-lyrics-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 4rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-behavior: smooth;
    position: relative;
}

.fs-lyrics-wrapper::-webkit-scrollbar {
    display: none;
}

.fs-line {
    text-align: center;
    padding: 1.75rem 2.5rem;
    width: 100%;
    max-width: 960px;
    cursor: pointer;
    opacity: 0.25;
    transform: scale(0.92);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
}

.fs-line:hover {
    opacity: 0.55;
    background: rgba(255, 255, 255, 0.02);
}

.fs-line.active {
    opacity: 1;
    transform: scale(1.06);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.fs-orig {
    font-size: 2.35rem;
    font-weight: 900;
    line-height: 1.35;
    color: #ffffff;
    transition: color 0.3s;
}

.fs-line.active .fs-orig {
    color: #fafafa;
}

.fs-trans {
    font-size: 1.65rem;
    font-weight: 700;
    color: #fefefe;
    line-height: 1.35;
    margin-top: 0.75rem;
    transition: color 0.3s;
}

.fs-line.active .fs-trans {
    color: #1ed760;
}

.fs-player-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(20, 20, 20, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 1.25rem 2rem;
    flex-shrink: 0;
    gap: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.fs-ctrls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.fs-btn {
    background: none;
    border: none;
    color: #b3b3b3;
    cursor: pointer;
    font-size: 1.35rem;
    transition: all 0.2s;
    outline: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.fs-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    transform: scale(1.08);
}

.fs-btn-play {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    color: #000000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.fs-btn-play:hover {
    transform: scale(1.07);
    background: #f3f3f3;
}

.fs-btn-play:active {
    transform: scale(0.95);
}

.fs-prog-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.fs-time {
    font-size: 0.75rem;
    font-weight: 700;
    color: #b3b3b3;
    min-width: 42px;
    font-variant-numeric: tabular-nums;
}

.fs-time:last-child {
    text-align: right;
}

.fs-prog-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    transition: height 0.15s;
}

.fs-prog-track:hover {
    height: 8px;
}

.fs-prog-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #1ed760;
    border-radius: 3px;
    width: 0%;
    transition: background 0.15s;
}

.fs-prog-track:hover .fs-prog-fill {
    background: #22ee6a;
}

.fs-extras {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.fs-vol-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fs-vol-slider {
    -webkit-appearance: none;
    width: 90px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    cursor: pointer;
    outline: none;
    transition: background 0.15s;
}

.fs-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
}

.fs-vol-slider:hover {
    background: rgba(255, 255, 255, 0.3);
}
