﻿:root {
    --bg0: #070b14;
    --bg1: #0b1220;
    --card: rgba(255,255,255,.06);
    --card2: rgba(255,255,255,.08);
    --stroke: rgba(255,255,255,.12);
    --text: #eaf0ff;
    --muted: rgba(234,240,255,.72);
    --muted2: rgba(234,240,255,.52);
    --brand: #7c5cff;
    --brand2: #30d5c8;
    --good: #37d67a;
    --warn: #ffb020;
    --danger: #ff5c7a;
    --vip: #ffcc66;
    --shadow: 0 18px 40px rgba(0,0,0,.45);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "PingFang SC","Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: var(--bg1);
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 14px 14px 18px;
}

/* 顶部统计块 */
.hero {
    border: 1px solid var(--stroke);
    background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(48,213,200,.10));
    box-shadow: var(--shadow);
    border-radius: calc(var(--radius) + 8px);
    overflow: hidden;
    position: relative;
}

.hero:before {
    content: "";
    position: absolute;
    inset: -2px;
    background: var(--bg1);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    padding: 14px 14px 12px;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand-left {
    min-width: 0;
}

.brand h1 {
    margin: 0;
    font-size: 18px;
    letter-spacing: .2px;
}

.brand p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.55;
}

.mini-chip {
    flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(0,0,0,.10);
    color: rgba(234,240,255,.82);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    box-shadow: 0 0 0 4px rgba(255,255,255,.06);
}

.stats {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
}

.stat {
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.10);
    padding: 10px 10px;
    min-width: 0;
}

.stat .k {
    color: rgba(234,240,255,.60);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.stat .v {
    margin-top: 6px;
    font-weight: 950;
    letter-spacing: .2px;
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: rgba(234,240,255,.82);
    flex: 0 0 auto;
}

.tag.good {
    border-color: rgba(55,214,122,.30);
    background: rgba(55,214,122,.10);
}

.tag.warn {
    border-color: rgba(255,176,32,.30);
    background: rgba(255,176,32,.10);
}

.tag.bad {
    border-color: rgba(255,92,122,.28);
    background: rgba(255,92,122,.10);
}

/* 7天 tabs */
.tabs {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    overflow: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    flex: 0 0 auto;
    min-width: 106px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.10);
    padding: 10px 10px;
    cursor: pointer;
    user-select: none;
}

.tab.active {
    background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(48,213,200,.12));
    border-color: rgba(255,255,255,.16);
}

.tab .d {
    font-weight: 900;
    font-size: 13px;
    white-space: nowrap;
}

.tab .s {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: rgba(234,240,255,.66);
    font-size: 12px;
}

.tab .pill {
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: rgba(234,240,255,.80);
    font-size: 11px;
    white-space: nowrap;
}

/* 列表工具条 */
.toolbar {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.search {
    flex: 1;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.05);
}

.search svg {
    width: 18px;
    height: 18px;
    opacity: .85;
}

.search input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 14px;
}

.search input::placeholder {
    color: rgba(234,240,255,.45);
}

.ghost {
    flex: 0 0 auto;
    border-radius: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: rgba(234,240,255,.90);
    font-weight: 850;
    cursor: pointer;
    white-space: nowrap;
}

/* 比赛卡片 */
.list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match {
    border-radius: calc(var(--radius) + 6px);
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.10));
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    overflow: hidden;
    position: relative;
}

.match:active {
    transform: scale(.995);
}

.match-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 12px 10px;
}

.left {
    min-width: 0;
}

.topline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.jid {
    font-weight: 950;
    letter-spacing: .3px;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.10);
}

.date {
    color: rgba(234,240,255,.70);
    font-size: 12px;
}

.league {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(234,240,255,.88);
    font-size: 12.5px;
    font-weight: 850;
}

.l-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255,255,255,.06);
    flex: 0 0 auto;
}

.teams {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 950;
    letter-spacing: .2px;
    line-height: 1.25;
}

.teams .vs {
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: rgba(234,240,255,.72);
    font-size: 12px;
    font-weight: 900;
    flex: 0 0 auto;
}

.teams .t {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.teams .t.away {
    text-align: right;
}

.right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.status {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: rgba(234,240,255,.82);
    white-space: nowrap;
}

.badge.reviewed {
    border-color: rgba(255,255,255,.14);
}

.badge.hit {
    border-color: rgba(55,214,122,.34);
    background: rgba(55,214,122,.10);
    color: rgba(220,255,235,.95);
}

.badge.miss {
    border-color: rgba(255,92,122,.30);
    background: rgba(255,92,122,.10);
    color: rgba(255,220,228,.95);
}

.badge.pending {
    border-color: rgba(255,176,32,.25);
    background: rgba(255,176,32,.10);
    color: rgba(255,230,200,.95);
}

.pred {
    text-align: right;
    font-size: 12px;
    color: rgba(234,240,255,.70);
    line-height: 1.45;
}

.pred b {
    color: rgba(234,240,255,.92);
}

/* 视图切换：胜平负 / 总进球 / 半全场 */
.seg {
    display: flex;
    gap: 10px;
    padding: 10px 12px 0;
}

.seg button {
    flex: 1;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.10);
    color: rgba(234,240,255,.72);
    font-weight: 900;
    font-size: 12px;
    border-radius: 999px;
    padding: 9px 10px;
    cursor: pointer;
}

.seg button.active {
    background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(48,213,200,.12));
    border-color: rgba(255,255,255,.16);
    color: rgba(234,240,255,.95);
}

.dist {
    padding: 10px 12px 12px;
    border-top: 1px solid rgba(255,255,255,.10);
}

.bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.barrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
}

.barrow .k {
    width: 54px;
    color: rgba(234,240,255,.78);
    font-weight: 850;
    flex: 0 0 auto;
}

.barrow .p {
    flex: 1;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    overflow: hidden;
}

.barrow .p i {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(124,92,255,.90), rgba(48,213,200,.85));
    transition: width .18s ease;
}

.barrow .v {
    width: 52px;
    text-align: right;
    color: rgba(234,240,255,.70);
    font-variant-numeric: tabular-nums;
    flex: 0 0 auto;
}

/* 总进球：两行网格（0-7+） */
.grid8 {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 8px;
}

.gcell {
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.10);
    padding: 9px 10px;
    min-width: 0;
}

.gcell .k {
    font-size: 12px;
    font-weight: 900;
    color: rgba(234,240,255,.86);
}

.gcell .v {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(234,240,255,.68);
    font-variant-numeric: tabular-nums;
}

.gcell .mini {
    margin-top: 8px;
    height: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    overflow: hidden;
}

.gcell .mini i {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(124,92,255,.90), rgba(48,213,200,.85));
}

/* 半全场：3x3 小格 */
.grid9 {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 8px;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px 12px;
    border-top: 1px solid rgba(255,255,255,.10);
}

.meta2 {
    color: rgba(234,240,255,.62);
    font-size: 12px;
    line-height: 1.5;
    min-width: 0;
}

.btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: rgba(234,240,255,.92);
    font-size: 12.5px;
    font-weight: 900;
    white-space: nowrap;
}

.btn svg {
    width: 16px;
    height: 16px;
    opacity: .9;
}

.empty {
    text-align: center;
    color: rgba(234,240,255,.60);
    font-size: 13px;
    padding: 18px 12px;
    border: 1px dashed rgba(255,255,255,.16);
    border-radius: 18px;
    background: rgba(0,0,0,.10);
}

@media (min-width: 720px) {
    .wrap {
        padding: 18px 18px 22px;
    }

    .brand h1 {
        font-size: 20px;
    }
}