/* Переменные цветовой схемы */
:root {
    /* Светлая тема (оригинальные цвета) */
    --bg-body: #ffffff;
    --bg-nav: #ffffff;
    --bg-content: #f3f3f3;
    --text-main: #000000;
    --text-link: #0B7500;
    --border-color: #aaaaaa;
    --bg-info-block: #a1c3a0;
    --bg-tab-active: #fcfee2;
    --text-muted: #727272;
    --bg-menu-sub: #3b4151;
    --bg-hover: #eee;
    --bg-fp-message: #e7e7e7;
    --fp-color: #4d4d4d;
    --rf4-site-footer-reserve: 4rem;
}

/* Цвета для темной темы */
body.dark-theme {
    --bg-body: #121212;
    --bg-nav: #121212;
    --bg-content: #1a1a1a;
    --text-main: #e0e0e0;
    --text-link: #73a774;
    --border-color: #9d9d9d;
    --bg-info-block: #1a2332;
    --bg-tab-active: #2d2d2d;
    --text-muted: #aaaaaa;
    --bg-menu-sub: #bfbfbf;
    --bg-hover: #2d2d2d;
    --bg-fp-message: #313338;
    --fp-color: #949ba4
}

body {
    font-size: 13px;
    font-family: Tahoma, sans-serif;
    width: 1150px;
    margin: 0 auto;
    padding-bottom: 130px; /*  нижний рек баннер + футер */
    background: var(--bg-body);
    color: var(--text-main);
}
.clear {clear: both;}
.hidden {display: none !important;}
.hidden-desktop {display: none;}
.right {text-align: right;}
.center {text-align: center;}
.mobile-label {display: none;}
a {color: var(--text-link);}

.stat td.light {width: 5px; padding: 0;}
td.light-troff_super {background-color: #0d5aa7;}
td.light-troff {background-color: #f39c12;}
.position {
    background: var(--text-main);
    color: var(--bg-body);
    display: inline-block;
    padding: 3px 5px;
    margin: 2px 2px 0 0;
    border-radius: 4px;
    font-size: 12px;
}
.position.position-locked,
.farm-value-locked {
    filter: blur(2px);
    letter-spacing: 1px;
}
.spot-blocked-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
}
.spot-blocked-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}
.spot-blocked-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 620px);
    padding: 18px;
    border-radius: 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
}
.spot-blocked-modal-text {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.5;
}
.spot-blocked-modal-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.user-message-modal {
    position: fixed;
    inset: 0;
    z-index: 2120;
    display: none;
    align-items: center;
    justify-content: center;
}
.user-message-modal.is-open {
    display: flex;
}
.user-message-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}
.user-message-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 480px);
    max-height: min(85vh, 560px);
    overflow: auto;
    padding: 20px 20px 18px;
    border-radius: 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    box-sizing: border-box;
}
.user-message-modal-close {
    position: absolute;
    top: 6px;
    right: 10px;
    border: none;
    background: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted, #666);
}
.user-message-modal-title {
    margin: 0 32px 12px 0;
    font-size: 17px;
    font-weight: bold;
    color: var(--text-main);
}
.user-message-modal-sender {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    font-size: 14px;
    color: var(--text-muted, #666);
}
.user-message-modal-profile {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    max-width: 100%;
}
.user-message-modal-profile:hover {
    color: #1976d2;
}
body.dark-theme .user-message-modal-profile:hover {
    color: #64b5f6;
}
.user-message-modal-avatar-wrap {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-content, #eee);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #888);
}
.user-message-modal-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.user-message-modal-avatar-ph {
    font-size: 24px;
    line-height: 1;
}
.user-message-modal-from {
    word-break: break-word;
}
.user-message-modal-time {
    margin-left: auto;
    font-size: 13px;
    color: var(--text-muted, #666);
}
.user-message-modal-body {
    white-space: normal;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-main);
    word-break: break-word;
}
.user-message-modal-actions {
    margin: 16px 0 0;
}
.user-msg-menu-badge {
    display: inline-block;
    min-width: 1.25em;
    padding: 0 6px;
    margin-left: 4px;
    border-radius: 10px;
    background: #c62828;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    vertical-align: middle;
    line-height: 1.4;
    text-align: center;
}
body.dark-theme .user-msg-menu-badge {
    background: #e53935;
}
.user-messages-page {
    max-width: 840px;
    margin: 0 auto;
}
.user-messages-empty {
    color: var(--text-muted);
}
.user-messages-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.user-messages-item {
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    background: var(--bg-content, #fafafa);
}
.user-messages-item--unread {
    border-left: 4px solid #1976d2;
}
.user-messages-item-inner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.user-messages-item-main {
    flex: 1;
    min-width: 0;
}
.user-messages-avatar-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-body, #eee);
    color: var(--text-muted, #888);
    text-decoration: none;
}
.user-messages-avatar-link:hover {
    color: #1976d2;
    outline: 1px solid var(--border-color, #ccc);
}
.user-messages-avatar-link--disabled {
    pointer-events: none;
    opacity: 0.7;
}
.user-messages-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.user-messages-avatar-ph {
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.user-messages-from-link {
    color: #1976d2;
    text-decoration: none;
    font-weight: 600;
}
.user-messages-from-link:hover {
    text-decoration: underline;
}
body.dark-theme .user-messages-from-link {
    color: #64b5f6;
}
.user-messages-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: baseline;
    font-size: 13px;
    color: var(--text-muted, #666);
    margin-bottom: 8px;
}
.user-messages-from {
    font-weight: 600;
    color: var(--text-main);
}
.user-messages-badge {
    color: #1976d2;
    font-weight: 600;
}
.user-messages-text {
    font-size: 15px;
    line-height: 1.45;
    color: var(--text-main);
    word-break: break-word;
}

.user-messages-text--rich a,
.user-message-modal-body a {
    color: #1976d2;
    word-break: break-all;
}
body.dark-theme .user-messages-text--rich a,
body.dark-theme .user-message-modal-body a {
    color: #64b5f6;
}

.post-bug-report-btn {
    background: none;
    border: none;
    padding: 0 2px 0 6px;
    margin: 0;
    cursor: pointer;
    color: #eb5900;
    vertical-align: middle;
    line-height: 1;
    font-size: 1em;
}
.post-bug-report-btn:hover {
    color:  #1976d2;
}
.post-bug-modal {
    position: fixed;
    inset: 0;
    z-index: 2110;
    display: none;
    align-items: center;
    justify-content: center;
}
.post-bug-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}
.post-bug-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 440px);
    padding: 20px 20px 18px;
    border-radius: 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    box-sizing: border-box;
}
.post-bug-modal-close {
    position: absolute;
    top: 6px;
    right: 10px;
    border: none;
    background: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted, #666);
}
.post-bug-modal-title {
    margin: 0 32px 12px 0;
    font-size: 17px;
    font-weight: bold;
    color: var(--text-main);
}
.post-bug-label {
    display: block;
    margin: 10px 0 6px;
    font-size: 14px;
    color: var(--text-main);
}
.post-bug-select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    padding: 8px;
    margin-top: 12px;
}
.post-bug-text-wrap {
    margin-top: 12px;
}
.post-bug-textarea {
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    padding: 8px;
    margin: 0;
    resize: vertical;
    min-height: 72px;
}
.post-bug-disclaimer {
    margin: 14px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted, #666);
}
.post-bug-modal-actions {
    margin: 16px 0 0;
}
.post-bug-modal-actions #post-bug-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.post-bug-thanks {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--text-main);
}
.my-post-bug-list {
    margin: 12px 0;
    padding: 12px;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    background: var(--bg-content, #fafafa);
    box-sizing: border-box;
}
.my-post-bug-heading {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}
.my-post-bug-row {
    margin: 0 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}
.my-post-bug-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.my-post-bug-meta {
    font-size: 12px;
    color: var(--text-muted, #666);
}
.my-post-bug-meta .my-post-bug-reporter {
    color: var(--link-color, #0b6bcb);
    text-decoration: none;
    font-weight: 500;
}
.my-post-bug-meta .my-post-bug-reporter:hover {
    text-decoration: underline;
}
.my-post-bug-reason {
    font-size: 14px;
    margin: 6px 0;
    line-height: 1.4;
    color: var(--text-main);
}
.my-post-bug-status {
    margin-top: 6px;
}
.my-post-bug-status select {
    font-size: 13px;
    padding: 4px 8px;
    max-width: 100%;
    box-sizing: border-box;
}
body.dark-theme .my-post-bug-list {
    background: rgba(255, 255, 255, 0.04);
}
.spot-blocked-premium-btn {
    background: var(--premium-accent) !important;
}
.spot-blocked-unlock-btn {
    background: linear-gradient(135deg, #798138 0%, #065f09 80%) !important;
    border: none !important;    
}
.spot-blocked-unlock-btn:hover {
    background: #3b4151 !important;
}
.spot-blocked-close-btn {
    background: #6b7280 !important;
}

.fake-content {display: none; font-size: 20px; text-align: center; padding: 20px 0;}

.topnav {
    position: relative;
    /*top: 0;*/
    background: var(--bg-body);
    z-index: 500;
}
.logo {
    display: block;
    float: left;
    color: var(--text-main); 
    padding: 20px 10px 0 0;
}
.logo img {
    width: 110px;
    vertical-align: middle;
    border-radius: 100px;
}
.topnav .nav {
    margin-bottom: 2px;
    margin-left: 120px;
}
.topnav a.icon {display: none;}
.topnav .langs {
    position: absolute;
    right: 0;
    top: 5px;
}
.langs > a{
    text-decoration: none;
    vertical-align: middle;
}
.telegram {color: #0d5aa7;}
.topnav .name {
    font-size: 18px;
    display: block;
    padding: 0 5px 5px;
}

.rf4-aads-top {
    width: 100%;
    margin: auto;
    position: relative;
}
/* Google AdSense — временно отключено
.rf4-google-ads-top,
.rf4-google-ads-inpage {
    width: 100%;
    margin: auto;
    position: relative;
    text-align: center;
    overflow-x: auto;
}
*/
.rf4-aads-sticky-wrap {
    position: absolute;
}
.rf4-aads-sticky-bar {
    width: 100%;
    height: auto;
    position: fixed;
    text-align: center;
    font-size: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 150;
}
.rf4-aads-sticky-close {
    top: 50%;
    transform: translateY(-50%);
    right: 24px;
    position: absolute;
    border-radius: 4px;
    background: rgba(248, 248, 249, 0.70);
    padding: 4px;
    cursor: pointer;
    z-index: 1;
}
.rf4-aads-sticky-inner {
    width: 100%;
    margin: auto;
    position: relative;
}

.menu {
    position: relative;
    display: block;
    list-style: none;
    padding: 5px 0;
}
.menu ul {
    padding:0;
    margin: 0;
}
.menu li {
    display: inline-block;
}
.menu ul a, .button {
    cursor: pointer;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    background: #3b4151;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    margin: 1px 0;
}
.menu ul a {
    font-size: 16px;
}
.menu ul a:hover, .button:hover {
    background: #0d5aa7;
}
.menu ul a.menu-link-premium {
    background: var(--premium-accent);
}
.menu ul a.menu-link-maps {
    background: #7c3aed;
    color: #fff;
}
.menu ul a.menu-link-maps:hover {
    background: #6d28d9;
    color: #fff;
}
.menu:has(.menu-partners) {
    padding-bottom: 0;
}
.menu-partners {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 2px 0 0;
    margin-bottom: 0;
}
.menu-partner-link.menu-partner-friends {
    background: transparent;
    color: #d97706;
    font-weight: 700;
}
.menu-partner-link.menu-partner-friends:hover {
    background: transparent;
    color: #b45309;
    border-color: #b45309;
}
.menu-partner-link.menu-partner-friends i {
    font-size: 14px;
}
.menu-partner-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 4px;
    background: transparent;
    color: var(--text-main);
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}
.menu-partner-link img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 2px;
}
.menu-partner-link:hover {
    border-color: #0d5aa7;
    color: #0d5aa7;
    background: transparent;
}
.menu-partner-link.tooltip {
    position: relative;
}
.menu-partner-link.tooltip .tooltip-data {
    margin-top: 4px;
    top: 100%;
    left: 0;
    right: auto;
    max-width: min(20rem, calc(100vw - 1rem));
    white-space: normal;
}
.menu-partner-item {
    position: relative;
    display: inline-block;
}
.menu-partner-sub {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% - 4px);
    list-style: none;
    margin: 0;
    padding: 5px 0;
    min-width: 100%;
    width: max-content;
    max-width: min(22rem, calc(100vw - 1rem));
    overflow: hidden;
    background: #3b4151;
    border-radius: 4px;
    z-index: 1000;
    box-sizing: border-box;
}
.menu-partner-sub li {
    display: block;
    margin: 0;
    padding: 0;
}
.menu-partner-sub a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 6px 12px;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    white-space: normal;
    background: transparent;
    border: none;
    border-radius: 0;
    margin: 0;
}
.menu-partner-sub a:hover {
    background: #0d5aa7;
    color: #fff;
}
.menu-partner-item:hover > .menu-partner-sub {
    display: block;
}
.menu ul a.tooltip {
    position: relative;
}
.menu ul a.tooltip .tooltip-data {
    margin-top: 4px;
    top: 100%;
    left: 0;
    right: auto;
    max-width: min(20rem, calc(100vw - 1rem));
    white-space: normal;
}

.locations .button-cafe,
.button-cafe {
    background: #3b1936;
}
.locations .button-cafe:hover,
.button-cafe:hover {
    background: #0a4a8a;
}
.locations .button-map,
.button-map {
    background: #7c3aed;
}
.locations .button-map:hover,
.button-map:hover {
    background: #6d28d9;
}
.location-cafe-link,
.location-page-map-link {
    margin: 12px 0 0;
    clear: both;
}
.location-page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 12px 0 0;
    clear: both;
}
.location-page-actions .button,
.location-page-actions button.button {
    margin: 0;
}
button.button-map-weather {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    font: inherit;
    border: inherit;
    vertical-align: middle;
}
a.button-map-weather {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
}
.location-page-actions .rf4-weather-water-level-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    line-height: 1;
    height: 1em;
    margin-left: 0.2rem;
    font-size: 1em;
    font-weight: 700;
    transform: translateY(-0.14em);
}
.locations .location-map-icon {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    line-height: 1;
    opacity: 0.92;
}
.locations .location-map-icon:hover {
    opacity: 1;
    color: #ddd6fe;
}
.menu ul a.menu-link-premium:hover,
.menu ul ul a.menu-link-premium:hover {
    background: var(--premium-accent);
    filter: brightness(1.12);
}
.menu ul ul a.menu-link-premium {
    background: var(--premium-accent);
}
/* первый уровень */
.menu > ul > li {
    position: relative;
}
/* второй уровень (выпадающий) */
.menu ul ul {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% - 4px);

    background: #3b4151;
    min-width: 180px;
    padding: 5px 0;
    border-radius: 4px;
    z-index: 1000;
}

/* элементы второго уровня */
.menu ul ul li {
    display: block;
}

/* ссылки второго уровня */
.menu ul ul a {
    display: block;
    padding: 6px 12px;
    font-size: 14px;
}

/* показать подменю при наведении */
.menu ul li:hover > ul {
    display: block;
}

/* hover для пунктов подменю */
.menu ul ul a:hover {
    background: #0d5aa7;
}

.link-button {
    cursor: pointer;
    display: inline-block;
    padding: 2px 0px;
    margin: 0px 5px;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 1px dashed var(--text-link); /* */
}
/* Длинные значения фильтров (рыб/наживок) — перенос, иначе уезжают за экран */
a.link-button.params-open {
    display: inline;
    white-space: normal;
    overflow-wrap: anywhere;
    margin: 0;
    padding: 0;
}
h1 {
    font-size: 18px;
}


.donate a{
    height: 90px;
    line-height: 90px;
    background-image: linear-gradient(45deg, #737373 25%, #8f8f8f 25%, #8f8f8f 50%, #737373 50%, #737373 75%, #8f8f8f 75%, #8f8f8f 100%);
    background-size: 56.57px 56.57px;
    color: #fff;
    font-weight: bold;
    font-size: 24px;
    text-align: center;
    display: block;
    text-decoration: none;
    border-radius: 5px;
}
.content {
    clear: left;
    min-width: 0;
    max-width: 100%;
}
.list-gamer {
    max-width: 11em;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.list-gamer a {
    display: inline;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.breadcrumbs {
    margin: -4px 0 12px;
    font-size: 14px;
    color: var(--text-muted);
}
.breadcrumbs-link {
    color: var(--text-link);
    text-decoration: none;
}
.breadcrumbs-link:hover {
    text-decoration: underline;
}
.breadcrumbs-sep {
    display: inline-block;
    margin: 0 6px;
    font-size: 10px;
    opacity: 0.85;
}
.breadcrumbs-current {
    color: var(--text-main);
}

/* Справка: контакты + CTA Premium */
.help-contacts,
.help-support-cta {
    box-sizing: border-box;
    max-width: 36rem;
    margin-inline: auto;
}
.help-contacts {
    margin-block: 1.25rem 1.5rem;
    padding: 1rem 1.15rem 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 11px;
    background: var(--bg-body);
}
.help-support-cta {
    margin-block: 1.75rem 1.35rem;
    padding: 1.35rem 1.25rem 1.4rem;
    border: 1px solid var(--border-color);
    border-radius: 11px;
    background: linear-gradient(145deg, var(--premium-accent-soft), var(--bg-body) 50%, var(--bg-content));
    text-align: center;
}
.help-contacts-title {
    margin: 0 0 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.05em;
    font-weight: bold;
    color: var(--text-main);
}
.help-contacts-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.help-contacts-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.75rem;
    line-height: 1.45;
}
.help-contacts-label {
    flex: 0 0 auto;
    min-width: 10.5rem;
    font-weight: 600;
    color: var(--text-main);
}
.help-contacts-link {
    flex: 1 1 12rem;
    min-width: 0;
    word-break: break-all;
    color: var(--text-link);
}
.help-support-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: min(100%, 17rem);
    padding: 15px 24px;
    font: bold 16px/1.2 inherit;
    text-decoration: none;
    color: #fff !important;
    border-radius: 10px;
    background: var(--premium-accent);
    border: 1px solid rgba(0, 0, 0, 0.14);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
    transition: filter 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.help-support-cta-button:hover {
    filter: brightness(1.07);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}
.help-support-cta-button:focus-visible {
    outline: 2px solid var(--premium-accent);
    outline-offset: 3px;
}
.help-support-cta-button span {
    flex: 1 1 auto;
    text-align: center;
}
.help-support-cta-button .fa-heart {
    font-size: 1.05em;
    opacity: 0.95;
}
.help-support-cta-button .fa-arrow-right {
    font-size: 0.88em;
    opacity: 0.9;
}

.view-with-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px 16px;
    margin-bottom: 10px;
}
.view-main {
    flex: 0 1 850px;
    box-sizing: border-box;
    min-width: 0;
}
.view-with-search-panel {
    display: block;
}
.view-with-search-panel .view-main {
    flex: none;
    width: 100%;
    max-width: none;
}
.search-panel-toggle {
    position: fixed;
    top: auto;
    bottom: 126px; /* над .back-to-top */
    right: 18px;
    z-index: 1190;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #3b4151;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    transition: background 0.15s ease;
}
.search-panel-toggle:hover,
.search-panel-toggle:focus-visible {
    background: #0d5aa7;
    color: #fff;
    outline: none;
}
.search-panel-toggle .fa-search {
    font-size: 16px;
    line-height: 1;
}
body.dark-theme .search-panel-toggle {
    background: #4a5163;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
body.dark-theme .search-panel-toggle:hover,
body.dark-theme .search-panel-toggle:focus-visible {
    background: #0d5aa7;
}
.search-panel-toggle.fab-above-ads {
    bottom: 226px;
}
/* Closed: 0×0 clips drawer translateX(100%) so it cannot inflate scrollWidth (regressed in d90f57e with width-toggle). */
.search-filters-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
    z-index: 1200;
    width: 0;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}
.search-filters-panel.is-open {
    inset: 0;
    width: auto;
    height: auto;
    overflow: hidden;
    visibility: visible;
    pointer-events: auto;
}
.search-filters-panel[hidden] {
    display: block !important;
}
.search-filters-panel-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.search-filters-panel.is-open .search-filters-panel-backdrop {
    opacity: 1;
}
.search-filters-panel-drawer {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    left: auto;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(720px, 92vw);
    max-width: 100%;
    /* visible: кнопка ширины торчит влево за край drawer; клип делает родитель .search-filters-panel */
    overflow: visible;
    background: var(--bg-content);
    color: var(--text-main);
    border-left: 1px solid var(--border-color);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    transition: transform 0.25s ease, width 0.25s ease;
}
.search-filters-panel.is-open .search-filters-panel-drawer {
    transform: translateX(0);
}
.search-filters-panel-drawer.is-narrow {
    width: min(350px, 92vw);
}
.search-filters-panel-drawer.is-narrow .search-filters-panel-body.view-filters-sidebar .filters.filters-search-grid {
    grid-template-columns: 1fr;
}
.search-filters-panel-width-toggle {
    position: absolute;
    left: 0;
    top: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 6px 0 0 6px;
    background: var(--bg-content);
    color: var(--text-muted);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.12);
    transform: translate(-100%, -50%);
    cursor: pointer;
    line-height: 1;
    font-size: 16px;
}
.search-filters-panel-width-toggle:hover,
.search-filters-panel-width-toggle:focus-visible {
    color: var(--text-main);
    outline: none;
}
.search-filters-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
}
.search-filters-panel-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}
.search-filters-panel-close {
    margin: 0;
    padding: 0.15rem 0.45rem;
    border: 0;
    background: transparent;
    color: var(--text-main);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}
.search-filters-panel-close:hover {
    color: var(--text-link);
}
.search-filters-panel-body.view-filters-sidebar {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 10px;
    box-sizing: border-box;
    position: static;
    top: auto;
    align-self: stretch;
    max-width: none;
    min-width: 0;
    width: 100%;
    border-radius: 0;
    z-index: auto;
}
.search-filters-panel-body.view-filters-sidebar .filters.filters-search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
}
.search-filters-panel-body.view-filters-sidebar .filter-field.filter-actions {
    grid-column: 1 / -1;
}
/* Inline tip в скролле обрезается — показ через fixed-копию (.tooltip-data--search-float) */
.search-filters-panel-body .tooltip .tooltip-data {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}
.tooltip-data.tooltip-data--search-float {
    position: fixed;
    z-index: 1300;
    opacity: 1;
    visibility: visible;
    margin-top: 0;
    pointer-events: none;
}
html.search-filters-panel-open,
body.search-filters-panel-open {
    overflow: hidden;
}

/* Детализация поста — выезд слева (как search справа) */
.post-detail-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    bottom: auto;
    z-index: 1250;
    width: 0;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}
.post-detail-panel.is-open {
    inset: 0;
    width: auto;
    height: auto;
    overflow: hidden;
    visibility: visible;
    pointer-events: auto;
}
.post-detail-panel[hidden] {
    display: block !important;
}
.post-detail-panel-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.post-detail-panel.is-open .post-detail-panel-backdrop {
    opacity: 1;
}
.post-detail-panel-drawer {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: auto;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(1000px, 96vw);
    max-width: 100%;
    overflow: hidden;
    background: var(--bg-content);
    color: var(--text-main);
    border-right: 1px solid var(--border-color);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
}
.post-detail-panel.is-open .post-detail-panel-drawer {
    transform: translateX(0);
}
.post-detail-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
}
.post-detail-panel-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}
.post-detail-panel-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.post-detail-panel-full {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 6px;
}
.post-detail-panel-full:hover {
    color: var(--text-link);
    background: rgba(0, 0, 0, 0.06);
}
.post-detail-panel-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1;
    border-radius: 6px;
    cursor: pointer;
}
.post-detail-panel-back:hover {
    color: var(--text-link);
    background: rgba(0, 0, 0, 0.06);
}
.post-detail-panel-back[hidden] {
    display: none !important;
}
.post-detail-panel-close {
    margin: 0;
    padding: 0.15rem 0.45rem;
    border: 0;
    background: transparent;
    color: var(--text-main);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}
.post-detail-panel-close:hover {
    color: var(--text-link);
}
.post-detail-panel-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 10px 12px 20px;
    box-sizing: border-box;
}
.post-detail-panel-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    font-size: 22px;
    color: var(--text-muted);
}
.post-detail-panel-error {
    margin: 24px 8px;
    color: var(--text-muted);
}
.post-one--panel {
    max-width: 100%;
    box-sizing: border-box;
}
.fish-info--panel {
    max-width: 100%;
    box-sizing: border-box;
}
.fish-info--panel .fish-info-head {
    margin-bottom: 12px;
}
.fish-info--panel .stat.data {
    width: 100%;
    max-width: 100%;
}
.fish-info--panel h2,
.fish-info--panel h3 {
    font-size: 1.05em;
}
.location-info--panel {
    max-width: 100%;
    box-sizing: border-box;
}
.location-info--panel > div > img {
    max-width: 100%;
    height: auto;
}
.location-info--panel .stat.data {
    width: 100%;
    max-width: 100%;
}
.location-info--panel h2,
.location-info--panel h3 {
    font-size: 1.05em;
}
.post-one--panel .post-item {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.post-one--panel .post-info,
.post-one--panel .post-detail {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.post-one--panel .post-item .baits,
.post-one--panel .baits {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
    white-space: normal;
    flex-wrap: wrap;
}
.post-one--panel .post-item .fish-list {
    max-width: 100%;
    min-width: 0;
}
.post-one--panel .post-item .user {
    max-width: 100%;
}
/* Две колонки скринов, карточки пропорционально меньше (было 550×340) */
.post-one--panel .post-detail .files {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: none;
    overflow: visible;
}
.post-one--panel .post-detail .files .screen,
.post-one--panel.post-one .post-detail .files .screen {
    width: calc(50% - 4px);
    height: auto;
    aspect-ratio: 550 / 340;
    max-width: none;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
}
.post-one--panel .post-detail .files .screen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
html.post-detail-panel-open,
body.post-detail-panel-open {
    overflow: hidden;
}
html.map-modal-open,
body.map-modal-open {
    overflow: hidden;
}
body.post-detail-panel-open .back-to-top,
body.post-detail-panel-open .search-panel-toggle {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.view-filters-sidebar {
    padding: 10px;
    border-radius: 10px;
    background: var(--bg-content);
    flex: 1 1 220px;
    min-width: 180px;
    max-width: 320px;
    box-sizing: border-box;
    position: sticky;
    top: 12px;
    align-self: flex-start;
    overflow: visible;
    z-index: 2;
}
.view-filters-sidebar .filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.view-filters-sidebar .filter-field {
    display: block;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}
.view-filters-sidebar .filter-field.user,
.rf4-rail-quick-search .filter-field.user {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
}
.view-filters-sidebar .filter-field.user .filter-user-mine,
.rf4-rail-quick-search .filter-field.user .filter-user-mine {
    flex: 0 0 auto;
    white-space: nowrap;
    text-decoration: none;
    border-bottom: 1px dashed;
    color: inherit;
    font-size: 0.95em;
    line-height: 1.2;
}
.view-filters-sidebar .filter-field.user .filter-user-mine:hover,
.rf4-rail-quick-search .filter-field.user .filter-user-mine:hover,
.view-filters-sidebar .filter-field.user .filter-user-mine.is-active,
.rf4-rail-quick-search .filter-field.user .filter-user-mine.is-active {
    color: #0d5aa7;
}
.view-filters-sidebar .filter-field.user .rf4-ajax-suggest-wrap,
.rf4-rail-quick-search .filter-field.user .rf4-ajax-suggest-wrap {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: none;
    display: block;
}
.view-filters-sidebar .filter-field.user .rf4-ajax-suggest-wrap input,
.rf4-rail-quick-search .filter-field.user .rf4-ajax-suggest-wrap input,
.filters .filter-field.user .rf4-ajax-suggest-wrap input {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}
.view-filters-sidebar .filter-field.user .clear-input,
.rf4-rail-quick-search .filter-field.user .clear-input {
    flex: 0 0 auto;
}
.view-filters-sidebar .filter-field.region .js-region-pick,
.rf4-rail-quick-search .filter-field.region .js-region-pick,
.filters .filter-field.region .js-region-pick {
    max-width: 100%;
    box-sizing: border-box;
}
.region-exclude-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 0;
    font-size: 0.92em;
    line-height: 1.3;
    cursor: pointer;
    white-space: nowrap;
}
.region-exclude-label input {
    margin: 0;
    flex: 0 0 auto;
}
.view-filters-sidebar .filter-field.region .region-exclude-label,
.rf4-rail-quick-search .filter-field.region .region-exclude-label {
    display: flex;
    width: 100%;
}
.view-filters-sidebar .filter-field.right,
.view-filters-sidebar .filter-field.filter-actions {
    text-align: left;
}
.view-filters-sidebar .filter-field .button {
    width: auto;
}
.view-filters-sidebar .filter-field.bait-type .label,
.view-filters-sidebar .filter-field.fishing-style .label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95em;
}
.view-filters-sidebar .filter-field.fishing-style .label-with-tooltip,
.view-filters-sidebar .filter-field.type .label-with-tooltip,
.rf4-rail-quick-search .filter-field.type .label-with-tooltip,
.filters .filter-field.type .label-with-tooltip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.view-filters-sidebar .filter-field.fishing-style .label-with-tooltip .tooltip,
.view-filters-sidebar .filter-field.type .label-with-tooltip .tooltip,
.rf4-rail-quick-search .filter-field.type .label-with-tooltip .tooltip,
.filters .filter-field.type .label-with-tooltip .tooltip {
    font-size: 1em;
    line-height: 1;
    flex: 0 0 auto;
}
.fishing-style-filter-tooltip {
    max-width: 300px;
    text-align: left;
    white-space: normal;
}
.view-filters-sidebar .filter-field.fishing-style select {
    width: calc(100% - 17px);
    max-width: 100%;
    box-sizing: border-box;
}
.view-filters-sidebar .filter-field.bait-type .js-enum-or-pick,
.rf4-rail-quick-search .filter-field.bait-type .js-enum-or-pick {
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
    box-sizing: border-box;
    vertical-align: middle;
}
.view-filters-sidebar .filter-field.bait-type .clear-input,
.rf4-rail-quick-search .filter-field.bait-type .clear-input {
    vertical-align: middle;
}
.filter-enum-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}
.filter-enum-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 3px;
    background: #e8f1fb;
    color: #0d5aa7;
    font-size: 0.88em;
    line-height: 1.3;
}
body.dark-theme .filter-enum-tag {
    background: #1e3348;
    color: #9ec9f5;
}
.filter-enum-tag-remove {
    margin: 0;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 1.1em;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
}
.filter-enum-tag-remove:hover,
.filter-enum-tag-remove:focus-visible {
    opacity: 1;
}

/* Enum-OR chips (platform / type) */
.filter-enum-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.filter-enum-chip {
    margin: 0;
    padding: 4px 10px;
    border: 1px solid #b8c4d0;
    border-radius: 4px;
    background: #f7f9fb;
    color: inherit;
    font: inherit;
    font-size: 0.92em;
    line-height: 1.3;
    cursor: pointer;
}
.filter-enum-chip:hover,
.filter-enum-chip:focus-visible {
    border-color: #0d5aa7;
}
.filter-enum-chip.is-active {
    border-color: #0d5aa7;
    background: #e8f1fb;
    color: #0d5aa7;
    font-weight: 600;
}
body.dark-theme .filter-enum-chip {
    border-color: #4a5563;
    background: #2a2f36;
}
body.dark-theme .filter-enum-chip.is-active {
    border-color: #6eb0ef;
    background: #1e3348;
    color: #9ec9f5;
}
.view-filters-sidebar .filter-field.platform .filter-enum-chips,
.view-filters-sidebar .filter-field.type .filter-enum-chips,
.rf4-rail-quick-search .filter-field.platform .filter-enum-chips,
.rf4-rail-quick-search .filter-field.type .filter-enum-chips {
    width: 100%;
}

/* Ajax suggest: общие стили (поиск, сайдбар, my_posts) */
.rf4-ajax-suggest-wrap {
    position: relative;
    overflow: visible;
}
.rf4-ajax-suggest-dd {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 50;
    background: var(--bg-body);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.rf4-ajax-suggest-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.rf4-ajax-suggest-list li {
    padding: 6px 8px;
    cursor: pointer;
}
.rf4-ajax-suggest-list li:hover {
    background: var(--bg-info-block);
}
.rf4-ajax-suggest-list li.rf4-as-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rf4-as-item-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
}
.rf4-as-item-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.rf4-as-item-value {
    font-size: inherit;
    line-height: 1.25;
    word-break: break-word;
}
.rf4-as-item-type {
    font-size: 0.85em;
    color: var(--text-muted);
    line-height: 1.2;
}
.view-filters-sidebar .rf4-ajax-suggest-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    display: inline;
}
.view-filters-sidebar .filter-field input,
.view-filters-sidebar .filter-field select {
    background: var(--bg-body);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 3px;
}
.filters .position-input {
    max-width: 120px;
}
.filter-field .label {
    display: block;
    margin-bottom: 5px;
}
.period-slider-field .period-slider-wrap {
    display: block;    
    margin: 0 0 6px;
    box-sizing: border-box;
}
.period-slider-field .period-slider-values {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 6px;
    min-height: 1.35em;
    font-size: 14px;
    font-weight: normal;
    color: var(--text-main, inherit);
}
.period-slider-field .period-slider-values > .label {
    display: inline;
    margin: 0;
    font-weight: normal;
}
.period-date-anchor {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    position: relative;
    margin: 0;
    line-height: inherit;
    vertical-align: middle;
}
.period-date-anchor .period-date-input {
    max-width: 9.5em;
    height: 1.35em;
    margin: 0;
    padding: 0 4px;
    font: inherit;
    font-size: inherit;
    line-height: 1.35em;
    border: 1px solid var(--border-color, #ccc);
    border-radius: 3px;
    background: var(--input-bg, #fff);
    color: inherit;
    box-sizing: border-box;
    vertical-align: middle;
}
.period-date-anchor--locked .period-date-input {
    opacity: 0.55;
    cursor: not-allowed;
}
.period-date-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.65;
}
.period-date-clear:hover,
.period-date-clear:focus-visible {
    opacity: 1;
}
.period-date-clear[hidden] {
    display: none !important;
}
.period-slider-field .period-slider {
    width: 100%;
    margin: 0;
    vertical-align: middle;
    accent-color: #0b7500;
    cursor: pointer;
}
.period-slider-field .period-slider-ticks {
    position: relative;
    height: 1.55em;
    margin-top: 6px;
}
.period-slider-field .period-slider-tick {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 11px;
    line-height: 1.2;
    color: var(--text-muted, #888);
    text-decoration: underline dashed;
    text-underline-offset: 2px;
    cursor: pointer;
    white-space: nowrap;
}
.period-slider-field .period-slider-tick.is-start {
    transform: none;
}
.period-slider-field .period-slider-tick.is-end {
    transform: translateX(-100%);
}
.period-slider-field .period-slider-tick:hover,
.period-slider-field .period-slider-tick:focus-visible {
    color: #0b7500;
    outline: none;
}
.period-slider-field .period-slider-tick.is-active {
    color: var(--text-main, inherit);
    font-weight: 700;
    text-decoration: none;
}
.farm-slider-field--locked .farm-slider-unavailable {
    color: var(--text-muted, #888);
    font-style: italic;
}
.filter-field.water-temp--locked .water-temp-unavailable {
    display: inline-block;
    margin-left: 0.35rem;
    color: var(--text-muted, #888);
    font-style: italic;
}
body.dark-theme .period-slider-field .period-slider-tick:hover,
body.dark-theme .period-slider-field .period-slider-tick:focus-visible {
    color: #86efac;
}
.filters  input, .filters select {
    background: var(--bg-body);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 3px;
}
.filters  input , .filters .type select, .filters .region select{
    width: calc(100% - 24px);
    margin-bottom: 2px;
}
.filters .min-weight-field input,
.filters .filter-field.bait .rf4-ajax-suggest-wrap input,
.filters .filter-field.fish .rf4-ajax-suggest-wrap input,
.filters .filter-field.location > input[name="location"] {
    width: calc(100% - 44px);
}
.filters  label input {width: auto;}
.filters  input[type=submit] {
    width: auto;
}
.filters input.position-input {width: 70px;}

.filters .period-slider-field .period-slider {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.fish-type label {vertical-align: middle;}
.fish-type label input {width: auto;}
.fish-type label img {width: 10px;}

.stat {
    width: 100%;
    background: var(--bg-content);
    border-radius: 10px;
    padding: 10px;
}
.stat td {
    padding: 2px 5px;
    border-bottom: 1px dashed var(--border-color);
}
.stat .header td {
    font-weight: bold
}
.info i.t{
    padding: 10px;
    display: block;
    background: var(--bg-info-block); /* */
}
.info {
    position: relative;
}
.info .share {
    position: absolute;
    right: 12px;
    top:8px;
    text-decoration: none;
}
.info .share {
    font-size: 14px;
}
.stat .hours input {width: 30px;}
.stat .bait-icon img {
    width: 28px;
    float: left
}

.posts-list-stats {
    margin: 0 0 12px;
    scroll-margin-top: 12px;
}
.posts-list-stats--loading {
    height: 120px;
    background: var(--bg-content);
    border-radius: 10px;
    overflow: hidden;
}
.posts-list-stats--loading .posts-list-stats-preloader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0;
    margin: 0;
}
.posts-list-stats-inner {
    background: var(--bg-content);
    border-radius: 10px;
    padding: 10px;
}
.posts-list-stats-title {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
}
.posts-list-stats-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0 0 8px;
}
.posts-list-stats-title-actions {
    margin-left: auto;
    flex: 0 0 auto;
}
.posts-list-stats-limited-msg {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-main);
}
.posts-list-stats-premium-footer {
    margin: 10px 0 0;
    padding-top: 6px;
    text-align: center;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-muted);
}
.posts-list-stats-premium-footer a {
    color: var(--fp-color);
    text-decoration: underline;
}
.posts-list-stats-premium-footer--solo {
    margin-top: 0;
    padding-top: 0;
}
.posts-list-stats-summary {
    margin: 0 0 8px;
    padding: 0;
}
.posts-list-stats-summary td {
    white-space: nowrap;
    overflow: visible;
}
.posts-list-stats-farm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.posts-list-stats-farm .keepnet-value-coin {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    vertical-align: middle;
}
.posts-list-stats-lists {
    margin-top: 8px;
}
.posts-list-stats-lists-toggle {
    background: none;
    border: none;
    padding: 0;
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--fp-color);
    cursor: pointer;
    text-decoration: underline;
}
.posts-list-stats-lists-body {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}
.posts-list-stats-lists--collapsed .posts-list-stats-lists-detail {
    display: none;
}
.posts-list-stats-panel {
    flex: 1 1 240px;
    min-width: 0;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    padding: 4px 8px 8px;
    background: #dadada;
    overflow: visible;
}
.posts-list-stats-row--clips-water {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 1 1 100%;
    width: 100%;
    gap: 8px;
    align-items: stretch;
}
.posts-list-stats-row--clips-water > .posts-list-stats-panel {
    min-width: 0;
    flex: none;
    width: auto;
}
/* Клипса без блока температуры — на всю ширину */
.posts-list-stats-lists-body > .posts-list-stats-panel--clips {
    flex: 1 1 100%;
    width: 100%;
}
.posts-list-stats-panel--water .posts-list-stats-panel-title .rf4-weather-water-icon {
    flex: 0 0 auto;
}
.posts-list-stats-panel--water .posts-list-stats-water-now {
    font-weight: normal;
    font-size: 12px;
    color: #2166ac;
    white-space: nowrap;
}
button.posts-list-stats-water-now {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font: inherit;
    color: #2166ac;
}
button.posts-list-stats-water-now:hover {
    text-decoration: underline;
}
body.dark-theme .posts-list-stats-panel {
    background: #3a3a3a;
}
.posts-list-stats-panel-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 4px;
    min-height: 18px;
}
.posts-list-stats-panel-title-text {
    flex: 0 1 auto;
    min-width: 0;
}
.posts-list-stats-panel-title .posts-list-stats-fish-type,
.posts-list-stats-panel-title .posts-list-stats-with-pos,
.posts-list-stats-panel-title .posts-list-stats-panel-title-actions,
.posts-list-stats-panel-title .posts-list-stats-field-clear {
    margin-top: 0;
    margin-left: auto;
    flex: 0 0 auto;
    font-weight: normal;
}
.posts-list-stats-panel-title-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.posts-list-stats-panel-title-actions .posts-list-stats-fish-type,
.posts-list-stats-panel-title-actions .posts-list-stats-field-clear {
    margin-left: 0;
}
.posts-list-stats-panel-title .posts-list-stats-field-clear {
    border: none;
    background: none;
    padding: 0 2px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1;
}
.posts-list-stats-panel-title .posts-list-stats-field-clear:hover {
    color: var(--fp-color);
}
.posts-list-stats-subpanel-title {
    font-weight: 600;
    font-size: 12px;
    margin: 6px 0 2px;
    opacity: 0.9;
}
.posts-list-stats-composition-section + .posts-list-stats-composition-section {
    margin-top: 4px;
}
.posts-list-stats-composition-toggle {
    display: inline-block;
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--fp-color);
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}
.posts-list-stats-composition-toggle:hover {
    opacity: 0.85;
}
.posts-list-stats-panel--composition .posts-list-stats-panel-items {
    margin-bottom: 2px;
}
.posts-list-stats-panel:has(.posts-list-stats-item--pct) .posts-list-stats-panel-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.posts-list-stats-composition-extra {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}
.posts-list-stats-composition-extra[hidden] {
    display: none !important;
}
.posts-list-stats-item--pct {
    display: flex;
    align-items: center;
    width: 100%;
    white-space: normal;
    gap: 6px;
}
.posts-list-stats-item--pct .posts-list-stats-item-label {
    flex: 1 1 auto;
    min-width: 0;
}
.posts-list-stats-panel-footer {
    margin-top: 8px;
    text-align: right;
    font-size: 12px;
    line-height: 1.3;
}
.posts-list-stats-panel-more {
    color: var(--text-muted);
    text-decoration: none;
}
.posts-list-stats-panel-more:hover {
    color: var(--text-muted);
    text-decoration: underline;
}
.posts-list-stats-panel-filter {
    margin: 0 0 4px;
    position: relative;
    overflow: visible;
}
.posts-list-stats-panel-filter input[type="text"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: var(--bg-body);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 3px 6px;
    font-size: 12px;
}
.posts-list-stats-panel-filter .rf4-ajax-suggest-wrap {
    width: 100%;
}
.posts-list-stats-panel-filter .rf4-ajax-suggest-dd {
    z-index: 40;
}
.posts-list-stats-fish-type {
    display: flex;
    align-items: center;
    gap: 2px;
}
.posts-list-stats-fish-type label {
    margin: 0;
}
.posts-list-stats-with-pos {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}
.posts-list-stats-with-pos input {
    width: auto;
    margin-right: 4px;
    vertical-align: middle;
}
.posts-list-stats-panel-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 6px;
}
.posts-list-stats-panel:has(.posts-list-stats-item--fish) .posts-list-stats-panel-items,
.posts-list-stats-panel:has(.posts-list-stats-item--bait) .posts-list-stats-panel-items,
.posts-list-stats-panel:has(.posts-list-stats-item--location) .posts-list-stats-panel-items {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 4px;
}
.posts-list-stats-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    white-space: nowrap;
}
.posts-list-stats-item--fish,
.posts-list-stats-item--bait,
.posts-list-stats-item--location {
    display: flex;
    align-items: flex-start;
    width: 100%;
    white-space: normal;
    gap: 6px;
}
.posts-list-stats-item--location.is-active .posts-list-stats-item-label a {
    font-weight: 700;
    color: var(--fp-color);
}
.posts-list-stats-location-apply {
    position: fixed;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%);
    z-index: 1280;
    margin: 0;
    padding: 10px 22px;
    border: 0;
    border-radius: 8px;
    background: #0b7500;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
    white-space: nowrap;
}
.posts-list-stats-location-apply[hidden] {
    display: none !important;
}
.posts-list-stats-location-apply:hover,
.posts-list-stats-location-apply:focus-visible {
    filter: brightness(1.08);
}
.posts-list-stats-item--clip {
    gap: 6px;
}
.posts-list-stats-item--clip .clip {
    vertical-align: middle;
}
.posts-list-stats-item--fish .posts-list-stats-item-label,
.posts-list-stats-item--bait .posts-list-stats-item-label,
.posts-list-stats-item--location .posts-list-stats-item-label {
    flex: 1 1 auto;
    min-width: 0;
}
.posts-list-stats-item--bait .posts-list-stats-item-label {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.35;
}
.posts-list-stats-item img {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    flex-shrink: 0;
}
.posts-list-stats-item-cnt {
    font-weight: bold;
    color: var(--text-main);
    flex-shrink: 0;
    margin-left: auto;
}
.stat-spots-with-cnt {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
}
.stat-spots-with-cnt .posts-list-stats-item-cnt {
    margin-left: 0;
}
.posts-list-stats-item-cnt.filter-link,
.posts-list-stats-summary-cnt {
    color: var(--fp-color);
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
    cursor: pointer;
}
.posts-list-stats-summary-cnt {
    font-weight: bold;
}
.posts-list-stats-item-cnt.filter-link:hover,
.posts-list-stats-summary-cnt:hover {
    opacity: 0.85;
}
.posts-list-stats-bait-icons {
    display: inline-flex;
    gap: 2px;
    flex-shrink: 0;
}
.posts-list-stats-filters-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
}
.posts-list-stats-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    min-width: 0;
    flex: 1 1 auto;
}
.posts-list-stats-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--bg-info-block);
    border: 1px dashed var(--border-color);
    font-size: 12px;
}
.posts-list-stats-filter-chip-main {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
}
.posts-list-stats-filter-chip-main:hover,
.posts-list-stats-filter-chip-main:focus-visible {
    color: var(--text-link);
}
.posts-list-stats-filter-chip .posts-list-stats-filter-clear {
    border: none;
    background: none;
    padding: 0 2px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1;
}
.posts-list-stats-filter-chip .posts-list-stats-filter-clear:hover {
    color: var(--fp-color);
}
.posts-list-stats-filters-head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.spot-chart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.spot-charts-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 4px 0 12px;
}
.spot-charts-period-wrap {
    flex: 0 0 auto;
}
.spot-charts-period-wrap .period-slider-field {
    margin: 0;
}
.spot-charts-blocks {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.spot-charts-panel.is-loading-charts .spot-charts-blocks {
    opacity: 0.45;
    pointer-events: none;
}
.spot-charts-panel .spot-charts-loading {
    margin-bottom: 8px;
}
.spot-charts-block {
    position: relative;
    height: 220px;
}
.spot-charts-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
}
.spot-charts-empty {
    margin: 0;
    color: var(--text-muted, #666);
    font-size: 13px;
}
.spot-page-heading {
    margin: 0 0 12px;
}
.spot-page-stub {
    margin-top: 1rem;
}
.posts-list-stats-reset-filters,
.posts-list-stats-other-filters {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-content);
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.3;
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 auto;
}
.posts-list-stats-other-filters {
    border-color: var(--text-link);
    color: var(--text-link);
}
.posts-list-stats-reset-filters:hover,
.posts-list-stats-reset-filters:focus-visible,
.posts-list-stats-other-filters:hover,
.posts-list-stats-other-filters:focus-visible {
    color: var(--text-main);
    border-color: var(--text-main);
}
.posts-list-stats-panel .filter-link {
    color: var(--fp-color);
    text-decoration: none;
}
.posts-list-stats-panel .filter-link:hover {
    text-decoration: underline;
}

.share-id {
    white-space: nowrap;
    position: relative;
}
.share-id a{
    color: var(--text-muted);
    font-size: 10px;
    text-decoration: none;
}
.post-link {
    white-space: nowrap;
}
.post-link a {
    color: var(--text-muted) !important;
    text-decoration: none;
}

.tooltip-data {
    text-align: left;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
    color: #FFF;
    margin-top: 20px;
    opacity: 0;
    padding: 7px;
    position: absolute;
    /* привязка к правому краю иконки: не уезжаем вправо за вьюпорт */
    left: auto;
    right: 0;
    visibility: hidden;
    font-weight: normal;
    font-family: Tahoma, sans-serif;
    z-index: 100;
    font-size: 14px;
    /* max-content + max-width: по тексту, но max(22rem,vw) — иначе при right:0; width:auto shrink-to-fit жмёт к ширине .tooltip-иконки */
    width: max-content;
    max-width: min(22rem, calc(100vw - 0.5rem));
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
}
.tooltip-data a {color :#fff; text-decoration: none;}
.tooltip:hover .tooltip-data{
    opacity: 1;
    visibility: visible;
}
/* Фарм-монетка (desktop): tip под иконкой, right:0 от иконки */
.keepnet-value-coin .tooltip-data {
    top: 100%;
    margin-top: 6px;
    left: auto;
    right: 0;
    width: 300px;
    max-width: min(300px, calc(100vw - 24px));
    white-space: normal;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 400;
}
/* Tooltip после .share внутри .info — якорь к карточке, выравнивание с иконкой (right: 12px) */
@media (min-width: 481px) {
    .info > .tooltip-data {
        right: 12px;
        margin-top: 0;
        top: calc(8px + 1.25em);
    }
}
.share-tooltip-anchor {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}
.share-tooltip-anchor > .tooltip-data {
    right: 0;
    left: auto;
    top: calc(100% + 4px);
    margin-top: 0;
}
.tooltip-data--share-fixed {
    position: fixed;
    z-index: 1000;
}
.locations {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin: 5px;
}
.locations .item {
    flex: 0 0 415px;
    background-size: 415px  !important;
    height: 200px;
    text-align: center;
    position: relative;
    border-radius: 5px;
}
.locations .title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 20px;
    color: #fff;
    background-color:rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px 5px 0 0;
}
.locations .buttons {
    margin-top: 50px;
    font-size: 18px;
}
.locations .props {
    position: absolute;;
    bottom: 0;
    background-color:rgba(0, 0, 0, 0.5);
    font-size: 14px;
    color: #fff;
    padding: 5px 0px;
    width: 100%;
    border-radius: 0 0 5px 5px;
}
.locations a {
    color: #fff;
}
.filters .filter-field {
    min-width: 0;
}
.filters .filter-field.fish input {
    margin-bottom: 3px;
}
.fish-icon {
    position: relative;
}
.fish-icon a img {
    background: #fff;
    border-radius: 30px;
}
.bait-icon img {
    background: #fff;
    border-radius: 20px;
    padding: 2px;
}
.sticker {
    position: absolute;
    left: 0;
    top: 0;
}
.sticker img {
    width: 12px;
}
.filter-link {
    text-decoration: none;
    border-bottom: 1px dashed;
}
.change-object {
    float: right;
}
.fish-meta {
    float: left;
    padding-left: 20px;
}
.fish-max-weights {
    clear: both;
    margin: 12px 0 16px;
    max-width: 520px;
}
.fish-max-weights-table {
    margin: 0;
}
.fish-max-weights-table td {
    white-space: nowrap;
}
.date-period {
    text-align: center;
    padding-top: 50px;
    color: var(--text-muted); /* */
}
.tops-show-block {
    text-align: right;
}
.tops-hide-block {
    float: right;
}
.top-block {
    padding: 5px;
    margin: 10px 0 20px;
}

.tabs {
    display: block;
    list-style: none;
    padding: 5px 0;
    padding:0;
    margin: 0 10px;
}
.tabs li {
    display: inline-block;
}
.tabs a {
    cursor: pointer;
    display: inline-block;
    padding: 5px 10px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    background: #3b4151;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    margin: 1px 0;
}
.tabs a {
    font-size: 16px;
}
.tabs a.active {
    background: var(--bg-tab-active) !important; /* */
    color: var(--text-main); /* */
    cursor: default;
}
.tabs a:hover {
    background: #0d5aa7;
}
.tab-data {
    background: var(--bg-tab-active); /* */
    border-radius: 5px;
    padding: 5px;
}
.small-info {
    color: gray;
    font-size: 10px;
    text-align: center;
    padding: 5px 0;
}

.clip {
    display: inline-block;
    position: relative;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 50%;
    text-align: center;
    font-size: 10px;
    color: white;
    box-shadow:
            0 0 0 3px #f0f0f0, /* Белая внешняя обводка */
            0 4px 6px rgba(0, 0, 0, 0.3);        /* Внутренняя тень */
    background-color:  #333333;
}

.post-extra-depth {
    display: inline-block;
    vertical-align: middle;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
}
.post-extra-depth .post-depth-bobber {
    display: inline-block;
    width: 11px;
    height: 20px;
    vertical-align: middle;
    border: 0;
}
.post-extra-depth .post-style-icon {
    display: inline-block;
    vertical-align: middle;
    border: 0;
}
body.dark-theme .post-extra-depth .post-style-icon,
body.dark-theme .post-extra-depth .post-depth-bobber {
    filter: brightness(0) invert(1);
    opacity: 0.92;
}
.post-extra-depth-val {
    display: inline-block;
    vertical-align: middle;
    margin-left: 3px;
    font-weight: 600;
}

.list-position .post-bug-report-btn {
    padding: 0;
}

.list-position {
    position: relative;
}

.list-position .post-bug-report-btn {
    position: absolute;
    right: 6px;
    bottom: 4px;
}


/***/

.banner-container {
    margin: 10px 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Чтобы на мобильных баннеры переносились */
}

.banner-konkurs img {width: 850px;}

.make-posts {
    width: 330px;
    height: 50px;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    /* Серый градиент для нейтрального вида */
    background: linear-gradient(135deg, #4a4a4a 0%, #2b2b2b 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 1px solid #555;
}

.make-posts a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 65px;
    color: #e0e0e0 !important;
    text-decoration: none !important;
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-weight: 600;
    font-size: 16px;
    z-index: 2;
}

/* Общая настройка для иконок */
.make-posts::before {
    content: "";
    position: absolute;
    left: 18px;
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1); /* Делает иконки белыми */
    opacity: 0.8;
}

/* Иконка VK (исправленный SVG) */
.make-posts.vk::before {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13.162 18.994c-6.098 0-9.57-4.172-9.714-11.107h3.047c.1 5.102 2.345 7.262 4.126 7.711V7.887H13.5v4.406c1.087-.117 2.887-2.117 3.272-4.406h2.894a8.1 8.1 0 01-3 5.484c.9 1.053 2.5 3.1 3.4 5.623h-3.136c-.71-2.226-2.49-3.934-3.568-3.934-.108 0-.216.015-.3.045v3.889h-.002z"/></svg>');
}

/* Иконка Discord */
.make-posts.discord::before {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 11.721 11.721 0 0 0-.617-1.25.077.077 0 0 0-.079-.037 19.736 19.736 0 0 0-4.885 1.515.069.069 0 0 0-.032.027C.533 9.048-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.027 14.027 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128c.125-.094.252-.192.37-.29a.074.074 0 0 1 .077-.01c3.927 1.793 8.18 1.793 12.061 0a.074.074 0 0 1 .077.01c.118.098.245.196.37.29a.077.077 0 0 1-.006.127 12.988 12.988 0 0 1-1.873.893.076.076 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.419-2.157 2.419zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.419-2.157 2.419z"/></svg>');
}
.make-posts.rf4stat::before {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="black" d="M149.1 64.8 109.3 128H64C28.7 128 0 156.7 0 192v224c0 35.3 28.7 64 64 64h384c35.3 0 64-28.7 64-64V192c0-35.3-28.7-64-64-64h-45.3l-39.8-63.2c-11.7-18.6-32.1-29.9-54.1-29.9H203.2c-22 0-42.4 11.3-54.1 29.9ZM256 416c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112Zm0-176c-35.3 0-64 28.7-64 64s28.7 64 64 64 64-28.7 64-64-28.7-64-64-64Z"/></svg>');
}

/* Эффект наведения */
.make-posts:hover {
    filter: brightness(1.2);
    transform: translateY(-1px);
    background: linear-gradient(135deg, #234cb1 0%, #518ccd 100%);
    border-color: #536b7c;
}
.release-hint {
    margin-top: 0;
    padding: 8px 0 0;
    background: transparent;
    border: 0;
    color: #4f3d00;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1200;
    font-size: 13px;
    line-height: 1.35;
    max-width: 320px;
    min-width: 200px;
    white-space: normal;
    display: none;
    pointer-events: auto;
}
.release-hint-body {
    position: relative;
    padding: 8px 28px 8px 10px;
    background: #fff3cd;
    border: 1px solid #f0d98a;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}
.js-release-hint {
    display: none;
}
.js-release-hint.is-dismissed {
    display: none !important;
}
.release-hint-anchor {
    position: relative;
}
.release-hint-target-active {
    box-shadow: 0 0 0 2px rgba(244, 199, 92, 0.65), 0 0 0 8px rgba(244, 199, 92, 0.2);
    border-radius: 10px;
}
/* Текст подсказки — только при наведении / фокусе; padding-top держит hover без зазора */
.release-hint-anchor.release-hint-target-active:hover > .js-release-hint:not(.is-dismissed),
.release-hint-anchor.release-hint-target-active:focus-within > .js-release-hint:not(.is-dismissed) {
    display: block;
}
.release-hint p {
    margin: 0;
}
.release-hint-close {
    position: absolute;
    top: 4px;
    right: 6px;
    border: 0;
    background: transparent;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: #4f3d00;
}
.release-hints-dismiss-all {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1300;
    display: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    background: #fff3cd;
    border: 1px solid #f0d98a;
    color: #4f3d00;

}
.release-hints-dismiss-all:hover {
    background: #f0d98a;
}
.user-menu-container > .release-hint {
    top: calc(100% + 6px);
    left: 0;
    max-width: 360px;
}
.menu > ul > li > .release-hint {
    top: calc(100% + 6px);
    left: 0;
}

/***/
.source-name {
    white-space: nowrap;
}
.source-icon {
    vertical-align: middle;
    display: inline-block;
    overflow: hidden;
    border-radius: 20px;
}
.source-icon i {
    color: #0d5aa7;
    font-size: 16px;
    vertical-align: middle;
}
.source-icon img {
    width: 18px;
    max-height: 18px;    
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.source-icon-full img {
    width: 200px;
    max-height: 200px;
    overflow: hidden;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}
.source-link {
    display: inline-block;
    margin-left: 10px;
 
}
.source-link a {
    color: var(--text-muted);
    text-decoration: none;
}

/* user auth */
.user-panel {display: inline-block;}

.user-panel .avatar img{
    height: 20px;
    border-radius: 10px;
}

.user-panel span {
    vertical-align: middle;
    display: inline-block;
}

.auth-modal-overlay {
    display: none;
    position: fixed;
    z-index: 10050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    /* ближе к верху экрана (не по центру по вертикали) + запас снизу под sticky-баннеры */
    padding: 12px 12px 120px;
    box-sizing: border-box;
}

.auth-modal-content {
    background-color: var(--bg-body);
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
    max-height: min(85vh, calc(100vh - 12px - 120px - 24px));
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-align: center;
}

.auth-close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}
.auth-close-btn:hover,
.auth-close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.auth-back {
    display: block;
    padding-top: 10px;
}

.auth-input {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.auth-input-code {
    text-align: center;
    letter-spacing: 5px;
    font-size: 18px;
}


/* Блок сообщений об ошибках */
.auth-message-box {
    color: red;
    margin-top: 10px;
    text-align: center;
    min-height: 20px;
    font-size: 14px;
}
.auth-message-box:empty {
    display: none;
    margin: 0;
    min-height: 0;
}
.finder-share-modal-content {
    width: 800px;
    max-width: 94vw;
    margin-top: 0;
    text-align: left;
}
.finder-share-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.finder-share-dropzone {
    position: relative;
    border: 2px dashed #888;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
}
.finder-share-dropzone.is-dragover {
    border-color: #1976d2;
    background: rgba(25, 118, 210, 0.08);
}
.finder-share-file-actions--desktop-only {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 8px;
}
.finder-share-file-actions--mobile-only {
    display: none;
}
.finder-share-file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.finder-share-file-actions--desktop-only .button,
.finder-share-file-actions--mobile-only .button {
    margin: 0;
}
.finder-share-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    gap: 8px;
}
.finder-share-preview-item {
    position: relative;
}
.finder-share-upload-status {
    position: absolute;
    bottom: 6px;
    left: 6px;
    z-index: 2;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    pointer-events: none;
}
.finder-share-upload-spinner {
    border: 2px solid rgba(128, 128, 128, 0.35);
    border-top-color: #1976d2;
    border-radius: 50%;
    animation: finder-share-spin 0.65s linear infinite;
}
.finder-share-upload-ok {
    color: #2e7d32;
    text-shadow: 0 0 2px #fff;
}
.finder-share-upload-err {
    color: #c62828;
    font-weight: 700;
    text-shadow: 0 0 2px #fff;
}
@keyframes finder-share-spin {
    to { transform: rotate(360deg); }
}
.finder-share-preview-item.is-uploading img {
    opacity: 0.55;
}
.finder-share-preview-item.is-error img {
    border: 2px solid #c62828;
    box-sizing: border-box;
}
.finder-share-preview-item img {
    width: 100%;
    height: 86px;
    object-fit: cover;
    border-radius: 6px;
}
.finder-share-remove-file {
    position: absolute;
    top: 2px;
    right: 2px;
    border: 0;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
}
.finder-share-label {
    font-size: 14px;
    font-weight: 600;
}
.finder-share-rules {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg-tab-active);
    border-radius: 6px;
    padding: 8px 10px;
}
.finder-share-rules p {
    margin: 0 0 4px;
}
.finder-share-rules ul {
    margin: 0;
    padding-left: 18px;
}
.finder-share-rules li {
    margin: 4px 0;
}
.finder-share-text {
    resize: vertical;
    line-height: 1.35;
}
.finder-share-submit-btn[disabled] {
    cursor: not-allowed;
    opacity: 0.45;
    background: #7a7a7a;
}
.finder-share-submit-btn[disabled]:hover {
    background: #7a7a7a;
}

.auth-legal-consent {
    text-align: left;
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 1.4;
}
.auth-legal-consent-label a {
    color: #1976d2;
    text-decoration: underline;
}
.dark-theme .auth-legal-consent-label {
    color: #eee;
}
.dark-theme .auth-legal-consent-label a {
    color: #90caf9;
}

.profile-page .profile-field, .user-profile-page .user-profile-label {
    margin: 8px 0 4px;
}
.profile-page .profile-field.profile-field-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin: 6px 0 6px;
}
.profile-page .profile-readonly-label {
    color: #666;
    font-size: 14px;
    margin: 0;
    flex: 0 0 auto;
}
.profile-role-badge {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}
.profile-role-badge--user {
    color: #09802b;
}
.profile-role-badge--partner {
    color: #1565c0;
}
.profile-role-badge--ambassador {
    color: #6a1b9a;
}
.profile-role-badge--moderator {
    color: #e65100;
}
.profile-role-badge--admin {
    color: #c62828;
}
.user-profile-page-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.user-profile-page-top .user-profile-card {
    flex: 1 1 auto;
    min-width: 0;
}
.user-profile-sidebar {
    flex: 0 0 260px;
    max-width: 280px;
    box-sizing: border-box;
    position: sticky;
    top: 12px;
    padding: 10px;
    border-radius: 10px;
    background: var(--bg-content);
    border: 1px solid var(--border-color);
}
.user-profile-stats-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}
.user-profile-stats-actions .button {
    text-align: center;
    box-sizing: border-box;
}
.user-profile-username-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    margin: 6px 0 4px;
}
.user-profile-username-line .user-profile-username-text {
    margin: 0;
}
.profile-page .profile-readonly-block {
    margin-bottom: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}
.profile-readonly-value {
    margin: 3px 0 0;
}
.profile-avatar-preview, .user-profile-avatar {
    border-radius: 8px;
    object-fit: cover;
    max-width: 100%;
    height: auto;
}
.form-flash-ok {
    color: #2e7d32;
}
.profile-page .profile-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px 20px;
}
.profile-page .profile-form-row > .profile-field {
    flex: 1 1 224px;
    min-width: 0;
    margin: 6px 0 3px;
}
.profile-page .profile-field-email .profile-email-flow {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.profile-page .profile-field-email .profile-email-flow .auth-input.auth-input-code {
    max-width: 100%;
    box-sizing: border-box;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.profile-oauth-block,
.profile-delete-account-form {
    margin: 20px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid #e0e0e0;
    box-sizing: border-box;
    width: 100%;
}
.profile-oauth-block {
    clear: both;
}
.profile-oauth-hint {
    margin: 0 0 12px;
}
.profile-oauth-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px 20px;
    align-items: stretch;
}
.profile-oauth-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: var(--bg-body, #fff);
    box-sizing: border-box;
}
.profile-oauth-col-head {
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 6px;
}
.profile-oauth-unlink-form .button {
    width: 100%;
    box-sizing: border-box;
    min-height: 40px;
    padding: 10px 12px;
    font-size: 14px;
}
.profile-delete-ack-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}
.profile-delete-ack-input {
    flex-shrink: 0;
    margin-top: 2px;
}
.profile-legal-block {
    margin: 20px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--border-color, #e0e0e0);
}
.profile-legal-links {
    margin: 0;
    font-size: 14px;
}
.profile-legal-links a {
    color: var(--link-color, #1976d2);
    text-decoration: underline;
}
.profile-legal-links a:hover {
    text-decoration: none;
}
.profile-legal-sep {
    display: inline-block;
    margin: 0 0.5em;
    color: var(--text-muted, #666);
    user-select: none;
}
.profile-premium-payments {
    margin: 20px 0 ;
    padding: 20px 0 0;
    border-top: 1px solid var(--border-color, #e0e0e0);
}
.profile-premium-payments-empty {
    margin: 0;
}
.profile-premium-payments-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
}
.profile-referral-table-scroll {
    max-height: min(360px, 50vh);
    overflow: auto;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 6px;
}
.profile-referral-table-scroll .profile-premium-payments-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}
.user-messages-compose {
    margin: 0 0 24px;
    padding: 16px 18px;
}
.user-messages-compose-title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main, inherit);
}
.user-messages-inbox-title {
    margin: 0 0 16px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main, inherit);
}
.user-messages-compose-hint {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--text-muted, #666);
}
.user-messages-compose-field {
    margin: 0 0 12px;
}
.user-messages-compose-label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main, inherit);
}
.user-messages-compose-field .auth-input {
    width: 100%;
    max-width: 520px;
    box-sizing: border-box;
}
.user-messages-compose-text {
    min-height: 110px;
    resize: vertical;
}
.user-messages-compose-user-status,
.user-messages-compose-status {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.35;
}
.user-messages-compose-user-status.is-error,
.user-messages-compose-status.is-error {
    color: #b91c1c;
}
.user-messages-compose-user-status.is-ok,
.user-messages-compose-status.is-ok {
    color: #0b7500;
}
body.dark-theme .user-messages-compose-user-status.is-error,
body.dark-theme .user-messages-compose-status.is-error {
    color: #f87171;
}
body.dark-theme .user-messages-compose-user-status.is-ok,
body.dark-theme .user-messages-compose-status.is-ok {
    color: #86efac;
}
.user-messages-compose-actions {
    margin: 0;
}
.profile-premium-payments-table {
    width: 100%;
    min-width: 420px;
    border-collapse: collapse;
    font-size: 14px;
    color: var(--text-main, inherit);
}
.profile-premium-payments-table th,
.profile-premium-payments-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    vertical-align: top;
}
.profile-premium-payments-table th {
    font-weight: 600;
    color: var(--text-main, inherit);
    background: var(--bg-content, rgba(0, 0, 0, 0.03));
}
body.dark-theme .profile-premium-payments-table th {
    background: rgba(255, 255, 255, 0.06);
}
.profile-coupon-link-cell a,
.profile-share-link-row a:first-child {
    display: inline-block;
    max-width: calc(100% - 24px);
    margin-right: 6px;
    word-break: break-all;
    font-size: 13px;
    line-height: 1.35;
    vertical-align: middle;
}
.profile-coupon-link-cell .share,
.profile-share-link-row .share,
.share-tooltip-anchor .share {
    display: inline-block;
    vertical-align: middle;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
}
.profile-share-link-row {
    margin: 4px 0 0;
    word-break: break-all;
}
.profile-share-link-row + .profile-share-link-row {
    margin-top: 8px;
}
.button.button-danger {
    background: #c62828;
    border-color: #b71c1c;
    color: #fff;
}

.site-info-flash {
    margin: 0 0 1em;
    padding: 10px 14px;
    border-radius: 6px;
}
.site-info-flash.site-info-flash--page {
    margin: 0 0 1.35rem;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    border: 1px solid transparent;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.site-info-flash.site-info-flash--page.site-info-flash--success {
    background: linear-gradient(145deg, rgba(46, 125, 50, 0.16) 0%, rgba(46, 125, 50, 0.07) 100%);
    border-color: rgba(46, 125, 50, 0.42);
    color: #1b5e20;
}
.site-info-flash.site-info-flash--page.site-info-flash--error {
    background: linear-gradient(145deg, rgba(198, 40, 40, 0.12) 0%, rgba(198, 40, 40, 0.05) 100%);
    border-color: rgba(198, 40, 40, 0.45);
    color: #b71c1c;
}
body.dark-theme .site-info-flash.site-info-flash--page {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}
body.dark-theme .site-info-flash.site-info-flash--page.site-info-flash--success {
    background: rgba(46, 125, 50, 0.22);
    border-color: rgba(129, 199, 132, 0.45);
    color: #c8e6c9;
}
body.dark-theme .site-info-flash.site-info-flash--page.site-info-flash--error {
    background: rgba(198, 40, 40, 0.22);
    border-color: rgba(239, 83, 80, 0.48);
    color: #ffccbc;
}
.profile-name-row .auth-input {
    flex: 1;
    min-width: 0;
}
.profile-name-check {
    flex-shrink: 0;
    display: none;
    color: #2e7d32;
    font-size: 19px;
    line-height: 1;
}
.profile-name-check.is-visible {
    display: block;
}
.profile-form-messages,
.profile-form-messages-field {
    margin: 2px 0 4px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.profile-form-messages .profile-field-msg,
.profile-form-messages-field .profile-field-msg {
    margin-top: 3px;
    margin-bottom: 2px;
    text-align: left;
}
.profile-hint, .profile-public-link {
    font-size: 14px;
    color: #666;
    margin: 8px 0 16px;
}
.profile-subheading {
    font-size: 18px;
    margin: 0 0 8px;
}
.user-profile-page .user-profile-card p {
    margin: 6px 0;
}

/* --- Стили Прелоадера (CSS Spinner) --- */
.preloader-container {
    display: none;
    text-align: center;
    padding: 40px 0;
}
.preloader-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
.preloader-spinner-text {
    margin-top: 15px;
    font-weight: bold;
    color: #555;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* --- Стили Меню Пользователя --- */
.user-menu-container {
    position: relative;
    display: inline-block;
}

.user-menu-trigger {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    user-select: none;
    font-weight: bold;
    color: var(--text-main);
}
.user-menu-trigger:hover {
    background-color: var(--bg-tab-active);
}
.user-menu-trigger .arrow {
    font-size: 10px;
    margin-left: 5px;
}


/* Выпадающий блок */
.user-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1001;
    border-radius: 8px;
    padding: 10px 0;
    border: 1px solid #ddd;
    margin-top: 5px;
}


/* Элементы меню */
.menu-item {
    padding: 8px 20px;
    cursor: pointer;
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}
.menu-item:hover {
    background-color: #f1f1f1;
}
.menu-label {
    padding: 5px 20px;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
}
.menu-divider {
    height: 1px;
    background-color: #eee;
    margin: 5px 0;
}
.menu-item.disabled {
    color: #b5b5b5;
    cursor: default;
}

.social-auth-buttons {
    margin-bottom: 15px;
}

.btn-social {
    display: block;
    width: 100%;       /* Кнопка во всю ширину */
    margin-bottom: 10px;
    text-align: center;
    font-size: 14px;
    border: none;
    padding: 10px;
    box-sizing: border-box;
    text-decoration: none; /* Убираем подчеркивание ссылок */
    color: #fff !important; /* Цвет текста белый */
}

.btn-social i {
    margin-right: 10px;
    font-size: 16px;
    vertical-align: middle;
}

/* Цвета брендов */
.btn-discord {
    background-color: #5865F2 !important; /* Discord Blurple */
}
.btn-discord:hover {
    background-color: #4752C4 !important;
}

.btn-vk {
    background-color: #0077FF !important; /* VK Blue */
}
.btn-vk:hover {
    background-color: #0066DD !important;
}

.btn-donationalerts {
    background-color: #e39700 !important;
}
.btn-donationalerts:hover {
    background-color: #c08000 !important;
}

/* Разделитель "или" */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
    z-index: 1;
}

.auth-divider span {
    position: relative;
    z-index: 2;
    background: var(--bg-body);
    padding: 0 10px;
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
}

/* Кнопка Email тоже во всю ширину */
.btn-full-width {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
}

/* POSTs */
.posts {
    display: grid;
    grid-template-columns: repeat(2,  1fr);    
    gap: 10px;
}
.posts-inpage-ad {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}
.post-item {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 5px;
    padding: 5px;
    background: var(--bg-fp-message);
    border-radius: 10px;
    position: relative;
}

.post-reply-to {
    flex: 1 1 100%;
    margin: 0 0 2px 4px;
    font-size: 13px;
    line-height: 1.35;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.2em 0.35em;
}
.post-reply-to-icon {
    opacity: 0.85;
    font-size: 0.95em;
}
.post-reply-to-prefix {
    color: inherit;
}
.post-reply-to-link {
    color: var(--fp-color);
    text-decoration: none;
    font-weight: 500;
}
.post-reply-to-link:hover {
    text-decoration: underline;
}

.post-info, .post-detail {
    flex: 0 0 534px;
    height: 200px;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    position: relative;
    /*border: 2px solid #ccc;*/
    background: var(--bg-body);
    border-left: 5px solid rgba(0, 0, 0, 0);
}
/* Список: фикс. ширина + min-width:0 — клип рыб; post-one не трогаем */
.posts .post-item .post-info {
    flex: 0 1 534px;
    width: 534px;
    max-width: 534px;
    min-width: 0;
}
.post-detail {
    height: auto;
}
.print-mode .post-item{
    padding: 0;
    display: block;
    background: #e7e7e7;
    margin-bottom: 0;
}
.print-mode .post-info {
    flex: none;
    width: 392px !important;
    background: #fff;
}

.post-item.troff-1 .post-info{
    border-left: 5px solid rgba(234, 200, 17, 1);

    /*
    background-image: linear-gradient(var(--bg-body), rgba(234, 200, 17, 0.2));
    background: rgba(234, 200, 17, 0.3);
    box-shadow: 0 0 5px rgba(234, 200, 17, 1);
    border: 2px solid rgba(234, 200, 17, 1);
     */
}
.post-item.troff-2 .post-info{
    border-left: 5px solid rgba(0, 170, 251, 0.5);
    /*
    background-image: linear-gradient(var(--bg-body), rgba(0, 170, 251, 0.3));
    background: rgba(0, 170, 251, 0.3);
    box-shadow: 0 0 5px rgba(0, 170, 251, 1);
    border: 2px solid rgba(0, 170, 251, 1);
     */
}

.post-item.rarity-2 .post-info {
    background-image: linear-gradient(var(--bg-body), rgba(180, 127, 254, 0.2));
}
.post-item.rarity-3 .post-info {
    background-image: linear-gradient(var(--bg-body), rgba(232, 124, 229, 0.2));
}

.post-item .time-col {
    position: absolute;
    top: 10px;
    left: 10px;
}
.post-item .post-weather,
td.weather .rf4-weather-badge {
    display: block;
    width: fit-content;
    max-width: 100%;
    font-size: 11px;
    padding: 2px 4px;
    background: #dae2de;
    border-radius: 5px;
}
.post-item .post-weather {
    display: inline-block;
    margin-top: 0.25rem;
    line-height: 1;
}
body.dark-theme .post-item .post-weather,
body.dark-theme td.weather .rf4-weather-badge {
    background: #2a332f;
}
.post-item .rf4-weather-compact {
    display: inline;
    position: relative;
    margin-top: 0;
    font-size: inherit;
    line-height: 1;
    color: #4a5568;
}
.post-item .rf4-weather-compact.tooltip .tooltip-data {
    top: calc(100% + 6px);
    bottom: auto;
    margin-top: 0;
    left: 0;
    right: auto;
    white-space: normal;
}
.post-item .rf4-weather-air,
.post-item .rf4-weather-compact .rf4-weather-water {
    display: inline;
    line-height: 1;
    vertical-align: baseline;
    white-space: nowrap;
}
.post-item .rf4-weather-compact .rf4-weather-water {
    margin-left: 0.35rem;
}
.post-item .rf4-weather-air-icon {
    font-size: 0.95em;
    line-height: 1;
    margin-right: 0.08rem;
    vertical-align: baseline;
}
.post-item .rf4-weather-air-text,
.post-item .rf4-weather-water-text {
    line-height: 1;
    vertical-align: middle;
}
.post-item button.rf4-weather-compact {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
}
.post-item a.rf4-spot-locked-trigger .rf4-weather-compact {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
}
.post-item .rf4-weather-compact--locked .rf4-weather-air-text,
.post-item .rf4-weather-compact--locked .rf4-weather-water-text,
.post-item .rf4-weather-locked {
    filter: blur(2px);
    letter-spacing: 1px;
}
.post-item .rf4-weather-water-forecast-mismatch {
    text-decoration: line-through;
    opacity: 0.65;
    font-weight: 400;
    line-height: 1;
}
body.dark-theme .post-item .rf4-weather-compact {
    color: #a0aec0;
}

/* Weather: strip, list column, stats, page, side panel */
.rf4-weather-locked,
.rf4-weather-compact--locked .rf4-weather-air-text,
.rf4-weather-compact--locked .rf4-weather-water-text {
    filter: blur(2px);
    letter-spacing: 1px;
}
.rf4-weather-adblock-msg {
    padding: 0.75rem 0;
    color: var(--text-main, #222);
}
.rf4-weather-strip {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: linear-gradient(180deg, #f7fafc 0%, #eef3f7 100%);
}
.rf4-weather-slot {
    flex: 1 1 0;
    min-width: 4.5rem;
    padding: 0.55rem 0.4rem;
    text-align: center;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}
.rf4-weather-slot:last-child {
    border-right: 0;
}
.rf4-weather-slot-gap {
    flex: 0 0 auto;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    padding: 0 0.25rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
    color: #4a5568;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.04);
    user-select: none;
}
body.dark-theme .rf4-weather-slot-gap {
    color: #cbd5e0;
    border-right-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}
body.dark-theme .rf4-weather-strip {
    border-color: rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, #1e2430 0%, #171c26 100%);
}
body.dark-theme .rf4-weather-slot {
    border-right-color: rgba(255, 255, 255, 0.1);
}
body.dark-theme .rf4-weather-slot.is-event {
    background: rgba(99, 179, 237, 0.14);
}
body.dark-theme .rf4-weather-slot.is-now {
    box-shadow: inset 0 -3px 0 #63b3ed;
}
body.dark-theme .rf4-weather-slot-label {
    color: #a0aec0;
}
body.dark-theme .rf4-weather-slot-temp {
    color: #f7fafc;
}
body.dark-theme .rf4-weather-slot-wind {
    color: #a0aec0;
}
body.dark-theme .rf4-weather-slot-water {
    color: #63b3ed;
}
body.dark-theme .rf4-weather-strip--empty {
    color: #a0aec0;
}
body.dark-theme .rf4-weather-adblock-msg {
    color: var(--text-main);
}
.rf4-weather-slot.is-event {
    background: rgba(33, 102, 172, 0.12);
}
.rf4-weather-slot.is-now {
    box-shadow: inset 0 -3px 0 #2166ac;
}
.rf4-weather-slot-label {
    font-size: 0.72rem;
    line-height: 1.2;
    color: #4a5568;
    min-height: 2.1em;
    margin-bottom: 0.25rem;
}
.rf4-weather-slot-time::before {
    content: ' · ';
}
.rf4-weather-slot-temp {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.2;
}
.rf4-weather-slot-wind {
    margin-top: 0.3rem;
    font-size: 0.75rem;
    color: #4a5568;
}
.rf4-weather-slot-water {
    margin-top: 0.25rem;
    font-size: 0.7rem;
    line-height: 1.2;
    color: #2b6cb0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}
.rf4-weather-water-icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 14px;
    height: 12px;
    vertical-align: middle;
    object-fit: contain;
}
.rf4-weather-water-icon--dark {
    display: none;
}
body.dark-theme .rf4-weather-water-icon--light {
    display: none;
}
body.dark-theme .rf4-weather-water-icon--dark {
    display: inline-block;
}
.rf4-weather-water-text {
    vertical-align: middle;
}
.rf4-weather-strip--empty {
    padding: 0.75rem 1rem;
    color: #718096;
}
.rf4-weather-location {
    margin: 0 0 1.25rem;
}
.rf4-weather-location-head {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}
.rf4-weather-location-title {
    margin: 0;
    font-size: 1.1rem;
}
td.weather {
    overflow: visible;
    vertical-align: middle;
}
td.weather .rf4-weather-compact {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem 0.4rem;
    position: relative;
    margin-top: 0;
    font-size: inherit;
    line-height: 1;
    color: #4a5568;
    vertical-align: middle;
}
td.weather .rf4-weather-compact.tooltip .tooltip-data {
    top: calc(100% + 6px);
    bottom: auto;
    margin-top: 0;
    left: auto;
    right: 0;
}
td.weather .rf4-weather-compact--stack {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    vertical-align: top;
}
td.weather .rf4-weather-air,
td.weather .rf4-weather-compact .rf4-weather-water {
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
    line-height: 1;
}
td.weather .rf4-weather-air {
    gap: 0.08rem;
}
td.weather .rf4-weather-air-icon {
    font-size: 0.95em;
    line-height: 1;
    width: auto;
    margin-right: 0;
    text-align: center;
}
td.weather .rf4-weather-air-text,
td.weather .rf4-weather-water-text {
    line-height: 1;
    vertical-align: middle;
}
td.weather button.rf4-weather-compact {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
}
td.weather .rf4-weather-water-forecast-mismatch {
    text-decoration: line-through;
    opacity: 0.65;
    font-weight: 400;
    line-height: 1;
}
body.dark-theme td.weather .rf4-weather-compact {
    color: #a0aec0;
}
.rf4-weather-attribution {
    margin: 0 0 0.85rem;
    font-size: 0.85rem;
    line-height: 1.35;
    color: #4a5568;
}
.rf4-weather-attribution a {
    color: #2166ac;
}
.rf4-weather-strip--panel + .rf4-weather-attribution,
.rf4-weather-panel-now + .rf4-weather-attribution {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
}
.rf4-weather-panel-now {
    margin-top: 0.85rem;
}
.rf4-weather-panel-now-label {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    color: #4a5568;
}
body.dark-theme .rf4-weather-panel-now-label {
    color: #a0aec0;
}
body.dark-theme .rf4-weather-attribution {
    color: #a0aec0;
}
body.dark-theme .rf4-weather-attribution a {
    color: #63b3ed;
}
.posts-list-stats-avg-weather {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}
.posts-list-stats-avg-weather-cell {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
}
.posts-list-stats-weather-now {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2166ac;
    font: inherit;
    font-size: 0.85em;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}
.posts-list-stats-weather-now:hover {
    text-decoration: underline;
}
body.dark-theme .posts-list-stats-weather-now {
    color: #63b3ed;
}
.posts-list-stats-weather-now .rf4-weather-water-level-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 1em;
    font-size: 1em;
    font-weight: 700;
    transform: translateY(-0.14em);
}
.posts-list-stats-avg-weather.tooltip .tooltip-data {
    top: calc(100% + 8px);
    bottom: auto;
    margin-top: 0;
    left: auto;
    right: 0;
    width: max-content;
    max-width: min(22rem, calc(100vw - 24px));
    white-space: normal;
}
.posts-list-stats-water-now {
    margin-left: 0.25rem;
    font-size: 0.75rem;
    color: #2166ac;
}
body.dark-theme .posts-list-stats-water-now,
body.dark-theme .posts-list-stats-panel--water .posts-list-stats-water-now {
    color: #63b3ed;
}
.weather-page {
    max-width: 1100px;
}

@media (max-width: 480px) {
    .weather-page {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    .rf4-weather-attribution {
        margin: 0 0 0.65rem;
        font-size: 0.8rem;
        padding: 0 2px;
    }
    .rf4-weather-location {
        margin: 0 0 1rem;
    }
    .rf4-weather-location-title {
        font-size: 1rem;
        line-height: 1.3;
        word-break: break-word;
    }
    .rf4-weather-strip {
        margin: 0 -4px;
        border-radius: 6px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }
    .rf4-weather-slot {
        flex: 0 0 auto;
        width: 4.35rem;
        min-width: 4.35rem;
        max-width: 4.6rem;
        padding: 0.45rem 0.25rem 0.5rem;
        scroll-snap-align: start;
    }
    .rf4-weather-slot-gap {
        min-width: 1.35rem;
        font-size: 0.9rem;
        scroll-snap-align: none;
    }
    .rf4-weather-slot-label {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0.1rem;
        min-height: 2.35em;
        font-size: 0.65rem;
        line-height: 1.15;
    }
    .rf4-weather-slot-time::before {
        content: none;
    }
    .rf4-weather-slot-temp {
        font-size: 1.1rem;
    }
    .rf4-weather-slot-wind {
        font-size: 0.68rem;
        margin-top: 0.2rem;
    }
    .rf4-weather-slot-water {
        flex-direction: column;
        gap: 0.12rem;
        margin-top: 0.2rem;
        font-size: 0.62rem;
        line-height: 1.15;
    }
    .rf4-weather-slot-water .rf4-weather-water-text {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }
    .rf4-weather-strip--panel {
        margin: 0;
    }
}

.post-item .loc-col {
    text-align: center;
}
.post-item .spot-col{
    position: absolute;
    top: 10px;
    right: 10px;
}
.post-item .player {
    position: absolute;
    right: 10px;
    top: 35px;
}
.post-item .fish-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    padding-top: 25px;
    height: 102px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
}
.post-item .fish-list-icons {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
}
.post-item .fish-list-icons-clip {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
}
/* Горизонтальный клип только у рыб — садок с тултипом фарма вне overflow */
.post-item .fish-list-icons-fish {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    gap: 3px;
}
.post-item .fish-list-icons-clip:has(> .fish-icon--keepnet) .fish-list-icons-fish {
    max-width: calc(100% - 90px);
}
.post-item .fish-list-icons-fish .fish-icon,
.post-item .fish-list-icons-clip > .fish-icon--keepnet {
    flex: 0 0 auto;
}
.post-item .fish-list.keepnet {
    height: auto;
    margin-bottom: 50px;
}

.post-keepnet-section {
    clear: both;
    width: 100%;
    margin: 16px 0 36px;
    text-align: left;
    position: relative;
}
.post-keepnet-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-bottom: 12px;
}
.post-keepnet-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}
.post-keepnet-count {
    font-weight: 400;
    opacity: 0.85;
}
.post-keepnet-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
}
.post-keepnet-summary-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-main);
}
.post-keepnet-summary-label {
    opacity: 0.85;
}
.post-keepnet-summary-val {
    font-weight: 600;
}
.post-keepnet-summary-sep {
    opacity: 0.45;
    margin: 0 1px;
}
.post-keepnet-summary-raw-sum {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.post-keepnet-summary-period {
    white-space: nowrap;
}
/* Единая монетка: в светлой теме цвет как у прежнего fa-coins (#6b7280), на тёмном — светлый силуэт */
.rf4-coin-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    filter: brightness(0) saturate(100%) invert(47%) sepia(8%) saturate(550%) hue-rotate(182deg) brightness(94%) contrast(88%);
}
.rf4-coin-icon.keepnet-value-coin-img {
    width: 13px;
    height: 13px;
}
body.dark-theme .rf4-coin-icon,
.post-keepnet-card .rf4-coin-icon {
    filter: brightness(0) invert(1);
    opacity: 0.92;
}
.keepnet-value-coin {
    line-height: 0;
}
.keepnet-value-coin .rf4-coin-icon {
    display: block;
}
.post-keepnet-summary-farm .keepnet-value-coin {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    margin-right: 2px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 0;
}
/* В деталях поста монетка слева — tip вправо, иначе срезает overflow панели */
.post-keepnet-summary-farm .keepnet-value-coin .tooltip-data,
.post-detail-panel .keepnet-value-coin .tooltip-data {
    left: 0;
    right: auto;
}
.post-keepnet-sort {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}
.post-keepnet-sort-label {
    color: var(--text-muted, var(--text-main));
    opacity: 0.85;
}
.post-keepnet-sort-select {
    font-size: 12px;
    padding: 2px 4px;
}
.post-keepnet-grid {
    --keepnet-card-min: 160px;
    --keepnet-card-h: 130px;
    --keepnet-gap: 5px;
    width: 100%;
    max-width: 1115px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--keepnet-card-min), 1fr));
    gap: var(--keepnet-gap);
}
.post-keepnet-section--collapsed .post-keepnet-grid {
    max-height: calc(var(--keepnet-card-h) * 2 + var(--keepnet-gap));
    overflow: hidden;
}
.post-keepnet-more-wrap {
    display: none;
    margin-top: 8px;
    text-align: center;
}
.post-keepnet-section--collapsible .post-keepnet-more-wrap {
    display: block;
}
.post-keepnet-more {
    margin: 0;
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-content);
    color: var(--text-link);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
.post-keepnet-more:hover,
.post-keepnet-more:focus-visible {
    background: rgba(0, 0, 0, 0.04);
    outline: none;
}
body.dark-theme .post-keepnet-more:hover,
body.dark-theme .post-keepnet-more:focus-visible {
    background: rgba(255, 255, 255, 0.06);
}
.post-keepnet-card {
    position: relative;
    width: 100%;
    height: 130px;
    background: #454545;
    border-radius: 2px;
    overflow: hidden;
    color: #fff;
    box-sizing: border-box;
}
.post-keepnet-card-age {
    position: absolute;
    top: 4px;
    left: 5px;
    z-index: 2;
    font-size: 9px;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    pointer-events: none;
}
.post-keepnet-card-sticker {
    position: absolute;
    top: 3px;
    right: 4px;
    z-index: 3;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    pointer-events: none;
}
.post-keepnet-card-sticker img {
    width: 13px;
    height: auto;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85));
}
.post-keepnet-card-fish-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 4px 36px;
    box-sizing: border-box;
}
.post-keepnet-card-fish-wrap a {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
}
.post-keepnet-card-fish {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}
.post-keepnet-card-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 5px 5px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
    box-sizing: border-box;
}
.post-keepnet-card-name {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.post-keepnet-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 4px;
    margin-top: 1px;
}
.post-keepnet-card-weight {
    font-size: 9px;
    opacity: 0.95;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.post-keepnet-card-price {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.post-keepnet-card-price .rf4-coin-icon {
    width: 12px;
    height: 12px;
    vertical-align: 0;
}

.post-item .fish-icon {
    display: inline-block;
    vertical-align: top;
    width: 90px;
    height: 105px;
    overflow: hidden;
}
.post-item .fish-icon .keepnet-icon {
    display: block;
    width: 51px;
    height: 46px;
    padding-top: 5px;
    font-size: 16px;
    text-align: center;
    border: 2px solid var(--text-main);
    border-radius: 40px;
    color: var(--text-main);
    text-decoration: none;
}
span.keepnet-icon {
    box-sizing: border-box;
}
.print-mode .post-item .fish-icon .keepnet-icon-img {
    display: block;
    width: 14px;
    height: 14px;
    margin: 0 auto 1px;
}
.print-mode .post-item .fish-icon .keepnet-value-coin-img {
    display: inline-block;
    width: 13px;
    height: 13px;
    vertical-align: -2px;
    margin-right: 3px;
}
.print-mode .post-item .fish-icon--keepnet {
    overflow: visible;
    height: auto;
    width: 72px;
    text-align: center;
    vertical-align: top;
}
.print-mode .post-item .fish-icon--keepnet .keepnet-icon {
    display: block;
    box-sizing: border-box;
    width: 52px;
    height: 52px;
    /* Иконки рыб ~55px с прозрачными полями — кружок опускаем к силуэту */
    margin: 10px auto 0;
    padding: 6px 0 0;
    border: 2px solid #222;
    /* wkhtml: CSS vars / border-radius / flex часто ломаются — кольцо ещё и PNG-фоном */
    -webkit-border-radius: 26px;
    border-radius: 26px;
    color: #222;
    background-color: #fff;
    background-image: url(../images/keepnet-circle.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 52px 52px;
    line-height: 1.05;
    text-align: center;
}
.print-mode .post-item .fish-icon--keepnet .keepnet-count {
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    color: #222;
}
.print-mode .post-item .fish-icon--keepnet .keepnet-value {
    display: block;
    margin-top: 3px;
    padding: 0;
    font-size: 11px;
    line-height: 1.2;
    color: #222;
    text-align: center;
    white-space: nowrap;
}
.print-mode .post-item .fish-icon--keepnet .keepnet-value-num {
    display: inline;
    vertical-align: middle;
}
/* nowrap у ряда иконок — перенос имени внутри .fish-icon */
.print-mode .post-item .fish-icon .fish-name,
.print-mode .post-item .fish-icon .fish-name a,
.print-mode .post-item .fish-icon .fish-name .fish {
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.post-item .fish-icon--keepnet {
    overflow: visible;
    text-align: center;
}
.post-item .fish-icon--keepnet .keepnet-icon {
    margin-left: auto;
    margin-right: auto;
}
.post-item .fish-icon .keepnet-count {
    line-height: 1.2;
    font-size: 13px;
    font-weight: 600;
}
.post-item .fish-icon .keepnet-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-top: 4px;
    width: 100%;
    font-size: 11px;
    line-height: 1.2;
    color: var(--text-main);
    white-space: nowrap;
}
.post-item .fish-icon .keepnet-value-num {
    overflow: hidden;
    text-overflow: ellipsis;
}
.post-item .fish-icon .keepnet-value-coin {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    line-height: 0;
}
.post-item .fish-icon a img{
    width: 55px;
}
.post-item .fish-icon .weight{
    display: block;
}
.post-item .fish-icon .fish-name{
    display: block;
}
.post-item .fish-icon .fish-name a,
.post-item .fish-icon .fish-name .fish {
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.post-item .baits {
    position: absolute;
    bottom: 10px;
    white-space: nowrap;
    display: flex;    
    gap: 10px; 
    align-items: center;
}
.post-item  .bait-icon {
    flex-shrink: 0;     
    white-space: nowrap; 
}
.post-item  .bait-text {
    flex-grow: 1; 
    white-space: normal    
}

.post-item .bait-icon img {
    width: 30px;
    vertical-align: middle;
}
.post-item .bait-icon .selected {
    border: 1px solid #f39c12;
}
.post-detail .files {
    max-height: 116px;
    overflow: hidden;
    margin-bottom: 5px;
}
.files .screen {
    margin: 2px;
    border-radius: 5px;
    overflow: hidden;
    height: 52px;
    max-width: 93px;
    min-width: 50px;
    display:inline-block;
    background: #282828;
}
.files .screen img {
    height: 100%;
    object-fit: contain;
    width: 100%;
    object-position: center;
}
/* Подложка «идёт загрузка» под img: текст снизу, картинка сверху (z-index). */
.files .screen.screen-file-slot .screen-file-slot-media {
    position: relative;
    height: 100%;
}
.files .screen.screen-file-slot .screen-file-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    text-align: center;
    font-size: 11px;
    line-height: 1.3;
    color: var(--text-muted);
    pointer-events: none;
}
.files .screen.screen-file-slot .screen-file-slot-media > a {
    position: relative;
    z-index: 1;
    display: block;
    height: 100%;
}
.files .screen.screen--premium-placeholder a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 100%;
    min-height: 100%;
    background: var(--bg-content);
    color: var(--text-muted);
    border: 1px dashed var(--border-color);
    border-radius: 4px;
}
.files .screen.screen--premium-placeholder a:hover {
    color: var(--text-link);
}
.screen-premium-placeholder-inner {
    font-size: 16px;
    line-height: 1.2;
    opacity: 0.92;
    text-align: center;
}
.screen-premium-placeholder-inner .fa-image {
    display: block;
}
.screen-premium-placeholder-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
}
.post-one .files .screen.screen--premium-placeholder .screen-premium-placeholder-inner {
    font-size: 28px;
}
.rf4-gallery-modal[hidden] {
    display: none !important;
}
.rf4-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 13000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rf4-gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}
.rf4-gallery-image {
    position: relative;
    z-index: 2;
    max-width: 96vw;
    max-height: 92vh;
    object-fit: contain;
    box-shadow: 0 8px 42px rgba(0, 0, 0, 0.5);
}
.rf4-gallery-close {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 28px;
    line-height: 1;
}
.rf4-gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 72px;
    margin-top: -36px;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 42px;
    line-height: 1;
    transition: background 0.15s ease;
}
.rf4-gallery-nav:hover {
    background: rgba(255, 255, 255, 0.28);
}
.rf4-gallery-prev {
    left: 12px;
}
.rf4-gallery-next {
    right: 12px;
}
.rf4-gallery-nav[hidden] {
    display: none !important;
}
body.rf4-gallery-open {
    overflow: hidden;
}
.posts-comment-premium-link {
    font-weight: 600;
}

.post-detail .comment {
    background: var(--bg-hover);
    padding: 5px;
    border-radius: 5px;
    max-height: 70px;
    overflow-y: auto;
}
.post-item .user {
    padding: 2px 10px;
    position: absolute;
    right: 5px;
    bottom: 5px ;
    font-size: 12px;
    color: var(--fp-color);
    white-space: nowrap;
}
.post-item .user a{
    text-decoration: none;
}
.post-item .user .avatar {
    border-radius: 20px;
    vertical-align: middle;
}
.post-item .user .avatar img {
    width: 18px;
}
.post-item .footer {
    padding: 5px;
}
.post-item  .footer a {
    color: var(--fp-color);
}
.print-mode .post-item  .footer a {
    color: #4d4d4d;
}
.posts-autoload-toggle {
    margin: 8px 0 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: color-mix(in srgb, var(--bg-content) 86%, #b7d58f 14%);
}
.posts-autoload-toggle .posts-autoload-main {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    cursor: pointer;
}
.posts-autoload-main.posts-autoload-main--premium-locked {
    cursor: not-allowed;
    opacity: 0.72;
}
.posts-autoload-main.posts-autoload-main--premium-locked input[disabled] {
    cursor: not-allowed;
}
.posts-autoload-main.tooltip {
    position: relative;
}
.posts-autoload-main.tooltip .tooltip-data {
    left: 0;
    right: auto;
}
.posts-autoload-sort {
    white-space: nowrap;
}
.posts-autoload-sort-link {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 600;
    opacity: 0.85;
    transition: background-color .15s ease, border-color .15s ease, opacity .15s ease;
}
.posts-autoload-sort-link:hover {
    opacity: 1;
    background: color-mix(in srgb, var(--bg-body) 85%, #9fc2ff 15%);
}
.posts-autoload-sort-link.is-active {
    opacity: 1;
    text-decoration: none;
    color: var(--text-main);
}
.post-item.post-item-autoload-new {
    background: #fff6cc;
}
body.dark-theme .post-item.post-item-autoload-new {
    background: #3f3a18;
}
.post-autoload-new-mark {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 10px;
    background: #f39c12;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.post-one .post-info, .post-one .post-detail {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 200px;
}

.post-one .post-detail .files {
    max-height: none;
}
.post-one  .post-detail .files .screen {
    height: 340px;
    width: 550px;
    max-width: none;
}
.post-one .post-detail {
    margin-top: 10px;
}
.post-one .baits {
    position: relative;
    width: 450px;
    display: block;
}
.post-one .baits div {
    margin-top: 5px;
}
.post-item .baits .composition .composition-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    vertical-align: middle;
}
.post-item .baits .composition .composition-item-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}
.post-item .baits .composition .composition-item-type {
    flex: 0 1 auto;
    max-width: 48%;
    color: #969696;
    font-size: 0.92em;
    word-break: break-word;
}
.post-item .baits .composition .composition-item-label {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
    word-break: break-word;
}
.post-item .baits .composition .composition-item-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    object-fit: contain;
}


.post-item .baits .composition div div{
    margin-top: 10px
}
.post-one .post-item  .baits .composition div {
    margin-top: 5px;
    background: #000;
    border-radius: 5px;
    color: #fff;
    padding: 10px;
}


/*** Mobile **/
@media (max-width: 480px) {
    .post-item .fish-icon {
        width: 87px;
    }
    .posts-autoload-toggle {
        align-items: flex-start;
        justify-content: flex-start;
        gap: 8px;
    }
    .posts-autoload-toggle .posts-autoload-main {
        width: 100%;
    }
    .posts-autoload-sort {
        width: 100%;
        white-space: normal;
    }

    .spot-blocked-banner-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .spot-blocked-banner-actions > .button {
        flex: none !important;
        width: 100%;
    }

    .post-info, .post-detail {
        flex: auto;
        font-size: 12px;
        min-width: 330px;
    }
    .post-info, .post-detail {
        border: none;
    }
    .post-one  .post-detail .files .screen {
        width: 100%;
        height: 225px;
    }
    .post-item .user {
        max-width: 260px;
        overflow: hidden;
    }
    .post-one .baits {     
        width: 340px;
    }
    .post-keepnet-grid {
        --keepnet-card-min: 140px;
        width: 100%;
    }
    .post-keepnet-sort {
        margin-left: 0;
        width: 100%;
    }
    /* Мобилка: горизонталь tip не от иконки — left:0 у .post-info / .post-keepnet-section / stats */
    .posts-list-stats-inner {
        position: relative;
    }
    .post-item .fish-icon--keepnet {
        position: static;
    }
    .keepnet-value-coin {
        position: static !important;
    }
    .keepnet-value-coin .tooltip-data {
        top: auto;
        left: 8px !important;
        right: 8px !important;
        margin-top: 6px;
        width: auto !important;
        max-width: none !important;
        box-sizing: border-box;
    }
    .banner-konkurs img {width: 360px;}
    .make-posts {
        width: 100%;
    }

    .hidden-desktop {
        display: block;
    }
    .hidden-mobile {
        display: none !important;
    }
    .clip-block {
        display: inline-block;
        margin-left: -5px ;
    }

    .topnav .menu {
        display: none;
    }
    .mobile-clear {
        clear: both;
    }
    .mobile-block {
        display: block;
    }
    body {
        width: auto;
        padding: 0 5px;
        margin: 0;
        font-size: 16px;
        padding-bottom: 0;
    }
    .logo {padding: 0 10px 0 0;}
    .logo img {
        width: 60px;
    }
    .tooltip-data {
        left: 0;
        right: auto;
    }
    .info > .tooltip-data {
        margin-top: 0;
        top: calc(8px + 1.25em);
    }

    .topnav .langs {
        top: 50px;
    }
    .topnav {
        position: sticky;
        top: 0;
        height: 80px;
        padding-top: 5px;
        z-index: 1010;
    }
    .topnav .name {
        text-align: left;
        background: var(--bg-nav);
        color: var(--text-main);
        font-size: 14px;
        display: block;
        padding-top: 10px;
        padding-right: 45px;
        clear: none;
    }
    body.menu-open {
        overflow: hidden;
    }
    .topnav .menu {
        width: 100%;
        position: fixed;
        left: 0;
        right: 0;
        top: 80px;
        bottom: 0;
        z-index: 100;
        background: #fff;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    .menu h1 {
        padding-left: 0;
    }
    .topnav a.icon {
        background: black;
        display: block;
        position: absolute;
        right: 5px;
        top: 10px;
        padding: 7px 10px;
        border-radius: 7px;
        color: #fff;
    }
    .menu li a {
        color: white;
        padding: 14px 16px;
        text-decoration: none;
        font-size: 17px;
        display: block;
        float: none;
        background-color: #333;
        border-radius: 0;
    }

    .menu li a:hover {
        background-color: #ddd;
        color: black;
    }
    .menu-partners {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        border-top: 1px solid #444;
    }
    .menu-partner-link {
        display: flex;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        padding: 14px 16px;
        font-size: 17px;
        color: #fff;
        background-color: #333;
        border: none;
        border-radius: 0;
        margin: 0;
        white-space: normal;
    }
    .menu-partner-link img {
        margin-right: 10px;
    }
    .menu-partner-link:hover {
        background-color: #ddd;
        color: #000;
    }
    .menu-partner-item {
        display: block;
        width: 100%;
    }
    .menu-partner-item > .menu-partner-link {
        border-bottom: 1px solid #444;
    }
    .menu-partner-sub {
        display: block !important;
        position: static;
        width: 100%;
        max-width: none;
        overflow: hidden;
        background: #2f3442;
        padding: 0;
        margin: 0 0 8px;
        border-radius: 0;
    }
    .menu-partner-sub a {
        width: 100%;
        box-sizing: border-box;
        padding: 10px 16px;
        font-size: 15px;
        background: #2f3442;
        border-left: 3px solid #0d5aa7;
        white-space: normal;
    }
    .menu-partner-sub a:hover {
        background: #444b5e;
        color: #fff;
    }
    .menu li {
        display: block;
    }
    /* подменю — показываем всегда */
    .menu ul ul {
        display: block !important;
        position: static;
        background: #2f3442;
        padding: 0;
    }

    /* пункты подменю */
    .menu ul ul li a {
        padding: 10px 16px;
        font-size: 15px;
        background: #2f3442;
        border-left: 3px solid #0d5aa7;
    }

    .menu ul ul li a:hover {
        background: #444b5e;
        color: #fff;
    }

    /* отключаем hover-логику полностью */
    .menu li:hover > ul {
        display: block;
    }

    /* убираем "мостик" — он нужен только на desktop */
    .menu ul ul::before {
        display: none;
    }

    body .site-footer {
        position: relative;
    }

    small .button {
        padding: 5px;
    }
    .mobile-label {
        display: inline-block;
        color: var(--text-muted);
        font-size: 12px;
        width: 120px;
    }
    .list-position .mobile-label {
        width: auto;
    }

    .list-position {
        width: 98%;
    }
    .mobile-location {
        font-weight: bold;
    }
    .stat td {
        display: block;
        float: left;
        border : none;
        font-size: 14px;
    }
    .stat tr {
        display: block;
        clear: both;
        position: relative;
    }
    tr.light-troff_super {border-left: 5px solid  #0d5aa7;}
    tr.light-troff {border-left: 5px solid #f39c12;}

    .stat .header {
        display: none
    }
    .posts {
        display: block;
        gap: 0;
    }
    .posts-list-stats-summary {
        display: table;
        width: 100%;
        table-layout: fixed;
    }
    .posts-list-stats-summary tr {
        display: table-row;
    }
    .posts-list-stats-summary td {
        display: table-cell;
        float: none;
        font-size: 12px;
        line-height: 1.3;
        padding: 4px 4px;
        white-space: normal;
        word-break: break-word;
        vertical-align: bottom;
    }
    .posts-list-stats-summary .header {
        display: table-row;
    }
    .posts-list-stats-summary .header td {
        font-size: 11px;
        padding-bottom: 6px;
    }
    .stat .info {
        width: calc(100% - 10px);
    }
    .data tr {
        border-bottom: 2px solid #1e5eb6;
    }
    .data .time div {
        display: inline;
    }
    .data .list-gamer {
        position: absolute;
        right: 0;
        top: 70px;
        font-size: 14px;
        max-width: min(42vw, 11em);
        overflow-wrap: anywhere;
        word-break: break-word;
        text-align: right;
    }
    .data .fish-icon img{
        width: 32px;
    }
    .data .fish-icon .sticker img {
        width: 8px;
    }
    .filters .filter-field.fish, .filters .filter-field.location, .filters .filter-field.bait, .filters .filter-field.gamer {
        width: 45%;
    }
    .view-filters-sidebar .filters .filter-field {
        width: 100% !important;
    }
    .search-filters-panel-body .filters .filter-field {
        width: 100% !important;
    }
    .locations {
      display: block;
    }
    .locations .item {
        flex: none;
        background-size: 100%  !important;
        width: 100%;
        height: 180px;
        margin: 5px 0 0;
    }
    .locations .buttons {
        margin-top: 20px;
    }
    .orders {
        float: none !important;
        background: #000;
        color: #fff;
    }
    .orders a {
        color: #fff;
    }

    .view-with-filters:not(.view-with-search-panel) {
        flex-direction: column;
    }
    .view-main {
        width: 100% !important;
        max-width: 100% !important;
    }
    /* DOM: main first, aside second; flex order moves filters above content */
    .view-with-filters > .view-filters-sidebar {
        order: -1;
        max-width: 100%;
        width: 100%;
        position: static;
        max-height: none;
        overflow: visible;
        z-index: auto;
    }
    .community-page-top {
        flex-direction: column;
    }
    .community-sidebar {
        flex: none;
        width: 100%;
        max-width: none;
        position: static;
    }
    .user-profile-page-top {
        flex-direction: column;
    }
    .user-profile-sidebar {
        flex: none;
        width: 100%;
        max-width: none;
        position: static;
    }
    .search-panel-toggle {
        bottom: 70px;
        right: 12px;
        width: 40px;
        height: 40px;
    }
    .search-panel-toggle.fab-above-ads {
        bottom: 170px;
    }
    .search-filters-panel-drawer,
    .search-filters-panel-drawer.is-narrow {
        width: 100%;
        max-width: none;
    }
    .post-detail-panel-drawer {
        width: 100%;
        max-width: none;
    }
    .search-filters-panel-width-toggle {
        display: none;
    }
    .search-filters-panel-body.view-filters-sidebar .filters.filters-search-grid {
        grid-template-columns: 1fr;
    }
    .view-filters-sidebar .filter-field {
        float: none;
    }
    .finder-share-modal-content {
        width: auto;
        max-width: none;
        margin: 2vh 8px;
        padding: 12px;
        max-height: 94vh;
        overflow-y: auto;
    }
    .finder-share-form {
        gap: 8px;
    }
    .finder-share-dropzone {
        padding: 0;
        border: 0;
        border-radius: 0;
        cursor: default;
        text-align: left;
        pointer-events: none;
    }
    .finder-share-dropzone .finder-share-file-actions--mobile-only {
        pointer-events: auto;
    }
    .finder-share-dropzone .finder-share-files-hint {
        display: none;
    }
    .finder-share-dropzone.is-dragover {
        background: transparent;
    }
    .finder-share-file-actions--desktop-only {
        display: none;
    }
    .finder-share-file-actions--mobile-only {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        margin-bottom: 8px;
    }
    .finder-share-preview {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }
    .finder-share-preview-item img {
        height: 78px;
    }
    .finder-share-rules {
        font-size: 12px;
        padding: 7px 8px;
    }
    .finder-share-submit-btn {
        width: 100%;
        text-align: center;
    }

    .premium-pay-inline {
        padding: 0 10px !important;
    }
    .premium-pay-inline-title {
        font-size: 16px;
    }
    .premium-pay-provider-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
    }
    .premium-pay-provider-tab {
        flex: none;
        width: auto;
        padding: 8px 6px;
        font-size: 11px;
        line-height: 1.25;
    }
    .premium-pay-provider-tab-inner {
        flex-direction: column;
        gap: 4px;
    }

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

/* Premium landing */
:root {
    --premium-accent: #b59600;
    --premium-accent-soft: rgba(137, 137, 137, 0.12);
    --premium-gold: #b8956c;
    --premium-gold-soft: #d4b896;
    --premium-gold-glow: rgba(184, 149, 108, 0.28);
    --premium-tile-bg: #fafafa;
}
body.dark-theme {
    --premium-accent-soft: rgb(181 168 77 / 12%);
    --premium-tile-bg: var(--bg-content);
    --premium-gold-glow: rgba(212, 184, 150, 0.2);
}

.premium-active-banner {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}
.premium-section {
    margin-bottom: 32px;
}
.premium-section-title {
    font-size: 17px;
    font-weight: bold;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--premium-accent);
    color: var(--text-main);
    letter-spacing: 0.02em;
}
/* Вводный блок-карточка (премиум, поиск под H1 и т.д.) */
.rf4-lead-block {
    margin-bottom: 12px;
    padding: 18px 20px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--bg-content) 0%, var(--bg-body) 100%);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
body.dark-theme .rf4-lead-block {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}
.rf4-lead-block-text,
.rf4-lead-block-copy p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-main);
}
.rf4-lead-block-text {
    margin: 0;
}
.rf4-lead-block-copy p {
    margin: 0 0 0.85em;
}
.rf4-lead-block-copy p:last-child {
    margin-bottom: 0;
}
.rf4-lead-block.info {
    padding-right: 48px;
}
.premium-pitch .rf4-lead-block {
    margin-bottom: 24px;
}
.posts-premium-cta {
    margin-top: 10px;
    margin-bottom: 14px;
    border-color: var(--premium-accent);
    background: linear-gradient(135deg, #bf9e0026 0%, #d4b8965c 50%);
}
.posts-premium-cta.spot-blocked-banner {
    border: none;
    background: linear-gradient(135deg, #bf000026 0%, #ff000096 80%);
}

.posts-premium-cta-title {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
}
.posts-premium-cta-title i {
    margin-right: 7px;
}
.posts-premium-cta-text {
    margin: 6px 0 0;
    font-size: 16px;
    color: var(--text-main);
}
.posts-premium-cta-text .posts-premium-cta-highlight {
    font-size: 17px;
    font-weight: 700;
    color: #c62828;
    line-height: 1.35;
}
body.dark-theme .posts-premium-cta-text .posts-premium-cta-highlight {
    color: var(--premium-gold-soft);
}
.posts-premium-cta-action {
    margin: 12px 0 0;
}
.spot-blocked-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.spot-blocked-banner-actions > .button {
    flex: 1 1 120px;
    min-width: 0;
    box-sizing: border-box;
    text-align: center;
    width: auto;
}
.spot-blocked-banner-actions .posts-premium-cta-button {
    width: auto;
}
.posts-premium-cta-action.spot-blocked-banner-actions .posts-premium-cta-button:only-child {
    width: 100%;
}
.posts-premium-cta-button {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-size: 18px;
    background: linear-gradient(135deg,  var(--premium-gold-soft) 0%, var(--premium-accent) 50%);
}
.posts-premium-cta-button:hover {
    background: #3b4151
}
.posts-premium-cta-button i {
    margin-right: 6px;
}
.community-description {
    margin: 12px 0;
}
.community-description-text {
    margin: 6px 0 0;
    white-space: normal;
}
.community-url-display {
    word-break: break-all;
}
.community-owner .user a {
    text-decoration: none;
}
.community-owner .user .avatar {
    border-radius: 20px;
    vertical-align: middle;
}
.community-owner .user .avatar img {
    width: 18px;
}
.community-edit-form {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.12));
}
.community-edit-form-title {
    margin: 0 0 12px;
    font-size: 18px;
}
.community-edit-textarea,
.community-edit-input {
    width: 100%;
    max-width: 520px;
    box-sizing: border-box;
    margin-top: 6px;
}
.community-edit-input--narrow {
    max-width: 160px;
}
.community-edit-owner-wrap {
    max-width: 520px;
}
.community-edit-textarea {
    min-height: 120px;
    resize: vertical;
}
.community-edit-hint {
    display: inline-block;
    margin-top: 6px;
    color: var(--text-muted);
}
.community-owner-contact-hint {
    margin: 12px 0 0;
    font-size: 0.85em;
    line-height: 1.45;
    color: var(--text-muted);
}
.community-edit-trash {
    margin: 12px 0 16px;
}
.community-trash-banner {
    margin: 0 0 12px;
}
.community-banner-form {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.12));
}
.community-banner-preview {
    margin: 10px 0;
}
.community-banner-preview-img {
    display: block;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
}
.community-banner-status {
    margin: 8px 0;
}
.community-banner-langs {
    margin: 12px 0 16px;
    padding: 10px 12px;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.12));
    border-radius: 6px;
}
.community-banner-langs legend {
    padding: 0 4px;
}
.community-banner-langs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 8px;
}
.community-banner-lang-option {
    white-space: nowrap;
}
.search-sidebar-banners {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.12));
}
/* Баннеры сообществ: правая пустая зона за пределами body (1150px) */
.rf4-rail-banners {
    --rf4-body-width: 1150px;
    --rf4-rail-gap: 12px;
    --rf4-rail-max: 300px;
    --rf4-rail-vpad: 12px;
    position: fixed;
    z-index: 40;
    top: calc((100vh - var(--rf4-site-footer-reserve)) / 2);
    left: calc(50% + (var(--rf4-body-width) / 2) + var(--rf4-rail-gap));
    right: var(--rf4-rail-gap);
    width: auto;
    max-width: var(--rf4-rail-max);
    min-width: 0;
    box-sizing: border-box;
    max-height: calc(100vh - (var(--rf4-rail-vpad) * 2) - var(--rf4-site-footer-reserve));
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    /* visible: иначе absolute-dropdown автопоиска в quick-search клипится скролл-контейнером */
    overflow: visible;
    container-type: inline-size;
}
.rf4-rail-banners-stack {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: inherit;
    width: 100%;
    overflow: visible;
}
.rf4-rail-banners-scroll {
    flex: 0 0 auto;
    min-height: 0;
    max-height: min(320px, 40vh);
    overflow-x: hidden;
    overflow-y: auto;
}
.rf4-rail-banners .search-sidebar-banners {
    margin: 0;
    padding: 0;
    border: 0;
}
.rf4-rail-banners .search-sidebar-banner-link,
.rf4-rail-banners .search-sidebar-banner-img-wrap,
.rf4-rail-banners .search-sidebar-banner-img {
    max-width: none;
    width: 100%;
}
.rf4-rail-banners .search-sidebar-banner-credit {
    font-size: 10px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.rf4-rail-banners .search-sidebar-banner-live {
    top: 4px;
    left: 4px;
    padding: 1px 5px;
    font-size: 9px;
    gap: 3px;
}
@container (max-width: 140px) {
    .search-sidebar-banner-credit {
        display: none;
    }
    .search-sidebar-banner-live-viewers {
        display: none;
    }
}
/* Мало места справа от body — скрываем rail */
@media (max-width: 1274px) {
    .rf4-rail-banners {
        display: none;
    }
}

/* ≥1600: компактный поиск под баннерами стримеров */
.rf4-rail-quick-search {
    display: none;
}
@media (min-width: 1600px) {
    .rf4-rail-banners--with-quick-search .rf4-rail-quick-search {
        display: block;
        flex: 0 0 auto;
        margin-top: 12px;
        padding: 10px;
        box-sizing: border-box;
        border-radius: 10px;
        background: var(--bg-content);
        overflow: visible;
        position: relative;
        z-index: 2;
    }
    .rf4-rail-quick-toolbar {
        position: absolute;
        top: 6px;
        right: 6px;
        z-index: 200;
    }
    .rf4-rail-quick-settings-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        padding: 0;
        border: 1px solid var(--border-color);
        border-radius: 6px;
        background: var(--bg-body);
        color: var(--text-muted);
        cursor: pointer;
        line-height: 1;
    }
    .rf4-rail-quick-settings-btn:hover,
    .rf4-rail-quick-settings-btn[aria-expanded="true"] {
        color: var(--text-link);
        border-color: var(--text-link);
        background: var(--bg-hover);
    }
    .rf4-rail-quick-settings {
        position: absolute;
        top: calc(100% + 4px);
        right: 0;
        width: min(260px, calc(100vw - 24px));
        max-height: min(320px, 50vh);
        overflow: auto;
        padding: 10px;
        box-sizing: border-box;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        background: var(--bg-body);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
        z-index: 201;
    }
    .rf4-rail-quick-settings.rf4-rail-quick-settings--float {
        position: fixed;
        top: 0;
        left: 0;
        right: auto;
        z-index: 1090;
        max-height: min(320px, calc(100vh - var(--rf4-site-footer-reserve, 4rem) - 16px));
    }
    body.dark-theme .rf4-rail-quick-settings {
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    }
    .rf4-rail-quick-settings-title {
        margin: 0 0 8px;
        font-size: 11px;
        line-height: 1.35;
        color: var(--text-muted);
    }
    .rf4-rail-quick-settings-list {
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .rf4-rail-quick-settings-item {
        display: flex;
        align-items: flex-start;
        gap: 6px;
        margin: 0 0 6px;
        font-size: 12px;
        line-height: 1.35;
        cursor: pointer;
    }
    .rf4-rail-quick-settings-item input {
        margin-top: 2px;
        flex: 0 0 auto;
    }
    .rf4-rail-quick-settings-item--locked {
        color: var(--text-muted);
        cursor: default;
    }
    .rf4-rail-quick-settings-item--locked input {
        cursor: default;
        opacity: 0.85;
    }
    .rf4-rail-quick-settings-reset {
        margin-top: 4px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--text-link);
        font-size: 11px;
        cursor: pointer;
        text-decoration: underline;
    }
    .rf4-rail-quick-settings-reset:hover {
        text-decoration: none;
    }
    .rf4-quick-field--hidden {
        display: none !important;
    }
    .rf4-rail-quick-search-form {
        padding-top: 0;
    }
    .rf4-rail-quick-search .filter-field.period-slider-field .period-slider-values {
        padding-right: 32px;
        box-sizing: border-box;
    }
    .rf4-rail-quick-search-body {
        overflow: visible;
    }
    .rf4-rail-quick-search .filters.filters-search {
        display: flex;
        flex-direction: column;
        gap: 5px;
        overflow: visible;
    }
    .rf4-rail-quick-search .filter-field.bait-type .label {
        display: block;
        margin-bottom: 4px;
    }
    .rf4-rail-quick-search .filter-field.bait-type .js-enum-or-pick {
        display: inline-block;
        vertical-align: middle;
        width: calc(100% - 28px);
        max-width: calc(100% - 28px);
        box-sizing: border-box;
    }
    .rf4-rail-quick-search .filter-field.bait-type .clear-input {
        display: inline-block;
        vertical-align: middle;
        margin-top: 0;
        margin-left: 4px;
    }
    .rf4-rail-quick-search .filter-field {
        display: block;
        width: 100%;
        max-width: none;
        margin: 0;
        float: none;
        box-sizing: border-box;
        overflow: visible;
        position: relative;
        z-index: 1;
    }
    .rf4-rail-quick-search .filter-field:focus-within {
        z-index: 5;
    }
    .rf4-rail-quick-search .rf4-ajax-suggest-dd {
        z-index: 70;
        /* шире поля: не упираться в padding карточки; поверх соседних блоков */
        left: 0;
        right: auto;
        min-width: 100%;
        width: max(100%, 220px);
        max-width: min(360px, 90vw);
    }
    /* одинаковая ширина полей (перебиваем calc(100% - 44px) из .filters) */
    .rf4-rail-quick-search .filters .filter-field.location > input[name="location"],
    .rf4-rail-quick-search .filter-field.min-weight-field > input,
    .rf4-rail-quick-search .filter-field.fish .rf4-ajax-suggest-wrap,
    .rf4-rail-quick-search .filter-field.bait .rf4-ajax-suggest-wrap,
    .rf4-rail-quick-search .filter-field.community .rf4-ajax-suggest-wrap {
        display: inline-block;
        vertical-align: middle;
        width: calc(100% - 28px);
        max-width: calc(100% - 28px);
        box-sizing: border-box;
    }
    .rf4-rail-quick-search .filter-field.fish .rf4-ajax-suggest-wrap input,
    .rf4-rail-quick-search .filter-field.bait .rf4-ajax-suggest-wrap input,
    .rf4-rail-quick-search .filter-field.community .rf4-ajax-suggest-wrap input {
        width: 100% !important;
        max-width: none;
        box-sizing: border-box;
    }
    .rf4-rail-quick-search .filter-field .clear-input {
        display: inline-block;
        vertical-align: middle;
        margin-left: 4px;
    }
    /* точка + «с точкой» в одну строку; ширина точки — как в панели (70px) */
    .rf4-rail-quick-search .filter-field.location > input.position-input,
    .rf4-rail-quick-search .filter-field.location > input.position-input + .clear-input,
    .rf4-rail-quick-search .filter-field.location > .mobile-block {
        display: inline-block;
        vertical-align: middle;
        margin-top: 6px;
    }
    .rf4-rail-quick-search .filter-field.location > .mobile-block {
        margin-left: 8px;
        white-space: nowrap;
    }
    .rf4-rail-quick-search .period-slider-field .period-slider-tick {
        font-size: 10px;
    }
    .rf4-rail-quick-search .fish-type label img {
        width: 10px;
    }
    .rf4-rail-quick-search .filter-field.rf4-rail-quick-actions {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-top: 5px;
        flex: 0 0 auto;
    }
    .rf4-rail-quick-search .rf4-rail-quick-actions .button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
    .rf4-rail-quick-actions-row {
        display: flex;
        flex-direction: row;
        gap: 6px;
        align-items: stretch;
    }
    .rf4-rail-quick-actions-row .button {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
    }
    .rf4-rail-quick-advanced {
        background: transparent;
        color: var(--text-link);
        border: 1px solid var(--border-color);
    }
    .rf4-rail-quick-advanced:hover {
        background: var(--bg-hover);
        color: var(--text-link);
        border-color: var(--text-link);
    }
    .rf4-rail-quick-reset {
        background: transparent;
        color: var(--text-muted);
        border: 1px solid var(--border-color);
    }
    .rf4-rail-quick-reset:hover {
        background: var(--bg-hover);
        color: var(--text-main);
        border-color: var(--text-main);
    }
    body:has(.rf4-rail-quick-search) .search-panel-toggle {
        display: none !important;
    }
}

/* Кнопки «Поиск» / «Сбросить» в панели поиска — одинаково на любой ширине */
.filter-field.filter-actions--with-reset {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}
.view-filters-sidebar .filter-field.filter-actions--with-reset {
    justify-content: stretch;
}
.view-filters-sidebar .filter-field.filter-actions--with-reset .button,
.search-filters-panel-body .filter-field.filter-actions--with-reset .button {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    box-sizing: border-box;
    text-align: center;
}
.filter-reset-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}
.filter-reset-btn:hover {
    background: var(--bg-hover);
    color: var(--text-main);
    border-color: var(--text-main);
}
.search-sidebar-banner-slide {
    display: none;
}
.search-sidebar-banner-slide.is-active {
    display: block;
}
.search-sidebar-banner-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    overflow: hidden;
}
.search-sidebar-banner-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.22);
    transition: background 0.15s ease;
    flex: 0 0 auto;
    outline: none;
}
.search-sidebar-banner-dot:hover,
.search-sidebar-banner-dot:focus-visible {
    background: rgba(33, 102, 172, 0.55);
}
.search-sidebar-banner-dot.is-active {
    background: #2166ac;
}
body.dark-theme .search-sidebar-banner-dot {
    background: rgba(255, 255, 255, 0.28);
}
body.dark-theme .search-sidebar-banner-dot:hover,
body.dark-theme .search-sidebar-banner-dot:focus-visible {
    background: rgba(99, 179, 237, 0.65);
}
body.dark-theme .search-sidebar-banner-dot.is-active {
    background: #63b3ed;
}
.search-sidebar-banner-link {
    display: block;
    width: 100%;
    max-width: 400px;
    line-height: 0;
    position: relative;
}
.search-sidebar-banner-img-wrap {
    position: relative;
    display: block;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
}
.search-sidebar-banner-live {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.4;
    color: #fff;
    background: #e91916;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.search-sidebar-banner-live-viewers {
    font-weight: 600;
    letter-spacing: 0;
    opacity: 0.95;
}
.search-sidebar-banner-live-viewers::before {
    content: "·";
    margin-right: 6px;
    opacity: 0.85;
}
.search-sidebar-banner-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 400px;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
}
.search-sidebar-banner-credit {
    margin: 6px 0 0;
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
}
.search-sidebar-banner-credit a {
    color: var(--text-muted);
    text-decoration: none;
}
.search-sidebar-banner-credit a:hover {
    text-decoration: underline;
}
.search-sidebar-banner-actions {
    position: relative;
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
}
.search-sidebar-banner-actions-btn {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border-radius: 3px;
    font-size: 12px;
    line-height: 1;
}
.search-sidebar-banner-actions-btn:hover,
.search-sidebar-banner-actions-btn:focus-visible {
    color: var(--text-main);
    background: var(--bg-hover);
}
.search-sidebar-banner-actions-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    min-width: 110px;
    background: var(--bg-content);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    z-index: 30;
    padding: 4px 0;
}
.search-sidebar-banner-actions.is-open .search-sidebar-banner-actions-menu {
    display: block;
}
.search-sidebar-banner-actions.is-open-up .search-sidebar-banner-actions-menu {
    top: auto;
    bottom: calc(100% + 4px);
}
.search-sidebar-banner-actions.is-open-fixed {
    z-index: 1200;
}
.search-sidebar-banner-actions.is-open-fixed .search-sidebar-banner-actions-menu {
    position: fixed;
    right: auto;
    bottom: auto;
    z-index: 1200;
}
.search-sidebar-banner-actions-item {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text-main);
    padding: 7px 10px;
    cursor: pointer;
    font-size: 12px;
    text-align: left;
}
.search-sidebar-banner-actions-item:hover,
.search-sidebar-banner-actions-item:focus-visible {
    background: var(--bg-hover);
}
.community-banner-hide-option {
    margin: 12px 0 0;
    font-size: 0.95em;
}
.community-posts-section {
    margin-top: 24px;
}
.community-posts-title {
    margin: 0 0 12px;
    font-size: 20px;
}
.community-posts-empty {
    margin: 8px 0 0;
    color: var(--text-muted);
}
.community-posts-empty--hidden {
    display: none;
}
.community-page {
    margin-bottom: 10px;
}
.community-page-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.community-page-top .source-page {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
}
.community-sidebar {
    flex: 0 0 260px;
    max-width: 280px;
    box-sizing: border-box;
    position: sticky;
    top: 12px;
    padding: 10px;
    border-radius: 10px;
    background: var(--bg-content);
    border: 1px solid var(--border-color);
}
.community-stats-panel {
    margin: 0;
}
.community-stats-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
}
.community-stats-list {
    margin: 0;
    padding: 0;
}
.community-stats-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
}
.community-stats-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.community-stats-row dt {
    margin: 0;
    font-weight: normal;
    font-size: 0.95em;
    color: var(--text-muted);
}
.community-stats-row dd {
    margin: 0;
    font-weight: 600;
    font-size: 1.05em;
    white-space: nowrap;
}
.community-stats-posts-link {
    margin: 14px 0 0;
    font-size: 0.95em;
}
.community-stats-posts-link a {
    text-decoration: none;
}
.community-stats-posts-link a:hover {
    text-decoration: underline;
}

.source-redirect-ad {
    min-height: 120px;
    margin: 16px 0;
    border-radius: 8px;
    background: var(--bg-body);
    border: 1px dashed var(--border-color);
}
.source-redirect-countdown {
    margin: 12px 0 8px;
    font-size: 15px;
    font-weight: 600;
}
.source-redirect-discord-hint {
    margin: 12px 0 0;
    line-height: 1.45;
}
.source-redirect-url {
    margin: 14px 0 0;
    word-break: break-all;
    color: var(--text-muted);
}
.source-redirect-footer {
    margin: 20px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
}
.premium-funding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.premium-funding-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 16px 16px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    border-left: 4px solid var(--premium-accent);
    min-height: 100%;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.premium-funding-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--premium-accent-soft);
    color: var(--premium-accent);
    font-size: 18px;
}
.premium-funding-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-main);
}
.premium-funding-text .premium-posts-link,
.premium-feature-text .premium-posts-link,
.premium-trial-block .premium-posts-link {
    color: var(--text-link);
    text-decoration: underline;
    font-weight: bold;
}
.premium-funding-text .premium-posts-link:hover,
.premium-feature-text .premium-posts-link:hover,
.premium-trial-block .premium-posts-link:hover {
    opacity: 0.92;
}
.premium-legal-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.premium-legal-footer-title {
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 12px;
    color: var(--text-main);
    border-bottom: none;
    padding-bottom: 0;
}
.premium-legal-footer-body {
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-muted);
}
.premium-legal-footer-line {
    margin: 0 0 8px;
}
.premium-legal-footer-line:last-child {
    margin-bottom: 0;
}
.premium-legal-footer-line a {
    color: var(--text-link);
}
.premium-legal-documents {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}
.premium-legal-documents-title {
    font-size: 13px;
    font-weight: bold;
    margin: 0 0 10px;
    color: var(--text-main);
}
.premium-legal-documents-list {
    margin: 0;
    padding-left: 20px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-muted);
}
.premium-legal-documents-list a {
    color: var(--text-link);
}
.legal-static-page {
    font-size: 14px;
    line-height: 1.55;
    max-width: 720px;
}
.legal-static-page h2 {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 1.5em 0 0.55em;
    color: var(--text-main);
}
.legal-static-page h2:first-of-type {
    margin-top: 0.35em;
}
.legal-static-page h3 {
    font-size: 1.05rem;
    font-weight: bold;
    margin: 1.15em 0 0.45em;
    color: var(--text-main);
}
.legal-static-page p {
    margin: 0 0 0.85em;
    color: var(--text-main);
}
.legal-static-page ul,
.legal-static-page ol {
    margin: 0 0 1em;
    padding-left: 1.35em;
    color: var(--text-main);
}
.legal-static-page li {
    margin-bottom: 0.4em;
}
.legal-static-page .legal-md-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 0 1em;
    max-width: 100%;
}
.legal-static-page table.legal-md-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}
.legal-static-page table.legal-md-table th,
.legal-static-page table.legal-md-table td {
    border: 1px solid var(--border-soft, #ddd);
    padding: 0.45em 0.55em;
    vertical-align: top;
    text-align: left;
}
.legal-static-page table.legal-md-table th {
    font-weight: bold;
    background: var(--bg-soft, rgba(0, 0, 0, 0.04));
}
.legal-static-page--markdown > p:first-of-type {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 1.25em;
}
.legal-static-page .legal-muted {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 1.25em;
}
.legal-static-page a {
    color: var(--text-link);
}
#premium-plans-heading {
    scroll-margin-top: 16px;
}
.premium-outro {
    margin-top: 8px;
    margin-bottom: 36px;
    padding: 22px 24px;
    text-align: center;
}
.premium-outro-text {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-main);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.premium-outro-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: bold;
    padding: 14px 32px;
    border-radius: 10px;
}
.premium-outro-cta .fa-arrow-down {
    font-size: 14px;
    opacity: 0.9;
}
.premium-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}
.premium-includes-subtitle {
    margin: 28px 0 12px;
    font-size: 14px;
    line-height: 1.3;
}
.premium-feature-card {
    position: relative;
    padding: 16px 14px 16px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 12px;
    row-gap: 4px;
    align-items: start;
    min-height: 92px;
}
.premium-feature-card--live {
    border-left: 4px solid var(--premium-accent);
}
.premium-feature-card--dev {
    border-left: 4px solid var(--text-muted);
    opacity: 0.95;
    padding-top: 36px;
}
.premium-feature-icon {
    grid-row: 1 / -1;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--premium-accent-soft);
    color: var(--premium-accent);
    font-size: 20px;
}
.premium-feature-card--dev .premium-feature-icon {
    background: var(--bg-hover);
    color: var(--text-muted);
}
.premium-feature-text {
    grid-column: 2;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-main);
    align-self: center;
}
.premium-feature-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 7px;
    border-radius: 6px;
    line-height: 1.2;
}
.premium-feature-badge--live {
    background: var(--premium-accent);
    color: #fff;
    border: none;
    width: 22px;
    height: 22px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.premium-feature-badge--live i {
    font-size: 11px;
}
.premium-feature-badge--dev {
    background: var(--bg-hover);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0;
    font-size: 10px;
    white-space: nowrap;
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
}
.premium-feature-card--live .premium-feature-text {
    padding-right: 8px;
}
.premium-hint {
    color: var(--text-muted);
    font-size: 12px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Premium plan tiles (reference-style) */
.premium-plans-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    margin-top: 16px;
}
.premium-plan-tile {
    position: relative;
    flex: 1 1 180px;
    max-width: 240px;
    min-height: 148px;
    padding: 28px 18px 18px;
    margin-top: 10px;
    border: none;
    border-radius: 14px;
    background: var(--premium-tile-bg);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
body.dark-theme .premium-plan-tile {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.premium-plan-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.premium-plan-tile:focus {
    outline: 2px solid var(--premium-gold);
    outline-offset: 2px;
}
.premium-plan-tile--featured {
    border: 2px solid var(--premium-gold-soft);
    box-shadow: 0 4px 18px var(--premium-gold-glow), 0 4px 14px rgba(0, 0, 0, 0.08);
}
.premium-plan-tile-glow {
    position: absolute;
    left: 50%;
    top: 18px;
    transform: translateX(-50%);
    width: 120px;
    height: 56px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, var(--premium-gold-glow) 0%, transparent 70%);
    pointer-events: none;
}
.premium-plan-tile-discount {
    position: absolute;
    top: 24px;
    left: 16px;
    z-index: 2;
    font-size: 14px;
    font-weight: bold;
    color: var(--premium-gold);
    line-height: 1;
    letter-spacing: -0.02em;
}
body.dark-theme .premium-plan-tile-discount {
    color: var(--premium-gold-soft);
}
.premium-plan-tile-price-block {
    position: absolute;
    top: 22px;
    right: 18px;
    z-index: 1;
    text-align: right;
}
.premium-plan-tile-price {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-main);
}
.premium-plan-tile-price--old-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: line-through;
}
.premium-plan-tile-price--sale {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    font-size: 32px;
    font-weight: bold;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-align: center;
}
.premium-plan-tile-usd-approx {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.premium-plan-tile-duration {
    position: absolute;
    left: 18px;
    bottom: 16px;
    right: 18px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 6px;
    z-index: 1;
}
.premium-plan-tile-num {
    font-size: 38px;
    font-weight: bold;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--text-main);
}
.premium-plan-tile-unit {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.2;
}
.premium-plan-tile-paypal {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    font-size: 28px;
    line-height: 1;
    color: #003087;
    opacity: 0.92;
    cursor: pointer;
}
body.dark-theme .premium-plan-tile-paypal {
    color: #009cde;
}
.premium-plan-tile-sepa {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    font-size: 24px;
    line-height: 1;
    color: #1a5f7a;
    opacity: 0.92;
    cursor: pointer;
}
body.dark-theme .premium-plan-tile-sepa {
    color: #4db8d9;
}
.premium-pay-sepa-intro {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-main);
}
.premium-pay-sepa-details {
    margin: 0;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 520px;
}
.premium-pay-sepa-details > div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 8px 12px;
    align-items: baseline;
}
.premium-pay-sepa-details dt {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}
.premium-pay-sepa-details dd {
    margin: 0;
    font-size: 14px;
    color: var(--text-main);
    word-break: break-all;
}
.premium-pay-sepa-details code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
}
.premium-sepa-receipt-form {
    max-width: 480px;
}
.premium-pay-provider-tab-sepa {
    margin-right: 6px;
}

/* Встраивание оплаты на странице Premium (после выбора тарифа) */
.premium-pay-inline {
    margin-top: 28px;
    padding: 20px 20px 22px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-content);
    box-sizing: border-box;
}
.premium-pay-inline-title {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: bold;
    color: var(--text-main);
}
.premium-pay-provider-toolbar {
    margin: 0 0 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.premium-pay-provider-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 14px;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-content, var(--bg-body));
}
.premium-pay-provider-tab {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.premium-pay-provider-tab:hover {
    color: var(--text-main);
}
.premium-pay-provider-tab.is-active {
    background: var(--bg-tab-active, var(--bg-body));
    color: var(--text-main);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
body.dark-theme .premium-pay-provider-tab.is-active {
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.premium-pay-provider-tab:focus {
    outline: 2px solid var(--link-color, #1a73e8);
    outline-offset: 2px;
}
a.premium-pay-provider-tab {
    text-decoration: none;
    box-sizing: border-box;
    display: block;
}
a.premium-pay-provider-tab.is-active,
span.premium-pay-provider-tab.is-active {
    cursor: default;
}
.rf4-view-mode-switcher {
    margin: 0 0 1rem;
}
.rf4-view-mode-switcher .premium-pay-provider-tabs {
    margin-bottom: 0;
}
.premium-pay-provider-tab-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
}
.rf4-view-mode-tracker-logo {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 2px;
}
.rf4-view-mode-beta {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: #e67e22;
    vertical-align: middle;
}
body.dark-theme .rf4-view-mode-beta {
    background: #d35400;
}
.premium-pay-provider-tab-paypal {
    flex-shrink: 0;
    font-size: 1.35em;
    line-height: 1;
    color: #003087;
}
body.dark-theme .premium-pay-provider-tab-paypal {
    color: #009cde;
}
.premium-pay-donationalerts-text {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-main);
}
.premium-pay-donationalerts-text p {
    margin: 0 0 12px;
}
.premium-pay-donationalerts-text p:last-child {
    margin-bottom: 0;
}
.premium-pay-donationalerts-username-note .premium-pay-donationalerts-username,
.premium-pay-donationalerts-username-note strong {
    font-weight: 700;
    color: var(--text-main);
}
.premium-pay-payoneer-intro {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-main);
}
.premium-pay-payoneer-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
}
.premium-pay-payoneer-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}
.premium-pay-payoneer-field span {
    color: var(--text-muted);
}
.premium-pay-payoneer-field input,
.premium-pay-payoneer-field select {
    font: inherit;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-main);
}
.premium-pay-payoneer-submit {
    align-self: flex-start;
    margin-top: 4px;
}
.premium-pay-provider-label {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}
.premium-pay-provider-select {
    font: inherit;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-main);
    max-width: 100%;
}
.premium-pay-inline-summary {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: bold;
    color: var(--text-main);
}
.premium-pay-inline-offer-consent {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted);
}
.premium-pay-inline-offer-link {
    color: var(--link-color, #1976d2);
    text-decoration: underline;
}
.premium-pay-inline-offer-link:hover {
    text-decoration: none;
}
.premium-pay-inline-wait {
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--text-muted);
}
.premium-pay-qr-wrap {
    text-align: center;
}
.premium-pay-qr-frame {
    position: relative;
    display: inline-block;
    width: 100%;
    width: 334px;
    height: 500px;
    aspect-ratio: 1;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}
.premium-pay-qr-logo {
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 33px;
    height: 33px;
    border-radius: 8px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    padding: 4px;
    box-sizing: border-box;
    box-shadow: 0 0 0 3px #fff;
    pointer-events: none;
}
body.dark-theme .premium-pay-qr-logo {
    box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(0, 0, 0, 0.35);
}
.premium-pay-inline-support-hint {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid rgba(25, 118, 210, 0.35);
    border-left-width: 4px;
    background: linear-gradient(145deg, rgba(25, 118, 210, 0.1) 0%, rgba(25, 118, 210, 0.03) 100%);
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-main);
}
.premium-pay-inline-support-hint-mail {
    color: var(--link-color, #1976d2);
    font-weight: 600;
    text-decoration: underline;
}
.premium-pay-inline-support-hint-mail:hover {
    text-decoration: none;
}
body.dark-theme .premium-pay-inline-support-hint {
    border-color: rgba(100, 181, 246, 0.42);
    background: rgba(25, 118, 210, 0.15);
}
body.dark-theme .premium-pay-inline-support-hint-mail {
    color: #90caf9;
}
.premium-pay-provider-host {
    margin: 8px 0 0;
    border-radius: 10px;
    overflow-x: hidden;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    background: transparent;
    border: none;
    box-shadow: none;
    box-sizing: border-box;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.premium-pay-provider-host:has(.premium-pay-provider-mount) {
    height: 580px;
    overflow-y: auto;
}
body.dark-theme .premium-pay-provider-host {
    box-shadow: none;
}
.premium-pay-provider-hint {
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}
.premium-pay-recurring-toolbar .premium-pay-recurring-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-color);
    text-align: left;
    margin: 0 auto;
    max-width: 360px;
}
.premium-pay-recurring-check {
    margin-top: 2px;
    flex-shrink: 0;
}
.premium-pay-provider-mount {
    width: 100%;
    flex: 1 1 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
/* Robokassa.Render задаёт iframe ~150px по умолчанию — без !important высота не поднимается */
.premium-pay-provider-host iframe,
.premium-pay-provider-mount iframe {
    display: block;
    width: 100% !important;
    
    height: 500px;
    max-width: 100%;
    border: 0;
    box-sizing: border-box;
    flex: 1 1 auto;
}
.premium-pay-provider-fallback {
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.premium-pay-provider-fallback a {
    color: var(--link-color, #1a73e8);
}
.premium-pay-provider-fallback a.button {
    color: #fff;
}
.premium-pay-provider-fallback:has(.premium-pay-cta-main) {
    text-align: center;
    margin-top: 20px;
}
.premium-pay-provider-fallback .premium-pay-cta-main {
    display: inline-block;
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    margin-top: 6px;
    padding: 16px 28px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
    border-radius: 14px;
    box-shadow: 0 6px 22px var(--premium-gold-glow, rgba(80, 60, 20, 0.22));
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.premium-pay-provider-fallback a.posts-premium-cta-button.premium-pay-cta-main:hover {
    background: linear-gradient(135deg, var(--premium-gold-soft) 0%, var(--premium-accent) 50%);
    filter: brightness(1.08);
    box-shadow: 0 8px 26px var(--premium-gold-glow, rgba(80, 60, 20, 0.28));
}
.premium-pay-provider-fallback .button.premium-pay-open-link:not(.premium-pay-cta-main) {
    display: inline-block;
    margin-top: 10px;
}

.premium-trial-block {
    padding: 20px;
    border-radius: 12px;
    border: 1px dashed var(--border-color);
    background: var(--bg-content);
}
.premium-trial-block form {
    margin-top: 10px;
}
.posts-premium-teaser {
    opacity: 0.92;
}
.post-item .dip.posts-premium-teaser a,
.post-item .composition.posts-premium-teaser a {
    text-decoration: underline;
}

.site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    box-sizing: border-box;
    padding: 8px 12px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-main);
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.08);
}
body.dark-theme .site-footer {
    box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.45);
}
.csr-uniq1 {
    bottom: 32px !important;
}
.site-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 18px;
    font-size: 12px;
    line-height: 1.35;
}
.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 2px;
}
.site-footer-link {
    color: var(--text-link);
    text-decoration: none;
    white-space: nowrap;
}
.site-footer-link:hover {
    text-decoration: underline;
}
.site-footer-sep {
    color: var(--text-muted);
    user-select: none;
    padding: 0 3px;
}
.site-footer-mail {
    font-weight: 600;
}
.site-footer-social {
    color: var(--text-main);
    font-size: 15px;
    padding: 0 5px;
    line-height: 1;
    opacity: 0.92;
}
.site-footer-social:hover {
    opacity: 1;
    color: var(--text-link);
}
.site-footer-disclaimer {
    margin: 0;
    flex: 1 1 200px;
    text-align: right;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.35;
    max-width: 560px;
}

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 72px;
    z-index: 1200;
    width: 42px;
    height: 42px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: #3b4151;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background 0.15s ease;
}
.back-to-top.is-visible {
    opacity: 0.92;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
body.search-filters-panel-open .back-to-top,
body.map-modal-open .back-to-top {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
.back-to-top:hover,
.back-to-top:focus-visible {
    background: #0d5aa7;
    opacity: 1;
    outline: none;
}
body.dark-theme .back-to-top {
    background: #4a5163;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
body.dark-theme .back-to-top:hover,
body.dark-theme .back-to-top:focus-visible {
    background: #0d5aa7;
}
.back-to-top.fab-above-ads {
    bottom: 172px;
}
@media (max-width: 480px) {
    .back-to-top {
        right: 12px;
        bottom: 18px;
        width: 40px;
        height: 40px;
    }
    .back-to-top.fab-above-ads {
        bottom: 118px;
    }
}

.premium-coupon-block.posts-premium-cta {
    margin: 20px auto 14px;
    max-width: 480px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
    text-align: center;
}
.premium-coupon-block .posts-premium-cta-title {
    font-size: 18px;
    margin: 0 0 14px;
}
.premium-coupon-block .premium-coupon-row.posts-premium-cta-action {
    margin-top: 0;
}
.premium-coupon-block .posts-premium-cta-text {
    font-size: 14px;
    line-height: 1.5;
}
.premium-coupon-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}
.premium-coupon-action {
    display: flex;
    justify-content: center;
}
.premium-coupon-input {
    flex: 1 1 140px;
    min-width: 0;
    width: auto;
    margin: 0;
    text-align: left;
}
.premium-coupon-apply-btn.posts-premium-cta-button,
.premium-coupon-clear-btn {
    flex: 1 1 auto;
    width: auto;
    max-width: 100%;
    min-width: 0;
    font-size: 15px;
    padding-left: 14px;
    padding-right: 14px;
    white-space: normal;
}
.premium-coupon-hint,
.premium-coupon-applied-hint {
    margin-top: 4px;
}
.premium-coupon-footnote {
    margin: 10px auto 0;
    max-width: 100%;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
    text-align: center;
}
.premium-coupon-robokassa-note {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}
.premium-coupon-error {
    margin: 10px auto 0;
    max-width: 100%;
    color: var(--danger, #e74c3c);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 480px) {
    .premium-coupon-block.posts-premium-cta {
        margin-left: 0;
        margin-right: 0;
        padding-left: 14px;
        padding-right: 14px;
    }
    .premium-coupon-block .posts-premium-cta-title {
        font-size: 16px;
        line-height: 1.35;
    }
    .premium-coupon-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .premium-coupon-input,
    .premium-coupon-apply-btn.posts-premium-cta-button,
    .premium-coupon-clear-btn {
        flex: none;
        width: 100%;
        max-width: none;
    }
    .premium-coupon-apply-btn.posts-premium-cta-button {
        font-size: 16px;
    }
}

