/* ── ConoverVO Audio Player ──────────────────────────────────────────────── */
:root {
    --cvo-green:      #2d8a2d;
    --cvo-green-dark: #1e5e1e;
    --cvo-green-light:#e8f5e8;
    --cvo-green-glow: rgba(45,138,45,0.3);
    --cvo-bg:         #0f1a0f;
    --cvo-bg2:        #162416;
    --cvo-text:       #e8f5e8;
    --cvo-subtext:    #8ab88a;
    --cvo-border:     rgba(45,138,45,0.25);
    --cvo-radius:     10px;
}

.cvoap-wrapper {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--cvo-bg);
    border: 1px solid var(--cvo-border);
    border-radius: var(--cvo-radius);
    overflow: hidden;
    max-width: 780px;
    margin: 0 auto 32px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px var(--cvo-border);
}

/* ── Player Bar ─────────────────────────────────────────────────────────── */
.cvoap-player-bar {
    background: var(--cvo-bg2);
    padding: 18px 22px 14px;
    border-bottom: 1px solid var(--cvo-border);
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    align-items: center;
    gap: 14px;
}

.cvoap-now-playing {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

/* Waveform animation */
.cvoap-waveform {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 32px;
    flex-shrink: 0;
}
.cvoap-waveform span {
    display: block;
    width: 4px;
    border-radius: 2px;
    background: var(--cvo-green);
    height: 8px;
    transition: height .1s;
}
.cvoap-playing .cvoap-waveform span:nth-child(1) { animation: cvoap-wave 0.8s ease-in-out infinite; }
.cvoap-playing .cvoap-waveform span:nth-child(2) { animation: cvoap-wave 0.8s ease-in-out 0.15s infinite; }
.cvoap-playing .cvoap-waveform span:nth-child(3) { animation: cvoap-wave 0.8s ease-in-out 0.3s infinite; }
.cvoap-playing .cvoap-waveform span:nth-child(4) { animation: cvoap-wave 0.8s ease-in-out 0.45s infinite; }
.cvoap-playing .cvoap-waveform span:nth-child(5) { animation: cvoap-wave 0.8s ease-in-out 0.6s infinite; }
@keyframes cvoap-wave {
    0%,100% { height: 6px; }
    50%      { height: 28px; }
}

.cvoap-info { min-width: 0; }
.cvoap-now-title {
    color: var(--cvo-text);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cvoap-now-genre {
    color: var(--cvo-subtext);
    font-size: 12px;
    margin-top: 2px;
    font-style: italic;
}

/* Controls */
.cvoap-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cvoap-btn {
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.15);
    color: #aaa;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    padding: 0;
    flex-shrink: 0;
}
.cvoap-btn svg { display: block; flex-shrink: 0; }
.cvoap-btn:hover { background: var(--cvo-green); border-color: var(--cvo-green); color: #fff; }
.cvoap-main-btn {
    width: 54px;
    height: 54px;
    background: var(--cvo-green);
    border-color: var(--cvo-green);
    color: #fff;
    box-shadow: 0 0 18px var(--cvo-green-glow);
}
.cvoap-main-btn:hover { background: var(--cvo-green-dark); border-color: var(--cvo-green-dark); }

/* Progress */
.cvoap-progress-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cvoap-time-current,
.cvoap-time-total {
    color: var(--cvo-subtext);
    font-size: 12px;
    font-family: monospace;
    white-space: nowrap;
}
.cvoap-progress-bar {
    position: relative;
    flex: 1;
    height: 5px;
    background: rgba(255,255,255,.1);
    border-radius: 3px;
    min-width: 80px;
}
.cvoap-progress-fill {
    height: 100%;
    background: var(--cvo-green);
    border-radius: 3px;
    width: 0%;
    pointer-events: none;
    transition: width .1s linear;
}
.cvoap-seek {
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 20px;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

/* Volume */
.cvoap-volume-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cvoap-vol-icon { font-size: 14px; }
.cvoap-volume {
    -webkit-appearance: none;
    width: 70px;
    height: 4px;
    background: rgba(255,255,255,.15);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.cvoap-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--cvo-green);
    cursor: pointer;
}

/* ── Track List ─────────────────────────────────────────────────────────── */
.cvoap-track-list {
    max-height: 420px;
    overflow-y: auto;
    padding: 6px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--cvo-green) transparent;
}
.cvoap-track-list::-webkit-scrollbar { width: 5px; }
.cvoap-track-list::-webkit-scrollbar-thumb { background: var(--cvo-green); border-radius: 3px; }

.cvoap-track-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 22px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,.04);
    transition: background .15s;
}
.cvoap-track-item:hover { background: var(--cvo-bg2); }
.cvoap-track-item.cvoap-active {
    background: rgba(45,138,45,.12);
    border-left: 3px solid var(--cvo-green);
}

.cvoap-track-num {
    color: var(--cvo-subtext);
    font-size: 12px;
    font-family: monospace;
    width: 22px;
    flex-shrink: 0;
    text-align: center;
}
.cvoap-track-item.cvoap-active .cvoap-track-num { color: var(--cvo-green); }

.cvoap-track-info { flex: 1; min-width: 0; }
.cvoap-track-title {
    color: var(--cvo-text);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cvoap-track-item.cvoap-active .cvoap-track-title { color: #a8e6a8; }
.cvoap-track-genre {
    color: var(--cvo-subtext);
    font-size: 11px;
    margin-top: 2px;
    font-style: italic;
}

.cvoap-track-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.cvoap-track-play-btn {
    background: rgba(45,138,45,0.12);
    border: 1.5px solid var(--cvo-green);
    color: var(--cvo-green);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .18s;
    padding: 0;
    flex-shrink: 0;
}
.cvoap-track-play-btn svg { display: block; flex-shrink: 0; }
.cvoap-track-play-btn:hover,
.cvoap-track-item.cvoap-active .cvoap-track-play-btn {
    background: var(--cvo-green);
    border-color: var(--cvo-green);
    color: #fff;
}

.cvoap-download-btn {
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.2);
    color: #aaa;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all .18s;
    flex-shrink: 0;
}
.cvoap-download-btn svg { display: block; flex-shrink: 0; }
.cvoap-download-btn:hover {
    background: var(--cvo-green);
    border-color: var(--cvo-green);
    color: #fff;
}

.cvoap-empty {
    color: var(--cvo-subtext);
    text-align: center;
    padding: 24px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .cvoap-player-bar {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    .cvoap-volume-wrap { display: none; }
    .cvoap-now-playing { order: 1; }
    .cvoap-controls    { order: 2; justify-content: center; }
    .cvoap-progress-wrap { order: 3; }
}
