.custom-tabs {list-style: none; padding-left: 0; display: flex; flex-wrap: wrap; gap: 10px;}
.nav-tab-btn {display: flex; align-items: center; width: 100%; gap: 10px; padding: 10px 20px; border: none; 
    border-radius: 50px; background: rgba(255, 255, 255, 0.1); color: #fff; cursor: pointer; 
    transition: all 0.3s ease; text-decoration: none; justify-content: center;}

#tab-all::before {content: ""; display: inline-block; width: 18px; height: 18px; margin-right: -5px;
    background-repeat: no-repeat; background-size: contain; background-position: center; vertical-align: middle;}

.nav-tab-btn[data-bs-target="#pane-all"]::before {background-image: url("../icons/list.svg");}
/*
#tab-1::before {background-image: url("../icons/icon-play.svg");}
*/
.nav-tab-btn:hover {background: rgba(255, 255, 255, 0.2);}
.nav-tab-btn.active {background: var(--color--red); }
.tab-count {font-size: 0.85rem; font-weight: bold;}
.nav-tab-btn.active .tab-count {}

.tab-pane { display: none; }
.tab-pane.active.show { display: block !important;}
.page-header h1 { transition: opacity 0.2s ease;}
.release-empty-list {text-align: center; width: 100%;}

/* --- Стили секции --- */
.sect:not(:last-child) {margin-bottom: 55px;}
.sect__header {margin-bottom: 20px;}
.sect__title {font-size: 25px; font-weight: 600;}

/* --- Полоска прогресса --- */
/* background: #333 — это и есть твоя заглушка, которая видна, когда процентов 0 */
.stats__bar {height: 30px; border-radius: 4px; margin-bottom: 10px; overflow: hidden; display: flex; background: #333;}
.stats__bar-progress {height: 100%; background-color: var(--clr); transition: width 0.3s ease;}

.stats__legend {display: grid; gap: 6px 10px; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); list-style: none; padding: 0;}
.stats__legend-item {position: relative; padding-left: 28px; --clr: #555; white-space: nowrap; display: flex; align-items: center;}
.stats__legend-item span {color: #fff; font-weight: 600; margin-left: 5px;}
.stats__legend-item span + span {color: #fff; font-weight: 400; margin-left: 6px; font-size: 12px;}
.stats__legend-item::before {content: ''; width: 18px; height: 18px; border-radius: 4px; background: var(--clr); position: absolute; left: 0; top: 50%; transform: translateY(-50%);}

/* --- Цвета по ID --- */
[data-type="1"] { --clr: #57bb8a; } /* Смотрю */
[data-type="2"] { --clr: #aed787; } /* В планах */
[data-type="3"] { --clr: #ffd834; } /* Просмотрено */
[data-type="4"] { --clr: #ffb234; } /* Отложено */
[data-type="5"] { --clr: #ff8b5a; } /* Брошено */

/* --- Настройки для "Всего" --- */
.stats__legend-item[data-type="all"] {padding-left: 0; --clr: transparent;}
.stats__legend-item[data-type="all"]::before {display: none;}


/* --- Галерея картинок --- */
.stats-gallery {display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr) 300px;}       
.sect__content.stats {width: 100%;}               
.scr-title {font-size: 25px; font-weight: 600;}
.screenshots-grid {display: flex; flex-direction: row; gap: 10px; width: 100%;}
.screenshots-grid a {display: block; flex: 1; aspect-ratio: 16 / 16; border-radius: 6px; border: 2px solid rgba(255, 255, 255, 0.3);
    overflow: hidden; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); filter: brightness(0.7); transition: filter 0.2s ease, border-color 0.2s ease;}
.screenshots-grid img {width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s ease;}
.screenshots-grid a:hover {filter: brightness(1); border-color: #ffffff;}
.screenshots-grid a:hover img {transform: scale(1.05);}
    
@media screen and (max-width: 760px) {
    .stats-gallery {display: block;} 
    .screenshots-grid a {height: 100px;}
}
