.news-latest,
.news-page,
.news-article-page {
    --news-accent-text: #b00000;
}

html.dark .news-latest,
html.dark .news-page,
html.dark .news-article-page {
    --news-accent-text: #ff9999;
}

.news-latest,
.news-page__content,
.news-article__content {
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    min-width: 0;
    margin-right: auto;
    margin-left: auto;
    padding: 24px;
}

.news-page,
.news-article-page {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
}

.news-latest *,
.news-page *,
.news-article-page *,
.news-latest *::before,
.news-page *::before,
.news-article-page *::before,
.news-latest *::after,
.news-page *::after,
.news-article-page *::after {
    box-sizing: border-box;
}

.news-page__header,
.news-article__header {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 40px 24px;
}

.news-article__header {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.news-page__header .view-title-form,
.news-article__heading .view-title-form {
    margin: 0;
    overflow-wrap: anywhere;
    text-align: center;
    width: 100%;
}

.news-latest__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.news-section-heading {
    margin: 0;
    color: var(--text-strong);
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.15;
}

.news-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    min-width: 0;
}

.news-latest--stream .news-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.news-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
    border: 1px solid var(--theme-border, var(--bg-dark));
    border-radius: 12px;
    padding: 14px;
    background: var(--theme-surface, #fff);
    color: var(--text-strong);
}

.news-card__media-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.news-card__media {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: var(--theme-canvas, #252525);
    aspect-ratio: 16 / 9;
}

.news-card__media img,
.news-article__cover > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--text-soft);
    font-size: var(--fs-body);
    font-weight: 700;
}

.news-card__play {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #fff;
    border-radius: 50%;
    background: rgb(0 0 0 / 72%);
    color: #fff;
    font-size: var(--fs-body);
}

.news-card__content {
    display: grid;
    flex: 1;
    align-content: start;
    gap: 8px;
}

.news-card__category {
    display: block;
    overflow: hidden;
    color: var(--news-accent-text);
    font-size: var(--fs-label);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-card__title {
    display: -webkit-box;
    height: 2.5em;
    overflow: hidden;
    margin: 0;
    color: var(--text-strong);
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.25;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-card__title a {
    color: inherit;
    text-decoration: none;
}

.news-card__title a:focus-visible {
    outline: 2px solid var(--CTA, #e91e8c);
    outline-offset: -2px;
}

.news-card__title a:hover,
.news-card__read-more:hover {
    color: var(--news-accent-text);
}

.news-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--text-soft);
    font-size: var(--fs-label);
    line-height: 1.45;
    height: 2.9em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-card__read-more {
    width: fit-content;
    color: var(--text-strong);
    font-size: var(--fs-label);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-filters {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
    padding: 18px;
}

.news-filters__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 12px;
}

.news-filters__grid--category-only {
    grid-template-columns: minmax(0, 320px) auto;
    justify-content: start;
}

.news-filter-field {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.news-filter-field label {
    color: var(--text-strong);
    font-size: var(--fs-label);
    font-weight: 700;
}

.news-filter-field select {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--theme-border, var(--bg-dark));
    border-radius: 8px;
    background: var(--theme-surface, #fff);
    color: var(--text-strong);
    font: inherit;
    font-size: var(--fs-label);
}

.news-filter-field select:focus-visible,
.news-page button:focus-visible,
.news-article-page button:focus-visible,
.news-card a:focus-visible,
.news-page a:focus-visible,
.news-article-page a:focus-visible {
    outline: 3px solid var(--CTA);
    outline-offset: 3px;
}

.news-filters__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-filters__actions .btn-default {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 6px 14px;
    border: 0;
    border-radius: 8px;
    background: var(--dark);
    color: var(--light);
    font-family: var(--ff-body);
    font-size: var(--fs-label);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.news-filters__actions .btn-default:hover {
    background: var(--CTA);
    color: var(--light);
}

.news-filters__active {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--text-soft);
    font-size: var(--fs-label);
}

.news-filters__error {
    margin: 0;
    color: var(--danger, #b91c1c);
    font-size: var(--fs-label);
}

.news-filters__active span {
    padding: 4px 9px;
    border: 1px solid var(--theme-border, var(--bg-dark));
    border-radius: 999px;
    background: var(--theme-raised, transparent);
    color: var(--text-strong);
    font-size: var(--fs-label);
}

.news-results-count {
    margin: 0 0 12px;
    color: var(--text-soft);
    font-size: var(--fs-label);
}

.news-pagination {
    margin-top: 20px;
}

.news-pagination,
.news-pagination * {
    font-size: var(--fs-label);
}

.news-empty-state {
    display: grid;
    justify-items: start;
    gap: 12px;
    padding: 24px;
    color: var(--text-strong);
}

.news-empty-state h2 {
    margin: 0;
    font-size: var(--fs-body);
}

.news-article-page {
    min-width: 0;
}

.news-article__heading {
    display: grid;
    justify-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    max-width: 900px;
}

.news-article__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    width: 100%;
    min-width: 0;
    font-family: 'BarlowCondensed', sans-serif;
    font-size: var(--fs-label);
    line-height: 1.3;
}

.news-article__category {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 4px 12px;
    border: 0;
    border-radius: 999px;
    color: var(--news-accent-text);
    font-size: var(--fs-label);
    font-weight: 700;
    text-decoration: none;
}

.news-article__byline,
.news-article__author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    font-size: var(--fs-label);
    font-weight: 700;
    text-decoration: none;
}

.news-article__reading-time,
.news-article__published-at {
    white-space: nowrap;
}

.news-article__byline img,
.news-article__author img {
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
}

.news-article__team-logo {
    display: grid;
    width: 64px;
    flex: 0 0 auto;
    aspect-ratio: 1 / 1;
    place-items: center;
    border-radius: 8px;
    background: var(--dark2);
    padding: 4px;
}

.news-article__team-logo img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: contain;
}

.news-article__content {
    max-width: 900px;
}

.news-article__cover {
    width: 100%;
    overflow: hidden;
    margin: 0 0 24px;
    border-radius: 12px;
    background: var(--theme-canvas, #252525);
    aspect-ratio: 16 / 9;
}

.news-article__cover .youtube-embed {
    height: 100%;
    margin: 0 !important;
}

.news-article__excerpt {
    margin: 0 0 28px;
    color: var(--text-strong);
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 600;
    line-height: 1.55;
}

.news-article__body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    color: var(--text-strong);
    font-size: clamp(18px, 2vw, 21px);
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.news-article__body .news-content,
.news-article__body .news-content > * {
    min-width: 0;
    max-width: 100%;
}

.news-article__body .news-content {
    width: 100%;
}

.news-article__body .news-content > * + * {
    margin-top: 1.2em;
}

.news-article__body img {
    max-width: 100%;
    height: auto;
}

.news-article__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding: 18px 0;
    border-top: 1px solid var(--theme-border, var(--bg-dark));
    border-bottom: 1px solid var(--theme-border, var(--bg-dark));
}

.news-article__share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--text-soft);
    font-size: var(--fs-label);
}

.news-article__back {
    margin-top: 20px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

html.dark .news-card,
html.dark .news-filters,
html.dark .news-empty-state {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

html.dark .news-filter-field select {
    border-color: var(--theme-border);
    background: var(--theme-raised);
    color: var(--theme-text);
}

@media (max-width: 760px) {
    .news-latest,
    .news-page__content,
    .news-article__content {
        padding: 16px;
    }

    .news-card-grid,
    .news-latest--stream .news-card-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .news-card {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        align-items: stretch;
        gap: 10px;
        padding: 8px;
    }

    .news-card__media {
        height: 100%;
        min-height: 88px;
        aspect-ratio: 1;
    }

    .news-card__play {
        bottom: 5px;
        left: 5px;
        width: 30px;
        height: 30px;
        font-size: var(--fs-label);
    }

    .news-card__content {
        align-content: center;
        gap: 5px;
    }

    .news-card__title {
        font-size: var(--fs-body);
    }

    .news-card__excerpt {
        display: none;
    }

    .news-card__read-more {
        display: none;
    }

    .news-filters__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-filters__grid--category-only {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .news-page__header,
    .news-article__header {
        padding: 32px 16px;
    }

    .news-article__meta {
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .news-filters__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-filters__actions .dash-btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .news-article__footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

.news-comments {
    width: calc(100% - 48px);
    max-width: 852px;
    min-width: 0;
    margin: 0 auto 32px;
    color: var(--text-strong);
}

.news-comments__header {
    margin-bottom: 18px;
}

.news-comments__header h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 28px);
}

.news-comments__header h2 span,
.news-comments__header p,
.news-comments__login,
.news-comments__empty,
.news-comments__notice {
    color: var(--text-soft);
    font-size: var(--fs-label);
}

.news-comments__header p {
    margin: 6px 0 0;
    color: var(--dark2);
}

.news-comments__login a {
    color: var(--dark2);
    text-decoration: underline;
}

.news-comments__notice {
    padding: 10px 12px;
    border: 1px solid var(--theme-border, var(--bg-dark));
    border-radius: 8px;
    background: var(--theme-surface, #fff);
}

.news-comment-form {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid var(--theme-border, var(--bg-dark));
    border-radius: 12px;
    background: var(--theme-surface, #fff);
}

.news-comment-form label,
.news-comment__report label {
    color: var(--text-strong);
    font-size: var(--fs-label);
    font-weight: 700;
}

.news-comment-form textarea,
.news-comment__report textarea,
.news-comment__report select {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--theme-border, var(--bg-dark));
    border-radius: 8px;
    background: var(--theme-surface, #fff);
    color: var(--text-strong);
    font: inherit;
    font-size: var(--fs-label);
}

.news-comment-form textarea {
    height: 112px;
    min-height: 112px;
    resize: none;
}

.news-comment-form textarea:focus-visible,
.news-comment__report textarea:focus-visible,
.news-comment__report select:focus-visible,
.news-comment__text-button:focus-visible,
.news-reaction:focus-visible,
.news-comment__report summary:focus-visible {
    outline: 3px solid var(--CTA);
    outline-offset: 2px;
}

.news-comment-form__error {
    color: #b91c1c;
    font-size: var(--fs-label);
}

.news-comment-list {
    display: grid;
    gap: 16px;
}

.news-comment {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--theme-border, var(--bg-dark));
    border-radius: 12px;
    background: var(--theme-surface, #fff);
}

.news-comment__header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.news-comment__header img {
    flex: 0 0 40px;
    border-radius: 50%;
    object-fit: cover;
}

.news-comment__header div {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.news-comment__header strong {
    overflow-wrap: anywhere;
    font-size: var(--fs-label);
}

.news-comment__header time {
    color: var(--text-soft);
    font-size: var(--fs-label);
}

.news-comment__body {
    margin: 12px 0;
    color: var(--text-strong);
    font-size: var(--fs-body);
    line-height: 1.5;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.news-comment__reactions,
.news-comment__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.news-comment__reactions form,
.news-comment__tools form {
    margin: 0;
}

.news-reaction {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border: 1px solid var(--theme-border, var(--bg-dark));
    border-radius: 999px;
    background: var(--theme-raised, transparent);
    color: var(--text-strong);
    font: inherit;
    font-size: var(--fs-label);
}

button.news-reaction {
    cursor: pointer;
}

.news-reaction.is-selected {
    border-color: var(--CTA);
    background: var(--theme-raised, transparent);
}

.news-comment__text-button {
    padding: 6px 4px;
    border: 0;
    background: transparent;
    color: var(--news-accent-text);
    cursor: pointer;
    font: inherit;
    font-size: var(--fs-label);
    font-weight: 700;
}

.news-comment__reply {
    margin-top: 6px;
}

.news-comment-form--reply {
    margin-top: 8px;
    padding: 12px;
}

.news-comment__tools {
    margin-top: 4px;
}

.news-comment__report {
    color: var(--text-soft);
    font-size: var(--fs-label);
}

.news-comment__report summary {
    cursor: pointer;
}

.news-comment__report form {
    display: grid;
    gap: 8px;
    width: min(100%, 480px);
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--theme-border, var(--bg-dark));
    border-radius: 8px;
    background: var(--theme-surface, #fff);
}

.news-comment__report textarea {
    resize: none;
}

.news-comment__replies {
    display: grid;
    gap: 10px;
    margin: 14px 0 0 20px;
    padding-left: 14px;
    border-left: 2px solid var(--theme-border, var(--bg-dark));
}

.news-comment__replies .news-comment {
    padding: 12px;
}

.news-comments .news-pagination {
    overflow-wrap: anywhere;
}

html.dark .news-comment,
html.dark .news-comment-form,
html.dark .news-comment__report form,
html.dark .news-comments__notice {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

html.dark .news-comment-form textarea,
html.dark .news-comment__report textarea,
html.dark .news-comment__report select {
    border-color: var(--theme-border);
    background: var(--theme-raised);
    color: var(--theme-text);
}

.news-countdown,
.news-poll {
    min-width: 0;
    margin: 24px 0;
    padding: 18px;
    overflow-wrap: anywhere;
    border: 1px solid var(--theme-border, var(--bg-dark));
    border-radius: 12px;
    background: var(--theme-surface, #fff);
    color: var(--theme-text, var(--text-strong));
}

.news-countdown__title,
.news-poll__title {
    margin: 0;
    color: var(--theme-text, var(--text-strong));
    font-size: clamp(18px, 2.5vw, 22px);
    line-height: 1.3;
}

.news-countdown__date,
.news-countdown__status,
.news-countdown__finished,
.news-poll__closes,
.news-poll__status,
.news-poll__total {
    color: var(--text-soft);
    font-size: var(--fs-label);
}

.news-countdown__timer {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0;
}

.news-countdown__timer > span {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 12px 6px;
    border: 1px solid var(--theme-border, var(--bg-dark));
    border-radius: 9px;
    background: var(--theme-raised, transparent);
}

.news-countdown__timer strong {
    color: var(--news-accent-text);
    font-size: clamp(20px, 5vw, 32px);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.news-countdown__timer > span > span {
    color: var(--text-soft);
    font-size: var(--fs-label);
}

.news-countdown__status,
.news-countdown__finished,
.news-poll__status,
.news-poll__total {
    margin: 12px 0 0;
}

.news-poll__status--success {
    color: #15803d;
}

.news-poll__status--warning {
    color: #b91c1c;
}

.news-poll form {
    margin-top: 12px;
}

.news-poll__vote-button,
.news-comment-form__submit,
.news-comment-form__reply-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    min-height: 40px;
    padding: 6px 14px;
    border: 0;
    border-radius: 8px;
    background: var(--dark);
    color: var(--light);
    font-family: var(--ff-body);
    font-size: var(--fs-label);
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.news-poll__vote-button:hover,
.news-comment-form__submit:hover,
.news-comment-form__reply-submit:hover {
    background: var(--CTA);
    color: var(--light);
}

.news-poll__fieldset {
    display: grid;
    gap: 10px;
    min-width: 0;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
}

.news-poll__legend {
    margin-bottom: 8px;
    color: var(--text-strong);
    font-size: var(--fs-label);
    font-weight: 700;
}

.news-poll__choice,
.news-poll__result {
    display: grid;
    min-width: 0;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--theme-border, var(--bg-dark));
    border-radius: 9px;
    background: var(--theme-raised, transparent);
}

.news-poll__choice {
    cursor: pointer;
}

.news-poll__choice-line {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--theme-text, var(--text-strong));
    font-size: var(--fs-label);
}

.news-poll__choice-line > span:first-of-type {
    flex: 1 1 120px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.news-poll__choice input {
    flex: 0 0 auto;
    accent-color: var(--CTA);
}

.news-poll__count,
.news-poll__your-vote {
    flex: 0 0 auto;
    color: var(--text-soft);
    font-size: var(--fs-label);
    font-variant-numeric: tabular-nums;
}

.news-poll__your-vote {
    color: var(--news-accent-text);
}

.news-poll__bar {
    display: block;
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--theme-border, var(--bg-dark));
}

.news-poll__bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--CTA);
    transition: width 180ms ease;
}

.news-poll__results {
    display: grid;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.news-poll__error {
    margin: 0 0 8px;
    color: #b91c1c;
    font-size: var(--fs-label);
}

html.dark .news-comment-form__error,
html.dark .news-poll__error {
    color: #fca5a5;
}

.news-poll :is(input, button, a):focus-visible {
    outline: 3px solid var(--CTA);
    outline-offset: 3px;
}

html.dark .news-countdown,
html.dark .news-poll {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

html.dark .news-countdown__timer > span,
html.dark .news-poll__choice,
html.dark .news-poll__result {
    border-color: var(--theme-border);
    background: var(--theme-raised);
}

html.dark .news-poll__bar {
    background: var(--theme-border);
}

html.dark .news-poll__status--success {
    color: #4ade80;
}

html.dark .news-poll__status--warning {
    color: #fca5a5;
}

@media (max-width: 760px) {
    .news-comments {
        width: calc(100% - 32px);
    }

    .news-comment-form__submit,
    .news-comment-form__reply-submit {
        justify-self: center;
    }

    .news-comment {
        padding: 12px;
    }

    .news-comment__replies {
        margin-left: 8px;
        padding-left: 8px;
    }

    .news-countdown,
    .news-poll {
        padding: 14px;
    }
}

@media (max-width: 360px) {
    .news-comments {
        width: calc(100% - 24px);
    }

    .news-comment__reactions {
        gap: 5px;
    }

    .news-reaction {
        gap: 3px;
        padding: 4px 6px;
    }

    .news-countdown__timer {
        gap: 5px;
    }

    .news-countdown__timer > span {
        padding: 10px 3px;
    }

    .news-poll__choice,
    .news-poll__result {
        padding: 8px;
    }
}

.news-admin-filters {
    display: grid;
    gap: 12px;
    margin: 0 auto 16px;
    max-width: 1200px;
}

.news-admin-filters__grid {
    display: flex;
    max-width: 100%;
    align-items: end;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 8px;
    -webkit-overflow-scrolling: touch;
}

.news-admin-filter-field {
    display: grid;
    flex: 0 0 170px;
    min-width: 170px;
    gap: 6px;
}

.news-admin-filter-field:nth-child(2) {
    flex-basis: 190px;
    min-width: 190px;
}

.news-admin-filter-field label {
    color: var(--text-strong);
    font-size: var(--fs-label);
    font-weight: 700;
}

.news-admin-filter-field select,
.news-admin-filter-field input {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--theme-border, var(--bg-dark));
    border-radius: 8px;
    background: var(--theme-surface, #fff);
    color: var(--text-strong);
    font: inherit;
    font-size: var(--fs-label);
}

.news-admin-filter-field select:focus-visible,
.news-admin-filter-field input:focus-visible,
.news-admin-post-card:focus-visible {
    outline: 3px solid var(--CTA);
    outline-offset: 3px;
}

.news-admin-filters__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 8px;
}

.news-admin-filter-errors {
    color: #b91c1c;
    font-size: var(--fs-label);
}

.news-admin-filter-errors p {
    margin: 0;
}

.news-admin-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 10px;
}

.news-admin-post-item {
    min-width: 0;
}

.news-admin-post-card {
    display: grid;
    width: 100%;
    min-height: 104px;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--theme-border, var(--bg-dark));
    border-radius: 12px;
    background: var(--theme-surface, #fff);
    color: var(--text-strong);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.news-admin-post-card__poster {
    display: grid;
    width: 88px;
    aspect-ratio: 1;
    overflow: hidden;
    place-items: center;
    border-radius: 8px;
    background: var(--theme-canvas, #252525);
    color: var(--text-soft);
    font-size: var(--fs-label);
    text-align: center;
}

.news-admin-post-card__poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-admin-post-card__title {
    display: -webkit-box;
    align-self: center;
    overflow: hidden;
    color: inherit;
    font-size: var(--fs-body);
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-admin-post-modal {
    position: fixed;
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: min(600px, calc(100% - 24px));
    max-width: 600px;
    max-height: 90vh;
    margin: 0;
    overflow: auto;
    padding: 0;
    border: 1px solid var(--theme-border, var(--bg-dark));
    border-radius: 12px;
    background: var(--theme-surface, #fff);
    color: var(--text-strong);
    transform: translate(-50%, -50%);
}

.news-admin-post-modal::backdrop {
    background: rgb(0 0 0 / 65%);
}

.news-admin-post-modal__content {
    display: grid;
    gap: 18px;
    padding: 20px;
}

.news-admin-post-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.news-admin-post-modal__header h2 {
    min-width: 0;
    margin: 0;
    font-size: clamp(22px, 4vw, 30px);
    overflow-wrap: anywhere;
}

.news-admin-post-modal__details {
    display: grid;
    gap: 10px;
    margin: 0;
}

.news-admin-post-modal__details > div {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) minmax(0, 2fr);
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--theme-border, var(--bg-dark));
}

.news-admin-post-modal__details dt {
    color: var(--text-soft);
    font-size: var(--fs-label);
    font-weight: 700;
}

.news-admin-post-modal__details dd {
    min-width: 0;
    margin: 0;
    font-size: var(--fs-label);
    overflow-wrap: anywhere;
}

.news-admin-post-modal__details dd > span:not(.dash-pill) {
    display: block;
    color: var(--text-soft);
    font-size: var(--fs-label);
}

.news-admin-post-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-admin-post-modal__actions form {
    margin: 0;
}

html.dark .news-admin-post-card,
html.dark .news-admin-post-modal {
    color: var(--theme-text);
}

html.dark .news-admin-filter-errors {
    color: #fca5a5;
}

html.dark .news-admin-filter-field select,
html.dark .news-admin-filter-field input {
    border-color: var(--theme-border);
    background: var(--theme-raised);
    color: var(--theme-text);
}

html.dark .news-admin-post-card {
    border-color: var(--theme-border);
    background: var(--theme-surface);
}

html.dark .news-admin-post-modal {
    border-color: var(--theme-border);
    background: var(--theme-surface);
}

.news-admin-comments-page {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 16px;
}

.news-admin-comment-search {
    display: flex;
    align-items: end;
    gap: 12px;
    margin-bottom: 16px;
}

.news-admin-comment-search > div {
    flex: 1;
    min-width: 0;
}

.news-admin-comment-search input {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--theme-border, var(--bg-dark));
    border-radius: 8px;
    background: var(--theme-surface, #fff);
    color: var(--text-strong);
    font: inherit;
    font-size: var(--fs-label);
}

.news-admin-comment-search input:focus-visible {
    outline: 3px solid var(--CTA);
    outline-offset: 3px;
}

.news-admin-comment-type {
    margin-left: auto;
}

.news-admin-comment-post {
    margin: 10px 0 0;
    font-size: var(--fs-label);
    overflow-wrap: anywhere;
}

html.dark .news-admin-comment-search input {
    border-color: var(--theme-border);
    background: var(--theme-raised);
    color: var(--theme-text);
}

@media (max-width: 760px) {
    .news-admin-post-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-admin-post-modal__content {
        padding: 16px;
    }

    .news-admin-post-modal__details > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .news-admin-comment-search {
        align-items: stretch;
        flex-direction: column;
    }
}
