/* =========================================================================
   MIXES MOSAIC GRID - ESTILOS PREMIUM (GLASSMORPHISM & RESPONSIVE 4x3)
   ========================================================================= */

.mixes-grid-wrapper {
    width: 100%;
    margin: 0 auto;
}

.mixes-grid-title {
    text-align: center !important;
    font-size: 27px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 40px 0 50px 0 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.mixes-grid-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #D90C0C;
    margin: 15px auto 0;
    border-radius: 10px;
}

/* --- REJILLA MASTER: 4 COLUMNAS --- */
.mixes-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
    width: 100% !important;
    margin-bottom: 30px;
}

/* --- TARJETA INDIVIDUAL (GLASSMORPHISM) --- */
.mix-card-item {
    background: rgba(255, 255, 255, 0.02) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 16px;
    padding: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.mix-card-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* --- CONTENEDOR DE IMAGEN CUADRADA ESTRICTA --- */
.mix-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2 !important; /* Cuadrado perfecto */
    border-radius: 10px;
    overflow: hidden;
    background: #111;
}

.mix-card-thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Ajuste para que llene sin recortar proporciones */
    transition: transform 0.4s ease;
}

.mix-card-item:hover .mix-card-thumb {
    transform: scale(1.04);
}

/* --- OVERLAY INTERACTIVO (HOVER) --- */
.mix-card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Oculto por defecto */
    transition: opacity 0.3s ease;
}

.mix-card-img-wrap:hover .mix-card-overlay {
    opacity: 1; /* Aparece en hover */
}

/* --- COMPORTAMIENTO BOTÓN PLAY (HEREDADO DE TUS TABLAS) --- */
.mix-card-overlay .play-btn.round-play {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.mix-card-overlay .play-btn.round-play:hover {
    transform: scale(1.1);
    background: #ffffff !important;
    color: #000000 !important;
}

/* --- ESTADO JUGANDO ACTIVO --- */
.mix-card-item.now-playing .mix-card-overlay {
    opacity: 1 !important; /* Se queda visible si está tocando */
    background: rgba(0, 0, 0, 0.3);
}

.mix-card-item.now-playing .play-btn.round-play {
    border: 2px solid #D90C0C !important;
    color: #D90C0C !important;
    background: transparent !important;
}
.mix-card-item.now-playing .play-btn.round-play .play-icon { display: none !important; }
.mix-card-item.now-playing .play-btn.round-play .pause-icon { display: inline-block !important; }

/* Estado track pausado activo */
.mix-card-item.now-playing.paused .play-btn.round-play .pause-icon { display: none !important; }
.mix-card-item.now-playing.paused .play-btn.round-play .play-icon { display: inline-block !important; }

/* --- BLOQUE METADATOS --- */
.mix-card-info {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mix-card-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mix-card-title a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.mix-card-title a:hover {
    color: #D90C0C !important;
}

.mix-card-dj {
    font-size: 12px;
    color: #aaaaaa;
    font-weight: 400;
}

.no-results-mixes {
    grid-column: span 4;
    text-align: center;
    color: #888;
    padding: 40px;
    font-size: 14px;
}

/* --- RESPONSILE GRID OPTIMIZATION --- */
@media (max-width: 1024px) {
    .mixes-cards-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 20px !important; }
    .no-results-mixes { grid-column: span 3; }
}

@media (max-width: 768px) {
    .mixes-cards-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; }
    .no-results-mixes { grid-column: span 2; }
    .mixes-grid-title { font-size: 22px !important; }
    .mix-card-item { padding: 12px; }
}

@media (max-width: 480px) {
    .mixes-cards-grid { grid-template-columns: repeat(1, 1fr) !important; }
    .no-results-mixes { grid-column: span 1; }
}