/* —— Sanatçı / parça hub modalı —— */
.dash-modal--artist .dash-modal__backdrop,
.dash-modal--track .dash-modal__backdrop {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.dash-modal--artist .dash-modal__panel,
.dash-modal--track .dash-modal__panel {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: #181818;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 -0.35rem 2rem rgba(0, 0, 0, 0.45),
        0 1.5rem 3rem rgba(0, 0, 0, 0.35);
}

.dash-modal__handle {
    display: block;
    width: 2.5rem;
    height: 0.22rem;
    margin: 0.55rem auto 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
}

.dash-modal--artist .dash-modal__close,
.dash-modal--track .dash-modal__close {
    top: 0.55rem;
    right: 0.65rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: var(--sp-text, #fff);
    font-size: 0;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.dash-modal--artist .dash-modal__close:hover,
.dash-modal--artist .dash-modal__close:focus-visible,
.dash-modal--track .dash-modal__close:hover,
.dash-modal--track .dash-modal__close:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.dash-modal__hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 0.9rem;
    padding: 0.35rem 1rem 1rem;
    padding-right: 3rem;
    overflow: hidden;
    flex-shrink: 0;
}

.dash-modal__hero::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto;
    height: 120%;
    background-image: var(--artist-modal-art);
    background-size: cover;
    background-position: center;
    filter: blur(42px) saturate(1.15);
    opacity: 0.42;
    pointer-events: none;
}

.dash-modal__hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(24, 24, 24, 0.15) 0%,
        rgba(24, 24, 24, 0.72) 58%,
        #181818 100%
    );
    pointer-events: none;
}

.dash-modal__hero.is-loading::before {
    opacity: 0;
}

.dash-modal__hero-art {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 4.75rem;
    height: 4.75rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow:
        0 0.65rem 1.5rem rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

.dash-modal__hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dash-modal__hero-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    flex: 1;
}

.dash-modal__eyebrow {
    margin: 0 0 0.2rem;
    font-family: "DM Mono", monospace;
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sp-text-sub, #b3b3b3);
}

.dash-modal--artist .dash-modal__title,
.dash-modal--track .dash-modal__title {
    margin: 0;
    padding: 0;
    font-family: "Inter", system-ui, sans-serif;
    font-size: clamp(1.2rem, 5vw, 1.45rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-wrap: balance;
    word-break: break-word;
    color: var(--sp-text, #fff);
}

.dash-modal__subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.86rem;
    line-height: 1.35;
}

.dash-modal__meta {
    margin: 0.2rem 0 0;
    font-size: 0.76rem;
}

.dash-modal__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.dash-modal__fact {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    font-family: "DM Mono", monospace;
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    color: var(--sp-text-sub, #b3b3b3);
}

.dash-modal__actions {
    margin-bottom: 1rem;
}

.dash-modal--track .dash-modal__hero::before {
    background-image: var(--track-modal-art);
}

.page--spotify .dash-row--modal-track.dash-row--track-btn {
    cursor: pointer;
}

.dash-modal__genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.55rem;
}

.dash-modal__genre {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    font-family: "DM Mono", monospace;
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sp-text-sub, #b3b3b3);
}

.dash-modal__body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0 1rem calc(1rem + env(safe-area-inset-bottom));
}

.dash-modal__section + .dash-modal__section {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.dash-modal__section-title {
    margin: 0 0 0.55rem;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--sp-text, #fff);
}

.dash-track-list--modal {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dash-row--modal-track {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.dash-row--modal-track .dash-rank {
    color: var(--sp-text-sub, #b3b3b3);
}

.dash-row--modal-track:nth-child(-n+3) .dash-rank {
    color: var(--sp-accent, #1db954);
}

.dash-row--skeleton {
    pointer-events: none;
}

.dash-modal__skel {
    display: block;
    border-radius: 0.35rem;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: dash-modal-skel 1.1s ease-in-out infinite;
}

.dash-modal__skel--rank {
    width: 1.1rem;
    height: 0.85rem;
    flex-shrink: 0;
}

.dash-modal__skel--art {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.4rem;
    flex-shrink: 0;
}

.dash-modal__skel--lines {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
}

.dash-modal__skel--lines span {
    display: block;
    height: 0.62rem;
    border-radius: 0.25rem;
    background: inherit;
    animation: inherit;
}

.dash-modal__skel--lines span:first-child {
    width: 72%;
}

.dash-modal__skel--lines span:last-child {
    width: 48%;
}

@keyframes dash-modal-skel {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.page--spotify .dash-artists--modal {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.65rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    margin-top: 0;
    padding: 0.15rem 0 0.35rem;
    scrollbar-width: none;
}

.page--spotify .dash-artists--modal::-webkit-scrollbar {
    display: none;
}

.page--spotify .dash-artist--modal-card {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    width: 5.5rem;
    min-height: 7.25rem;
    padding: 0.55rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.page--spotify .dash-artist--modal-card:hover,
.page--spotify .dash-artist--modal-card:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(30, 215, 96, 0.35);
    transform: translateY(-1px);
}

.page--spotify .dash-artist--modal-card img,
.page--spotify .dash-artist--modal-card .dash-artist__ph {
    width: 100% !important;
    max-width: none;
    aspect-ratio: 1;
    height: auto !important;
    min-height: 4.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.page--spotify .dash-artist--modal-card .dash-artist__ph {
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    font-size: 1.35rem;
}

.page--spotify .dash-artist--modal-card .dash-artist__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: normal;
}

@media (min-width: 640px) {
    .dash-modal--artist .dash-modal__handle {
        display: none;
    }

    .dash-modal--artist .dash-modal__panel {
        max-width: 26rem;
        max-height: min(88vh, 42rem);
        border-radius: 1rem;
    }

    .dash-modal__hero {
        padding: 1.1rem 1.1rem 1rem;
        padding-right: 3.25rem;
    }

    .dash-modal__body {
        padding: 0 1.1rem 1.1rem;
    }

    .page--spotify .dash-artists--modal {
        flex-wrap: wrap;
        overflow: visible;
    }

    .page--spotify .dash-artist--modal-card {
        width: calc(25% - 0.5rem);
        min-width: 4.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dash-modal__skel {
        animation: none;
    }
}

.page--spotify .dash-artists--modal .dash-artist {
    flex-shrink: unset;
    max-width: 100%;
}

.dash-history {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(243, 235, 224, 0.06);
}

.dash-history__heading {
    font-family: "DM Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream-dim);
    margin: 0 0 0.35rem;
}

.dash-history__total {
    font-family: "DM Mono", monospace;
    font-size: 0.62rem;
    margin: 0.35rem 0 0.75rem;
}

.dash-history__subtitle {
    font-family: "DM Mono", monospace;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cream-dim);
    margin: 0 0 0.45rem;
}

.dash-history__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.dash-stat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.dash-stat-list li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.dash-stat-list__count {
    font-family: "DM Mono", monospace;
    font-size: 0.68rem;
    color: var(--mint);
    flex-shrink: 0;
}

.page--spotify .dash-stat-list__count {
    min-width: 2rem;
    text-align: right;
}

.page--spotify .dash-stat-list--ranked {
    counter-reset: dash-rank;
}

.page--spotify .dash-stat-list--ranked > .dash-row:not(.dash-row--empty) {
    counter-increment: dash-rank;
}

.page--spotify .dash-stat-list--ranked > .dash-row:not(.dash-row--empty)::before {
    content: counter(dash-rank);
    font-family: "DM Mono", monospace;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--cream-dim);
    width: 1.35rem;
    flex-shrink: 0;
    text-align: center;
    opacity: 0.85;
}

.page--spotify .dash-stat-list--ranked > .dash-row:not(.dash-row--empty):nth-child(-n+3)::before {
    color: var(--mint);
    opacity: 1;
}

.page--spotify .dash-row--artist .dash-track-list__body strong {
    font-size: 0.92rem;
    font-weight: 600;
}

.page--spotify .dash-history__total {
    font-family: "DM Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    margin: 0 0 1rem;
}

.page--spotify .dash-tab {
    border-color: var(--sp-line-strong);
}

.page--spotify .dash-stat-list--artists .dash-row--artist {
    gap: 0.65rem;
}

