/* ==========================================
   Shared player control buttons (Play / Next)
   All cube player types use this unified class.
   Designed to work on any dark canvas background.
   ========================================== */

.player-control-btn {
    /* Sizing */
    min-width: 44px;
    height: 28px;
    padding: 4px 10px;
    box-sizing: border-box;

    /* Typography */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--primary-light, #4da3ff);
    white-space: nowrap;
    user-select: none;

    /* Shape */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px; /* pill shape at 28px height */
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    /* Shadow for depth on dark canvas */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);

    /* Interaction */
    cursor: pointer;
    transition: all 0.15s ease;
    outline: none;

    /* Accessibility */
    -webkit-tap-highlight-color: transparent;
}

.player-control-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--primary-light, #4da3ff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transform: scale(1.05);
}

.player-control-btn:active {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(0.97);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.player-control-btn:disabled,
.player-control-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Remove browser default focus ring since we have our own hover/active states */
.player-control-btn:focus-visible {
    outline: 1px solid var(--primary-light, #4da3ff);
    outline-offset: 2px;
}

/* ==========================================
   Responsive adjustments
   ========================================== */

@media (max-width: 991.98px) {
    .player-control-btn {
        min-width: 42px;
        font-size: 10px;
        padding: 4px 8px;
        height: 26px;
        border-radius: 13px;
    }
}

@media (max-width: 479.98px) {
    .player-control-btn {
        min-width: 40px;
        font-size: 9px;
        padding: 3px 7px;
        height: 24px;
        border-radius: 12px;
    }
}
