/* Kontener widgetu - pozycjonowanie relatywne */
.digikrom-music-3d-root {
    position: relative;
    width: 100%;
    /* Wysokość jest nadawana inline z PHP lub CSS Elementora, 
       ale warto dać minimalną, żeby widget nie zniknął */
    min-height: 400px;
    overflow: hidden;
    border-radius: 8px; /* Opcjonalnie: ładne zaokrąglenie wewnątrz kolumny */
    
    /* DIGIKROM FIX: Tło musi być transparentne, żeby decydował o nim Elementor */
    background: transparent !important;
}

/* Canvas musi wypełniać kontener */
.dm3d-canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    outline: none;
    /* DIGIKROM FIX: Canvas też nie może mieć tła */
    background: transparent !important;
}

/* Player pozycjonowany absolutnie WZGLĘDEM widgetu, a nie okna */
.dm3d-player {
    position: absolute;
    bottom: 20px; /* Przeniosłem na dół, zazwyczaj wygląda lepiej w widgetach */
    right: 20px;
    z-index: 10;
}

/* Reszta stylów playera bez zmian, tylko kolory i detale */
.dm3d-player-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.6); /* Bardziej przezroczyste */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.dm3d-player-inner:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.dm3d-play-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    position: relative;
    /* Gradient w stylu DIGIKROM */
    background: radial-gradient(circle at 30% 30%, #a855f7, #ec4899);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dm3d-play-toggle:hover {
    transform: scale(1.1);
}

/* Ikona Play (trójkąt) */
.dm3d-play-toggle::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 12px solid #fff;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    transform: translateX(2px);
    transition: all 0.2s ease;
}

/* Ikona Pause (dwa paski) */
.dm3d-play-toggle.dm3d-is-playing::before {
    content: '';
    width: 12px;
    height: 14px;
    border-left: 4px solid #fff;
    border-right: 4px solid #fff;
    border-top: none;
    border-bottom: none;
    background: transparent;
    transform: none;
}

.dm3d-track-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    user-select: none;
}

.dm3d-track-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
}

.dm3d-track-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}