/* Canlı Durum Panosu */

.dashboard-card {
    overflow: hidden;
    position: relative;
}

.dashboard-card--hero {
    padding: 0;
    border: none;
    background: transparent;
    backdrop-filter: none;
}

.dashboard-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.dashboard-hero__art-wrap {
    position: relative;
    width: min(100%, 22rem);
    margin: 0 auto;
}

.dashboard-hero__glow {
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background: var(--ambient-color, #1a1520);
    filter: blur(2.5rem);
    opacity: 0.55;
    z-index: 0;
    transition: background 0.8s ease;
}

.dashboard-hero__art {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 1.1rem;
    overflow: hidden;
    background: rgba(12, 11, 16, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 1.5rem 3rem rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(243, 235, 224, 0.06);
}

.dashboard-hero__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-hero__body {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 0 0.25rem;
}

.dashboard-hero__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    text-align: center;
}

.dashboard-hero__titles {
    text-align: center;
}

.dashboard-now__state {
    font-family: "DM Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cream-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0;
}

.dashboard-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
}

.dash-badge {
    font-family: "DM Mono", monospace;
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(243, 235, 224, 0.06);
    color: var(--cream-dim);
}

.dash-badge--mint {
    background: rgba(94, 228, 199, 0.12);
    color: var(--mint);
}

.dashboard-now__pulse {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 0 rgba(94, 228, 199, 0.45);
    animation: avlu-pulse 1.6s infinite;
}

.dashboard-now__title {
    font-size: clamp(1.35rem, 5vw, 1.85rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
    word-break: break-word;
}

.dashboard-now__artist {
    margin: 0.35rem 0 0;
    color: var(--cream-dim);
    font-size: clamp(0.95rem, 3.5vw, 1.05rem);
    line-height: 1.35;
}

.dashboard-now__album {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    line-height: 1.35;
}

.dashboard-now__audio {
    margin: 0;
    font-size: 0.72rem;
    font-family: "DM Mono", monospace;
    text-align: center;
}

.dashboard-now__progress {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
}

.dashboard-now__bar {
    height: 5px;
    border-radius: 999px;
    background: rgba(243, 235, 224, 0.08);
    overflow: hidden;
}

.dashboard-now__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--violet), var(--mint));
    transition: width 0.8s linear;
    border-radius: inherit;
}

.dashboard-now__time {
    font-family: "DM Mono", monospace;
    font-size: 0.62rem;
    color: var(--cream-dim);
    text-align: center;
}

.dashboard-now__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.dashboard-controls {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: center;
}

.dashboard-updated {
    font-family: "DM Mono", monospace;
    font-size: 0.6rem;
    color: rgba(154, 143, 130, 0.6);
    margin: 0;
    text-align: center;
}

.dash-track-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

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

.dash-track-list__art {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.45rem;
    object-fit: cover;
    flex-shrink: 0;
}

.dash-track-list__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.dash-track-list__body strong {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-tabs {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.65rem;
    flex-wrap: wrap;
}

.dash-tab {
    font-family: "DM Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(243, 235, 224, 0.1);
    background: transparent;
    color: var(--cream-dim);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.dash-tab.is-active {
    border-color: rgba(94, 228, 199, 0.35);
    color: var(--mint);
    background: rgba(94, 228, 199, 0.08);
}

.dash-artists {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(243, 235, 224, 0.06);
}

.dash-artist {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.6rem 0.35rem 0.35rem;
    border-radius: 999px;
    background: rgba(12, 11, 16, 0.45);
    border: 1px solid rgba(243, 235, 224, 0.06);
    text-decoration: none;
    color: inherit;
    font-size: 0.78rem;
    max-width: 100%;
}

.dash-artist span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-artist img {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.dash-playlists {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.dash-playlist {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-decoration: none;
    color: inherit;
    padding: 0.55rem;
    border-radius: 0.65rem;
    background: rgba(12, 11, 16, 0.45);
    border: 1px solid rgba(243, 235, 224, 0.06);
    transition: border-color 0.15s;
    min-width: 0;
}

.dash-playlist:hover {
    border-color: rgba(94, 228, 199, 0.25);
}

.dash-playlist img,
.dash-playlist__ph {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 0.45rem;
    object-fit: cover;
    background: rgba(243, 235, 224, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.dash-playlist__name {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dash-playlist__meta {
    font-size: 0.62rem;
    font-family: "DM Mono", monospace;
}

/* Hub widget */

.avlu-now--rich {
    display: grid;
    grid-template-columns: auto 3rem 1fr auto;
    gap: 0.75rem 1rem;
    align-items: center;
}

.avlu-now__art {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    object-fit: cover;
    background: rgba(12, 11, 16, 0.65);
}

.avlu-now__track {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.avlu-now__track strong {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.avlu-now__track span {
    font-size: 0.78rem;
    color: var(--cream-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Spotify site extensions */

.page--spotify {
    --ambient-color: #1a1520;
}

.page--spotify .page {
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, color-mix(in srgb, var(--ambient-color) 45%, transparent), transparent 55%),
        var(--bg, #0c0b10);
    transition: background 0.8s ease;
}

.page--spotify .card {
    padding: 1.15rem;
}

.dashboard-now__art--crossfade {
    position: relative;
}

.dashboard-now__art-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.dashboard-now__art-layer.is-active {
    opacity: 1;
}

.dashboard-now__art-ph {
    font-size: 3rem;
}

.dash-features {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
}

.dash-feature {
    display: grid;
    grid-template-columns: 4.2rem 1fr 2.2rem;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.68rem;
    font-family: "DM Mono", monospace;
}

.dash-feature__bar {
    height: 4px;
    border-radius: 999px;
    background: rgba(243, 235, 224, 0.08);
    overflow: hidden;
}

.dash-feature__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--mint), #7b9cff);
    border-radius: inherit;
    transition: width 0.4s ease;
}

.dash-feature__pct {
    text-align: right;
    color: var(--cream-dim);
}

.dash-lyrics {
    padding: 0.75rem;
    border-radius: 0.65rem;
    background: rgba(12, 11, 16, 0.55);
    max-height: 12rem;
    overflow: auto;
    width: 100%;
}

.dash-lyrics__text {
    margin: 0;
    white-space: pre-wrap;
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--cream-dim);
    font-family: "DM Mono", monospace;
}

.dash-chart {
    margin-top: 0.85rem;
}

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

.dash-chart__bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 4.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.dash-chart__bars::-webkit-scrollbar {
    display: none;
}

.dash-chart--days .dash-chart__bars {
    gap: 0.35rem;
}

.dash-chart__bar {
    flex: 1;
    min-width: 0.55rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    height: 100%;
    justify-content: flex-end;
}

.dash-chart__fill {
    width: 100%;
    min-height: 4px;
    border-radius: 2px 2px 0 0;
    background: linear-gradient(180deg, var(--mint), rgba(94, 228, 199, 0.25));
}

.dash-chart__label {
    font-size: 0.48rem;
    font-family: "DM Mono", monospace;
    color: var(--cream-dim);
}

.dash-artist--btn {
    border: none;
    cursor: pointer;
    background: rgba(243, 235, 224, 0.04);
    font: inherit;
    color: inherit;
    text-align: left;
}

.dash-artist--btn:hover {
    background: rgba(94, 228, 199, 0.1);
}

.dash-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.dash-modal[hidden] {
    display: none;
}

.dash-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.dash-modal__panel {
    position: relative;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    background: #14121a;
    border: 1px solid rgba(243, 235, 224, 0.08);
    border-radius: 1rem 1rem 0 0;
    padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
}

.dash-modal__close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    border: none;
    background: transparent;
    color: var(--cream-dim);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.dash-modal__title {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    padding-right: 2rem;
}

.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;
}

@media (min-width: 640px) {
    .dashboard-card--hero {
        padding: 1.25rem;
        border: 1px solid rgba(243, 235, 224, 0.08);
        border-radius: 1.25rem;
        background: var(--card);
        backdrop-filter: blur(12px);
    }

    .dashboard-hero {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
    }

    .dashboard-hero__art-wrap {
        flex: 0 0 min(42%, 16rem);
        width: min(42%, 16rem);
        margin: 0;
    }

    .dashboard-hero__body {
        flex: 1;
        padding: 0.25rem 0 0;
    }

    .dashboard-hero__head,
    .dashboard-hero__titles,
    .dashboard-now__audio,
    .dashboard-updated {
        text-align: left;
    }

    .dashboard-hero__head {
        justify-content: flex-start;
    }

    .dashboard-badges {
        justify-content: flex-start;
    }

    .dashboard-now__actions,
    .dashboard-controls {
        justify-content: flex-start;
    }

    .dashboard-now__time {
        text-align: left;
    }

    .dash-playlists {
        grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
    }
}

.dashboard-last-played {
    font-family: "DM Mono", monospace;
    font-size: 0.68rem;
    text-align: center;
    margin: 0;
    line-height: 1.45;
}

.dash-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(30, 215, 96, 0.22);
    background: linear-gradient(135deg, rgba(30, 215, 96, 0.14), rgba(30, 215, 96, 0.04));
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 0.35rem 1.2rem rgba(30, 215, 96, 0.08);
    -webkit-tap-highlight-color: transparent;
}

.dash-profile-btn:hover,
.dash-profile-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(30, 215, 96, 0.45);
    box-shadow: 0 0.5rem 1.5rem rgba(30, 215, 96, 0.14);
}

.dash-profile-btn__avatar,
.dash-profile-btn__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    background: rgba(12, 11, 16, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.dash-profile-btn__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-align: left;
}

.dash-profile-btn__label {
    font-family: "DM Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1ed760;
}

.dash-profile-btn__name {
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-profile-btn__arrow {
    font-size: 1.2rem;
    color: #1ed760;
    flex-shrink: 0;
}

.dash-profile-btn--solo {
    max-width: 24rem;
    margin: 0 auto;
}

.dash-open-card {
    text-align: center;
}

.dash-profile-link {
    border-color: rgba(30, 215, 96, 0.18);
}

@media (min-width: 640px) {
    .dashboard-last-played,
    .dash-profile-btn {
        text-align: left;
    }
}

@media (max-width: 639px) {
    .page--spotify .page {
        padding-left: max(0.85rem, env(safe-area-inset-left));
        padding-right: max(0.85rem, env(safe-area-inset-right));
    }

    .dash-profile-btn {
        padding: 0.95rem 1rem;
    }

    .page--spotify .card {
        padding: 1rem;
        border-radius: 1rem;
    }

    .dashboard-hero__art-wrap {
        width: min(78vw, 18rem);
    }

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

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

    .dash-tab {
        flex: 1 1 auto;
        text-align: center;
        min-width: 0;
    }

    .dashboard-now__actions .btn,
    .dashboard-controls .btn {
        min-height: 2.5rem;
    }

    .avlu-now--rich {
        grid-template-columns: auto 2.5rem 1fr;
    }

    .avlu-now__art {
        width: 2.5rem;
        height: 2.5rem;
    }
}
