* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
    position: relative;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 32px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.nav-item:hover, .nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item i {
    width: 20px;
}

.playlists-section h3 {
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.5);
}

.playlists-list {
    max-height: 300px;
    overflow-y: auto;
}

.playlist-item {
    padding: 10px;
    margin: 5px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.playlist-item.active {
    background: rgba(255, 255, 255, 0.2);
}

.create-btn {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
}

.create-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.top-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 25px;
}

/* Vista de Búsqueda */
.search-header h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.search-box input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-box button {
    padding: 15px 30px;
    background: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

.search-box button:hover {
    transform: scale(1.05);
}

/* Grid de resultados */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.song-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    transition: transform 0.3s;
    cursor: pointer;
}

.song-card:hover {
    transform: translateY(-5px);
}

.song-card img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    margin-bottom: 10px;
}

.song-card h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.song-card p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.song-actions {
    display: flex;
    gap: 10px;
}

.song-actions button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.play-btn {
    background: white;
    color: #667eea;
}

.add-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Lista de canciones */
.songs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.song-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.song-row:hover {
    background: rgba(0, 0, 0, 0.5);
}

.song-row img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
}

.song-row .song-info {
    flex: 1;
}

.song-row .song-info h4 {
    margin-bottom: 5px;
}

.song-row .song-info p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.song-row .remove-btn {
    background: rgba(255, 0, 0, 0.3);
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
}

/* Reproductor */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 250px;
}

.player-info img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
}

.player-details div:first-child {
    font-weight: bold;
    margin-bottom: 5px;
}

.player-details div:last-child {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.player-controls {
    display: flex;
    gap: 20px;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.control-btn:hover {
    transform: scale(1.1);
}

.control-btn.main {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: #667eea;
}

.player-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    max-width: 400px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: white;
    border-radius: 2px;
    width: 0%;
    position: relative;
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 150px;
}

.player-volume input {
    flex: 1;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 30px;
    border-radius: 20px;
    width: 400px;
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
}

.modal-content input, .modal-content textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.modal-content button {
    width: 100%;
    padding: 12px;
    background: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.view {
    display: none;
}

.view.active {
    display: block;
}