body,
html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
background-color: #000;
cursor: default;
user-select: none;
font-family: Arial, sans-serif;
position: relative;
}
.video-container {
position: relative;
width: 100%; /* Thay đổi chiều rộng thành 100% */
height: auto;
margin-bottom: 10px;
}
video {
width: 100%;
height: auto;
pointer-events: none;
}
.livestream-controls {
display: flex;
align-items: center;
position: absolute;
top: 20px;
left: 20px;
z-index: 1;
}
/* Kích thước mắt xem */
.livestream-controls img {
width: 20px; /* Đặt chiều rộng của ảnh */
height: auto; /* Tự động tính toán chiều cao dựa trên tỷ lệ */
padding-right: 5px;
}
#live-button {
padding: 5px 8px;
background-color: red;
color: white;
font-size: 12px;
font-weight: bold; /* Thiết lập chữ in đậm */
border: none;
border-radius: 5px;
cursor: pointer;
margin-right: 10px;
}
.livestream-container img {
margin-right: 10px;
}
.livestream-info {
position: absolute;
top: 1px;
left: 85px;
z-index: 1;
display: flex;
align-items: center;
background-color: rgba(0, 0, 0, 0.5); /* Điều chỉnh mức độ đen hơi trong suốt ở đây */
padding: 3px 8px;
border-radius: 5px;
}
#view-counter {
color: white;
font-size: 14px;
}
#end-message {
display: none;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-size: 30px;
text-align: center;
font-size: 24px;
white-space: nowrap;
}
#sound-toggle {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
padding: 10px 20px;
background-color: rgb(213, 185, 185);
color: rgb(0, 0, 0);
font-size: 18px;
border: none;
border-radius: 20px;
cursor: pointer;
z-index: 1;
display: block;
font-weight: bold; /* Thiết lập chữ in đậm */
text-align: center; /* Căn giữa nội dung nút */
transition: background-color 0.3s, color 0.3s, box-shadow 0.3s; /* Thêm transition để có hiệu ứng mượt */
box-shadow: 0 0 10px rgba(0, 0, 0, 0.4); /* Đổ bóng ban đầu */
}
#sound-toggle:hover {
background-color: rgb(180, 150, 150); /* Màu nền khi hover */
color: rgb(53, 51, 51); /* Màu chữ khi hover */
box-shadow: 0 0 10px rgba(0, 0, 0, 0.4); /* Đổ bóng khi hover */
border-radius: 20px;
}
#comment-section {
width: 100%;
margin-top: auto;
margin-bottom: 20px;
}
.comment-input-wrapper {
display: flex;
}
#comments {
max-height: 150px; /* Thay đổi kích thước tối đa theo nhu cầu của bạn */
overflow-y: auto; /* Tạo thanh cuộn nếu cần */
}
#comment-input {
width: calc(100% - 80px);
padding: 1px;
border: 1px solid rgb(7, 7, 7);
border-radius: 5px 0 0 5px;
resize: none;
/* Thêm các thuộc tính sau để kiểm soát kích thước */
max-width: 100%;
max-height: 150px; /* Điều chỉnh kích thước tối đa theo nhu cầu của bạn */
font-size: 16px; /* Điều chỉnh kích thước chữ */
}
#comment-input::placeholder {
text-align: left; /* Căn bên trái */
font-size: 15px; /* Kích thước font chữ */
line-height: 1.5; /* Độ dài dòng */
padding-top: 10px; /* Khoảng cách từ trên xuống */
}
#comment-submit {
width: 80px;
padding: 1px;
background-color: #007bff;
color: white;
border: none;
border-radius: 0 5px 5px 0;
cursor: pointer;
font-size: 18px;
transition: background-color 0.1s; /* Thêm transition cho background-color */
}
#comment-submit:active {
background-color: #080808db; /* Màu nền mới khi nút được nhấn */
}
.comment {
background-color: rgba(93, 91, 91, 0.7); /* Màu đen trong suốt */
color: white; /* Màu chữ trắng */
padding: 5px;
margin-bottom: 5px;
border-radius: 10px;
max-width: fit-content; /* Thay đổi thành fit-content để co giãn theo nội dung */
word-wrap: break-word;
overflow-wrap: break-word;
font-size: 14px;
}
#loading-spinner {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 50px;
height: 50px;
margin: auto;
border: 5px solid #f3f3f3;
border-top: 5px solid #3498db;
border-radius: 50%;
animation: spin 2s linear infinite;
display: none;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* Khung bao bọc toàn bộ phần tử */
.custom-container {
width: 100%;
max-width: 1000px; /* Giới hạn chiều rộng tối đa */
margin: 0 auto; /* Căn giữa khung bao bọc */
padding: 0px; /* Padding bên trong */
box-sizing: border-box; /* Đảm bảo kích thước tính cả padding và border */
display: none;
}