/* ===== Artist hero header ===== */

.artist-hero {
    width: 100%;
    min-height: 35vh;
    background: linear-gradient(to bottom, var(--hero-color) 0%, #121212 100%);
    display: flex;
    align-items: flex-end;
    padding: 0 48px 2rem;
    box-sizing: border-box;
}

.artist-hero-inner {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    max-width: 1100px;
    width: 100%;
}

.artist-hero-inner img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.artist-hero-inner .avatar-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--color-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.artist-hero-text {
    display: flex;
    flex-direction: column;
    padding-bottom: 0.25em;
}

.artist-hero-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.artist-hero-text .browse-headline {
    margin: 0.2em 0 0.75em;
}

.artist-hero-text .shuffle-buttons {
    display: flex;
    gap: 0.5em;
}

/* ===== Browse layout (artist + show pages) ===== */

.browse-content {
    padding: 32px 48px;
    max-width: 1100px;
}

.browse-content.browse-content--hero {
    padding-top: 32px;
}

.browse-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5em;
}

.browse-header img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
}

.browse-header .avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--color-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    font-weight: 700;
    flex-shrink: 0;
}

.browse-header-text {
    display: flex;
    flex-direction: column;
    padding-top: 0.25em;
}

.browse-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.browse-headline {
    color: var(--color-muted);
    margin-bottom: 1.5em;
}

.browse-header-text .browse-headline {
    margin: 0.2em 0 0.75em;
}

.browse-header-text .shuffle-buttons {
    display: flex;
    gap: 0.5em;
}

.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 0.5em;
}

.breadcrumb a {
    color: var(--color-teal);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ===== Section headers ===== */

.browse-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.5em 0 0.75em;
    color: var(--color-text);
}

/* ===== Card grid ===== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1em;
}

.media-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--color-text);
    background: var(--color-surface);
    border-radius: 8px;
    overflow: hidden;
    transition: background 0.15s;
}

.media-card:hover {
    background: var(--color-card-hover);
}

.card-cover {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.card-icon {
    width: 100%;
    aspect-ratio: 1;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    width: 48px;
    height: 48px;
    opacity: 0.6;
}

.cover-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--color-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
}

.card-info {
    padding: 0.5em;
    width: 100%;
    box-sizing: border-box;
}

.card-info h4 {
    margin: 0 0 0.25em;
    font-size: 0.8em;
    color: #eee;
}

.card-info .smaller {
    font-size: 0.7em;
    color: var(--color-muted);
    margin-bottom: 0;
}

.card-info .parens {
    color: #777;
    font-weight: 400;
}

/* ===== Card section (single-row with nav) ===== */

.card-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-section-header h3 {
    margin: 1.5em 0 0.75em;
}

.card-nav {
    display: flex;
    gap: 0.25em;
}

.card-nav-btn {
    background: var(--color-surface);
    border: none;
    color: var(--color-text);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    line-height: 1;
}

.card-nav-btn:hover {
    background: var(--color-card-hover);
}

.card-row {
    overflow: hidden;
}

.card-row .card-grid {
    display: flex;
    gap: 1em;
    flex-wrap: nowrap;
}

.card-row .media-card {
    flex: 0 0 calc((100% - 4em) / 5);
    min-width: 140px;
}

/* ===== Action button ===== */

.action-btn {
    display: inline-block;
    background: var(--color-blue);
    color: #fff;
    text-decoration: none;
    padding: 0.5em 1.25em;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9em;
    margin-top: 0.5em;
    transition: opacity 0.15s;
}

.action-btn:hover {
    opacity: 0.85;
    color: #fff;
}

/* ===== Mobile ===== */

@media (max-width: 768px) {
    .browse-content {
        padding: 16px 20px;
        padding-top: 16px;
    }

    .browse-header {
        flex-direction: column;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-row .media-card {
        flex: 0 0 calc((100% - 1em) / 2);
        min-width: 0;
    }

    .artist-hero {
        min-height: 25vh;
        padding: 0 20px 1.5rem;
    }

    .artist-hero-inner img,
    .artist-hero-inner .avatar-placeholder {
        width: 100px;
        height: 100px;
    }

    .artist-hero-inner .avatar-placeholder {
        font-size: 2em;
    }

    .artist-hero-text h1 {
        font-size: 1.75rem;
    }

    .browse-content.browse-content--hero {
        padding-top: 16px;
    }
}
