/* MUSIC PAGE */

.section-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 16px;
}

/* card header with tabs */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-header .section-label {
    margin: 0;
}

/* period tabs */
.period-tabs {
    display: flex;
    gap: 4px;
}

.period-tab {
    background: none;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    font-size: 12px;
    padding: 4px 10px;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s, border-color 0.15s;
}

.period-tab:hover {
    color: var(--text);
    border-color: var(--accent-soft);
}

.period-tab.is-active {
    color: var(--accent);
    border-color: var(--accent);
}

/* TRACK ROW */
.track-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
}

.track-row--bordered {
    border-bottom: 1px solid var(--line);
}

.track-row--large {
    padding: 4px 0 8px;
    gap: 18px;
}

/* album art */
.album-art-wrap {
    position: relative;
    flex-shrink: 0;
}

.album-art {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--line);
    flex-shrink: 0;
    background: var(--line);
}

.album-art--large {
    width: 64px;
    height: 64px;
    border-radius: 10px;
}

.album-art--placeholder {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: var(--line);
    flex-shrink: 0;
}

/* track info */
.track-info {
    flex: 1;
    min-width: 0;
}

.track-name {
    margin: 0 0 3px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-row--large .track-name {
    font-size: 16px;
    margin-bottom: 4px;
}

.track-artist {
    margin: 0;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-meta {
    margin: 3px 0 0;
    font-size: 12px;
}

.track-time {
    font-size: 12px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* now badge */
.now-badge {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 99px;
    background: var(--accent-soft);
    color: var(--accent);
    letter-spacing: 0.04em;
}

/* playing indicator (animated bars) */
.playing-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
    background: rgba(0, 0, 0, 0.55);
    padding: 3px 4px;
    border-radius: 4px;
}

.playing-indicator span {
    display: block;
    width: 3px;
    background: #fff;
    border-radius: 2px;
    animation: bounce 0.9s ease-in-out infinite;
}

.playing-indicator span:nth-child(1) {
    animation-delay: 0s;
    height: 8px;
}

.playing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
    height: 12px;
}

.playing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
    height: 6px;
}

@keyframes bounce {

    0%,
    100% {
        transform: scaleY(0.4);
    }

    50% {
        transform: scaleY(1);
    }
}

/* ARTIST ROWS */
.artist-row {
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}

.artist-row:last-child {
    border-bottom: none;
}

.artist-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.artist-name {
    font-size: 14px;
    font-weight: 500;
}

.artist-plays {
    font-size: 12px;
}

.artist-bar-track {
    height: 3px;
    background: var(--line);
    border-radius: 99px;
    overflow: hidden;
}

.artist-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 99px;
    transition: width 0.5s ease;
}

/* loading */
.loading-text {
    font-size: 14px;
}

/* MOBILE */
@media (max-width: 520px) {
    .track-row--large {
        gap: 14px;
    }

    .album-art--large {
        width: 52px;
        height: 52px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}