/* V2.9A — song detail player hub refinements */

.vibewave-songpage .song-player-hub-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.22);
    color: #d8ccff;
    font-size: 0.72rem;
    font-weight: 600;
}

.vibewave-songpage .song-player-hub-overview,
.vibewave-songpage .song-player-queue-section,
.vibewave-songpage .song-player-context-section,
.vibewave-songpage .song-player-entity-section {
    padding: 24px;
}

.vibewave-songpage .song-player-hub-grid {
    grid-template-columns: 1.05fr 1.05fr 0.9fr;
}

.vibewave-songpage .song-player-playable {
    cursor: pointer;
}

.vibewave-songpage .song-player-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.vibewave-songpage .song-player-action-icons {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
    flex: 0 0 auto;
}

.vibewave-songpage .song-player-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: #e4e4e7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
    flex-shrink: 0;
}

.vibewave-songpage .song-player-action-btn:hover {
    transform: translateY(-1px);
    background: rgba(139, 92, 246, 0.16);
    border-color: rgba(139, 92, 246, 0.32);
    color: #ffffff;
}

.vibewave-songpage .song-player-action-btn.is-active {
    background: rgba(236, 72, 153, 0.14);
    border-color: rgba(236, 72, 153, 0.28);
    color: #f9a8d4;
}

.vibewave-songpage .song-player-action-btn.is-done {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
}

.vibewave-songpage .song-player-action-menu {
    flex: 0 0 auto;
}

.vibewave-songpage .song-player-mini-rail {
    gap: 18px;
}

.vibewave-songpage .song-player-mini-rail__list,
.vibewave-songpage .song-player-queue-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vibewave-songpage .song-player-mini-rail__item,
.vibewave-songpage .song-player-action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.vibewave-songpage .song-player-playable:hover {
    transform: translateY(-1px);
    border-color: rgba(139, 92, 246, 0.18);
    background: rgba(255,255,255,0.045);
}

.vibewave-songpage .song-player-mini-rail__meta,
.vibewave-songpage .song-player-queue-row__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vibewave-songpage .song-player-mini-rail__meta strong,
.vibewave-songpage .song-player-mini-rail__meta span,
.vibewave-songpage .song-player-queue-row__meta h4,
.vibewave-songpage .song-player-queue-row__meta p {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vibewave-songpage .song-player-mini-rail__meta strong,
.vibewave-songpage .song-player-queue-row__meta h4 {
    font-size: 0.88rem;
    color: #f5f3ff;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    line-height: 1.35;
}

.vibewave-songpage .song-player-mini-rail__meta span,
.vibewave-songpage .song-player-queue-row__meta p {
    font-size: 0.74rem;
    color: #9ca3af;
    white-space: nowrap;
}

.vibewave-songpage .song-player-queue-note {
    margin: 0 0 14px;
    color: #9ca3af;
    font-size: 0.84rem;
}

.vibewave-songpage .song-player-queue-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
}

.vibewave-songpage .song-player-queue-row__order {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #ddd6fe;
    font-size: 0.72rem;
    font-weight: 700;
}

.vibewave-songpage .song-player-queue-row__source {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.16);
    color: #c7d2fe;
    font-size: 0.68rem;
    font-weight: 600;
}

.vibewave-songpage .song-player-hub-stats {
    margin-top: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vibewave-songpage .song-player-song-grid,
.vibewave-songpage .song-player-entity-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vibewave-songpage .song-player-context-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vibewave-songpage .song-player-context-lane {
    min-height: 100%;
}

.vibewave-songpage .song-player-context-lane .song-player-mini-rail__item {
    grid-template-columns: minmax(0, 1fr) auto;
}

.vibewave-songpage .song-player-entity-grid .vw-discovery-card__media.is-avatar {
    max-width: 96px;
}

.vibewave-songpage .song-player-entity-grid .vw-discovery-card {
    align-items: flex-start;
}

.vibewave-songpage .song-player-entity-grid .vw-discovery-card__meta {
    min-height: 3.2em;
}

@media (max-width: 1200px) {
    .vibewave-songpage .song-player-hub-grid,
    .vibewave-songpage .song-player-song-grid,
    .vibewave-songpage .song-player-context-grid,
    .vibewave-songpage .song-player-entity-grid,
    .vibewave-songpage .song-player-hub-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .vibewave-songpage .song-player-hub-grid,
    .vibewave-songpage .song-player-song-grid,
    .vibewave-songpage .song-player-context-grid,
    .vibewave-songpage .song-player-entity-grid,
    .vibewave-songpage .song-player-hub-stats {
        grid-template-columns: 1fr;
    }

    .vibewave-songpage .song-player-action-row,
    .vibewave-songpage .song-player-queue-row {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .vibewave-songpage .song-player-action-row .song-player-action-icons,
    .vibewave-songpage .song-player-queue-row .song-player-action-icons,
    .vibewave-songpage .song-player-mini-rail__item .song-player-action-icons {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .vibewave-songpage .song-player-action-btn,
    .vibewave-songpage .song-player-action-menu > summary.song-player-action-btn {
        width: 32px;
        height: 32px;
    }
}
