/* GR8 Sport Styles */

html:has(.main--gr8-sport),
body:has(.main--gr8-sport) {
    overflow: hidden !important;
    overflow-y: hidden !important;
    height: 100vh;
}

.main--gr8-sport {
    width: 100%;
    max-height: 100vh;
    height: 100vh;
    padding-top: 85px;
    overflow: hidden;
    position: relative;
}

.gr8-sport-container {
    width: 100%;
    height: calc(100vh - 85px);
    background-color: #1a1a1a;
}

/* Loader */
.gr8-sport-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    z-index: 100;
}

.gr8-sport-loader .lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.gr8-sport-loader .lds-ellipsis div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.gr8-sport-loader .lds-ellipsis div:nth-child(1) {
    left: 8px;
    animation: lds-ellipsis1 0.6s infinite;
}

.gr8-sport-loader .lds-ellipsis div:nth-child(2) {
    left: 8px;
    animation: lds-ellipsis2 0.6s infinite;
}

.gr8-sport-loader .lds-ellipsis div:nth-child(3) {
    left: 32px;
    animation: lds-ellipsis2 0.6s infinite;
}

.gr8-sport-loader .lds-ellipsis div:nth-child(4) {
    left: 56px;
    animation: lds-ellipsis3 0.6s infinite;
}

@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(24px, 0);
    }
}

@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}

.loader-text {
    color: #fff;
    font-size: 16px;
    margin-top: 20px;
    font-weight: 500;
}

/* Error Container */
.gr8-sport-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    z-index: 99;
}

.error-content {
    text-align: center;
    padding: 40px;
    max-width: 500px;
}

.error-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.error-title {
    color: #fff;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.error-message {
    color: #aaa;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.error-content .button {
    margin: 10px;
    min-width: 150px;
}

/* iFrame Container */
.gr8-frame-container {
    width: 100%;
    height: calc(100vh - 85px);
    overflow: hidden;
}

.gr8-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    pointer-events: auto;
}

/* Responsive adjustments */
@media (max-width: 1280px) {
    .gr8-frame-container {
        margin-top: 0;
    }

    .main--gr8-sport {
        padding-top: 70px;
    }
}

@media (max-width: 768px) {
    .gr8-frame-container {
        height: calc(100vh - 60px);
    }

    .error-content {
        padding: 20px;
    }

    .error-title {
        font-size: 20px;
    }

    .error-message {
        font-size: 14px;
    }

    .loader-text {
        font-size: 14px;
    }

    .main--gr8-sport {
        height: 100dvh;
    }

    .gr8-frame-container {
        height: calc(100dvh - 85px);
    }
}

.main--gr8-sport .alert__error {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    max-width: 90%;
}

body:has(.main--gr8-sport) .footer,
body:has(.main--gr8-sport) footer {
    position: relative;
    z-index: 2;
}

body:has(.main--gr8-sport) .mobile__footer {
    display: none !important;
}