/* OOW Player - Styles */

/* ===========================
   MODE STANDARD - Shortcode
   =========================== */

.oow-audio-player {
    max-width: 100%;
    border-radius: 8px;
    padding: 0 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    height: 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 20px 0;
}

.oow-audio-player.oow-hidden {
    display: none;
}

.oow-player-container {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0px;
    gap: 15px;
}

.oow-play-btn {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #ff5500;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.oow-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.oow-play-btn:active {
    transform: scale(0.95);
}

.oow-play-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.oow-waveform-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.oow-track-title {
    font-size: 13px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oow-waveform {
    width: 100%;
}

.oow-time-display {
    font-size: 12px;
    color: white;
    font-variant-numeric: tabular-nums;
    margin-top: 8px;
    opacity: 0.9;
}

/* ===========================
   MODE SPECIAL - Auto-detect
   =========================== */

/* Container de la pochette avec player */
.release-cover {
    position: relative !important;
}

/* S'assurer que les conteneurs internes n'interfèrent pas */
.release-cover .single-wrapper,
.release-cover .tmb,
.release-cover .t-inside {
    position: relative;
}

/* Bouton Play central */
.oow-special-play-btn {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 100 !important;
    backdrop-filter: blur(10px);
}

.oow-special-play-btn:hover {
    background: rgba(0, 0, 0, 0.95);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}

.oow-special-play-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.oow-special-play-btn.playing {
    background: rgba(0, 0, 0, 0.95);
}

.oow-special-play-btn.playing:hover {
    background: rgba(0, 0, 0, 0.95);
}

/* Container de la waveform intégré dans la pochette */
.oow-special-wave-container {
    position: absolute !important;
    bottom: 50px !important;
    left: 20px !important;
    right: 20px !important;
    height: 60px !important;
    /*background: rgba(0, 0, 0, 0.75) !important;*/
    border-radius: 8px !important;
    padding: 8px 12px !important;
    display: none !important;
    flex-direction: column !important;
    justify-content: center !important;
    z-index: 99 !important;
    /*backdrop-filter: blur(10px) !important;*/
    /*box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3) !important;*/
}

.oow-special-wave-container.active {
    display: flex !important;
}

/* Waveform pour mode special */
.oow-special-waveform {
    width: 100%;
    height: 30px;
}

/* Temps pour mode special */
.oow-special-time {
    font-size: 11px;
    color: white;
    font-variant-numeric: tabular-nums;
    margin-top: 4px;
    text-align: center;
    opacity: 0.9;
}

/* Overlay semi-transparent quand le player est actif */
.release-cover.oow-player-active::after {
    content: '';
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    /*background: rgba(0, 0, 0, 0.3);*/
    z-index: 5 !important;
    pointer-events: none;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
    /* Mode Standard */
    .oow-player-container {
        padding: 0 15px;
        gap: 10px;
    }
    
    .oow-play-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .oow-track-title {
        font-size: 14px;
    }
    
    /* Mode Special */
    .oow-special-play-btn {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    
    .oow-special-wave-container {
        bottom: 15px;
        left: 15px;
        right: 15px;
        height: 55px;
    }
}

@media (max-width: 480px) {
    .oow-special-play-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .oow-special-wave-container {
        bottom: 10px;
        left: 10px;
        right: 10px;
        height: 50px;
        padding: 6px 10px;
    }
    
    .oow-special-waveform {
        height: 25px;
    }
    
    .oow-special-time {
        font-size: 10px;
        margin-top: 3px;
    }
}