/**
 * Sports KR Redesign - Premium Theme
 * Light Mode & Dark Mode Support
 * Based on design_preview_korean.html
 */

/* ================= Full Width Override ================= */

/* main-content의 margin-right 제거하여 사이드바 사이 전체 너비 사용 */
.main-content {
    margin-right: 0 !important;
}

/* 배당판 영역 - main-content padding 무시하고 전체 너비 사용 */
#matches {
    width: calc(100% + 64px) !important;
    margin-left: -32px !important;
    margin-right: -32px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

#matches .betting-board {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#matches .league-section {
    width: 100% !important;
    margin: 0 !important;
}

#matches .league-header {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

#matches .match-list {
    width: 100% !important;
}

#matches .match-row {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

/* ================= Mobile Header (Time + More Markets) ================= */
/* 기본: 데스크탑에서는 숨김 */
.match-mobile-header {
    display: none;
}

/* ================= Mobile Override - Overflow Fix ================= */
@media (max-width: 768px) {
    /* 모바일에서 calc(100% + 64px) 대신 100% 사용 */
    #matches {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    #matches .betting-board {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    #matches .league-section {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    #matches .match-list {
        max-width: 100% !important;
    }

    #matches .match-row {
        max-width: 100% !important;
        overflow: hidden !important;
    }

    /* 리그 헤더 모바일 최적화 */
    #matches .league-header {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        padding: 10px !important;
    }

    /* ===== 모바일 헤더 (시간 + 추가마켓 버튼) ===== */
    .match-mobile-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 10px 15px;
        background: var(--bg-secondary, #f5f5f5);
        border-bottom: 1px solid var(--border-color, #e5e5e5);
        order: -1; /* 항상 맨 위에 표시 */
    }

    [data-theme="dark"] .match-mobile-header {
        background: rgba(0, 0, 0, 0.3);
        border-bottom-color: #2a2a32;
    }

    .mobile-match-time {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--text-primary, #333);
    }

    .mobile-match-time i {
        color: var(--gold-primary, #d4af37);
        font-size: 0.8rem;
    }

    /* 모바일 추가마켓 버튼 스타일 */
    .mobile-more-btn {
        flex-direction: row !important;
        width: auto !important;
        height: 36px !important;
        padding: 0 14px !important;
        gap: 6px !important;
    }

    .mobile-more-btn .more-count {
        font-size: 1rem !important;
    }

    .mobile-more-btn .more-label {
        font-size: 0.75rem !important;
    }

    /* 데스크탑용 추가마켓 컬럼 숨김 (모바일에서는 헤더로 이동) */
    .match-more-col {
        display: none !important;
    }
}

/* ================= Betting Board Structure ================= */

.betting-board {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ================= League Section ================= */

.league-section {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* League Header */
.league-header {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid var(--gold-primary, #d4af37);
    margin: 0;
    cursor: pointer;
    width: 100%;
    border-radius: 0;
    /* Light Mode */
    background: linear-gradient(90deg, #f5f5f5 0%, #ffffff 100%);
}

/* 종목 뱃지 */
.sport-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.sport-badge i {
    font-size: 0.8rem;
}

.league-flag,
.league-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.league-name {
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    flex: 1;
}

.match-count {
    font-size: 0.8rem;
    color: #888;
    margin-left: auto;
}

/* Match List Container */
.match-list {
    display: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.league-section.expanded .match-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ================= Match Row Structure ================= */

.match-row {
    padding: 0;
    margin: 0;
    display: flex;
    width: 100%;
    min-height: 110px;
    border-radius: 0;
    /* Light Mode */
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    transition: background-color 0.2s;
}

.match-row:hover {
    background-color: #fafafa;
}

/* 1. Time Column - Fixed Width (Legacy) */
.match-time-col {
    flex: 0 0 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px 10px;
    font-size: 0.85rem;
    border-right: 1px solid #e5e5e5;
    /* Light Mode */
    background-color: #f9f9f9;
    color: #666;
}

.match-time-col .datetime {
    font-weight: 700;
    font-size: 0.9rem;
    color: #333;
    white-space: nowrap;
}

.match-time-col .date {
    opacity: 0.8;
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.match-time-col .time {
    font-weight: 700;
    font-size: 1rem;
    color: #333;
}

.match-status {
    margin-top: 6px;
    font-size: 0.7rem;
    color: var(--gold-primary, #d4af37);
    border: 1px solid var(--gold-dark, #aa8c2c);
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(212, 175, 55, 0.1);
}

/* 1-B. League Info Column (시간별 그룹화용) */
.match-league-col {
    flex: 0 0 200px;
    min-width: 200px;
    max-width: 200px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    border-right: 1px solid #e5e5e5;
    /* Light Mode */
    background-color: #f9f9f9;
}

[data-theme="dark"] .match-league-col {
    background-color: rgba(0, 0, 0, 0.3);
    border-right-color: #2a2a32;
}

/* 종목 뱃지 (작은 버전) */
.sport-badge-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    color: #fff;
    flex-shrink: 0;
}

.sport-badge-sm i {
    font-size: 0.75rem;
}

/* 리그 아이콘 (작은 버전) */
.league-icon-sm {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

/* 리그명 (작은 버전) */
.league-name-sm {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

[data-theme="dark"] .league-name-sm {
    color: #fff;
}

/* 시간 뱃지 스타일 */
.time-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--gold-primary, #d4af37), var(--gold-dark, #aa8c2c));
    white-space: nowrap;
}

.time-badge i {
    font-size: 0.75rem;
}

/* 2. Teams Column - Fixed Width */
.match-teams-col {
    flex: 0 0 302px;
    min-width: 302px;
    max-width: 302px;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    border-right: 1px solid #e5e5e5;
}

.team-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 홈/원정 뱃지 */
.team-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 20px;
    padding: 0 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.team-badge.home {
    background: #e74c3c;
    color: #fff;
}

.team-badge.away {
    background: #3498db;
    color: #fff;
}

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

.team-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: #ddd;
    border-radius: 50%;
    object-fit: contain;
}

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

/* 3. Odds Section - Flexible Width (Takes Remaining Space) */
.match-odds-col {
    flex: 1;
    min-width: 0;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

/* Bet Type Row - 3 Column Grid */
.bet-type-row {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    gap: 6px;
    align-items: stretch;
    height: 38px;
}

/* ================= Odds Button Styles ================= */

.odds-btn {
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    /* Light Mode */
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
}

.odds-btn:hover {
    border-color: var(--gold-dark, #aa8c2c);
    background-color: #fffbf0;
    z-index: 1;
}

.odds-btn.selected,
.odds-btn.active {
    background: linear-gradient(135deg, var(--gold-dark, #aa8c2c), var(--gold-primary, #d4af37));
    border-color: var(--gold-primary, #d4af37);
    color: #000;
}

.odds-btn.selected .odds-label,
.odds-btn.selected .odds-value,
.odds-btn.selected .market-badge,
.odds-btn.active .odds-label,
.odds-btn.active .odds-value,
.odds-btn.active .market-badge {
    color: #000;
}

.odds-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f0f0f0;
}

.odds-label {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.odds-value {
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: #333;
}

.odds-value.up {
    color: #e74c3c;
}

.odds-value.down {
    color: #3498db;
}

/* Center Button */
.odds-btn.center-btn {
    justify-content: center;
    background-color: #f0f0f0;
    border-color: #ddd;
}

.odds-btn.center-btn .odds-value {
    color: var(--gold-dark, #aa8c2c);
    font-weight: 700;
}

.odds-btn.center-btn.vs-text {
    color: #999;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Reverse Button (Right Side) */
.odds-btn.reverse-btn {
    flex-direction: row-reverse;
}

.odds-btn.reverse-btn .odds-label {
    flex-direction: row-reverse;
}

/* ================= Team Odds Button (팀명+이미지 버튼) ================= */

.odds-btn.team-odds-btn {
    padding: 0 10px;
}

.odds-btn.team-odds-btn .team-label {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.odds-btn.team-odds-btn.reverse-btn .team-label {
    flex-direction: row-reverse;
}

.team-btn-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    object-fit: contain;
    background: #eee;
    flex-shrink: 0;
}

[data-theme="dark"] .team-btn-icon {
    background: #444;
}

.team-btn-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

[data-theme="dark"] .team-btn-name {
    color: #fff;
}

.odds-btn.team-odds-btn.selected .team-btn-name,
.odds-btn.team-odds-btn.active .team-btn-name {
    color: #000;
}

/* 반응형 - 팀명 버튼 */
@media (max-width: 1200px) {
    .team-btn-name {
        max-width: 60px;
        font-size: 0.75rem;
    }

    .team-btn-icon {
        width: 18px;
        height: 18px;
        min-width: 18px;
    }
}

@media (max-width: 992px) {
    .team-btn-name {
        max-width: 70px;
    }
}

@media (max-width: 576px) {
    .team-btn-name {
        max-width: 50px;
        font-size: 0.7rem;
    }

    .team-btn-icon {
        width: 16px;
        height: 16px;
        min-width: 16px;
    }

    .odds-btn.team-odds-btn {
        padding: 0 6px;
    }

    .odds-btn.team-odds-btn .team-label {
        gap: 4px;
    }
}

/* ================= Market Badge ================= */

.market-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #666;
    color: #fff;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
}

.market-badge.home {
    background: #e74c3c;
}

.market-badge.away {
    background: #3498db;
}

.market-badge.handicap {
    background: #e67e22;
}

.market-badge.under {
    background: #3498db;
}

.market-badge.over {
    background: #e74c3c;
}

/* ================= Odds Arrow ================= */

.odds-arrow {
    font-size: 0.65rem;
    margin-left: 4px;
}

.odds-arrow.odds-up {
    color: #e74c3c;
}

.odds-arrow.odds-down {
    color: #3498db;
}

/* ================= DARK MODE ================= */

[data-theme="dark"] .league-header {
    background: linear-gradient(90deg, #1f1f25 0%, #15151a 100%);
}

[data-theme="dark"] .league-name {
    color: #fff;
}

[data-theme="dark"] .match-count {
    color: #888;
}

[data-theme="dark"] .match-row {
    background-color: #1c1c21;
    border-bottom-color: #2a2a32;
}

[data-theme="dark"] .match-row:hover {
    background-color: #252530;
}

[data-theme="dark"] .match-time-col {
    background-color: rgba(0, 0, 0, 0.3);
    border-right-color: #2a2a32;
    color: #888;
}

[data-theme="dark"] .match-time-col .time {
    color: #fff;
}

[data-theme="dark"] .match-time-col .datetime {
    color: #fff;
}

[data-theme="dark"] .match-teams-col {
    border-right-color: #2a2a32;
}

[data-theme="dark"] .team-name-text {
    color: #fff;
}

[data-theme="dark"] .team-icon {
    background: #444;
}

[data-theme="dark"] .odds-btn {
    background-color: #232329;
    border-color: #3a3a42;
}

[data-theme="dark"] .odds-btn:hover {
    background-color: #2a2a32;
    border-color: var(--gold-dark, #aa8c2c);
}

[data-theme="dark"] .odds-btn.disabled {
    background: #1a1a1e;
}

[data-theme="dark"] .odds-label {
    color: #999;
}

[data-theme="dark"] .odds-value {
    color: #fff;
}

[data-theme="dark"] .odds-btn.center-btn {
    background-color: #1a1a1e;
    border-color: #2a2a32;
}

[data-theme="dark"] .odds-btn.center-btn .odds-value {
    color: var(--gold-primary, #d4af37);
}

[data-theme="dark"] .odds-btn.center-btn.vs-text {
    color: #666;
}

[data-theme="dark"] .match-status {
    background: rgba(212, 175, 55, 0.2);
}

/* ================= Responsive ================= */

@media (max-width: 1200px) {
    .match-time-col {
        flex: 0 0 120px;
    }

    .match-league-col {
        flex: 0 0 180px;
        min-width: 180px;
        max-width: 180px;
    }

    .match-teams-col {
        flex: 0 0 290px;
        min-width: 290px;
        max-width: 290px;
    }

    .team-name-text {
        max-width: 180px;
    }

    .bet-type-row {
        grid-template-columns: 1fr 80px 1fr;
    }
}

@media (max-width: 992px) {
    .match-row {
        flex-direction: column;
        min-height: auto;
    }

    .match-time-col {
        flex: none;
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
        padding: 10px 15px;
        width: 100%;
    }

    [data-theme="dark"] .match-time-col {
        border-bottom-color: #2a2a32;
    }

    /* 모바일: 리그 정보 컬럼 */
    .match-league-col {
        flex: none;
        min-width: 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
        padding: 10px 15px;
        width: 100%;
    }

    [data-theme="dark"] .match-league-col {
        border-bottom-color: #2a2a32;
    }

    /* 모바일: 팀 정보를 한 줄로 표시 */
    .match-teams-col {
        flex: none;
        min-width: 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
        padding: 10px 15px;
        flex-direction: row;
        justify-content: space-around;
        gap: 20px;
    }

    .team-row {
        flex: 1;
        justify-content: center;
    }

    [data-theme="dark"] .match-teams-col {
        border-bottom-color: #2a2a32;
    }

    .team-name-text {
        max-width: 120px;
    }

    .match-odds-col {
        padding: 10px 15px;
        width: 100%;
    }

    .bet-type-row {
        grid-template-columns: 1fr 70px 1fr;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .bet-type-row {
        grid-template-columns: 1fr 55px 1fr;
        gap: 4px;
        height: 34px;
    }

    .odds-btn {
        padding: 0 8px;
    }

    .odds-label {
        font-size: 0.75rem;
    }

    .odds-value {
        font-size: 0.9rem;
    }

    .market-badge {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }

    .match-time-col {
        flex: 0 0 auto;
        padding: 8px 10px;
    }

    .match-time-col .datetime {
        font-size: 0.8rem;
    }

    .team-badge {
        min-width: 28px;
        font-size: 0.65rem;
        padding: 0 4px;
    }

    .team-name-text {
        max-width: 100px;
        font-size: 0.85rem;
    }

    .match-time-col .time {
        font-size: 0.9rem;
    }
}

/* ================= More Markets Column ================= */

/* 4. 추가 배팅옵션 컬럼 */
.match-more-col {
    flex: 0 0 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 8px;
    border-left: 1px solid #e5e5e5;
    background-color: #fafafa;
}

[data-theme="dark"] .match-more-col {
    border-left-color: #2a2a32;
    background-color: rgba(0, 0, 0, 0.2);
}

/* 추가 마켓 버튼 */
.more-markets-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    /* Light Mode */
    background: linear-gradient(135deg, var(--gold-primary, #d4af37), var(--gold-dark, #aa8c2c));
    border: none;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.more-markets-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.5);
}

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

.more-markets-btn .more-count {
    font-size: 1.2rem;
    font-weight: 800;
    color: #000;
    line-height: 1;
}

.more-markets-btn .more-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1;
}

/* 추가 마켓 없음 표시 */
.no-more-markets {
    color: #ccc;
    font-size: 1rem;
}

[data-theme="dark"] .no-more-markets {
    color: #444;
}

/* 반응형 - 추가 마켓 컬럼 */
@media (max-width: 992px) {
    .match-more-col {
        flex: none;
        width: 100%;
        flex-direction: row;
        justify-content: flex-end;
        padding: 10px 15px;
        border-left: none;
        border-top: 1px solid #e5e5e5;
        background-color: #f9f9f9;
    }

    [data-theme="dark"] .match-more-col {
        border-top-color: #2a2a32;
        background-color: rgba(0, 0, 0, 0.3);
    }

    .more-markets-btn {
        flex-direction: row;
        width: auto;
        height: 40px;
        padding: 0 16px;
        gap: 6px;
    }

    .more-markets-btn .more-count {
        font-size: 1rem;
    }

    .more-markets-btn .more-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .match-more-col {
        padding: 8px 10px;
    }

    .more-markets-btn {
        height: 36px;
        padding: 0 12px;
    }

    .more-markets-btn .more-count {
        font-size: 0.9rem;
    }

    .more-markets-btn .more-label {
        font-size: 0.7rem;
    }
}


/* ================= 추가 마켓 팝업 모달 ================= */

/* 모달 컨테이너 */
.market-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.market-detail-modal.is-open {
    display: block;
}

/* 오버레이 */
.market-detail-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
}

/* 모달 콘텐츠 */
.market-detail-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 모달 헤더 */
.market-detail-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    color: var(--bg-main);
    flex-shrink: 0;
}

.market-detail-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.market-detail-modal-header h3 i {
    font-size: 1rem;
}

/* 닫기 버튼 */
.market-detail-modal-close {
    background: rgba(0, 0, 0, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-main);
    cursor: pointer;
    transition: all 0.2s;
}

.market-detail-modal-close:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
}

.market-detail-modal-close i {
    font-size: 1rem;
}

/* 모달 바디 */
.market-detail-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* 모달 내 마켓 콘텐츠 영역 */
.market-detail-modal-body .sports_right_line2 {
    max-height: none;
    overflow-y: visible;
    padding: 0;
}

/* 경기 정보 박스 */
.market-match-info {
    padding: 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.market-match-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.market-match-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.market-sport-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.market-match-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.market-league-name {
    font-size: 0.85rem;
    color: var(--gold-primary);
    font-weight: 500;
}

.market-match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.market-team-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.market-team-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.market-team-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    word-break: keep-all;
}

.market-vs {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* 즐겨찾기 필터 */
.market-favorite-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.fav-filter-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.fav-filter-btn:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.fav-filter-btn.on_active {
    background: var(--gold-primary);
    color: var(--bg-main);
    border-color: var(--gold-primary);
}

.fav-filter-btn i {
    color: inherit;
}

.fav-filter-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 아코디언 래퍼 */
.s__accordion01-wrap {
    list-style: none;
    margin: 0;
    padding: 0;
}

.s__accordion01-wrap > li {
    margin: 0;
}

/* 아코디언 */
.s__accordion01 {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--border-color);
}

/* 아코디언 제목 */
.s__accordion01-title {
    list-style: none;
}

.s__accordion01-title button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: background 0.2s;
}

.s__accordion01-title button:hover {
    background: var(--bg-hover);
}

.s__accordion01-title button img {
    width: 12px;
    height: 12px;
    transform: rotate(-90deg);
    transition: transform 0.3s;
}

.s__accordion01.is-active .s__accordion01-title button img {
    transform: rotate(0deg);
}

.s__accordion01-title button span {
    flex: 1;
}

/* 즐겨찾기 버튼 */
.market-fav-btn {
    padding: 4px 8px;
    font-size: 1rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.market-fav-btn:hover {
    color: var(--gold-primary);
}

.market-fav-btn.is-favorite {
    color: var(--gold-primary);
}

/* 아코디언 콘텐츠 */
.s__accordion01-contents {
    display: none;
    padding: 8px;
    background: var(--bg-card);
}

.s__accordion01.is-active .s__accordion01-contents {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* 두 개 옵션 - 2열 */
.s__accordion01-contents.two {
    display: none;
}

.s__accordion01.is-active .s__accordion01-contents.two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

/* 세 개 옵션 - 3열 */
.s__accordion01-contents.three {
    display: none;
}

.s__accordion01.is-active .s__accordion01-contents.three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

/* 마켓 배당 버튼 - 스포츠 목록과 동일한 회색 스타일 */
.s__accordion01-contents button.market-odd-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    min-height: 56px;
}

/* 다크 테마 배당 버튼 */
[data-theme="dark"] .s__accordion01-contents button.market-odd-btn {
    background-color: #232329;
    border-color: #3a3a42;
}

.s__accordion01-contents button.market-odd-btn:hover:not(:disabled) {
    border-color: var(--gold-primary);
    background-color: #fffbf0;
}

[data-theme="dark"] .s__accordion01-contents button.market-odd-btn:hover:not(:disabled) {
    background-color: #2a2a32;
}

.s__accordion01-contents button.market-odd-btn.on_active {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 100%);
    border-color: var(--gold-primary);
    color: #000;
}

.s__accordion01-contents button.market-odd-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f0f0f0;
}

[data-theme="dark"] .s__accordion01-contents button.market-odd-btn:disabled {
    background: #1a1a1e;
}

.s__accordion01-contents button.market-odd-btn p {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    word-break: keep-all;
}

[data-theme="dark"] .s__accordion01-contents button.market-odd-btn p {
    color: #999;
}

.s__accordion01-contents button.market-odd-btn.on_active p {
    color: #000;
}

.s__accordion01-contents button.market-odd-btn div {
    display: flex;
    align-items: center;
    gap: 4px;
}

.s__accordion01-contents button.market-odd-btn div p {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
}

[data-theme="dark"] .s__accordion01-contents button.market-odd-btn div p {
    color: #fff;
}

.s__accordion01-contents button.market-odd-btn.on_active div p {
    color: #000;
}

/* 배당 변경 애니메이션 */
.s__accordion01-contents button.market-odd-btn.odds-up {
    animation: oddsFlashUp 0.5s ease-out;
}

.s__accordion01-contents button.market-odd-btn.odds-down {
    animation: oddsFlashDown 0.5s ease-out;
}

@keyframes oddsFlashUp {
    0%, 50% { background: rgba(76, 175, 80, 0.3); }
    100% { background: var(--bg-secondary); }
}

@keyframes oddsFlashDown {
    0%, 50% { background: rgba(244, 67, 54, 0.3); }
    100% { background: var(--bg-secondary); }
}

/* 배당 변경 화살표 */
.odds-change-arrow {
    font-size: 0.75rem;
    margin-right: 2px;
}

.odds-change-arrow.up {
    color: #4caf50;
}

.odds-change-arrow.down {
    color: #f44336;
}

/* 중지 텍스트 */
.suspended-text {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* 즐겨찾기 없음 메시지 */
.no-favorite-msg {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}
