/* Label Manager - Preview Player Frontend Styles */

.lm-preview-player {
    margin: 40px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.lm-songs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lm-song-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s;
}

.lm-song-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.lm-song-cover {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
}

.lm-song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lm-song-info {
    flex: 1;
    min-width: 0;
}

.lm-song-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.lm-song-artist {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 2px 0;
}

.lm-song-date {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

.lm-song-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lm-platform-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lm-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.lm-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.lm-play-btn:active {
    transform: scale(0.98);
}

.lm-play-btn.playing {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.lm-platform-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.lm-platform-link:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    text-decoration: none;
}

.lm-spotify-link:hover {
    background: #1db954;
    color: #fff;
    border-color: #1db954;
}

.lm-apple-link:hover {
    background: #fa243c;
    color: #fff;
    border-color: #fa243c;
}

.lm-youtube-link:hover {
    background: #ff0000;
    color: #fff;
    border-color: #ff0000;
}

.lm-amazon-link:hover {
    background: #ff9900;
    color: #fff;
    border-color: #ff9900;
}

.lm-tidal-link:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.lm-load-more-wrap {
    margin-top: 24px;
    text-align: center;
}

.lm-load-more-btn {
    padding: 12px 32px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.lm-load-more-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.lm-load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 640px) {
    .lm-song-item {
        grid-template-columns: 60px 1fr;
        gap: 12px;
    }
    
    .lm-song-cover {
        width: 60px;
        height: 60px;
    }
    
    .lm-song-actions {
        grid-column: 1 / -1;
        justify-content: space-between;
        margin-top: 8px;
        padding-top: 12px;
        border-top: 1px solid #f3f4f6;
    }
    
    .lm-play-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    
    .lm-platform-link {
        flex: 1;
        justify-content: center;
    }
}

/* Audio Progress Bar (Global Player) */
.lm-global-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 16px 24px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 16px;
}

.lm-global-player.active {
    display: flex;
}

.lm-global-player-info {
    flex: 1;
    min-width: 0;
}

.lm-global-player-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lm-global-player-artist {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
}

.lm-global-player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lm-global-player-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.lm-global-player-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lm-global-player-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.lm-global-player-progress-bar {
    height: 100%;
    background: #fff;
    width: 0%;
    transition: width 0.1s linear;
}

@media (max-width: 768px) {
    .lm-global-player {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .lm-global-player-progress {
        width: 120px;
    }
}

/* ===================================
   SINGLE SONG PLAYER
   =================================== */

.lm-single-song-player {
    max-width: 100%;
    margin: 20px 0;
    padding: 0;
}

.lm-player-container {
    background: linear-gradient(180deg, #1e1e1e 0%, #121212 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    padding: 20px 24px;
    border: 1px solid #282828;
    color: #ffffff;
}

.lm-player-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lm-player-cover {
    flex-shrink: 0;
}

.lm-player-cover img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.lm-player-info {
    flex: 0 1 200px;
    min-width: 0;
}

.lm-player-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lm-player-artist {
    font-size: 13px;
    color: #b3b3b3;
    margin: 0;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Player Controls */
.lm-player-controls {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.lm-player-play {
    width: 48px !important;
    height: 48px !important;
    font-size: 20px !important;
    margin: 0 !important;
    display: flex !important;
    background: #1db954 !important;
    box-shadow: 0 2px 8px rgba(29, 185, 84, 0.3) !important;
    flex-shrink: 0;
}

.lm-player-play:hover {
    background: #1ed760 !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.4) !important;
}

.lm-player-timeline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.lm-player-time {
    font-size: 11px;
    color: #b3b3b3;
    font-weight: 400;
    min-width: 35px;
    text-align: center;
}

.lm-player-progress-container {
    flex: 1;
    height: 4px;
    background: #4d4d4d;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.lm-player-progress-bar {
    height: 100%;
    background: #1db954;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.lm-player-progress-container:hover .lm-player-progress-bar {
    background: #1ed760;
}

/* Platform Links */
.lm-player-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid #282828;
}

.lm-player-platforms .lm-platform-link {
    flex: 0 0 auto;
    background: #282828;
    color: #ffffff;
    border-color: #3e3e3e;
    padding: 6px 12px;
    font-size: 12px;
}

.lm-player-platforms .lm-platform-link:hover {
    background: #3e3e3e;
    border-color: #535353;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lm-single-song-player {
        margin: 20px auto;
        padding: 0 16px;
    }
    
    .lm-player-container {
        padding: 24px 20px;
    }
    
    .lm-player-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .lm-player-cover img {
        width: 160px;
        height: 160px;
    }
    
    .lm-player-title {
        font-size: 24px;
    }
    
    .lm-player-artist {
        font-size: 16px;
    }
    
    .lm-player-platforms {
        flex-direction: column;
    }
    
    .lm-player-platforms .lm-platform-link {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .lm-player-cover img {
        width: 140px;
        height: 140px;
    }
    
    .lm-player-title {
        font-size: 20px;
    }
}


/* ════════════════════════════════════════════════════════
   Artist Showcase  [lm_artist_showcase]
   Verwendet CSS-Variablen des Themes → passt sich
   automatisch an helle und dunkle Themes an.
   ════════════════════════════════════════════════════════ */

.lm-artist-showcase {
    max-width: 860px;
    margin: 0 auto;
    font-family: inherit;
}

/* ── Sektion-Label (kleiner Uppercase-Header) ── */
.lm-sc-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
    opacity: .5;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Artist Header ── */
.lm-sc-artist-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding: 20px 24px;
    background: var(--lm-card-bg, rgba(255,255,255,.06));
    border: 1px solid var(--lm-border, rgba(255,255,255,.1));
    border-radius: 16px;
}
.lm-sc-artist-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.lm-sc-artist-photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}
.lm-sc-artist-name {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
}
.lm-sc-artist-follow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: #1db954;
    color: #fff !important;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: opacity .15s;
}
.lm-sc-artist-follow:hover { opacity: .85; }

/* ── Neuester Release ── */
.lm-sc-latest {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 32px;
}
.lm-sc-cover-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.lm-sc-cover-wrap img {
    width: 100%;
    display: block;
    border-radius: 12px;
    transition: transform .3s;
}
.lm-sc-cover-wrap:hover img { transform: scale(1.02); }
.lm-sc-new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,.7);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}
.lm-sc-latest-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
}
.lm-sc-song-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    text-decoration: none;
    color: inherit;
    display: block;
}
.lm-sc-release-date {
    font-size: 12px;
    opacity: .55;
}

/* ── Plattform-Buttons im Showcase ── */
.lm-sc-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.lm-sc-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: opacity .15s, transform .1s;
    color: #fff !important;
}
.lm-sc-btn:hover { opacity: .85; transform: translateY(-1px); }
.lm-sc-btn-spotify  { background: #1db954; }
.lm-sc-btn-apple    { background: #fc3c44; }
.lm-sc-btn-youtube  { background: #ff0000; }
.lm-sc-btn-release  {
    background: transparent;
    color: inherit !important;
    border: 1px solid var(--lm-border, rgba(255,255,255,.2));
}

/* ── Spotify Mini-Embed ── */
.lm-sc-spotify-mini {
    border-radius: 10px;
    display: block;
    margin-top: 4px;
}

/* ── Top Songs Liste ── */
.lm-sc-top-songs {
    margin-bottom: 32px;
    background: var(--lm-card-bg, rgba(255,255,255,.04));
    border: 1px solid var(--lm-border, rgba(255,255,255,.08));
    border-radius: 14px;
    overflow: hidden;
}
.lm-sc-top-songs-header {
    padding: 14px 18px 10px;
    border-bottom: 1px solid var(--lm-border, rgba(255,255,255,.08));
}
.lm-sc-song-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    border-bottom: 1px solid var(--lm-border, rgba(255,255,255,.05));
    transition: background .15s;
}
.lm-sc-song-row:last-child { border-bottom: none; }
.lm-sc-song-row:hover { background: rgba(255,255,255,.05); }
.lm-sc-song-num {
    font-size: 13px;
    opacity: .4;
    font-weight: 600;
    min-width: 20px;
    text-align: right;
    flex-shrink: 0;
}
.lm-sc-song-cover {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}
.lm-sc-song-cover-placeholder {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.08);
    border-radius: 5px;
    flex-shrink: 0;
}
.lm-sc-song-info { flex: 1; min-width: 0; }
.lm-sc-song-name {
    font-size: 14px;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lm-sc-song-name:hover { text-decoration: underline; }
.lm-sc-song-date {
    font-size: 11px;
    opacity: .45;
    margin-top: 2px;
}
.lm-sc-song-icons {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.lm-sc-song-icon {
    font-size: 16px;
    text-decoration: none;
    opacity: .5;
    transition: opacity .15s;
}
.lm-sc-song-icon:hover { opacity: 1; }

/* ── „Alle Tracks"-Button ── */
.lm-sc-all-btn-wrap {
    padding: 14px 18px;
    border-top: 1px solid var(--lm-border, rgba(255,255,255,.08));
    text-align: center;
}
.lm-sc-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 26px;
    background: var(--lm-card-bg, rgba(255,255,255,.08));
    border: 1px solid var(--lm-border, rgba(255,255,255,.15));
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    color: inherit !important;
    text-decoration: none !important;
    transition: background .15s;
}
.lm-sc-all-btn:hover { background: rgba(255,255,255,.14); }

/* ── Sektion-Box (Video, Playlist) ── */
.lm-sc-section {
    margin-bottom: 32px;
    background: var(--lm-card-bg, rgba(255,255,255,.04));
    border: 1px solid var(--lm-border, rgba(255,255,255,.08));
    border-radius: 14px;
    overflow: hidden;
}
.lm-sc-section-header {
    padding: 14px 18px 10px;
    border-bottom: 1px solid var(--lm-border, rgba(255,255,255,.08));
}
.lm-sc-section-body { padding: 16px 18px; }
.lm-sc-section-body iframe { display: block; }

/* ── Footer ── */
.lm-sc-footer {
    text-align: center;
    padding: 16px 0 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.lm-sc-footer-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: inherit !important;
    text-decoration: none !important;
    letter-spacing: .02em;
    transition: background .15s;
}
.lm-sc-footer-all:hover { background: rgba(255,255,255,.18); }
.lm-sc-footer-count { opacity: .5; font-weight: 400; }

/* ── Responsive ── */
@media (max-width: 640px) {
    .lm-sc-latest {
        grid-template-columns: 1fr;
    }
    .lm-sc-cover-wrap {
        max-width: 280px;
        margin: 0 auto;
    }
    .lm-sc-artist-header { flex-direction: column; text-align: center; }
}

/* ── Playlist-Kacheln ── */
.lm-sc-playlist-tile {
    min-width: 0;
}
@media (max-width: 580px) {
    .lm-sc-section-body[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}
