.trending-section {
    padding: 70px 0 90px;
    background: #fff;
    color: #4d3766;
}

.trending-layout {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 610px);
    gap: 80px;
    justify-content: center;
    align-items: start;
}

.trending-heading h2 {
    margin: 14px 0 0;
    color: #4d3766;
    font-size: 40px;
    font-weight: 700;
    line-height: 0.95;
}

.trending-list {
    display: grid;
    gap: 24px;
}

.trending-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.trending-number {
    color: #6a6898;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.trending-card {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) 28px;
    gap: 18px;
    align-items: center;
    min-height: 112px;
    padding: 12px 20px 12px 14px;
    border-radius: 22px;
    background: #fff;
    color: #4d3766;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.trending-item.is-active .trending-card,
.trending-card:hover {
    background: #cfeaf7;
    color: #4d3766;
    text-decoration: none;
}

.trending-card:hover {
    box-shadow: 0 14px 40px rgba(77, 55, 102, 0.1);
}

.trending-thumb {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
}

.trending-content h3 {
    margin: 0 0 8px;
    color: #4d3766;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
}

.trending-meta,
.trending-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #766b93;
    font-size: 13px;
    line-height: 1.4;
}

.trending-meta {
    margin-bottom: 8px;
}

.trending-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4d3766;
}

.audio-player {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: 52px minmax(220px, 1fr) auto minmax(280px, 360px) 42px;
    gap: 26px;
    align-items: center;
    min-height: 84px;
    padding: 17px 50px;
    background: #2a1840;
    color: #fff;
}

.audio-player[hidden] {
    display: none;
}

.audio-player-art {
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 4px;
    background: #d8d8d8;
}

.audio-player-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.audio-player-info h2,
.audio-player-info p {
    margin: 0;
    color: #fff;
    line-height: 1.45;
}

.audio-player-info h2 {
    font-size: 13px;
    font-weight: 700;
}

.audio-player-info p {
    font-size: 13px;
}

.audio-player-controls {
    display: flex;
    gap: 16px;
    align-items: center;
}

.audio-player button {
    border: 0;
    cursor: pointer;
}

.audio-skip-button {
    display: inline-flex;
    min-width: 62px;
    height: 32px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 8px;
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.audio-play-button {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    background: #fed305;
    color: #2a1840;
}

.audio-player .audio-play-icon,
.audio-player .audio-pause-icon {
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.audio-player .audio-play-icon svg,
.audio-player .audio-pause-icon svg {
    display: block;
}

.audio-player.is-playing .audio-play-icon,
.audio-player .audio-pause-icon {
    display: none;
}

.audio-player.is-playing .audio-pause-icon {
    display: inline-flex;
}

.audio-player-timeline {
    width: 100%;
}

.audio-time-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    color: #fff;
    font-size: 10px;
    line-height: 1;
}

.audio-player-timeline input[type="range"] {
    display: block;
    width: 100%;
    height: 4px;
    margin: 0;
    accent-color: #8ac8e4;
    cursor: pointer;
}

.audio-close-button {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

@media (max-width: 767px) {
    .trending-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .trending-heading h2 {
        font-size: 34px;
    }

    .trending-item {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 10px;
    }

    .trending-card {
        grid-template-columns: 76px minmax(0, 1fr);
        padding: 12px;
    }

    .trending-thumb {
        width: 76px;
        height: 76px;
    }

    .trending-arrow {
        display: none;
    }

    .trending-content h3 {
        font-size: 20px;
    }

    .audio-player {
        grid-template-columns: 36px minmax(0, 1fr) 38px;
        gap: 10px;
        min-height: 138px;
        padding: 12px 8px 14px;
    }

    .audio-player-art {
        width: 31px;
        height: 31px;
    }

    .audio-player-info {
        align-self: start;
    }

    .audio-player-info h2,
    .audio-player-info p {
        font-size: 11px;
    }

    .audio-player-timeline {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .audio-player-controls {
        grid-column: 1 / 3;
        grid-row: 3;
        gap: 18px;
    }

    .audio-skip-button {
        min-width: 54px;
        height: 28px;
        padding: 0 4px;
        font-size: 11px;
    }

    .audio-play-button {
        width: 38px;
        height: 38px;
    }

    .audio-close-button {
        grid-column: 3;
        grid-row: 3;
        width: 38px;
        height: 38px;
        justify-self: end;
    }
}
