* {
    box-sizing: border-box;
    font-family: "IBM Plex Mono", monospace;
    touch-action: manipulation;
}

html,
body {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    padding: 0;
    margin: 0;
    font-size: 13px;
    background-color: #000;
}

.terms-notice {
    color: #777;
    font-size: 0.7rem;
    width: 100%;
    text-align: center;
    margin-top: 3rem;
}

.terms-notice a {
    color: #777;
    font-size: 0.7rem;
}

.terms-notice a:hover {
    color: #555;
}

.static-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 1;
    z-index: 15;
    display: block;
    background-image: url("img/static.gif");
    background-size: 200px 200px;
    background-repeat: repeat;
}

.smpte {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 1;
    z-index: 16;
    display: flex;
    flex-wrap: nowrap;
    opacity: 0;
}

.smpte .bar {
    height: 100%;
    width: 100%;
}

.smpte .bar-1 {
    background-color: rgb(255, 255, 255);
}

.smpte .bar-2 {
    background-color: rgb(180, 180, 16);
}

.smpte .bar-3 {
    background-color: rgb(16, 180, 180);
}

.smpte .bar-4 {
    background-color: rgb(16, 180, 16);
}

.smpte .bar-5 {
    background-color: rgb(180, 16, 180);
}

.smpte .bar-6 {
    background-color: rgb(180, 16, 16);
}

.smpte .bar-7 {
    background-color: rgb(16, 16, 180);
}

#player {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.power-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 1;
    z-index: 18;
    display: none;
    background-color: #000;
}

.info,
.guide {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 20;
    display: none;
    align-items: center;
    justify-content: center;
}

.info .bg,
.guide .bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(7px);
    z-index: 20;
}

.info .wrapper,
.guide .wrapper {
    width: 90%;
    height: 90%;
    max-height: 480px;
    max-width: 520px;
    padding: 0;
    border-radius: 0.7rem;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
    z-index: 21;
}

.info .wrapper .close,
.guide .wrapper .close {
    padding: 0.7rem;
    border-radius: 50%;
    transition: 0.2s ease;
    margin-left: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
}

.info .wrapper .close:hover,
.guide .wrapper .close:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.info .wrapper .close img,
.guide .wrapper .close img {
    width: 1.5rem;
    height: 1.5rem;
    opacity: 0.7;
}

.info .wrapper .content,
.guide .wrapper .content {
    width: 100%;
    padding: 3rem;
    overflow-y: auto;
}

.guide .wrapper .content {
    padding: 3rem 1rem 3rem 3rem;
}

.info .wrapper .content::-webkit-scrollbar,
.guide .wrapper .content::-webkit-scrollbar {
    width: 0.5rem;
}

.info .wrapper .content::-webkit-scrollbar-track,
.guide .wrapper .content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.07);
}

.info .wrapper .content::-webkit-scrollbar-thumb,
.guide .wrapper .content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    width: 0.5rem;
}

.info .wrapper .content::-webkit-scrollbar-thumb:hover,
.guide .wrapper .content::-webkit-scrollbar-thumb:hover {
    background: #eee;
}


.info .wrapper .content .title {
    font-size: 1rem;
    color: #666;
    background-color: rgba(0, 0, 0, 0.03);
    padding: 1rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0.3rem;
}


.info .wrapper .content .text {
    font-size: 1rem;
    color: #222;
}

.info .wrapper .content .text a {
    font-size: 1rem;
    color: #2980b9;
    padding: 0.7rem 1.2rem;
    background-color: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 0.3rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    margin: 0.7rem 0;
    display: block;
    width: 100%;
}

.info .wrapper .content .text a:first-child {
    background-color: #f39c12;
    color: #fff;
}

.info .wrapper .content .text a:last-child {
    background-color: #000;
    color: #fff;
}

.info .settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    text-transform: capitalize;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.info .settings-item:last-child {
    border: 0;
}

.info .settings-item .switch {
    width: 3.3rem;
    height: 2.1rem;
    border-radius: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.07);
    background-color: rgba(0, 0, 0, 0.03);
    padding: 0.1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.info .settings-item .switch .k {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.07);
    background-color: #fff;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.07), 0px 2px 3px rgba(0, 0, 0, 0.03);
}

.info .checkbox {
    display: none;
}

.info .checkbox:checked~.switch {
    background-color: #2ecc71;
}

.info .checkbox:checked~.switch .k {
    margin-left: auto;
}

.info .section {
    margin: 2rem 0;
}

.info .section:first-child {
    margin-top: 0;
}

.info .section:last-child {
    margin-bottom: 0;
}

.guide .wrapper .content .item {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    cursor: pointer;
}

.guide .wrapper .content .item:hover {
    opacity: 0.7;
}

.guide .wrapper .content .item .name {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 500;
    margin-right: 1.5rem;
}

.guide .wrapper .content .item .value {
    font-size: 0.9rem;
    color: #222;
    text-transform: uppercase;
    font-weight: 700;
}

.guide .wrapper .content .item-selected .name,
.guide .wrapper .content .item-selected .value {
    color: blue;
}

.control {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 10rem;
    z-index: 19;
    display: none;
    border-radius: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(7px);
    transition: 0.2s ease;
    overflow: hidden;
    flex-wrap: nowrap;
    user-select: none;
    -webkit-user-drag: none;
}

.control .t-1,
.control .t-2 {
    width: 100%;
    height: 100%;
    padding: 0.7rem;
    flex-shrink: 0;
    transition: 0.1s ease;
}

@keyframes swipeControl {
    0% {
        transform: translateX(0%);
    }

    40% {
        transform: translateX(-100%);
    }

    60% {
        transform: translateX(-100%);
    }

    0% {
        transform: translateX(0%);
    }
}

.control .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.control .wrapper:last-child {
    margin-bottom: 0;
}

.control .wrapper .button {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #fff;
    border-radius: 0.3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 1.05rem;
    color: #000;
    position: relative;
}

.control .wrapper .button .notify {
    position: absolute;
    top: -0.2rem;
    right: -0.2rem;
    width: 0.7rem;
    height: 0.7rem;
    background-color: red;
    border-radius: 50%;
    font-size: 0.7rem;
    color: #fff;
    text-align: center;
    display: none;
}

.control .wrapper .button img {
    width: 1.2rem;
    height: 1.2rem;
    -webkit-user-drag: none;
}

.control .wrapper .long-button {
    background-color: #fff;
    border-radius: 0.3rem;
}

.control .wrapper .long-button .button:first-child,
.control .wrapper .middle-buttons .button:first-child {
    margin-bottom: 0.5rem;
}

.control .wrapper .middle-buttons {
    margin: 0 0.5rem;
}


.control .wrapper .power-button {
    border-radius: 50%;
    background-color: #d63031;
}

.control .wrapper .videoIdElement {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: text;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    height: 2.5rem;
    width: 5.5rem;
    border-radius: 0.3rem;
    cursor: pointer;
}

.control .wrapper .videoIdElement .text {
    width: 100%;
    text-align: center;
    font-weight: 500;
    font-size: 0.7rem;
}

.channel-name {
    position: fixed;
    top: 2rem;
    left: 2rem;
    font-size: 1.7rem;
    color: #00ff22;
    text-transform: uppercase;
    text-shadow: 0px 0px 2px #000;
    z-index: 17;
    font-weight: 700;
    transition: 0.2s ease;
    width: 100%;
}

.video-title {
    font-size: 1rem;
    width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-title span {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #00ff22;
    margin-right: 0.7em;
    transform: translateY(-0.1rem);
    animation-name: blink;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
}

@keyframes blink {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.volume-steps {
    position: fixed;
    display: flex;
    opacity: 0;
    width: 100%;
    height: 100vh;
    align-items: flex-end;
    justify-content: center;
    top: 0rem;
    left: 0;
    z-index: 17;
    padding-bottom: 7rem;
    transition: 0.2s ease;
}

.volume-steps .wrapper {
    width: 80%;
    max-width: 600px;
}

.volume-steps .text {
    font-size: 2rem;
    color: #00ff22;
    text-transform: uppercase;
    text-shadow: 0px 0px 2px #000;
    font-weight: 700;
}

.volume-steps .steps {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 3rem;
}

.volume-steps .steps .step {
    height: 100%;
    width: 1rem;
    margin-right: 0.2rem;
    background-color: #00ff22;
    box-shadow: 0px 0px 1px #000;
}


@media only screen and (min-width: 520px) {

    html,
    body {
        font-size: 17px;
    }
}
