.match-details-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-left: 3px solid #27AE60;
    overflow-y: auto;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
}

.match-details-panel.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.panel-header {
    background: linear-gradient(135deg, #27AE60, #32CD32);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.panel-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.close-panel {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-panel:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.panel-content {
    padding: 2rem;
    overflow-y: auto;
    height: calc(100vh - 90px);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay:not(.active) {
    pointer-events: none;
}

.match-details-panel:not(.active) {
    pointer-events: none;
}

/* 메인 화면 승부예측 컨테이너 */
.main-prediction-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 메인 화면 승부예측 버튼 그룹(얜 인라인이나까 아래랑 헷갈리지 말자)  */
.prediction-btns-inline {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

/* 메인 화면 작은 승부예측 버튼 */
.prediction-btn-small {
    padding: 8px 20px;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.prediction-btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.prediction-btn-small.home-win {
    border-color: #3498db;
}

.prediction-btn-small.home-win:hover {
    background: #3498db;
}

.prediction-btn-small.draw {
    border-color: #95a5a6;
}

.prediction-btn-small.draw:hover {
    background: #95a5a6;
}

.prediction-btn-small.away-win {
    border-color: #e74c3c;
}

.prediction-btn-small.away-win:hover {
    background: #e74c3c;
}

/* 로그인 안내 메시지 */
.prediction-login-notice {
    text-align: center;
    padding: 10px;
    color: #aaa;
    font-size: 14px;
}

/* 경기 결과 표시 */
.match-result {
    text-align: center;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #27AE60;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 6px;
}

/* 관리자 결과 설정 버튼 */
.admin-result-btns {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    justify-content: center;
}

.admin-result-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border: 2px solid;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: white;
}

.admin-result-btn.home-win {
    border-color: #3498db;
}

.admin-result-btn.home-win:hover {
    background: #3498db;
}

.admin-result-btn.draw {
    border-color: #95a5a6;
}

.admin-result-btn.draw:hover {
    background: #95a5a6;
}

.admin-result-btn.away-win {
    border-color: #e74c3c;
}

.admin-result-btn.away-win:hover {
    background: #e74c3c;
}

/* 경기 상세 정보 영역*/
.match-detail-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.match-date, .match-league {
    color: #757575;
    font-size: 14px;
}

/* 경기 스코어 표시 영역*/
.match-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: #f8f8f8;
    border-radius: 15px;
}

.team-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
}

.team-logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: #27AE60;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.team-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.team-name {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    color: #212121;
}

.score-display {
    font-size: 20px;
    font-weight: bold;
    color: #27AE60;
}

.prediction-btns {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    width: 100%;         
    box-sizing: border-box;
}

.prediction-btn {
    flex: 1;                    
    height: 56px;
    font-size: 1.5rem;
    font-weight: bold;
    background: #fff;
    border-radius: 12px;
    border: 3px solid #ddd;
    color: #333;
    cursor: pointer;
    transition: 
        color 0.2s,
        border-color 0.2s,
        background 0.2s,
        box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    min-width: 200px;            
    max-width: 400px;          
}

.prediction-btn.home-win {
    border-color: #27AE60;
    color: #27AE60;
}
.prediction-btn.home-win:hover {
    background: #eafaf2;
    box-shadow: 0 2px 12px rgba(39,174,96,0.13);
}
.prediction-btn.draw {
    border-color: #aaa;
    color: #aaa;
}
.prediction-btn.draw:hover {
    background: #f1f1f1;
    box-shadow: 0 2px 12px rgba(170,170,170,0.13);
}
.prediction-btn.away-win {
    border-color: #EB5757;
    color: #EB5757;
}
.prediction-btn.away-win:hover {
    background: #fdeeee;
    box-shadow: 0 2px 12px rgba(235,87,87,0.13);
}

/* 경기 통계 칸*/
.match-stats {
    margin: 2rem 0;
}

.match-stats h3 {
    color: #212121;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
    border-bottom: 2px solid #27AE60;
    padding-bottom: 0.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    margin-top: 1rem;
}

.stat-value {
    width: 45px;
    text-align: center;
    font-weight: bold;
    color: #212121;
}

.stat-bar {
    flex: 1;
    height: 14px;
    margin: 0 15px;
    display: flex;
    border-radius: 7px;
    overflow: hidden;
    background: #e0e0e0;
}

.home-stat {
    background: linear-gradient(90deg, #27AE60, #32CD32);
    height: 100%;
    transition: width 0.5s ease;
}

.away-stat {
    background: linear-gradient(90deg, #FF6B6B, #FF8E53);
    height: 100%;
    transition: width 0.5s ease;
}

.stat-label {
    text-align: center;
    color: #757575;
    margin-bottom: 1rem;
    font-size: 14px;
}

/* 탭 스타일 */
.tab-container {
    margin-top: 2rem;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    color: #757575;
    font-weight: 600;
    background: transparent;
}

.tab:hover {
    color: #27AE60;
    background: #f8f8f8;
}

.tab.active {
    border-bottom-color: #27AE60;
    color: #27AE60;
}

.tab-content {
    margin-top: 1.5rem;
    display: none;
}

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

/* 이벤트 타임라인(이거 쓰나? 기억이 없네. 나중에 event 관련된 js코드 있나 살펴보기) */
.event {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f8f8;
    border-radius: 10px;
    border-left: 4px solid #27AE60;
    transition: all 0.3s ease;
}

.event:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.event-time {
    width: 40px;
    font-weight: bold;
    color: #27AE60;
    font-size: 16px;
}

.event-icon {
    font-size: 22px;
    margin: 0 15px;
}

.event-info {
    flex: 1;
}

.player-name {
    font-weight: bold;
    margin-bottom: 0.3rem;
    color: #212121;
}

.event-detail {
    color: #757575;
    font-size: 14px;
}

/* 라인업 스타일 */
.lineups-container {
    margin-top: 1.5rem;
}

.lineups-teams {
    display: flex;
    gap: 1.5rem;
}

.lineup-team {
    flex: 1;
    background: #f8f8f8;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
}

.lineup-team h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #27AE60;
    color: #212121;
    font-weight: bold;
}

.field-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.position-group {
    display: flex;
    gap: 0.75rem;
}

.position-label {
    font-weight: bold;
    color: #27AE60;
    width: 35px;
    text-align: center;
    padding-top: 10px;
    font-size: 14px;
}

.players-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 한 줄에 6명 */
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.player {
    background: #ffffff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: #212121;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    min-width: 0;
    box-sizing: border-box;
}

.player:hover {
    background: #27AE60;
    color: white;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

/* 채팅 영역 */

.chat-messages {
    min-height: 150px;
    max-height: 300px;
    overflow-y: auto;
    background: #f8f8f8;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1.5px solid #e0e0e0;
    font-size: 15px;
    color: #212121;
    box-sizing: border-box;
}

.chat-messages .message {
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.7rem;
    background: #fff;
    border-radius: 7px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    word-break: break-all;
    color: #333;
    box-shadow: 0 1px 5px rgba(39,174,96,0.07);
}

.chat-messages .message.mine {
    border-left: 3px solid #27AE60;
    background: #eafaf2;
}

.chat-messages .message.time {
    font-size: 12px;
    color: #757575;
    background: transparent;
    border: none;
    margin: 0.2rem 0;
    padding: 0;
}

.chat-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.7rem;
}

#chatInput {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    color: #212121;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

#chatInput:focus {
    border-color: #27AE60;
}

#sendChatBtn {
    padding: 0.7rem 1.3rem;
    background: #27AE60;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 6px rgba(39,174,96,0.13);
}

#sendChatBtn:hover {
    background: #219150;
}

.chat-login-notice {
    margin-top: 1rem;
    text-align: center;
}

.login-btn {
    background: #27AE60;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.5rem;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(39,174,96,0.13);
}
.login-btn:hover {
    background: #219150;
}

.chat-msg {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 0.7rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 15px;
    color: #333;
    box-sizing: border-box;
    box-shadow: 0 1px 6px rgba(39,174,96,0.07);
    word-break: break-all;
    transition: background 0.25s, box-shadow 0.25s;
    max-width: 400px;
}

.chat-msg.me {
    border-left: 3px solid #27AE60;
    background: #eafaf2;
}

.chat-nick {
    color: #27AE60;
    font-weight: bold;
    margin-right: 0.5rem;
    font-size: 15px;
}

.chat-text {
    flex: 1;
    color: #222;
    font-size: 15px;
}

.chat-time {
    font-size: 12px;
    color: #757575;
    margin-left: 0.5rem;
    min-width: 60px;
    text-align: right;
}

/* 기본 모달 스타일 */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.auth-modal-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    margin: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid #f0f0f0;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

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

.auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.auth-modal-close:hover {
    background: #f0f0f0;
    color: #333;
    transform: scale(1.1);
}

.auth-modal h2 {
    color: #212121;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form input {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #333333;
}

.auth-form input:focus {
    outline: none;
    border-color: #27AE60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.auth-form input::placeholder {
    color: #757575;
}

.auth-btn {
    background: linear-gradient(135deg, #27AE60, #32CD32);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
    background: linear-gradient(135deg, #32CD32, #27AE60);
}

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

/* 프로필 편집 모달 스타일 */
.profile-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.profile-edit-modal-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
    margin: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid #f0f0f0;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

.profile-edit-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.profile-edit-modal-close:hover {
    background: #f0f0f0;
    color: #333;
    transform: scale(1.1);
}

.profile-edit-modal h2 {
    color: #212121;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
}

.current-profile-info {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f8f8;
    border-radius: 12px;
}

.profile-image-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #27AE60;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-image-container:hover .image-overlay {
    opacity: 1;
}

.change-image-btn {
    background: #27AE60;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.change-image-btn:hover {
    background: #32CD32;
}

.current-nickname {
    font-size: 1.2rem;
    font-weight: bold;
    color: #212121;
    margin-bottom: 0.5rem;
}

.current-email {
    font-size: 0.9rem;
    color: #757575;
}

.edit-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.edit-form label {
    font-weight: 600;
    color: #212121;
    margin-bottom: 0.5rem;
}

.edit-form input {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.edit-form input:focus {
    outline: none;
    border-color: #27AE60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.image-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #27AE60;
    margin: 0.5rem 0;
}

.cancel-image-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-image-btn:hover {
    background: #c82333;
}

.edit-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.edit-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.save-btn {
    background: linear-gradient(135deg, #27AE60, #32CD32);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.cancel-btn {
    background: #6c757d;
    color: white;
}

.cancel-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.upload-progress {
    text-align: center;
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #27AE60, #32CD32);
    width: 0%;
    transition: width 0.3s ease;
    animation: progressPulse 1.5s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.progress-text {
    font-size: 14px;
    color: #757575;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
    border: 1px solid #c3e6cb;
    animation: successFadeIn 0.3s ease-out;
}

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

/* 반응형 디자인(아직 핸드폰은 미지원) */
@media (max-width: 768px) {
    .auth-modal-content,
    .profile-edit-modal-content {
        margin: 1rem;
        padding: 2rem;
    }
    
    .match-details-panel {
        width: 100vw;
        right: -100vw;
    }
    
    .match-details-panel.active {
        right: 0;
    }
}
