/* ============================================
   120Beat - Mobile & Responsive Design
   Versión: 2.6 Final (Fix Tap Highlight)
   Última actualización: Nov 2025
   ============================================ */

/* ==========================================
   GLOBAL TOUCH FIX (ELIMINAR "CAJA" AL TOCAR)
   Esto elimina el destello gris/azul en Android e iOS
   para que se sienta como una App Nativa.
   ========================================== */
* {
    -webkit-tap-highlight-color: transparent; /* Clave para iOS/Android */
    outline: none; /* Elimina borde de foco azul en algunos Android */
}

/* Aseguramos que los botones interactivos no tengan el cuadro */
button, 
a, 
.btn-primary, 
.btn-secondary,
.amount-btn, 
.amount-adjust,
.request-item,
.dj-card {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none; /* Evita menú contextual al mantener presionado */
    user-select: none; /* Evita seleccionar texto al tocar rápido */
}

/* ==========================================
   ESTRATEGIA RESPONSIVE
   ==========================================
   Mobile First Design
   Base: 320px - 480px (smartphones)
   Target: 390px (iPhone 12/13/14)
   
   Breakpoints:
   - xs: 0-479px (smartphones pequeños)
   - sm: 480-767px (smartphones grandes)
   - md: 768-1023px (tablets)
   - lg: 1024+ (desktop)
   ========================================== */

/* ==========================================
   SMARTPHONES PEQUEÑOS
   xs: 0-479px
   ========================================== */
@media (max-width: 479px) {
    /* Container ajustes */
    .container {
        padding: 16px 12px 100px;
    }
    
    /* Logo más pequeño */
    .logo-img {
        max-width: 200px;
    }

    /* Ajuste para bajar el logo y asegurar espacio inferior */
    header.text-center {
        margin-top: 18px;    /* Empuja el header hacia abajo sutilmente */
        margin-bottom: 20px; /* Asegura espacio entre el tagline y los botones de abajo */
    }
    
    /* Tipografía reducida */
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 18px;
    }
    
    /* Botones compactos */
    .btn-primary {
        padding: 14px 20px;
        min-height: 50px;
        font-size: 14px;
    }
    
    .btn-pill {
        padding: 10px 16px;
        font-size: 12px;
    }

    /* --- AJUSTE PARA FORMULARIOS EN MÓVIL --- */
    .login-input,
    .session-input {
        padding: 14px;
        font-size: 16px; /* var(--font-size-base) equivalente */
    }

    .venue-dropdown {
        padding: 14px;
        padding-right: 2.5rem; /* Espacio para la flecha */
        font-size: 16px; /* var(--font-size-base) equivalente */
        background-size: 1.3em;
        background-position: right 0.8rem center;
    }
    
    /* Cards compactas */
    .dj-card {
        padding: 12px;
        gap: 12px;
    }
    
    .dj-card-image {
        width: 50px;
        height: 50px;
    }
    
    /* Dashboard compacto */
    .dashboard-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .dj-actions {
        width: 100%;
        justify-content: center;
    }

    /* --- AJUSTE DE FILA, REPRODUCCIÓN E HISTORIAL PARA MÓVIL --- */
    
    /* 1. Reducir tamaño de imagen a 72px y asegurar override con min-width */
    /* Se aplica a Queue, Playing y también al History Item */
    .queue-item .song-cover,
    .currently-playing .song-cover,
    .song-history-item .song-cover {
        width: 72px; 
        height: 72px;
        min-width: 72px; /* FIX CRÍTICO: Evita que flexbox aplaste la imagen */
    }

    /* 2. Reducir también el wrapper del DEMO para que coincida */
    .queue-item .song-cover-wrapper,
    .currently-playing .song-cover-wrapper,
    .song-history-item .song-cover-wrapper {
        width: 72px;
        height: 72px;
        min-width: 72px; /* FIX CRÍTICO: Mantiene la forma cuadrada en demos */
    }

    /* 3. Ajuste de columna de acciones (compactar botones) */
    .queue-item .song-actions,
    .currently-playing .song-actions,
    .song-history-actions {
        min-width: 70px; 
    }

    .queue-item .btn-play, 
    .queue-item .btn-switch,
    .currently-playing .btn-done {
        padding: 6px 8px;
        font-size: 11px;
    }
    /* -------------------------------------------- */
    
    /* Botón IR EN VIVO */
    .btn-go-live {
        width: 100%;
        max-width: 280px;
        padding: 16px 32px;
        font-size: 20px;
        min-height: 70px;
    }
    
    /* Perfil DJ */
    .dj-profile-circle {
        width: 150px;
        height: 150px;
    }
    
    .dj-profile-img {
        width: 130px;
        height: 130px;
    }
    
    .dj-profile-name {
        font-size: 32px;
    }
    
    /* Modal ajustes */
    .modal-content {
        max-width: 95vw;
        max-height: 85vh;
        border-radius: 6px;
    }
    
    .modal-close-btn {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 16px;
        display: none; /* Oculta el botón de cierre en móviles */
    }
    
    /* Corrección visual vertical */
    .earnings-cards {
        /* Se cambia de 2 columnas a 1 columna */
        grid-template-columns: 1fr;
    }

    /* Corrección Lightbox DJ */
    /* Reposiciona la info del DJ en la vista previa para móviles y la pone horizontal */
    .modal-caption {
        position: absolute;
        bottom: 8vh; /* Lo posiciona en la parte inferior de la pantalla */
        left: 50%;
        transform: translateX(-50%); /* Solo translada, elimina cualquier rotación */
        writing-mode: initial; /* Resetea la escritura a horizontal */
        width: 90vw; /* Ocupa el 90% del ancho de la pantalla */
        max-width: 450px; /* Un tope para que no sea demasiado ancho */
        padding: 12px;
        background: rgba(0, 0, 0, 0.85);
        border: 1px solid var(--color-gold);
        border-radius: var(--radius-sm);
        text-align: center;
        box-sizing: border-box;
        z-index: 1001;
    }
}

/* ==========================================
   SMARTPHONES ESTÁNDAR
   sm: 480-767px
   ========================================== */
@media (min-width: 480px) and (max-width: 767px) {
    /* Container optimizado */
    .container {
        padding: 20px 16px 110px;
    }
    
    /* Dashboard más espacioso */
    .dashboard-header {
        flex-direction: row;
        align-items: center;
    }
    
    /* Botones apropiados */
    .btn-go-live {
        width: auto;
        min-width: 200px;
    }
    
    /* Perfil DJ proporcionado */
    .dj-profile-circle {
        width: 180px;
        height: 180px;
    }
    
    .dj-profile-img {
        width: 160px;
        height: 160px;
    }
    
    /* Corrección visual vertical */
    .earnings-cards {
         /* Se cambia de 2 columnas a 1 columna */
        grid-template-columns: 1fr;
    }
    
    /* Modal mejorado */
    .modal-content {
        max-width: 90vw;
        max-height: 80vh;
    }
}

/* ==========================================
   TABLETS
   md: 768-1023px
   ========================================== */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Container centrado más ancho */
    .container {
        max-width: 600px;
        padding: 24px 20px 120px;
    }
    
    /* Logo más grande */
    .logo-img {
        max-width: 300px;
    }
    
    /* Cards más espaciosas */
    .dj-card {
        padding: 20px;
        gap: 20px;
    }
    
    .dj-card-image {
        width: 80px;
        height: 80px;
    }
    
    /* Dashboard layout mejorado */
    .dashboard-header {
        margin-bottom: 50px;
    }
    
    /* Botones más grandes */
    .btn-primary {
        padding: 18px 28px;
        font-size: 18px;
        min-height: 64px;
    }
    
    .btn-go-live {
        width: auto;
        padding: 24px 48px;
        font-size: 26px;
        min-height: 90px;
    }
    
    /* Perfil DJ destacado */
    .dj-profile-circle {
        width: 240px;
        height: 240px;
    }
    
    .dj-profile-img {
        width: 220px;
        height: 220px;
    }
    
    .dj-profile-name {
        font-size: 56px;
    }
    
    /* Songs history más legible */
    .song-history-item {
        padding: 16px;
        gap: 20px;
    }
    
    .song-cover {
        width: 80px;
        height: 80px;
    }
    
    /* Corrección visual vertical */
    .earnings-cards {
        /* Se cambia de 4 columnas a 1 columna */
        grid-template-columns: 1fr;
    }
    
    /* Modal grande */
    .modal-content {
        max-width: 85vw;
        max-height: 85vh;
    }
    
    .modal-close-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    /* Bottom nav centrado */
    .bottom-nav {
        max-width: 600px;
    }
}

/* ==========================================
   DESKTOP
   lg: 1024px+
   ========================================== */
@media (min-width: 1024px) {
    /* Container desktop */
    .container {
        max-width: 800px;
        padding: 32px 24px 140px;
    }
    
    /* Logo full size */
    .logo-img {
        max-width: 350px;
    }
    
    /* Typography desktop */
    h1 {
        font-size: 56px;
    }
    
    h2 {
        font-size: 40px;
    }
    
    /* Cards hover effects mejorados */
    .dj-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3);
    }
    
    /* Dashboard layout desktop */
    .dashboard-header {
        margin-bottom: 60px;
    }
    
    .dj-actions {
        flex-wrap: nowrap;
        gap: 16px;
    }
    
    /* Botones desktop */
    .btn-primary {
        font-size: 20px;
        padding: 20px 32px;
        min-height: 70px;
    }
    
    .btn-primary:hover {
        transform: translateY(-3px);
    }
    
    .btn-go-live {
        width: auto;
        padding: 28px 56px;
        font-size: 28px;
        min-height: 100px;
    }
    
    /* Perfil DJ espectacular */
    .dj-profile-circle {
        width: 280px;
        height: 280px;
    }
    
    .dj-profile-img {
        width: 260px;
        height: 260px;
    }
    
    .dj-profile-name {
        font-size: 64px;
    }
    
    /* Song items más grandes */
    .song-history-item {
        padding: 20px;
    }
    
    .song-cover {
        width: 90px;
        height: 90px;
    }
    
    /* Corrección visual vertical */
    .earnings-cards {
        /* Se cambia de 4 columnas a 1 columna */
        grid-template-columns: 1fr;
        gap: 12px; /* Se ajusta el gap para vertical */
    }
    
    /* Modal fullscreen */
    .modal-content {
        max-width: 80vw;
        max-height: 90vh;
    }
    
    /* Bottom nav desktop */
    .bottom-nav {
        max-width: 800px;
        padding: 20px;
    }
    
    .nav-btn {
        max-width: 150px;
        padding: 14px 28px;
        font-size: 16px;
    }
}

/* ==========================================
   LANDSCAPE MODE (cualquier dispositivo)
   ========================================== */
@media (orientation: landscape) and (max-height: 600px) {
    /* Reducir espaciado vertical */
    .container {
        padding-top: 12px;
        padding-bottom: 80px;
    }
    
    /* Logo más pequeño en landscape */
    .logo-img {
        max-width: 180px;
        margin-bottom: 8px;
    }
    
    /* Perfil compacto */
    .dj-profile-section {
        margin: 20px 0;
    }
    
    .dj-profile-circle {
        width: 140px;
        height: 140px;
    }
    
    .dj-profile-img {
        width: 120px;
        height: 120px;
    }
    
    .dj-profile-name {
        font-size: 28px;
        margin: 10px 0 5px;
    }
    
    /* Modal ajustado */
    .modal-content {
        max-height: 70vh;
    }
    
    /* Bottom nav compacto */
    .bottom-nav {
        padding: 8px 12px;
    }
    
    .nav-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* ==========================================
   HIGH DENSITY DISPLAYS
   Retina / 2x / 3x
   ========================================== */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    /* Bordes más finos */
    .dj-card,
    .song-history-item,
    .modal-content {
        border-width: 0.5px;
    }
    
    /* Sombras más suaves */
    .btn-primary:hover {
        box-shadow: 0 0 15px var(--color-gold-glow);
    }
}

/* ==========================================
   DARK MODE SUPPORT
   (si el sistema lo soporta)
   ========================================== */
@media (prefers-color-scheme: dark) {
    /* Ya estamos en dark por defecto */
    /* Pero podemos ajustar contrastes */
    :root {
        --color-gray-dark: #2a2a2a;
        --color-gray-medium: #707070;
    }
}

/* ==========================================
   REDUCED MOTION
   (accesibilidad)
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .pulse-animation,
    .song-status.playing {
        animation: none !important;
    }
}

/* ==========================================
   TOUCH DEVICE ADJUSTMENTS
   ========================================== */
@media (hover: none) and (pointer: coarse) {
    /* Botones más grandes para touch */
    .btn-primary,
    .btn-secondary,
    .btn-tertiary,
    .btn-pill {
        min-height: 48px;
        padding: 14px 20px;
    }
    
    /* Cards más espaciadas */
    .dj-card {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    /* Eliminar hover effects en touch */
    .btn-primary:hover,
    .dj-card:hover,
    .song-history-item:hover {
        transform: none;
    }
    
    /* Touch feedback con active */
    .btn-primary:active {
        transform: scale(0.98);
    }
    
    .btn-secondary:active {
        background: var(--color-gold);
        color: var(--color-black);
    }

    .btn-tertiary:active {
        color: var(--color-danger);
        border-color: var(--color-danger);
        background-color: rgba(255, 0, 0, 0.1);
    }
    
    .dj-card:active {
        transform: scale(0.99);
        background-color: var(--color-gray-light);
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    /* Ocultar navegación */
    .bottom-nav,
    .back-button,
    .btn-go-live,
    .btn-end-session {
        display: none !important;
    }
    
    /* Optimizar para impresión */
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    /* Colores para impresión */
    body {
        background: white;
    }
    
    .dj-card,
    .song-history-item {
        border: 1px solid #000;
        break-inside: avoid;
    }
}

/* ==========================================
   ULTRA WIDE DISPLAYS
   (monitores anchos)
   ========================================== */
@media (min-width: 1440px) {
    .container {
        max-width: 900px;
    }
    
    .logo-img {
        max-width: 400px;
    }
    
    /* Espaciado generoso */
    .dj-card {
        padding: 24px;
        margin-bottom: 24px;
    }
    
    .songs-history {
        gap: 16px;
    }
}

/* ==========================================
   SAFEGUARDS
   Prevenir scroll horizontal
   ========================================== */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .container {
        overflow-x: hidden;
    }
    
    /* Imágenes responsive */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* ================================================ */
/* Driver.js Tour - 120Beat Customization */
/* ================================================ */

.driver-popover {
  background: #0A0A0A;
  border: 2px solid #FFD700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  border-radius: 8px;
}

.driver-popover-title {
  color: #FFD700;
  font-weight: 700;
  font-size: 16px;
}

.driver-popover-description {
  color: #FFFFFF;
  font-size: 14px;
}

.driver-popover-progress-text {
  color: #FFFFFF;
  font-size: 12px;
}

.driver-popover-next-btn {
  background: #FFD700;
  color: #0A0A0A;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.driver-popover-prev-btn {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid #FFFFFF;
  border-radius: 8px;
  padding: 10px 20px;
}

.driver-popover-close-btn {
  color: #FFFFFF;
}

.driver-active-element {
  outline: 3px solid #FFD700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* ============================================
   REQUEST SONG PAGE - RESPONSIVE ADJUSTMENTS
   Agregado: 09 Oct 2025
   ============================================ */

/* ==========================================
   SMARTPHONES PEQUEÑOS (xs: 0-479px)
   ========================================== */
@media (max-width: 479px) {
    /* Selected Song Card más compacta */
    .selected-song-card {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .selected-cover {
        width: 120px;
        height: 120px;
    }
    
    .selected-title {
        font-size: var(--font-size-lg);
    }
    
    .selected-artist {
        font-size: var(--font-size-sm);
    }
    
    /* Amount selector compacto */
    .amount-title {
        font-size: var(--font-size-base);
        margin-bottom: 16px;
    }
    
    .quick-amounts {
        gap: 8px;
    }
    
    .amount-btn {
        padding: 12px 8px;
        font-size: var(--font-size-base);
    }
    
    /* Controles +/- más pequeños */
    .custom-amount-controls {
        gap: 16px;
        margin-bottom: 20px;
    }
    
    .amount-adjust {
        width: 45px;
        height: 45px;
    }
    
    .amount-display {
        font-size: var(--font-size-2xl);
        min-width: 110px;
    }
    
    .amount-currency {
        font-size: var(--font-size-lg);
    }
    
    /* Input custom ajustado */
    .custom-amount-input input {
        padding: 14px 50px;
        font-size: var(--font-size-base);
    }
    
    .input-prefix {
        left: 12px;
        font-size: var(--font-size-base);
    }
    
    .input-suffix {
        right: 12px;
        font-size: var(--font-size-xs);
    }
    
    /* Botón request más compacto */
    .btn-primary {
        padding: 14px 20px;
        min-height: 52px;
        font-size: var(--font-size-base);
    }
    
    .pricing-note {
        font-size: var(--font-size-xs);
    }
}

/* ==========================================
   SMARTPHONES ESTÁNDAR (sm: 480-767px)
   ========================================== */
@media (min-width: 480px) and (max-width: 767px) {
    .selected-cover {
        width: 140px;
        height: 140px;
    }
    
    .amount-btn {
        padding: 14px 12px;
    }
}

/* ==========================================
   TABLETS (md: 768-1023px)
   ========================================== */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Card más espaciosa */
    .selected-song-card {
        padding: 32px;
        margin-bottom: 40px;
    }
    
    .selected-cover {
        width: 180px;
        height: 180px;
    }
    
    .selected-title {
        font-size: var(--font-size-2xl);
    }
    
    /* Amount selector más grande */
    .amount-title {
        font-size: var(--font-size-xl);
        margin-bottom: 24px;
    }
    
    .quick-amounts {
        gap: 16px;
    }
    
    .amount-btn {
        padding: 18px 16px;
        font-size: var(--font-size-xl);
    }
    
    .amount-adjust {
        width: 55px;
        height: 55px;
    }
    
    .custom-amount-input input {
        padding: 18px 70px;
        font-size: var(--font-size-xl);
    }
}

/* ==========================================
   DESKTOP (lg: 1024px+)
   ========================================== */
@media (min-width: 1024px) {
    /* Card destacada */
    .selected-song-card {
        padding: 40px;
        margin-bottom: 48px;
    }
    
    .selected-cover {
        width: 200px;
        height: 200px;
    }
    
    .selected-title {
        font-size: var(--font-size-2xl);
    }
    
    /* Amount selector desktop */
    .amount-title {
        font-size: var(--font-size-2xl);
        margin-bottom: 28px;
    }
    
    .quick-amounts {
        gap: 20px;
        max-width: 500px;
        margin: 0 auto 28px;
    }
    
    .amount-btn {
        padding: 20px;
        font-size: var(--font-size-xl);
    }
    
    .amount-btn:hover {
        transform: translateY(-3px);
    }
    
    .custom-amount-controls {
        gap: 24px;
        margin-bottom: 28px;
    }
    
    .amount-adjust {
        width: 60px;
        height: 60px;
    }
    
    .amount-adjust:hover {
        transform: scale(1.15);
    }
    
    .custom-amount-input {
        max-width: 400px;
        margin: 0 auto 28px;
    }
    
    .custom-amount-input input {
        padding: 20px 80px;
        font-size: var(--font-size-2xl);
    }
    
    .input-prefix {
        left: 24px;
        font-size: var(--font-size-xl);
    }
    
    .input-suffix {
        right: 24px;
        font-size: var(--font-size-base);
    }
}

/* ==========================================
   LANDSCAPE MODE (request-song ajustes)
   ========================================== */
@media (orientation: landscape) and (max-height: 600px) {
    .selected-song-card {
        padding: 16px;
        margin-bottom: 16px;
        flex-direction: row;
        text-align: left;
    }
    
    .selected-cover {
        width: 100px;
        height: 100px;
    }
    
    .selected-info {
        text-align: left;
        flex: 1;
    }
    
    .amount-selector {
        margin-bottom: 16px;
    }
    
    .amount-title {
        font-size: var(--font-size-base);
        margin-bottom: 12px;
    }
    
    .quick-amounts {
        margin-bottom: 12px;
    }
    
    .custom-amount-controls {
        margin-bottom: 12px;
    }
    
    .processing-container {
        min-height: 250px;
    }
}

/* ==========================================
   TOUCH DEVICE (request-song específico)
   ========================================== */
@media (hover: none) and (pointer: coarse) {
    /* Botones de monto más grandes para touch */
    .amount-btn {
        min-height: 56px;
        padding: 16px;
    }
    
    .amount-adjust {
        min-width: 50px;
        min-height: 50px;
    }
    
    /* Input más fácil de tocar */
    .custom-amount-input input {
        min-height: 56px;
        font-size: var(--font-size-lg);
    }
    
    /* Eliminar hover effects */
    .amount-btn:hover,
    .amount-adjust:hover,
    .btn-change-song:hover {
        transform: none;
    }
    
    /* Touch feedback con active */
    .amount-btn:active {
        transform: scale(0.97);
    }
    
    .amount-adjust:active {
        transform: scale(0.93);
    }
    
    .btn-change-song:active {
        background: var(--color-gold);
        color: var(--color-black);
    }
}

/* ==========================================
   BOTTOM NAVIGATION - RESPONSIVE ADJUSTMENTS
   ========================================== */

/* SMARTPHONES PEQUEÑOS (xs: 0-479px) */
@media (max-width: 479px) {
    .bottom-nav {
        padding: 8px 12px 16px;
    }
    
    .nav-icon {
        width: 24px;
        height: 24px;
    }
    
    .nav-label {
        font-size: 10px;
    }
}

/* TABLETS (md: 768-1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .bottom-nav {
        max-width: 600px;
        padding: 14px 20px 24px;
    }
    
    .nav-btn {
        padding: 10px 24px;
    }
    
    .nav-icon {
        width: 30px;
        height: 30px;
    }
    
    .nav-label {
        font-size: 12px;
    }
}

/* DESKTOP (lg: 1024px+) */
@media (min-width: 1024px) {
    .bottom-nav {
        max-width: 800px;
        padding: 16px 24px 28px;
    }
    
    .nav-btn {
        padding: 12px 28px;
        gap: 8px;
    }
    
    .nav-icon {
        width: 32px;
        height: 32px;
    }
    
    .nav-label {
        font-size: 13px;
    }
    
    .nav-btn:hover:not(.active) {
        color: var(--color-white);
        transform: translateY(-2px);
    }
}

/* LANDSCAPE MODE (altura limitada) */
@media (orientation: landscape) and (max-height: 600px) {
    .bottom-nav {
        padding: 6px 12px 12px;
    }
    
    .nav-btn {
        padding: 6px 16px;
        gap: 4px;
    }
    
    .nav-icon {
        width: 22px;
        height: 22px;
    }
    
    .nav-label {
        font-size: 9px;
    }
}
/* ============================================
   TRANSICIONES DE FILTROS - MOBILE OPTIMIZED
   Agregado: Nov 2025
   ============================================ */

/* ==========================================
   OVERRIDE PARA TRANSICIONES EN MÓVIL
   ========================================== */

/* 1. Asegurar que las transiciones funcionen en touch devices */
@media (hover: none) and (pointer: coarse) {
    /* Permitir scale en botones durante animación */
    .btn-pill {
        transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    /* Permitir transiciones en cards durante filtrado */
    .dj-card {
        transition: opacity 0.3s ease, transform 0.3s ease !important;
    }
    
    /* Solo desactivar hover, NO las transiciones programáticas */
    .dj-card:hover {
        transform: none; /* Hover desactivado */
    }
    
    /* Pero permitir transiciones de opacity y scale via JS */
    .dj-card[style*="opacity"],
    .dj-card[style*="transform"] {
        transition: opacity 0.3s ease, transform 0.3s ease !important;
    }
}

/* 2. Hacer transiciones MÁS LENTAS en móvil (más notorias) */
@media (max-width: 767px) {
    .dj-card {
        transition: opacity 0.35s ease, transform 0.35s ease !important;
        will-change: opacity, transform;
    }
    
    .btn-pill {
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
}

/* 3. EXCEPCIÓN: No desactivar transiciones si usuario prefiere reduced motion */
@media (prefers-reduced-motion: reduce) {
    /* Override anterior - permitir transiciones de filtros */
    .dj-card {
        transition-duration: 0.15s !important; /* Rápido pero visible */
        animation: none !important; /* Solo desactivar animaciones */
    }
    
    .btn-pill {
        transition-duration: 0.1s !important;
    }
    
    /* Desactivar solo animaciones infinitas */
    .pulse-animation,
    .song-status.playing {
        animation: none !important;
    }
}

/* 4. SAFEGUARD: Forzar transiciones durante filtrado */
.dj-card.filter-transitioning {
    transition: opacity 0.35s ease, transform 0.35s ease !important;
    pointer-events: none;
}

/* 5. Hacer el pulse del botón MÁS visible en móvil */
@media (max-width: 479px) {
    .btn-pill:active:not(.pulse-animation) {
        transform: scale(0.92) !important; /* Más obvio */
        transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
}