/* 列表播放器 */
.nac-list-player {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* 隐藏 audio 容器当播放器未显示 */
.nac-list-player[style*="display: none"] ~ *,
.nac-list-player[style*="display:none"] ~ * {
    /* 不隐藏后续元素 */
}

/* 直接隐藏 audio 容器 */
.elementor-element.audio:has(.nac-list-player[style*="display: none"]),
.elementor-element.audio:has(.nac-list-player[style*="display:none"]) {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.nac-lp-wrap {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ===== 桌面版 (≥1024px) ===== */
@media (min-width: 1024px) {
    .nac-lp-left {
        flex: 0 0 25%;
        display: flex;
        align-items: center;
        gap: 15px;
        min-width: 0;
    }
    
    .nac-lp-cover {
        width: 80px !important;
        height: 80px !important;
        object-fit: cover;
        border-radius: 4px;
        flex-shrink: 0;
    }
    
    .nac-lp-title {
        color: #fff;
        font-size: 18px;
        line-height: 24px;
        font-weight: 400;
        word-break: break-word;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0;
    }
    
    .nac-lp-center {
        flex: 0 0 50%;
        display: flex;
        flex-direction: column;
        gap: 18px;
    }
    
    .nac-lp-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
    }
    
    .nac-lp-btn {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.2s;
        color: #fff;
    }
    
    .nac-lp-btn:hover {
        opacity: 0.8;
    }
    
    .nac-lp-btn svg {
        width: 100%;
        height: 100%;
    }
    
    /* 按钮间隔：第1-2:33px, 第2-3:21px, 第3-4:21px, 第4-5:33px */
    .nac-lp-shuffle {
        margin-right: 33px;
    }
    
    .nac-lp-prev {
        margin-right: 21px;
    }
    
    .nac-lp-play {
        background: #178F4B;
        border-radius: 500px;
        padding: 7px 20px;
        width: auto;
        height: auto;
        margin-right: 21px;
    }
    
    .nac-lp-next {
        margin-right: 33px;
    }
    
    .nac-lp-play svg {
        width: 16px;
        height: 16px;
    }
    
    .nac-lp-progress-wrap {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .nac-lp-current-time,
    .nac-lp-total-time {
        color: #fff;
        font-size: 12px;
        line-height: 16px;
        font-weight: 400;
        min-width: 40px;
    }
    
    .nac-lp-current-time {
        text-align: right;
    }
    
    .nac-lp-total-time {
        text-align: left;
    }
    
    .nac-lp-progress-bar {
        flex: 1;
        height: 4px;
        background: #525252;
        overflow: hidden;
        cursor: pointer;
    }
    
    .nac-lp-progress-fill {
        height: 100%;
        background: #178F4B;
        width: 0%;
        transition: width 0.1s linear;
    }
    
    .nac-lp-right {
        flex: 0 0 25%;
    }
    
    .nac-lp-mobile-play {
        display: none;
    }
}

/* ===== 移动版 (<1024px) ===== */
@media (max-width: 1023px) {
    .nac-lp-left {
        flex: 0 0 75%;
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }
    
    .nac-lp-cover {
        width: 36px !important;
        height: 36px !important;
        object-fit: cover;
        border-radius: 2px;
        flex-shrink: 0;
    }
    
    .nac-lp-title {
        color: #fff;
        font-size: 14px;
        line-height: 16px;
        font-weight: 400;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
    }
    
    .nac-lp-center {
        display: none;
    }
    
    .nac-lp-right {
        display: none;
    }
    
    .nac-lp-mobile-play {
        flex: 0 0 25%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 44px;
        height: 44px;
    }
    
    .nac-lp-circle-progress {
        width: 44px;
        height: 44px;
    }
    
    .nac-lp-circle-bg {
        fill: rgba(33, 147, 81, 0.22);
        stroke: #185331;
        stroke-width: 2;
    }
    
    .nac-lp-circle-bar {
        stroke: #219351;
        stroke-width: 2;
        stroke-linecap: round;
    }
    
    .nac-lp-mobile-play-icon,
    .nac-lp-mobile-pause-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 12px;
        height: 12px;
    }
}

/* 移除任何默认样式 */
.nac-list-player * {
    box-sizing: border-box;
}

.nac-list-player audio {
    display: none;
}
