* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#css {
    color: #faf8ed;
    color: #2f2b32;
    color: #aa77bb;
    color: #a7bf2e;
    color: #f95a37;
}

html {
    /*scroll-behavior: smooth;*/
}

body {
    background-color: #2f2b32;
    font-family: system-ui;
    font-size: 18px;
    color: #faf8ed;
}

svg {
    vertical-align: top;
}

s {
    text-decoration: none;
}

hr {
    display: block;
    height: 1px;
    margin: 32px 0;
    border: none;
    border-top: solid 1px #faf8ed11;
}

.display_none {
    display: none !important;
}


/*
* Wrapper
*/
.wrapper {
    min-height: 100vh;
    display: flex;
    /*gap: 32px;*/
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 16px;
    flex-direction: column;
}

.main {
    flex: 1;
}


/*
* Header
*/
.header {
    margin-top: 16px;
    margin-bottom: 48px;
}

.header_nav {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: stretch;
    background: #232025;
    border-radius: 4px;
    outline: solid 4px #232025;
    box-shadow: 0 1px 2px #00000088;
    user-select: none;
}

.header_nav > * {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 12px 24px;
    border: none;
    font-family: system-ui, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #faf8edaa;
    text-align: center;
    text-decoration: none;
    background: #4b474d;
    cursor: pointer;
    outline: none;
}

.header_nav > *:hover {
    background: #635e66;
    color: #faf8ed;
}

.header_nav svg {
    fill: #faf8edaa;
}

.header_nav > *:hover svg {
    fill: #faf8ed;
}

.sidebar_form {
    background: #232025;
    box-shadow: 0 1px 2px #00000088;
}

@media screen and (max-width: 900px) {
    .header_nav a, .header_nav button {
        padding: 12px;
        flex-direction: column;
    }
}

@media screen and (max-width: 700px) {
    .header_nav a, .header_nav button {
        padding: 12px;

    }

    .header_nav span {
        display: none;
    }
}


/*
* Footer
*/
.footer {
    margin-top: 48px;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: solid 1px #faf8ed11;
}

.footer_body {
    display: flex;
    justify-content: center;
}

.footer_nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 32px;
}

.footer_nav a {
    font-size: 14px;
    text-decoration: none;
    color: #faf8ed88;
}


/*
* Section
*/
.section {
    /*margin-bottom: 32px;*/
}

.section_header {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section_title {
    font-size: 30px;
    font-weight: 600;
}

.section_body {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.section_note {
    padding: 12px 24px;
    border-radius: 4px;
    text-align: center;
    background: #232025;
}


/*
* Loader
*/
.loader {
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffd100' style='animation: loader_spin 2s linear infinite;'%3E%3Cstyle%3E%0A@keyframes loader_spin %7Bfrom %7Btransform: rotate(0deg);%7D to %7Btransform: rotate(360deg);%7D%7D%0A%3C/style%3E%3Cpath d='M2 11h5v2H2zm15 0h5v2h-5zm-6 6h2v5h-2zm0-15h2v5h-2zM4.222 5.636l1.414-1.414 3.536 3.536-1.414 1.414zm15.556 12.728-1.414 1.414-3.536-3.536 1.414-1.414zm-12.02-3.536 1.414 1.414-3.536 3.536-1.414-1.414zm7.07-7.071 3.536-3.535 1.414 1.415-3.536 3.535z'%3E%3C/path%3E%3C/svg%3E");
}


/*
* Load button
*/
.load_button {
    display: block;
    width: 100%;
    padding: 16px;
    text-align: center;
    font-family: system-ui;
    font-size: 16px;
    font-weight: 600;
    color: #faf8ed;
    border: none;
    border-radius: 4px;
    background: #4b474d;
    cursor: pointer;
}

.load_button:hover {
    background: #635e66;
}

.load_button[disabled] {
    opacity: 0.5;
    cursor: default;
}

.load_button[disabled]:hover {
    background: #4b474d;
}


/*
* Dialog
*/
dialog {
    max-width: calc(100vw - 104px);
    max-height: calc(100vh - 64px);
    margin: auto !important;
    padding: 16px;
    overflow: unset;
    box-sizing: border-box;
    background: #ffffff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 0 24px #000000cc;
    outline: none;
}

::backdrop {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px) grayscale(0%);
}

[open] {
    opacity: 1;
    transform: scale(1);
}

[open]::backdrop {
    opacity: 1;
}

@starting-style {
    [open] {
        opacity: 0.5;
        transform: scale(0.5);
    }

    [open]::backdrop {
        opacity: 0;
    }
}

dialog, ::backdrop {
    opacity: 0;
    transition: all 0.2s, display 0.2s allow-discrete, overlay 0.2s allow-discrete;
}


/*
* Player
*/
.player_iframe {
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16/9;
    display: block;
    border: none;
    border-radius: 4px;
    background: #232025;
}
