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

body {
    background: #000;
    overflow: hidden;
}

.player-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding-top: 56.25%;
    background: #000;
}

#myElement {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Logo Styles */
.orbit-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: auto;
    opacity: 1 !important;
    pointer-events: none;
    z-index: 2147483647;
    transition: none;
}

/* Fullscreen Adjustments */
.jwplayer.jw-flag-fullscreen .orbit-logo {
    top: 20px !important;
    right: 20px !important;
}

/* Orientation Adjustments */
@media screen and (orientation: portrait) {
    .orbit-logo {
        top: 20px !important;
        right: 20px !important;
    }
}

@media screen and (orientation: landscape) {
    .orbit-logo {
        top: 20px !important;
        right: 20px !important;
    }
}

/* JWPlayer Controls Customization */
.jw-controls {
    opacity: 1 !important;
    visibility: visible !important;
}

.jw-controls-backdrop {
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%) !important;
}

.jw-button-container {
    opacity: 1 !important;
    visibility: visible !important;
}

.jw-logo-button {
    display: none !important;
}

@media screen and (max-width: 768px) {
    .orbit-logo {
        width: 40px;
    }

    .jw-controls {
        display: flex !important;
    }
}

/* Error Message */
.error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-family: Arial, sans-serif;
    z-index: 9999;
}