.hbc-audio-message {
    --hbc-am-card-bg: #c7d8f3;
    --hbc-am-blue: #0046a5;
    --hbc-am-blue-2: #338af3;
    --hbc-am-text: #3f4653;
    display: grid;
    grid-template-columns: minmax(300px, 42%) minmax(320px, 1fr);
    gap: clamp(20px, 3vw, 42px);
    align-items: start;
    position: relative;
}

.hbc-am-player-card {
    background: var(--hbc-am-card-bg);
    border-radius: 12px;
    padding: 18px 18px 16px;
    box-shadow: 0 8px 24px rgba(0, 25, 73, 0.08);
}

.hbc-am-player-head {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    align-items: center;
}

.hbc-am-avatar-wrap {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    overflow: hidden;
    background: #d9d9d9;
}

.hbc-am-avatar,
.hbc-am-avatar-fallback {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hbc-am-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hbc-am-blue);
    font-size: 2rem;
    font-weight: 700;
}

.hbc-am-track-title {
    margin: 0;
    color: var(--hbc-am-blue);
    font-size: clamp(1.2rem, 1.6vw, 1.62rem);
    font-weight: 700;
}

.hbc-am-track-author {
    margin: 6px 0 0;
    color: #5f6778;
    font-size: 1rem;
}

.hbc-am-time-row {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    color: #6f7787;
    font-size: 0.8rem;
}

.hbc-am-progress {
    margin-top: 4px;
    height: 3px;
    background: rgba(0, 70, 165, 0.2);
    border-radius: 999px;
    position: relative;
    cursor: pointer;
}

.hbc-am-progress-bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: var(--hbc-am-blue);
    border-radius: 999px;
}

.hbc-am-controls {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hbc-am-btn {
    border: 0;
    padding: 0;
    background: transparent;
    color: #4f5667;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hbc-am-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hbc-am-play {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f3f8ff;
    border: 1px solid rgba(0, 70, 165, 0.22);
    color: var(--hbc-am-blue);
}

.hbc-am-play .hbc-am-icon-pause,
.hbc-am-mute .hbc-am-icon-muted {
    display: none;
}

.hbc-am-player-card.is-playing .hbc-am-play .hbc-am-icon-play,
.hbc-am-player-card.is-muted .hbc-am-mute .hbc-am-icon-volume {
    display: none;
}

.hbc-am-player-card.is-playing .hbc-am-play .hbc-am-icon-pause,
.hbc-am-player-card.is-muted .hbc-am-mute .hbc-am-icon-muted {
    display: block;
}

.hbc-am-message {
    color: var(--hbc-am-text);
}

.hbc-am-title {
    margin: 0 0 10px;
    color: #2f2f2f;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 700;
}

.hbc-am-content {
    font-size: 1rem;
    line-height: 1.74;
    color: #3f3f3f;
}

.hbc-am-content p {
    margin: 0 0 14px;
}

@media (max-width: 980px) {
    .hbc-audio-message {
        grid-template-columns: 1fr;
    }

    .hbc-am-player-card {
        max-width: 640px;
    }
}

@media (max-width: 640px) {
    .hbc-am-player-card {
        padding: 12px;
    }

    .hbc-am-player-head {
        grid-template-columns: 96px 1fr;
        gap: 10px;
    }

    .hbc-am-avatar-wrap {
        width: 90px;
        height: 90px;
    }

    .hbc-am-content {
        font-size: 0.95rem;
    }
}
