/* Styles pour l'indicateur de statut Twitch */
.mpt-status-wrapper {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    background: #9146ff;
    transition: background-color 0.3s ease;
}

.mpt-status-wrapper:hover {
    background: #7c3aed;
    text-decoration: none;
}

.mpt-status-wrapper svg {
    width: 20px;
    height: 20px;
    fill: white;
    margin-right: 8px;
}

.mpt-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 4px;
}

.mpt-dot-green {
    background-color: #00ff00;
    box-shadow: 0 0 6px rgba(0, 255, 0, 0.6);
}

.mpt-dot-red {
    background-color: #ff0000;
    box-shadow: 0 0 6px rgba(255, 0, 0, 0.6);
}

/* Styles pour le lecteur principal */
.mpt-player-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.mpt-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Styles pour la grille des replays */
.mpt-replays-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.mpt-replay-card {
    display: block;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mpt-replay-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.mpt-replay-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.mpt-replay-card h4 {
    margin: 12px 16px 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

.mpt-replay-card small {
    display: block;
    margin: 0 16px 16px;
    color: #666;
    font-size: 14px;
}

/* Nouveaux styles pour les fonctionnalités avancées */
.mpt-size-small {
    font-size: 12px;
}

.mpt-size-normal {
    font-size: 14px;
}

.mpt-size-large {
    font-size: 16px;
}

.mpt-style-minimal {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.mpt-style-badge {
    border-radius: 20px !important;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Styles pour les grilles personnalisées */
.mpt-replays-grid-custom {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.mpt-replay-card-custom {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mpt-replay-card-custom:hover {
    transform: translateY(-4px);
    text-decoration: none;
}

/* Badges et éléments spéciaux */
.mpt-replay-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.mpt-replay-type-badge {
    display: inline-block;
    background: #9146ff;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes mpt-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.mpt-dot-green {
    animation: mpt-pulse 2s infinite;
}

/* Styles pour les statistiques */
.mpt-stats-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mpt-stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mpt-stats-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.mpt-stats-list li:last-child {
    border-bottom: none;
}

/* Responsive amélioré */
@media (max-width: 768px) {
    .mpt-replays-grid,
    .mpt-replays-grid-custom {
        grid-template-columns: 1fr;
    }
    
    .mpt-status-wrapper {
        padding: 6px 10px;
    }
    
    .mpt-status-wrapper svg {
        width: 18px;
        height: 18px;
    }
    
    .mpt-size-large {
        font-size: 14px;
    }
    
    .mpt-replay-card-custom {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .mpt-status-text {
        display: none;
    }
    
    .mpt-replay-type-badge {
        font-size: 10px;
        padding: 1px 6px;
    }
}
