body {
    background: #e0e0e0;
    font: 14px 'Segoe UI', Tahoma, sans-serif;
    color: #333;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 10px 40px;
    line-height: 1.5;
}

img {
    vertical-align: middle;
    border: none;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    object-fit: cover;
}

a {
    color: #2962ff;
    text-decoration: underline;
    transition: color .2s ease;
}
a:hover, a:focus {
    color: #0039cb;
    text-decoration: underline;
}

/* Инпуты */
input, textarea {
    box-sizing: border-box;
    margin: 6px 0;
    border: 1px solid #90caf9;
    border-radius: 4px;
    padding: 10px;
    width: 100%;
    font-size: 14px;
}

input[type=submit] {
    background: #2962ff;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
input[type=submit]:hover {
    background: #448aff;
}

/* Сброс списков/параграфов */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
p {
    margin: 0 0 1em;
}

/* Навигационные кнопки */
.navig {
    background: #5c6bc0;
    color: #fff;
    text-decoration: none;
    margin: 0 4px;
    padding: 10px 14px;
    display: inline-block;
    border-radius: 4px;
}
.navig:hover {
    background: #7e57c2;
}

/* Шапка */
.head {
    background: #2962ff;
    text-align: center;
    padding: 20px;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Заголовки страниц/секций */
.title {
    background: #f0f4ff;
    color: #2e3c55;
    font-size: 17px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 25px 0 15px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
h1 { font-size: 20px; margin: 0; }
h2, h3 { font-size: 16px; font-weight: 500; margin: 0 0 0.5em; }

/* Карточки / контейнеры */
.mz, .menu, .link a {
    background: #fff;
    margin-bottom: 8px;
    padding: 12px 16px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Ссылки-блоки */
.link a {
    display: block;
    text-decoration: none;
    color: #2962ff;
    background: #f1f5ff;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 500;
    margin: 6px 0;
}
.link a:hover {
    background: #e0ecff;
}

/* Инфо-блоки */
.list, .list2, .news, .cat {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    margin: 8px 0;
}
.news, .cat {
    background: #f5f5f5;
    color: #555;
    text-align: center;
}

/* Похожие / видео карточки */
.video-list, .related-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 20px;
}

.video-card, .related-item, .item-row {
    display: flex;
    gap: 16px;
    background: #fff;
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    align-items: flex-start;
    flex-wrap: wrap;
}

.video-thumb, .related-thumb, .item-image {
    flex-shrink: 0;
    width: 120px;
}
.video-thumb img, .related-thumb img {
    border-radius: 4px;
    width: 100%;
    height: auto;
    display: block;
}

.video-info, .related-info, .item-content {
    flex: 1;
    min-width: 0;
}

.video-title, .related-title, .item-title {
    font-size: 15px;
    font-weight: bold;
    color: #2962ff;
    text-decoration: none;
    margin-bottom: 6px;
    display: block;
}
.video-title:hover, .related-title:hover, .item-title:hover {
    text-decoration: underline;
}

.video-desc, .related-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0 0 8px;
}

/* Теги */
.video-tags, .tags, .video-tags-line {
    margin-top: 6px;
    font-size: 13px;
}
.video-tags a.tag, .tags .tag, .video-tags-line .tag {
    color: #2962ff;
    text-decoration: none;
    margin-right: 6px;
}
.video-tags a.tag:hover, .tags .tag:hover, .video-tags-line .tag:hover {
    text-decoration: underline;
}
.video-tags-line strong, .tags b {
    margin-right: 4px;
    color: #2e3c55;
    font-weight: 600;
}

/* Таблицы (если используются) */
table {
    width: 100%;
    background: #fff;
    border-collapse: collapse;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 12px;
    border-radius: 6px;
    overflow: hidden;
}
table td {
    border: 1px solid #e0e0e0;
    padding: 10px;
}
table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Футер и копирайт */
.copy, .title2, .foot {
    background: #424242;
    color: #fff;
    text-align: center;
    padding: 14px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
}
.copy a, .title2 a {
    color: #ccc;
    font-size: 13px;
    text-decoration: none;
}
.foot {
    background: #2962ff;
    color: #fff;
    text-align: center;
    padding: 16px 14px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    margin-top: 25px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: background 0.3s ease;
}
.foot:hover {
    background: #448aff;
}
.foot a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    margin: 0 6px;
}
.foot a:hover {
    text-decoration: underline;
}

/* Адаптив */
@media (max-width: 720px) {
    .video-card, .related-item, .item-row {
        flex-direction: column;
    }
    .video-thumb, .related-thumb, .item-image {
        width: 100%;
    }
}

/* карточка: заголовок+текст слева, картинка справа */
.item-row, .video-card, .related-item {
  display: flex;
  gap: 16px;
  background: #fff;
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  align-items: flex-start;
  flex-wrap: nowrap;
}

/* текстовая часть */
.item-content, .video-info, .related-info {
  flex: 1;
  min-width: 0;
}

/* миниатюра справа */
.item-image, .video-thumb, .related-thumb {
  flex-shrink: 0;
  width: 150px;
  order: 2; /* после текста */
}
.item-image img, .video-thumb img, .related-thumb img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  object-fit: cover;
}

/* заголовок */
.item-title, .video-title, .related-title {
  font-size: 16px;
  font-weight: bold;
  color: #2962ff;
  text-decoration: none;
  margin: 0 0 6px;
  display: block;
}
.item-title:hover, .video-title:hover, .related-title:hover {
  text-decoration: underline;
}

/* описание */
.video-desc, .related-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
  margin: 0 0 8px;
}

/* теги */
.tags, .video-tags-line {
  margin-top: 6px;
  font-size: 13px;
}
.tags b, .video-tags-line strong {
  margin-right: 4px;
  color: #2e3c55;
  font-weight: 600;
}
.tags .tag, .video-tags-line .tag {
  color: #2962ff;
  text-decoration: none;
  margin-right: 4px;
}
.tags .tag:hover, .video-tags-line .tag:hover {
  text-decoration: underline;
}

/* мобильная: картинка сверху, всё в колонку */
@media (max-width: 720px) {
  .item-row, .video-card, .related-item {
    flex-direction: column;
  }
  .item-image, .video-thumb, .related-thumb {
    width: 100%;
    order: 0;
    margin-bottom: 8px;
  }
  .item-title, .video-title, .related-title {
    font-size: 18px;
  }
  .video-desc, .related-desc {
    font-size: 15px;
  }
}

/* карточка: текст слева, картинка справа */
.item-row {
  display: flex;
  gap: 16px;
  background: #fff;
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  align-items: flex-start;
  flex-wrap: nowrap;
}

/* текстовая часть */
.item-content {
  flex: 1;
  min-width: 0;
}

/* заголовок внутри карточки */
.item-title {
  font-size: 16px;
  font-weight: bold;
  color: #2962ff;
  margin: 0 0 6px;
  text-decoration: none;
}
.item-title:hover {
  text-decoration: underline;
}

/* описание */
.description {
  margin: 0 0 8px;
  font-size: 14px;
  color: #444;
  line-height: 1.4;
}

/* теги */
.tags {
  margin-top: 6px;
  font-size: 13px;
}
.tags strong {
  margin-right: 4px;
  color: #2e3c55;
  font-weight: 600;
}
.tags .tag {
  color: #2962ff;
  text-decoration: none;
  margin-right: 4px;
}
.tags .tag:hover {
  text-decoration: underline;
}

/* картинка справа */
.item-image {
  flex-shrink: 0;
  width: 150px;
}
.item-image img {
  display: block;
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
}

/* мобильная: колонка, сначала картинка */
@media (max-width: 720px) {
  .item-row {
    flex-direction: column;
  }
  .item-image {
    width: 100%;
    order: 0;
    margin-bottom: 10px;
  }
  .item-content {
    order: 1;
  }
  .item-title {
    font-size: 18px;
  }
}