/* ============================================================
   live-summary.css · 直播结束统计页
   ------------------------------------------------------------
   作为 phone 的正式 summary 阶段，沿用项目深色静态渐变、主题色高光、
   细描边与圆角卡片语言；不使用动态背景或持续重采样模糊。
   ============================================================ */

.live-summary-page {
    position: absolute;
    z-index: 50;
    inset: 0;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border-radius: inherit;
    color: #fff;
    background:
        linear-gradient(90deg,
            transparent 0%,
            color-mix(in srgb, var(--brand-2) 11%, transparent) 100%),
        linear-gradient(180deg,
            color-mix(in srgb, var(--brand-2) 5.5%, transparent) 0%,
            transparent 46%),
        linear-gradient(180deg, #14131c 0%, #0d0c12 52%, #09090d 100%);
}

.phone[data-stage="summary"] .live-summary-page {
    display: flex;
}

.live-summary-page::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 14% 17%, rgba(255, 255, 255, 0.07) 0 1px, transparent 2px),
        radial-gradient(circle at 84% 37%, rgba(255, 255, 255, 0.055) 0 1px, transparent 2px),
        radial-gradient(circle at 72% 81%, rgba(255, 255, 255, 0.04) 0 1px, transparent 2px);
}

.live-summary-header {
    position: relative;
    z-index: 2;
    height: 94px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    flex: 0 0 94px;
    padding: 40px 12px 0;
}

.live-summary-back {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    color: rgba(255, 255, 255, 0.88);
    background: transparent;
    cursor: pointer;
    transition: transform 140ms ease, opacity 180ms ease;
}

.live-summary-back:active {
    opacity: 0.66;
    transform: scale(0.94);
}

.live-summary-back svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.live-summary-header-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 650;
    letter-spacing: 0.5px;
    text-align: center;
}

.live-summary-scroll {
    position: relative;
    z-index: 1;
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px 16px 24px;
    scrollbar-width: none;
}

.live-summary-scroll::-webkit-scrollbar {
    display: none;
}

.live-summary-hero {
    position: relative;
    min-height: 226px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 19px 18px 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 22px;
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--brand-2) 13%, transparent) 0%,
            color-mix(in srgb, var(--brand-2) 3.5%, transparent) 38%,
            transparent 75%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 42px rgba(0, 0, 0, 0.22);
}

.live-summary-finish-mark {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--brand-2) 52%, rgba(255, 255, 255, 0.18));
    border-radius: 50%;
    background:
        linear-gradient(145deg,
            color-mix(in srgb, var(--brand-1) 30%, rgba(255, 255, 255, 0.1)),
            color-mix(in srgb, var(--brand-2) 20%, rgba(10, 11, 16, 0.72)));
    box-shadow:
        0 0 0 6px color-mix(in srgb, var(--brand-2) 8%, transparent),
        0 8px 22px color-mix(in srgb, var(--brand-2) 22%, rgba(0, 0, 0, 0.28));
}

.live-summary-finish-mark i {
    width: 18px;
    height: 9px;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: translateY(-2px) rotate(-45deg);
}

.live-summary-hero h1 {
    margin: 13px 0 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.live-summary-time-range {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.4px;
}

.live-summary-duration-label {
    margin-top: 17px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
}

.live-summary-duration {
    position: relative;
    z-index: 1;
    margin-top: 5px;
    color: var(--brand-text-strong);
    font-size: 30px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1.5px;
    line-height: 1.1;
    text-shadow: 0 0 20px color-mix(in srgb, var(--brand-2) 34%, transparent);
}

.live-summary-pause {
    position: relative;
    z-index: 1;
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.045);
    font-size: 10px;
}

.live-summary-pause[hidden] {
    display: none;
}

.live-summary-pause strong {
    color: rgba(255, 255, 255, 0.76);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.live-summary-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 20px 3px 10px;
}

.live-summary-section-heading h2 {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 650;
}

.live-summary-section-heading span {
    color: rgba(255, 255, 255, 0.34);
    font-size: 10px;
}

.live-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.live-summary-stat {
    position: relative;
    min-width: 0;
    min-height: 88px;
    padding: 13px 13px 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 16px;
    background:
        linear-gradient(90deg,
            transparent 28%,
            color-mix(in srgb, var(--summary-stat-color) 8.5%, transparent) 100%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.live-summary-stat-mark {
    width: 16px;
    height: 4px;
    display: block;
    border-radius: 999px;
    background: var(--summary-stat-color);
    box-shadow: 0 0 9px color-mix(in srgb, var(--summary-stat-color) 58%, transparent);
}

.live-summary-stat-label {
    display: block;
    margin-top: 9px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 10px;
    font-weight: 600;
}

.live-summary-stat > strong {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 23px;
    font-weight: 720;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.live-summary-stat > strong small {
    color: rgba(255, 255, 255, 0.38);
    font-size: 9px;
    font-weight: 500;
}

.live-summary-stat.is-gift { --summary-stat-color: #f0bc5f; }
.live-summary-stat.is-follower { --summary-stat-color: #ff6e9d; }
.live-summary-stat.is-viewer { --summary-stat-color: #69a8ff; }
.live-summary-stat.is-fan-viewer { --summary-stat-color: #be83ff; }
.live-summary-stat.is-gifter { --summary-stat-color: #57d5bf; }
.live-summary-stat.is-like { --summary-stat-color: #ff7b72; }

.live-summary-note {
    margin: 15px 0 2px;
    color: rgba(255, 255, 255, 0.28);
    font-size: 9px;
    letter-spacing: 0.5px;
    text-align: center;
}
