/* =========================================
   相关比赛板块样式
   ========================================= */

.related-matches-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-matches-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
}

.related-matches-header {
    padding: 18px 20px;
    background: rgba(30, 41, 59, 0.4);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-matches-header i {
    color: #6366f1;
    font-size: 1.1rem;
}

.related-matches-header h5 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f1f5f9;
}

.related-matches-list {
    padding: 0;
}

.related-match-item {
    display: block;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-match-item:last-child {
    border-bottom: none;
}

.related-match-item:hover {
    background: rgba(99, 102, 241, 0.08);
    transform: translateX(4px);
}

.related-match-teams {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.related-match-teams .team-name {
    color: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
}

.related-match-teams .vs-text {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 400;
}

.related-match-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.related-match-meta .match-league {
    color: #94a3b8;
    font-size: 0.75rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-match-meta .match-time {
    color: #6366f1;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

/* 响应式布局 */
@media (max-width: 991px) {
    /* 移动端：相关比赛板块在聊天室下方 */
    .related-matches-card {
        margin-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    .related-matches-header {
        padding: 14px 16px;
    }
    
    .related-matches-header h5 {
        font-size: 0.875rem;
    }
    
    .related-match-item {
        padding: 12px 16px;
    }
    
    .related-match-teams .team-name {
        font-size: 0.8125rem;
    }
    
    .related-match-meta .match-league,
    .related-match-meta .match-time {
        font-size: 0.7rem;
    }
}
