* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0c1e3a 0%, #1a3a5c 50%, #0d2137 100%);
    min-height: 100vh;
    padding: 20px;
    color: #fff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.2);
    flex-wrap: wrap;
    gap: 15px;
}

.header h1 {
    font-size: 2em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.user-login {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-login input {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 25px;
    background: rgba(255,255,255,0.2);
    color: white;
    outline: none;
}

.user-login input::placeholder {
    color: rgba(255,255,255,0.7);
}

button {
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.user-login button, .user-info button {
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    color: white;
}

.user-info {
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 15px;
}

.match-filters {
    display: flex;
    gap: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 13px;
    padding: 8px 15px;
}

.filter-btn.active {
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    border: none;
}

.group-filters {
    display: flex;
    gap: 8px;
    margin: 10px 0 20px;
    flex-wrap: wrap;
}

.group-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 12px;
    padding: 6px 12px;
}

.group-btn.active {
    background: #3498db;
    border-color: #2980b9;
}

.match-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s;
}

.match-card:hover {
    transform: translateY(-3px);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.match-date {
    font-size: 0.9em;
    color: #f39c12;
}

.match-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
}

.status-upcoming {
    background: #3498db;
}

.status-live {
    background: #e74c3c;
    animation: pulse 1.5s infinite;
}

.status-finished {
    background: #27ae60;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.match-teams {
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 1.2em;
    margin: 15px 0;
}

.team-name {
    font-weight: bold;
    flex: 1;
    text-align: center;
}

.home-team {
    color: #3498db;
}

.away-team {
    color: #e74c3c;
}

.match-score {
    font-size: 2em;
    font-weight: bold;
    padding: 0 30px;
}

.match-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.bet-btn, .view-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.locked-btn {
    background: #95a5a6;
    cursor: not-allowed;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    overflow-y: auto;
}

.modal-content {
    background: linear-gradient(135deg, #1a3a5c, #0d2137);
    margin: 3% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    border: 1px solid rgba(255,255,255,0.3);
}

.modal-content.large {
    max-width: 1100px;
}

.close {
    float: right;
    font-size: 30px;
    cursor: pointer;
    color: #fff;
}

.bet-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.bet-table th, .bet-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9em;
}

.bet-table th {
    background: rgba(243,156,18,0.3);
    font-weight: bold;
}

.bet-table td:hover {
    background: rgba(243,156,18,0.5);
    transform: scale(1.1);
}

.bet-table td.selected {
    background: #f39c12;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(243,156,18,0.8);
}

.bet-table td.my-bet {
    border: 2px solid #f39c12;
    background: rgba(243,156,18,0.3);
}

.bet-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 10px 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.my-bet-color {
    border: 2px solid #f39c12;
    background: rgba(243,156,18,0.3);
}

.selected-color {
    background: #f39c12;
}

.bet-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.save-bet-btn {
    flex: 2;
    padding: 15px;
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    color: white;
    font-size: 1.1em;
}

.cancel-bet-btn {
    flex: 1;
    padding: 15px;
    background: #95a5a6;
    color: white;
    font-size: 1em;
}

/* 베팅 현황 테이블 */
.bets-summary {
    overflow-x: auto;
    margin-top: 20px;
}

.bets-summary table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.bets-summary th, .bets-summary td {
    padding: 8px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.85em;
}

.bets-summary th {
    background: rgba(243,156,18,0.5);
}

.winner-highlight {
    background: rgba(39,174,96,0.5);
    font-weight: bold;
}

.user-bets-list {
    margin-top: 5px;
    font-size: 0.8em;
}

.user-bet-item {
    padding: 3px 5px;
    margin: 2px 0;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}

/* 반응형 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .header h1 {
        font-size: 1.5em;
    }
    
    .match-teams {
        font-size: 1em;
    }
    
    .match-score {
        font-size: 1.5em;
        padding: 0 15px;
    }
}