html, body {
    width: 100vw;
    height: 100vh;
    margin: 1px 0 0 0;
    transform: translateZ(0);
    /* -webkit-user-select: none; */
    -webkit-touch-callout: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    /* user-select: none; */
    background-color: black;
    overflow: hidden;
  }

/* Lớp chung để chứa các trình phát */
.player-container {
    display: none; /* Ẩn tất cả các player ban đầu, JS sẽ điều khiển */
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Định dạng cho các video element bên trong */
#veplayer, #hls-player, #webrtc-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: black;

    
}

/* LỚP PHỦ CHUNG cho trạng thái và các nút bấm */
.player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none; /* Ẩn ban đầu, JS sẽ điều khiển */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5); /* Nền mờ để thấy video phía sau */
    text-align: center;
    color: white;
    font-size: 1.2em;
    z-index: 100; /* Quan trọng: Đảm bảo lớp phủ nằm trên video */
}

/* NÚT BẬT TIẾNG chung */
.unmute-button {
    color: white;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 18px;
    padding: 15px 25px;
    border-radius: 8px;
    cursor: pointer;
    display: none; /* Ẩn ban đầu, JS sẽ điều khiển */
    z-index: 101; /* Nằm trên cả lớp phủ nền */
}

.unmute-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* SPINNER LOADING chung */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top: 5px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none; /* Ẩn ban đầu, JS sẽ điều khiển */
    z-index: 101;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}