/* Swiper 3D Coverflow Styles for Dark Neo-Punk */
.swiper-container {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 40px;
    overflow: hidden;
}

.swiper-container .swiper-slide,
.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 480px !important;
    height: 290px !important;
    border-radius: 12px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background-color: #12151b;
    border: 1px solid #242a36;
    transition: transform 0.4s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 768px) {
    .swiper-container .swiper-slide,
    .swiper-slide { 
        width: 320px !important; 
        height: 200px !important; 
    }
}

.swiper-slide-active {
    border: 2px solid #FF2A7A !important;
    box-shadow: 0 0 25px -3px rgba(160, 27, 82, 0.65), 0 0 10px 2px rgba(255, 42, 122, 0.45) !important;
}

.swiper-pagination-bullet {
    background: #475569 !important;
    opacity: 0.6;
    width: 8px;
    height: 8px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #FF2A7A !important;
    width: 28px !important;
    border-radius: 4px !important;
    opacity: 1 !important;
    box-shadow: 0 0 10px #FF2A7A;
}

/* Chips de palabras clave en modo dark */
.keyword-chip {
    transition: all 0.2s ease;
}

.keyword-chip.active {
    background-color: var(--ipn-guinda, #6b1d42) !important;
    border-color: #FF2A7A !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(255, 42, 122, 0.3);
}

.keyword-filters-wrapper {
    max-height: 80px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.keyword-filters-wrapper.expanded {
    max-height: 260px;
    overflow-y: auto;
}

/* Bootstrap Collapse helper (Tailwind interoperability) */
.collapse:not(.show) {
    display: none;
}

/* Dark Neo-Punk Modal Styles */
.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1055 !important;
    display: none !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    outline: 0 !important;
}

.modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    max-width: 1100px;
    pointer-events: none;
    padding: 0 1rem;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #12151b;
    border: 1px solid #242a36;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), 0 0 25px rgba(160, 27, 82, 0.2);
    overflow: hidden;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100vw;
    height: 100vh;
    background-color: #07080a;
}

.modal-backdrop.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.modal-backdrop.show {
    opacity: 0.85;
}

/* Custom scrollbars for modal and dark elements */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0c0e12;
}
::-webkit-scrollbar-thumb {
    background: #242a36;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--ipn-guinda, #6b1d42);
}

/* ===================================================
   AUDIO VISUALIZER & LIVE SIGNAL PULSE (Opción 6)
=================================================== */
.eq-container {
    display: inline-flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 13px;
    padding: 2px 4px;
    background: rgba(12, 14, 18, 0.85);
    border: 1px solid rgba(255, 42, 122, 0.35);
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(160, 27, 82, 0.2);
}

.eq-bar {
    width: 2px;
    border-radius: 1px;
    background: linear-gradient(to top, var(--ipn-guinda, #6b1d42), #FF2A7A);
    animation: eqPulse 1s ease-in-out infinite alternate;
    transform-origin: bottom;
}

.eq-bar:nth-child(1) { height: 35%; animation-duration: 0.65s; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 95%; animation-duration: 0.45s; animation-delay: 0.25s; }
.eq-bar:nth-child(3) { height: 60%; animation-duration: 0.8s;  animation-delay: 0.05s; }
.eq-bar:nth-child(4) { height: 85%; animation-duration: 0.55s; animation-delay: 0.35s; }

/* En hover de la tarjeta, acelera el ritmo y brilla más */
.group:hover .eq-bar,
.swiper-slide:hover .eq-bar {
    background: linear-gradient(to top, #A01B52, #FF2A7A);
    box-shadow: 0 0 6px #FF2A7A;
    animation-duration: 0.32s;
}

@keyframes eqPulse {
    0% {
        height: 20%;
        opacity: 0.4;
    }
    50% {
        height: 90%;
        opacity: 0.95;
    }
    100% {
        height: 40%;
        opacity: 0.65;
    }
}

/* Badge de Transmisión Activa Polimedia */
.live-signal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(12, 14, 18, 0.85);
    border: 1px solid rgba(255, 42, 122, 0.35);
    backdrop-filter: blur(4px);
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    color: #CBD5E1;
    letter-spacing: 0.5px;
}

.live-signal-badge .live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #FF2A7A;
    box-shadow: 0 0 8px #FF2A7A;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.35;
    }
}

/* ===================================================
   ESQUINAS TÁCTICAS HUD (Opción 2)
=================================================== */
.hud-corners {
    position: relative;
}

.hud-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: rgba(255, 42, 122, 0.45);
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 15;
}

.hud-corner-tl {
    top: 5px;
    left: 5px;
    border-top: 2px solid;
    border-left: 2px solid;
}

.hud-corner-tr {
    top: 5px;
    right: 5px;
    border-top: 2px solid;
    border-right: 2px solid;
}

.hud-corner-bl {
    bottom: 5px;
    left: 5px;
    border-bottom: 2px solid;
    border-left: 2px solid;
}

.hud-corner-br {
    bottom: 5px;
    right: 5px;
    border-bottom: 2px solid;
    border-right: 2px solid;
}

/* En hover de la tarjeta: las esquinas se expanden y brillan en neón */
.hud-corners:hover .hud-corner,
.group:hover .hud-corner {
    border-color: #FF2A7A !important;
    box-shadow: 0 0 10px rgba(255, 42, 122, 0.85);
}

.hud-corners:hover .hud-corner-tl,
.group:hover .hud-corner-tl {
    transform: translate(-3px, -3px);
}

.hud-corners:hover .hud-corner-tr,
.group:hover .hud-corner-tr {
    transform: translate(3px, -3px);
}

.hud-corners:hover .hud-corner-bl,
.group:hover .hud-corner-bl {
    transform: translate(-3px, 3px);
}

.hud-corners:hover .hud-corner-br,
.group:hover .hud-corner-br {
    transform: translate(3px, 3px);
}

/* ===================================================
   MICRO-INTERFERENCIA DE SEÑAL / MODAL ENTRY (Opción 6)
=================================================== */
.modal.show .modal-content {
    animation: signalLock 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes signalLock {
    0% {
        opacity: 0;
        transform: scale(0.96) skewX(-1.5deg);
        filter: brightness(1.6) contrast(1.2);
        box-shadow: -3px 0 15px rgba(56, 189, 248, 0.5), 3px 0 15px rgba(255, 42, 122, 0.8);
    }
    30% {
        opacity: 0.9;
        transform: scale(1.01) skewX(0.8deg);
        filter: brightness(1.25);
        box-shadow: 2px 0 12px rgba(56, 189, 248, 0.3), -2px 0 12px rgba(255, 42, 122, 0.5);
    }
    65% {
        opacity: 0.98;
        transform: scale(0.995) skewX(-0.3deg);
        filter: brightness(1.08);
    }
    100% {
        opacity: 1;
        transform: scale(1) skewX(0);
        filter: brightness(1) contrast(1);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), 0 0 25px rgba(160, 27, 82, 0.2);
    }
}

/* Flash de línea de escaneo holográfica al sincronizar video */
.scanline-flash-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 42, 122, 0.35) 50%,
        transparent 100%
    );
    background-size: 100% 24px;
    pointer-events: none;
    z-index: 25;
    animation: scanlineSweep 0.35s ease-out forwards;
}

@keyframes scanlineSweep {
    0% {
        opacity: 1;
        transform: translateY(-100%);
    }
    100% {
        opacity: 0;
        transform: translateY(100%);
    }
}

/* ===================================================
   UTILIDADES HUD Y TABLAS DE CATÁLOGO (ZERO INLINE STYLES)
=================================================== */
.table-catalogo {
    width: 100% !important;
    min-width: 1180px;
}

.th-miniatura { width: 125px; }
.th-caratula { width: 95px; }
.th-titulo { min-width: 220px; width: 250px; }
.th-autor { min-width: 140px; width: 160px; }
.th-fecha { width: 120px; }
.th-vistas { width: 140px; }
.th-likes { width: 135px; }
.th-duracion { width: 95px; }
.th-escuchas { width: 110px; }
.th-categoria { width: 145px; min-width: 135px; }
.th-palabras-clave { width: 160px; }
.th-acciones { width: 110px; }

.hud-corner-lg {
    width: 14px !important;
    height: 14px !important;
    border-width: 2.5px !important;
}

.eq-container-inline {
    height: 10px !important;
    padding: 0 2px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

#tableVideosContainer,
#tablePodcastsContainer {
    display: none;
}


