/* ============================================================
 *  live.php 专属样式（赛事直播页）
 *  依赖：public/css/style.css 已先加载
 * ============================================================ */

/* ============================================================
 *  一、返回按钮
 * ============================================================ */
.live-back-wrap {
    padding: 10px 12px 0;
}
.live-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px 0;
    background: #152f52;
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(21, 47, 82, 0.25);
    box-sizing: border-box;
}
.live-back-btn .back-icon {
    font-size: 18px;
    line-height: 1;
}

/* ============================================================
 *  二、搜索框
 * ============================================================ */
.live-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    margin: 10px 12px 0;
    padding: 10px 14px;
    border-radius: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.live-search-icon {
    font-size: 16px;
    color: #999;
    margin-right: 6px;
}
.live-search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    color: #333;
}
.live-search-count {
    font-size: 12px;
    color: #999;
    margin-left: 6px;
    white-space: nowrap;
}

/* ============================================================
 *  三、直播列表
 * ============================================================ */
.live-page {
    padding: 0 0 40px;
}

.live-card {
    background: #fff;
    margin: 8px 12px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    padding: 12px 14px;
    cursor: pointer;
    transition: 0.15s;
}
.live-card:active {
    transform: scale(0.98);
}

/* 正在踢的比赛加左侧红条 */
.live-card.live-now {
    border-left: 4px solid #e74c3c;
    padding-left: 10px;
}

.live-card .header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.live-card .header-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}
.live-card .league {
    font-size: 13px;
    color: #888;
    font-weight: 500;
    white-space: nowrap;
}
.live-card .match-num {
    display: inline-block;
    background: #152f52;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 8px;
    line-height: 1.5;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.live-card .datetime {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
    background: #f0f2f5;
    padding: 1px 8px;
    border-radius: 8px;
    line-height: 1.5;
}
.live-card .play-btn {
    flex-shrink: 0;
    background: #e74c3c;
    color: #fff;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.25);
}

.live-card .teams-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 2px 0;
}
.live-card .teams {
    font-size: 17px;
    font-weight: 600;
    color: #1a2332;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
}
.live-card .teams .home,
.live-card .teams .away {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 42%;
}
.live-card .teams .vs {
    color: #ccc;
    font-weight: 400;
    font-size: 12px;
    flex-shrink: 0;
}

/* 空态 */
.live-empty {
    text-align: center;
    padding: 60px 20px;
    color: #bbb;
    font-size: 15px;
}
.live-empty .icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

/* ============================================================
 *  四、全屏视频遮罩
 * ============================================================ */
.live-video-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}
.live-video-overlay.show {
    display: flex;
}
.live-video-overlay .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 48px;
    color: #fff;
    cursor: pointer;
    z-index: 100000;
    font-weight: 300;
}
.live-video-wrapper {
    width: 92vw;
    max-width: 1300px;
    height: 78vh;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    background: #000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.live-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.live-fallback {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    padding: 12px;
    display: flex;
    gap: 10px;
    justify-content: center;
    z-index: 10;
    flex-wrap: wrap;
}
.live-fallback a,
.live-fallback button {
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.live-fallback .btn-open {
    background: #e74c3c;
    color: #fff;
}
.live-fallback .btn-copy {
    background: #3498db;
    color: #fff;
}

/* ============================================================
 *  五、手机适配
 * ============================================================ */
@media (max-width: 600px) {
    .live-video-wrapper {
        width: 98vw;
        height: 55vh;
    }
    .live-card .teams {
        font-size: 15px;
    }
    .live-card .play-btn {
        padding: 5px 12px;
        font-size: 12px;
    }
}