/**
 * Shared MINA INSKICKADE LÅTAR panel.
 * Visual facit: guest.html queue panel.
 * Loaded by guest registration and Stammis. No JS/auth here.
 */

.my-songs[hidden] {
    display: none !important;
}

.my-songs.is-evening-ended {
    display: none !important;
}

.my-songs {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    pointer-events: auto;
}

.my-songs-head {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 57px;
    height: auto;
    margin: 0;
    padding: 11px 10px 10px 14px;
    border: 1px solid rgba(240, 211, 245, 0.22);
    border-radius: 16px;
    background: #4A1D50;
    color: #fff;
    flex: 0 0 auto;
    pointer-events: auto;
    box-shadow: 0 10px 22px rgba(74, 29, 80, 0.32);
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
    font: inherit;
}

.my-songs.open .my-songs-head {
    border-radius: 16px 16px 0 0;
}

.my-songs-head * {
    pointer-events: none;
}

.my-songs-head:hover {
    filter: brightness(0.92);
}

.my-songs-head:focus-visible {
    outline: 2px solid var(--ansakj-lavender, #F0E7F2);
    outline-offset: 2px;
}

.my-songs-title-line {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.songs-expand {
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ui-on, #fff) 16%, transparent);
    color: var(--ui-on, #fff);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.my-songs-title {
    margin: 0;
    overflow: hidden;
    color: var(--ui-on, #fff);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-count {
    min-width: 36px;
    border-radius: 999px;
    padding: 3px 8px;
    background: color-mix(in srgb, var(--ui-on, #fff) 16%, transparent);
    color: var(--ui-on, #fff);
    text-align: center;
    font-size: 12px;
    font-weight: 800;
}

.songs-summary {
    min-width: 0;
    overflow: hidden;
    color: color-mix(in srgb, var(--ui-on, #fff) 78%, transparent);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.songs-summary:empty {
    display: none;
}

.songs-modal-panel {
    display: none;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex: 0 0 auto;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: visible;
    border: 1px solid var(--border, var(--ak-border-light, #D4D5D9));
    border-top: 0;
    border-radius: 0 0 16px 16px;
    margin: 0;
    background: #fff;
    box-shadow: 0 8px 22px rgba(13, 43, 69, 0.10);
    pointer-events: auto;
}

.my-songs.open .songs-modal-panel {
    display: block;
}

.my-songs.open #my-songs-list,
.my-songs.open #ak-stammis-my-songs-list {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 6px 14px 12px;
}

.my-songs-empty {
    padding: 10px 0;
    border: 0;
    color: var(--text, var(--ak-text, #0D0D10));
    font-size: 12px;
}

.my-song {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--ansakj-lavender, #F0E7F2);
}

.my-song:last-child {
    border-bottom: 0;
}

.my-song-start {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent, var(--plum, #4A1D50));
    color: var(--accent-on, var(--ui-on, #fff));
    font-size: 15px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    line-height: 1;
}

.my-song-start.is-ny {
    background: #fff;
    color: var(--accent, var(--plum, #4A1D50));
    border: 2px solid var(--accent, var(--plum, #4A1D50));
}

.my-song-main {
    min-width: 0;
}

.my-song-title {
    min-width: 0;
    overflow: visible;
    overflow-wrap: break-word;
    white-space: normal;
    color: var(--text-primary, var(--ak-text, #0D0D10));
    font-size: 14px;
    font-weight: 750;
}

.my-song-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.my-song-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--ansakj-lavender, #F0E7F2);
    color: var(--ansakj-dark, #0D0D10);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
}

.my-song-pill.ny {
    background: color-mix(in srgb, var(--accent, var(--plum, #4A1D50)) 12%, #fff);
    color: var(--accent, var(--plum, #4A1D50));
}

@media (max-width: 720px) {
    .my-songs,
    .my-songs-head,
    .songs-modal-panel {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 520px) {
    .my-song {
        align-items: start;
    }
}
