* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', Arial, sans-serif;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2.8em;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(255, 255, 255, 0.8);
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 18px;
    color: white;
    font-weight: bold;
    box-shadow: 
        0 8px 20px rgba(102, 126, 234, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.game-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.current-player {
    font-size: 1.1em;
}

.game-status {
    font-size: 1.1em;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.game-board {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    box-shadow: 
        inset 0 5px 15px rgba(0, 0, 0, 0.08),
        0 8px 25px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.game-board::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
}

#chessboard {
    border: 3px solid #8B4513;
    border-radius: 12px;
    background: 
        radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(0, 0, 0, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, #DEB887 0%, #CD853F 30%, #D2B48C 70%, #F5DEB3 100%);
    cursor: crosshair;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 
        0 8px 25px rgba(139, 69, 19, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

#chessboard::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 9px;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}



#chessboard:hover {
    transform: scale(1.015) translateY(-2px);
    box-shadow: 
        0 15px 40px rgba(139, 69, 19, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* 棋子放置时的光圈效果 */
@keyframes pieceGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(255, 215, 0, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
        transform: scale(1);
    }
}

/* 棋盘闪烁效果（获胜时） */
@keyframes boardFlash {
    0%, 100% { 
        filter: brightness(1) contrast(1);
    }
    25% { 
        filter: brightness(1.1) contrast(1.05);
    }
    50% { 
        filter: brightness(1.2) contrast(1.1);
    }
    75% { 
        filter: brightness(1.1) contrast(1.05);
    }
}

.winner #chessboard {
    animation: boardFlash 1s ease-in-out 3;
}

/* 增强的最后一步标记动画 */
@keyframes lastMoveGlow {
    0% {
        filter: brightness(1) drop-shadow(0 0 0 transparent);
    }
    50% {
        filter: brightness(1.3) drop-shadow(0 0 8px rgba(255, 68, 68, 0.8));
    }
    100% {
        filter: brightness(1) drop-shadow(0 0 0 transparent);
    }
}

/* 鼠标悬停时的微妙脉冲效果 */
@keyframes subtlePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.9;
    }
}

.game-board:hover {
    animation: subtlePulse 3s ease-in-out infinite;
}

/* 棋子材质增强 */
.piece-shadow {
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

/* AI思考时的棋盘效果 */
.ai-thinking #chessboard {
    filter: brightness(0.95) contrast(1.05);
    animation: subtlePulse 2s ease-in-out infinite;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.controls button {
    padding: 14px 28px;
    font-size: 1.1em;
    border: none;
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.controls button::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;
}

#restart-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#restart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 25px rgba(102, 126, 234, 0.4),
        0 6px 15px rgba(0, 0, 0, 0.2);
}

#restart-btn:hover::before {
    left: 100%;
}

#undo-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

#undo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 25px rgba(240, 147, 251, 0.4),
        0 6px 15px rgba(0, 0, 0, 0.2);
}

#undo-btn:hover::before {
    left: 100%;
}

#hint-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

#hint-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 25px rgba(79, 172, 254, 0.4),
        0 6px 15px rgba(0, 0, 0, 0.2);
}

#hint-btn:hover::before {
    left: 100%;
}

.controls button:active {
    transform: translateY(0);
}

.rules {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 18px;
    margin-top: 30px;
    border-left: 5px solid #667eea;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.rules::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
}

.rules h3 {
    color: #2c3e50;
    margin-bottom: 18px;
    font-size: 1.4em;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.rules ul {
    list-style: none;
    padding-left: 0;
}

.rules li {
    padding: 10px 0;
    color: #555;
    position: relative;
    padding-left: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.rules li:hover {
    color: #2c3e50;
    transform: translateX(5px);
}

.rules li:before {
    content: "•";
    color: #667eea;
    font-weight: bold;
    font-size: 1.6em;
    position: absolute;
    left: 0;
    top: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .game-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    #chessboard {
        width: 100%;
        max-width: 400px;
        height: auto;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .controls button {
        width: 200px;
    }
}

/* 胜利动画 */
@keyframes winner {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.winner {
    animation: winner 0.5s ease-in-out;
}

/* 提示效果 */
.hint {
    opacity: 0.7;
    filter: brightness(1.2);
}

/* 五子棋简介区域样式 */
.introduction {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 20px;
    margin-top: 30px;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.08),
        0 3px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.introduction::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
}

.introduction h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.6em;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.introduction h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.intro-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 1;
}

.introduction h4 {
    color: #34495e;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.introduction p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
    text-align: justify;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.introduction p:hover {
    color: #2c3e50;
}

.origin-section,
.culture-section,
.gameplay-section,
.modern-section {
    background: rgba(255, 255, 255, 0.6);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.origin-section::before,
.culture-section::before,
.gameplay-section::before,
.modern-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    pointer-events: none;
}

.origin-section:hover,
.culture-section:hover,
.gameplay-section:hover,
.modern-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-left-color: #764ba2;
}

.origin-section {
    border-left-color: #e74c3c;
}

.culture-section {
    border-left-color: #f39c12;
}

.gameplay-section {
    border-left-color: #27ae60;
}

.modern-section {
    border-left-color: #9b59b6;
}

/* 游戏模式选择器 */
.game-modes {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mode-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    color: #666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mode-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.mode-btn:hover:not(.active) {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateY(-1px);
}

/* 难度选择器 */
.difficulty-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.difficulty-selector label {
    font-weight: 600;
    color: #2c3e50;
}

#ai-difficulty {
    padding: 8px 15px;
    border: 2px solid #ddd;
    border-radius: 20px;
    font-size: 1em;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

#ai-difficulty:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 计时器样式 */
.game-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
}

#timer-display {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 15px;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* 统计信息样式 */
.statistics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.stat-label {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-value {
    display: block;
    font-size: 1.4em;
    font-weight: bold;
    color: #2c3e50;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.modal-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-btn.secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #ddd;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* 等待界面样式 */
.waiting-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.waiting-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 回放控制器样式 */
.replay-controller {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 500;
    backdrop-filter: blur(10px);
}

.replay-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.replay-controls button {
    padding: 10px 15px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

.replay-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.replay-progress {
    display: flex;
    align-items: center;
    gap: 15px;
}

#replay-slider {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

#replay-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

#replay-info {
    font-size: 0.9em;
    color: #666;
    min-width: 120px;
    text-align: center;
}

/* 页脚样式 */
.footer {
    margin-top: 50px;
    padding: 30px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-align: center;
}

.footer-content p {
    margin: 5px 0;
    opacity: 0.9;
}

.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .introduction {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .intro-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .introduction h3 {
        font-size: 1.4em;
    }
    
    .introduction h4 {
        font-size: 1.1em;
    }
    
    .origin-section,
    .culture-section,
    .gameplay-section,
    .modern-section {
        padding: 15px;
    }
    
    .game-modes {
        flex-direction: column;
        gap: 10px;
    }
    
    .mode-btn {
        width: 100%;
    }
    
    .statistics {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .controls {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .controls button {
        width: 100%;
        margin: 0;
    }
    
    .difficulty-selector {
        flex-direction: column;
        gap: 10px;
    }
    
    .replay-controller {
        bottom: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        padding: 15px;
    }
    
    .replay-controls {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .replay-controls button {
        padding: 8px 12px;
        font-size: 0.9em;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
}
