.wplive-streamer {
    width: 100%;
}

/* Video container with aspect ratio enforcement */
.wplive-streamer-player {
    position: relative;
    width: 100%;
    max-width: 100%; /* Ensures the player doesn't exceed its container */
    overflow: hidden; /* Hides overflow content */
    background: black; /* Fallback background color */
    padding-top: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625 or 56.25%) */
}

/* Video element inside the container */
.wplive-streamer-player video,
.wplive-streamer-player .video-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* "Live" label styling */
.wplive-streamer-player .live-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: red;
    color: white;
    padding: 5px 10px;
    font-weight: bold;
    font-size: 14px;
    z-index: 10;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Center the play button */
.wplive-streamer-player .vjs-big-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20; /* Ensures it sits above other elements */
    background-color: rgba(0, 0, 0, 0.5); /* Optional: semi-transparent background */
    border-radius: 50%; /* Makes the button circular */
    border: none; /* Removes any default borders */
    width: 60px; /* Adjust the size of the button */
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease; /* Optional: Smooth animation on hover */
}

/* Optional: Hover effect */
.wplive-streamer-player .vjs-big-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1); /* Slightly enlarge on hover */
}

/* "Live" label styling in control bar */
.vjs-live-indicator {
    display: flex;
    align-items: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    margin-left: 10px;
    margin-right: 20px; /* Add padding to the right */
}

.vjs-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: red;
    border-radius: 50%;
    margin-right: 5px;
}

.wplive-streamer-comments {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #fff;
}

.wplive-streamer-comments h3 {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.3;
}

.wplive-comment-list {
    max-height: 280px;
    overflow-y: auto;
    padding: 0;
    margin-bottom: 14px;
}

.wplive-comment,
.wplive-comment-empty {
    margin: 0 0 12px;
}

.wplive-comment {
    padding-bottom: 12px;
    border-bottom: 1px solid #ececec;
}

.wplive-comment:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.wplive-comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1.4;
}

.wplive-comment-meta strong {
    color: #111;
}

.wplive-comment-meta time {
    color: #666;
}

.wplive-comment p {
    margin: 0;
    color: #222;
    line-height: 1.5;
    word-break: break-word;
}

.wplive-comment-form {
    margin: 0;
}

.wplive-comment-message,
.wplive-comment-name {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #c7c7c7;
    border-radius: 6px;
    color: #111;
}

.wplive-comment-message {
    display: block;
    min-height: 82px;
    padding: 10px;
    resize: vertical;
}

.wplive-comment-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.wplive-comment-name {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
}

.wplive-comment-actions button {
    flex: 0 0 auto;
    padding: 8px 16px;
    border: 0;
    border-radius: 6px;
    background: #d60000;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.wplive-comment-actions button:disabled,
.wplive-comment-form input:disabled,
.wplive-comment-form textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wplive-comment-status {
    min-height: 20px;
    margin-top: 8px;
    color: #555;
    font-size: 13px;
}

@media (max-width: 600px) {
    .wplive-comment-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .wplive-comment-actions button {
        width: 100%;
    }
}
