/* live.css - 比赛实况页面特有样式 */

/* 比赛中心区域 */
.match-center {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.team-section {
    background: rgba(30, 30, 40, 0.8);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.team-section:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.1);
}

.team-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    position: relative;
}

.team-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
}

.team-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00d4ff;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.away-name {
    color: white;
    text-shadow:0 0 10px rgba(0, 0, 0, 0.5);
}

.score {
    font-size: 5rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    font-family: 'Courier New', monospace;
    position: absolute;
    top: 40px;
}

.score-home {
    left: 80px;
}

.score-away {
    right: 80px;
}

.players-list {
    overflow-y: auto;
    padding-right: 5px;
    max-height: 600px;
}

.players-list::-webkit-scrollbar {
    width: 6px;
}

.players-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.players-list::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.5);
    border-radius: 3px;
}

.player-item {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    margin-bottom: 10px;
    background: rgba(40, 40, 50, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width:185px;
}

.player-item:hover {           
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2);
}

.player-number {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 20px;
    font-size: 1rem;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.player-name {
    flex: 1;
    font-weight: 500;
    font-size: 1.1rem;
    color: #ffffff;
}

/* 切换按钮 */
.switch-btn {   
    opacity: 0;
    visibility: hidden;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    color: #00d4ff;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.switch-btn:hover {
    background: rgba(0, 212, 255, 0.5);
    border-color: rgba(0, 212, 255, 0.8);
}

.player-item:hover .switch-btn {
    opacity: 1;
    visibility: visible;
}

/* 球场区域 */
.field-container {
    background: rgba(30, 30, 40, 0.8);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: top;
    position: relative;
    overflow: hidden;
}

.field-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.match-time {
    font-size: 3rem;
    font-weight: bold;
    color: #00d4ff;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.7);
    position: relative;
    z-index: 1;
}

.match-status {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 25px;
    text-align: center;
    padding: 10px 25px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 25px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.field-image-wrapper {
    position: relative;
    width: 100%;
    margin: 25px 0;
    display: inline-block;
}

.field-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 2px solid rgba(0, 212, 255, 0.3);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    display: block;
}

.field-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}

/* ===== 阵容叠加层 ===== */
.lineup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

/* 评分徽章 */
.lineup-rating-badge {
    position: absolute;
    top: 4%;
    background: rgba(0,0,0,0.7);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold, #ffd700);
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 6;
}

.lineup-rating-home {
    left: 2%;
}

.lineup-rating-away {
    right: 2%;
}

/* 球场站位圆圈 */
.live-lineup-slot {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 6;
}

.live-slot-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    transition: transform 0.2s ease;
}

.live-slot-circle.home-circle {
    border-color: #00d4ff;
    color: #00d4ff;
}

.live-slot-circle.away-circle {
    border-color: #ff9800;
    color: #ff9800;
}

.live-slot-name {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.5);
    padding: 0 4px;
    border-radius: 2px;
    white-space: nowrap;
    margin-top: 4px;
    line-height: 1.4;
}

/* 移动端调整 */
@media (max-width: 1024px) {
    .live-slot-circle {
        width: 26px;
        height: 26px;
        font-size: 0.65rem;
    }

    .live-slot-name {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .live-slot-circle {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .live-slot-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .live-slot-circle {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    .lineup-rating-badge {
        font-size: 0.65rem;
        padding: 4px 6px;
    }
    .live-slot-name {
        display: none;
    }
}

.control-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    max-width: 530px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 160px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #f44336, #c62828);
    color: white;
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.3);
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* 新版时间线样式 */
.events-timeline {
    background: rgba(18, 18, 26, 0.9);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.events-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    position: relative;
    z-index: 1;
}

.events-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
}

.events-header h3 {
    margin: 0;
    color: #00d4ff;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.events-count {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.4));
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* 时间线容器 */
.timeline-container {
    position: relative;
    min-height: 200px;
    padding: 20px 0;
}

/* 中间的时间轴线 */
.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #00d4ff, transparent);
    z-index: 1;
}

/* 事件列表 */
.events-list {
    position: relative;
    z-index: 2;
}

/* 事件项 - 主队（左边） */
.event-item.home {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    width: 50%;
    margin-right: 50%;
    text-align: right;
    justify-content: flex-end;
}

/* 事件项 - 客队（右边） */
.event-item.away {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    width: 50%;
    margin-left: 50%;
    text-align: left;
    justify-content: flex-start;
}

/* 时间点 */
.event-dot {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    z-index: 3;
}

.event-item.home .event-dot {
    right: -10px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.7);
}

.event-item.away .event-dot {
    left: -10px;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.7);
}

/* 事件内容 */
.event-content {
    background: rgba(40, 40, 50, 0.9);
    border-radius: 10px;
    padding: 10px 20px;
    border: 1px solid;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 事件删除按钮 */
.event-delete-btn {
    position: absolute;
    top: 8px;
    opacity: 0;
    visibility: hidden;
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 50%;
    color: #dc3545;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    z-index: 10;
}

.event-delete-btn:hover {
    background: rgba(220, 53, 69, 0.3);
    border-color: #dc3545;
    transform: scale(1.1);
}

.event-item.home .event-delete-btn {
    left: 8px;
}

.event-item.away .event-delete-btn {
    right: 8px;
}

.event-content:hover .event-delete-btn {
    opacity: 1;
    visibility: visible;
}

/* 助攻信息样式 */
.event-assist {
    font-size: 0.9rem;
    color: #a0a0b0;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-assist::before {
    content: '🎯';
}

.event-item.home .event-assist {
    color: #ffffff;
    justify-content: flex-end;
}

.event-item.away .event-assist {
    color: #ffffff;
    justify-content: flex-start;
}

/* ==================== 表单样式 ==================== */
/* 从registration.css复制，确保模态框中的表单控件有正确样式 */

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #a0a0b0;
    font-weight: 500;
    font-size: 0.95rem;
    white-space:nowrap;
}

.form-control {
    width: 100%;
    padding: 14px;
    background: rgba(18, 18, 26, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    min-width:70px;
    color: #f0f0f0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

/* 下拉选择框特定样式 */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2300d4ff51' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
    cursor: pointer;
}

select:hover.form-control,
select:focus.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2300d4ff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
}

/* 数字输入框特定样式 */
input[type="number"].form-control {
    -moz-appearance: textfield;
}

input[type="number"].form-control::-webkit-outer-spin-button,
input[type="number"].form-control::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 模态框中的表单组间距调整 */
.modal-content .form-group {
    margin: 20px 0;
}

.modal-content .form-group:first-child {
    margin-top: 0;
}

.modal-content .form-group:last-child {
    margin-bottom: 0;
}

/* ==================== 响应式调整 ==================== */

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    .modal-content {
        padding: 30px;
    }
    
    .players-selection {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* 手机设备 (小于768px) */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        margin: 10px;
        border-radius: 15px;
        max-height: 90vh; /* 增加高度，留出更多空间 */
        overflow-y: auto; /* 确保可以滚动 */
    }
    
    .modal-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .modal-header h3 {
        font-size: 1.4rem;
    }
    
    .players-selection {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .player-option {
        padding: 12px 15px;
    }
    
    .form-control {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    .control-buttons {
        gap: 10px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
        min-width: 140px;
    }
}

/* 小手机设备 (小于480px) */
@media (max-width: 480px) {
    .modal-content {
        padding: 15px;
        max-height: 100vh; /* 在小手机上使用更大的高度 */
        padding-bottom: 80px; /* 为按钮留出空间 */
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .players-selection {
        gap: 8px;
    }
    
    .player-option {
        padding: 10px 12px;
    }
    
    .form-control {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .control-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

.event-item.home .event-content {
    border-color: rgba(0, 212, 255, 0.3);
    margin-right: 40px;
}

.event-item.away .event-content {
    border-color: rgba(255, 152, 0, 0.3);
    margin-left: 40px;
}

.event-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.event-item.home .event-content:hover {
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.2);
}

.event-item.away .event-content:hover {
    border-color: rgba(255, 152, 0, 0.6);
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.2);
}

.event-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
}

.event-item.home .event-content::before {
    color: #00d4ff;
}

.event-item.away .event-content::before {
    color: #ff9800;
}

/* 事件时间 */
.event-time {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-item.home .event-time {
    color: #00d4ff;
    justify-content: flex-end;
}

.event-item.away .event-time {
    color: #ff9800;
    justify-content: flex-start;
}

.event-time::before {
    content: '⏱️';
    font-size: 0.9rem;
}

/* 球员信息 */
.event-player {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-item.home .event-player {
    color: #ffffff;
    justify-content: flex-end;
}

.event-item.away .event-player {
    color: #ffffff;
    justify-content: flex-start;
}

.event-player::before {
    content: '👤';
    font-size: 1rem;
}

/* 事件类型 */
.event-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
}

.event-item.home .event-type {
    color: #00d4ff;
    justify-content: flex-end;
    margin-left: auto;
}

.event-item.away .event-type {
    color: #ff9800;
    justify-content: flex-start;
}

.event-type::before {
    content: '⚽';
    font-size: 1rem;
}

/* 空状态 */
.timeline-empty {
    text-align: center;
    padding: 60px 20px;
    color: #a0a0b0;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.timeline-empty i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
    display: block;
}

.timeline-empty p {
    margin: 10px 0;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

.modal-content {
    background: rgba(20, 20, 30, 0.95);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    animation: modalSlideIn 0.4s ease;
    /* 确保在移动设备上可以滚动 */
    -webkit-overflow-scrolling: touch;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 152, 0, 0.1) 0%, transparent 50%);
    z-index: -1; /* 改为-1，确保在内容下方 */
    pointer-events: none; /* 防止干扰点击事件 */
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    position: relative;
    z-index: 1;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
}

.modal-header h3 {
    margin: 0;
    color: #00d4ff;
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.modal-group {
    display:flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content:flex-start;
    margin: 20px 0;
}

.modal-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.close-modal {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    font-size: 1.8rem;
    cursor: pointer;
    color: #00d4ff;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.close-modal:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.6);
    color: white;
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

/* 球队选择标题 */
.team-selection-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

.team-selection-title.home {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    border-left: 4px solid #00d4ff;
}

.team-selection-title.away {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
    border-left: 4px solid #ff9800;
}

.players-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 2fr));
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.player-option {
    display: flex;
    align-items: center;
    border-radius:8px;
    padding: 10px 20px;   
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 5px;
}

.player-option:hover {
    transform: translateY(-3px);
}

.player-option.selected {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(0, 212, 255, 0.1));
    border:1px solid rgba(0, 212, 255, 0.8);
}

.player-option.away.selected {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.3), rgba(255, 152, 0, 0.1));
    border: 1px solid rgba(255, 152, 0, 0.8);
}

.player-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.player-option.selected::before {
    opacity: 1;
}

.player-option.home::before {
    color: #00d4ff;
}

.player-option.away::before {
    color: #ff9800;
}

.player-option input {
    margin-right: 15px;
    transform: scale(1.3);
    accent-color: #00d4ff;
}

.player-option.away input {
    accent-color: #ff9800;
}

.player-info {
    display: flex;
    align-items: center;
}

.player-option.selected .player-number {
    color: rgba(255, 255, 255, 0.8);
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1rem;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.error {
    background: #f44336;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.success {
    background: #4caf50;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1rem;
    background: white;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* ==================== 响应式样式 ==================== */

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
    
    .content {
        padding: 20px;
    }
    
    .match-center {
        gap: 20px;
    }
    
    .team-section {
        padding: 20px;
    }
    
    .field-container {
        padding: 20px;
    }
    
    .match-time {
        font-size: 2.5rem;
    }
    
    .score {
        font-size: 3rem;
    }

    .score-home {
        left:30px;
    }

    .score-away {
        right:30px;
    }
    
    .btn {
        padding: 12px 25px;
        min-width: 140px;
        font-size: 1rem;
    }
    
    .events-timeline {
        padding: 25px;
    }
}

/* 手机设备 (小于768px) */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        margin: 5px;
        padding: 10px;
        border-radius: 10px;
    }
    
    .content {
        padding: 15px;
    }
    
    /* 头部调整 */
    .header {
        margin-bottom: 15px;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    /* 比赛信息网格改为2列 */
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .info-item {
        padding: 12px;
    }
    
    .info-label {
        font-size: 0.8rem;
    }
    
    .info-value {
        font-size: 1rem;
    }
    
    /* 比赛中心区域改为垂直布局 */
    .match-center {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .team-section {
        padding: 15px;
    }
    
    .player-item {
        padding: 10px 15px;
        margin-bottom: 8px;
    }
    
    .player-number {
        width: 30px;
        height: 30px;
        margin-right: 15px;
        font-size: 0.9rem;
    }
    
    .player-name {
        font-size: 1rem;
    }
    
    /* 球场区域调整 */
    .field-container {
        padding: 15px;
        order: -1; /* 放在最前面 */
    }
    
    .match-time {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .match-status {
        font-size: 1.1rem;
        padding: 8px 20px;
        margin-bottom: 15px;
    }
    
    /* 按钮调整 */
    .control-buttons {
        gap: 10px;
        margin-top: 15px;
    }
    
    .btn {
        padding: 10px 20px;
        min-width: 120px;
        font-size: 0.9rem;
        gap: 5px;
    }
    
    .btn-success {
        width: auto; /* 移除固定宽度 */
    }
    
    /* 模态框调整 */
    .modal-content {
        padding: 20px;
        margin: 10px;
        border-radius: 15px;
    }
    
    .modal-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .modal-header h3 {
        font-size: 1.4rem;
    }
    
    .player-option {
        padding: 12px 15px;
    }
}

/* 小手机设备 (小于480px) */
@media (max-width: 480px) {
    .title {
        font-size: 1.3rem;
    }

    .match-details {
        grid-template-columns: repeat(2, 2fr);
        gap: 10px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        padding: 15px;
    }
        
    .team-header {
        display: flex;
        align-items: anchor-center;
        justify-content: space-between;
    }
    
    .team-name {
        margin-bottom: 0px;
    }

    .match-time {
        font-size: 2rem;
    }
    
    .players-selection {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .players-list {
        max-height: 200px;
    }
    
    .control-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        margin-bottom: 10px;
    }
    
    .modal-header {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }

    .close-modal {        
        width: 32px;
        height: 32px;
        font-size: 1.6rem;
    }
    
    .player-option {
        padding: 10px 12px;
    }

    .team-selection-title {
        font-size: 1.1rem;
        margin: 4px 0;
        padding: 8px 12px;
    }

    .modal-content {
        padding: 10px 14px;
    }

    .timeline-container {
        padding: 0px;
    }

    .events-timeline {
        padding: 15px;
    }
    
    .events-header {
        flex-direction: row;
        gap: 10px;
        text-align: center;
    }
    
    .events-header::after {
        width: 100px;
    }
    
    .event-content {
        padding: 15px;
        width: 100%;
    }
    
    .event-player {
        font-size: 1rem;
        gap: 6px;
    }

    .event-item {
        margin-bottom: 20px;
    }

    .event-content {
        padding: 10px 6px;
    }

    .event-item.home .event-content{
        margin-right: 20px;
    }

    .event-item.away .event-content{
        margin-left: 20px;
    }

    .event-delete-btn {
        background: transparent;
        border: 0px;
        top: 6px;
    }

    .event-delete-btn:hover {
        transform: scale(1.1);
    }

    .event-item.home .event-delete-btn {
        left: 6px;
    }

    .event-item.away .event-delete-btn {
        right: 6px;
    }
}

/* 超小手机设备 (小于360px) */
@media (max-width: 360px) {
    .container {
        padding: 5px;
    }
    
    .content {
        padding: 10px;
    }
    
    .team-section {
        padding: 10px;
    }
    
    .field-container {
        padding: 10px;
    }
    
    .btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .events-timeline {
        padding: 15px;
    }
}

/* 横屏模式优化 */
@media (max-height: 600px) and (orientation: landscape) {    
    .players-list {
        max-height: 480px;
        overflow-y: auto;
    }
    
    .events-list {
        overflow-y: auto;
    }
    
    .timeline-container {
        overflow-y: auto;
    }
}

/* ===== 进球标签快捷按钮 ===== */
.tag-group {
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    align-items:baseline;
}

.tag-quick-btn {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.tag-quick-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 212, 255, 0.2);
}

.tag-quick-btn:active {
    transform: translateY(0);
}

.tag-quick-btn.selected {
    background: rgba(0, 212, 255, 0.3) !important;
    border-color: rgba(0, 212, 255, 0.4) !important;
    font-weight: 500;
}

/* 高分辨率设备优化 */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .team-section {
        padding: 30px;
    }
    
    .field-container {
        padding: 40px;
    }
}