:root {
    --blue: #1268ce;
    --blue-dark: #0755b1;
    --yellow: #ffc107;
    --yellow-soft: #fffdf1;
    --text: #252525;
    --muted: #666d75;
    --line: #dfe3e7;
    --page: #f6f7f8;
    --white: #fff;
    --shell: min(1140px, calc(100% - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--page); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.wiki-shell { width: var(--shell); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 20; padding: 9px 13px; color: var(--text); background: var(--yellow); border-radius: 0 0 4px 4px; font-weight: 700; }
.skip-link:focus { top: 0; }

.wiki-header { background: #f8f9fa; border-bottom: 1px solid #dfe3e7; }
.wiki-header-inner { width: var(--shell); min-height: 57px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wiki-brand { display: inline-flex; align-items: center; gap: 10px; color: #24282d; font-size: 18px; }
.wiki-brand img { display: block; width: 31px; height: 27px; object-fit: contain; }
.site-search { display: flex; align-items: stretch; gap: 8px; }
.site-search input { width: 207px; min-height: 38px; padding: 7px 12px; color: var(--text); background: var(--white); border: 1px solid #d6dbe0; border-radius: 5px; outline: none; }
.site-search input:focus { border-color: #8eb7ea; box-shadow: 0 0 0 2px rgba(18,104,206,.11); }
.site-search button, .yellow-button { min-height: 38px; padding: 7px 13px; color: var(--blue); background: transparent; border: 1px solid var(--blue); border-radius: 5px; }
.site-search button:hover { color: #fff; background: var(--blue); }

h1, h2, h3, p { margin-top: 0; }
h1 { margin: 25px 0 22px; font-size: 32px; line-height: 1.2; font-weight: 700; }
h2 { font-size: 20px; line-height: 1.25; }
h3 { line-height: 1.28; }
.intro-block { margin-bottom: 27px; }
.intro-block h2 { margin-bottom: 7px; font-size: 18px; font-weight: 400; }
.intro-block p { margin-bottom: 0; color: var(--muted); }
.featured-section, .topics-section, .videos-section { margin-bottom: 31px; }
.featured-section > h2, .topics-section > h2 { margin-bottom: 12px; font-size: 18px; font-weight: 400; }
.featured-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 20px 22px; background: var(--yellow-soft); border: 1px solid #e8bf27; border-radius: 5px; }
.featured-card h3 { margin-bottom: 7px; font-size: 20px; }
.featured-card p { max-width: 730px; margin-bottom: 16px; color: #565b61; }
.yellow-button { display: inline-block; color: #282828; background: var(--yellow); border-color: #e2ad00; font-size: 14px; }
.yellow-button:hover { background: #f0b500; }
.featured-meta { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; color: var(--muted); }
.featured-meta strong { color: var(--blue); font-size: 28px; line-height: 1; }
.featured-meta span { margin-top: 4px; font-size: 12px; }
.filter-list { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-button { padding: 5px 10px; color: #25282b; background: #f1f3f5; border: 1px solid #eef0f2; border-radius: 11px; font-size: 12px; font-weight: 700; }
.filter-button:hover, .filter-button.is-active { color: var(--blue-dark); background: #e8f2ff; border-color: #bbd5f4; }
.section-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 13px; }
.section-bar h2 { margin-bottom: 0; font-size: 20px; }
.section-bar > span { color: var(--muted); font-size: 12px; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.video-card { overflow: hidden; background: var(--white); border: 1px solid #d7dce1; border-radius: 5px; }
.video-card:hover { border-color: #b6c3d0; }
.video-frame, .video-placeholder { position: relative; aspect-ratio: 16 / 9; background: #edf0f3; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-placeholder { display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #333940, #68727d); }
.video-placeholder::before { position: absolute; width: 76%; height: 76%; content: ""; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; }
.video-placeholder span { position: relative; z-index: 1; display: grid; width: 43px; height: 43px; place-items: center; padding-left: 2px; color: #272b30; background: var(--yellow); border-radius: 50%; font-size: 14px; }
.video-card-body { padding: 17px 18px 16px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.card-tags span { padding: 3px 7px; color: #4d555d; background: #f2f4f6; border-radius: 10px; font-size: 11px; }
.video-card h3 { margin-bottom: 7px; font-size: 19px; }
.video-card p { margin-bottom: 16px; color: #5c636a; font-size: 14px; }
.card-footer { display: flex; justify-content: space-between; padding-top: 10px; color: #8a929a; border-top: 1px solid #edf0f2; font-size: 12px; }
.video-status.is-online { color: #31804e; }
.video-status.is-pending { color: #ad7a00; }
.empty-search { display: grid; gap: 3px; padding: 35px 0; color: var(--muted); text-align: center; }
.empty-search strong { color: var(--text); }
.site-footer { margin-top: 45px; padding: 17px 0; color: #707780; background: #f8f9fa; border-top: 1px solid #dfe3e7; font-size: 12px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: #34383d; font-size: 14px; }
.footer-brand img { width: 26px; height: 22px; object-fit: contain; }

@media (max-width: 680px) {
    .wiki-header-inner { align-items: stretch; flex-direction: column; gap: 10px; padding: 12px 0; }
    .wiki-brand { font-size: 17px; }
    .site-search { width: 100%; }
    .site-search input { flex: 1; width: auto; }
    h1 { margin-top: 22px; font-size: 28px; }
    .featured-card { align-items: flex-start; flex-direction: column; gap: 18px; }
    .featured-meta { align-items: flex-start; }
    .video-grid { grid-template-columns: 1fr; gap: 17px; }
    .footer-inner { align-items: flex-start; flex-direction: column; gap: 7px; }
}
