body {
    margin: 0;
    padding: 0;
    background: #000;
    overflow: hidden;
}

.player-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    background: #000;
}

/* Hamburger menu - Right side */
.hamburger-menu {
    position: fixed;
    top: 15px;
    right: 15px; /* Changed from left to right */
    z-index: 1000;
    cursor: pointer;
    padding: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 4px 0;
    background: white;
    transition: 0.3s;
}

/* Server list - Right side */
.server-list {
    position: fixed;
    top: 50px;
    right: -250px; /* Initially hidden on right */
    width: 200px;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999;
    transition: 0.3s;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
}

.server-list::after {
    content: '';
    position: absolute;
    top: -20px;
    right: 10%; /* Arrow aligned to right */
    transform: translateX(50%);
    border: 10px solid transparent;
    border-bottom-color: rgba(0, 0, 0, 0.9);
}

.server-list.active {
    top: 70px;
    right: 16px; /* Visible position on right */
    opacity: 1;
    pointer-events: auto;
}

.server-list button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: none;
    border: none;
    color: white;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
}

.server-list button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.server-list button.active {
    background: rgba(255, 255, 255, 0.2);
}

/* Video player iframe */
iframe, #video-player {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    display: block;
    height: 100vh !important;
    overflow: hidden;
}

/* Error message styling */
.error-message {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    z-index: 1000;
    display: none;
    text-align: center;
    max-width: 80%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-family: sans-serif;
}

.error-message.show {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Loader */
.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 100;
}

.load-circle {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    transform: scale(1.2);
}

.load-circle div {
    position: absolute;
    border: 4px solid #fff;
    opacity: 1;
    border-radius: 50%;
    animation: load-circle 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.load-circle div:nth-child(2) {
    animation-delay: -0.5s;
}

@keyframes load-circle {
    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }
    4.9% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }
    5% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        top: 0px;
        left: 0px;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}
