/* VO Audio Player — Frontend Styles */

.voap-player-wrap {
    font-family: 'Segoe UI', Arial, sans-serif;
    padding: 10px 0;
}

.voap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 900px) { .voap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .voap-grid { grid-template-columns: 1fr; } }

/* Card */
.voap-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.10);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    min-height: 90px;
}
.voap-card:hover {
    box-shadow: 0 6px 28px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* Thumbnail */
.voap-thumb {
    width: 80px;
    min-width: 80px;
    background: var(--voap-grad, linear-gradient(135deg, #0057E7, #00ADEF));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Play button */
.voap-play-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.15s;
}
.voap-play-btn:hover { transform: scale(1.15); }
.voap-play-btn svg { width: 28px; height: 28px; }

/* Info */
.voap-info {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.voap-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.voap-title {
    font-size: 12px;
    font-weight: 700;
    color: #1a2a4a;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.voap-time {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Controls */
.voap-controls-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.voap-vol-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--voap-primary, #0057E7);
    display: flex;
    align-items: center;
}
.voap-vol-btn svg { width: 18px; height: 18px; }
.voap-vol-btn.is-muted svg { opacity: 0.4; }

/* Scrubber */
.voap-scrubber-wrap {
    flex: 1;
    cursor: pointer;
    padding: 6px 0;
    position: relative;
}

.voap-scrubber-bg {
    position: relative;
    height: 4px;
    background: var(--voap-track, #d0e4ff);
    border-radius: 4px;
    overflow: visible;
}

.voap-scrubber-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0%;
    background: var(--voap-grad, linear-gradient(90deg, #0057E7, #00ADEF));
    border-radius: 4px;
    transition: width 0.1s linear;
}

.voap-scrubber-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--voap-primary, #0057E7);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    transition: left 0.1s linear;
}
.voap-scrubber-wrap:hover .voap-scrubber-thumb { width: 14px; height: 14px; }

/* Download button */
.voap-dl-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--voap-primary, #0057E7);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.15s;
}
.voap-dl-btn:hover { color: var(--voap-secondary, #00ADEF); transform: translateY(2px); }
.voap-dl-btn svg { width: 18px; height: 18px; }
