/**
 * Hitz360 Top 10 Widget Styles
 * Homepage/Elementor widget - 7 day popular songs
 */

.top10-widget {
    width: 100%;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.top10-header {
    background: linear-gradient(135deg, rgb(218, 52, 55) 0%, #d92323 100%);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    padding: 14px 18px;
    position: relative;
}

.top10-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.85),
        rgba(255, 255, 255, 0.85) 8px,
        rgba(255, 255, 255, 0.15) 8px,
        rgba(255, 255, 255, 0.15) 16px
    );
}

.top10-list {
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.top10-card {
    display: grid;
    grid-template-columns: 46px 110px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    transition: all 0.22s ease;
}

.top10-card:hover {
    transform: translateX(3px);
    border-color: rgba(218, 52, 55, 0.35);
    box-shadow: 0 4px 12px rgba(218, 52, 55, 0.12);
}

.top10-rank {
    width: 34px;
    height: 34px;
    margin-left: 8px;
    border-radius: 50%;
    background: #f6f6f6;
    color: #a8a8a8;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top10-card:nth-child(1) .top10-rank {
    background: #da3437;
    color: #ffffff;
}

.top10-card:nth-child(2) .top10-rank {
    background: #ffd400;
    color: #1f1f1f;
}

.top10-card:nth-child(3) .top10-rank {
    background: #21a851;
    color: #ffffff;
}

.top10-image-wrap {
    width: 110px;
    height: 74px;
    border-radius: 7px;
    overflow: hidden;
    margin: 6px 0;
    background: #000;
}

.top10-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.top10-card:hover .top10-image {
    transform: scale(1.08);
}

.top10-content {
    min-width: 0;
    padding: 8px 10px 8px 0;
}

.top10-title {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top10-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.top10-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    color: #fff;
    background: linear-gradient(135deg, rgb(218, 52, 55), #d92323);
    padding: 3px 8px;
    border-radius: 999px;
}

.top10-date {
    font-size: 11px;
    color: #666;
    font-weight: 600;
}

.top10-empty {
    padding: 24px 16px;
    text-align: center;
    color: #777;
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 900px) {
    .top10-widget {
        position: relative;
        top: 0;
    }

    .top10-header {
        font-size: 21px;
        padding: 12px 14px;
    }

    .top10-card {
        grid-template-columns: 38px 95px minmax(0, 1fr);
        gap: 8px;
    }

    .top10-rank {
        width: 28px;
        height: 28px;
        font-size: 13px;
        margin-left: 6px;
    }

    .top10-image-wrap {
        width: 95px;
        height: 64px;
        margin: 5px 0;
    }

    .top10-title {
        font-size: 13px;
    }
}

@media (max-width: 560px) {
    .top10-header {
        font-size: 18px;
        padding: 10px 12px;
    }

    .top10-list {
        padding: 8px;
        gap: 8px;
    }

    .top10-card {
        grid-template-columns: 32px 82px minmax(0, 1fr);
    }

    .top10-rank {
        width: 24px;
        height: 24px;
        font-size: 11px;
        margin-left: 5px;
    }

    .top10-image-wrap {
        width: 82px;
        height: 58px;
    }

    .top10-title {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .top10-badge,
    .top10-date {
        font-size: 9px;
    }
}
