/* ========================================================================
   DEV_TS (Dev Team Score v1.0 Pro)
   Стиль #1: Solution2 Native (Joker & Deadpool - 100% НЕ ИЗМЕНЕН)
   Стиль #2: Official FACEIT Matchroom Pro (РУСИФИЦИРОВАННЫЙ И СИММЕТРИЧНЫЙ)
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

/* ========================================================================
   СТИЛЬ #1: SOLUTION2 NATIVE (JOKER & DEADPOOL - 100% НЕ ТРОГАТЬ)
   ======================================================================== */
.team_score_block {
    border-radius: 30px !important;
    background: linear-gradient(1deg, #26272d 30%, #2a2b31 100%) !important;
    transition: .2s all !important;
    gap: 11px !important;
    box-shadow: 0px 5px 10px #13151a4f !important;
    display: flex !important;
    margin-bottom: 20px !important;
    flex-direction: column !important;
    overflow: hidden !important;
    font-family: "Unbounded", sans-serif !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.name_serv_score {
    background: radial-gradient(100% 100% at 50% 0, #ff5255 0, #bd3638 100%) !important;
    border-radius: 50px !important;
    font-size: 9px !important;
    padding: 3px 13px !important;
    letter-spacing: 1px !important;
    margin-bottom: 15px !important;
    margin-top: 7px !important;
    box-shadow: 0px 0px 20px #fd51544f !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    display: inline-block !important;
    font-weight: 600 !important;
}

.player-row {
    background: #ffffff00 !important;
    height: 53px !important;
    min-height: 53px !important;
    max-height: 53px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    padding: 0 19px !important;
    border-radius: 11px !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    border-left: 4px solid transparent !important;
    width: 100% !important;
    transition: transform 0.15s ease !important;
}

.player-row:hover {
    transform: translateX(3px) !important;
}

.player-row.team-terrorist {
    background: linear-gradient(70deg, #ef4e513d 10%, #ef4e510d 100%) !important;
    border-left-color: #ef4e51 !important;
}

.player-row.team-ct {
    background: linear-gradient(70deg, #436f9647 10%, #436f961c 100%) !important;
    border-left-color: #4480ad !important;
}

.player_name_score {
    font-weight: 400 !important;
    max-width: 60% !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    font-size: 11px !important;
    color: #ffffff !important;
    text-align: left !important;
}

.player_stats {
    font-weight: 600 !important;
    display: flex !important;
    gap: 10px !important;
    font-size: 11px !important;
    margin-left: auto !important;
    align-items: center !important;
    white-space: nowrap !important;
}

.kills.team-ct {
    color: #83a9c5 !important;
}

.kills.team-terrorist {
    color: #ff696b !important;
}

.kills {
    font-weight: 600 !important;
}

.deaths {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.ct {
    background: #436f963d !important;
    padding: 17px !important;
    border-radius: 20px !important;
}

.tt {
    background: #ef4e512e !important;
    padding: 17px !important;
    border-radius: 20px !important;
}

.players_score_block {
    display: flex !important;
    gap: 15px !important;
    padding: 25px !important;
    position: relative !important;
    margin-top: -60px !important;
    z-index: 2 !important;
}

.players_column {
    width: 50% !important;
    display: flex !important;
    flex-direction: column !important;
}

.players_list {
    display: flex !important;
    gap: 6px !important;
    flex-direction: column !important;
    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    scroll-behavior: smooth !important;
}

.players_list::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
}

.gradient_score {
    position: absolute !important;
    width: 100% !important;
    display: block !important;
    height: 100px !important;
    bottom: 0px !important;
    left: 0 !important;
    z-index: 1 !important;
    background: linear-gradient(360deg, #28292f 0%, #2f324100 100%) !important;
}

.bg_score_dark {
    position: absolute !important;
    width: 100% !important;
    height: 120% !important;
    background: #28292f91 !important;
    margin-top: -20px !important;
    inset: 0 !important;
    z-index: 1 !important;
}

.team_score_top_block_mobile {
    display: none !important;
}

.team_score_top_block {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0px !important;
    justify-items: center !important;
    align-items: center !important;
    padding: 40px !important;
    padding-top: 21px !important;
    height: 270px !important;
    position: relative !important;
    background: url(/modules_extra/dev_ts/templates/admin/img/bg_score.jpg) no-repeat center top !important;
    background-size: cover !important;
    box-sizing: border-box !important;
}

.left_top_team_score {
    width: 100% !important;
    display: flex !important;
    gap: 0px !important;
    align-items: center !important;
    justify-content: flex-end !important;
    position: relative !important;
    left: 50px !important;
    z-index: 2 !important;
}

.left_top_team_score span {
    font-size: 15px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

.left_top_team_score img {
    width: auto !important;
    height: 115px !important;
    display: block !important;
}

.right_top_team_score {
    width: 100% !important;
    display: flex !important;
    gap: 0px !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-direction: row-reverse !important;
    position: relative !important;
    right: 50px !important;
    z-index: 2 !important;
}

.right_top_team_score span {
    font-size: 15px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

.right_top_team_score img {
    width: auto !important;
    height: 115px !important;
    display: block !important;
}

.center_top_team_score {
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

.score_full {
    font-size: 25px !important;
    font-weight: 600 !important;
    display: flex !important;
    letter-spacing: 1px !important;
    font-family: "Unbounded", sans-serif !important;
    color: #ffffff !important;
}

.timer_score {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.timer_score span {
    display: flex !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    align-items: center !important;
    color: #ffffff !important;
    justify-content: center !important;
    gap: 3px !important;
    margin-top: 9px !important;
    margin-bottom: 2px !important;
    width: fit-content !important;
    padding: 4px 12px 4px 7px !important;
    border-radius: 50px !important;
    background: radial-gradient(100% 100% at 50% 0, #636469 0, #4a4b51 100%) !important;
}

.timer_score span i {
    font-size: 19px !important;
    color: #919197 !important;
    position: relative !important;
    top: -1px !important;
}

.timer_score text {
    display: flex !important;
    text-align: center !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    font-size: 9px !important;
    color: #919197 !important;
}

.dl-team-empty {
    color: #94a3b8 !important;
    text-align: center !important;
    padding: 35px 20px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

/* ========================================================================
   СТИЛЬ #2: OFFICIAL FACEIT MATCHROOM PRO (РУСИФИЦИРОВАННЫЙ И ИДЕАЛЬНЫЙ)
   ======================================================================== */
.dts-f2-wrap {
    background: #0f1115 !important;
    border-radius: 18px !important;
    padding: 24px 28px !important;
    border: 1px solid #1c2028 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8) !important;
    font-family: "Unbounded", "Inter", sans-serif !important;
    color: #ffffff !important;
    margin-bottom: 25px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* Верхний блок: Одинаковые и аккуратные карточки команд */
.dts-f2-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 6px 6px 20px 6px !important;
    border-bottom: 1px solid #1a1e27 !important;
    gap: 16px !important;
}

.dts-f2-team-box {
    background: #151820 !important;
    border: 1px solid #1f2532 !important;
    border-radius: 12px !important;
    padding: 12px 18px !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    width: 32% !important;
    height: 64px !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.dts-f2-team-box.ct {
    justify-content: flex-start !important;
}

.dts-f2-team-box.t {
    justify-content: flex-end !important;
}

.dts-f2-team-emblem {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #1a1e28 !important;
    border: 1px solid #283040 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.dts-f2-team-emblem img {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
}

.dts-f2-team-text {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.dts-f2-team-text.text-right {
    text-align: right !important;
}

.dts-f2-team-name {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

.dts-f2-team-sub {
    font-size: 10px !important;
    font-weight: 700 !important;
    margin-top: 2px !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    background: transparent !important; /* <--- Ortiqcha fonni o'chiradi */
    padding: 0 !important;              /* <--- Ortiqcha qutini olib tashlaydi */
    border-radius: 0 !important;
    border: none !important;
}

.dts-f2-team-sub.ct { color: #38bdf8 !important; }
.dts-f2-team-sub.t  { color: #ff5500 !important; }

/* Центр: Счет и индикатор */
.dts-f2-center {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36% !important;
}

.dts-f2-match-type {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #8c93a0 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    margin-bottom: 2px !important;
}

.dts-f2-status {
    font-size: 13px !important;
    font-weight: 900 !important;
    color: #ff5500 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    margin-bottom: 2px !important;
}

.dts-f2-format {
    font-size: 9px !important;
    font-weight: 600 !important;
    color: #646b79 !important;
    margin-bottom: 8px !important;
    text-transform: uppercase !important;
}

.dts-f2-score-row {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

.dts-f2-digit-box {
    min-width: 54px !important;
    height: 48px !important;
    border-radius: 12px !important;
    background: #151820 !important;
    border: 1px solid #232a38 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 28px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
}

.dts-f2-digit-box.ct {
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.6) !important;
}

.dts-f2-digit-box.t {
    color: #ff5500 !important;
    border-color: rgba(255, 85, 0, 0.3) !important;
    text-shadow: 0 0 15px rgba(255, 85, 0, 0.6) !important;
}

.dts-f2-score-sep {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #475569 !important;
}

.dts-f2-slider-track {
    width: 140px !important;
    height: 4px !important;
    background: #1e2430 !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
}

.dts-f2-slider-ct {
    height: 100% !important;
    background: #38bdf8 !important;
    border-radius: 4px 0 0 4px !important;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.8) !important;
}

.dts-f2-slider-t {
    height: 100% !important;
    background: #ff5500 !important;
    border-radius: 0 4px 4px 0 !important;
    box-shadow: 0 0 8px rgba(255, 85, 0, 0.8) !important;
}

.dts-f2-slider-knob {
    width: 10px !important;
    height: 10px !important;
    border: 2px solid #ff5500 !important;
    background: #0f1115 !important;
    border-radius: 2px !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* 3 Колонки */
.dts-f2-body {
    display: grid !important;
    grid-template-columns: 1fr 240px 1fr !important;
    gap: 18px !important;
    margin-top: 20px !important;
}

.dts-f2-col-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #8c93a0 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.dts-f2-list {
    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    scroll-behavior: smooth !important;
}

.dts-f2-list::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
}

.dts-f2-card {
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    flex-shrink: 0 !important;
    background: #151820 !important;
    border-radius: 10px !important;
    border: 1px solid #1f2532 !important;
    padding: 0 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    transition: transform 0.15s ease, background 0.15s ease !important;
}

.dts-f2-card:hover {
    transform: translateX(3px) !important;
    background: #1c212c !important;
    border-color: #2e374a !important;
}

.dts-f2-card-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    max-width: 72% !important;
}

.dts-f2-user-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #1c202a !important;
    border: 1px solid #283040 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #64748b !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
}

.dts-f2-card-info {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.dts-f2-pname-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    overflow: hidden !important;
}

.dts-f2-pname {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.dts-f2-mvp-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    font-size: 8px !important;
    font-weight: 900 !important;
    padding: 1px 5px !important;
    border-radius: 4px !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    flex-shrink: 0 !important;
}

.dts-f2-psub {
    font-size: 9px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    margin-top: 2px !important;
}

.dts-f2-rating {
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 3px 10px !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    flex-shrink: 0 !important;
    letter-spacing: 0.5px !important;
}

.dts-f2-rating.r-high {
    background: #ef4444 !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4) !important;
}

.dts-f2-rating.r-good {
    background: #f59e0b !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4) !important;
}

.dts-f2-rating.r-mid {
    background: #10b981 !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4) !important;
}

.dts-f2-rating.r-low {
    background: #f43f5e !important;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.4) !important;
}

/* Центральная колонка: Сервер и Карта */
.dts-f2-center-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.dts-f2-info-box {
    background: #151820 !important;
    border-radius: 12px !important;
    border: 1px solid #1f2532 !important;
    padding: 12px 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    position: relative !important;
    overflow: hidden !important;
}

.dts-f2-box-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    background: rgba(255, 85, 0, 0.12) !important;
    border: 1px solid rgba(255, 85, 0, 0.35) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ff5500 !important;
    font-size: 15px !important;
    flex-shrink: 0 !important;
    z-index: 2 !important;
}

.dts-f2-box-content {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    z-index: 2 !important;
    width: 100% !important;
}

.dts-f2-box-tag {
    font-size: 9px !important;
    font-weight: 700 !important;
    color: #8c93a0 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

.dts-f2-box-val {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-top: 1px !important;
}

.dts-f2-box-sub {
    font-size: 9px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    margin-top: 1px !important;
}

/* Фоновый постер карты */
.dts-f2-map-bg-layer {
    position: absolute !important;
    inset: 0 !important;
    background-size: cover !important;
    background-position: center !important;
    opacity: 0.22 !important;
    z-index: 1 !important;
    transition: opacity 0.2s ease !important;
}

.dts-f2-info-box:hover .dts-f2-map-bg-layer {
    opacity: 0.35 !important;
}

/* Кнопка быстрого подключения */
.dts-f2-bottom-status {
    margin-top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
}

.dts-f2-status-label {
    font-size: 8px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}

.dts-f2-match-btn {
    width: 100% !important;
    background: linear-gradient(135deg, #ff5500 0%, #e04400 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-family: "Unbounded", sans-serif !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 12px 0 !important;
    letter-spacing: 1px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 20px rgba(255, 85, 0, 0.45) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.dts-f2-match-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 25px rgba(255, 85, 0, 0.65) !important;
    color: #ffffff !important;
}

/* Адаптивность для смартфонов */
@media (max-width: 768px) {
    .dts-f2-wrap { padding: 15px !important; }
    .dts-f2-header { flex-direction: column !important; gap: 15px !important; }
    .dts-f2-team-box { width: 100% !important; justify-content: center !important; }
    .dts-f2-center { width: 100% !important; }
    .dts-f2-body { grid-template-columns: 1fr !important; gap: 14px !important; }
}
