:root {
    --sarp-primary: #3b82f6;
    --sarp-bg: rgba(255, 255, 255, 0.70);
    --sarp-border: rgba(255, 255, 255, 0.4);
    --sarp-text-light: #6b7280;
    /* Folgende Variablen werden dynamisch per PHP injiziert:
       --sarp-blur
       --sarp-text
       --sarp-hover 
    */
}

#sarp-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.sarp-player-container.glassmorphism {
    background: var(--sarp-bg);
    backdrop-filter: blur(var(--sarp-blur, 20px));
    -webkit-backdrop-filter: blur(var(--sarp-blur, 20px));
    border-top: 1px solid var(--sarp-border);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.05);
}

.sarp-player-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    height: 80px;
    box-sizing: border-box;
}

.sarp-station-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

#sarp-cover, .sarp-cover-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: var(--sarp-primary);
}

.sarp-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sarp-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

#sarp-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--sarp-text);
}

.sarp-subtitle {
    font-size: 13px;
    color: var(--sarp-text-light);
    margin-top: 2px;
}

.sarp-status {
    font-size: 12px;
    color: var(--sarp-text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.sarp-status::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: var(--sarp-primary);
    border-radius: 50%;
    animation: sarpPulse 2s infinite;
}

@keyframes sarpPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0,0,0, 0.1); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0,0,0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0,0,0, 0); }
}

.sarp-controls {
    flex: 1;
    display: flex;
    justify-content: center;
}

.sarp-btn {
    background: var(--sarp-main-btn-bg, var(--sarp-primary)) !important;
    color: var(--sarp-main-btn-icon, white) !important;
    border: none !important;
    border-radius: 50%;
    width: var(--sarp-main-btn-size, 54px);
    height: var(--sarp-main-btn-size, 54px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s, background 0.2s;
}

.sarp-btn i {
    font-size: var(--sarp-main-icon-size, 24px);
}
.sarp-btn svg {
    width: var(--sarp-main-icon-size, 24px);
    height: var(--sarp-main-icon-size, 24px);
}

.sarp-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}
.sarp-btn:active, .sarp-btn:focus {
    outline: none;
    opacity: 0.8;
}

.sarp-right-controls {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.sarp-volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sarp-text-light);
}

#sarp-volume {
    -webkit-appearance: none;
    width: 100px;
    height: 4px;
    background: rgba(0,0,0,0.1);
    border-radius: 2px;
    outline: none;
}

#sarp-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--sarp-primary);
    cursor: pointer;
}

/* Custom Dropdown */
.sarp-custom-dropdown {
    position: relative;
    font-family: inherit;
}

.sarp-dropdown-btn {
    appearance: none;
    background: rgba(255,255,255,0.6) !important;
    border: 1px solid var(--sarp-border) !important;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--sarp-text) !important;
    cursor: pointer;
    outline: none;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.sarp-dropdown-btn:hover {
    background: rgba(255,255,255,0.8) !important;
    color: var(--sarp-hover, var(--sarp-text)) !important;
}

.sarp-selected-logo {
    height: 20px;
    width: auto;
    max-width: 40px;
    object-fit: contain;
}

.sarp-dropdown-menu {
    position: absolute;
    bottom: 110%;
    right: 0;
    background: var(--sarp-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--sarp-border);
    border-radius: 12px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    list-style: none;
    margin: 0;
    padding: 10px 0;
    min-width: 200px;
    display: none;
    z-index: 100000;
}

.sarp-dropdown-menu.sarp-show {
    display: block;
    animation: sarpFadeInUp 0.2s ease;
}

@keyframes sarpFadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sarp-dropdown-item {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--sarp-text);
    transition: background 0.2s;
}

.sarp-dropdown-item:hover {
    background: rgba(255,255,255,0.5);
    color: var(--sarp-hover, var(--sarp-primary));
}

.sarp-dropdown-item img {
    height: 24px;
    width: auto;
    max-width: 50px;
    object-fit: contain;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sarp-hide-mobile {
        display: none !important;
    }
    
    .sarp-player-container {
        padding: 10px;
        height: auto;
    }
    
    .sarp-player-inner {
        padding: 5px 10px;
        height: 70px;
        gap: 10px;
    }
    .sarp-volume-container {
        display: none;
    }
    #sarp-cover, .sarp-cover-placeholder {
        width: 44px;
        height: 44px;
        border-radius: 8px;
    }
    #sarp-title {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }
    .sarp-btn {
        width: 46px;
        height: 46px;
    }
    .sarp-dropdown-btn {
        padding: 4px 10px;
    }
    .sarp-selected-name {
        max-width: 80px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 12px;
    }
}

/* Inline Elementor Player */
.sarp-inline-player {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-family: inherit;
    --sarp-inline-primary: var(--sarp-primary);
}

.sarp-inline-play-btn {
    background: var(--sarp-inline-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.2s, background 0.2s;
}

.sarp-inline-play-btn:hover {
    transform: scale(1.05);
    background: var(--sarp-hover, var(--sarp-inline-primary));
}

.sarp-inline-play-btn.sarp-large-btn {
    width: 64px;
    height: 64px;
}

.sarp-inline-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--sarp-text);
}

.sarp-inline-status {
    font-size: 12px;
    color: var(--sarp-text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.sarp-inline-status::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: var(--sarp-inline-primary);
    border-radius: 50%;
    animation: sarpPulse 2s infinite;
}

.sarp-inline-text {
    display: flex;
    flex-direction: column;
}

.sarp-inline-logo {
    max-height: 40px;
    width: auto;
}

.sarp-variant-style-4 {
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--sarp-border);
    border-radius: 16px;
    overflow: hidden;
    max-width: 300px;
}

.sarp-inline-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--sarp-inline-primary);
}

.sarp-inline-card-body {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.sarp-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.sarp-icon-wrapper svg {
    max-width: 100%;
    max-height: 100%;
}
