/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/* Container principal - Prefixed y adaptado (transparente) */
.remixes-free-container {
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px 10px;
    background: transparent; /* Sin fondo */
}

/* Header - Sin uppercase, transparente */
.remixes-free-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    border-bottom: 2px solid rgba(8, 244, 120, 0.4);
    background: transparent; /* Transparente */
    border-radius: 12px 12px 0 0;
}

.remixes-free-title {
    font-size: 35px;
    font-weight: 700;
    color: #08f478;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
    /* Sin text-transform: uppercase; */
    text-shadow: 0 0 20px rgba(8, 244, 120, 0.3);
}

.remixes-free-stats {
    font-size: 16px;
    color: rgba(8, 244, 120, 0.9);
    font-weight: 500;
}

/* Error */
.remixes-free-error {
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.3);
    color: #ff6b00;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    margin: 20px 0;
}

/* Tabla container - Transparente, sin fondo verde */
.remixes-free-table-container {
    overflow-x: auto;
    border-radius: 12px;
    background: transparent; /* Sin fondo verde */
    border: 1px solid rgba(8, 244, 120, 0.2);
    margin: 0 0 30px 0;
    position: relative;
    box-shadow: 0 4px 20px rgba(8, 244, 120, 0.1); /* Mantiene sombra sutil */
}

.remixes-free-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Roboto', sans-serif;
    table-layout: fixed;
}

.remixes-free-table thead tr {
    background: linear-gradient(135deg, rgba(8, 244, 120, 0.2), rgba(8, 244, 120, 0.1)); /* Gradiente en toda la fila del thead */
}

.remixes-free-table thead th {
    background: transparent; /* Transparente */
    padding: 16px 12px;
    text-align: center;
    font-weight: 700;
    color: #08f478; /* Verde para headers */
    border-bottom: 2px solid rgba(8, 244, 120, 0.3); /* Borde verde */
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.remixes-free-table tbody tr {
    /* Sin transition para quitar animaci車n hover */
    border-bottom: 1px solid rgba(8, 244, 120, 0.1);
}

.remixes-free-table tbody tr:hover {
    /* Solo borde verde izquierdo, sin background ni transition */
    background: rgba(8, 244, 120, 0.15); /* Hover m芍s vibrante en verde */
    border-left: 3px solid #08f478;
}

.remixes-free-table tbody td {
    padding: 16px 8px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    font-size: 13px;
    color: #ffffff; /* Texto blanco consistente */
}

/* Columnas - Sin cambios */
.remixes-free-table .col-image { width: 80px; text-align: center; }
.remixes-free-table .col-title { width: 30%; text-align: left; font-weight: 500; padding-left: 16px; font-size: 13px; }
.remixes-free-table .col-play { width: 80px; text-align: center; font-weight: 500; color: #08f478; font-size: 12px; }
.remixes-free-table .col-bpm { width: 60px; text-align: center; font-weight: 500;  font-size: 13px; }
.remixes-free-table .col-genre { width: 15%;  text-align: center; font-size: 13px; }
.remixes-free-table .col-release { width: 15%;  text-align: center; font-size: 13px; }
.remixes-free-table .col-buy { width: 90px; text-align: center; }

/* Play count - Sin cambios */
.remixes-free-play-count-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 50px;
    margin: 0 auto;
}

.remixes-free-play-count-display.count-updated {
    /* Eliminado el fondo y la animaci車n */
}

.remixes-free-play-count-icon {
    color: rgba(8, 244, 120, 0.8); /* Icono verde */
    font-size: 10px;
    flex-shrink: 0;
}

.remixes-free-play-count-number {
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

/* Imagen con play button - Sin cambios */
.remixes-free-image-container {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto;
}

.remixes-free-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.remixes-free-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.remixes-free-image-container:hover .remixes-free-play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.remixes-free-play-button.playing {
    opacity: 1;
    background: #08f478;
}

@keyframes remixes-free-pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.remixes-free-play-button i {
    color: #000000;
    font-size: 14px;
    margin-left: 2px;
}

.remixes-free-play-button.playing i,
.remixes-free-play-button.requires-interaction i {
    color: #000000;
    margin-left: 0;
}

.remixes-free-no-preview {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.remixes-free-no-results {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Reproductor Sticky - Sin cambios (mantiene verde para contraste) */
.remixes-free-sticky-player {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #010305 !important;
    opacity: 1 !important;
    visibility: visible !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    z-index: 99999 !important;
    font-family: 'Roboto', sans-serif !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3) !important;
    display: block !important;
    min-height: 80px !important;
}

.remixes-free-player-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.remixes-free-progress-fill {
    height: 100%;
    background: #08f478;
    width: 0%;
    transition: width 0.1s ease;
}

.remixes-free-player-content {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    gap: 20px;
    position: relative;
}

.remixes-free-player-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.remixes-free-player-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.remixes-free-player-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
}

.remixes-free-prev-btn, .remixes-free-next-btn, .remixes-free-play-pause-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remixes-free-play-pause-btn {
    font-size: 24px;
    width: 48px;
    height: 48px;
    background: #08f478;
    color: #000000;
}

.remixes-free-prev-btn, .remixes-free-next-btn {
    font-size: 18px;
    width: 36px;
    height: 36px;
}

.remixes-free-prev-btn:hover, .remixes-free-next-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.remixes-free-track-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.remixes-free-track-thumbnail {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.remixes-free-track-details {
    min-width: 0;
    flex: 1;
}

.remixes-free-track-title {
    font-weight: 500;
    font-size: 13px;
    color: #ffffff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 500px;
}

.remixes-free-track-artist {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    text-decoration: none !important;
    opacity: 0.8;
}

.remixes-free-track-artist:hover {
    text-decoration: none !important;
    color: #ddd;
}

.remixes-free-track-duration {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 15px;
    white-space: nowrap;
}

.remixes-free-volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remixes-free-volume-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.remixes-free-volume-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.remixes-free-volume-input {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.remixes-free-volume-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #08f478;
    border-radius: 50%;
    cursor: pointer;
}

.remixes-free-volume-input::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #08f478;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.remixes-free-buy-button-container {
    min-width: 80px;
}

/* Video overlay prefixed - Sin cambios */
.remixes-free-video-overlay {
    position: fixed !important;
    bottom: 80px !important;
    right: 20px !important;
    width: 300px !important;
    height: 169px !important;
    background: #000 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    z-index: 999999 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    display: none !important;
}

.remixes-free-video-overlay.active {
    display: block !important;
}

.remixes-free-video-overlay.fullscreen {
    width: 40vw !important;
    height: calc(40vw * 9 / 16) !important;
    max-width: 640px !important;
    max-height: 360px !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7) !important;
    z-index: 9999999 !important;
}

.remixes-free-video-overlay.fullscreen video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.remixes-free-video-overlay video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.remixes-free-video-close {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    border: none !important;
    color: white !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999999 !important;
}

.remixes-free-video-overlay.fullscreen .remixes-free-video-close {
    top: 12px !important;
    right: 12px !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 16px !important;
}

/* M車viles - Sin cambios */
@media (max-width: 768px) {
    .remixes-free-video-overlay {
        width: 280px !important;
        height: 158px !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        bottom: auto !important;
        right: auto !important;
        display: none !important;
    }
    .remixes-free-video-overlay.active {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .remixes-free-video-overlay {
        width: 240px !important;
        height: 135px !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        bottom: auto !important;
        right: auto !important;
        display: none !important;
    }
    .remixes-free-video-overlay.active {
        display: block !important;
    }
}

/* Loading - Sin cambios */
.remixes-free-table tbody.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.remixes-free-table tbody.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #08f478;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: remixes-free-spin 1s linear infinite;
    z-index: 10;
}

@keyframes remixes-free-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animaciones - Solo fadeIn para rows, sin hover */
@keyframes remixes-free-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.remixes-free-remix-row {
    animation: remixes-free-fadeIn 0.3s ease-out;
}

/* Responsive general - Sin cambios */
@media (max-width: 1024px) {
    .remixes-free-container {
        max-width: 100%;
        padding: 15px;
    }
    .remixes-free-title {
        font-size: 2rem;
    }
    .remixes-free-player-content {
        padding: 10px 15px;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .remixes-free-container {
        max-width: 100%;
        padding: 10px 15px;
    }
    .remixes-free-title {
        font-size: 1.8rem;
    }
    .remixes-free-header {
        padding: 20px 0;
        margin-bottom: 25px;
    }
    .remixes-free-table-container {
        margin: 0 0 20px 0;
        border-radius: 8px;
    }
    .remixes-free-table .col-bpm, .remixes-free-table .col-genre, .remixes-free-table .col-release {
        display: none;
    }
    .remixes-free-table .col-image {
        width: 70px;
    }
    .remixes-free-table .col-title {
        width: auto;
        padding-left: 8px;
    }
    .remixes-free-table .col-play {
        width: 50px;
    }
    .remixes-free-table .col-buy {
        width: 90px;
    }
    .remixes-free-table {
        font-size: 13px;
    }
    .remixes-free-table thead th, .remixes-free-table tbody td {
        padding: 12px 6px;
    }
    .remixes-free-play-count-display {
        min-width: 40px;
        padding: 2px 6px;
        gap: 4px;
    }
    .remixes-free-play-count-icon {
        font-size: 9px;
    }
    .remixes-free-play-count-number {
        font-size: 10px;
    }
    .remixes-free-player-content {
        flex-direction: row;
        gap: 10px;
        padding: 15px 10px;
    }
    .remixes-free-player-left {
        flex: 2;
        min-width: 0;
    }
    .remixes-free-player-center {
        position: static;
        transform: none;
        flex: 0 0 auto;
        gap: 10px;
    }
    .remixes-free-player-right {
        display: none;
    }
    .remixes-free-prev-btn, .remixes-free-next-btn {
        display: none;
    }
    .remixes-free-video-overlay {
        display: none !important;
    }
    .remixes-free-track-title {
        font-size: 12px;
        max-width: 70vw;
    }
    .remixes-free-track-artist {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .remixes-free-container {
        max-width: 105%;
        padding: 10px 0px;
    }
    .remixes-free-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    .remixes-free-header {
        margin-bottom: 20px;
        padding: 15px 0;
    }
    .remixes-free-table {
        font-size: 12px;
    }
    .remixes-free-table .col-image {
        width: 60px;
    }
    .remixes-free-image-container {
        width: 50px;
        height: 50px;
    }
    .remixes-free-table .col-play {
        width: 50px;
    }
    .remixes-free-play-count-display {
        min-width: 35px;
        padding: 2px 4px;
        gap: 3px;
    }
    .remixes-free-play-count-icon {
        font-size: 8px;
    }
    .remixes-free-play-count-number {
        font-size: 9px;
        min-width: 15px;
    }
    .remixes-free-track-info {
        max-width: 200px;
    }
    .remixes-free-track-thumbnail {
        width: 40px;
        height: 40px;
    }
    .remixes-free-track-title {
        font-size: 11px;
        max-width: 80vw;
    }
}

/* Animaci車n de actualizaci車n del contador */
@keyframes remixes-free-countUpdate {
    0% {
        transform: scale(1);
        background: rgba(255, 255, 255, 0.05);
    }
    50% {
        transform: scale(1.1);
        background: rgba(8, 244, 120, 0.3);
    }
    100% {
        transform: scale(1);
        background: rgba(8, 244, 120, 0.1);
    }
}

.remixes-free-play-count-display.count-updated {
    animation: remixes-free-countUpdate 0.6s ease-out;
}