* { box-sizing: border-box; }
body {
    overflow-x: hidden;
    margin: 0;
    padding: 30% 0 0 0;
    position: relative;
    font-size: 12px;
    line-height: 20px;
    font-family: Arial, sans-serif;
    background: #191818;
    color: #848181;
}
.container {
    display: grid;
    gap: 15px;
    grid-template-columns: 290px 1fr;
    grid-template-rows: 1fr;
    width: 100%;
    background: #1f1f1f;
    padding: 20px;
    border-radius: 8px;
}
.add-server-info {
    background: #1f1f1f;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.add-server-info h2 {
    color: #f0e3db;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 0 15px;
    text-align: center;
}
.add-server-info .info-section {
    margin-bottom: 20px;
    height: min-content;
    width: 100%;
    background: #272727;
    border-radius: 5px;
    padding: 10px;
    position: relative;
}
.add-server-info h3 {
    color: #ffc83c;
    font-size: 16px;
    margin: 0 0 10px;
}
.add-server-info p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #848181;
}
.add-server-info ul {
    margin: 0;
    padding-left: 20px;
    color: #848181;
}
.add-server-info li {
    margin-bottom: 5px;
    font-size: 14px;
}
.add-server-info .open-form-btn,
.add-server-info .back-to-list-btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px 5px;
    background: #ffc83c;
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.add-server-info .open-form-btn:hover,
.add-server-info .back-to-list-btn:hover {
    background: #ff9d00;
    transform: translateY(-2px);
}
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: #1f1f1f;
    padding: 15px;
    border-radius: 8px;
    width: 100%;
    max-width: 1200px;
    margin: 0 0 15px;
    place-self: center;
}
header div {
    display: flex;
    align-items: center;
    gap: 15px;
}
header h1 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #f0e3db;
    text-transform: uppercase;
}
header .logo {
    font-size: 18px;
    font-weight: bold;
    color: #ffc83c;
    font-family: Unbounded, sans-serif;
}
header .language {
    font-size: 14px;
    color: #848181;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}
header .language:hover {
    background: #333;
    transform: scale(1.05);
}
header .language.active {
    background: #ffc83c;
    color: #000;
}
.add-server-btn {
    font-size: 14px;
    color: #f0e3db;
    background: #272727;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.add-server-btn:hover {
    background: #ffc83c;
    color: #000;
    transform: scale(1.05);
}
.creator-block {
    background: #1f1f1f;
    padding: 10px;
    border-radius: 8px;
    width: 100%;
    max-width: 1200px;
    margin: 0;
    place-self: center;
    text-align: center;
}
.creator-block a {
    font-size: 14px;
    color: #ffc83c;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}
.creator-block a:hover {
    color: #ff9d00;
    transform: scale(1.05);
    display: inline-block;
}
.filter {
    justify-content: space-between;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
}
.filter-block {
    position: relative;
}
.filter button {
    padding: 10px 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: #272727;
    color: #f0e3db;
}
.filter button:hover {
    background: #333;
    transform: translateY(-2px);
}
.filter button.active {
    background: #ffc83c;
    color: #000;
}
.search-container {
    margin-bottom: 15px;
}
.search-container input {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 5px;
    background: #333;
    color: #f0e3db;
    font-size: 14px;
}
.sort-container {
    margin-bottom: 15px;
}
.sort-container select {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 5px;
    background: #333;
    color: #f0e3db;
    font-size: 14px;
}
.filter-toggle {
    display: none;
    padding: 10px;
    width: 100%;
    background: #ffc83c;
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}
.filter-toggle:hover {
    background: #ff9d00;
    transform: translateY(-2px);
}
.filter-content {
    display: block;
}
.server-list {
    height: min-content;
    width: 100%;
    display: none;
    flex-direction: column;
    background: #272727;
    border-radius: 5px;
    padding: 10px;
    position: relative;
}
div.server {
    border-bottom: 1px solid #333;
    padding: 2px 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}
div.server.vip {
    background: rgba(255, 200, 60, 0.1);
}
div.server.vip a:hover {
    background: rgba(255, 200, 60, 0.2);
}
div.server a {
    display: grid;
    gap: 5px;
    grid-template-columns: 30px 1fr 62px 62px 60px;
    grid-template-rows: 1fr;
    padding: 4px 8px;
    transition: all 0.3s ease;
}
div.server a:hover {
    background: #333;
    border-radius: 4px;
}
.server span:first-child {
    width: 30px;
    padding-right: 4px;
    text-align: center;
    position: relative;
}
.server.vip span:first-child {
    color: #272727;
    background: #ffc83c;
    border-radius: 4px;
    font-weight: 800;
    padding: 0;
    margin: 0;
}
.server.vip span:nth-child(2) {
    color: #ffd966;
    font-size: 16px;
    font-weight: bold;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.server span:nth-child(2) {
    color: #ffc83c;
    font-size: 15px;
    font-weight: bold;
}
.server span:nth-child(3),
.server span:nth-child(4),
.server span:nth-child(5) {
    text-align: center;
}
.server span:nth-child(5) {
    font-size: 10px;
    white-space: normal;
    word-wrap: break-word;
}
.filter button:nth-child(n+2):nth-child(-n+6) {
    width: calc(20% - 8px);
}
.filter button:nth-child(n+7):nth-child(-n+10) {
    width: calc(25% - 8px);
}
.filter button:nth-child(n+11):nth-child(-n+13) {
    width: calc(33.33% - 8px);
}
.banner-1 img {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1920px;
    transform: translateX(-50%);
    animation: fadeIn 1s ease;
}
#wrapper {
    max-width: 1200px;
    min-height: auto;
    margin: 0 auto;
    position: relative;
    padding: 0 10px 10px;
}
.all-rate, .all-chronicle, .all-type {
    width: 100%;
}
a {
    text-decoration: none;
    color: #848181;
}
#chronicleFilter > *:not(:first-child) {
    width: calc(50% - 5px);
}
#typeFilter > *:not(:first-child) {
    width: calc(50% - 5px);
}
footer {
    background: #1f1f1f;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    color: #f0e3db;
}
footer h2 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
}
footer p {
    margin: 10px 0;
    font-size: 14px;
    color: #848181;
}
footer a {
    color: #ffc83c;
    font-size: 14px;
    margin: 0 10px;
}
footer a:hover {
    color: #ff9d00;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-content {
    background: #272727;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    animation: slideIn 0.3s ease;
}
.modal-content h2 {
    color: #f0e3db;
    margin: 0 0 15px;
    text-align: center;
}
.modal-content label {
    display: block;
    margin: 10px 0 5px;
    color: #848181;
}
.modal-content input, .modal-content select {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 5px;
    background: #333;
    color: #f0e3db;
    font-size: 14px;
}
.modal-content button {
    margin-top: 15px;
    padding: 10px;
    width: 100%;
    background: #ffc83c;
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}
.modal-content button:hover {
    background: #ff9d00;
    transform: translateY(-2px);
}
.modal-content .close {
    background: #333;
    margin-top: 10px;
}
.modal-content .close:hover {
    background: #444;
}
.loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ffc83c;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
.scroll-top-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #ffc83c;
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease;
}
.scroll-top-btn svg {
    width: 20px;
    height: 20px;
}
.scroll-top-btn:hover {
    background: #ff9d00;
    transform: translateY(-2px);
}
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
@media (min-width: 769px) {
    .server-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 10px;
    }
    .server-list h2 {
        grid-column: 1 / -1;
    }
}
@media (max-width: 768px) {
    body {
        padding-top: 30%;
    }
    .banner-1 img {
        width: 100%;
        height: auto;
    }
    .filter-toggle {
        display: block;
    }
    .filter-content {
        display: none;
    }
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }
    header h1 {
        font-size: 16px;
    }
    .creator-block {
        padding: 8px;
    }
    .creator-block a {
        font-size: 12px;
    }
    .container {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    .add-server-info {
        padding: 15px;
    }
    .add-server-info h2 {
        font-size: 16px;
    }
    .add-server-info h3 {
        font-size: 14px;
    }
    .add-server-info p, .add-server-info li {
        font-size: 12px;
    }
    .add-server-info .open-form-btn,
    .add-server-info .back-to-list-btn {
        font-size: 12px;
        padding: 8px 15px;
    }
    .server-list {
        padding: 5px;
    }
    div.server a {
        grid-template-columns: 30px 1fr 50px 50px 50px;
        font-size: 10px;
    }
    .server.vip span:nth-child(2) {
        font-size: 14px;
    }
    .server span:nth-child(2) {
        font-size: 13px;
    }
    .server span:nth-child(5) {
        font-size: 9px;
    }
    footer {
        padding: 15px;
    }
    footer h2 {
        font-size: 16px;
    }
    footer p {
        font-size: 12px;
    }
    footer a {
        display: inline-block;
        margin: 5px;
        font-size: 12px;
    }
    .modal-content {
        padding: 15px;
    }
    .modal-content h2 {
        font-size: 16px;
    }
    .modal-content input, .modal-content select {
        font-size: 12px;
    }
    .scroll-top-btn {
        width: 40px;
        height: 40px;
    }
    .scroll-top-btn svg {
        width: 16px;
        height: 16px;
    }
}
@media (max-width: 1200px) {
    .server-list.visible {
        display: flex;
    }
}
@media (max-width: 480px) {
    body {
        padding-top: 30%;
    }
    header h1 {
        font-size: 14px;
    }
    .creator-block a {
        font-size: 10px;
    }
    .add-server-info {
        padding: 10px;
    }
    .add-server-info h2 {
        font-size: 14px;
    }
    .add-server-info h3 {
        font-size: 12px;
    }
    .add-server-info p, .add-server-info li {
        font-size: 10px;
    }
    .add-server-info .open-form-btn,
    .add-server-info .back-to-list-btn {
        font-size: 10px;
        padding: 6px 10px;
    }
    div.server a {
        grid-template-columns: 30px 1fr 40px 40px 42px;
        font-size: 9px;
    }
    .server.vip span:nth-child(2) {
        font-size: 12px;
    }
    .server span:nth-child(2) {
        font-size: 11px;
    }
    .server span:nth-child(5) {
        font-size: 8px;
    }
    footer h2 {
        font-size: 14px;
    }
    footer p {
        font-size: 10px;
    }
    footer a {
        font-size: 10px;
    }
    .modal-content {
        padding: 10px;
    }
    .modal-content h2 {
        font-size: 14px;
    }
    .modal-content input, .modal-content select {
        font-size: 10px;
    }
    .scroll-top-btn {
        width: 35px;
        height: 35px;
    }
    .scroll-top-btn svg {
        width: 14px;
        height: 14px;
    }
}