/* Стили страницы новостей */
.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    z-index: 5;
    margin-top: 80px;
}

.news-header-block {
    min-width: 320px;
    max-width: 520px;
    padding: 26px 24px 20px 24px;
    background: rgba(0, 0, 0, 0.38);
    border-radius: 22px;
    box-shadow: 0 8px 28px 0 rgba(0,180,255,0.35);
    color: #e0f7ff;
    text-align: center;
    backdrop-filter: blur(8px);
    margin: 0 auto 22px auto;
}

.news-header-block h2 {
    margin: 0 0 10px 0;
    font-size: 2rem;
    color: #b3e6ff;
    letter-spacing: 1px;
}

.news-subtitle {
    font-size: 1rem;
    color: #63e6ff;
}

.news-list {
    width: 90vw;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-card {
    background: radial-gradient(circle at 0 0, rgba(0,180,255,0.25), transparent 60%),
                rgba(8, 10, 20, 0.96);
    border-radius: 18px;
    padding: 18px 20px 16px 20px;
    box-shadow: 0 10px 36px rgba(0,0,0,0.85), 0 0 18px rgba(0,180,255,0.38);
    border: 1px solid rgba(0,180,255,0.35);
    color: #e8f8ff;
}

.news-card.pinned {
    box-shadow: 0 0 0 1px rgba(255,215,0,0.5), 0 0 24px rgba(255,215,0,0.35);
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #9fb6ff;
}

.news-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #9fb6ff;
}

.news-date {
    opacity: 0.9;
}

.news-date::before {
    content: '\1F4C5 ';
    margin-right: 4px;
}

.news-tag {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(0,180,255,0.18);
    color: #e0f7ff;
}

.news-tag.event {
    background: rgba(88,101,242,0.3);
}

.news-tag.rules {
    background: rgba(255,180,77,0.25);
}

.news-title {
    margin: 4px 0 6px 0;
    font-size: 1.15rem;
    color: #ffffff;
    text-align: center;
}

.news-text {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.5;
    color: #d7ecff;
}

.news-text.news-short {
    text-align: center;
    font-style: italic;
}

.news-admin-panel {
    margin-top: 10px;
    margin-bottom: 10px;
    width: 90vw;
    max-width: 1100px;
    display: flex;
    justify-content: flex-end;
}
.news-add-btn,
.news-edit-btn,
.news-del-btn,
.news-discord-btn {
    padding: 6px 14px;
    font-size: 0.9rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: linear-gradient(90deg, #00b4ff 0%, #5865F2 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,180,255,0.35);
    margin-left: 8px;
}
.news-add-btn {
    padding: 8px 18px;
    font-size: 0.95rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    background: linear-gradient(90deg, #00b4ff 0%, #5865F2 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,180,255,0.35);
}
.news-del-btn { background: linear-gradient(90deg, #ff4d4d 0%, #5865F2 100%); }
.news-discord-btn { font-weight: 500; }
.news-admin-row {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.news-edit-btn,
.news-del-btn,
.news-discord-btn {
    padding: 4px 10px;
    font-size: 0.85rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: linear-gradient(90deg, #00b4ff 0%, #5865F2 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,180,255,0.35);
}
.news-del-btn {
    background: linear-gradient(90deg, #ff4d4d 0%, #5865F2 100%);
}
.news-discord-btn {
    font-weight: 500;
}
.news-image {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 12px;
    margin: 8px 0 10px 0;
    box-shadow: 0 4px 18px rgba(0,180,255,0.45);
}

.news-empty {
    padding: 18px;
    text-align: center;
    color: #b3e6ff;
    background: rgba(0,0,0,0.35);
    border-radius: 16px;
}

.news-body-html {
    margin-top: 8px;
    font-size: 0.96rem;
    line-height: 1.6;
    color: #e6f2ff;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.news-body-html h1,
.news-body-html h2,
.news-body-html h3 {
    margin: 6px 0 6px 0;
    font-weight: 600;
    color: #e6f2ff;
}

.news-body-html h1 {
    font-size: 1.35rem;
}

.news-body-html h2 {
    font-size: 1.2rem;
}

.news-body-html h3 {
    font-size: 1.08rem;
}

.news-body-html p {
    margin: 0 0 6px 0;
}

.news-body-html ul,
.news-body-html ol {
    margin: 0 0 6px 18px;
}

.news-body-html blockquote {
    border-left: 3px solid #00b4ff;
    padding: 6px 10px;
    margin: 6px 0;
    background: rgba(0,180,255,0.05);
    border-radius: 6px;
}

.news-body-html a {
    color: #4dd2ff;
    text-decoration: underline;
}

.news-post-image-wrap {
    margin-top: 8px;
}

.news-post-image {
    max-width: 100%;
    border-radius: 12px;
    display: block;
    box-shadow: 0 4px 18px rgba(0,0,0,0.8);
}

@media (max-width: 800px) {
    .news-header-block {
        max-width: 95vw;
        padding: 22px 16px 18px 16px;
    }
    .news-list {
        width: 95vw;
    }
    .news-card {
        padding: 14px 14px 12px 14px;
    }
}

@media (max-width: 600px) {
    .news-card {
        padding: 14px 14px 12px 14px;
    }
    .news-title {
        font-size: 1.05rem;
    }
    .news-text {
        font-size: 0.95rem;
    }
}