/* ========================================
   JC Match Table Styles (竞彩足球)
   Depends on: fifa_common.css, match_common.css
   ======================================== */

/* === Sporttery Buttons (赔率按钮) === */
.sporttery-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--gh-bg-secondary);
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius-md);
    padding: 2px 12px;
    min-width: 60px;
    cursor: pointer;
    transition: all 0.1s ease;
    line-height: 1.2;
}
.sporttery-btn:hover {
    background-color: #f3f4f6;
    border-color: rgba(27,31,36,0.15);
}
.sporttery-btn.user-selected {
    background-color: #eaffea;
    border-color: var(--gh-success);
    border-width: 2px;
    box-shadow: 0 0 0 1px rgba(26,127,55,0.2);
}
.sporttery-btn.user-selected .label,
.sporttery-btn.user-selected .odd {
    color: var(--gh-success) !important;
}
.sporttery-btn .label {
    font-size: 11px;
    font-weight: 500;
    color: var(--gh-text-secondary);
}
.sporttery-btn .odd {
    font-size: 13px;
    font-weight: 600;
    color: var(--gh-text-primary);
    margin-top: 1px;
}

/* === Hit & Win Highlights === */
.hit-highlight {
    position: relative;
    background-color: #dcfce7 !important;
    border-color: #16a34a !important;
    border-width: 2px;
    color: #166534 !important;
    font-weight: 600;
    box-shadow: 0 0 0 1px rgba(22,163,74,0.13);
}

.win-highlight {
    position: relative;
    border-color: var(--gh-success) !important;
    border-width: 2px;
    box-shadow: 0 0 0 1px rgba(26,127,55,0.13);
}
.win-highlight .label,
.win-highlight .odd {
    color: var(--gh-success) !important;
}

/* === Odds Ranking Highlights (赔率排名高亮) === */
.odds-lowest {
    position: relative;
    border-color: var(--gh-link) !important;
    border-width: 2px;
    box-shadow: 0 0 0 1px rgba(9,105,218,0.13);
}
.odds-lowest .label,
.odds-lowest .odd { color: var(--gh-link) !important; }

.odds-second {
    position: relative;
    border-color: var(--gh-warning) !important;
    border-width: 2px;
    box-shadow: 0 0 0 1px rgba(210,153,34,0.13);
}
.odds-second .label,
.odds-second .odd { color: var(--gh-warning) !important; }

.odds-highest {
    position: relative;
    border-color: var(--gh-danger) !important;
    border-width: 2px;
    box-shadow: 0 0 0 1px rgba(207,34,46,0.13);
}
.odds-highest .label,
.odds-highest .odd { color: var(--gh-danger) !important; }

/* === JC Table Specific Overrides === */
.sporttery-table th {
    position: sticky;
    top: 0;
    z-index: 30;
}
.sporttery-table th,
.sporttery-table td {
    border-right: 1px solid var(--gh-border);
}
.sporttery-table th:last-child,
.sporttery-table td:last-child { border-right: none; }

/* === Cart Table (Bet Slip) === */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    background: var(--gh-bg);
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius-md);
    overflow: hidden;
}
.cart-table th {
    background: var(--gh-bg-secondary);
    color: var(--gh-text-secondary);
    font-size: 11px;
    font-weight: 600;
    padding: 7px 10px;
    border-bottom: 1px solid var(--gh-border);
    border-right: 1px solid var(--gh-border-light);
    text-align: center;
    white-space: nowrap;
}
.cart-table th:last-child { border-right: none; }
.cart-table td {
    text-align: center;
    padding: 6px 6px;
    border-bottom: 1px solid var(--gh-border-light);
    border-right: 1px solid var(--gh-border-light);
    color: var(--gh-text-primary);
    vertical-align: middle;
}
.cart-table td:last-child { border-right: none; }
.cart-table tr:last-child td { border-bottom: none; }
.cart-table tr:hover td { background-color: var(--gh-bg-secondary); }

.cart-td-num {
    font-weight: 700;
    color: var(--gh-text-primary);
    font-size: 12px;
    width: 48px;
}
.cart-td-league {
    width: 54px;
    color: #ffffff;
    font-weight: 600;
    font-size: 11px;
    padding: 4px 4px !important;
    line-height: 1.3;
}
.cart-td-matchup {
    text-align: left;
    width: 150px;
    padding-left: 8px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}
.cart-td-options {
    text-align: left;
    padding-left: 8px !important;
}
.cart-td-delete { width: 36px; }
.cart-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gh-text-tertiary);
    padding: 3px;
    border-radius: var(--gh-radius-sm);
    display: inline-flex;
    align-items: center;
    transition: all 0.1s;
}
.cart-delete-btn:hover { 
    color: var(--gh-danger); 
    background: var(--gh-danger-bg); 
}
