/* =========================================================

   serverlist_v16.css cleaned

   合并重复 selector，保留最终生效规则。

   ========================================================= */


:root {
    --cs-primary: #4CAF50;
    --cs-secondary: #2196F3;
    --cs-danger: #F44336;
    --cs-warning: #FFC107;
    --cs-dark: #121212;
    --cs-dark-light: #1E1E1E;
    --cs-text: #E0E0E0;
    --cs-text-light: #9E9E9E;
    --cs-page-width: min(1480px, calc(100% - 40px));
    --cs-glass-border: rgba(255, 255, 255, 0.16);
    --cs-glass-bg: linear-gradient(135deg, rgba(0, 22, 38, 0.64), rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.36));
    --cs-inner-bg: linear-gradient(135deg, rgba(0, 0, 0, 0.42), rgba(255, 255, 255, 0.09), rgba(0, 0, 0, 0.30));
}

.cs-body {
    font-family: "Segoe UI", system-ui, sans-serif;
    background-color: var(--cs-dark);
    color: var(--cs-text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.cs-hero-panel {
    width: var(--cs-page-width);
    margin: 24px auto 22px;
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(340px, 0.88fr);
    gap: 18px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--cs-glass-border);
    background: var(--cs-glass-bg);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    backdrop-filter: blur(9px) saturate(95%);
    -webkit-backdrop-filter: blur(9px) saturate(95%);
}

.cs-hero-left,.cs-hero-right {
    min-width: 0;
}

.cs-hero-left {
    display: flex;
    flex-direction: column;
}

.cs-map-preview-card {
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    background: var(--cs-inner-bg);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cs-hero-map-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 1.05s ease, transform 1.25s ease;
    will-change: opacity, transform;
}

.cs-hero-map-image.is-active {
    opacity: 1;
    transform: scale(1);
}

.cs-map-preview-mask {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.42));
}

.cs-map-preview-info {
    position: absolute;
    left: 50%;
    top: 80%;
    z-index: 5;
    width: min(78%, 620px);
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.cs-map-preview-title {
    display: inline-block;
    max-width: 100%;
    color: #fff;
    font-size: 1.28rem;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
}

.cs-hero-nav,.cs-map-preview-arrow {
    position: absolute;
    top: 50%;
    z-index: 8;
    width: 52px;
    height: 80px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -webkit-tap-highlight-color: transparent;
    color: rgba(255, 255, 255, 0.72);
    opacity: 0;
    transition: opacity 0.22s ease, color 0.22s ease, text-shadow 0.22s ease, transform 0.22s ease;
}

.cs-hero-nav-prev,.cs-map-preview-arrow-left {
    left: 14px;
}

.cs-hero-nav-next,.cs-map-preview-arrow-right {
    right: 14px;
}

.cs-map-preview-card:hover .cs-hero-nav,.cs-map-preview-modal-card:hover .cs-map-preview-arrow {
    opacity: 1;
}

.cs-hero-nav:hover,.cs-map-preview-arrow:hover {
    background: transparent !important;
    color: #ffffff;
    box-shadow: none !important;
    text-shadow: 0 0 12px rgba(111, 214, 93, 0.78), 0 2px 8px rgba(0, 0, 0, 0.9);
}

.cs-hero-nav .fa,.cs-map-preview-arrow .fa {
    font-size: 30px;
    line-height: 1;
    pointer-events: none;
}

.cs-hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 4;
    height: 22px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    pointer-events: auto;
}

.cs-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.48);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 2px 8px rgba(0, 0, 0, 0.45);
    transition: all 0.25s ease;
}

.cs-hero-dot:hover {
    background: rgba(111, 214, 93, 0.75);
    transform: scale(1.2);
}

.cs-hero-dot.active {
    width: 22px;
    border-radius: 999px;
    background: #6FD65D;
    box-shadow: 0 0 12px rgba(111, 214, 93, 0.45);
}

.cs-hero-right {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    gap: 12px;
    padding: 0;
    box-sizing: border-box;
}

.cs-hero-notice {
    flex: 1 1 auto;
    padding: 16px 16px 14px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: var(--cs-inner-bg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px) saturate(90%);
    -webkit-backdrop-filter: blur(8px) saturate(90%);
    box-sizing: border-box;
}

.cs-community-title {
    margin: 0 0 13px;
    color: var(--cs-primary);
    font-size: 1.08rem;
    line-height: 1.25;
    font-weight: 950;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 12px rgba(76, 175, 80, 0.38), 0 2px 8px rgba(0, 0, 0, 0.72);
}

.cs-title-flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.45);
    flex: 0 0 auto;
}

.cs-hero-notice small {
    color: #e0f5ff;
    font-size: 12px;
    line-height: 1.72;
    text-shadow: 0 0 5px rgba(0, 168, 255, 0.35), 0 1px 5px rgba(0, 0, 0, 0.8);
}

#flash-container {
    text-align: left;
    line-height: 1.6;
    letter-spacing: normal;
    word-spacing: normal;
}

#flash-container * {
    white-space: normal !important;
    word-break: normal !important;
    float: none !important;
    clear: none !important;
}

.typing-char {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    animation: none !important;
}

.data-item {
    display: inline !important;
    margin: 0 2px !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-weight: 800;
    color: #6FD65D;
    text-shadow: 0 0 8px rgba(111, 214, 93, 0.32);
    animation: none !important;
}

.data-item:hover {
    opacity: 1 !important;
    visibility: visible !important;
    color: #9CFF8A;
}

.cs-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0 auto 30px;
    max-width: 1000px;
    flex-wrap: wrap;
}

.cs-stats-in-hero {
    max-width: none;
    width: 100%;
    margin: 0;
    gap: 9px;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.cs-stat-card {
    background: var(--cs-inner-bg);
    padding: 15px 25px;
    border-radius: 10px;
    text-align: center;
    min-width: 120px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px) saturate(80%);
    -webkit-backdrop-filter: blur(8px) saturate(80%);
    position: relative;
}

.cs-stats-in-hero .cs-stat-card {
    min-width: 0;
    flex: 1 1 0;
    padding: 10px 8px;
}

.cs-stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 5px 0;
}

.cs-stats-in-hero .cs-stat-value {
    font-size: 1.28rem;
    line-height: 1.15;
    margin: 2px 0 4px;
}

.cs-stat-label,.cs-stats-in-hero .cs-stat-label {
    font-size: 0.72rem;
    color: var(--cs-text-light);
}

.cs-servers-board {
    width: var(--cs-page-width);
    margin: 0 auto 30px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--cs-glass-border);
    background: var(--cs-glass-bg);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(9px) saturate(95%);
    -webkit-backdrop-filter: blur(9px) saturate(95%);
    box-sizing: border-box;
}

.cs-servers-board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 14px;
    padding: 0 2px;
}

.cs-servers-board-title-wrap {
    min-width: 0;
}

.cs-servers-board-title {
    margin: 0 0 3px;
    color: #fff;
    font-size: 1.18rem;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

.cs-servers-board-subtitle {
    color: var(--cs-text-light);
    font-size: 0.78rem;
}

.cs-servers-board-badge {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 999px;
    color: #6FD65D;
    background: rgba(111, 214, 93, 0.12);
    border: 1px solid rgba(111, 214, 93, 0.26);
    font-size: 0.78rem;
    font-weight: 800;
}

.cs-servers-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 13px;
    max-width: none;
    margin: 0;
    padding: 0;
}

.cs-server-card,.cs-server-card-loading {
    min-width: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--cs-inner-bg);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.24);
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(10px) saturate(60%);
    -webkit-backdrop-filter: blur(10px) saturate(60%);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cs-server-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.32);
}

.cs-server-content-top {
    padding: 9px 10px 7px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 12px rgba(255, 255, 255, 0.15);
}

.cs-server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.cs-server-name {
    font-size: 0.92rem;
    line-height: 1.18;
    font-weight: bold;
    margin: 0;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-btn {
    padding: 3px 5px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
    font-size: 0.78rem;
}

.cs-btn:hover {
    opacity: 0.9;
    transform: scale(1.08);
}

.cs-btn-primary {
    background: var(--cs-primary);
    color: white;
}

.cs-btn-disabled {
    background: #616161;
    color: #9E9E9E;
    cursor: not-allowed;
}

.cs-server-ip-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cs-server-ip {
    display: inline-block;
    max-width: 100%;
    margin-right: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    background: rgba(75, 255, 0, 0.24);
    padding: 2px 5px;
    border-radius: 5px;
    font-size: 0.72rem;
    line-height: 1.2;
}

.cs-server-ip:hover {
    transform: translateY(-1px);
    background: #6FD65D;
}

.cs-server-image,.cs-server-image-loading {
    width: 100%;
    height: 112px;
    object-fit: cover;
    display: block;
    background: rgba(255, 255, 255, 0.04);
}

.cs-server-image[data-loading="true"] {
    opacity: 0.7;
}

.cs-server-content-bottom {
    padding: 7px 10px 10px;
}

.cs-server-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin: 6px 0;
}

.cs-server-meta span,.cs-server-meta med {
    min-width: 0;
    line-height: 1.35;
}

.cs-server-meta a {
    word-break: break-all;
}

.cs-players-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cs-players-link {
    white-space: nowrap;
    font-size: 0.78rem;
    cursor: pointer;
    color: #6FD65D;
    transition: color 0.2s;
}

.cs-players-link:hover {
    color: var(--cs-secondary);
}

.cs-progress-container {
    height: 6px;
    margin: 9px 0;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.cs-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cs-primary), #ff5441);
    transition: width 0.5s ease;
}

.cs-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.cs-tag {
    font-size: 0.66rem;
    line-height: 1.15;
    padding: 3px 6px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
}

.cs-tag-vac {
    background: rgba(76, 175, 80, 0.15);
    color: var(--cs-primary);
}

.cs-tag-pwd {
    background: rgba(244, 67, 54, 0.15);
    color: var(--cs-danger);
}

.cs-tag-dedi {
    background: rgba(33, 150, 243, 0.15);
    color: var(--cs-secondary);
}

.cs-tag-os {
    background: rgba(255, 193, 7, 0.15);
    color: var(--cs-warning);
}

.cs-new-map-tag {
    display: inline-block;
    margin-left: 5px;
    padding: 1px 5px;
    border-radius: 5px;
    font-size: 0.62rem;
    white-space: nowrap;
    cursor: pointer;
    color: white;
    background: linear-gradient(135deg, #ff1776, #FF9800);
    transform: scale(1);
    opacity: 1;
    transition: all 0.2s;
}

.cs-new-map-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.4);
}

.cs-new-map-tag i {
    margin-right: 3px;
    font-size: 0.7rem;
}

.cs-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    grid-column: 1 / -1;
}

.cs-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--cs-primary);
    animation: cs-spin 1s ease-in-out infinite;
}

.cs-server-card-loading {
    min-height: 215px;
}

.cs-server-content-loading {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cs-loading-placeholder {
    height: 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 8px;
    animation: cs-pulse 1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.cs-players-modal,.cs-map-preview-modal,.cs-admin-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cs-map-preview-modal,.cs-admin-modal {
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.cs-map-preview-modal.show,.cs-admin-modal.show {
    display: flex;
}

.cs-players-close {
    color: var(--cs-text-light);
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.cs-players-close:hover {
    color: var(--cs-danger);
}

#cs-players-list {
    max-height: 400px;
    overflow-y: auto;
}

.player-item,.cs-map-item {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-name {
    font-weight: bold;
}

.player-time {
    color: var(--cs-text-light);
    font-size: 0.8rem;
    margin-left: 10px;
}

.cs-map-link {
    color: #4CAF50;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 4px;
    background: rgba(76, 175, 80, 0.1);
    transition: all 0.3s;
}

.cs-map-link:hover {
    background: rgba(76, 175, 80, 0.2);
}

.cs-map-preview-modal-card {
    position: relative;
    width: min(1040px, 94vw);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: linear-gradient(135deg, rgba(0, 22, 38, 0.88), rgba(255, 255, 255, 0.09), rgba(0, 0, 0, 0.72));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cs-map-preview-large-image {
    display: block;
    width: 100%;
    height: min(68vh, 620px);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.04);
}

.cs-map-preview-large-title {
    position: absolute;
    left: 50%;
    bottom: 22px;
    max-width: 82%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 999px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(0, 0, 0, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cs-map-preview-close,.cs-admin-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.46);
    transition: all 0.22s ease;
}

.cs-map-preview-close:hover,.cs-admin-close:hover {
    background: rgba(244, 67, 54, 0.82);
    transform: rotate(90deg);
}

.cs-admin-edge-button {
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 2500;
    width: 46px;
    height: 58px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(217 221 216 / 32%);
    border-right: none;
    border-radius: 16px 0 0 16px;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(0, 22, 38, 0.88), rgb(249 249 249 / 18%), rgba(0, 0, 0, 0.72));
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.22s ease;
}

.cs-admin-edge-button i {
    font-size: 22px;
    color: #989b98;
    line-height: 1;
}

.cs-admin-edge-button:hover {
    width: 54px;
    background: linear-gradient(135deg, rgba(0, 22, 38, 0.94), rgba(111, 214, 93, 0.30), rgba(0, 0, 0, 0.78));
}

.cs-admin-panel {
    position: relative;
    width: min(880px, 94vw);
    max-height: 88vh;
    overflow: auto;
    border-radius: 18px;
    padding: 20px;
    box-sizing: border-box;
    color: var(--cs-text);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, rgba(0, 22, 38, 0.90), rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.76));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cs-admin-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0 46px 16px 0;
}

.cs-admin-head h3 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1.2;
}

.cs-admin-head small,.cs-admin-desc {
    color: var(--cs-text-light);
    font-size: 0.82rem;
    line-height: 1.6;
}

.cs-admin-vip-badge {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 999px;
    color: #6FD65D;
    font-weight: 900;
    border: 1px solid rgba(111, 214, 93, 0.28);
    background: rgba(111, 214, 93, 0.12);
}

.cs-admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.cs-admin-tab {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--cs-text);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    transition: all 0.22s ease;
}

.cs-admin-tab:hover,.cs-admin-tab.active {
    color: #fff;
    border-color: rgba(111, 214, 93, 0.38);
    background: rgba(111, 214, 93, 0.18);
}

.cs-admin-tab-panel {
    display: none;
}

.cs-admin-tab-panel.active {
    display: block;
}

.cs-upload-section,.cs-admin-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(0, 0, 0, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cs-admin-panel .cs-upload-section {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 18px;
}

.cs-upload-title {
    margin: 0 0 6px;
    color: #fff;
    font-size: 1.2rem;
}

.cs-upload-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cs-file-input {
    display: none;
}

.cs-file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 138px;
    margin-top: 14px;
    padding: 15px;
    border: 2px dashed rgba(111, 214, 93, 0.28);
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(111, 214, 93, 0.06);
}

.cs-file-label:hover,#drop-area.highlight {
    border-color: var(--cs-primary);
    background: rgba(76, 175, 80, 0.1);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

#drop-area.drag-over {
    border-color: var(--cs-secondary);
    background: rgba(33, 150, 243, 0.1);
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.3);
}

.cs-file-label i {
    font-size: 28px;
    color: #6FD65D;
}

.cs-file-label span,.cs-file-label small {
    color: var(--cs-text-light);
}

.cs-upload-btn,.cs-admin-submit {
    border: none;
    border-radius: 10px;
    padding: 11px 14px;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(135deg, #42b883, #4CAF50);
    box-shadow: 0 8px 18px rgba(76, 175, 80, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.cs-upload-btn:hover,.cs-admin-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(76, 175, 80, 0.30);
}

.cs-upload-btn:disabled,.cs-admin-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.cs-admin-danger {
    background: linear-gradient(135deg, #ff6b5f, #F44336);
    box-shadow: 0 8px 18px rgba(244, 67, 54, 0.22);
}

.cs-upload-results {
    margin-top: 20px;
}

.cs-result-item {
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.cs-result-success {
    background: rgba(76, 175, 80, 0.2);
    color: var(--cs-primary);
}

.cs-result-error {
    background: rgba(244, 67, 54, 0.2);
    color: var(--cs-danger);
}

.cs-selected-files {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--cs-text-light);
}

.cs-selected-files-title {
    margin-bottom: 5px;
    color: #fff;
    font-weight: 800;
}

.cs-selected-file {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cs-server-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.cs-admin-card {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 16px;
}

.cs-admin-card h4 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 1.05rem;
}

.cs-admin-card label {
    color: var(--cs-text-light);
    font-size: 0.82rem;
    font-weight: 700;
}

.cs-admin-card input,.cs-admin-card select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 10px 11px;
    color: #fff;
    outline: none;
    background: rgba(255, 255, 255, 0.07);
}

.cs-admin-card input:focus,.cs-admin-card select:focus {
    border-color: rgba(111, 214, 93, 0.56);
    box-shadow: 0 0 0 3px rgba(111, 214, 93, 0.12);
}

.cs-admin-card select option {
    color: #111;
}

#chatEmbed {
    position: fixed;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 250px;
    width: 100%;
    min-height: 50px;
    max-height: 40vh;
    overflow-y: auto;
    z-index: 1000;
}

#chatEmbed::-webkit-scrollbar {
    width: 6px;
}

#chatEmbed::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

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

#chatEmbed::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.avatar-mini {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    display: inline-block;
    object-fit: cover;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.chat-message.fade-in {
    opacity: 1;
}

.chat-message.fade-out {
    opacity: 0;
}

.message-content {
    flex: 1;
    min-width: 0;
    line-height: 1.5;
    font-size: 0.9rem;
    color: #2387f;
}

.message-header {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-info {
    font-weight: bold;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.server-tag {
    display: inline-block;
    padding: 2px 6px;
    margin: 0 5px;
    background-color: #A9A9A9;
    border-radius: 3px;
    font-size: 12px;
    cursor: help;
    position: relative;
}

.server-tag:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background-color: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 5px;
    z-index: 100;
}

.server-tag:hover::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    margin-bottom: -5px;
    z-index: 100;
}

.time-stamp {
    color: #999;
    font-size: 0.8rem;
    margin-left: auto;
    white-space: nowrap;
}

.new-badge {
    display: inline-block;
    background-color: #ff4d4f;
    color: white;
    font-size: 12px;
    padding: 1px 4px;
    border-radius: 3px;
    margin-right: 5px;
    font-weight: bold;
    vertical-align: middle;
}

.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(150, 150, 150, 0.2);
    border-radius: 50%;
    border-top-color: #777;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

.steam-warning {
    background: rgba(30, 30, 30, 0.8);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.warning-message {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ff9800;
    margin-bottom: 10px;
}

.instruction {
    display: block;
    color: #aaa;
    margin-bottom: 15px;
}

.url-copy-container {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #444;
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.url-copy-container span {
    flex-grow: 1;
    font-family: monospace;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-btn {
    background-color: #6FD65D;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    white-space: nowrap;
}

.copy-btn:hover {
    background-color: #3a8fd9;
}

.browser-hint {
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.copy-notification {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 3200;
    transform: translateY(100px);
    opacity: 0;
    display: flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 4px;
    color: white;
    background-color: #4CAF50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.copy-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.cs-footer-info {
    text-align: center;
    margin-top: 30px;
    padding-bottom: 20px;
    color: var(--cs-text-light);
    font-size: 0.9rem;
}

.error-highlight {
    border-color: var(--cs-danger) !important;
    background: rgba(244, 67, 54, 0.1) !important;
    animation: error-pulse 0.5s 2;
}

.cs-online-dashboard {
    width: var(--cs-page-width);
    margin: 0 auto 22px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--cs-glass-border);
    background: var(--cs-glass-bg);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(9px) saturate(95%);
    -webkit-backdrop-filter: blur(9px) saturate(95%);
    box-sizing: border-box;
}

.cs-online-dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.cs-online-dashboard-title {
    margin: 0 0 4px;
    color: #fff;
    font-size: 1.18rem;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

.cs-online-dashboard-meta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: 12px;
    vertical-align: middle;
    color: var(--cs-text-light);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    text-shadow: none;
}

.cs-online-dashboard-meta b {
    color: #6FD65D;
    font-size: 0.92rem;
    font-weight: 950;
    text-shadow: 0 0 10px rgba(111, 214, 93, 0.28);
}

.cs-online-dashboard-divider {
    color: rgba(255, 255, 255, 0.28);
}

.cs-online-dashboard-subtitle {
    color: var(--cs-text-light);
    font-size: 0.78rem;
    line-height: 1.5;
}

.cs-online-dashboard-ranges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.cs-online-dashboard-ranges button {
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 7px 11px;
    color: var(--cs-text);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    transition: all 0.22s ease;
    font-size: 0.78rem;
    font-weight: 800;
}

.cs-online-dashboard-ranges button:hover,.cs-online-dashboard-ranges button.active {
    color: #fff;
    border-color: rgba(111, 214, 93, 0.42);
    background: rgba(111, 214, 93, 0.18);
    box-shadow: 0 0 14px rgba(111, 214, 93, 0.12);
}

.cs-online-dashboard-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.cs-online-dashboard-empty {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: min(520px, 86%);
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--cs-text-light);
    text-align: center;
    font-size: 0.82rem;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
}

.cs-online-dashboard-chart-wrap {
    position: relative;
    height: 260px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(0, 0, 0, 0.20);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
    overflow: hidden;
}

.cs-online-dashboard-loading {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: #dce6ea;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.2px;
    background: linear-gradient(135deg, rgba(0, 22, 38, 0.54), rgba(0, 0, 0, 0.42));
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.cs-online-dashboard-chart-wrap.is-loading canvas {
    opacity: 0.28;
    filter: blur(1px);
}

.cs-chart-progress-line {
    width: min(360px, 72%);
    height: 4px;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.10);
}

.cs-chart-progress-line::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -45%;
    width: 45%;
    border-radius: 5px;
    background: linear-gradient(90deg, transparent, rgba(111, 214, 93, 0.95), transparent);
    animation: csChartProgressMove 1.05s linear infinite;
}

.cs-server-admin-grid-lazy {
    grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
}

.cs-server-admin-list::-webkit-scrollbar {
    width: 6px;
}

.cs-server-admin-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.cs-server-admin-list::-webkit-scrollbar-thumb {
    background: rgba(111, 214, 93, 0.42);
    border-radius: 5px;
}

.cs-admin-inline-loading {
    padding: 14px;
    color: rgba(220, 230, 234, 0.78);
    font-size: 13px;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.18);
}

.cs-server-admin-actions button {
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 5px;
    color: #dce6ea;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.055);
}

.cs-server-admin-actions button:hover:not(:disabled) {
    color: #071008;
    border-color: #6FD65D;
    background: #6FD65D;
}

.cs-server-admin-actions .cs-admin-row-danger:hover:not(:disabled) {
    color: #fff;
    border-color: rgba(255, 80, 80, 0.75);
    background: rgba(255, 80, 80, 0.55);
}

.cs-server-detail-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3100;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cs-server-detail-modal.show {
    display: flex;
}

.cs-server-detail-panel {
    position: relative;
    width: min(1060px, 94vw);
    max-height: 90vh;
    overflow: auto;
    border-radius: 18px;
    padding: 20px;
    box-sizing: border-box;
    color: var(--cs-text);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, rgba(0, 22, 38, 0.90), rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.76));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px) saturate(95%);
    -webkit-backdrop-filter: blur(12px) saturate(95%);
}

.cs-server-detail-panel::-webkit-scrollbar,.cs-server-detail-players::-webkit-scrollbar {
    width: 6px;
}

.cs-server-detail-panel::-webkit-scrollbar-track,.cs-server-detail-players::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.cs-server-detail-panel::-webkit-scrollbar-thumb,.cs-server-detail-players::-webkit-scrollbar-thumb {
    background: rgba(111, 214, 93, 0.42);
    border-radius: 5px;
}

.cs-server-detail-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.46);
    transition: all 0.22s ease;
}

.cs-server-detail-close:hover {
    background: rgba(244, 67, 54, 0.82);
    transform: rotate(90deg);
}

.cs-server-detail-title-wrap h3 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-server-detail-title-wrap small {
    color: var(--cs-text-light);
    font-size: 0.82rem;
}

.cs-server-detail-status {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.78rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
}

.cs-server-detail-status.is-online {
    color: #6FD65D;
    border-color: rgba(111, 214, 93, 0.28);
    background: rgba(111, 214, 93, 0.12);
}

.cs-server-detail-status.is-offline {
    color: #ff6b5f;
    border-color: rgba(244, 67, 54, 0.28);
    background: rgba(244, 67, 54, 0.12);
}

.cs-server-detail-content {
    min-height: 240px;
}

.cs-detail-loading,.cs-detail-empty {
    padding: 16px;
    color: rgba(220, 230, 234, 0.78);
    font-size: 13px;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.18);
}

.cs-server-detail-top {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 14px;
    margin-bottom: 14px;
}

.cs-server-detail-map-card,.cs-server-detail-section,.cs-server-detail-info-item {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(0, 0, 0, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cs-server-detail-map-card img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
    background: rgba(255, 255, 255, 0.04);
}

.cs-server-detail-map-mask {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cs-server-detail-info-item {
    min-width: 0;
    padding: 12px;
}

.cs-server-detail-info-wide {
    grid-column: 1 / -1;
}

.cs-server-detail-info-item span {
    display: block;
    margin-bottom: 5px;
    color: var(--cs-text-light);
    font-size: 0.75rem;
    font-weight: 800;
}

.cs-server-detail-info-item b,.cs-detail-offline-text {
    display: block;
    min-width: 0;
    color: #fff;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-server-detail-info-item b[onclick] {
    cursor: pointer;
    color: #6FD65D;
}

.cs-server-detail-progress {
    height: 7px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.cs-server-detail-progress i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cs-primary), #ff5441);
}

.cs-server-detail-bottom {
    display: grid;
    grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
    gap: 14px;
}

.cs-server-detail-section {
    min-width: 0;
    padding: 14px;
}

.cs-server-detail-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.cs-server-detail-section-head h4 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
}

.cs-server-detail-section-head small {
    color: var(--cs-text-light);
    font-size: 0.78rem;
    white-space: nowrap;
}

.cs-server-detail-players {
    max-height: 270px;
    overflow-y: auto;
    padding-right: 4px;
}

.cs-server-detail-player-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.cs-server-detail-player-item:last-child {
    border-bottom: none;
}

.cs-server-detail-player-item span {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
}

.cs-server-detail-player-item img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.cs-server-detail-player-item a,.cs-server-detail-player-item span span {
    min-width: 0;
    max-width: 190px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #6FD65D;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 800;
}

.cs-server-detail-player-item em {
    color: var(--cs-text-light);
    font-size: 0.78rem;
    font-style: normal;
    white-space: nowrap;
}

.cs-server-detail-chart-wrap {
    position: relative;
    height: 270px;
    overflow: hidden;
    padding: 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.18);
}

.cs-server-detail-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.cs-server-detail-chart-loading {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: #dce6ea;
    font-size: 13px;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(0, 22, 38, 0.54), rgba(0, 0, 0, 0.42));
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.cs-server-detail-chart-wrap.is-loading canvas {
    opacity: 0.28;
    filter: blur(1px);
}

.cs-server-detail-chart-empty {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    transform: translate(-50%, -50%);
    max-width: min(360px, 86%);
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--cs-text-light);
    text-align: center;
    font-size: 0.82rem;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
}

.cs-server-card {
    cursor: pointer;
}

.cs-server-card a,.cs-server-card button,.cs-server-card .cs-btn,.cs-server-card .cs-server-ip,.cs-server-card .cs-new-map-tag {
    cursor: pointer;
}

.cs-server-image {
    cursor: pointer !important;
}

.cs-server-detail-head {
    display: block;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0 46px 12px 0;
}

.cs-server-detail-title-wrap {
    min-width: 0;
    width: 100%;
}

.cs-server-detail-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}

.cs-server-detail-title-row h3 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.cs-server-detail-connect-slot {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
}

.cs-server-detail-subline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 7px;
    color: var(--cs-text-light);
    font-size: 0.82rem;
}

.cs-server-detail-copy-value {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    gap: 6px;
    padding: 3px 7px;
    border-radius: 5px;
    color: #bfeec0;
    cursor: pointer;
    background: rgba(111, 214, 93, 0.08);
    border: 1px solid rgba(111, 214, 93, 0.16);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-server-detail-copy-value:hover {
    color: #ffffff;
    border-color: rgba(111, 214, 93, 0.38);
    background: rgba(111, 214, 93, 0.16);
}

.cs-server-detail-copy-value i {
    flex: 0 0 auto;
    color: #6FD65D;
}

.cs-server-detail-connect {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    background: linear-gradient(135deg, #42b883, #4CAF50);
    box-shadow: 0 8px 18px rgba(76, 175, 80, 0.22);
    white-space: nowrap;
}

.cs-server-detail-top,.cs-server-detail-top-flat {
    display: block;
    margin-bottom: 14px;
}

.cs-server-detail-map-card {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    width: 100%;
    height: 300px;
    border-radius: 12px;
}

.cs-server-detail-map-card img,.cs-server-detail-map-card #csServerDetailMapImage {
    width: 100%;
    height: 300px;
    min-height: 0;
    object-fit: cover;
}

.cs-server-detail-map-title {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cs-server-detail-map-title a:first-child {
    min-width: 0;
    color: #ffb23f;
    font-size: 1.05rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    flex: 1 1 auto;
    max-width: calc(100% - 100px);
}

.cs-server-detail-viewer {
    flex: 0 0 auto;
    color: #ffffff;
    font-size: 0.82rem;
    text-decoration: none;
    opacity: 0.92;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 900;
    background: rgba(111, 214, 93, 0.20);
    border: 1px solid rgba(111, 214, 93, 0.34);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.cs-server-detail-viewer i {
    font-size: 1.05rem;
    color: #6FD65D;
}

.cs-server-detail-viewer:hover {
    color: #071008;
    opacity: 1;
    background: #6FD65D;
    border-color: #6FD65D;
}

.cs-server-detail-viewer:hover i {
    color: #071008;
}

.cs-server-detail-info-grid {
    display: none !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cs-players-modal,.cs-map-preview-modal,.cs-admin-modal,.cs-server-detail-modal {
    display: flex !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
    align-items: center;
    justify-content: center;
}

.cs-players-modal.show,.cs-map-preview-modal.show,.cs-admin-modal.show,.cs-server-detail-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cs-players-modal.is-closing,.cs-map-preview-modal.is-closing,.cs-admin-modal.is-closing,.cs-server-detail-modal.is-closing {
    opacity: 0;
    visibility: visible;
    pointer-events: none;
}

.cs-players-content,.cs-map-preview-modal-card,.cs-admin-panel,.cs-server-detail-panel {
    opacity: 0;
    transform: translateY(18px) scale(0.965);
    transition: opacity 0.24s ease,
        transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.cs-players-modal.show .cs-players-content,.cs-map-preview-modal.show .cs-map-preview-modal-card,.cs-admin-modal.show .cs-admin-panel,.cs-server-detail-modal.show .cs-server-detail-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.cs-players-modal.is-closing .cs-players-content,.cs-map-preview-modal.is-closing .cs-map-preview-modal-card,.cs-admin-modal.is-closing .cs-admin-panel,.cs-server-detail-modal.is-closing .cs-server-detail-panel {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
}

.cs-players-content {
    width: 80%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 8px;
    color: var(--cs-text);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.34), rgba(255, 255, 255, 0.20), rgba(0, 0, 0, 0.30));
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(50%) brightness(150%);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

.cs-server-image,.cs-server-card {
    cursor: pointer !important;
}

.cs-server-sort-card {
    min-width: 0;
    margin-top: 16px;
}

.cs-server-admin-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 430px;
    overflow-y: auto;
    padding-right: 4px;
    transition: opacity 0.18s ease;
    margin-top: 12px;
}

.cs-server-admin-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
}

.cs-server-admin-row.is-hidden-server {
    opacity: 0.62;
    border-style: dashed;
    background: rgba(255, 193, 7, 0.08);
}

.cs-server-admin-order {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #071008;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
}

.cs-server-admin-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cs-server-admin-main strong {
    color: #fff;
    font-size: 14px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
}

.cs-server-admin-main small {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    display: block;
    margin-top: 3px;
}

.cs-server-admin-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cs-server-admin-actions button,.cs-admin-mini-btn {
    border: 0;
    border-radius: 7px;
    padding: 6px 9px;
    font-size: 12px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.12);
    transition: opacity .15s ease, transform .15s ease, background .15s ease;
}

.cs-server-admin-actions button:hover,.cs-admin-mini-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cs-server-admin-actions button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.cs-admin-row-danger {
    background: rgba(244, 67, 54, 0.22) !important;
}

.cs-admin-row-danger:hover {
    background: rgba(244, 67, 54, 0.35) !important;
}

.cs-server-admin-savebar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cs-server-admin-savebar .cs-upload-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

#cs-server-admin-dirty-tip {
    color: rgba(255, 255, 255, 0.55);
}

.cs-server-admin-list.is-updating {
    opacity: 0.55;
    pointer-events: none;
}

.cs-news-board {
    width: var(--cs-page-width);
    margin: 0 auto 22px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
}

.cs-news-list {
    display: block;
}

.cs-news-card {
    position: relative;
    min-height: 0;
    padding: 17px 20px 43px;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--cs-glass-border);
    color: var(--cs-text);
    cursor: default;
    background: var(--cs-glass-bg);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(9px) saturate(95%);
    -webkit-backdrop-filter: blur(9px) saturate(95%);
    transition: box-shadow 0.22s ease, border-color 0.22s ease, padding-bottom 0.24s ease;
}

.cs-news-inline-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    gap: 14px;
    margin-bottom: 16px;
    white-space: nowrap;
}

.cs-news-inline-left {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
    flex: 1 1 auto;
}

.cs-news-fresh-tag {
    flex: 0 0 auto;
    margin-left: 0;
}

.cs-news-inline-title,.cs-news-title-button {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    color: #f2f5f8;
    font-size: 1.08rem;
    line-height: 1.25;
    font-weight: 950;
    text-overflow: ellipsis;
    text-shadow: none;
}

.cs-news-title-button {
    border: 0;
    padding: 0;
    text-align: left;
    cursor: pointer;
    background: transparent !important;
    box-shadow: none !important;
    transition: color 0.18s ease;
}

.cs-news-inline-meta,.cs-news-panel-meta {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 7px;
    color: rgba(224, 224, 224, 0.55);
    font-size: 0.78rem;
}

.cs-news-inline-meta {
    flex: 0 0 auto;
    margin-left: auto;
    justify-content: flex-end;
}

.cs-news-author-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.38);
}

.cs-news-inline-meta a {
    color: #b7ff1a;
    text-decoration: none;
}

.cs-news-archive-item small a {
    color: #b7ff1a;
    text-decoration: none;
}

.cs-news-inline-meta a:hover,.cs-news-archive-item small a:hover {
    color: #d9ff70;
}

.cs-news-time {
    color: rgba(224, 224, 224, 0.43);
    white-space: nowrap;
}

.cs-news-preview {
    position: relative;
    display: block;
    max-height: calc(1.68em * 2);
    overflow: hidden;
    color: rgba(224, 224, 224, 0.78);
    font-size: 0.96rem;
    line-height: 1.68;
    word-break: break-word;
    transition: max-height 0.42s cubic-bezier(0.16, 1, 0.3, 1), color 0.22s ease;
    will-change: max-height;
}

.cs-news-card.is-news-animating .cs-news-preview {
    overflow: hidden !important;
}

.cs-news-card:not(.is-expanded) .cs-news-preview p,.cs-news-card:not(.is-expanded) .cs-news-preview div,.cs-news-card:not(.is-expanded) .cs-news-preview h1,.cs-news-card:not(.is-expanded) .cs-news-preview h2,.cs-news-card:not(.is-expanded) .cs-news-preview h3,.cs-news-card:not(.is-expanded) .cs-news-preview h4,.cs-news-card:not(.is-expanded) .cs-news-preview h5,.cs-news-card:not(.is-expanded) .cs-news-preview h6,.cs-news-card:not(.is-expanded) .cs-news-preview blockquote,.cs-news-card:not(.is-expanded) .cs-news-preview pre {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.cs-news-card:not(.is-expanded) .cs-news-preview span,.cs-news-card:not(.is-expanded) .cs-news-preview a,.cs-news-card:not(.is-expanded) .cs-news-preview strong,.cs-news-card:not(.is-expanded) .cs-news-preview b,.cs-news-card:not(.is-expanded) .cs-news-preview em,.cs-news-card:not(.is-expanded) .cs-news-preview i,.cs-news-card:not(.is-expanded) .cs-news-preview u,.cs-news-card:not(.is-expanded) .cs-news-preview s,.cs-news-card:not(.is-expanded) .cs-news-preview code {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
    vertical-align: baseline !important;
}

.cs-news-card:not(.is-expanded) .cs-news-preview ul,.cs-news-card:not(.is-expanded) .cs-news-preview ol {
    display: block !important;
    margin: 0 0 0 18px !important;
    padding: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.cs-news-card:not(.is-expanded) .cs-news-preview li {
    display: list-item !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.cs-news-preview a {
    color: #6FD65D;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cs-news-card:not(.is-expanded) .cs-news-preview br,.cs-news-card:not(.is-expanded) .cs-news-preview img,.cs-news-card:not(.is-expanded) .cs-news-preview table,.cs-news-card:not(.is-expanded) .cs-news-preview thead,.cs-news-card:not(.is-expanded) .cs-news-preview tbody,.cs-news-card:not(.is-expanded) .cs-news-preview tfoot,.cs-news-card:not(.is-expanded) .cs-news-preview tr,.cs-news-card:not(.is-expanded) .cs-news-preview th,.cs-news-card:not(.is-expanded) .cs-news-preview td,.cs-news-card:not(.is-expanded) .cs-news-preview caption,.cs-news-card:not(.is-expanded) .cs-news-preview figure,.cs-news-card:not(.is-expanded) .cs-news-preview figcaption,.cs-news-card:not(.is-expanded) .cs-news-preview iframe,.cs-news-card:not(.is-expanded) .cs-news-preview video,.cs-news-card:not(.is-expanded) .cs-news-preview source {
    display: none !important;
}

.cs-news-card:not(.is-expanded) .cs-news-preview::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.55em;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 22, 38, 0), rgba(0, 22, 38, 0.94));
}

.cs-news-card.is-expanded {
    cursor: default;
    padding-bottom: 18px;
}

.cs-news-card.is-expanded .cs-news-preview::after {
    display: none;
}

.cs-news-card.is-expanded .cs-news-preview h1 {
    font-size: 1.9rem !important;
}

.cs-news-card.is-expanded .cs-news-preview h2 {
    font-size: 1.55rem !important;
}

.cs-news-card.is-expanded .cs-news-preview h3 {
    font-size: 1.28rem !important;
}

.cs-news-card.is-expanded .cs-news-preview h4 {
    font-size: 1.1rem !important;
}

.cs-news-card.is-expanded .cs-news-preview ul,.cs-news-card.is-expanded .cs-news-preview ol {
    display: block !important;
    margin: 10px 0 12px 24px !important;
    padding: 0 !important;
}

.cs-news-card.is-expanded .cs-news-preview li {
    display: list-item !important;
    margin: 4px 0 !important;
}

.cs-news-card.is-expanded .cs-news-preview blockquote {
    display: block !important;
    margin: 12px 0 !important;
    padding: 10px 14px !important;
    border-left: 3px solid rgba(111, 214, 93, 0.72) !important;
    border-radius: 8px;
    background: rgba(111, 214, 93, 0.08);
}

.cs-news-card.is-expanded .cs-news-preview br {
    display: initial !important;
}

.cs-news-card.is-expanded .cs-news-preview img {
    display: block !important;
    max-width: 100%;
    height: auto;
    margin: 12px auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.cs-news-card.is-expanded .cs-news-preview figure {
    display: block !important;
    margin: 12px 0;
}

.cs-news-card.is-expanded .cs-news-preview figcaption {
    display: block !important;
    margin-top: 6px;
    color: rgba(224, 224, 224, 0.58);
    font-size: 0.82rem;
    text-align: center;
}

.cs-news-card.is-expanded .cs-news-preview table {
    display: table !important;
    width: 100%;
    margin: 12px 0;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 8px;
}

.cs-news-card.is-expanded .cs-news-preview thead {
    display: table-header-group !important;
}

.cs-news-card.is-expanded .cs-news-preview tbody {
    display: table-row-group !important;
}

.cs-news-card.is-expanded .cs-news-preview tfoot {
    display: table-footer-group !important;
}

.cs-news-card.is-expanded .cs-news-preview tr {
    display: table-row !important;
}

.cs-news-card.is-expanded .cs-news-preview th,.cs-news-card.is-expanded .cs-news-preview td {
    display: table-cell !important;
    padding: 8px 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.035);
}

.cs-news-card.is-expanded .cs-news-preview th {
    color: #fff;
    background: rgba(111, 214, 93, 0.10);
}

.cs-news-card.is-expanded .cs-news-preview iframe,.cs-news-card.is-expanded .cs-news-preview video {
    display: block !important;
    width: min(100%, 960px);
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 240px;
    margin: 14px auto;
    border: 0;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.34);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.cs-news-card.is-expanded .cs-news-preview source {
    display: none !important;
}

.cs-news-card.is-expanded .cs-news-preview * {
    box-sizing: border-box;
}

.cs-news-card.is-expanded .cs-news-preview span,.cs-news-card.is-expanded .cs-news-preview a,.cs-news-card.is-expanded .cs-news-preview strong,.cs-news-card.is-expanded .cs-news-preview b,.cs-news-card.is-expanded .cs-news-preview em,.cs-news-card.is-expanded .cs-news-preview i,.cs-news-card.is-expanded .cs-news-preview u,.cs-news-card.is-expanded .cs-news-preview s,.cs-news-card.is-expanded .cs-news-preview code {
    vertical-align: baseline;
}

.cs-news-card.is-expanded .cs-news-preview a {
    color: #6FD65D;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cs-news-card.is-expanded .cs-news-preview pre code {
    display: block !important;
    white-space: inherit;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.cs-news-card.is-expanded .cs-news-readmore {
    transform: translateX(-50%) rotate(180deg);
}

.cs-news-card.is-expanded:hover .cs-news-readmore,.cs-news-card.is-expanded .cs-news-readmore:hover {
    color: #ffffff;
    background: transparent !important;
    box-shadow: none !important;
    transform: translateX(-50%) rotate(180deg) translateY(-1px);
}

.cs-news-card-footer {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 13px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    gap: 12px;
}

.cs-news-readmore {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: transparent !important;
    box-shadow: none !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 34px;
    border-radius: 999px;
    color: rgba(224, 224, 224, 0.62);
    font-size: 1.55rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.cs-news-card:hover .cs-news-readmore,.cs-news-readmore:hover {
    color: #ffffff;
    background: transparent !important;
    box-shadow: none !important;
    transform: translateX(-50%) translateY(1px);
}

.cs-news-archive-btn {
    position: absolute;
    right: 0;
    display: none !important;
}

.cs-news-card.is-expanded .cs-news-archive-btn {
    display: inline-flex !important;
}

.cs-news-archive-btn,.cs-news-back-link,.cs-news-admin-actions button,.cs-admin-mini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: #dce6ea;
    cursor: pointer;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.20);
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.cs-news-archive-btn:hover,.cs-news-back-link:hover,.cs-news-admin-actions button:hover,.cs-admin-mini-btn:hover {
    color: #fff;
    border-color: rgba(111, 214, 93, 0.38);
    background: rgba(111, 214, 93, 0.16);
    transform: translateY(-1px);
}

.cs-news-modal {
    display: flex !important;
    position: fixed;
    inset: 0;
    z-index: 3150;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.cs-news-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cs-news-modal.is-closing {
    opacity: 0;
    visibility: visible;
    pointer-events: none;
}

.cs-news-panel {
    position: relative;
    width: min(920px, 94vw);
    max-height: 88vh;
    overflow: auto;
    padding: 22px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--cs-text);
    opacity: 0;
    transform: translateY(18px) scale(0.965);
    background: linear-gradient(135deg, rgba(0, 22, 38, 0.90), rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.76));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px) saturate(95%);
    -webkit-backdrop-filter: blur(12px) saturate(95%);
    box-sizing: border-box;
    transition: opacity 0.24s ease, transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-news-modal.show .cs-news-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.cs-news-modal.is-closing .cs-news-panel {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
}

.cs-news-panel::-webkit-scrollbar,.cs-news-admin-list::-webkit-scrollbar {
    width: 6px;
}

.cs-news-panel::-webkit-scrollbar-track,.cs-news-admin-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.cs-news-panel::-webkit-scrollbar-thumb,.cs-news-admin-list::-webkit-scrollbar-thumb {
    background: rgba(111, 214, 93, 0.42);
    border-radius: 5px;
}

.cs-news-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.46);
    transition: all 0.22s ease;
}

.cs-news-close:hover {
    background: rgba(244, 67, 54, 0.82);
    transform: rotate(90deg);
}

.cs-news-panel-head {
    margin: 0 46px 18px 0;
}

.cs-news-panel-head h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1.25;
    font-weight: 950;
}

.cs-news-panel-meta .cs-news-author-avatar {
    width: 24px;
    height: 24px;
}

.cs-news-panel-body {
    color: #dce6ea;
    font-size: 15px;
    line-height: 1.72;
    overflow-wrap: anywhere;
}

.cs-news-panel-body p,.cs-news-panel-body div {
    margin: 0 0 12px;
}

.cs-news-panel-body h1,.cs-news-panel-body h2,.cs-news-panel-body h3,.cs-news-panel-body h4,.cs-news-panel-body h5,.cs-news-panel-body h6 {
    margin: 16px 0 9px;
    color: #fff;
    line-height: 1.28;
}

.cs-news-panel-body h1 {
    font-size: 1.9rem;
}

.cs-news-panel-body h2 {
    font-size: 1.55rem;
}

.cs-news-panel-body h3 {
    font-size: 1.28rem;
}

.cs-news-panel-body h4 {
    font-size: 1.1rem;
}

.cs-news-panel-body ul,.cs-news-panel-body ol {
    margin: 10px 0 12px 24px;
    padding: 0;
}

.cs-news-panel-body li {
    margin: 4px 0;
}

.cs-news-panel-body blockquote {
    margin: 12px 0;
    padding: 10px 14px;
    border-left: 3px solid rgba(111, 214, 93, 0.72);
    border-radius: 8px;
    background: rgba(111, 214, 93, 0.08);
}

.cs-news-panel-body a {
    color: #6FD65D;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cs-news-panel-body a:hover {
    color: #fff;
}

.cs-news-panel-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 12px auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.cs-news-panel-body iframe,.cs-news-panel-body video {
    display: block;
    width: 100%;
    max-width: 860px;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 260px;
    margin: 14px auto;
    border: 0;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.34);
}

.cs-news-panel-body figure {
    margin: 12px 0;
}

.cs-news-panel-body figcaption {
    margin-top: 6px;
    color: rgba(224, 224, 224, 0.58);
    font-size: 0.82rem;
    text-align: center;
}

.cs-news-panel-body table {
    width: 100%;
    margin: 12px 0;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 8px;
}

.cs-news-panel-body th,.cs-news-panel-body td {
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.035);
}

.cs-news-panel-body th {
    color: #fff;
    background: rgba(111, 214, 93, 0.10);
}

.cs-news-panel-body pre,.cs-news-panel-body code {
    font-family: Consolas, Monaco, "Courier New", monospace;
}

.cs-news-panel-body pre {
    overflow-x: auto;
    padding: 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
}

.cs-news-archive-panel {
    width: min(720px, 94vw);
}

.cs-news-archive-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.cs-news-archive-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #dce6ea;
    cursor: pointer;
    text-align: left;
    background: rgba(255, 255, 255, 0.045);
}

.cs-news-archive-item:hover {
    border-color: rgba(111, 214, 93, 0.34);
    background: rgba(111, 214, 93, 0.10);
}

.cs-news-archive-item>span {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-news-archive-item small,.cs-news-admin-main small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(224, 224, 224, 0.55);
    font-size: 0.76rem;
    white-space: nowrap;
}

.cs-news-archive-item em,.cs-news-admin-main em {
    color: rgba(224, 224, 224, 0.42);
    font-style: normal;
}

.cs-news-manage-page .cs-news-board {
    display: none;
}

.cs-news-manage-board {
    width: var(--cs-page-width);
    margin: 0 auto 22px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--cs-glass-border);
    background: var(--cs-glass-bg);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(9px) saturate(95%);
    -webkit-backdrop-filter: blur(9px) saturate(95%);
    box-sizing: border-box;
    margin-top: 24px;
}

.cs-news-manage-head,.cs-news-manage-list-head,.cs-news-editor-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.cs-news-manage-head h2,.cs-news-manage-list-head h4,.cs-news-editor-headline h4 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 1.18rem;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

.cs-news-editor-headline h4 {
    margin: 0;
    font-size: 1.05rem;
}

.cs-news-manage-head small,.cs-news-editor-tip {
    color: var(--cs-text-light);
    font-size: 0.78rem;
    line-height: 1.55;
}

.cs-news-manage-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 10px;
    border-radius: 999px;
    color: rgba(224, 224, 224, 0.70);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.055);
    font-size: 0.78rem;
}

.cs-news-manage-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.cs-news-manage-author b {
    color: #fff;
}

.cs-news-manage-grid,.cs-news-manage-grid-single {
    display: block !important;
}

.cs-news-editor-card,.cs-news-list-card {
    width: 100%;
    box-sizing: border-box;
}

.cs-news-admin-options,.cs-news-admin-form-actions,.cs-news-history-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cs-news-admin-options {
    justify-content: flex-start;
    margin-top: 12px;
}

.cs-news-admin-options select {
    width: 140px;
    max-width: 140px;
    flex: 0 0 140px;
}

.cs-admin-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cs-text-light);
    font-size: 0.82rem;
    font-weight: 800;
}

.cs-news-status-label {
    margin-left: 10px;
}

.cs-news-tinymce {
    min-height: 340px !important;
}

.cs-news-editor-card .tox-tinymce {
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.18) !important;
}

.cs-news-editor-card .tox .tox-toolbar,.cs-news-editor-card .tox .tox-toolbar__overflow,.cs-news-editor-card .tox .tox-toolbar__primary,.cs-news-editor-card .tox .tox-menubar,.cs-news-editor-card .tox .tox-statusbar {
    background: rgba(0, 0, 0, 0.30) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
}

.cs-news-editor-card .tox .tox-tbtn,.cs-news-editor-card .tox .tox-mbtn,.cs-news-editor-card .tox .tox-listboxfield .tox-listbox--select,.cs-news-editor-card .tox .tox-statusbar__path-item,.cs-news-editor-card .tox .tox-statusbar__wordcount {
    color: rgba(220, 230, 234, 0.86) !important;
}

.cs-news-editor-card .tox .tox-tbtn:hover,.cs-news-editor-card .tox .tox-mbtn:hover,.cs-news-editor-card .tox .tox-tbtn--enabled {
    color: #fff !important;
    background: rgba(111, 214, 93, 0.16) !important;
}

.cs-news-editor-card .tox .tox-tbtn svg {
    fill: rgba(220, 230, 234, 0.86) !important;
}

.cs-news-editor-card .tox .tox-tbtn:hover svg,.cs-news-editor-card .tox .tox-tbtn--enabled svg {
    fill: #fff !important;
}

.cs-news-editor-card .tox:not(.tox-tinymce-inline) .tox-editor-header {
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
}

.cs-news-history-panel {
    display: none !important;
    margin-top: 14px;
}

.cs-news-history-panel.show,.cs-news-history-panel[aria-hidden="false"] {
    display: block !important;
}

.cs-news-history-panel[aria-hidden="true"] {
    display: none !important;
}

.cs-news-admin-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 430px;
    overflow-y: auto;
    padding-right: 4px;
    transition: opacity 0.18s ease;
}

.cs-news-admin-list.is-updating {
    opacity: 0.55;
    pointer-events: none;
}

.cs-news-admin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
}

.cs-news-admin-row.is-draft {
    opacity: 0.66;
    border-style: dashed;
}

.cs-news-admin-main {
    min-width: 0;
}

.cs-news-admin-main strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-news-admin-main p {
    margin: 5px 0 0;
    overflow: hidden;
    color: rgba(224, 224, 224, 0.52);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-news-admin-main small .cs-news-author-avatar {
    width: 18px;
    height: 18px;
}

.cs-news-admin-main small a,.cs-news-admin-main small span {
    color: #dce6ea;
    text-decoration: none;
    font-weight: 800;
}

.cs-news-admin-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.cs-news-admin-actions button {
    min-height: 28px;
    padding: 0 9px;
    font-size: 12px;
}

.cs-news-admin-actions .cs-admin-row-danger {
    background: rgba(244, 67, 54, 0.22) !important;
}

.cs-news-admin-actions .cs-admin-row-danger:hover {
    border-color: rgba(255, 80, 80, 0.70);
    background: rgba(244, 67, 54, 0.36) !important;
}

.cs-admin-card textarea {
    width: 100%;
    min-height: 78px;
    padding: 10px 11px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    color: #fff;
    outline: none;
    resize: vertical;
    background: rgba(255, 255, 255, 0.07);
    font-family: inherit;
}

.cs-admin-card textarea:focus {
    border-color: rgba(111, 214, 93, 0.56);
    box-shadow: 0 0 0 3px rgba(111, 214, 93, 0.12);
}

.cs-news-card:hover {
    border-color: rgba(255, 255, 255, 0.82) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.cs-news-title-button:hover,.cs-news-card.is-expanded .cs-news-title-button {
    color: #ffffff !important;
    text-shadow: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.cs-news-readmore,.cs-news-readmore:hover,.cs-news-card:hover .cs-news-readmore {
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
}

.cs-news-card.is-expanded .cs-news-preview {
    max-height: none;
    overflow: visible;
    color: #dce6ea;
    font-size: 15px;
    line-height: 1.72;
    overflow-wrap: anywhere;
    font-family: "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
}

.cs-news-card.is-expanded .cs-news-preview p,.cs-news-card.is-expanded .cs-news-preview div {
    display: block !important;
    margin: 0 0 12px !important;
    padding: 0;
}

.cs-news-card.is-expanded .cs-news-preview h1,.cs-news-card.is-expanded .cs-news-preview h2,.cs-news-card.is-expanded .cs-news-preview h3,.cs-news-card.is-expanded .cs-news-preview h4,.cs-news-card.is-expanded .cs-news-preview h5,.cs-news-card.is-expanded .cs-news-preview h6 {
    display: block !important;
    margin: 16px 0 9px !important;
    color: #ffffff;
    line-height: 1.28 !important;
    font-weight: 900;
}

.cs-news-card.is-expanded .cs-news-preview pre,.cs-news-card.is-expanded .cs-news-preview pre[class*="language-"] {
    display: block !important;
    overflow-x: auto;
    white-space: pre-wrap !important;
    margin: 14px 0 !important;
    padding: 14px 16px !important;
    border-radius: 10px;
    color: #dce6ea;
    background: #1f2430 !important;
    font-family: Consolas, Monaco, "Courier New", monospace !important;
    font-size: 13px !important;
    line-height: 1.62 !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.cs-news-card.is-expanded .cs-news-preview pre code,.cs-news-card.is-expanded .cs-news-preview pre[class*="language-"] code {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: inherit !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    color: inherit !important;
    background: transparent !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.cs-news-card.is-expanded .cs-news-preview code:not(pre code) {
    display: inline !important;
    padding: 2px 5px !important;
    border-radius: 5px;
    color: #dce6ea;
    background: rgba(255,255,255,0.08);
    font-family: Consolas, Monaco, "Courier New", monospace !important;
}

.cs-news-card.is-expanded .cs-news-preview iframe[src*="player.bilibili.com"],.cs-news-card.is-expanded .cs-news-preview iframe[src*="youtube.com"],.cs-news-card.is-expanded .cs-news-preview iframe[src*="youtu.be"] {
    display: block !important;
    width: 100% !important;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    height: auto !important;
    min-height: 300px;
    margin: 16px auto !important;
    border: 0 !important;
    border-radius: 12px;
    background: #000 !important;
}

.cs-news-card.is-expanded .cs-news-inline-head {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
}

.cs-news-footer-actions {
    position: absolute;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.cs-news-comment-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: #dce6ea;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.20);
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.cs-news-card.is-expanded .cs-news-comment-toggle {
    display: inline-flex;
}

.cs-news-comment-toggle:hover,.cs-news-comment-toggle.is-active {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.12);
}

.cs-news-comment-count {
    min-width: 1em;
    font-size: 0.78rem;
    color: rgba(224, 224, 224, 0.72);
}

.cs-news-comments {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
}

.cs-news-comments.is-open,.cs-news-comments.is-comment-animating {
    opacity: 1;
}

.cs-news-comments-head button {
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 7px;
    min-height: 26px;
    padding: 0 8px;
    color: rgba(224, 224, 224, 0.72);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.055);
}

.cs-news-comments-head button:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}

.cs-news-comment-login-tip {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(224, 224, 224, 0.68);
    background: rgba(0, 0, 0, 0.18);
    border: 1px dashed rgba(255, 255, 255, 0.12);
}

.cs-news-comment-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 14px;
}

.cs-news-comment-form textarea {
    width: 100%;
    min-height: 58px;
    max-height: 150px;
    box-sizing: border-box;
    padding: 10px 11px;
    resize: vertical;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #dce6ea;
    outline: none;
    background: rgba(0, 0, 0, 0.18);
    font-family: inherit;
    line-height: 1.45;
}

.cs-news-comment-form textarea:focus {
    border-color: rgba(111, 214, 93, 0.52);
    box-shadow: 0 0 0 3px rgba(111, 214, 93, 0.10);
}

.cs-news-comment-form button {
    min-height: 36px;
    padding: 0 13px;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(135deg, #42b883, #4CAF50);
    box-shadow: 0 8px 18px rgba(76, 175, 80, 0.18);
}

.cs-news-comment-form button:disabled {
    opacity: 0.68;
    cursor: not-allowed;
}

.cs-news-comment-item:first-child {
    border-top: none;
}

.cs-news-comment-meta a,.cs-news-comment-meta span {
    color: #b7ff1a;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.84rem;
}

.cs-news-comment-meta a:hover {
    color: #d9ff70;
}

.cs-news-comment-meta time {
    flex: 0 0 auto;
    color: rgba(224, 224, 224, 0.42);
    font-size: 0.76rem;
}

.cs-news-by {
    color: rgba(224, 224, 224, 0.42) !important;
    font-size: 0.76rem;
    white-space: nowrap;
}

.cs-news-card.is-expanded .cs-news-comments {
    margin-top: 0;
}

.cs-news-card.is-expanded .cs-news-card-footer+.cs-news-comments.is-open,.cs-news-card.is-expanded .cs-news-card-footer+.cs-news-comments.is-comment-animating {
    border-top: 0;
}

.cs-news-card.is-expanded .cs-news-card-footer {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
    z-index: 3;
}

.cs-news-comments-inner {
    margin-top: 0;
    padding-top: 14px;
    border-top: 0;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(13, 24, 36, 0.36);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.cs-news-comments-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cs-news-comments-head strong {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.90);
    font-size: 0.92rem;
}

.cs-news-comments-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cs-news-comment-item {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 11px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    margin: 0;
    border: 0;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.018);
    box-shadow: none;
}

.cs-news-comment-item+.cs-news-comment-item {
    margin-top: 4px;
}

.cs-news-comment-item.is-reply {
    margin-left: 26px;
    padding-left: 12px;
    background: rgba(255, 255, 255, 0.014);
    border-left: 1px solid rgba(255, 255, 255, 0.075);
}

.cs-news-comment-children {
    display: contents;
}

.cs-news-comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.38);
}

.cs-news-comment-main {
    min-width: 0;
}

.cs-news-comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
}

.cs-news-comment-author-line {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.cs-news-comment-reply-to {
    color: rgba(224, 224, 224, 0.42) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
}

.cs-news-comment-body {
    color: rgba(224, 224, 224, 0.84);
    line-height: 1.55;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.cs-news-comment-tools {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
}

.cs-news-comment-reply-btn,.cs-news-comment-reply-btn:hover,.cs-news-comment-reply-btn:focus,.cs-news-comment-reply-btn:active {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    padding: 0 !important;
    color: rgba(224, 224, 224, 0.50) !important;
    cursor: pointer;
    background: transparent !important;
    font-size: 0.76rem;
}

.cs-news-comment-reply-btn:hover {
    color: rgba(255, 255, 255, 0.86) !important;
}

.cs-news-reply-form-slot {
    margin-top: 8px;
}

.cs-news-reply-form {
    margin-bottom: 0;
    padding: 9px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.055);
    box-shadow: none;
}

.cs-news-reply-form textarea {
    min-height: 44px;
}

.cs-news-reply-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cs-news-reply-actions button,.cs-news-reply-actions button:hover,.cs-news-reply-actions button:focus,.cs-news-reply-actions button:active {
    box-shadow: none !important;
    text-shadow: none !important;
}

.cs-news-reply-actions .cs-news-reply-cancel,.cs-news-reply-actions .cs-news-reply-cancel:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(224, 224, 224, 0.78) !important;
}

@media (max-width: 1320px) {

    .cs-servers-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

}

@media (max-width: 860px) {

    .cs-server-admin-grid-lazy {
        grid-template-columns: 1fr;
    }

    .cs-server-admin-row {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .cs-server-admin-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

}

@media (max-width: 900px) {

    .cs-server-detail-top,.cs-server-detail-bottom {
        grid-template-columns: 1fr;
    }

    .cs-server-detail-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cs-server-detail-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .cs-server-detail-connect-slot {
        justify-content: flex-start;
    }

}

@media (max-width: 768px) {

    :root {
        --cs-page-width: calc(100% - 24px);
    }

    .cs-hero-nav,.cs-map-preview-arrow {
        opacity: 1;
        width: 38px;
        height: 58px;
    }

    .cs-hero-nav .fa,.cs-map-preview-arrow .fa {
        font-size: 24px;
    }

    .cs-map-preview-title {
        font-size: 1rem;
        padding: 8px 14px;
    }

    .cs-map-preview-modal,.cs-admin-modal {
        padding: 14px;
    }

    .cs-map-preview-large-image {
        height: min(58vh, 430px);
    }

    .cs-servers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .cs-servers-board {
        padding: 13px;
    }

    .cs-servers-board-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .cs-server-admin-grid {
        grid-template-columns: 1fr;
    }

    .cs-admin-tabs {
        flex-wrap: wrap;
    }

    .cs-admin-edge-button {
        top: auto;
        bottom: 86px;
        transform: none;
    }

    .cs-server-admin-row {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .cs-server-admin-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .cs-server-admin-savebar {
        flex-wrap: wrap;
    }

}

@media (max-width: 680px) {

    .cs-news-card.is-expanded .cs-news-preview iframe,.cs-news-card.is-expanded .cs-news-preview video {
        min-height: 210px;
    }

}

@media (max-width: 980px) {

    :root {
        --cs-page-width: min(760px, calc(100% - 28px));
    }

    .cs-hero-panel {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .cs-map-preview-card {
        height: 260px;
    }

    .cs-hero-right {
        min-height: auto;
    }

    .cs-stats-in-hero {
        flex-wrap: wrap;
    }

    .cs-stats-in-hero .cs-stat-card {
        flex: 1 1 calc(50% - 8px);
    }

    .cs-servers-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cs-online-dashboard-header {
        flex-direction: column;
    }

    .cs-online-dashboard-ranges {
        justify-content: flex-start;
    }

    .cs-news-inline-head {
        align-items: flex-start;
        flex-wrap: wrap;
        white-space: normal;
    }

    .cs-news-inline-title {
        max-width: calc(100% - 80px);
    }

    .cs-news-inline-meta {
        flex-basis: 100%;
    }

    .cs-news-admin-row {
        grid-template-columns: 1fr;
    }

    .cs-news-admin-actions {
        justify-content: flex-start;
    }

}

@media (max-width: 560px) {

    .cs-hero-panel {
        padding: 12px;
    }

    .cs-map-preview-card {
        height: 215px;
    }

    .cs-community-title {
        font-size: 1rem;
    }

    .cs-stats-in-hero .cs-stat-card {
        flex: 1 1 calc(50% - 6px);
    }

    .cs-servers-grid {
        grid-template-columns: 1fr;
    }

    .cs-server-image {
        height: 145px;
    }

    .cs-online-dashboard {
        padding: 13px;
    }

    .cs-online-dashboard-meta {
        display: flex;
        margin: 7px 0 0;
        flex-wrap: wrap;
    }

    .cs-online-dashboard-chart-wrap {
        height: 230px;
        padding: 10px;
    }

    .cs-server-detail-modal {
        padding: 12px;
    }

    .cs-server-detail-panel {
        padding: 15px;
        max-height: 92vh;
    }

    .cs-server-detail-head {
        margin-right: 42px;
        flex-direction: column;
        gap: 8px;
    }

    .cs-server-detail-title-wrap h3 {
        font-size: 1.1rem;
    }

    .cs-server-detail-map-card,.cs-server-detail-map-card img {
        min-height: 210px;
    }

    .cs-server-detail-info-grid {
        grid-template-columns: 1fr;
    }

    .cs-server-detail-chart-wrap {
        height: 230px;
    }

    .cs-server-detail-map-card,.cs-server-detail-map-card img,.cs-server-detail-map-card #csServerDetailMapImage {
        height: 220px;
        min-height: 220px;
    }

    .cs-server-detail-subline {
        font-size: 0.76rem;
    }

    .cs-server-detail-map-title {
        left: 10px;
        right: 10px;
        bottom: 10px;
        gap: 8px;
    }

    .cs-server-detail-viewer span {
        display: none;
    }

    .cs-server-detail-viewer {
        width: 34px;
        padding: 0;
    }

    .cs-news-board {
        padding: 0;
    }

    .cs-news-manage-board {
        padding: 13px;
    }

    .cs-news-card {
        min-height: 0;
        padding: 15px 14px 46px;
    }

    .cs-news-card-footer {
        left: 14px;
        right: 14px;
        gap: 7px;
    }

    .cs-news-inline-title,.cs-news-title-button {
        max-width: 100%;
        font-size: 0.98rem;
    }

    .cs-news-time {
        flex-basis: 100%;
    }

    .cs-news-modal {
        padding: 12px;
    }

    .cs-news-panel {
        padding: 16px;
        max-height: 92vh;
    }

    .cs-news-panel-head,.cs-news-manage-head,.cs-news-manage-list-head,.cs-news-editor-headline {
        align-items: flex-start;
        flex-direction: column;
    }

    .cs-news-panel-head {
        margin-right: 42px;
    }

    .cs-news-archive-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .cs-news-history-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .cs-news-footer-actions {
        position: static;
        margin-left: auto;
    }

    .cs-news-comment-form {
        grid-template-columns: 1fr;
    }

    .cs-news-comment-form button {
        justify-self: flex-end;
    }

    .cs-news-comment-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .cs-news-comments-inner {
        padding: 10px;
    }

    .cs-news-comment-item.is-reply {
        margin-left: 12px;
    }

    .cs-news-reply-actions {
        justify-content: flex-end;
    }

}

@keyframes cs-spin {
    to { transform: rotate(360deg); }
}

@keyframes cs-pulse {
    0%, 100% { transform: scale(0.98); opacity: 0.7; }
    50% { transform: scale(1); opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes error-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(244, 67, 54, 0); }
}

@keyframes typing {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes csChartProgressMove {
    from { left: -45%; }
    to { left: 100%; }
}


:root {
/*    --cs-panel-v17: linear-gradient(135deg, rgba(9, 17, 23, .78), rgba(255, 255, 255, .035), rgba(6, 10, 14, .74));*/
/*    --cs-card-v17: linear-gradient(135deg, rgba(11, 18, 23, .82), rgba(255, 255, 255, .028), rgba(8, 12, 16, .78));*/
    --cs-border-v17: rgba(255, 255, 255, .10);
}

/* 主面板收一点圆角和光效，和 player2/top15 更统一 */
.cs-servers-board,
.cs-hero-panel,
.cs-online-dashboard {
    border-radius: 12px !important;
    border-color: rgba(255,255,255,.11) !important;
    background: var(--cs-panel-v17) !important;
    box-shadow:
        0 12px 30px rgba(0,0,0,.30),
        inset 0 1px 0 rgba(255,255,255,.045) !important;
    backdrop-filter: blur(8px) saturate(88%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(88%) !important;
}

.cs-servers-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

.cs-server-card,
.cs-server-card-loading {
    border-radius: 9px !important;
    border-color: var(--cs-border-v17) !important;
    background: var(--cs-card-v17) !important;
    box-shadow:
        0 5px 14px rgba(0,0,0,.22),
        inset 0 1px 0 rgba(255,255,255,.035) !important;
    transition:
        transform .22s cubic-bezier(.22,1,.36,1),
        border-color .20s ease,
        box-shadow .22s ease !important;
}

.cs-server-card:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(111,214,93,.23) !important;
    box-shadow:
        0 10px 24px rgba(0,0,0,.31),
        0 0 0 1px rgba(111,214,93,.035) !important;
}

.cs-server-content-top {
    padding: 10px 11px 8px !important;
    border-bottom-color: rgba(255,255,255,.07) !important;
    text-shadow: none !important;
}

.cs-server-content-bottom {
    padding: 8px 11px 11px !important;
}

/* 4列后让预览图稍微高一点，比例更自然 */
.cs-server-image,
.cs-server-image-loading {
    height: 136px !important;
}

/* 地图行：地图名缩略，SR / 下载 / New Map 永远留在右边，不掉到下一行 */
.cs-server-meta {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 9px !important;
}

.cs-server-map-row {
    min-width: 0;
    width: 100%;
    display: flex !important;
    align-items: center;
    gap: 7px;
    line-height: 1.35;
}

.cs-server-map-main {
    min-width: 0;
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
}

.cs-server-map-main > i {
    flex: 0 0 auto;
}

.cs-server-map-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: normal !important;
}

.cs-server-map-actions {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.cs-server-map-action {
    width: 23px;
    height: 23px;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 5px;
    background: rgba(255,255,255,.035);
    text-decoration: none !important;
    color: rgba(224,232,236,.74);
    cursor: pointer;
    transition:
        transform .18s ease,
        color .18s ease,
        background .18s ease,
        border-color .18s ease;
}

.cs-server-map-action:hover {
    transform: translateY(-1px);
    color: #fff;
    background: rgba(255,255,255,.075);
}

.cs-server-map-sr {
    color: #78d769 !important;
    border-color: rgba(111,214,93,.16);
}

.cs-server-map-sr:hover {
    border-color: rgba(111,214,93,.34);
    background: rgba(111,214,93,.09);
}

.cs-server-map-download {
    color: #e5b86e !important;
    border-color: rgba(229,184,110,.16);
}

.cs-server-map-download:hover {
    border-color: rgba(229,184,110,.34);
    background: rgba(229,184,110,.08);
}

/* New Map 去掉 + 以后变成更简单的小状态签 */
.cs-new-map-tag {
    margin-left: 0 !important;
    padding: 2px 6px !important;
    border: 1px solid rgba(255,108,125,.22);
    background: rgba(214,65,87,.68) !important;
    box-shadow: none !important;
    transform: none !important;
}

.cs-new-map-tag:hover {
    transform: translateY(-1px) !important;
    background: rgba(224,75,96,.78) !important;
    box-shadow: none !important;
}

.cs-new-map-tag i {
    display: none !important;
}

/* 玩家数固定右侧 */
.cs-players-container {
    align-self: center;
}

/* 标签更轻，不改变字体大小 */
.cs-tags {
    gap: 5px !important;
}

.cs-tag {
    border: 1px solid rgba(255,255,255,.04);
}

/* 服务器详情弹窗也改得更接近 top15 */
.cs-server-detail-panel {
    border-radius: 12px !important;
    border-color: rgba(255,255,255,.11) !important;
    background:
        radial-gradient(circle at 15% 0%, rgba(111,214,93,.045), transparent 34%),
        rgba(12,18,23,.97) !important;
    box-shadow: 0 26px 68px rgba(0,0,0,.56) !important;
}

.cs-server-detail-map-card {
    border-radius: 9px !important;
}

.cs-server-detail-subline {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: 7px !important;
}

.cs-server-detail-viewer,
.cs-server-detail-download {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 900;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.cs-server-detail-download {
    color: #f0c27a;
    border: 1px solid rgba(240,194,122,.25);
    background: rgba(240,194,122,.08);
}

.cs-server-detail-download:hover {
    color: #ffe1ad;
    border-color: rgba(240,194,122,.45);
    background: rgba(240,194,122,.13);
}

.cs-server-detail-download i {
    color: currentColor;
}


/* =========================================================
   地图下载弹窗
   ========================================================= */
.cs-map-download-modal {
    position: fixed;
    inset: 0;
    z-index: 1000010;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(0,0,0,.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity .22s ease, visibility .22s ease;
}

.cs-map-download-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cs-map-download-modal.is-closing {
    opacity: 0;
    visibility: visible;
    pointer-events: none;
}

.cs-map-download-panel {
    position: relative;
    width: min(440px, calc(100vw - 28px));
    max-height: min(620px, calc(100vh - 32px));
    overflow-y: auto;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 11px;
    background:
        radial-gradient(circle at 14% 0%, rgba(229,184,110,.055), transparent 34%),
        rgba(13,18,23,.98);
    box-shadow: 0 26px 68px rgba(0,0,0,.58);
    opacity: 0;
    transform: translateY(14px) scale(.975);
    transition:
        opacity .22s ease,
        transform .30s cubic-bezier(.16,1,.3,1);
}

.cs-map-download-modal.show .cs-map-download-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.cs-map-download-modal.is-closing .cs-map-download-panel {
    opacity: 0;
    transform: translateY(10px) scale(.98);
}

.cs-map-download-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 6px;
    color: #98a2aa;
    background: rgba(255,255,255,.035);
    cursor: pointer;
}

.cs-map-download-close:hover {
    color: #fff;
    background: rgba(255,255,255,.07);
}

.cs-map-download-head {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding-right: 34px;
    margin-bottom: 13px;
}

.cs-map-download-head-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(229,184,110,.20);
    border-radius: 8px;
    color: #e5b86e;
    background: rgba(229,184,110,.06);
}

.cs-map-download-head h3 {
    margin: 0;
}

.cs-map-download-name {
    margin-top: 3px;
    color: var(--cs-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-map-download-loading,
.cs-map-download-empty {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--cs-text-light);
    text-align: center;
}

.cs-map-download-spinner {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.09);
    border-top-color: #e5b86e;
    animation: csMapDownloadSpin .72s linear infinite;
}

@keyframes csMapDownloadSpin {
    to { transform: rotate(360deg); }
}

.cs-map-download-body {
    display: grid;
    gap: 7px;
}

.cs-map-download-source {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 8px;
    color: inherit;
    background: rgba(255,255,255,.025);
    text-decoration: none !important;
    font-size: 13px;
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.cs-map-download-source:hover {
    transform: translateY(-1px);
    border-color: rgba(229,184,110,.25);
    background: rgba(229,184,110,.04);
}

.cs-map-download-source-left,
.cs-map-download-source-right {
    display: flex;
    align-items: center;
}

.cs-map-download-source-left {
    min-width: 0;
    gap: 9px;
}

.cs-map-download-source-right {
    flex: 0 0 auto;
    gap: 7px;
    color: #e5b86e;
}

.cs-map-download-format {
    min-width: 37px;
    padding: 3px 5px;
    border-radius: 5px;
    color: #cbd3d8;
    background: rgba(255,255,255,.055);
    text-align: center;
    font-weight: 850;
}

.cs-map-download-source-copy {
    min-width: 0;
}

.cs-map-download-source-copy strong,
.cs-map-download-source-copy small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cs-map-download-source-copy small {
    margin-top: 2px;
    color: var(--cs-text-light);
}

.cs-map-download-region {
    padding: 2px 6px;
    border-radius: 5px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
    font-size: 13px;
}

.cs-map-download-region.is-domestic {
    border: 1px solid rgba(111,214,93,.18);
    color: #84d979;
    background: rgba(111,214,93,.07);
}

.cs-map-download-region.is-overseas {
    border: 1px solid rgba(115,191,232,.16);
    color: #87c6e7;
    background: rgba(115,191,232,.06);
}


/* 响应式：桌面4列 / 中屏3列 / 平板2列 / 手机1列 */
@media (max-width: 1180px) and (min-width: 981px) {
    .cs-servers-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 980px) and (min-width: 769px) {
    .cs-servers-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) and (min-width: 561px) {
    .cs-servers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .cs-servers-grid {
        grid-template-columns: 1fr !important;
    }

    .cs-server-image,
    .cs-server-image-loading {
        height: 150px !important;
    }

    .cs-server-map-row {
        gap: 5px;
    }

    .cs-map-download-modal {
        padding: 10px;
    }

    .cs-map-download-panel {
        width: calc(100vw - 20px);
        padding: 14px;
    }
}
