/**
 * HLTV Single Match Page Styles — AdriaZone Design System
 *
 * Matches design tokens from:
 *   hltv-tournament-style.css  (card system, borders, stat grids)
 *   hltv-news-style.css        (row pattern, section headers)
 *   hltv-profile-style.css     (color variables, form inputs)
 *   hltv-matches-style.css     (team rows, score colors)
 */

/* ============================================
   Base Container
   ============================================ */
.hltv-sm {
    max-width: 900px;
    margin: 0 auto;
    font-family: inherit;
    color: #c9d1d9;
}

.hltv-sm-empty {
    padding: 40px 20px;
    text-align: center;
    color: #6e7681;
    font-size: 13px;
    background: #161a21;
    border: 1px solid #30363d;
    border-radius: 10px;
}

/* ============================================
   Match Header
   ============================================ */
.hltv-sm-header {
    background: #161a21;
    border-radius: 10px 10px 0 0;
    padding: 24px 32px 28px;
    border: 1px solid #30363d;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

/* Subtle red glow top-left — matches profile hero */
.hltv-sm-header::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(233,69,96,.1) 0%, transparent 70%);
    pointer-events: none;
}

.hltv-sm-header-top {
    text-align: center;
    margin-bottom: 24px;
}

.hltv-sm-league-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #e94560;
    text-decoration: none !important;
    margin-bottom: 8px;
    transition: color .15s;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.hltv-sm-league-link:hover { color: #ff7089; }

.hltv-sm-header-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hltv-sm-date {
    font-size: 12px;
    color: #8fa3b3;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hltv-sm-date svg { color: #6e7681; }

.hltv-sm-format-badge {
    font-size: 11px;
    font-weight: 800;
    color: #e6edf3;
    background: #1c2333;
    border: 1px solid #30363d;
    padding: 2px 9px;
    border-radius: 4px;
    letter-spacing: .08em;
}

.hltv-sm-stage-badge {
    font-size: 11px;
    font-weight: 700;
    color: #8fa3b3;
    background: #1c2333;
    border: 1px solid #30363d;
    padding: 2px 9px;
    border-radius: 4px;
    letter-spacing: .04em;
}

.hltv-sm-venue {
    font-size: 12px;
    color: #8fa3b3;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hltv-sm-venue svg { color: #6e7681; }

/* ============================================
   Matchup (Teams + Score)
   ============================================ */
.hltv-sm-matchup {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.hltv-sm-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hltv-sm-team-left  { justify-self: end; }
.hltv-sm-team-right { justify-self: start; }

.hltv-sm-team-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
}

.hltv-sm-team-logo-placeholder {
    width: 76px;
    height: 76px;
    background: #1c2333;
    border: 1px solid #30363d;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hltv-sm-team-name {
    font-size: 17px;
    font-weight: 700;
    color: #e6edf3;
    text-align: center;
    line-height: 1.3;
}

.hltv-sm-team-flag {
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.hltv-sm-winner .hltv-sm-team-name { color: #3fb950; }

/* Score Center */
.hltv-sm-score-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 110px;
}

.hltv-sm-live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #e94560;
    text-transform: uppercase;
    letter-spacing: .08em;
    animation: hltv-sm-pulse 2s ease-in-out infinite;
}

.hltv-sm-scores {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hltv-sm-score {
    font-size: 42px;
    font-weight: 900;
    color: #e6edf3;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.hltv-sm-score-win  { color: #3fb950; }
.hltv-sm-score-loss { color: #6e7681; }

.hltv-sm-score-divider {
    font-size: 30px;
    color: #30363d;
    font-weight: 300;
}

.hltv-sm-vs {
    font-size: 22px;
    color: #6e7681;
    font-weight: 700;
    text-transform: uppercase;
}

.hltv-sm-countdown {
    font-size: 13px;
    color: #8fa3b3;
    font-weight: 600;
    background: #1c2333;
    border: 1px solid #30363d;
    padding: 4px 12px;
    border-radius: 6px;
}

/* ============================================
   Navigation Tabs — matches .hltv-profile-tab
   ============================================ */
.hltv-sm-tabs {
    display: flex;
    background: #161a21;
    border-left: 1px solid #30363d;
    border-right: 1px solid #30363d;
    border-bottom: 1px solid #30363d;
    overflow-x: auto;
    scrollbar-width: none;
}

.hltv-sm-tabs::-webkit-scrollbar { display: none; }

.hltv-sm-tab {
    flex: 1;
    padding: 12px 18px;
    background: transparent;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 2px solid transparent !important;
    color: #6e7681;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    cursor: pointer;
    transition: color .15s, border-color .15s, background .15s;
    white-space: nowrap;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
}

.hltv-sm-tab:hover {
    color: #c9d1d9;
    background: rgba(255,255,255,.02);
}

.hltv-sm-tab:focus { outline: none !important; box-shadow: none !important; }

.hltv-sm-tab:focus-visible {
    outline: 2px solid #e94560 !important;
    outline-offset: -2px;
    border-radius: 3px;
}

.hltv-sm-tab.active {
    color: #e94560 !important;
    border-bottom-color: #e94560 !important;
    background: rgba(233,69,96,.04);
}

/* ============================================
   Tab Content
   ============================================ */
.hltv-sm-tab-content {
    display: none;
    background: #161a21;
    border: 1px solid #30363d;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 24px;
}

.hltv-sm-tab-content.active { display: block; }

/* ============================================
   Section Headers — matches .hltv-news-section-title
   ============================================ */
.hltv-sm-section {
    margin-bottom: 24px;
}

.hltv-sm-section:last-child { margin-bottom: 0; }

.hltv-sm-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #8fa3b3;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #21262d;
}

.hltv-sm-section-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 13px;
    background: #e94560;
    border-radius: 2px;
    flex-shrink: 0;
}

.hltv-sm-section-title svg,
.hltv-sm-section-title img {
    color: #e94560;
    flex-shrink: 0;
    opacity: .8;
}

/* ============================================
   Map Veto
   ============================================ */
.hltv-sm-veto {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hltv-sm-veto-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    background: #1c2333;
    border: 1px solid #21262d;
    font-size: 13px;
    animation: hltv-sm-fadein 0.3s ease forwards;
    opacity: 0;
}

.hltv-sm-veto-step:nth-child(1) { animation-delay: .05s; }
.hltv-sm-veto-step:nth-child(2) { animation-delay: .10s; }
.hltv-sm-veto-step:nth-child(3) { animation-delay: .15s; }
.hltv-sm-veto-step:nth-child(4) { animation-delay: .20s; }
.hltv-sm-veto-step:nth-child(5) { animation-delay: .25s; }
.hltv-sm-veto-step:nth-child(6) { animation-delay: .30s; }
.hltv-sm-veto-step:nth-child(7) { animation-delay: .35s; }

.hltv-sm-veto-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.hltv-sm-veto-ban     .hltv-sm-veto-icon { background: rgba(248,81,73,.12);  color: #f85149; }
.hltv-sm-veto-pick    .hltv-sm-veto-icon { background: rgba(63,185,80,.12);  color: #3fb950; }
.hltv-sm-veto-decider .hltv-sm-veto-icon { background: rgba(245,166,35,.12); color: #f5a623; }

.hltv-sm-veto-team {
    font-weight: 600;
    color: #e6edf3;
    min-width: 100px;
}

.hltv-sm-veto-action {
    color: #6e7681;
    font-weight: 500;
    text-transform: lowercase;
}

.hltv-sm-veto-ban     .hltv-sm-veto-action { color: #f85149; }
.hltv-sm-veto-pick    .hltv-sm-veto-action { color: #3fb950; }
.hltv-sm-veto-decider .hltv-sm-veto-action { color: #f5a623; }

.hltv-sm-veto-map {
    font-weight: 600;
    color: #e6edf3;
    margin-left: auto;
    background: #1c2333;
    border: 1px solid #30363d;
    padding: 2px 10px;
    border-radius: 4px;
}

/* ============================================
   Map Results Overview
   ============================================ */
.hltv-sm-maps-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.hltv-sm-map-card {
    background: #1c2333;
    border: 1px solid #30363d;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .15s;
}

.hltv-sm-map-card:hover { border-color: #e94560; }

.hltv-sm-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 13px;
    background: #161a21;
    border-bottom: 1px solid #21262d;
}

.hltv-sm-map-name {
    font-size: 13px;
    font-weight: 700;
    color: #e6edf3;
}

.hltv-sm-map-pick {
    font-size: 10px;
    color: #6e7681;
    background: #1c2333;
    border: 1px solid #21262d;
    padding: 2px 7px;
    border-radius: 3px;
    font-weight: 600;
}

.hltv-sm-map-scores {
    padding: 10px 13px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hltv-sm-map-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #8b949e;
}

.hltv-sm-map-team-name { font-weight: 500; }

.hltv-sm-map-team-score {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    min-width: 24px;
    text-align: right;
}

.hltv-sm-map-winner,
.hltv-sm-map-winner .hltv-sm-map-team-score { color: #3fb950; }

/* ============================================
   Map Detail
   ============================================ */
.hltv-sm-map-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #21262d;
}

.hltv-sm-map-detail-score {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #1c2333;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 16px;
}

.hltv-sm-map-detail-team {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #8b949e;
}

.hltv-sm-map-detail-team img { border-radius: 4px; }
.hltv-sm-map-detail-team span { flex: 1; font-weight: 500; }

.hltv-sm-map-detail-team strong {
    font-size: 20px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.hltv-sm-map-detail-team.hltv-sm-map-winner { color: #3fb950; }

/* ============================================
   Streams
   ============================================ */
.hltv-sm-streams { display: flex; flex-wrap: wrap; gap: 8px; }

.hltv-sm-stream-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: #1c2333;
    border: 1px solid #30363d;
    border-radius: 8px;
    text-decoration: none !important;
    color: #c9d1d9 !important;
    font-size: 13px;
    font-weight: 600;
    transition: border-color .15s, background .15s, transform .15s;
}

.hltv-sm-stream-link:hover {
    background: #21262d;
    border-color: #3d4a5a;
    transform: translateY(-1px);
    color: #e6edf3 !important;
}

.hltv-sm-platform-twitch  .hltv-sm-platform-icon { color: #9146ff; }
.hltv-sm-platform-youtube .hltv-sm-platform-icon { color: #ff0000; }
.hltv-sm-platform-kick    .hltv-sm-platform-icon { color: #53fc18; }

.hltv-sm-stream-lang {
    font-size: 10px;
    color: #8fa3b3;
    background: #161a21;
    border: 1px solid #30363d;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: .05em;
}

/* ============================================
   Highlights Button
   ============================================ */
.hltv-sm-highlights-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: #e94560;
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    transition: background .15s, transform .15s, box-shadow .15s;
    box-shadow: 0 4px 14px rgba(233,69,96,.3);
}

.hltv-sm-highlights-btn:hover {
    background: #c73e54;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233,69,96,.4);
}

/* ============================================
   MVP
   ============================================ */
.hltv-sm-mvp {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #1c2333;
    border: 1px solid rgba(245,166,35,.25);
    border-radius: 8px;
}

.hltv-sm-mvp-photo {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f5a623;
    box-shadow: 0 0 12px rgba(245,166,35,.2);
}

.hltv-sm-mvp-info { display: flex; align-items: center; gap: 8px; }

.hltv-sm-mvp-name {
    font-size: 16px;
    font-weight: 700;
    color: #f5a623;
}

.hltv-sm-mvp-flag {
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
}

.hltv-sm-mvp-rating {
    font-size: 12px;
    font-weight: 700;
    color: #f5a623;
    background: rgba(245,166,35,.1);
    border: 1px solid rgba(245,166,35,.25);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ============================================
   Player Table
   ============================================ */
.hltv-sm-player-table-wrap {
    overflow-x: auto;
    border: 1px solid #30363d;
    border-radius: 8px;
}

.hltv-sm-player-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.hltv-sm-player-table thead th {
    padding: 9px 13px;
    background: #1c2333;
    color: #6e7681;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-align: center;
    border-bottom: 1px solid #30363d;
    white-space: nowrap;
}

.hltv-sm-player-table thead th.hltv-sm-pt-player {
    text-align: left;
    min-width: 140px;
}

.hltv-sm-player-table tbody td {
    padding: 10px 13px;
    text-align: center;
    color: #c9d1d9;
    border-bottom: 1px solid #21262d;
    font-variant-numeric: tabular-nums;
}

.hltv-sm-player-table tbody tr:last-child td { border-bottom: none; }

.hltv-sm-player-table tbody tr:hover { background: #1c2333; }

.hltv-sm-pt-player-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hltv-sm-pt-flag {
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,.3);
    flex-shrink: 0;
}

.hltv-sm-pt-name {
    font-weight: 600;
    color: #e6edf3;
    white-space: nowrap;
    text-decoration: none !important;
    transition: color .15s;
}

a.hltv-sm-pt-name:hover { color: #e94560; }

/* ============================================
   H2H Summary Bar
   ============================================ */
.hltv-sm-h2h-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 14px;
    background: #1c2333;
    border: 1px solid #30363d;
    border-radius: 8px;
    font-size: 13px;
    color: #8b949e;
}

.hltv-sm-h2h-stat strong { color: #e6edf3; font-weight: 800; }

.hltv-sm-h2h-summary-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: #1c2333;
    border: 1px solid #30363d;
    border-radius: 8px;
    margin-bottom: 14px;
}

.hltv-sm-h2h-bar-team {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #e6edf3;
    white-space: nowrap;
}

.hltv-sm-h2h-bar-team strong { font-size: 20px; font-weight: 900; }
.hltv-sm-h2h-bar-team img    { border-radius: 4px; }
.hltv-sm-h2h-bar-team-right  { justify-content: flex-end; }

.hltv-sm-h2h-bar-visual { flex: 1; min-width: 100px; }

.hltv-sm-h2h-bar {
    display: flex;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    background: #21262d;
}

.hltv-sm-h2h-bar-fill { height: 100%; transition: width .6s ease; }
.hltv-sm-h2h-bar-t1   { background: #58a6ff; }
.hltv-sm-h2h-bar-t2   { background: #e94560; }

/* H2H List */
.hltv-sm-h2h-list { display: flex; flex-direction: column; gap: 4px; }

.hltv-sm-h2h-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: #1c2333;
    border: 1px solid #21262d;
    border-radius: 8px;
    text-decoration: none !important;
    color: inherit;
    transition: background .12s, border-color .12s;
}

.hltv-sm-h2h-item:hover {
    background: #21262d;
    border-color: #30363d;
}

.hltv-sm-h2h-date {
    font-size: 11px;
    color: #6e7681;
    min-width: 78px;
    font-weight: 500;
    flex-shrink: 0;
}

.hltv-sm-h2h-matchup {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.hltv-sm-h2h-team-row {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 20px;
}

.hltv-sm-h2h-team-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 3px;
    flex-shrink: 0;
}

.hltv-sm-h2h-team-flag {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,.3);
    flex-shrink: 0;
    object-fit: cover;
}

.hltv-sm-h2h-team-name {
    font-size: 13px;
    color: #8b949e;
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hltv-sm-h2h-team-score {
    font-size: 13px;
    font-weight: 800;
    color: #6e7681;
    font-variant-numeric: tabular-nums;
    min-width: 18px;
    text-align: right;
    flex-shrink: 0;
}

.hltv-sm-h2h-row-win .hltv-sm-h2h-team-name  { color: #3fb950; font-weight: 700; }
.hltv-sm-h2h-row-win .hltv-sm-h2h-team-score { color: #3fb950 !important; }

.hltv-sm-score-green { color: #3fb950 !important; }
.hltv-sm-score-vs    { color: #6e7681 !important; font-weight: 500 !important; font-size: 11px !important; }

.hltv-sm-h2h-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.hltv-sm-h2h-result-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: .03em;
    white-space: nowrap;
}

.hltv-sm-result-t1 { color: #58a6ff; background: rgba(88,166,255,.1); border: 1px solid rgba(88,166,255,.2); }
.hltv-sm-result-t2 { color: #e94560; background: rgba(233,69,96,.1);  border: 1px solid rgba(233,69,96,.2); }

.hltv-sm-h2h-league {
    font-size: 10px;
    color: #6e7681;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

/* ============================================
   Maps Pool (Upcoming)
   ============================================ */
.hltv-sm-maps-pool { display: flex; flex-wrap: wrap; gap: 8px; }

.hltv-sm-map-pool-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #1c2333;
    border: 1px solid #30363d;
    border-radius: 8px;
    transition: border-color .15s;
}

.hltv-sm-map-pool-item:hover { border-color: #e94560; }

.hltv-sm-map-pool-name {
    font-size: 13px;
    font-weight: 700;
    color: #e6edf3;
}

/* ============================================
   Rosters
   ============================================ */
.hltv-sm-rosters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.hltv-sm-roster-col {
    background: #1c2333;
    border: 1px solid #30363d;
    border-radius: 8px;
    overflow: hidden;
}

.hltv-sm-roster-team-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #161a21;
    border-bottom: 1px solid #30363d;
    font-size: 13px;
    font-weight: 700;
    color: #e6edf3;
}

.hltv-sm-roster-team-header img { border-radius: 4px; }

.hltv-sm-roster-player {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #21262d;
    transition: background .12s;
}

.hltv-sm-roster-player:last-child { border-bottom: none; }
.hltv-sm-roster-player:hover { background: rgba(255,255,255,.02); }

.hltv-sm-roster-photo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #30363d;
    flex-shrink: 0;
}

.hltv-sm-roster-flag {
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,.3);
    flex-shrink: 0;
}

.hltv-sm-roster-name {
    font-size: 13px;
    font-weight: 600;
    color: #c9d1d9;
    flex: 1;
}

.hltv-sm-roster-link {
    text-decoration: none !important;
    color: #c9d1d9;
    transition: color .15s;
}

.hltv-sm-roster-link:hover { color: #e94560; }

.hltv-sm-roster-role {
    font-size: 10px;
    color: #8fa3b3;
    background: #161a21;
    border: 1px solid #21262d;
    padding: 2px 7px;
    border-radius: 3px;
    font-weight: 600;
}

/* ============================================
   Previous Matches
   ============================================ */
.hltv-sm-prev-list { display: flex; flex-direction: column; gap: 4px; }

.hltv-sm-prev-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: #1c2333;
    border: 1px solid #21262d;
    border-radius: 8px;
    text-decoration: none !important;
    color: inherit;
    transition: background .12s, border-color .12s;
}

.hltv-sm-prev-item:hover {
    background: #21262d;
    border-color: #30363d;
}

.hltv-sm-prev-date {
    font-size: 11px;
    color: #6e7681;
    min-width: 78px;
    font-weight: 500;
    flex-shrink: 0;
}

.hltv-sm-prev-wl {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.hltv-sm-prev-wl-w { color: #3fb950; background: rgba(63,185,80,.12);  border: 1px solid rgba(63,185,80,.25); }
.hltv-sm-prev-wl-l { color: #f85149; background: rgba(248,81,73,.12);  border: 1px solid rgba(248,81,73,.25); }

.hltv-sm-prev-matchup {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.hltv-sm-prev-team-row {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 20px;
}

.hltv-sm-prev-team-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 3px;
    flex-shrink: 0;
}

.hltv-sm-prev-team-flag {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,.3);
    flex-shrink: 0;
    object-fit: cover;
}

.hltv-sm-prev-team-name {
    font-size: 13px;
    color: #8b949e;
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hltv-sm-prev-team-score {
    font-size: 13px;
    font-weight: 800;
    color: #6e7681;
    font-variant-numeric: tabular-nums;
    min-width: 18px;
    text-align: right;
    flex-shrink: 0;
}

.hltv-sm-prev-row-win .hltv-sm-prev-team-name  { color: #3fb950; font-weight: 700; }
.hltv-sm-prev-row-win .hltv-sm-prev-team-score { color: #3fb950 !important; }

.hltv-sm-prev-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.hltv-sm-prev-league {
    font-size: 10px;
    color: #6e7681;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

/* ============================================
   Comments Section
   ============================================ */
.hltv-sm-comments-section {
    margin-top: 20px;
    padding: 20px;
    background: #161a21;
    border: 1px solid #30363d;
    border-radius: 10px;
}

.hltv-sm-comments-section .hltv-sm-section-title { margin-bottom: 12px; }

.hltv-sm-no-comments {
    color: #6e7681;
    font-size: 13px;
    text-align: center;
    padding: 12px;
}

.hltv-sm-comment-count {
    font-size: 12px;
    font-weight: 600;
    color: #8b949e;
    text-transform: none;
    letter-spacing: 0;
}

/* Comment list */
.hltv-sm-comments-list,
.hltv-sm-comments-section .comment-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #30363d #161a21;
    margin-bottom: 16px;
    list-style: none;
    padding: 0;
    margin-top: 0;
}

.hltv-sm-comments-list::-webkit-scrollbar,
.hltv-sm-comments-section .comment-list::-webkit-scrollbar { width: 4px; }

.hltv-sm-comments-list::-webkit-scrollbar-track,
.hltv-sm-comments-section .comment-list::-webkit-scrollbar-track { background: #161a21; }

.hltv-sm-comments-list::-webkit-scrollbar-thumb,
.hltv-sm-comments-section .comment-list::-webkit-scrollbar-thumb { background: #30363d; border-radius: 2px; }

/* Individual comment */
.hltv-sm-comment,
.hltv-sm-comments-section .comment {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    background: #1c2333;
    border: 1px solid #21262d;
    border-radius: 6px;
    transition: background .12s;
}

.hltv-sm-comment:hover,
.hltv-sm-comments-section .comment:hover { background: #21262d; }

.hltv-sm-comment-avatar-wrap { flex-shrink: 0; }
.hltv-sm-comment-avatar-wrap img,
.hltv-sm-comment-avatar-wrap .avatar { border-radius: 50%; width: 32px; height: 32px; }

.hltv-sm-comments-section .comment .comment-author {
    font-weight: 700;
    font-size: 13px;
    color: #e94560;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hltv-sm-comments-section .comment .comment-author img { border-radius: 50%; width: 24px; height: 24px; }

.hltv-sm-comment-body { flex: 1; min-width: 0; }

.hltv-sm-comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.hltv-sm-comment-author { font-size: 13px; font-weight: 700; color: #e94560; }
.hltv-sm-comment-date,
.hltv-sm-comments-section .comment .comment-metadata { font-size: 11px; color: #6e7681; }

.hltv-sm-comment-text,
.hltv-sm-comments-section .comment .comment-content { font-size: 13px; color: #c9d1d9; line-height: 1.5; }
.hltv-sm-comment-text p,
.hltv-sm-comments-section .comment .comment-content p { margin: 0 0 4px; }

.hltv-sm-comments-section .comment .comment-metadata a { color: #6e7681; text-decoration: none; }

.hltv-sm-comments-section .comment .reply a {
    font-size: 11px;
    color: #e94560;
    text-decoration: none;
    font-weight: 600;
}

.hltv-sm-comments-section .comment .reply a:hover { text-decoration: underline; }
.hltv-sm-comments-section .children { list-style: none; padding-left: 16px; margin: 4px 0 0; }

/* Comment form */
.hltv-sm-comment-form-wrap,
.hltv-sm-comments-section .comment-respond {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #21262d;
}

.hltv-sm-comments-section .comment-respond .comment-reply-title {
    font-size: 13px;
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.hltv-sm-comment-textarea-wrap textarea,
.hltv-sm-comments-section .comment-form input[type="text"],
.hltv-sm-comments-section .comment-form input[type="email"],
.hltv-sm-comments-section .comment-form input[type="url"],
.hltv-sm-comments-section .comment-form textarea {
    width: 100%;
    padding: 9px 13px;
    background: #1c2333;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #e6edf3;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color .2s;
    box-sizing: border-box;
    margin-bottom: 8px;
}

.hltv-sm-comment-textarea-wrap textarea::placeholder,
.hltv-sm-comments-section .comment-form textarea::placeholder { color: #6e7681; }

.hltv-sm-comment-textarea-wrap textarea:focus,
.hltv-sm-comments-section .comment-form input:focus,
.hltv-sm-comments-section .comment-form textarea:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233,69,96,.12);
}

.hltv-sm-comments-section .comment-form label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #6e7681;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 4px;
}

.hltv-sm-submit-btn,
.hltv-sm-comments-section .comment-form .form-submit input[type="submit"] {
    padding: 9px 22px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .15s, box-shadow .15s;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.hltv-sm-submit-btn:hover,
.hltv-sm-comments-section .comment-form .form-submit input[type="submit"]:hover {
    background: #c73e54;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233,69,96,.3);
}

/* ============================================
   Badges & Misc
   ============================================ */
.hltv-sm-auto-badge {
    font-size: 9px;
    font-weight: 700;
    color: #3fb950;
    background: rgba(63,185,80,.1);
    border: 1px solid rgba(63,185,80,.2);
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-left: 4px;
}

.hltv-sm-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #e94560;
    background: rgba(233,69,96,.1);
    border: 1px solid rgba(233,69,96,.25);
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .08em;
    animation: hltv-sm-pulse 2s ease-in-out infinite;
}

.live-dot-sm {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e94560;
    animation: hltv-sm-pulse 1.5s ease-in-out infinite;
}

.hltv-sm-stars { display: inline-flex; align-items: center; gap: 2px; }
.star-icon        { color: #30363d; }
.star-icon.star-filled { color: #f5a623; }

/* SportsPress data override */
.hltv-sm-sp-data .sp-template { background: transparent; color: #c9d1d9; }
.hltv-sm-sp-data table        { background: transparent; color: #c9d1d9; border-color: #21262d; }
.hltv-sm-sp-data th           { background: #1c2333; color: #6e7681; border-color: #21262d; }
.hltv-sm-sp-data td           { color: #c9d1d9; border-color: #21262d; }

/* ============================================
   Animations
   ============================================ */
@keyframes hltv-sm-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .4; }
}

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

.hltv-sm-section { animation: hltv-sm-fadein .35s ease forwards; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .hltv-sm-header   { padding: 16px; }
    .hltv-sm-matchup  { gap: 12px; }
    .hltv-sm-team-logo { width: 54px; height: 54px; }
    .hltv-sm-team-name { font-size: 14px; }
    .hltv-sm-score    { font-size: 32px; }
    .hltv-sm-score-divider { font-size: 22px; }
    .hltv-sm-tab-content  { padding: 16px; }
    .hltv-sm-tab      { padding: 11px 12px; font-size: 11px; }
    .hltv-sm-header-meta  { flex-direction: column; gap: 6px; }
    .hltv-sm-maps-overview { grid-template-columns: 1fr; }
    .hltv-sm-veto-team { min-width: 60px; }
    .hltv-sm-rosters-grid { grid-template-columns: 1fr; }
    .hltv-sm-maps-pool    { flex-direction: column; }
    .hltv-sm-h2h-item,
    .hltv-sm-prev-item    { flex-wrap: wrap; gap: 8px; }
    .hltv-sm-h2h-right,
    .hltv-sm-prev-right   { width: 100%; flex-direction: row; align-items: center; justify-content: flex-end; }
    .hltv-sm-h2h-summary-bar { flex-direction: column; gap: 10px; }
    .hltv-sm-h2h-bar-team { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .hltv-sm-team-logo   { width: 40px; height: 40px; }
    .hltv-sm-team-name   { font-size: 12px; }
    .hltv-sm-score       { font-size: 24px; }
    .hltv-sm-score-center { min-width: 80px; }
    .hltv-sm-veto-step   { flex-wrap: wrap; gap: 6px; }
    .hltv-sm-veto-map    { margin-left: 0; }
}
