/* General Styles */
body {
    font-family: Arial, sans-serif;
    background: #1e1e2e;
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh; /* Ensures full height */
}

/* Main Container */
.container {
    max-width: 600px;
    width: 90%;
    padding: 20px;
    background: #28293d;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Heading */
h1 {
    font-size: 24px;
    margin-bottom: 15px;
}

/* Input Fields */
input {
    width: 90%;
    padding: 10px;
    margin: 10px 5px;
    border-radius: 5px;
    border: none;
}

/* Load Button */
button {
    padding: 10px 20px;
    background: #ff4757;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px; /* Added more margin to prevent overlap */
}

button:hover {
    background: #e84118;
}

/* Video.js Player (Responsive Fix) */
.video-js {
    width: 100% !important;
    max-width: 600px; /* Ensures proper scaling */
    height: auto !important;
    border-radius: 10px;
    background: black;
    margin-top: 15px;
}

/* 🔴 Live Indicator (Top Left, Fixed Position) */
.live-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgb(146, 0, 0);
    color: white;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 5px;
    animation: blink 1s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.7); /* Subtle glow */
    font-size: 16px; /* Slightly bigger */
    text-transform: uppercase; /* More official look */
}


/* 🔴 Live Title (Below Video, Properly Centered) */
.live-title {
    font-size: 18px;
    font-weight: bold;
    color: white;
    margin-top: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-icon {
    color: red;
    font-weight: bold;
    animation: blink 1s infinite;
    margin-right: 5px;
}

/* 🔴 Blinking Effect */
@keyframes blink {
    50% {
        opacity: 0.5;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background: #333;
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 14px;
}

/* Fix Footer Live Text */
footer span.live-footer {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fix Overlapping Video Controls */
.video-js .vjs-control-bar {
    bottom: 0 !important;
    z-index: 10;
}

/* Hide seek bar but keep play/pause */
video::-webkit-media-controls-timeline {
    display: none;
}
video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display {
    display: none;
}
video::-webkit-media-controls-play-button {
    pointer-events: all;
}
