body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    height: 60px;
    background-color: #1f1f1f;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.logo-frame {
    padding: 8px 15px;
    border: 2px solid #bb86fc;
    border-radius: 0 15px 15px 0;
    font-weight: bold;
    color: #bb86fc;
    background-color: rgba(187, 134, 252, 0.1);
}

.auth-button {
    background-color: #bb86fc;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.auth-button:hover {
    background-color: #9b64e6;
}

.main-container {
    display: flex;
    flex: 1;
}

.menu {
    width: 150px;
    background-color: #1f1f1f;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item {
    padding: 10px;
    background-color: #292929;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.menu-item:hover {
    background-color: #373737;
}

.menu-item.active {
    background-color: #bb86fc;
    color: #121212;
}

.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 120px);
}

.video-player {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
}

.video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s;
    opacity: 1;
}

.controls.hidden {
    opacity: 0;
    pointer-events: none;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 5px;
    margin-bottom: 8px;
    cursor: pointer;
    background: transparent;
}

.buffer-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #555;
    width: 0%;
    z-index: 1;
}

.progress {
    position: relative;
    height: 100%;
    background: #bb86fc;
    width: 0%;
    z-index: 2;
}

.buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.buttons button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

.time {
    color: white;
    font-size: 14px;
    margin: 0 10px;
}

.volume-slider {
    width: 80px;
}

.fullscreen {
    margin-left: auto;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #1f1f1f;
    color: #e0e0e0;
    border-top: 1px solid #292929;
}

.modal {
    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;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: #1f1f1f;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: #e0e0e0;
}

.modal-content h2 {
    margin-bottom: 15px;
}

.modal-content input {
    width: 80%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #292929;
    border-radius: 5px;
    background-color: #292929;
    color: #fff;
}

.close-button {
    background-color: #bb86fc;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.close-button:hover {
    background-color: #9b64e6;
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .menu {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px;
    }
    
    .menu-item {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .content {
        height: auto;
        min-height: 300px;
        padding: 10px;
    }
    
    .video-player {
        height: auto;
    }
    
    .video-container {
        padding-bottom: 56.25%;
    }
    
    .buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .time {
        flex-basis: 100%;
        text-align: center;
        margin: 5px 0;
    }
    
    .volume-slider {
        width: 60px;
    }
    
    header {
        padding: 5px 10px;
    }
    
    .auth-button {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .logo-frame {
        padding: 6px 12px;
        font-size: 16px;
    }
    
    .controls {
        opacity: 1;
        transition: none;
    }
    
    .controls.hidden {
        opacity: 0;
    }
}

@media (max-width: 768px) and (orientation: portrait) {
    .controls {
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    .controls.force-show {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

@media (max-width: 480px) {
    .menu-item {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .video-player {
        height: auto;
    }
    
    .buttons button {
        font-size: 14px;
    }
}