/* ========================================
   TOP BAR - CONTROLES SUPERIORES
   ======================================== */

.top-bar {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.size-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(30, 35, 55, 0.7);
    padding: 0.2rem 0.8rem;
    border-radius: var(--border-radius-btn);
    margin-right: auto;
}

.size-control label {
    font-size: 0.7rem;
    opacity: 0.8;
}

.size-slider {
    width: 120px;
    height: 4px;
    -webkit-appearance: none;
    background: #3d405b;
    border-radius: 2px;
    outline: none;
}

.size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(30, 35, 55, 0.7);
    padding: 0.2rem 0.8rem;
    border-radius: var(--border-radius-btn);
    cursor: pointer;
}

.toggle-switch input {
    width: 40px;
    height: 20px;
    appearance: none;
    background: #3d405b;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: all var(--transition-slow);
}

.toggle-switch input:checked {
    background: var(--accent);
}

.toggle-switch input::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: all var(--transition-slow);
}

.toggle-switch input:checked::before {
    left: 22px;
}

.toggle-switch label {
    font-size: 0.7rem;
    cursor: pointer;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(30, 35, 55, 0.7);
    padding: 0.2rem 1rem;
    border-radius: var(--border-radius-btn);
}

.volume-slider {
    width: 200px;
    height: 4px;
    -webkit-appearance: none;
    background: #3d405b;
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

.volume-percent {
    font-size: 0.7rem;
    min-width: 45px;
    color: var(--text-secondary);
}

.icon-btn {
    background: rgba(30, 35, 55, 0.9);
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.icon-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

/* Sección de favoritos */
.favorites-section {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 1.2rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.05);
    min-height: 240px;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--accent);
}

/* Botón toggle de panel */
.toggle-btn {
    display: flex;
    justify-content: center;
    margin: 0.3rem 0;
}

.arrow-down {
    background: var(--bg-card);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all var(--transition-normal);
    border: 1px solid #3d405b;
}

.arrow-down:hover {
    background: var(--accent-hover);
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: var(--accent);
}