/* TrueSpt MatchCenter v6.1.0 — Match Strip, Visual Inline Related, Zero-CLS, Consensus Bar, Smart Toast */

/* Zero-CLS Ad Reservation */
.mc-ad-slot, .ts-v60-inarticle-ad {
    min-height: 100px;
    contain: layout style;
}

/* 1. Pre-Match & Post-Match Analysis Strip */
.ts-v61-match-strip {
    margin: 22px 0 26px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.ts-v61-strip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.ts-v61-strip-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--text);
}
.ts-v61-strip-more {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--emerald);
    text-decoration: none;
}
.ts-v61-strip-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
}
.ts-v61-mcard {
    flex: 0 0 250px;
    scroll-snap-align: start;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 13px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.ts-v61-mcard:hover {
    transform: translateY(-2px);
    border-color: var(--emerald);
}
.ts-v61-mcard-img {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0F172A;
    overflow: hidden;
}
.ts-v61-mcard-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ts-v61-mcard-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.ts-v61-mcard-badge {
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #fff;
}
.ts-v61-mcard-badge.is-pre  { background: #2563EB; }
.ts-v61-mcard-badge.is-post { background: #059669; }
.ts-v61-mcard-badge.is-tact { background: #0F172A; }
.ts-v61-mcard-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ts-v61-mcard-title {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.42;
    font-weight: 800;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ts-v61-mcard-date {
    font-size: 0.74rem;
    color: var(--text-light);
    font-weight: 600;
}

/* 2. Visual Inline Related Story Card */
.ts-v61-inline-related {
    margin: 22px 0;
    border: 1px solid rgba(5, 150, 105, 0.3);
    border-inline-start: 4px solid var(--emerald);
    border-radius: 13px;
    background: var(--surface-alt);
    overflow: hidden;
}
.ts-v61-ir-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
}
.ts-v61-ir-img {
    width: 112px;
    height: 76px;
    object-fit: cover;
    border-radius: 9px;
    flex-shrink: 0;
    display: block;
}
.ts-v61-ir-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}
.ts-v61-ir-badge {
    font-size: 0.72rem;
    font-weight: 900;
    color: var(--emerald);
    letter-spacing: 0.03em;
}
.ts-v61-ir-title {
    font-size: 0.94rem;
    line-height: 1.45;
    font-weight: 800;
    color: var(--text);
}

/* 4. Live Crowd Consensus Bar in Predictor Card */
.ts-v61-consensus {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}
.ts-v61-cons-bar {
    display: flex;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--border);
    gap: 2px;
}
.ts-v61-cons-seg.seg-h { background: #059669; transition: width 0.35s ease; }
.ts-v61-cons-seg.seg-d { background: #64748B; transition: width 0.35s ease; }
.ts-v61-cons-seg.seg-a { background: #2563EB; transition: width 0.35s ease; }
.ts-v61-cons-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    margin-top: 6px;
}

/* 5. Smart Breaking / Fresh Article Toast */
.ts-v61-toast {
    position: fixed;
    bottom: 78px;
    inset-inline-end: 16px;
    width: min(320px, calc(100vw - 32px));
    background: var(--dark-bar, #0F172A);
    color: #F8FAFC;
    border-inline-start: 4px solid #00C875;
    border-radius: 14px;
    padding: 13px 15px;
    box-shadow: 0 14px 36px rgba(2, 6, 23, 0.38);
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: 7px;
    animation: tsV61SlideIn 0.35s ease;
}
.ts-v61-toast[hidden] { display: none !important; }
.ts-v61-toast-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ts-v61-toast-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 900;
    color: #00C875;
    letter-spacing: 0.04em;
}
.ts-v61-toast-close {
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.ts-v61-toast-title {
    color: #FFFFFF;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.4;
    text-decoration: none;
}
.ts-v61-toast-cta {
    align-self: flex-start;
    font-size: 0.76rem;
    font-weight: 800;
    color: #00C875;
    text-decoration: none;
}
@keyframes tsV61SlideIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 680px) {
    .ts-v61-mcard { flex: 0 0 220px; }
    .ts-v61-ir-img { width: 92px; height: 68px; }
}
