:root {
    --page-max-width: 1328px;
    --left-col-width: 264px;
    --right-col-width: 264px;
    --content-min-width: 640px;
    --content-max-width: 800px;
    --gap: 8px;

    --color-blue-dark: #111111;
    --color-blue-mid: #353535;
    --color-blue-light: #0e36d1;
    --color-red: #8b1e3f;
    --color-red-hover: #e91e63;
    --color-bg: #f4f4f4;
    --color-text: #101010;
    --color-border: rgba(0, 0, 0, 0.18);
    --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--color-text);
    font: 400 16px/1.55 Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

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

.site-bg {
    width: 100%;
    background: #f7c6d9 url('../images/site-bg.png') 0 0 repeat;
}

.site-shell {
    width: 100%;
}

.site-header {
    width: 100%;
}

.site-header__image {
    width: 100%;
    aspect-ratio: 1920 / 316;
    min-height: 120px;
    background: #f7c6d9 url('../images/header.jpg') center center / cover no-repeat;
}

.site-page {
    position: relative;
    width: min(100%, var(--page-max-width));
    margin: 0 auto;
    padding: 0 0 60px;
}

.site-topbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    background: var(--color-blue-dark);
    border: 1px solid #d4af37;
    color: #fff;
    margin-top: 0;
    min-height: 58px;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 20;
}

.site-topbar__title {
    min-width: 0;
}

.site-topbar__title-desktop,
.site-topbar__title-mobile {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 12px 26px;
}

.site-topbar__title-desktop {
    font-size: 18px;
}

.site-topbar__title-mobile {
    display: none;
    justify-content: center;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.site-layout {
    display: grid;
    grid-template-columns: var(--left-col-width) minmax(var(--content-min-width), var(--content-max-width)) var(--right-col-width);
    justify-content: space-between;
    align-items: start;
    gap: var(--gap);
    padding: var(--gap) 0 0;
}

.sidebar {
    min-width: 0;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.sidebar__inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 10px;
}

.category-description h1 {
    font-size: 22px;
    margin: 4px 0 10px 0;
}

.content-area {
    min-width: 0;
}

.content-box {
    background: var(--color-bg);
    padding: 18px 28px 24px;
    box-shadow: var(--shadow-soft);
    min-height: 400px;
    overflow-wrap: anywhere;
}

.side-block {
    background: var(--color-blue-dark);
    box-shadow: none;
    overflow: hidden;
    border: 2px solid #d4af37
}

.side-block__head {
    /*background: var(--color-blue-dark) url('../images/block-title.png') center center / cover no-repeat;*/
    background: var(--color-blue-dark);
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 18px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.side-block__head--image {
    min-height: 44px;
    display: flex;
    color: #fff;
    background: var(--color-blue-dark);
}

.side-block__head span {
    display: inline-block;
    max-width: 100%;
    font-size: 20px;
    line-height: 1.2;
    text-transform: uppercase;
}

.side-block__body {
    padding: 14px 12px;
    color: #fff;
}

.side-block__body p:last-child {
    margin-bottom: 0;
}

.side-block__body--flush {
    padding: 0;
}

.side-block__body--banner {
    padding: 0;
    background: var(--color-blue-dark);
}

.banner-placeholder {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #fff;
    font-size: 18px;
    text-align: center;
    text-transform: uppercase;
}

.side-menu,
.menu-accordion__list,
.menu-accordion__submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-menu li, .menu-accordion__item {
    border-top: 1px solid #d4af37;
}

.side-menu a,
.menu-accordion__link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 40px;
    padding: 10px 14px 10px 22px;
    color: #fff;
    background: linear-gradient(to bottom, var(--color-blue-mid), var(--color-blue-dark));
    position: relative;
    transition: background 0.2s ease, color 0.2s ease;
}

.side-menu a::before,
.menu-accordion__link::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid #fff;
    transform: translateY(-50%);
}

.side-menu a:hover,
.menu-accordion__link:hover,
.menu-accordion__item.is-open > .menu-accordion__link {
    background: linear-gradient(to bottom, var(--color-red-hover), var(--color-red));
}

.menu-accordion__link--toggle {
    border: 0;
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.menu-accordion__link--toggle::after {
    content: '+';
    margin-left: auto;
    font-size: 17px;
    line-height: 1;
}

.menu-accordion__item.is-open > .menu-accordion__link--toggle::after {
    content: '–';
}

.menu-accordion__submenu {
    display: block;
    max-height: 0;
    overflow: hidden;
    background: #020a38;
    transition: max-height 0.28s ease;
    will-change: max-height;
}

.menu-accordion__submenu a {
    display: block;
    padding: 10px 14px 10px 34px;
    color: #fff;
    font-size: 14px;
    background: linear-gradient(to bottom, var(--color-blue-mid), var(--color-blue-dark));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-accordion__submenu a:hover {
    background: linear-gradient(to bottom, var(--color-red-hover), var(--color-red));
}

.panel-toggle {
    display: none;
    width: 50px;
    min-height: 58px;
    padding: 0;
    border: 0;
    background: var(--color-red);
    color: #fff;
    cursor: pointer;
    position: relative;
    z-index: 60;
}

.panel-toggle:hover {
    background: var(--color-red-hover);
}

.panel-toggle__burger,
.panel-toggle__burger::before,
.panel-toggle__burger::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.panel-toggle__burger {
    top: 50%;
    transform: translate(-50%, -50%);
}

.panel-toggle__burger::before {
    top: -8px;
}

.panel-toggle__burger::after {
    top: 8px;
}

/* Кнопка правой колонки */

.panel-toggle--right .panel-toggle__burger {
    width: 18px;
    height: 18px;
    background: transparent;
    border: 3px solid #fff;
    border-radius: 0;
    top: 50%;
    transform: translate(-50%, -50%);
}

.panel-toggle--right .panel-toggle__burger::before,
.panel-toggle--right .panel-toggle__burger::after {
    width: 24px;
    height: 3px;
    background: #fff;
    border: 0;
    border-radius: 2px;
    top: 50%;
    left: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
}

/* Анимация в крестик */
.right-panel-open .panel-toggle--right .panel-toggle__burger {
    border-color: transparent;
    background: transparent;
}

.right-panel-open .panel-toggle--right .panel-toggle__burger::before,
.right-panel-open .panel-toggle--right .panel-toggle__burger::after {
    opacity: 1;
}

.right-panel-open .panel-toggle--right .panel-toggle__burger::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.right-panel-open .panel-toggle--right .panel-toggle__burger::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Плавность (не ломает левую кнопку) */
.panel-toggle__burger,
.panel-toggle__burger::before,
.panel-toggle__burger::after {
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.left-panel-open .panel-toggle--left .panel-toggle__burger,
.right-panel-open .panel-toggle--right .panel-toggle__burger {
    background: transparent;
}

.left-panel-open .panel-toggle--left .panel-toggle__burger::before {
    top: 0;
    transform: translateX(-50%) rotate(45deg);
}

.right-panel-open .panel-toggle--right .panel-toggle__burger::before {
    top: 3px;
    transform: translateX(-50%) rotate(45deg);
}

.left-panel-open .panel-toggle--left .panel-toggle__burger::after {
    top: 0;
    transform: translateX(-50%) rotate(-45deg);
}

.right-panel-open .panel-toggle--right .panel-toggle__burger::after {
    top: 3px;
    transform: translateX(-50%) rotate(-45deg);
}

#dle-content,
#dle-comments,
.full-news,
.shortstory,
.static,
.base,
.text,
.story,
.story_c,
.post,
.page,
.pages,
.navigation {
    max-width: 100%;
}

.maintext h1 {
    margin: 0 5px 5px 5px;
}

.maintext h2 {
    margin: 10px 5px 0 5px;
}

.maintext p {
    text-indent: 1.5em;
    margin: 0;
}

.maintext ul {
    margin: 0;
}

.seasons-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 18px;
    width: 100%;
    margin: 24px 0;
}

.seasons-grid__item {
    min-width: 0;
    text-align: center;
}

.seasons-grid__poster {
    display: block;
    width: 100%;
    max-width: 210px;
    margin: 0 auto 14px;
    text-decoration: none;
}

.seasons-grid__poster img {
    display: block;
    width: 100%;
    height: auto;
    border: 3px solid #d4af37;
    box-sizing: border-box;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.seasons-grid__poster:hover img {
    opacity: 0.92;
    transform: translateY(-1px);
}

.seasons-grid__title {
    display: inline-block;
    font-size: 18px;
    line-height: 1.35;
    text-decoration: underline;
    color: #0066cc;
}

.seasons-grid__title:hover {
    text-decoration: none;
}

/* ========== SPEEDBAR ========== */

.speedbar-custom {
    width: 100%;
}

.speedbar-custom__inner {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.speedbar-custom__text {
    display: block;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ========== VOTE.TPL ========== */

.vote-box {
    color: #fff;
}

.vote-box__title {
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.35;
}

.vote-box__form {
    margin: 0;
}

.vote-box__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vote-box__list .vote_option,
.vote-box__list .voteitem,
.vote-box__list .highslide {
    display: block;
}

.vote-box__list input[type="radio"] {
    margin-right: 8px;
    vertical-align: middle;
}

.vote-box__list label {
    color: #fff;
    font-size: 14px;
    line-height: 1.45;
    cursor: pointer;
}

.vote-box__count {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.82);
}

.vote-box__actions {
    margin-top: 16px;
}

.vote-box__actions-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.vote-box__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 36px;
    padding: 8px 12px;
    border: 0;
    border-radius: 2px;
    background: #f3f3f3;
    color: #1a1a1a;
    font: 400 13px/1.2 Arial, Helvetica, sans-serif;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.vote-box__button:hover {
    background: #ffffff;
}

.vote-box__button:active {
    transform: translateY(1px);
}

.vote-box__button--primary {
    background: #efefef;
}

.vote-box__button--primary:hover {
    background: #ffffff;
}

/* ========== SHORTSTORY ========== */

.short-card {
    margin-bottom: 18px;
    background: #f2e6eb;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
}

.short-card__header {
    background: #111111;
}

.short-card__title {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 400;
}

.short-card__title a {
    display: block;
    padding: 12px 18px;
    color: #fff;
    text-decoration: none;
}

.short-card__body {
    display: block;
    padding: 14px 14px 16px;
}

.short-card__body::after {
    content: "";
    display: block;
    clear: both;
}

.short-card__image {
    float: left;
    display: block;
    margin: 0 18px 10px 0;
}

.short-card__image img {
    display: block;
    height: 150px;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.short-card__content {
    display: block;
    min-width: 0;
}

.short-card__text {
    color: #111;
    font-size: 16px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.short-card__text > *:first-child {
    margin-top: 0;
}

.short-card__text > *:last-child {
    margin-bottom: 0;
}

.short-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 14px;
    clear: both;
}

.short-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    min-width: 0;
    color: #8f8f8f;
    font-size: 15px;
    line-height: 1.2;
}

.short-card__meta a,
.short-card__meta span {
    display: inline-flex;
    align-items: center;
    color: #8f8f8f;
    text-decoration: none;
}

.short-card__stat {
    position: relative;
    padding-left: 22px;
    white-space: nowrap;
}

.short-card__stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.75;
}

.short-card__stat--views::before {
    background-image: url("../images/views.svg");
}

.short-card__stat--comments::before {
    background-image: url("../images/comments.svg");
}

.short-card__controls {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.short-card__controls > a {
    text-decoration: none;
}

.short-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    background: linear-gradient(to bottom, var(--color-blue-mid), var(--color-blue-dark));
    color: #fff;
    font-size: 16px;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.short-card__button:hover {
    background: linear-gradient(to bottom, var(--color-red-hover), var(--color-red));
}

.short-card__button:active {
    transform: translateY(1px);
}

.short-card__button--watch {
    white-space: nowrap;
}

.short-card__button--favorite {
    width: 42px;
    min-width: 42px;
    padding: 0;
}

.short-card__favorite-icon {
    display: block;
    width: 28px;
    height: 24px;
    background: url("../images/favorites.png") 0 0 / 84px 24px no-repeat;
}

.short-card__controls > a:hover .short-card__button--favorite .short-card__favorite-icon,
.short-card__button--favorite:hover .short-card__favorite-icon {
    background-position: -28px 0;
}

.short-card__button--favorite.is-active .short-card__favorite-icon {
    background-position: -56px 0;
}

.short-card__controls > a:hover .short-card__button--favorite.is-active .short-card__favorite-icon,
.short-card__button--favorite.is-active:hover .short-card__favorite-icon {
    background-position: -56px 0;
}

/* ========== LOGIN.TPL ========== */

.userbox {
    color: #fff;
}

.userbox__text {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.4;
}

.userbox__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.userbox__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease, transform 0.2s ease;
}

.userbox__social:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.userbox__social img {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.userbox__top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.userbox__avatar {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
}

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

.userbox__meta {
    min-width: 0;
}

.userbox__name {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    word-break: break-word;
}

.userbox__admin-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.82);
}

.userbox__admin-link:hover {
    color: #fff;
}

.userbox__menu {
    border: 1px solid #d4af37;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #020a38;
}

.userbox__menu li {
    margin: 0;
    padding: 0;
}

.userbox__menu li + li {
    border-top: 1px solid #d4af37;
}

.userbox__menu a {
    display: block;
    padding: 10px 12px;
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
    background: linear-gradient(to bottom, var(--color-blue-mid), var(--color-blue-dark));
    transition: background 0.2s ease;
}

.userbox__menu a:hover {
    background: linear-gradient(to bottom, var(--color-red-hover), var(--color-red));
}

/* ========== FULLSTORY ========== */

.episode-page {
    color: #111;
}

.episode-page__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: var(--color-blue-dark);
}

.episode-page__title {
    margin: 0;
    min-width: 0;
    color: #fff;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 400;
}

.episode-page__favorite {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    min-width: 28px;
}

.episode-page__favorite a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.episode-page__favorite-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
    line-height: 1;
}

.episode-page__favorite-icon {
    display: block;
    width: 28px;
    height: 24px;
    background: url("../images/favorites.png") 0 0 / 84px 24px no-repeat;
}

.episode-page__favorite a:hover .episode-page__favorite-icon,
.episode-page__favorite-link:hover .episode-page__favorite-icon {
    background-position: -28px 0;
}

.episode-page__favorite-link.is-active .episode-page__favorite-icon {
    background-position: -56px 0;
}

.episode-page__favorite a:hover .episode-page__favorite-link.is-active .episode-page__favorite-icon,
.episode-page__favorite-link.is-active:hover .episode-page__favorite-icon {
    background-position: -56px 0;
}

.episode-intro {
    overflow: hidden;
    margin-bottom: 18px;
}

.episode-intro__image-wrap {
    float: left;
    margin: 0 18px 10px 0;
}

.episode-intro__image {
    display: block;
    height: 150px;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.episode-intro__text {
    font-size: 16px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.mobile-cut > *:first-child {
    margin-top: 0;
}

.episode-intro__text > *:last-child {
    margin-bottom: 0;
}

.episode-page__player {
    margin: 18px 0 20px;
}

.episode-page__player--mobile {
    display: none;
}

.episode-player-heading {
    margin: 0 0 12px;
    text-align: center;
    font-size: 20px;
    line-height: 1.35;
}

.episode-tabs {
    width: 100%;
}

.episode-tabs__nav {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    margin-bottom: 0;
}

.episode-tabs__button {
    min-height: 40px;
    padding: 8px 14px;
    border: 0;
    border-radius: 6px 6px 0 0;
    background: var(--color-blue-dark);
    color: #fff;
    font: 400 16px/1.2 Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.episode-tabs__button:hover {
    background: var(--color-red-hover);
}

.episode-tabs__button.is-active {
    background: var(--color-red);
}

.episode-tabs__panel {
    display: none;
    background: #000;
    min-height: 420px;
    padding: 0;
    overflow: hidden;
}

.episode-tabs__panel.is-active {
    display: block;
}

.episode-tabs__panel iframe,
.episode-tabs__panel video,
.episode-tabs__panel embed,
.episode-tabs__panel object {
    display: block;
    width: 100%;
    min-height: 420px;
}

.episode-gallery {
    margin: 20px 0;
}

.episode-gallery__title {
    margin-bottom: 12px;
    text-align: center;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.episode-gallery__content {
    display: block;
}

.episode-gallery__content::after {
    content: "";
    display: block;
    clear: both;
}

.episode-neighbors {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin: 18px 0 16px;
    flex-wrap: wrap;
}

.episode-neighbors__link {
    display: inline-block;
}

.episode-neighbors__link img {
    display: block;
    max-width: 100%;
    height: auto;
}

.episode-page__note {
    margin: 0 0 18px;
    text-align: center;
    font-size: 15px;
    line-height: 1.45;
}

.episode-comments {
    margin-top: 18px;
}

.mobile-cut-toggle {
    display: none; /* скрыта везде по умолчанию */
}

/* ========== ADDCOMMENTS ========== */

.comments-form {
    margin-top: 18px;
    background: var(--color-blue-dark);
    color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
}

.comments-form__title {
    padding: 12px 14px 10px;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
}

.comments-form__guest {
    padding: 0 14px 12px;
}

.comments-form__field {
    max-width: 350px;
    margin-bottom: 12px;
}

.comments-form__field input,
.comments-form__protect-input--code input {
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 3px;
    background: #f3f3f3;
    color: #111;
    font: 400 14px/1.3 Arial, Helvetica, sans-serif;
}

.comments-form__field input::placeholder,
.comments-form__protect-input--code input::placeholder {
    color: #6f6f6f;
}

.comments-form__social-text {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.35;
}

.comments-form__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.comments-form__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.comments-form__social:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.comments-form__social img {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.comments-form__editor {
    padding: 0 14px;
}

.comments-form__editor textarea {
    width: 100%;
}

.comments-form__protect {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 14px;
}

.comments-form__protect-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex: 1 1 auto;
    min-width: 0;
}

.comments-form__protect-label {
    max-width: 180px;
    font-size: 14px;
    line-height: 1.3;
}

.comments-form__required {
    color: #ff4f4f;
}

.comments-form__protect-input {
    min-width: 0;
}

.comments-form__protect-input--code {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-form__protect-input--code input {
    width: 120px;
}

.comments-form__captcha-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

.comments-form__protect-input--recaptcha {
    max-width: 320px;
}

.comments-form__submit {
    display: flex;
    justify-content: flex-end;
    padding: 8px 14px 14px;
}

.comments-form__button {
    min-width: 98px;
    min-height: 40px;
    padding: 8px 18px;
    border: 0;
    border-radius: 4px;
    background: #f3f3f3;
    color: #111;
    font: 400 16px/1.2 Arial, Helvetica, sans-serif;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.comments-form__button:hover {
    background: #ffffff;
}

.comments-form__button:active {
    transform: translateY(1px);
}

/* ========== COMMENTS ========== */

.comment-modern {
    margin-bottom: 16px;
}

.comment-modern__wrap {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.comment-modern__avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    max-width: none;
}

.comment-modern__content {
    width: 100%
}

.comment-modern__name {
    font-weight: 700;
    color: var(--color-blue-dark);
}

.comment-modern__date {
    margin-left: 8px;
    font-size: 12px;
    color: #888;
}

.comment-modern__text {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.55;
}

.comment-modern__bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.comment-modern__actions span {
    margin-right: 10px;
    font-size: 13px;
    color: #0a2fd0;
    cursor: pointer;
}

.comment-modern__actions span:hover {
    text-decoration: underline;
}

.comment-modern__rating span {
    margin-left: 8px;
    font-size: 13px;
    cursor: pointer;
}

.comment-modern__rating .like {
    color: green;
}

.comment-modern__rating .dislike {
    color: red;
}
    
.episode-comments__list #dle-comments-list > .comments-tree-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.episode-comments__list #dle-comments-list > .comments-tree-list > li {
    margin-left: 0;
    padding-left: 0;
}

.episode-comments__list #dle-comments-list .comments-tree-list .comments-tree-list {
    margin: 12px 0 0;
    padding-left: 20px;
    list-style: none;
}

.episode-comments__list #dle-comments-list {
    margin-top: 20px;
}

/* ========== USERINFO ========== */

.profile-card {
    background: #ececf1;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
    color: #111;
}

.profile-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 20px;
    background: var(--color-blue-dark);
    color: #fff;
}

.profile-card__top-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.profile-card__avatar {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
}

.profile-card__avatar img {
    width: 96px;
    height: 96px;
    max-width: none;
    object-fit: cover;
    display: block;
}

.profile-card__name {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 400;
}

.profile-card__group,
.profile-card__online {
    font-size: 15px;
    line-height: 1.45;
}

.profile-card__top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.profile-tabs__button,
.profile-card__action a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 0;
    border-radius: 4px;
    background: #f3f3f3;
    color: #111 !important;
    font: 400 14px/1.2 Arial, Helvetica, sans-serif;
    text-decoration: none !important;
    cursor: pointer;
}

.profile-tabs__button.is-active {
    background: var(--color-red);
    color: #fff !important;
}

.profile-card__body {
    padding: 18px 20px 22px;
}

.profile-tab {
    display: none;
}

.profile-tab--active {
    display: block;
}

.profile-info__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    margin-bottom: 20px;
}

.profile-info__item {
    padding: 12px 14px;
    background: #fff;
    border-radius: 4px;
}

.profile-info__label {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.3;
    color: #666;
}

.profile-info__value {
    font-size: 15px;
    line-height: 1.45;
}

.profile-section + .profile-section {
    margin-top: 18px;
}

.profile-section__title,
.profile-edit__title {
    margin-bottom: 10px;
    padding: 10px 14px;
    background: var(--color-blue-dark);
    color: #fff;
    font-size: 18px;
    line-height: 1.3;
}

.profile-section__content {
    padding: 14px;
    background: #fff;
    line-height: 1.55;
}

.profile-edit__group + .profile-edit__group {
    margin-top: 20px;
}

.profile-edit__field + .profile-edit__field {
    margin-top: 12px;
}

.profile-edit__field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.35;
}

.profile-edit__field input[type="text"],
.profile-edit__field input[type="email"],
.profile-edit__field input[type="password"],
.profile-edit__field input[type="file"],
.profile-edit__field textarea,
.profile-edit__field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 4px;
    background: #fff;
    font: 400 14px/1.4 Arial, Helvetica, sans-serif;
    color: #111;
}

.profile-edit__field textarea {
    resize: vertical;
}

.profile-edit__box,
.profile-edit__linked,
.profile-edit__xfields {
    padding: 12px 14px;
    background: #fff;
    border-radius: 4px;
}

.profile-edit__check {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.profile-edit__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.profile-edit__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 4px;
    background: #fff;
    color: #111 !important;
    text-decoration: none !important;
}

.profile-edit__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.profile-edit__save {
    min-height: 40px;
    padding: 8px 18px;
    border: 0;
    border-radius: 4px;
    background: var(--color-blue-dark);
    color: #fff;
    font: 400 15px/1.2 Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.profile-edit__delete {
    color: var(--color-red);
}

/* ========== PROFILE POPUP ========== */

.profile-popup {
    color: #111;
    min-width: 260px;
}

.profile-popup__top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.profile-popup__avatar {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--color-blue-dark);
}

.profile-popup__avatar img {
    display: block;
    width: 64px;
    height: 64px;
    max-width: none;
    object-fit: cover;
}

.profile-popup__main {
    min-width: 0;
}

.profile-popup__name {
    margin-bottom: 4px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--color-blue-dark);
    word-break: break-word;
}

.profile-popup__group,
.profile-popup__state {
    font-size: 14px;
    line-height: 1.4;
}

.profile-popup__state {
    margin-top: 2px;
}

.profile-popup__info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-popup__row {
    font-size: 14px;
    line-height: 1.45;
}

.profile-popup__label {
    color: #666;
}

.profile-popup__value {
    color: #111;
    font-weight: 400;
}

/* ========== STATIC ========== */

.static-card {
    background: #ececf1;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
    color: #111;
}

.static-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 12px 18px;
    background: var(--color-blue-dark);
}

.static-card__title {
    margin: 0;
    color: #fff;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 400;
}

.static-card__admin {
    flex: 0 0 auto;
}

.static-card__admin a,
.static-card__admin span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 2px 4px;
    border-radius: 4px;
    background: #f3f3f3;
    color: #111 !important;
    font: 400 14px/1.2 Arial, Helvetica, sans-serif;
    text-decoration: none !important;
}

.static-card__body {
    padding: 18px 20px 22px;
}

.static-card__content {
    font-size: 16px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.static-card__content > *:first-child {
    margin-top: 0;
}

.static-card__content > *:last-child {
    margin-bottom: 0;
}

.static-card__content img {
    max-width: 100%;
    height: auto;
}

.static-card__pages {
    margin-top: 18px;
}

/* ========== RELATED NEWS ========== */

.related-item {
    list-style: none;
}

.related-item__link {
    display: block;
    padding: 12px 14px;
    background: #ececf1;
    text-decoration: none !important;
    color: #111;
    transition: all 0.2s ease;
}

.related-item__link:hover {
    background: var(--color-blue-dark);
    color: #fff;
}

.related-item__title {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.related-item__meta {
    font-size: 13px;
    color: #666;
}

.related-item__link:hover .related-item__meta {
    color: rgba(255,255,255,0.8);
}

/* ========== NAVIGATION ========== */

.nav-pages {
    margin: 24px 0;
}

.nav-pages__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-pages__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.nav-pages__list a,
.nav-pages__list span,
.nav-pages__inner > a,
.nav-pages__inner > span {
    text-decoration: none !important;
}

.nav-pages__arrow,
.nav-pages__list a,
.nav-pages__list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1;
    box-sizing: border-box;
}

.nav-pages__inner > a .nav-pages__arrow {
    background: #a9a9ad;
    color: #fff;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-pages__inner > a:hover .nav-pages__arrow {
    background: #7f7f82;
}

.nav-pages__inner > a:active .nav-pages__arrow {
    transform: translateY(1px);
}

.nav-pages__inner > span .nav-pages__arrow {
    background: #ececf1;
    color: #8c8c8c;
    cursor: default;
}

.nav-pages__list a,
.nav-pages__list span {
    background: #ececf1;
    color: #111;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-pages__list a:hover {
    background: #dfe1ea;
}

.nav-pages__list a:active {
    transform: translateY(1px);
}

.nav-pages__list span {
    background: var(--color-red);
    color: #fff;
}

/* ========== MOBILE ========== */

@media (max-width: 1199.98px) {
    .site-page {
        width: min(100%, 1068px);
        padding-left: 12px;
        padding-right: 12px;
    }

    .site-topbar {
        grid-template-columns: 1fr auto;
    }

    .panel-toggle--right {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-layout {
        grid-template-columns: var(--left-col-width) minmax(0, 1fr);
    }

    .sidebar--right {
        position: absolute;
        top: 66px;
        right: 12px;
        width: min(264px, calc(100vw - 24px));
        transform: translateX(calc(100% + 20px));
        transition: transform 0.25s ease;
        z-index: 35;
        pointer-events: none;
    }

    .sidebar--right .sidebar__inner {
        max-height: none;
        overflow: visible;
        padding-bottom: 16px;
    }

    body.right-panel-open .sidebar--right {
        transform: translateX(0);
        pointer-events: auto;
    }
    
    .short-card__image img {
        height: 140px;
    }
    
    .episode-page__title {
        font-size: 20px;
    }

    .episode-intro__image {
        height: 140px;
    }

    .episode-tabs__panel,
    .episode-tabs__panel iframe,
    .episode-tabs__panel video,
    .episode-tabs__panel embed,
    .episode-tabs__panel object {
        min-height: 360px;
    }
}

@media (max-width: 991.98px) {
    .seasons-grid {
        gap: 22px 14px;
    }

    .seasons-grid__poster {
        max-width: 190px;
        margin-bottom: 12px;
    }

    .seasons-grid__title {
        font-size: 17px;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 15px;
    }

    .site-header__image {
        min-height: 90px;
    }

    .site-page {
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 28px;
    }

    .site-topbar {
        grid-template-columns: 50px 1fr 50px;
        min-height: 50px;
    }

    .site-topbar__title-desktop {
        display: none;
    }

    .site-topbar__title-mobile {
        display: flex;
        min-height: 50px;
        padding: 10px 12px;
        font-size: 16px;
    }

    .panel-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 50px;
    }

    .site-layout {
        grid-template-columns: 1fr;
        position: relative;
        overflow-x: clip;
        padding: 0;
    }

    .sidebar--left,
    .sidebar--right {
        position: absolute;
        top: 0px;
        width: min(264px, calc(100vw - 20px));
        max-height: none;
        overflow: visible;
        z-index: 35;
        pointer-events: none;
        transition: transform 0.25s ease;
    }

    .sidebar--left {
        left: 0px;
        transform: translateX(calc(-100% - 20px));
    }

    .sidebar--right {
        right: 0px;
        transform: translateX(calc(100% + 20px));
    }

    .sidebar--left .sidebar__inner,
    .sidebar--right .sidebar__inner {
        max-height: none;
        overflow: visible;
        padding-bottom: 12px;
    }

    body.left-panel-open .sidebar--left,
    body.right-panel-open .sidebar--right {
        transform: translateX(0);
        pointer-events: auto;
    }

    .content-box {
        padding: 14px 16px 18px;
        min-height: 320px;
    }

    .side-block__head span {
        font-size: 18px;
    }
    
    .seasons-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }

    .seasons-grid__poster {
        max-width: 170px;
        margin-bottom: 10px;
    }

    .seasons-grid__title {
        font-size: 16px;
    }
	
	.vote-box__title {
        font-size: 17px;
    }

    .vote-box__actions-secondary {
        grid-template-columns: 1fr;
    }

    .userbox__top {
        align-items: flex-start;
    }

    .userbox__name {
        font-size: 15px;
    }

    .userbox__menu a {
        padding: 10px 11px;
        font-size: 13px;
    }
    
    .short-card {
        margin-bottom: 14px;
    }

    .short-card__title {
        font-size: 17px;
    }

    .short-card__title a {
        padding: 10px 14px;
    }

    .short-card__body {
        display: block;
        padding: 8px 8px 12px;
    }

    .short-card__image {
        float: none;
        display: flex;
        justify-content: center;
        margin: 0 0 12px 0;
    }    

    .short-card__image img {
        height: 122px;
        width: auto;
        max-width: 100%;
    }

    .short-card__text {
        font-size: 15px;
        line-height: 1.5;
        text-align: left;
    }

    .short-card__actions {
        display: block;
        margin-top: 12px;
    }

    .short-card__meta {
        margin-bottom: 10px;
        gap: 14px;
        font-size: 14px;
    }

    .short-card__controls {
        display: flex;
        align-items: stretch;
        width: 100%;
        gap: 8px;
    }

    .short-card__button {
        min-height: 38px;
        font-size: 15px;
        font-weight: 700;
    }

    .short-card__button--favorite {
        flex: 0 0 46px;
        width: 46px;
        min-width: 46px;
    }

    .short-card__button--watch {
        flex: 1 1 auto;
        width: auto;
    }
    
    .episode-page__header {
        margin-bottom: 14px;
        padding: 8px 12px;
    }

    .episode-page__title {
        font-size: 18px;
    }

    .episode-page__player--mobile {
        display: block;
        margin-top: 0;
    }

    .episode-page__player--desktop {
        display: none;
    }

    .episode-intro {
        margin-bottom: 16px;
    }

    .episode-intro__image-wrap {
        display: none;
    }

    .episode-intro__text {
        font-size: 15px;
        line-height: 1.5;
    }

    .episode-player-heading {
        font-size: 18px;
    }

    .episode-tabs__button {
        min-height: 38px;
        padding: 8px 12px;
        font-size: 15px;
    }

    .episode-tabs__panel {
        min-height: 220px;
    }

    .episode-tabs__panel iframe,
    .episode-tabs__panel video,
    .episode-tabs__panel embed,
    .episode-tabs__panel object {
        min-height: 220px;
    }

    .episode-gallery__title {
        font-size: 18px;
    }

    .episode-page__note {
        font-size: 14px;
        text-align: left;
    }
    
    .comments-form__title {
        font-size: 15px;
    }

    .comments-form__guest {
        padding: 0 12px 12px;
    }

    .comments-form__field {
        max-width: none;
    }

    .comments-form__editor {
        padding: 0 12px;
    }

    .comments-form__protect {
        display: block;
        padding: 12px;
    }

    .comments-form__protect-row {
        display: block;
    }

    .comments-form__protect-row + .comments-form__protect-row {
        margin-top: 14px;
    }

    .comments-form__protect-label {
        max-width: none;
        margin-bottom: 10px;
        font-size: 13px;
    }

    .comments-form__protect-input--code {
        display: block;
    }

    .comments-form__protect-input--code input {
        width: 100%;
        max-width: 180px;
        margin-bottom: 10px;
    }

    .comments-form__protect-input--recaptcha {
        max-width: 100%;
        overflow-x: auto;
    }

    .comments-form__submit {
        padding: 6px 12px 12px;
    }

    .comments-form__button {
        min-width: 100px;
        min-height: 38px;
        font-size: 15px;
    }
    
    .comment-modern__wrap {
        padding: 10px;
        gap: 8px;
    }

    .comment-modern__avatar img {
        width: 32px;
        height: 32px;
    }

    .comment-modern__text {
        font-size: 14px;
    }
    
    .profile-card__top {
        display: block;
        padding: 14px;
    }

    .profile-card__top-main {
        align-items: flex-start;
    }

    .profile-card__avatar {
        flex-basis: 72px;
        width: 72px;
        height: 72px;
    }

    .profile-card__avatar img {
        width: 72px;
        height: 72px;
    }

    .profile-card__name {
        font-size: 24px;
    }

    .profile-card__top-actions {
        margin-top: 14px;
        justify-content: flex-start;
    }

    .profile-card__body {
        padding: 14px;
    }

    .profile-info__grid {
        grid-template-columns: 1fr;
    }

    .profile-section__title,
    .profile-edit__title {
        font-size: 17px;
    }
	
	.static-card__head {
        padding: 10px 14px;
    }

    .static-card__title {
        font-size: 20px;
    }

    .static-card__body {
        padding: 14px 16px 18px;
    }

    .static-card__content {
        font-size: 15px;
        line-height: 1.55;
    }
    
    .nav-pages {
        margin: 20px 0;
    }

    .nav-pages__inner {
        gap: 6px;
    }

    .nav-pages__list {
        gap: 5px;
    }

    .nav-pages__arrow,
    .nav-pages__list a,
    .nav-pages__list span {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 14px;
    }
    
    .mobile-cut {
        max-height: 400px; /* высота в закрытом виде */
        overflow: hidden;
        position: relative;
        transition: max-height 1s ease;
        will-change: max-height;
    }

    .mobile-cut.is-open {
        max-height: 2000px; /* заведомо больше любого текста */
    }

    .mobile-cut:not(.is-open)::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 70px;
        background: linear-gradient(to bottom, rgba(244,244,244,0), #f4f4f4);
        pointer-events: none;
    }

    .mobile-cut-toggle {
        display: inline-flex; /* показывается ТОЛЬКО на мобилке */
        justify-content: center;
        align-items: center;
        margin: 12px auto 0;
        padding: 8px 16px;
        background: var(--color-blue-dark);
        color: #fff;
        border: 0;
        border-radius: 4px;
        cursor: pointer;
    }
}

@media (max-width: 479.98px) {
    .site-topbar__title-mobile {
        font-size: 15px;
        padding-left: 8px;
        padding-right: 8px;
    }
    
.category-description h1 {
    font-size: 16px;
    margin: 2px 0 8px 0;
}

    .content-box {
        padding: 10px 8px 16px;
    }
    
    .seasons-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .seasons-grid__poster {
        max-width: 220px;
    }
    
    .episode-page__title {
        font-size: 16px;
    }

    .episode-tabs__nav {
        gap: 1px;
    }

    .episode-tabs__button {
        flex: 1 1 0;
        justify-content: center;
    }

    .episode-tabs__panel {
        min-height: 200px;
    }

    .episode-tabs__panel iframe,
    .episode-tabs__panel video,
    .episode-tabs__panel embed,
    .episode-tabs__panel object {
        min-height: 200px;
    }
    
    .profile-popup {
        min-width: 0;
    }

    .profile-popup__top {
        align-items: flex-start;
    }

    .profile-popup__avatar {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
    }

    .profile-popup__avatar img {
        width: 56px;
        height: 56px;
    }

    .profile-popup__name {
        font-size: 16px;
    }

    .profile-popup__group,
    .profile-popup__state,
    .profile-popup__row {
        font-size: 13px;
    }
    
    .xfieldimagegallery li img, .comments-image-gallery li img {
        width: 154px;
        height: 87px;
        margin-bottom: 4px;
        border: 4px solid #fff;
    }
    
    .episode-comments__list #dle-comments-list .comments-tree-list .comments-tree-list {
        margin: 10px 0 0;
        padding-left: 12px;
    }
}

@media (max-width: 353.98px) {
    .xfieldimagegallery li img, .comments-image-gallery li img {
        width: 138px;
        height: 78px;
        margin-bottom: 4px;
        margin-right: 2px;
        border: 2px solid #fff;
    }
}