* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body,
html {
    width: 100%;
    height: 100%;
    background: #ffffff;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

#status {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    background: #f0f0f0;
}

.error {
    background: #ffdddd;
}

.warning {
    background: #fff3cd;
}

.success {
    background: #ddffdd;
}

.controls {
    margin: 15px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

button {
    padding: 8px 15px;
    cursor: pointer;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
}

#videoContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #d1d1d1;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.video {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    max-width: 100vw;
}

#videoPlayer {
    padding-bottom: 31px;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

.input-group {
    margin-right: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input,
select {
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Custom video controls */
.custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    /* opacity: 0; */
    transition: opacity 0.3s;
    padding: 0 10px;
}

/* #videoContainer:hover .custom-controls {
    opacity: 1;
} */

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.volume-control {
    width: 80px;
    height: 1px !important;
    border-radius: 2px;
    appearance: none;
    background: #ee1111;
    padding: 0px !important;
    border: #ee1111 1px solid;
}

.volume-control::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.volume-control::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: none;
}

/* Hide native controls completely */
#videoPlayer::-webkit-media-controls {
    display: none !important;
}

/* Loading spinner */
.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    z-index: 5;
    display: none;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.live-svg {
    position: absolute;
    top: 10px;
    left: 15px;
    width: 45px;
}

.play-icon-main {
    width: 58px;
    margin: 2px 0 0 12px;
}

#logoOverlay {
    position: absolute;
    top: -20px;
    right: 25px;
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#logoImage {
    height: 99px;
    margin-bottom: -27px;
}

@media screen and (max-width : 500px) {
    #logoImage {
        height: 80px;
        margin-bottom: -23px;
    }
}

#bandwidthInfo {
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    display: flex;
    align-items: center;
}

.play-icon {
    width: 17px;
    height: 17px;
    fill: #fff;
}

.control-right-group {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: 5px;
}

.wifi-icon {
    width: 16px;
    height: 16px;
    fill: #ffffff;
    margin-right: 5px;
}

.video-PlayIcon {
    width: 74px;
    height: 74px;
    fill: #15ff6f;
    position: absolute;
    top: 50%;
    left: 54.5%;
    transform: translate(-50%, -50%);
}

#playLiveStream {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    width: 150px;
    height: 150px;
    background-image: linear-gradient(to right,
            rgba(128, 23, 23, 0.9),
            #ff0000);
    cursor: pointer;
}

.live-stream-logo {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 49px;
    height: 25px;
    z-index: 10;
}

.error-container {
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    background: #ffdddd;
    color: #ff0000;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    width: 80%;
    max-width: 500px;
    text-align: center;
}

#status-indicator {
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    display: none;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 15;
    background: rgba(0, 0, 0, 0.6);
    color: white;
}

#buffer-indicator {
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    background: #fff3cd;
    display: none;
    position: absolute;
    top: 50px;
    left: 10px;
    z-index: 15;
    background: rgba(0, 0, 0, 0.6);
    color: white;
}

.connected {
    background: rgba(0, 128, 0, 0.6);
}

.buffering {
    background: rgba(255, 165, 0, 0.6);
}

.error {
    background: rgba(255, 0, 0, 0.6);
}

/* page-loader container */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    z-index: 9999;
}

/* Wrapper for stacking GPS above logo */
.logo-wrapper {
    position: relative;
    display: inline-block;
}

/* Base logo (twings-logo.png) */
.base-logo {
    width: 280px;
    height: auto;
    display: block;
}

/* GPS logo (twings-gps.png) */
.gps-logo {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 282px;
    height: auto;
    animation: bouncePause 4.6s infinite ease-in-out;
}

/* Live icon + Loading text wrapper (centered) */
.status-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    /* space between live-icon and text */
    margin-top: 15px;
}

/* Live icon centered */
.live-icon {
    width: 40px;
    height: auto;
}

/* Loading text */
.status-wrapper p {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    letter-spacing: 2px;
}

/* Animate "Loading.." text dots */
.status-wrapper p::after {
    content: "Loading";
    animation: loadingText 2.5s infinite;
}

/* Bounce + Pause animation for GPS logo */
@keyframes bouncePause {
    0% {
        transform: translate(-50%, 0) scale(1);
    }

    10% {
        transform: translate(-50%, -120px) scale(1.05);
    }

    /* jump up */
    20% {
        transform: translate(-50%, 0) scale(0.9);
    }

    /* squish */
    30% {
        transform: translate(-50%, -60px) scale(1.02);
    }

    /* rebound */
    40% {
        transform: translate(-50%, 0) scale(0.97);
    }

    /* settle */
    100% {
        transform: translate(-50%, 0) scale(1);
    }

    /* stay still (pause) */
}

@keyframes loadingText {
    0% {
        content: "Loading";
    }

    25% {
        content: "Loading.";
    }

    50% {
        content: "Loading..";
    }

    75% {
        content: "Loading...";
    }

    100% {
        content: "Loading";
    }
}

.timer-container {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 30;
    display: none;
}

.warning-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 40;
    display: none;
}

.warning-overlay button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    margin-top: 20px;
    cursor: pointer;
    font-weight: bold;
}

.warning-overlay button:hover {
    background: #c0392b;
}