/* =============================================
   player.css — fake playerio ir play mygtuko stiliai
   ============================================= */

/* Pagrindinis player stilius */
.player {
    width: 100%;
    height: 450px;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background-color: #333; /* Atsarginė spalva */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px; /* Tarpas apačioje */
}

/* Play mygtuko dizainas */
.player .play-btn {
    width: 76px;
    height: 76px;
    background: linear-gradient(145deg, #a04040, #6e2525);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

/* Pulsuojantis žiedas — atskiras pseudo-elementas */
.player .play-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(139, 59, 50, 0.8);
    animation: pulse-ring 2s ease-out infinite;
    pointer-events: none;
}

.player .play-btn:hover {
    transform: scale(1.08);
    background: linear-gradient(145deg, #b04848, #7a2d2d);
    box-shadow: 0 6px 28px rgba(0,0,0,0.65);
}

.player .play-btn:active {
    transform: scale(0.94);
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.player .play-btn::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 22px solid rgba(255,255,255,0.95);
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    margin-left: 6px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
    position: relative;
    z-index: 1;
}

/* Pulse animacija — scale + opacity, veikia nepriklausomai */
@keyframes pulse-ring {
    0%   { transform: scale(1);    opacity: 0.8; }
    70%  { transform: scale(1.55); opacity: 0; }
    100% { transform: scale(1.55); opacity: 0; }
}

/* Loader */
.player .loader {
    position: absolute;
    width: 86px;
    height: 86px;
    border: 3px solid rgba(139, 59, 50, 0.25);
    border-top-color: #8b3b32;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    z-index: 1;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tamsinantis sluoksnis */
.player::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
    z-index: 0;
}

/* --- Mobile override --- */
@media (max-width: 767px) {
    .player {
        height: 300px;
    }
}