@font-face {
    font-family: 'ekcqw_gbkregular';
    src: url('fzzy_gbk-webfont.woff2') format('woff2'),
        url('fzzy_gbk-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'ekcqw_gbkregular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

#settingButton {
    transition: all 0.3s ease;
    cursor: pointer;
}

#settingButton:hover {
    transform: rotate(30deg);
    color: #ca3e47;
}

.l2dv3-sidenav {
    background: linear-gradient(180deg, #1a1a1a 0%, #252525 100%);
    height: 100%;
    width: 250px;
    position: fixed;
    z-index: 20;
    top: 0;
    right: -250px;
    overflow-y: auto;
    overflow-x: hidden;
    transition: right 0.3s ease;
    color: #fff;
    padding-top: 70px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    border-left: 1px solid rgba(202, 62, 71, 0.3);
}

.l2dv3-sidenav::-webkit-scrollbar {
    width: 6px;
}

.l2dv3-sidenav::-webkit-scrollbar-track {
    background: transparent;
}

.l2dv3-sidenav::-webkit-scrollbar-thumb {
    background: #ca3e47;
    border-radius: 3px;
}

.l2dv3-sidenav label {
    font-size: 12px;
    font-weight: 600;
    color: #ca3e47;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 15px 0 8px 0;
    display: block;
}

/* Checkbox styling */
.l2dv3-sidenav div > input[type="checkbox"],
.l2dv3-sidenav input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin: 0 8px 0 0;
    cursor: pointer;
    border: 2px solid #ca3e47;
    border-radius: 3px;
    background: rgba(49, 49, 49, 0.8);
    transition: all 0.2s ease;
    vertical-align: middle;
    position: relative;
}

.l2dv3-sidenav input[type="checkbox"]:hover {
    background: rgba(202, 62, 71, 0.1);
    box-shadow: 0 0 8px rgba(202, 62, 71, 0.2);
}

.l2dv3-sidenav input[type="checkbox"]:checked {
    background: #ca3e47;
    box-shadow: 0 0 10px rgba(202, 62, 71, 0.5);
}

.l2dv3-sidenav input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-weight: bold;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.l2dv3-sidenav label[for] {
    display: inline;
    font-weight: 500;
    color: #fff;
    text-transform: none;
    margin: 0;
}

.l2dv3-sidenav select,
.l2dv3-sidenav input[type="number"] {
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 10px;
    background: rgba(49, 49, 49, 0.8);
    border: 1px solid rgba(202, 62, 71, 0.3);
    color: #fff;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.l2dv3-sidenav select:hover,
.l2dv3-sidenav input[type="number"]:hover {
    border-color: #ca3e47;
    box-shadow: 0 0 8px rgba(202, 62, 71, 0.2);
}

.l2dv3-sidenav select:focus,
.l2dv3-sidenav input[type="number"]:focus {
    outline: none;
    border-color: #ca3e47;
    box-shadow: 0 0 12px rgba(202, 62, 71, 0.3);
}

.subtitleContainer {
    display: block;
    position: absolute;
    height: 80px;
    z-index: 32;
    bottom: 40px;
    left: 50%;
}

@media only screen and (max-device-width: 768px) {
    .subtitleContainer {
        bottom: 100px;
    }
}

.subtitleTable {
    position: relative;
    left: -50%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.6) 100%);
    width: auto;
    padding: 12px 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(202, 62, 71, 0.2);
    display: none;
}

.subtitleTable .subtitle.in {
    display: block;
}

.subtitleTable:has(.subtitle.in) {
    display: block;
}

.subtitle {
    display: none;
    margin: 0 auto;
    text-align: center;
    font-family: 'ekcqw_gbkregular';
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.subtitle.in {
    animation: fadein 0.4s ease;
    display: block;
}

.subtitle.out {
    animation: fadeout 0.4s ease;
}

@keyframes fadein {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeout {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

.bgSelectorContainer {
    display: none;
    left: 0;
    top: 0;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100;
    backdrop-filter: blur(5px);
}

.bgSelectorContainer.show {
    display: table;
}

.bgSelectorContainer.out {
    animation: fadeout 0.3s ease forwards;
}

.bgSelectorContainer.in {
    animation: fadein 0.3s ease forwards;
}

.bgSelectorContainerTable {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

.bgSelectorUI {
    margin: 0 auto;
    width: 88vw;
    height: 88vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    color: #fff;
    display: grid;
    grid-template-rows: auto 1fr;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(202, 62, 71, 0.2);
}

.bgSelectorCloseButton {
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    font-size: 24px;
    color: #ca3e47;
    transition: all 0.2s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bgSelectorCloseButton:hover {
    transform: rotate(90deg);
    color: #fff;
}

.bgCategoryContainer {
    height: 50px;
    display: flex;
    width: 100%;
    border-bottom: 2px solid rgba(202, 62, 71, 0.2);
}

.bgCategory {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.bgCategory:hover {
    background: rgba(202, 62, 71, 0.1);
}

.bgCategory.selected {
    background: linear-gradient(90deg, transparent, #ca3e47, transparent);
    color: #ca3e47;
    border-bottom: 2px solid #ca3e47;
}

.title {
    height: 50px;
    border-bottom: 2px solid #ca3e47;
    text-align: center;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    position: relative;
}

.selector {
    display: flex;
    flex-wrap: wrap;
    overflow: auto;
    height: auto;
    align-content: flex-start;
    justify-content: center;
    padding: 20px;
    gap: 20px;
}

.l2dv3-thumb {
    max-width: 22vw;
    cursor: pointer;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
}

.l2dv3-thumb:hover {
    transform: scale(1.05);
    border-color: #ca3e47;
    box-shadow: 0 8px 20px rgba(202, 62, 71, 0.3);
}

.l2dv3-collapsible {
    display: block;
    line-height: 0;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}

.l2dv3-collapsible-main {
    cursor: pointer;
    padding: 12px;
    background: rgba(49, 49, 49, 0.5);
    border: 1px solid rgba(202, 62, 71, 0.2);
    border-radius: 4px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.l2dv3-collapsible-main:hover {
    background: rgba(49, 49, 49, 0.8);
    border-color: #ca3e47;
}

.customButton {
    background: linear-gradient(135deg, #ca3e47 0%, #e84856 100%);
    border: 1px solid #ca3e47;
    display: inline-block;
    cursor: pointer;
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s ease;
    width: 100%;
}

.customButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(202, 62, 71, 0.4);
}

.customButton:active {
    transform: translateY(0);
}

/* Custom scrollbars */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #ca3e47;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e84856;
}