/* Тріумфи мисливців: запись ленты, выдвижная панель и блок в досье */
:root {
    --tr-game: #7fa7c4;
    --tr-site: #cc241d;
    --tr-epic: #f2c14e;
}

body.no-scroll {
    overflow: hidden;
}

/* ---------- Запись ---------- */
.tr-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text-muted);
}

.tr-ico {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: var(--tr-game);
    background: rgba(127, 167, 196, 0.1);
    border: 1px solid rgba(127, 167, 196, 0.35);
}

.tr-item--site .tr-ico {
    color: var(--tr-site);
    background: rgba(204, 36, 29, 0.1);
    border-color: rgba(204, 36, 29, 0.4);
}

.tr-item.is-epic .tr-ico {
    color: var(--tr-epic);
    background: rgba(242, 193, 78, 0.12);
    border-color: rgba(242, 193, 78, 0.55);
    box-shadow: 0 0 10px rgba(242, 193, 78, 0.25);
}

.tr-svg {
    display: block;
    width: 16px;
    height: 16px;
}

.tr-text {
    min-width: 0;
}

.tr-name {
    color: var(--text-main);
    font-weight: 700;
    text-decoration: none;
}

.tr-name:hover {
    color: var(--text-gold);
    text-decoration: underline;
}

.tr-accent {
    color: var(--text-gold);
    font-style: normal;
    font-weight: 700;
}

.tr-item.is-epic .tr-accent {
    color: var(--tr-epic);
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.35);
}

.tr-time {
    flex-shrink: 0;
    color: var(--text-dim);
    font-size: 12px;
}

/* Те, на кого ты подписан: золотая метка перед ником */
.tr-item.is-follow .tr-name::before {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 6px 2px 0;
    vertical-align: middle;
    background: var(--text-gold);
    border-radius: 50%;
    content: "";
}

/* ---------- Список (панель и досье) ---------- */
.tr-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tr-list .tr-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px 4px;
    font-size: 14px;
    line-height: 1.4;
    border-bottom: 1px solid var(--border-main);
}

.tr-list .tr-item:last-child {
    border-bottom: none;
}

.tr-list .tr-ico {
    width: 34px;
    height: 34px;
}

.tr-list .tr-svg {
    width: 20px;
    height: 20px;
}

.tr-list .tr-item.is-follow {
    background: linear-gradient(90deg, rgba(209, 184, 148, 0.07), transparent 70%);
}

/* ---------- Выдвижная панель ---------- */
.tr-drawer {
    position: fixed;
    inset: 0;
    z-index: 10001;
}

.tr-drawer[hidden] {
    display: none;
}

.tr-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.75);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tr-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: 470px;
    max-width: 100%;
    padding: 22px 22px 18px;
    background: var(--bg-card);
    border-left: 1px solid var(--border-accent);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
    transform: translateX(100%);
    transition: transform 0.2s ease;
}

.tr-drawer.is-open .tr-drawer__backdrop {
    opacity: 1;
}

.tr-drawer.is-open .tr-drawer__panel {
    transform: none;
}

.tr-drawer__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--text-red);
}

.tr-drawer__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 22px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tr-drawer__sub {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 13px;
}

.tr-drawer__close {
    padding: 4px 6px;
    color: var(--text-muted);
    font-size: 18px;
    background: none;
    border: none;
}

.tr-drawer__close:hover {
    color: var(--text-red);
}

.tr-drawer__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0 6px;
}

.tr-drawer__filters .tab {
    padding: 7px 11px;
    font-size: 12px;
}

.tr-drawer .tr-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.tr-drawer__credit {
    display: block;
    margin-top: 6px;
    font-size: 11px;
}

.tr-drawer__credit a {
    color: var(--text-muted);
}

.tr-empty {
    flex: 1;
}

.tr-drawer__note {
    margin: 12px 0 0;
    padding-top: 12px;
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.5;
    border-top: 1px solid var(--border-main);
}

@media (max-width: 500px) {
    .tr-drawer__filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tr-drawer__panel,
    .tr-drawer__backdrop {
        transition: none;
    }
}

/* ---------- Досье ---------- */
.dz-triumphs .tr-list .tr-item {
    padding: 10px 0;
}

.dz-triumphs__empty {
    margin: 0;
    color: var(--text-dim);
    font-size: 14px;
}
