/* =============================================
   Radio 90 Hit — Top 10 Most Requested v1.0
   Grid layout: featured #1 + 3-col grid #2-10
   Purple/pink theme matching existing design
   ============================================= */

.r90t10-wrap {
    max-width: 720px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.r90t10-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 80, 180, 0.08), rgba(160, 60, 255, 0.06));
    border: 1px solid rgba(255, 80, 180, 0.15);
    border-radius: 16px;
}

.r90t10-header-icon {
    font-size: 2rem;
    line-height: 1;
}

.r90t10-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ff80b4, #c060ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.r90t10-subtitle {
    margin: 2px 0 0;
    font-size: 0.82rem;
    color: #a0a4b8;
}

/* =============================================
   FEATURED #1 — large card
   ============================================= */

.r90t10-featured {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(160, 40, 200, 0.12), rgba(80, 20, 140, 0.08));
    border: 1px solid rgba(200, 80, 255, 0.2);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}

.r90t10-featured::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 80, 180, 0.08), transparent 60%);
    pointer-events: none;
}

.r90t10-featured-cover-wrap {
    position: relative;
    flex-shrink: 0;
}

.r90t10-featured-cover {
    width: 140px;
    height: 140px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(200, 80, 255, 0.3);
}

.r90t10-featured-glow {
    position: absolute;
    inset: -8px;
    border-radius: 20px;
    background: radial-gradient(circle, rgba(200, 80, 255, 0.2), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.r90t10-featured-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.r90t10-featured-artist {
    font-weight: 900;
    font-size: 1.15rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.r90t10-featured-title {
    font-size: 0.9rem;
    color: #c0a8d8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.r90t10-featured-stats {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.r90t10-featured-stat {
    font-size: 0.78rem;
    font-weight: 600;
    color: #e8a0d0;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255, 80, 180, 0.1);
    border: 1px solid rgba(255, 80, 180, 0.2);
}

.r90t10-featured-pos {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 900;
    color: #ff80b4;
    background: rgba(255, 80, 180, 0.12);
    border: 2px solid rgba(255, 80, 180, 0.3);
    border-radius: 50%;
    text-shadow: 0 0 10px rgba(255, 80, 180, 0.4);
}

/* =============================================
   GRID #2-10
   ============================================= */

.r90t10-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 1rem;
}

.r90t10-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.r90t10-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(200, 80, 255, 0.2);
    transform: translateY(-2px);
}

/* Position badge */
.r90t10-card-pos {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #e0d0f0;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 50%;
    z-index: 2;
    backdrop-filter: blur(4px);
}

/* Cover */
.r90t10-card-cover-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    border-radius: 12px 12px 0 0;
    background: rgba(0,0,0,0.3);
}

.r90t10-card-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.r90t10-card:hover .r90t10-card-cover {
    transform: scale(1.05);
}

/* Info */
.r90t10-card-info {
    padding: 8px 10px 4px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.r90t10-card-artist {
    font-weight: 700;
    font-size: 0.76rem;
    color: #e8e0f4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.r90t10-card-title {
    font-size: 0.68rem;
    color: #8088a4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Stats */
.r90t10-card-stats {
    padding: 4px 10px 8px;
    display: flex;
    gap: 8px;
    font-size: 0.65rem;
    color: #7a7e94;
}

/* Footer */
.r90t10-footer {
    text-align: center;
    padding: 0.75rem;
}

.r90t10-footer-text {
    font-size: 0.72rem;
    color: #5a5e74;
}

/* Empty */
.r90t10-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7080;
    font-size: 0.9rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 580px) {
    .r90t10-wrap {
        margin: 1rem 0.5rem;
    }

    .r90t10-featured {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 1rem;
    }

    .r90t10-featured-cover {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        max-width: 200px;
        margin: 0 auto;
    }

    .r90t10-featured-cover-wrap {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .r90t10-featured-pos {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .r90t10-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .r90t10-card-artist {
        font-size: 0.7rem;
    }

    .r90t10-card-title {
        font-size: 0.62rem;
    }

    .r90t10-card-stats {
        font-size: 0.6rem;
        padding: 3px 8px 6px;
    }
}

@media (max-width: 360px) {
    .r90t10-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .r90t10-card,
    .r90t10-card-cover {
        transition: none !important;
    }
}
