* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #222222 100%);
    min-height: 100vh;
    padding: 20px;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 30px 20px;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.3em;
    opacity: 0.9;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 20px;
}

.team-card-form {
    width: 100%;
}

.team-card {
    width: 100%;
    background: white;
    border: 4px solid;
    border-radius: 15px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.team-card:active {
    transform: translateY(-4px);
}

.team-logo {
    font-size: 4em;
    margin-bottom: 10px;
}

.team-logo-img {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.team-logo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-logo-fallback {
    font-size: 4em;
}

.team-name {
    font-size: 1.4em;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.team-color-bar {
    width: 60%;
    height: 6px;
    border-radius: 3px;
    margin-top: 10px;
}

.confirmation {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    max-width: 500px;
    margin: 50px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.confirmation-logo {
    font-size: 6em;
    margin-bottom: 20px;
}

.confirmation h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 15px;
}

.confirmation-message {
    font-size: 1.3em;
    color: #666;
    margin-bottom: 30px;
}

.color-badge {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 30px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-back {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-back:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Team Scroll Container */
.team-scroll-container {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #1a1a1a;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.team-scroll {
    display: flex;
    gap: 15px;
    padding: 0 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.team-scroll::-webkit-scrollbar {
    display: none;
}

.team-circle {
    flex-shrink: 0;
    width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.team-circle img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #444;
    object-fit: cover;
    background: white;
    padding: 5px;
    transition: all 0.3s ease;
}

.team-circle.active img {
    border-width: 4px;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.team-circle:hover img {
    transform: scale(1.05);
}

.team-circle-name {
    font-size: 0.75em;
    color: #ccc;
    margin-top: 5px;
    text-align: center;
    white-space: nowrap;
}

.team-circle.active .team-circle-name {
    color: white;
    font-weight: bold;
}

.team-circle.add-team {
    position: relative;
}

.team-circle.add-team .team-circle-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px dashed #666;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: #999;
    transition: all 0.3s ease;
}

.team-circle.add-team:hover .team-circle-icon {
    border-color: #999;
    color: white;
    background: #333;
}

/* App Container with Bottom Navigation */
.app-container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    background: #f5f5f5;
}

/* 왼쪽 사이드바 */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.5em;
    font-weight: 700;
    color: #00d9ff;
}

.sidebar-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00d9ff 0%, #0099ff 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
}

.sidebar-logo-img {
    width: 100%;
    max-width: 180px;
    height: auto;
    object-fit: contain;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-section-title {
    padding: 12px 20px 8px;
    font-size: 0.75em;
    text-transform: uppercase;
    color: #888;
    font-weight: 600;
    letter-spacing: 1px;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-left-color: #00d9ff;
}

.sidebar-nav-item.active {
    background: rgba(0, 217, 255, 0.1);
    color: #00d9ff;
    border-left-color: #00d9ff;
}

.sidebar-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #00d9ff 0%, #0099ff 100%);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.nav-item-icon {
    font-size: 1.3em;
    width: 24px;
    text-align: center;
}

.nav-item-text {
    font-size: 0.95em;
    font-weight: 500;
}

/* 사이드바 팀 아이템 (삭제 버튼 포함) */
.sidebar-team-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-radius: 8px;
    transition: background 0.2s;
}
.sidebar-team-item:hover {
    background: rgba(255, 255, 255, 0.1);
}
.sidebar-team-item.active {
    background: rgba(255, 255, 255, 0.15);
}
.sidebar-team-item .team-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    flex: 1;
}
.sidebar-team-item .nav-item-text {
    font-weight: 400;
}
.sidebar-team-item .team-delete-btn {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s, background 0.2s;
}
.sidebar-team-item:hover .team-delete-btn {
    opacity: 1;
}
.sidebar-team-item .team-delete-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* 사이드바 선수 소식 배너 */
.sidebar-news-section {
    margin-top: 20px;
    padding: 0 15px;
}

.sidebar-news-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 3px solid #666;
    transition: all 0.3s ease;
}

.sidebar-news-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

.sidebar-news-item.injury {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.sidebar-news-item.transfer {
    border-left-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.sidebar-news-item.lineup {
    border-left-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.sidebar-news-item .news-icon {
    font-size: 1.5em;
    flex-shrink: 0;
}

.sidebar-news-item .news-content {
    flex: 1;
    min-width: 0;
}

.sidebar-news-item .news-title {
    font-size: 0.75em;
    font-weight: 600;
    color: #aaa;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-news-item .news-text {
    font-size: 0.85em;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-news-item .news-date {
    font-size: 0.7em;
    color: #666;
    margin-top: 6px;
}

.main-content {
    flex: 1;
    margin-left: 300px;
    margin-right: 20px;
    overflow-y: auto;
    padding-bottom: 20px;
    height: 100vh;
    max-height: 100vh;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding-bottom: 80px;
    }
}

/* Team Header */
.team-header {
    padding: 40px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.team-info {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.team-logo-large {
    font-size: 5em;
    margin-bottom: 15px;
}

.team-logo-large-img {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.team-logo-large-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.team-logo-large-fallback {
    font-size: 5em;
}

.team-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.team-header p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Page Header */
.page-header {
    background: white;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-header h1 {
    font-size: 2em;
    color: #333;
    margin-bottom: 5px;
}

.page-header p {
    color: #666;
    font-size: 1em;
}

/* Page Header with gradient background (inline style) */
.page-header[style*="background"] h1 {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-header[style*="background"] p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Content Area */
.content-area {
    padding: 20px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Top Players Banner */
.top-players-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.top-player-card {
    background: linear-gradient(145deg, #ffffff 0%, #f5f7fa 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1),
                0 2px 8px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
}

.top-player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
}

.top-player-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15),
                0 4px 12px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.top-player-card.goals,
.top-player-card.assists,
.top-player-card.defense {
    background: linear-gradient(145deg, #ffffff 0%, #f5f7fa 100%);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.top-player-title {
    font-size: 0.9em;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.top-player-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.top-player-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.top-player-item:hover {
    background: rgba(0,0,0,0.03);
}

.top-player-rank {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75em;
    color: white;
    background: linear-gradient(135deg, #999 0%, #777 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.top-player-item:nth-child(1) .top-player-rank {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.top-player-item:nth-child(2) .top-player-rank {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
}

.top-player-item:nth-child(3) .top-player-rank {
    background: linear-gradient(135deg, #CD7F32 0%, #B8732D 100%);
}

.top-player-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-player-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-player-info {
    flex: 1;
    min-width: 0;
}

.top-player-name-small {
    font-size: 0.85em;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-player-stat-small {
    font-size: 0.95em;
    font-weight: 800;
    flex-shrink: 0;
    min-width: 30px;
    text-align: right;
}

.top-player-card.goals .top-player-stat-small,
.top-player-card.assists .top-player-stat-small,
.top-player-card.defense .top-player-stat-small {
    color: #333;
    font-weight: 700;
}

.top-player-empty {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 0.85em;
}

/* 1위 선수 강조 스타일 */
.top-player-champion {
    text-align: center;
    padding: 15px 10px;
}

.champion-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.champion-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.champion-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.champion-name {
    font-size: 1.1em;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.champion-stat {
    font-size: 1.5em;
    font-weight: 800;
    color: #333;
}

/* 2-5위 선수 리스트 */
.top-player-others {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.other-player-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    font-size: 0.85em;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.other-player-item:hover {
    background: rgba(0,0,0,0.03);
}

.other-rank {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85em;
    color: #666;
    flex-shrink: 0;
}

.other-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.other-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.other-name {
    flex: 1;
    color: #555;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.other-stat {
    font-weight: 700;
    color: #333;
    min-width: 25px;
    text-align: right;
}

.top-players-note {
    font-size: 0.75em;
    color: #999;
    text-align: center;
    margin-top: -15px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .top-players-banner {
        grid-template-columns: 1fr;
    }
}

/* News Section */
.news-section h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 20px;
}

.news-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1),
                0 2px 8px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15),
                0 4px 12px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.news-icon {
    font-size: 2.5em;
}

.news-content h3 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 5px;
}

.news-content p {
    color: #666;
    font-size: 0.95em;
}

/* Matches Section */
.matches-section {
    margin-bottom: 30px;
}

.matches-section h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 20px;
}

.match-section-title {
    font-size: 1.2em;
    color: #666;
    margin: 20px 0 15px 0;
    font-weight: 600;
}

.match-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 8px;
}

.upcoming-match .match-status {
    background: #e3f2fd;
    color: #1976d2;
}

.past-match .match-status {
    background: #f5f5f5;
    color: #999;
}

.view-more-btn {
    display: block;
    width: 100%;
    padding: 15px;
    text-align: center;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.match-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12),
                0 2px 8px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.match-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16),
                0 4px 12px rgba(0, 0, 0, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.match-date {
    font-size: 0.9em;
    color: #999;
    margin-bottom: 12px;
    text-align: center;
}

.match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    max-width: 100%;
}

.match-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.match-team.home-team {
    justify-content: flex-end;
}

.match-team.away-team {
    justify-content: flex-start;
}

.match-team .team-name {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-team.home-team .team-name,
.match-team.away-team .team-name {
    color: #667eea;
    font-weight: 700;
}

.match-team .team-score {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    min-width: 30px;
    text-align: center;
}

.match-vs {
    font-size: 0.9em;
    color: #999;
    font-weight: 600;
    text-align: center;
}

/* 새로운 경기 카드 레이아웃 - 쪼개서 정렬 */
.match-teams-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 12px;
    width: 100%;
}

.match-team-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-right: 15px;
}

.match-team-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding-left: 15px;
}

.match-vs-center {
    flex-shrink: 0;
    font-size: 0.85em;
    color: #999;
    font-weight: 600;
    padding: 0 10px;
}

.team-name-text {
    font-size: 0.95em;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.team-score-num {
    font-size: 1.6em;
    font-weight: 700;
    color: #333;
    min-width: 25px;
    text-align: center;
}

.highlight-team .team-name-text {
    color: #667eea;
    font-weight: 700;
}

.highlight-team .team-score-num {
    color: #667eea;
}

/* 다크모드 */
body.dark-mode .team-name-text {
    color: #ffffff;
}

body.dark-mode .team-score-num {
    color: #ffffff;
}

body.dark-mode .highlight-team .team-name-text,
body.dark-mode .highlight-team .team-score-num {
    color: #667eea;
}

body.dark-mode .match-vs-center {
    color: #999;
}

/* Elo 뱃지 스타일 */
.team-elo-badge {
    font-size: 0.75em;
    color: #888;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 10px;
}

body.dark-mode .team-elo-badge {
    color: #aaa;
    background: rgba(255, 255, 255, 0.1);
}

/* 모바일 반응형 */
@media (max-width: 480px) {
    .match-team-left,
    .match-team-right {
        gap: 8px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .team-name-text {
        font-size: 0.85em;
        max-width: 80px;
    }

    .team-score-num {
        font-size: 1.3em;
    }

    .match-vs-center {
        font-size: 0.75em;
        padding: 0 6px;
    }
}

.match-venue {
    font-size: 0.85em;
    color: #666;
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

/* Win Probability Bar */
.wp-bar-container {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.wp-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.9em;
}

.wp-bar-label span:first-child {
    font-weight: 600;
    color: #333;
}

.wp-percentage {
    font-weight: 700;
    color: #667eea;
    font-size: 1em;
}

.wp-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.wp-fill {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.wp-fill.home-wp {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.wp-fill.away-wp {
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

/* 전적 스타일 */
.head-to-head {
    margin: 16px 0 12px 0;
    padding: 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.h2h-title {
    font-size: 0.85em;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 12px;
    text-align: center;
}

.h2h-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.h2h-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.h2h-stat:not(:last-child) {
    border-right: 1px solid rgba(102, 126, 234, 0.2);
}

.h2h-team {
    font-size: 0.8em;
    color: #666;
    font-weight: 500;
}

.h2h-label {
    font-size: 0.8em;
    color: #666;
    font-weight: 500;
}

.h2h-value {
    font-size: 1.1em;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    background: white;
}

.h2h-value.home-wins {
    color: #667eea;
}

.h2h-value.draws {
    color: #888;
}

.h2h-value.away-wins {
    color: #f5576c;
}

/* 다크모드 전적 스타일 */
body.dark-mode .head-to-head {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border-color: rgba(102, 126, 234, 0.25);
}

body.dark-mode .h2h-team,
body.dark-mode .h2h-label {
    color: #aaa;
}

body.dark-mode .h2h-value {
    background: #2d2d2d;
}

/* 분석 페이지 스타일 */
.analytics-header {
    position: relative;
    overflow: hidden;
}

.analytics-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

.analytics-tab {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.analytics-tab:hover {
    background: rgba(102, 126, 234, 0.1);
}

.analytics-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.analytics-tab .tab-icon {
    font-size: 1.5em;
}

.analytics-tab .tab-label {
    font-size: 0.9em;
    font-weight: 600;
}

.analytics-section {
    display: none;
}

.analytics-section.active {
    display: block;
}

.analytics-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12),
                0 2px 8px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.analytics-card-header {
    margin-bottom: 20px;
}

.header-with-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.player-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-selector label {
    font-size: 0.9em;
    font-weight: 600;
    color: #666;
}

.player-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 0.9em;
    min-width: 150px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.player-select:hover {
    border-color: #667eea;
}

.player-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.view-toggle {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.view-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

.view-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.analytics-card-header h2 {
    font-size: 1.5em;
    color: #333;
    margin: 0 0 8px 0;
}

.analytics-card-header p {
    color: #666;
    margin: 0;
    font-size: 0.9em;
}

.analytics-card-body {
    position: relative;
}

.field-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.field-container canvas {
    width: 100%;
    height: auto;
    display: block;
}

.heatmap-legend {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

.legend-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9em;
}

.legend-gradient {
    flex: 1;
    height: 20px;
    background: linear-gradient(to right,
        rgb(0, 0, 255),
        rgb(0, 255, 255),
        rgb(0, 255, 0),
        rgb(255, 255, 0),
        rgb(255, 0, 0));
    border-radius: 4px;
}

.legend-labels {
    display: flex;
    justify-content: space-between;
    width: 100px;
    font-size: 0.85em;
    color: #666;
}

.shotmap-stats {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    padding: 16px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-label {
    font-size: 0.85em;
    color: #666;
    font-weight: 500;
}

.stat-value {
    font-size: 1.8em;
    font-weight: 700;
    color: #667eea;
}

.shotmap-legend {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #666;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.goal {
    background: rgba(255, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 0, 1);
}

.legend-dot.shot {
    background: rgba(255, 255, 0, 0.4);
    border: 1px solid rgba(255, 255, 0, 0.8);
}

.three-d-container {
    width: 100%;
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.controls-info {
    margin-top: 16px;
    text-align: center;
    color: #666;
    font-size: 0.9em;
    padding: 12px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

/* 다크모드 분석 페이지 */
body.dark-mode .analytics-tabs {
    background: #2d2d2d;
}

body.dark-mode .analytics-tab:hover {
    background: rgba(102, 126, 234, 0.2);
}

body.dark-mode .analytics-card {
    background: linear-gradient(145deg, #2d2d2d 0%, #1a1a1a 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .analytics-card-header h2 {
    color: #ffffff;
}

body.dark-mode .analytics-card-header p {
    color: #aaa;
}

body.dark-mode .player-selector label {
    color: #aaa;
}

body.dark-mode .player-select {
    background: #2d2d2d;
    border-color: #444;
    color: #ffffff;
}

body.dark-mode .player-select:hover {
    border-color: #667eea;
}

body.dark-mode .view-btn {
    background: #2d2d2d;
    border-color: #444;
    color: #ffffff;
}

body.dark-mode .view-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

body.dark-mode .heatmap-legend {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .legend-label,
body.dark-mode .legend-labels,
body.dark-mode .stat-label,
body.dark-mode .legend-item {
    color: #aaa;
}

body.dark-mode .shotmap-stats {
    background: rgba(102, 126, 234, 0.1);
}

body.dark-mode .stat-value {
    color: #8b9aee;
}

body.dark-mode .controls-info {
    background: rgba(255, 255, 255, 0.05);
    color: #aaa;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .analytics-tabs {
        gap: 4px;
    }

    .analytics-tab {
        min-width: 80px;
        padding: 8px 12px;
    }

    .analytics-tab .tab-icon {
        font-size: 1.2em;
    }

    .analytics-tab .tab-label {
        font-size: 0.75em;
    }

    .analytics-card {
        padding: 16px;
    }

    .shotmap-stats {
        flex-direction: column;
        gap: 12px;
    }

    .three-d-container {
        height: 400px;
    }
}

.team-elo {
    font-size: 0.75em;
    color: #999;
    font-weight: 500;
    margin-left: 8px;
}

.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.match-team.home-team {
    align-items: flex-end;
}

.match-team.away-team {
    align-items: flex-start;
}

/* Posts Section */
.posts-section {
    margin-top: 30px;
}

.posts-section h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 20px;
}

body.dark-mode .posts-section h2 {
    color: #e0e0e0;
}

.post-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1),
                0 2px 8px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15),
                0 4px 12px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.post-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1em;
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

.post-time {
    font-size: 0.85em;
    color: #999;
}

.post-content {
    padding: 15px 20px;
}

.post-content p {
    color: #333;
    font-size: 1em;
    line-height: 1.5;
    margin: 0;
}

.post-image {
    width: 100%;
    background: #f8f8f8;
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.post-actions {
    display: flex;
    gap: 20px;
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    color: #666;
    font-size: 0.95em;
}

.action-btn:hover {
    background: #f5f5f5;
    color: #667eea;
}

.action-icon {
    font-size: 1.2em;
}

.action-count {
    font-weight: 500;
}

/* Shop Section */
.new-product-banner {
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 20px;
    align-items: center;
}

.banner-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.3);
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
    backdrop-filter: blur(10px);
    z-index: 1;
}

.banner-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    flex: 1;
}

.banner-content h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.banner-content p {
    font-size: 1em;
    opacity: 0.95;
    margin-bottom: 15px;
}

.banner-price {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.original-price {
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 1em;
}

.sale-price {
    font-size: 1.5em;
    font-weight: bold;
}

.coin-price {
    background: rgba(255, 255, 255, 0.25);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.95em;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.shop-section h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 100px;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.product-card.featured {
    border: 2px solid #667eea;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
    z-index: 10;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-image-container {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-image {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    opacity: 0.9;
}

.product-card h3 {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 10px;
}

.product-prices {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
}

.product-card .coin-price {
    font-size: 0.85em;
    color: #667eea;
    font-weight: 600;
    background: #f0f0ff;
    padding: 4px 8px;
    border-radius: 8px;
    display: inline-block;
}

/* Coin Balance Header (Top of Shop) */
.coin-balance-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
}

.coin-display {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.coin-icon-large {
    font-size: 2.5em;
    line-height: 1;
}

.coin-info-large {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.coin-info-large .coin-label {
    font-size: 0.9em;
    opacity: 0.95;
}

.coin-amount-large {
    font-size: 1.6em;
    font-weight: bold;
    line-height: 1;
}

.play-game-btn {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.play-game-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

/* Old coin balance bar (kept for other pages if needed) */
.coin-balance-bar {
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    z-index: 999;
    color: white;
}

.coin-icon {
    font-size: 2em;
}

.coin-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.coin-label {
    font-size: 0.85em;
    opacity: 0.9;
}

.coin-amount {
    font-size: 1.3em;
    font-weight: bold;
}

/* Game Modal */
.game-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.game-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.game-modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.game-modal-header h2 {
    font-size: 1.5em;
    color: #333;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2em;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #f0f0f0;
    color: #333;
}

.game-modal-body {
    padding: 30px;
}

.game-modal-subtitle {
    color: #666;
    font-size: 1em;
    margin-bottom: 25px;
    text-align: center;
}

.game-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.game-option-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-option-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.game-option-icon {
    font-size: 3em;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.game-option-content {
    flex: 1;
}

.game-option-content h3 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 8px;
}

.game-option-content p {
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.game-reward {
    display: inline-block;
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    color: #856404;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

@media (max-width: 768px) {
    .game-modal-content {
        max-width: 100%;
        margin: 0;
    }

    .game-option-card {
        flex-direction: column;
        text-align: center;
    }

    .game-option-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5em;
    }
}

/* DM Section */
.dm-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dm-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.dm-item:last-child {
    border-bottom: none;
}

.dm-item:hover {
    background: #f8f8f8;
}

.dm-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    background: #f0f0f0;
}

.dm-info {
    flex: 1;
}

.dm-info h3 {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 5px;
}

.dm-info p {
    font-size: 0.9em;
    color: #999;
}

.dm-time {
    font-size: 0.85em;
    color: #999;
}

/* More Section */
.menu-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: #f8f8f8;
}

.menu-icon {
    font-size: 2em;
    width: 50px;
    text-align: center;
}

.menu-text {
    flex: 1;
}

.menu-text h3 {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 3px;
}

.menu-text p {
    font-size: 0.85em;
    color: #999;
}

.menu-arrow {
    font-size: 1.5em;
    color: #ccc;
}

/* Bottom Navigation */
.bottom-nav {
    display: none; /* 사이드바로 대체 */
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
        justify-content: flex-start;
        align-items: center;
        padding: 8px 0;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
    }

    .bottom-nav::-webkit-scrollbar {
        display: none;
    }

    .bottom-nav .nav-item {
        flex: 0 0 auto;
        min-width: 75px;
        max-width: 75px;
        padding: 8px 10px;
        scroll-snap-align: start;
        font-size: 0.9em;
    }

    .bottom-nav .nav-icon {
        font-size: 1.6em;
        margin-bottom: 4px;
    }

    .bottom-nav .nav-label {
        font-size: 0.75em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #888;
    padding: 8px 20px;
    transition: all 0.3s ease;
    min-width: 70px;
    border-radius: 8px;
}

.nav-item:hover {
    color: #00d9ff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: #00d9ff;
    background: rgba(0, 217, 255, 0.1);
}

.nav-icon {
    font-size: 1.8em;
    margin-bottom: 5px;
}

.nav-label {
    font-size: 0.75em;
    font-weight: 500;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .subtitle {
        font-size: 1em;
    }

    .teams-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
        padding: 10px;
    }

    .team-card {
        padding: 20px 15px;
    }

    .team-logo {
        font-size: 3em;
    }

    .team-name {
        font-size: 1.1em;
    }

    .team-logo-large {
        font-size: 4em;
    }

    .team-header h1 {
        font-size: 2em;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }

    .nav-item {
        padding: 8px 15px;
        min-width: 60px;
    }

    .nav-icon {
        font-size: 1.5em;
    }

    .nav-label {
        font-size: 0.7em;
    }
}


/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #87CEEB 0%, #00BFFF 50%, #1E90FF 100%);
    padding: 20px;
}

.login-box {
    background: #f8f8f8;
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    font-size: 4em;
    margin-bottom: 15px;
}

.login-header h1 {
    font-size: 2em;
    color: #333;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 1em;
}

.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-icon {
    font-size: 1.2em;
}

.login-form {
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 0.95em;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 50%, #2563EB 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.5);
}

.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-footer p {
    color: #666;
    font-size: 0.95em;
}

.login-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .login-box {
        padding: 30px 20px;
    }

    .login-logo {
        font-size: 3em;
    }

    .login-header h1 {
        font-size: 1.6em;
    }
}

/* K League Home */
.k-league-header {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    padding: 40px 20px;
    text-align: center;
    color: white;
    margin: -20px -20px 20px -20px;
}

.k-league-logo {
    font-size: 4em;
    margin-bottom: 10px;
}

.k-league-header h1 {
    font-size: 2em;
    margin: 10px 0;
}

.k-league-header p {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Standings Table */
.standings-section {
    margin-bottom: 100px;
}

.standings-section h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 20px;
}

.final-group {
    margin-bottom: 30px;
}

.final-group-title {
    font-size: 1.2em;
    font-weight: bold;
    padding: 12px 15px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.final-group-title.final-a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.final-group-title.final-b {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.standings-table {
    background: white;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.final-group:first-of-type .standings-table {
    border-radius: 0 0 12px 12px;
}

.standings-header {
    display: grid;
    grid-template-columns: 50px 1fr 50px 40px 40px 40px 60px;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    font-weight: bold;
    font-size: 0.9em;
    color: #666;
    border-bottom: 2px solid #e0e0e0;
}

.standings-row {
    display: grid;
    grid-template-columns: 50px 1fr 50px 40px 40px 40px 60px;
    gap: 10px;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.standings-row:last-child {
    border-bottom: none;
}

.standings-row:hover {
    background: #f8f9fa;
}

.standings-row.playoff-zone-a {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    border-left: 3px solid #667eea;
}

.standings-row.playoff-zone-b {
    background: linear-gradient(90deg, rgba(245, 87, 108, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    border-left: 3px solid #f5576c;
}

.rank-col {
    text-align: center;
    font-weight: bold;
    color: #333;
}

.team-col {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-name {
    font-weight: 600;
    color: #333;
}

.stats-col {
    text-align: center;
    color: #666;
}

.stats-col.points {
    font-weight: bold;
    color: #667eea;
    font-size: 1.1em;
}

/* Select Team Banner */
.select-team-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    color: white;
    margin-bottom: 100px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
}

.banner-content-center h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.banner-content-center p {
    font-size: 1em;
    opacity: 0.9;
    margin-bottom: 25px;
}

.select-team-btn {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.select-team-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Players Section */
.players-section {
    margin-bottom: 30px;
}

.players-section h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 20px;
}

.player-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.player-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.player-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.player-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: white;
    background: linear-gradient(135deg, var(--team-color, #667eea) 0%, rgba(0, 0, 0, 0.2) 100%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.player-number {
    font-size: 1.8em;
    font-weight: bold;
}

.player-icon {
    font-size: 1.5em;
}

.player-info {
    margin-top: 8px;
}

.player-name {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.player-position {
    font-size: 0.85em;
    color: #666;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
}

/* Dark mode for players */
.dark-mode .players-section h2 {
    color: #e0e0e0;
}

.dark-mode .player-card {
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .player-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.dark-mode .player-name {
    color: #e0e0e0;
}

.dark-mode .player-position {
    background: #3a3a3a;
    color: #b0b0b0;
}

/* 경기 카드 컨테이너 */
.match-card-container {
    margin-bottom: 15px;
}

/* 경기 상세 패널 (토글) */
.match-detail-panel {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-top: -10px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
    overflow: hidden;
}

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

.detail-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.loading-spinner {
    font-size: 3em;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 득점 이벤트 섹션 */
.goals-section {
    margin-bottom: 25px;
}

.goals-section h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
}

.goal-event {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.goal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.goal-team {
    font-weight: bold;
    color: #667eea;
    font-size: 1.05em;
}

.goal-time {
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: 500;
}

.goal-player {
    color: #333;
    font-weight: 500;
}

/* 패스 경로 시각화 */
.pass-visualization {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pass-visualization h4 {
    color: #555;
    margin-bottom: 10px;
    font-size: 1em;
}

.field-svg {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin: 0 auto 15px auto;
    display: block;
}

.field-svg line,
.field-svg circle[opacity="0"] {
    transition: opacity 0.5s ease;
}

.play-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.play-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.play-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.play-btn:active:not(:disabled) {
    transform: translateY(0);
}

.play-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.play-icon {
    font-size: 1.1em;
}

.pass-sequence-container {
    overflow: hidden;
    width: 100%;
}

.pass-sequence-list {
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f0f0f0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.pass-sequence-list::-webkit-scrollbar {
    height: 6px;
}

.pass-sequence-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.pass-sequence-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.pass-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: white;
    padding: 12px;
    border-radius: 8px;
    min-width: 100px;
    flex-shrink: 0;
}

.pass-number {
    background: #667eea;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
    font-weight: bold;
    flex-shrink: 0;
}

.pass-time {
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: #667eea;
    font-weight: 600;
    text-align: center;
}

.pass-player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.pass-player {
    font-weight: 500;
    color: #333;
    text-align: center;
    font-size: 0.9em;
}

.pass-action {
    color: #666;
    font-size: 0.85em;
    background: #e9ecef;
    padding: 4px 10px;
    border-radius: 12px;
    text-align: center;
    white-space: nowrap;
}

/* 출전 선수 섹션 (상세) */
.players-section-detail {
    margin-top: 25px;
}

.players-section-detail h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
}

.players-grid-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.team-players-detail h4 {
    margin-bottom: 12px;
    color: #667eea;
    font-size: 1.1em;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
}

.player-list-detail {
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f0f0f0;
}

.player-list-detail::-webkit-scrollbar {
    height: 6px;
}

.player-list-detail::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.player-list-detail::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.player-item-detail {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    min-width: 80px;
    flex-shrink: 0;
}

.player-item-detail:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.player-avatar-detail {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.player-name-detail {
    font-weight: 500;
    color: #333;
    font-size: 0.85em;
    text-align: center;
    word-break: keep-all;
}

.player-position-detail {
    font-size: 0.75em;
    color: #666;
    background: white;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.no-data {
    text-align: center;
    color: #999;
    padding: 40px 20px;
}

.error-message {
    text-align: center;
    color: #e74c3c;
    padding: 40px 20px;
}

.match-detail-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.match-detail-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.toggle-icon {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

/* Dark mode for match detail panel */
.dark-mode .match-detail-panel {
    background: #2a2a2a;
}

.dark-mode .goals-section h3,
.dark-mode .players-section-detail h3 {
    color: #e0e0e0;
}

.dark-mode .goal-event {
    background: #1a1a1a;
}

.dark-mode .goal-player {
    color: #e0e0e0;
}

.dark-mode .pass-visualization h4 {
    color: #b0b0b0;
}

.dark-mode .pass-item {
    background: #1a1a1a;
}

.dark-mode .pass-sequence-list::-webkit-scrollbar-track {
    background: #3a3a3a;
}

.dark-mode .pass-sequence-list::-webkit-scrollbar-thumb {
    background: #8b9cf7;
}

.dark-mode .pass-time {
    color: #8b9cf7;
}

.dark-mode .pass-player-avatar {
    background: linear-gradient(135deg, #8b9cf7 0%, #9b7bc2 100%);
    box-shadow: 0 2px 6px rgba(139, 156, 247, 0.3);
}

.dark-mode .pass-player {
    color: #e0e0e0;
}

.dark-mode .pass-action {
    background: #3a3a3a;
    color: #b0b0b0;
}

.dark-mode .play-btn {
    background: linear-gradient(135deg, #8b9cf7 0%, #9b7bc2 100%);
}

.dark-mode .play-btn:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(139, 156, 247, 0.4);
}

.dark-mode .team-players-detail h4 {
    color: #8b9cf7;
    border-bottom-color: #8b9cf7;
}

.dark-mode .player-item-detail {
    background: #1a1a1a;
}

.dark-mode .player-item-detail:hover {
    background: #333;
}

.dark-mode .player-avatar-detail {
    background: linear-gradient(135deg, #8b9cf7 0%, #9b7bc2 100%);
    box-shadow: 0 2px 4px rgba(139, 156, 247, 0.3);
}

.dark-mode .player-name-detail {
    color: #e0e0e0;
}

.dark-mode .player-position-detail {
    background: #3a3a3a;
    color: #b0b0b0;
}

.dark-mode .player-list-detail::-webkit-scrollbar-track {
    background: #3a3a3a;
}

.dark-mode .player-list-detail::-webkit-scrollbar-thumb {
    background: #8b9cf7;
}

/* 인생네컷 스타일 */
.four-cuts-section {
    padding: 20px;
}

.four-cuts-intro {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.intro-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.four-cuts-intro h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

.four-cuts-intro p {
    color: #666;
    font-size: 1em;
}

.four-cuts-preview {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid;
}

.preview-header {
    padding: 20px;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.preview-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.preview-header h3 {
    font-size: 1.3em;
    font-weight: bold;
}

.preview-frames {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.frame-slot {
    background: #f8f9fa;
    border-radius: 8px;
    aspect-ratio: 3/4;
    text-align: center;
    border: 2px dashed;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.frame-slot:hover {
    background: #f0f0f0;
}

.frame-placeholder {
    font-size: 3em;
    opacity: 0.3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.frame-content {
    width: 100%;
    height: 100%;
}

.frame-slot p {
    color: #999;
    font-size: 0.9em;
}

.preview-footer {
    padding: 15px;
    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 0.9em;
}

.start-photo-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 25px;
}

.start-photo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.four-cuts-features {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.four-cuts-features h3 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.feature-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 5px;
}

.feature-content p {
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
}

/* 선수 사진 프레임 */
.player-frame-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.frame-slot {
    cursor: pointer;
    position: relative;
}

.frame-slot:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 선수 선택 UI - 제어 버튼 */
.photo-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.control-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.5em;
    color: #333;
    margin: 0;
}

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

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

/* 선수 그리드 */
.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.player-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.player-card:hover {
    background: #e9ecef;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.player-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

.player-placeholder {
    width: 80px;
    height: 80px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    background: #dee2e6;
    border-radius: 50%;
    color: #999;
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.player-name {
    font-size: 0.9em;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.player-position {
    font-size: 0.75em;
    color: #666;
    margin: 0;
}

/* 다크모드 토글 스위치 */
.dark-mode-toggle-item {
    cursor: default !important;
}

.dark-mode-toggle-item:hover {
    background: white !important;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #2196F3;
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* 다크모드 스타일 */
body.dark-mode {
    background: #1a1a1a;
}

body.dark-mode .app-container {
    background: #1a1a1a;
}

body.dark-mode .main-content {
    background: #1a1a1a;
}

body.dark-mode .page-header {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    color: #ffffff;
}

body.dark-mode .page-header h1 {
    color: #ffffff;
}

body.dark-mode .page-header p {
    color: #cccccc;
}

body.dark-mode .content-area {
    background: #1a1a1a;
}

body.dark-mode .top-player-card {
    background: #2d2d2d !important;
    border-color: #3d3d3d;
}

body.dark-mode .top-player-card,
body.dark-mode .top-player-card.goals,
body.dark-mode .top-player-card.assists,
body.dark-mode .top-player-card.defense {
    background: linear-gradient(145deg, #2d2d2d 0%, #1a1a1a 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
                0 2px 8px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark-mode .top-player-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4),
                0 4px 12px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.dark-mode .top-player-card.goals .top-player-stat-small,
body.dark-mode .top-player-card.assists .top-player-stat-small,
body.dark-mode .top-player-card.defense .top-player-stat-small {
    color: #ffffff;
    font-weight: 700;
}

body.dark-mode .champion-name,
body.dark-mode .champion-stat {
    color: #ffffff;
}

body.dark-mode .other-name {
    color: #cccccc;
}

body.dark-mode .other-rank {
    color: #999;
}

body.dark-mode .other-stat {
    color: #ffffff;
}

body.dark-mode .other-player-item:hover {
    background: rgba(255,255,255,0.05);
}

body.dark-mode .top-player-others {
    border-top-color: rgba(255,255,255,0.1);
}

body.dark-mode .top-player-title {
    color: #ffffff;
    border-bottom-color: rgba(255,255,255,0.1);
}

body.dark-mode .top-player-name-small {
    color: #ffffff;
}

body.dark-mode .top-player-item:hover {
    background: rgba(255,255,255,0.05);
}

body.dark-mode .top-player-empty {
    color: #999999;
}

body.dark-mode .top-players-note {
    color: #999999;
}

body.dark-mode .menu-item {
    background: #2d2d2d;
    border-color: #3d3d3d;
}

body.dark-mode .menu-item:hover {
    background: #3d3d3d;
}

body.dark-mode .menu-text h3 {
    color: #ffffff;
}

body.dark-mode .menu-text p {
    color: #999999;
}

body.dark-mode .menu-arrow {
    color: #ffffff;
}

body.dark-mode .bottom-nav {
    background: #2d2d2d;
    border-top: 1px solid #3d3d3d;
}

body.dark-mode .nav-item {
    color: #999999;
}

body.dark-mode .nav-item.active {
    color: #ffffff;
}

body.dark-mode .nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* 다크모드 - 네컷 페이지 */
body.dark-mode .four-cuts-intro {
    background: #2d2d2d;
}

body.dark-mode .four-cuts-intro h2 {
    color: #ffffff;
}

body.dark-mode .four-cuts-intro p {
    color: #cccccc;
}

body.dark-mode .four-cuts-preview {
    background: #2d2d2d;
}

body.dark-mode .frame-slot {
    background: #1a1a1a;
    border-color: inherit;
}

body.dark-mode .frame-slot:hover {
    background: #252525;
}

body.dark-mode .frame-slot p {
    color: #666666;
}

body.dark-mode .four-cuts-features {
    background: #2d2d2d;
}

body.dark-mode .four-cuts-features h3 {
    color: #ffffff;
}

body.dark-mode .feature-item {
    background: #1a1a1a;
}

body.dark-mode .feature-item:hover {
    background: #252525;
}

body.dark-mode .feature-content h4 {
    color: #ffffff;
}

body.dark-mode .feature-content p {
    color: #999999;
}

/* 다크모드 - 홈 페이지 */
body.dark-mode .post-card,
body.dark-mode .news-card,
body.dark-mode .match-card {
    background: linear-gradient(145deg, #2d2d2d 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
                0 2px 8px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark-mode .post-card:hover,
body.dark-mode .news-card:hover,
body.dark-mode .match-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4),
                0 4px 12px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.dark-mode .wp-bar-container {
    background: #1a1a1a;
}

body.dark-mode .wp-bar-label span:first-child {
    color: #ffffff;
}

body.dark-mode .wp-percentage {
    color: #a8b3ff;
}

body.dark-mode .wp-bar {
    background: #404040;
}

body.dark-mode .team-elo {
    color: #888;
}

body.dark-mode .post-header h3,
body.dark-mode .news-content h3,
body.dark-mode .match-info h3 {
    color: #ffffff;
}

body.dark-mode .post-content p,
body.dark-mode .news-content p,
body.dark-mode .match-info p {
    color: #cccccc;
}

/* 다크모드 - Shop 페이지 */
body.dark-mode .coin-balance-header,
body.dark-mode .product-card,
body.dark-mode .new-product-banner {
    background: #2d2d2d !important;
}

body.dark-mode .product-card h3,
body.dark-mode .coin-label {
    color: #ffffff;
}

body.dark-mode .product-prices p {
    color: #cccccc;
}

/* 다크모드 - DM 페이지 */
body.dark-mode .dm-item {
    background: #2d2d2d;
    border-color: #3d3d3d;
}

body.dark-mode .dm-info h3 {
    color: #ffffff;
}

body.dark-mode .dm-info p {
    color: #999999;
}

/* 다크모드 - 경기 일정 페이지 */
body.dark-mode .matches-section h2 {
    color: #ffffff;
}

body.dark-mode .match-date {
    color: #999999;
}

body.dark-mode .match-team .team-name {
    color: #ffffff;
}

body.dark-mode .match-team.home-team .team-name,
body.dark-mode .match-team.away-team .team-name {
    color: #667eea;
}

body.dark-mode .match-team .team-score {
    color: #ffffff;
}

body.dark-mode .match-vs {
    color: #999999;
}

body.dark-mode .match-venue {
    color: #cccccc;
    border-top-color: #3d3d3d;
}

body.dark-mode .match-status {
    color: inherit;
}

body.dark-mode .upcoming-match .match-status {
    background: rgba(25, 118, 210, 0.2);
    color: #64b5f6;
}

body.dark-mode .past-match .match-status {
    background: #3d3d3d;
    color: #999999;
}

/* ========== 모바일 반응형 ========== */

/* 태블릿 (768px 이하) */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
        font-size: 13px;
    }

    .team-logo-large-img img,
    .team-logo-large-fallback {
        width: 80px !important;
        height: 80px !important;
    }

    .team-name {
        font-size: 16px !important;
    }

    .nav-section-title {
        font-size: 11px;
        padding: 12px 15px 6px;
    }

    .sidebar-nav-item {
        padding: 10px 15px;
    }

    .nav-item-icon {
        font-size: 16px;
    }

    .nav-item-text {
        font-size: 13px;
    }

    .main-content {
        margin-left: 200px !important;
        padding: 15px;
    }

    .team-header {
        padding: 30px 15px !important;
    }

    .team-header h1 {
        font-size: 1.8em !important;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-value {
        font-size: 1.5em;
    }

    .posts-container {
        padding: 15px !important;
    }

    .post-card {
        padding: 15px !important;
    }

    .post-meta {
        font-size: 12px;
    }

    .post-title {
        font-size: 15px !important;
    }
}

/* 모바일 (480px 이하) */
@media (max-width: 480px) {
    /* body 패딩 제거로 전체 너비 확보 */
    body {
        padding: 0 !important;
        margin: 0 !important;
    }

    .app-container {
        padding: 0 !important;
        margin: 0 !important;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        margin: 0 !important;
        padding: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .team-header {
        padding: 20px 10px !important;
    }

    .team-header h1 {
        font-size: 1.3em !important;
    }

    /* 모든 그리드를 3단으로 고정 */
    .stats-grid,
    .players-grid,
    .rankings-grid,
    .matches-grid,
    .gallery-grid,
    .goods-grid,
    [class*="-grid"] {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    .stat-card {
        padding: 10px;
    }

    .stat-label {
        font-size: 10px;
    }

    .stat-value {
        font-size: 1em;
    }

    .stat-trend {
        font-size: 10px;
    }

    /* 득점왕/도움왕/수비왕 카드 축소 */
    .top-players-banner {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 3px !important;
        margin-bottom: 10px !important;
    }

    .top-player-card {
        padding: 4px !important;
        border-radius: 6px !important;
        min-width: 0 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }

    .top-player-card::before {
        height: 2px !important;
    }

    .top-player-title {
        font-size: 0.55em !important;
        margin-bottom: 2px !important;
        padding-bottom: 2px !important;
        font-weight: 600 !important;
    }

    .top-player-rank {
        width: 11px !important;
        height: 11px !important;
        font-size: 0.45em !important;
    }

    .top-player-avatar-small {
        width: 16px !important;
        height: 16px !important;
        flex-shrink: 0 !important;
    }

    .top-player-info {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .top-player-name-small {
        font-size: 0.55em !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.2 !important;
    }

    .top-player-stat-small {
        font-size: 0.6em !important;
        min-width: 14px !important;
        font-weight: 700 !important;
        flex-shrink: 0 !important;
    }

    .top-player-item {
        display: flex !important;
        align-items: center !important;
        gap: 2px !important;
        padding: 2px 2px !important;
    }

    .top-player-list {
        gap: 2px !important;
    }

    /* 1위 챔피언 스타일 축소 */
    .top-player-champion {
        padding: 3px 2px !important;
    }

    .champion-avatar {
        width: 30px !important;
        height: 30px !important;
        margin: 0 auto 2px !important;
    }

    .champion-placeholder {
        font-size: 1.2em !important;
    }

    .champion-name {
        font-size: 0.55em !important;
        margin-bottom: 1px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-weight: 600 !important;
    }

    .champion-stat {
        font-size: 0.7em !important;
        font-weight: 700 !important;
    }

    .top-player-others {
        margin-top: 3px !important;
        padding-top: 3px !important;
    }

    /* 2-5위 선수 스타일 */
    .other-player-item {
        display: flex !important;
        align-items: center !important;
        gap: 2px !important;
        padding: 2px 2px !important;
        font-size: 0.7em !important;
    }

    .other-rank {
        width: 11px !important;
        height: 11px !important;
        font-size: 0.45em !important;
        flex-shrink: 0 !important;
    }

    .other-avatar {
        width: 16px !important;
        height: 16px !important;
        flex-shrink: 0 !important;
    }

    .other-name {
        flex: 1 !important;
        font-size: 0.8em !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        min-width: 0 !important;
    }

    .other-stat {
        font-size: 0.85em !important;
        font-weight: 700 !important;
        min-width: 14px !important;
        flex-shrink: 0 !important;
    }

    /* 1단 레이아웃 (포스트, 매치 등) 너비 조정 */
    .posts-container,
    .matches-container,
    .section-content {
        padding: 5px !important;
    }

    .post-card,
    .match-card {
        padding: 15px !important;
        margin: 5px 0 !important;
    }

    .post-meta {
        font-size: 10px;
    }

    .post-title {
        font-size: 13px !important;
    }

    .post-excerpt {
        font-size: 11px !important;
    }

    .section-header h2 {
        font-size: 1.1em;
    }

    .post-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    /* 매치 카드 조정 */
    .match-team {
        padding: 10px !important;
    }

    .team-name {
        font-size: 12px !important;
    }

    .team-score {
        font-size: 18px !important;
    }

    /* 팀 로고 크기 */
    .team-logo-large-img img,
    .team-logo-large-fallback {
        width: 50px !important;
        height: 50px !important;
    }

    /* 버튼 크기 축소 */
    button, .btn {
        font-size: 12px !important;
        padding: 8px 12px !important;
    }

    /* 폰트 사이즈 전체 축소 */
    body {
        font-size: 12px;
    }

    h1 { font-size: 1.5em !important; }
    h2 { font-size: 1.3em !important; }
    h3 { font-size: 1.1em !important; }

    /* 네컷사진 모바일 최적화 */
    .four-cuts-section {
        padding: 10px !important;
    }

    .four-cuts-intro {
        padding: 15px 10px !important;
        margin-bottom: 15px !important;
    }

    .intro-icon {
        font-size: 2em !important;
        margin-bottom: 8px !important;
    }

    .four-cuts-intro h2 {
        font-size: 1.1em !important;
        margin-bottom: 6px !important;
    }

    .four-cuts-intro p {
        font-size: 0.85em !important;
    }

    /* 네컷 프레임 크기 축소 */
    .four-cuts-preview {
        margin-bottom: 15px !important;
        border-width: 2px !important;
    }

    .preview-header {
        padding: 12px !important;
        gap: 8px !important;
    }

    .preview-logo {
        width: 25px !important;
        height: 25px !important;
    }

    .preview-header h3 {
        font-size: 1em !important;
    }

    .preview-frames {
        padding: 10px !important;
        gap: 8px !important;
    }

    .frame-slot {
        border-width: 1px !important;
    }

    .player-frame-photo {
        height: 120px !important;
        margin-bottom: 6px !important;
    }

    .frame-placeholder {
        font-size: 2em !important;
    }

    .frame-slot p {
        font-size: 0.75em !important;
    }

    .preview-footer {
        padding: 10px !important;
        font-size: 0.75em !important;
    }

    /* 제어 버튼 */
    .photo-controls {
        gap: 6px !important;
        margin-bottom: 15px !important;
    }

    .control-btn {
        padding: 10px !important;
        font-size: 0.85em !important;
        border-radius: 8px !important;
    }

    /* 모달 모바일 */
    .modal {
        padding: 10px !important;
    }

    .modal-content {
        max-height: 90vh !important;
    }

    .modal-header {
        padding: 15px !important;
    }

    .modal-header h3 {
        font-size: 1.2em !important;
    }

    .modal-close {
        width: 35px !important;
        height: 35px !important;
        font-size: 1.5em !important;
    }

    .modal-body {
        padding: 15px !important;
    }

    .player-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    .player-card {
        padding: 6px !important;
    }

    .player-card img,
    .player-placeholder {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 5px !important;
    }

    .player-placeholder {
        font-size: 2em !important;
    }

    .player-name {
        font-size: 0.75em !important;
    }

    .player-position {
        font-size: 0.65em !important;
    }

    /* 기능 안내 */
    .four-cuts-features {
        padding: 15px !important;
    }

    .four-cuts-features h3 {
        font-size: 1em !important;
        margin-bottom: 12px !important;
    }

    .feature-list {
        gap: 8px !important;
    }

    .feature-item {
        padding: 10px !important;
        gap: 10px !important;
    }

    .feature-icon {
        font-size: 1.5em !important;
    }

    .feature-content h4 {
        font-size: 0.9em !important;
        margin-bottom: 3px !important;
    }

    .feature-content p {
        font-size: 0.75em !important;
    }
}

/* DM 페이지 스타일 */
.dm-section {
    padding: 20px;
}

.dm-header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dm-header-controls h2 {
    font-size: 1.5em;
    color: #333;
    margin: 0;
}

.new-chat-btn, .start-chat-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.new-chat-btn:hover, .start-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dm-list {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.dm-list h3 {
    padding: 15px 20px;
    margin: 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.1em;
    color: #333;
}

.dm-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.dm-item:hover {
    background: #f8f9fa;
}

.dm-item:last-child {
    border-bottom: none;
}

.dm-avatar, .dm-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    flex-shrink: 0;
    background: #e0e0e0;
}

.dm-avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.dm-info {
    flex: 1;
    min-width: 0;
}

.dm-info h3 {
    font-size: 1em;
    margin: 0 0 5px 0;
    color: #333;
    font-weight: 600;
    padding: 0;
    background: none;
    border: none;
}

.dm-info p {
    font-size: 0.9em;
    color: #666;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-position-tag {
    font-size: 0.75em;
    color: #999;
    font-weight: normal;
    margin-left: 5px;
}

.dm-time {
    font-size: 0.8em;
    color: #999;
    flex-shrink: 0;
}

.unread-badge {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #ff4444;
    color: white;
    font-size: 0.75em;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: bold;
}

.empty-state {
    background: white;
    border-radius: 15px;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.empty-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 10px;
}

.empty-state p {
    color: #666;
    margin-bottom: 25px;
}

/* 채팅 페이지 스타일 */
.chat-header {
    background: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.back-btn {
    font-size: 1.5em;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.back-btn:hover {
    background: #f0f0f0;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.chat-avatar, .chat-avatar-placeholder {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
}

.chat-header-info h2 {
    font-size: 1.1em;
    margin: 0 0 3px 0;
    color: #333;
}

.chat-header-info p {
    font-size: 0.85em;
    color: #999;
    margin: 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: calc(100vh - 250px);
    max-height: calc(100vh - 250px);
}

.message {
    display: flex;
    margin-bottom: 10px;
}

.message.sent {
    justify-content: flex-end;
}

.message.received {
    justify-content: flex-start;
}

.message-content {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
}

.message.sent .message-content {
    background: #007bff;
    color: white;
    border-bottom-right-radius: 4px;
}

.message.received .message-content {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message-content p {
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.message-time {
    font-size: 0.7em;
    opacity: 0.7;
}

.empty-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #999;
}

.empty-chat .empty-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.empty-chat p {
    font-size: 1em;
    color: #666;
}

.chat-input-container {
    background: white;
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 12px 16px;
    font-size: 1em;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    overflow-y: auto;
    font-family: inherit;
}

.chat-input:focus {
    outline: none;
    border-color: #007bff;
}

.send-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.send-btn:hover:not(:disabled) {
    opacity: 0.9;
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 다크모드 DM 스타일 */
body.dark-mode .dm-header-controls h2 {
    color: #e0e0e0;
}

body.dark-mode .dm-list {
    background: #2a2a2a;
}

body.dark-mode .dm-list h3 {
    background: #333;
    color: #e0e0e0;
    border-bottom-color: #444;
}

body.dark-mode .dm-item {
    border-bottom-color: #333;
}

body.dark-mode .dm-item:hover {
    background: #333;
}

body.dark-mode .dm-info h3 {
    color: #e0e0e0;
}

body.dark-mode .dm-info p {
    color: #999;
}

body.dark-mode .empty-state {
    background: #2a2a2a;
}

body.dark-mode .empty-state h3 {
    color: #e0e0e0;
}

body.dark-mode .empty-state p {
    color: #999;
}

body.dark-mode .chat-header {
    background: #2a2a2a;
    border-bottom-color: #444;
}

body.dark-mode .back-btn {
    color: #e0e0e0;
}

body.dark-mode .back-btn:hover {
    background: #333;
}

body.dark-mode .chat-header-info h2 {
    color: #e0e0e0;
}

body.dark-mode .chat-messages {
    background: #1a1a1a;
}

body.dark-mode .message.received .message-content {
    background: #2a2a2a;
    color: #e0e0e0;
}

body.dark-mode .empty-chat p {
    color: #999;
}

body.dark-mode .chat-input-container {
    background: #2a2a2a;
    border-top-color: #444;
}

body.dark-mode .chat-input {
    background: #1a1a1a;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-mode .chat-input:focus {
    border-color: #007bff;
}

/* 모바일 DM 스타일 */
@media (max-width: 480px) {
    .dm-header-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .dm-header-controls h2 {
        font-size: 1.2em;
    }

    .new-chat-btn {
        width: 100%;
    }

    .dm-avatar, .dm-avatar-img, .dm-avatar-placeholder {
        width: 40px;
        height: 40px;
    }

    .dm-info h3 {
        font-size: 0.9em;
    }

    .dm-info p {
        font-size: 0.8em;
    }

    .chat-header {
        padding: 12px 15px;
    }

    .chat-avatar, .chat-avatar-placeholder {
        width: 35px;
        height: 35px;
    }

    .chat-header-info h2 {
        font-size: 1em;
    }

    .chat-header-info p {
        font-size: 0.75em;
    }

    .chat-messages {
        padding: 15px;
        min-height: calc(100vh - 280px);
        max-height: calc(100vh - 280px);
    }

    .message-content {
        max-width: 85%;
        padding: 10px 14px;
    }

    .chat-input-container {
        padding: 12px 15px;
    }

    .send-btn {
        padding: 10px 18px;
        font-size: 0.9em;
    }
}

/* SVG 아이콘 스타일 */
.nav-item-icon svg,
.nav-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    display: block;
}

.sidebar-nav-item .nav-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.bottom-nav .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 다크모드 아이콘 색상 */
body.dark-mode .nav-item-icon svg,
body.dark-mode .nav-icon svg {
    fill: currentColor;
}

/* active 상태 아이콘 */
.sidebar-nav-item.active .nav-item-icon svg,
.bottom-nav .nav-item.active .nav-icon svg {
    fill: currentColor;
}

/* 최근 전적 인라인 */
.recent-results-inline {
    margin-bottom: 16px;
    text-align: center;
}

.recent-results-title {
    font-size: 0.95em;
    color: #aaa;
    margin-bottom: 10px;
    font-weight: 500;
}

.recent-results-inline .recent-results-badges {
    margin-bottom: 0;
}

/* 최근 전적 섹션 */
.recent-results-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.recent-results-section h2 {
    color: #fff;
    font-size: 1.1em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recent-results-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 12px;
}

.result-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.result-badge:hover {
    transform: scale(1.1);
}

.recent-results-summary {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-item {
    font-size: 0.95em;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.summary-item.win {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
}

.summary-item.draw {
    color: #6b7280;
    background: rgba(107, 114, 128, 0.15);
}

.summary-item.loss {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

/* 다크모드 최근 전적 */
body.dark-mode .recent-results-section {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
}

/* 모바일 최근 전적 */
@media (max-width: 768px) {
    .recent-results-badges {
        gap: 8px;
    }

    .result-badge {
        width: 42px;
        height: 42px;
        font-size: 1em;
    }

    .recent-results-summary {
        gap: 12px;
    }

    .summary-item {
        font-size: 0.85em;
        padding: 3px 10px;
    }
}

/* 득점자 요약 */
.match-scorers {
    margin-top: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.scorers-title {
    font-size: 0.9em;
    font-weight: 600;
    color: #aaa;
    margin-bottom: 10px;
}

.scorers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scorer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background 0.2s;
}

.scorer-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.scorer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.scorer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scorer-avatar span {
    font-size: 1em;
}

.scorer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.scorer-name {
    font-weight: 600;
    font-size: 0.95em;
    color: #fff;
}

.scorer-team {
    font-size: 0.8em;
    color: #888;
}

.scorer-time {
    font-size: 0.85em;
    font-weight: 600;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
    padding: 4px 8px;
    border-radius: 12px;
}

/* 모바일 득점자 요약 */
@media (max-width: 768px) {
    .scorer-avatar {
        width: 32px;
        height: 32px;
    }

    .scorer-name {
        font-size: 0.9em;
    }

    .scorer-time {
        font-size: 0.8em;
        padding: 3px 6px;
    }
}

/* ========================================
   다음 경기 예측 상세 패널 스타일
   ======================================== */

.prediction-detail-btn {
    width: 100%;
    padding: 12px 20px;
    margin-top: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.prediction-detail-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.prediction-detail-btn .toggle-icon {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.prediction-detail-panel {
    background: linear-gradient(145deg, #f8f9ff 0%, #f0f2ff 100%);
    border-radius: 16px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.prediction-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.prediction-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.prediction-section h4 {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 맞대결 히스토리 배지 */
.h2h-visual-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.h2h-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
    color: white;
    cursor: default;
    transition: transform 0.2s ease;
}

.h2h-badge:hover {
    transform: scale(1.1);
}

.h2h-badge.win {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.h2h-badge.lose {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.h2h-badge.draw {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.h2h-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.h2h-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    font-size: 0.9em;
}

.h2h-date {
    color: #666;
}

.h2h-score-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    color: white;
}

.h2h-score-badge.win {
    background: #22c55e;
}

.h2h-score-badge.lose {
    background: #ef4444;
}

.h2h-score-badge.draw {
    background: #6b7280;
}

/* 폼 비교 */
.form-comparison {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: white;
    border-radius: 10px;
}

.form-team-name {
    font-weight: 600;
    color: #333;
    min-width: 100px;
}

.form-badges {
    display: flex;
    gap: 6px;
}

.form-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8em;
    color: white;
    cursor: default;
}

.form-badge.win {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.form-badge.lose {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.form-badge.draw {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

/* 키플레이어 */
.key-players-subtitle {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 12px;
}

.key-players-list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.key-player-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: white;
    border-radius: 12px;
    min-width: 150px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.key-player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
    overflow: hidden;
}

.key-player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.key-player-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.key-player-name {
    font-weight: 600;
    color: #333;
}

.key-player-goals {
    font-size: 0.9em;
    color: #667eea;
    font-weight: 600;
}

/* AI 예측 */
.ai-prediction-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
}

.ai-win-prob {
    margin-bottom: 20px;
}

.ai-prob-bar-container {
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.ai-prob-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.ai-prob-text {
    font-size: 1em;
    color: #333;
}

.ai-prob-text strong {
    color: #667eea;
    font-size: 1.2em;
}

.ai-prediction-factors {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.factor-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 15px;
    background: #f8f9ff;
    border-radius: 10px;
    min-width: 100px;
}

.factor-label {
    font-size: 0.8em;
    color: #666;
}

.factor-value {
    font-weight: 700;
    font-size: 1.1em;
    color: #333;
}

.factor-value.positive {
    color: #22c55e;
}

.factor-value.negative {
    color: #ef4444;
}

.ai-prediction-note {
    font-size: 0.8em;
    color: #888;
    font-style: italic;
}

.no-data-msg {
    color: #999;
    font-size: 0.9em;
    text-align: center;
    padding: 20px;
}

/* 다크모드 */
body.dark-mode .prediction-detail-panel {
    background: linear-gradient(145deg, #2a2a2a 0%, #333 100%);
    border-color: rgba(102, 126, 234, 0.3);
}

body.dark-mode .prediction-section {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .prediction-section h4 {
    color: #fff;
}

body.dark-mode .h2h-history-item {
    background: #3a3a3a;
}

body.dark-mode .h2h-date {
    color: #aaa;
}

body.dark-mode .form-team {
    background: #3a3a3a;
}

body.dark-mode .form-team-name {
    color: #fff;
}

body.dark-mode .key-player-item {
    background: #3a3a3a;
}

body.dark-mode .key-player-name {
    color: #fff;
}

body.dark-mode .ai-prediction-content {
    background: #3a3a3a;
}

body.dark-mode .ai-prob-bar-container {
    background: #555;
}

body.dark-mode .ai-prob-text {
    color: #fff;
}

body.dark-mode .factor-item {
    background: #444;
}

body.dark-mode .factor-label {
    color: #aaa;
}

body.dark-mode .factor-value {
    color: #fff;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .prediction-detail-panel {
        padding: 15px;
    }

    .h2h-badge {
        width: 35px;
        height: 35px;
        font-size: 0.8em;
    }

    .form-team {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .form-team-name {
        min-width: auto;
    }

    .key-players-list {
        flex-direction: column;
    }

    .key-player-item {
        min-width: auto;
        width: 100%;
    }

    .ai-prediction-factors {
        flex-direction: column;
    }

    .factor-item {
        min-width: auto;
    }
}

/* ===== 팀 키워드 섹션 스타일 ===== */
.team-keywords-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.team-keywords-section h2 {
    font-size: 1.2em;
    margin-bottom: 16px;
    color: #333;
}

.team-keywords-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.team-keyword-card {
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.team-keyword-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.team-keyword-card.defense {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.team-keyword-card.attack {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: white;
}

.team-keyword-card.style {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
}

.keyword-category {
    font-size: 0.75em;
    opacity: 0.9;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.keyword-name {
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 8px;
}

.keyword-description {
    font-size: 0.8em;
    opacity: 0.9;
    line-height: 1.4;
}

/* 다크모드 */
body.dark-mode .team-keywords-section {
    background: #1e1e1e;
}

body.dark-mode .team-keywords-section h2 {
    color: #fff;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .team-keywords-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .team-keyword-card {
        padding: 14px;
    }
}

/* ===== 네컷 개선 스타일 ===== */

/* 포지션 필터 */
.position-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.position-btn {
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    background: white;
    color: #374151;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.position-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.position-btn.active {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
}

/* 스티커 패널 */
.sticker-panel {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 16px;
}

.sticker-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sticker-panel-header h3 {
    margin: 0;
    font-size: 1.1em;
}

.sticker-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

/* 프레임 선택 버튼 */
.frame-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px;
    background: #f3f4f6;
    border-radius: 8px;
}

.frame-selector-label {
    font-size: 0.9em;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
}

.frame-btns {
    display: flex;
    gap: 6px;
    flex: 1;
}

.frame-btn {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background: white;
    color: #374151;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s;
}

.frame-btn:hover {
    border-color: #6366f1;
}

.frame-btn.active {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
}

.sticker-tab {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #f3f4f6;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.sticker-tab.active {
    background: #6366f1;
    color: white;
}

.sticker-content {
    max-height: 250px;
    overflow-y: auto;
}

.sticker-category {
    margin-bottom: 16px;
}

.sticker-category h4 {
    margin: 0 0 8px 0;
    font-size: 0.85em;
    color: #6b7280;
}

.sticker-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.sticker-item {
    font-size: 28px;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.sticker-item:hover {
    transform: scale(1.2);
    background: #f3f4f6;
}

/* 낙서 도구 */
.drawing-tools {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.color-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    box-shadow: 0 0 0 3px #6366f1;
}

.brush-size {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brush-size label {
    font-size: 0.9em;
    color: #374151;
}

.brush-size input[type="range"] {
    flex: 1;
}

.drawing-actions {
    display: flex;
    gap: 10px;
}

.drawing-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.drawing-actions button:hover {
    opacity: 0.9;
}

/* 스티커 요소 */
.sticker-element {
    position: absolute;
    cursor: move;
    user-select: none;
    z-index: 100;
}

/* 다크모드 스티커 패널 */
body.dark-mode .sticker-panel {
    background: #1e1e1e;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

body.dark-mode .sticker-panel-header h3 {
    color: #e5e7eb;
}

body.dark-mode .sticker-panel-header button {
    color: #e5e7eb;
}

body.dark-mode .sticker-tab {
    background: #374151;
    color: #e5e7eb;
}

body.dark-mode .sticker-tab.active {
    background: #6366f1;
    color: white;
}

body.dark-mode .sticker-category h4 {
    color: #e5e7eb;
}

body.dark-mode .sticker-item:hover {
    background: #374151;
}

body.dark-mode .frame-selector {
    background: #2d2d2d;
}

body.dark-mode .frame-selector-label {
    color: #e5e7eb;
}

body.dark-mode .frame-btn {
    background: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

body.dark-mode .frame-btn.active {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
}

body.dark-mode .brush-size label,
body.dark-mode .drawing-tools label {
    color: #e5e7eb;
}

body.dark-mode .position-btn {
    background: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

body.dark-mode .position-btn.active {
    background: #6366f1;
    border-color: #6366f1;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .sticker-panel {
        bottom: 70px;
        width: 95%;
    }

    .sticker-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .position-filter {
        gap: 5px;
    }

    .position-btn {
        padding: 6px 12px;
        font-size: 0.8em;
    }
}

/* ===== 하이라이트 영상 섹션 스타일 ===== */
.highlights-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.highlights-section h2 {
    font-size: 1.2em;
    margin-bottom: 16px;
    color: #333;
}

.highlights-container {
    margin-bottom: 16px;
}

.highlight-card {
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.highlight-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 비율 */
}

.highlight-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.highlight-info {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
}

.highlight-badge {
    background: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
}

.highlight-title {
    color: white;
    font-weight: 500;
    font-size: 0.95em;
}

.highlights-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.highlight-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: transform 0.2s, box-shadow 0.2s;
}

.highlight-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 다크모드 */
body.dark-mode .highlights-section {
    background: #1e1e1e;
}

body.dark-mode .highlights-section h2 {
    color: #fff;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .highlights-links {
        flex-direction: column;
    }

    .highlight-link-btn {
        justify-content: center;
    }
}

/* ==========================================
   모바일 팀 스토리 (인스타그램 스타일)
   ========================================== */
.mobile-team-stories {
    display: none; /* 기본적으로 숨김 */
    overflow-x: auto;
    padding: 12px 16px;
    gap: 16px;
    background: var(--bg-primary, #1a1a2e);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mobile-team-stories::-webkit-scrollbar {
    display: none;
}

/* 모바일에서만 표시 */
@media (max-width: 768px) {
    .mobile-team-stories {
        display: flex;
    }
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    flex-shrink: 0;
}

.story-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, var(--team-color, #667eea), var(--team-color, #764ba2), #f093fb);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-item.active .story-ring {
    box-shadow: 0 0 0 2px var(--bg-primary, #1a1a2e), 0 0 0 4px var(--team-color, #667eea);
}

.story-item:not(.active) .story-ring {
    background: linear-gradient(45deg, #444, #666);
    opacity: 0.7;
}

.story-ring:hover {
    transform: scale(1.05);
}

.story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-secondary, #252542);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.story-avatar img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.story-name {
    font-size: 11px;
    color: var(--text-secondary, #aaa);
    max-width: 64px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.story-item.active .story-name {
    color: var(--text-primary, #fff);
    font-weight: 600;
}

/* 팀 추가 버튼 */
.story-item.add-team .story-ring {
    background: transparent;
    border: 2px dashed #555;
}

.story-item.add-team .story-ring.add {
    background: transparent;
}

.story-item.add-team .story-avatar {
    background: transparent;
    border: none;
}

.story-item.add-team .story-avatar span {
    font-size: 28px;
    color: #888;
}

.story-item.add-team:hover .story-avatar span {
    color: #fff;
}

/* 다크모드 */
body.dark-mode .mobile-team-stories {
    background: #0d0d1a;
}

body.dark-mode .story-avatar {
    background: #1a1a2e;
}

/* 매치 상세 패널 모바일 스타일 */
@media (max-width: 768px) {
    .pass-item {
        min-width: 70px;
        padding: 8px;
        gap: 4px;
    }

    .pass-number {
        width: 20px;
        height: 20px;
        font-size: 0.75em;
    }

    .pass-time {
        font-size: 0.75em;
    }

    .pass-player-avatar {
        width: 32px;
        height: 32px;
        font-size: 1em;
    }

    .pass-player {
        font-size: 0.8em;
    }

    .pass-action {
        font-size: 0.75em;
        padding: 3px 8px;
    }

    .player-item-detail {
        min-width: 65px;
        padding: 8px;
        gap: 4px;
    }

    .player-avatar-detail {
        width: 32px;
        height: 32px;
        font-size: 1em;
    }

    .player-name-detail {
        font-size: 0.75em;
    }

    .player-position-detail {
        font-size: 0.65em;
        padding: 2px 6px;
    }

    .match-detail-panel {
        padding: 15px;
    }

    .pass-sequence-list {
        gap: 8px;
    }

    .player-list-detail {
        gap: 6px;
    }
}
