body {
    background-color: #030303;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
}

/* --- FONDO DINÁMICO (HORIZONTAL / VERTICAL) --- */
#bg-cover,
#bg-cover-2 {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: opacity 1.2s ease-in-out, background-image 0.8s ease-in-out;
    will-change: opacity, background-image;
}

#bg-cover-2 {
    opacity: 0;
}

/* --- TOP ARTISTAS (SOLO EN HORIZONTAL) --- */
#top-artists-card {
    display: none;
    width: min(15rem, calc(100vw - 1rem));
    right: 0.75rem;
    bottom: 0.75rem;
}

#top-artists-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.artist-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.25rem 0.1rem;
    color: #f4f4f5;
}

.artist-rank {
    min-width: 1.5rem;
    font-size: clamp(0.9rem, 1vw + 0.55rem, 1.1rem);
    font-weight: 700;
    color: #d4d4d8;
    text-align: center;
}

.artist-avatar {
    width: clamp(2.5rem, 5vw, 3.4rem);
    height: clamp(2.5rem, 5vw, 3.4rem);
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 18px rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.artist-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.artist-name-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.artist-name {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f5f5f5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-badge {
    font-size: 0.72rem;
    color: #a1a1aa;
    margin-top: 0.12rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-trend {
    width: 0.7rem;
    height: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    font-size: 0.5rem;
    border-radius: 0.2rem;
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.artist-trend.trend-up {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.35);
}

.artist-trend.trend-down {
    background: rgba(244, 63, 94, 0.18);
    color: #fb7185;
    box-shadow: 0 0 0 1px rgba(251, 113, 133, 0.35);
}

@media (orientation: landscape) {
    #top-artists-card {
        display: flex;
    }
}

@media (max-width: 640px) {
    #top-artists-card {
        width: min(13.25rem, calc(100vw - 0.8rem));
        right: 0.5rem;
        bottom: 0.5rem;
    }
}

@media (min-width: 1024px) {
    #top-artists-card {
        width: min(17rem, 22vw);
    }
}

/* Efecto sutil de brillo para elementos interactivos */
.group:hover {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.05);
}

#spotify-progress-bar {
    will-change: width;
}

#profile-decoration {
    width: 126% !important;
    height: 126% !important;
    top: -16% !important;
    left: -13% !important;
    max-width: none !important;
    pointer-events: none;
}

.profile-status-bubble::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.45rem;
    width: 0.7rem;
    height: 0.7rem;
    background: rgba(9, 11, 17, 0.95);
    transform: translateX(-50%) rotate(45deg);
    border-right: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-bottom-right-radius: 0.2rem;
}

#profile-avatar-bubble {
    position: relative;
    filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.22));
}

#discord-activity-header {
    min-width: 0;
}

#discord-activity-title,
#discord-activity-detail {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#discord-custom-status {
    max-width: min(17rem, 75vw);
}

#discord-card {
    min-height: 112px;
}

#discord-activity-asset-box img {
    display: block;
}

#discord-card .flex-grow.min-w-0 {
    min-height: 0;
}