:root {
    --ar-primary: var(--head-bg, #2563eb);
    --ar-text: var(--head-txt, #ffffff);
}

#ar-sw-master {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* The Floating Icon (FAB) */
#ar-sw-fab {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--ar-primary);
    color: var(--ar-text);
    border: none;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#ar-sw-fab:hover {
    transform: scale(1.1) rotate(5deg);
}

/* The Modern Player Card */
#ar-sw-panel {
    width: 320px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.3);
    overflow: hidden;
    animation: slideUp 0.4s ease-out;
}

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

.ar-sw-header {
    background: var(--ar-primary);
    color: var(--ar-text);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ar-sw-header span { font-weight: 700; font-size: 15px; letter-spacing: -0.3px; }

#ar-sw-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.ar-sw-body { padding: 24px; }

/* Play Button Styling */
#ar-sw-play {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: var(--ar-primary);
    color: var(--ar-text);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: filter 0.2s;
    margin-bottom: 20px;
}

#ar-sw-play:active { transform: scale(0.98); }

/* Compact Controls Row */
.ar-sw-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ar-sw-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 500;
}

/* Modern Range Input */
input[type=range] {
    flex: 1;
    accent-color: var(--ar-primary);
    height: 5px;
    cursor: pointer;
}

/* Speed Dropdown */
#ar-sw-rate {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 4px 8px;
    outline: none;
    font-size: 12px;
}

.ar-sw-hide { display: none !important; }