/* =========================================================
   CS DASHBOARD — "GLOBAL" LAYOUT CONTENT
   Scoped to .cs-artist-main so it never leaks.
   Uses ConincStudio brand palette exclusively.
   ❌ No !important. No layout props that override core.
   ========================================================= */

.cs-artist-main {
    /* Brand tokens — local to content area */
    --cs-gold:        #F5B301;
    --cs-gold-soft:   #FEC503;
    --cs-gold-royal:  #D4AF37;
    --cs-orange:      #FF8C42;
    --cs-purple:      #9D4DFF;
    --cs-teal:        #00E6D7;

    --cs-bg:          #120A1F;
    --cs-surface:     #1B1333;
    --cs-footer-bg:   #0F0A1A;

    --cs-text:        #FFFFFF;
    --cs-text-muted:  #EEEEEE;
    --cs-text-dim:    #BBBBBB;

    --cs-radius:      16px;
    --cs-radius-lg:   22px;
    --cs-ease:        cubic-bezier(0.4, 0, 0.2, 1);

    color: var(--cs-text);
    background: var(--cs-bg);
}

/* =========================================================
   HERO — handled by partial, but add safety visuals
   ========================================================= */

.cs-artist-main .cs-dashboard-hero {
    background: linear-gradient(135deg, #120A1F, #1B1333);
    border: 1px solid rgba(245, 179, 1, 0.08);
    border-radius: var(--cs-radius-lg);
    position: relative;
    overflow: hidden;
}

.cs-artist-main .cs-dashboard-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(245, 179, 1, 0.14), transparent 55%),
        radial-gradient(circle at 85% 90%, rgba(157, 77, 255, 0.10), transparent 55%);
    pointer-events: none;
}

/* =========================================================
   STATS GRID — 4-card row
   ========================================================= */

.cs-artist-main .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

@media (max-width: 1024px) {
    .cs-artist-main .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cs-artist-main .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.cs-artist-main .card {
    background: var(--cs-surface);
    border: 1px solid rgba(245, 179, 1, 0.06);
    border-radius: var(--cs-radius);
    padding: 22px 20px;

    position: relative;
    overflow: hidden;

    transition: all 0.3s var(--cs-ease);
}

.cs-artist-main .card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(157, 77, 255, 0.05), transparent 70%);
    pointer-events: none;
}

.cs-artist-main .card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 179, 1, 0.20);
    box-shadow: 0 10px 30px rgba(157, 77, 255, 0.12);
}

.cs-artist-main .card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 10px;
}

.cs-artist-main .card-title i {
    color: var(--cs-gold);
    font-size: 0.85rem;
}

.cs-artist-main .card-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;

    background: linear-gradient(90deg, #F5B301, #FEC503);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cs-artist-main .card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}

.cs-artist-main .card-meta .badge {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(34, 166, 94, 0.12);
    color: #22A65E;
    border: 1px solid rgba(34, 166, 94, 0.25);
}

/* =========================================================
   PLAYER SECTION
   ========================================================= */

.cs-artist-main .cs-artist-player {
    background: linear-gradient(135deg, #120A1F, #1B1333);
    border: 1px solid rgba(245, 179, 1, 0.08);
    border-radius: var(--cs-radius-lg);
    padding: 24px;
    margin-bottom: 32px;

    position: relative;
    overflow: hidden;
}

.cs-artist-main .cs-artist-player::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 179, 1, 0.08), transparent 60%);
    pointer-events: none;
}

.cs-artist-main .cs-artist-player h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cs-text);
    margin: 0 0 18px;
    position: relative;
    z-index: 1;
}

.cs-artist-main .cs-player-box {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Waveform */
.cs-artist-main #cs-waveform {
    height: 90px;
    background: rgba(10, 6, 18, 0.6);
    border: 1px solid rgba(245, 179, 1, 0.06);
    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: rgba(255, 255, 255, 0.25);
    font-size: 0.82rem;

    position: relative;
    overflow: hidden;
}

.cs-artist-main #cs-waveform::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #F5B301, #FF8C42, #9D4DFF);
    opacity: 0.55;
}

/* Audio player bar */
.cs-artist-main .cs-audio-player {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;

    background: rgba(10, 6, 18, 0.55);
    border: 1px solid rgba(245, 179, 1, 0.06);
    border-radius: 12px;
    padding: 12px 16px;
}

/* Play button */
.cs-artist-main .play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;

    background: linear-gradient(90deg, #F5B301, #FF8C42);
    color: #120A1F;
    font-size: 1rem;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    box-shadow: 0 4px 18px rgba(245, 179, 1, 0.25);
    transition: all 0.3s var(--cs-ease);
}

.cs-artist-main .play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 28px rgba(245, 179, 1, 0.4);
}

/* Track info */
.cs-artist-main .track-info {
    flex: 1;
    min-width: 140px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--cs-text-muted);
}

/* Progress bar */
.cs-artist-main .progress {
    flex: 2;
    height: 5px;
    min-width: 100px;

    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
    cursor: pointer;
}

.cs-artist-main .progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #F5B301, #FF8C42);
    border-radius: 999px;
    transition: width 0.1s linear;
}

/* =========================================================
   TRACKS GRID
   ========================================================= */

.cs-artist-main > section > h2 {
    color: var(--cs-text) !important; /* override inline #1e293b */
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 18px;
}

.cs-artist-main .cs-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* Track card */
.cs-artist-main .cs-track-card {
    background: linear-gradient(135deg, #120A1F, #1B1333);
    border: 1px solid rgba(245, 179, 1, 0.06);
    border-radius: var(--cs-radius);
    padding: 16px;

    position: relative;
    overflow: hidden;

    transition: all 0.3s var(--cs-ease);
}

.cs-artist-main .cs-track-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(157, 77, 255, 0.06), transparent 70%);
    pointer-events: none;
}

.cs-artist-main .cs-track-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 179, 1, 0.25);
    box-shadow: 0 14px 32px rgba(157, 77, 255, 0.15);
}

.cs-artist-main .cs-track-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.cs-artist-main .cs-track-card .title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cs-text);
    margin-bottom: 4px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-artist-main .cs-track-card .meta {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

/* Card-level mini player */
.cs-artist-main .cs-track-card .cs-audio-player {
    padding: 8px 10px;
    gap: 10px;
}

.cs-artist-main .cs-track-card .play-btn {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
}

.cs-artist-main .cs-track-card .track-info {
    font-size: 0.75rem;
    min-width: 0;
}

/* Actions row */
.cs-artist-main .cs-track-card .actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.cs-artist-main .cs-track-card .view-product,
.cs-artist-main .cs-track-card .btn-gold {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s var(--cs-ease);
}

.cs-artist-main .cs-track-card .view-product {
    background: transparent;
    border: 1px solid rgba(157, 77, 255, 0.35);
    color: var(--cs-purple);
}

.cs-artist-main .cs-track-card .view-product:hover {
    background: rgba(157, 77, 255, 0.10);
    border-color: var(--cs-purple);
    box-shadow: 0 0 16px rgba(157, 77, 255, 0.25);
}

.cs-artist-main .cs-track-card .btn-gold {
    background: linear-gradient(90deg, #F5B301, #FF8C42);
    color: #120A1F;
    border: none;
}

.cs-artist-main .cs-track-card .btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 179, 1, 0.35);
}

/* Empty state */
.cs-artist-main .cs-project-grid .card {
    padding: 3rem 2rem;
    text-align: center;
}

.cs-artist-main .cs-project-grid .card h3 {
    font-size: 1.15rem;
    color: var(--cs-text);
    margin: 0 0 8px;
}

.cs-artist-main .cs-project-grid .card .text-muted {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
    margin: 0;
}

.cs-artist-main .cs-project-grid .Btn.Btn-primary {
    margin-top: 16px;
    padding: 10px 22px;
    border-radius: 12px;
    border: none;
    cursor: pointer;

    background: linear-gradient(90deg, #F5B301, #FF8C42);
    color: #120A1F;
    font-weight: 700;
    font-size: 0.88rem;

    transition: all 0.3s var(--cs-ease);
}

.cs-artist-main .cs-project-grid .Btn.Btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(245, 179, 1, 0.35);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
    .cs-artist-main .cs-artist-player {
        padding: 18px;
    }

    .cs-artist-main .cs-audio-player {
        gap: 12px;
        padding: 10px 12px;
    }

    .cs-artist-main .play-btn {
        width: 38px;
        height: 38px;
    }

    .cs-artist-main .cs-project-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 14px;
    }
}