:root {
    color-scheme: light;
    --ink: #15171c;
    --muted: #5f6877;
    --line: #d9dee7;
    --surface: #ffffff;
    --soft: #f4f6f9;
    --accent: #b72535;
    --accent-dark: #871c28;
    --link: #235f9c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--soft);
    line-height: 1.65;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px clamp(16px, 5vw, 56px);
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
}

.brand {
    font-weight: 800;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 14px;
    color: var(--muted);
    font-size: 14px;
}

nav a {
    text-decoration: none;
}

.page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 56px;
}

.lead {
    padding: 18px 0 24px;
}

.section-lead {
    padding-top: 6px;
}

.lead h1,
.article h1 {
    margin: 0;
    line-height: 1.06;
    letter-spacing: 0;
}

.lead h1 {
    font-size: clamp(32px, 6vw, 64px);
    max-width: 780px;
}

.lead p {
    max-width: 680px;
    color: var(--muted);
    font-size: 18px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.video-hero {
    overflow: hidden;
    margin-bottom: 18px;
    color: #fff;
    background: #12151c;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(21, 23, 28, .14);
}

.video-hero-main {
    display: grid;
    grid-template-columns: minmax(300px, .86fr) minmax(0, 1.14fr);
    min-height: 430px;
}

.video-hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(22px, 4vw, 42px);
    color: inherit;
    text-decoration: none;
}

.video-hero-text > strong {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 5px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.video-hero .article-origin span {
    color: #e7ecf4;
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .16);
}

.video-hero h1 {
    margin: 12px 0 10px;
    font-size: clamp(30px, 4.8vw, 54px);
    line-height: 1.05;
}

.video-hero p {
    display: -webkit-box;
    max-width: 620px;
    overflow: hidden;
    margin: 0;
    color: #d5dbe7;
    font-size: 17px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.video-hero em {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    margin-top: 16px;
    padding: 9px 14px;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-style: normal;
    font-weight: 850;
}

.video-hero-player {
    min-width: 0;
    background: #06070a;
}

.video-hero-player iframe,
.video-hero-player video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 430px;
    border: 0;
    object-fit: cover;
}

.video-hero-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, .12);
}

.video-hero-strip a {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 96px;
    padding: 10px;
    color: #fff;
    background: #1b202a;
    text-decoration: none;
}

.video-hero-strip img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 5px;
}

.video-hero-strip span {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.breaking-slider {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border: 1px solid #f0c1c7;
    border-radius: 8px;
    background: #fff7f8;
    overflow: hidden;
}

.breaking-slider strong {
    flex: 0 0 auto;
    color: #fff;
    background: var(--accent);
    border-radius: 5px;
    padding: 6px 9px;
    text-transform: uppercase;
    font-size: 13px;
}

.slides {
    position: relative;
    flex: 1 1 auto;
    min-height: 48px;
}

.slide {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--accent-dark);
    text-decoration: none;
}

.slide.active {
    display: flex;
}

.slide span {
    min-width: 0;
    overflow: hidden;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slide em {
    flex: 0 0 auto;
    font-style: normal;
    font-weight: 800;
    color: var(--link);
}

.slider-btn {
    width: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--accent);
    border: 1px solid var(--line);
    font-size: 24px;
}

.category-bar {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
}

.filter-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-heading span {
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .04em;
}

.area-bar {
    margin-top: -6px;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.chip-list a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    max-width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.1;
    text-decoration: none;
    font-weight: 750;
    white-space: nowrap;
}

.chip-list a:hover {
    border-color: #b8c2d2;
    background: #f8fafc;
}

.chip-list a.active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.chip-list small {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    padding: 0 6px;
    color: var(--muted);
    background: #eef2f7;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.chip-list a.active small {
    color: var(--ink);
    background: #fff;
}

.wall-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
}

.wall {
    display: grid;
    gap: 16px;
}

.wall-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.wall-card:hover {
    border-color: #bcc6d6;
    box-shadow: 0 10px 24px rgba(21, 23, 28, .08);
    transform: translateY(-1px);
}

.wall-card a {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: stretch;
    text-decoration: none;
}

.wall-card img {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    background: #e5e9f0;
}

.wanted-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.wanted-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.wanted-card:hover {
    border-color: #bcc6d6;
    box-shadow: 0 10px 24px rgba(21, 23, 28, .08);
    transform: translateY(-1px);
}

.wanted-card a {
    display: grid;
    color: inherit;
    text-decoration: none;
}

.wanted-card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
    background: #e5e9f0;
}

.wanted-card div:not(.meta):not(.article-origin) {
    padding: 12px;
}

.wanted-card h2 {
    margin: 8px 0 10px;
    font-size: 18px;
    line-height: 1.22;
}

.recent-panel {
    position: sticky;
    top: 76px;
    display: grid;
    gap: 8px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.recent-panel h2 {
    margin: 0 0 4px;
    font-size: 18px;
}

.recent-panel a {
    display: grid;
    gap: 3px;
    padding: 9px 0;
    border-top: 1px solid var(--line);
    text-decoration: none;
}

.recent-panel small {
    color: var(--muted);
}

.recent-panel em {
    color: var(--link);
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.loader {
    display: none;
    justify-content: center;
    padding: 18px;
    color: var(--muted);
}

.loader.is-visible {
    display: flex;
}

.card {
    min-width: 0;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.card a {
    display: block;
    height: 100%;
    text-decoration: none;
}

.card img,
.placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    display: block;
}

.placeholder {
    display: grid;
    place-items: center;
    background: #232833;
    color: #fff;
    font-weight: 800;
}

.card-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
}

.meta {
    color: var(--accent);
    font-size: 13px;
    font-weight: 750;
    text-transform: uppercase;
}

.article-timestamps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.article-timestamps span {
    display: inline-flex;
    align-items: center;
}

.article-timestamps strong {
    margin-right: 4px;
    color: var(--ink);
}

.article .article-timestamps {
    margin: 10px 0 6px;
    font-size: 14px;
}

.article-origin {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 8px 0 4px;
}

.article-origin span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
    color: #394252;
    font-size: 13px;
    font-weight: 800;
}

.article-origin-detail {
    margin: 14px 0 10px;
}

.article-origin-detail span {
    min-height: 36px;
    padding: 7px 11px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
}

.article-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
}

.article-stats span {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #dbe2ed;
    border-radius: 6px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
}

.article-stats strong {
    color: var(--ink);
    font-size: 17px;
}

.article-stats .live-viewers {
    align-items: center;
    border-color: #b8ddca;
    background: #f0fbf5;
    color: #17643a;
}

.live-viewers::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, .14);
}

.live-viewers strong {
    color: #14532d;
}

.reaction-panel {
    display: grid;
    gap: 10px;
    margin: 16px 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.reaction-panel > strong {
    font-size: 15px;
}

.reaction-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.reaction-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reaction-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid #d8e0ec;
    border-radius: 999px;
    background: #f8fafc;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.reaction-button em {
    display: inline-grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    padding: 0 7px;
    border-radius: 999px;
    background: #e8edf5;
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
}

.reaction-button.active,
.reaction-button:hover:not(:disabled) {
    border-color: var(--accent);
    background: #fff7f8;
    color: var(--accent-dark);
}

.reaction-button:disabled {
    cursor: not-allowed;
    opacity: .68;
}

.compact-stats {
    gap: 7px;
    margin: 12px 0 0;
}

.compact-stats span {
    min-height: 32px;
    padding: 5px 8px;
    font-size: 13px;
}

.compact-stats strong {
    font-size: 14px;
}

.card h2,
.wall-card h2 {
    margin: 8px 0;
    font-size: clamp(20px, 2.3vw, 25px);
    line-height: 1.22;
}

.card p,
.wall-card p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.wall-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 14px;
    padding: 9px 14px;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
}

.wall-card:hover .read-more {
    background: var(--accent-dark);
}

.article-wrap {
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(20px, 4vw, 46px);
}

.article h1 {
    margin-top: 8px;
    font-size: clamp(34px, 6vw, 54px);
    max-width: 820px;
}

.excerpt {
    color: var(--muted);
    font-size: clamp(19px, 2.4vw, 23px);
    line-height: 1.58;
    max-width: 760px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.tag-list a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--link);
    text-decoration: none;
    font-weight: 750;
    font-size: 14px;
}

.keyword-list {
    margin-top: -4px;
}

.keyword-list span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid #d8e0ec;
    border-radius: 999px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.hero-image,
.media-block video,
.media-block iframe {
    width: 100%;
    border: 0;
    border-radius: 8px;
    margin: 16px 0;
    background: #111;
}

.image-slider {
    margin: 18px 0;
}

.image-slider-frame {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
}

.image-slide {
    display: none;
    text-decoration: none;
}

.image-slide.active {
    display: block;
}

.image-slide .hero-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0;
    max-height: 620px;
    object-fit: cover;
    object-position: center;
}

.image-slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.image-slider-controls span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.image-slider-btn {
    min-width: 112px;
}

.video-list {
    display: grid;
    gap: 16px;
    margin: 18px 0;
}

.media-block iframe,
.media-block video {
    aspect-ratio: 16 / 9;
    min-height: 220px;
}

.source-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 750;
}

.source-media-links {
    margin: 18px 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfe;
}

.source-media-links h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.source-media-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.content {
    max-width: 740px;
    font-size: clamp(18px, 2vw, 20px);
    line-height: 1.78;
    color: #222833;
}

.content p {
    margin: 0 0 24px;
}

.content p:first-child {
    font-size: clamp(19px, 2.2vw, 21px);
    color: #2b3038;
}

.content h2,
.content h3 {
    margin: 34px 0 12px;
    line-height: 1.2;
}

.content ul,
.content ol {
    margin: 0 0 24px;
    padding-left: 26px;
}

.content li {
    margin: 0 0 10px;
}

.related-articles {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.related-articles h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

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

.related-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.related-card a {
    display: grid;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.related-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    background: #e5e9f0;
}

.related-card div:not(.meta):not(.article-origin) {
    padding: 12px;
}

.related-card h3 {
    margin: 8px 0;
    font-size: 18px;
    line-height: 1.25;
}

.related-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.related-card em {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-style: normal;
    font-weight: 850;
}

.source-note {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.source-note a {
    color: var(--link);
}

.share {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.share strong {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
}

.share a,
.share button {
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--link);
    text-decoration: none;
    font-weight: 700;
}

.share button {
    cursor: pointer;
    font: inherit;
}

.share a:hover,
.share button:hover {
    border-color: #b9c5d5;
    background: #f8fafc;
}

.share-panel {
    align-items: center;
    margin: 18px 0 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfe;
}

.site-footer {
    padding: 24px clamp(16px, 5vw, 56px);
    color: var(--muted);
    font-size: 14px;
    border-top: 1px solid var(--line);
}

.auth-page,
.admin-page {
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.auth-card {
    display: grid;
    gap: 14px;
    max-width: 440px;
    margin: 0 auto;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 9px 10px;
    font: inherit;
}

button {
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    padding: 9px 13px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.hp {
    position: absolute;
    left: -10000px;
}

.alert,
.notice {
    padding: 10px 12px;
    border-radius: 6px;
}

.alert {
    background: #fff0f1;
    color: var(--accent-dark);
}

.notice {
    background: #eef8f1;
    color: #23633a;
}

.comments {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.comment-form,
.comment-list {
    display: grid;
    gap: 14px;
}

.comment {
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.comment small {
    display: block;
    color: var(--muted);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.admin-stats div {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-stats strong {
    display: block;
    font-size: 32px;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.admin-panel {
    margin: 0 0 18px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-panel h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.admin-import-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--line);
}

.compact-table th,
.compact-table td {
    font-size: 14px;
}

.compact-table td:first-child {
    max-width: 340px;
}

.admin-table th,
.admin-table td {
    padding: 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-actions select {
    width: auto;
}

.keyword-admin-cell input {
    min-width: 220px;
}

.settings-list {
    display: grid;
    gap: 10px;
}

.settings-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.settings-form {
    display: grid;
    grid-template-columns: minmax(220px, 0.55fr) minmax(160px, auto) auto;
    gap: 10px;
    align-items: end;
}

.settings-form label {
    margin: 0;
}

.settings-form label > span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.settings-check {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-bottom: 11px;
    font-size: 13px;
}

.settings-check input {
    width: auto;
}

.settings-delete {
    display: flex;
}

.danger-button {
    background: #991b1b;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    color: #fff;
    background: var(--ink);
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
}

.policy-page {
    max-width: 900px;
    margin: 0 auto;
}

.page-editor-form {
    display: grid;
    gap: 12px;
}

.page-editor-form textarea {
    min-height: 420px;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.cookie-notice {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 50;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    width: min(680px, calc(100vw - 36px));
    padding: 16px;
    color: #fff;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.cookie-notice[hidden] {
    display: none;
}

.cookie-notice strong {
    display: block;
    margin-bottom: 4px;
}

.cookie-notice p {
    margin: 0;
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cookie-actions a {
    color: #fff;
    font-weight: 800;
}

.cookie-actions button {
    min-width: 92px;
}

.source-list {
    display: grid;
    gap: 12px;
}

.source-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.source-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr)) auto auto auto;
    gap: 10px;
    align-items: end;
}

.source-form input {
    min-width: 0;
}

@media (max-width: 560px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .article {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .video-hero-main {
        grid-template-columns: 1fr;
    }

    .video-hero-player {
        order: -1;
    }

    .video-hero-player iframe,
    .video-hero-player video {
        min-height: auto;
        aspect-ratio: 16 / 9;
    }

    .video-hero-strip {
        grid-template-columns: 1fr;
    }

    .video-hero-strip a {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .wall-layout {
        grid-template-columns: 1fr;
    }

    .recent-panel {
        position: static;
    }

    .wall-card a {
        grid-template-columns: 1fr;
    }

    .wall-card img {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .admin-import-form {
        grid-template-columns: 1fr;
    }

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

    .category-bar {
        margin-left: -16px;
        margin-right: -16px;
        padding: 0 16px;
    }

    .chip-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: thin;
        scroll-snap-type: x proximity;
    }

    .chip-list a {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .settings-row,
    .settings-form {
        grid-template-columns: 1fr;
    }

    .settings-check {
        padding-bottom: 0;
    }

    .source-row,
    .source-form {
        grid-template-columns: 1fr;
    }

    .cookie-notice {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        grid-template-columns: 1fr;
    }

    .cookie-actions {
        justify-content: space-between;
    }
}
