:host {
    display: block;
    height: 100%;
    min-height: 100%;
}

.sources-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    min-width: 0;
    overflow: hidden;
}

.sources-header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 20px 20px 8px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.sources-header__text {
    min-width: 0;
    flex: 1;
}

.sources-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.sources-subtitle {
    margin: 4px 0 0;
    font-size: 0.875rem;
    color: var(--mat-sys-on-surface-variant, rgba(255, 255, 255, 0.6));
}

.sort-trigger {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;

    .sort-trigger__label {
        font-size: 0.85rem;
        font-weight: 500;
    }

    .sort-trigger__caret {
        font-size: 18px;
        width: 18px;
        height: 18px;
        margin-left: -2px;
    }
}

.sources-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 20px 20px;
}

.sources-content app-recent-playlists {
    display: block;
    height: 100%;
}

.sources-page--empty {
    .sources-content {
        padding: 0;
        overflow: hidden;
        display: flex;
    }

    .sources-content app-recent-playlists {
        flex: 1;
        height: 100%;
        min-height: 0;
        display: flex;
    }
}
