.awc {
    display: flex; flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: box-shadow .2s, border-color .2s;
}
.product-card.awc:hover {
    transform: none;
    border-color: var(--border-hover);
    box-shadow: var(--shadow);
}

/* Waveform row */
.awc-wave { display: flex; align-items: center; gap: 8px; padding: 10px 10px 8px; position: relative; }

.awc-play-btn {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--primary); border: none; cursor: pointer;
    color: #fff; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem; position: relative; z-index: 2;
    box-shadow: 0 2px 8px var(--primary-t);
    transition: transform .12s;
}
.awc-play-btn:hover  { transform: scale(1.08); }
.awc-play-btn:active { transform: scale(.94); }

.awc-bars-wrap { flex: 1; min-width: 0; height: 52px; position: relative; cursor: pointer; overflow: hidden; }
.awc-bars-wrap::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 1px;
    background: var(--border);
    transform: translateY(-50%);
    opacity: .9;
}
.awc-wavesurfer { position: relative; z-index: 1; width: 100%; min-width: 0; height: 100%; direction: ltr; }
.awc-wavesurfer > div { width: 100%; }
.awc-wavesurfer wave { overflow: hidden !important; }

.awc-dur { font-size: .68rem; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }
.awc-now {
    display: none; position: absolute; top: 6px; right: 52px;
    background: var(--primary); color: #fff; font-size: .62rem;
    padding: 2px 7px; border-radius: 10px;
    font-variant-numeric: tabular-nums; pointer-events: none; z-index: 3;
}
.awc.is-playing .awc-now { display: block; }

/* Body */
.awc-body {
    padding: 10px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.awc-title-row,
.awc-bottom-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.awc-bottom-row { align-items: center; }
.awc-icons { display: flex; align-items: center; gap: 8px; }
.awc-card-action,
.awc-card-action form { flex-shrink: 0; }
.awc-card-action {
    opacity: 1;
    transform: none;
    transition: opacity .15s, transform .15s;
}
.awc--hover-action .awc-card-action {
    opacity: 0;
    transform: translateY(3px);
    pointer-events: none;
}
.awc--hover-action:hover .awc-card-action,
.awc--hover-action:focus-within .awc-card-action {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
@media (hover: none) {
    .awc--hover-action .awc-card-action {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}

.awc-cart-btn {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--primary); color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: .78rem; text-decoration: none; flex-shrink: 0;
    transition: background .15s;
}
.awc-cart-btn:hover { background: var(--primary-h); }
.awc-cart-btn--download { background: var(--primary); }
.awc-cart-btn--download:hover { background: var(--primary-h); }
.awc-cart-btn--vip { background: linear-gradient(135deg,#7c3aed,#4f46e5); }

.awc-title {
    font-size: .82rem; font-weight: 600; color: var(--text-1); text-decoration: none;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; line-height: 1.4;
    min-width: 0;
    flex: 1;
}
.awc-title:hover { color: var(--primary); }
.awc-vendor {
    max-width: 42%;
    font-size: .72rem;
    color: var(--text-3);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-align: left;
    flex-shrink: 0;
}
.awc-vendor span { overflow: hidden; text-overflow: ellipsis; }
.awc-bottom-row .p-price-free,
.awc-bottom-row .p-price-sub,
.awc-bottom-row .p-price-paid {
    margin-right: auto;
    text-align: left;
}

/* Mobile (2-column grid): the card gets narrow, so tighten the player row and
   give the waveform room. Without this the fixed bar-gaps overflow the wrap and
   the bars clip away to nothing. The current-time badge still shows while playing. */
@media (max-width: 540px) {
    .awc-wave { gap: 6px; padding: 8px 8px 6px; }
    .awc-play-btn { width: 30px; height: 30px; font-size: .85rem; }
    .awc-bars-wrap { height: 44px; }
    .awc-dur { display: none; }
}
