﻿@font-face {
            font-family: 'Neocat';
            src: url('../Neocat.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
        }

        /* ================================= */
        /* SEO AND ACCESSIBILITY STYLES */
        /* ================================= */
        
        /* Skip link for screen readers */
        .skip-link {
            position: absolute;
            left: -10000px;
            top: auto;
            width: 1px;
            height: 1px;
            overflow: hidden;
            background: var(--primary);
            color: white;
            padding: 8px 16px;
            text-decoration: none;
            border-radius: 4px;
            z-index: 999999;
        }
        
        .skip-link:focus {
            position: static;
            width: auto;
            height: auto;
            left: auto;
            top: auto;
            overflow: visible;
        }
        
        /* Screen reader only text */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }
        
        /* Focus styles for better accessibility */
        *:focus {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }
        
        /* High contrast mode support */
        @media (prefers-contrast: high) {
            .song-card, .control-btn, .player {
                border: 2px solid currentColor;
            }
        }
        
        /* Reduced motion support */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        :root {
            --primary: #e53935; /* Rojo */
            --primary-rgb: 229, 57, 53; /* RGB values for rgba usage */
            --primary-dark: #c62828;
            --secondary: #ffffff; /* Blanco */
            --sidebar: #f5f5f5; /* Gris muy claro */
            --accent: #000000; /* Negro */
            --text: #000000; /* Texto negro */
            --text-secondary: #666666; /* Texto gris */
            --card-bg: #ffffff; /* Fondo blanco para tarjetas */
            --hover-bg: #eeeeee; /* Fondo gris claro al pasar el ratón */
            --player-bg: #ffffff; /* Fondo blanco para el reproductor */
            --progress-bar: #e0e0e0; /* Barra de progreso gris */
            --progress: #e53935; /* Progreso rojo */
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            --karaoke-bg: #f8f8f8;
            --header-height: 60px; /* Altura del header */
            --player-height: 80px; /* Altura del player */
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        /* Smooth scrolling optimization */
        * {
            scroll-behavior: smooth;
        }

        /* Better scroll performance */
        *::-webkit-scrollbar {
            width: 0px;
            background: transparent;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background: var(--secondary);
            color: var(--text);
            min-height: 100vh;
            margin: 0;
            padding: 0;
            overflow: auto;
            scroll-behavior: smooth;
        }

        /* Login Styles */
        .login-container {
            position: relative;
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
        }

        .login-btn {
            background: linear-gradient(135deg, var(--primary) 0%, #d32f2f 100%);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 30px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 14px;
            white-space: nowrap;
            box-shadow: 0 4px 15px rgba(229, 57, 53, 0.25);
            position: relative;
            overflow: hidden;
            border: 2px solid transparent;
            text-decoration: none;
        }

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

        .login-btn:hover {
            background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 8px 25px rgba(229, 57, 53, 0.35);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .login-btn:hover::before {
            left: 100%;
        }

        .login-btn:active {
            transform: translateY(0) scale(0.98);
            box-shadow: 0 4px 15px rgba(229, 57, 53, 0.25);
        }

        .login-btn i {
            font-size: 16px;
            filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
        }

        .login-btn span {
            font-weight: 600;
            letter-spacing: 0.3px;
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 16px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 30px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(15px);
            border: 2px solid rgba(255, 255, 255, 0.3);
            position: relative;
        }

        .user-info:hover {
            background: rgba(255, 255, 255, 1);
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
            transform: translateY(-1px);
            border-color: var(--primary);
        }

        .user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary) 0%, #d32f2f 100%);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 14px;
            box-shadow: 0 2px 8px rgba(229, 57, 53, 0.3);
        }

        .user-name {
            font-weight: 600;
            color: var(--text);
            font-size: 14px;
        }

        .user-dropdown {
            position: absolute;
            top: 100%;
            right: 0;
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.15);
            padding: 8px;
            margin-top: 8px;
            min-width: 200px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid #e0e0e0;
            z-index: 1000;
        }

        .user-info:hover .user-dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .user-dropdown-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            color: var(--text);
            font-weight: 500;
        }

        .user-dropdown-item:hover {
            background: #f5f5f5;
            color: var(--primary);
        }

        .user-dropdown-item i {
            font-size: 16px;
            width: 20px;
            text-align: center;
        }

        .login-form {
            position: absolute;
            top: 40px;
            right: 0;
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: var(--shadow);
            width: 300px;
            z-index: 100;
            display: none;
            border: 1px solid #e0e0e0;
        }

        .login-form.active {
            display: block;
        }

        .login-form h3 {
            margin-bottom: 15px;
            color: var(--accent);
            font-size: 18px;
            text-align: center;
        }

        .login-form input {
            width: 100%;
            padding: 12px;
            margin-bottom: 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            transition: border 0.3s;
        }

        .login-form input:focus {
            border-color: var(--primary);
            outline: none;
        }

        .login-form button {
            width: 100%;
            background: var(--primary);
            color: white;
            border: none;
            padding: 12px;
            border-radius: 4px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.3s;
        }

        .login-form button:hover {
            background: var(--primary-dark);
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 5px 10px;
            border-radius: 20px;
            background: #f5f5f5;
            cursor: pointer;
            position: relative;
        }

        .user-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--primary);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }

        .user-name {
            font-weight: 600;
            font-size: 14px;
        }

        .user-dropdown {
            position: absolute;
            top: 100%;
            right: 0;
            background: white;
            border-radius: 8px;
            box-shadow: var(--shadow);
            width: 160px;
            z-index: 100;
            display: none;
            overflow: hidden;
            border: 1px solid #e0e0e0;
        }

        .user-info:hover .user-dropdown {
            display: block;
        }

        .user-dropdown-item {
            padding: 12px 16px;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            transition: background 0.2s;
        }

        .user-dropdown-item:hover {
            background: #f9f9f9;
        }

        .user-dropdown-item i {
            color: var(--primary);
            width: 20px;
            text-align: center;
        }

        /* Sidebar Styles */
        .sidebar {
            grid-area: sidebar;
            background: var(--sidebar);
            padding: 8px 0;
            overflow-y: auto;
            overflow-x: hidden;
            border-right: 1px solid #e0e0e0;
            display: flex;
            flex-direction: column;
            height: 100vh;
            width: 240px;
            position: fixed;
            top: 0;
            left: 0;
            z-index: 1000;
            /* Ocultar scrollbars completamente */
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* Internet Explorer 10+ */
            scroll-behavior: smooth;
        }

        .sidebar::-webkit-scrollbar {
            display: none; /* WebKit */
        }

        /* Asegurar que todos los elementos del sidebar no muestren scroll */
        .sidebar *, .sidebar *:before, .sidebar *:after {
            scrollbar-width: none !important;
            -ms-overflow-style: none !important;
        }

        .sidebar *::-webkit-scrollbar {
            display: none !important;
        }

        /* Estilos adicionales para forzar la ocultación de scrollbars en el sidebar */
        .sidebar::-webkit-scrollbar {
            width: 0px !important;
            height: 0px !important;
            background: transparent !important;
        }

        .sidebar::-webkit-scrollbar-track {
            background: transparent !important;
        }

        .sidebar::-webkit-scrollbar-thumb {
            background: transparent !important;
        }

        .sidebar::-webkit-scrollbar-corner {
            background: transparent !important;
        }

        /* Estilo específico para navegadores basados en Chromium */
        aside.sidebar {
            scrollbar-width: none !important;
            -ms-overflow-style: none !important;
        }
        
        aside.sidebar::-webkit-scrollbar {
            display: none !important;
            width: 0 !important;
            height: 0 !important;
        }

        .logo {
            padding: 0 12px 12px;
            display: flex;
            align-items: center;
            gap: 8px;
            border-bottom: 1px solid #e0e0e0;
            margin-bottom: 12px;
            flex-shrink: 0;
        }

        .logo-icon {
            font-size: 24px;
            color: var(--primary);
            filter: drop-shadow(0 2px 4px rgba(229, 57, 53, 0.2));
        }

        .logo h1 {
            font-size: 16px;
            font-weight: 700;
            color: var(--accent);
            line-height: 1.1;
            letter-spacing: -0.5px;
        }

        /* Sidebar Search Styles */
        .sidebar-search-container {
            position: relative;
            margin: 0 14px 10px 14px;
            flex-shrink: 0;
        }

        .sidebar-search-container i {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-secondary);
            font-size: 12px;
            z-index: 2;
        }

        .sidebar-search-container input {
            width: 100%;
            padding: 11px 14px 11px 38px;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.9);
            border: 2px solid transparent;
            color: var(--text);
            font-size: 12px;
            outline: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            box-sizing: border-box;
            font-weight: 500;
        }

        .sidebar-search-container input:focus {
            background: white;
            border-color: var(--primary);
            box-shadow: 0 2px 12px rgba(229, 57, 53, 0.15), 0 0 0 3px rgba(229, 57, 53, 0.1);
            transform: translateY(-1px);
        }

        .sidebar-search-container input::placeholder {
            color: var(--text-secondary);
            font-weight: 400;
        }

        /* Sidebar Login Styles */
        .sidebar-login-container {
            margin: 0 14px 10px 14px;
            flex-shrink: 0;
        }

        .sidebar-login-btn {
            background: linear-gradient(135deg, var(--primary) 0%, #d32f2f 100%);
            color: white;
            border: none;
            padding: 11px 18px;
            border-radius: 20px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 12px;
            white-space: nowrap;
            box-shadow: 0 2px 10px rgba(229, 57, 53, 0.25);
            width: 100%;
            justify-content: center;
            text-decoration: none;
        }

        .sidebar-login-btn:hover {
            background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(229, 57, 53, 0.35);
        }

        .sidebar-login-btn i {
            font-size: 14px;
        }

        .sidebar-user-info {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 14px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(15px);
            border: 2px solid rgba(255, 255, 255, 0.3);
            position: relative;
        }

        .sidebar-user-info:hover {
            background: rgba(255, 255, 255, 1);
            box-shadow: 0 4px 15px rgba(0,0,0,0.15);
            transform: translateY(-1px);
            border-color: var(--primary);
        }

        .sidebar-user-avatar {
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary) 0%, #d32f2f 100%);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 10px;
            box-shadow: 0 2px 6px rgba(229, 57, 53, 0.3);
        }

        .sidebar-user-name {
            font-weight: 600;
            color: var(--text);
            font-size: 12px;
            flex: 1;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .sidebar-user-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.15);
            padding: 8px;
            margin-top: 8px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid #e0e0e0;
            z-index: 1000;
        }

        .sidebar-user-info:hover .sidebar-user-dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .sidebar-user-dropdown-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            color: var(--text);
            font-weight: 500;
            font-size: 12px;
        }

        .sidebar-user-dropdown-item:hover {
            background: #f5f5f5;
            color: var(--primary);
        }

        .sidebar-user-dropdown-item i {
            font-size: 14px;
            width: 20px;
            text-align: center;
        }

        .sidebar-section {
            margin-bottom: 8px;
            padding: 0 12px;
            flex-shrink: 0;
            overflow: visible; /* Permitir contenido visible */
        }

        .sidebar-section h3 {
            color: var(--text-secondary);
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            margin-bottom: 8px;
            font-weight: 700;
        }

        .sidebar-menu {
            list-style: none;
            overflow: visible;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* Internet Explorer 10+ */
        }

        .sidebar-menu::-webkit-scrollbar {
            display: none; /* WebKit */
        }

        .sidebar-menu li {
            padding: 8px 12px;
            border-radius: 6px;
            margin-bottom: 3px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: all 0.3s;
            font-weight: 600;
            font-size: 12px;
            color: var(--text);
            position: relative;
            overflow: hidden;
        }

        .sidebar-menu li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 4px;
            height: 100%;
            background: var(--primary);
            transform: scaleY(0);
            transition: transform 0.3s ease;
            border-radius: 0 2px 2px 0;
        }

        .sidebar-menu li:hover::before, .sidebar-menu li.active::before {
            transform: scaleY(1);
        }

        .sidebar-menu li:hover, .sidebar-menu li.active {
            background: var(--hover-bg);
            color: var(--text);
            transform: translateX(4px);
            box-shadow: 0 2px 12px rgba(0,0,0,0.08);
        }

        .sidebar-menu li i {
            font-size: 15px;
            color: var(--primary);
            flex-shrink: 0;
            filter: drop-shadow(0 1px 2px rgba(229, 57, 53, 0.2));
        }

        .sidebar-menu li span {
            font-weight: 600;
            letter-spacing: 0.3px;
        }

        /* Responsive mejorado para el sidebar */
        @media (max-height: 800px) {
            .sidebar {
                padding: 16px 0;
            }

            .logo {
                padding: 0 20px 20px;
                margin-bottom: 20px;
                gap: 16px;
            }

            .logo-icon {
                font-size: 42px;
            }

            .logo h1 {
                font-size: 28px;
            }

            .sidebar-section {
                margin-bottom: 20px;
                padding: 0 20px;
            }

            .sidebar-section h3 {
                font-size: 12px;
                margin-bottom: 14px;
            }

            .sidebar-menu li {
                padding: 14px 18px;
                margin-bottom: 5px;
                font-size: 14px;
                gap: 16px;
            }

            .sidebar-menu li i {
                font-size: 18px;
            }

            .sidebar-search-container {
                margin: 0 18px 14px 18px;
            }

            .sidebar-search-container input {
                padding: 16px 18px 16px 48px;
                font-size: 14px;
            }

            .sidebar-search-container i {
                font-size: 16px;
                left: 16px;
            }

            .sidebar-login-container {
                margin: 0 18px 14px 18px;
            }

            .sidebar-login-btn {
                padding: 16px 22px;
                font-size: 14px;
                gap: 10px;
            }

            .sidebar-login-btn i {
                font-size: 16px;
            }
        }

        @media (max-height: 650px) {
            .sidebar {
                padding: 12px 0;
            }

            .logo {
                padding: 0 18px 16px;
                margin-bottom: 16px;
                gap: 14px;
            }

            .logo-icon {
                font-size: 36px;
            }

            .logo h1 {
                font-size: 24px;
            }

            .sidebar-section {
                margin-bottom: 16px;
                padding: 0 18px;
            }

            .sidebar-section h3 {
                font-size: 11px;
                margin-bottom: 12px;
            }

            .sidebar-menu li {
                padding: 12px 16px;
                margin-bottom: 4px;
                font-size: 13px;
                gap: 14px;
            }

            .sidebar-menu li i {
                font-size: 17px;
            }

            .sidebar-search-container {
                margin: 0 16px 12px 16px;
            }

            .sidebar-search-container input {
                padding: 14px 16px 14px 44px;
                font-size: 13px;
            }

            .sidebar-search-container i {
                font-size: 15px;
                left: 14px;
            }

            .sidebar-login-container {
                margin: 0 16px 12px 16px;
            }

            .sidebar-login-btn {
                padding: 14px 20px;
                font-size: 13px;
                gap: 8px;
            }

            .sidebar-login-btn i {
                font-size: 15px;
            }
        }

        @media (max-height: 500px) {
            .sidebar {
                padding: 8px 0;
            }

            .logo {
                padding: 0 16px 12px;
                margin-bottom: 12px;
                gap: 12px;
            }

            .logo-icon {
                font-size: 30px;
            }

            .logo h1 {
                font-size: 20px;
            }

            .sidebar-section {
                margin-bottom: 12px;
                padding: 0 16px;
            }

            .sidebar-section h3 {
                font-size: 10px;
                margin-bottom: 8px;
            }

            .sidebar-menu li {
                padding: 10px 14px;
                margin-bottom: 3px;
                font-size: 12px;
                gap: 12px;
            }

            .sidebar-menu li i {
                font-size: 16px;
            }

            .sidebar-search-container {
                margin: 0 14px 10px 14px;
            }

            .sidebar-search-container input {
                padding: 12px 14px 12px 40px;
                font-size: 12px;
            }

            .sidebar-search-container i {
                font-size: 14px;
                left: 12px;
            }

            .sidebar-login-container {
                margin: 0 14px 10px 14px;
            }

            .sidebar-login-btn {
                padding: 12px 18px;
                font-size: 12px;
                gap: 6px;
            }

            .sidebar-login-btn i {
                font-size: 14px;
            }
        }

        /* Top Header Styles */
        .top-header {
            grid-area: header;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(0, 0, 0, 0.08);
            padding: 8px 20px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
            position: fixed;
            top: 0;
            left: 240px;
            right: 0;
            z-index: 999;
            width: calc(100% - 240px);
        }

        .top-header-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            width: 100%;
        }

        .header-right-section {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .header-search-container {
            position: relative;
            flex: 1;
            max-width: 500px;
        }

        .header-search-container i {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-secondary);
            font-size: 16px;
            z-index: 2;
        }

        .header-search-container input {
            width: 100%;
            padding: 12px 16px 12px 48px;
            border-radius: 24px;
            background: rgba(255, 255, 255, 0.9);
            border: 2px solid transparent;
            color: var(--text);
            font-size: 15px;
            outline: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            box-sizing: border-box;
        }

        .header-search-container input:focus {
            background: white;
            border-color: var(--primary);
            box-shadow: 0 2px 12px rgba(229, 57, 53, 0.15), 0 0 0 3px rgba(229, 57, 53, 0.1);
            transform: translateY(-1px);
        }

        .header-search-container input::placeholder {
            color: var(--text-secondary);
            font-weight: 400;
        }

        .header-user-info {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 16px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 24px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(15px);
            border: 2px solid rgba(255, 255, 255, 0.3);
            position: relative;
            min-width: auto;
            max-width: 250px;
            flex-shrink: 0;
            z-index: 100001;
        }

        .header-user-info:hover {
            background: rgba(255, 255, 255, 1);
            box-shadow: 0 4px 15px rgba(0,0,0,0.15);
            transform: translateY(-1px);
            border-color: var(--primary);
        }

        .header-user-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary) 0%, #d32f2f 100%);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 14px;
            box-shadow: 0 2px 6px rgba(229, 57, 53, 0.3);
        }

        .header-user-name {
            font-weight: 600;
            color: var(--text);
            font-size: 14px;
            flex: 1;
            min-width: 60px;
            max-width: 150px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .header-user-dropdown {
            position: absolute;
            top: 100%;
            right: 0;
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.15);
            padding: 8px;
            margin-top: 8px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid #e0e0e0;
            z-index: 999999;
            min-width: 150px;
        }

        .header-user-info:hover .header-user-dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .header-user-dropdown-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            color: var(--text);
            font-size: 14px;
        }

        .header-user-dropdown-item:hover {
            background: rgba(229, 57, 53, 0.1);
            color: var(--primary);
        }

        .header-user-dropdown-item i {
            font-size: 14px;
        }

        /* Header Login Button Styles */
        .header-login-container {
            display: flex;
            align-items: center;
        }

        .header-login-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 20px;
            background: linear-gradient(135deg, var(--primary) 0%, #d32f2f 100%);
            color: white;
            border: none;
            border-radius: 24px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 10px rgba(229, 57, 53, 0.3);
            backdrop-filter: blur(10px);
            min-width: 130px;
            justify-content: center;
        }

        .header-login-btn:hover {
            background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
        }

        .header-login-btn:active {
            transform: translateY(0);
            box-shadow: 0 2px 8px rgba(229, 57, 53, 0.3);
        }

        .header-login-btn i {
            font-size: 14px;
        }

        /* Header Responsive Styles */
        @media (max-width: 768px) {
            .top-header {
                padding: 10px 16px;
            }
            
            .top-header-container {
                gap: 16px;
            }
            
            .header-right-section {
                gap: 12px;
            }
            
            .header-search-container {
                max-width: none;
            }
            
            .header-login-btn {
                padding: 10px 16px;
                font-size: 13px;
                min-width: 110px;
            }
            
            .header-user-info {
                min-width: 120px;
                padding: 8px 12px;
            }
        }

        @media (max-width: 480px) {
            .top-header {
                padding: 8px 12px;
            }
            
            .top-header-container {
                gap: 12px;
                flex-direction: column;
                align-items: stretch;
            }
            
            .header-right-section {
                order: 1;
                justify-content: flex-end;
            }
            
            .header-search-container {
                order: 2;
            }
            
            .header-login-btn {
                padding: 8px 14px;
                font-size: 12px;
                min-width: 100px;
            }
        }

        /* Main Content Styles */
        main {
            grid-area: main;
            padding: 0;
            padding-left: clamp(8px, 1.5vw, 20px);
            padding-bottom: clamp(100px, 12vh, 140px);
            padding-top: 80px; /* Espacio para el header fijo */
            overflow-y: auto;
            overflow-x: hidden;
            background: transparent;
            margin: 0;
            margin-left: 240px; /* Espacio para el sidebar fijo */
            max-width: calc(100% - 240px);
            width: calc(100% - 240px);
            height: 100vh;
            display: grid;
            grid-template-columns: 1fr 380px;
            grid-gap: 24px;
            /* Ocultar barra de scroll */
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* Internet Explorer 10+ */
            scroll-behavior: smooth;
        }

        /* Layout sin barra lateral cuando no hay usuario logueado */
        main.no-sidebar {
            grid-template-columns: 1fr;
        }

        /* Ocultar barra de scroll en WebKit browsers */
        main::-webkit-scrollbar {
            display: none;
        }

        /* Contenedor principal y barra lateral */
        .main-content {
            display: flex;
            flex-direction: column;
            min-height: auto;
            overflow: visible;
            scrollbar-width: none;
            -ms-overflow-style: none;
            padding-top: 0; /* Remover padding extra ya que main tiene padding-top */
        }

        .main-content::-webkit-scrollbar {
            display: none;
        }

        .right-sidebar {
            background: transparent;
            padding: 20px 0;
            overflow: visible;
            scrollbar-width: none;
            -ms-overflow-style: none;
            position: relative;
            height: auto;
            padding-bottom: 140px;
        }

        .right-sidebar::-webkit-scrollbar {
            display: none;
        }

        /* Secciones de la barra lateral */
        .sidebar-section-right {
            margin-bottom: 32px;
        }

        .sidebar-section-right h3 {
            font-size: 18px;
            font-weight: 700;
            color: var(--accent);
            margin-bottom: 16px;
            padding: 0 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .sidebar-section-right h3 i {
            font-size: 16px;
            color: var(--primary);
        }

        /* Tags Section */
        .tags-container {
            padding: 0 16px;
        }

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

        .tag-item {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
            color: var(--text);
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 4px rgba(0,0,0,0.04);
        }

        .tag-item:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(229, 57, 53, 0.15);
        }

        .tag-item i {
            font-size: 10px;
        }

        .tag-item.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        /* Recently Played Section */
        .recently-played-container {
            padding: 0 12px;
            overflow: visible;
            flex: 1;
            min-height: 0;
        }

        .recently-played-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
            overflow: visible;
            scrollbar-width: none;
            -ms-overflow-style: none;
            max-height: 300px;
            overflow-y: auto;
            scroll-behavior: smooth;
        }

        .recently-played-list::-webkit-scrollbar {
            display: none;
        }

        .recently-played-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px;
            background: white;
            border-radius: 8px;
            cursor: pointer;
            transition: background-color 0.2s ease, border-color 0.2s ease;
            border: 1px solid #f0f0f0;
            box-shadow: 0 1px 2px rgba(0,0,0,0.04);
            will-change: background-color, border-color;
        }

        .recently-played-item:hover {
            background: #f8f9fa;
            border-color: var(--primary);
        }

        .recently-played-cover {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background: transparent;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            font-size: 16px;
            flex-shrink: 0;
            overflow: hidden;
            position: relative;
        }

        .recently-played-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 8px;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 10;
        }

        .recently-played-cover .cover-fallback {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, var(--primary) 0%, #d32f2f 100%);
            color: white;
            font-weight: 600;
            font-size: 16px;
            border-radius: 8px;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 5;
        }

        .recently-played-info {
            flex: 1;
            min-width: 0;
        }

        .recently-played-title {
            font-size: 12px;
            font-weight: 600;
            color: var(--text);
            margin-bottom: 2px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .recently-played-category {
            font-size: 10px;
            color: var(--text-secondary);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .recently-played-play {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: var(--primary);
            color: white;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: opacity 0.2s ease;
            opacity: 0;
            flex-shrink: 0;
            will-change: opacity;
        }

        .recently-played-item:hover .recently-played-play {
            opacity: 1;
        }

        .recently-played-play:hover {
            background: var(--primary-dark);
        }

        .recently-played-play i {
            font-size: 10px;
            margin-left: 1px;
        }

        /* Responsive para la barra lateral */
        @media (max-width: 1400px) {
            main {
                grid-template-columns: 1fr 320px;
                grid-gap: 20px;
            }
            
            main.no-sidebar {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 1200px) {
            main {
                grid-template-columns: 1fr 300px;
                grid-gap: 16px;
            }
            
            main.no-sidebar {
                grid-template-columns: 1fr;
            }

            .right-sidebar {
                padding: 16px 0;
            }

            .sidebar-section-right h3 {
                font-size: 16px;
                padding: 0 12px;
            }

            .tags-container,
            .recently-played-container {
                padding: 0 12px;
            }
        }

        @media (max-width: 1024px) {
            main {
                display: flex;
                flex-direction: column;
            }

            .right-sidebar {
                position: static;
                height: auto;
                padding: 20px 16px;
                margin-top: 20px;
                border-top: 1px solid #f0f0f0;
            }

            .sidebar-section-right {
                margin-bottom: 24px;
            }

            .recently-played-list {
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
                gap: 12px;
            }
        }

        @media (max-width: 768px) {
            .right-sidebar {
                padding: 16px 12px;
            }

            .recently-played-list {
                grid-template-columns: 1fr;
            }

            .tags-list {
                gap: 6px;
            }

            .tag-item {
                padding: 6px 12px;
                font-size: 11px;
            }
        }

        /* Adaptabilidad mejorada para main content en diferentes resoluciones */
        @media screen and (min-width: 1920px) {
            main {
                padding-left: clamp(15px, 1.2vw, 25px);
                padding-bottom: clamp(120px, 12vh, 160px);
            }
        }

        @media screen and (max-width: 1440px) {
            main {
                padding-left: clamp(12px, 1.4vw, 18px);
                padding-bottom: clamp(110px, 12vh, 150px);
            }
        }

        @media screen and (max-width: 1024px) {
            main {
                padding-left: clamp(10px, 1.6vw, 15px);
                padding-bottom: clamp(100px, 12vh, 140px);
            }
        }

        @media screen and (max-width: 768px) {
            main {
                padding-left: clamp(8px, 2vw, 12px);
                padding-bottom: clamp(90px, 12vh, 130px);
            }
        }

        @media screen and (max-width: 480px) {
            main {
                padding-left: clamp(6px, 2.5vw, 10px);
                padding-bottom: clamp(80px, 12vh, 120px);
            }
        }

        /* Adaptabilidad para alturas menores */
        @media screen and (max-height: 800px) {
            main {
                padding-left: clamp(6px, 1.2vw, 12px);
                padding-bottom: clamp(90px, 15vh, 120px);
            }
        }

        @media screen and (max-height: 600px) {
            main {
                padding-left: clamp(5px, 1vw, 8px);
                padding-bottom: clamp(80px, 18vh, 110px);
            }
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            padding: 16px 0 12px 0;
            position: relative;
            background: transparent;
        }

        .section-header h2 {
            font-size: 28px;
            font-weight: 700;
            color: var(--accent);
            margin: 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .section-header .section-icon {
            font-size: 20px;
            color: var(--primary);
            margin-right: 4px;
        }

        .section-header .section-subtitle {
            font-size: 14px;
            color: var(--text-secondary);
            font-weight: 500;
            margin-top: 2px;
            display: block;
        }

        .section-header a {
            color: var(--primary);
            text-decoration: none;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s ease;
            padding: 8px 16px;
            border-radius: 20px;
            border: 2px solid var(--primary);
            background: rgba(229, 57, 53, 0.05);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .section-header a:hover {
            color: white;
            background: var(--primary);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(229, 57, 53, 0.25);
        }

        .section-header a i {
            font-size: 11px;
            transition: none;
        }

        .section-header a:hover i {
            transform: none;
        }

        /* Mejoras para las secciones específicas */
        .section-recommendations {
            background: transparent;
            border-radius: 0;
            padding: 0;
            margin-bottom: clamp(60px, 8vh, 80px);
            box-shadow: none;
            border: none;
        }

        .section-recommendations .section-header {
            margin-bottom: 12px;
            padding: 20px 20px 16px 20px;
            background: rgba(255, 255, 255, 0.5);
            border-radius: 12px 12px 0 0;
        }

        .section-recommendations .section-header h2 {
            font-size: 32px;
            font-weight: 700;
            color: var(--accent);
            display: flex;
            align-items: center;
            gap: 12px;
            margin: 0;
        }

        .section-recommendations .section-header .section-icon {
            font-size: 24px;
            color: var(--primary);
            margin-right: 0;
        }

        /* Tabla de recomendaciones con estilo minimalista */
        .recommendations-table-container {
            background: #ffffff;
            border-radius: 0;
            box-shadow: none;
            overflow: visible;
            margin: 0 20px 32px 20px;
            position: relative;
            border: none;
            width: calc(100% - 40px) !important;
            max-width: calc(100% - 40px) !important;
            box-sizing: border-box;
            transition: none;
        }

        .recommendations-table {
            width: 100%;
            border-collapse: collapse;
            background: transparent;
            position: relative;
            z-index: 1;
        }

        .recommendations-table thead {
            background: transparent;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            position: relative;
        }

        .recommendations-table thead::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: rgba(0, 0, 0, 0.1);
            border-radius: 0;
        }

        .recommendations-table th {
            padding: 16px 20px;
            text-align: left;
            font-weight: 600;
            color: rgba(0, 0, 0, 0.7);
            border-bottom: none;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
            background: transparent;
        }

        .recommendations-table tbody tr {
            transition: all 0.2s ease;
            cursor: pointer;
            border-bottom: none;
            position: relative;
            background: transparent;
        }

        .recommendations-table tbody tr:hover {
            background: rgba(0, 0, 0, 0.02);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            border-radius: 12px;
            transform: none;
        }

        .recommendations-table tbody tr.playing {
            background: rgba(239, 68, 68, 0.15);
            color: white;
            border-left: none;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
            overflow: hidden;
        }

        .recommendations-table tbody tr.playing:hover {
            background: rgba(239, 68, 68, 0.2);
            box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
            transform: none;
        }

        .recommendations-table tbody tr.playing td:first-child {
            border-top-left-radius: 12px;
            border-bottom-left-radius: 12px;
        }

        .recommendations-table tbody tr.playing td:last-child {
            border-top-right-radius: 12px;
            border-bottom-right-radius: 12px;
        }

        .recommendations-table td {
            padding: 10px 20px;
            color: rgba(0, 0, 0, 0.85);
            font-size: 14px;
            vertical-align: middle;
            border: none;
            position: relative;
            font-weight: 500;
            line-height: 1.4;
        }

        .col-number {
            width: 60px;
            text-align: center;
            font-weight: 600;
            color: rgba(0, 0, 0, 0.5);
            position: relative;
        }

        .col-number .track-number {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 20px;
            height: 20px;
            color: rgba(0, 0, 0, 0.5);
            font-size: 14px;
            font-weight: 600;
            transition: all 0.2s ease;
        }

        .recommendations-table tbody tr:hover .col-number .track-number {
            color: var(--primary);
        }

        .recommendations-table tbody tr.playing .col-number .track-number {
            color: var(--primary);
        }

        .col-title {
            width: 45%;
            font-weight: 600;
            color: rgba(0, 0, 0, 0.9);
            font-size: 14px;
            line-height: 1.3;
        }

        .recommendations-table tbody tr:hover .col-title {
            color: var(--primary);
        }

        .recommendations-table tbody tr.playing .col-title {
            color: var(--primary);
            font-weight: 600;
        }

        .col-category {
            width: 30%;
        }

        .col-duration {
            width: 100px;
            text-align: right;
            color: rgba(0, 0, 0, 0.6);
            font-size: 13px;
            font-weight: 600;
            font-variant-numeric: tabular-nums;
        }

        .recommendations-table tbody tr:hover .col-duration {
            color: rgba(0, 0, 0, 0.8);
        }

        .sound-waves {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 2px;
            width: 20px;
            height: 16px;
        }

        .sound-wave {
            width: 2.5px;
            background: linear-gradient(to top, var(--primary) 0%, #d32f2f 100%);
            border-radius: 2px;
            animation: soundWave 1.2s ease-in-out infinite;
            box-shadow: 0 0 4px rgba(229, 57, 53, 0.3);
        }

        .sound-wave:nth-child(1) {
            height: 6px;
            animation-delay: 0s;
        }

        .sound-wave:nth-child(2) {
            height: 10px;
            animation-delay: 0.1s;
        }

        .sound-wave:nth-child(3) {
            height: 14px;
            animation-delay: 0.2s;
        }

        .sound-wave:nth-child(4) {
            height: 10px;
            animation-delay: 0.3s;
        }

        .sound-wave:nth-child(5) {
            height: 8px;
            animation-delay: 0.4s;
        }

        @keyframes soundWave {
            0%, 100% {
                transform: scaleY(0.4);
                opacity: 0.7;
            }
            50% {
                transform: scaleY(1);
                opacity: 1;
            }
        }

        /* Badge de categoría - Diseño mejorado */
        .category-badge {
            display: inline-block;
            padding: 6px 14px;
            border-radius: 25px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            background: #ccfcca;
            color: #374151;
            border: 1px solid rgba(107, 114, 128, 0.25);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            transition: all 0.2s ease;
        }

        .category-badge:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        /* Precatecumenado - Blanco */
        .category-badge.precatecumenado {
            background: white;
            color: #374151;
            border: 1px solid #e5e7eb;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        .category-badge.precatecumenado:hover {
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
        }

        /* Catecumenado - Azul claro */
        .category-badge.catecumenado {
            background: rgb(115, 183, 248);
            color: #1e40af;
            border: 1px solid rgba(59, 130, 246, 0.3);
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
        }

        .category-badge.catecumenado:hover {
            background: rgb(99, 172, 245);
            box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
        }

        /* Elección - Verde claro */
        .category-badge.eleccion {
            background: #ccfcca;
            color: #166534;
            border: 1px solid rgba(34, 197, 94, 0.3);
            box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
        }

        .category-badge.eleccion:hover {
            background: rgb(187, 247, 184);
            box-shadow: 0 4px 16px rgba(34, 197, 94, 0.25);
        }

        /* Liturgia - Amarillo claro */
        .category-badge.liturgia {
            background: rgb(246, 246, 133);
            color: #92400e;
            border: 1px solid rgba(245, 158, 11, 0.3);
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
        }

        .category-badge.liturgia:hover {
            background: rgb(240, 240, 115);
            box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
        }

        /* Otros estilos de categoría para compatibilidad */
        .category-badge.liturgica {
            background: rgb(246, 246, 133);
            color: #92400e;
            border: 1px solid rgba(245, 158, 11, 0.3);
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
        }

        .category-badge.adoracion {
            background: rgba(245, 158, 11, 0.2);
            color: #d97706;
            border: 1px solid rgba(245, 158, 11, 0.4);
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
        }

        .category-badge.popular {
            background: rgba(34, 197, 94, 0.2);
            color: #16a34a;
            border: 1px solid rgba(34, 197, 94, 0.4);
            box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
        }

        .category-badge.tradicional {
            background: rgba(139, 92, 246, 0.2);
            color: #7c3aed;
            border: 1px solid rgba(139, 92, 246, 0.4);
            box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
        }

        .category-badge.general {
            background: #ccfcca;
            color: #166534;
            border: 1px solid rgba(34, 197, 94, 0.3);
            box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
        }

        /* Loading state */
        .loading-row td {
            text-align: center;
            padding: 40px 20px;
        }

        .loading-row .loading {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            color: #718096;
        }

        .loading-row .loading i {
            font-size: 18px;
        }

        /* Estilos para tabla de resultados de búsqueda por categorías */
        .search-results-table-container {
            background: #ffffff;
            border-radius: 0;
            box-shadow: none;
            overflow: visible;
            margin: 0 0 32px 0;
            position: relative;
            border: none;
            width: 100% !important;
            max-width: 100% !important;
            box-sizing: border-box;
            transition: none;
        }

        .search-results-table {
            width: 100%;
            border-collapse: collapse;
            background: transparent;
            position: relative;
            z-index: 1;
        }

        .search-results-table thead {
            background: transparent;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            position: relative;
        }

        .search-results-table thead::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: rgba(0, 0, 0, 0.1);
            border-radius: 0;
        }

        .search-results-table th {
            padding: 16px 20px;
            text-align: left;
            font-weight: 600;
            color: rgba(0, 0, 0, 0.7);
            border-bottom: none;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
            background: transparent;
        }

        /* Forzar estilo consistente para todos los encabezados de tabla */
        .search-results-table th,
        .recommendations-table th {
            padding: 16px 20px !important;
            text-align: left !important;
            font-weight: 600 !important;
            color: rgba(0, 0, 0, 0.7) !important;
            border-bottom: none !important;
            font-size: 12px !important;
            text-transform: uppercase !important;
            letter-spacing: 1px !important;
            position: relative !important;
            background: transparent !important;
        }

        .search-results-table tbody tr {
            transition: all 0.2s ease;
            cursor: pointer;
            border-bottom: none;
            position: relative;
            background: transparent;
        }

        .search-results-table tbody tr:hover {
            background: rgba(0, 0, 0, 0.02);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            border-radius: 12px;
            transform: none;
        }

        .search-results-table tbody tr.playing {
            background: rgba(239, 68, 68, 0.15);
            color: white;
            font-weight: 600;
            border-left: none;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
            overflow: hidden;
        }

        .search-results-table tbody tr.playing:hover {
            background: rgba(239, 68, 68, 0.2);
            box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
            transform: none;
        }

        .search-results-table tbody tr.playing td:first-child {
            border-top-left-radius: 12px;
            border-bottom-left-radius: 12px;
        }

        .search-results-table tbody tr.playing td:last-child {
            border-top-right-radius: 12px;
            border-bottom-right-radius: 12px;
        }

        .search-results-table td {
            padding: 10px 20px;
            color: rgba(0, 0, 0, 0.85);
            font-size: 14px;
            vertical-align: middle;
            border: none;
            position: relative;
            font-weight: 500;
            line-height: 1.4;
        }

        .search-results-table .col-number {
            width: 60px;
            text-align: center;
            font-weight: 600;
            color: rgba(0, 0, 0, 0.5);
        }

        .search-results-table .col-number .track-number {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: 600;
            transition: all 0.2s ease;
        }

        .search-results-table .col-number .playing-animation {
            display: none;
            align-items: flex-end;
            justify-content: center;
            height: 16px;
            gap: 2px;
        }

        .search-results-table .col-number .playing-animation span {
            width: 3px;
            height: 100%;
            background: var(--primary);
            border-radius: 2px;
            animation: wave 1.2s ease-in-out infinite;
        }

        .search-results-table .col-number .playing-animation span:nth-child(1) {
            animation-delay: 0s;
        }

        .search-results-table .col-number .playing-animation span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .search-results-table .col-number .playing-animation span:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes wave {
            0%, 100% {
                transform: scaleY(0.3);
            }
            50% {
                transform: scaleY(1);
            }
        }

        .search-results-table tbody tr:hover .col-number .track-number {
            color: var(--primary);
        }

        .search-results-table tbody tr.playing .col-number .track-number {
            display: none;
        }

        .search-results-table tbody tr.playing .col-number .playing-animation {
            display: flex;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .recommendations-table-container,
            .search-results-table-container {
                border-radius: 16px;
                margin: 0 -10px;
            }

            .recommendations-table th,
            .recommendations-table td,
            .search-results-table th,
            .search-results-table td {
                padding: 12px 16px;
                font-size: 13px;
            }

            .col-song,
            .col-category {
                display: none;
            }

            .col-title {
                width: auto;
            }

            .col-duration {
                width: 80px;
            }
        }

        /* Mejoras específicas para columnas de la tabla de tags */
        .search-results-table .col-title {
            width: 50%;
            font-weight: 600;
            color: rgba(0, 0, 0, 0.9);
            font-size: 14px;
            line-height: 1.3;
        }

        .search-results-table .col-category {
            width: 25%;
            font-weight: 500;
            font-size: 12px;
            color: rgba(239, 68, 68, 0.8);
            text-transform: capitalize;
            letter-spacing: 0.5px;
        }

        .search-results-table .col-duration {
            width: 15%;
            text-align: right;
            font-weight: 600;
            color: rgba(0, 0, 0, 0.6);
            font-size: 13px;
            font-variant-numeric: tabular-nums;
        }

        /* Efectos hover mejorados para columnas */
        .search-results-table tbody tr:hover .col-title {
            color: rgba(239, 68, 68, 0.9);
        }

        .search-results-table tbody tr:hover .col-category {
            color: rgba(239, 68, 68, 1);
        }

        .search-results-table tbody tr:hover .col-duration {
            color: rgba(0, 0, 0, 0.8);
        }

        /* Featured Top Songs Card */
        .featured-top-card {
            background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
            border-radius: 20px;
            padding: 0;
            margin: 20px;
            margin-bottom: 32px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.15);
            border: 1px solid rgba(255, 255, 255, 0.1);
            overflow: hidden;
            position: relative;
            min-height: 220px;
            display: flex;
            align-items: center;
            z-index: 1;
        }

        /* Clase específica para ocultar el featured card cuando no hay usuario */
        .featured-top-card.hidden {
            display: none !important;
        }

        .featured-top-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
            z-index: 1;
        }

        .featured-background {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: url('../kiko.jpg');
            background-size: cover;
            background-position: center center;
            background-repeat: no-repeat;
            background-attachment: local;
            filter: blur(1px) brightness(1.1);
            z-index: 0;
            height: 100%;
            width: 100%;
        }

        .featured-content {
            position: relative;
            z-index: 2;
            padding: 32px;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            width: 100%;
            min-height: 200px;
            box-sizing: border-box;
        }

        .featured-info {
            flex: 1;
            color: white;
            text-align: left;
            max-width: 600px;
        }

        .featured-label {
            font-size: 14px;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .featured-stats {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
        }

        .featured-listener-count {
            display: flex;
            align-items: center;
            gap: 6px;
            color: rgba(255, 255, 255, 0.9);
            font-size: 14px;
            font-weight: 500;
        }

        .featured-listener-count i {
            font-size: 12px;
        }

        .featured-title {
            font-size: 32px;
            font-weight: 700;
            color: white;
            margin-bottom: 12px;
            line-height: 1.2;
            font-family: 'Neocat', 'Playfair Display', Georgia, serif;
        }

        .featured-subtitle {
            font-size: 16px;
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 24px;
            line-height: 1.4;
        }

        .featured-actions {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .featured-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 14px 24px;
            border-radius: 24px;
            font-weight: 600;
            font-size: 15px;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
            text-decoration: none;
            min-width: 120px;
            justify-content: center;
            position: relative;
            will-change: transform, box-shadow;
            transform: translateZ(0); /* Force hardware acceleration */
        }

        .featured-btn.primary {
            background: linear-gradient(135deg, var(--primary) 0%, #d32f2f 100%);
            color: white;
            box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
        }

        .featured-btn.primary:hover {
            transform: translateY(-1px) translateZ(0);
            box-shadow: 0 5px 18px rgba(229, 57, 53, 0.4);
            background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
        }

        .featured-btn.secondary {
            background: rgba(255, 255, 255, 0.15);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.3);
            backdrop-filter: blur(10px);
        }

        .featured-btn.secondary:hover {
            background: rgba(255, 255, 255, 0.25);
            border-color: rgba(255, 255, 255, 0.5);
            transform: translateY(-1px) translateZ(0);
            box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
        }

        .featured-btn i {
            font-size: 16px;
        }

        /* Responsive for Featured Card */
        @media (max-width: 768px) {
            .featured-content {
                flex-direction: column;
                text-align: center;
                padding: 24px;
                gap: 20px;
            }

            .featured-title {
                font-size: 24px;
            }

            .featured-subtitle {
                font-size: 14px;
            }

            .featured-actions {
                flex-wrap: wrap;
                justify-content: center;
            }

            .featured-image {
                width: 100px;
                height: 100px;
            }
        }

        @media (max-width: 480px) {
            .featured-content {
                padding: 20px;
            }

            .featured-title {
                font-size: 20px;
            }

            .featured-btn {
                padding: 12px 20px;
                font-size: 14px;
                min-width: 100px;
            }

            .featured-image {
                width: 80px;
                height: 80px;
            }
        }

        .section-category {
            margin-bottom: 48px;
        }

        .section-category .section-header h2 {
            font-size: 28px;
        }

        .song-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 24px;
            margin-bottom: 48px;
        }

        /* Override grid styles when containing a table */
        .song-grid:has(.search-results-table-container) {
            display: block !important;
            grid-template-columns: none !important;
            gap: 0 !important;
            width: 100% !important;
            margin-top: 0 !important;
        }

        /* Fallback for browsers that don't support :has() */
        .song-grid .search-results-table-container {
            width: 100% !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
        }

        /* Forzar ancho completo cuando hay tabla presente */
        .song-grid:has(table),
        .song-grid table,
        .song-grid .search-results-table {
            width: 100% !important;
            max-width: 100% !important;
        }

        /* Grid específica para resultados de categorías */
        .category-results-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
            padding: 20px 0;
        }

        .category-results-grid .song-card {
            transition: all 0.3s ease;
            border: 1px solid transparent;
        }

        .category-results-grid .song-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
            border-color: var(--primary);
        }

        /* Estilos para la sección de bienvenida */
        .welcome-section {
            height: calc(100% - 80px);
            min-height: calc(100vh - 160px);
            max-height: calc(100% - 80px);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: clamp(4px, 0.8vh, 12px);
            padding-bottom: clamp(80px, 12vh, 100px);
            width: 100%;
            box-sizing: border-box;
            overflow: hidden;
            margin: 0;
        }

        .welcome-container {
            max-width: clamp(600px, 80vw, 900px);
            width: 100%;
            text-align: center;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            height: 100%;
            max-height: calc(100vh - 160px);
            gap: clamp(12px, 2.5vh, 20px);
            padding: 0;
        }

        .welcome-hero {
            flex-shrink: 0;
        }

        .welcome-title {
            font-size: clamp(3rem, 6.5vw, 5.5rem);
            font-weight: 700;
            font-family: 'Neocat', 'Playfair Display', Georgia, serif;
            background: linear-gradient(135deg, var(--primary), #ff6b6b);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: clamp(12px, 2vh, 20px);
            line-height: 1.1;
            letter-spacing: -0.02em;
        }

        .welcome-subtitle {
            font-size: clamp(1.1rem, 2vw, 1.4rem);
            color: var(--text-secondary);
            margin-bottom: 0;
            line-height: 1.3;
            max-width: clamp(400px, 70vw, 550px);
            margin-left: auto;
            margin-right: auto;
            font-family: 'Inter', sans-serif;
            font-weight: 400;
        }

        .welcome-features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(clamp(160px, 20vw, 200px), 1fr));
            gap: clamp(12px, 2.5vh, 18px);
            max-width: clamp(600px, 75vw, 750px);
            margin: 0 auto;
            flex-shrink: 1;
            min-height: 0;
        }

        .feature-card {
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            padding: clamp(14px, 2.5vh, 20px) clamp(12px, 2vw, 18px);
            border-radius: clamp(12px, 1.8vh, 16px);
            box-shadow: 0 3px 15px rgba(0,0,0,0.05);
            border: 1px solid rgba(255, 255, 255, 0.8);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(229, 57, 53, 0.04) 50%, 
                transparent 100%);
            transition: left 0.6s ease;
            z-index: 0;
        }

        .feature-card:hover::before {
            left: 100%;
        }

        .feature-card:hover {
            transform: translateY(-3px) scale(1.01);
            box-shadow: 0 8px 25px rgba(229, 57, 53, 0.1);
            border-color: rgba(229, 57, 53, 0.15);
            background: rgba(255, 255, 255, 0.85);
        }

        .feature-card > * {
            position: relative;
            z-index: 1;
        }

        .feature-card i {
            font-size: clamp(1.6rem, 3vh, 2.2rem);
            color: var(--primary);
            margin-bottom: clamp(8px, 1.5vh, 12px);
            flex-shrink: 0;
            transition: all 0.3s ease;
            padding: clamp(6px, 1vh, 8px);
            background: rgba(229, 57, 53, 0.04);
            border-radius: 50%;
            width: clamp(44px, 6vw, 56px);
            height: clamp(44px, 6vw, 56px);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .feature-card:hover i {
            transform: scale(1.08);
            background: rgba(229, 57, 53, 0.08);
            box-shadow: 0 3px 12px rgba(229, 57, 53, 0.15);
        }

        .feature-card h3 {
            font-size: clamp(0.95rem, 1.6vh, 1.15rem);
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: clamp(6px, 1.2vh, 8px);
            line-height: 1.2;
            letter-spacing: -0.01em;
        }

        .feature-card p {
            color: var(--text-secondary);
            line-height: 1.4;
            margin: 0;
            font-size: clamp(0.8rem, 1.3vh, 0.95rem);
            font-weight: 400;
            opacity: 0.9;
            max-width: 95%;
            text-align: center;
        }

        /* Banner Creativo de Registro Rápido */
        .quick-register-banner {
            margin-top: clamp(8px, 1.5vh, 12px);
            background: linear-gradient(135deg, 
                rgba(229, 57, 53, 0.06) 0%, 
                rgba(255, 107, 107, 0.04) 50%, 
                rgba(229, 57, 53, 0.03) 100%);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(229, 57, 53, 0.12);
            border-radius: 12px;
            padding: clamp(8px, 1.5vh, 12px) clamp(12px, 2vw, 18px);
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 16px rgba(229, 57, 53, 0.08);
            animation: gentle-pulse 4s ease-in-out infinite;
            max-width: clamp(250px, 50vw, 400px);
            margin-left: auto;
            margin-right: auto;
        }

        .quick-register-banner::before {
            content: '';
            position: absolute;
            top: -10px;
            left: -10px;
            right: -10px;
            bottom: -10px;
            background: linear-gradient(45deg, 
                transparent 30%, 
                rgba(229, 57, 53, 0.05) 50%, 
                transparent 70%);
            animation: subtle-shimmer 6s ease-in-out infinite;
            z-index: 0;
            border-radius: 20px;
        }

        .banner-content {
            position: relative;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: clamp(8px, 1.2vw, 12px);
            flex-wrap: nowrap;
        }

        .banner-icon {
            background: linear-gradient(135deg, var(--primary), #ff6b6b);
            color: white;
            width: clamp(28px, 4vw, 32px);
            height: clamp(28px, 4vw, 32px);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: clamp(0.9rem, 1.6vw, 1rem);
            animation: icon-bounce 3s ease-in-out infinite;
            box-shadow: 0 2px 8px rgba(229, 57, 53, 0.2);
            flex-shrink: 0;
        }

        .banner-text {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            text-align: left;
            flex: 1;
        }

        .banner-highlight {
            font-size: clamp(0.9rem, 1.5vw, 1rem);
            font-weight: 700;
            color: var(--primary);
            text-shadow: 0 1px 2px rgba(229, 57, 53, 0.12);
            margin-bottom: 1px;
            animation: text-glow 3s ease-in-out infinite;
        }

        .banner-description {
            font-size: clamp(0.75rem, 1.2vw, 0.85rem);
            color: var(--text-secondary);
            font-weight: 400;
            line-height: 1.2;
        }

        .banner-decoration {
            position: absolute;
            right: clamp(8px, 1.5vw, 16px);
            top: 50%;
            transform: translateY(-50%);
        }

        .floating-elements {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .floating-elements i {
            color: rgba(229, 57, 53, 0.25);
            font-size: clamp(0.7rem, 1.2vw, 0.9rem);
            animation: float-up 4s ease-in-out infinite;
        }

        .floating-elements i:nth-child(1) {
            animation-delay: 0s;
        }

        .floating-elements i:nth-child(2) {
            animation-delay: 1.3s;
        }

        .floating-elements i:nth-child(3) {
            animation-delay: 2.6s;
        }

        /* Animaciones mejoradas */
        @keyframes gentle-pulse {
            0%, 100% {
                box-shadow: 0 6px 24px rgba(229, 57, 53, 0.12);
                border-color: rgba(229, 57, 53, 0.15);
            }
            50% {
                box-shadow: 0 8px 28px rgba(229, 57, 53, 0.18);
                border-color: rgba(229, 57, 53, 0.2);
            }
        }

        @keyframes subtle-shimmer {
            0%, 100% { 
                opacity: 0;
                transform: translateX(-100%);
            }
            50% { 
                opacity: 1;
                transform: translateX(100%);
            }
        }

        @keyframes icon-bounce {
            0%, 100% { transform: translateY(0) scale(1); }
            50% { transform: translateY(-2px) scale(1.05); }
        }

        @keyframes text-glow {
            0%, 100% { 
                text-shadow: 0 1px 3px rgba(229, 57, 53, 0.15);
            }
            50% { 
                text-shadow: 0 1px 6px rgba(229, 57, 53, 0.25), 
                             0 0 10px rgba(229, 57, 53, 0.15);
            }
        }

        @keyframes float-up {
            0%, 100% { 
                transform: translateY(0) scale(1);
                opacity: 0.25;
            }
            50% { 
                transform: translateY(-6px) scale(1.1);
                opacity: 0.5;
            }
        }

        /* Responsive para la sección de bienvenida */
        @media (max-width: 1024px) {
            .welcome-section {
                padding: clamp(4px, 0.8vh, 10px);
                padding-bottom: clamp(70px, 10vh, 90px);
            }
            
            .welcome-container {
                max-width: 85vw;
                gap: clamp(10px, 2vh, 16px);
                max-height: calc(100vh - 140px);
            }

            .welcome-features {
                grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
                max-width: 75vw;
                gap: clamp(8px, 1.4vh, 12px);
            }
        }

        @media (max-width: 768px) {
            .welcome-section {
                padding: clamp(3px, 0.6vh, 8px);
                padding-bottom: clamp(60px, 8vh, 80px);
            }
            
            .welcome-container {
                gap: clamp(8px, 1.6vh, 14px);
                max-width: 90vw;
                max-height: calc(100vh - 120px);
            }
            
            .welcome-features {
                grid-template-columns: 1fr 1fr;
                gap: clamp(6px, 1.2vh, 10px);
                max-width: 85vw;
            }
            
            .feature-card {
                padding: clamp(10px, 1.6vh, 14px) clamp(8px, 1.4vw, 12px);
            }

            .welcome-title {
                font-size: clamp(1.5rem, 3.5vw, 2.2rem);
            }

            .welcome-subtitle {
                font-size: clamp(0.9rem, 1.5vw, 1.1rem);
                max-width: 85vw;
            }
        }

        @media (max-width: 480px) {
            .welcome-section {
                padding: clamp(2px, 0.5vh, 6px);
                padding-bottom: clamp(50px, 6vh, 70px);
            }
            
            .welcome-container {
                gap: clamp(6px, 1.2vh, 10px);
                max-width: 92vw;
                max-height: calc(100vh - 100px);
            }
            
            .welcome-features {
                grid-template-columns: 1fr 1fr;
                gap: clamp(5px, 1vh, 8px);
                max-width: 88vw;
            }
            
            .feature-card {
                padding: clamp(8px, 1.4vh, 12px) clamp(6px, 1.2vw, 10px);
            }

            .welcome-title {
                font-size: clamp(1.3rem, 3.2vw, 1.8rem);
            }

            .welcome-subtitle {
                font-size: clamp(0.8rem, 1.4vw, 1rem);
                max-width: 88vw;
            }
        }

        @media (max-height: 700px) {
            .welcome-container {
                gap: clamp(6px, 1.2vh, 12px);
                max-height: calc(100vh - 140px);
            }

            .welcome-section {
                padding-bottom: clamp(70px, 12vh, 90px);
            }

            .welcome-title {
                font-size: clamp(1.3rem, 3.2vw, 1.9rem);
            }

            .welcome-features {
                grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
                gap: clamp(5px, 1vh, 9px);
            }
        }

        @media (max-height: 600px) {
            .welcome-container {
                gap: clamp(4px, 1vh, 8px);
                max-height: calc(100vh - 120px);
            }

            .welcome-section {
                padding-bottom: clamp(60px, 10vh, 80px);
            }

            .welcome-title {
                font-size: clamp(1.2rem, 2.8vw, 1.6rem);
            }

            .welcome-subtitle {
                font-size: clamp(0.7rem, 1.2vw, 0.9rem);
                line-height: 1.1;
            }

            .welcome-features {
                grid-template-columns: repeat(4, 1fr);
                gap: clamp(3px, 0.8vh, 6px);
            }

            .feature-card {
                padding: clamp(6px, 1.2vh, 10px) clamp(4px, 1vw, 8px);
            }

            .feature-card i {
                font-size: clamp(1.2rem, 2.2vh, 1.6rem);
                margin-bottom: clamp(3px, 0.6vh, 6px);
            }

            .feature-card h3 {
                font-size: clamp(0.8rem, 1.4vh, 0.9rem);
                margin-bottom: clamp(2px, 0.4vh, 4px);
            }

            .feature-card p {
                font-size: clamp(0.7rem, 1.1vh, 0.8rem);
                line-height: 1.1;
            }
        }

        @media (max-height: 500px) {
            .welcome-section {
                padding-bottom: clamp(50px, 8vh, 70px);
                min-height: calc(100vh - 120px);
            }

            .welcome-container {
                gap: clamp(3px, 0.8vh, 6px);
                max-height: calc(100vh - 100px);
            }

            .welcome-title {
                font-size: clamp(1rem, 2.4vw, 1.4rem);
            }

            .welcome-subtitle {
                font-size: clamp(0.6rem, 1vw, 0.8rem);
                line-height: 1.1;
            }

            .welcome-features {
                grid-template-columns: repeat(4, 1fr);
                gap: clamp(2px, 0.6vh, 4px);
            }

            .feature-card {
                padding: clamp(4px, 0.8vh, 8px) clamp(3px, 0.8vw, 6px);
            }

            .feature-card i {
                font-size: clamp(1rem, 1.8vh, 1.3rem);
                margin-bottom: clamp(2px, 0.4vh, 4px);
            }

            .feature-card h3 {
                font-size: clamp(0.7rem, 1.2vh, 0.8rem);
                margin-bottom: clamp(1px, 0.2vh, 3px);
            }

            .feature-card p {
                font-size: clamp(0.6rem, 0.9vh, 0.7rem);
                line-height: 1.05;
            }
        }

        /* Estilos para Login Overlay */
        .login-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 500000;
            padding: 20px;
            box-sizing: border-box;
        }

        .login-overlay.active {
            display: flex;
        }

        .login-overlay-content {
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            max-width: 900px;
            width: 100%;
            max-height: 90vh;
            overflow: hidden;
            position: relative;
            animation: overlayAppear 0.4s ease-out;
            display: flex;
        }

        @keyframes overlayAppear {
            from {
                opacity: 0;
                transform: translateY(30px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .close-login-btn {
            position: absolute !important;
            top: 20px !important;
            right: 20px !important;
            background: rgba(255, 255, 255, 0.95);
            border: 2px solid rgba(100, 116, 139, 0.2);
            width: 48px;
            height: 48px;
            border-radius: 50%;
            display: flex !important;
            align-items: center;
            justify-content: center;
            cursor: pointer !important;
            color: #64748b;
            font-size: 20px;
            font-weight: bold;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
            z-index: 10005 !important;
            pointer-events: all !important;
            opacity: 1 !important;
            visibility: visible !important;
            margin: 0 !important;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }

        .close-login-btn:hover {
            background: #f1f5f9;
            color: #dc2626;
            border-color: rgba(220, 38, 38, 0.3);
            transform: rotate(90deg) scale(1.1);
            box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
        }

        .close-login-btn:active {
            transform: rotate(90deg) scale(0.95);
            background: #fee2e2;
            color: #dc2626;
            border-color: rgba(220, 38, 38, 0.5);
        }

        .login-overlay-left {
            flex: 1;
            padding: 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .login-overlay-right {
            flex: 1;
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            padding: 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .login-overlay-icon {
            font-size: 3rem;
            color: var(--primary);
            margin-bottom: 20px;
            text-align: center;
            animation: pulse 2s infinite;
        }

        .login-overlay-title {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 8px;
            text-align: center;
            font-family: 'Neocat', 'Playfair Display', Georgia, serif;
        }

        .login-overlay-subtitle {
            font-size: 1rem;
            color: var(--text-secondary);
            margin-bottom: 30px;
            line-height: 1.5;
            text-align: center;
        }

        .login-overlay-form {
            margin-bottom: 0;
        }

        .login-input-group {
            text-align: left;
            margin-bottom: 20px;
        }

        .login-input-group label {
            display: block;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 8px;
            font-size: 0.9rem;
        }

        .login-input-group input {
            width: 100%;
            padding: 14px 16px;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            font-size: 1rem;
            transition: all 0.3s ease;
            background: #f8fafc;
            box-sizing: border-box;
        }

        .login-input-group input:focus {
            outline: none;
            border-color: var(--primary);
            background: white;
            box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
        }

        .login-overlay-submit {
            width: 100%;
            padding: 16px 24px;
            background: linear-gradient(135deg, var(--primary), #c62828);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
        }

        .login-overlay-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(229, 57, 53, 0.3);
        }

        .login-overlay-submit:active {
            transform: translateY(0);
        }

        .login-overlay-benefits {
            text-align: left;
        }

        .login-overlay-benefits h3 {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 20px;
            text-align: center;
            font-family: 'Neocat', 'Playfair Display', Georgia, serif;
        }

        .login-overlay-benefits ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .login-overlay-benefits li {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 12px 0;
            color: var(--text-secondary);
            font-size: 1rem;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        }

        .login-overlay-benefits li:last-child {
            border-bottom: none;
        }

        .login-overlay-benefits li i {
            color: var(--primary);
            font-size: 1.2rem;
            width: 20px;
            flex-shrink: 0;
        }

        /* Responsive para overlay */
        @media (max-width: 768px) {
            .login-overlay {
                padding: 10px;
            }

            .login-overlay-content {
                max-width: 100%;
                border-radius: 16px;
                flex-direction: column;
                max-height: 95vh;
                overflow-y: auto;
            }

            .login-overlay-left,
            .login-overlay-right {
                padding: 25px;
            }

            .login-overlay-right {
                background: #f8fafc;
            }

            .login-overlay-title {
                font-size: 1.5rem;
            }
        }

        @media (max-width: 480px) {
            .login-overlay-left,
            .login-overlay-right {
                padding: 20px;
            }

            .login-overlay-icon {
                font-size: 2.5rem;
            }
        }

        /* ========== ESTILOS PARA MODAL DE CAMBIO DE NOMBRE ========== */
        .change-name-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 600000;
            padding: 20px;
            box-sizing: border-box;
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .change-name-overlay.active {
            display: flex;
            opacity: 1;
        }

        .change-name-content {
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 16px;
            box-shadow: 
                0 20px 40px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(255, 255, 255, 0.1);
            max-width: 420px;
            width: 100%;
            position: relative;
            animation: changeNameModalAppear 0.25s ease-out;
            overflow: hidden;
        }

        @keyframes changeNameModalAppear {
            0% {
                opacity: 0;
                transform: translateY(-10px) scale(0.98);
            }
            100% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .close-change-name-btn {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 32px;
            height: 32px;
            border: none;
            background: rgba(0, 0, 0, 0.04);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            color: #64748b;
            font-size: 14px;
            z-index: 10;
        }

        .close-change-name-btn:hover {
            background: rgba(239, 68, 68, 0.1);
            color: #ef4444;
            transform: scale(1.1);
        }

        .change-name-header {
            text-align: center;
            padding: 32px 32px 24px 32px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
            color: white;
            position: relative;
        }

        .change-name-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        }

        .change-name-title {
            font-size: 24px;
            font-weight: 600;
            color: white;
            margin: 0 0 8px 0;
            font-family: 'Neocat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }

        .change-name-subtitle {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.8);
            margin: 0;
            font-weight: 400;
        }

        .change-name-form {
            padding: 32px 32px 32px 32px;
            background: white;
        }

        .change-name-input-group {
            margin-bottom: 24px;
        }

        .change-name-input-group label {
            display: block;
            font-size: 14px;
            font-weight: 500;
            color: #374151;
            margin-bottom: 8px;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }

        .change-name-input-group input {
            width: 100%;
            padding: 12px 16px;
            border: 1.5px solid #e2e8f0;
            border-radius: 8px;
            font-size: 15px;
            background: white;
            color: #1e293b;
            transition: all 0.2s ease;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }

        .change-name-input-group input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
        }

        .change-name-input-group input::placeholder {
            color: #94a3b8;
        }

        .input-helper {
            display: flex;
            justify-content: flex-end;
            margin-top: 6px;
        }

        .char-counter {
            font-size: 12px;
            color: #94a3b8;
            font-weight: 500;
        }

        .change-name-buttons {
            display: flex;
            gap: 12px;
            justify-content: center;
            margin-top: 8px;
        }

        .change-name-cancel,
        .change-name-submit {
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 6px;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            min-width: 100px;
            justify-content: center;
        }

        .change-name-cancel {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            color: #64748b;
        }

        .change-name-cancel:hover {
            background: #f1f5f9;
            border-color: #cbd5e1;
        }

        .change-name-submit {
            background: var(--primary);
            border: none;
            color: white;
        }

        .change-name-submit:hover {
            background: var(--primary-dark);
            transform: translateY(-1px);
        }

        /* Responsive para change name modal */
        @media (max-width: 768px) {
            .change-name-overlay {
                padding: 16px;
            }

            .change-name-content {
                max-width: 100%;
                margin: 0;
            }

            .change-name-header {
                padding: 24px 20px 20px 20px;
            }

            .change-name-form {
                padding: 24px 20px 24px 20px;
            }

            .change-name-title {
                font-size: 20px;
            }

            .change-name-buttons {
                flex-direction: column;
                gap: 10px;
            }

            .change-name-cancel,
            .change-name-submit {
                width: 100%;
            }
        }

        /* Estilos para la sección de login */
        .login-section {
            min-height: calc(100vh - 140px);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 60px 20px 40px;
            width: 100%;
            box-sizing: border-box;
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
        }

        .login-container {
            max-width: 500px;
            width: 100%;
            text-align: center;
            margin: 0 auto;
        }

        .login-hero {
            margin-bottom: 40px;
            padding: 0 20px;
        }

        .login-icon {
            font-size: 4rem;
            color: var(--primary);
            margin-bottom: 20px;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }

        .login-title {
            font-size: clamp(2rem, 4vw, 2.5rem);
            font-weight: 700;
            font-family: 'Neocat', 'Playfair Display', Georgia, serif;
            background: linear-gradient(135deg, var(--primary), #ff6b6b);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 16px;
            line-height: 1.2;
        }

        .login-subtitle {
            font-size: 1.1rem;
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 0;
        }

        .login-form-container {
            margin-bottom: 40px;
        }

        .login-form-card {
            background: white;
            border-radius: 16px;
            padding: 40px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .login-form-header {
            margin-bottom: 30px;
        }

        .login-form-header i {
            font-size: 2.5rem;
            color: var(--primary);
            margin-bottom: 16px;
            display: block;
        }

        .login-form-header h2 {
            font-size: 1.4rem;
            font-weight: 600;
            color: var(--text-primary);
            margin: 0;
        }

        .input-group {
            margin-bottom: 24px;
            text-align: left;
        }

        .input-group label {
            display: block;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 8px;
            font-size: 0.9rem;
        }

        .input-group input {
            width: 100%;
            padding: 14px 16px;
            border: 2px solid #e2e8f0;
            border-radius: 10px;
            font-size: 1rem;
            transition: all 0.3s ease;
            background: #f8fafc;
            box-sizing: border-box;
        }

        .input-group input:focus {
            outline: none;
            border-color: var(--primary);
            background: white;
            box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
        }

        .login-submit-btn {
            width: 100%;
            padding: 16px 24px;
            background: linear-gradient(135deg, var(--primary), #c62828);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-bottom: 30px;
        }

        .login-submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(229, 57, 53, 0.3);
        }

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

        .login-benefits {
            text-align: left;
            background: #f8fafc;
            border-radius: 12px;
            padding: 24px;
            border: 1px solid #e2e8f0;
        }

        .login-benefits h3 {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 16px;
            text-align: center;
        }

        .login-benefits ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .login-benefits li {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 0;
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .login-benefits li i {
            color: var(--primary);
            font-size: 1rem;
            width: 16px;
        }

        .login-footer {
            text-align: center;
        }

        .back-to-welcome-btn {
            background: none;
            border: 2px solid var(--primary);
            color: var(--primary);
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .back-to-welcome-btn:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(229, 57, 53, 0.2);
        }

        /* Responsive para la sección de login */
        @media (max-width: 768px) {
            .login-section {
                padding: 40px 15px 30px;
            }

            .login-form-card {
                padding: 30px 20px;
            }

            .login-hero {
                margin-bottom: 30px;
                padding: 0 10px;
            }
        }

        @media (max-width: 480px) {
            .login-section {
                padding: 30px 10px 20px;
            }

            .login-form-card {
                padding: 25px 15px;
            }

            .login-hero {
                margin-bottom: 25px;
            }
        }

        .song-card {
            background: var(--card-bg);
            border-radius: 8px;
            overflow: hidden;
            transition: all 0.3s;
            cursor: pointer;
            position: relative;
            padding: 16px;
            border: 1px solid #e0e0e0;
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
        }

        .song-card:hover {
            background: var(--hover-bg);
            transform: translateY(-4px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.1);
        }

        .song-card:hover .play-btn {
            opacity: 1;
            transform: translateY(0);
        }

        .song-cover {
            width: 100%;
            aspect-ratio: 1/1;
            position: relative;
            background: #f0f0f0;
            border-radius: 4px;
            overflow: hidden;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            margin-bottom: 16px;
        }

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

        .play-btn {
            position: absolute;
            bottom: 8px;
            right: 8px;
            background: var(--primary);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transform: translateY(8px);
            transition: all 0.3s;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        .play-btn i {
            color: white;
            font-size: 16px;
            margin-left: 2px;
        }

        .song-info {
            min-height: 62px;
        }

        .song-title {
            font-weight: 700;
            margin-bottom: 8px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 16px;
            color: var(--accent);
        }

        .song-artist {
            color: var(--text-secondary);
            font-size: 14px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .favorite-icon {
            position: absolute;
            top: 20px;
            right: 20px;
            color: #ccc;
            font-size: 20px;
            transition: all 0.3s;
            z-index: 2;
        }

        .favorite-icon.active {
            color: var(--primary);
        }

        /* Category Indicators */
        .category-indicator {
            position: absolute;
            top: 16px;
            left: 16px;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            z-index: 3;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
        }

        .song-card:hover .category-indicator {
            transform: scale(1.1);
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
        }

        /* Category Colors */
        .category-precatecumenado {
            background: #ffffff;
            border: 2px solid #e0e0e0;
        }

        .category-catecumenado {
            background: #2196F3;
            border: 2px solid #1976D2;
        }

        .category-eleccion {
            background: #4CAF50;
            border: 2px solid #388E3C;
        }

        .category-liturgia {
            background: #FFC107;
            border: 2px solid #F57F17;
        }

        /* Tooltip for category indicator */
        .category-indicator::after {
            content: attr(data-category);
            position: absolute;
            bottom: -30px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 11px;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s;
            text-transform: capitalize;
            z-index: 10;
        }

        .category-indicator:hover::after {
            opacity: 1;
        }

        /* FLOATING BUBBLE PLAYER DESIGN */
        .player {
            position: fixed;
            bottom: 24px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(25px);
            -webkit-backdrop-filter: blur(25px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 28px;
            padding: 6px 20px;
            z-index: 1000;
            box-shadow: 
                0 20px 60px rgba(0, 0, 0, 0.15),
                0 8px 32px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
            width: calc(100% - 48px);
            max-width: 1200px;
            height: auto;
            min-height: 45px;
            display: flex;
            /* Remove transitions and animations to prevent movement */
            transition: none !important;
            animation: none !important;
        }

        .player:hover {
            transform: translateX(-50%);
            box-shadow: 
                0 28px 80px rgba(0, 0, 0, 0.2),
                0 16px 48px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
            border-color: rgba(255, 255, 255, 0.6);
        }

        .player::before {
            content: '';
            position: absolute;
            top: -1px;
            left: -1px;
            right: -1px;
            bottom: -1px;
            background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.3) 0%, 
                rgba(240, 240, 240, 0.2) 50%, 
                rgba(255, 255, 255, 0.3) 100%);
            border-radius: 28px;
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: -1;
        }

        .player:hover::before {
            opacity: 1;
        }

        .player::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            right: 2px;
            bottom: 2px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 26px;
            pointer-events: none;
        }

        .player-horizontal {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            gap: 20px;
            position: relative;
            z-index: 1;
            padding: 0;
            height: 100%;
            min-height: 32px;
        }

        /* LEFT SECTION - TRACK INFO */
        .player-left {
            display: flex;
            align-items: center;
            gap: 16px;
            min-width: 0;
            flex: 1;
            max-width: 280px;
        }

        .track-artwork {
            position: relative;
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8));
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 
                0 4px 12px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.3);
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        .track-artwork:hover {
            transform: scale(1.05);
            box-shadow: 
                0 6px 20px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
            border-color: rgba(255, 255, 255, 0.5);
        }

        .artwork-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #94a3b8;
            font-size: 20px;
        }

        .track-artwork img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .track-info {
            flex: 1;
            min-width: 0;
            margin-left: 2px;
        }

        .track-title {
            font-size: 15px;
            font-weight: 600;
            color: rgba(30, 41, 59, 0.9);
            margin-bottom: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.3;
            text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
        }

        .track-artist {
            font-size: 13px;
            color: rgba(100, 116, 139, 0.8);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.2;
            text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
        }

        .track-like {
            background: rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: rgba(148, 163, 184, 0.8);
            font-size: 18px;
            cursor: pointer;
            padding: 8px;
            border-radius: 12px;
            transition: all 0.3s ease;
            flex-shrink: 0;
            margin-left: 8px;
            backdrop-filter: blur(10px);
        }

        .track-like:hover {
            background: rgba(255, 255, 255, 0.3);
            color: rgba(100, 116, 139, 1);
            transform: scale(1.1);
            border-color: rgba(255, 255, 255, 0.5);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .track-like.active {
            color: rgba(100, 116, 139, 1);
            background: rgba(255, 255, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.6);
        }

        /* CENTER SECTION - CONTROLS & PROGRESS */
        .player-center {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            flex: 2;
            max-width: 420px;
            padding: 12px 20px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            margin: 0 16px;
            border-radius: 18px;
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(15px);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }

        .player-controls {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .progress-section {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
        }

        .time-display {
            font-size: 10px;
            font-weight: 600;
            color: rgba(100, 116, 139, 0.9);
            min-width: 32px;
            text-align: center;
            font-variant-numeric: tabular-nums;
            text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
        }

        .progress-track {
            flex: 1;
            height: 5px;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 6px;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            box-shadow: 
                inset 0 1px 3px rgba(0, 0, 0, 0.2),
                0 1px 0 rgba(255, 255, 255, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, 
                rgba(100, 116, 139, 0.8) 0%,
                rgba(100, 116, 139, 1) 100%
            );
            border-radius: 5px;
            width: 0%;
            position: relative;
            transition: width 0.1s ease;
            box-shadow: 0 1px 3px rgba(100, 116, 139, 0.3);
        }

        .progress-thumb {
            position: absolute;
            right: -7px;
            top: 50%;
            transform: translateY(-50%);
            width: 14px;
            height: 14px;
            background: white;
            border: 2px solid #64748b;
            border-radius: 50%;
            opacity: 0;
            transition: all 0.3s ease;
            box-shadow: 
                0 3px 10px rgba(0, 0, 0, 0.2),
                0 1px 3px rgba(100, 116, 139, 0.4);
        }

        .progress-track:hover .progress-thumb {
            opacity: 1;
            transform: translateY(-50%) scale(1.1);
        }

        /* RIGHT SECTION - VOLUME & ACTIONS */
        .player-right {
            display: flex;
            align-items: center;
            gap: 16px;
            flex: 1;
            justify-content: flex-end;
            max-width: 280px;
        }

        .volume-control {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .volume-slider {
            width: 90px;
            height: 5px;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 6px;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            box-shadow: 
                inset 0 1px 3px rgba(0, 0, 0, 0.2),
                0 1px 0 rgba(255, 255, 255, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
        }

        .volume-slider:hover {
            height: 8px;
            background: rgba(255, 255, 255, 0.6);
        }

        .volume-fill {
            height: 100%;
            background: linear-gradient(90deg, 
                rgba(100, 116, 139, 0.8) 0%,
                rgba(100, 116, 139, 1) 100%
            );
            border-radius: 6px;
            width: 70%;
            position: relative;
            transition: width 0.2s ease;
        }

        .volume-thumb {
            position: absolute;
            right: -6px;
            top: 50%;
            transform: translateY(-50%);
            width: 12px;
            height: 12px;
            background: white;
            border: 2px solid #64748b;
            border-radius: 50%;
            opacity: 0;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .volume-slider:hover .volume-thumb {
            opacity: 1;
            transform: translateY(-50%) scale(1.2);
        }

        /* VERSION CONTROL STYLES */
        .version-control {
            position: relative;
            display: flex;
            align-items: center;
        }

        .version-dropdown {
            position: absolute;
            bottom: 60px;
            right: 0;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(24px);
            border: 1px solid rgba(229, 57, 53, 0.1);
            border-radius: 16px;
            min-width: 240px;
            max-width: 320px;
            overflow: visible;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transform: translateY(12px) scale(0.92);
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 
                0 12px 48px rgba(0, 0, 0, 0.18),
                0 4px 16px rgba(229, 57, 53, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.15);
        }

        .version-dropdown.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        .version-dropdown::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent 0%, rgba(229, 57, 53, 0.3) 50%, transparent 100%);
        }

        .version-dropdown-header {
            padding: 16px 18px 8px;
            border-bottom: 1px solid rgba(229, 57, 53, 0.08);
            background: linear-gradient(135deg, rgba(229, 57, 53, 0.02) 0%, rgba(229, 57, 53, 0.01) 100%);
        }

        .version-dropdown-title {
            font-size: 13px;
            font-weight: 600;
            color: #E53935;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin: 0;
        }

        .version-dropdown.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        .version-list {
            padding: 12px 0;
        }

        .version-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 18px;
            cursor: pointer;
            color: #4a5568;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            border-left: 4px solid transparent;
            margin: 2px 0;
            position: relative;
            overflow: hidden;
        }

        .version-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(229, 57, 53, 0.05) 0%, rgba(229, 57, 53, 0.02) 100%);
            opacity: 0;
            transition: opacity 0.25s ease;
        }

        .version-item:hover::before {
            opacity: 1;
        }

        .version-item:hover {
            background: rgba(229, 57, 53, 0.08);
            color: #E53935;
            border-left-color: #E53935;
            transform: translateX(2px);
            box-shadow: 0 2px 8px rgba(229, 57, 53, 0.15);
        }

        .version-item.active {
            background: linear-gradient(135deg, rgba(229, 57, 53, 0.12) 0%, rgba(229, 57, 53, 0.08) 100%);
            color: #E53935;
            border-left-color: #E53935;
            font-weight: 600;
            transform: translateX(2px);
            box-shadow: 0 2px 12px rgba(229, 57, 53, 0.2);
        }

        .version-item.active::before {
            opacity: 1;
        }

        .version-item-content {
            display: flex;
            align-items: center;
            flex: 1;
            min-width: 0;
        }

        .version-item-info {
            display: flex;
            flex-direction: column;
            flex: 1;
            min-width: 0;
        }

        .version-item-name {
            font-weight: inherit;
            margin-bottom: 2px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .version-item-details {
            font-size: 12px;
            color: #718096;
            opacity: 0.8;
            font-weight: 400;
        }

        .version-item.active .version-item-details {
            color: #C53030;
            opacity: 0.9;
        }

        .version-item i {
            margin-right: 12px;
            font-size: 14px;
            opacity: 0.7;
            transition: all 0.25s ease;
            width: 16px;
            text-align: center;
            flex-shrink: 0;
        }

        .version-item.active i {
            opacity: 1;
            color: #E53935;
            animation: pulse 2s infinite;
        }

        /* Estilos para ondas sonoras en version-items */
        .version-item .sound-waves {
            margin-right: 12px;
            width: 16px;
            height: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1px;
            flex-shrink: 0;
        }

        .version-item .sound-wave {
            width: 2px;
            background: linear-gradient(to top, var(--primary) 0%, #d32f2f 100%);
            border-radius: 1px;
            animation: soundWave 1.2s ease-in-out infinite;
            box-shadow: 0 0 2px rgba(229, 57, 53, 0.3);
        }

        .version-item .sound-wave:nth-child(1) {
            height: 4px;
            animation-delay: 0s;
        }

        .version-item .sound-wave:nth-child(2) {
            height: 8px;
            animation-delay: 0.1s;
        }

        .version-item .sound-wave:nth-child(3) {
            height: 12px;
            animation-delay: 0.2s;
        }

        .version-item .sound-wave:nth-child(4) {
            height: 8px;
            animation-delay: 0.3s;
        }

        .version-item .sound-wave:nth-child(5) {
            height: 6px;
            animation-delay: 0.4s;
        }

        .version-item-badge {
            background: rgba(229, 57, 53, 0.1);
            color: #E53935;
            font-size: 10px;
            font-weight: 600;
            padding: 2px 6px;
            border-radius: 10px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-left: 8px;
            opacity: 0;
            transform: scale(0.8);
            transition: all 0.25s ease;
        }

        .version-item.active .version-item-badge {
            opacity: 1;
            transform: scale(1);
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        /* Version list loading state */
        .version-list.loading {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            color: #718096;
            font-size: 14px;
        }

        .version-list.loading::before {
            content: '';
            width: 16px;
            height: 16px;
            border: 2px solid #e2e8f0;
            border-top: 2px solid #E53935;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-right: 8px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* CONTROL BUTTONS - FLOATING BUBBLE STYLE */
        .control-btn {
            background: rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: rgba(100, 116, 139, 0.8);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            position: relative;
            outline: none;
            backdrop-filter: blur(10px);
            box-shadow: 
                0 2px 8px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
        }

        .control-btn:hover {
            color: rgba(100, 116, 139, 1);
            background: rgba(255, 255, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.5);
            transform: translateY(-2px) scale(1.05);
            box-shadow: 
                0 4px 15px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
        }

        .control-btn:active {
            transform: translateY(0) scale(0.98);
            box-shadow: 
                0 2px 8px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }

        .control-btn.active {
            background: rgba(255, 255, 255, 0.3);
            color: rgba(100, 116, 139, 1);
            border-color: rgba(255, 255, 255, 0.6);
        }

        .control-btn.active:hover {
            background: rgba(255, 255, 255, 0.4);
            border-color: rgba(255, 255, 255, 0.7);
        }

        .control-btn:focus {
            outline: none;
            box-shadow: 
                0 0 0 3px rgba(255, 255, 255, 0.3),
                0 2px 8px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
        }

        .control-btn.small {
            width: 32px;
            height: 32px;
            font-size: 14px;
            position: relative;
        }

        .control-btn.small.active {
            background: rgba(229, 57, 53, 0.85);
            color: white;
            border-color: rgba(229, 57, 53, 0.5);
            box-shadow: 0 4px 16px rgba(229, 57, 53, 0.35);
            transform: scale(1.05);
        }

        .control-btn.small.active:hover {
            background: rgba(229, 57, 53, 0.95);
            box-shadow: 0 6px 20px rgba(229, 57, 53, 0.45);
            transform: translateY(-1px) scale(1.08);
        }

        .control-btn.small .fas.fa-redo {
            transition: all 0.3s ease;
            font-weight: 600;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        }

        .control-btn.small.active .fas.fa-redo {
            color: white;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
            transform: scale(1.1);
        }

        /* Estado desactivado para el botón de repetir cuando ya se usó */
        .control-btn.small.active.repeat-used {
            animation: none !important;
            transform: none !important;
        }

        .control-btn.small.active.repeat-used .fas.fa-sync-alt {
            animation: none !important;
            transform: none !important;
        }

        .control-btn.small.active.repeat-used:hover {
            animation: none !important;
            transform: none !important;
        }

        /* Estabilización específica para el botón siguiente */
        #nextBtn {
            transition: all 0.2s ease !important;
            position: relative;
            z-index: 15;
        }

        #nextBtn:hover {
            transform: translateY(-1px) scale(1.02) !important;
        }

        #nextBtn:active {
            transform: translateY(0) scale(0.98) !important;
        }

        /* Prevenir interferencia entre botones */
        .control-btn.small {
            pointer-events: auto !important;
            z-index: 10;
            position: relative;
        }

        .control-btn i {
            position: relative;
            z-index: 1;
            pointer-events: none;
        }

        /* Clases para feedback visual de botones */
        .control-btn.disabled-feedback {
            transform: scale(0.9) !important;
            opacity: 0.6 !important;
        }

        .control-btn.success-feedback {
            background: #28a745 !important;
            color: white !important;
        }

        .control-btn.repeat-feedback {
            background: var(--accent) !important;
            color: white !important;
        }

        .control-btn.new-queue-feedback {
            background: var(--primary, #007bff) !important;
            color: white !important;
        }

        .control-btn.primary {
            width: 44px;
            height: 44px;
            font-size: 18px;
            background: linear-gradient(135deg, 
                rgba(229, 57, 53, 0.9) 0%, 
                rgba(255, 71, 87, 0.9) 100%);
            backdrop-filter: blur(15px);
            color: white;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.4);
            box-shadow: 
                0 6px 20px rgba(229, 57, 53, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
        }

        .control-btn.primary:hover {
            background: linear-gradient(135deg, 
                rgba(198, 40, 40, 0.95) 0%, 
                rgba(229, 57, 53, 0.95) 100%);
            transform: translateY(-3px) scale(1.08);
            box-shadow: 
                0 8px 25px rgba(229, 57, 53, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
            border-color: rgba(255, 255, 255, 0.6);
        }

        .control-btn.primary:active {
            transform: translateY(-1px) scale(1.02);
            box-shadow: 
                0 4px 15px rgba(229, 57, 53, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
        }

        .control-btn.active:hover {
            background: rgba(229, 57, 53, 0.15);
        }

        /* Botón de volumen con estados especiales */
        .volume-icon {
            position: relative;
        }

        .volume-icon.muted {
            color: #94a3b8;
        }

        .volume-icon.muted:hover {
            color: #64748b;
            background: rgba(148, 163, 184, 0.1);
        }

        /* Estilos específicos para ondas sonoras en botón de volumen */
        .volume-icon .sound-waves {
            transition: all 0.3s ease;
        }

        .volume-icon:hover .sound-waves {
            transform: scale(1.1);
        }

        /* Estados de silenciado */
        .volume-icon .sound-waves[style*="opacity: 0.3"] {
            filter: grayscale(100%) !important;
            opacity: 0.3 !important;
        }

        .volume-icon .sound-waves[style*="opacity: 1"] {
            filter: none !important;
            opacity: 1 !important;
        }

        /* RESPONSIVE DESIGN FOR FLOATING BUBBLE PLAYER */
        @media (max-width: 768px) {
            .player {
                padding: 8px 20px;
                width: calc(100% - 32px);
                max-width: 800px;
                border-radius: 24px;
                bottom: 20px;
            }

            .player-horizontal {
                gap: 12px;
            }

            .player-left {
                max-width: 140px;
                gap: 10px;
            }

            .track-artwork {
                width: 42px;
                height: 42px;
                border-radius: 12px;
            }

            .artwork-placeholder {
                font-size: 16px;
            }

            .track-title {
                font-size: 13px;
            }

            .track-artist {
                font-size: 11px;
            }

            .track-like {
                font-size: 14px;
                padding: 6px;
            }

            .player-center {
                flex: 1.5;
                gap: 6px;
                padding: 8px 16px;
                margin: 0 12px;
                border-radius: 16px;
            }

            .player-controls {
                gap: 6px;
            }

            .control-btn.small {
                width: 30px;
                height: 30px;
                font-size: 12px;
            }

            .control-btn.primary {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }

            .progress-section {
                gap: 8px;
            }

            .time-display {
                font-size: 9px;
                min-width: 28px;
            }

            .progress-track {
                height: 4px;
            }

            .progress-thumb {
                width: 12px;
                height: 12px;
                right: -6px;
            }

            .player-right {
                max-width: 120px;
                gap: 10px;
            }

            .volume-slider {
                width: 70px;
                height: 4px;
            }
        }

        @media (max-width: 480px) {
            .player {
                padding: 6px 16px;
                width: calc(100% - 24px);
                max-width: 600px;
                border-radius: 20px;
                bottom: 16px;
            }

            .player-horizontal {
                gap: 8px;
            }

            .player-left {
                max-width: 100px;
                gap: 8px;
            }

            .track-artwork {
                width: 38px;
                height: 38px;
                border-radius: 10px;
            }

            .track-title {
                font-size: 12px;
            }

            .track-artist {
                font-size: 10px;
            }

            .player-center {
                padding: 6px 12px;
                margin: 0 8px;
                border-radius: 14px;
                gap: 4px;
            }

            .control-btn.small {
                width: 28px;
                height: 28px;
                font-size: 11px;
            }

            .control-btn.primary {
                width: 36px;
                height: 36px;
                font-size: 14px;
            }

            .progress-section {
                gap: 6px;
            }

            .time-display {
                font-size: 8px;
                min-width: 26px;
            }

            .player-right {
                max-width: 80px;
                gap: 8px;
            }

            .volume-slider {
                width: 50px;
            }
            
            /* Version control responsive */
            .version-control {
                display: none !important; /* Ocultar en móviles para ahorrar espacio */
            }
        }

        @media (max-width: 768px) {
            .version-dropdown {
                bottom: 65px;
                right: -10px;
                min-width: 180px;
            }
            
            .version-item {
                padding: 10px 14px;
                font-size: 13px;
            }
        }

        /* FLOATING BUBBLE ENHANCEMENTS */
        .player.show {
            display: flex;
            animation: playerAppear 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        @keyframes playerAppear {
            0% {
                transform: translateX(-50%) translateY(100px) scale(0.8);
                opacity: 0;
            }
            100% {
                transform: translateX(-50%) translateY(0px) scale(1);
                opacity: 1;
            }
        }

        .player.hide {
            animation: playerDisappear 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
        }

        @keyframes playerDisappear {
            0% {
                transform: translateX(-50%) translateY(0px) scale(1);
                opacity: 1;
            }
            100% {
                transform: translateX(-50%) translateY(100px) scale(0.8);
                opacity: 0;
            }
        }

        /* Optimización de rendimiento para la animación de flotación */
        .player {
            will-change: transform;
            backface-visibility: hidden;
            perspective: 1000px;
        }

        /* Efectos adicionales para botones de volumen */
        .volume-icon {
            background: rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: rgba(100, 116, 139, 0.8);
            padding: 8px;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .volume-icon:hover {
            background: rgba(255, 255, 255, 0.3);
            color: rgba(100, 116, 139, 1);
            border-color: rgba(255, 255, 255, 0.5);
            transform: scale(1.05);
        }

        .volume-fill {
            height: 100%;
            background: linear-gradient(90deg, 
                rgba(100, 116, 139, 0.8) 0%,
                rgba(100, 116, 139, 1) 100%);
            border-radius: 5px;
            width: 70%;
            position: relative;
            transition: width 0.1s ease;
            box-shadow: 0 1px 3px rgba(100, 116, 139, 0.3);
        }

        .volume-slider:hover {
            transform: scaleY(1.2);
        }

        /* HIDE SOME ELEMENTS ON VERY SMALL SCREENS */
        @media (max-width: 360px) {
            .track-like {
                display: none;
            }

            .player-left {
                max-width: 110px;
            }

            .player-right {
                max-width: 80px;
            }
            
            /* Mantener solo el botón de volumen en pantallas muy pequeñas */
            #subtitlesBtn {
                display: none;
            }
            
            /* Asegurar que el botón de cola siempre sea visible */
            #queueToggleBtn {
                display: block !important;
            }
            
            .volume-slider {
                width: 40px;
            }
        }

        .player-karaoke {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 8px;
            min-height: 40px;
        }

        /* Nueva animación de relleno de palabras */
        .word-highlight {
            position: relative;
            display: inline-block;
            margin: 0 2px;
            padding: 0 2px;
            transition: all 0.1s ease;
        }
        
        .word-highlight.active {
            background: linear-gradient(90deg, var(--primary) var(--progress, 0%), transparent var(--progress, 0%));
            background-size: 100% 100%;
            background-repeat: no-repeat;
            background-position: left center;
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .loading-song {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            display: none;
        }
        
        .loading-song.active {
            display: flex;
        }
        
        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 4px solid rgba(229, 57, 53, 0.3);
            border-top: 4px solid var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .player-controls-row {
            display: flex;
            width: 100%;
            justify-content: space-between;
            align-items: center;
        }

        .now-playing {
            width: 30%;
            display: flex;
            align-items: center;
            gap: 12px;
            background: rgba(255, 255, 255, 0.4);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-radius: 16px;
            padding: 6px 10px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .now-playing:hover {
            background: rgba(255, 255, 255, 0.6);
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        }

        .now-playing-cover {
            width: 48px;
            height: 48px;
            background: #f0f0f0;
            border-radius: 4px;
            overflow: hidden;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            position: relative;
        }

        .now-playing-cover.no-song {
            background: white;
        }

        .now-playing-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .now-playing-info {
            display: flex;
            flex-direction: column;
        }

        .now-playing-title {
            font-weight: 600;
            font-size: 14px;
            color: var(--accent);
        }

        .now-playing-artist {
            font-size: 12px;
            color: var(--text-secondary);
        }

        .like-btn {
            margin-left: 16px;
            color: #ccc;
            cursor: pointer;
            transition: color 0.2s;
        }

        .like-btn:hover, .like-btn.active {
            color: var(--primary);
        }

        .player-buttons button.feedback-success {
            background: #e53935 !important;
            color: white !important;
            box-shadow: 0 0 15px rgba(229, 57, 53, 0.5);
        }

        .player-buttons button.feedback-accent {
            background: #e53935 !important;
            color: white !important;
            box-shadow: 0 0 15px rgba(229, 57, 53, 0.5);
        }

        .player-buttons button.feedback-primary {
            background: #e53935 !important;
            color: white !important;
            box-shadow: 0 0 15px rgba(229, 57, 53, 0.5);
        }

        .player-buttons button:hover {
            color: var(--primary);
        }

        .player-buttons button.active {
            color: var(--primary);
            background: rgba(var(--primary-rgb), 0.1);
            transform: scale(1.05);
        }

        .player-buttons button.active:hover {
            background: rgba(var(--primary-rgb), 0.2);
        }

        /* Enhanced Button States for Glassmorphism */
        .player-buttons button.active {
            background: rgba(229, 57, 53, 0.8);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(229, 57, 53, 0.4);
            color: white;
            box-shadow: 0 6px 20px rgba(229, 57, 53, 0.3);
            transform: scale(1.05);
        }

        .player-buttons button.active:hover {
            background: rgba(229, 57, 53, 1);
            box-shadow: 0 8px 25px rgba(229, 57, 53, 0.4);
            transform: translateY(-2px) scale(1.08);
        }

        /* Volume Controls Glassmorphism */
        .volume-container {
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border-radius: 16px;
            padding: 8px 12px;
            border: 1px solid rgba(255, 255, 255, 0.25);
        }
        .player-buttons button .repeat-indicator {
            position: absolute;
            top: -1px;
            right: -1px;
            font-size: 4px;
            font-weight: 800;
            color: white;
            background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
            border: 0.5px solid rgba(255, 255, 255, 0.9);
            border-radius: 50%;
            width: 7px;
            height: 7px;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            box-shadow: 
                0 1px 2px rgba(229, 57, 53, 0.4),
                inset 0 0.5px 0 rgba(255, 255, 255, 0.3);
            z-index: 6;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
            animation: pulse-glow 2s ease-in-out infinite;
            text-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.3);
            letter-spacing: -0.05px;
        }

        /* Harmony with button hover state */
        .player-buttons button:hover .repeat-indicator {
            box-shadow: 
                0 1px 3px rgba(229, 57, 53, 0.6),
                inset 0 0.5px 0 rgba(255, 255, 255, 0.5);
            transform: scale(1.15);
        }

        /* Ensure indicator has perfect harmony with button styling */
        .player-buttons button.active .repeat-indicator {
            background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
            color: #e53935;
            border-color: rgba(229, 57, 53, 0.6);
            box-shadow: 
                0 1px 2px rgba(229, 57, 53, 0.3),
                inset 0 0.5px 0 rgba(255, 255, 255, 0.8);
            text-shadow: none;
            animation: none;
        }

        /* Synchronize indicator fade with button deactivation */
        .player-buttons button.active.fading .repeat-indicator {
            animation: fadeOut 0.8s ease-out forwards;
        }

        .player-buttons button.active.fading {
            background: rgba(255, 255, 255, 0.3) !important;
            color: rgba(100, 116, 139, 0.8) !important;
            border-color: rgba(255, 255, 255, 0.3) !important;
            box-shadow: 
                0 2px 8px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
            transform: scale(1) !important;
            transition: all 0.8s ease-out;
        }

        @keyframes pulse-glow {
            0%, 100% {
                transform: scale(1);
                box-shadow: 
                    0 2px 6px rgba(229, 57, 53, 0.6),
                    0 0 0 1px rgba(229, 57, 53, 0.2),
                    inset 0 0.5px 0 rgba(255, 255, 255, 0.4);
            }
            50% {
                transform: scale(1.04);
                box-shadow: 
                    0 3px 8px rgba(229, 57, 53, 0.8),
                    0 0 0 1px rgba(229, 57, 53, 0.3),
                    inset 0 0.5px 0 rgba(255, 255, 255, 0.5);
            }
        }

        @keyframes fadeOut {
            0% {
                opacity: 1;
                transform: scale(1);
                background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
                border-color: rgba(255, 255, 255, 0.95);
            }
            30% {
                opacity: 0.8;
                transform: scale(1.1);
                background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
                border-color: rgba(255, 255, 255, 0.7);
            }
            70% {
                opacity: 0.3;
                transform: scale(0.9);
                background: linear-gradient(135deg, rgba(229, 57, 53, 0.5) 0%, rgba(198, 40, 40, 0.3) 100%);
                border-color: rgba(255, 255, 255, 0.3);
            }
            100% {
                opacity: 0;
                transform: scale(0.6);
                background: transparent;
                border-color: transparent;
            }
        }

        .player-buttons .play-pause {
            background: var(--accent);
            color: white;
            font-size: 14px;
            width: 32px;
            height: 32px;
        }

        .player-buttons .play-pause:hover {
            transform: scale(1.06);
            background: var(--primary);
            color: white;
        }

        .progress-container {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, 0.25);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border-radius: 12px;
            padding: 6px 10px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .progress-time {
            color: var(--text-secondary);
            font-size: 11px;
            min-width: 35px;
            text-align: center;
        }

        .progress-bar {
            flex: 1;
            height: 6px;
            background: rgba(255, 255, 255, 0.3);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            border-radius: 8px;
            cursor: pointer;
            position: relative;
            border: 1px solid rgba(255, 255, 255, 0.2);
            overflow: hidden;
        }

        .progress {
            height: 100%;
            background: linear-gradient(90deg, 
                rgba(229, 57, 53, 0.8), 
                rgba(229, 57, 53, 1)
            );
            border-radius: 8px;
            width: 0%;
            transition: width 0.1s ease;
            box-shadow: 0 0 8px rgba(229, 57, 53, 0.3);
        }

        .progress::after {
            content: '';
            position: absolute;
            right: -6px;
            top: 50%;
            transform: translateY(-50%);
            width: 14px;
            height: 14px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            border: 2px solid rgba(229, 57, 53, 0.8);
            border-radius: 50%;
            opacity: 0;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }

        .progress-bar:hover .progress::after {
            opacity: 1;
            transform: translateY(-50%) scale(1.1);
        }

        .extra-controls {
            width: 30%;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 12px;
            background: rgba(255, 255, 255, 0.25);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-radius: 16px;
            padding: 6px 10px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        }

        .volume-container {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 125px;
        }

        .volume-container i {
            color: var(--text-secondary);
            font-size: 16px;
        }

        .volume-bar {
            flex: 1;
            height: 6px;
            background: rgba(255, 255, 255, 0.3);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            border-radius: 6px;
            cursor: pointer;
            position: relative;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .volume-level {
            height: 100%;
            background: var(--accent);
            border-radius: 2px;
            width: 70%;
        }

        .subtitles-btn {
            background: transparent;
            border: none;
            color: var(--text);
            font-size: 16px;
            cursor: pointer;
            transition: all 0.2s;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }

        .subtitles-btn:hover {
            color: var(--primary);
        }
        
        .queue-btn {
            background: transparent;
            border: none;
            color: var(--text);
            font-size: 16px;
            cursor: pointer;
            transition: all 0.2s;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }
        
        .queue-btn:hover {
            color: var(--primary);
        }

        /* ================================= */
        /* UNIFIED GLASSMORPHISM PLAYER CSS */
        /* ================================= */

        /* CONTROLS SECTION */
        .controls-section {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 24px;
        }

        .main-controls {
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, 0.35);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border-radius: 20px;
            padding: 8px 12px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: 
                0 4px 20px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
        }

        .secondary-controls {
            display: flex;
            align-items: center;
            gap: 12px;
            background: rgba(255, 255, 255, 0.25);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-radius: 18px;
            padding: 6px 10px;
            border: 1px solid rgba(255, 255, 255, 0.25);
            box-shadow: 
                0 3px 15px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
        }

        /* CONTROL BUTTONS */
        .control-btn {
            background: rgba(255, 255, 255, 0.3);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            color: #475569;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
            position: relative;
            overflow: hidden;
        }

        .control-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, 
                transparent, 
                rgba(255, 255, 255, 0.4), 
                transparent
            );
            transition: left 0.5s ease;
            z-index: -1;
            pointer-events: none;
        }

        .control-btn:hover::before {
            left: 100%;
        }

        .control-btn:hover {
            background: rgba(255, 255, 255, 0.5);
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
            border-color: rgba(255, 255, 255, 0.4);
        }

        .control-btn:active {
            transform: translateY(0) scale(0.95);
        }

        .control-btn.secondary {
            width: 40px;
            height: 40px;
            font-size: 16px;
        }

        .control-btn.primary {
            width: 52px;
            height: 52px;
            font-size: 20px;
            background: linear-gradient(135deg, 
                rgba(229, 57, 53, 0.9) 0%,
                rgba(229, 57, 53, 1) 100%
            );
            color: white;
            border-color: rgba(229, 57, 53, 0.3);
            box-shadow: 
                0 4px 20px rgba(229, 57, 53, 0.3),
                0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .control-btn.primary:hover {
            background: linear-gradient(135deg, 
                rgba(229, 57, 53, 1) 0%,
                rgba(198, 40, 40, 1) 100%
            );
            transform: translateY(-3px) scale(1.08);
            box-shadow: 
                0 8px 30px rgba(229, 57, 53, 0.4),
                0 4px 15px rgba(0, 0, 0, 0.15);
        }

        .control-btn.small {
            width: 32px;
            height: 32px;
            font-size: 14px;
        }

        .control-btn.active {
            background: rgba(229, 57, 53, 0.8);
            color: white;
            border-color: rgba(229, 57, 53, 0.4);
            box-shadow: 0 4px 16px rgba(229, 57, 53, 0.3);
        }

        .control-btn.active:hover {
            background: rgba(229, 57, 53, 1);
            box-shadow: 0 6px 24px rgba(229, 57, 53, 0.4);
        }

        /* VOLUME CONTROL */
        .volume-control {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .volume-icon {
            color: #64748b !important;
        }

        .volume-slider {
            width: 80px;
            height: 4px;
            background: rgba(255, 255, 255, 0.4);
            border-radius: 4px;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
        }

        .volume-fill {
            height: 100%;
            background: linear-gradient(90deg, 
                rgba(100, 116, 139, 0.8) 0%,
                rgba(100, 116, 139, 1) 100%
            );
            border-radius: 4px;
            width: 70%;
            position: relative;
            transition: width 0.2s ease;
        }

        .volume-thumb {
            position: absolute;
            right: -4px;
            top: 50%;
            transform: translateY(-50%);
            width: 8px;
            height: 8px;
            background: white;
            border: 1px solid #64748b;
            border-radius: 50%;
            opacity: 0;
            transition: all 0.3s ease;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
        }

        .volume-slider:hover .volume-thumb {
            opacity: 1;
            transform: translateY(-50%) scale(1.3);
        }

        /* RESPONSIVE DESIGN FOR NEW PLAYER */
        @media (max-width: 768px) {
            .controls-section {
                flex-direction: column;
                gap: 12px;
            }
            
            .secondary-controls {
                width: 100%;
                justify-content: center;
            }
            
            .volume-slider {
                width: 60px;
            }
        }

        /* Karaoke Fullscreen - Diseño Profesional para Salmistas */
        .karaoke-fullscreen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: white;
            z-index: 1000;
            display: none;
            flex-direction: column;
        }

        .karaoke-fullscreen.active {
            display: flex;
        }

        /* Ocultar modal de login cuando karaoke está activo - SOLUCIÓN ROBUSTA */
        body.karaoke-mode #loginModal {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            pointer-events: none !important;
            z-index: -1 !important;
        }

        /* Prevenir cualquier interacción del modal en modo karaoke */
        body.karaoke-mode .login-btn {
            pointer-events: none !important;
            opacity: 0.5 !important;
        }

        /* Asegurar que el modal funcione correctamente FUERA del karaoke */
        body:not(.karaoke-mode) #loginModal {
            z-index: 9999999 !important;
        }

        body:not(.karaoke-mode) #loginModal[style*="display: flex"] {
            display: flex !important;
            visibility: visible !important;
            opacity: 1 !important;
            pointer-events: all !important;
        }

        /* Restaurar funcionalidad de botones fuera de karaoke */
        body:not(.karaoke-mode) .login-btn {
            pointer-events: all !important;
            opacity: 1 !important;
            cursor: pointer !important;
            transition: all 0.3s ease;
        }

        /* Efectos hover mejorados para botones de login */
        body:not(.karaoke-mode) .login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
        }

        /* MOSTRAR PLAYER EN MODO KARAOKE */
        body.karaoke-mode .player {
            display: flex !important;
            visibility: visible !important;
            opacity: 1 !important;
            z-index: 1001 !important; /* Un poco más alto que el karaoke */
        }

        .karaoke-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 24px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid #e0e0e0;
        }

        .karaoke-header h2 {
            font-size: 22px;
            display: flex;
            align-items: center;
            gap: 12px;
            color: var(--accent);
        }

        .karaoke-header h2 i {
            color: var(--primary);
        }

        .karaoke-controls {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .karaoke-controls button {
            background: rgba(0, 0, 0, 0.05);
            border: none;
            color: var(--text);
            padding: 8px 16px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .karaoke-controls button:hover {
            background: rgba(0, 0, 0, 0.1);
        }

        .karaoke-controls button.active {
            background: var(--primary);
            color: white;
        }

        .transpose-controls {
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(0, 0, 0, 0.05);
            border-radius: 20px;
            padding: 4px;
        }

        .transpose-btn {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: transparent;
            border: none;
            color: var(--text);
            cursor: pointer;
            font-size: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .transpose-btn:hover {
            background: rgba(0, 0, 0, 0.1);
        }

        .transpose-value {
            font-size: 14px;
            font-weight: 600;
            min-width: 30px;
            text-align: center;
        }

        .close-karaoke {
            background: none;
            border: none;
            color: var(--text);
            font-size: 24px;
            cursor: pointer;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }

        .close-karaoke:hover {
            background: rgba(0, 0, 0, 0.1);
        }

        .transport-btn {
            background: rgba(0, 0, 0, 0.05);
            border: none;
            color: var(--text);
            padding: 8px 16px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .transport-btn:hover {
            background: rgba(0, 0, 0, 0.1);
        }

        .karaoke-content {
            display: flex;
            flex: 1;
            padding: 20px;
        }

        .karaoke-cover {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px;
        }

        .karaoke-cover img {
            max-height: 70vh;
            max-width: 100%;
            object-fit: contain;
            border-radius: 8px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }

        .karaoke-lyrics {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 40px;
            overflow: hidden;
            position: relative;
            background: transparent; /* Fondo transparente */
        }

        .karaoke-song-info {
            text-align: center;
            margin-bottom: 40px;
        }

        .karaoke-title {
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--accent);
        }

        .karaoke-artist {
            font-size: 18px;
            color: var(--text-secondary);
        }

        .karaoke-lyrics-container {
            width: 80%;
            text-align: center;
            position: relative;
            height: 300px;
            overflow: hidden;
            background: rgba(255, 255, 255, 0.95); /* Fondo más opaco para mejor contraste */
            border-radius: 20px;
            padding: 30px;
            backdrop-filter: blur(15px);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        /* Mejorar el estilo de las líneas de karaoke */
        .karaoke-line {
            margin-bottom: 15px;
            line-height: 2.5em;
            text-align: center;
            font-size: 1.1em;
            transition: all 0.3s ease;
            padding: 8px 20px;
            border-radius: 12px;
            background: transparent;
        }
        
        .karaoke-line.current-line {
            background: rgba(229, 57, 53, 0.05); /* Fondo rojo muy sutil */
            padding: 12px 24px;
            border-radius: 16px;
            transform: scale(1.02);
            font-weight: 600;
            border: 2px solid rgba(229, 57, 53, 0.1);
            box-shadow: 0 4px 20px rgba(229, 57, 53, 0.1);
        }
        
        .karaoke-line.past-line {
            opacity: 0.5;
            transform: scale(0.95);
            background: rgba(0, 0, 0, 0.02);
        }
        
        .karaoke-line.future-line {
            opacity: 0.7;
            transform: scale(0.9);
            background: rgba(0, 0, 0, 0.01);
        }

        /* Mejoras visuales para karaoke */
        .karaoke-chord {
            position: absolute;
            color: #e53935 !important;
            font-weight: bold;
            top: -1.2em;
            font-size: 0.8em;
            background: none !important;
            border: none !important;
            padding: 0 !important;
            white-space: nowrap;
        }

        /* Estilos para acordes posicionados arriba del texto */
        .lyric-with-chords {
            display: flex;
            flex-direction: column;
            margin-bottom: 12px;
            position: relative;
        }

        .chords-line {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            min-height: 24px;
            margin-bottom: 6px;
            gap: 12px;
            padding-left: 2px;
        }

        .chord-position {
            color: #e53935; /* Rojo para acordes */
            font-weight: bold;
            font-size: 0.85em;
            padding: 2px 6px;
            background: rgba(229, 57, 53, 0.1); /* Fondo rojo muy sutil */
            border-radius: 6px;
            white-space: nowrap;
            min-width: 32px;
            text-align: center;
            border: 1px solid rgba(229, 57, 53, 0.3);
            box-shadow: 0 1px 3px rgba(229, 57, 53, 0.2);
        }

        .chord-spacer {
            min-width: 32px;
            height: 20px;
        }

        .text-line {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
            line-height: 1.6;
        }

        /* Mejorar el estilo de las palabras en karaoke */
        .karaoke-line .word {
            padding: 3px 6px;
            border-radius: 4px;
            transition: all 0.3s ease;
            position: relative;
        }

        .karaoke-line .word.singing {
            /* Removemos el fondo amarillo y usamos solo el efecto de progreso de gradiente */
            background: transparent;
            color: inherit; /* Heredar color del texto normal */
            transform: scale(1.02); /* Efecto sutil de escala */
            box-shadow: none; /* Sin sombra amarilla */
            position: relative;
            /* El gradiente de progreso se maneja en la clase .word.singing más abajo */
        }
        
        .karaoke-chord-line {
            margin-bottom: 20px;
            min-height: 30px;
            text-align: center;
            position: relative;
        }
        
        .karaoke-text-line {
            min-height: 50px;
            line-height: 1.6;
            text-align: center;
            font-size: 1.5em;
            position: relative;
        }
        
        /* Nuevas clases para visualización de 3 líneas */
        .karaoke-line-container {
            position: absolute;
            width: 100%;
            transition: all 0.5s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .karaoke-line-container.prev {
            top: -80px;
            opacity: 0.4;
            transform: scale(0.9);
            color: #888;
        }
        
        .karaoke-line-container.current {
            top: 50%;
            transform: translateY(-50%);
            opacity: 1;
            z-index: 10;
            color: #000;
            font-size: 1.8em;
        }
        
        .karaoke-line-container.next {
            top: calc(100% + 30px);
            opacity: 0.4;
            transform: scale(0.9);
            color: #888;
        }

        /* Mejoras visuales para karaoke */
        .karaoke-chord {
            position: absolute;
            color: #e53935 !important;
            font-weight: bold;
            top: -1.2em;
            font-size: 0.8em;
            background: none !important;
            border: none !important;
            padding: 0 !important;
        }
        
        /* Estilos para nueva estructura de karaoke */
        .karaoke-section {
            margin-bottom: 30px;
        }
        
        .section-title {
            font-size: 1.3em;
            font-weight: bold;
            color: var(--primary);
            margin-bottom: 20px;
            text-align: center;
            background: rgba(255, 255, 255, 0.5);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border-radius: 25px;
            padding: 12px 24px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
            display: inline-block;
            transform: translateZ(0);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Colores específicos para cada tipo de sección */
        .karaoke-section:has(.section-title:contains("Asamblea")) .section-title {
            background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1));
            color: #2E7D32;
            border-color: rgba(76, 175, 80, 0.3);
        }

        .karaoke-section:has(.section-title:contains("Salmista")) .section-title {
            background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(33, 150, 243, 0.1));
            color: #1565C0;
            border-color: rgba(33, 150, 243, 0.3);
        }

        .karaoke-section:has(.section-title:contains("Hombres")) .section-title {
            background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), rgba(255, 152, 0, 0.1));
            color: #E65100;
            border-color: rgba(255, 152, 0, 0.3);
        }

        .karaoke-section:has(.section-title:contains("Mujeres")) .section-title {
            background: linear-gradient(135deg, rgba(233, 30, 99, 0.2), rgba(233, 30, 99, 0.1));
            color: #AD1457;
            border-color: rgba(233, 30, 99, 0.3);
        }

        .section-title:hover {
            background: rgba(255, 255, 255, 0.7);
            transform: translateY(-2px) translateZ(0);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        }
        
        .karaoke-line {
            margin-bottom: 15px;
            line-height: 2.5em;
            text-align: center;
            font-size: 1.1em;
            transition: all 0.3s ease;
            padding: 5px 15px;
            border-radius: 8px;
        }
        
        .karaoke-line.current-line {
            background-color: transparent; /* Quitamos el fondo azul */
            padding: 10px 20px;
            border-radius: 12px;
            transform: scale(1.05);
            font-weight: bold;
            box-shadow: none; /* Quitamos la sombra azul */
            border: 2px solid rgba(0, 0, 0, 0.1); /* Borde sutil para distinguir la línea actual */
        }
        
        .karaoke-line.past-line {
            opacity: 0.5; /* Reducimos opacidad para líneas pasadas */
            transform: scale(0.95);
        }
        
        .karaoke-line.future-line {
            opacity: 0.7; /* Mejoramos opacidad para líneas futuras */
            transform: scale(0.9);
        }
        
        .word-container {
            position: relative;
            display: inline-block;
            margin: 0 5px;
            vertical-align: top;
        }
        
        .chord {
            position: absolute;
            top: -1.5em;
            left: 50%;
            transform: translateX(-50%);
            color: #e53935; /* Rojo para acordes */
            font-weight: bold;
            font-size: 0.9em;
            white-space: nowrap;
        }
        
        .word {
            display: inline-block;
            font-size: 1.1em;
            color: #000000; /* Negro para las letras */
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .word.emphasis {
            font-weight: bold;
            color: #000000; /* Negro para énfasis también */
        }
        
        /* Animación de palabras durante el karaoke - SOLO TEXTO PROGRESIVO */
        .word.singing {
            color: #000000; /* Texto negro base siempre visible */
            position: relative;
            transition: all 0.1s ease-out;
            overflow: hidden;
            background: none;
            padding: 0;
            margin: 0 2px;
        }

        /* Solo texto rojo que aparece gradualmente - SIN CUADROS DE FONDO */
        .word.singing::after {
            content: attr(data-word-text);
            position: absolute;
            top: 0;
            left: 0;
            width: var(--progress, 0%);
            height: 100%;
            color: var(--primary);
            font-weight: bold;
            font-size: inherit;
            font-family: inherit;
            line-height: inherit;
            letter-spacing: inherit;
            overflow: hidden;
            white-space: nowrap;
            z-index: 1;
            pointer-events: none;
            background: none;
            margin: 0;
            padding: 0;
            vertical-align: baseline;
        }
        
        .word.sung {
            color: var(--primary); /* Rojo para palabras ya cantadas */
            font-weight: bold;
            text-shadow: 0 0 5px rgba(229, 57, 53, 0.2); /* Sombra roja muy sutil */
            background: none;
            -webkit-text-fill-color: var(--primary);
        }
        
        .word.waiting {
            opacity: 0.8;
            color: #000000; /* Negro para palabras en espera */
            background: none;
            -webkit-text-fill-color: #000000;
        }
        
        /* Efectos para las palabras con énfasis - SOLO TEXTO PROGRESIVO */        
        .word.emphasis.singing::after {
            color: #e53935; /* Rojo más intenso para énfasis */
            font-weight: bold;
        }
        
        .word.emphasis.sung {
            color: #e53935; /* Rojo para palabras con énfasis ya cantadas */
            font-weight: bold;
            text-shadow: 0 0 8px rgba(229, 57, 53, 0.4); /* Sombra roja más intensa */
            background: none;
            -webkit-text-fill-color: #e53935;
        }

        /* Estilos base mejorados - ALINEACIÓN PERFECTA */
        .word {
            display: inline-block;
            font-size: 1.1em;
            color: #000000;
            transition: all 0.3s ease;
            position: relative;
            padding: 0;
            margin: 0 2px;
            vertical-align: baseline;
            line-height: 1.4;
            overflow: hidden;
        }
        
        .no-lyrics {
            text-align: center;
            color: #666; /* Mejor contraste */
            font-style: italic;
            margin-top: 50px;
        }
        
        .karaoke-chord-line {
            margin-bottom: 20px;
            min-height: 30px;
            text-align: center;
            position: relative;
        }
        
        .karaoke-text-line {
            min-height: 50px;
            line-height: 1.6;
            text-align: center;
            font-size: 1.5em;
            position: relative;
        }
        
        /* Nuevas clases para visualización de 3 líneas */
        .karaoke-line-container {
            position: absolute;
            width: 100%;
            transition: all 0.5s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .karaoke-line-container.prev {
            top: -80px;
            opacity: 0.4;
            transform: scale(0.9);
            color: #888;
        }
        
        .karaoke-line-container.current {
            top: 50%;
            transform: translateY(-50%);
            opacity: 1;
            z-index: 10;
            color: #000;
            font-size: 1.8em;
        }
        
        .karaoke-line-container.next {
            top: calc(100% + 30px);
            opacity: 0.4;
            transform: scale(0.9);
            color: #888;
        }
        
        /* Mejoras de audio */
        .audio-controls {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-top: 20px;
        }
        
        .audio-preset {
            padding: 8px 16px;
            background: rgba(0,0,0,0.05);
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .audio-preset:hover, .audio-preset.active {
            background: var(--primary);
            color: white;
        }

        /* Transport Modal */
        .transport-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 2000;
        }
        
        .transport-modal.active {
            display: flex;
        }
        
        .transport-content {
            background: white;
            border-radius: 12px;
            padding: 30px;
            width: 90%;
            max-width: 500px;
            text-align: center;
        }
        
        .transport-content h3 {
            margin-bottom: 20px;
            color: var(--accent);
        }
        
        .guitar-diagram {
            margin: 20px 0;
            padding: 20px;
            background: #f9f9f9;
            border-radius: 8px;
            position: relative;
        }
        
        .guitar-neck {
            display: flex;
            height: 150px;
            position: relative;
            margin-bottom: 20px;
        }
        
        .guitar-string {
            flex: 1;
            border-bottom: 2px solid #333;
            position: relative;
        }
        
        .guitar-fret {
            position: absolute;
            height: 100%;
            border-right: 2px solid #ccc;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .capo-indicator {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 10px;
            background: var(--primary);
            border-radius: 5px;
            transition: left 0.3s;
        }
        
        .fret-marker {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: #f0f0f0;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.2s;
        }
        
        .fret-marker:hover {
            background: #e0e0e0;
        }
        
        .fret-marker.active {
            background: var(--primary);
            color: white;
        }
        
        .capo-controls {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            margin-top: 20px;
        }
        
        .capo-controls button {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #f0f0f0;
            border: none;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .capo-controls button:hover {
            background: #e0e0e0;
        }
        
        .capo-value {
            font-size: 20px;
            font-weight: bold;
            min-width: 30px;
        }
        
        .transport-actions {
            margin-top: 20px;
            display: flex;
            justify-content: center;
            gap: 10px;
        }
        
        .transport-actions button {
            padding: 10px 20px;
            border-radius: 30px;
            border: none;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.2s;
        }
        
        .transport-actions #applyTransport {
            background: var(--primary);
            color: white;
        }
        
        .transport-actions #applyTransport:hover {
            background: var(--primary-dark);
        }
        
        .transport-actions #cancelTransport {
            background: #f0f0f0;
        }
        
        .transport-actions #cancelTransport:hover {
            background: #e0e0e0;
        }

        /* Queue Panel */
        .queue-panel {
            position: fixed;
            top: 0;
            right: 0;
            height: 100%;
            width: 300px;
            background: white;
            z-index: 99999999 !important;
            box-shadow: -2px 0 10px rgba(0,0,0,0.1);
            transform: translateX(100%);
            transition: transform 0.3s ease;
            display: flex;
            flex-direction: column;
            pointer-events: auto !important;
        }
        
        .queue-panel.active {
            transform: translateX(0);
            pointer-events: auto !important;
        }
        
        /* Asegurar que el botón de cola siempre sea visible */
        #queueToggleBtn {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            pointer-events: auto !important;
            z-index: 100000000 !important;
        }
        
        .queue-header {
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #e0e0e0;
        }
        
        .queue-header h3 {
            font-size: 18px;
            font-weight: 600;
        }
        
        .close-queue {
            background: none;
            border: none;
            color: var(--text);
            font-size: 20px;
            cursor: pointer;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }
        
        .close-queue:hover {
            background: rgba(0,0,0,0.1);
        }
        
        .queue-content {
            flex: 1;
            overflow-y: auto;
            padding: 10px;
        }

        /* Login Modal */
        .login-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 99999 !important;
            backdrop-filter: blur(5px);
        }
        
        .login-modal.active {
            display: flex !important;
        }
        
        .login-modal-content {
            background: white;
            border-radius: 16px;
            width: 90%;
            max-width: 420px;
            padding: 40px 32px;
            text-align: center;
            box-shadow: 0 20px 60px rgba(0,0,0,0.15);
            position: relative;
            transform: scale(1);
            opacity: 1;
            visibility: visible;
            animation: modalAppear 0.3s ease forwards;
        }

        @keyframes modalAppear {
            to {
                transform: scale(1);
            }
        }
        
        .login-modal-icon {
            font-size: 56px;
            color: var(--primary);
            margin-bottom: 24px;
        }
        
        .login-modal h3 {
            font-size: 24px;
            margin-bottom: 12px;
            color: var(--text-primary);
            font-weight: 700;
        }
        
        .login-modal p {
            color: var(--text-secondary);
            margin-bottom: 32px;
            line-height: 1.6;
            font-size: 15px;
        }

        .login-modal-form {
            display: flex;
            flex-direction: column;
            gap: 16px;
            margin-bottom: 24px;
        }

        .login-modal-form input {
            padding: 14px 16px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            font-size: 16px;
            transition: all 0.3s ease;
            outline: none;
        }

        .login-modal-form input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
        }

        .login-modal-btn {
            background: linear-gradient(135deg, var(--primary), #ff6b6b);
            color: white;
            border: none;
            padding: 14px 24px;
            border-radius: 12px;
            font-weight: 600;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 4px 20px rgba(229, 57, 53, 0.3);
        }
        
        .login-modal-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 25px rgba(229, 57, 53, 0.4);
        }

        .login-modal-close {
            position: absolute;
            top: 16px;
            right: 16px;
            background: none;
            border: none;
            font-size: 18px;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .login-modal-close:hover {
            background: #f0f0f0;
            color: var(--text-primary);
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .song-grid {
                grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            }
            
            .karaoke-content {
                flex-direction: column;
            }
            
            .karaoke-cover {
                padding: 20px;
            }
            
            .karaoke-lyrics {
                padding: 20px;
            }
        }

        @media (max-width: 768px) {
            body {
                grid-template-columns: 1fr;
                grid-template-rows: 64px 1fr auto;
                grid-template-areas:
                    "header"
                    "main"
                    "player";
            }
            
            .sidebar {
                display: none;
            }
            
            .logo-mobile {
                display: block;
            }
            
            .now-playing {
                width: auto;
            }
            
            .now-playing-info {
                display: none;
            }
            
            .player-controls {
                width: auto;
                flex: 1;
            }
            
            .extra-controls {
                width: auto;
            }
            
            .karaoke-song-info {
                margin-bottom: 20px;
            }
            
            .karaoke-title {
                font-size: 24px;
            }
            
            .karaoke-artist {
                font-size: 16px;
            }
            
            .queue-panel {
                width: 100%;
            }
            
            .player-controls-row {
                flex-direction: column;
                gap: 10px;
            }
            
            .now-playing, .player-controls, .extra-controls {
                width: 100%;
                justify-content: center;
            }
        }

        .loading {
            text-align: center;
            padding: 30px;
            font-size: 18px;
            color: var(--text-secondary);
        }

        .loading i {
            font-size: 24px;
            margin-bottom: 10px;
            display: block;
            color: var(--primary);
        }
        
        /* Search results */
        .search-results {
            display: none;
            margin-top: 24px;
            padding: 32px;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: 
                0 20px 60px rgba(0, 0, 0, 0.12),
                0 8px 24px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
            animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            width: 100%;
            box-sizing: border-box;
            overflow: hidden;
        }
        
        .search-results::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(229, 57, 53, 0.3) 50%, 
                transparent 100%
            );
        }
        
        .search-results.active {
            display: block;
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px) scale(0.95);
                filter: blur(5px);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
                filter: blur(0);
            }
        }
        
        .no-results {
            text-align: center;
            padding: 40px;
            color: var(--text-secondary);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }

        .no-results i {
            opacity: 0.5;
            margin-bottom: 16px;
        }

        .no-results p {
            margin: 0;
            line-height: 1.4;
        }

        .search-counter {
            text-align: center;
            padding: 16px;
            color: var(--text-secondary) !important;
            font-size: 14px !important;
            border-top: 1px solid var(--border, #eee) !important;
            background: rgba(var(--primary-rgb, 0, 123, 255), 0.05);
            border-radius: 0 0 8px 8px;
            font-weight: 500;
        }
        
        /* Song Card Styles */
        .song-card {
            display: flex;
            align-items: center;
            padding: 20px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.12),
                0 2px 6px rgba(0, 0, 0, 0.08);
            margin-bottom: 16px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }
        
        .song-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                90deg,
                transparent,
                rgba(255, 255, 255, 0.4),
                transparent
            );
            transition: left 0.6s ease;
        }
        
        .song-card:hover::before {
            left: 100%;
        }
        
        .song-card:hover {
            transform: translateY(-2px);
            box-shadow: 
                0 12px 32px rgba(0, 0, 0, 0.12),
                0 4px 16px rgba(229, 57, 53, 0.15);
            border-color: rgba(229, 57, 53, 0.3);
        }
        
        .song-cover {
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, #E53935 0%, #C62828 50%, #B71C1C 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 28px;
            margin-right: 20px;
            flex-shrink: 0;
            position: relative;
            box-shadow: 
                0 4px 16px rgba(107, 115, 255, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
        }
        
        .song-cover::after {
            content: '';
            position: absolute;
            top: 10%;
            left: 10%;
            right: 10%;
            bottom: 10%;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .song-card:hover .song-cover {
            transform: scale(1.02);
            box-shadow: 
                0 6px 20px rgba(229, 57, 53, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }
        
        .song-card:hover .song-cover::after {
            opacity: 0.7;
        }
        
        .song-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        
        .song-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text);
            margin: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            transition: all 0.3s ease;
        }
        
        .song-card:hover .song-title {
            background: linear-gradient(135deg, var(--primary) 0%, #e91e63 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .song-artist {
            font-size: 15px;
            color: var(--text-secondary);
            margin: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .song-duration {
            font-size: 11px !important;
            color: #64748b !important;
            font-weight: 600 !important;
            background: rgba(100, 116, 139, 0.08) !important;
            padding: 2px 6px !important;
            border-radius: 8px !important;
            letter-spacing: 0.2px !important;
            transition: all 0.3s ease;
            position: relative;
            z-index: 3;
            flex-shrink: 0;
            margin-left: auto;
            align-self: center;
        }
        
        .song-card:hover .song-duration {
            background: rgba(229, 57, 53, 0.12) !important;
            color: #E53935 !important;
        }
        
        .song-category {
            font-size: 11px;
            font-weight: 700;
            color: white;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            padding: 4px 10px;
            border-radius: 16px;
            display: inline-block;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
            position: relative;
            z-index: 2;
            flex-shrink: 0;
        }
        
        /* FORCE VISIBILITY FOR ELECCION CATEGORY */
        .song-category.eleccion,
        .song-card .song-category.eleccion {
            background: #ccfcca !important;
            border: 1px solid rgba(76, 175, 80, 0.6) !important;
            color: #000000 !important;
            text-shadow: none !important;
            opacity: 1 !important;
            visibility: visible !important;
            display: inline-block !important;
            font-size: 11px !important;
            font-weight: 700 !important;
            padding: 4px 10px !important;
            border-radius: 16px !important;
            text-transform: uppercase !important;
            letter-spacing: 0.5px !important;
        }
        
        /* Additional force for search results */
        .search-results .song-category.eleccion,
        #resultsGrid .song-category.eleccion,
        div[style*="display: flex"] .song-category.eleccion {
            background-color: #ccfcca !important;
            background: #ccfcca !important;
            color: #000000 !important;
            border: 1px solid rgba(76, 175, 80, 0.6) !important;
            text-shadow: none !important;
            font-weight: 700 !important;
            font-size: 11px !important;
            padding: 4px 10px !important;
            border-radius: 16px !important;
            text-transform: uppercase !important;
            letter-spacing: 0.5px !important;
            opacity: 1 !important;
            visibility: visible !important;
            display: inline-block !important;
        }
        
        /* Additional force for general category in search results */
        .search-results .song-category.general,
        #resultsGrid .song-category.general,
        div[style*="display: flex"] .song-category.general {
            background-color: #ccfcca !important;
            background: #ccfcca !important;
            color: #166534 !important;
            border: 1px solid rgba(34, 197, 94, 0.3) !important;
            text-shadow: none !important;
            font-weight: 700 !important;
            font-size: 11px !important;
            padding: 4px 10px !important;
            border-radius: 16px !important;
            text-transform: uppercase !important;
            letter-spacing: 0.5px !important;
            opacity: 1 !important;
            visibility: visible !important;
            display: inline-block !important;
        }
        
        /* Category-specific colors matching recommendation table */
        .song-category.precatecumenado,
        .song-card .song-category.precatecumenado {
            background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.9) 0%, 
                rgba(248, 249, 250, 0.95) 100%
            ) !important;
            border: 1px solid rgba(255, 255, 255, 0.6) !important;
            color: #333333 !important;
            text-shadow: none !important;
        }
        
        .song-category.catecumenado,
        .song-card .song-category.catecumenado {
            background: #73b7f8 !important;
            border: 1px solid rgba(33, 150, 243, 0.6) !important;
            color: white !important;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
        }
        
        .song-category.liturgia,
        .song-card .song-category.liturgia {
            background: #f6f685 !important;
            border: 1px solid rgba(255, 193, 7, 0.6) !important;
            color: rgba(0, 0, 0, 0.9) !important;
            text-shadow: none !important;
            font-weight: 700 !important;
        }
        
        .song-category.general,
        .song-card .song-category.general {
            background: #ccfcca !important;
            border: 1px solid rgba(34, 197, 94, 0.3) !important;
            color: #166534 !important;
            text-shadow: none !important;
            font-weight: 700 !important;
        }
        
        .song-card:hover .song-category.precatecumenado {
            background: linear-gradient(135deg, 
                rgba(255, 255, 255, 1) 0%, 
                rgba(248, 249, 250, 1) 100%
            );
            border-color: rgba(255, 255, 255, 0.8);
            transform: scale(1.03);
            color: #222222;
        }
        
        .song-card:hover .song-category.catecumenado {
            background: #5ba3f5 !important;
            border-color: rgba(33, 150, 243, 0.8);
            transform: scale(1.03);
            color: white !important;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        }
        
        .song-card:hover .song-category.eleccion {
            background: #b8f5b6 !important;
            border-color: rgba(76, 175, 80, 0.8);
            transform: scale(1.03);
            color: #000000 !important;
            text-shadow: none;
        }
        
        .song-card:hover .song-category.liturgia {
            background: #f4f467 !important;
            border-color: rgba(255, 193, 7, 0.8);
            transform: scale(1.03);
            color: rgba(0, 0, 0, 1) !important;
            font-weight: 800;
        }
        
        .song-card:hover .song-category.general {
            background: #b5f7b2 !important;
            border-color: rgba(34, 197, 94, 0.5);
            transform: scale(1.03);
            color: #0f4a1a !important;
            font-weight: 800;
        }
        
        .play-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(135deg, #E53935 0%, #C62828 100%);
            color: white;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            flex-shrink: 0;
            position: relative;
            box-shadow: 
                0 4px 16px rgba(107, 115, 255, 0.3),
                0 2px 8px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }
        
        .play-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
            border-radius: 50%;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .play-btn:hover::before {
            opacity: 1;
        }
        
        .play-btn:hover {
            transform: scale(1.08);
            background: linear-gradient(135deg, #C62828 0%, #B71C1C 100%);
            box-shadow: 
                0 8px 32px rgba(229, 57, 53, 0.4),
                0 4px 16px rgba(0, 0, 0, 0.15);
        }
        
        .play-btn:active {
            transform: scale(0.95);
        }
        
        .play-btn i {
            font-size: 18px;
            margin-left: 2px; /* Ajuste visual para centrar el ícono de play */
            transition: transform 0.3s ease;
        }
        
        .play-btn:hover i {
            transform: scale(1.1);
        }
        
        .queue-section {
            margin-top: 40px;
        }
        
        .queue-item {
            display: flex;
            align-items: center;
            padding: 10px;
            border-bottom: 1px solid #eee;
            cursor: pointer;
            transition: background 0.2s;
        }
        
        .queue-item:hover {
            background: #f9f9f9;
        }
        
        .queue-item.current {
            background: #f0f0f0;
        }
        
        .queue-item-cover {
            width: 40px;
            height: 40px;
            border-radius: 4px;
            overflow: hidden;
            margin-right: 15px;
        }
        
        .queue-item-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .queue-item-info {
            flex: 1;
        }
        
        .queue-item-title {
            font-weight: 600;
            font-size: 14px;
        }
        
        .queue-item-artist {
            font-size: 12px;
            color: var(--text-secondary);
        }