/**
 * Artists / Roster — premium mobile-first grid & cards
 */

.roster-page {
    overflow-x: hidden;
    --roster-bg: #05070c;
    --roster-surface: #090d16;
    --roster-accent: #00e5ff;
    --roster-border: rgba(0, 255, 255, 0.12);
    --roster-glow: 0 0 30px rgba(0, 255, 255, 0.08);
    --roster-gap: 14px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

.roster-page .roster-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 12px 32px;
}

@media (min-width: 992px) {
    .roster-page .roster-container {
        padding: 24px 32px 48px;
    }
}

/* Header — tighter on mobile */
.roster-page .artists-header {
    padding: 28px 0 20px;
}

.roster-page .artists-header h1 {
    font-size: clamp(1.75rem, 6vw, 3.5rem);
    letter-spacing: -0.03em;
}

.roster-page .artists-header p {
    font-size: clamp(0.85rem, 2.5vw, 1rem);
}

/* Layout */
.roster-page .layout-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.roster-page .sidebar-wrapper {
    width: 280px;
    flex-shrink: 0;
}

.roster-page .results-wrapper {
    flex: 1;
    min-width: 0;
    width: 100%;
}

@media (min-width: 992px) {
    .roster-page .results-wrapper {
        width: calc(100% - 304px);
    }
}

/* ── CSS Grid: 2 cols mobile, 3 tablet, 4+ desktop ── */
.roster-page .roster-grid {
    display: grid;
    gap: var(--roster-gap);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
}

@media (min-width: 768px) {
    .roster-page .roster-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .roster-page .roster-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1440px) {
    .roster-page .roster-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.roster-page .roster-grid-item {
    min-width: 0;
    animation: rosterFadeUp 0.5s ease backwards;
}

@keyframes rosterFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Artist card (compact mobile) ── */
.roster-page .artist-card {
    background: linear-gradient(180deg, #05070c, #090d16);
    border-radius: 24px;
    border: 1px solid var(--roster-border);
    box-shadow: var(--roster-glow);
    padding: 36px 12px 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1),
        box-shadow 220ms ease, border-color 220ms ease;
}

@media (min-width: 768px) {
    .roster-page .artist-card {
        border-radius: 26px;
        padding: 42px 16px 20px;
    }
}

.roster-page .artist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: var(--roster-accent);
    filter: blur(60px);
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

.roster-page .artist-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 255, 255, 0.28);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.14), 0 16px 40px rgba(0, 0, 0, 0.45);
}

.roster-page .artist-card:active {
    transform: scale(0.98);
}

/* Avatar + neon ring */
.roster-page .artist-avatar-wrap {
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.5), rgba(0, 229, 255, 0.05));
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
}

.roster-page .artist-avatar {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.4);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

@media (min-width: 768px) {
    .roster-page .artist-avatar {
        width: 130px;
        height: 130px;
    }
    .roster-page .artist-avatar-wrap {
        margin-bottom: 16px;
    }
}

.roster-page .artist-card:hover .artist-avatar {
    transform: scale(1.03);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.25);
}

/* Typography */
.roster-page .artist-name {
    font-size: clamp(16px, 4vw, 22px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 4px;
    color: #fff;
}

.roster-page .artist-role {
    font-size: clamp(11px, 2.5vw, 12px);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--roster-accent);
    margin-bottom: 8px;
    display: block;
}

.roster-page .artist-tag,
.roster-page .artist-card .badge {
    font-size: 10px !important;
    font-weight: 600;
    padding: 4px 8px !important;
    border-radius: 999px !important;
}

@media (min-width: 768px) {
    .roster-page .artist-tag,
    .roster-page .artist-card .badge {
        font-size: 11px !important;
    }
}

.roster-page .artist-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
    min-width: 0;
}

.roster-page .status-badge {
    top: 10px;
    font-size: 9px;
    padding: 4px 10px;
}

@media (min-width: 768px) {
    .roster-page .status-badge {
        font-size: 0.7rem;
        padding: 6px 14px;
        top: 15px;
    }
}

.roster-page .social-dock {
    margin: 10px 0;
    gap: 6px;
}

.roster-page .social-dock a {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    .roster-page .social-dock a {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* Profile CTA */
.roster-page .btn-profile {
    width: 100%;
    min-height: 44px;
    height: auto;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff !important;
    color: #000 !important;
    font-size: clamp(12px, 3vw, 14px);
    font-weight: 700;
    border: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
    margin-top: auto;
}

@media (min-width: 768px) {
    .roster-page .btn-profile {
        min-height: 48px;
        padding: 12px 20px;
    }
}

.roster-page .btn-profile:hover {
    background: #fff !important;
    color: #000 !important;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.roster-page .btn-profile:active {
    transform: scale(0.97);
}

/* Mobile filters — slide-down panel */
.roster-page .mobile-filter-btn {
    display: none;
}

@media (max-width: 991.98px) {
    .roster-page .layout-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .roster-page .mobile-filter-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 8px;
        background: rgba(9, 13, 22, 0.95);
        border: 1px solid var(--roster-border);
        color: #fff;
        padding: 12px 16px;
        border-radius: 14px;
        font-weight: 600;
        font-size: 15px;
        margin-bottom: 0;
        position: sticky;
        top: 8px;
        z-index: 99;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        transition: border-color 220ms ease, box-shadow 220ms ease;
    }

    .roster-page .mobile-filter-btn[aria-expanded="true"] {
        border-color: rgba(0, 229, 255, 0.35);
        box-shadow: var(--roster-glow);
    }

    .roster-page .sidebar-wrapper {
        position: static;
        left: auto;
        width: 100%;
        height: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
        padding: 0;
        box-shadow: none;
    }

    .roster-page .sidebar-wrapper.show {
        max-height: min(85vh, 3200px);
    }

    .roster-page .sidebar-wrapper.show + .results-wrapper {
        margin-top: 4px;
    }

    .roster-page .filter-panel {
        border-radius: 0 0 20px 20px;
        border-top: none;
        margin-top: -4px;
        padding-bottom: 24px !important;
        min-height: 0;
    }

    .roster-page .filter-overlay {
        display: none !important;
    }

    .roster-page .results-wrapper {
        width: 100%;
    }
}

.roster-page #emptyStateMsg {
    grid-column: 1 / -1;
}
