/* 24 Player – 100% responsive (mobil + tabletă + desktop) */
.p24-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    margin: 20px 0;
}

.p24-player {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
}

.p24-player iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: 0;
    pointer-events: none;
}

/* Overlay + Big Play */
.p24-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.4s;
    z-index: 10;
}

.p24-play {
    background: #76c04f;
    color: white;
    border: none;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
}

/* Bara de control */
.p24-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    font-family: 'Roboto', Arial, sans-serif;
    z-index: 11;
    opacity: 0;
    transition: opacity 0.3s;
}

.p24-wrapper:hover .p24-controls,
.p24-wrapper.playing .p24-controls,
.p24-wrapper.touch .p24-controls {
    opacity: 1;
}

/* Progress bar */
.p24-progress {
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    margin-bottom: 8px;
    cursor: pointer;
    position: relative;
}

.p24-filled {
    height: 100%;
    width: 0%;
    background: #075a6a;
    border-radius: 2px;
}

.p24-filled::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #075a6a;
    border-radius: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s;
}

.p24-wrapper:hover .p24-filled::after {
    opacity: 1;
}

/* Butoane */
.p24-btns {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.p24-left-controls,
.p24-right-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.p24-btn {
    background: transparent;
    color: white;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 20px;
    transition: background 0.2s;
}

.p24-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* Volum */
.p24-volume-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.p24-volume-bar {
    width: 60px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.p24-volume-fill {
    height: 100%;
    width: 100%;
    background: white;
    border-radius: 2px;
}

/* Timp */
.p24-time {
    font-size: 13px;
    font-weight: 500;
    min-width: 85px;
}

/* RESPONSIVE – MOBIL & TABLETĂ */
@media (max-width: 768px) {
    .p24-play {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .p24-controls {
        padding: 8px;
    }

    .p24-btn {
        padding: 6px;
        font-size: 18px;
    }

    .p24-volume-bar {
        width: 50px;
    }

    .p24-time {
        font-size: 12px;
    }

    .p24-btns {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .p24-volume-wrapper {
        display: none; /* ascundem volumul pe ecrane foarte mici – ca la YouTube */
    }

    .p24-time {
        font-size: 11px;
    }
}