/* Base styles */
body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
}

/* Pop-up Window styles */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.popup-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.popup-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

#cancel-button {
    background-color: #ccc;
    color: black;
}

#ok-button {
    background-color: #0088cc;
    color: white;
}

#ok-button:hover {
    background-color: #006699;
}

/* Hide popup by default */
.popup.hidden {
    display: none;
}

/* Video Player styles */
.video-container {
    position: relative;
    width: 90%; /* Default width for smaller screens */
    max-width: 1200px; /* Maximum width for larger screens */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

video {
    width: 100%;
    height: auto;
}

.quality-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

#quality-button {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}

#quality-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.quality-options {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 4px;
    overflow: hidden;
}

.quality-options li {
    color: white;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
}

.quality-options li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.quality-menu:hover .quality-options {
    display: block;
}

/* Telegram Join Button styles */
.telegram-button-container {
    margin-bottom: 20px; /* Space between button and video player */
}

.telegram-button {
    background-color: #0088cc; /* Telegram's brand color */
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.telegram-button:hover {
    background-color: #006699; /* Darker shade for hover effect */
}

/* Fullscreen styles */
:fullscreen .quality-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

/* Responsive styles */
@media (min-width: 600px) {
    .video-container {
        width: 80%; /* Adjust width for medium screens */
    }
}

@media (min-width: 900px) {
    .video-container {
        width: 70%; /* Adjust width for larger screens */
    }
}

@media (max-width: 480px) {
    /* Adjustments for mobile screens */
    .video-container {
        width: 100%; /* Full width on small screens */
    }

    #quality-button {
        padding: 6px 12px; /* Smaller button for mobile */
        font-size: 12px;
    }

    .quality-options li {
        padding: 6px 12px; /* Smaller dropdown items for mobile */
        font-size: 12px;
    }

    .telegram-button {
        padding: 8px 16px; /* Smaller button for mobile */
        font-size: 14px;
    }
}