/* =========================================================
   Game.Rip — styles.css (оптимизированный)
   ========================================================= */





button { font-family: inherit; }

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s ease;
}
.sidebar-header {
    height: 70px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    position: relative;
}
.sidebar-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: calc(100% + 1px);
    height: 4px;
    background: linear-gradient(to right, var(--accent), #06b6d4);
    z-index: 10;
}

.logo {
    font-size: 22.4px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 20;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.logo:hover { filter: brightness(1.2); transform: translateY(-3px); }
.logo-icon { color: var(--accent); flex-shrink: 0; }
.logo-text { display: inline-block; }
.logo-text .first-letter { color: #488fe9; }
.logo-text .last-letters { color: var(--accent); }

.close-sidebar {
    display: none;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    position: relative;
    z-index: 20;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 40px 0;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: #d4d4d4 transparent;
}



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

.nav-title {
    padding: 0 24px 12px;
    font-size: 16px;
    text-transform: uppercase;
    color: var(--text-main);
    letter-spacing: 0.5px;
    font-weight: 700;
    text-align: left;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-title svg { flex-shrink: 0; color: var(--accent); }

.nav-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 24px;
    list-style: none;
    margin-top: 2px;
    margin-bottom: 24px;
}
.nav-menu.grid-3 {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.nav-menu.grid-3 li a {
    justify-content: center;
    text-align: center;
    padding: 6px 5px;
    font-size: 13px;
}
.nav-menu li a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 5px 10px;
    color: #151515;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 15px;
    border-radius: var(--radius);
    background-color: #e5e7eb;
    border: 2px solid transparent;
    gap: 8px;
    filter: brightness(1.05);
}
.nav-menu li a svg {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: color 0.2s ease;
}
.nav-menu li a:hover {
    background-color: #ffffff;
    color: var(--accent);
    border-color: #31863d;
    filter: brightness(1);
    transform: translateX(3px);
}
.nav-menu li a:hover svg { color: var(--accent); }

.cat-menu-list {
    list-style: none;
    padding: 0 24px;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cat-menu-item { position: relative; }
.cat-menu-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 12px;
    border-radius: var(--radius);
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    background-color: transparent;
    border: 2px solid transparent;
}
.cat-menu-item > a:hover {
    background-color: #ffffff;
    color: var(--accent);
    border-color: rgba(49, 134, 61, 0.4);
    transform: translateX(3px);
}
.cat-menu-item.active > a {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    font-weight: 700;
}
.cat-menu-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cat-menu-count {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background-color: rgba(49, 134, 61, 0.1);
    color: var(--accent);
    min-width: 22px;
    text-align: center;
    transition: all 0.2s ease;
}
.cat-menu-item.active .cat-menu-count {
    background-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}
.cat-menu-sub {
    list-style: none;
    padding: 4px 0 4px 16px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cat-menu-sub .cat-menu-item > a {
    font-size: 13px;
    padding: 5px 10px;
    font-weight: 400;
    color: var(--text-muted);
}
.cat-menu-sub .cat-menu-item > a:hover {
    color: var(--accent);
    background-color: rgba(49, 134, 61, 0.05);
    transform: none;
}

.sidebar-top-games {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
    margin-top: 2px;
}
.side-game-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s ease;
    overflow: hidden;
}
.side-game-card:hover { opacity: 0.95; }
.side-game-card:hover .side-game-title { color: var(--accent); }

.side-game-poster {
    width: 80px;
    height: 110px;
    background-color: #e2e8f0;
    border-radius: var(--radius);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.side-game-poster-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}
.side-game-card:hover .side-game-poster-img { transform: scale(1.08); }

.side-game-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    overflow: hidden;
    padding-top: 2px;
    flex: 1;
    min-width: 0;
    max-height: 147px;
}
.side-game-title {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
}
.side-game-cat {
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    max-width: 100%;
}
.extra-field {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
}

.top-header {
    background-color: var(--bg-sidebar);
    position: sticky;
    top: 0;
    z-index: 90;
}
.top-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(to right, #06b6d4, #3b82f6, #a855f7);
    z-index: 10;
}
.header-top-row {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: relative;
    z-index: 20;
}
.mobile-logo { display: none; }
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.search-container { display: flex; align-items: center; }
.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    width: 350px;
}
.search-bar input {
    font-family: inherit;
    font-size: 14px;
    background-color: #f9fafb;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 9px 45px 9px 15px;
    border-radius: var(--radius);
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
}
.search-bar input:focus { border-color: var(--accent); }

.search-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.search-btn:hover { color: var(--accent); }

.header-links {
    display: flex;
    gap: 20px;
    margin-left: 30px;
    align-items: center;
}
.header-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}
.header-links a:hover { color: var(--accent); }

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

/* Контейнер для колонок */
.responsive-container {
  display: flex;
  flex-wrap: wrap; /* Разрешает перенос колонок на новую строку */
  gap: 1px;       /* Расстояние между колонками */
    margin-right:10px;
}

/* Настройки для больших экранов (компьютеры и планшеты) */
.column-left {
  /* calc(30% - 10px) учитывает отступ gap, чтобы блоки не переносились раньше времени */
  width: calc(75% - 10px); 

}

@media screen and (min-width: 1600px) and (max-width: 1900px) {
    .column-left {
        width: calc(75% - 10px);
    }
    .column-right {
    width: calc(25% - 10px);
    border-radius: 30px;
    margin-top: 20px;
    margin-bottom: 65px;
    padding: 20px 0; /* уменьшен верхний/нижний паддинг, т.к. виджеты имеют свои отступы */
    display: flex;
    flex-direction: column;
    gap: 20px; /* расстояние между виджетами */
     /*position: sticky;*/
    top: 90px;                /* отступ от верха окна */
    align-self: flex-start;   /* важно, если колонка — flex-элемент */
    z-index: 10;              /* чтобы не перекрывалась другими блоками */
    overflow-y: auto;         /* внутренняя прокрутка, если контента больше */
}
    
    
}

@media screen and (min-width: 1900px) and (max-width: 2500px) {
    .column-left {
        width: calc(80% - 10px);
    }
    .column-right {
    width: calc(20% - 10px);
    border-radius: 30px;
    margin-top: 20px;
    margin-bottom: 65px;
    padding: 20px 0; /* уменьшен верхний/нижний паддинг, т.к. виджеты имеют свои отступы */
    display: flex;
    flex-direction: column;
    gap: 20px; /* расстояние между виджетами */
     /*position: sticky;*/
    top: 90px;                /* отступ от верха окна */
    align-self: flex-start;   /* важно, если колонка — flex-элемент */
    z-index: 10;              /* чтобы не перекрывалась другими блоками */
    overflow-y: auto;         /* внутренняя прокрутка, если контента больше */
}
}

@media screen and (min-width: 2500px) and (max-width: 4400px) {
    .column-left {
        width: calc(80% - 10px);
    }
    .column-right {
    width: calc(20% - 10px);
    border-radius: 30px;
    margin-top: 40px;
    margin-bottom: 65px;
    padding: 20px 0; /* уменьшен верхний/нижний паддинг, т.к. виджеты имеют свои отступы */
    display: flex;
    flex-direction: column;
    gap: 20px; /* расстояние между виджетами */
     /*position: sticky;*/
    top: 90px;                /* отступ от верха окна */
    align-self: flex-start;   /* важно, если колонка — flex-элемент */
    z-index: 10;              /* чтобы не перекрывалась другими блоками */
    overflow-y: auto;         /* внутренняя прокрутка, если контента больше */
}
}

@media screen and (min-width: 1900px) and (max-width: 2000px) {
    .column-right {
    width: calc(20% - 10px);
    border-radius: 30px;
    margin-top: 20px;
    margin-bottom: 65px;
    padding: 20px 0; /* уменьшен верхний/нижний паддинг, т.к. виджеты имеют свои отступы */
    display: flex;
    flex-direction: column;
    gap: 20px; /* расстояние между виджетами */
     /*position: sticky;*/
    top: 90px;                /* отступ от верха окна */
    align-self: flex-start;   /* важно, если колонка — flex-элемент */
    z-index: 10;              /* чтобы не перекрывалась другими блоками */
    overflow-y: auto;         /* внутренняя прокрутка, если контента больше */
}
}

@media screen and (min-width: 1200px) and (max-width: 1600px) {
    
    .nav-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 15px;
    list-style: none;
    margin-top: 2px;
        margin-bottom: 24px;}
    
    .content-area {
    padding: 40px 15px 15px 15px!important;
}
    
    .responsive-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    margin-right: 10px;
}
    .nopad{display:none;}
    
    .nav-menu li a {padding: 4px 8px;font-size:13px;}
    
     .column-left {
        width: calc(73% - 10px);
    }
    .download-action-col {width: 230px!important;}
    .column-right {
    width: calc(28% - 10px);
    border-radius: 30px;
    margin-top: 20px;
    margin-bottom: 65px;
    padding: 20px 0; /* уменьшен верхний/нижний паддинг, т.к. виджеты имеют свои отступы */
    display: flex;
    flex-direction: column;
    gap: 20px; /* расстояние между виджетами */
     /*position: sticky;*/
    top: 90px;                /* отступ от верха окна */
    align-self: flex-start;   /* важно, если колонка — flex-элемент */
    z-index: 10;              /* чтобы не перекрывалась другими блоками */
    overflow-y: auto;         /* внутренняя прокрутка, если контента больше */
}
}

@media screen and (min-width: 100px) and (max-width: 1200px) {
    
    .search-bar {width:170px}
  .column-right {
    display: none !important;
   
  }
    .column-left {
  /* calc(30% - 10px) учитывает отступ gap, чтобы блоки не переносились раньше времени */
  width: calc(100% - 10px); 

}
    .responsive-container {

    margin-right:0px;
}
    .nopad {display:none;}    
}




/* Общий стиль виджета */
.widget {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden; /* чтобы скруглённые углы работали */
    background-color: #fafbfc;
     box-shadow: 0 3px 10px rgb(0 0 0 / 5%);
}

/* Заголовок виджета (фиксированный, не скроллится) */
.widget-header {
    padding: 20px 10px 0px 10px;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-main);
    flex-shrink: 0; /* заголовок не сжимается */
}

/* Тело виджета — ограниченная высота + внутренняя прокрутка */
.widget-body {
    overflow-y: auto;
    padding: 12px 16px 15px 5px;
    scrollbar-width: thin;
    scrollbar-color: #c4c9d4 transparent;
}


.widget-body2 { padding: 30px;}

/* Корректировка внутренних отступов для карточек внутри виджета */
.widget-body .sidebar-top-games {
    padding: 0; /* убираем дублирующие отступы, т.к. они уже есть у .widget-body */
    margin: 0;
}

/* Адаптив: для мобильных экранов (меньше 768px) */
@media (max-box-width: 768px) or (max-width: 768px) {
  .column-left,
  .column-right {
    width: 100%; /* Обе колонки занимают всю ширину и встают друг под друга */
  }
}



.content-area {
    padding: 35px 55px 55px 55px; 
    flex: 1;
    max-width: 1200px; /* Изменено с 1500px: 1064px контент + 80px боковые padding */
    margin: 0 auto;
    width: 100%;
}

.fs-container,
.recommended-section,
.comments-section {
    max-width: 1200px; /* Изменено с 1140px для точного совпадения с сеткой из 5 постеров */
    margin: 0 auto; 
}
.tags-row {
   display: flex;
   flex-wrap: wrap; 
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 4px 14px 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x proximity;
    position: relative;
   

}
.tags-row::-webkit-scrollbar { display: none; }
.tag-btn {
    background-color: #31863d;
    color: #fff;
    padding: 8px 18px;
    border-radius: 18px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    filter: brightness(1.05);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    scroll-snap-align: start;
    line-height: 1.2;
}
.tag-btn:hover {
    color: #fff;
    filter: brightness(1);
    box-shadow: 0 4px 10px rgba(49, 134, 61, 0.2);
    transform: translateY(-1px);
    background-color: #898989;
}

.carousel-section { margin-bottom: 20px; 
    background-color: #ffffff;
    border-radius: 30px;
    border: 1px solid var(--border);
    overflow: hidden;
padding:10px 40px 0px 40px;
    box-shadow: 0 3px 10px rgb(0 0 0 / 5%);

    border: 2px solid transparent;
    border-radius: 30px;
    background-image: linear-gradient(#fff, #fff), linear-gradient(to right, #31863d, #06b6d4, #06b6d4, #3b82f6, #a855f7);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.carousel-controls { display: flex; gap: 10px; }
.carousel-arrow {
    background-color: #338d40;
    border: 2px solid #31863d;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    filter: brightness(1.05);
    user-select: none;
}
.carousel-arrow:hover {
    background-color: #898989;
     border: 2px solid #898989;
    color: #fff;
    filter: brightness(1);
    transform: translateY(-1px);
}
.carousel-wrapper { position: relative; width: 100%; overflow: hidden; }
.carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 6px 0 5px 0;
    margin: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-card { flex: 0 0 calc((100% - 64px) / 5); min-width: 130px; }

.game-card {
    display: flex;
    flex-direction: column;
    background-color: #eef2f4;
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    border: 1px solid var(--border);
}

.game-card:hover { border-color: var(--accent);  background-color: #ffff; }

.game-card2 {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    border: 1px solid var(--border);
}
.game-card2:hover { border-color: var(--accent); }

.game-poster {
    width: 100%;
    aspect-ratio: 2 / 2.75; /* Изменено с 3 / 4 под формат 200x300 */
    background-color: #e2e8f0;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}
.game-poster-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;

}
.game-card:hover .game-poster-img { transform: scale(1.08); }
.game-card2:hover .game-poster-img { transform: scale(1.08); }

.cat-label {
    position: absolute;
    top: 8px; left: 8px;
    background-color: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: var(--radius);
    text-transform: uppercase;
    z-index: 2;
}
.game-meta {
    position: absolute;
    bottom: 8px; left: 8px; right: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
}
.game-meta span:first-child {
    background-color: #f97316;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 6px;
}
.game-meta span:last-child {
    background-color: #3b82f6;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 6px;
}

.game-info {
    padding: 10px;
    display: flex;
    align-items: center;
    min-height: 52px;
}
.game-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}
.game-card:hover .game-title { color: var(--accent); }

@media screen and (min-width: 1000px) and (max-width: 1800px) {
  .games-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    /* gap: 20px !important; */
  }
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 30px;
     
}



.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    margin: 30px 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.pagination::-webkit-scrollbar { display: none; }

.pagination > a,
.pagination > span:not(.page-btn-arrow) {
    background-color: var(--bg-card);
    color: var(--text-main);
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.2s ease;
   
}
.pagination > a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}
.pagination > span:not(.page-btn-arrow) {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}
.pagination > span.nav_ext {
    background: none;
    border: none;
    box-shadow: none;
    color: var(--text-muted);
    min-width: auto;
    padding: 0 4px;
}

.page-btn-arrow {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background-color: var(--bg-card);
    color: var(--text-main);
    font-size: 16px;
    transition: all 0.2s ease;
}
.page-btn-arrow:empty { display: none; }
.page-btn-arrow a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; height: 100%;
}
.page-btn-arrow:hover {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.maincol {background-color: #ffffff;
    border-radius: 30px;
    border: 1px solid var(--border);
    overflow: hidden;
    padding: 10px 40px 0px 40px;
     box-shadow: 0 3px 10px rgb(0 0 0 / 5%);}

.games-grid .pagination,
.games-grid > .pagination {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.section-title {
    font-size: 22px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    font-weight: 700;
}
.section-title::before {
    content: '';
    display: block;
    width: 4px; height: 24px;
    background-color: var(--accent);
    border-radius: 2px;
}
.recommended-section { margin-bottom: 50px; }

.seo-block {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-top: 40px;
}
.seo-block h2, .seo-block h3 {
    color: var(--text-main);
    margin-bottom: 16px;
    margin-top: 24px;
    font-weight: 700;
}
.seo-block h2:first-child { margin-top: 0; }
.seo-block p {
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 14px;
}

.fs-container {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 50px;
        background-color: #ffffff;
    border-radius: 30px;
    border: 1px solid var(--border);
    overflow: hidden;
    padding:40px;
    box-shadow: 0 3px 10px rgb(0 0 0 / 5%);
}
.fs-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
}
.fs-title::before {
    content: '';
    display: block;
    width: 5px; height: 24px;
    background-color: var(--accent);
    border-radius: 3px;
}
.fs-edit-btn { color: var(--accent); cursor: pointer; font-size: 18px; }

.fs-layout-top { display: flex; gap: 40px; margin-bottom: 20px; }
.fs-poster-cell { width: 240px; text-align: center; padding: 0; }
.fs-poster {
    width: 200px; height: 280px;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
   margin-bottom: 10px;
    margin-top: 10px;
}
.fs-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    color: #ffffff;
    padding: 12px 17px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    gap: 10px;
    white-space: nowrap;
}
.fs-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
   
}
.fs-btn-sm {
    padding: 9px 12px;
    font-size: 15px;
    border-radius: 20px;
    width: 90%;
}
.fs-info-col { flex: 1; }
.fs-info-wrap {
    background-color: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
}
.fs-info-table { width: 100%; border-collapse: collapse; }
.fs-info-table tr { border-bottom: 2px dashed var(--border); }
.fs-info-table tr:last-child { border-bottom: none; }
.fs-info-table th,
.fs-info-table td {
    padding: 5px 15px 5px 0px;
    text-align: left;
    font-size: 15px;
}
.fs-info-table th {
    width: 20%;
    color: var(--text-muted);
    font-weight: 500;
}
.fs-info-table td {
    color: #363636;
    font-weight: 700;
}
.fs-crack { color: #22c55e; }

.fs-text-block {
    color: #1a1a1a;
    line-height: 1.6;
    font-size: 16px;
    margin-bottom: 20px;
}
.fs-text-block h2 {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 30px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.fs-text-block h2::before {
    content: '';
    display: block;
    width: 4px; height: 20px;
    background-color: var(--accent);
    border-radius: 2px;
}


.fs-text-block h3 {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 30px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.fs-text-block h3::before {
    content: '';
    display: block;
    width: 4px; height: 20px;
    background-color: var(--accent);
    border-radius: 2px;
}

.fs-text-block h4 {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 30px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.fs-text-block h4::before {
    content: '';
    display: block;
    width: 4px; height: 20px;
    background-color: var(--accent);
    border-radius: 2px;
}

.systemblock {background-color: #f4f6f8;
border-radius: var(--radius);
border: 2px dash var(--border);
padding:20px;
border-left: 3px solid #31863d;
}

.system-req { list-style: none; padding: 0; margin: 0; }
.system-req li {
    padding: 8px 0;
    font-size: 15px;
        border-bottom: 2px dashed #c4c9d4;
}
.system-req li:last-child { border-bottom: none; }
.system-req b {
    color: var(--text-main);
    margin-right: 8px;
}

.fs-gallery { margin-bottom: 40px; }
.fs-gallery > ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 15px !important;
    clear: both;
}
.fs-gallery > ul li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
}
.fs-gallery img {
    width: 100% !important;
    height: 140px !important;
    object-fit: cover !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-sm) !important;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    border: 0 !important;
    margin: 0 !important;
    float: none !important;
    max-width: none !important;
    padding: 0 !important;
    display: block !important;
}
.fs-gallery img:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15) !important;
}

.fs-video {
    border-radius: var(--radius);
    overflow: hidden;
    background-color: #000;
    margin-top: 12px;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}
.fs-video iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

.download-box {
    background-color: #fff;
    border-radius: 30px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-top: 30px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
    box-shadow: 0 3px 10px rgb(0 0 0 / 5%);
        border: 2px solid transparent;
    border-radius: 30px;
    background-image: linear-gradient(#fff, #fff), linear-gradient(to right, #31863d, #06b6d4, #06b6d4, #3b82f6, #a855f7);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}
.download-box-header {
    background-color: #fff;
    text-align: center;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
}
.download-box-body { display: flex; background-color: #ffffff; }
.download-table-col { flex: 1;}
.download-info-table { width: 100%; border-collapse: collapse; }
.download-info-table tr { border-bottom: 1px solid var(--border); }
.download-info-table tr:last-child { border-bottom: none; }
.download-info-table th,
.download-info-table td {
    padding: 8px 25px;
    font-size: 15px;
    text-align: left;
    vertical-align: middle;
}
.download-info-table th {
    width: 20%;
    color: var(--text-main);
    font-weight: 600;
    border-right: 1px solid var(--border);
}
.download-info-table td {
    color: var(--text-main);
    font-weight: 400;
    word-break: break-all;
}
.status-verified {
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}
.download-action-col {
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background-color: #ffffff;
    text-align: center;
    border-left: 1px solid var(--border);
}
.download-torrent-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    width: 200px;
}
.download-torrent-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}
.download-torrent-file {
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-muted);
    word-break: break-word;
}
.download-torrent-file a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.download-torrent-file a:hover { text-decoration: underline; }

.razmer {
    align-items: flex-start;
    margin-right: auto;
}

.report-link {
    margin-top: 15px;
    color: var(--accent);
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.report-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.full_desc {background-color: #fff;
    border-radius: 30px;
    border: 1px solid var(--border);
    padding: 10px 35px 35px 35px;
font-size:14px;
box-shadow: 0 3px 10px rgb(0 0 0 / 5%);}

.comments-section {
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 3px 10px rgb(0 0 0 / 5%);
}
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}
.comment_item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.comment_item:last-child { border-bottom: none; }

.lastcomments_title {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 4px;
    display: block;
}
.lastcomments_title:hover { text-decoration: underline; }

.comment_header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
        background-color: #ebeef3;
    padding: 10px;
    border-radius: 15px;
}
.comment_avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #e5e7eb;
    flex-shrink: 0;
    border: 1px solid var(--border);
}
.comment_author-info { flex: 1; min-width: 0; }
.comment_login {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.3;
}
.comment_date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.comment_rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background-color: #f3f4f6;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    margin-left: auto;
}
.comment_rating span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.rating-plus { color: #22c55e; }
.rating-minus { color: #dc2626; }

.comment_vote {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    background-color: #f3f4f6;
    color: var(--text-muted);
    transition: all 0.2s ease;
    line-height: 1;
}
.comment_vote i { font-size: 14px; line-height: 1; }
.comment_vote-up:hover {
    background-color: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    transform: translateY(-1px);
}
.comment_vote-down:hover {
    background-color: rgba(220, 38, 38, 0.15);
    color: #dc2626;
    transform: translateY(1px);
}
.comment_vote-up.active { background-color: #22c55e; color: #fff; }
.comment_vote-down.active { background-color: #dc2626; color: #fff; }

.comment_text {
       font-size: 15px;
    line-height: 1.7;
    color: var(--text-main);
    word-wrap: break-word;
    overflow-wrap: anywhere;
   border: 2px solid #e9e9e9;
    padding: 15px;
    border-radius: 15px;
    font-weight: 500;
}
.comment_text a { color: var(--accent); text-decoration: none; }
.comment_text a:hover { text-decoration: underline; }
.comment_text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
}
.comment_text blockquote {
    margin: 12px 0;
    padding: 10px 16px;
    background-color: rgba(49, 134, 61, 0.06);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-muted);
}
.comment_text code,
.comment_text pre {
    background-color: #f3f4f6;
    border-radius: 6px;
    padding: 2px 6px;
    font-family: "Courier New", monospace;
    font-size: 13px;
}

.comment_images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.comment_images img {
    max-width: 120px;
    max-height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}
.comment_images img:hover {
    border-color: var(--accent);
    transform: scale(1.03);
}

.comment_signature {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.85;
    line-height: 1.5;
}

.comment_footer {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.comment_reply { font-size: 13px; font-weight: 500; }
.comment_reply a {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.comment_reply a:hover {
    background-color: rgba(49, 134, 61, 0.1);
    color: var(--accent);
}
.comment_reply a[href*="del"]:hover {
    background-color: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.comment_item .comment_item {
    margin-left: 30px;
    padding-left: 20px;
    border-left: 1px solid var(--border);
    border-bottom: none;
}
.comment_item .comment_item::before {
    content: "";
    position: absolute;
    left: 0; top: 24px;
    width: 20px; height: 2px;
    background-color: var(--border);
}

.comment-form-wrap {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed var(--border);
}
.comment-form-guest {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.comment-form-guest input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    background-color: #f9fafb;
    outline: none;
    transition: border-color 0.2s ease;
}
.comment-form-guest input:focus {
    border-color: var(--accent);
    background-color: #fff;
}
#comment-editor { margin-bottom: 16px; }
.comment-subscribe,
.comment-recaptcha,
.comment-question,
.comment-captcha { margin-bottom: 14px; font-size: 14px; }
.comment-question label,
.comment-captcha label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
}
.comment-question input,
.comment-captcha input {
    width: 100%;
    max-width: 300px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    background-color: #f9fafb;
    outline: none;
    transition: border-color 0.2s ease;
}
.comment-question input:focus,
.comment-captcha input:focus {
    border-color: var(--accent);
    background-color: #fff;
}
.comment-captcha img {
    display: block;
    margin-bottom: 8px;
    border-radius: 8px;
}
.comment-form-submit { margin-top: 16px; }
.comments-image-uploader-area { margin-top: 10px; font-size: 13px; }
.comments-image-uploader-area a { color: var(--accent); text-decoration: none; }
.comments-image-uploader-area a:hover { text-decoration: underline; }

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: calc(var(--sidebar-width) + 20px);
    width: 44px;
    height: 44px;
    background-color: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 95;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover {
    background-color: #898989;
    transform: translateY(-3px);
}

.site-footer {
    width: 100%;
    background-color: var(--bg-sidebar);
    border-top: 1px solid var(--border);
    margin-top: auto;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-main);
    transition: transform 0.2s ease;
    display: inline-block;
}
.footer-logo:hover { transform: translateY(-2px); }
.footer-logo .first-letter { color: #488fe9; }
.footer-logo .last-letters { color: var(--accent); }

.footer-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}
.footer-text a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.footer-text a:hover { text-decoration: underline; }

.footer-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.footer-right a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}
.footer-right a:hover { color: var(--accent); }

.footer-danger { color: #dc2626 !important; }
.footer-danger:hover { color: #b91c1c !important; }

.footer-counters {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 40px;
    background-color: var(--bg-sidebar);
    border-top: 1px solid var(--border);
    gap: 20px;
}
.footer-counters img {
    max-height: 31px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.footer-counters img:hover { opacity: 1; }

/* Мобильная адаптация */
@media (max-width: 768px) {
    .footer-inner {
        padding: 24px 16px;
        gap: 20px;
    }
    .footer-right {
        width: 100%;
        justify-content: flex-start;
        gap: 20px;
    }
}
.login-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.login-modal.show { opacity: 1; visibility: visible; }
.login-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    cursor: pointer;
    transition: opacity 0.3s ease;
}
.login-modal-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.4);
    z-index: 1;
    transform: scale(0.95) translateY(-10px);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.login-modal.show .login-modal-box { transform: scale(1) translateY(0); }
.login-modal-close {
    position: absolute;
    top: 12px; right: 14px;
    width: 32px; height: 32px;
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}
.login-modal-close:hover {
    background-color: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}
.login-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 22px;
    text-align: center;
}
.login-modal-form { display: flex; flex-direction: column; gap: 16px; }
.login-modal-field { display: flex; flex-direction: column; gap: 6px; }
.login-modal-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.login-modal-field input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    background-color: #f9fafb;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.login-modal-field input:focus {
    border-color: var(--accent);
    background-color: #fff;
}
.login-modal-submit {
    width: 100%;
    padding: 13px 20px;
    background-color: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(49, 134, 61, 0.2);
}
.login-modal-submit:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(49, 134, 61, 0.3);
}
.login-modal-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 13px;
}
.login-modal-foot a { color: var(--text-muted); text-decoration: none; transition: color 0.2s ease; }
.login-modal-foot a:hover { color: var(--accent); }

.login-pane {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}
.login-dropdown { position: relative; }
.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.2;
    box-sizing: border-box;
    flex-shrink: 0;
    cursor: pointer;
}
.login-btn-guest {
    background-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 3px 6px rgba(49, 134, 61, 0.2);
}
.login-btn-guest:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    color: #fff;
}
.login-btn-user,
.login-btn-register {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
}
.login-btn-user:hover,
.login-btn-register:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.login-guest {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.login-avatar {
    display: inline-block;
    width: 24px; height: 24px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e5e7eb;
    flex-shrink: 0;
    position: relative;
}
.login-avatar .cover {
    display: block;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    text-indent: -9999px;
}
.login-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.login-badge {
    background-color: #dc2626;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    line-height: 1;
}
.login-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 260px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.25);
    padding: 18px;
    display: none;
    z-index: 9999;
    animation: loginFadeIn 0.2s ease;
}
.login-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -20px; left: -10px; right: -10px;
    height: 20px;
    background: transparent;
    pointer-events: auto;
    z-index: -1;
}
.login-dropdown:hover .login-dropdown-menu,
.login-dropdown.open .login-dropdown-menu { display: block; }

@keyframes loginFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-user-info {
    text-align: center;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.login-user-avatar {
    display: inline-block;
    width: 60px; height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e5e7eb;
    margin-bottom: 8px;
    position: relative;
}
.login-user-avatar .cover {
    display: block;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    text-indent: -9999px;
}
.login-admin-link {
    display: inline-block;
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.login-admin-link:hover { text-decoration: underline; }
.login-user-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 14px 0;
}
.login-user-menu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s ease;
}
.login-user-menu li:last-child a { border-bottom: none; }
.login-user-menu li a:hover { color: var(--accent); }
.login-menu-count {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}
.login-user-foot {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.login-logout {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.login-logout:hover { text-decoration: underline; }
.login-dropdown-form {
    min-width: 300px;
    padding: 22px;
}
.login-form-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.login-form-list li { display: flex; flex-direction: column; gap: 5px; }
.login-form-list label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.login-form-list input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background-color: #f9fafb;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.login-form-list input:focus {
    border-color: var(--accent);
    background-color: #ffffff;
}
.login-submit-btn {
    width: 100%;
    padding: 11px 18px;
    background-color: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 6px rgba(49, 134, 61, 0.2);
}
.login-submit-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(49, 134, 61, 0.3);
}
.login-form-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    font-size: 13px;
}
.login-form-foot a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.login-form-foot a:hover { color: var(--accent); }
.login-social-divider {
    text-align: center;
    margin: 16px 0 12px 0;
    font-size: 12px;
    color: var(--text-muted);
    position: relative;
}
.login-social-divider::before,
.login-social-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 60px);
    height: 1px;
    background-color: var(--border);
}
.login-social-divider::before { left: 0; }
.login-social-divider::after { right: 0; }
.login-socials {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.login-soc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background-color: #f3f4f6;
    color: var(--text-main);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.login-soc:hover { transform: translateY(-2px); color: #ffffff; }
.login-soc-vk:hover { background-color: #5486ca; }
.login-soc-ya:hover { background-color: #ff0000; }
.login-soc-fb:hover { background-color: #4268ca; }
.login-soc-gp:hover { background-color: #de553a; }
.login-soc-od:hover { background-color: #ff7800; }
.login-soc-mail:hover { background-color: #006cff; }

.auth-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
}
.auth-card {
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 36px;
    box-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.1);
}
.auth-card-wide { max-width: 560px; }
.auth-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 10px 0;
    text-align: center;
}
.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.6;
}
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    background-color: #f9fafb;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.auth-field input:focus {
    border-color: var(--accent);
    background-color: #ffffff;
}
.auth-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    background-color: #f9fafb;
    color: var(--text-main);
    outline: none;
    resize: vertical;
    min-height: 110px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.auth-field textarea:focus {
    border-color: var(--accent);
    background-color: #fff;
}
.auth-field input[type="file"] {
    padding: 10px;
    background-color: #f9fafb;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    width: 100%;
}
.auth-login-check { display: flex; gap: 8px; }
.auth-login-check input { flex: 1; }
.auth-check-btn {
    padding: 11px 18px;
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.auth-check-btn:hover { background-color: var(--accent); color: #fff; }
.auth-result {
    font-size: 13px;
    margin-top: 4px;
    min-height: 18px;
}
.auth-result.ok { color: #22c55e; }
.auth-result.fail { color: #dc2626; }
.auth-captcha img {
    display: block;
    margin-bottom: 8px;
    border-radius: 8px;
}
.auth-captcha { margin-top: 8px; }
.auth-submit { margin-top: 6px; }
.auth-btn {
    width: 100%;
    padding: 14px 22px;
    background-color: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(49, 134, 61, 0.2);
}
.auth-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(49, 134, 61, 0.3);
}
.auth-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    gap: 12px;
}
.auth-foot a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}
.auth-foot a:hover { color: var(--accent); }
.auth-xfields { padding-top: 6px; }
.auth-xfields table { width: 100%; border-collapse: collapse; }
.auth-xfields .xfieldsrow { padding: 8px 0; }
.auth-xfields .xfieldscolleft {
    font-weight: 600;
    color: var(--text-main);
    font-size: 13px;
    margin-bottom: 4px;
}
.auth-xfields input[type="text"],
.auth-xfields textarea,
.auth-xfields select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    background-color: #f9fafb;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s ease;
}
.auth-xfields input:focus,
.auth-xfields textarea:focus {
    border-color: var(--accent);
    background-color: #fff;
}

.attachment-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin: 16px 0;
    transition: border-color 0.2s ease;
}
.attachment-box:hover { border-color: var(--accent); }
.attachment-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    background-color: rgba(49, 134, 61, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.attachment-body { flex: 1; min-width: 0; }
.attachment-link {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-all;
}
.attachment-link:hover { color: var(--accent); }
.attachment-meta {
    display: flex;
    gap: 16px;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}
.attachment-online {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
}
.attachment-online:hover { text-decoration: underline; }
.attachment-denied {
    border-color: #fca5a5;
    background-color: #fef2f2;
}
.attachment-denied .attachment-icon {
    background-color: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}
.attachment-denied .attachment-body {
    color: #991b1b;
    font-size: 14px;
    align-self: center;
}

.pm-page { max-width: 1000px; }
.pm-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}
.pm-menu {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.pm-menu-item {
    padding: 8px 16px;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    background-color: #f3f4f6;
    transition: all 0.2s ease;
}
.pm-menu-item:hover { background-color: var(--accent); color: #fff; }
.pm-status { padding-top: 16px; border-top: 1px solid var(--border); }
.pm-progress {
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}
.pm-progress > * {
    display: block;
    height: 100%;
    background-color: var(--accent);
    border-radius: 4px;
    transition: width 0.3s ease;
}
.pm-status-text { font-size: 13px; color: var(--text-muted); }
.pmlist {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}
.pm-new {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
}
.pm-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
}
.pm-form { display: flex; flex-direction: column; gap: 18px; }
.pm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pm-field { display: flex; flex-direction: column; gap: 6px; }
.pm-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pm-field input[type="text"] {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    background-color: #f9fafb;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.pm-field input:focus {
    border-color: var(--accent);
    background-color: #fff;
}
.pm-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}
.pm-captcha img { display: block; margin-bottom: 8px; border-radius: 8px; }
.pm-submit { display: flex; gap: 12px; margin-top: 6px; }
.pm-btn-preview {
    padding: 14px 22px;
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.pm-btn-preview:hover { background-color: var(--accent); color: #fff; }
.pm-read {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.pm-read-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    background-color: #f9fafb;
}
.pm-read-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e5e7eb;
    flex-shrink: 0;
    position: relative;
}
.pm-read-avatar .cover {
    display: block;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    text-indent: -9999px;
}
.pm-online {
    position: absolute;
    right: 0; bottom: 0;
    width: 12px; height: 12px;
    border-radius: 50%;
    background-color: #22c55e;
    border: 1px solid var(--bg-card);
}
.pm-read-info { flex: 1; min-width: 0; }
.pm-read-author { font-weight: 700; color: var(--text-main); font-size: 15px; }
.pm-read-date { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.pm-read-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pm-action-btn {
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}
.pm-action-btn:hover {
    background-color: rgba(49, 134, 61, 0.1);
    color: var(--accent);
}
.pm-action-del:hover {
    background-color: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}
.pm-read-body { padding: 22px; }
.pm-read-subject {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 14px;
}
.pm-read-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-main);
    word-wrap: break-word;
}
.pm-read-signature {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.8;
}

.related-news-block { margin: 30px 0; }
.related-news-block .section-title { margin-bottom: 20px; }
.related-news {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.related-news-item { margin: 0; }
.related-news-card { height: 100%; }
.related-news-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.related-news-card .game-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3; /* Изменено с 3 / 4 под формат 200x300 */
    background-color: #e2e8f0;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
}
.related-news-card .game-poster-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}
.related-news-card:hover .game-poster-img { transform: scale(1.08); }
.related-news-card .cat-label { z-index: 2; }
.related-news-card .game-info {
    padding: 10px;
    display: flex;
    align-items: center;
    min-height: 52px;
    background-color: var(--bg-card);
    border-radius: 0 0 var(--radius) var(--radius);
}
.related-news-card .game-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}
.related-news-card:hover .game-title { color: var(--accent); }

.search-page { max-width: 900px; }
.search-form-wrap {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}
.search-form-row { display: flex; gap: 10px; }
.search-form-row input[type="text"],
.search-form-row input[type="search"] {
    flex: 1;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    background-color: #f9fafb;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.search-form-row input:focus {
    border-color: var(--accent);
    background-color: #fff;
}
.search-submit {
    padding: 12px 26px;
    background-color: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(49, 134, 61, 0.2);
}
.search-submit:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}
.search-form-advanced { margin-top: 12px; text-align: right; }
.search-form-advanced a {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.search-form-advanced a:hover { text-decoration: underline; }
.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}
.search-block { display: flex; flex-direction: column; }
.search-block-full { grid-column: 1 / -1; }
.search-block-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.search-block-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}
.search-block-body label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}
.search-block-body input[type="text"],
.search-block-body select,
.search-block-body textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    background-color: #f9fafb;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s ease;
}
.search-block-body input:focus,
.search-block-body select:focus {
    border-color: var(--accent);
    background-color: #fff;
}
.search-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
}
.search-inline { font-size: 13px; color: var(--text-muted); }
.search-block-inner { margin-top: 6px; }
.search-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.search-btn-reset {
    padding: 12px 22px;
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.search-btn-reset:hover { background-color: var(--accent); color: #fff; }
.search-result-msg {
    padding: 14px 18px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-muted);
}
.search-result {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 14px;
    transition: border-color 0.2s ease;
}
.search-result:hover { border-color: var(--accent); }
.search-result .title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.search-result .title a { color: var(--text-main); text-decoration: none; }
.search-result .title a:hover { color: var(--accent); }
.search-result .text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}
.search-result-comment {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    gap: 14px;
    transition: border-color 0.2s ease;
}
.search-result-comment:hover { border-color: var(--accent); }
.search-result-comment .comment-avatar {
    background-color: rgba(49, 134, 61, 0.1);
    color: var(--accent);
    width: 40px; height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-result-comment .comment-body { flex: 1; min-width: 0; }
.search-result-comment .comment-news-title {
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    word-break: break-word;
}
.search-result-comment .comment-news-title:hover { text-decoration: underline; }
.search-result-comment .comment-text {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.static-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}
.static-page .section-title { margin-bottom: 30px; }
.static-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px 15px;
    margin-bottom: 40px;
}
.static-page .games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 50px;
}
.static-content {
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    margin-top: 40px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-main);
    box-shadow: 0 3px 10px rgb(0 0 0 / 5%);
}
.static-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 36px 0 16px;
    color: var(--text-main);
}
.static-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 30px 0 14px;
    color: var(--text-main);
}
.static-content h2:first-child,
.static-content h3:first-child { margin-top: 0; }
.static-content p {
    margin-bottom: 16px;
    color: var(--text-muted);
    line-height: 1.8;
}
.static-content b { color: var(--text-main); font-weight: 700; }
.static-content blockquote {
    padding: 20px 24px;
    margin: 24px 0;
    background-color: rgba(49, 134, 61, 0.06);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.7;
}
.static-content ul.checklist {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.static-content ul.checklist li {
    padding: 14px 18px 14px 52px;
    background-color: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 8px;
    position: relative;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    transition: all 0.2s ease;
}
.static-content ul.checklist li:hover {
    background-color: #fff;
    border-color: var(--accent);
    transform: translateX(4px);
}
.static-content ul.checklist li::before {
    content: "✓";
    position: absolute;
    left: 18px; top: 14px;
    width: 20px; height: 20px;
    background-color: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}
.static-content ul.checklist li b {
    color: var(--text-main);
    display: block;
    margin-bottom: 4px;
}

.tagscloud-page { max-width: 1000px; }
.tagscloud-wrap {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
}
.tagscloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    line-height: 1.8;
}
.tagscloud a {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background-color: #f3f4f6;
    color: var(--text-main);
    border: 2px solid transparent;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}
.tagscloud a:hover {
    background-color: #ffffff;
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(49, 134, 61, 0.2);
}

.user-profile {
    max-width: 1000px;
    margin: 0 auto;
}
.user-profile-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.user-profile-header::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(to right, var(--accent), #06b6d4);
}
.user-profile-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e5e7eb;
    flex-shrink: 0;
    position: relative;
    border: 3px solid var(--border);
}
.user-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-profile-online {
    position: absolute;
    right: 2px; bottom: 2px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background-color: #22c55e;
    border: 3px solid var(--bg-card);
}
.user-profile-head-info { flex: 1; min-width: 0; }
.user-profile-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 6px 0;
}
.user-profile-status { font-size: 13px; }
.user-status-online { color: #22c55e; font-weight: 600; }
.user-status-offline { color: var(--text-muted); font-weight: 600; }
.user-status-guest { color: var(--text-muted); }

.user-profile-actions { display: flex; align-items: center; gap: 10px; }
.user-profile-pm a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: var(--accent);
    color: #fff;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: 0 3px 6px rgba(49, 134, 61, 0.2);
}
.user-profile-pm a:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.user-profile-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    background-color: #f3f4f6;
    padding: 6px;
    border-radius: var(--radius);
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.user-profile-tabs::-webkit-scrollbar { display: none; }
.user-tab-btn {
    padding: 9px 20px;
    background-color: transparent;
    color: var(--text-muted);
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.user-tab-btn:hover { color: var(--text-main); }
.user-tab-btn.active {
    background-color: var(--bg-card);
    color: var(--accent);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.user-profile-body {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}
.user-tab-pane { display: none; }
.user-tab-pane.active { display: block; }

.user-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}
.user-profile-block {
    background-color: #f9fafb;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
}
.user-profile-block-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.user-info-list { list-style: none; padding: 0; margin: 0; }
.user-info-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}
.user-info-list li:last-child { border-bottom: none; }
.user-info-list span { color: var(--text-muted); flex-shrink: 0; }
.user-info-list b {
    color: var(--text-main);
    font-weight: 700;
    text-align: right;
    word-break: break-word;
}
.user-info-list a { color: var(--accent); text-decoration: none; }
.user-info-list a:hover { text-decoration: underline; }

.user-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.ratingplus { color: #22c55e; font-weight: 700; }
.ratingminus { color: #dc2626; font-weight: 700; }

.user-profile-about { margin-top: 20px; }
.user-profile-about-text {
    padding: 16px 20px;
    background-color: #f9fafb;
    border-radius: var(--radius);
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-main);
    word-wrap: break-word;
    min-height: 60px;
}

.user-settings-form { display: flex; flex-direction: column; gap: 20px; }
.user-settings-section {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 10px 0 0 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.user-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.user-settings-field { display: flex; flex-direction: column; gap: 6px; }
.user-settings-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}
.user-settings-field input[type="text"],
.user-settings-field input[type="email"],
.user-settings-field input[type="password"],
.user-settings-field textarea,
.user-settings-field select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    background-color: #f9fafb;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}
.user-settings-field input:focus,
.user-settings-field textarea:focus,
.user-settings-field select:focus {
    border-color: var(--accent);
    background-color: #fff;
}
.user-settings-field textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}
.user-settings-field input[type="file"] {
    padding: 10px;
    background-color: #f9fafb;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    width: 100%;
}
.user-settings-checkbox,
.user-settings-checkbox-wrap label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    margin-top: 6px;
}
.user-settings-checkbox-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.user-settings-xfields { display: flex; flex-direction: column; gap: 16px; }
.user-settings-xfields input[type="text"],
.user-settings-xfields textarea,
.user-settings-xfields select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    background-color: #f9fafb;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}
.user-settings-xfields input:focus,
.user-settings-xfields textarea:focus {
    border-color: var(--accent);
    background-color: #fff;
}
.user-settings-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.user-soc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    background-color: #f3f4f6;
    color: var(--text-main);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.user-soc:hover { transform: translateY(-2px); color: #fff; }
.user-soc-vk:hover { background-color: #5486ca; }
.user-soc-ya:hover { background-color: #ff0000; }
.user-soc-fb:hover { background-color: #4268ca; }
.user-soc-gp:hover { background-color: #de553a; }
.user-soc-od:hover { background-color: #ff7800; }
.user-soc-mail:hover { background-color: #006cff; }
.user-settings-submit {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    margin-top: 10px;
}
.user-delete-btn {
    color: #dc2626;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}
.user-delete-btn:hover { text-decoration: underline; }

.content-area > .game-card {
    display: inline-block;
    width: calc((100% - 80px) / 6);
    margin: 0 8px 16px 0;
    vertical-align: top;
}
.content-area > .game-card:nth-child(6n) { margin-right: 0; }

.speedbar {
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.speedbar a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.speedbar a:hover {
    color: var(--accent);
    text-decoration: underline;
}
.speedbar .current,
.speedbar b,
.speedbar strong {
    color: var(--text-main);
    font-weight: 600;
}
.speedbar .sep {
    color: var(--text-muted);
    opacity: 0.5;
    margin: 0 4px;
}

#searchsuggestions {
    z-index: 2200;
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    margin-top: 6px;
    font-size: 14px;
}
#searchsuggestions .search-suggestion {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s ease;
}
#searchsuggestions .search-suggestion:last-child { border-bottom: none; }
#searchsuggestions .search-suggestion:hover {
    background-color: rgba(49, 134, 61, 0.06);
}
#searchsuggestions .search-suggestion-poster {
    width: 60px; height: 80px;
    background-color: #e2e8f0;
    border-radius: 10px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
#searchsuggestions .search-suggestion-poster .side-game-poster-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}
#searchsuggestions .search-suggestion:hover .side-game-poster-img {
    transform: scale(1.08);
}
#searchsuggestions .search-suggestion-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
#searchsuggestions .search-suggestion-title {
    display: block;
    font-weight: 700;
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.3;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
#searchsuggestions .search-suggestion:hover .search-suggestion-title {
    color: var(--accent);
}
#searchsuggestions .search-suggestion-text {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
#searchsuggestions .extra-field {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
    display: block;
}

@media (min-width: 2560px) {
    :root { --sidebar-width: 360px; }
    .content-area { max-width: 2100px; padding: 60px 80px; }
    .fs-container, .recommended-section, .comments-section { max-width: 1700px; }
    .games-grid { grid-template-columns: repeat(8, 1fr); gap: 20px; }
    .carousel-card { flex: 0 0 calc((100% - 140px) / 8); }
    .logo { font-size: 26px; }
    .sidebar-header, .header-top-row { height: 85px; padding: 0 50px; }
    .search-bar { width: 450px; }
    .search-bar input { font-size: 16px; padding: 12px 50px 12px 18px; }
    .header-links a, .site-footer { font-size: 16px; }
    .fs-title, .section-title { font-size: 30px; }
    .fs-info-table th, .fs-info-table td,
    .download-info-table th, .download-info-table td,
    .fs-text-block, .comment-text, .comment-textarea { font-size: 17px; }
    .fs-poster { width: 260px; height: 390px; }
    .fs-poster-cell { width: 300px; }
    .fs-btn { font-size: 18px; padding: 16px 28px; }
}

@media (min-width: 3840px) {
    :root { --sidebar-width: 440px; }
    .content-area { max-width: 3200px; padding: 80px 120px; }
    .fs-container, .recommended-section, .comments-section { max-width: 2500px; }
    .games-grid { grid-template-columns: repeat(10, 1fr); gap: 24px; }
    .carousel-card { flex: 0 0 calc((100% - 216px) / 10); }
    .logo { font-size: 32px; }
    .sidebar-header, .header-top-row { height: 110px; padding: 0 70px; }
    .search-bar { width: 600px; }
    .search-bar input { font-size: 20px; padding: 16px 60px 16px 24px; }
    .header-links a, .site-footer { font-size: 20px; }
    .fs-title, .section-title { font-size: 38px; }
    .fs-info-table th, .fs-info-table td,
    .download-info-table th, .download-info-table td,
    .fs-text-block, .comment-text, .comment-textarea { font-size: 22px; }
    .fs-poster { width: 340px; height: 510px; }
    .fs-poster-cell { width: 400px; }
    .fs-btn { font-size: 22px; padding: 20px 36px; }
}

@media (max-width: 1400px) {
    .carousel-card { flex: 0 0 calc((100% - 80px) / 5); }
    .games-grid { grid-template-columns: repeat(5, 1fr); }
    .static-page .games-grid { grid-template-columns: repeat(5, 1fr); }
    .content-area > .game-card { width: calc((100% - 64px) / 5); }
    
  
}

@media (max-width: 1200px) {
    .carousel-card { flex: 0 0 calc((100% - 64px) / 5); }
    .games-grid { grid-template-columns: repeat(4, 1fr); }
    .fs-container, .recommended-section, .comments-section { width: 100%; }
    .related-news { grid-template-columns: repeat(4, 1fr); }
    .static-page .games-grid { grid-template-columns: repeat(5, 1fr); }
    .static-content { padding: 30px; }
    .content-area > .game-card { width: calc((100% - 48px) / 4); }
}

@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.active { transform: translateX(0); box-shadow: 0 5px 15px rgb(0 0 0 / 13%);}
    .sidebar-header { justify-content: space-between; }
    .close-sidebar { display: block; }

    .main-content { margin-left: 0; width: 100%; }

    .top-header::after {
        background: linear-gradient(to right, var(--accent), #06b6d4, #3b82f6, #a855f7);
    }
    .header-top-row {
        height: auto;
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "menu logo right"
            "search search search";
        padding: 0;
        align-items: center;
    }
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        grid-area: menu;
        padding: 15px 10px 15px 20px;
    }
    .mobile-logo {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 15px 10px;
        grid-area: logo;
    }
    .header-links { display: none; }
    .header-right {
        padding: 15px 20px;
        margin-left: auto;
        gap: 15px;
        grid-area: right;
    }
    .search-container {
        width: 100%;
        padding: 12px 20px 20px;
        border-top: 1px solid var(--border);
        background-color: var(--bg-sidebar);
        grid-area: search;
        background: linear-gradient(to right, #06b6d4, #3b82f6, #a855f7);
    }
    .search-bar { width: 100%; }

    .content-area { padding: 20px; }
    .tags-row { display: none; }
    .site-footer { padding: 0; }
    .carousel-card { flex: 0 0 calc((100% - 32px) / 3); }
    .games-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }

    .back-to-top { left: 20px; bottom: 20px; }

    .fs-container, .recommended-section, .comments-section { max-width: 100%; }
    .related-news { grid-template-columns: repeat(3, 1fr); }
    .stats-summary { grid-template-columns: 1fr; }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 30px 20px;
    }
    .footer-right {
        grid-column: 1 / -1;
        align-items: flex-start;
        flex-direction: row;
        gap: 20px;
    }

    .static-page .games-grid { grid-template-columns: repeat(4, 1fr); }
    .static-content h2 { font-size: 22px; }
    .static-content h3 { font-size: 18px; }

    .login-guest { gap: 6px; }
    .login-btn { padding: 6px 12px; font-size: 13px; }

    .comment-avatar { width: 38px; height: 38px; font-size: 14px; }

    .content-area > .game-card { width: calc((100% - 32px) / 3); }
}

@media (max-width: 768px) {
    .fs-layout-top { flex-direction: column; align-items: center; }
    .fs-info-col { width: 100%; }
    .fs-title { text-align: center; justify-content: center; }
    .fs-gallery > ul { grid-template-columns: repeat(2, 1fr) !important; }

    .fs-info-table, .fs-info-table tbody { display: block; width: 100%; }
    .fs-info-table tr { display: flex; flex-wrap: wrap; }
    .fs-poster-cell {
        width: 100% !important;
        border-right: none;
        border-bottom: 1px dashed var(--border);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px 0 !important;
    }
    .fs-poster-cell .fs-btn { width: 60% !important; margin: 0 auto; }
    .fs-info-table th { width: 40%; }
    .fs-info-table td:not(.fs-poster-cell) { width: 60%; }

    .download-box { width: 100%; }
    .download-box-body { flex-direction: column; }
    .download-table-col { border-right: none; border-bottom: 1px solid var(--border); }
    .download-action-col { width: 100%; }

    .games-grid { grid-template-columns: repeat(2, 1fr); }

    .static-page .games-grid { grid-template-columns: repeat(3, 1fr); }
    .static-content { padding: 24px 20px; font-size: 14px; }
    .static-content h2 { font-size: 20px; margin: 28px 0 14px; }
    .static-content h3 { font-size: 17px; margin: 24px 0 12px; }
    .static-content blockquote { padding: 16px 18px; font-size: 14px; }
    .static-content ul.checklist li { padding: 12px 14px 12px 44px; }
    .static-content ul.checklist li::before { left: 14px; top: 12px; }

    .login-guest { gap: 6px; }
    .login-btn { padding: 6px 10px; font-size: 12px; }
}

@media (max-width: 640px) {
    .download-action-col {  border-left: 0px solid var(--border);       
}
    .carousel-arrow {width: 30px; height: 30px;}
}

@media (max-width: 576px) {
    .carousel-card { flex: 0 0 calc((100% - 16px) / 2); }
    .games-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .carousel-track { gap: 12px; }
    .nav-menu li a { font-size: 13px; padding: 8px 6px; }
    .game-info { padding: 10px; min-height: 50px; }
    .game-title { font-size: 13px; }

    .site-footer { flex-direction: column; align-items: flex-start; gap: 12px; }

    .fs-info-table th { width: 45%; }
    .fs-info-table td:not(.fs-poster-cell) { width: 55%; }
    .fs-gallery > ul { grid-template-columns: 1fr !important; }
    .fs-gallery img { height: auto !important; aspect-ratio: 16/9; }

    

    .comment-avatar { width: 36px; height: 36px; font-size: 14px; }
    .comment-actions { flex-direction: column; align-items: flex-start; }
    .comment-form-guest { grid-template-columns: 1fr; }

    .feedback-section { padding: 20px; }
    .feedback-row { grid-template-columns: 1fr; }

    .login-name { display: none; }
    .login-dropdown-menu {
        position: fixed;
        left: 10px;
        right: 10px;
        top: auto;
        min-width: 0;
        width: auto;
    }
    .login-guest { gap: 4px; }
    .login-btn { padding: 5px 8px; font-size: 11px; }

    .auth-card { padding: 28px 22px; }
    .auth-title { font-size: 22px; }
    .auth-foot { flex-direction: column; align-items: flex-start; }
    .auth-row { grid-template-columns: 1fr; }
    .auth-login-check { flex-direction: column; }
    .auth-check-btn { width: 100%; }

    .pm-row { grid-template-columns: 1fr; }
    .pm-read-header { flex-wrap: wrap; }
    .pm-read-actions { width: 100%; justify-content: flex-start; }

    .related-news { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .search-form-row { flex-direction: column; }
    .search-submit { width: 100%; }
    .search-actions { flex-direction: column; }
    .search-actions button { width: 100%; }

    .static-content { padding: 20px 16px; }
    .static-page .games-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .static-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

    .tagscloud-wrap { padding: 20px; }
    .tagscloud a { padding: 6px 14px; font-size: 13px; }

    .user-profile-header { flex-direction: column; align-items: flex-start; }
    .user-profile-tabs { width: 100%; }
    .user-tab-btn { flex: 1; text-align: center; }
    .user-settings-submit { flex-direction: column; align-items: stretch; }
    .user-settings-submit .fs-btn { width: 100%; }
    .user-delete-btn { text-align: center; padding: 10px 0; }

    .stats-table-wrap { overflow-x: auto; }
    .stats-table { min-width: 500px; }

    .footer-inner { grid-template-columns: 1fr; gap: 24px; padding: 24px 16px; }
    .footer-center { grid-template-columns: 1fr; gap: 20px; }
    .footer-right { flex-direction: column; gap: 10px; }
    .footer-logo { font-size: 20px; }

    .login-modal-box { padding: 24px 20px; }
    .login-modal-title { font-size: 20px; }

    .content-area > .game-card { width: calc((100% - 12px) / 2); }
    .content-area > .game-card:nth-child(2n) { margin-right: 0; }

    .speedbar {
        margin-bottom: 14px;
        font-size: 12px;
        gap: 4px;
    }

    #searchsuggestions { max-width: 100%; }
    #searchsuggestions .search-suggestion { padding: 10px 12px; gap: 10px; }
    #searchsuggestions .search-suggestion-poster { width: 50px; height: 66px; }
    #searchsuggestions .search-suggestion-title { font-size: 13px; }
    #searchsuggestions .search-suggestion-text { font-size: 11px; -webkit-line-clamp: 1; }

    .search-result-comment { padding: 12px 14px; gap: 10px; border-radius: 12px; }
    .search-result-comment .comment-avatar { width: 32px; height: 32px; }
    .search-result-comment .comment-avatar svg { width: 16px; height: 16px; }
    .search-result-comment .comment-news-title { font-size: 13px; }
    .search-result-comment .comment-text { font-size: 13px; }
}

@media (max-width: 400px) {
    .mobile-logo { padding: 12px 10px; font-size: 19px; }
    .menu-toggle { padding: 12px 5px 12px 15px; }
    .header-right { padding: 12px 15px; gap: 10px; }

    .section-title { font-size: 17px; gap: 8px; }
    .section-title::before { height: 18px; }

    .carousel-card { flex: 0 0 calc((100% - 10px) / 2); min-width: 0; }
    .carousel-track { gap: 10px; }
    .cat-label { font-size: 10px; padding: 2px 5px; }

    .fs-poster-cell .fs-btn { width: 70% !important; }

    .login-btn { padding: 5px 6px; font-size: 10px; }
    .login-btn-register { border-width: 1px; }
}

@media (max-width: 400px) {
    .section-title {font-size: 18px;}
    .fs-title {font-size: 18px;}
}



/* ===== Обратная связь ===== */
.feedback-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.feedback-section .section-title {
    margin-bottom: 12px;
}

.feedback-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 28px;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feedback-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feedback-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feedback-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feedback-field label .imp {
    color: #dc2626;
    margin-left: 2px;
}

.feedback-field input[type="text"],
.feedback-field input[type="email"],
.feedback-field textarea,
.feedback-field select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    background-color: #f9fafb;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

.feedback-field input[type="text"]:focus,
.feedback-field input[type="email"]:focus,
.feedback-field textarea:focus,
.feedback-field select:focus {
    border-color: var(--accent);
    background-color: #ffffff;
}

.feedback-field textarea {
    resize: vertical;
    min-height: 160px;
    line-height: 1.6;
}

.feedback-field input[type="file"] {
    padding: 10px;
    background-color: #f9fafb;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    transition: border-color 0.2s ease;
}

.feedback-field input[type="file"]:hover {
    border-color: var(--accent);
}

.feedback-captcha img {
    display: block;
    margin-bottom: 8px;
    border-radius: 8px;
}

.feedback-submit {
    margin-top: 10px;
    display: flex;
    justify-content: flex-start;
}

.feedback-submit .fs-btn {
    width: auto;
    min-width: 220px;
}

/* Мобильная адаптация */
@media (max-width: 576px) {
    .feedback-section {
        padding: 24px 20px;
    }
    .feedback-row {
        grid-template-columns: 1fr;
    }
    .feedback-submit .fs-btn {
        width: 100%;
        min-width: 0;
    }
}