/* css/style-media-selector.css */
/* Estilos mejorados para el reproductor de medios de Respiracción */

/* ===================================================
    Variables CSS para colores de la web
====================================================== */
:root {
    --color-principal: #022859;
    --color-secundario: #4A90E2;
    --color-accent: #7B68EE;
    --color-verde: #2ECC71;
    --color-naranja: #F39C12;
    --color-rojo: #E74C3C;
    --color-gris-claro: #F8F9FA;
    --color-gris-medio: #6C757D;
    --color-gris-oscuro: #343A40;
    --color-blanco: #FFFFFF;
    --color-sombra: rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --border-radius-grande: 20px;
    --transicion: all 0.3s ease;
}

/* ===================================================
    Contenedor Principal
====================================================== */
.respiraccion-media-container {
    background: linear-gradient(135deg, var(--color-blanco) 0%, var(--color-gris-claro) 100%);
    padding: 2rem;
    border-radius: var(--border-radius-grande);
    border: 2px solid var(--color-gris-claro);
    box-shadow: 0 10px 30px var(--color-sombra);
    max-width: 800px;
    margin: 2rem auto;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

.respiraccion-media-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-principal), var(--color-secundario), var(--color-accent));
    border-radius: var(--border-radius-grande) var(--border-radius-grande) 0 0;
}

/* ===================================================
    Estados de Carga
====================================================== */
.loading-message {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--color-gris-medio);
}

.loading-message p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--color-gris-claro);
    border-top: 4px solid var(--color-principal);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* ===================================================
    Área del Reproductor
====================================================== */
#media-player-area {
    margin-top: 1.5rem;
}

/* ===================================================
    Contenedor de Tarjetas de Medios
====================================================== */
#media-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* ===================================================
    Tarjetas de Medios
====================================================== */
.media-card {
    background: var(--color-blanco);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 15px var(--color-sombra);
    border: 1px solid var(--color-gris-claro);
    transition: var(--transicion);
    position: relative;
    overflow: hidden;
}

.media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--color-secundario);
}

.media-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-principal), var(--color-secundario));
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* ===================================================
    Títulos de Medios
====================================================== */
.media-card h3 {
    color: var(--color-principal);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    font-family: 'Montserrat', sans-serif;
}

.media-card p {
    color: var(--color-gris-oscuro);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
}

/* ===================================================
    Botones de Acción
====================================================== */
.media-action-btn {
    background: linear-gradient(135deg, var(--color-principal), var(--color-secundario));
    color: var(--color-blanco);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transicion);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    margin-top: 1rem;
}

.media-action-btn:hover {
    background: linear-gradient(135deg, var(--color-secundario), var(--color-accent));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.media-action-btn:active {
    transform: translateY(0);
}

/* ===================================================
    Reproductor de Video (Plyr)
====================================================== */
.plyr {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px var(--color-sombra);
    margin: 1rem 0;
}

.plyr__video-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.plyr__controls {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.plyr__control {
    color: var(--color-blanco);
    transition: var(--transicion);
}

.plyr__control:hover {
    color: var(--color-secundario);
    background: rgba(255, 255, 255, 0.1);
}

.plyr__control--overlaid {
    background: rgba(2, 40, 89, 0.9);
    border-radius: 50%;
    width: 60px;
    height: 60px;
}

.plyr__control--overlaid:hover {
    background: rgba(74, 144, 226, 0.9);
    transform: scale(1.1);
}

/* ===================================================
    Filtros y Categorías
====================================================== */
.media-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.filter-btn {
    background: var(--color-gris-claro);
    color: var(--color-gris-oscuro);
    border: 2px solid transparent;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transicion);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-principal);
    color: var(--color-blanco);
    border-color: var(--color-secundario);
    transform: translateY(-2px);
}

/* ===================================================
    Separación de Ambients y Binaurales
====================================================== */
.media-section {
    margin-bottom: 3rem;
}

.media-section-title {
    color: var(--color-principal);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--color-secundario);
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    position: relative;
}

.media-section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--color-accent);
}

/* Ambients */
.ambients-section .media-section-title {
    color: var(--color-verde);
}

.ambients-section .media-section-title::after {
    background: var(--color-verde);
}

/* Binaurales */
.binaurals-section .media-section-title {
    color: var(--color-naranja);
}

.binaurals-section .media-section-title::after {
    background: var(--color-naranja);
}

/* ===================================================
    Integración en el Reproductor
====================================================== */
.integrated-player {
    background: var(--color-blanco);
    border-radius: var(--border-radius-grande);
    padding: 2rem;
    box-shadow: 0 8px 25px var(--color-sombra);
    border: 2px solid var(--color-gris-claro);
    margin: 2rem 0;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-gris-claro);
}

.player-title {
    color: var(--color-principal);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.player-controls {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    background: var(--color-gris-claro);
    color: var(--color-gris-oscuro);
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transicion);
    font-size: 0.9rem;
}

.control-btn:hover {
    background: var(--color-secundario);
    color: var(--color-blanco);
}

/* ===================================================
    SUPER REPRODUCTOR DE VIDEO PERSONALIZADO
====================================================== */
.super-video-player {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

.controls-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        transparent 20%,
        transparent 80%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

.super-video-player:hover .controls-overlay,
.video-element:focus + .controls-overlay {
    opacity: 1;
    pointer-events: all;
}

/* Botón de play central */
.center-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.big-play-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

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

.big-play-btn svg circle {
    transition: fill 0.3s ease;
}

.big-play-btn:hover svg circle {
    fill: rgba(0, 0, 0, 0.9);
}

/* Controles inferiores */
.bottom-controls {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.progress-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.time-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.time-separator {
    opacity: 0.7;
}

.progress-wrapper {
    width: 100%;
}

.progress-track {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
}

.progress-loaded {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    width: 0%;
}

.progress-played {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #ff6b35;
    border-radius: 3px;
    transition: width 0.1s ease;
    width: 0%;
}

.progress-handle {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    background: #ff6b35;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-track:hover .progress-handle {
    opacity: 1;
}

/* Botones de control */
.control-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.control-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.control-btn svg {
    transition: all 0.3s ease;
}

/* Control de volumen */
.volume-slider {
    display: flex;
    align-items: center;
}

.volume-input {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.volume-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #ff6b35;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.volume-input::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #ff6b35;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Panel de audio lateral */
.audio-panel {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 280px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 12px;
    padding: 1rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.audio-panel:hover {
    opacity: 1;
}

.audio-section {
    margin-bottom: 1rem;
}

.audio-section:last-child {
    margin-bottom: 0;
}

.audio-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.audio-icon {
    font-size: 1.1rem;
}

.audio-label {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.audio-dropdown {
    flex: 1;
    min-width: 120px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 0.8rem;
    cursor: pointer;
}

.audio-dropdown:focus {
    outline: none;
    border-color: #ff6b35;
    background: white;
}

.audio-play-btn,
.audio-stop-btn {
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.audio-play-btn:hover,
.audio-stop-btn:hover {
    background: #e55a2b;
    transform: scale(1.05);
}

.audio-volume {
    width: 100%;
    margin-top: 0.5rem;
}

.audio-volume-slider {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.audio-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #ff6b35;
    border-radius: 50%;
    cursor: pointer;
}

.audio-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #ff6b35;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .audio-panel {
        position: static;
        width: 100%;
        margin-top: 1rem;
        border-radius: 8px;
    }
    
    .bottom-controls {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .progress-section {
        order: 2;
    }
    
    .control-buttons {
        order: 1;
        justify-content: center;
    }
    
    .audio-controls {
        justify-content: space-between;
    }
    
    .audio-dropdown {
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .super-video-player {
        border-radius: 8px;
    }
    
    .big-play-btn svg {
        width: 50px;
        height: 50px;
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
    }
    
    .control-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* ===================================================
    Reproductor de Video Personalizado (LEGACY)
====================================================== */
.custom-video-player {
    position: relative;
    width: 100%;
    background: var(--color-gris-oscuro);
    border-radius: var(--border-radius-mediano);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.video-container-custom {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.custom-video-player:hover .video-overlay,
.main-video.show-controls + .video-overlay {
    opacity: 1;
    pointer-events: all;
}

.video-controls-top {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
}

.video-controls-bottom {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    gap: 1rem;
}

.play-pause-container {
    display: flex;
    align-items: center;
}

.control-btn-large {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.control-btn-large:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.control-btn-overlay {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: var(--border-radius-pequeno);
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.control-btn-overlay:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-bar {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-principal);
    border-radius: 3px;
    transition: width 0.1s ease;
}

.progress-handle {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    background: var(--color-principal);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.time-display {
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-bar {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.volume-fill {
    height: 100%;
    background: var(--color-principal);
    border-radius: 2px;
    transition: width 0.1s ease;
}

/* ===================================================
    Controles de Audio Integrados en el Reproductor Personalizado
====================================================== */
.audio-controls-overlay {
    position: absolute;
    bottom: 80px;
    left: 1rem;
    right: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.audio-control-group-overlay {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-mediano);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.audio-control-group-overlay label {
    font-size: 1rem;
    color: white;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.audio-select-overlay {
    padding: 0.4rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-pequeno);
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-gris-oscuro);
    font-size: 0.8rem;
    min-width: 100px;
    max-width: 150px;
}

.audio-select-overlay:focus {
    outline: none;
    border-color: var(--color-principal);
    background: white;
}

.audio-btn-overlay {
    background: var(--color-principal);
    color: white;
    border: none;
    padding: 0.4rem 0.6rem;
    border-radius: var(--border-radius-pequeno);
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    min-width: 30px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-btn-overlay:hover {
    background: var(--color-secundario);
    transform: scale(1.05);
}

.audio-status-overlay {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3rem 0.5rem;
    border-radius: var(--border-radius-pequeno);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    min-width: 60px;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ===================================================
    Controles de Audio Integrados en el Reproductor
====================================================== */
.video-container {
    position: relative;
    background: var(--color-gris-oscuro);
    border-radius: var(--border-radius-mediano);
    overflow: hidden;
    min-height: 400px;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.integrated-audio-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1rem;
    z-index: 10;
}

/* Fallback para la clase antigua */
.audio-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1rem;
    z-index: 10;
}

.audio-control-row {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.audio-control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.6rem 0.8rem;
    border-radius: var(--border-radius-mediano);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.audio-control-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gris-oscuro);
    white-space: nowrap;
    margin: 0;
}

.audio-select-small {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--color-gris-claro);
    border-radius: var(--border-radius-pequeno);
    background: var(--color-blanco);
    color: var(--color-gris-oscuro);
    font-size: 0.8rem;
    min-width: 120px;
    max-width: 150px;
}

.audio-select-small:focus {
    outline: none;
    border-color: var(--color-principal);
}

.audio-btn-small {
    background: var(--color-principal);
    color: var(--color-blanco);
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: var(--border-radius-pequeno);
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transicion);
    min-width: 35px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-btn-small:hover {
    background: var(--color-secundario);
    transform: scale(1.05);
}

.audio-btn-small:active {
    transform: scale(0.95);
}

.audio-status-small {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3rem 0.5rem;
    border-radius: var(--border-radius-pequeno);
    background: var(--color-gris-claro);
    color: var(--color-gris-oscuro);
    min-width: 60px;
    text-align: center;
    white-space: nowrap;
}

/* ===================================================
    Responsive Design
====================================================== */
@media (max-width: 768px) {
    .audio-control-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .audio-control-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .integrated-audio-controls {
        padding: 0.75rem;
    }
}
    .respiraccion-media-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    #media-cards-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .media-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* ===================================================
    Estados de Error
====================================================== */
.error-message {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: var(--color-rojo);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-rojo);
    margin: 1rem 0;
    text-align: center;
    font-weight: 500;
}

.no-content-message {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: var(--color-principal);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-style: italic;
}

/* ===================================================
    Animaciones
====================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.media-card {
    animation: fadeInUp 0.6s ease-out;
}

.media-card:nth-child(2) { animation-delay: 0.1s; }
.media-card:nth-child(3) { animation-delay: 0.2s; }
.media-card:nth-child(4) { animation-delay: 0.3s; }
.media-card:nth-child(5) { animation-delay: 0.4s; }