/**
 * HLTV Matches Style — AdriaZone Design System
 *
 * Matches design tokens from:
 *   hltv-news-style.css        (list/row pattern, borders)
 *   hltv-tournament-style.css  (card system, section headers)
 *   hltv-profile-style.css     (color variables, typography)
 *
 * Covers:
 *   .hltv-mp-*  — full match list page
 *   .hltv-mw-*  — sidebar match widget
 */

/* ============================================
   Shared reset
   ============================================ */
.hltv-mp, .hltv-mw {
    font-family: inherit;
    color: #c9d1d9;
}

/* ============================================
   Section Labels (RESULTS / LIVE / UPCOMING)
   ============================================ */
.hltv-mp-label,
.hltv-mw-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6e7681;
    border-bottom: 1px solid #21262d;
    background: #161a21;
}

.hltv-mp-label-live,     .hltv-mw-label-live     { color: #e94560; }
.hltv-mp-label-upcoming, .hltv-mw-label-upcoming  { color: #f5a623; }
.hltv-mp-label-results,  .hltv-mw-label-results   { color: #6e7681; }

/* Count badge */
.hltv-mp-count,
.hltv-mw-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    background: #e94560;
    color: #fff;
    line-height: 1;
}

/* ============================================
   Full Match List (.hltv-mp-*)
   ============================================ */
.hltv-mp-list {
    display: flex;
    flex-direction: column;
    background: #161a21;
    border: 1px solid #30363d;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 4px;
}

.hltv-mp-group {
    display: flex;
    flex-direction: column;
}

/* Date separator e.g. "SUNDAY, MAR 15" */
.hltv-mp-ft {
    padding: 6px 14px 4px;
    font-size: 11px;
    font-weight: 700;
    color: #f5a623;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: #161a21;
    border-bottom: 1px solid #21262d;
}

/* Each match row */
.hltv-mp-match {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 14px 9px;
    border-bottom: 1px solid #21262d;
    text-decoration: none !important;
    color: inherit;
    transition: background .12s;
    cursor: pointer;
    background: #161a21;
}

.hltv-mp-match:last-child { border-bottom: none; }

.hltv-mp-match:hover {
    background: #1c2333;
    text-decoration: none !important;
}

.hltv-mp-match-live {
    border-left: 2px solid #e94560;
    padding-left: 12px;
}

/* Teams — stacked vertically */
.hltv-mp-teams {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hltv-mp-team {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 1px 0;
}

.hltv-mp-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 2px;
}

.hltv-mp-name {
    flex: 1;
    font-size: 13px;
    color: #8b949e;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none !important;
}

/* Winner */
.hltv-mp-team-win .hltv-mp-name {
    color: #c9d1d9;
    font-weight: 700;
}

.hltv-mp-score {
    font-size: 13px;
    font-weight: 700;
    color: #6e7681;
    min-width: 20px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    text-decoration: none !important;
}

.hltv-mp-team-win .hltv-mp-score {
    color: #3fb950 !important;
}

/* Info row below teams */
.hltv-mp-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.hltv-mp-league {
    font-size: 11px;
    color: #50545f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none !important;
}

.hltv-mp-format,
.hltv-mp-maps,
.hltv-mp-map-tag,
.hltv-mp-status {
    font-size: 10px;
    color: #50545f;
}

.hltv-mp-time {
    font-size: 11px;
    color: #6e7681;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.hltv-mp-live-tag {
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    background: #e94560;
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    flex-shrink: 0;
    animation: hltv-match-pulse 2s ease-in-out infinite;
}

.hltv-mp-dot, .hltv-mw-dot {
    width: 6px;
    height: 6px;
    background: #e94560;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    animation: hltv-match-pulse 2s ease-in-out infinite;
}

.hltv-mp-flag, .hltv-mw-flag {
    width: 16px;
    height: 11px;
    border-radius: 1px;
    object-fit: cover;
    flex-shrink: 0;
}

.hltv-mp-stream { font-size: 10px; color: #9146ff; }

.hltv-mp-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.hltv-mp-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

/* Stars */
.match-stars      { display: flex; gap: 1px; flex-shrink: 0; }
.star-icon        { font-size: 9px; color: #30363d; }
.star-icon-filled { color: #f5a623; }
.tiny-text        { font-size: 10px; color: #50545f; }

/* Empty state */
.hltv-mp-empty,
.hltv-mw-empty {
    padding: 24px 14px;
    text-align: center;
    color: #6e7681;
    font-size: 13px;
    background: #161a21;
}

/* ============================================
   Sidebar Widget (.hltv-mw-*)
   ============================================ */
.hltv-mw {
    background: #161a21;
    border: 1px solid #30363d;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.hltv-mw-group {
    display: flex;
    flex-direction: column;
}

/* Date separator */
.hltv-mw-day-sep {
    padding: 5px 14px 4px;
    border-bottom: 1px solid #21262d;
    background: #161a21;
}

.hltv-mw-day-text {
    font-size: 10px;
    font-weight: 700;
    color: #f5a623;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Match block */
.hltv-mw-match {
    display: flex;
    flex-direction: column;
    padding: 10px 14px 9px;
    border-bottom: 1px solid #21262d;
    text-decoration: none !important;
    color: inherit;
    transition: background .12s;
    background: #161a21;
}

.hltv-mw-match:last-child { border-bottom: none; }

.hltv-mw-match:hover {
    background: #1c2333;
    text-decoration: none !important;
}

.hltv-mw-match-live {
    border-left: 2px solid #e94560;
    padding-left: 12px;
}

.hltv-mw-teams {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hltv-mw-team {
    display: flex;
    align-items: center;
    gap: 7px;
}

.hltv-mw-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 2px;
}

.hltv-mw-name {
    flex: 1;
    font-size: 13px;
    color: #8b949e;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none !important;
}

.hltv-mw-name.hltv-mw-tbd { color: #50545f; font-style: italic; }

.hltv-mw-team-win .hltv-mw-name {
    color: #c9d1d9;
    font-weight: 700;
}

.hltv-mw-score {
    font-size: 13px;
    font-weight: 700;
    color: #6e7681;
    min-width: 20px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    text-decoration: none !important;
}

.hltv-mw-team-win .hltv-mw-score,
.hltv-mw-score-live {
    color: #3fb950 !important;
}

/* Meta row */
.hltv-mw-meta {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hltv-mw-league {
    font-size: 11px;
    color: #50545f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none !important;
}

.hltv-mw-format,
.hltv-mw-maps,
.hltv-mw-time       { font-size: 10px; color: #50545f; }

.hltv-mw-live-tag   { font-size: 9px; font-weight: 700; color: #e94560; text-transform: uppercase; }
.hltv-mw-stream-icon { color: #9146ff; font-size: 10px; }

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

/* ============================================
   Remove underlines — Astra override
   ============================================ */
.hltv-mp-match,
.hltv-mp-match:hover,
.hltv-mp-match:focus,
.hltv-mw-match,
.hltv-mw-match:hover,
.hltv-mw-match:focus {
    text-decoration: none !important;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 600px) {
    .hltv-mp-league { display: none; }
    .hltv-mp-name,
    .hltv-mw-name   { font-size: 12px; }
    .hltv-mp-match,
    .hltv-mw-match  { padding: 9px 12px 8px; }
}
