/**
 * Hitz360 Recommended Songs Widget Styles
 * Homepage/Elementor widget (not sidebar)
 */

.recommended-songs-widget {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.recommended-songs-header {
    background: rgb(218, 52, 55);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 18px;
    position: relative;
}

.recommended-songs-header::after {
    content: "";
    display: block;
    height: 4px;
    width: 100%;
    background: repeating-linear-gradient(
        -45deg,
        #d92323,
        #d92323 8px,
        transparent 8px,
        transparent 16px
    );
    position: absolute;
    left: 0;
    bottom: -4px;
}

.recommended-songs-grid {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.recommended-song-card {
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.recommended-song-card::before {
    content: "";
    display: block;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, rgb(218, 52, 55), #d92323);
}

.recommended-song-card:hover {
    transform: translateY(-2px);
    border-color: rgba(218, 52, 55, 0.35);
    box-shadow: 0 4px 12px rgba(218, 52, 55, 0.12);
}

.recommended-song-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.recommended-song-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommended-song-card:hover .recommended-song-image {
    transform: scale(1.06);
}

.recommended-song-content {
    padding: 10px 12px 12px;
}

.recommended-song-title {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #000;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommended-song-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.recommended-song-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, rgb(218, 52, 55), #d92323);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 3px 8px;
    border-radius: 999px;
    line-height: 1;
}

.recommended-song-date {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: rgb(218, 52, 55);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.recommended-songs-empty {
    padding: 26px 18px;
    text-align: center;
    color: #777;
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .recommended-songs-header {
        font-size: 20px;
        padding: 12px 14px;
    }

    .recommended-songs-grid {
        padding: 12px;
        gap: 10px;
        grid-template-columns: 1fr;
    }

    .recommended-song-card {
        display: flex;
        align-items: center;
        gap: 10px;
        border-radius: 7px;
    }

    .recommended-song-card::before {
        width: 3px;
        height: 100%;
        flex-shrink: 0;
    }

    .recommended-song-image-wrap {
        width: 96px;
        min-width: 96px;
        height: 66px;
        aspect-ratio: auto;
        border-radius: 6px;
        margin-left: 1px;
    }

    .recommended-song-content {
        padding: 8px 10px 8px 0;
        flex: 1;
        min-width: 0;
    }

    .recommended-song-title {
        font-size: 13px;
        margin-bottom: 5px;
        -webkit-line-clamp: 2;
    }

    .recommended-song-tag {
        font-size: 9px;
        padding: 2px 7px;
    }

    .recommended-song-date {
        font-size: 10px;
    }
}

@media (max-width: 560px) {
    .recommended-song-image-wrap {
        width: 88px;
        min-width: 88px;
        height: 62px;
    }

    .recommended-song-title {
        font-size: 12px;
    }
}
