@font-face {
    font-family: 'TostikSansBase';
    src: url('/fonts/TostikSansBase-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'TostikSansBase';
    src: url('/fonts/TostikSansBase-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'TostikSansBase';
    src: url('/fonts/TostikSansBase-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-main: 'TostikSansBase', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --bg-body: #f5f5f5;
    --bg-header: #fcebeb;
    --bg-card: #ffffff;
    --color-text-main: #000000;
    --color-text-muted: #888888;
    --color-text-light: #555555;
    --color-primary: #1d6bf3;
    --color-primary-hover: #1558ce;
    --color-border: #eaeaea;
    --color-hover-bg: #f0f0f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --color-bg-light: #f1f2f6;
    --transition-gif: all 0.2s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
h2 {font-size:18px}
.feed{min-width:0}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--color-text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary);
}
strong {
  font-weight:500
}
button {
    font-family: var(--font-main);
    border: none;
    background: none;
    cursor: pointer;
}


ul {
    list-style: none;
}

.header-wrapper {
    background-color: var(--bg-header);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header {
    max-width: 1240px;
    margin: 0 auto;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 1;
    min-width: 0;
}

.menu-toggle {
    display: none;
    width: 24px;
    height: 24px;
    color: var(--color-text-main);
    position: relative;
}

.menu-toggle svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle .icon-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.menu-toggle.active .icon-menu {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.menu-toggle.active .icon-close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 60px;
    min-width: 0;
}
.logo svg {
    margin-left: 10px;
    fill: #8e3535;
    fill-rule: evenodd;
    clip-rule: evenodd;
    max-width: 180px;
    width: 100%;
    height: auto;
    max-height: 25px;
}
.logo:hover{opacity:.8}
.tostik-logo-icon{transform-origin:18px 17px;animation:flip-around 5s ease-in-out infinite}@keyframes flip-around{0%{transform:rotateY(0)}20%{transform:rotateY(360deg)}100%{transform:rotateY(360deg)}}
.header-center {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    padding: 0 20px;
    min-width: 0; 
}

.search-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease-in-out;
}

.search-btn:hover {
    background-color: rgba(0,0,0,0.05);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 1;
    min-width: 0;
}

.btn-outline {
    background-color: var(--bg-card);
    border: 1px solid var(--color-border);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

.btn-outline:hover {
    border-color: var(--color-text-muted);
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    padding: 16px 20px;
    border-radius:var(--radius-md);
    font-weight: 500;
    transition: background 0.2s ease-in-out;
    white-space: nowrap;
    cursor:pointer;
    text-align:center
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
}

.layout {
    max-width: 1240px;
    margin: 24px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 220px 1fr 300px;
    gap: 24px;
    align-items: start;
}

.sidebar-left {
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    scrollbar-width: none;
}

.sidebar-left::-webkit-scrollbar {
    display: none;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: 8px;
    padding-left: 12px;
    letter-spacing: 0.5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.nav-item:hover {
    background-color: var(--color-hover-bg);
    color: var(--color-text-main);
}

.nav-item svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}
 .nav-item.active-link svg {
 color: var(--color-primary)
 }
 .nav-item.active-link{
   background-color: var(--bg-card);
}
.nav-item .emoji-icon{width:20px;height:20px;opacity:0.7}

.nav-arrow {
    margin-left: auto;
    width: 18px;
    height: 18px;
    transition: transform var(--transition);
}
.nav-item.open-toggle .nav-arrow {
    transform: rotate(180deg);
}
.submenu {
    display: none;
    flex-direction: column;
    padding-left: 32px;
    margin-bottom: 12px;
}

.submenu.open {
    display: flex;
}

.submenu-item {
    font-size: 14px;
    padding: 8px;
}

.top-bar {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-light);
}

.extra-nav-wrapper {
 display: grid;
 grid-template-rows: 0fr;
 transition: grid-template-rows 0.2s ease-out;
}

.extra-nav-wrapper.expanded {
 grid-template-rows: 1fr;
}

.extra-nav-inner {
 overflow: hidden;
 display: flex;
 flex-direction: column;
}

.show-more-btn.active .nav-arrows {
    transform: rotate(180deg);
}

.show-more-btn,.show-more-btn:hover{
color: var(--color-primary);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.top-bar-right {
    display: flex;
    gap: 16px;
    color: var(--color-text-muted);
}

.top-bar-right span b {
    color: var(--color-text-main);
    font-weight: 500;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.category-card {
    padding: 0;
    overflow: hidden;
}

.category-cover {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

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

.category-body {
    padding: 20px;
}

.category-desc {
    font-size: 14px;
    line-height: 1.5;
    max-width: 600px;
    max-height: 65px; 
    overflow: hidden;
    position: relative;
    transition: max-height var(--transition);
    text-wrap: balance;
}
.category-desc::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25px;
    background: linear-gradient(transparent, var(--bg-card));
    transition: opacity var(--transition);
}

.category-desc.full-view {
    max-height: 1000px;
}
.category-desc.full-view::after {
    opacity: 0;
}

.read-more-btn {
    display: block;
    margin-top: 10px;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 14px;
}

.page-description p {
  font-size: 16px;
  margin-bottom: 16px;
}

ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}

li {
  margin-bottom: 10px;
  font-size: 15px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 14px;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--color-text-main);
}

.post-meta {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}
.post-data {margin-right:5px;border:1px solid var(--color-text-muted);padding: 5px 10px;border-radius: var(--radius-md);color: #8e3535;}
.p-mrgn {padding-bottom:12px}


.card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}


.stats-highlight {
    color: #e53935;
    font-weight: 700;
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.cat-block h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #d32f2f;
}

.cat-links {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-light);
}

.cat-links a {
    color: #1976d2;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.2s;
}

.cat-links a:hover {
    text-decoration-color: #1976d2;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}
.card-actions-hr {margin:0 -20px;margin-top:20px;padding:0px 20px;padding-top:16px}

.card-actions-gif {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-md);
    background-color: var(--color-bg-light);
    color: #2f3542;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-gif);
    outline: none;
}

.btn-action:hover {
    background-color: #dfe4ea;
    transform: translateY(-2px);
}

.gif-icon-svg {
    flex-shrink: 0;
}

.btn-like {
    color: #57606f;
}

.btn-like:hover {
    color: var(--color-primary);
}

.btn-download {
    color: var(--color-primary);
}

.btn-download:hover {
    background-color: var(--color-primary);
    color: white;
}
.download-link {text-decoration:none}

.btn-share {
background-color: var(--color-primary);
 color: white;
}

.btn-share:hover {
 background-color: var(--color-primary-hover);
 
 }

.gif-wrapper {
 background: #121212;
 background-image: url(/img/site/bg-bg.webp);
 background-repeat: repeat;
 background-attachment: fixed;
 border-radius: var(--radius-md);
 overflow: hidden;
 position: relative;
 display: flex;
 justify-content: center;
 align-items: center;
 margin-bottom: 16px;
}

.gif-wrapper picture {
    display: block;
    width: 100%;
    max-height: 70vh;
}

.gif-wrapper img {
 width: 100%;
 height: 100%;
 max-height: 70vh;
 height: auto;
 object-fit: contain;
 display: block;
 max-width: 100%;
 cursor:grab;user-select:none
}
.gif-wrapper img:active {
 cursor: grabbing
}
.gif-wrapper .drag-tip {
 position: absolute;
 bottom: 20px;
 left: 50%;
 transform: translateX(-50%);
 background: rgba(0,0,0,0.6);
 color: #fff;
 padding: 4px 8px;
 font-size: 12px;
 border-radius: 4px;
 opacity: 0;
 pointer-events: none;
 transition: opacity 0.2s;
}

.gif-wrapper:hover .drag-tip {
 opacity: 1;
 }

.grid {
    margin: 0 auto;
    width: 100%;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gif-card {
    width: calc((100% - 20px) / 3); 
    margin-bottom: 16px;
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-hover-bg);
    cursor: pointer;
}

#similar-grid .gif-card:nth-child(n+11){display: none}#similar-grid .gif-card.is-visible{display:block}

.gif-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0;
    transition: transform .35s ease, opacity .5s ease;
}

.gif-card img.loaded {
    opacity: 1;
}

.gif-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    background-size: 100% 200%;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.gif-card:has(.lazy:not(.loaded))::after {
    opacity: 1;
    visibility: visible;
    animation: shimmer-vertical 2s infinite linear;
}

@keyframes shimmer-vertical {
    0% { background-position: 0 200%; }
    100% { background-position: 0 -200%; }
}

.gif-card:has(.lazy.error)::after {
    display: none;
}

.gif-card img.lazy.error {
    opacity: 0; 
    visibility: hidden;
}

.gif-card:hover img {
    transform: scale(1.06);
}

.gif-card video.promo-video {
 width: 100%;
 height: 100%;
 display: block;
 object-fit: cover;
 position: absolute;
 top: 0;
 left: 0;
 transition: transform .35s ease;
}

.gif-card:hover video.promo-video {
 transform: scale(1.06);
}


.sound-toggle {
 position: absolute;
 bottom: 10px;
 right: 10px;
 z-index: 6;
 background: rgba(0, 0, 0, 0.5);
 color: #fff;
 border: none;
 border-radius: 50%;
 width: 32px;
 height: 32px;
 cursor: pointer;
 font-size: 14px;
 display: flex;
 align-items: center;
 justify-content: center;
 backdrop-filter: blur(4px);
}
.sound-toggle svg{width:16px;height:16px;}
 .video-duration {
 position: absolute;
 top: 10px;
 right: 10px;
 background: rgba(0, 0, 0, 0.6);
 color: #fff;
 padding: 2px 8px;
 border-radius: 6px;
 font-size: 11px;
 font-weight: 500;
 backdrop-filter: blur(4px);
 z-index: 6;
 pointer-events: none;
}

.gif-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    color: #fff;
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0,0,0,.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translateY(10px);
    transition: all .25s ease;
    z-index: 2;
}

.gif-card:hover .gif-overlay {
    opacity: 1;
    transform: translateY(0);
}


.share-title {
 font-size: 12px;
 font-weight: 700;
 color: var(--color-text-muted);
 margin-bottom: 8px;
 text-transform: uppercase;
 letter-spacing: 0.5px;
}

.back-link{margin-bottom:16px}

.super-cat-link {color:var(--color-text-muted);font-size:14px;font-weight:500;display:flex;align-items:center;gap:4px;max-width:max-content}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.action-btn:hover {
    color: var(--color-text-main);
}

.like-icon{
transition:transform .25s ease;
}

.like-btn.liked .like-icon{
transform:scale(1);
animation:likePop .4s ease;
color:#d32f2f
}

@keyframes likePop{
0%{transform:scale(1)}
50%{transform:scale(1.6)}
100%{transform:scale(1)}
 }

.like-icon-liked{color:#d32f2f}

.sidebar-right {
    position: sticky;
    top: 84px;
}

.widget {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget-item {
    display: flex;
    gap: 12px;
    font-size: 14px;
}

.widget-date {
    color: var(--color-text-muted);
    font-weight: 500;
    width: 40px;
    flex-shrink: 0;
}

.widget-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget-link {
    color: var(--color-primary);
    line-height: 1.4;
}

.widget-link:hover {
    text-decoration: underline;
}
div.widget-link{cursor:default}a.widget-link-activ{color:#d32f2f;font-weight:500}
.widget-footer {
    margin-top: 16px;
    font-size: 13px;
    color: var(--color-primary);
    cursor: pointer;
}

.widget-footer:hover {
    text-decoration: underline;
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 90;
    opacity: 0;
    transition: opacity var(--transition);
}

@media (max-width: 1080px) {
.layout {
        grid-template-columns: 220px 1fr; 
    }

    .sidebar-right {
        grid-column: 2; 
        display: block; 
        width: 100%;
        position: static;
    }

    .sidebar-right .widget {
        margin-bottom: 16px;
        width: 100%;
    }
    .widget {
        margin-bottom: 0;
        height: 100%;
    }
}
@media (pointer: coarse), (max-width: 1024px) {
.gif-wrapper img {
 cursor: default;
 user-select: auto;
 }
.gif-wrapper .drag-tip {
 display: none;
 }
}
@media (min-width: 1025px) {
    .category-desc {
        max-height: none !important;
        overflow: visible !important;
    }
    
    .category-desc::after {
        display: none !important;
    }

    .read-more-btn {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 16px;
    }
    .menu-toggle {
        display: block;
    }
    .layout {
        grid-template-columns: 1fr;
        padding: 0 16px;
        margin: 16px auto;
        gap: 16px;
    }
    .sidebar-left {
        position: fixed;
        top: 60px;
        bottom: 0;
        left: 0;
        width: 280px;
        height: auto;
        max-height: none;
        background: var(--bg-card);
        z-index: 100;
        padding: 20px;
        transform: translateX(-100%);
        transition: transform var(--transition);
        box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    }
    .sidebar-left.active {
        transform: translateX(0);
    }
  .sidebar-right {
        grid-column: auto; 
        width: 100%;
        display: block;
    }
    .mobile-overlay {
        display: block;
        pointer-events: none;
    }
    .mobile-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
    .categories-grid {
        grid-template-columns: 1fr;
    }
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .top-bar-right {
        flex-wrap: wrap;
    }
    .sidebar-right {
        grid-template-columns: 1fr;
        gap: 16px;
    }
      .gif-card {
        width: calc((100% - 10px) / 2); 
        margin-bottom: 12px;
    }
.gif-overlay{
  display:none;
 }
  .btn-text {
        display: none;
    }
   .nav-item.active-link{
   background-color: var(--color-hover-bg);
}
}

@media (max-width: 480px) {
    .header {
        padding: 0 12px;
    }
    .header-left {
        gap: 12px;
    }
    .header-center {
        padding: 0 8px;
    }
    .header-right {
        gap: 8px;
    }
    .btn-outline {
        padding: 8px;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        justify-content: center;
    }
    .search-btn {
        width: 36px;
        height: 36px;
    }
      .card-actions {
        justify-content: space-between;
    }
    
    .btn-action {
        padding: 10px;
        flex: 1; 
    }

    .btn-action span:not(.like-count) {
        display: none;
    }
}
a.catSortLink.darr{color:#1d6bf3}


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

.tag-btn {
 font-family: var(--font-main);
 font-weight: 500;
 padding: 8px 10px;
 border-radius: var(--radius-md);
 transition: transform var(--transition), opacity var(--transition);
 display: inline-flex;
 align-items: center;
 justify-content: center;
 color: #333; 
 border: none;
}
.tag-btn-gif{text-transform:lowercase}

.tag-btn:hover {
 transform: translateY(-2px);
 opacity: 0.85;
 color: #000 !important;
}
.tag-btn.activbtn{border:1px solid var(--color-primary)}
.tag-white { background-color: #fcebeb}
.tag-pink { background-color: #fce4ec}
.tag-pink-all { background-color: #b95e7c;color:white;cursor:pointer}
.tag-cyan { background-color: #e0f2f1}
.tag-brown { background-color: #efebe9}
.tag-orange { background-color: #fff3e0}
.tag-green { background-color: #e8f5e9}
.tag-purple { background-color: #f3e5f5}
.tag-light-cyan { background-color: #e1f5fe}
.tag-dark-brown { background-color: #d7ccc8}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    font-size: 0;
    margin: -6px;
    margin-bottom: 12px;
}

.tags-container a, 
.show-more-btn-tag {
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.tags-container:has(a:hover, .show-more-btn-tag:hover) a,
.tags-container:has(a:hover, .show-more-btn-tag:hover) .show-more-btn-tag {
    opacity: 0.8;
}

.tags-container a:hover,
.show-more-btn-tag:hover {
    opacity: 1!important;
}
    
.tags-container a, .show-more-btn-tag {
    display: none; 
    margin: 6px;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    color: #333;
    text-decoration: none;
    background-color: #f0f0f0;
	font-size: 12px;height:32px;
    align-items: center; text-transform: lowercase; justify-content: center;
}

.tags-container a:nth-child(-n+3) {
    display: inline-flex;
}

.tags-container:has(#show-all-toggle:checked) a {
    display: inline-flex;
}

.show-more-btn-tag {
	display: inline-flex;cursor:pointer;
}

#show-all-toggle:checked + .show-more-btn-tag {
    display: none;
}

.tags-container a svg {
    width: 12px;
    height: 12px;
    margin-right: 5px;
    flex-shrink: 0; 
}

.emoji-btns {
 padding: 8px 20px;
 border-radius: var(--radius-md);
 display: inline-flex;
 align-items: center;
 justify-content: center;
}

.emoji-btns-active svg{transform: scale(1.2)}
a.emoji-btns-active{border:1px solid rgba(142, 53, 53, 0.5)}
a.emoji-btns svg {
    transition: transform 0.2s ease, opacity 0.2s ease;opacity: 0.8;width:40px;height:40px}

a.emoji-btns:hover svg {
    transform: scale(1.2);
    opacity: 1;
}
    
.emoji-picker {
 display: flex;
 gap: 10px;
 overflow-x: auto;
 overflow-y: hidden;
 flex-wrap: nowrap;
 width: 100%;
 cursor: grab;
 scrollbar-width: none;
}
.emoji-picker::-webkit-scrollbar {display:none}
.emoji-picker:active {cursor:grabbing}

.emoji-picker .emoji-btns {
 flex: 0 0 80px;
 width: 80px;
 height: 80px;
 display: flex;
 align-items: center;
 justify-content: center;
 user-select: none;
 -webkit-user-drag: none;
}

.emoji-wrapper {
 position: relative;
}
.emoji-wrapper::before,
.emoji-wrapper::after {
 content: "";
 position: absolute;
 top: 0;
 bottom: 0;
 width: 5px;
 pointer-events: none;
 z-index: 2;
}
.emoji-wrapper::before { left: 0; background: linear-gradient(to right, var(--bg-card), transparent)}
.emoji-wrapper::after { right: 0; background: linear-gradient(to left, var(--bg-card), transparent)}

.new-page-items {
    opacity: 0;
}
.new-page-items.show {
    opacity: 1;
}

.share-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.3, 1, 0.3, 1), visibility 0s linear 0.4s;
}

.share-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s cubic-bezier(0.3, 1, 0.3, 1), visibility 0s linear 0s;
}

.share-modal {
    position: fixed;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.3, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 90vh;
    overflow-y: auto;
}

.share-modal-handle {
    width: 40px;
    height: 6px;
    background-color: #d1d5db;
    border-radius: var(--radius-lg);
    margin: 0 auto 4px auto;
    cursor: grab;
    flex-shrink: 0;
    margin-bottom:-20px;
}

.share-modal-handle:active {
    cursor: grabbing;
}

.share-modal-overlay.active .share-modal {
    transform: translateY(0);
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 18px;
}

.share-modal-header button {
    color: var(--color-text-muted);
}

.share-modal-header button:hover {
    color: var(--color-text-main);
}

.share-modal-preview {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    justify-content: center;
    background-color:#121212;background-image:url('/img/site/bg-bg.webp');background-repeat:repeat;background-attachment:fixed;
    max-height: 200px;
}

.share-modal-preview img {
    max-height: 200px;
    object-fit: contain;
}

.share-modal-btn {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.share-modal-btn.primary {
    background: var(--color-primary);
    color: #fff;
    border: 1px solid var(--color-primary);
}

.share-modal-btn.primary:hover {
    background: var(--color-primary-hover);
}

.share-modal-btn.secondary {
    background: var(--bg-body);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
}

.share-modal-btn.secondary:hover {
    background: #e5e5e5;
}

.social-share-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}
.modal-text{font-size:13px;text-align:center}
.social-share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: var(--radius-sm);
    color: #fff;
    transition: opacity 0.2s;
}

.social-share-icon:hover {
    opacity: 0.8;
}

.social-wats{background:#25D366}
.social-telegram{background:#229ED9}
.social-viber{background:#7360F2}
.social-fb{background:#1877F2}
.social-vk{background:#4C75A3}
.social-pinterest{background:#E60023}
.social-twtr-x{background:#000}
.social-ok{background:#EB722E}
.social-reddit{background:#FF4500}
.social-share-icon:hover{color:white}

.fake-switch {
 display: flex;
 gap: 10px;
margin-bottom: 16px;
}

.fake-switch button {
 flex: 1;
 padding: 10px;
 border-radius: 10px;
 border: 1px solid #ddd;
 background: #f3f3f3;
 font-weight: 500;
 cursor: pointer;
 transition: 0.2s;
}

.fake-switch button:hover {
 background: #e9e9e9;
}

.fake-switch button.active {
 background: #ff6b6b;
 border-color: #ff6b6b;
 color: #fff;
}

#waakInfbc{position:fixed;z-index:150;bottom:20px;left:50%;transform:translateX(-50%);max-width:280px;width:calc(100% - 32px);display:none;box-sizing:border-box;font-size:13px}#waakInfbc>div{display:flex;align-items:center;gap:8px;padding:10px 14px;color:#fff;border-radius:var(--radius-md)}.waakInfbcMini{background:rgba(30,30,30,0.95);justify-content:space-between}.waakInfbcMini button{background:#fff;color:#000;border:none;border-radius:6px;padding:4px 8px;font-size:11px;cursor:pointer}.waakInfbcOk{background:rgba(60,154,28,0.95)}.waakInfbcNon{background:rgba(253,86,40,0.95)}.waakInfbcZ{background:rgba(253,166,73,0.95)}.loader{width:20px;height:20px}.dot{opacity:0.2;animation:snake 1.2s infinite}.dot1{animation-delay:0s}.dot2{animation-delay:0.2s}.dot3{animation-delay:0.4s}@keyframes snake{0%{opacity:0.2;transform:scale(1)}50%{opacity:1;transform:scale(1.6)}100%{opacity:0.2;transform:scale(1)}}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}

.modal-content {
    background-color: var(--bg-body);
    color: var(--color-text-main);
    width: 100%;
    max-width: 450px;
    padding: 20px;
    border-radius: var(--radius-lg);
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}

.modal-title {
font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 20px;
    margin-bottom: 30px;
}

.modal-label {
    display: block;
    color: var(--color-text-muted);
    font-size: 13px;
    margin-bottom: 5px;
    font-weight: 500;
}

.modal-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.modal-btn-close {
    width: 100%;
    background-color: var(--color-primary);
    border-radius: var(--radius-sm);
    padding: 14px;
    font-size: 16px;
}

.modal-btn-close:hover {
    filter: brightness(1.1);
    background-color: var(--color-primary-hover);
}

#modal-social-wrapper .social-share-grid {
 display: flex;
 overflow-x: auto;
 gap: 12px;
 scrollbar-width: none;
}

#modal-social-wrapper .social-share-grid::-webkit-scrollbar {
 display: none;
}

#modal-social-wrapper .social-share-icon {
 display: flex;
 flex-direction: column;
 align-items: center;
 min-width: 75px;
 text-decoration: none;
 flex-shrink: 0;
}

#modal-social-wrapper .social-share-icon svg {
 width: 55px;
 height: 55px;
 padding: 14px;
 border-radius: 50%;
 color: #fff;
 margin-bottom: 8px;
 background: #8e8e93;
}

#modal-social-wrapper .social-share-icon::after {
 content: attr(title);
 font-size: 11px;
 color: var(--color-text-main);
 text-align: center;
}

#modal-social-wrapper .social-wats svg { background-color: #25D366; }
#modal-social-wrapper .social-telegram svg { background-color: #24A1DE; }
#modal-social-wrapper .social-fb svg { background-color: #1877F2; }
#modal-social-wrapper .social-vk svg { background-color: #4C75A3; }
#modal-social-wrapper .social-viber svg { background-color: #7360F2; }
#modal-social-wrapper .social-twtr-x svg { background-color: #000000; }
#modal-social-wrapper .social-pinterest svg { background-color: #BD081C; }
#modal-social-wrapper .social-ok svg { background-color: #F94F00; }
#modal-social-wrapper .social-reddit svg { background-color: #FF4500; }
#modal-social-wrapper .social-share-icon {background-color:#fff}