/* ========================================
   UDYATMUSIC - Estilo Spotify Mejorado
   ======================================== */

/* Variables - Spotify Design System */
:root {
    /* Colores principales de Spotify */
    --spotify-green: #1db954;
    --spotify-green-light: #1ed760;
    --spotify-green-dark: #169c46;
    
    /* Fondos */
    --background-base: #121212;
    --background-highlight: #1f1f1f;
    --background-elevated-base: #181818;
    --background-elevated-highlight: #282828;
    --background-press: #000;
    
    /* Texto */
    --text-base: #fff;
    --text-subdued: #b3b3b3;
    --text-bright-accent: #1db954;
    
    /* Sidebar */
    --sidebar-bg: #000000;
    --sidebar-text: #b3b3b3;
    --sidebar-active: #ffffff;
    --sidebar-hover: #ffffff;
    
    /* Main */
    --main-bg: #121212;
    --main-bg-light: #181818;
    --main-bg-lighter: #282828;
    --main-bg-lightest: #3e3e3e;
    
    /* Acento */
    --accent: #1db954;
    --accent-hover: #1ed760;
    --accent-text: #000000;
    
    /* Texto */
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-tertiary: #6a6a6a;
    
    /* Player */
    --player-bg: #181818;
    --player-border: #282828;
    
    /* Cards */
    --card-bg: #181818;
    --card-bg-hover: #282828;
    
    /* Scrollbar */
    --scrollbar-bg: #181818;
    --scrollbar-thumb: #5a5a5a;
    
    /* Tipografía */
    --font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Espaciado */
    --encore-spacing-base: 16px;
    --encore-spacing-tighter: 12px;
    --encore-spacing-tighter-2: 8px;
    --encore-spacing-tighter-3: 4px;
    --encore-spacing-tighter-4: 2px;
    --encore-spacing-looser-2: 32px;
    
    /* Bordes */
    --encore-corner-radius-base: 4px;
    --encore-corner-radius-larger: 8px;
    
    /* Dimensiones */
    --sidebar-width: 240px;
    --player-height: 72px;
    --topbar-height: 64px;
    
    /* Transiciones */
    --transition-fast: 0.1s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    /*box-sizing: border-box;*/
}

/* Base */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--main-bg);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

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

::-webkit-scrollbar-track {
    background: var(--scrollbar-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7a7a7a;
}

/* App Container */
.app-container {
    display: flex;
    height: calc(100vh - 72px);
    padding-bottom: 72px;
}

/* ========================================
   SIDEBAR - Estilo Spotify Mejorado
   ======================================== */
.sidebar {
    width: 240px;
    min-width: 240px;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 0 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.collapse-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: none;
}

.collapse-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.collapse-btn svg {
    width: 18px;
    height: 18px;
    color: #b3b3b3;
}

.sidebar.collapsed .collapse-btn svg {
    transform: rotate(180deg);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-icon svg {
    width: 28px;
    height: 28px;
    color: #1db954;
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    color: #b3b3b3;
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.nav-item:hover {
    color: #fff;
}

.nav-item.active {
    color: #fff;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.sidebar-divider {
    height: 1px;
    background-color: #282828;
    margin: 16px 0;
}

.sidebar-playlists {
    flex: 1;
    overflow-y: auto;
}

.sidebar-playlists h3 {
    font-size: 0.6875rem;
    text-transform: uppercase;
    color: #b3b3b3;
    padding: 8px 16px;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.playlist-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

/* Sidebar Library - Nueva estructura estilo Spotify */
.sidebar-library {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.library-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 8px 8px 0;
}

.library-header .nav-item {
    flex: 1;
    padding: 8px 12px;
}

.library-actions {
    display: flex;
    gap: 4px;
    padding-right: 8px;
}

.library-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b3b3b3;
    transition: all 0.2s ease;
}

.library-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.library-btn svg {
    width: 16px;
    height: 16px;
}

/* Filtros de biblioteca */
.library-filters {
    display: flex;
    gap: 8px;
    padding: 8px 8px 12px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.library-filters::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    padding: 6px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #b3b3b3;
    font-size: 0.75rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.filter-chip.active {
    background: #fff;
    color: #000;
}

/* Lista de biblioteca */
.library-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.playlist-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: linear-gradient(135deg, #3d3d3d 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.playlist-icon svg {
    width: 16px;
    height: 16px;
    color: #b3b3b3;
}

.playlist-icon.liked {
    background: linear-gradient(135deg, #450af5 0%, #c4efd9 100%);
}

.playlist-icon.liked svg {
    color: #fff;
}

.create-playlist .playlist-icon {
    background: rgba(255, 255, 255, 0.1);
}

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

.playlist-item {
    padding: 8px 16px;
    color: #b3b3b3;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 12px;
}

.playlist-item:hover {
    color: #fff;
}

.playlist-item img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
}

/* Create playlist button in new format */
.create-playlist {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #b3b3b3 !important;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    border-radius: 4px;
    margin-right: 8px;
}

.create-playlist:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}

/* liked-songs in library */
.liked-songs {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #b3b3b3;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    border-radius: 4px;
    margin-right: 8px;
}

.liked-songs:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ========================================
   MAIN CONTENT + QUEUE PANEL
   ======================================== */
.main-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.main-content {
    flex: 1;
    background: linear-gradient(180deg, #202020 0%, #121212 40%);
    overflow-y: auto;
    min-width: 0;
}

/* Queue Panel */
.queue-panel {
    width: 0;
    min-width: 0;
    background-color: #181818;
    overflow: hidden;
    transition: width 0.3s ease, min-width 0.3s ease;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #282828;
}

.queue-panel.open {
    width: 380px;
    min-width: 380px;
}

.queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #282828;
}

.queue-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.queue-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b3b3b3;
    transition: all 0.2s ease;
}

.queue-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.queue-close-btn svg {
    width: 20px;
    height: 20px;
}

.queue-section {
    padding: 16px 20px;
    flex: 1;
    overflow-y: auto;
}

.queue-section h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #b3b3b3;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 16px;
}

.queue-now {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 16px;
}

.queue-now .queue-cover {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.queue-now .queue-info {
    flex: 1;
    min-width: 0;
}

.queue-now .queue-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-now .queue-artist {
    font-size: 0.75rem;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

.queue-item .queue-cover {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: #282828;
}

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

.queue-item .queue-info {
    flex: 1;
    min-width: 0;
}

.queue-item .queue-title {
    font-size: 0.875rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-item .queue-artist {
    font-size: 0.75rem;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-item .queue-duration {
    font-size: 0.75rem;
    color: #b3b3b3;
}

.top-bar {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    gap: 16px;
}

/* Botones de navegación circulares */
.top-bar-nav {
    display: flex;
    gap: 8px;
}

.nav-circle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.nav-circle-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.nav-circle-btn svg {
    width: 16px;
    height: 16px;
    color: #fff;
}

/* Botón de Inicio estilo Spotify */
.home-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 500px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
}

.home-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.home-button svg {
    width: 20px;
    height: 20px;
}

.search-bar {
    position: relative;
    flex: 1;
    max-width: 320px;
    margin: 0 auto;
}

.search-bar svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.search-bar input {
    width: 100%;
    padding: 6px 12px 6px 36px;
    border-radius: 500px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 0.8125rem;
    outline: none;
    transition: all 0.2s ease;
}

.search-bar input:focus {
    background-color: rgba(255, 255, 255, 0.2);
    max-width: 400px;
}

.search-bar input::placeholder {
    color: var(--text-secondary);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--main-bg-light);
    border-radius: 8px;
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.search-results.active {
    display: block;
}

.user-menu {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--accent-text);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

/* User Info Dropdown */
.user-info-dropdown {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: #1b263b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

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

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.user-dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-dropdown-info {
    display: flex;
    flex-direction: column;
}

.user-dropdown-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
}

.user-dropdown-email {
    color: #888;
    font-size: 0.75rem;
}

.user-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #ddd;
    text-decoration: none;
    transition: background 0.2s ease;
}

.user-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-dropdown-item svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.user-dropdown-item.logout {
    color: #ff6b6b;
}

.user-dropdown-item.logout svg {
    opacity: 1;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 8px;
}

.btn-login, .btn-register {
    padding: 8px 16px;
    border-radius: 500px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-login {
    color: #fff;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-register {
    background: #00d4ff;
    color: #000;
}

.btn-register:hover {
    background: #00b8e6;
}

.user-avatar:hover {
    transform: scale(1.1);
}

.content-area {
    padding: 16px 32px 32px;
    flex: 1;
}

/* ========================================
   PAGE STYLES
   ======================================== */
.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Hero Section */
.hero-section {
    padding: 32px 0;
    margin-bottom: 32px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 8px;
    background: linear-gradient(90deg, var(--accent), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* Content Sections */
.content-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.see-all {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.see-all:hover {
    color: var(--text-primary);
}

/* Cards Grid - Estilo Spotify Mejorado */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.card {
    background-color: #181818;
    padding: 16px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    position: relative;
}

.card:hover {
    background-color: #282828;
}

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

.card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-image.round {
    border-radius: 50%;
}

.card-image.round img {
    border-radius: 50%;
}

/* Play Button - Estilo Spotify */
.play-button {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #1db954;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.2s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.play-button:hover {
    transform: scale(1.06) translateY(0);
    background-color: #1ed760;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.play-button:active {
    transform: scale(0.98) translateY(0);
}

.play-button svg {
    width: 24px;
    height: 24px;
    color: #000;
    margin-left: 2px;
}

.card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.card-subtitle {
    font-size: 0.8125rem;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.card-subtitle:hover {
    color: #fff;
    text-decoration: underline;
}

/* Songs List */
.songs-list {
    display: flex;
    flex-direction: column;
}

.song-row {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.song-row:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.song-row:hover .song-number span {
    display: none;
}

.song-row:hover .song-number .play-icon {
    display: flex;
}

.song-row:hover .song-number img {
    display: none;
}

.song-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    position: relative;
    flex-shrink: 0;
}

.song-number span {
    color: var(--text-secondary);
}

.song-number img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    position: absolute;
    top: 0;
    left: 0;
}

.song-number .play-icon {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.song-number .play-icon svg {
    width: 16px;
    height: 16px;
}

.song-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.song-title {
    font-size: 0.9375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist,
.song-plays {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-album {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 16px;
}

.song-duration {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-left: 16px;
}

.song-options {
    opacity: 0;
    margin-left: 8px;
    transition: var(--transition-fast);
}

.song-row:hover .song-options {
    opacity: 1;
}

.song-options button {
    padding: 8px;
    border-radius: 4px;
}

.song-options button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.song-options svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   SEARCH PAGE
   ======================================== */
.search-page {
    padding-bottom: 40px;
}

.browse-section {
    margin-bottom: 40px;
}

.browse-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.browse-card {
    aspect-ratio: 1.5;
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

.browse-card:hover {
    transform: scale(1.05);
}

.browse-card span {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.genre-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.genre-card {
    aspect-ratio: 3;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

.genre-card:hover {
    transform: scale(1.03);
}

.results-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
}

.tab-btn {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 500px;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.no-results {
    color: var(--text-secondary);
    padding: 24px;
    text-align: center;
}

/* ========================================
   LIBRARY PAGE
   ======================================== */
.library-page {
    padding-bottom: 40px;
}

.library-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.empty-state {
    text-align: center;
    padding: 48px;
    background-color: var(--card-bg);
    border-radius: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--accent);
    color: var(--accent-text);
    font-weight: 600;
    border-radius: 500px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: scale(1.05);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 32px;
    background-color: transparent;
    color: var(--text-primary);
    font-weight: 600;
    border: 1px solid var(--text-secondary);
    border-radius: 500px;
    margin-left: 16px;
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
}

/* ========================================
   ARTIST PAGE
   ======================================== */
.artist-page {
    padding-bottom: 40px;
}

.artist-header {
    padding: 60px 32px 40px;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.3) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    gap: 24px;
}

.artist-image {
    width: 232px;
    height: 232px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.artist-info h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.artist-info p {
    font-size: 1rem;
    color: #b3b3b3;
}

/* Genre Page */
.genre-page {
    padding-bottom: 40px;
}

.genre-header {
    padding: 60px 32px 40px;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.3) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    gap: 24px;
}

.genre-icon {
    width: 232px;
    height: 232px;
    border-radius: 12px;
    background: linear-gradient(135deg, #00d4ff, #006680);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.genre-icon svg {
    width: 100px;
    height: 100px;
    color: #000;
}

.genre-header h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.artist-header {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    padding: 32px 0;
    margin-bottom: 32px;
}

.artist-cover {
    width: 232px;
    height: 232px;
    flex-shrink: 0;
}

.artist-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 60px rgba(0, 0, 0, 0.5);
}

.artist-info {
    flex: 1;
}

.artist-type {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
}

.artist-name {
    font-size: 4rem;
    font-weight: 900;
    margin: 8px 0;
    line-height: 1;
}

.artist-stats {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.artist-genre {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.artist-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.btn-play {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background-color: var(--accent);
    color: var(--accent-text);
    font-weight: 600;
    border-radius: 500px;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
}

.btn-play:hover {
    background-color: var(--accent-hover);
    transform: scale(1.05);
}

.btn-play svg {
    width: 20px;
    height: 20px;
}

.btn-follow {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--text-secondary);
    border-radius: 500px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.btn-follow:hover {
    border-color: var(--text-primary);
}

.btn-follow.following {
    border-color: var(--text-primary);
}

.btn-follow svg {
    width: 16px;
    height: 16px;
}

.artist-songs {
    margin-bottom: 40px;
}

.artist-songs h2,
.artist-albums h2,
.artist-about h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.popular-songs-list {
    display: flex;
    flex-direction: column;
}

.artist-about {
    max-width: 600px;
}

.artist-about p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   ALBUM PAGE
   ======================================== */
.album-page {
    padding-bottom: 40px;
}

.album-header {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    padding: 32px 0;
    margin-bottom: 32px;
}

.album-cover {
    width: 232px;
    height: 232px;
    flex-shrink: 0;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 60px rgba(0, 0, 0, 0.5);
}

.album-info {
    flex: 1;
}

.album-type {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
}

.album-title {
    font-size: 3rem;
    font-weight: 900;
    margin: 8px 0;
    line-height: 1.1;
}

.album-artist a {
    font-size: 1rem;
    font-weight: 500;
}

.album-artist a:hover {
    text-decoration: underline;
}

.album-meta {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 8px 0 24px;
}

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

.btn-save {
    padding: 8px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.btn-save:hover {
    color: var(--text-primary);
}

.btn-save.saved {
    color: var(--accent);
}

.btn-save svg {
    width: 32px;
    height: 32px;
}

.btn-more {
    padding: 8px;
    color: var(--text-secondary);
}

.btn-more:hover {
    color: var(--text-primary);
}

.songs-list-header {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
}

.col-num {
    width: 48px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.col-title {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.col-album {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.col-duration {
    width: 48px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    justify-content: center;
}

/* ========================================
   PLAYLIST PAGE
   ======================================== */
.playlist-page {
    padding-bottom: 40px;
}

.playlist-header {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    padding: 32px 0;
    margin-bottom: 32px;
}

.playlist-cover {
    width: 232px;
    height: 232px;
    flex-shrink: 0;
}

.playlist-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 60px rgba(0, 0, 0, 0.5);
}

.playlist-info {
    flex: 1;
}

.playlist-type {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
}

.playlist-title {
    font-size: 3rem;
    font-weight: 900;
    margin: 8px 0;
    line-height: 1.1;
}

.playlist-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.playlist-meta {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

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

.btn-edit {
    padding: 8px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.btn-edit:hover {
    color: var(--text-primary);
}

.btn-edit svg {
    width: 24px;
    height: 24px;
}

.empty-playlist {
    text-align: center;
    padding: 48px;
    color: var(--text-secondary);
}

.empty-playlist .subtitle {
    font-size: 0.875rem;
    margin-top: 8px;
}

/* ========================================
   CREATE PLAYLIST PAGE
   ======================================== */
.create-playlist-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 32px;
}

.create-playlist-form {
    background-color: var(--card-bg);
    padding: 32px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--main-bg-lighter);
    border: none;
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: 2px solid var(--accent);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.privacy-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background-color: var(--main-bg-lighter);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.radio-option:hover {
    background-color: var(--main-bg-lightest);
}

.radio-option input {
    margin-top: 4px;
}

.radio-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.radio-label strong {
    font-size: 0.9375rem;
}

.radio-label small {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.form-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 32px;
}

/* ========================================
   PLAYER BAR - Estilo Spotify Mejorado
   ======================================== */
.player-bar {
    height: 72px;
    background-color: #181818;
    border-top: 1px solid #282828;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

/* Track Info - Sección Izquierda */
.player-track-info {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 30%;
    min-width: 180px;
    padding-left: 8px;
}

.track-cover {
    width: 56px;
    height: 56px;
    background-color: #282828;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.2s ease;
}

.track-cover:hover {
    transform: scale(1.02);
}

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

.track-cover .cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #333 0%, #222 100%);
}

.track-cover .cover-placeholder svg {
    width: 24px;
    height: 24px;
    color: #555;
}

.track-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.track-title {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    transition: color 0.2s ease;
}

.track-title:hover {
    text-decoration: underline;
    cursor: pointer;
}

.track-artist {
    font-size: 0.75rem;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.track-artist:hover {
    color: #fff;
    cursor: pointer;
    text-decoration: underline;
}

.like-btn {
    padding: 8px;
    color: #b3b3b3;
    transition: all 0.15s ease;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.like-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

.like-btn.liked {
    color: #1db954;
}

.like-btn.liked svg {
    fill: #1db954;
}

.like-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.15s ease;
}

.like-btn:active svg {
    transform: scale(1.3);
}

/* Player Controls - Sección Central */
.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 40%;
    max-width: 722px;
    flex: 1;
    max-width: 722px;
}

.player-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.player-buttons-left,
.player-buttons-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

.player-buttons-right {
    justify-content: flex-start;
}

.control-btn {
    padding: 8px;
    color: #b3b3b3;
    transition: all 0.15s ease;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

.control-btn:hover {
    color: #fff;
    transform: scale(1.05);
}

.control-btn.active {
    color: #1db954;
}

.control-btn.active:hover {
    color: #1ed760;
}

.control-btn.play {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background-color: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease, background-color 0.1s ease;
    border: none;
    cursor: pointer;
    margin: 0 8px;
}

.control-btn.play:hover {
    transform: scale(1.06);
    background-color: #fff;
}

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

.control-btn.play svg {
    width: 16px;
    height: 16px;
}

.control-btn svg {
    width: 16px;
    height: 16px;
}

/* Progress Bar - Estilo Spotify */
.progress-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.time-current,
.time-total {
    font-size: 0.6875rem;
    color: #b3b3b3;
    min-width: 40px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background-color: #4d4d4d;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: height 0.1s ease;
    overflow: visible;
}

.progress-bar:hover {
    height: 6px;
}

.progress-bar:hover .progress-fill {
    background-color: #1db954;
}

.progress-bar:hover .progress-handle {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.progress-bar:active .progress-fill {
    background-color: #1ed760;
}

.progress-fill {
    height: 100%;
    background-color: #fff;
    border-radius: 2px;
    width: 0%;
    transition: width 0.05s linear, background-color 0.2s ease;
    position: relative;
}

.progress-handle {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(50%, -50%) scale(0);
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: transform 0.1s ease, opacity 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* Tooltip de tiempo en hover */
.progress-tooltip {
    position: absolute;
    top: -24px;
    background-color: #282828;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
    transform: translateX(-50%);
}

.progress-bar:hover .progress-tooltip {
    opacity: 1;
}

/* Volume - Sección Derecha */
.player-volume {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 30%;
    justify-content: flex-end;
    padding-right: 8px;
}

.player-volume button {
    padding: 8px;
    color: #b3b3b3;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.player-volume button:hover {
    color: #fff;
}

.player-volume button svg {
    width: 16px;
    height: 16px;
}

.volume-bar {
    width: 93px;
    height: 4px;
    background-color: #4d4d4d;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: height 0.1s ease;
}

.volume-bar:hover {
    height: 6px;
}

.volume-bar:hover .volume-fill {
    background-color: #1db954;
}

.volume-fill {
    height: 100%;
    background-color: #fff;
    border-radius: 2px;
    width: 70%;
    transition: background-color 0.2s ease;
    position: relative;
}

.volume-handle {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(50%, -50%) scale(0);
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: transform 0.1s ease, opacity 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.volume-bar:hover .volume-handle {
    opacity: 1;
    transform: translate(50%, -50%) scale(1);
}

/* Botones extra en player */
.player-extra-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 8px;
}

.player-extra-btn {
    padding: 8px;
    color: #b3b3b3;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
    position: relative;
}

.player-extra-btn:hover {
    color: #fff;
}

.player-extra-btn.active {
    color: #1db954;
}

.player-extra-btn.active:hover {
    color: #1ed760;
}

.player-extra-btn svg {
    width: 16px;
    height: 16px;
}

/* Indicador de estado activo (punto verde) */
.player-extra-btn.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: #1db954;
    border-radius: 50%;
}

/* Animación de pulso para canción reproduciéndose */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.track-title.playing {
    animation: pulse 2s ease-in-out infinite;
}

/* Sidebar collapsed state (toggle) */
.sidebar.collapsed {
    width: 72px;
    min-width: 72px;
    padding: 24px 8px;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .sidebar-nav span,
.sidebar.collapsed .sidebar-playlists h3,
.sidebar.collapsed .playlist-item,
.sidebar.collapsed .create-playlist span {
    display: none;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 12px;
}

.sidebar.collapsed .create-playlist {
    justify-content: center;
}

.sidebar.collapsed .sidebar-logo .logo-link {
    justify-content: center;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .sidebar {
        width: 72px;
        min-width: 72px;
        padding: 24px 8px;
    }
    
    .sidebar-logo .logo-text,
    .sidebar-nav span,
    .sidebar-playlists h3,
    .sidebar-playlists .playlist-item,
    .create-playlist span {
        display: none;
    }
    
    .nav-item {
        justify-content: center;
        padding: 12px;
    }
    
    .create-playlist {
        justify-content: center;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .artist-name {
        font-size: 2.5rem;
    }
    
    .album-title,
    .playlist-title {
        font-size: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 0;
        --player-height: 64px;
    }
    
    .sidebar {
        display: none;
    }
    
    .top-bar {
        padding: 0 12px;
        gap: 8px;
    }
    
    .top-bar-nav {
        display: none;
    }
    
    .home-button {
        padding: 6px 12px;
    }
    
    .home-button span {
        display: none;
    }
    
    .search-bar {
        max-width: 100%;
        flex: 1;
        margin: 0 4px;
    }
    
    .search-bar input {
        font-size: 12px;
        padding: 6px 8px 6px 32px;
    }
    
    .search-bar svg {
        width: 14px;
        height: 14px;
    }
    
    .main-content {
        margin-bottom: var(--player-height);
    }
    
    .content-area {
        padding: 16px;
    }
    
    /* Player Bar */
    .player-bar {
        padding: 0 8px;
    }
    
    .player-track-info {
        width: 50%;
        gap: 8px;
    }
    
    .track-cover {
        width: 40px;
        height: 40px;
    }
    
    .track-title {
        font-size: 0.75rem;
    }
    
    .track-artist {
        font-size: 0.625rem;
    }
    
    .like-btn {
        display: none;
    }
    
    .player-controls {
        width: 50%;
    }
    
    .player-buttons {
        gap: 8px;
    }
    
    .control-btn {
        padding: 4px;
    }
    
    .control-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .control-btn.play {
        width: 28px;
        height: 28px;
    }
    
    .control-btn.play svg {
        width: 14px;
        height: 14px;
    }
    
    .progress-container {
        gap: 4px;
    }
    
    .time-current,
    .time-total {
        font-size: 0.5rem;
        min-width: 28px;
    }
    
    .progress-bar {
        height: 3px;
    }
    
    .progress-handle {
        display: none;
    }
    
    .player-volume {
        display: none;
    }
    
    /* Grid */
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .card {
        padding: 8px;
    }
    
    .card-image {
        aspect-ratio: 1;
    }
    
    .card-title {
        font-size: 0.75rem;
    }
    
    .card-subtitle {
        font-size: 0.625rem;
    }
    
    /* Headers */
    .artist-header,
    .album-header,
    .playlist-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .artist-cover,
    .album-cover,
    .playlist-cover {
        width: 150px;
        height: 150px;
    }
    
    .artist-name,
    .album-title,
    .playlist-title {
        font-size: 1.25rem;
    }
    
    .artist-stats,
    .album-stats,
    .playlist-stats {
        font-size: 0.75rem;
    }
    
    /* Songs List */
    .songs-list-header .col-album,
    .songs-list-header .col-duration {
        display: none;
    }
    
    .song-row {
        padding: 8px;
    }
    
    .song-number {
        width: 24px;
    }
    
    .song-number img {
        display: none;
    }
    
    .song-album,
    .song-duration {
        display: none;
    }
    
    .song-title {
        font-size: 0.75rem;
    }
    
    .song-artist {
        font-size: 0.625rem;
    }
    
    /* Profile */
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
    
    .profile-info h1 {
        font-size: 1.5rem;
    }
    
    .playlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* Login/Register */
    .login-container,
    .register-container {
        padding: 16px;
    }
    
    .login-box,
    .register-box {
        padding: 24px 16px;
    }
    
    .logo-img {
        width: 120px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 16px;
        font-size: 0.875rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .player-buttons {
        gap: 4px;
    }
    
    .track-details {
        display: none;
    }
    
    .player-track-info {
        width: auto;
    }
    
    .artist-cover,
    .album-cover,
    .playlist-cover {
        width: 120px;
        height: 120px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.song-row,
.content-section {
    animation: fadeIn 0.3s ease;
}

.hero-content {
    animation: slideUp 0.5s ease;
}


/* ==================== BIBLIOTECA - ARTISTAS Y ÁLBUMES ==================== */

.library-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 4px;
    color: inherit;
    text-decoration: none;
    transition: background-color 0.2s;
    gap: 12px;
}

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

.library-item-cover {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #333;
}

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

.library-item-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.library-item-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.library-item-type {
    font-size: 11px;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Filter chips */
.library-filters {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    flex-wrap: wrap;
}

.library-filters .filter-chip {
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 20px;
    color: #b3b3b3;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.library-filters .filter-chip:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.library-filters .filter-chip.active {
    background-color: white;
    color: black;
}

/* Botón guardado */
.btn-save.saved {
    color: #1db954;
}

.btn-save.saved svg {
    fill: #1db954;
}

/* Botón siguiendo */
.btn-follow.following {
    background-color: transparent;
    border: 1px solid #b3b3b3;
}

.btn-follow.following svg {
    fill: #b3b3b3;
}

