/* Каталог в палитре ленты, без дополнительной боковой колонки. */
.catalog-page { background: #141414; color: #e1e3e6; }
.catalog-page .catalog-container { max-width: 980px; margin: 20px 0 60px; padding: 0 20px; }
.catalog-layout { display: block; }
.catalog-stream { min-width: 0; }
.catalog-search-form { flex: 0 1 280px; min-width: min(240px, 100%); margin-left: auto; padding: 0; }
.catalog-search-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.catalog-search-form > div { display: flex; align-items: center; min-width: 0; border: 1px solid #444; border-radius: 8px; background: #2c2c2c; }
.catalog-search-form input { width: 100%; min-width: 0; padding: 7px 8px; border: 0; background: transparent; color: #ddd; font: inherit; font-size: .76rem; outline: none; }
.catalog-search-form > div:focus-within { outline: 2px solid var(--accent-highlight); }
.catalog-search-form button { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: #aaa; cursor: pointer; }
.catalog-search-form button:hover { background: #444; color: #fff; }
.catalog-search-form svg { width: 17px; height: 17px; }
.catalog-reset-link { display: inline-block; margin: 0 2px 14px; color: var(--accent-text); text-decoration: none; font-size: .78rem; }
.catalog-publish-button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; margin-bottom: 16px; padding: 8px 16px; border: 1px solid #363636; border-radius: 12px; background: #222; color: #d6d6d6; text-decoration: none; font-size: .85rem; font-weight: 600; }
.catalog-publish-button { border-color: rgba(var(--accent-rgb), .35); color: var(--accent-text); }
.catalog-publish-button:hover { background: var(--accent-surface); }
.catalog-publish-button > span { font-size: 1.5rem; line-height: 1; font-weight: 400; }
.catalog-page .comic-grid { padding-top: 0; }
.catalog-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 2px 14px; }
.catalog-sort { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; border: 1px solid #333; border-radius: 11px; background: #1b1b1f; }
.catalog-sort-link { padding: 5px 10px; border-radius: 8px; color: #a8a8b0; text-decoration: none; font-size: .74rem; }
.catalog-sort-link:hover { background: #2a2a2f; color: #fff; }
.catalog-sort-link.is-active { background: rgba(var(--accent-rgb), .22); color: #fff; }
.catalog-rating, .catalog-views { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 6px; background: #2c2426; color: var(--accent-highlight); font-size: .65rem; font-variant-numeric: tabular-nums; }
.catalog-rating small { color: #9c8a8e; }
.catalog-views { background: #262930; color: #a6adba; }
.catalog-heading h1 { min-width: 0; font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
.catalog-heading .content-tag { font-size: inherit; color: var(--accent-text); border: 0; background: transparent; padding: 0; }
.catalog-result-count { display: grid; place-items: center; min-width: 23px; padding: 1px 7px; border-radius: 12px; color: #aaa; background: #2d2d2d; font-size: .72rem; font-variant-numeric: tabular-nums; }
.catalog-query-note { color: #999; margin: -6px 2px 14px; font-size: .8rem; overflow-wrap: anywhere; }
.catalog-page .authors-list { margin-bottom: 16px; padding: 14px 16px; border: 1px solid #363636; border-radius: 12px; background: #222; }
.catalog-page .authors-list h2 { margin: 0 0 10px; font-size: .85rem; }
.catalog-page .authors-list > div { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-page .authors-list a { padding: 5px 10px; border-radius: 8px; background: #333; color: var(--accent-text); text-decoration: none; font-size: .8rem; overflow-wrap: anywhere; }
/* Карточки без красного свечения и скачков при наведении. */
.catalog-page .catalog-comics-grid { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 16px; }
.catalog-page .comic-card { display: flex; flex-direction: column; min-width: 0; border-color: #363636; border-radius: 12px; background: #222; transition: border-color .18s; }
.catalog-page .comic-card:hover { transform: none; border-color: #505050; box-shadow: none; }
.catalog-page .comic-cover, .catalog-page .comic-cover.has-banner { width: 100%; height: auto; aspect-ratio: 4 / 5; background: #1b1b1b; }
.catalog-page .comic-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.catalog-page .comic-cover .comic-poster { top: auto; right: auto; left: 14px; bottom: 14px; width: 74px; height: 104px; border: 2px solid #bbb; border-radius: 7px; box-shadow: 0 4px 14px #0006; }
.catalog-page .comic-card:hover .comic-cover img { filter: brightness(1.04); }
.catalog-page .comic-like-count { position: absolute; z-index: 2; top: 10px; right: 10px; display: flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 14px; background: #171717c9; color: #ddd; font-size: .72rem; }
.catalog-page .comic-like-count svg { width: 14px; height: 14px; }
.catalog-page .comic-info { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 14px; }
.catalog-page .comic-card-labels { gap: 5px; margin-bottom: 7px; }
.catalog-genre { padding: 2px 7px; border-radius: 6px; background: #333; color: #aaa; font-size: .65rem; overflow-wrap: anywhere; }
.catalog-page .comic-status-badge { font-size: .62rem; padding: 2px 6px; }
.catalog-page .comic-info h3 { margin: 0 0 9px; color: #e1e3e6; font-size: .95rem; line-height: 1.4; overflow-wrap: anywhere; }
.catalog-page .comic-info h3 a { color: inherit; text-decoration: none; }
.catalog-page .comic-info h3 a:hover { color: var(--accent-text); }
.catalog-author { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; min-width: 0; }
.catalog-author-avatar { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; overflow: hidden; background: var(--accent-highlight); color: #fff; font-size: .65rem; font-weight: 600; text-decoration: none; }
.catalog-author-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.catalog-author-name { min-width: 0; max-width: 100%; color: var(--accent-text); font-size: .76rem; overflow-wrap: anywhere; text-decoration: none; }
.catalog-page .comic-info .comic-description { margin: 4px 0 10px; color: #aaa; font-size: .8rem; line-height: 1.55; }
.catalog-page .comic-tags { gap: 5px; margin: 0 0 12px; }
.catalog-page .comic-tags a { max-width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--accent-text); font-size: .72rem; overflow-wrap: anywhere; }
.catalog-page .comic-description .content-tag, .catalog-page .new-comic-description .content-tag { padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--accent-text); font-size: inherit; }
.catalog-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid #333; }
.catalog-card-footer time { color: #828282; font-size: .68rem; }
.catalog-card-actions { display: flex; align-items: center; gap: 6px; }
.catalog-share-button[disabled] { opacity: .6; cursor: default; }
.catalog-share-button[disabled]:hover { background: #303030; }
.catalog-like-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 30px; padding: 4px 9px; border: 0; border-radius: 20px; background: #303030; color: #aaa; text-decoration: none; font: inherit; font-size: .74rem; cursor: pointer; }
.catalog-like-button svg { width: 18px; height: 18px; }
.catalog-like-button:hover { background: #3a3a3a; }
.catalog-like-button.liked { background: #3b292b; color: var(--accent-highlight); }
.catalog-like-button.liked svg { fill: currentColor; }
.catalog-empty-state { grid-column: 1 / -1; padding: 36px 20px; border: 1px solid #363636; border-radius: 12px; background: #222; text-align: center; }
.catalog-empty-state h2 { font-size: 1rem; }
.catalog-empty-state p { margin: 8px 0 20px; color: #999; font-size: .85rem; }
.catalog-empty-state a { display: inline-block; padding: 7px 14px; border-radius: 8px; color: #d5d5d5; background: #333; text-decoration: none; font-size: .82rem; }
/* Карусель новинок сохраняется, но не выглядит отдельным рекламным баннером. */
.catalog-page .new-comics-section { margin: 0 0 16px; }
.catalog-page .new-comics-heading { margin: 0 2px 12px; align-items: center; gap: 10px; }
.catalog-page .new-comics-heading > div:first-child > span, .catalog-page .new-comics-heading p { display: none; }
.catalog-page .new-comics-heading h2 { margin: 0; font-size: 1rem; }
.catalog-page .new-comics-controls { gap: 7px; color: #999; font-size: .72rem; }
.catalog-page .new-comics-controls button { width: 28px; height: 28px; border-color: #363636; border-radius: 8px; background: #222; color: #bbb; }
.catalog-page .new-comics-controls button:hover { background: #333; border-color: #555; }
.catalog-page .new-comics-carousel { border-color: #363636; border-radius: 12px; background: #222; box-shadow: none; }
.catalog-page .new-comics-slides { height: 250px; }
.catalog-page .new-comic-slide { transform: none; transition: opacity .4s ease; }
.catalog-page .new-comic-shade { background: linear-gradient(90deg, #222f, #222e 45%, #222a); }
.catalog-page .new-comic-backdrop { filter: saturate(.65); }
.catalog-page .new-comic-content { gap: 18px; padding: 20px 20px 32px; align-items: center; }
.catalog-page .new-comic-cover { width: 112px; height: 158px; border-color: #777; border-radius: 8px; box-shadow: none; transform: none; }
.catalog-page .new-comic-kicker { margin-bottom: 7px; color: var(--accent-text); font-size: .63rem; letter-spacing: .04em; }
.catalog-page .new-comic-pulse { width: 5px; height: 5px; background: var(--accent-text); box-shadow: none; animation: none; }
.catalog-page .new-comic-title { font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.2; }
.catalog-page .new-comic-description { margin-top: 6px; color: #aaa; font-size: .77rem; line-height: 1.45; }
.catalog-page .new-comic-meta { margin-top: 8px; gap: 5px; font-size: .65rem; }
.catalog-page .new-comic-meta > span:first-child { padding: 2px 6px; border-radius: 5px; background: #ffffff0d; }
.catalog-page .new-comic-meta > span:last-child { display: none; }
.catalog-page .new-comic-cta { margin-top: 12px; padding: 6px 10px; gap: 7px; border: 0; border-radius: 8px; background: #383838; color: #ddd; font-size: .75rem; backdrop-filter: none; }
.catalog-page .new-comic-slide:hover .new-comic-cta { background: #444; }
.catalog-page .new-comics-dots { right: 16px; bottom: 12px; }
.catalog-page .new-comics-dots button[aria-current="true"] { background: var(--accent-text); }
.catalog-page footer { border-color: #292929; background: transparent; color: #666; font-size: .75rem; }
.catalog-page .pwa-install { display: none; }
.catalog-page a:focus-visible, .catalog-page button:focus-visible { outline: 2px solid var(--accent-highlight); outline-offset: 2px; }
.catalog-page .new-comic-open:focus-visible { outline-offset: -3px; }
@media (min-width: 769px) and (max-width: 1100px) {
    .catalog-page .catalog-container { padding: 0 12px; }
}
@media (max-width: 600px) {
    .catalog-search-form { flex-basis: 100%; min-width: 0; margin-left: 0; }
}
@media (max-width: 768px) {
    .catalog-page .catalog-container { margin: 12px 0 100px; padding: 0 10px; }
    .catalog-page .catalog-comics-grid { gap: 10px; }
    .catalog-page .comic-info { padding: 11px; }
    .catalog-page .new-comic-content { gap: 14px; padding: 16px 14px 30px; }
    .catalog-page .new-comic-cover { width: 88px; height: 126px; }
    .catalog-page .new-comics-slides { height: 245px; }
    .catalog-page .new-comic-title { font-size: 1.2rem; }
}
@media (max-width: 400px) {
    .catalog-page .catalog-comics-grid { grid-template-columns: minmax(0, 1fr); }
    .catalog-page .comic-cover, .catalog-page .comic-cover.has-banner { aspect-ratio: 4 / 3; }
    .catalog-page .new-comic-content { gap: 12px; }
    .catalog-page .new-comic-cover { width: 76px; height: 108px; }
}
@media (prefers-reduced-motion: reduce) {
    .catalog-page .new-comic-slide, .catalog-page .comic-card { transition: none; }
}
