/* Vista artista — ancho alineado con .encabezado-flotante (1350px) */

.page-artista .contenedor-principal.artista-page {
    max-width: 1350px;
    width: 100%;
    margin: 1rem auto 0;
    padding: 0 0 4rem;
}

.artista-page {
    box-sizing: border-box;
}

.xylo-volver-top {
    padding-left: 2rem;
    padding-right: 2rem;
    margin-bottom: 0.75rem;
    box-sizing: border-box;
}

.artista-hero-wrap {
    position: relative;
    width: 100%;
    margin: 0 0 2rem;
    min-height: 300px;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.artista-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 20%;
    filter: blur(48px) brightness(0.35);
    transform: scale(1.1);
}

.artista-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(18, 18, 18, 0.6) 45%,
        var(--color-fondo) 100%
    );
}

.artista-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
    padding: 5rem 2rem 1.6rem;
    box-sizing: border-box;
}

.artista-avatar {
    width: clamp(160px, 18vw, 220px);
    height: clamp(160px, 18vw, 220px);
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65);
    background: var(--color-tarjeta);
}

.artista-hero-text {
    flex: 1 1 280px;
    min-width: 0;
    padding-bottom: 4px;
}

.artista-hero-text h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    color: var(--color-texto-principal);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.artista-meta-line {
    font-size: 0.9rem;
    color: var(--color-texto-secundario);
    margin: 0 0 0.75rem;
}

.artista-meta-line strong {
    color: var(--color-texto-principal);
    font-weight: 600;
}

.artista-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.5rem;
}

.page-artista .artista-actions .pill-deezer {
    background: transparent;
    border: 1px solid var(--color-acento-purpura, #8a2be2);
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-artista .artista-actions .btn-streaming-plataforma.pill-deezer {
    background-color: transparent;
}

.page-artista .artista-actions .btn-streaming-plataforma.pill-deezer:hover {
    filter: none;
}

.artista-mining {
    font-size: 0.8rem;
    color: var(--color-acento-purpura);
}

.artista-seccion {
    margin-top: 2.5rem;
    width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
}

.page-artista .artista-seccion .titulo-separador {
    margin-top: 0;
}

.artista-popular-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
}

.artista-popular-row {
    display: grid;
    grid-template-columns: 36px 52px minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background 0.12s ease;
}

.artista-popular-row:hover {
    background: rgba(97, 56, 168, 0.12);
}

.artista-popular-row .idx {
    text-align: right;
    font-size: 0.95rem;
    color: var(--color-texto-secundario);
    font-variant-numeric: tabular-nums;
}

.artista-popular-row img {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    object-fit: cover;
}

.artista-popular-row .titles h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-texto-principal);
    font-weight: 600;
}

.artista-popular-row .titles p {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: var(--color-texto-secundario);
}

/* Discografía: .carrusel-wrapper + .galeria-items (home.css) */
.page-artista .artista-seccion .carrusel-wrapper {
    width: 100%;
    gap: 0.5rem;
}

.page-artista .artista-seccion .galeria-items {
    flex: 1;
    width: 100%;
    justify-content: flex-start;
}

.page-artista .btn-carrusel:hover {
    color: var(--color-acento-purpura);
}

.artista-canciones-bloque {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    width: 100%;
    padding: 1px;
    background: var(--color-borde);
    border-radius: 12px;
    overflow: hidden;
}

.artista-song-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    min-width: 0;
    background: var(--color-tarjeta);
    border: none;
}

.artista-song-cell-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.artista-song-cell-main:hover .artista-song-titulo {
    color: var(--color-acento-purpura);
}

.artista-song-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--color-fondo);
}

.artista-song-textos {
    flex: 1;
    min-width: 0;
}

.artista-song-titulo {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-texto-principal);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.12s ease;
}

.artista-song-meta {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    color: var(--color-texto-secundario);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artista-song-more {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--color-acento-purpura);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.12s ease, color 0.12s ease;
}

.artista-song-more:hover,
.artista-song-more:focus-visible {
    background: rgba(97, 56, 168, 0.2);
    color: var(--color-acento-purpura);
    outline: none;
}

.artista-error {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-texto-secundario);
}

@media (max-width: 1024px) {
    .page-artista .contenedor-principal.artista-page {
        padding: 0 0 3.5rem;
    }

    .xylo-volver-top {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .artista-seccion {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .artista-hero-wrap {
        border-radius: 20px;
    }

    .artista-hero-inner {
        padding: 4.5rem 1rem 1.4rem;
    }

    .artista-canciones-bloque {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .artista-hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: center;
        padding-top: 4rem;
    }

    .artista-actions {
        justify-content: center;
    }

    .artista-popular-row {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 0.75rem;
    }

    .artista-popular-row .idx {
        display: none;
    }

    .artista-canciones-bloque {
        grid-template-columns: 1fr;
    }
}

/* ── Sección bio ── */
.artista-bio-seccion {
    margin-top: 0.5rem;
}

.artista-bio-card {
    background: var(--color-tarjeta, #1e1e1e);
    border: 1px solid var(--color-borde, #333);
    border-radius: 16px;
    padding: 1.75rem 2rem;
}

.artista-bio-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.artista-bio-texto {
    color: var(--color-texto-secundario, #aaa);
    font-size: 0.95rem;
    line-height: 1.75;
    margin: 0;
    max-width: 820px;
}

/* Estado vacío */
.artista-bio-vacia {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.bio-vacia-icono {
    font-size: 1.4rem;
    color: var(--color-acento-purpura, #6138a8);
    flex-shrink: 0;
    line-height: 1;
}

.artista-bio-vacia .artista-bio-texto {
    font-style: italic;
}


/* Skeleton loading */
.artista-bio-loading-wrap {
    padding: 0 2rem 1rem;
}

.artista-bio-skeleton {
    background: var(--color-tarjeta, #1e1e1e);
    border: 1px solid var(--color-borde, #333);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bio-skeleton-line {
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: bio-shimmer 1.4s infinite;
}

.bio-sk-long  { width: 92%; }
.bio-sk-medium { width: 72%; }
.bio-sk-short  { width: 48%; }

@keyframes bio-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (max-width: 1024px) {
    .artista-bio-card {
        padding: 1.25rem 1.25rem;
    }
    .artista-bio-loading-wrap {
        padding: 0 1rem 1rem;
    }
}

@media (max-width: 640px) {
    .artista-bio-card {
        border-radius: 12px;
        padding: 1rem;
    }
    .artista-bio-skeleton {
        border-radius: 12px;
        padding: 1rem;
    }
}
