:root {
    --background-color: #000;
    --background-second: #F8F8F8;
    --text-color: #fff;
    --subtext-color: #000000;
    --btn-bg-color: #000000;
    --btn-bg-solid: #ace06d;
    --btn-text-color: #FFE632;
    --accent-color: #DD8A2E;
    --border-color: #555555;
    --bg-gray: #232323;
    --border-radius-lg: 8px;
}
html, body, #app {
    height: 100%;
    margin: 0;
    padding: 0;
}
div#app {
    width: 100%;
}
body {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--text-color);
    font-weight: 400;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    background: var(--background-color);
    box-sizing: border-box;
    overflow: hidden;
    font-family: 'Manrope', sans-serif;
}

* {
    box-sizing: border-box;
}

.btn-confirm {
    width: 100%;
    background-color: #ec1367;
    border: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    padding: 10px;
}
.reject {
    color: rgb(0, 0, 0);
    font-family: Manrope, sans-serif;
    font-size: 16px;
    font-weight: 200;
    line-height: 22px;
    letter-spacing: 0;
    text-align: center;
    text-decoration-line: underline;
}
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-size: 10px;
    line-height: 1;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

body, a {
    text-size-adjust: none;
}

a {
    text-decoration: underline;
}

/*.cla::after {*/
/*    content: "";*/
/*    clear: both;*/
/*    display: table;*/
/*}*/

.mpic {
    display: block;
    max-width: 100%;
    margin: 0px auto;
}

.wrapper {
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.header {
    height: 60px;
    position: relative;
    padding: 15px;
    border-bottom: 1px solid var(--accent-color);

    @media screen and (max-width: 320px) {
        height: 40px;
        padding: 10px;
    }

    @media screen and (orientation: landscape) and (max-height: 415px) {
        height: 40px;
        padding: 10px;
    }
}

.header-logo {
    height: 35px;
    @media screen and (max-width: 320px) {
        height: 25px;
    }

    @media screen and (orientation: landscape) and (max-height: 415px) {
        height: 25px;
    }
}

a.close {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 22px;
    border-radius: 50px;
    background: #222222;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0 0 4px 0;
}

.middle-box {
    /*padding-left: 8px;*/
    /*padding-right: 8px;*/
    @media screen and (orientation: landscape) and (max-height: 415px) {
        display: flex;
        flex-direction: column;
        /*justify-content: center;*/
        width: 100%;
        height: 100%;
        align-items: center;
        .player {
            width: 100%;
        }
    }
}

.player {
    /*height: 420px;*/
    height: 40svh;
    min-height: 250px;
    margin: 0px auto 30px;
    position: relative;

    @media screen and (orientation: landscape) {
        margin-bottom: 0!important;
    }

    .text {
        color: #ffffff;
        text-align: center;
        padding: 10px 0;
    }
}

.player-title {
    position: absolute;
    top: 5.66667px;
    left: 8.5px;
    max-width: 308px;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    color: rgb(255, 255, 255);
    font-size: 12px;
    line-height: 16px;
}

.player-bar {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    height: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    @media screen and (orientation: landscape) and (max-width: 768px) {
        position: static;
    }
}

.player-bar__play {
    height: 20px;
}
.player-bar__line {
    flex-grow: 1;
    height: 7px;
    background-color: #A2A2A2;
    border-radius: 5px;
    position: relative;
    margin-left: 10px;
}

.player-bar__line-circle {
    content: "";
    background-color: var(--accent-color);
    height: 20px;
    width: 20px;
    border-radius: 50%;
    position: absolute;
    left: -10px;
    top: 0;
    bottom: 0;
    margin: auto;
    box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15), 0px 1px 2px 0px rgba(0, 0, 0, 0.3);
}

@keyframes progress50 {
    from {
        width: 5%;
    }
    to {
        width: 15%;
    }
}

.player-bar__line-progress {
    height: 100%;
    background-color: white;
    width: 5%;
    border-radius: 5px;
    animation: progress50 5s steps(10) forwards;
}
.player-bar__volume {
    height: 15px;
}
.player-bar__settings {
    height: 15px;
}
.player-bar__full {
    height: 15px;
}

.btn-box {
    position: absolute;
    left: 0px;
    right: 0px;
    /*bottom: -34px;*/
    top: 0;
    bottom: 0;
    z-index: 111;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /*@media screen and (orientation: landscape) and (max-height: 415px) {*/
    /*    bottom: 16px;*/
    /*}*/

    @media screen and (orientation: landscape) and (max-width: 768px) {
        position: static;
    }
}
.buy {
    @media screen and (orientation: landscape) and (max-height: 415px) {
        line-height: normal;
        display: flex;
        box-sizing: border-box;
        position: relative;
        justify-content: center;
        align-items: center;
    }
}
.btn {
    display: block;
    max-width: 480px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    background: var(--bg-gray);
    color: #fff;
    font-size: 26px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    position: relative;
    z-index: 1;
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--border-color);
}
@media (max-width: 320px) {
    .btn {
        font-size: 24px;
    }
}
.btn-text {
    height: 130px;
    position: relative;
    text-align: left;
    line-height: 20px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
    font-size: 30px;
    @media screen and (orientation: landscape) and (max-height: 415px) {
        line-height: normal;
        display: flex;
        padding: 20% 40px 20% 0;
        box-sizing: border-box;
        position: relative;
        justify-content: center;
        align-items: center;
    }
}

.btn-text__img {
    height: 50px;
}

.btn-text__img img {
    height: 100%;
    width: auto;
}

.btn-text-small {
    font-size: 20px;
}
.btn-text1 {
    line-height: normal;
    display: flex;
    height: 130px;
    /*padding: 20% 0;*/
    box-sizing: border-box;
    position: relative;
    justify-content: center;
    align-items: center;
}

.price {
    color: rgb(153, 153, 153);
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-align: center;
    padding-top: 10px;
}

.price-bg {
    display: inline-block;
    padding: 0px 2px 2px;
    color: var(--text-color);
}

.meta {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    /*margin: 52px 0px 6px;*/
    @media screen and (orientation: landscape) {
        display: none;
    }

    @media screen and (max-width: 320px) {
        display: none;
    }
}

.meta-wrap {
    display: flex;
    padding: 14px 20px;
    align-items: center;
    gap: 14px;
    background-color: var(--bg-gray);
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--border-color);
}

.meta-like, .meta-dislike {
    flex-grow: 0;
}

.meta-like img, .meta-dislike img {
    height: 40px;
}

.meta-rate {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.meta-rate-percent {
    color: var(--accent-color);
    font-size: 18px;
    font-weight: bold;
    /*flex-grow: 1;*/
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 4px;
}
.meta-rate-text {
    font-size: 10px;
    margin-top: 4px;
}

.banners {
    border-top: 1px solid #A2A2A2;
    border-bottom: 1px solid #A2A2A2;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background-color: var(--bg-gray);
    width: 100%;
}

.banner {
    margin-top: 5px;
    /*@media screen and (orientation: landscape) and (max-height: 415px) {*/
    /*    display: none;*/
    /*}*/
}

.banner-wrap {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
}

.related {
    margin-bottom: 5px;
}

.related-wrap {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    gap: 5px;
}

.related > div {
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: 0;
}

.related > div img {
    width: 100%;
}

.footer {
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: 100%;
    padding-bottom: 2px;
    background: var(--background-color);
    font-size: 16px;
    line-height: 0.9;
    text-align: center;
    box-sizing: border-box;
}

.footer a {
    color: inherit;
    text-decoration: underline;
}
.footer, .footer a {
    font-size: 10px;
    line-height: 1;
}

.control {
}

.control img {
    display: block;
    width: 100%;
    max-width: 720px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

@media (max-height: 633px) {
}

@media (max-height: 558px) {
}

@media (max-height: 459px) {
    .player {
        height: 175px;
    }
}

@media (orientation: landscape) {
}

@media (max-width: 767px) and (orientation: landscape) {
    .player {
        height: calc(100% - 140px);
    }

    .btn {
        max-width: 320px;
        line-height: normal;
    }

    .btn-text::before {
        margin-top: -16px;
        border-width: 16px 0px 16px 16px;
        border-style: solid;
        border-color: transparent transparent transparent rgb(255, 255, 255);
        border-image: initial;
    }

    /*.tags, .player-bar, .related {*/
    /*.tags, .related {*/
    .tags {
        display: none;
    }
}

@media (orientation: landscape) and (width: 568px) {
    body {
        width: 100%;
        height: 99%;
    }

    .wrapper {
        position: absolute;
        top: 0px;
        left: 0px;
        width: 100%;
        height: 321px;
        overflow: hidden;
    }

    .footer {
        padding-bottom: 5px;
    }
}

@media (max-height: 319px) and (orientation: landscape) and (width: 568px) {
    .wrapper {
        height: 100%;
    }

    .footer {
        padding-bottom: 0px;
    }
}

@media (max-width: 480px) and (orientation: landscape) {
    .player {
        height: 90px;
    }
}

@media (min-width: 768px) and (orientation: landscape) {
    .wrapper {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    /*.btn-box {*/
    /*    padding-top: 130px;*/
    /*}*/
}

#finalize {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.hideThis {
    opacity: 1;
    transition: opacity 1s ease-in-out;
}
.showThis {
    display: none;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

body {
    .close {
        display: none;
    }
}

body.close {
    .close {
        display: flex;
    }
}

body.loader {
    .btn-box {
        display: none!important;
    }
}


.loading {
    display: none;
}
body {
    &.loader {
        .loading {
            width: 100%;
            position: absolute;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            display: flex;
            height: 100% !important;
            &__loader {
                display: flex;
            }
        }
    }
}


.loaderItem {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    position: absolute;
    top: 40%;
    border: 3px solid;
    border-color: #FFF #FFF transparent transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;

    &::after,
    &::before {
        content: '';
        box-sizing: border-box;
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        margin: auto;
        border: 3px solid;
        border-color: transparent transparent #FF3D00 #FF3D00;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        box-sizing: border-box;
        animation: rotationBack 0.5s linear infinite;
        transform-origin: center center;
    }

    &::before {
        width: 32px;
        height: 32px;
        border-color: #FFF #FFF transparent transparent;
        animation: rotation 1.5s linear infinite;
    }
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotationBack {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}
