        body {
            font-family: Arial, sans-serif;
            margin: 20px;
            background-color: #f5f5f5;
            position: relative;
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            background-color: rgba(0, 0, 0, 0.6);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background-color: #ffffff;
            padding: 20px;
            border: 1px solid #888;
            border-radius: 8px;
            box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
            animation-name: modalopen;
            animation-duration: 0.4s;
            width: 90%;
            max-width: 600px;
            max-height: 85vh;
            display: flex;
            flex-direction: column;
        }

        .modal-content-inner {
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            flex: 1;
            margin-bottom: 15px;
        }

        #announcement-title {
            margin-top: 0;
            margin-bottom: 15px;
            color: #333;
            font-size: 20px;
            text-align: center;
            flex-shrink: 0;
        }

        #announcement-content {
            line-height: 1.6;
            font-size: 16px;
            word-wrap: break-word;
            overflow-wrap: break-word;
            white-space: pre-wrap;
            flex-shrink: 0;
        }

        .close {
            color: #aaaaaa;
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            z-index: 2001;
        }

        .close:hover,
        .close:focus {
            color: #000;
            text-decoration: none;
            cursor: pointer;
        }

        .modal-ok-button {
            background-color: #4CAF50;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            align-self: flex-end;
            flex-shrink: 0;
        }

        .modal-ok-button:hover {
            background-color: #45a049;
        }

        @media (max-width: 768px) {
            .modal-content {
                width: 95%;
                padding: 15px;
                max-height: 90vh;
                border-radius: 6px;
            }

            #announcement-title {
                font-size: 18px;
                margin-bottom: 12px;
            }

            #announcement-content {
                font-size: 15px;
            }

            .close {
                font-size: 24px;
                top: 10px;
                right: 15px;
            }

            .modal-ok-button {
                padding: 8px 16px;
                font-size: 15px;
            }
        }

        @media (max-width: 480px) {
            .modal-content {
                width: 97%;
                padding: 12px;
                max-height: 92vh;
                border-radius: 5px;
            }

            #announcement-title {
                font-size: 17px;
                margin-bottom: 10px;
            }

            #announcement-content {
                font-size: 14px;
            }

            .close {
                font-size: 22px;
                top: 8px;
                right: 12px;
            }

            .modal-ok-button {
                padding: 7px 14px;
                font-size: 14px;
            }
        }

        .scroll-hint {
            position: absolute;
            top: 50%;
            right: 10px;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 8px 12px;
            border-radius: 20px;
            font-size: 12px;
            opacity: 0.8;
            pointer-events: none;
            transition: opacity 0.3s;
            z-index: 100;
        }
        .scroll-hint.hidden {
            opacity: 0;
        }
         
        .table-container {
            position: relative;
        } 
        .watermark {
            position: fixed;
            color: rgba(0, 0, 0, 0.1);
            pointer-events: none;
            z-index: 9999;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
        }
 
        .watermark-1 {
            top: 70%;
            left: 30%;
            transform: translate(-50%, -50%) rotate(-30deg);
            font-size: 30px;
            white-space: nowrap;
        }
 
        .watermark-2 {
            top: 30%;
            left: 70%;
            transform: translate(-50%, -50%) rotate(-30deg);
            font-size: 30px;
            white-space: nowrap;
        }
 
        .watermark-3 {
            top: 30%;
            left: 30%;
            transform: translate(-50%, -50%) rotate(-30deg);
            font-size: 30px;
            white-space: nowrap;
        }
 
        .watermark-4 {
            top: 70%;
            left: 70%;
            transform: translate(-50%, -50%) rotate(-30deg);
            font-size: 30px;
            white-space: nowrap;
        }
        h1 {
            text-align: center;
            color: #333;
            font-size: 24px;
        }

        /* 筛选区域容器 */
        .filter-section {
            width: 95%;
            margin: 20px auto;
            background-color: #fff;
            border-radius: 5px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            overflow: hidden;
        }

        /* 操作栏（不被折叠） */
        .filter-actions-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 15px;
            background-color: #f5f5f5;
            border-bottom: 1px solid #e0e0e0;
            flex-wrap: wrap;
            gap: 10px;
        }

        .filter-actions-bar .merge-toggle-container {
            margin-bottom: 0;
        }

        .filter-actions-bar .global-actions {
            display: flex;
            gap: 8px;
        }

        /* 筛选标题栏 */
        .filter-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 15px;
            background-color: #4CAF50;
            color: white;
            cursor: pointer;
            user-select: none;
        }

        .filter-header:hover {
            background-color: #45a049;
        }

        .filter-header h3 {
            margin: 0;
            font-size: 16px;
        }

        .filter-header-right {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .filter-count {
            font-size: 13px;
            background-color: rgba(255,255,255,0.2);
            padding: 2px 8px;
            border-radius: 10px;
        }

        .filter-toggle {
            font-size: 14px;
            transition: transform 0.3s ease;
        }

        .filter-toggle.collapsed {
            transform: rotate(-90deg);
        }

        /* 筛选内容区域 */
        .filter-body {
            padding: 15px;
            /* 不限高：以前是 1000px，赛事一多（现在 87 个）底部会被 overflow:hidden
               裁掉，手机上滚到底也看不到，只能展开前两个系列 */
            max-height: none;
            overflow: hidden;
            transition: padding 0.3s ease;
        }

        .filter-body.collapsed {
            max-height: 0;
            padding: 0 15px;
        }

        /* 合并队伍数据复选框容器 */
        .merge-toggle-container {
            margin-bottom: 15px;
        }

        .merge-toggle-container label {
            font-size: 14px;
            display: flex;
            align-items: center;
            cursor: pointer;
        }

        .merge-toggle-container input[type="checkbox"] {
            margin-right: 5px;
        }

        /***** 系列筛选 UI 样式 *****/
        /* 赛事系列容器 */
        .series-container {
            margin-bottom: 10px;
            border: 1px solid #e0e0e0;
            border-radius: 5px;
        }

        .series-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 15px;
            background-color: #f9f9f9;
            cursor: pointer;
            user-select: none;
        }

        .series-header:hover {
            background-color: #f0f0f0;
        }

        .series-title {
            font-weight: bold;
            font-size: 16px;
            color: #333;
        }

        .series-toggle {
            font-size: 18px;
            transition: transform 0.3s ease;
        }

        .series-toggle.collapsed {
            transform: rotate(-90deg);
        }

        .series-content {
            padding: 0 15px;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease, padding 0.3s ease;
        }

        .series-content.expanded {
            padding: 15px;
            max-height: none; /* 不限高：赛事多的系列远超 1000px，会被裁掉 */
        }

        .series-actions {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
        }

        .series-action-btn {
            padding: 5px 10px;
            background-color: #f0f0f0;
            border: none;
            border-radius: 3px;
            cursor: pointer;
            font-size: 12px;
        }

        .series-action-btn:hover {
            background-color: #e0e0e0;
        }

        /* 阶段选项容器 */
        .phases-container {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        /* 可多选的阶段按钮样式 */
        .phase-tab {
            padding: 8px 16px;
            background-color: #e7e7e7;
            border: none;
            border-radius: 20px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .phase-tab:hover {
            background-color: #d0d0d0;
        }

        .phase-tab.active {
            background-color: #4CAF50;
            color: white;
        }

        /* 全局操作按钮 */
        .global-actions {
            margin-top: 20px;
            text-align: center;
        }

        .global-action-btn {
            padding: 10px 20px;
            background-color: #2196F3;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            margin: 0 10px;
        }

        .global-action-btn:hover {
            background-color: #0b7dda;
        }
        /***** 新增样式结束 *****/
        
        #rankings-table {
            width: 100%;
            border-collapse: collapse;
            background-color: #fff;
            display: none;
            font-size: 14px;
        }
        #rankings-table th, #rankings-table td {
            border: 1px solid #ddd;
            padding: 10px 8px;
            text-align: left;
            white-space: nowrap;
        }
        #rankings-table th {
            background-color: #4CAF50;
            color: white;
            text-align: center;
            font-size: 15px;
            cursor: pointer;
            user-select: none;
            position: relative;
        }
        #rankings-table th:hover {
             background-color: #45a049;
        }
        #rankings-table tr:nth-child(even) {
            background-color: #f9f9f9;
        }
        #rankings-table tr:hover {
            background-color: #f1f1f1;
        }
        
        .sort-icon {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 12px;
            opacity: 0.7;
        }
        .sort-icon.asc::after {
            content: "▲";
        }
        .sort-icon.desc::after {
            content: "▼";
        }
        .sort-icon.inactive {
             opacity: 0.3;
        }

        #loading, #error, #info-message {
            width: 95%;
            margin: 20px auto;
            text-align: center;
            font-size: 18px;
        }
        #error { color: red; }
        #info-message { color: #555; }

        .centered-cell {
            text-align: center;
        }

        @media (max-width: 768px) {
            body {
                margin: 10px;
            }
            
            h1 {
                font-size: 20px;
                margin: 15px 0;
            }
            
            .filter-section {
                padding: 10px;
            }
            
            .filter-actions-bar {
                padding: 8px 10px;
                flex-direction: column;
                align-items: flex-start;
            }
            
            .filter-actions-bar .global-actions {
                width: 100%;
                justify-content: flex-start;
            }
            
            .filter-header h3 {
                font-size: 15px;
                margin-bottom: 10px;
            }
            
            .filter-body {
                padding: 12px;
            }
            
            .merge-toggle-container {
                margin-bottom: 10px;
            }
            
            /* 系列移动端优化 */
            .series-actions {
                flex-direction: row;
                gap: 5px;
            }
            
            .series-action-btn {
                padding: 4px 8px;
                font-size: 11px;
            }
            
            .phases-container {
                gap: 8px;
            }
            
            .phase-tab {
                padding: 6px 12px;
                font-size: 13px;
            }
            
            .filter-tabs-container {
                margin-top: 0;
            }
            
            .filter-tab {
                padding: 6px 14px;
                font-size: 13px;
            }
            
            #rankings-table {
                font-size: 13px;
            }
            
            #rankings-table th, #rankings-table td {
                padding: 8px 6px;
            }
            
            #rankings-table th {
                font-size: 14px;
            }
            
            .sort-icon {
                font-size: 11px;
                right: 6px;
            }
            
            #loading, #error, #info-message {
                width: 100%;
                font-size: 16px;
            }
        }
        
        @media (max-width: 480px) {
            body {
                margin: 8px;
            }
            
            h1 {
                font-size: 18px;
                margin: 12px 0;
            }
            
            .filter-header {
                padding: 8px 10px;
            }
            
            .filter-header h3 {
                font-size: 14px;
            }
            
            .filter-actions-bar {
                padding: 8px 10px;
            }
            
            .filter-body {
                padding: 10px;
            }
            
            .merge-toggle-container {
                margin-bottom: 8px;
            }
            
            /* 系列移动端小屏优化 */
            .series-actions {
                flex-direction: column;
                gap: 5px;
            }
            
            .series-action-btn {
                align-self: flex-start;
                padding: 3px 6px;
                font-size: 10px;
            }
            
            .phases-container {
                gap: 6px;
            }
            
            .phase-tab {
                padding: 5px 10px;
                font-size: 12px;
            }
            
            .filter-tab {
                padding: 5px 12px;
                font-size: 12px;
                border-radius: 15px;
            }
            
            #rankings-table {
                font-size: 12px;
            }
            
            #rankings-table th, #rankings-table td {
                padding: 6px 4px;
            }
            
            #rankings-table th {
                font-size: 13px;
            }
            
            .sort-icon {
                font-size: 10px;
                right: 4px;
            }
            
            #loading, #error, #info-message {
                font-size: 15px;
            }
            
            .global-action-btn {
                padding: 8px 12px;
                font-size: 14px;
                margin: 0 5px;
            }
        }
        
        .table-container {
            width: 95%;
            margin: 20px auto;
            overflow-x: auto;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        @media (max-width: 768px) {
            .table-container {
                width: 100%;
                margin: 15px 0;
            }
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.4);
            overflow-y: auto;
        }

        .modal-content {
            background-color: #fefefe;
            margin: 5% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 95%;
            max-width: 1200px;
            border-radius: 8px;
            position: relative;
        }

        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }

        .close:hover,
        .close:focus {
            color: black;
            text-decoration: none;
        }

        #detail-title {
            margin-top: 0;
            font-size: 20px;
        }

        .tab-container {
            margin: 20px 0;
        }

        .tab-buttons {
            display: flex;
            border-bottom: 1px solid #ddd;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .tab-button {
            padding: 10px 20px;
            background-color: #f1f1f1;
            border: none;
            cursor: pointer;
            font-size: 16px;
            border-radius: 5px 5px 0 0;
            margin-right: 5px;
            margin-bottom: 5px;
        }

        .tab-button.active {
            background-color: #4CAF50;
            color: white;
        }

        .tab-content {
            display: none;
        }

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

        .detail-table-container {
            width: 100%;
            overflow-x: auto;
        }

        .detail-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;
            min-width: 800px;
        }

        .detail-table th, .detail-table td {
            border: 1px solid #ddd;
            padding: 8px;
            text-align: center;
            white-space: nowrap;
        }

        .detail-table th {
            background-color: #4CAF50;
            color: white;
            cursor: pointer;
            user-select: none;
            position: relative;
        }

        .detail-table th:hover {
            background-color: #45a049;
        }

        .detail-table tr:nth-child(even) {
            background-color: #f9f9f9;
        }

        .detail-table tr:hover {
            background-color: #f1f1f1;
        }

        .player-tabs-container {
            max-width: 100%;
            overflow-x: auto;
            margin-bottom: 15px;
        }

        .player-tab-buttons {
            display: flex;
            border-bottom: 1px solid #ddd;
            min-width: max-content;
        }

        .detail-sort-icon {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 12px;
            opacity: 0.7;
        }
        .detail-sort-icon.asc::after {
            content: "▲";
        }
        .detail-sort-icon.desc::after {
            content: "▼";
        }
        .detail-sort-icon.inactive {
             opacity: 0.3;
        }
        
        .data-link {
            color: #1e88e5;
            text-decoration: none;
        }
        .data-link:hover {
            text-decoration: underline;
        }
        .title-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            margin: 20px 0;
            position: relative;
        }
         
        .back-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: #4CAF50;
            color: white;
            border-radius: 50%;
            text-decoration: none;
            font-size: 20px;
            font-weight: bold;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            transition: background-color 0.3s, transform 0.2s;
            flex-shrink: 0;
        }
         
        .back-button:hover {
            background-color: #45a049;
            transform: scale(1.05);
        }
         
        .back-button:active {
            transform: scale(0.95);
        }
         
        @media (max-width: 768px) {
            .title-container {
                gap: 12px;
                margin: 15px 0;
            }
         
            .back-button {
                width: 36px;
                height: 36px;
                font-size: 18px;
            }
         
            h1 {
                font-size: 20px;
                margin: 0;
            }
        }
         
        @media (max-width: 480px) {
            .title-container {
                gap: 10px;
                margin: 12px 0;
            }
         
            .back-button {
                width: 32px;
                height: 32px;
                font-size: 16px;
            }
         
            h1 {
                font-size: 18px;
            }
        }
        
        /* H2H 特定样式 */
        .h2h-main-tabs {
            display: flex;
            border-bottom: 2px solid #4CAF50;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        
        .h2h-main-tab {
            padding: 12px 24px;
            background-color: #f1f1f1;
            border: none;
            cursor: pointer;
            font-size: 16px;
            font-weight: bold;
            margin-right: 5px;
            margin-bottom: 5px;
        }
        
        .h2h-main-tab.active {
            background-color: #4CAF50;
            color: white;
        }
        
        .entity-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .entity-item {
            padding: 8px 16px;
            background-color: #e7e7e7;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .entity-item:hover {
            background-color: #d0d0d0;
        }
        
        .entity-item.active {
            background-color: #4CAF50;
            color: white;
        }
        
        .h2h-stats-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }
        
        .h2h-stats-table th, .h2h-stats-table td {
            border: 1px solid #ddd;
            padding: 10px 8px;
            text-align: center;
        }
        
        .h2h-stats-table th {
            background-color: #4CAF50;
            color: white;
            cursor: pointer;
            user-select: none;
            position: relative;
        }
        
        .h2h-stats-table th:hover {
            background-color: #45a049;
        }
        
        .h2h-stats-table tr:nth-child(even) {
            background-color: #f9f9f9;
        }
        
        /* 隐藏列的样式 */
        .hidden-column {
            display: none;
        }
        
        /* 排序图标 */
        .h2h-sort-icon {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 12px;
            opacity: 0.7;
        }
        .h2h-sort-icon.asc::after {
            content: "▲";
        }
        .h2h-sort-icon.desc::after {
            content: "▼";
        }
        .h2h-sort-icon.inactive {
             opacity: 0.3;
        }

.filter-input-container {
    margin-bottom: 15px;
}
/* 实体筛选输入框样式 */
.entity-filter {
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #4CAF50;
    border-radius: 25px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
}
.entity-filter:focus {
    border-color: #45a049;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}
/* 移动端适配 */
@media (max-width: 768px) {
    .entity-filter {
        padding: 8px 12px;
        font-size: 14px;
    }
}
@media (max-width: 480px) {
    .entity-filter {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* 对手名字可点击样式 */
.opponent-cell {
    color: #1e88e5;
    cursor: pointer;
    text-decoration: underline;
}

.opponent-cell:hover {
    color: #0d47a1;
}

/* 详细对局弹窗样式 */
.match-detail-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow-y: auto;
}

.match-detail-content {
    background-color: #fff;
    margin: 30px auto;
    padding: 20px;
    border-radius: 8px;
    width: 95%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.match-detail-close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.match-detail-close:hover {
    color: #000;
}

#match-detail-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.modal-sort-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-sort-btn:hover {
    background-color: #45a049;
}

.match-detail-item {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #fafafa;
}

.match-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.match-detail-info {
    font-size: 14px;
    color: #666;
}

.match-detail-result {
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 14px;
}

.match-detail-result.win {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.match-detail-result.loss {
    background-color: #ffebee;
    color: #c62828;
}

.match-detail-result.draw {
    background-color: #fff3e0;
    color: #ef6c00;
}

.match-detail-score {
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0;
}

.match-detail-games {
    margin-top: 10px;
    overflow-x: auto;
}

.match-detail-games table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 600px;
}

.match-detail-games th,
.match-detail-games td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.match-detail-games th {
    background-color: #4CAF50;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.match-detail-games th:hover {
    background-color: #45a049;
}

.match-detail-games tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* 对战总结样式 */
.match-summary {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-left: 4px solid #4CAF50;
}

.match-summary-row {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

.summary-highlight {
    font-weight: bold;
    color: #2e7d32;
}

.summary-count {
    font-weight: bold;
    color: #1565c0;
    background-color: rgba(21, 101, 192, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
}

.summary-date {
    color: #666;
}

@media (max-width: 768px) {
    .match-detail-content {
        margin: 15px;
        padding: 15px;
        width: calc(100% - 30px);
        max-height: calc(100vh - 30px);
    }

    #match-detail-title {
        font-size: 16px;
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-sort-btn {
        font-size: 12px;
        padding: 5px 10px;
    }

    .match-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .match-detail-games table {
        font-size: 12px;
    }
    
    .match-summary {
        padding: 12px 15px;
    }
    
    .match-summary-row {
        font-size: 13px;
        line-height: 1.7;
    }
}

/* 截图按钮样式 */
.vs-title-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.vs-title-row h2 {
    margin: 0;
}

.screenshot-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.screenshot-btn:hover {
    background-color: #45a049;
}

.screenshot-btn:active {
    transform: scale(0.95);
}

.screenshot-btn i {
    font-size: 14px;
}

/* 弹窗头部行 */
.modal-header-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.modal-header-row h2 {
    margin: 0;
}

.modal-screenshot-btn {
    font-size: 13px;
    padding: 6px 12px;
}

.modal-header-btns {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 截图时的隐藏样式 */
.screenshot-hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .vs-title-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .screenshot-btn {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .modal-header-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-header-btns {
        flex-direction: column;
        gap: 8px;
    }
}