/* ===== 竞彩VIP - 科技蓝金主题 v2 提亮版 ===== */

body {
    background: #0f1629;
    background-image:
        radial-gradient(ellipse at 15% 45%, rgba(0, 120, 255, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 15%, rgba(0, 220, 255, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 85%, rgba(120, 40, 255, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 60% 30%, rgba(0, 200, 150, 0.1) 0%, transparent 40%);
    min-height: 100vh;
    color: #e8edf5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ===== 导航栏 ===== */
.navbar {
    background: rgba(15, 22, 41, 0.97) !important;
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(0, 180, 255, 0.3);
    box-shadow: 0 2px 30px rgba(0, 120, 255, 0.25);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #00e5ff, #0091ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

.navbar .nav-link {
    color: #90caf9 !important;
}

.navbar .nav-link:hover {
    color: #00e5ff !important;
}

/* ===== 标签页 ===== */
.nav-tabs {
    border-bottom: 2px solid rgba(0, 180, 255, 0.25);
    gap: 4px;
}

.nav-tabs .nav-link {
    color: #78909c;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    padding: 10px 16px;
}

.nav-tabs .nav-link:hover {
    color: #4fc3f7;
    background: rgba(0, 180, 255, 0.1);
}

.nav-tabs .nav-link.active {
    color: #00e5ff;
    background: rgba(0, 180, 255, 0.12);
    border-bottom-color: #00e5ff;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.6);
}

/* ===== 登录/注册 ===== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.auth-card {
    background: rgba(20, 30, 55, 0.95);
    border: 1px solid rgba(0, 180, 255, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 60px rgba(0, 120, 255, 0.2);
}

/* ===== 比赛列表模式 ===== */
.league-group {
    background: rgba(20, 30, 55, 0.85);
    border: 1px solid rgba(0, 180, 255, 0.2);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 100, 255, 0.1);
}

.league-header {
    background: linear-gradient(135deg, rgba(0, 80, 160, 0.5), rgba(0, 50, 120, 0.35));
    padding: 12px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #4fc3f7;
    border-bottom: 2px solid rgba(0, 180, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 8px rgba(79, 195, 247, 0.4);
}

.league-header i {
    color: #29b6f6;
}

.match-row-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.match-row {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 180, 255, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.match-row:hover {
    background: rgba(0, 120, 255, 0.15);
    box-shadow: inset 0 0 20px rgba(0, 150, 255, 0.05);
}

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

.match-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.match-no {
    font-size: 0.78rem;
    color: #90a4ae;
    font-weight: 600;
}

.match-time {
    font-size: 0.82rem;
    color: #4fc3f7;
    font-weight: 600;
}

.match-time i {
    font-size: 0.7rem;
}

.match-row-teams {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.team-home, .team-away {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    flex: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.team-home {
    text-align: right;
}

.team-away {
    text-align: left;
}

.vs-small {
    background: linear-gradient(135deg, #0288d1, #00bcd4);
    color: #fff;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(0, 188, 212, 0.3);
}

.rank-badge {
    font-size: 0.65rem;
    color: #b0bec5;
    font-weight: 400;
    margin-left: 4px;
}

.match-row-odds {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sp-inline {
    display: flex;
    gap: 8px;
    flex: 1;
}

.sp-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 150, 255, 0.08);
    border: 1px solid rgba(0, 180, 255, 0.15);
    border-radius: 8px;
    padding: 5px 12px;
    min-width: 52px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #e0e0e0;
}

.sp-item em {
    font-style: normal;
    font-size: 0.62rem;
    color: #78909c;
    font-weight: 500;
    margin-bottom: 2px;
}

.sp-item.sp-fav {
    background: rgba(0, 230, 118, 0.12);
    border-color: rgba(0, 230, 118, 0.3);
    color: #69f0ae;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.15);
}

.match-row-arrow {
    color: #546e7a;
    font-size: 1.1rem;
    margin-left: 10px;
    transition: all 0.2s;
}

.match-row:hover .match-row-arrow {
    color: #00e5ff;
    transform: translateX(3px);
}

/* ===== 比赛详情页 ===== */
.btn-back-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: rgba(0, 120, 255, 0.15);
    border: 1px solid rgba(0, 180, 255, 0.3);
    border-radius: 10px;
    color: #4fc3f7;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-back-detail:hover {
    background: rgba(0, 120, 255, 0.3);
    color: #00e5ff;
    border-color: rgba(0, 229, 255, 0.5);
}

.detail-header-card {
    background: rgba(20, 30, 55, 0.9);
    border: 1px solid rgba(0, 180, 255, 0.25);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 100, 255, 0.15);
}

.detail-header-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #0288d1, #00e5ff, #0288d1, transparent);
    opacity: 0.8;
}

.detail-header-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.detail-match-time {
    font-size: 0.88rem;
    color: #4fc3f7;
    margin-left: auto;
    font-weight: 600;
}

.detail-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.detail-team {
    text-align: center;
    flex: 1;
}

.detail-team-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 100, 255, 0.3);
}

.detail-team-rank {
    font-size: 0.78rem;
    color: #90a4ae;
    margin-top: 4px;
}

.detail-vs {
    background: linear-gradient(135deg, #0288d1, #00e5ff);
    color: #fff;
    padding: 5px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.35);
}

.detail-odds-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-odds-block {
    background: rgba(20, 30, 55, 0.85);
    border: 1px solid rgba(0, 180, 255, 0.15);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0, 80, 200, 0.08);
}

.detail-odds-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.detail-odds-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.detail-odds-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.detail-odds-cell {
    background: rgba(0, 120, 255, 0.06);
    border: 1px solid rgba(0, 180, 255, 0.12);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.detail-odds-cell.odds-fav {
    background: rgba(0, 230, 118, 0.1);
    border-color: rgba(0, 230, 118, 0.25);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.1);
}

.detail-odds-cell .odds-label {
    font-size: 0.72rem;
    color: #90a4ae;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.detail-odds-cell .odds-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #eceff1;
}

.euro-val {
    color: #42a5f5 !important;
    font-size: 1rem !important;
}

.asian-val, .asian-val-final {
    color: #66bb6a !important;
}

.asian-val-final {
    color: #81c784 !important;
}

.ou-val {
    color: #ab47bc !important;
}

.ou-val-final {
    color: #ce93d8 !important;
}

/* 赔率区块标题 */
.odds-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding: 8px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.odds-section-title i {
    font-size: 0.9rem;
}

.section-sp .odds-section-title {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.18), rgba(255, 152, 0, 0.12));
    color: #ffd54f;
    border: 1px solid rgba(255, 193, 7, 0.25);
}

.section-euro .odds-section-title {
    background: linear-gradient(135deg, rgba(66, 165, 245, 0.18), rgba(33, 150, 243, 0.12));
    color: #42a5f5;
    border: 1px solid rgba(66, 165, 245, 0.25);
}

.section-asian .odds-section-title {
    background: linear-gradient(135deg, rgba(102, 187, 106, 0.18), rgba(76, 175, 80, 0.12));
    color: #66bb6a;
    border: 1px solid rgba(102, 187, 106, 0.25);
}

.section-ou .odds-section-title {
    background: linear-gradient(135deg, rgba(171, 71, 188, 0.18), rgba(156, 39, 176, 0.12));
    color: #ce93d8;
    border: 1px solid rgba(171, 71, 188, 0.25);
}

.section-form .odds-section-title {
    background: linear-gradient(135deg, rgba(77, 208, 225, 0.18), rgba(0, 188, 212, 0.12));
    color: #4dd0e1;
    border: 1px solid rgba(77, 208, 225, 0.25);
}

/* 赔率走势 */
.odds-trend {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 180, 255, 0.12);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.trend-item {
    font-size: 0.78rem;
    color: #90a4ae;
    font-weight: 500;
}

.trend-item.trend-up {
    color: #ef5350;
}

.trend-item.trend-down {
    color: #66bb6a;
}

/* 近期战绩详情 */
.form-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.form-team-block {
    background: rgba(0, 150, 200, 0.06);
    border: 1px solid rgba(77, 208, 225, 0.15);
    border-radius: 10px;
    padding: 12px;
}

.form-team-header {
    font-weight: 700;
    font-size: 0.88rem;
    color: #4dd0e1;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(77, 208, 225, 0.2);
}

.form-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.82rem;
    color: #b0bec5;
}

.h2h-block {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 180, 255, 0.12);
    text-align: center;
}

.h2h-title {
    font-size: 0.72rem;
    color: #90a4ae;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.h2h-stats {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #b0bec5;
}

/* ===== 历史战绩 ===== */
.history-card {
    background: rgba(20, 30, 55, 0.85);
    border: 1px solid rgba(0, 180, 255, 0.15);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 80, 200, 0.08);
}

.history-card .card-header {
    background: linear-gradient(135deg, rgba(0, 80, 160, 0.3), rgba(0, 50, 120, 0.2));
    border-bottom: 1px solid rgba(0, 180, 255, 0.15);
    padding: 10px 16px;
}

.combo-detail {
    background: rgba(0, 120, 255, 0.08);
    border: 1px solid rgba(0, 180, 255, 0.12);
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 8px;
}

.combo-match {
    font-size: 0.875rem;
    line-height: 1.7;
}

.strategy-label {
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 180, 255, 0.15);
    margin-bottom: 8px;
}

/* ===== 统计卡片 ===== */
.stat-card {
    background: rgba(20, 30, 55, 0.85);
    border: 1px solid rgba(0, 180, 255, 0.2);
    border-radius: 14px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 100, 255, 0.1);
}

.stat-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0288d1, #00e5ff, #0288d1, transparent);
    opacity: 0.6;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #4fc3f7;
    text-shadow: 0 0 15px rgba(79, 195, 247, 0.4);
}

.stat-label {
    font-size: 0.75rem;
    color: #78909c;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== 付费墙 ===== */
.paywall-overlay {
    background: rgba(15, 22, 41, 0.97);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 0 50px rgba(255, 193, 7, 0.12);
}

/* ===== 价格卡片 ===== */
.price-card {
    background: rgba(20, 30, 55, 0.9);
    border: 1px solid rgba(0, 180, 255, 0.2);
    border-radius: 14px;
    transition: all 0.3s;
}

.price-card:hover {
    border-color: rgba(255, 193, 7, 0.5);
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.15);
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #81d4fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #546e7a;
}

.empty-state i {
    color: #37474f;
}

/* ===== 按钮 ===== */
.btn-warning {
    background: linear-gradient(135deg, #ffc107, #ff8f00);
    border: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 12px rgba(255, 193, 7, 0.35);
    transition: all 0.3s;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ffca2c, #ff9800);
    box-shadow: 0 4px 25px rgba(255, 193, 7, 0.5);
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #0288d1, #4fc3f7);
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(2, 136, 209, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 4px 25px rgba(2, 136, 209, 0.5);
}

/* ===== 表单 ===== */
.form-control {
    background: rgba(0, 20, 50, 0.5) !important;
    border: 1px solid rgba(0, 180, 255, 0.3) !important;
    color: #e8edf5 !important;
    border-radius: 10px;
    padding: 10px 14px;
}

.form-control:focus {
    border-color: #4fc3f7 !important;
    box-shadow: 0 0 15px rgba(79, 195, 247, 0.25) !important;
}

.form-control::placeholder {
    color: #546e7a !important;
}

/* ===== Badge 优化 ===== */
.badge.bg-info {
    background: linear-gradient(135deg, #0288d1, #4fc3f7) !important;
    font-weight: 600;
    box-shadow: 0 0 6px rgba(2, 136, 209, 0.3);
}

.badge.bg-success {
    background: linear-gradient(135deg, #43a047, #66bb6a) !important;
    box-shadow: 0 0 6px rgba(67, 160, 71, 0.3);
}

.badge.bg-primary {
    background: linear-gradient(135deg, #1e88e5, #42a5f5) !important;
    box-shadow: 0 0 6px rgba(30, 136, 229, 0.3);
}

.badge.bg-secondary {
    background: rgba(55, 71, 79, 0.6) !important;
    border: 1px solid rgba(0, 180, 255, 0.15);
}

.badge.bg-dark {
    background: rgba(20, 30, 55, 0.8) !important;
    border: 1px solid rgba(0, 180, 255, 0.2);
}

/* ===== 表格 ===== */
.table-dark {
    --bs-table-bg: transparent;
}

.table-dark th {
    border-color: rgba(0, 180, 255, 0.15);
    font-weight: 600;
    font-size: 0.8rem;
    color: #78909c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-dark td {
    border-color: rgba(0, 180, 255, 0.08);
    vertical-align: middle;
}

/* ===== 响应式 ===== */
@media (max-width: 576px) {
    .stat-value { font-size: 1.3rem; }
    .price-amount { font-size: 1.5rem; }
    .team-home, .team-away { font-size: 0.88rem; }
    .detail-team-name { font-size: 1.05rem; }
    .detail-odds-grid { grid-template-columns: 1fr; }
    .detail-odds-grid.three-col { grid-template-columns: repeat(3, 1fr); }
    .form-detail-grid { grid-template-columns: 1fr; }
    .sp-item { padding: 4px 8px; min-width: 46px; font-size: 0.82rem; }
}

/* ===== 赔率变化对比 ===== */
.odds-compare {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.odds-init {
    font-size: 0.78rem;
    color: #78909c;
    text-decoration: line-through;
    opacity: 0.7;
}

.odds-final {
    font-size: 1.1rem;
    font-weight: 700;
    color: #eceff1;
}

.odds-arrow {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.odds-up {
    color: #ef5350;
    background: rgba(239, 83, 80, 0.12);
    border: 1px solid rgba(239, 83, 80, 0.2);
}

.odds-down {
    color: #66bb6a;
    background: rgba(102, 187, 106, 0.12);
    border: 1px solid rgba(102, 187, 106, 0.2);
}

.odds-flat {
    color: #546e7a;
    background: rgba(84, 110, 122, 0.1);
    border: 1px solid rgba(84, 110, 122, 0.15);
}


/* ===== 紧凑详情页 ===== */
.compact-header {
    background: rgba(18,28,52,0.85);
    border: 1px solid rgba(79,195,247,0.2);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}
.compact-header-meta {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
}
.compact-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.compact-team-home {
    color: #4fc3f7;
    font-weight: 700;
    font-size: 1rem;
}
.compact-team-away {
    color: #ff7043;
    font-weight: 700;
    font-size: 1rem;
}
.compact-vs {
    color: #ffd54f;
    font-weight: 800;
    font-size: 0.75rem;
    background: rgba(255,213,79,0.12);
    padding: 2px 6px;
    border-radius: 4px;
}

.compact-sections {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compact-block {
    background: rgba(18,28,52,0.85);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px 12px;
}
.compact-block.cb-sp { border-left: 3px solid #ffd54f; }
.compact-block.cb-euro { border-left: 3px solid #42a5f5; }
.compact-block.cb-asian { border-left: 3px solid #66bb6a; }
.compact-block.cb-ou { border-left: 3px solid #ce93d8; }
.compact-block.cb-form { border-left: 3px solid #4dd0e1; }

.compact-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #b0bec5;
    margin-bottom: 6px;
}

/* SP行 */
.sp-row {
    display: flex;
    gap: 8px;
}
.sp-item {
    flex: 1;
    text-align: center;
    background: rgba(0,150,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    padding: 6px 0;
}
.sp-item.sp-fav {
    background: rgba(0,230,118,0.1);
    border-color: rgba(0,230,118,0.25);
}
.sp-label {
    display: block;
    font-size: 0.7rem;
    color: #78909c;
    margin-bottom: 2px;
}
.sp-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffd54f;
}
.sp-fav .sp-val { color: #00e676; }

/* 欧赔紧凑行 */
.euro-rows { display: flex; flex-direction: column; gap: 4px; }
.euro-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
}
.euro-result {
    width: 22px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #90a4ae;
    text-align: center;
}
.euro-init {
    font-size: 0.85rem;
    color: #78909c;
    text-decoration: line-through;
    min-width: 36px;
}
.euro-final {
    font-size: 1rem;
    font-weight: 700;
    color: #42a5f5;
    margin-left: auto;
}

/* 变化箭头 */
.ch {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    white-space: nowrap;
}
.ch-up { color: #ef5350; background: rgba(239,83,80,0.12); }
.ch-down { color: #66bb6a; background: rgba(102,187,106,0.12); }
.ch-flat { color: #546e7a; }

/* 亚盘/大小球行 */
.asian-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
}
.asian-label {
    font-size: 0.75rem;
    color: #90a4ae;
    width: 36px;
}
.asian-row .euro-final {
    color: #66bb6a;
}
.cb-ou .euro-final {
    color: #ce93d8;
}

/* 战绩紧凑 */
.form-compact { display: flex; flex-direction: column; gap: 4px; }
.form-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #b0bec5;
}
.form-mini-team {
    font-weight: 700;
    color: #4fc3f7;
    min-width: 60px;
}
.h2h-mini {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px dashed rgba(255,255,255,0.08);
}
.h2h-mini .form-mini-team { color: #4dd0e1; }


/* ===== 详情页完整版 ===== */
.md-header {
    background: rgba(18,28,52,0.85);
    border: 1px solid rgba(79,195,247,0.2);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 8px;
}
.md-header-meta { display:flex; gap:6px; align-items:center; margin-bottom:4px; }
.md-time { color:#78909c; font-size:0.75rem; }
.md-teams { display:flex; align-items:center; justify-content:center; gap:10px; }
.md-home { color:#4fc3f7; font-weight:700; font-size:1rem; }
.md-away { color:#ff7043; font-weight:700; font-size:1rem; }
.md-vs { color:#ffd54f; font-weight:800; font-size:0.75rem; background:rgba(255,213,79,0.12); padding:2px 6px; border-radius:4px; }

.md-summary {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}
.md-stat {
    background: rgba(18,28,52,0.85);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 6px 4px;
    text-align: center;
}
.md-stat-label { display:block; font-size:0.65rem; color:#78909c; }
.md-stat-val { display:block; font-size:0.9rem; font-weight:700; color:#eceff1; margin-top:2px; }

.md-block {
    background: rgba(18,28,52,0.85);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
}
.md-block-sp { border-left: 3px solid #ffd54f; }
.md-block-euro { border-left: 3px solid #42a5f5; }
.md-block-asian { border-left: 3px solid #66bb6a; }
.md-block-ou { border-left: 3px solid #ce93d8; }
.md-block-form { border-left: 3px solid #4dd0e1; }

.md-block-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #b0bec5;
    margin-bottom: 8px;
}
.md-crawled { font-size:0.6rem; color:#546e7a; font-weight:400; margin-left:8px; }

/* 赔率表格 */
.odds-table-wrap { overflow-x:auto; }
.odds-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.72rem;
}
.odds-tbl th {
    padding: 4px 3px;
    text-align: right;
    color: #78909c;
    font-size: 0.65rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
}
.odds-tbl td {
    padding: 3px 3px;
    text-align: right;
    color: #b0bec5;
    font-family: monospace;
    white-space: nowrap;
}
.odds-tbl td.tbl-company {
    text-align: left;
    color: #90a4ae;
    font-family: inherit;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.odds-tbl th.tbl-company { text-align: left; }
.odds-tbl tr { border-bottom: 1px solid rgba(255,255,255,0.03); }
.odds-tbl tr.tbl-main { background: rgba(66,165,245,0.06); }

.cl-win { color: #66bb6a; }
.cl-draw { color: #ffd54f; }
.cl-lose { color: #ef5350; }
.fw { font-weight: 700; color: #eceff1; }

.arr-up { color: #ef5350; font-size: 0.6rem; }
.arr-down { color: #66bb6a; font-size: 0.6rem; }
.arr-chg { color: #42a5f5; font-size: 0.65rem; }

/* SP */
.sp-row { display:flex; gap:8px; }
.sp-item { flex:1; text-align:center; background:rgba(0,150,255,0.06); border:1px solid rgba(255,255,255,0.06); border-radius:6px; padding:6px 0; }
.sp-item.sp-fav { background:rgba(0,230,118,0.1); border-color:rgba(0,230,118,0.25); }
.sp-label { display:block; font-size:0.7rem; color:#78909c; margin-bottom:2px; }
.sp-val { font-size:1.05rem; font-weight:700; color:#ffd54f; }
.sp-fav .sp-val { color:#00e676; }

/* 球队基本面 */
.team-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.team-card {
    background: rgba(0,150,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    padding: 8px 10px;
}
.team-home { border-top: 2px solid #4fc3f7; }
.team-away { border-top: 2px solid #ff7043; }
.team-card-header { font-weight:700; font-size:0.85rem; color:#eceff1; margin-bottom:6px; }
.team-stats-row { display:flex; gap:8px; font-size:0.7rem; color:#b0bec5; margin-bottom:4px; }
.team-stats-row span { background:rgba(255,255,255,0.04); padding:2px 5px; border-radius:3px; }
.team-record { font-size:0.72rem; color:#b0bec5; margin-bottom:4px; }
.team-avg-goals { display:flex; gap:8px; font-size:0.72rem; margin-bottom:6px; }
.avg-for { color:#66bb6a; }
.avg-against { color:#ef5350; }

.recent-title { font-size:0.7rem; color:#78909c; margin-bottom:4px; border-top:1px dashed rgba(255,255,255,0.06); padding-top:4px; }
.recent-list { display:flex; flex-direction:column; gap:2px; }
.recent-row { display:flex; align-items:center; gap:4px; font-size:0.65rem; color:#90a4ae; padding:2px 0; }
.r-date { color:#78909c; min-width:48px; }
.r-league { color:#546e7a; max-width:80px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.r-opponent { color:#b0bec5; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.r-score { font-family:monospace; font-weight:600; color:#eceff1; }
.r-result { padding:1px 4px; border-radius:3px; font-weight:600; font-size:0.6rem; }
.r-胜 { background:rgba(102,187,106,0.15); color:#66bb6a; }
.r-平 { background:rgba(255,213,79,0.15); color:#ffd54f; }
.r-负 { background:rgba(239,83,80,0.15); color:#ef5350; }

.text-analysis { margin-top:8px; padding-top:6px; border-top:1px dashed rgba(255,255,255,0.06); }
.text-analysis-title { font-size:0.7rem; color:#78909c; margin-bottom:4px; }
.text-analysis-body { font-size:0.72rem; color:#b0bec5; line-height:1.5; }

@media (max-width:768px) {
    .md-summary { grid-template-columns: repeat(3, 1fr); }
    .team-grid { grid-template-columns: 1fr; }
}

/* ===== v8: History sticky header & scroll area ===== */
.history-sticky-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(135deg, rgba(10,15,30,0.97), rgba(15,25,50,0.97));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(13,110,166,0.3);
    border-radius: 10px;
    padding: 10px 8px 6px;
    margin-bottom: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4), 0 0 20px rgba(13,110,166,0.1);
}

.history-scroll-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}
.history-scroll-area::-webkit-scrollbar { width: 4px; }
.history-scroll-area::-webkit-scrollbar-track { background: transparent; }
.history-scroll-area::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }
.history-scroll-area::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* Fund detail row in card header */
.fund-detail-row {
    padding: 6px 0 2px;
    border-top: 1px dashed rgba(255,255,255,0.08);
    margin-top: 6px;
}
.fund-block {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 0 6px;
}
.fund-label {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.5px;
    line-height: 1;
    margin-bottom: 2px;
}
.fund-val {
    font-size: 0.85rem;
    font-weight: 700;
    color: #eceff1;
    line-height: 1.2;
}
.fund-arrow {
    color: rgba(255,255,255,0.2);
    font-size: 0.8rem;
    margin: 0 1px;
    align-self: flex-end;
    padding-bottom: 2px;
}
