```css
/*
Theme Name: Video Grid Theme
Description: Лёгкий адаптивный шаблон для видео-сайта (сетка, светлый)
Version: 1.0
Author: GPT
Text Domain: video-theme
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #005177;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================
   Шапка
   ========================= */

.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.site-logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-navigation a {
    color: #333;
    font-weight: 500;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

/* =========================
   Поиск
   ========================= */

.search-form {
    display: flex;
}

.search-form input[type="search"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-form button {
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* === СЕТКА ВИДЕО === */
.video-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 колонок на большом экране */
    gap: 20px; /* ВАЖНО: отступ между карточками */
    margin-bottom: 40px;
}

/* Адаптивность сетки */
@media (max-width: 1200px) { .video-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1024px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .video-grid { grid-template-columns: 1fr; } } /* 1 колонка на мобильном */


/* === КАРТОЧКА ВИДЕО === */
.video-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #eee;
    flex-shrink: 0;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Контент карточки */
.video-content {
        padding: 4px 10px 8px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 50px;
}

.video-title {
    font-size: 16px !important;
    font-weight: 600;
    margin-bottom: 4px !important;
    line-height: 1.25 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.5em;
}

.video-title a {
    color: #333;
    text-decoration: none;
}

.video-title a:hover {
    color: #0073aa;
}

/* =========================
   Одиночная запись
   ========================= */

.single-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

.single-main {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.single-main h1 {
    font-size: 28px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.single-main .video-player {
    margin-bottom: 25px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.post-categories {
    margin: 20px 0;
    font-size: 14px;
    color: #666;
}

/* =========================
   Сайдбар
   ========================= */

.sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
/* Сетка похожих записей */
.related-posts {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.related-posts .widget-title {
    font-size: 22px;
    margin-bottom: 25px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки на десктопе */
    gap: 20px;
}

/* Адаптивность для похожих записей */
@media (max-width: 1024px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшете */
    }
}

@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: 1fr; /* 1 колонка на мобильном */
    }
}
/* =========================
   Комментарии
   ========================= */

.comments-area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 20px;
    margin-bottom: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

.comment-form input[type="submit"] {
    width: auto;
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 30px;
    cursor: pointer;
}

/* =========================
   Подвал
   ========================= */

.site-footer {
    background: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 2px solid #eee;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.site-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 14px;
}

/* =========================
   Пагинация
   ========================= */

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pagination .current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* =========================
   Адаптивность
   ========================= */

@media (max-width: 1200px) {

    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {

    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .single-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        margin-top: 30px;
    }
}

/* =========================
   Смартфоны
   ========================= */

@media (max-width: 768px) {

    /* Меню */

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }

    .main-navigation.toggled {
        max-height: 500px;
    }

    .main-navigation ul {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }

    .main-navigation li {
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }

    /* Сетка видео */

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

    /* Контейнер */

    .container {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    /* Одиночная запись */

    .single-content {
        display: block !important;
    }

    .single-main {
        padding: 15px 5px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .single-main h1 {
        font-size: 22px;
    }

    /* =========================
       Плеер на всю ширину экрана
       ========================= */

    .single-main .video-player {
        width: 100vw !important;
        max-width: 100vw !important;

        /*
         * Выводим плеер за пределы .single-main
         * и растягиваем ровно на ширину экрана
         */
        margin-left: calc(50% - 50vw) !important;
        margin-right: 0 !important;

        margin-bottom: 25px !important;

        background: #000 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: hidden !important;
    }

    /* Само видео */

    .single-main .video-player video,
    .single-main .video-player .video-js {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;

        background: #000 !important;
        border-radius: 0 !important;
    }

    /* Контент после плеера */

    .single-main .entry-content {
        margin-top: 25px;
        padding-top: 25px;
        border-top: 2px solid #eee;

        line-height: 1.8;
        font-size: 16px;
        color: #333;
    }

    /* Сайдбар */

    .sidebar {
        margin-top: 30px;
        border-radius: 0 !important;
    }

    /* Подвал */

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    /* Поиск */

    .search-form {
        width: 100%;
    }

    .search-form input[type="search"] {
        flex: 1;
    }
}
``` /* Навигация */
.navigator {
padding:24px 0 25px 0;
overflow:hidden;
font-size:22px;
color:#333333;
clear:both;
margin:0 auto;
text-align:center;
}
.navigator a{
color: #333333;
font-size: 24px;
padding:5px 9px;
text-decoration: none;
-moz-box-shadow:  0 1px 2px rgba(0,0,0,0.4);
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.4);
box-shadow:  0 1px 2px rgba(0,0,0,0.4);
 
}
.navigator span.pages {padding: 3px 5px;
color: #ffffff;
background: #544DA7; 
padding:5px 9px;
-moz-box-shadow:  0 1px 2px rgba(0,0,0,0.4);
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.4);
box-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.navigator a:hover{
background: #0077c0; 
color: #ffffff;
font-size: 24px;
text-decoration: none;
padding:5px 9px;
-moz-box-shadow: 0 1px 2px rgba(0,0,0,0.4);
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.4);
box-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.navigator span.current {background: #fff;
border: 1px solid #0077c0; 
font-size: 24px;
padding:5px 9px;
text-decoration: none;
-moz-box-shadow:  0 1px 2px rgba(0,0,0,0.4);
-webkit-box-shadow:  0 1px 2px rgba(0,0,0,0.4);
box-shadow:  0 1px 2px rgba(0,0,0,0.4);
}
.navigator span.extend {
padding:5px 9px;
background:#f1f8f9;
border: 1px solid #0077c0; 
}
.str{background: #fff;
color: #333333;
font-size: 13px;
padding:5px 9px;
text-decoration: none;
-moz-box-shadow:  0 1px 2px rgba(0,0,0,0.4);
-webkit-box-shadow:  0 1px 2px rgba(0,0,0,0.4);
box-shadow:  0 1px 2px rgba(0,0,0,0.4);}
 /* Дополнительные стили*/
.video-grid a h2{
	color:#111111;
	position:relative;
	bottom:8px;
	font-family:'Manrope', sans-serif;
}

/* Link */
.site-header .site-logo a{
	color:#c0392b;
}
/* Link */
.menu .menu-item a{
	font-family:'Manrope', sans-serif;
	font-weight:600;
}

/* Paragraph */
.single-main .entry-content p{
	font-family:'Manrope', sans-serif;
	font-size:14px;
}

/* Paragraph */
.site-main .container .single-content .single-main .entry-content p{
	line-height:1.2em !important;
}

/* Heading */
.video-grid a h4{
	color:#111111;
	font-size:14px;
	position:relative;
	bottom:12px;
}
/* Heading */
.site-main .single-main h1{
	font-family:'Manrope', sans-serif;
	font-size:22px;
}

/* Comment Reply Title */
#reply-title{
	font-family:'Manrope', sans-serif;
	font-size:20px !important;
}
/* Heading */
.site-main .page-header h1{
	font-family:'Manrope', sans-serif;
	font-size:22px !important;
}

/* Paragraph */
.page-header div p{
	font-family:'Manrope', sans-serif;
	line-height:1.2em;
}

/* Single main */
.site-main .single-main{
	position:relative;
	top:20px;
}

/* Video grid */
.site-main .video-grid{
	position:relative;
	top:20px;
}

/* Sidebar */
.site-main .sidebar{
	position:relative;
	top:20px;
}

/* Navigator */
.site-main .navigator{
	position:relative;
	top:15px;
	left:10px;
}
/* Heading */
.related-posts-grid a h4{
	color:#111111;
	font-family:'Manrope', sans-serif;
	position:relative;
	bottom:10px;
}

/* Widget Title */
.single-main .related-posts h3{
	font-family:'Manrope', sans-serif;
}