/*Start Styles für Beat Player (Listenansicht) */
.beat-box{display:flex;flex-wrap:wrap;align-items:center;width:100%;box-sizing:border-box;padding:7px 3px 7px 7px;background:#c1c8d124;border-radius:10px}
.beat-box:hover{background:#c8cfd81a}
.beat-cover{flex:0 0 60px;margin-right:15px;line-height:0}
.beat-cover img{width:60px;height:60px;object-fit:cover;border-radius:7px}
.beat-info{flex:1 1 auto;display:flex;align-items:center;gap:20px}
.beat-text{flex:1 1 auto;min-width:180px}
.beat-title{margin:0;font-weight:500;font-size:18px}
.beat-tags a{display:inline-block;margin:0;padding:3px 6px;font-size:12px;background:#c1c8d12e;color:#999da2;border-radius:4px;text-decoration:none;line-height:1.4}
.beat-player-inline{flex:0 0 190px;max-width:190px}
.beat-dl{/*flex:0 0 135px;text-align:center*/margin-right: 20px;}
.beat-btn{display:inline-block;padding:0 5px;background:transparent;color:#000;border-radius:6px;text-decoration:none;font-weight:500}
.beat-btn:hover{background:#edeff1;}
.upgrade-btn {margin-left: 15px;}
.play-icon-svg {
    width: 15px;
    height: 15px;
    vertical-align: middle;
    display: inline-block;
}

.download-icon-svg {
    width: 15px;
    height: 15px;
    vertical-align: middle;
    display: inline-block;
}

.beat-btn-dl {margin-left: 15px;}

/* Versteckt Play-Icon bei inaktiven Playern */
.plyr-audio.plyr--stopped .plyr__controls .plyr__control[data-plyr="play"] {
    display: none;
}

/* Zeigt Pause-Icon nur bei aktiven Playern */
.plyr-audio:not(.plyr--playing) .plyr__controls .plyr__control[data-plyr="pause"] {
    display: none;
}

/*Ende Styles für Beat Player (Listenansicht) */

/* Start Styles Global Player Layout */
.global-player {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 9999;
    background: #25201f;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    padding: 16px;
}

.global-player-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.player-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

/* Link: Titel + Zeit */
.player-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.player-title {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-time {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Mitte: Steuerung */
.player-controls {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Rechts: Lautstärke */
.player-volume {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    position: relative;
}

#volume-slider {
    width: 100px;
    cursor: pointer;
}

#volume-slider.hidden {
    display: none;
}

/* Buttons */
.player-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

/* Fix: Close-Button nicht mehr über dem Lautsprecher */
#global-close {
    position: absolute;
    top: -18px; /* nach oben verschoben */
    right: -13px; /* weiter rechts außerhalb des eigentlichen Inhalts */
    background: transparent;
    border: none;
    cursor: pointer;
    color: #FFFFFF !important;
    z-index: 99999; /* sicher oberhalb aller anderen Elemente */
}

#global-close img {
    width: 10px;
    height: 10px;
}

/* Fortschrittsbalken */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #444;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
    cursor: pointer;
}

.progress-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #fff;
    transition: width 0.1s linear;
}

.player-btn img {
    width: 15px;
    height: 15px;
    object-fit: contain;
    pointer-events: none;
}

.player-btn:hover {
    background-color: #302b2b;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

/* Lautstärke-Slider (modernisiert) */
#volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #fff 100%, #777 0%);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* Gefüllter Balken dynamisch via JS */
#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    margin-top: -5px; /* Basis-Anpassung */
    position: relative;
    top: 2px; /* Statt 50% */
}

/* Firefox */
#volume-slider::-moz-range-thumb {
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
}

/* Ende Styles Global Player Layout */

/* Start Mobile Styles Beat Player (Listenansicht) */

@media(max-width:960px){.beat-box{padding:12px}.beat-cover{flex:0 0 100%;margin:0 0 15px}.beat-cover img{width:100%;height:130px}.beat-info{flex-direction:column;align-items:flex-start}.beat-player-inline{width:100%;max-width:none;margin-top:10px}.beat-dl{text-align:center;margin-top:10px;width:100%;flex:none}.beat-btn{width:100%;display:block;padding:10px 20px;background:#edeff1;}.beat-player-buttons {width:100%;}.upgrade-btn, .beat-btn-dl {margin-left:0;}.upgrade-plan-notice {display:block;}.tooltip-icon {margin-top: 15px;}}

/* Ende Mobile Styles Beat Player (Listenansicht) */

/* Start Mobile Styles Global Player */

@media (max-width: 768px) {
    /* Lautstärke komplett ausblenden */
    .player-volume {
        display: none !important;
    }

    /* Steuerung unter den Titel setzen, rechtsbündig */
    .player-layout {
        flex-direction: column;
        align-items: flex-end;
    }

    .player-controls {
        justify-content: flex-end;
        width: 100%;
    }

    /* Abstand zur linken Titelspalte */
    .player-info {
        align-items: flex-start;
        width: 100%;
    }
	
	.player-layout {
	gap: 0;
	}
}

/* Ende Mobile Styles Global Player */