/* ============================================================
 *  results.php 专属样式（赛事开奖结果页）
 *  依赖：public/css/style.css 已先加载
 * ============================================================ */

/* ============================================================
 *  一、页面容器
 * ============================================================ */
.results-page {
    padding: 10px 12px;
}
.page-title {
    font-size: 20px;
    font-weight: 700;
    color: #152f52;
    margin-bottom: 12px;
}

/* ============================================================
 *  二、搜索框
 * ============================================================ */
.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    padding: 6px 12px;
    margin: 10px 12px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    position: relative;
}
.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    padding: 8px 0;
    background: transparent;
    color: #333;
}
.search-box input::placeholder {
    color: #bbb;
}
.search-box .clear-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    display: none;
}
.search-box .clear-btn:hover {
    color: #333;
}

/* ============================================================
 *  三、返回按钮
 * ============================================================ */
.recommend-back {
    margin: 10px 12px 0;
}
.recommend-back .btn {
    display: block;
    width: 100%;
    padding: 10px 0;
    text-align: center;
    background: #152f52;
    color: #fff;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.recommend-back .btn:active {
    opacity: 0.8;
}

/* ============================================================
 *  四、结果卡片
 * ============================================================ */
.result-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 14px 16px;
    margin-bottom: 14px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #888;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.match-num {
    background: #152f52;
    color: #fff;
    padding: 0 10px;
    border-radius: 12px;
    font-weight: 600;
}
.match-league {
    font-weight: 500;
    color: #555;
}
.match-time {
    color: #aaa;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    margin: 8px 0 6px;
    flex-wrap: wrap;
    gap: 4px;
}
.team {
    flex: 1;
}
.team.home {
    text-align: left;
}
.team.away {
    text-align: right;
}
.score {
    background: #f0f2f5;
    padding: 2px 10px;
    border-radius: 16px;
    font-weight: 700;
    color: #e74c3c;
    font-size: 18px;
    margin: 0 4px;
}
.handicap {
    font-size: 14px;
    color: #e74c3c;
    font-weight: 700;
    background: #f0f2f5;
    padding: 0 6px;
    border-radius: 8px;
}

/* ============================================================
 *  五、玩法结果网格
 * ============================================================ */
.result-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-top: 8px;
}
.result-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.result-item .label {
    font-size: 10px;
    color: #888;
    white-space: nowrap;
}
.result-item .value {
    font-size: 14px;
    font-weight: 700;
    color: #152f52;
}
.result-item .sp {
    font-size: 10px;
    color: #999;
}

/* ============================================================
 *  六、底部提示
 * ============================================================ */
.results-update-tip {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    color: #999;
}
.results-foot-back {
    margin-top: 20px;
    text-align: center;
}
.results-foot-back a {
    color: #152f52;
    text-decoration: none;
}

/* ============================================================
 *  七、空态
 * ============================================================ */
.empty-tip {
    text-align: center;
    color: #bbb;
    padding: 40px 0;
    font-size: 15px;
}

/* ============================================================
 *  八、隐藏全站通用元素
 * ============================================================ */
.play-tabs,
.recommend-btn-wrap {
    display: none !important;
}

/* ============================================================
 *  九、手机适配
 * ============================================================ */
@media screen and (max-width: 480px) {
    .match-teams {
        font-size: 14px;
    }
    .score {
        font-size: 16px;
        padding: 0 8px;
    }
    .handicap {
        font-size: 12px;
    }
    .result-grid {
        gap: 4px;
    }
    .result-item .value {
        font-size: 12px;
    }
    .result-item .label {
        font-size: 9px;
    }
    .result-item .sp {
        font-size: 9px;
    }
}