/* ===== СПИСОК КОМАНД ===== */
.teams {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.teams_home_head {
    gap: 14px;
    align-items: flex-start;
}

.teams_home_head .double_heading {
    min-width: 0;
}

.teams_home_actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 100%;
}

.teams_home_actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 13px !important;
    border-radius: 10px !important;
    line-height: 1.2;
    white-space: nowrap;
}

.teams_home_btn_my {
    background: rgba(23,162,184,.18) !important;
    border: 1px solid rgba(23,162,184,.38) !important;
    color: #17d4e8 !important;
}

.teams_home_btn_my:hover {
    background: rgba(23,162,184,.28) !important;
    color: #fff !important;
}

.teams_home_btn_create {
    box-shadow: 0 6px 18px rgba(77,223,153,.14);
}

.team_list_item {
    background: linear-gradient(359deg, #2e2e39 30%, #363642 100%);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
}

.team_list_info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.img_team {
    width: 145px;
    height: 145px;
    object-fit: cover;
    border-radius: 86px;
    display: block;
    position: relative;
    z-index: 1;
}

.info_team {
    display: flex;
    flex-direction: column;
    padding: 5px 0;
    gap: 14px;
}

.flex_name_team {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.name_team {
    font-size: 18px;
    font-weight: 600;
}

.name_team a { color: #fff; }

.users_team_m {
    width: fit-content;
    background: #787d8a33;
    padding: 4px 10px 4px 5px;
    font-size: 9.4px;
    border: solid 1px #5b5d63;
    color: #ababb8;
    font-weight: 600;
    border-radius: 50px;
}

.users_tag_team {
    padding: 3px 8px;
    background: linear-gradient(0deg, #636673 30%, #797e8b 100%);
    font-size: 10px;
    margin-right: 4px;
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
}

.box_text_team { display: flex; gap: 10px; align-items: center; }

.flex_info_team {
    display: flex;
    line-height: 15px;
    flex-direction: column;
    gap: 3px;
}

.creator_team { font-size: 12px; font-weight: 600; }
.date_team { font-size: 12px; font-weight: 600; }

.desp_info_team {
    color: #828590;
    font-weight: 600;
    font-size: 11px !important;
}

.team_list_data {
    display: flex;
    gap: 7px;
    border: dashed 1px #626571;
    border-radius: 14px;
    background: #5e616c26;
    padding: 10px;
    flex-direction: column;
}

.likes_block_team {
    height: 58px;
    background: radial-gradient(100% 100% at 50% 0, #4ddf9969 0, #38644f4a 100%);
    min-width: 110px;
    border-radius: 12px;
    padding: 0 14px;
    line-height: 17px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    justify-content: center;
}

.likes_block_team i {
    position: absolute;
    font-size: 45px;
    right: 0;
    margin-right: -13px;
    color: #61dca02e;
    transform: rotate(348deg);
}

.kolvo_likes_team { font-size: 13px; font-weight: 600; color: #61dca0; }

.rait_block_team {
    height: 58px;
    border-radius: 12px;
    background: linear-gradient(0deg, #4f525d 30%, #5a5e6a 100%);
    min-width: 110px;
    padding: 0 14px;
    line-height: 17px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    justify-content: center;
}

.rait_block_team i {
    position: absolute;
    font-size: 43px;
    right: 0;
    margin-right: -13px;
    color: #9296a045;
    transform: rotate(348deg);
}

.kolvo_rait_team { font-size: 13px; font-weight: 600; color: #fff; }
.desp_right_team { font-weight: 600; font-size: 11px; color: #ffffffd6; }

/* ===== СТРАНИЦА КОМАНДЫ ===== */
.block_team_index {
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    padding: 0 30px 30px 30px;
    display: flex;
    height: 400px;
    margin-bottom: 10px;
    box-shadow: 0 5px 10px #13151a30;
    background: #000;
    flex-direction: column;
    justify-content: flex-end;
}

.cover_background_team {
    width: calc(100% + 30px);
    opacity: 1;
    object-fit: cover;
    margin-left: -30px;
    bottom: 0;
    position: absolute;
    height: 100%;
}

.gradient_online_team {
    width: calc(100% + 60px);
    display: block;
    height: 810px;
    bottom: 0;
    margin-left: -30px;
    position: absolute;
    z-index: 1;
    background: linear-gradient(360deg, #272730 10%, #2e2e3936 100%);
}

.bottom_team_block {
    display: flex;
    position: relative;
    margin-bottom: 20px;
    width: 100%;
    z-index: 2;
    justify-content: space-between;
}

.left_team { display: flex; gap: 15px; align-items: flex-end; }

.img_team_big {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 72px;
    display: block;
    position: relative;
    z-index: 1;
}

.info_team_head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 5px;
}

.flex_name_team_head { display: flex; flex-direction: column; gap: 5px; }

.name_team_head { font-size: 20px; font-weight: 700; color: #fff; }

.team_tag_badge { font-size: 13px; font-weight: 600; color: #adb5bd; margin-left: 6px; }

.right_side_team {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-direction: column;
    justify-content: space-between;
}

.stats_team_info {
    display: flex;
    justify-content: space-between;
    gap: 7px;
    padding: 10px;
    backdrop-filter: blur(3px);
    background: #0000001f;
    border-radius: 15px;
    flex-direction: column;
}

.likes_stats_team {
    background: radial-gradient(100% 100% at 50% 0, #fd626273 0, #bd3e3e42 100%);
    height: 47px;
    min-width: 90px;
    border-radius: 10px;
    padding: 0 14px;
    line-height: 17px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    justify-content: center;
}

.likes_stats_team i {
    position: absolute;
    font-size: 45px;
    right: 0;
    margin-right: -13px;
    color: #fe939430;
    transform: rotate(348deg);
}

.kills_stats_team {
    background: radial-gradient(100% 100% at 50% 0, #ff855482 0, #ff85543d 100%);
    height: 47px;
    min-width: 90px;
    border-radius: 10px;
    padding: 0 14px;
    line-height: 17px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    justify-content: center;
}

.kills_stats_team i {
    position: absolute;
    font-size: 45px;
    right: 0;
    margin-right: -13px;
    color: #ff9a7f30;
    transform: rotate(348deg);
}

.flex_team_info_stats { display: flex; flex-direction: column; font-weight: 600; line-height: 16px; }
.name_team_info { color: #fd8484; }
.name_team_info_kills { color: #ffb99d; }
.desp_team_info { font-size: 10.5px; }

.status_team {
    position: relative;
    z-index: 2;
    display: flex;
    background: linear-gradient(359deg, #2e2e39 30%, #363642 100%);
    border-radius: 12px;
    padding: 10px 10px 10px 18px;
    justify-content: space-between;
    align-items: center;
}

.left_status_team { display: flex; gap: 10px; align-items: center; }

.img_status_team {
    width: 32px;
    height: 32px;
    border-radius: 50px;
    object-fit: cover;
}

.text_status_team_flex { display: flex; line-height: 15px; font-weight: 600; flex-direction: column; }
.name_status_team { font-size: 11.5px; }
.text_status_team { font-size: 11px; color: #8d8d99; }

.flex_buttons_team { display: flex; gap: 5px; align-items: center; }
.flex_buttons_team button, .flex_buttons_team a { border-radius: 12px !important; }

.block_solution_teams {
    border-radius: 20px;
    background: linear-gradient(1deg, #25252e 30%, #292932 100%);
    padding: 17px;
    margin-bottom: 5px;
}

.player_block_teams {
    background: linear-gradient(359deg, #2e2e39 30%, #363642 100%);
    justify-content: space-between;
    display: flex;
    height: 75px;
    padding: 0 23px;
    border-radius: 13px;
    align-items: center;
}

.name_and_img_teams {
    display: flex;
    gap: 9px;
    align-items: center;
    width: 200px;
}

.img_user_player_team {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    object-fit: cover;
}

.content_player_flex { display: flex; flex-direction: column; line-height: 15px; font-weight: 600; }
.text_h1_team { text-overflow: ellipsis; max-width: 200px; overflow: hidden; white-space: nowrap; }
.text_h2_team { color: #7b7b91; font-size: 11px; }
.reit_teams { width: 80px; }
.date_teams { width: 160px; }

/* Кнопки действий */
.btn_join_team, .btn_leave_team, .btn_like_team, .btn_cabinet_team {
    padding: 7px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.btn_join_team { background: rgba(77,223,153,.2); color: #4ddf99; border: 1px solid rgba(77,223,153,.4); }
.btn_join_team:hover { background: rgba(77,223,153,.3); }
.btn_disabled_team { opacity: .6; cursor: not-allowed; }
.btn_leave_team { background: rgba(220,53,69,.2); color: #dc3545; border: 1px solid rgba(220,53,69,.4); }
.btn_cabinet_team { background: rgba(23,162,184,.2); color: #17a2b8; border: 1px solid rgba(23,162,184,.4); }
.btn_like_team { background: rgba(253,98,98,.2); color: #fd6262; border: 1px solid rgba(253,98,98,.4); }
.btn_like_team.liked { background: rgba(253,98,98,.35); }
.like_static_team { color: #fd6262; font-size: 13px; font-weight: 600; }

/* ===== ГРИД УЧАСТНИКОВ КОМАНДЫ ===== */
.tm-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
    width: 100%;
}

.tm-card {
    background: linear-gradient(160deg, #25252e 0%, #1e1e28 100%);
    border: 1px solid #2e2e3c;
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    position: relative;
    overflow: hidden;
    min-width: 0;
}
.tm-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(77,223,153,.45), transparent);
}
.tm-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,.4);
    border-color: rgba(77,223,153,.2);
}

/* Avatar column */
.tm-card-left {
    flex-shrink: 0;
}

.tm-card-avatar-wrap,
.pb-avatar-wrap.tm-card-avatar-wrap {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    border-radius: 50% !important;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.1) !important;
    flex-shrink: 0;
    background: #1a1a24;
    box-shadow: 0 3px 10px rgba(0,0,0,.35);
}

.tm-card-avatar,
.tm-card-avatar-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 50% !important;
}

/* Name + role column */
.tm-card-info {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tm-card-name {
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    transition: opacity .15s;
}
.tm-card-name:hover { opacity: .75; }

.tm-card-role {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    color: #8d8d99;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Stats column (right) */
.tm-card-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}

.tm-card-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tm-stat-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: .8;
}

.tm-stat-val {
    font-size: 11px;
    font-weight: 600;
    color: #c5c7d4;
    white-space: nowrap;
}

/* ===== КАБИНЕТ ===== */

/* Значок своей роли */
.cab_own_badge {
    background: #3a3a46;
    border: 1px solid #5a5a6a;
    color: #adb5bd;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.cab_own_badge i { color: #ffc107; }

.clan_plus_slot {
    background: #49c98b17;
    display: flex;
    gap: 13px;
    padding: 15px;
    color: #60c896;
    border: dashed 1px #49c98b87;
    font-weight: bold;
    border-radius: 15px;
    font-size: 11px;
    margin-bottom: 15px;
}

/* Заявки */
.clan_request_item {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    background: linear-gradient(1deg, #3a3a4678 30%, #3a3a46 100%);
    border-radius: 14px;
    padding: 10px;
    align-items: center;
    justify-content: space-between;
}

.clan_request_item .buttons { display: flex; gap: 10px; }
.clan_request_item button { border-radius: 10px !important; }

/* Участники в кабинете */
.cab_member_row {
    background: linear-gradient(359deg, #2e2e39 30%, #363642 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-radius: 12px;
    margin-bottom: 8px;
    gap: 10px;
    flex-wrap: wrap;
}

.cab_member_info { display: flex; gap: 9px; align-items: center; min-width: 160px; }

.cab_member_avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    object-fit: cover;
}

.cab_member_name { display: block; font-size: 13px; font-weight: 600; }
.cab_member_role { display: block; font-size: 11px; color: #7b7b91; }
.cab_member_damage { font-size: 12px; font-weight: 600; color: #adb5bd; min-width: 80px; }
.cab_member_actions { display: flex; gap: 7px; align-items: center; }

.select_group_cab {
    background: #2a2a36;
    border: 1px solid #4a4a5a;
    color: #fff;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12px;
}

.btn_kick_cab {
    background: rgba(220,53,69,.2);
    color: #dc3545;
    border: 1px solid rgba(220,53,69,.4);
    border-radius: 8px;
    padding: 5px 9px;
    cursor: pointer;
    font-size: 13px;
}

/* Группы/звания */
.cab_group_row {
    background: linear-gradient(359deg, #2e2e39 30%, #363642 100%);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.cab_group_header { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }

.cab_group_name {
    background: #2a2a36;
    border: 1px solid #4a4a5a;
    color: #fff;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    flex: 1;
}

.cab_group_rank_badge {
    background: #3a3a46;
    border: 1px solid #5a5a6a;
    color: #adb5bd;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 11px;
    white-space: nowrap;
}

.cab_group_perms { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 10px; }

.cab_perm_label {
    font-size: 12px;
    font-weight: 600;
    color: #adb5bd;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.btn_accept_req {
    background: rgba(40,167,69,.2);
    color: #28a745;
    border: 1px solid rgba(40,167,69,.4);
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.btn_reject_req {
    background: rgba(220,53,69,.2);
    color: #dc3545;
    border: 1px solid rgba(220,53,69,.4);
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* ===== МОДАЛЬНЫЕ ОКНА (solution2) ===== */
.teams_modal_overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: teams_modal_fade .18s ease;
}

@keyframes teams_modal_fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.teams_modal_box {
    background: linear-gradient(160deg, #25252e 0%, #1e1e28 100%);
    border: 1px solid #3a3a4a;
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 24px 60px rgba(0,0,0,.6);
    animation: teams_modal_slide .2s ease;
    overflow: hidden;
}

@keyframes teams_modal_slide {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.teams_modal_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 16px;
    border-bottom: 1px solid #2e2e3a;
}

.teams_modal_close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,.05);
    border: 1px solid #3a3a4a;
    color: #8d8d99;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: .15s;
    flex-shrink: 0;
}
.teams_modal_close:hover { background: rgba(220,53,69,.15); border-color: rgba(220,53,69,.4); color: #dc3545; }

.teams_modal_body {
    padding: 20px 22px;
    max-height: 70vh;
    overflow-y: auto;
}

.teams_modal_footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px 20px;
    border-top: 1px solid #2e2e3a;
}

.teams_field_wrap {
    margin-bottom: 16px;
}

.teams_field_label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #8d8d99;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 8px;
}

.teams_field_input {
    width: 100%;
    background: #1a1a24;
    border: 1px solid #3a3a4a;
    border-radius: 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 11px 14px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.teams_field_input::placeholder { color: #4a4a5a; }
.teams_field_input:focus {
    border-color: rgba(77,223,153,.5);
    box-shadow: 0 0 0 3px rgba(77,223,153,.08);
}
textarea.teams_field_input { resize: none; }

.teams_modal_btn_cancel {
    padding: 9px 18px;
    border-radius: 10px;
    background: rgba(255,255,255,.05);
    border: 1px solid #3a3a4a;
    color: #8d8d99;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: .15s;
}
.teams_modal_btn_cancel:hover { background: rgba(255,255,255,.08); color: #fff; }

.teams_modal_btn_submit {
    padding: 9px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4ddf99, #2fb97a);
    border: none;
    color: #1a1a24;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: .15s;
    box-shadow: 0 4px 14px rgba(77,223,153,.25);
}
.teams_modal_btn_submit:hover { box-shadow: 0 6px 20px rgba(77,223,153,.4); transform: translateY(-1px); }

/* ===== LVL BADGE ===== */
.teams_lvl_badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 193, 7, .15);
    border: 1px solid rgba(255, 193, 7, .35);
    color: #ffc107;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}
.teams_lvl_badge i { font-size: 11px; }

/* ===== РАМКИ ЛОГОТИПА КОМАНДЫ ===== */
.team_logo_frame_wrap {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}
.team-logo-frame::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    pointer-events: none;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 3;
}
.team-logo-frame[data-frame="1"]::after { background-image: url('../../../uploads/lvl/l_1.png'); animation: team_frame_spin 8s linear infinite; }
.team-logo-frame[data-frame="2"]::after { background-image: url('../../../uploads/lvl/l_2.png'); animation: team_frame_pulse 2.5s ease-in-out infinite; }
.team-logo-frame[data-frame="3"]::after { background-image: url('../../../uploads/lvl/l_3.png'); animation: team_frame_glow 2s ease-in-out infinite; }
.team-logo-frame[data-frame="4"]::after { background-image: url('../../../uploads/lvl/l_4.png'); animation: team_frame_spin 6s linear infinite; }
.team-logo-frame[data-frame="5"]::after { background-image: url('../../../uploads/lvl/l_5.png'); animation: team_frame_pulse 1.8s ease-in-out infinite; }
.team-logo-frame[data-frame="6"]::after { background-image: url('../../../uploads/lvl/l_6.png'); animation: team_frame_rainbow 3s linear infinite; }

@keyframes team_frame_spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes team_frame_pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .75; transform: scale(1.06); }
}
@keyframes team_frame_glow {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 4px rgba(255,255,255,.3)); }
    50%       { filter: brightness(1.3) drop-shadow(0 0 10px rgba(255,255,255,.7)); }
}
@keyframes team_frame_rainbow {
    0%   { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* ===== ПИКЕР РАМОК В КАБИНЕТЕ ===== */
.team_frames_pick_wrap {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.team_frame_pick_item {
    cursor: pointer;
    border-radius: 10px;
    padding: 6px;
    transition: background .15s;
    text-align: center;
}
.team_frame_pick_item:hover { background: rgba(255,255,255,.06); }
.teams-frame-active { outline: 2px solid #fff; outline-offset: 2px; }
.team_frame_pick_img { display: block; }
.team_frame_pick_locked { cursor: default; opacity: .6; }

/* ===== ПИКЕР СТИЛЕЙ НАЗВАНИЯ В КАБИНЕТЕ ===== */
.team_name_style_pick_wrap {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.team_name_style_item {
    cursor: pointer;
    border-radius: 10px;
    padding: 10px 14px;
    border: 1px solid #2e2e3a;
    background: linear-gradient(359deg,#2a2a35 30%,#313140 100%);
    transition: border-color .15s, background .15s;
    text-align: center;
    min-width: 90px;
}
.team_name_style_item:hover { border-color: rgba(168,85,247,.4); background: rgba(168,85,247,.07); }
.teams-name-style-active { border-color: #a855f7 !important; box-shadow: 0 0 0 2px rgba(168,85,247,.3); }
.team_name_style_locked { cursor: default; opacity: .55; }

/* ===== КАБИНЕТ — ВКЛАДКА НАСТРОЙКИ (переработка) ===== */

.tcab_settings_card {
    background: linear-gradient(160deg, #22222d 0%, #1c1c27 100%);
    border: 1px solid #2e2e3c;
    border-top: 2px solid var(--card-accent, #4ddf99);
    border-radius: 18px;
    padding: 22px 24px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.tcab_settings_card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(77,223,153,.04) 0%, transparent 100%);
    pointer-events: none;
}

.tcab_settings_card_head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.tcab_settings_card_icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.tcab_settings_card_title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.tcab_settings_card_sub {
    font-size: 11px;
    font-weight: 600;
    color: #55586a;
}

.tcab_cape_grid {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}
.tcab_cape_preview {
    border-radius: 14px;
    overflow: hidden;
    background: #11131c;
    border: 1px solid rgba(255,255,255,.08);
    min-height: 220px;
}
.tcab_cape_preview img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}
.tcab_cape_content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
}
.tcab_cape_info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 12px;
    color: #8d8d99;
    line-height: 1.45;
}
.tcab_cape_info i {
    font-size: 17px;
    margin-top: 1px;
    flex-shrink: 0;
}
.tcab_cape_info_blue {
    background: rgba(80,134,255,.08);
    border: 1px solid rgba(80,134,255,.16);
}
.tcab_cape_info_blue i { color: #5086ff; }
.tcab_cape_info_green {
    background: rgba(77,223,153,.10);
    border: 1px solid rgba(77,223,153,.22);
}
.tcab_cape_info_green i { color: #4ddf99; }
.tcab_cape_info_yellow {
    background: rgba(255,193,7,.10);
    border: 1px solid rgba(255,193,7,.24);
}
.tcab_cape_info_yellow i { color: #ffc107; }
.tcab_cape_info_red {
    background: rgba(220,53,69,.10);
    border: 1px solid rgba(220,53,69,.24);
}
.tcab_cape_info_red i { color: #dc3545; }

/* Поля ввода */
.tcab_fields_row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tcab_settings_fields_row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tcab_field_group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 4px;
    min-width: 0;
}

.tcab_field_label {
    font-size: 11px;
    font-weight: 700;
    color: #6d7083;
    text-transform: uppercase;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.tcab_field_label i { font-size: 12px; }

.tcab_field_input {
    width: 100%;
    background: #16161f;
    border: 1px solid #2e2e3c;
    border-radius: 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 11px 14px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.tcab_field_input::placeholder { color: #3a3a4e; }
.tcab_field_input:focus {
    border-color: rgba(77,223,153,.45);
    box-shadow: 0 0 0 3px rgba(77,223,153,.07);
}

.tcab_hex_input { font-family: 'Courier New', monospace; letter-spacing: 1px; }

/* Кнопка сохранить */
.tcab_btn_save {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 11px;
    background: linear-gradient(135deg, #4ddf99, #2fb97a);
    border: none;
    color: #14141e;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .15s;
    box-shadow: 0 4px 16px rgba(77,223,153,.2);
    white-space: nowrap;
}
.tcab_btn_save:hover { box-shadow: 0 6px 22px rgba(77,223,153,.38); transform: translateY(-1px); }
.tcab_btn_save i { font-size: 15px; }

/* Кнопка разблокировать все */
.tcab_unlock_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 10px;
    border: 1px solid rgba(168,85,247,.4);
    background: rgba(168,85,247,.1);
    color: #a855f7;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: .15s;
    flex-shrink: 0;
}
.tcab_unlock_btn:hover { background: rgba(168,85,247,.18); border-color: rgba(168,85,247,.6); }

/* Медиа сетка */
.tcab_media_grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.tcab_media_block {
    display: flex;
    flex-direction: column;
}

.tcab_media_label {
    font-size: 11px;
    font-weight: 700;
    color: #6d7083;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Загрузка логотипа */
.tcab_logo_upload_area {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid #2e2e3c;
    transition: border-color .15s;
}
.tcab_logo_upload_area:hover { border-color: rgba(77,223,153,.5); }
.tcab_logo_upload_area:hover .tcab_logo_overlay { opacity: 1; }

.tcab_logo_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tcab_logo_overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity .15s;
}

.tcab_logo_input_label {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

/* Загрузка обложки */
.tcab_cover_upload_area {
    position: relative;
    width: 100%;
    min-width: 220px;
    height: 90px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #2e2e3c;
    transition: border-color .15s;
}
.tcab_cover_upload_area:hover { border-color: rgba(80,134,255,.5); }
.tcab_cover_upload_area:hover .tcab_cover_overlay { opacity: 1; }

.tcab_cover_img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #16161f;
}

.tcab_cover_overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity .15s;
}

.tcab_cover_input_label {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

/* Пресеты цветов */
.tcab_color_presets_row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 14px 16px;
    background: #16161f;
    border-radius: 14px;
    border: 1px solid #2a2a38;
}

/* HEX ряд */
.tcab_color_hex_row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.tcab_color_hex_preview_wrap {
    padding-top: 22px;
    flex-shrink: 0;
}

.tcab_color_hex_preview {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 2px solid #2e2e3c;
    transition: background .15s;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

/* Рамки и стили — обёртки */
.tcab_frames_wrap {
    padding: 4px 0;
}

.tcab_name_styles_wrap {
    padding: 4px 0;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 992px) {
    .teams_home_head {
        flex-direction: column;
        align-items: stretch;
    }
    .teams_home_actions {
        justify-content: flex-start;
    }
    .team_list_item {flex-direction: column;gap: 13px;}
    .left_team { flex-direction: column; align-items: flex-start; }
    .block_team_index { height: 472px; }
    .player_block_teams { height: fit-content; gap: 15px; padding: 15px; flex-direction: column; align-items: flex-start; }
    .cab_member_row { flex-direction: column; align-items: flex-start; }
    .cab_group_perms { flex-direction: column; gap: 8px; }
    .tcab_settings_fields_row { flex-direction: column; }
    .tcab_color_hex_row { flex-direction: column; align-items: flex-start; }
    .tcab_cover_upload_area { min-width: 0; }
}

/* ===== ДОСКА ПОЧЁТА (HOF) ===== */
.hof-section {
    margin-bottom: 10px;
}

.hof-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #8d8d99;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.hof-section-title i { font-size: 16px; color: #ffc107; }

.hof-cards-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Карточка — картинка на весь блок, поверх неё всё остальное */
.hof-card {
    flex: 1 1 0;
    min-width: 200px;
    max-width: 390px;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    transition: transform .3s cubic-bezier(.175,.885,.32,1.275), box-shadow .3s;
    box-shadow: 0 10px 20px rgba(0,0,0,.5);
}
.hof-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,.7);
}

/* Цветные рамки */
.hof-card--knife  { border: 2px solid rgba(220,53,69,.6); }
.hof-card--sniper { border: 2px solid rgba(23,162,184,.6); }
.hof-card--rifle  { border: 2px solid rgba(249,115,22,.6); }

/* Картинка — основа карточки */
.hof-card-img-wrap {
    position: relative;
    width: 100%;
    display: block;
}
.hof-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Заголовок поверх картинки — сверху */
.hof-title {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 10px 14px 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0,0,0,.65) 0%, transparent 100%);
}
.hof-card--knife  .hof-title { color: #e05c5c; text-shadow: 0 0 14px rgba(220,53,69,.9); }
.hof-card--sniper .hof-title { color: #17a2b8; text-shadow: 0 0 14px rgba(23,162,184,.9); }
.hof-card--rifle  .hof-title { color: #f97316; text-shadow: 0 0 14px rgba(249,115,22,.9); }

/* Футер — абсолютно поверх картинки снизу, фон прозрачный */
.hof-footer {
    position: absolute;
    bottom: 11px;
    left: 0;
    right: 0;
    padding: 20px 15px 15px 15px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 5px;
    background: transparent;
}

/* Иконка оружия */
.hof-avatar-box {
    width: 64px;
    height: 64px;
    margin-left: 10px;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hof-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 6px;
    box-sizing: border-box;
}

.hof-card--knife  .hof-avatar-box { border-color: rgba(220,53,69,.4); box-shadow: 0 4px 16px rgba(0,0,0,.5), 0 0 12px rgba(220,53,69,.2); }
.hof-card--sniper .hof-avatar-box { border-color: rgba(23,162,184,.4); box-shadow: 0 4px 16px rgba(0,0,0,.5), 0 0 12px rgba(23,162,184,.2); }
.hof-card--rifle  .hof-avatar-box { border-color: rgba(249,115,22,.4); box-shadow: 0 4px 16px rgba(0,0,0,.5), 0 0 12px rgba(249,115,22,.2); }

/* Детали */
.hof-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.hof-player-name {
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    transition: 0.2s;
    display: block;
    text-decoration: none;
    color: #fff;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 5px 7px;
    border-radius: 8px;
    width: 115px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.hof-card--knife  .hof-player-name { color: #e05c5c; }
.hof-card--sniper .hof-player-name { color: #17a2b8; }
.hof-card--rifle  .hof-player-name { color: #f97316; }
.hof-player-name:hover { opacity: .8; }

.hof-kills-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 5px 7px;
    border-radius: 8px;
    width: 115px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.hof-kills-row i { font-size: 14px; }
.hof-card--knife  .hof-kills-row i { color: #e05c5c; }
.hof-card--sniper .hof-kills-row i { color: #17a2b8; }
.hof-card--rifle  .hof-kills-row i { color: #f97316; }

/* Пустая карточка */
.hof-card--empty .hof-footer {
    justify-content: center;
}
.hof-empty-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.3);
    font-size: 12px;
    font-weight: 600;
}
.hof-empty-msg i { font-size: 28px; }

/* ===================================================================
   TROPHY SHELF — история сезонов
   =================================================================== */

.trophy-shelf-block {
    background: linear-gradient(160deg, #1e1e28 0%, #191921 100%);
    border: 1px solid #2e2e3c;
    border-radius: 18px;
    padding: 18px 20px 20px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}

.trophy-shelf-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,193,7,.6) 50%, transparent 100%);
}

.trophy-shelf-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.trophy-shelf-icon {
    font-size: 22px;
    color: #ffc107;
    flex-shrink: 0;
}

.trophy-shelf-title {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.trophy-shelf-sub {
    font-size: 11px;
    color: #5a5a70;
    font-weight: 600;
    margin-left: auto;
}

.trophy-shelf-sub strong {
    color: #ffc107;
}

/* Горизонтальный скролл-контейнер */
.trophy-shelf-responsive {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #3a3a4a transparent;
    padding-bottom: 6px;
}

.trophy-shelf-responsive::-webkit-scrollbar {
    height: 4px;
}
.trophy-shelf-responsive::-webkit-scrollbar-track {
    background: transparent;
}
.trophy-shelf-responsive::-webkit-scrollbar-thumb {
    background: #3a3a4a;
    border-radius: 2px;
}

.trophy-shelf-grid {
    display: flex;
    gap: 6px;
    min-width: max-content;
}

/* Обёртка одной ячейки сезона */
.shelf-item-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 74px;
}

.shelf-season-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.shelf-season-v {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.shelf-season-t {
    font-size: 8px;
    font-weight: 700;
    color: #4a4a5e;
    letter-spacing: .6px;
    text-transform: uppercase;
}

/* Иконка трофея */
.shelf-trophy-item {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    border: 2px solid transparent;
}

.shelf-trophy-item:hover {
    transform: translateY(-4px) scale(1.06);
}

.shelf-trophy-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

/* Маленький номер месяца поверх иконки */
.shelf-season-num {
    position: absolute;
    bottom: 3px;
    right: 5px;
    font-size: 9px;
    font-weight: 800;
    color: rgba(255,255,255,.35);
    line-height: 1;
    pointer-events: none;
}

/* Состояния */
.prize-future {
    background: linear-gradient(160deg, #1e1e2a 0%, #18181f 100%);
    border-color: #2a2a38;
    opacity: .5;
}
.prize-future:hover {
    opacity: .75;
}

.prize-inactive {
    background: linear-gradient(160deg, #22222e 0%, #1b1b24 100%);
    border-color: #2e2e3c;
}
.prize-inactive .shelf-trophy-img {
    filter: grayscale(1) brightness(.5);
}

.prize-won {
    background: linear-gradient(160deg, #2a2316 0%, #1e1a10 100%);
    border-color: rgba(255,193,7,.4);
    box-shadow: 0 4px 14px rgba(255,193,7,.12);
}
.prize-won:hover {
    box-shadow: 0 8px 24px rgba(255,193,7,.25);
    border-color: rgba(255,193,7,.7);
}

.prize-current {
    background: linear-gradient(160deg, #2a1616 0%, #1e1010 100%);
    border-color: rgba(255,71,87,.5);
    box-shadow: 0 4px 14px rgba(255,71,87,.15);
    animation: shelf_current_pulse 2.5s ease-in-out infinite;
}

@keyframes shelf_current_pulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(255,71,87,.15); }
    50%       { box-shadow: 0 6px 22px rgba(255,71,87,.35); }
}

/* Дата под иконкой */
.shelf-date-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    margin-top: 1px;
}

.shelf-date-m {
    font-size: 8px;
    font-weight: 700;
    color: #6a6a7e;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
}

.shelf-date-y {
    font-size: 9px;
    font-weight: 700;
    color: #4a4a5e;
    text-align: center;
}

/* LIVE-статус */
.shelf-live-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 700;
    color: #ff4757;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ff4757;
    display: inline-block;
    animation: live_dot_blink 1.2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes live_dot_blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: .2; }
}

/* ===================================================================
   TOOLTIP для trophy-shelf
   =================================================================== */

.shelf-tooltip-box {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    background: linear-gradient(160deg, #25252e 0%, #1e1e28 100%);
    border: 1px solid #3a3a4a;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #c5c7d4;
    line-height: 1.6;
    max-width: 260px;
    box-shadow: 0 12px 36px rgba(0,0,0,.6);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .18s, transform .18s;
    white-space: normal;
    word-break: break-word;
}

.shelf-tooltip-box.shelf-tooltip-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================== */

@media (max-width: 600px) {
    .teams_home_actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .teams_home_actions .btn {
        width: 100%;
    }
    /* Карточка команды в списке */
    .team_list_item {
        padding: 14px;
    }
    .team_list_info {
        flex-direction: column;
        gap: 12px;
    }
    .img_team {
        width: 72px;
        height: 72px;
    }
    .info_team {
        gap: 10px;
    }
    .name_team {
        font-size: 15px;
    }
    .flex_name_team:last-child {
        flex-direction: row;
        gap: 14px;
        flex-wrap: wrap;
    }
    .team_list_data {
        flex-direction: row;
        gap: 8px;
    }
    .likes_block_team,
    .rait_block_team {
        flex: 1;
        min-width: 0;
    }

    /* Страница команды */
    .block_team_index {
        height: auto;
        min-height: 280px;
        padding: 0 16px 16px 16px;
    }
    .bottom_team_block {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 12px;
    }
    .left_team {
        gap: 12px;
        align-items: center;
    }
    .img_team_big {
        width: 80px;
        height: 80px;
    }
    .name_team_head {
        font-size: 16px;
    }
    .right_side_team {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        align-items: center;
    }
    .stats_team_info {
        flex-direction: row;
        gap: 8px;
    }
    .likes_stats_team,
    .kills_stats_team {
        min-width: 0;
        flex: 1;
        height: 44px;
        padding: 0 10px;
    }
    .status_team {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 14px;
    }
    .flex_buttons_team {
        width: 100%;
        justify-content: flex-end;
    }

    /* HOF */
    .hof-section { display: none; }

    /* Грид участников */
    .tm-grid { grid-template-columns: 1fr !important; gap: 8px; }
    .tm-card { padding: 12px 14px; }
    .tm-card-right { display: none; }

    /* Участники команды (старый стиль) */
    .name_and_img_teams { width: auto; }
    .reit_teams, .date_teams { width: auto; }

    /* Кабинет */
    .tcab_settings_card { padding: 16px; }
    .tcab_media_grid { flex-direction: column; }
    .tcab_logo_upload_area { width: 75px; height: 75px; }
    .tcab_cape_grid { grid-template-columns: 1fr; gap: 14px; }
    .tcab_cape_preview { min-height: 0; }
    .tcab_cape_preview img { min-height: 0; max-height: 300px; }
    .tcab_cape_content { gap: 12px; }
    #cape_actions { width: 100%; }
    #cape_actions > * { width: 100%; justify-content: center; }

    /* Trophy shelf */
    .trophy-shelf-block { padding: 14px; }
    .trophy-shelf-head  { margin-bottom: 12px; }
    .trophy-shelf-sub   { display: none; }
    .shelf-item-wrapper { min-width: 60px; }
    .shelf-trophy-item  { width: 50px; height: 50px; border-radius: 11px; }
    .shelf-trophy-img   { width: 36px; height: 36px; }
    .shelf-season-v     { font-size: 11px; }
    .shelf-date-m       { font-size: 7px; }
}
