/* ============================================================================
   RUANEKDOT.RU — Единый CSS
   Версия: 1.0 (2026-09-17)
   Автор: консолидация стилей из my.css + 13 шаблонов

   СТРУКТУРА:
   01. Reset & Base
   02. Typography (h1-h6, a, p)
   03. Layout (.wrap, .center, .cols, .main, .side)
   04. Header
   05. Article (.short + всё вокруг)
   06. Categories (cenz / likeplus / lекс)
   07. Material Footer
   08. Date Dividers
   09. Load More / Loading
   10. Similar Container / Quotes
   11. Sort-Filter Panel
   12. Comments
   13. Caption Spoiler
   14. Side Boxes
   15. Floating Buttons (gotop / gohome / gocategories)
   16. Side Panel (Mobile Menu)
   17. Category Grid (cn-*) + Cat & Dog
   18. Admin Zones (#nwM16, #ocrDropZone, #censorDropZone, #wmRemovalDropZone)
   19. Forms (Login / Register / uf-*)
   20. User Profile Popup (us5.t / us7.t)
   21. Media Queries (все брейкпоинты)
   22. Utilities & Print
   ========================================================================= */


/* ============================================================================
   01. RESET & BASE
   ========================================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
    border: 0;
    background: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    padding: 0;
    margin: 0;
    color: #222;
    background: #f3f3f3;
    min-height: 100%;
    width: 100%;
    font: 400 15pt/normal Calibri, "Roboto", Arial, sans-serif;
    overflow-x: hidden;
}

/* Плавное появление (FOUC fix) */
body { opacity: 0; transition: opacity .3s ease-in; }
body.loaded, body.page-body { opacity: 1; }

img { max-width: 100%; height: auto; border: 0; }
img[loading="lazy"] { transition: opacity .3s ease; }
img[data-loaded="true"] { opacity: 1; }

hr, .hr {
    display: block;
    width: 100%;
    height: 1px;
    background: #e5e5ee;
    border: 0;
    margin: 0 0 6px;
}

.clearfix::after,
.clr::after {
    content: "";
    display: table;
    clear: both;
}


/* ============================================================================
   02. TYPOGRAPHY
   ========================================================================= */

a {
    color: #4a545c;
    text-decoration: none;
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    transition: color .2s;
}
a:hover, a:focus { color: #4f6173; text-decoration: none; }

h1 {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
}

main .main h1 {
    font-size: 2rem;
    text-align: center;
    margin: 0 0 15px;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}

h2, h3 {
    color: #4f6173;
    margin: 0;
    padding: 12px 0 8px 12px;
    text-shadow: 0 1px 0 #e5e5ee;
    font: 600 19px "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

h4, h5 {
    color: #4f6173;
    margin: 0;
    padding: 12px 18px;
    font: 400 19px "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.tagline {
    color: #666;
    text-align: center;
    margin-top: 0;
    font: 15px "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.news-title {
    color: #4f6173;
    text-align: left;
    font: 600 19px "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 12px 0 8px 12px;
    text-shadow: 0 1px 0 #e5e5ee;
    line-height: 1.4;
}
.news-title.center { text-align: center; margin: 0 auto 10px; }


/* ============================================================================
   03. LAYOUT
   ========================================================================= */

.wrap {
    min-width: 320px;
    overflow: hidden;
}

.center {
    max-width: 1040px;
    margin: 0 auto;
    position: relative;
    z-index: 20;
}

.cols {
    margin-bottom: 10px;
}

.side {
    width: 300px;
    float: left;
    position: relative;
}

.main {
    width: calc(100% - 330px);
    float: right;
}

.footer {
    color: #909090;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 9px;
    font-size: 14px;
}


/* ============================================================================
   04. HEADER
   ========================================================================= */

.header {
    background: #fff;
    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, .1);
    position: relative;
    z-index: 9999;
}

.header-content {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    height: 70px !important;
    overflow: hidden !important;
}

.logo-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 70px;
    margin-right: 10px;
    max-width: 60%;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 2px;
}

.logo-link img {
    height: 40px;
    width: auto;
    display: block;
    max-width: 100%;
}

.site-tagline {
    color: #4f6173;
    font-size: 12px;
    font-weight: 400;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    white-space: nowrap;
    text-align: left;
    width: 100%;
}

/* ===== ПОИСК В ШАПКЕ ===== */
.search-section {
    display: flex !important;
    flex: 0 0 auto !important;
    min-width: 32px !important;
    transition: flex 0.3s ease !important;
}

.menu-section {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    min-width: 40px !important;
}

.search-wrap {
    max-width: 100% !important;
    width: 100% !important;
}

.search-box {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    transition: background 0.3s, border 0.3s !important;
}

.search-box input[type="text"] {
    width: 0 !important;
    padding: 0 !important;
    flex: 0 0 0 !important;
    min-width: 0 !important;
    background: transparent !important;
    border: none !important;
    transition: width 0.3s, flex 0.3s, padding 0.3s !important;
    font-size: 14px !important;
    height: 36px !important;
    outline: none !important;
    color: #333 !important;
}

.search-box input[type="text"]::placeholder {
    color: #aaa !important;
    font-style: italic !important;
}

.search-icon-btn {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    padding: 4px 6px !important;
    color: #999 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s, transform 0.1s !important;
}
.search-icon-btn svg {
    display: block !important;
    stroke: currentColor !important;
    fill: none !important;
    stroke-width: 2 !important;
    width: 16px;
    height: 16px;
}
.search-icon-btn:hover { color: #498bfa !important; }
.search-icon-btn:active { transform: scale(.95) !important; }

.search-section.expanded .search-box {
    background: #fff !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    padding: 0 0 0 8px !important;
}
.search-section.expanded .search-box input[type="text"] {
    width: auto !important;
    flex: 1 !important;
    padding: 5px 0 !important;
    background: transparent !important;
    border: none !important;
    min-width: 60px !important;
}
.search-section.expanded .search-icon-btn {
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    width: auto !important;
}

.btn-menu {
    display: none;
    width: 40px;
    height: 40px;
    background-color: #fcfcfc;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: #4f6173;
}
.btn-menu:hover { background: #f5f5f5; }

.visually-hidden {
    position: absolute !important;
    width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* ============================================================================
   05. ARTICLE (.short + содержимое)
   ========================================================================= */

article.short {
    width: 100% !important;
    max-width: 100% !important;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
    margin: 0 0 14px;
    padding: 0 !important;
    overflow: hidden;
    position: relative;
    animation: fadeIn .5s ease-out;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-left: none !important;
    border-right: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.s-top { padding: 0; }

.title-section {
    background: #fcfcfc;
    padding: 8px 12px 6px;
    border-bottom: 1px solid #e5e5ee;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.title-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
    margin-right: 12px;
}
.title-link h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
    padding: 1px 0;
}
.title-link:hover h2 { color: #0066cc; }

.header-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-top: 1px;
}

.moder-panel { margin-left: 8px; }

.stat-item {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #666;
    font-size: 11px;
    font-family: Tahoma, sans-serif;
    white-space: nowrap;
}
.stat-item.views { cursor: default; }
.stat-item a { text-decoration: none; color: inherit; }
.header-stats img { opacity: .5; }
.stat-item.related img { opacity: .4; }
.stat-item.comments img { opacity: .7; }

.content-labels { margin-bottom: 2px; }

.content-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: no-repeat center center;
    background-size: cover;
}
.content-container img.seo-image {
    width: 100%; height: 100%;
    opacity: 0;
    object-fit: cover;
}
.content-container video {
    width: 100%; height: 100%;
    object-fit: cover;
}

.s-texthome,
.s-text {
    font-family: Verdana, Geneva, sans-serif !important;
    font-size: 19px;
    padding: 8px 20px 18px;
    text-align: justify;
    line-height: 1.5 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}
.s-texthome p,
.s-text p {
    font-family: Verdana, Geneva, sans-serif !important;
    padding: 8px 0 0;
    font-size: 19px;
    text-align: justify;
    line-height: 1.5 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0;
}
.s-texthome a,
.coment_message a { font-size: 13pt; cursor: help; }

.s-top h2 a {
    font-size: 18px;
    font-weight: 700;
    margin-right: 7px;
}

.color-title {
    background: #fcfcfc;
    overflow: hidden;
    position: relative;
}

.footer-section {
    background: #fcfcfc;
    padding: 6px 12px 8px;
    border-top: 1px solid #e5e5ee;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 24px;
}

.categories {
    display: flex;
    align-items: center;
    gap: 6px;
}
.categories a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #444;
    font-size: 13px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: color .2s;
}
.categories a:hover { color: #0066cc; }
.categories img { opacity: .6; transition: opacity .2s; }
.categories a:hover img { opacity: .8; }
.category-name { font-size: 13px; font-weight: 600; color: #444; }
.category-separator { color: #ddd; margin: 0 4px; font-weight: 300; }

.rating-wrapper {
    flex-shrink: 0;
    margin-left: 12px;
}

/* Скрытые SEO-мета — только для семантики, не видны */
article.short > meta,
article.short > span[itemprop="author"] { display: none; }

/* Грид-режим (thumb) */
.grid-thumb { margin: 0 -15px; }
.grid-thumb .short {
    float: left;
    width: calc((100% - 82px) / 3);
    padding: 0;
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 30px;
}
.grid-thumb .s-img {
    width: 100%;
    height: 0;
    padding-top: 145%;
    position: relative;
}
.grid-thumb .s-img img {
    position: absolute;
    left: 0; top: 0;
}
.grid-thumb .s-top h2 {
    max-width: 100%;
    width: 100%;
    text-align: center;
}
.grid-thumb .s-top h2 a {
    font-size: 15px;
    font-weight: 400;
    margin-right: 0;
    padding: 0 15px;
    line-height: 16px;
    height: 16px;
    overflow: hidden;
    display: block;
    white-space: nowrap;
}


/* ============================================================================
   06. CATEGORIES: cenz / likeplus / лексика / 16+
   ========================================================================= */

.cenz {
    display: inline-block;
    padding: 1px 6px;
    margin-right: 4px;
    background: #ff6b6b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    float: none !important;
    cursor: help;
    text-shadow: none !important;
}
.cenz[title*="16+"] { background: #ffa726; }
.cenz[title*="Предупреждение"] { background: #66bb6a; }

.rnd {
    font-size: 12pt;
    font-weight: 700;
    color: #B22222;
    cursor: help;
    text-shadow: none;
    filter: none;
}
.rndt {
    font-size: 11pt;
    font-weight: 700;
    color: #000;
    text-shadow: none;
    filter: none;
}

/* Лайк */
.rating_like {
    float: left;
    font: 11px Verdana, Arial, Helvetica, sans-serif;
    padding: 0 0 0 5px;
}
.rating_like a { float: left; text-decoration: none; }
.rating_like_l { float: left; padding: 2px 0; }
.rating_like_r {
    float: left;
    margin: 0 0 0 5px;
    padding: 3px 7px;
    background: #5C9AD5;
    border-radius: 3px;
    color: #fff;
}
.rating_like a:hover .rating_like_r { background: #E96465; }

.likeplus {
    font-size: 1pt;
    background: url(/dleimages/nvr.png) top;
    width: 17px; height: 17px;
    overflow: hidden;
    cursor: pointer;
    margin-right: 2px;
    margin-top: -3px;
    opacity: .8;
}
.likeplus_hover {
    font-size: 1pt;
    background: url(/dleimages/nvr.png) bottom;
    width: 17px; height: 17px;
    overflow: hidden;
    cursor: pointer;
    margin-right: 2px;
    margin-top: -3px;
    opacity: 1;
}
.like2, .likex {
    margin: 0 7px 0 0;
    line-height: 1.5;
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    opacity: .8;
    text-shadow: 0 1px 0 #e5e5ee;
}
.like2 { color: #4a545c; }
.likex { color: #384956; opacity: .7; }

.coment_rating { padding-top: 5px; }
.coment_rating a:hover img { opacity: .5; }

span[onclick*="likePlus"] { cursor: pointer !important; }
.likeplus, .likeplus_hover { cursor: pointer !important; }
span[style*="pointer-events: none"] { cursor: not-allowed !important; }


/* ============================================================================
   07. MATERIAL FOOTER
   ========================================================================= */

.material-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 0 4px;
    margin-top: 6px;
    color: #666;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

.material-footer .footer-line {
    flex: 1;
    height: 0;
    border-bottom: 1px solid #ddd;
    min-width: 20px;
}

.material-footer .comments-link,
.material-footer .similar-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 14px;
    border-radius: 20px;
    color: #555;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
    transition: background .2s, color .2s, transform .1s;
}
.material-footer .comments-link:hover,
.material-footer .similar-link:hover {
    background: rgba(73, 139, 250, .08);
    color: #498bfa;
}
.material-footer .comments-link:active,
.material-footer .similar-link:active { transform: scale(.96); }
.material-footer .comments-link.active,
.material-footer .similar-link.active {
    color: #498bfa !important;
    font-weight: 600;
}
.material-footer .arrow,
.material-footer .arrow-down {
    display: inline-block;
    transition: transform .3s ease;
    font-size: 12px;
    margin-left: 2px;
}
.material-footer .arrow.rotated { transform: rotate(180deg); }
.material-footer .similar-link.pressed { animation: pressAnim .25s ease; }

@keyframes pressAnim {
    0%   { transform: scale(1); }
    50%  { transform: scale(.92); }
    100% { transform: scale(1); }
}


/* ============================================================================
   08. DATE DIVIDERS
   ========================================================================= */

.date-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
    color: #999;
    font-size: 14px;
    font-family: Arial, sans-serif;
}
.date-divider::before,
.date-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
    margin: 0 10px;
}
.date-divider a {
    text-decoration: none;
    color: inherit;
    padding: 0 10px;
    transition: color .2s;
}
.date-divider a:hover { color: #498bfa; }

/* Иконки сортировки внутри разделителя */
.date-divider .sort-buttons {
    display: inline-flex;
    gap: 6px;
    margin-left: 10px;
    flex-shrink: 0;
}
.date-divider .sort-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    color: #aaa;
    cursor: pointer;
    transition: color .2s;
    user-select: none;
    line-height: 1;
}
.date-divider .sort-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    display: block;
}
.date-divider .sort-icon:hover { color: #498bfa; }
.date-divider .sort-icon.active { color: #498bfa; }


/* ============================================================================
   09. LOAD MORE / LOADING
   ========================================================================= */

#all-materials { display: none !important; }

.loading-indicator,
#loading-indicator,
#loading-more {
    text-align: center;
    padding: 15px;
    color: #666;
    font-size: 14px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 10px 0;
    display: none;
}

.load-more-btn,
#load-more-btn {
    display: block;
    margin: 30px auto;
    padding: 10px 30px;
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-style: italic;
    transition: all .3s ease;
}
.load-more-btn:hover:not(:disabled),
#load-more-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #ccc;
}
.load-more-btn:disabled,
#load-more-btn:disabled {
    background: #ccc;
    color: #fff;
    cursor: not-allowed;
    opacity: .5;
}

.hidden-block { display: none !important; }

.navigation, .pagination, .pages, .page-selector, .catPages1 {
    display: none !important;
}

.pagi-nav { max-width: 100%; display: inline-block; }
.pagi-nav > span { display: inline-block; }
.navigation a, .swchItemA, .pnext a, .pprev a, .pprev > span, .pnext > span {
    display: inline-block;
    padding: 0 5px;
    min-width: 32px;
    background: #fff;
    margin: 0 3px;
    border-radius: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}
.swchItemA, .pagi-nav a:hover { background: #3e2d5e; color: #fff; }


/* ============================================================================
   10. SIMILAR / QUOTES
   ========================================================================= */

.similar-container {
    overflow: hidden;
    max-height: 0;
    transition: max-height .5s ease;
    margin: 0;
    box-shadow: none !important;
    border: none !important;
}
.similar-container.active { max-height: 10000px; }

.similar-item-wrapper { animation: slideIn .5s ease-out; }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Загрузчик-кот */
.humor-loader {
    display: block;
    margin: 0 auto;
    animation: bounce .4s infinite alternate;
}
@keyframes bounce {
    from { transform: translateY(0); }
    to   { transform: translateY(-8px); }
}
.loader-text {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin-top: 5px;
}

/* Цитаты */
.quote-block {
    background: #fff;
    border-radius: 1px;
    padding: 15px;
    margin: 15px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
    border-left: 4px solid #498bfa;
}
.quote-content {
    font-style: italic;
    color: #333;
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: 19px;
}
.quote-author {
    text-align: right;
    color: #666;
    font-size: 16px;
    font-style: normal;
}


/* ============================================================================
   11. SORT-FILTER PANEL
   ========================================================================= */

.sort-filter-panel {
    display: flex;
    justify-content: center;
    margin: 0 0 12px;
    padding: 8px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.menu-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.separator {
    color: #ccc;
    font-size: 14px;
    user-select: none;
}

.sort-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 14px;
    border-radius: 20px;
    color: #555;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
    text-decoration: none;
    background: transparent;
    border: none;
    font-size: 15px;
    transition: background .2s, color .2s, transform .1s;
}
.sort-link:hover {
    background: rgba(73, 139, 250, .08);
    color: #498bfa;
}
.sort-link.active { color: #498bfa; font-weight: 600; }

.filter-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    color: #555;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
.filter-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.fullwidth-navigation {
    width: 100%;
    background: transparent;
    margin: 0;
    padding: 0 0 10px;
}
.content-block {
    width: 100%;
    padding: 7px 11px;
    border: 1px solid rgba(0, 0, 0, .1);
    font-size: 16px;
    font-family: Tahoma, sans-serif;
    line-height: 1.5;
    background: #fcfcfc;
    text-align: left;
}
.content-block a { color: #003366; }
.content-block a:hover { color: #002244; }
.content-block span { color: #333; }
.content-block h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a365d;
    text-align: center;
    margin: 10px 0;
    padding: 0;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .1);
}


/* ============================================================================
   12. COMMENTS
   ========================================================================= */

.comment-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 18px 20px;
    margin: 14px 0;
    animation: commentFadeIn .3s ease-out;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author-section {
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-author {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 16px;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    letter-spacing: -.01em;
}

.user-badge {
    color: #666;
    font-size: 8px;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: #666;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 500;
}

.comment-date { font-weight: 500; letter-spacing: -.01em; }
.comment-number {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: -.01em;
}

.comment-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 10px 0 15px;
}

.comment-content { margin: 0; }

.comment-text {
    color: #2d3748;
    font-size: 17px;
    line-height: 1.5;
    word-wrap: break-word;
    font-weight: 400;
    text-align: justify;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    letter-spacing: -.01em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "kern" 1;
    font-kerning: normal;
}

.funny-message {
    color: #dc2626;
    font-weight: 500;
    font-style: italic;
}

@keyframes commentFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Модераторский комментарий */
.moderator-comment {
    background: #f8f9fa;
    border: 1px solid #498bfa;
    border-left: 4px solid #498bfa;
}
.moderator-comment .comment-author { color: #498bfa; font-weight: 700; }
.moderator-badge {
    color: #498bfa;
    background: #e3f2fd;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 10px;
}

/* Форма добавления */
.comment-add-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
    color: #999;
    font-size: 14px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    user-select: none;
}
.comment-add-link::before,
.comment-add-link::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
    margin: 0 10px;
}
.comment-add-link .spoiler-label { white-space: nowrap; padding: 0 10px; }
.comment-add-link .spoiler-arrow { margin-left: 4px; font-size: 12px; }
.comment-add-link:hover { color: #498bfa; }

.comment-add-form-wrapper {
    margin: 10px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
}
.comment-add-form-wrapper form textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 80px;
}
.comment-add-form-wrapper form input[type="submit"] { margin-top: 5px; }

.comment-form-container {
    background: #fff;
    padding: 2px 8px 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-top: 6px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: max-height .4s, opacity .4s, transform .4s;
}
.comment-form-container.show {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

/* Свёрнутые комментарии (в similar / lazy-load) */
.comment-spoiler-content { margin-top: 5px; }
.comment-spoiler { display: none !important; }
.comment-spoiler-content .comment-item {
    background: #fff;
    border-radius: 1px;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-left: 4px solid #498bfa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.comment-spoiler-content .moderator-badge { display: none !important; }
.comment-spoiler-content .comment-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
.comment-spoiler-content .comment-meta { margin-left: auto; font-size: 12px; color: #888; }
.comment-spoiler-content .comment-divider { height: 1px; background: #eee; margin: 4px 0 8px; }
.comment-spoiler-content .comment-text { line-height: 1.6; color: #222; }
.comment-spoiler-content .comment-empty,
.comment-spoiler-content .comment-error {
    color: #999;
    text-align: center;
    padding: 10px 0;
}
.comment-spoiler-content .comentdat,
.comment-spoiler-content .sub-textcomm { display: none !important; }


/* ============================================================================
   13. CAPTION SPOILER (подпись к картинке/видео)
   ========================================================================= */

.caption-spoiler {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    margin: 12px 0;
    width: 100%;
}
.caption-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    cursor: pointer;
    list-style: none;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    border-bottom: 1px solid transparent;
    transition: all .2s ease;
}
.caption-summary:hover { background: #f0f0f0; }
.caption-summary::-webkit-details-marker { display: none; }
.caption-icon { font-size: 14px; }
.caption-title { flex: 1; }
.spoiler-arrow { font-size: 12px; transition: transform .2s ease; }
.caption-spoiler[open] .spoiler-arrow { transform: rotate(180deg); }
.caption-spoiler[open] .caption-summary { border-bottom: 1px solid #e0e0e0; }
.caption-content { padding: 16px; margin: 0; animation: spoilerFadeIn .3s ease-out; }
.caption-text {
    color: #2d3748;
    font-size: 16px;
    line-height: 1.6;
    word-wrap: break-word;
    font-weight: 400;
    text-align: justify;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    letter-spacing: -.01em;
    white-space: pre-wrap;
    hyphens: auto;
}
.caption-text p { margin: 0; line-height: 1.6; }
@keyframes spoilerFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================================
   14. SIDE BOXES
   ========================================================================= */

.side-box {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
    border-radius: 0;
    overflow: visible;
}
.side-box + .side-box { margin-top: 15px; }

.side-bt {
    padding: 10px 15px;
    background: #fcfcfc;
    color: rgba(0, 0, 0, .75);
}
.side-bc { padding: 9px; }

.nav-title { margin-bottom: 5px; }
.nav-list + .nav-title { margin-top: 15px; }
.nav-list li {
    width: 47%;
    line-height: 24px;
    font-size: 14px;
}
.side-item { width: 47%; margin-bottom: 15px; display: block; }
.side-title { margin-top: 7px; }

/* Список категорий в сайдбаре */
.clean-category-item { list-style: none; margin-bottom: 5px; }
.clean-category-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #4a545c;
    text-decoration: none;
    transition: all .3s;
}
.clean-category-link:hover {
    background: #f5f5f5;
    color: #4f6173;
    text-decoration: none;
}
.clean-icon { margin-right: 10px; font-size: 18px; }
.clean-name { flex: 1; font-weight: 500; }


/* ============================================================================
   15. FLOATING BUTTONS
   ========================================================================= */

#gotop, #gohome, #gocategories {
    display: none;
    position: fixed;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, .5);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
    transition: all .3s;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, .1);
}
#gotop { right: 15px; }
#gohome { left: 15px; }
#gocategories { left: 50%; transform: translateX(-50%); }

#gotop:hover, #gohome:hover, #gocategories:hover {
    background: rgba(0, 0, 0, .7);
    transform: scale(1.1);
}
#gocategories:hover { transform: translateX(-50%) scale(1.1); }

#gotop span, #gohome span, #gocategories span {
    color: rgba(255, 255, 255, .9);
    font-size: 20px;
    transition: color .3s;
}
#gotop:hover span, #gohome:hover span, #gocategories:hover span { color: #fff; }


/* ============================================================================
   16. SIDE PANEL (Mobile Menu)
   ========================================================================= */

.side-panel {
    position: fixed;
    top: 0; right: -300px;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 10000;
    transition: right .3s;
    overflow-y: auto;
}
.side-panel.active { right: 0; }

.close-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, .5);
    z-index: 9999;
}

.side-panel-content { padding: 20px; }
.side-panel-header h3 { margin: 0 0 15px; padding: 0; color: #4f6173; }
.side-panel-search { margin-bottom: 15px; }
.side-search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}
.side-search-results {
    display: none;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
}
.side-categories-list { display: flex; flex-direction: column; }
.side-category-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    color: #4a545c;
    text-decoration: none;
}
.side-category-item:hover { background: #f5f5f5; color: #4f6173; }
.side-category-icon { margin-right: 10px; font-size: 18px; }
.side-category-name { flex: 1; }


/* ============================================================================
   17. CATEGORY GRID (cn-*) + Cat & Dog
   ========================================================================= */

.cn {
    --cn-tx: #1a202c;
    --cn-dim: #718096;
    --cn-bd: #edf2f7;
    --cn-acc: #c53030;
    --cn-acc-soft: #fef2f2;
    position: relative;
    padding: 8px;
    font-family: inherit;
}
.cn, .cn * { box-sizing: border-box; }

.cn-sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Тулбар */
.cn-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    min-height: 30px;
    height: 30px;
    padding: 0 !important;
}
.cn-bar > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.cn-bar > *:not(.cn-runway) { position: relative; z-index: 1; }

.cn-runway {
    position: absolute;
    left: 0; right: 0;
    top: 0; bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.cn-recent {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.cn-recent::-webkit-scrollbar { display: none; }
.cn-recent[hidden] { display: none; }

.cn-rc {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 7px;
    font-size: 11px;
    font-weight: 500;
    background: #f7fafc;
    border: 1px solid var(--cn-bd);
    border-radius: 11px;
    color: #4a5568;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s;
}
.cn-rc:hover {
    background: var(--cn-acc-soft);
    border-color: #fed7d7;
    color: var(--cn-acc);
}

.cn-spacer { flex: 1 1 auto; min-width: 0; }

/* Инлайн-поиск */
.cn-si {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    height: 26px;
    border-radius: 7px;
    border: 1.5px solid transparent;
    background: transparent;
    transition: flex-grow .3s cubic-bezier(.4, 0, .2, 1),
                background .2s ease, border-color .2s ease,
                padding .2s ease, box-shadow .2s ease;
}
.cn-si.open {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 4px 0 2px;
    background: #f7fafc;
    border-color: #edf2f7;
}
.cn-si.open:focus-within {
    background: #fff;
    border-color: var(--cn-acc);
    box-shadow: 0 0 0 3px rgba(197, 48, 48, .1);
}

.cn-si-input {
    flex: 0 0 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    height: 100%;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 12px;
    color: var(--cn-tx);
    outline: none;
    opacity: 0;
    overflow: hidden;
    -webkit-appearance: none;
    transition: opacity .18s ease;
}
.cn-si-input::placeholder { color: #a0aec0; }
.cn-si.open .cn-si-input {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 4px !important;
    opacity: 1 !important;
}

.cn-si-x {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    border: 0; background: none;
    color: #a0aec0;
    font-size: 12px; line-height: 1;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: color .15s ease, transform .12s ease;
}
.cn-si-x:hover { color: var(--cn-acc); }
.cn-si-x:active { transform: scale(.88); }
.cn-si-x[hidden] { display: none; }

/* Значки 🔍 🎲 */
.cn-sp {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    padding: 0; margin: 0;
    border: 0; background: none;
    color: #a0aec0;
    cursor: pointer;
    line-height: 1;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: color .18s ease, transform .12s ease;
    font-family: inherit;
}
.cn-sp:hover { color: #498bfa; }
.cn-sp:active { transform: scale(.88); }
.cn-sp svg {
    display: block;
    width: 16px; height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}
.cn-sp.emoji {
    font-size: 16px;
    line-height: 1;
    opacity: .75;
    transition: opacity .18s ease, transform .12s ease;
}
.cn-sp.emoji:hover { opacity: 1; }

/* Выпадающий список */
.cn-dd {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: #fff;
    border: 1px solid var(--cn-bd);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
    max-height: 260px;
    overflow-y: auto;
    padding: 3px;
    z-index: 100;
}
.cn-dd[hidden] { display: none; }
.cn-dd-i {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 8px; border-radius: 5px;
    font-size: 12px; color: var(--cn-tx);
    text-decoration: none; cursor: pointer;
    transition: background .12s, color .12s;
}
.cn-dd-i:hover, .cn-dd-i.act {
    background: var(--cn-acc-soft);
    color: var(--cn-acc);
}
.cn-dd-i > span:first-child {
    font-size: 14px; width: 18px;
    text-align: center; flex-shrink: 0;
}
.cn-dd-i > span:last-child {
    flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; font-weight: 500;
}
.cn-dd-i mark {
    background: transparent;
    color: var(--cn-acc);
    font-weight: 700;
}
.cn-dd-empty {
    padding: 14px 10px; text-align: center;
    font-size: 12px; color: var(--cn-dim); line-height: 1.5;
}
.cn-dd-empty b { color: var(--cn-tx); }

/* Сетка категорий */
.cn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 8px;
    margin: 0; padding: 0;
    list-style: none;
}
.cn-grid > li { margin: 0; padding: 0; }

.cn-card {
    position: relative;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 5px;
    min-height: 74px;
    padding: 11px 6px 9px;
    background: #fff;
    border: 1px solid var(--cn-bd);
    border-radius: 9px;
    text-decoration: none;
    color: var(--cn-tx);
    text-align: center;
    overflow: hidden;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.cn-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--stripe, #ff9ec1);
}
.cn-card:hover, .cn-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--stripe, #ff9ec1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .10);
    outline: none;
}
.cn-card:active { transform: translateY(-1px); }

.cn-ico {
    font-size: 24px;
    line-height: 1;
    transition: transform .2s cubic-bezier(.34, 1.56, .64, 1);
}
.cn-card:hover .cn-ico { transform: scale(1.15) rotate(-5deg); }

.cn-lbl {
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 28px;
    word-break: break-word;
    hyphens: auto;
}

@keyframes cnPop {
    from { opacity: 0; transform: translateY(4px) rotate(var(--rot, 0)); }
    to   { opacity: 1; transform: translateY(0) rotate(var(--rot, 0)); }
}
.cn-card {
    opacity: 0;
    animation: cnPop .3s ease forwards;
}

/* ===== КОШКА ===== */
.cn-cat-wander {
    position: absolute;
    left: 0; bottom: 0;
    width: 26px; height: 26px;
    will-change: transform;
    transition: transform .8s linear;
}
.cn-cat-mirror {
    position: relative;
    width: 100%; height: 100%;
    transition: transform .18s linear;
}
.cn-cat-wander.flip .cn-cat-mirror { transform: scaleX(-1); }

.cn-cat-body {
    position: absolute;
    left: 50%; bottom: 2px;
    transform: translateX(-50%);
    width: 18px; height: 16px;
    background: #2d3748;
    border-radius: 50% 50% 45% 45%;
    box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .15),
                inset 2px 2px 0 rgba(255, 255, 255, .08);
    animation: cnCatBreathe 2.4s ease-in-out infinite;
}
@keyframes cnCatBreathe {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50%      { transform: translateX(-50%) scale(1.04, 1.02); }
}
.cn-cat-wander.walking .cn-cat-body { animation: cnCatBob .4s ease-in-out infinite; }
@keyframes cnCatBob {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(-2deg); }
    50%      { transform: translateX(-50%) translateY(-2px) rotate(2deg); }
}
.cn-cat-wander.jumping .cn-cat-body { animation: cnCatJump .55s ease-out; }
@keyframes cnCatJump {
    0%   { transform: translateX(-50%) translateY(0) scale(1, 1); }
    20%  { transform: translateX(-50%) translateY(0) scale(1.15, .85); }
    50%  { transform: translateX(-50%) translateY(-8px) scale(.95, 1.1); }
    80%  { transform: translateX(-50%) translateY(0) scale(1.05, .95); }
    100% { transform: translateX(-50%) translateY(0) scale(1, 1); }
}
.cn-cat-wander.pouncing .cn-cat-body { animation: cnCatPounce .7s ease-out; }
@keyframes cnCatPounce {
    0%   { transform: translateX(-50%) translateY(0) scale(1); }
    30%  { transform: translateX(-50%) translateY(-9px) scale(1.1, 1.05); }
    60%  { transform: translateX(-50%) translateY(2px) scale(1.15, .85); }
    100% { transform: translateX(-50%) translateY(0) scale(1); }
}
.cn-cat-ear {
    position: absolute;
    top: -3px;
    width: 7px; height: 8px;
    background: #2d3748;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    transform-origin: 50% 100%;
}
.cn-cat-ear-l { left: 3px; transform: rotate(-12deg); }
.cn-cat-ear-r { right: 3px; transform: rotate(12deg); }
.cn-cat-ear::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 1px;
    transform: translateX(-50%);
    width: 3px; height: 4px;
    background: #f8a4c0;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.cn-cat-eye {
    position: absolute;
    top: 4px;
    width: 2.5px; height: 2.5px;
    background: #fff;
    border-radius: 50%;
    animation: cnCatBlink 4.5s infinite;
}
.cn-cat-eye-l { left: 4px; }
.cn-cat-eye-r { right: 4px; }
@keyframes cnCatBlink {
    0%, 92%, 100% { height: 2.5px; top: 4px; }
    94%, 96%      { height: .5px; top: 5px; }
}
.cn-cat-nose {
    position: absolute;
    left: 50%; top: 7.5px;
    transform: translateX(-50%);
    width: 2px; height: 1.5px;
    background: #f8a4c0;
    border-radius: 50% 50% 60% 60%;
}
.cn-cat-paw {
    position: absolute;
    bottom: -1px;
    width: 4px; height: 3px;
    background: #2d3748;
    border-radius: 50% 50% 30% 30%;
}
.cn-cat-paw-l { left: 4px; }
.cn-cat-paw-r { right: 4px; }
.cn-cat-wander.walking .cn-cat-paw-l { animation: cnCatPaw .4s ease-in-out infinite; }
.cn-cat-wander.walking .cn-cat-paw-r { animation: cnCatPaw .4s ease-in-out infinite .2s; }
@keyframes cnCatPaw {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-1px); }
}
.cn-cat-tail {
    position: absolute;
    right: -2px; bottom: 4px;
    width: 10px; height: 10px;
    border: 2px solid #2d3748;
    border-top-color: transparent;
    border-left-color: transparent;
    border-radius: 0 50% 50% 0;
    transform-origin: 0% 100%;
    transform: rotate(-15deg);
    animation: cnCatTail 1.8s ease-in-out infinite;
}
@keyframes cnCatTail {
    0%, 100% { transform: rotate(-15deg); }
    50%      { transform: rotate(15deg); }
}
.cn-cat-wander.walking .cn-cat-tail { animation-duration: .5s; }
.cn-cat-wander.jumping .cn-cat-tail,
.cn-cat-wander.pouncing .cn-cat-tail { animation-duration: .3s; }

/* ===== СОБАКА (русский спаниель) ===== */
.cn-dog-wander {
    position: absolute;
    left: 0; bottom: 0;
    width: 34px; height: 24px;
    will-change: transform;
    transition: transform .8s linear;
    pointer-events: none;
}
.cn-dog-mirror {
    position: relative;
    width: 100%; height: 100%;
    transition: transform .18s linear;
}
.cn-dog-wander.flip .cn-dog-mirror { transform: scaleX(-1); }

.cn-dog-body {
    position: absolute;
    left: 50%; bottom: 2px;
    transform: translateX(-50%);
    width: 22px; height: 14px;
    background: #fafaf7;
    border-radius: 48% 52% 42% 42% / 55% 60% 45% 45%;
    box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .10),
                inset 2px 2px 0 rgba(255, 255, 255, .9);
    animation: cnDogBreathe 2.2s ease-in-out infinite;
}
.cn-dog-body::before {
    content: '';
    position: absolute;
    right: 1px; top: 1px;
    width: 11px; height: 9px;
    background: #2d3748;
    border-radius: 60% 50% 40% 50% / 55% 60% 40% 45%;
}
@keyframes cnDogBreathe {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50%      { transform: translateX(-50%) scale(1.03, 1.02); }
}
.cn-dog-head {
    position: absolute;
    left: -3px; top: -3px;
    width: 13px; height: 12px;
    background: #fafaf7;
    border-radius: 48% 55% 45% 45% / 55% 60% 45% 45%;
    box-shadow: inset -1px -1px 0 rgba(0, 0, 0, .06);
}
.cn-dog-head::before {
    content: '';
    position: absolute;
    right: 1px; top: 0;
    width: 7px; height: 6px;
    background: #2d3748;
    border-radius: 50% 60% 40% 50% / 60% 60% 40% 40%;
}
.cn-dog-snout {
    position: absolute;
    left: -3px; bottom: 1px;
    width: 6px; height: 5px;
    background: #fafaf7;
    border-radius: 45% 55% 55% 55%;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .06);
}
.cn-dog-nose {
    position: absolute;
    left: -4px; bottom: 3px;
    width: 3px; height: 2.5px;
    background: #1a202c;
    border-radius: 50% 50% 60% 60%;
    z-index: 2;
}
.cn-dog-eye {
    position: absolute;
    top: 3px;
    width: 2px; height: 2.5px;
    background: #1a202c;
    border-radius: 50%;
    animation: cnDogBlink 3.8s infinite;
    z-index: 2;
}
.cn-dog-eye-l { left: 2px; }
.cn-dog-eye-r { left: 6px; }
@keyframes cnDogBlink {
    0%, 90%, 100% { height: 2.5px; top: 3px; }
    93%, 96%      { height: .5px; top: 4px; }
}
.cn-dog-ear {
    position: absolute;
    left: 0; top: 1px;
    width: 6px; height: 9px;
    background: #2d3748;
    border-radius: 55% 45% 45% 55% / 30% 30% 75% 75%;
    transform-origin: 50% 0;
    animation: cnDogEarSway 1.8s ease-in-out infinite;
}
@keyframes cnDogEarSway {
    0%, 100% { transform: rotate(-10deg); }
    50%      { transform: rotate(5deg); }
}
.cn-dog-tail {
    position: absolute;
    right: 2px; top: 4px;
    width: 7px; height: 4px;
    background: #2d3748;
    border-radius: 60% 40% 40% 60% / 50% 50% 50% 50%;
    transform-origin: 0% 50%;
    animation: cnDogTailWag .32s ease-in-out infinite;
}
@keyframes cnDogTailWag {
    0%, 100% { transform: rotate(-22deg); }
    50%      { transform: rotate(22deg); }
}
.cn-dog-leg {
    position: absolute;
    bottom: -1px;
    width: 3px; height: 4px;
    background: #fafaf7;
    border-radius: 40% 40% 50% 50%;
    box-shadow: inset -1px -1px 0 rgba(0, 0, 0, .10);
    transform-origin: 50% 100%;
}
.cn-dog-leg-fl { left: 3px; }
.cn-dog-leg-fr { left: 7px; }
.cn-dog-leg-bl { right: 8px; }
.cn-dog-leg-br { right: 4px; }

.cn-dog-wander.walking .cn-dog-body { animation: cnDogBob .42s ease-in-out infinite; }
@keyframes cnDogBob {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(-1.5deg); }
    50%      { transform: translateX(-50%) translateY(-1.5px) rotate(1.5deg); }
}
.cn-dog-wander.walking .cn-dog-leg-fl { animation: cnDogStep .42s ease-in-out infinite; }
.cn-dog-wander.walking .cn-dog-leg-br { animation: cnDogStep .42s ease-in-out infinite; }
.cn-dog-wander.walking .cn-dog-leg-fr { animation: cnDogStep .42s ease-in-out infinite .21s; }
.cn-dog-wander.walking .cn-dog-leg-bl { animation: cnDogStep .42s ease-in-out infinite .21s; }
@keyframes cnDogStep {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-1.5px); }
}
.cn-dog-wander.barking .cn-dog-body { animation: cnDogBark .28s ease-in-out 2; }
@keyframes cnDogBark {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(0); }
    30%      { transform: translateX(-50%) translateY(-2px) rotate(-3deg); }
    70%      { transform: translateX(-50%) translateY(-1px) rotate(2deg); }
}
.cn-dog-wander.barking .cn-dog-ear { animation-duration: .18s; }
.cn-dog-wander.barking .cn-dog-tail { animation-duration: .12s; }
.cn-dog-wander.scratching .cn-dog-body { animation: cnDogScratch .5s ease-in-out; }
@keyframes cnDogScratch {
    0%, 100% { transform: translateX(-50%) rotate(0); }
    20%, 80% { transform: translateX(-50%) rotate(-6deg); }
}
.cn-dog-wander.scratching .cn-dog-head { animation: cnDogScratchHead .5s ease-in-out; }
@keyframes cnDogScratchHead {
    0%, 100% { transform: rotate(0); }
    20%, 80% { transform: rotate(-12deg); }
}
.cn-dog-wander.scratching .cn-dog-leg-br { animation: cnDogScratchLeg .14s ease-in-out infinite; }
@keyframes cnDogScratchLeg {
    0%, 100% { transform: translate(-12px, -9px) rotate(-55deg); }
    50%      { transform: translate(-12px, -11px) rotate(-68deg); }
}
.cn-dog-bark {
    position: absolute;
    top: -6px; left: 50%;
    transform: translateX(-50%) scale(.4);
    padding: 1px 5px;
    background: #fff;
    color: #c53030;
    font-size: 8px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .2px;
    border-radius: 7px;
    border: 1px solid #2d3748;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s ease, transform .18s cubic-bezier(.34, 1.56, .64, 1);
    z-index: 5;
}
.cn-dog-wander.barking .cn-dog-bark {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* ===== КЛУБОК ===== */
.cn-kit {
    position: absolute;
    left: 0; bottom: 4px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffd166 0%, #ef476f 70%);
    box-shadow: inset -2px -2px 3px rgba(0, 0, 0, .25),
                inset 2px 2px 3px rgba(255, 255, 255, .35),
                0 2px 4px rgba(0, 0, 0, .15);
    transition: transform .8s cubic-bezier(.3, .7, .4, 1), opacity .3s;
    will-change: transform;
    z-index: 2;
}
.cn-kit[hidden] { display: none; }
.cn-kit::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, .6);
    animation: cnKitSpin 1.2s linear infinite;
}
.cn-kit::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .4);
    border-right-color: transparent;
}
@keyframes cnKitSpin { to { transform: rotate(360deg); } }
.cn-kit.rolling::before { animation-duration: .35s; }
.cn-kit.caught {
    transform: scale(.7) !important;
    opacity: 0;
}

/* Рулетка */
.cn-roll {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    background: rgba(26, 32, 44, .82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: cnFade .18s ease;
}
.cn-roll[hidden] { display: none; }
@keyframes cnFade { from { opacity: 0; } to { opacity: 1; } }
.cn-roll-in {
    text-align: center;
    color: #fff;
    padding: 24px;
    transform: rotate(-1deg);
}
.cn-roll-k {
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, .55);
    text-transform: uppercase;
    margin-bottom: 12px;
}
.cn-roll-ic {
    font-size: 58px;
    line-height: 1;
    display: inline-block;
    animation: cnSpin .85s linear infinite;
}
@keyframes cnSpin { to { transform: rotate(360deg); } }
.cn-roll-nm {
    font-size: 24px;
    font-weight: 800;
    color: #ff9ec1;
    margin-top: 12px;
    min-height: 34px;
    transition: transform .08s, color .2s;
}
.cn-roll-nm.final {
    color: #f6d365;
    transform: scale(1.1);
}


/* ============================================================================
   18. ADMIN ZONES
   ========================================================================= */

#nwM16 input, #nwM16 select, #nwM16 textarea {
    font-size: 18px !important;
    padding: 10px !important;
}
#nwM16 td { font-size: 16px !important; }
#nwM16 input[type="submit"] {
    font-size: 18px !important;
    padding: 12px 24px !important;
}

/* Скрываем стандартные uCoz-обёртки редактора */
.form-textarea #txtPart555brief > div:first-child,
.form-textarea #txtPart555message > div:first-child,
.form-textarea .ucoz-editor-bottom { display: none; }
.form-textarea #txtPart555brief > div:nth-child(2),
.form-textarea #txtPart555message > div:nth-child(2) { display: none; }
#iplus input[type="button"] {
    padding: 0 4px !important;
    height: 20px !important;
    line-height: 20px !important;
}

/* Зона OCR (AI-обработка) */
#ocrDropZone {
    text-align: center;
    padding: 10px;
    border: 2px dashed #28a745;
    background: #f8fff9;
    margin: 0;
}

/* Зона цензуры */
#censorDropZone {
    margin: 12px 0;
    padding: 18px;
    border: 2px dashed #dc3545;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    background: #fff5f5;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
    user-select: none;
}
#censorDropZone:hover {
    background: #ffecec;
    border-color: #b02a37;
}
#censorDropZone.drag-over {
    background: #f8d7da;
    border-color: #b02a37;
    transform: scale(1.01);
}
#censorDropZone .cz-title {
    font-size: 15px;
    font-weight: bold;
    color: #dc3545;
}
#censorDropZone .cz-sub {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}
#censorDropZone .cz-hint {
    font-size: 11px;
    color: #999;
    margin-top: 6px;
}
#censorDropZone .cz-status {
    margin-top: 8px;
    font-size: 12px;
    color: #dc3545;
    font-weight: bold;
    min-height: 16px;
    max-height: 220px;
    overflow-y: auto;
    text-align: left;
    background: #fff;
    padding: 6px;
    border-radius: 3px;
    border: 1px solid #eee;
}

/* Зона watermark (динамически создаётся watermark-rotator.js) */
#wmRemovalDropZone {
    margin: 12px 0;
    padding: 18px;
    border: 2px dashed #007bff;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    background: #f0f8ff;
    transition: border-color .15s, background .15s;
}
#wmRemovalDropZone.drag-over {
    border-color: #0056b3;
    background: #e3f2fd;
}


/* ============================================================================
   19. FORMS (Login / Register / uf-*)
   ========================================================================= */

.uf-reg-wrap {
    text-align: left;
    max-width: 700px;
}
#uf-register .uf-field {
    margin: 15px 0 20px;
    position: relative;
}
#uf-register .uf-field > label {
    display: inline-block;
    margin: 3px 0;
    text-align: left;
    vertical-align: top;
}
#uf-register .uf-field label { display: inline-block; }
#uf-register .uf-required { color: red; }
#uf-register .uf-field input[type=text]:not([name=captcha]):not([name=code]) {
    width: 85%;
    font-size: 1em;
    padding-left: 5px;
    padding-right: 5px;
}
#uf-register .uf-field input { width: 40%; font-size: 1em; padding: 0 5px; }
#uf-register .uf-field textarea { width: 40%; font-size: 1em; padding: 0 5px; }
#uf-register .uf-field img { vertical-align: middle; }
#uf-register .uf-field .uf-fields-groups {
    display: inline-block;
    width: 40%;
}
#uf-register .uf-field .uf-fields-groups input { width: initial; }
#uf-register .uf-field > .avatar-select {
    display: block;
    margin-left: 35%;
    position: absolute;
}

/* Кнопка "показать пароль" */
#uf-register input#uf-show-pass[type="checkbox"] { display: none; }
#uf-register input#uf-show-pass[type="checkbox"] + label span {
    display: inline-block;
    width: 16px; height: 16px;
    background: url(/.s/img/icon/social/pw.svg) no-repeat center center #c6c6c6;
    background-size: 80% 80%;
    vertical-align: middle;
    margin-left: -23px;
    cursor: pointer;
    border-radius: 10px;
}
#uf-register input#uf-show-pass[type="checkbox"] + label { display: inline-block; }
#uf-register input#uf-show-pass[type="checkbox"]:checked + label span {
    background: url(/.s/img/icon/social/pw-s.svg) no-repeat center center #c6c6c6;
    background-size: 80% 80%;
}
#uf-register .uf-changed input#uf-show-pass[type="checkbox"] + label span { margin-left: -38px; }

/* Иконки статуса */
#uf-register .uf-status-icon {
    display: none;
    vertical-align: middle;
    width: 16px; height: 16px;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}
#uf-register .uf-status-icon.text-field { margin-left: -23px; }
#captcha-block-site-user-reg,
#uf-register .uf-field > label.captcha-block {
    width: auto;
    display: inline-block;
}
#uf-captcha-img { width: 125px; height: 35px; }
#uf-captcha-status-icon { margin-left: -193px; }
#uf-captcha { width: 80px !important; }
#uf-register .captcha img { vertical-align: middle; }
#uf-register .uf-refresh { cursor: pointer; }
#uf-submit { margin: 10px 0; clear: both; }
#uf-submit.disabled { opacity: .2; }
#uf-register .uf-field input.uf-gender,
#uf-register .uf-field input.uf-click { width: auto; }
#uf-register .uf-field label.uf-inline-label,
#uf-register .uf-field label#uf-terms-label { display: inline; }
#uf-register .uf-fields-wrap,
#uf-register .uf-soc-icons {
    float: left;
    width: 50%;
    padding: 1px 0;
}
#uf-register .uf-soc-closeselect { display: none; }
.uf-soc-icons ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.uf-soc-icons ul li {
    text-align: left;
    float: left;
    width: 50%;
    margin: 2px 0;
}
#uf-register .uf-soc-icons ul li b {
    display: block;
    position: absolute;
    left: 0;
    padding-left: 42px;
    top: 8px;
    width: 60px;
    font-weight: normal;
}

/* Всплывающие подсказки статуса */
#uf-register span.fail { display: inline-block; background-image: url(/.s/img/icon/social/fail.svg); }
#uf-register span.pass { display: inline-block; background-image: url(/.s/img/icon/social/pass.svg); }
#uf-register span.wait { display: inline-block; background-image: url(/.s/img/icon/ajsml.gif); }
#uf-register span.uf-status {
    display: none;
    position: absolute;
    right: -15px;
    margin: 0;
    z-index: 5;
}
#uf-register span.uf-status p {
    background: rgba(0, 0, 0, .7);
    color: #fff;
    padding: 5px 10px;
    white-space: nowrap;
    font: 12px/29px 'Arial', sans-serif;
    border-radius: 3px;
    margin: 6px 0 0;
}
#uf-register span.uf-status i {
    float: right;
    margin-right: 18px;
    display: block;
    width: 0; height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(0, 0, 0, .7);
}

/* Логин-форма (us4.t) */
.login-form-wrapper { padding: 20px; }
.loginField,
.loginButton {
    font-size: 14px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
}


/* ============================================================================
   20. USER PROFILE POPUP (us5.t / us7.t)
   ========================================================================= */

.popuptable { width: 98%; margin: 0 auto; }
.popuptitle {
    font-weight: 700;
    font-size: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
}
.popupbody { font-size: 14px; }
.udtb { text-align: left; padding: 3px; }
.udtlb { clear: left; float: left; width: 150px; }


/* ============================================================================
   21. MEDIA QUERIES
   ========================================================================= */

/* Планшет */
@media (max-width: 1220px) {
    .center { max-width: 1040px; }
    .main { width: calc(100% - 315px); }
    .grid-thumb { margin: 0 -7px; }
    .grid-thumb .short {
        margin-left: 7px; margin-right: 7px;
        margin-bottom: 15px;
        width: calc((100% - 42px) / 3);
    }
}

@media (max-width: 1040px) {
    .center { max-width: 768px; }
    .side { display: none; }
    .main { width: 100%; }
    .short { padding: 0; }
    .btn-menu { display: flex; }
    .header-content { height: 70px; padding: 0 15px; }
    .logo-section { min-width: auto; flex-direction: row; align-items: center; }
    .site-tagline { display: none; }
    .search-section { margin: 0 15px; max-width: 300px; }
    .menu-section { margin-left: 0 !important; }
    .search-section { margin-left: auto !important; margin-right: 10px !important; }
    .search-section.expanded { flex: 1 1 auto !important; max-width: 400px !important; }
    .logo-section { max-width: none !important; }
}

@media (max-width: 768px) {
    main .main h1 { font-size: 1.6rem; margin: 0 0 10px; }
    .desktop-ad { display: none; }
    .mobile-ad { display: block; }
    .quote-block { margin: 10px 0; padding: 12px; }
    .content-container { height: 300px; }
    .title-section { padding: 6px 10px 4px; }
    .footer-section { padding: 4px 10px 6px; }
    .header-row { flex-direction: column; align-items: flex-start; gap: 6px; }
    .title-link { margin-right: 0; width: 100%; }
    .header-stats { align-self: flex-end; gap: 8px; }
    .footer-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .rating-wrapper { margin-left: 0; align-self: flex-end; }
    .search-section { max-width: 250px; }

    /* Убираем отступы по бокам на смартфонах */
    .center {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    .wrap {
        min-width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .main { width: 100% !important; padding: 0 !important; }
    .short {
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-left: none !important;
        border-right: none !important;
        width: 100% !important;
    }
    .grid-thumb { margin: 0 !important; padding: 0 5px !important; }
    .grid-thumb .short {
        margin-left: 5px !important;
        margin-right: 5px !important;
    }
    .header-content { max-width: 100% !important; }

    /* Комментарии */
    .comment-item { padding: 14px 16px; margin: 12px 0; }
    .moderator-comment { padding: 14px 16px; }
    .comment-header { margin-bottom: 8px; }
    .comment-author { font-size: 15px; }
    .comment-meta { font-size: 12px; gap: 12px; }
    .comment-text { font-size: 16px; }
    .comment-divider { margin: 8px 0 13px; }

    /* Формы */
    .uf-reg-wrap { text-align: center; }
    a.login-with i { width: 44px; height: 44px; border-radius: 24px; }
    #uf-register .uf-fields-wrap,
    #uf-register .uf-soc-icons {
        float: none; width: 100%; text-align: center;
    }
    #uf-register .uf-reg-wrap,
    #uf-register .uf-field label,
    #uf-register .uf-field { text-align: center; }
    #uf-register .uf-soc-icons ul { margin: 0 auto; overflow: auto; display: inline-block; }
    #uf-register .uf-soc-icons ul li { width: auto; margin: 5px; }
    #uf-register .uf-soc-icons a.login-with b { display: none; }
    #uf-register .uf-soc-closeselect { display: block; }
    #uf-register .uf-soc-openselect { display: none; }
    #uf-register .uf-field input { padding: 10px 4%; font-size: 120%; margin: 0 auto; }
    #uf-submit { margin: 0 auto; }
    #uf-register input#uf-show-pass[type="checkbox"] + label span { margin-left: -38px; }
    #uf-register .uf-changed input#uf-show-pass[type="checkbox"] + label span { margin-left: -60px; }

    /* Caption spoiler */
    .caption-summary { padding: 8px 14px; font-size: 13px; }
    .caption-content { padding: 14px; }
    .caption-text { font-size: 15px; }
}

@media (max-width: 650px) {
    .header-content { height: 60px; }
    .logo-link img { height: 40px; }
    .search-section { margin: 0 10px; max-width: 200px; }
    .search-box input { height: 36px; font-size: 13px; }
    .search-box button { height: 36px; width: 36px; }
}

@media (max-width: 600px) {
    .menu-links { gap: 4px 8px; }
    .sort-link, .filter-label { font-size: 13px; }
    .sort-link { padding: 4px 10px; }
}

@media (max-width: 590px) {
    .center { max-width: 480px; }
    .s-img { width: 80px; height: 120px; float: left; margin: 0 15px 5px 0; }
    .s-text { width: 100%; padding-bottom: 10px; }
    .grid-thumb .short { width: calc((100% - 28px) / 2); }
}

@media (max-width: 480px) {
    .header-content { padding: 0 10px; }
    .search-section { display: none; }
    .logo-section { flex: 1; }
    .content-container { height: 250px; }
    .categories a { font-size: 12px; }
    .category-name { font-size: 12px; }
    #gotop, #gohome, #gocategories { bottom: 15px; width: 45px; height: 45px; }
    #gohome { left: 10px; }
    #gocategories { left: 50%; transform: translateX(-50%); }
    #gotop { right: 10px; }
    #gocategories:hover { transform: translateX(-50%) scale(1.1); }
    #gotop span, #gohome span, #gocategories span { font-size: 18px; }

    /* Комментарии */
    .comment-item { padding: 12px 14px; margin: 10px 0; }
    .moderator-comment { padding: 12px 14px; }
    .comment-header { flex-direction: column; align-items: flex-start; gap: 6px; }
    .comment-meta { width: 100%; justify-content: space-between; font-size: 11px; gap: 10px; }
    .comment-author { font-size: 14px; }
    .comment-text { font-size: 15px; line-height: 1.4; }
    .comment-divider { margin: 6px 0 11px; }

    /* Caption spoiler */
    .caption-summary { padding: 6px 12px; font-size: 12px; }
    .caption-content { padding: 12px; }
    .caption-text { font-size: 14px; line-height: 1.5; }

    /* Категории cn */
    .cn { padding: 6px; }
    .cn-bar { height: 28px; min-height: 28px; }
    .cn-cat-wander { width: 22px; height: 22px; }
    .cn-cat-body { width: 15px; height: 13px; }
    .cn-cat-ear { width: 6px; height: 7px; }
    .cn-kit { width: 15px; height: 15px; }
    .cn-dog-wander { width: 28px; height: 20px; }
    .cn-dog-body { width: 18px; height: 12px; }
    .cn-dog-head { width: 11px; height: 10px; }
    .cn-dog-ear { width: 5px; height: 8px; }
    .cn-dog-tail { width: 6px; height: 3.5px; }
    .cn-dog-leg { width: 2.5px; height: 3.5px; }
    .cn-dog-bark { font-size: 7px; top: -5px; padding: 1px 4px; }
    .cn-grid {
        grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
        gap: 6px;
    }
    .cn-card {
        min-height: 68px;
        padding: 9px 4px 7px;
        border-radius: 8px;
    }
    .cn-ico { font-size: 21px; }
    .cn-lbl { font-size: 10.5px; max-height: 26px; }
}

@media (max-width: 470px) {
    .center { max-width: 320px; }
    .s-meta { width: 100%; }
}


/* ============================================================================
   22. УВАЖЕНИЕ К prefers-reduced-motion
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
    .cn-card { animation: none; opacity: 1; }
    .cn-card:hover { transform: translateY(-2px); }
    .cn-card:hover .cn-ico { transform: none; }
    .cn-sp:active { transform: none; }
    .cn-si, .cn-si-input { transition: none; }
    .cn-cat-wander, .cn-kit,
    .cn-dog-wander, .cn-dog-mirror { transition: none !important; }
    .cn-cat-body, .cn-cat-tail, .cn-cat-eye,
    .cn-cat-paw, .cn-kit::before,
    .cn-dog-body, .cn-dog-ear, .cn-dog-tail,
    .cn-dog-eye, .cn-dog-leg,
    .cn-dog-bark { animation: none !important; }

    .short { animation: none; }
    .comment-item { animation: none; }
    .caption-content { animation: none; }
    .similar-item-wrapper { animation: none; }
    .humor-loader { animation: none; }
}


/* ============================================================================
   23. UTILITIES
   ========================================================================= */

.nowrap { white-space: nowrap; overflow: hidden; }
.hide-this { display: none; }
.fleft { float: left; }
.fright { float: right; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.absolute-top-left { position: absolute; width: 300px; }
.fixed-top-left { position: fixed; top: 0; width: 300px; margin-bottom: 0; }

.center-text { text-align: center; }

/* Информеры / реклама */
.ad-container {
    margin: 0 0;
    text-align: center;
    background: #fcfcfc;
}
.ad-label {
    display: block;
    font-family: Calibri, sans-serif;
    color: gray;
    font-size: 17px;
    padding: 5px 11px;
    cursor: default;
}
.desktop-ad { display: block; }
.mobile-ad { display: none; }
@media (max-width: 768px) {
    .desktop-ad { display: none; }
    .mobile-ad { display: block; }
}

/* Кнопки uCoz (общие) */
.button,
.pagi-load a,
.up-second li a,
.usp-edit a,
.qq-upload-button,
button:not(.color-btn):not([class*=fr]),
html input[type="button"],
input[type="reset"],
input[type="submit"],
.meta-fav a,
.usp-btn a {
    padding: 0 30px;
    display: inline-block;
    height: 40px;
    line-height: 40px;
    border-radius: 0;
    cursor: pointer;
    background: #ddd;
    color: #000;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
}
.button:hover,
.up-second li a:hover,
.usp-edit a:hover,
.qq-upload-button:hover,
.pagi-load a:hover,
.usp-btn a:hover,
button:not(.color-btn):hover,
html input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.meta-fav a:hover {
    background: #ddd;
    color: #000;
}

/* Поля ввода */
input[type="text"],
input[type="password"],
input[type="email"] {
    display: block;
    width: 100%;
    height: 40px;
    line-height: 40px;
    padding: 0 15px;
    color: #000;
    border: 1px solid #e3e3e3;
    background: #fff;
}
input:focus,
textarea:focus {
    outline: none;
    border-color: #498bfa;
    box-shadow: 0 0 0 2px rgba(73, 139, 250, .1);
}
input:focus::-webkit-input-placeholder,
input:focus::-moz-placeholder,
input:focus:-moz-placeholder,
input:focus:-ms-input-placeholder { color: transparent; }

textarea {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px solid #e3e3e3;
    background: #fff;
    border-radius: 0;
    overflow: auto;
    vertical-align: top;
    resize: vertical;
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
}

/* Кнопки форм */
input[type="submit"],
input[type="button"],
input[type="file"],
input[type="reset"] {
    border: none !important;
    border-radius: 3px !important;
    box-shadow: 0 0 2px #666 !important;
    font: bold 11px Sans-Serif !important;
    padding: 4px 8px !important;
    margin: 2px !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    color: #444 !important;
    cursor: pointer;
    background-image: linear-gradient(top, #eee, #e1e1e1) !important;
}
input[type="submit"]:hover, input[type="submit"]:focus,
input[type="button"]:hover, input[type="button"]:focus,
input[type="file"]:hover, input[type="file"]:focus,
input[type="reset"]:hover, input[type="reset"]:focus {
    box-shadow: 0 0 3px #333 !important;
    color: #7c9843 !important;
}
input[type="submit"]:active,
input[type="button"]:active,
input[type="file"]:active,
input[type="reset"]:active {
    box-shadow: 0 0 6px #666 !important;
}
input[type="submit"]:disabled,
input[type="button"]:disabled,
input[type="file"]:disabled,
input[type="reset"]:disabled { color: #999 !important; }

/* Информеры uCoz */
.cell_coment { list-style: none; padding: 0; margin: 0; }
.coment_info { background: #fff; padding: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.coment_os { position: relative; }
.coment_message { font-size: 17px; line-height: 1.5; }
.tip { display: block; }


/* ============================================================================
   24. PRINT
   ========================================================================= */

@media print {
    .header, .side, #gotop, #gohome, #gocategories,
    .material-footer, .ad-container, .cn-roll,
    .comment-form-container, #comment-toggle-btn { display: none !important; }
    .center { max-width: 100%; }
    .main { width: 100%; }
    body { font-size: 12pt; background: #fff; }
    a { color: #000; text-decoration: underline; }
}