﻿/* Live TV / stream channels on match cards â€” unified on home / watch-live / following */
.ts-broadcast {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.3rem 0.45rem;
    margin-top: 0.45rem;
    text-align: left;
}
.ts-broadcast__label {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
    color: #4b5563;
    line-height: 1.3;
    white-space: nowrap;
}
.ts-broadcast__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.3rem;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0;
}
.ts-broadcast__item {
    display: inline-flex;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.ts-broadcast__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    box-sizing: border-box;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    text-decoration: none !important;
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ts-broadcast__txt {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Clickable links = soft mint fill + soft green border */
a.ts-broadcast__chip--link,
a.ts-broadcast__chip--link:link,
a.ts-broadcast__chip--link:visited,
a.ts-broadcast__chip--link:active,
.entry-content a.ts-broadcast__chip--link,
.entry-content a.ts-broadcast__chip--link:link,
.entry-content a.ts-broadcast__chip--link:visited,
.matches-panel a.ts-broadcast__chip--link,
.ts-follow-manage a.ts-broadcast__chip--link,
.prose a.ts-broadcast__chip--link {
    background: #dcfce7 !important;
    border: 1.5px solid #86efac !important;
    color: #166534 !important;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: none;
    border-radius: 999px;
    font-size: 0.82rem;
    padding: 0.32rem 0.72rem;
    max-width: 20rem;
    gap: 0.35rem;
}
a.ts-broadcast__chip--link:hover,
a.ts-broadcast__chip--link:focus-visible,
.entry-content a.ts-broadcast__chip--link:hover,
.matches-panel a.ts-broadcast__chip--link:hover,
.ts-follow-manage a.ts-broadcast__chip--link:hover,
.prose a.ts-broadcast__chip--link:hover {
    background: #bbf7d0 !important;
    border-color: #4ade80 !important;
    color: #14532d !important;
    text-decoration: none !important;
    box-shadow: none;
}
/* Name-only = plain text (no frame) — full-contrast, not a button */
.ts-broadcast__chip--name {
    background: transparent !important;
    border: none !important;
    color: #1f2937 !important;
    font-weight: 700;
    cursor: default;
    border-radius: 0;
    box-shadow: none !important;
    pointer-events: none;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
}
.ts-broadcast__ico {
    font-size: 0.65rem;
    opacity: 0.9;
    flex-shrink: 0;
    color: inherit;
}
.ts-broadcast__chip--name .ts-broadcast__ico {
    opacity: 1;
}
/* Platform / domain next to custom name (e.g. FC Barcelona · YouTube) */
.ts-broadcast__domain {
    flex: 0 0 auto;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
    opacity: 0.88;
    white-space: nowrap;
}
.ts-broadcast__domain::before {
    content: "·";
    margin-right: 0.28rem;
    opacity: 0.7;
    font-weight: 800;
}
/* "เปิด" pill on link chips */
.ts-broadcast__action {
    flex: 0 0 auto;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: 0.18rem 0.42rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #86efac;
}
.ts-broadcast__chip--link .ts-broadcast__ico {
    font-size: 0.72rem;
}
.ts-broadcast--compact {
    margin-top: 0.35rem;
    justify-content: flex-start;
    align-items: center;
}
.ts-broadcast--compact .ts-broadcast__chip {
    font-size: 0.68rem;
    padding: 0.18rem 0.5rem;
    max-width: 10rem;
}
/* Keep links larger even in compact match cards */
.ts-broadcast--compact a.ts-broadcast__chip--link {
    font-size: 0.8rem;
    padding: 0.3rem 0.68rem;
    max-width: 18rem;
}
.ts-broadcast--compact .ts-broadcast__domain {
    font-size: 0.64rem;
}
/* Auto-split: channel names on one row, watch links on the next */
.ts-broadcast--split {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0.38rem;
}
.ts-broadcast__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.3rem 0.45rem;
    min-width: 0;
}
.ts-broadcast__row .ts-broadcast__label {
    flex: 0 0 auto;
}
.ts-broadcast__row .ts-broadcast__list {
    flex: 1 1 auto;
}
/* Names row label — readable, not faded */
.ts-broadcast__label--names,
.ts-broadcast__row--names .ts-broadcast__label {
    color: #374151;
    font-weight: 650;
}
/* Links row: action label */
.ts-broadcast__label--links,
.ts-broadcast__row--links .ts-broadcast__label {
    color: #166534;
    font-weight: 750;
}
.ts-broadcast__row--links {
    padding-top: 0.12rem;
}
.ts-broadcast--compact.ts-broadcast--split {
    gap: 0.3rem;
}
.ts-broadcast--compact .ts-broadcast__row {
    gap: 0.25rem 0.35rem;
}
.ts-broadcast--compact .ts-broadcast__action {
    font-size: 0.64rem;
    padding: 0.15rem 0.38rem;
}
.ls-match .ts-broadcast,
.ls-match .ts-broadcast--card {
    position: relative;
    z-index: 2; /* above .ls-match__hit so links stay clickable */
    justify-content: flex-start;
    text-align: left;
    padding-left: 0;
    margin-left: 0;
}
.ls-match .ts-broadcast__label {
    color: #374151;
    font-size: 0.72rem;
    font-weight: 650;
}
/* Kill disc bullets if any parent (entry-content) still styles lists */
.entry-content .ts-broadcast__list,
.entry-content .ts-broadcast__list li,
.entry-content .ts-broadcast__item,
.entry-content ul.ts-broadcast__list {
    list-style: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* â€”â€”â€” Watch-live / card: structured broadcast strip â€”â€”â€” */
.ts-bc {
    position: relative;
    z-index: 2;
    margin-top: 0.45rem;
    padding: 0.4rem 0.55rem;
    border-radius: 0.65rem;
    background: linear-gradient(180deg, #f0fdf4 0%, #f8faf9 55%, #fff 100%);
    border: 1px solid #bbf7d0;
    box-shadow: 0 1px 2px rgba(22, 101, 52, 0.04);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem 0.5rem;
    text-align: left;
}
.ts-bc--inline {
    flex-direction: row;
    align-items: center;
}
.ts-bc--split {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0.4rem;
}
.ts-bc__group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.45rem;
    min-width: 0;
}
.ts-bc__group .ts-bc__list {
    flex: 1 1 auto;
}
.ts-bc__rail {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    min-width: 0;
    flex: 0 0 auto;
}
.ts-bc__badge {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 0.45rem;
    background: #14532d;
    color: #bbf7d0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
.ts-bc__badge-dot {
    position: absolute;
    top: -0.12rem;
    right: -0.12rem;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: #22c55e;
    border: 1.5px solid #f0fdf4;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
    animation: ts-bc-pulse 1.5s ease-in-out infinite;
}
@keyframes ts-bc-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}
.ts-bc__badge-ico {
    display: inline-flex;
    line-height: 0;
}
.ts-bc__badge-ico svg {
    display: block;
}
.ts-bc__k {
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
    color: #166534;
    line-height: 1.3;
    white-space: nowrap;
}
.ts-bc__count {
    flex: 0 0 auto;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: #14532d;
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 999px;
    line-height: 1;
}
.ts-bc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.3rem;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
}
.ts-bc__item {
    margin: 0;
    padding: 0;
    min-width: 0;
    max-width: 100%;
}
.ts-bc__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-sizing: border-box;
    max-width: 100%;
    min-height: 2rem;
    padding: 0.32rem 0.65rem 0.32rem 0.45rem;
    border-radius: 0.55rem;
    border: 1px solid transparent;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease, transform 0.1s ease;
}
.ts-bc__ico {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 999px;
}
.ts-bc__ico svg {
    display: block;
}
.ts-bc__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ts-bc__ext {
    flex: 0 0 auto;
    font-size: 0.7rem;
    font-weight: 800;
    opacity: 0.7;
}
/* Link = soft mint fill + soft green border */
.ts-bc__chip--link {
    color: #166534;
    background: #dcfce7;
    border-color: #86efac;
    border-width: 1.5px;
    box-shadow: none;
    cursor: pointer;
    font-size: 0.86rem;
    min-height: 2.25rem;
    padding: 0.4rem 0.78rem 0.4rem 0.55rem;
}
.ts-bc__chip--link .ts-bc__ico {
    background: #bbf7d0;
    color: #166534;
}
.ts-bc__chip--link:hover {
    transform: translateY(-1px);
    background: #bbf7d0;
    border-color: #4ade80;
    color: #14532d;
    box-shadow: none;
}
.ts-bc__chip--link:hover .ts-bc__ico {
    background: #86efac;
    color: #14532d;
}
.ts-bc__domain {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.88;
    white-space: nowrap;
}
.ts-bc__domain::before {
    content: "·";
    margin-right: 0.28rem;
    opacity: 0.7;
    font-weight: 800;
}
.ts-bc__action {
    flex: 0 0 auto;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #86efac;
}
/* Name = plain text (no frame, not clickable) */
.ts-bc__chip--name {
    color: #1f2937;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    cursor: default;
    font-weight: 700;
    pointer-events: none;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
}
.ts-bc__chip--name .ts-bc__ico {
    background: transparent;
    color: #374151;
}
.ts-bc__k--names {
    color: #374151;
    font-weight: 650;
}
.ts-bc__k--links {
    color: #166534;
    font-weight: 750;
}
.ts-bc__group--links {
    padding-top: 0.1rem;
}
/* Watch-live list: same card chrome as homepage (no alternate broadcast layout) */
.ts-match-list--broadcast .ls-match {
    padding-bottom: 0.55rem;
}
.ts-match-list--broadcast .ts-broadcast {
    margin-top: 0.35rem;
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-start;
}
.ts-match-list--broadcast .ls-sb .ls-match + .ls-match {
    border-top: 1px solid #eef2f0;
}
@media (max-width: 480px) {
    .ts-bc {
        padding: 0.5rem 0.5rem 0.55rem;
    }
    .ts-bc__chip {
        font-size: 0.74rem;
        min-height: 1.9rem;
        padding: 0.28rem 0.55rem 0.28rem 0.4rem;
    }
    .ts-bc__name {
        max-width: 11rem;
    }
}

/* â€”â€”â€” Single match: broadcast channels (chip card) â€”â€”â€” */
.ts-tv {
    margin: 0;
}
.ts-tv__title {
    margin: 0 0 0.7rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1b4332;
    line-height: 1.25;
}
.ts-tv__card {
    background: #f8faf9;
    border: 1px solid #eef2f0;
    border-radius: 0.9rem;
    padding: 0.8rem 0.9rem;
}
.ts-tv--split .ts-tv__card {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.ts-tv__group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}
.ts-tv__sub {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #4b5563;
    line-height: 1.2;
}
.ts-tv__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: stretch;
}
.ts-tv__item {
    margin: 0;
    min-width: 0;
    max-width: 100%;
}
/* Uniform chips â€” link & name same height/shape so the row feels balanced */
.ts-tv__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-sizing: border-box;
    max-width: 100%;
    min-height: 2.25rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    text-decoration: none;
    line-height: 1.35;
    vertical-align: top;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}
.ts-tv__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    opacity: 0.9;
}
.ts-tv__ico svg {
    display: block;
}
.ts-tv__label {
    min-width: 0;
    font-size: 0.84rem;
    font-weight: 700;
    word-break: break-word;
    white-space: normal;
}
.ts-tv__ext {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0.55;
    margin-left: 0.1rem;
}
/* Clickable stream = soft mint fill + soft green border */
.ts-tv__chip--link {
    background: #dcfce7;
    border: 1.5px solid #86efac;
    color: #166534;
    cursor: pointer;
    box-shadow: none;
    font-size: 0.9rem;
    min-height: 2.5rem;
    padding: 0.48rem 0.85rem;
}
.ts-tv__chip--link .ts-tv__ico {
    color: #166534;
}
.ts-tv__chip--link:hover {
    background: #bbf7d0;
    border-color: #4ade80;
    color: #14532d;
    box-shadow: none;
}
.ts-tv__chip--link:hover .ts-tv__ico {
    color: #14532d;
}
.ts-tv__domain {
    flex-shrink: 0;
    font-size: 0.74rem;
    font-weight: 700;
    opacity: 0.88;
    white-space: nowrap;
}
.ts-tv__domain::before {
    content: "·";
    margin-right: 0.28rem;
    opacity: 0.7;
    font-weight: 800;
}
.ts-tv__action {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: 0.22rem 0.48rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #86efac;
}
/* Name-only = plain text (no frame, not a button) */
.ts-tv__chip--name {
    background: transparent;
    border: none;
    color: #1f2937;
    cursor: default;
    font-weight: 700;
    border-radius: 0;
    box-shadow: none;
    pointer-events: none;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
}
.ts-tv__chip--name .ts-tv__ico {
    color: #374151;
}
.ts-tv__sub--names {
    color: #374151;
    font-weight: 650;
}
.ts-tv__sub--links {
    color: #166534;
    font-weight: 750;
}

/* Narrow phones: chips can fill a tidy row without full-bleed buttons */
@media (max-width: 420px) {
    .ts-tv__chip {
        /* still wrap as chips; only stretch when a single long name needs room */
        max-width: 100%;
    }
}

/* Watch-live board â€” only matches with broadcast channels */
.ts-watch-live {
    margin: 0 0 1.25rem;
}
.ts-watch-live__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}
.ts-watch-live__head-main {
    min-width: 0;
    flex: 1 1 14rem;
}
.ts-watch-live__title {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0b1f17;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.ts-watch-live__live-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
    animation: ts-watch-pulse 1.4s ease-in-out infinite;
    flex: 0 0 auto;
}
@keyframes ts-watch-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.92); }
}
.ts-watch-live__desc {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
}
.ts-watch-live__sort {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 0.25rem 0.35rem 0.25rem 0.65rem;
}
.ts-watch-live__sort-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #6b7280;
    margin-right: 0.15rem;
}
.ts-watch-live__sort-btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #374151;
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background 0.12s ease, color 0.12s ease;
}
.ts-watch-live__sort-btn:hover {
    background: #fff;
    color: #1b4332;
}
.ts-watch-live__sort-btn.is-active {
    background: #1b4332;
    color: #fff;
    border-color: #1b4332;
}
/* Multi-day watch-live (single /live URL) — one white card per day */
.ts-watch-live--multi .ts-watch-live__days {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
@media (min-width: 768px) {
    .ts-watch-live--multi .ts-watch-live__days {
        gap: 2.35rem;
    }
}
.ts-watch-live__day {
    margin: 0;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 14px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}
.ts-watch-live__day.is-today {
    border-color: #86efac;
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.1), 0 6px 20px rgba(22, 163, 74, 0.1);
}
/* Day label band — full-width, high contrast so each day reads clearly */
.ts-watch-live__day-head {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0;
    padding: 0.85rem 1.1rem 0.85rem 1rem;
    border: 0;
    border-bottom: 2px solid #86efac;
    border-left: 4px solid #16a34a;
    background:
        linear-gradient(90deg, #14532d 0%, #166534 28%, #15803d 62%, #166534 100%);
    box-shadow: 0 2px 8px rgba(20, 83, 45, 0.18);
}
.ts-watch-live__day.is-today .ts-watch-live__day-head {
    border-bottom-color: #4ade80;
    border-left-color: #4ade80;
    background:
        linear-gradient(90deg, #14532d 0%, #15803d 35%, #16a34a 70%, #15803d 100%);
    box-shadow: 0 2px 10px rgba(22, 163, 74, 0.28);
}
.ts-watch-live__day-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}
.ts-watch-live__day.is-today .ts-watch-live__day-title {
    font-size: 1.1rem;
}
.ts-watch-live__day-badge {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.35), 0 0 10px rgba(74, 222, 128, 0.55);
    flex: 0 0 auto;
    animation: ts-wl-day-pulse 1.6s ease-in-out infinite;
}
@keyframes ts-wl-day-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.35), 0 0 8px rgba(74, 222, 128, 0.45); }
    50% { opacity: 0.85; box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.2), 0 0 14px rgba(74, 222, 128, 0.7); }
}
.ts-watch-live__day-body {
    padding: 0.9rem 0.95rem 1.05rem;
}
.ts-watch-live__day-body > .ts-no-matches {
    margin: 0.25rem 0 0;
    padding: 0.75rem 0.85rem;
    background: #f9fafb;
    border: 1px dashed #e5e7eb;
    border-radius: 0.65rem;
    color: #6b7280;
    font-size: 0.88rem;
}

.ts-match-list--broadcast .ls-match .ts-broadcast {
    margin-top: 0.35rem;
}
.ts-match-list--broadcast .ts-broadcast__chip {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}
.ts-match-list--broadcast .ts-broadcast__chip--link {
    border-color: #fca5a5;
    background: #fee2e2;
}
.ts-match-list--broadcast .ts-broadcast__chip--link:hover {
    background: #fecaca;
    color: #7f1d1d;
}

/* Dedicated prediction board (separate from score report pages) */
.ts-predict-board {
    margin: 0 0 1.5rem;
}
.ts-predict-board__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}
.ts-predict-board__head-main {
    min-width: 0;
    flex: 1 1 14rem;
}
.ts-predict-board__title {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0b1f17;
}
.ts-predict-board__desc {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
}
.ts-predict-board__sort {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 0.25rem 0.35rem 0.25rem 0.65rem;
}
.ts-predict-board__sort-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #6b7280;
    margin-right: 0.15rem;
}
.ts-predict-board__sort-btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #374151;
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background 0.12s ease, color 0.12s ease;
}
.ts-predict-board__sort-btn:hover {
    background: #fff;
    color: #1b4332;
}
.ts-predict-board__sort-btn.is-active {
    background: #1b4332;
    color: #fff;
    border-color: #1b4332;
}
.ts-match-list--predict .ls-match {
    border-color: #d1fae5;
}
.ts-match-list--predict .ls-match__predict {
    margin-top: 0.5rem;
}

/* Predict rules / how-to guide */
.ts-predict-rules {
    margin: 0 0 1.15rem;
    border: 1px solid #d1fae5;
    border-radius: 0.85rem;
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 48%);
    overflow: hidden;
}
.ts-predict-rules__sum {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 800;
    color: #14532d;
    user-select: none;
}
.ts-predict-rules__sum::-webkit-details-marker {
    display: none;
}
.ts-predict-rules__sum::after {
    content: 'â–¾';
    margin-left: auto;
    font-size: 0.75rem;
    opacity: 0.7;
}
.ts-predict-rules[open] > .ts-predict-rules__sum::after {
    content: 'â–´';
}
.ts-predict-rules__sum-icon {
    font-size: 1.1rem;
}
.ts-predict-rules__body {
    padding: 0 1rem 1rem;
    border-top: 1px solid #dcfce7;
}
.ts-predict-rules__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.85rem;
}
@media (max-width: 720px) {
    .ts-predict-rules__grid {
        grid-template-columns: 1fr;
    }
}
.ts-predict-rules__card {
    background: #fff;
    border: 1px solid #e8ece9;
    border-radius: 0.75rem;
    padding: 0.75rem 0.85rem;
}
.ts-predict-rules__card h3 {
    margin: 0 0 0.45rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: #1b4332;
}
.ts-predict-rules__card ol,
.ts-predict-rules__card ul {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.8rem;
    color: #374151;
    line-height: 1.55;
}
.ts-predict-rules__card li {
    margin: 0.2rem 0;
}
.ts-predict-rules__tip {
    margin: 0.85rem 0 0;
    font-size: 0.78rem;
    color: #4b5563;
    line-height: 1.45;
    padding: 0.55rem 0.7rem;
    background: #f9fafb;
    border-radius: 0.55rem;
    border: 1px dashed #e5e7eb;
}

/* TryScore Core — compact prediction UI (mobile-first, list cards) */
.ts-predict {
    margin-top: 0.4rem;
    padding-top: 0.35rem;
    border-top: 1px solid #eef2f0;
    text-align: center;
}

/* Legacy majority bar — hidden (stats live inside form choices) */
.ts-predict-bar {
    display: none !important;
}

/* Form: equal-width choice cards with embedded % / counts */
.ts-predict__form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.28rem;
    margin: 0;
}
.ts-predict__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 0;
    line-height: 1;
}
.ts-predict__meta:empty {
    display: none;
}
.ts-predict__badge {
    display: inline-block;
    padding: 0.08rem 0.35rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.ts-predict__form.is-stats-only .ts-predict__badge {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fdba74;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.58rem;
    line-height: 1.25;
    max-width: 100%;
    white-space: normal;
    text-align: left;
}
.ts-predict__badge-sub {
    display: block;
    font-weight: 600;
    opacity: 0.92;
    margin-top: 0.05rem;
}
.ts-predict__quota {
    font-size: 0.6rem;
    font-weight: 600;
    color: #9ca3af;
}
/* Open window: close deadline notice */
.ts-predict__deadline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.2rem 0.4rem;
    padding: 0.28rem 0.55rem;
    border-radius: 0.55rem;
    background: #f0fdf6;
    border: 1px solid #bbf7d0;
    font-size: 0.62rem;
    line-height: 1.3;
    color: #166534;
    text-align: center;
}
.ts-predict__deadline-k {
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #047857;
}
.ts-predict__deadline-k::after {
    content: ' ·';
    font-weight: 600;
    color: #86efac;
}
.ts-predict__deadline-v {
    font-weight: 600;
    color: #166534;
}
.ts-predict__summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    align-self: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    font-size: 0.62rem;
    font-weight: 600;
    color: #6b7280;
    line-height: 1.2;
}
.ts-predict__summary[hidden] {
    display: none !important;
}
.ts-predict__summary-total {
    font-family: var(--font-display, 'Oswald', system-ui, sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    color: #111827;
    font-variant-numeric: tabular-nums;
}
.ts-predict__choices {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    width: 100%;
}
.ts-predict__choice {
    flex: 1 1 0;
    min-width: 0;
    cursor: pointer;
    margin: 0;
}
.ts-predict__choice--draw {
    flex: 0.85 1 0;
    min-width: 3.4rem;
    max-width: none;
}
.ts-predict__choice input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.ts-predict__choice-ui {
    --ts-pct: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    width: 100%;
    min-height: 0;
    padding: 0.32rem 0.25rem 0.3rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.55rem;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease, transform 0.12s ease;
    box-sizing: border-box;
}
.ts-predict__choice-fill {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--ts-pct, 0) * 1%);
    max-height: 100%;
    opacity: 0.1;
    pointer-events: none;
    transition: height 0.28s ease;
}
.ts-predict__choice--home .ts-predict__choice-fill {
    background: linear-gradient(180deg, transparent, #10b981);
}
.ts-predict__choice--draw .ts-predict__choice-fill {
    background: linear-gradient(180deg, transparent, #9ca3af);
}
.ts-predict__choice--away .ts-predict__choice-fill {
    background: linear-gradient(180deg, transparent, #3b82f6);
}
.ts-predict__choice-check {
    display: none;
}
.ts-predict__choice-code {
    display: none !important;
}
.ts-predict__choice-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    gap: 0.06rem;
    width: 100%;
}
.ts-predict__choice-pct {
    font-family: var(--font-display, 'Oswald', system-ui, sans-serif);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    color: #1f2937;
}
.ts-predict__choice--home .ts-predict__choice-pct {
    color: #047857;
}
.ts-predict__choice--draw .ts-predict__choice-pct {
    color: #4b5563;
}
.ts-predict__choice--away .ts-predict__choice-pct {
    color: #1d4ed8;
}
.ts-predict__choice-bar {
    display: none; /* list: hide mini bar; single shows via theme */
    width: 100%;
    height: 0.28rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    overflow: hidden;
}
.ts-predict__choice-bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    min-width: 0;
    transition: width 0.28s ease;
}
.ts-predict__choice--home .ts-predict__choice-bar-fill {
    background: linear-gradient(90deg, #34d399, #059669);
}
.ts-predict__choice--draw .ts-predict__choice-bar-fill {
    background: linear-gradient(90deg, #d1d5db, #6b7280);
}
.ts-predict__choice--away .ts-predict__choice-bar-fill {
    background: linear-gradient(90deg, #60a5fa, #2563eb);
}
.ts-predict__choice-count {
    font-size: 0.58rem;
    font-weight: 600;
    line-height: 1;
    color: #9ca3af;
    font-variant-numeric: tabular-nums;
}
.ts-predict__choice-hint {
    display: none;
}
.ts-predict__choice--draw .ts-predict__choice-name {
    font-size: 0.68rem;
}
.ts-predict__form.is-display .ts-predict__choice {
    cursor: default;
}
.ts-predict__form.is-display .ts-predict__choice:hover .ts-predict__choice-ui {
    border-color: #e5e7eb;
    transform: none;
    box-shadow: none;
}
.ts-predict__status {
    margin-bottom: 0.15rem;
}
.ts-predict__status .ts-predict__locked,
.ts-predict__status .ts-predict__login {
    margin: 0;
}
.ts-predict__choice:hover .ts-predict__choice-ui {
    border-color: #94a3b8;
}
.ts-predict__choice.is-selected .ts-predict__choice-ui,
.ts-predict__choice input:checked + .ts-predict__choice-ui {
    border-color: #2D6A4F;
    background: #ecfdf5;
    box-shadow: inset 0 0 0 1px rgba(45, 106, 79, 0.18);
}
.ts-predict__choice--home.is-selected .ts-predict__choice-ui,
.ts-predict__choice--home input:checked + .ts-predict__choice-ui {
    border-color: #059669;
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
    box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.18);
}
.ts-predict__choice--draw.is-selected .ts-predict__choice-ui,
.ts-predict__choice--draw input:checked + .ts-predict__choice-ui {
    border-color: #6b7280;
    background: linear-gradient(180deg, #f9fafb 0%, #e5e7eb 100%);
    box-shadow: 0 0 0 1px rgba(107, 114, 128, 0.16);
}
.ts-predict__choice--away.is-selected .ts-predict__choice-ui,
.ts-predict__choice--away input:checked + .ts-predict__choice-ui {
    border-color: #2563eb;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18);
}
.ts-predict__choice-name {
    font-size: 0.68rem;
    font-weight: 700;
    color: #374151;
    line-height: 1.15;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ts-predict__choice-tag {
    display: none;
}
.ts-predict__form.is-saving .ts-predict__choice {
    opacity: 0.65;
    pointer-events: none;
}
.ts-predict__actions {
    display: flex;
    justify-content: center;
    margin-top: 0.05rem;
}
.ts-predict__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    margin: 0;
    padding: 0.3rem 0.8rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #6b7280;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}
.ts-predict__clear-x {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    opacity: 0.85;
}
.ts-predict__clear[hidden] {
    display: none !important;
}
.ts-predict__clear:hover {
    border-color: #fca5a5;
    color: #dc2626;
    background: #fef2f2;
}
.ts-predict__clear:disabled {
    opacity: 0.55;
    cursor: wait;
}
.ts-predict__form.is-saving .ts-predict__clear {
    pointer-events: none;
}
.ts-predict__msg {
    font-size: 0.65rem;
    color: #2D6A4F;
    width: 100%;
    min-height: 0;
    line-height: 1.25;
    margin: 0;
}
.ts-predict__msg:empty {
    display: none;
}
.ts-predict__msg.is-error {
    color: #DC2626;
}
.ts-predict__msg.is-ok {
    color: #2D6A4F;
}
.ts-predict__msg.is-saving {
    color: #6b7280;
}
.ts-predict__login,
.ts-predict__locked {
    font-size: 0.72rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.35;
}
.ts-predict__login-text {
    margin: 0 0 0.35rem;
    font-size: inherit;
    color: inherit;
}
.ts-predict__login-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}
.ts-predict__login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: #1b4332;
    color: #fff !important;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none !important;
}
.ts-predict__login-btn:hover {
    background: #2d6a4f;
}
.ts-predict__login-link {
    font-size: 0.7rem;
    font-weight: 600;
    color: #2d6a4f;
}
.ts-predict__locked-k {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.1rem;
}
.ts-predict__locked-v {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1f2937;
}
.ts-predict__locked-note {
    display: block;
    margin-top: 0.12rem;
    font-size: 0.62rem;
    font-weight: 500;
    line-height: 1.3;
    color: #9ca3af;
}
.ts-predict__locked--postponed {
    color: #b45309;
}
.ts-predict__locked--postponed .ts-predict__locked-k {
    color: #d97706;
}
.ts-predict__locked--postponed .ts-predict__locked-v {
    color: #b45309;
}
.ts-predict__locked--done .ts-predict__locked-v {
    color: #047857;
}
.ts-predict__locked-pick {
    display: block;
    margin-top: 0.2rem;
    font-weight: 600;
    color: #6b7280;
    font-size: 0.7rem;
}

/* Slightly roomier on larger screens / list */
@media (min-width: 640px) {
    .ts-predict {
        margin-top: 0.5rem;
        padding-top: 0.45rem;
    }
    .ts-predict-bar__track {
        height: 0.42rem;
    }
    .ts-predict__choice-ui {
        min-height: 2.75rem;
        padding: 0.35rem 0.4rem;
    }
    .ts-predict__choice-name {
        font-size: 0.75rem;
    }
    .ts-predict__choice-pct {
        font-size: 0.9rem;
    }
}
/* â”€â”€ Player profile page â”€â”€ */
.ts-player-page {
    max-width: 52rem;
}
.ts-player-shell,
.ts-player-page .ts-player-profile {
    max-width: 52rem;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e2ebe6;
    border-radius: 1.15rem;
    box-shadow: 0 8px 28px rgba(11, 31, 23, 0.07);
    overflow: hidden;
}
.ts-player-hero {
    position: relative;
    padding: 1.25rem 1.15rem 1.1rem;
    color: #fff;
}
.ts-player-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 120% at 100% 0%, rgba(212, 175, 55, 0.28), transparent 55%),
        linear-gradient(135deg, #0f2f22 0%, #1B4332 48%, #2D6A4F 100%);
}
.ts-player-hero__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem 1rem;
}
.ts-player-hero__avatar-wrap {
    flex-shrink: 0;
    padding: 3px;
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.9), rgba(255, 255, 255, 0.35));
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.ts-player-card__avatar,
.ts-player-hero__avatar-wrap .avatar {
    display: block;
    width: 72px !important;
    height: 72px !important;
    border-radius: 999px;
    border: 2px solid #0f2f22;
    background: #e8f5ee;
}
.ts-player-hero__text {
    flex: 1 1 10rem;
    min-width: 0;
}
.ts-player-hero__eyebrow {
    margin: 0 0 0.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.ts-player-hero__tag {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.ts-player-hero__name {
    margin: 0;
    font-size: clamp(1.25rem, 2.5vw, 1.55rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
    word-break: break-word;
}
.ts-player-hero__handle {
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    font-variant-numeric: tabular-nums;
}
.ts-player-hero__score {
    margin-left: auto;
    min-width: 4.5rem;
    text-align: center;
    padding: 0.55rem 0.85rem;
    border-radius: 0.85rem;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
}
.ts-player-hero__score-val {
    display: block;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.1;
    color: #f4e4a6;
    font-variant-numeric: tabular-nums;
}
.ts-player-hero__score-lbl {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.7);
}

/* Legacy card bits (shortcode embeds / links) */
.ts-player-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.ts-player-card__name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1B4332;
    line-height: 1.25;
}
.ts-player-card__meta {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    color: #6b7280;
}
.ts-player-link {
    color: #1B4332;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
}
.ts-player-link:hover {
    color: #2D6A4F;
    border-bottom-color: #2D6A4F;
}

.ts-player-toolbar {
    padding: 0.9rem 1.1rem 0.15rem;
    background: #f8fbf9;
    border-bottom: 1px solid #eef2f0;
}
.ts-player-profile .ts-period-tabs {
    margin-bottom: 0.45rem;
}
.ts-player-profile .ts-period-caption {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
}

.ts-player-stats {
    padding: 0.95rem 1.1rem 0.35rem;
}
.ts-stats-grid--player {
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.ts-player-profile .ts-stats-card {
    padding: 0.65rem 0.45rem 0.55rem;
    border-radius: 0.75rem;
    border-color: #e4ece7;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ts-player-profile .ts-stats-card:hover {
    border-color: #c5ddd0;
    box-shadow: 0 2px 10px rgba(11, 31, 23, 0.06);
}
.ts-player-profile .ts-stats-card--primary {
    grid-column: span 1;
}
.ts-player-profile .ts-stats-card--winrate {
    background: linear-gradient(165deg, #ecfdf5 0%, #fff 70%);
    border-color: #a7f3d0;
}
.ts-player-profile .ts-stats-card--ok .ts-stats-card__val {
    color: #047857;
}
.ts-player-profile .ts-stats-card--bad .ts-stats-card__val {
    color: #b91c1c;
}
.ts-player-profile .ts-stats-card--muted .ts-stats-card__val {
    color: #6b7280;
}
.ts-player-profile .ts-stats-card__val {
    font-size: 1.2rem;
}
.ts-stats-card__bar {
    display: block;
    height: 0.28rem;
    margin: 0.4rem 0.35rem 0;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}
.ts-stats-card__bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #059669, #34d399);
}

.ts-player-history {
    padding: 0.5rem 1.1rem 1.15rem;
}
.ts-player-history__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.35rem 0 0.65rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid #eef2f0;
}
.ts-player-history__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #1B4332;
    letter-spacing: -0.01em;
}
.ts-player-history__count {
    font-size: 0.72rem;
    font-weight: 700;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
}
.ts-player-empty {
    text-align: center;
    padding: 1.75rem 1rem;
    border: 1px dashed #d1e3d8;
    border-radius: 0.85rem;
    background: #f9fbfa;
}
.ts-player-empty__ico {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    opacity: 0.75;
}
.ts-player-table-wrap {
    border: 1px solid #e4ece7;
    border-radius: 0.85rem;
    box-shadow: none;
}
.ts-player-pred-table {
    min-width: 0;
}
.ts-player-pred-table th.ts-col-pick,
.ts-player-pred-table th.ts-col-result,
.ts-player-pred-table th.ts-col-status,
.ts-player-pred-table th.ts-col-pts,
.ts-player-pred-table td.ts-col-pick,
.ts-player-pred-table td.ts-col-result,
.ts-player-pred-table td.ts-col-status,
.ts-player-pred-table td.ts-col-pts {
    text-align: center;
    white-space: nowrap;
}
.ts-player-pred-table th.ts-col-pts,
.ts-player-pred-table td.ts-col-pts {
    width: 4.25rem;
}
.ts-player-pred-table td.ts-col-match {
    min-width: 9rem;
}
.ts-pred-match {
    display: block;
    font-weight: 650;
    color: #1f2937;
    line-height: 1.35;
    word-break: break-word;
}
.ts-pred-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    padding: 0.18rem 0.45rem;
    border-radius: 0.4rem;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.ts-pred-chip--result {
    background: #ecfdf5;
    color: #065f46;
}
.ts-pred-pts {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    font-size: 0.85rem;
    color: #6b7280;
}
.ts-pred-pts.is-plus {
    color: #047857;
}
.ts-pred-pts.is-zero {
    color: #9ca3af;
}
.ts-pred-pts.is-na {
    color: #d1d5db;
    font-weight: 600;
}

.ts-leaderboard__table tr.is-hidden-pick td:first-child {
    box-shadow: inset 3px 0 0 #93c5fd;
}

/* Prediction table â€” date group headers */
.ts-pred-table .ts-pred-date-row td {
    background: linear-gradient(90deg, #ecfdf5 0%, #f0fdf4 100%);
    border-bottom: 1px solid #bbf7d0;
    padding: 0.5rem 0.75rem;
    box-shadow: none !important;
}
.ts-pred-table .ts-pred-date-row:hover td {
    background: linear-gradient(90deg, #ecfdf5 0%, #f0fdf4 100%);
}
.ts-pred-date-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: #1B4332;
    letter-spacing: 0.01em;
}
.ts-pred-date-count {
    margin-left: 0.45rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 0.08rem 0.4rem;
}

/* Mobile: stack prediction rows as cards */
@media (max-width: 640px) {
    .ts-player-hero {
        padding: 1.1rem 1rem 1rem;
    }
    .ts-player-hero__score {
        width: 100%;
        margin-left: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        text-align: left;
        padding: 0.55rem 0.75rem;
    }
    .ts-player-hero__score-val {
        font-size: 1.35rem;
    }
    .ts-player-hero__score-lbl {
        margin-top: 0;
    }
    .ts-player-toolbar,
    .ts-player-stats,
    .ts-player-history {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
    .ts-player-pred-table thead {
        display: none;
    }
    .ts-player-pred-table,
    .ts-player-pred-table tbody {
        display: block;
        width: 100%;
    }
    .ts-player-pred-table .ts-pred-date-row {
        display: block;
    }
    .ts-player-pred-table .ts-pred-date-row td {
        display: block;
        border-radius: 0;
    }
    .ts-player-pred-table tbody tr:not(.ts-pred-date-row) {
        display: grid;
        grid-template-columns: 1fr auto auto;
        grid-template-areas:
            "match match match"
            "pick result status"
            "pts pts pts";
        gap: 0.35rem 0.5rem;
        padding: 0.7rem 0.75rem;
        border-bottom: 1px solid #eef2f0;
        background: #fff;
    }
    .ts-player-pred-table tbody tr:not(.ts-pred-date-row):hover {
        background: #f8fbf9;
    }
    .ts-player-pred-table tbody tr:not(.ts-pred-date-row) td {
        border: 0;
        padding: 0;
        box-shadow: none !important;
        text-align: left;
        white-space: normal;
    }
    .ts-player-pred-table td.ts-col-match {
        grid-area: match;
        min-width: 0;
        padding-left: 0.45rem;
        border-left: 3px solid #d1d5db;
    }
    .ts-player-pred-table tr.is-win td.ts-col-match {
        border-left-color: #059669;
    }
    .ts-player-pred-table tr.is-loss td.ts-col-match {
        border-left-color: #dc2626;
    }
    .ts-player-pred-table tr.is-pending td.ts-col-match,
    .ts-player-pred-table tr.is-hidden-pick td.ts-col-match {
        border-left-color: #93c5fd;
    }
    .ts-player-pred-table tr.is-stats-only td.ts-col-match {
        border-left-color: #fdba74;
    }
    .ts-player-pred-table td.ts-col-pick { grid-area: pick; }
    .ts-player-pred-table td.ts-col-result { grid-area: result; }
    .ts-player-pred-table td.ts-col-status { grid-area: status; justify-self: end; }
    .ts-player-pred-table td.ts-col-pts {
        grid-area: pts;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 0.2rem;
        border-top: 1px dashed #eef2f0;
        margin-top: 0.1rem;
    }
    .ts-player-pred-table td.ts-col-pts::before {
        content: attr(data-label);
        font-size: 0.65rem;
        font-weight: 700;
        color: #9ca3af;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
}

/* Period tabs (leaderboard + my predictions) */
.ts-period-tabs,
.ts-leaderboard__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.65rem;
}
.ts-period-tabs__btn,
.ts-leaderboard__tabs a {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #1B4332;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}
.ts-period-tabs__btn.is-active,
.ts-period-tabs__btn[aria-selected="true"],
.ts-leaderboard__tabs a.is-active {
    background: #1B4332;
    color: #fff;
    border-color: #1B4332;
}
.ts-period-caption {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
}
.ts-period-note {
    margin: 0.65rem 0 0;
    font-size: 0.7rem;
    color: #9ca3af;
    line-height: 1.35;
}

/* Summary stats cards */
.ts-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}
@media (min-width: 520px) {
    .ts-stats-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}
.ts-stats-card {
    background: #fff;
    border: 1px solid #e8ece9;
    border-radius: 0.55rem;
    padding: 0.45rem 0.35rem;
    text-align: center;
    box-shadow: 0 1px 4px rgba(11, 31, 23, 0.04);
}
.ts-stats-card--winrate {
    background: linear-gradient(180deg, #ecfdf5 0%, #fff 100%);
    border-color: #bbf7d0;
}
.ts-stats-card__val {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: #1B4332;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.ts-stats-card__sub {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
}
.ts-stats-card__lbl {
    display: block;
    margin-top: 0.12rem;
    font-size: 0.62rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ts-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(11, 31, 23, 0.06);
}
.ts-leaderboard__table {
    width: 100%;
    min-width: 18rem;
    border-collapse: collapse;
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
}
.ts-table-wrap .ts-leaderboard__table {
    box-shadow: none;
    border-radius: 0;
}
.ts-leaderboard__table th,
.ts-leaderboard__table td {
    padding: 0.5rem 0.55rem;
    text-align: left;
    border-bottom: 1px solid #eef2f0;
    font-size: 0.8rem;
    vertical-align: middle;
}
.ts-leaderboard__table th {
    background: #1B4332;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}
.ts-leaderboard__table tr:hover td {
    background: #f8fbf9;
}
.ts-leaderboard__table tr.is-me td {
    background: #ecfdf5;
}
.ts-leaderboard__table tr.is-win td:first-child {
    box-shadow: inset 3px 0 0 #059669;
}
.ts-leaderboard__table tr.is-loss td:first-child {
    box-shadow: inset 3px 0 0 #dc2626;
}
.ts-leaderboard__table tr.is-pending td:first-child {
    box-shadow: inset 3px 0 0 #d1d5db;
}
.ts-leaderboard__table tr.is-stats-only td {
    color: #9ca3af;
}
.ts-badge-me {
    display: inline-block;
    margin-left: 0.3rem;
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
    background: #1B4332;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    vertical-align: middle;
}
.ts-winrate {
    font-weight: 700;
    color: #047857;
    font-variant-numeric: tabular-nums;
}
.ts-pill {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}
.ts-pill--win {
    background: #d1fae5;
    color: #047857;
}
.ts-pill--loss {
    background: #fee2e2;
    color: #b91c1c;
}
.ts-pill--pending {
    background: #f3f4f6;
    color: #6b7280;
}
.ts-pill--muted {
    background: #fff7ed;
    color: #c2410c;
}
/* Over daily points quota (still saved, no leaderboard points) */
.ts-pill--quota {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.08rem;
    padding: 0.28rem 0.5rem;
    border-radius: 0.5rem;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fdba74;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: normal;
    max-width: 8.5rem;
    text-align: center;
}
.ts-pill--quota .ts-pill__line {
    display: block;
    font-size: 0.62rem;
    font-weight: 800;
}
.ts-pill--quota .ts-pill__sub {
    display: block;
    font-size: 0.58rem;
    font-weight: 600;
    opacity: 0.95;
}
.ts-player-pred-table td.ts-col-status {
    white-space: normal;
}
.ts-no-matches {
    color: #6b7280;
    text-align: center;
    padding: 1.5rem;
}

/* H2H + form inside “ผลงานย้อนหลัง” tab (redesign 2026-07) */
.ts-history-panel {
    padding: 0.1rem 0 0.15rem;
}
.ts-history-panel__note {
    margin: 0 0 0.75rem;
    padding: 0.4rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 650;
    color: #6b7280;
    text-align: center;
    line-height: 1.4;
    background: #f3f4f6;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}
.ts-history-panel__sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0 0 0.55rem;
}
.ts-history-panel__h {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
    color: #1B4332;
    letter-spacing: -0.01em;
}
.ts-history-panel__sec-meta {
    font-size: 0.68rem;
    font-weight: 650;
    color: #9ca3af;
    white-space: nowrap;
}

/* ── Form (primary) ── */
.ts-team-form {
    margin-top: 0;
}
.ts-team-form--in-tab {
    margin: 0 0 1.15rem;
    padding: 0;
    border: 0;
}
.ts-team-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}
@media (max-width: 640px) {
    .ts-team-form__grid {
        grid-template-columns: 1fr;
    }
}
.ts-team-form__col {
    border: 1px solid #e4ece7;
    border-radius: 0.9rem;
    background: #fff;
    padding: 0.7rem 0.7rem 0.45rem;
    min-width: 0;
    box-shadow: 0 1px 2px rgba(11, 31, 23, 0.04);
}
.ts-team-form__col--home {
    border-top: 3px solid #059669;
}
.ts-team-form__col--away {
    border-top: 3px solid #dc2626;
}
.ts-team-form__col-head {
    margin-bottom: 0.45rem;
}
/* Per-team segmented control: รวม | เหย้า | เยือน */
.ts-team-form__seg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.15rem;
    margin: 0 0 0.55rem;
    padding: 0.18rem;
    border-radius: 0.65rem;
    background: #eef2f0;
    border: 1px solid #e0e8e3;
    box-shadow: inset 0 1px 1px rgba(11, 31, 23, 0.04);
}
.ts-team-form__col--home .ts-team-form__seg-btn.is-active {
    color: #065f46;
}
.ts-team-form__col--away .ts-team-form__seg-btn.is-active {
    color: #991b1b;
}
.ts-team-form__seg-btn {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: #5b6770;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1.2;
    padding: 0.4rem 0.2rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.ts-team-form__seg-btn:hover {
    color: #1B4332;
    background: rgba(255, 255, 255, 0.55);
}
.ts-team-form__seg-btn:focus-visible {
    outline: 2px solid #1B4332;
    outline-offset: 1px;
}
.ts-team-form__seg-btn.is-active {
    background: #fff;
    color: #0f3d2c;
    box-shadow: 0 1px 2px rgba(11, 31, 23, 0.1), 0 0 0 1px rgba(27, 67, 50, 0.06);
}
.ts-team-form__panel {
    display: none;
    min-width: 0;
}
.ts-team-form__panel.is-active {
    display: block;
}
.ts-team-form__panel[hidden] {
    display: none !important;
}
.ts-team-form__block-head {
    margin-bottom: 0.4rem;
}
.ts-team-form__empty--venue {
    padding: 0.45rem 0 0.55rem;
    font-size: 0.76rem;
    text-align: center;
}
.ts-team-form--venue-tabs .ts-team-form__col-head {
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #eef2f0;
}
.ts-team-form--venue-tabs .ts-team-form__team-row {
    margin-bottom: 0;
}
.ts-team-form--venue-tabs .ts-team-form__dots {
    margin-bottom: 0.45rem;
}
.ts-team-form__team-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    margin-bottom: 0.3rem;
}
.ts-team-form__team-logo {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 0.2rem;
}
.ts-team-form__team {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ts-team-form__statline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.28rem;
}
.ts-team-form__stat {
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
    padding: 0.12rem 0.38rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 750;
    line-height: 1.2;
    background: #f3f4f6;
    color: #6b7280;
}
.ts-team-form__stat b {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.ts-team-form__stat--w {
    background: #d1fae5;
    color: #047857;
}
.ts-team-form__stat--d {
    background: #f3f4f6;
    color: #4b5563;
}
.ts-team-form__stat--l {
    background: #fee2e2;
    color: #b91c1c;
}
.ts-team-form__stat--gd {
    background: #ecfdf5;
    color: #065f46;
    margin-left: auto;
}
.ts-team-form__empty {
    margin: 0;
    font-size: 0.8rem;
    color: #9ca3af;
    padding: 0.5rem 0 0.65rem;
    text-align: center;
}
.ts-team-form__dots {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.28rem;
    margin-bottom: 0.55rem;
    padding: 0.15rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.ts-team-form__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 0.45rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-decoration: none;
    line-height: 1;
    letter-spacing: 0;
}
.ts-team-form__dot--w {
    background: #059669;
    color: #fff;
}
.ts-team-form__dot--l {
    background: #dc2626;
    color: #fff;
}
.ts-team-form__dot--d {
    background: #9ca3af;
    color: #fff;
}
a.ts-team-form__dot:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}
.ts-team-form__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
/* Form match list: same ls-match compact cards as team archive */
.ts-team-form__match-board {
    margin: 0.05rem 0 0.15rem;
    border: 1px solid #eef2f0;
    border-radius: 0.65rem;
    overflow: hidden;
    background: #fff;
}
.ts-team-form__match-list {
    margin: 0;
    padding: 0;
}
.ts-team-form__match-board .ls-match {
    position: relative;
}
/* Slightly denser inside the two-column form panel */
.ts-team-form__col .ls-c__name {
    font-size: 0.78rem;
}
.ts-team-form__col .ls-c__logo {
    width: 16px;
    height: 16px;
}
.ts-team-form__col .ls-c__date {
    font-size: 0.62rem;
}
.ts-team-form__col .ls-match__result {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.62rem;
}
/* No follow star / live pulse in form history embeds */
.ts-team-form__match-board .ls-match__star,
.ts-team-form__match-board .ls-match__pulse {
    display: none !important;
}
/* W/D/L + order hint under form columns */
.ts-team-form__legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.2rem 0.35rem;
    margin: 0.45rem 0 0;
    padding: 0.2rem 0.15rem 0;
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.3;
    color: #8b959e;
    letter-spacing: 0.01em;
}
.ts-team-form__leg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0.95rem;
    height: 0.95rem;
    padding: 0 0.18rem;
    border-radius: 0.22rem;
    font-size: 0.55rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}
.ts-team-form__leg--w { background: #059669; }
.ts-team-form__leg--d { background: #9ca3af; }
.ts-team-form__leg--l { background: #dc2626; }
.ts-team-form__leg-hint {
    margin-left: 0.2rem;
    padding-left: 0.4rem;
    border-left: 1px solid #e0e6ea;
    font-size: 0.58rem;
    font-weight: 550;
    color: #a0a8b0;
}

/* ── H2H (secondary) ── */
.ts-h2h {
    margin-top: 0.15rem;
}
.ts-h2h--in-tab {
    margin: 0;
    padding-top: 0.95rem;
    border-top: 1px solid #eef2f0;
}
.ts-h2h__head {
    margin-bottom: 0.75rem;
}
.ts-h2h__title {
    margin-bottom: 0.25rem;
}
.ts-h2h__empty {
    padding: 1rem 1.1rem;
    border: 1px dashed #d1e3d8;
    border-radius: 0.85rem;
    background: #f9fbfa;
    text-align: center;
}
.ts-h2h__empty p {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.45;
}
/* Legacy summary cards (kept for any cache) */
.ts-h2h__summary {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
}
.ts-h2h__sum-card {
    text-align: center;
    padding: 0.55rem 0.4rem;
    border-radius: 0.75rem;
    border: 1px solid #e4ece7;
    background: #fff;
}
.ts-h2h__sum-card--home {
    border-color: #a7f3d0;
    background: linear-gradient(180deg, #ecfdf5 0%, #fff 100%);
}
.ts-h2h__sum-card--away {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fef2f2 0%, #fff 100%);
}
.ts-h2h__sum-card--draw {
    min-width: 4.5rem;
    background: #f9fafb;
}
.ts-h2h__sum-val {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: #1B4332;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.ts-h2h__sum-card--away .ts-h2h__sum-val {
    color: #b91c1c;
}
.ts-h2h__sum-lbl {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: #6b7280;
    line-height: 1.25;
}
/* New compare strip */
.ts-h2h__compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.4rem;
    align-items: stretch;
    margin-bottom: 0.5rem;
}
.ts-h2h__compare-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.1rem;
    padding: 0.55rem 0.4rem;
    border-radius: 0.75rem;
    border: 1px solid #e4ece7;
    background: #fff;
    min-width: 0;
}
.ts-h2h__compare-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin-bottom: 0.15rem;
}
.ts-h2h__compare-side--home {
    border-color: #a7f3d0;
    background: linear-gradient(180deg, #ecfdf5 0%, #fff 85%);
}
.ts-h2h__compare-side--away {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fef2f2 0%, #fff 85%);
}
.ts-h2h__compare-mid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 3.4rem;
    padding: 0.45rem 0.35rem;
    border-radius: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}
.ts-h2h__compare-name {
    font-size: 0.68rem;
    font-weight: 750;
    color: #4b5563;
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ts-h2h__compare-wins {
    font-size: 1.45rem;
    font-weight: 800;
    color: #1B4332;
    line-height: 1.05;
}
.ts-h2h__compare-side--away .ts-h2h__compare-wins {
    color: #b91c1c;
}
.ts-h2h__compare-draws {
    font-size: 1.15rem;
    font-weight: 800;
    color: #6b7280;
    line-height: 1.1;
}
.ts-h2h__compare-lbl {
    font-size: 0.62rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.ts-h2h__bar {
    display: flex;
    height: 0.35rem;
    border-radius: 999px;
    overflow: hidden;
    background: #e5e7eb;
    margin-bottom: 0.55rem;
}
.ts-h2h__bar-seg.is-home { background: #059669; }
.ts-h2h__bar-seg.is-draw { background: #9ca3af; }
.ts-h2h__bar-seg.is-away { background: #dc2626; }
.ts-h2h__count {
    margin: 0 0 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #6b7280;
}
/* H2H meetings list: same ls-match compact board as team page / form */
.ts-h2h__match-board {
    margin: 0.15rem 0 0;
    border: 1px solid #e4ece7;
    border-radius: 0.85rem;
    overflow: hidden;
    background: #fff;
}
.ts-h2h__match-list {
    margin: 0;
    padding: 0;
}
.ts-h2h__match-board .ls-match__star,
.ts-h2h__match-board .ls-match__pulse {
    display: none !important;
}
.ts-h2h__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #e4ece7;
    border-radius: 0.85rem;
    overflow: hidden;
    background: #fff;
}
.ts-h2h__item {
    border-bottom: 1px solid #eef2f0;
}
.ts-h2h__item:last-child {
    border-bottom: 0;
}
/* Neutral scoreboard row */
.ts-h2h__link {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    padding: 0.6rem 0.8rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.12s ease;
}
a.ts-h2h__link:hover {
    background: #f8fbf9;
}
.ts-h2h__date {
    font-size: 0.68rem;
    font-weight: 700;
    color: #9ca3af;
    white-space: nowrap;
}
.ts-h2h__board {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.45rem 0.6rem;
    align-items: center;
    width: 100%;
}
.ts-h2h__board-team {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.84rem;
    font-weight: 650;
    color: #4b5563;
    line-height: 1.25;
    min-width: 0;
}
.ts-h2h__board-team--home {
    justify-content: flex-end;
    text-align: right;
}
.ts-h2h__board-team--away {
    justify-content: flex-start;
    text-align: left;
}
.ts-h2h__board-team.is-winner {
    color: #111827;
    font-weight: 800;
}
.ts-h2h__board-logo {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.ts-h2h__board-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ts-h2h__board-score {
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
    padding: 0.15rem 0.55rem;
    border-radius: 0.45rem;
    background: #f3f4f6;
    min-width: 3.2rem;
    text-align: center;
}
/* Legacy team row bits */
.ts-h2h__teams {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.4rem;
    min-width: 0;
    font-size: 0.82rem;
    font-weight: 650;
    color: #1f2937;
}
.ts-h2h__team.is-focus {
    color: #1B4332;
    font-weight: 800;
}
.ts-h2h__score {
    font-weight: 800;
    color: #111827;
    padding: 0 0.15rem;
}
.ts-h2h__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
}
.ts-h2h__pill--w {
    background: #d1fae5;
    color: #047857;
}
.ts-h2h__pill--l {
    background: #fee2e2;
    color: #b91c1c;
}
.ts-h2h__pill--d {
    background: #f3f4f6;
    color: #6b7280;
}

/* Match discussion panel — soft chat box, not classic WP form */
.ts-match-comments {
    margin-top: 1.5rem;
    background: #fff;
    border: 1px solid #dfe8e3;
    border-radius: 0.9rem;
    box-shadow: 0 4px 18px rgba(11, 31, 23, 0.06);
    overflow: hidden;
}
.ts-match-comments__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin: 0;
    padding: 0.75rem 1rem;
    background: #f3f7f4;
    border-bottom: 1px solid #e4ece7;
}
.ts-match-comments__title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #1B4332;
}
.ts-match-comments__count {
    font-size: 0.72rem;
    font-weight: 600;
    color: #5f7368;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #d9e5de;
    white-space: nowrap;
}
.ts-match-comments__body {
    padding: 0.85rem 1rem 1rem;
    background: #fafcfb;
}
.ts-match-comments .comments-area > h3,
.ts-match-comments .comment-notes,
.ts-match-comments .comment-form-url,
.ts-match-comments__cookies,
.ts-match-comments .comment-form-cookies-consent {
    display: none;
}

/* Reply bar: only when threading */
.ts-match-comments__reply-title {
    display: none;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin: 0 0 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4b5563;
}
.ts-match-comments__reply-title:not(:has(#cancel-comment-reply-link[style*="display:none"])):not(:has(#cancel-comment-reply-link[style*="display: none"])) {
    display: flex;
}
.ts-match-comments__cancel a,
.ts-match-comments #cancel-comment-reply-link {
    font-size: 0.75rem;
    font-weight: 500;
    color: #9ca3af;
    text-decoration: none;
}
.ts-match-comments #cancel-comment-reply-link:hover {
    color: #ef4444;
}

/* Composer inside the panel */
.ts-match-comments__form,
.ts-match-comments .comment-form {
    margin: 0;
    padding: 0.75rem;
    border: 1px solid #e2ebe6;
    border-radius: 0.75rem;
    background: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 0.6rem;
    align-items: center;
}
.ts-match-comments__composer {
    margin: 0;
    grid-column: 1 / -1;
}
.ts-match-comments .comment-form textarea.ts-match-comments__input,
.ts-match-comments .comment-form textarea {
    width: 100%;
    min-height: 4.5rem;
    border: 1px solid #e5ece8;
    border-radius: 0.6rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    background: #f8faf9;
    color: #111827;
    box-shadow: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.ts-match-comments .comment-form textarea:focus {
    outline: none;
    border-color: #2D6A4F;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}
.ts-match-comments .comment-form textarea::placeholder {
    color: #a3adb6;
}

.ts-match-comments__form > .ts-match-comments__field,
.ts-match-comments .comment-form-author,
.ts-match-comments .comment-form-email {
    margin: 0;
}
.ts-match-comments__actions,
.ts-match-comments .form-submit,
.ts-match-comments__logged-in,
.ts-match-comments .logged-in-as {
    grid-column: 1 / -1;
}
.ts-match-comments__field-input,
.ts-match-comments .comment-form-author input,
.ts-match-comments .comment-form-email input {
    width: 100%;
    height: 2.3rem;
    padding: 0 0.7rem;
    border: 1px solid #e5ece8;
    border-radius: 0.55rem;
    background: #f8faf9;
    font-size: 0.85rem;
    color: #111827;
    box-shadow: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.ts-match-comments__field-input:focus,
.ts-match-comments .comment-form-author input:focus,
.ts-match-comments .comment-form-email input:focus {
    outline: none;
    border-color: #2D6A4F;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}
.ts-match-comments__field-input::placeholder {
    color: #a3adb6;
}

.ts-match-comments__actions,
.ts-match-comments .form-submit {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0.1rem 0 0;
}
.ts-match-comments__submit,
.ts-match-comments .comment-form .submit,
.ts-match-comments .comment-form button.submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2rem;
    padding: 0.4rem 1.05rem;
    border: 0;
    border-radius: 0.55rem;
    background: #1B4332;
    color: #fff;
    font-weight: 600;
    font-size: 0.84rem;
    letter-spacing: 0;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.12s ease;
}
.ts-match-comments__submit:hover,
.ts-match-comments .comment-form .submit:hover,
.ts-match-comments .comment-form button.submit:hover {
    background: #2D6A4F;
    color: #fff;
    opacity: 1;
    box-shadow: none;
}
.ts-match-comments__submit:active,
.ts-match-comments .comment-form .submit:active {
    transform: none;
}

.ts-match-comments__logged-in,
.ts-match-comments .logged-in-as {
    margin: 0;
    font-size: 0.75rem;
    color: #8a9690;
}
.ts-match-comments__logged-in a,
.ts-match-comments .logged-in-as a {
    color: #2D6A4F;
    font-weight: 500;
    text-decoration: none;
}
.ts-match-comments__logged-in a:hover {
    text-decoration: underline;
}

/* Comment list inside panel */
.ts-match-comments .comments-area > ol {
    margin: 0 0 0.85rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}
.ts-match-comments .comments-area > ol > li {
    margin: 0;
}
.ts-match-comments .comment-body,
.ts-match-comments li.comment {
    background: #fff;
    border: 1px solid #e8efeb;
    border-radius: 0.65rem;
    box-shadow: none;
}
.ts-match-comments li.comment {
    padding: 0.7rem 0.8rem !important;
    gap: 0.7rem !important;
}
.ts-match-comments li.comment:last-child {
    border-bottom: 1px solid #e8efeb;
}

@media (max-width: 520px) {
    .ts-match-comments__form {
        grid-template-columns: 1fr;
    }
    .ts-match-comments__field,
    .ts-match-comments .comment-form-author,
    .ts-match-comments .comment-form-email,
    .ts-match-comments__actions,
    .ts-match-comments .form-submit {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .ts-period-tabs__btn,
    .ts-leaderboard__tabs a {
        padding: 0.28rem 0.55rem;
        font-size: 0.7rem;
    }
    .ts-leaderboard__table th,
    .ts-leaderboard__table td {
        padding: 0.4rem 0.4rem;
        font-size: 0.74rem;
    }
    .ts-stats-card__val {
        font-size: 0.95rem;
    }
}

/* ——— Match highlights (external source links) ——— */
.ts-hl {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.3rem 0.45rem;
    margin-top: 0.4rem;
    text-align: left;
}
.ts-hl__label {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 650;
    color: #1e3a5f;
    line-height: 1.3;
    white-space: nowrap;
}
.ts-hl__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0;
}
.ts-hl__item {
    display: inline-flex;
    margin: 0 !important;
    padding: 0 !important;
}
.ts-hl__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    box-sizing: border-box;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
    text-decoration: none !important;
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ts-hl__txt {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
a.ts-hl__chip--link,
a.ts-hl__chip--link:link,
a.ts-hl__chip--link:visited,
a.ts-hl__chip--link:active,
.entry-content a.ts-hl__chip--link,
.matches-panel a.ts-hl__chip--link,
.prose a.ts-hl__chip--link {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #1e40af !important;
    text-decoration: none !important;
}
a.ts-hl__chip--link:hover,
a.ts-hl__chip--link:focus-visible,
.entry-content a.ts-hl__chip--link:hover,
.matches-panel a.ts-hl__chip--link:hover,
.prose a.ts-hl__chip--link:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #fff !important;
}
.ts-hl__chip--name {
    background: #f3f4f6;
    color: #4b5563;
    border-color: #e5e7eb;
}
.ts-hl__ico {
    font-size: 0.65rem;
    flex-shrink: 0;
    color: inherit;
}
.ts-hl--compact {
    margin-top: 0.3rem;
}
.ts-hl--compact .ts-hl__chip {
    font-size: 0.68rem;
    padding: 0.18rem 0.5rem;
    max-width: 10rem;
}
.ls-match .ts-hl {
    position: relative;
    z-index: 2;
}
.entry-content .ts-hl__list,
.entry-content .ts-hl__item {
    list-style: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}
