/**
 * tryscore — custom styles (complement Tailwind CDN)
 */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    background-color: #F8FAF9;
    color: #111827;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.font-display {
    font-family: 'Oswald', ui-sans-serif, system-ui, sans-serif;
    letter-spacing: 0.02em;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #ecfdf5;
}
::-webkit-scrollbar-thumb {
    background: #2D6A4F;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1B4332;
}

::selection {
    background: #2D6A4F;
    color: #fff;
}

/* Mobile nav links (default walker) */
.tryscore-mobile-nav a {
    display: block;
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s, background 0.15s;
}
.tryscore-mobile-nav a:hover,
.tryscore-mobile-nav .current-menu-item > a {
    color: #F59E0B;
    background: rgba(255, 255, 255, 0.08);
}
.tryscore-mobile-nav .sub-menu {
    padding-left: 0.75rem;
    margin-top: 0.15rem;
}
.tryscore-mobile-nav .sub-menu a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Live pulse — soft green (not red block) */
.live-dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    animation: tryscore-pulse 1.4s ease-in-out infinite;
}
.ls-match__state--live .live-dot,
.ls-match__badge--live .live-dot {
    background: #16a34a;
}

@keyframes tryscore-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.35; transform: scale(0.85); }
}

/* Sticky header: pin on scroll, shrink logo/bar */
.site-header {
    /* Override Tailwind top-0 so we can clear the WP admin bar. */
    top: 0;
    transition: box-shadow 0.25s ease, background-color 0.25s ease, top 0.2s ease;
}
/* Logged-in: sit below #wpadminbar (32px desktop / 46px tablet). */
.admin-bar .site-header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}
/*
 * WP core: at ≤600px #wpadminbar becomes position:absolute and scrolls away.
 * Keep sticky header flush to the viewport top (no 46px floating gap / logo lift).
 */
@media screen and (max-width: 600px) {
    .admin-bar .site-header {
        top: 0;
    }
}
.site-header.is-scrolled {
    box-shadow: 0 4px 24px rgba(11, 31, 23, 0.28);
}

/* Inner bar height */
.site-header__bar {
    height: 4rem; /* h-16 */
    transition: height 0.25s ease;
}
.site-header.is-scrolled .site-header__bar {
    height: 2.75rem; /* compact */
}

/* Custom logo image */
.site-header__logo {
    display: flex;
    align-items: center;
    height: 2.5rem; /* h-10 */
    transition: height 0.25s ease;
}
.site-header__logo a {
    display: block;
    line-height: 0;
}
.site-header__logo img {
    display: block;
    height: 2.5rem;
    width: auto;
    max-width: min(220px, 48vw);
    object-fit: contain;
    transition: height 0.25s ease, max-width 0.25s ease;
}
.site-header.is-scrolled .site-header__logo {
    height: 1.75rem;
}
.site-header.is-scrolled .site-header__logo img {
    height: 1.75rem; /* smaller than normal */
    max-width: min(160px, 42vw);
}

/* Text / fallback logo */
.site-header__text-logo-icon {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.125rem;
    transition: width 0.25s ease, height 0.25s ease, font-size 0.25s ease;
}
.site-header__text-logo-name {
    font-size: 1.5rem;
    line-height: 1.2;
    transition: font-size 0.25s ease;
}
.site-header.is-scrolled .site-header__text-logo-icon {
    width: 1.625rem;
    height: 1.625rem;
    font-size: 0.875rem;
}
.site-header.is-scrolled .site-header__text-logo-name {
    font-size: 1.125rem;
}

/* Legacy: keep hide class inert if old JS/cache still adds it */
.site-header.is-hidden {
    transform: none;
}

/* Pitch gradient */
.bg-pitch-gradient {
    background: linear-gradient(135deg, #0B1F17 0%, #1B4332 45%, #2D6A4F 100%);
}

/* Gold underline accent */
.gold-line {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #F59E0B, #FDE68A);
    border-radius: 2px;
}

/* Prose / post content */
.entry-content > *:first-child {
    margin-top: 0;
}
.entry-content p {
    margin-bottom: 1.1em;
    line-height: 1.75;
}
.entry-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.75em 0 0.6em;
    color: #1B4332;
}
.entry-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.5em 0 0.5em;
    color: #1B4332;
}
.entry-content a {
    color: #2D6A4F;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.entry-content a:hover {
    color: #1B4332;
}
/* Match boards inside pages: do not restyle chips / scoreboard links as prose */
.entry-content .ls-match a,
.entry-content .ls-match__hit,
.entry-content .ls-match__row a,
.entry-content .match-list-wrapper .league-header--link,
.entry-content .ts-match-list .league-header--link,
.entry-content .ts-follow-manage a:not(.ts-follow-manage__empty-link) {
    text-decoration: none;
}
/* Broadcast chips: outline green links vs flat name tags (override entry-content) */
.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,
.matches-panel a.ts-broadcast__chip--link:visited {
    color: #166534 !important;
    background: #dcfce7 !important;
    border-color: #86efac !important;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: none !important;
}
.entry-content a.ts-broadcast__chip--link:hover,
.matches-panel a.ts-broadcast__chip--link:hover {
    color: #14532d !important;
    background: #bbf7d0 !important;
    border-color: #4ade80 !important;
}
.entry-content .ts-broadcast__chip--name,
.matches-panel .ts-broadcast__chip--name {
    background: transparent !important;
    border: none !important;
    color: #1f2937 !important;
    cursor: default;
    pointer-events: none;
    box-shadow: none !important;
}
/* Following page: no disc bullets on channel chips */
.entry-content .ts-broadcast__list,
.entry-content .ts-broadcast__list li,
.entry-content .ts-broadcast__item {
    list-style: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}
.entry-content ul,
.entry-content ol {
    margin: 1em 0 1em 1.25em;
}
.entry-content ul {
    list-style: disc;
}
.entry-content ol {
    list-style: decimal;
}
.entry-content blockquote {
    border-left: 4px solid #2D6A4F;
    padding: 0.75rem 1.25rem;
    margin: 1.5em 0;
    background: #f0fdf4;
    color: #374151;
    font-style: italic;
    border-radius: 0 0.5rem 0.5rem 0;
}
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
}
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.9rem;
}
.entry-content th,
.entry-content td {
    border: 1px solid #e5e7eb;
    padding: 0.6rem 0.85rem;
    text-align: left;
}
.entry-content th {
    background: #1B4332;
    color: #fff;
}

/* WP alignments */
.alignleft {
    float: left;
    margin: 0 1.25rem 1rem 0;
}
.alignright {
    float: right;
    margin: 0 0 1rem 1.25rem;
}
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.wp-caption {
    max-width: 100%;
}
.wp-caption-text {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.4rem;
}
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Tags */
.tag-pill,
.entry-tags a,
.tagcloud a {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    background: #ecfdf5;
    color: #2D6A4F;
    border: 1px solid #bbf7d0;
    text-decoration: none;
    transition: all 0.15s ease;
}
.tag-pill:hover,
.entry-tags a:hover,
.tagcloud a:hover {
    background: #2D6A4F;
    color: #fff;
    border-color: #2D6A4F;
}

/* Calendar widget */
#wp-calendar {
    width: 100%;
    font-size: 0.85rem;
}
#wp-calendar caption {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1B4332;
}
#wp-calendar th,
#wp-calendar td {
    padding: 0.4rem;
    text-align: center;
    border: 1px solid #e5e7eb;
}
#wp-calendar th {
    background: #2D6A4F;
    color: #fff;
}
#wp-calendar #today {
    background: #fef3c7;
    font-weight: 700;
    color: #1B4332;
}

/* Blocks */
.wp-block-button__link {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 0.6rem;
    background: #2D6A4F;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: background 0.15s ease;
}
.wp-block-button__link:hover {
    background: #1B4332;
}

/* =========================================================
   Match list — modern scoreboard
   ========================================================= */

.afm-fixtures-list,
.football-match-list,
.match-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

/* Each league = separate scoreboard card */
.ls-sb {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid #e5ebe7;
    border-radius: 0.85rem;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 6px 20px rgba(15, 23, 42, 0.05);
    /* Skip layout/paint for off-screen boards (homepage can have 40+ leagues). */
    content-visibility: auto;
    contain-intrinsic-size: auto 180px;
}
.ls-sb--orphan,
.ls-sb--plain {
    /* same shell */
}

/* Date strip — same visual family as status tabs */
.ls-date-nav {
    margin: 0 0 0.5rem;
}
.ls-date-nav__bar {
    display: flex;
    width: 100%;
    gap: 0.25rem;
    padding: 0.28rem;
    background: #0B1F17;
    border-radius: 0.9rem;
    box-shadow: 0 4px 16px rgba(11, 31, 23, 0.18);
}
.ls-date-nav__btn {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.06rem;
    min-height: 3.5rem;
    padding: 0.38rem 0.15rem 0.42rem;
    border: 0;
    border-radius: 0.7rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    line-height: 1.1;
    position: relative;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.ls-date-nav__btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.ls-date-nav__btn.is-today:not(.is-active) {
    color: #d8f3dc;
}
.ls-date-nav__btn.is-active {
    background: linear-gradient(135deg, #2D6A4F 0%, #40916C 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(45, 106, 79, 0.45);
}
.ls-date-nav__dow {
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    opacity: 0.8;
    white-space: nowrap;
}
.ls-date-nav__btn.is-active .ls-date-nav__dow {
    opacity: 0.95;
    color: #d8f3dc;
}
.ls-date-nav__day {
    font-size: 1.15rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.ls-date-nav__mon {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    opacity: 0.72;
    white-space: nowrap;
    line-height: 1.1;
    margin-top: 0.02rem;
}
.ls-date-nav__btn.is-active .ls-date-nav__mon {
    opacity: 0.95;
    color: #d8f3dc;
}
.ls-date-nav__btn.is-today:not(.is-active) .ls-date-nav__mon {
    color: #fde68a;
    opacity: 0.9;
}
.ls-date-nav__dot {
    position: absolute;
    bottom: 0.22rem;
    left: 50%;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: #F59E0B;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}
.ls-date-nav__btn.is-active .ls-date-nav__dot {
    background: #FBBF24;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.35);
}
.ls-date-nav__btn.is-today {
    padding-bottom: 0.58rem; /* room for today dot */
}
.ls-date-nav__caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0.4rem 0 0;
    padding: 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    line-height: 1.3;
    text-align: center;
}
.ls-date-nav__caption-ico {
    font-size: 0.8rem;
    line-height: 1;
    opacity: 0.85;
}
@media (max-width: 480px) {
    .ls-date-nav__btn {
        min-height: 3.15rem;
        padding: 0.32rem 0.12rem 0.45rem;
    }
    .ls-date-nav__day {
        font-size: 1.02rem;
    }
    .ls-date-nav__dow {
        font-size: 0.6rem;
    }
    .ls-date-nav__mon {
        font-size: 0.52rem;
    }
    .ls-date-nav__caption {
        font-size: 0.7rem;
    }
}

/* Status tabs: ทั้งหมด / กำลังแข่ง / จบแล้ว — sticky under header */
.ls-match-tabs {
    display: flex;
    width: 100%;
    gap: 0.25rem;
    margin-bottom: 0.65rem;
    padding: 0.28rem;
    background: #0B1F17;
    border-radius: 0.9rem;
    box-shadow: 0 4px 16px rgba(11, 31, 23, 0.18);
    align-items: center;
    flex-wrap: wrap;
    position: sticky;
    /* Match .site-header__bar (4rem normal / 2.75rem scrolled). */
    top: 4rem;
    z-index: 40;
    transition: top 0.25s ease, box-shadow 0.25s ease, border-radius 0.2s ease;
}
body:has(.site-header.is-scrolled) .ls-match-tabs {
    top: 2.75rem;
    border-radius: 0 0 0.9rem 0.9rem;
    box-shadow: 0 6px 18px rgba(11, 31, 23, 0.28);
}
.admin-bar .ls-match-tabs {
    top: calc(4rem + 32px);
}
.admin-bar:has(.site-header.is-scrolled) .ls-match-tabs {
    top: calc(2.75rem + 32px);
}
@media screen and (max-width: 782px) {
    .admin-bar .ls-match-tabs {
        top: calc(4rem + 46px);
    }
    .admin-bar:has(.site-header.is-scrolled) .ls-match-tabs {
        top: calc(2.75rem + 46px);
    }
}
/* Admin bar scrolls away (absolute) under 600px — no extra chrome offset. */
@media screen and (max-width: 600px) {
    .admin-bar .ls-match-tabs {
        top: 4rem;
    }
    .admin-bar:has(.site-header.is-scrolled) .ls-match-tabs {
        top: 2.75rem;
    }
}
.ls-match-tabs__manage {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.15rem;
    padding: 0.35rem 0.55rem;
    border-radius: 0.55rem;
    font-size: 0.75rem;
    font-weight: 650;
    color: #fbbf24;
    text-decoration: none;
    white-space: nowrap;
}
.ls-match-tabs__manage:hover {
    background: rgba(251, 191, 36, 0.12);
    color: #fde68a;
}
.ls-match-tabs__manage.is-visible {
    display: inline-flex;
}
.ls-match-tabs__manage.is-active-filter {
    background: rgba(251, 191, 36, 0.16);
    color: #fde68a;
}
.ls-match-tabs__btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.6rem;
    padding: 0.5rem 0.65rem;
    border: 0;
    border-radius: 0.7rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 650;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
}
.ls-match-tabs__btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.ls-match-tabs__btn.is-active {
    background: linear-gradient(135deg, #2D6A4F 0%, #40916C 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(45, 106, 79, 0.45);
}
.ls-match-tabs__btn[data-filter="live"].is-active {
    background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
    box-shadow: 0 2px 12px rgba(34, 197, 94, 0.35);
}
.ls-match-tabs__btn.is-empty:not(.is-active) {
    opacity: 0.55;
}
.ls-match-tabs__label {
    line-height: 1.2;
}
.ls-match-tabs__live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    animation: ls-live-glow 1.6s ease-in-out infinite;
    flex-shrink: 0;
}
.ls-match-tabs__btn[data-filter="live"].is-active .ls-match-tabs__live-dot {
    background: #fff;
}

/* Empty state inside board */
.ls-match-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #6b7280;
}
.ls-match-empty__icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}
.ls-match-empty__text {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.ls-match.is-filtered-out,
.ls-match[hidden] {
    display: none !important;
}

.ls-match-board {
    position: relative;
}

@media (max-width: 480px) {
    .ls-match-tabs {
        gap: 0.2rem;
        padding: 0.25rem;
    }
    .ls-match-tabs__btn {
        flex-direction: column;
        gap: 0.2rem;
        min-height: 3rem;
        padding: 0.4rem 0.25rem;
        font-size: 0.72rem;
        border-radius: 0.55rem;
    }
}

/* Sort pills */
.ls-match-sort {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
    margin: 0 0 0.75rem;
    padding: 0.25rem;
    background: #f0fdf4;
    border: 1px solid #d1fae5;
    border-radius: 999px;
}
.ls-match-sort a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 0;
    background: transparent;
    color: #374151;
    text-decoration: none;
    transition: all 0.18s ease;
}
.ls-match-sort a:hover {
    color: #1B4332;
    background: rgba(255, 255, 255, 0.7);
}
.ls-match-sort a.is-active {
    background: #1B4332;
    color: #fff;
    box-shadow: 0 2px 8px rgba(27, 67, 50, 0.25);
}

/* League header — top of each separate scoreboard */
.ls-sb .league-header,
.match-list-wrapper .league-header,
.ls-league-header {
    display: flex !important;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(90deg, #0f2419 0%, #1b4332 55%, #245c42 100%) !important;
    color: #fff !important;
    padding: 0.48rem 0.8rem !important;
    margin: 0 !important;
    border-radius: 0 !important;
    font-weight: 700 !important;
    font-size: 0.74rem;
    letter-spacing: 0.02em;
    line-height: 1.25;
    box-shadow: none;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
/* Must come AFTER flex !important — hide empty headers when tab filter hides all matches in group */
.match-list-wrapper .league-header.is-filtered-out,
.match-list-wrapper .league-header[hidden],
.ls-league-header.is-filtered-out,
.ls-league-header[hidden],
.ls-sb.is-filtered-out,
.ls-sb[hidden] {
    display: none !important;
}
.ls-sb .league-header img,
.match-list-wrapper .league-header img {
    width: 15px;
    height: 15px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    padding: 2px;
    flex-shrink: 0;
    box-sizing: content-box;
}
a.league-header--link {
    text-decoration: none;
    color: #fff !important;
    transition: background 0.15s ease, filter 0.15s ease;
}
a.league-header--link:hover {
    background: linear-gradient(90deg, #163528 0%, #245c42 55%, #2d6a4f 100%) !important;
    color: #fff !important;
    filter: none;
}

/* Matches inside a scoreboard group */
.ls-sb .ls-match {
    border-radius: 0;
}
.ls-sb .ls-match:last-child {
    border-bottom: 0;
}
.ls-sb .league-header + .ls-match {
    border-top: 0;
}

/* Team name links on match cards (above hit overlay) */
.ls-match__name-link,
.ls-fs__name.ls-match__name-link {
    position: relative;
    z-index: 2;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.ls-match__name-link:hover,
.ls-fs__name.ls-match__name-link:hover {
    color: #2D6A4F;
    border-bottom-color: rgba(45, 106, 79, 0.45);
}

/* ── Taxonomy league / team archive ── */
.ts-tax-page {
    padding-top: 1.5rem;
}
.ts-tax-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(135deg, #0B1F17 0%, #1B4332 55%, #2D6A4F 100%);
    border-radius: 1.1rem;
    padding: 1.35rem 1.4rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 10px 32px rgba(11, 31, 23, 0.22);
    color: #fff;
}
/* League (domestic) — deep pitch green */
.ts-tax-hero--league {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: linear-gradient(135deg, #0B1F17 0%, #1B4332 50%, #2D6A4F 100%);
}
/* Cup competitions — slightly warmer gold-green */
.ts-tax-hero--cup {
    background: linear-gradient(135deg, #1a1408 0%, #3d2e12 45%, #5c4a1f 78%, #2D6A4F 100%);
    box-shadow: 0 10px 32px rgba(40, 30, 10, 0.28);
}
.ts-tax-hero--cup .ts-tax-hero__kind {
    color: #fde68a;
}
.ts-tax-hero--has-facts {
    padding-bottom: 1.15rem;
}
/* Team hero — compact when no venue; tall only with real stadium bg */
.ts-tax-hero--team {
    min-height: 0;
    padding: 1.35rem 1.35rem 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.85rem;
}
.ts-tax-hero--team.ts-tax-hero--has-bg {
    min-height: 15.5rem;
    padding: 1.5rem 1.4rem 1.15rem;
    gap: 1rem;
}
.ts-tax-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.ts-tax-hero__bg-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    transform: scale(1.02);
}
/* Dark + pitch-green scrim for readable type over stadium photo */
.ts-tax-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(8, 20, 14, 0.35) 0%, rgba(8, 20, 14, 0.55) 42%, rgba(8, 20, 14, 0.88) 100%),
        linear-gradient(90deg, rgba(11, 31, 23, 0.75) 0%, rgba(11, 31, 23, 0.25) 55%, rgba(11, 31, 23, 0.45) 100%);
}
.ts-tax-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1.05rem;
    min-width: 0;
    width: 100%;
}
.ts-tax-hero__text {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.ts-tax-hero__logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}
.ts-tax-hero--team .ts-tax-hero__logo {
    width: 80px;
    height: 80px;
    border-radius: 1.1rem;
}
.ts-tax-hero__logo--ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}
.ts-tax-hero__kind {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d8f3dc;
    opacity: 0.95;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.ts-tax-hero__title {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
    max-width: 100%;
}
.ts-tax-hero__name {
    min-width: 0;
    word-break: break-word;
}
.ts-tax-hero--team .ts-tax-hero__title {
    font-size: clamp(1.35rem, 3.2vw, 1.85rem);
}
.ts-tax-hero__actions {
    margin-top: 0.65rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}
.ts-tax-hero__sub {
    margin: 0.4rem 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.45rem;
}
.ts-tax-hero__sub a {
    color: #FBBF24;
    text-decoration: none;
    font-weight: 700;
}
.ts-tax-hero__sub a:hover {
    text-decoration: underline;
}
.ts-tax-hero__flag {
    display: inline-block;
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    flex: 0 0 auto;
    vertical-align: middle;
}
.ts-tax-hero__meta {
    margin: 0.35rem 0 0;
}
.ts-tax-hero__id {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    font-variant-numeric: tabular-nums;
}
.ts-tax-hero__code {
    display: inline-block;
    margin: 0;
    padding: 0.14rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    flex: 0 0 auto;
    color: #0B1F17;
    background: #FBBF24;
    border-radius: 0.45rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-shadow: none;
}
/* Team form strip inside hero (Flashscore-style) */
.ts-tax-hero__form {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    margin: 0;
    padding: 0.45rem 0.65rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.7rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    max-width: 100%;
}
.ts-tax-hero__form-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    flex: 0 0 auto;
}
.ts-tax-hero__form-wdl {
    font-size: 0.72rem;
    font-weight: 750;
    color: rgba(255, 255, 255, 0.88);
    flex: 0 0 auto;
}
.ts-tax-hero__form-dots {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.28rem;
    margin-left: auto;
    min-width: 0;
}
.ts-tax-hero__form .ts-tax-hero__form-dot,
.ts-tax-hero__form .ts-team-form-card__dot {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 0.4rem;
    font-size: 0.65rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.ts-tax-hero--has-form:not(.ts-tax-hero--has-facts) {
    /* keep bottom padding balanced when only form row */
    padding-bottom: 1.1rem;
}
@media (max-width: 480px) {
    .ts-tax-hero__form {
        gap: 0.35rem 0.5rem;
        padding: 0.4rem 0.55rem;
    }
    .ts-tax-hero__form-dots {
        margin-left: 0;
        width: 100%;
    }
    .ts-tax-hero__form .ts-tax-hero__form-dot,
    .ts-tax-hero__form .ts-team-form-card__dot {
        width: 1.7rem;
        height: 1.7rem;
    }
}

/* Fact pills over venue hero */
.ts-tax-hero__facts {
    position: relative;
    z-index: 2;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.ts-tax-hero__fact {
    display: inline-flex;
    flex-direction: column;
    gap: 0.08rem;
    min-width: 0;
    max-width: 100%;
    padding: 0.4rem 0.7rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.65rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.ts-tax-hero__fact-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}
.ts-tax-hero__fact-value {
    font-size: 0.84rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    word-break: break-word;
}
@media (min-width: 768px) {
    .ts-tax-hero--team {
        padding: 1.45rem 1.55rem 1.3rem;
    }
    .ts-tax-hero--team.ts-tax-hero--has-bg {
        min-height: 17.5rem;
        padding: 1.75rem 1.65rem 1.35rem;
    }
    .ts-tax-hero--team .ts-tax-hero__logo {
        width: 92px;
        height: 92px;
    }
}
/*
 * Flashscore-style round switcher
 * ‹ | นัดที่ 14 ▾ | ›  — not a day/round chip strip
 */
.ts-round-board {
    margin-top: 0.15rem;
}
.ts-round-board__nav {
    margin-bottom: 0.75rem;
}
.ts-round-switcher {
    display: flex;
    align-items: stretch;
    min-height: 3.25rem;
    background: #fff;
    border: 1px solid #e5ebe7;
    border-radius: 0.65rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(11, 31, 23, 0.06);
}
.ts-round-switcher__arrow {
    flex: 0 0 3.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    font-weight: 300;
    line-height: 1;
    color: #1B4332;
    text-decoration: none;
    background: #f4f7f5;
    border: none;
    transition: background 0.12s ease, color 0.12s ease;
    user-select: none;
}
.ts-round-switcher__arrow:hover {
    background: #e8f5ee;
    color: #0B1F17;
}
.ts-round-switcher__arrow.is-disabled {
    opacity: 0.28;
    pointer-events: none;
    background: #f9fafb;
}
.ts-round-switcher__center {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    padding: 0.45rem 1.75rem 0.45rem 0.75rem;
    text-align: center;
}
.ts-round-switcher__season {
    font-size: 0.68rem;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.02em;
}
.ts-round-switcher__select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}
.ts-round-switcher__title {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111827;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 16rem;
    pointer-events: none;
}
.ts-round-switcher__select {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
    font-size: 1rem;
    border: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
}
.ts-round-switcher__caret {
    position: absolute;
    right: -1.15rem;
    top: 50%;
    width: 0.45rem;
    height: 0.45rem;
    margin-top: -0.28rem;
    border-right: 2px solid #6b7280;
    border-bottom: 2px solid #6b7280;
    transform: rotate(45deg);
    pointer-events: none;
}
.ts-round-switcher__select-wrap:hover .ts-round-switcher__title,
.ts-round-switcher__select-wrap:focus-within .ts-round-switcher__title {
    color: #1B4332;
}
.ts-round-switcher__select-wrap:hover .ts-round-switcher__caret,
.ts-round-switcher__select-wrap:focus-within .ts-round-switcher__caret {
    border-color: #1B4332;
}
.ts-round-fixtures .ts-tax-matches {
    margin-top: 0;
}
@media (max-width: 480px) {
    .ts-round-switcher__arrow {
        flex-basis: 2.65rem;
        font-size: 1.6rem;
    }
    .ts-round-switcher__title {
        font-size: 0.95rem;
        max-width: 11rem;
    }
}

/* SEO / about copy on team & league archives */
.ts-tax-seo {
    margin: 0 0 1.25rem;
    padding: 1.1rem 1.2rem 1.15rem;
    background: #fff;
    border: 1px solid #e5ebe7;
    border-radius: 0.9rem;
    box-shadow: 0 2px 10px rgba(11, 31, 23, 0.04);
    color: #1f2937;
}
.ts-tax-seo__body {
    font-size: 0.95rem;
    line-height: 1.7;
}
.ts-tax-seo__body > *:first-child {
    margin-top: 0;
}
.ts-tax-seo__body > *:last-child {
    margin-bottom: 0;
}
.ts-tax-seo__body h2,
.ts-tax-seo__body h3,
.ts-tax-seo__body h4 {
    color: #1B4332;
    font-weight: 800;
    line-height: 1.3;
    margin: 1.1em 0 0.45em;
}
.ts-tax-seo__body h2 {
    font-size: 1.2rem;
}
.ts-tax-seo__body h3 {
    font-size: 1.05rem;
}
.ts-tax-seo__body p {
    margin: 0 0 0.85em;
}
.ts-tax-seo__body ul,
.ts-tax-seo__body ol {
    margin: 0 0 0.85em;
    padding-left: 1.25rem;
}
.ts-tax-seo__body a {
    color: #2D6A4F;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.ts-tax-seo__body a:hover {
    color: #1B4332;
}
.ts-tax-seo__body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}
.ts-tax-section {
    margin-bottom: 1.5rem;
}
/* League/team archive tabs: Live / Schedule / Results */
.ts-tax-tabs {
    margin-top: 0.25rem;
}
.ts-tax-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 0.85rem;
    padding: 0.3rem;
    background: #f3f6f4;
    border: 1px solid #e5ebe7;
    border-radius: 0.85rem;
}
.ts-tax-tabs__btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: #4b5563;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.5rem 0.85rem;
    border-radius: 0.65rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1.2;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.ts-tax-tabs__btn:hover {
    background: rgba(255, 255, 255, 0.7);
    color: #1b4332;
}
.ts-tax-tabs__btn.is-active {
    background: #fff;
    color: #1b4332;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.ts-tax-tabs__btn[data-ts-tax-tab="live"].is-active {
    color: #15803d;
}
.ts-tax-tabs__dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
    animation: ls-pulse-dot 1.2s ease-in-out infinite;
}
.ts-tax-tabs__count {
    min-width: 1.35rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    background: rgba(27, 67, 50, 0.08);
    color: inherit;
}
.ts-tax-tabs__btn.is-active .ts-tax-tabs__count {
    background: rgba(27, 67, 50, 0.12);
}
.ts-tax-tabs__panel {
    display: none;
}
.ts-tax-tabs__panel.is-active {
    display: block;
}
.ts-tax-skip-note {
    margin: 0 0 0.75rem;
    padding: 0.55rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.65rem;
}
.ls-date-nav--term .ls-date-nav__btn--skip {
    min-width: 2.75rem;
    opacity: 0.92;
    background: rgba(27, 67, 50, 0.06);
}
.ls-date-nav--term .ls-date-nav__btn--skip .ls-date-nav__day {
    font-size: 0.62rem;
    font-weight: 700;
}
.ts-tax-day.is-today {
    background: linear-gradient(90deg, rgba(45, 106, 79, 0.12), rgba(45, 106, 79, 0.03));
    border-left: 3px solid #2d6a4f;
    padding-left: 0.65rem;
    color: #1b4332;
    font-weight: 800;
}
.ts-tax-day.is-future {
    color: #374151;
}
.ts-tax-day.is-past {
    color: #6b7280;
    font-weight: 650;
}
.ts-tax-section__title {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #1B4332;
    letter-spacing: 0.02em;
}
/* Related news on league/team archives */
.ts-tax-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.ts-tax-news-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.65rem 0.75rem;
    background: #fff;
    border: 1px solid #e5ebe7;
    border-radius: 0.75rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ts-tax-news-item:hover {
    border-color: #b7cfc0;
    box-shadow: 0 2px 8px rgba(27, 67, 50, 0.06);
}
.ts-tax-news-thumb {
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #eef4f0;
    display: block;
}
.ts-tax-news-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.ts-tax-news-body {
    min-width: 0;
    flex: 1;
}
.ts-tax-news-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.35;
    text-decoration: none;
}
.ts-tax-news-title:hover {
    color: #2d6a4f;
}
.ts-tax-news-date {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.72rem;
    color: #9ca3af;
}
.ts-tax-empty {
    text-align: center;
    color: #6b7280;
    padding: 2rem 1rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px dashed #e5e7eb;
}

/* League/team day board — same visual language as homepage .ls-date-nav */
.ts-day-board {
    margin-top: 0.15rem;
}
.ts-day-board__nav {
    margin: 0 0 0.75rem;
}
.ts-day-board__nav .ls-date-nav {
    margin: 0;
}
/* Slight polish on top of homepage strip */
.ts-day-board__nav .ls-date-nav__bar {
    background: linear-gradient(180deg, #0f2920 0%, #0B1F17 100%);
    box-shadow: 0 4px 20px rgba(11, 31, 23, 0.22);
}
.ts-day-board__nav .ls-date-nav__btn--skip {
    flex: 0 0 auto;
    min-width: 2.85rem;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    opacity: 0.92;
    background: rgba(255, 255, 255, 0.06);
}
.ts-day-board__nav .ls-date-nav__btn--skip:hover {
    opacity: 1;
    background: rgba(245, 158, 11, 0.2);
    color: #FDE68A;
}
.ts-day-board__nav .ls-date-nav__btn--skip .ls-date-nav__day {
    font-size: 0.68rem;
    font-weight: 700;
}
.ts-day-board__nav .ls-date-nav__btn--skip .ls-date-nav__dow {
    font-size: 1.05rem;
    opacity: 1;
}
.ts-day-board__nav .ls-date-nav__caption {
    color: #4b5563;
}
.ts-day-board__body {
    min-height: 4rem;
}
.ts-tax-day {
    margin: 0.85rem 0 0;
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: #1B4332;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-bottom: 0;
    border-radius: 0.65rem 0.65rem 0 0;
}
/* Day → first league header (country page) */
.ts-tax-day + .league-header {
    margin-top: 0 !important;
    border-radius: 0 !important;
}
/* Day → match (single-league page, no league headers) */
.ts-tax-day + .ls-match {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
/* League header under day still connects to cards */
.ts-tax-matches .league-header + .ls-match {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.ts-tax-league-grid {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.5rem;
}
.ts-tax-league-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    background: #fff;
    border: 1px solid #e8ece9;
    border-radius: 0.65rem;
    color: #111827;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 650;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.ts-tax-league-card__name {
    flex: 1 1 auto;
    min-width: 0;
}
.ts-tax-league-card__type {
    flex: 0 0 auto;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.12rem 0.38rem;
    border-radius: 0.35rem;
    background: #d8f3dc;
    color: #1B4332;
}
.ts-tax-league-card--cup .ts-tax-league-card__type {
    background: #fef3c7;
    color: #92400e;
}
.ts-tax-league-card:hover {
    border-color: #2D6A4F;
    background: #f7fdf9;
    box-shadow: 0 4px 12px rgba(11, 31, 23, 0.06);
    color: #1B4332;
}
.ts-tax-league-card img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f3f4f6;
    padding: 2px;
}
@media (max-width: 480px) {
    .ts-tax-hero__logo {
        width: 52px;
        height: 52px;
    }
    .ts-tax-hero__title {
        font-size: 1.2rem;
    }
}

/* —— Match card —— */
.ls-match {
    position: relative;
    background: #fff;
    border: 0;
    border-top: 1px solid #eef2f0;
    padding: 0.5rem 0.7rem;
    transition: background 0.14s ease;
}
/* Whole card clickable → single match (predict form / star stay above) */
.ls-match--clickable {
    cursor: pointer;
}
.ls-match__hit {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}
/* Interactive chrome only — not the whole scoreboard row */
.ls-match__predict,
.ls-match__links,
.ls-match__star {
    position: relative;
    z-index: 2;
}
.ls-match--clickable:focus-within {
    outline: 2px solid rgba(45, 106, 79, 0.45);
    outline-offset: -2px;
}
.ls-match:last-child {
    border-radius: 0;
    margin-bottom: 0;
}
/* When no league header before it */
.ls-match:first-child {
    border-top: 0;
    border-radius: 0;
}
.ls-sb > .ls-match + .ls-match,
.match-list-wrapper > .ls-match + .ls-match {
    border-top: 1px solid #eef2f0;
}
.ls-match:hover {
    background: #f6faf7;
    z-index: 1;
}

/* Live accent only — hot has no special bar (just sort/pin to top).
   Green left tab blinks; pulse dots on the card are hidden. */
.ls-match--live {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.08) 0%, #fff 36%);
}
.ls-match--live::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #22c55e;
    pointer-events: none;
    z-index: 3;
    animation: ls-live-bar-blink 1.5s ease-in-out infinite;
}
.ls-match--live:hover {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.12) 0%, #f6faf7 36%);
}
/* Finished: same white card as default (no gray fill) */
/* Team page: only wins get a green tint; draw/loss stay default */
.ls-match--focus-w {
    background: #ecfdf5;
}
.ls-match--focus-w:hover {
    background: #d1fae5;
}
.ls-match__result {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 0.35rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    color: #fff;
    user-select: none;
    position: relative;
    z-index: 2;
}
.ls-match__result--w { background: #059669; }
.ls-match__result--d { background: #9ca3af; }
.ls-match__result--l { background: #dc2626; }
.ls-c__name.is-focus,
.ls-c__line.is-focus .ls-c__name,
.ls-fs__name.is-focus {
    font-weight: 700;
    color: #0f172a;
}
/* Hide green pulse dots inside live match cards */
.ls-match .ls-match__pulse {
    display: none;
}

/* Meta badges row — balanced bar (date left · status right) */
.ls-match__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.45rem;
    min-height: 0;
}
.ls-match__meta:empty {
    display: none;
}
.ls-match__date {
    font-size: 0.68rem;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: 0.02em;
    line-height: 1.2;
}
/* Shared status chip — same footprint for FT / LIVE / HT / muted */
.ls-match__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    min-width: 2.65rem;
    min-height: 1.35rem;
    box-sizing: border-box;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    line-height: 1;
    border: 1px solid transparent;
}
.ls-match__badge--live {
    color: #14532d;
    background: #ecfdf5;
    border-color: #86efac;
    box-shadow: none;
    animation: none;
}
.ls-match__badge--ft {
    /* Soft chip — not a heavy grey block */
    color: #4b5563;
    background: #f3f4f6;
    border-color: #e5e7eb;
    letter-spacing: 0.08em;
}
.ls-match__badge--muted {
    color: #6b7280;
    background: #f9fafb;
    border-color: #e5e7eb;
}
.ls-match__elapsed {
    font-variant-numeric: tabular-nums;
    opacity: 0.95;
    font-weight: 700;
}
.ls-match__pulse {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
    animation: ls-pulse-dot 1.2s ease-in-out infinite;
    vertical-align: middle;
}
/* When meta has only badge (no date), keep chip from looking stuck in the middle */
.ls-match__meta:not(:has(.ls-match__date)) {
    justify-content: flex-end;
}

@keyframes ls-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.75); }
}
@keyframes ls-live-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.35); }
    50% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
}
@keyframes ls-live-bar-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.22; }
}

/* ═══════════════════════════════════════════
   Compact dense layout (default)
   │ 20:00 │ 🏳 Home          │ 2 │
   │  FT   │ 🏳 Away          │ 1 │
   ═══════════════════════════════════════════ */
.ls-match--compact {
    padding: 0.42rem 0.65rem 0.42rem 0.55rem;
}
.ls-match--compact.ls-match--live {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.07) 0%, #fff 30%);
    /* left bar blink: .ls-match--live::before */
}
.ls-match--compact.ls-match--focus-w,
.ls-match--compact.ls-match--ft.ls-match--focus-w {
    background: #ecfdf5;
}
.ls-match--compact.ls-match--focus-w:hover,
.ls-match--compact.ls-match--ft.ls-match--focus-w:hover {
    background: #d1fae5;
}
.ls-c {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    gap: 0.55rem;
}
.ls-c__date {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
    color: #6b7280;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}
.ls-c__time {
    flex: 0 0 2.55rem;
    width: 2.55rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    padding: 0.15rem 0.35rem 0.15rem 0;
    margin: 0;
    border-right: 1px solid #eef2f0;
    box-sizing: border-box;
    font-variant-numeric: tabular-nums;
}
.ls-c__time.has-date {
    flex-basis: 2.85rem;
    width: 2.85rem;
    gap: 0.05rem;
}
.ls-c__time.is-live .ls-c__date {
    color: #15803d;
}
.ls-c__time-txt {
    font-size: 0.72rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.1;
    letter-spacing: 0.01em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.ls-c__time-sub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 0.95rem;
    padding: 0.08rem 0.28rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
    background: transparent;
    line-height: 1;
    box-sizing: border-box;
}
.ls-c__time.is-live .ls-c__time-txt {
    color: #1f2937;
    font-weight: 800;
}
/* Live: green outline — matches site pitch tone */
.ls-c__time.is-live .ls-c__time-sub {
    color: #15803d;
    background: transparent;
    border-color: #22c55e;
    letter-spacing: 0.02em;
    text-transform: none;
    font-size: 0.58rem;
    font-weight: 800;
    box-shadow: none;
    animation: none;
}
/* FT: muted gray kickoff date/time — lighter weight than live/upcoming */
.ls-match--ft .ls-c__time .ls-c__date,
.ls-c__time.is-ft .ls-c__date {
    color: #6b7280;
    font-weight: 500;
}
.ls-match--ft .ls-c__time .ls-c__time-txt,
.ls-c__time.is-ft .ls-c__time-txt {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.01em;
    text-transform: none;
}
.ls-match--ft .ls-match__date {
    font-weight: 500;
}
/* FT status chip: soft gray fill (match finished scoreboard) */
.ls-match--ft .ls-c__time .ls-c__time-sub,
.ls-c__time.is-ft .ls-c__time-sub {
    color: #4b5563;
    background: #f3f4f6;
    border-color: #e5e7eb;
    font-weight: 800;
}
.ls-match--ft .ls-c__time,
.ls-c__time.is-ft {
    border-right-color: #eef2f0;
}
/* Stack layout: live minute / FT under kickoff clock */
.ls-fs.is-live .ls-fs__sub {
    color: #15803d;
    font-weight: 800;
    font-size: 0.58rem;
}
/* FT stack: muted kickoff clock — lighter weight */
.ls-match--ft .ls-fs__clock,
.ls-fs.is-ft .ls-fs__clock {
    color: #6b7280;
    font-weight: 500;
}
.ls-match--ft .ls-fs__sub,
.ls-fs.is-ft .ls-fs__sub {
    color: #4b5563;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 0.08rem 0.28rem;
    font-weight: 800;
    font-size: 0.55rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    box-sizing: border-box;
}
.ls-match--ft .ls-fs__time,
.ls-fs.is-ft .ls-fs__time {
    border-right-color: #eef2f0;
}
/* pulse on card time column: hidden via .ls-match .ls-match__pulse */
.ls-c__main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.ls-c__teams {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.18rem;
}
.ls-c__line {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    min-height: 1.3rem;
    line-height: 1.2;
}
.ls-c__logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f8faf9;
    border: 1px solid #eef2f0;
    padding: 1px;
    box-sizing: border-box;
}
.ls-c__logo--ph,
.ls-c__logo.ls-match__logo--ph {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eef2f0;
    border: 1px solid #e5ebe7;
    font-size: 0;
}
.ls-c__name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.82rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}
/* Winner / loser weight (names + scores) */
.ls-c__name.is-win,
.ls-c__line.is-win .ls-c__name {
    font-weight: 600;
    color: #1f2937;
}
.ls-c__name.is-lose,
.ls-c__line.is-lose .ls-c__name {
    font-weight: 500;
    color: #374151;
}
/* NS / draw: medium weight (not loser grey, not winner bold) */
.ls-c.is-ns .ls-c__name,
.ls-c.has-score .ls-c__name:not(.is-win):not(.is-lose) {
    font-weight: 600;
    color: #111827;
}
.ls-c.has-score .ls-c__goal:not(.is-win):not(.is-lose) {
    font-weight: 700;
    color: #0f172a;
}
/* Score column on the right — home / away separated by a line */
.ls-c__scorecol {
    flex: 0 0 1.75rem;
    width: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 0;
    border-radius: 0.45rem;
    background: #f4f7f5;
    border: 1px solid #e5ebe7;
    box-sizing: border-box;
    overflow: hidden;
}
.ls-c.has-score .ls-c__scorecol {
    background: #eef6f1;
    border-color: #d8e8de;
}
.ls-c.is-live.has-score .ls-c__scorecol {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
/* Finished: soft gray scoreboard (score column only — card stays white) */
.ls-c.is-ft.has-score .ls-c__scorecol,
.ls-match--ft .ls-c.has-score .ls-c__scorecol {
    background: #f3f4f6;
    border-color: #e5e7eb;
}
.ls-c__scorecol.is-empty {
    background: #f9fafb;
    border-color: #eef2f0;
}
.ls-c__goal {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.2rem;
    width: 100%;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #4b5563;
    line-height: 1;
    padding: 0.12rem 0;
    box-sizing: border-box;
}
.ls-c__goal.is-win {
    font-weight: 600;
    color: #1f2937;
}
.ls-c__goal.is-lose {
    font-weight: 500;
    color: #374151;
}
/* Divider between home score (top) and away score (bottom) */
.ls-c__goal[data-side="home"] {
    border-bottom: 1px solid #d7e3db;
}
.ls-c.has-score .ls-c__goal[data-side="home"] {
    border-bottom-color: #c5dccf;
}
.ls-c.is-live.has-score .ls-c__goal[data-side="home"] {
    border-bottom-color: #bbf7d0;
}
.ls-c.is-ft.has-score .ls-c__goal[data-side="home"],
.ls-match--ft .ls-c.has-score .ls-c__goal[data-side="home"] {
    border-bottom-color: #e5e7eb;
}
.ls-c__scorecol.is-empty .ls-c__goal[data-side="home"] {
    border-bottom-color: #e8ece9;
}
.ls-c__goal.is-empty {
    color: #d1d5db;
    font-weight: 600;
    font-size: 0.8rem;
}
.ls-c.is-live .ls-c__goal:not(.is-empty) {
    color: #111827;
}

/* Penalty shootout column — only when match has pen digits; * = winner.
 * Live/in-progress pens keep a soft amber cue; finished PEN matches use the
 * same quiet gray frame as FT scores (no yellow highlight). */
.ls-c__pencol {
    flex: 0 0 1.65rem;
    width: 1.65rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    border-radius: 0.45rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    box-sizing: border-box;
    /* visible so * above digit is not clipped */
    overflow: visible;
}
.ls-c.is-ft .ls-c__pencol,
.ls-match--ft .ls-c__pencol {
    background: #f3f4f6;
    border-color: #e5e7eb;
}
.ls-c__pen {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 1.2rem;
    height: 1.2rem;
    width: 100%;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #78350f;
    line-height: 1;
    padding: 0;
    box-sizing: border-box;
    position: relative;
}
.ls-c.is-ft .ls-c__pen,
.ls-match--ft .ls-c__pen {
    color: #4b5563;
    font-weight: 600;
}
.ls-c__pen[data-side="home"] {
    border-bottom: 1px solid #fde68a;
}
.ls-c.is-ft .ls-c__pen[data-side="home"],
.ls-match--ft .ls-c__pen[data-side="home"] {
    border-bottom-color: #e5e7eb;
}
.ls-c__pen.is-winner {
    color: #92400e;
    font-weight: 800;
}
.ls-c.is-ft .ls-c__pen.is-winner,
.ls-match--ft .ls-c__pen.is-winner {
    color: #1f2937;
    font-weight: 700;
}
/* Small "p" above winner digit, top-right — absolute, cell size unchanged */
.ls-c__pen-mark {
    position: absolute;
    top: 0.02rem;
    right: 0.08rem;
    left: auto;
    transform: none;
    font-size: 0.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-transform: lowercase;
    color: #b45309;
    pointer-events: none;
    margin: 0;
    padding: 0;
    z-index: 1;
}
.ls-c.is-ft .ls-c__pen-mark,
.ls-match--ft .ls-c__pen-mark {
    color: #6b7280;
}

@media (max-width: 480px) {
    .ls-match--compact {
        padding: 0.38rem 0.5rem 0.38rem 0.4rem;
    }
    .ls-c {
        gap: 0.35rem;
    }
    .ls-c__time {
        flex-basis: 2.35rem;
        width: 2.35rem;
        padding-right: 0.28rem;
    }
    .ls-c__time-txt {
        font-size: 0.68rem;
    }
    .ls-c__name {
        font-size: 0.78rem;
    }
    .ls-c__scorecol {
        flex-basis: 1.55rem;
        width: 1.55rem;
    }
    .ls-c__pencol {
        flex-basis: 1.4rem;
        width: 1.4rem;
    }
    .ls-c__goal {
        font-size: 0.82rem;
        min-height: 1.12rem;
        padding: 0.1rem 0;
    }
    .ls-c__pen {
        font-size: 0.72rem;
        min-height: 1.12rem;
        height: 1.12rem;
    }
    .ls-c__pen-mark {
        font-size: 0.46rem;
        top: 0;
        right: 0.04rem;
    }
    .ls-c__logo,
    .ls-c__logo--ph {
        width: 18px;
        height: 18px;
    }
    .ls-c__line {
        min-height: 1.1rem;
        gap: 0.32rem;
    }
}

/* Board: Home | Score/Time | Away  (classic) */
.ls-match__board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 4.25rem minmax(0, 1fr);
    align-items: center;
    gap: 0.25rem 0.35rem;
}

/* ═══════════════════════════════════════════
   Flashscore layout (redesign)
   Structure: time | [line: logo+name + goal] × 2
   Each team row is one flex line → scores always align.
   ═══════════════════════════════════════════ */
.ls-match--stack {
    padding: 0.35rem 0.55rem 0.38rem;
}
.ls-match--stack.ls-match--live {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.06) 0%, #fff 32%);
    /* left bar blink: .ls-match--live::before */
}
.ls-match--stack.ls-match--live:hover {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.1) 0%, #f6faf7 32%);
}
.ls-match--stack.ls-match--focus-w,
.ls-match--stack.ls-match--ft.ls-match--focus-w {
    background: #ecfdf5;
}
.ls-match--stack.ls-match--focus-w:hover,
.ls-match--stack.ls-match--ft.ls-match--focus-w:hover {
    background: #d1fae5;
}

.ls-fs {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    min-width: 0;
}
/* Kickoff time column only — LIVE/FT live under score */
.ls-fs__time {
    flex: 0 0 2.35rem;
    width: 2.35rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.15rem;
    padding: 0.05rem 0.3rem 0.05rem 0;
    margin-right: 0.35rem;
    border-right: 1px solid #f0f3f1;
    box-sizing: border-box;
}
.ls-fs__clock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-width: 2rem;
    min-height: 1.05rem;
    padding: 0;
    box-sizing: border-box;
    font-size: 0.72rem;
    font-weight: 800;
    color: #1B4332;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
    background: transparent;
}
.ls-fs__clock-txt {
    line-height: 1;
}
.ls-fs__sub {
    font-size: 0.55rem;
    font-weight: 600;
    color: #9ca3af;
    line-height: 1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ls-fs__main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
}
/* Status under goals column (right-aligned with score) */
.ls-fs__state-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 0;
    margin-top: 0.02rem;
    /* Align chip under the goal column (1.35rem) */
    padding-right: 0;
}
.ls-fs__state-row .ls-match__state {
    min-width: 1.8rem;
    font-size: 0.58rem;
    padding: 0.08rem 0.32rem;
}
.ls-fs__line {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    min-height: 1.2rem;
}
.ls-fs__team {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.ls-fs__logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 50%;
    background: transparent;
    border: 0;
    padding: 0;
    box-sizing: border-box;
}
.ls-fs__logo--ph,
.ls-fs__logo.ls-match__logo--ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #9ca3af;
    background: #f3f4f6;
}
.ls-fs__name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ls-fs__goal {
    flex: 0 0 1.15rem;
    width: 1.15rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #111827;
    line-height: 1;
    transition: color 0.25s ease, transform 0.25s ease, text-shadow 0.25s ease;
}
/* Stack layout: finished score cells — soft gray */
.ls-fs.is-ft .ls-fs__goal:not(.is-empty),
.ls-match--ft .ls-fs__goal:not(.is-empty) {
    background: #f3f4f6;
    border-radius: 0.3rem;
    min-height: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* Live matches keep normal score color — red only on goal bump (see .is-goal-bump) */
.ls-fs__goal.is-live,
.ls-fs.is-live .ls-fs__goal:not(.is-empty) {
    color: #111827;
}
.ls-fs__goal.is-empty {
    color: #d1d5db;
    font-weight: 600;
}
/* Goal scored: blink then soft hold (JS: is-score-blink ~2s, is-goal-bump ~12s) */
.ls-fs__goal.is-goal-bump,
.ls-match__goal.is-goal-bump,
.ts-match-single__goal.is-goal-bump {
    color: #15803d !important;
    font-weight: 900;
    transform: scale(1.1);
    text-shadow: 0 0 12px rgba(34, 197, 94, 0.35);
}
.ls-fs__goal.is-score-blink,
.ls-match__goal.is-score-blink,
.ts-match-single__goal.is-score-blink {
    animation: ls-score-blink 0.45s ease-in-out 5;
}
@keyframes ls-score-blink {
    0%,
    100% {
        opacity: 1;
        transform: scale(1.12);
        color: #15803d;
        filter: brightness(1);
    }
    50% {
        opacity: 0.15;
        transform: scale(1.28);
        color: #22c55e;
        filter: brightness(1.35);
    }
}

@media (max-width: 480px) {
    .ls-match--stack {
        padding: 0.45rem 0.6rem 0.5rem;
    }
    .ls-fs__time {
        flex-basis: 2.45rem;
        width: 2.45rem;
        margin-right: 0.35rem;
        padding-right: 0.3rem;
    }
    .ls-fs__clock {
        min-width: 2rem;
        min-height: 1.1rem;
        font-size: 0.72rem;
    }
    .ls-fs__name {
        font-size: 0.8rem;
    }
    .ls-fs__goal {
        flex-basis: 1.2rem;
        width: 1.2rem;
        font-size: 0.88rem;
    }
    .ls-fs__logo {
        width: 18px;
        height: 18px;
    }
    .ls-fs__state-row .ls-match__state {
        font-size: 0.55rem;
        min-width: 1.55rem;
    }
    .ls-match__state {
        font-size: 0.56rem;
    }
}

/* :has() fallback — older browsers keep centered meta */
@supports not selector(:has(*)) {
    .ls-match__meta {
        justify-content: center;
    }
}

.ls-match__team {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}
.ls-match__team--home {
    justify-content: flex-end;
    text-align: right;
    flex-direction: row;
}
.ls-match__team--away {
    justify-content: flex-start;
    text-align: left;
}

.ls-match__name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-match__logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 50%;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
}
.ls-match__logo--ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    background: #f3f4f6;
}
.ls-match__logo--ph svg {
    width: 20px;
    height: 20px;
}

/* Center score / kickoff */
.ls-match__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    min-height: 2.1rem;
}

.ls-match__score {
    display: inline-flex;
    align-items: baseline;
    gap: 0.1rem;
    font-family: 'Oswald', ui-sans-serif, system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #0B1F17;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
/* Classic layout: finished scoreboard pill */
.ls-match--ft .ls-match__score:not(.ls-match__score--live) {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 0.45rem;
    padding: 0.2rem 0.45rem;
}
/* Live score uses normal dark color; goal bump uses .is-goal-bump */
.ls-match__score--live {
    color: #0B1F17;
}
.ls-match__goal {
    min-width: 1.1ch;
    text-align: center;
    transition: color 0.25s ease, transform 0.25s ease, text-shadow 0.25s ease;
}
.ls-match__colon {
    opacity: 0.35;
    font-weight: 500;
    margin: 0 0.05rem;
}

.ls-match__center-sub {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
}
.ls-match__center-sub--live {
    color: #15803d;
}

/* Status chip under score (classic center + stack goals) */
.ls-match__state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    min-height: 1.05rem;
    padding: 0.1rem 0.4rem;
    box-sizing: border-box;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.ls-match__state--live {
    color: #14532d;
    background: #ecfdf5;
    border-color: #86efac;
    box-shadow: none;
    animation: none;
}
.ls-match__state--ft {
    color: #6b7280;
    background: #f3f4f6;
    border-color: #e5e7eb;
    letter-spacing: 0.08em;
}
.ls-match__state--muted {
    color: #9ca3af;
    background: transparent;
    border-color: transparent;
    font-weight: 700;
    letter-spacing: 0.04em;
}
/* state pulse hidden with .ls-match .ls-match__pulse */
.ls-match__state-txt {
    line-height: 1;
}

/* Upcoming: kickoff time instead of 0-0 */
.ls-match__kickoff {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    padding: 0.15rem 0.35rem;
    border-radius: 0.4rem;
    background: #f8faf9;
    border: 1px solid #eef2f0;
}
.ls-match__kickoff-time {
    font-family: 'Oswald', ui-sans-serif, system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #1B4332;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.ls-match__kickoff-vs {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #9ca3af;
}

/* Venue */
.ls-match__venue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.3rem;
    font-size: 0.65rem;
    color: #9ca3af;
}
.ls-match__venue-icon {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

/* Member links */
.ls-match__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.7rem;
    padding-top: 0.65rem;
    border-top: 1px dashed #e5e7eb;
}
.ls-match__link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 650;
    color: #2D6A4F;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.15s ease;
}
.ls-match__link:hover {
    background: #2D6A4F;
    color: #fff;
    border-color: #2D6A4F;
}
.ls-match__link--text {
    color: #6b7280;
    background: #f9fafb;
    border-color: #e5e7eb;
    font-weight: 500;
    cursor: default;
}
.ls-match__link--text em {
    font-style: normal;
    color: #9ca3af;
    margin-left: 0.25rem;
}

/* Live board flash + stamp — whole card / score box blinks on goal */
.ls-match--flash,
.is-score-flash {
    animation: ts-match-flash 0.55s ease-in-out 4;
}
.ls-match__score.is-score-flash,
.ts-match-single__score.is-score-flash,
.ms-score.is-score-flash {
    animation: ts-score-box-flash 0.5s ease-in-out 4;
    border-radius: 0.5rem;
}
@keyframes ts-match-flash {
    0%,
    100% {
        background-color: transparent;
        box-shadow: none;
    }
    50% {
        background-color: #dcfce7;
        box-shadow: inset 0 0 0 1px #86efac;
    }
}
@keyframes ts-score-box-flash {
    0%,
    100% {
        opacity: 1;
        filter: brightness(1);
        transform: scale(1);
    }
    50% {
        opacity: 0.35;
        filter: brightness(1.4);
        transform: scale(1.06);
    }
}
/* Live clock stamp (Live 09:12:50) removed */
.ts-live-stamp {
    display: none !important;
}

/* ——— Single match page (modern scoreboard) ——— */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.ms-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
    margin: 0 0 1rem;
    font-size: 0.8rem;
    color: #9ca3af;
    line-height: 1.3;
}
.ms-crumb a {
    color: #2d6a4f;
    font-weight: 600;
    text-decoration: none;
}
.ms-crumb a:hover {
    color: #1b4332;
    text-decoration: underline;
}
.ms-crumb__sep {
    color: #d1d5db;
    user-select: none;
}
.ms-crumb__here {
    color: #4b5563;
    font-weight: 600;
    min-width: 0;
}

/* Card shell */
.ts-match-single.ms {
    background: #fff;
    border: 1px solid rgba(27, 67, 50, 0.08);
    border-radius: 1.25rem;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 40px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

/* Dark hero */
.ms-hero,
.ts-match-single__hero {
    position: relative;
    padding: 1.1rem 1.15rem 1.15rem;
    color: #fff;
    background:
        radial-gradient(ellipse 90% 70% at 50% -10%, rgba(82, 183, 136, 0.28), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 100%, rgba(59, 130, 246, 0.12), transparent 50%),
        linear-gradient(165deg, #0f2419 0%, #1b4332 48%, #14281f 100%);
}
.ms-hero__top {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.35rem;
}
.ms-hero__league {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    flex: 1 1 auto;
}
.ms-hero__league-logo {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.15rem;
    flex-shrink: 0;
}
.ms-hero__league-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
a.ms-hero__league-name:hover {
    color: #d8f3dc;
}
.ms-hero__league-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.55rem;
    margin-top: 0.15rem;
    font-size: 0.68rem;
    color: rgba(216, 243, 220, 0.72);
    font-weight: 500;
}
.ms-hero__league-meta span + span::before {
    content: '·';
    margin-right: 0.55rem;
    opacity: 0.55;
}

/* Status badge on dark hero */
.ms-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    border: 1px solid transparent;
    white-space: nowrap;
}
.ms-badge--live {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(134, 239, 172, 0.45);
    color: #d8f3dc;
}
.ms-badge--ft {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
    color: #d8f3dc;
}
.ms-badge--ns {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.78);
}
/* live-board may still inject old Tailwind classes — map them on dark hero */
.ms-hero [data-ls-status-badge] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Scoreboard grid — top-align teams so logos/names stay on the same row
   even when scorer lists have different lengths. */
.ms-board,
.ts-match-single__board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    gap: 0.65rem 1rem;
    max-width: 42rem;
    margin: 0 auto;
}
.ms-team {
    text-align: center;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: start;
}
/* Fixed top block: logo + name always align across home/away */
.ms-team__logo-link {
    display: inline-flex;
    text-decoration: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    margin: 0 0 0.7rem;
}
.ms-team__logo {
    width: 4.25rem;
    height: 4.25rem;
    object-fit: contain;
    margin: 0 auto 0.7rem;
    display: block;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
    flex-shrink: 0;
}
.ms-team__logo-link .ms-team__logo {
    margin-bottom: 0;
}
.ms-team__logo--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.75rem;
    filter: none;
}
.ms-team__name {
    margin: 0;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    letter-spacing: -0.01em;
    /* Reserve 2 lines so short/long names keep scoreboard level */
    min-height: 2.6em;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: 11rem;
}
.ms-team__name a {
    color: inherit;
    text-decoration: none;
}
.ms-team__name a:hover {
    color: #d8f3dc;
}
.ms-team.is-winner .ms-team__name {
    color: #95d5b2;
}
/* Watch-live page prose */
.ts-watch-live-seo .entry-content h2 {
    font-size: 1.15rem;
    margin-top: 1.25rem;
}
.ts-watch-live-seo .entry-content p:last-child {
    margin-bottom: 0;
}
.ts-watch-live-seo .entry-content strong {
    font-weight: 800;
    color: #0b1f17;
    letter-spacing: 0.01em;
}

/* Goal scorers under team name — grow below; do not shift logo/name */
.ms-scorers[hidden] {
    display: none !important;
}
.ms-scorers {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    max-width: 100%;
    width: 100%;
    min-height: 0;
}
.ms-scorers__item,
.ms-scorers li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.25;
    color: rgba(216, 243, 220, 0.88);
    max-width: 100%;
    min-width: 0;
}
.ms-scorers__face {
    position: relative;
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15, 40, 30, 0.55);
    border: 1px solid rgba(216, 243, 220, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ms-scorers__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ms-scorers__img.is-broken {
    display: none;
}
.ms-scorers__ball {
    display: none;
    font-size: 0.72rem;
    line-height: 1;
}
/* No photo / broken image → football glyph */
.ms-scorers__face.is-fallback .ms-scorers__ball,
.ms-scorers__face:not(:has(.ms-scorers__img)) .ms-scorers__ball {
    display: block;
}
.ms-scorers__face:has(.ms-scorers__img:not(.is-broken)) .ms-scorers__ball {
    display: none;
}
.ms-scorers__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    max-width: 100%;
    gap: 0.05rem;
    text-align: left;
}
.ms-scorers__label {
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ms-scorers__assist {
    min-width: 0;
    max-width: 100%;
    font-size: 0.58rem;
    font-weight: 400;
    line-height: 1.2;
    color: rgba(180, 190, 185, 0.48);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ms-scorers--home {
    align-items: center;
}
.ms-scorers--home .ms-scorers__text {
    align-items: center;
    text-align: center;
}
.ms-scorers--away {
    align-items: center;
}
.ms-scorers--away .ms-scorers__text {
    align-items: center;
    text-align: center;
}
/* One-line facts under board (venue/referee filled by live-board / fixture-detail) */
.ms-hero__facts {
    margin: 1rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(216, 243, 220, 0.72);
    text-align: center;
    line-height: 1.4;
}
.ms-hero__facts:empty,
.ms-hero__facts:not(:has(span:not([hidden]))) {
    display: none;
}
.ms-hero__facts > span:not([hidden]) + span:not([hidden])::before {
    content: '·';
    margin-right: 0.35rem;
    opacity: 0.55;
}
/* Live TV / stream channels — pale green panel (lighter than mint chips) */
.ms-tv {
    margin: 0.95rem 0 0;
    padding: 0.75rem 0.8rem 0.8rem;
    border-radius: 0.85rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    box-shadow: 0 1px 8px rgba(22, 101, 52, 0.05);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.ms-tv__head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0 0 0.55rem;
}
.ms-tv__live {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.85rem;
    height: 0.85rem;
}
.ms-tv__live-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
    animation: ms-tv-pulse 1.5s ease-in-out infinite;
}
@keyframes ms-tv-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.9); }
}
.ms-tv__title {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #166534;
}
.ms-tv--split {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.ms-tv__group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}
.ms-tv__sub {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4d7c5a;
    line-height: 1.2;
}
.ms-tv__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.ms-tv__item {
    margin: 0;
    padding: 0;
    max-width: 100%;
}
.ms-tv__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 16rem;
    padding: 0.38rem 0.7rem 0.38rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.ms-tv__ico {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
}
.ms-tv__ico svg {
    display: block;
}
.ms-tv__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ms-tv__ext {
    flex: 0 0 auto;
    font-size: 0.72rem;
    opacity: 0.75;
    font-weight: 700;
}
/* Link = same soft mint as card chips (.ts-broadcast__chip--link) */
.ms-tv__chip--link {
    color: #166534;
    background: #dcfce7;
    border: 1.5px solid #86efac;
    box-shadow: none;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.86rem;
    padding: 0.45rem 0.82rem 0.45rem 0.62rem;
    max-width: 18rem;
}
.ms-tv__chip--link .ms-tv__ico {
    background: transparent;
    color: #166534;
    width: 1.35rem;
    height: 1.35rem;
}
.ms-tv__chip--link:hover {
    transform: translateY(-1px);
    background: #bbf7d0;
    border-color: #4ade80;
    box-shadow: none;
    color: #14532d;
}
.ms-tv__domain {
    flex: 0 0 auto;
    font-size: 0.68rem;
    font-weight: 700;
    opacity: 0.88;
    white-space: nowrap;
    color: inherit;
}
.ms-tv__domain::before {
    content: "·";
    margin-right: 0.28rem;
    opacity: 0.7;
    font-weight: 800;
}
.ms-tv__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;
}
/* Name = plain dark text (no frame, not clickable) */
.ms-tv__chip--name {
    color: #1f2937;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: default;
    font-weight: 700;
    box-shadow: none;
    pointer-events: none;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
}
.ms-tv__chip--name .ms-tv__ico {
    background: transparent;
    color: #374151;
}
.ms-tv__sub--names {
    color: #4d7c5a;
    font-weight: 650;
}
.ms-tv__sub--links {
    color: #166534;
    font-weight: 800;
}
@media (max-width: 480px) {
    .ms-tv {
        padding: 0.65rem 0.65rem 0.7rem;
    }
    .ms-tv__chip {
        max-width: 100%;
        font-size: 0.74rem;
    }
}

.ms-hero__facts-dot {
    opacity: 0.4;
    user-select: none;
}

/* Center score — pin to top row with logos (not vertically centered vs tall scorer lists) */
.ms-center,
.ts-match-single__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 0.35rem 0.25rem 0;
    gap: 0.4rem;
    align-self: start;
}
/* Penalty shootout result under FT score */
.ms-pen-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    margin-top: 0.15rem;
    padding: 0.45rem 0.9rem 0.5rem;
    min-width: 5.5rem;
    border-radius: 0.85rem;
    background:
        linear-gradient(180deg, rgba(16, 185, 129, 0.28) 0%, rgba(5, 150, 105, 0.16) 100%);
    border: 1px solid rgba(52, 211, 153, 0.45);
    box-shadow:
        0 0 0 1px rgba(167, 243, 208, 0.12) inset,
        0 8px 24px rgba(0, 0, 0, 0.2);
}
.ms-pen-result__label {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6ee7b7;
    line-height: 1;
}
.ms-pen-result__score {
    font-family: var(--font-display, 'Oswald', system-ui, sans-serif);
    font-size: clamp(1.35rem, 4.5vw, 1.75rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    color: #ecfdf5;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 18px rgba(52, 211, 153, 0.35);
}
/* Kickoff time + status under score */
.ms-center__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 0;
}
.ms-center__kickoff-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(216, 243, 220, 0.78);
    letter-spacing: 0.02em;
}
.ms-center__kickoff-time {
    font-family: var(--font-display, 'Oswald', system-ui, sans-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.ms-center__kickoff-date {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(216, 243, 220, 0.65);
}
.ms-badge--center {
    margin: 0 auto;
}
.ms-badge[hidden] {
    display: none !important;
}
.ts-match-single__score,
.ms-score {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 0;
    font-family: var(--font-display, 'Oswald', system-ui, sans-serif);
    font-size: clamp(2.4rem, 8vw, 3.4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.ts-match-single__goal {
    min-width: 0.75em;
    text-align: center;
    transition: color 0.25s ease, transform 0.25s ease, text-shadow 0.25s ease, filter 0.25s ease;
}
/* Single-match hero (dark): score blink in green glow */
.ts-match-single__goal.is-goal-bump {
    color: #86efac !important;
    transform: scale(1.1);
    text-shadow: 0 0 18px rgba(134, 239, 172, 0.55);
    filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.45));
}
.ts-match-single__goal.is-score-blink {
    animation: ls-score-blink-dark 0.45s ease-in-out 5;
}
@keyframes ls-score-blink-dark {
    0%,
    100% {
        opacity: 1;
        transform: scale(1.1);
        color: #86efac;
    }
    50% {
        opacity: 0.2;
        transform: scale(1.28);
        color: #bbf7d0;
    }
}
.ms-score.is-score-flash,
.ts-match-single__score.is-score-flash {
    animation: ts-score-box-flash-dark 0.5s ease-in-out 4;
}
@keyframes ts-score-box-flash-dark {
    0%,
    100% {
        opacity: 1;
        filter: brightness(1);
    }
    50% {
        opacity: 0.4;
        filter: brightness(1.5);
    }
}
.ts-match-single__colon {
    display: inline-block;
    margin: 0 0.22em;
    color: rgba(149, 213, 178, 0.55);
    font-weight: 600;
}
.ms-kickoff,
.ts-match-single__kickoff-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 5.5rem;
    padding: 0.65rem 0.9rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}
.ms-kickoff__time {
    font-family: var(--font-display, 'Oswald', system-ui, sans-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.ms-kickoff__date {
    margin-top: 0.3rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(216, 243, 220, 0.7);
    letter-spacing: 0.02em;
}
.ms-kickoff__vs {
    font-family: var(--font-display, 'Oswald', system-ui, sans-serif);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.55);
}

/* HT/FT chips on dark */
.ms-scorelines,
.ts-match-single__scorelines {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.7rem;
    min-height: 1.2rem;
}
.ts-match-single__scorelines:empty {
    display: none;
}
.ts-match-single__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
    line-height: 1.2;
    white-space: nowrap;
}
.ts-match-single__chip-k {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 800;
}
.ts-match-single__chip--pen {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(52, 211, 153, 0.35);
    color: #a7f3d0;
}
.ts-match-single__chip--pen .ts-match-single__chip-k {
    color: #6ee7b7;
}


/* Content sections */
.ms-section {
    padding: 1.15rem 1.15rem 1.25rem;
    border-top: 1px solid #eef2f0;
}
.ms-section__title {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1b4332;
}
/* Fixture detail mount: padding lives inside .ts-fx-detail */
.ms-section--fx {
    padding: 0;
    border-top: 0;
}
.ms-section--fx .ts-fx-detail {
    border-top: 1px solid #eef2f0;
}

/* Related tags (league + teams) on match single */
.ms-section--tags {
    padding-top: 0.95rem;
    padding-bottom: 1.1rem;
    background: linear-gradient(180deg, #fafbfa 0%, #fff 100%);
}
.ms-tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.ms-tags__item {
    margin: 0;
    padding: 0;
}
.ms-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;
    padding: 0.38rem 0.75rem 0.38rem 0.5rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.25;
    text-decoration: none;
    color: #1b4332;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
a.ms-tag:hover {
    background: #1b4332;
    color: #fff;
    border-color: #1b4332;
    box-shadow: 0 2px 8px rgba(27, 67, 50, 0.18);
}
a.ms-tag:hover .ms-tag__logo {
    background: rgba(255, 255, 255, 0.15);
}
.ms-tag--team {
    background: #f0f7ff;
    border-color: #c7dcf5;
    color: #1e3a5f;
}
a.ms-tag--team:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}
.ms-tag--plain {
    cursor: default;
    opacity: 0.9;
}
.ms-tag__logo {
    width: 1.15rem;
    height: 1.15rem;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}
.ms-tag__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ms-section--content {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.65;
}
.ms-back {
    margin: 1.25rem 0 0;
}
.ms-back a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 650;
    color: #2d6a4f;
    text-decoration: none;
}
.ms-back a:hover {
    color: #1b4332;
}

/* Admin-only force sync (manage_options) on match single */
.ms-admin-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem 0.65rem;
    margin: 0.65rem 0 0.15rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.5rem;
    background: rgba(15, 23, 42, 0.35);
    border: 1px dashed rgba(250, 204, 21, 0.45);
}
.ms-admin-force-sync {
    appearance: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    padding: 0.4rem 0.7rem;
    border-radius: 0.4rem;
    color: #0f172a;
    background: linear-gradient(180deg, #fde68a 0%, #fbbf24 100%);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}
.ms-admin-force-sync:hover:not(:disabled) {
    filter: brightness(1.05);
}
.ms-admin-force-sync:disabled {
    opacity: 0.7;
    cursor: wait;
}
.ms-admin-force-sync__status {
    font-size: 0.7rem;
    font-weight: 600;
    color: #e2e8f0;
}
.ms-admin-force-sync__status.is-ok {
    color: #86efac;
}
.ms-admin-force-sync__status.is-err {
    color: #fca5a5;
}
.ms-admin-force-sync__status.is-busy {
    color: #fde68a;
}

/* ── Predict on match single (standalone section + in-tab) ── */
/* Standalone section chrome (legacy); in-tab uses transparent shell below */
.ms-section--predict {
    padding: 0.75rem 0.85rem 0.85rem;
    background:
        radial-gradient(ellipse 85% 70% at 8% 0%, rgba(16, 185, 129, 0.08), transparent 55%),
        radial-gradient(ellipse 70% 55% at 100% 100%, rgba(37, 99, 235, 0.06), transparent 52%),
        linear-gradient(180deg, #f6faf8 0%, #ffffff 72%);
}
/* Inside fixture-detail tabs — no extra card/section padding */
.ts-predict-in-tab {
    padding: 0;
    background: transparent;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}
.ms-predict-card {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.7rem 0.8rem 0.75rem;
    border-radius: 0.95rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #fff 100%);
    border: 1px solid rgba(27, 67, 50, 0.1);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 8px 22px rgba(27, 67, 50, 0.06);
    box-sizing: border-box;
}
.ms-predict-card__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    text-align: left;
}
.ms-predict-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    flex-shrink: 0;
    border-radius: 0.55rem;
    color: #ecfdf5;
    background:
        linear-gradient(145deg, #348a64 0%, #1b4332 100%);
    box-shadow:
        0 3px 8px rgba(27, 67, 50, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.ms-predict-card__icon svg {
    width: 16px;
    height: 16px;
}
.ms-predict-card__titles {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-height: 0;
}
.ms-predict-card__title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.005em;
    color: #0f2419;
    line-height: 1.2;
    text-transform: none;
}

/* Form shell — full width, tight vertical rhythm */
.ts-match-single .ts-predict,
.ts-predict-in-tab .ts-predict , .ms-section--predict .ts-predict {
    width: 100%;
    max-width: none;
    margin: 0;
    border-top: 0;
    padding-top: 0;
    text-align: center;
    box-sizing: border-box;
}
.ts-match-single .ts-predict__form,
.ts-predict-in-tab .ts-predict__form , .ms-section--predict .ts-predict__form {
    width: 100%;
    justify-content: center;
    gap: 0.4rem;
    box-sizing: border-box;
}

/* Open: close deadline */
.ts-predict-in-tab .ts-predict__deadline , .ms-section--predict .ts-predict__deadline {
    width: 100%;
    box-sizing: border-box;
    padding: 0.28rem 0.55rem;
    border-radius: 0.5rem;
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #a7f3d0;
    font-size: 0.65rem;
    gap: 0.15rem 0.3rem;
    line-height: 1.25;
}
.ts-predict-in-tab .ts-predict__deadline-k , .ms-section--predict .ts-predict__deadline-k {
    font-size: 0.64rem;
    color: #047857;
}
.ts-predict-in-tab .ts-predict__deadline-v , .ms-section--predict .ts-predict__deadline-v {
    font-size: 0.65rem;
    font-weight: 700;
    color: #14532d;
}

/* Total votes chip */
.ts-predict-in-tab .ts-predict__summary , .ms-section--predict .ts-predict__summary {
    padding: 0.15rem 0.5rem;
    font-size: 0.62rem;
    background: linear-gradient(180deg, #f8faf9 0%, #eef4f0 100%);
    border-color: #dce8e1;
    color: #4b5563;
}
.ts-predict-in-tab .ts-predict__summary-total , .ms-section--predict .ts-predict__summary-total {
    font-size: 0.78rem;
    color: #0f2419;
}

/* Choice cards — compact, still full width */
.ts-predict-in-tab .ts-predict__choices , .ms-section--predict .ts-predict__choices {
    gap: 0.4rem;
    width: 100%;
}
.ts-predict-in-tab .ts-predict__choice , .ms-section--predict .ts-predict__choice {
    flex: 1 1 0;
    min-width: 0;
}
.ts-predict-in-tab .ts-predict__choice--draw , .ms-section--predict .ts-predict__choice--draw {
    flex: 0.85 1 0;
    min-width: 0;
    max-width: none;
}
.ts-predict-in-tab .ts-predict__choice-ui , .ms-section--predict .ts-predict__choice-ui {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    min-height: 0;
    padding: 0.4rem 0.4rem 0.38rem;
    border-radius: 0.7rem;
    border-width: 1.5px;
    border-color: rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f8faf9 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.ts-predict-in-tab .ts-predict__choice-fill , .ms-section--predict .ts-predict__choice-fill {
    opacity: 0.12;
}
.ts-predict-in-tab .ts-predict__choice-check , .ms-section--predict .ts-predict__choice-check {
    position: absolute;
    top: 0.28rem;
    right: 0.28rem;
    z-index: 2;
    display: none;
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 999px;
    background: #059669;
    box-shadow: 0 1px 4px rgba(5, 150, 105, 0.3);
}
.ts-predict-in-tab .ts-predict__choice-check::after , .ms-section--predict .ts-predict__choice-check::after {
    content: '';
    position: absolute;
    left: 0.28rem;
    top: 0.22rem;
    width: 0.26rem;
    height: 0.42rem;
    border: solid #fff;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}
.ts-predict-in-tab .ts-predict__choice.is-selected .ts-predict__choice-check, .ms-section--predict .ts-predict__choice.is-selected .ts-predict__choice-check,
.ts-predict-in-tab .ts-predict__choice input:checked + .ts-predict__choice-ui .ts-predict__choice-check , .ms-section--predict .ts-predict__choice input:checked + .ts-predict__choice-ui .ts-predict__choice-check {
    display: block;
}
.ts-predict-in-tab .ts-predict__choice--away.is-selected .ts-predict__choice-check, .ms-section--predict .ts-predict__choice--away.is-selected .ts-predict__choice-check,
.ts-predict-in-tab .ts-predict__choice--away input:checked + .ts-predict__choice-ui .ts-predict__choice-check , .ms-section--predict .ts-predict__choice--away input:checked + .ts-predict__choice-ui .ts-predict__choice-check {
    background: #2563eb;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.3);
}
.ts-predict-in-tab .ts-predict__choice--draw.is-selected .ts-predict__choice-check, .ms-section--predict .ts-predict__choice--draw.is-selected .ts-predict__choice-check,
.ts-predict-in-tab .ts-predict__choice--draw input:checked + .ts-predict__choice-ui .ts-predict__choice-check , .ms-section--predict .ts-predict__choice--draw input:checked + .ts-predict__choice-ui .ts-predict__choice-check {
    background: #6b7280;
    box-shadow: 0 1px 4px rgba(107, 114, 128, 0.25);
}
.ts-predict-in-tab .ts-predict__choice-body , .ms-section--predict .ts-predict__choice-body {
    gap: 0.12rem;
    padding-top: 0;
}
.ts-predict-in-tab .ts-predict__choice-name , .ms-section--predict .ts-predict__choice-name {
    order: 1;
    font-size: 0.68rem;
    font-weight: 800;
    color: #111827;
    max-width: 100%;
}
.ts-predict-in-tab .ts-predict__choice-pct , .ms-section--predict .ts-predict__choice-pct {
    order: 2;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}
.ts-predict-in-tab .ts-predict__choice--home .ts-predict__choice-pct , .ms-section--predict .ts-predict__choice--home .ts-predict__choice-pct {
    color: #047857;
}
.ts-predict-in-tab .ts-predict__choice--draw .ts-predict__choice-pct , .ms-section--predict .ts-predict__choice--draw .ts-predict__choice-pct {
    color: #4b5563;
}
.ts-predict-in-tab .ts-predict__choice--away .ts-predict__choice-pct , .ms-section--predict .ts-predict__choice--away .ts-predict__choice-pct {
    color: #1d4ed8;
}
.ts-predict-in-tab .ts-predict__choice-bar , .ms-section--predict .ts-predict__choice-bar {
    order: 3;
    display: block;
    margin-top: 0.02rem;
    height: 0.22rem;
    background: rgba(15, 23, 42, 0.07);
}
.ts-predict-in-tab .ts-predict__choice-count , .ms-section--predict .ts-predict__choice-count {
    order: 4;
    font-size: 0.6rem;
    font-weight: 600;
    color: #9ca3af;
}
.ts-predict-in-tab .ts-predict__choice-count::after , .ms-section--predict .ts-predict__choice-count::after {
    content: ' โหวต';
    font-weight: 500;
}
.ts-predict-in-tab .ts-predict__choice:hover .ts-predict__choice-ui , .ms-section--predict .ts-predict__choice:hover .ts-predict__choice-ui {
    border-color: #94a3b8;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}
.ts-predict-in-tab .ts-predict__form.is-display .ts-predict__choice:hover .ts-predict__choice-ui , .ms-section--predict .ts-predict__form.is-display .ts-predict__choice:hover .ts-predict__choice-ui {
    border-color: rgba(15, 23, 42, 0.08);
    transform: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.ts-predict-in-tab .ts-predict__choice--home:hover .ts-predict__choice-ui , .ms-section--predict .ts-predict__choice--home:hover .ts-predict__choice-ui {
    border-color: #34d399;
}
.ts-predict-in-tab .ts-predict__choice--away:hover .ts-predict__choice-ui , .ms-section--predict .ts-predict__choice--away:hover .ts-predict__choice-ui {
    border-color: #60a5fa;
}
.ts-predict-in-tab .ts-predict__choice.is-selected .ts-predict__choice-ui, .ms-section--predict .ts-predict__choice.is-selected .ts-predict__choice-ui,
.ts-predict-in-tab .ts-predict__choice input:checked + .ts-predict__choice-ui , .ms-section--predict .ts-predict__choice input:checked + .ts-predict__choice-ui {
    transform: translateY(-1px);
}
.ts-predict-in-tab .ts-predict__form.is-display .ts-predict__choice.is-selected .ts-predict__choice-ui, .ms-section--predict .ts-predict__form.is-display .ts-predict__choice.is-selected .ts-predict__choice-ui,
.ts-predict-in-tab .ts-predict__form.is-display .ts-predict__choice input:checked + .ts-predict__choice-ui , .ms-section--predict .ts-predict__form.is-display .ts-predict__choice input:checked + .ts-predict__choice-ui {
    transform: none;
}
.ts-predict-in-tab .ts-predict__choice--home.is-selected .ts-predict__choice-ui, .ms-section--predict .ts-predict__choice--home.is-selected .ts-predict__choice-ui,
.ts-predict-in-tab .ts-predict__choice--home input:checked + .ts-predict__choice-ui , .ms-section--predict .ts-predict__choice--home input:checked + .ts-predict__choice-ui {
    border-color: #059669;
    background: linear-gradient(180deg, #f0fdf6 0%, #d1fae5 100%);
    box-shadow:
        0 0 0 1px rgba(5, 150, 105, 0.16),
        0 4px 12px rgba(5, 150, 105, 0.1);
}
.ts-predict-in-tab .ts-predict__choice--draw.is-selected .ts-predict__choice-ui, .ms-section--predict .ts-predict__choice--draw.is-selected .ts-predict__choice-ui,
.ts-predict-in-tab .ts-predict__choice--draw input:checked + .ts-predict__choice-ui , .ms-section--predict .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.14),
        0 4px 12px rgba(107, 114, 128, 0.08);
}
.ts-predict-in-tab .ts-predict__choice--away.is-selected .ts-predict__choice-ui, .ms-section--predict .ts-predict__choice--away.is-selected .ts-predict__choice-ui,
.ts-predict-in-tab .ts-predict__choice--away input:checked + .ts-predict__choice-ui , .ms-section--predict .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.16),
        0 4px 12px rgba(37, 99, 235, 0.1);
}

/* Actions / clear */
.ts-predict-in-tab .ts-predict__actions , .ms-section--predict .ts-predict__actions {
    margin-top: 0;
}
.ts-predict-in-tab .ts-predict__clear , .ms-section--predict .ts-predict__clear {
    padding: 0.26rem 0.7rem;
    font-size: 0.66rem;
    border-color: #e5e7eb;
    color: #4b5563;
    background: linear-gradient(180deg, #fff 0%, #f9fafb 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.ts-predict-in-tab .ts-predict__clear:hover , .ms-section--predict .ts-predict__clear:hover {
    border-color: #fca5a5;
    color: #b91c1c;
    background: linear-gradient(180deg, #fff 0%, #fef2f2 100%);
}
.ts-predict-in-tab .ts-predict__msg , .ms-section--predict .ts-predict__msg {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0;
}
.ts-predict-in-tab .ts-predict__msg.is-ok , .ms-section--predict .ts-predict__msg.is-ok {
    color: #047857;
}
.ts-predict-in-tab .ts-predict__badge , .ms-section--predict .ts-predict__badge {
    font-size: 0.6rem;
    padding: 0.12rem 0.4rem;
}
.ts-predict-in-tab .ts-predict__quota , .ms-section--predict .ts-predict__quota {
    font-size: 0.62rem;
}

/* Status banners */
.ts-predict-in-tab .ts-predict__status , .ms-section--predict .ts-predict__status {
    margin-bottom: 0.05rem;
}
.ts-predict-in-tab .ts-predict__locked, .ms-section--predict .ts-predict__locked,
.ts-predict-in-tab .ts-predict__login , .ms-section--predict .ts-predict__login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.06rem;
    margin: 0;
    padding: 0.38rem 0.6rem;
    border-radius: 0.55rem;
    background: linear-gradient(180deg, #f8faf9 0%, #f1f5f3 100%);
    border: 1px solid #e5e7eb;
    font-size: 0.7rem;
}
.ts-predict-in-tab .ts-predict__locked--done , .ms-section--predict .ts-predict__locked--done {
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #a7f3d0;
}
.ts-predict-in-tab .ts-predict__locked--closed , .ms-section--predict .ts-predict__locked--closed {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    border-color: #dbe3ee;
}
.ts-predict-in-tab .ts-predict__locked--postponed , .ms-section--predict .ts-predict__locked--postponed {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fcd34d;
}
.ts-predict-in-tab .ts-predict__locked--early , .ms-section--predict .ts-predict__locked--early {
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #bae6fd;
}
.ts-predict-in-tab .ts-predict__locked-v , .ms-section--predict .ts-predict__locked-v {
    font-size: 0.74rem;
    font-weight: 800;
    color: #374151;
    text-align: center;
    line-height: 1.25;
}
.ts-predict-in-tab .ts-predict__locked-note , .ms-section--predict .ts-predict__locked-note {
    margin-top: 0.04rem;
    font-size: 0.62rem;
    font-weight: 500;
    color: #9ca3af;
    text-align: center;
    line-height: 1.3;
}
.ts-predict-in-tab .ts-predict__locked-pick , .ms-section--predict .ts-predict__locked-pick {
    margin-top: 0.12rem;
    font-size: 0.66rem;
    font-weight: 700;
    color: #047857;
    text-align: center;
}
.ts-predict-in-tab .ts-predict__locked--done .ts-predict__locked-v , .ms-section--predict .ts-predict__locked--done .ts-predict__locked-v {
    color: #047857;
}
.ts-predict-in-tab .ts-predict__locked--closed .ts-predict__locked-v , .ms-section--predict .ts-predict__locked--closed .ts-predict__locked-v {
    color: #374151;
}
.ts-predict-in-tab .ts-predict__locked--done.ts-predict__locked--closed .ts-predict__locked-v , .ms-section--predict .ts-predict__locked--done.ts-predict__locked--closed .ts-predict__locked-v {
    color: #047857;
}
.ts-predict-in-tab .ts-predict__login-btn , .ms-section--predict .ts-predict__login-btn {
    padding: 0.3rem 0.75rem;
    font-size: 0.7rem;
    background: linear-gradient(145deg, #2d6a4f, #1b4332);
    box-shadow: 0 2px 8px rgba(27, 67, 50, 0.22);
}

/* Wide: still full width, keep height compact */
@media (min-width: 768px) {
    .ms-section--predict {
        padding: 0.85rem 1rem 0.95rem;
    }
    .ts-predict-in-tab {
        padding: 0;
    }
    .ms-predict-card {
        padding: 0.8rem 1rem 0.85rem;
    }
    .ts-predict-in-tab .ts-predict__choices , .ms-section--predict .ts-predict__choices {
        gap: 0.5rem;
    }
    .ts-predict-in-tab .ts-predict__choice-ui , .ms-section--predict .ts-predict__choice-ui {
        padding: 0.48rem 0.55rem 0.45rem;
    }
    .ts-predict-in-tab .ts-predict__choice-name , .ms-section--predict .ts-predict__choice-name {
        font-size: 0.74rem;
    }
    .ts-predict-in-tab .ts-predict__choice-pct , .ms-section--predict .ts-predict__choice-pct {
        font-size: 1.35rem;
    }
    .ts-predict-in-tab .ts-predict__choice-bar , .ms-section--predict .ts-predict__choice-bar {
        height: 0.26rem;
    }
    .ts-predict-in-tab .ts-predict__choice-count , .ms-section--predict .ts-predict__choice-count {
        font-size: 0.64rem;
    }
}

@media (min-width: 1024px) {
    .ts-predict-in-tab .ts-predict__choices , .ms-section--predict .ts-predict__choices {
        gap: 0.55rem;
    }
    .ts-predict-in-tab .ts-predict__choice-ui , .ms-section--predict .ts-predict__choice-ui {
        padding: 0.52rem 0.7rem 0.48rem;
    }
    .ts-predict-in-tab .ts-predict__choice-pct , .ms-section--predict .ts-predict__choice-pct {
        font-size: 1.45rem;
    }
    .ts-predict-in-tab .ts-predict__choice-name , .ms-section--predict .ts-predict__choice-name {
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .ms-predict-card {
        padding: 0.6rem 0.65rem 0.65rem;
        border-radius: 0.85rem;
    }
    .ts-predict-in-tab .ts-predict__choices , .ms-section--predict .ts-predict__choices {
        gap: 0.3rem;
    }
    .ts-predict-in-tab .ts-predict__choice-ui , .ms-section--predict .ts-predict__choice-ui {
        padding: 0.35rem 0.28rem 0.32rem;
        border-radius: 0.6rem;
    }
    .ts-predict-in-tab .ts-predict__choice-pct , .ms-section--predict .ts-predict__choice-pct {
        font-size: 1.08rem;
    }
    .ts-predict-in-tab .ts-predict__choice-name , .ms-section--predict .ts-predict__choice-name {
        font-size: 0.62rem;
    }
    .ts-predict-in-tab .ts-predict__choice-count , .ms-section--predict .ts-predict__choice-count {
        font-size: 0.56rem;
    }
    .ts-predict-in-tab .ts-predict__choice-check , .ms-section--predict .ts-predict__choice-check {
        top: 0.22rem;
        right: 0.22rem;
        width: 0.88rem;
        height: 0.88rem;
    }
}

/* List cards: keep predict block tight */
.ls-match__predict {
    margin-top: 0.35rem;
}
.ls-match__predict .ts-predict {
    margin-top: 0.3rem;
    padding-top: 0.3rem;
}

/* Fixture detail nests inside card — remove double border radius feel */
.ts-match-single .ts-fx-detail {
    border-top: 1px solid #eef2f0;
    border-radius: 0;
    background: #fafbfa;
}

@media (max-width: 640px) {
    .ms-hero,
    .ts-match-single__hero {
        padding: 0.95rem 0.9rem 1rem;
    }
    .ms-team__logo {
        width: 3.4rem;
        height: 3.4rem;
        margin-bottom: 0.5rem;
    }
    .ms-team__name {
        font-size: 0.82rem;
    }
    .ms-board,
    .ts-match-single__board {
        gap: 0.4rem 0.55rem;
    }
    .ts-match-single__score,
    .ms-score {
        font-size: 2.15rem;
    }
    .ms-scorers li {
        font-size: 0.62rem;
    }
    .ms-hero__facts {
        font-size: 0.7rem;
    }
    .ms-section {
        padding: 1rem 0.95rem 1.1rem;
    }
}

/* Matches panel shell */
.matches-panel {
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}
/* Flat homepage/league-style: space between scoreboard cards */
.matches-panel--flat .match-list-wrapper,
.matches-panel--flat .football-match-list {
    gap: 0.65rem;
}
/* Legacy card shell (watch-live / following still use white card) */
.matches-panel:not(.matches-panel--flat):not(.matches-panel--empty) .match-list-wrapper {
    gap: 0;
}
.matches-panel--empty {
    background: transparent;
}

/* Mobile */
@media (max-width: 540px) {
    .ls-match {
        padding: 0.75rem 0.75rem 0.85rem;
    }
    .ls-match__board {
        grid-template-columns: minmax(0, 1fr) 4.5rem minmax(0, 1fr);
        gap: 0.25rem;
    }
    .ls-match__name {
        font-size: 0.82rem;
    }
    .ls-match__logo {
        width: 32px;
        height: 32px;
    }
    .ls-match__score {
        font-size: 1.35rem;
    }
    .ls-match__kickoff-time {
        font-size: 1.05rem;
    }
    .ls-match__team {
        gap: 0.4rem;
    }
}

/* AFM shortcode fallback polish */
.afm-fixture-item {
    background: #fff !important;
    border: 1px solid #e8ece9 !important;
    border-radius: 0.85rem !important;
    padding: 1rem 1.15rem !important;
    margin-bottom: 0.5rem !important;
    transition: box-shadow 0.15s ease;
}
.afm-fixture-item:hover {
    box-shadow: 0 8px 24px rgba(11, 31, 23, 0.08);
}
.afm-score.live,
.afm-live-badge {
    color: #15803d !important;
    font-weight: 700;
}

/* Line clamp helper (if Tailwind misses it) */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Comment form */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 0.6rem;
    font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #2D6A4F;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}
.comment-form .form-submit input[type="submit"],
.comment-form .submit {
    background: #2D6A4F;
    color: #fff;
    border: 0;
    border-radius: 0.6rem;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.comment-form .form-submit input[type="submit"]:hover,
.comment-form .submit:hover {
    background: #1B4332;
}

/* ── Flashscore-style league tabs ── */
.ts-tax-section--tabs {
    margin-top: 0.25rem;
}
.ts-league-tabs {
    margin-top: 0.15rem;
}
.ts-league-tabs__nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: #fff;
    border: 1px solid #e5ebe7;
    border-radius: 0.7rem;
    box-shadow: 0 1px 4px rgba(11, 31, 23, 0.05);
    margin-bottom: 0.85rem;
    position: sticky;
    /* Match .site-header__bar height (4rem normal / 2.75rem scrolled). */
    top: 4rem;
    z-index: 40;
    transition: top 0.25s ease, border-radius 0.2s ease, box-shadow 0.2s ease;
}
body:has(.site-header.is-scrolled) .ts-league-tabs__nav {
    top: 2.75rem;
    border-radius: 0 0 0.7rem 0.7rem;
    box-shadow: 0 4px 14px rgba(11, 31, 23, 0.12);
}
.admin-bar .ts-league-tabs__nav {
    top: calc(4rem + 32px);
}
.admin-bar:has(.site-header.is-scrolled) .ts-league-tabs__nav {
    top: calc(2.75rem + 32px);
}
@media screen and (max-width: 782px) {
    .admin-bar .ts-league-tabs__nav {
        top: calc(4rem + 46px);
    }
    .admin-bar:has(.site-header.is-scrolled) .ts-league-tabs__nav {
        top: calc(2.75rem + 46px);
    }
}
/* Admin bar scrolls away (absolute) under 600px — no extra chrome offset. */
@media screen and (max-width: 600px) {
    .admin-bar .ts-league-tabs__nav {
        top: 4rem;
    }
    .admin-bar:has(.site-header.is-scrolled) .ts-league-tabs__nav {
        top: 2.75rem;
    }
}
.ts-league-tabs__nav::-webkit-scrollbar {
    display: none;
}
.ts-league-tab-list[data-lazy="1"] .ts-league-tab-list__more {
    display: none;
}
.ts-league-list-placeholder {
    padding: 1rem 0.25rem;
}
.ts-league-summary-jump {
    display: flex;
    justify-content: center;
    padding: 0.75rem 0 0.15rem;
}
.ts-league-summary-jump__btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: #2D6A4F;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    padding: 0.35rem 0.6rem;
    border-radius: 0.4rem;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}
.ts-league-summary-jump__btn:hover {
    color: #1B4332;
    background: #f0f7f3;
    text-decoration: none;
}
.ts-league-tabs__tab {
    flex: 1 0 auto;
    min-width: 4.5rem;
    margin: 0;
    padding: 0.72rem 0.85rem;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.ts-league-tabs__tab:hover {
    color: #1B4332;
    background: #f7faf8;
}
.ts-league-tabs__tab.is-active {
    color: #0B1F17;
    border-bottom-color: #F59E0B;
    background: #fff;
}
.ts-league-tabs__tab:focus-visible {
    outline: 2px solid #F59E0B;
    outline-offset: -2px;
}
.ts-league-tabs__panel {
    display: none;
}
.ts-league-tabs__panel.is-active {
    display: block;
}
.ts-league-tabs__heading {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #1B4332;
}
.ts-league-round {
    margin-bottom: 1rem;
}
.ts-league-round:last-child {
    margin-bottom: 0;
}
.ts-league-round__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0.15rem 0.4rem;
    border-bottom: 1px solid #e8eeea;
    margin-bottom: 0.35rem;
}
.ts-league-round__title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: 0.02em;
}
.ts-league-round__range {
    font-size: 0.72rem;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
}
.ts-league-tab-list__more {
    display: flex;
    justify-content: center;
    padding: 0.85rem 0 0.35rem;
}
.ts-league-load-more {
    appearance: none;
    border: 1px solid #c5d5cc;
    background: #fff;
    color: #1B4332;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.55rem 1.35rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease, opacity 0.12s ease;
}
.ts-league-load-more:hover:not(:disabled) {
    background: #f0f7f3;
    border-color: #2D6A4F;
}
.ts-league-load-more:disabled {
    opacity: 0.55;
    cursor: wait;
}
.ts-league-load-more.is-loading {
    opacity: 0.7;
}

/* Standings */
.ts-standings {
    background: #fff;
    border: 1px solid #e5ebe7;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(11, 31, 23, 0.05);
    margin-bottom: 0.85rem;
}
.ts-standings__group {
    margin: 0;
    padding: 0.55rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1B4332;
    background: #f4f7f5;
    border-bottom: 1px solid #e5ebe7;
}
.ts-standings__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.ts-standings__table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.8rem;
    min-width: 320px;
}
/* Fixed col widths so every group table aligns the same */
.ts-standings__col--rank {
    width: 2.25rem;
}
.ts-standings__col--team {
    width: auto;
}
.ts-standings__col--num {
    width: 2.35rem;
}
.ts-standings__col--pts {
    width: 2.75rem;
}
.ts-standings__col--form {
    width: 6.25rem;
}
.ts-standings__th,
.ts-standings__td {
    padding: 0.45rem 0.25rem;
    text-align: center;
    white-space: nowrap;
    border-bottom: 1px solid #f0f3f1;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}
.ts-standings__th {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
    background: #fafbfa;
}
.ts-standings__th--team,
.ts-standings__td--team {
    text-align: left;
    padding-left: 0.55rem;
    padding-right: 0.4rem;
}
.ts-standings__th--rank,
.ts-standings__td--rank {
    color: #6b7280;
    font-weight: 700;
}
.ts-standings__th--num,
.ts-standings__td--num {
    font-variant-numeric: tabular-nums;
}
.ts-standings__th--pts,
.ts-standings__td--pts {
    font-weight: 800;
    color: #0B1F17;
    font-variant-numeric: tabular-nums;
}
.ts-standings__th--form,
.ts-standings__td--form {
    padding-right: 0.45rem;
    padding-left: 0.2rem;
}
.ts-form {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.ts-form--empty {
    color: #9ca3af;
}
.ts-form__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 0.2rem;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    background: #9ca3af;
}
.ts-form__dot.is-w {
    background: #16a34a;
}
.ts-form__dot.is-d {
    background: #9ca3af;
}
.ts-form__dot.is-l {
    background: #ef4444;
}
.ts-standings__team {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    min-width: 0;
    max-width: 100%;
}
.ts-standings__team > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.ts-standings__team:hover {
    color: #1B4332;
}
.ts-standings__logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}
.ts-standings__tr.is-zone .ts-standings__td--rank {
    box-shadow: inset 3px 0 0 #22c55e;
}
.ts-standings__tr.is-relegation .ts-standings__td--rank {
    box-shadow: inset 3px 0 0 #ef4444;
}
.ts-standings__tr:hover {
    background: #f7faf8;
}
@media (max-width: 520px) {
    .ts-standings__th--hide-sm,
    .ts-standings__td--hide-sm,
    .ts-standings__col--hide-sm {
        display: none;
        width: 0;
    }
    .ts-standings__col--num {
        width: 2.15rem;
    }
    .ts-standings__col--pts {
        width: 2.5rem;
    }
    .ts-standings__table {
        min-width: 0;
    }
    .ts-league-tabs__tab {
        font-size: 0.72rem;
        padding: 0.65rem 0.65rem;
        min-width: 4rem;
    }
}

/* Bracket under Standings tab */
.ts-bracket-section {
    margin-top: 1.35rem;
    padding-top: 1.1rem;
    border-top: 1px solid #e5ebe7;
}
.ts-bracket-section__title {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0B1F17;
    letter-spacing: 0.01em;
}

/* Knockout bracket
 * Height is driven by the earliest round (--ts-bracket-max-slots).
 * Each later round divides the same height into fewer equal slots so
 * match cards never stack/overlap. */
.ts-bracket {
    margin-top: 0.15rem;
    --ts-bracket-slot-h: 4.65rem;
    --ts-bracket-col-w: 11.5rem;
    --ts-bracket-gap: 1.25rem;
}
.ts-bracket__scroll-wrap {
    position: relative;
    margin: 0 -0.15rem;
    border-radius: 0.65rem;
}
.ts-bracket__scroll {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.75rem;
    scrollbar-width: thin;
}
/* First-visit scroll teaching overlay (original v2.12.49) */
.ts-bracket__overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.85rem;
    background: rgba(11, 31, 23, 0.48);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 0.65rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.ts-bracket__overlay.is-visible {
    opacity: 1;
    visibility: visible;
}
.ts-bracket__overlay.is-hiding {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.ts-bracket__overlay-card {
    max-width: 16.5rem;
    width: 100%;
    padding: 1rem 1.05rem 0.9rem;
    background: #fff;
    border: 1px solid #e5ebe7;
    border-radius: 0.85rem;
    box-shadow: 0 10px 28px rgba(11, 31, 23, 0.22);
    text-align: center;
    pointer-events: auto;
}
.ts-bracket__overlay-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    height: 3.1rem;
    margin: 0 0 0.55rem;
}
.ts-bracket__overlay-arrow {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1;
    color: #1B4332;
    opacity: 0.35;
    animation: ts-bracket-arrow-pulse 1.35s ease-in-out infinite;
}
.ts-bracket__overlay-arrow--left {
    animation-delay: 0s;
}
.ts-bracket__overlay-arrow--right {
    animation-delay: 0.2s;
}
.ts-bracket__overlay-hand {
    position: relative;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: rgba(27, 67, 50, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ts-bracket-hand-swipe 1.5s ease-in-out infinite;
}
.ts-bracket__overlay-finger {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: #1B4332;
    box-shadow: 0 0 0 6px rgba(27, 67, 50, 0.12);
}
.ts-bracket__overlay-title {
    margin: 0 0 0.25rem;
    font-size: 0.88rem;
    font-weight: 800;
    color: #0B1F17;
    line-height: 1.35;
}
.ts-bracket__overlay-sub {
    margin: 0 0 0.75rem;
    font-size: 0.72rem;
    color: #6b7280;
    line-height: 1.4;
}
.ts-bracket__overlay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7.5rem;
    padding: 0.45rem 0.95rem;
    border: 0;
    border-radius: 999px;
    background: #1B4332;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.ts-bracket__overlay-btn:hover {
    background: #163628;
}
.ts-bracket__overlay-btn:active {
    transform: scale(0.98);
}
@keyframes ts-bracket-hand-swipe {
    0%, 100% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
}
@keyframes ts-bracket-arrow-pulse {
    0%, 100% { opacity: 0.28; transform: scale(0.96); }
    50% { opacity: 0.9; transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
    .ts-bracket__overlay-hand,
    .ts-bracket__overlay-arrow {
        animation: none;
    }
}
.ts-bracket__board {
    display: flex;
    align-items: flex-start;
    gap: var(--ts-bracket-gap);
    width: max-content;
    min-width: 100%;
    padding: 0.15rem 0.25rem 0.5rem;
    /* Shared column body height = max slots × unit height */
    --ts-bracket-body-h: calc(var(--ts-bracket-max-slots, 8) * var(--ts-bracket-slot-h));
}
.ts-bracket__round {
    display: flex;
    flex-direction: column;
    width: var(--ts-bracket-col-w);
    flex: 0 0 var(--ts-bracket-col-w);
    position: relative;
}
.ts-bracket__round + .ts-bracket__round::before {
    content: "";
    position: absolute;
    left: calc(var(--ts-bracket-gap) / -2);
    top: 2.15rem;
    bottom: 0.25rem;
    width: 0;
    border-left: 1px dashed #d5ddd8;
    pointer-events: none;
    transform: translateX(-50%);
}
.ts-bracket__round-title {
    margin: 0 0 0.5rem;
    padding: 0.35rem 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #1B4332;
    background: #f4f7f5;
    border: 1px solid #e5ebe7;
    border-radius: 0.45rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 0 auto;
}
.ts-bracket__slots {
    display: flex;
    flex-direction: column;
    height: var(--ts-bracket-body-h);
    min-height: var(--ts-bracket-body-h);
    flex: 0 0 auto;
}
.ts-bracket__slot {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0.2rem 0;
    box-sizing: border-box;
    /* Keep cards from bleeding into the next slot */
    overflow: hidden;
}
.ts-bracket__match {
    display: block;
    width: 100%;
    max-height: 100%;
    background: #fff;
    border: 1px solid #e5ebe7;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(11, 31, 23, 0.05);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
}
a.ts-bracket__match:hover {
    border-color: #9ec5b0;
    box-shadow: 0 2px 8px rgba(27, 67, 50, 0.1);
}
.ts-bracket__match.is-live {
    border-color: #f59e0b;
}
.ts-bracket__match--tbd {
    opacity: 0.72;
    background: #fafbfa;
}
.ts-bracket__tie {
    width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    overflow: hidden;
}
.ts-bracket__match--leg {
    position: relative;
}
.ts-bracket__leg-label {
    display: block;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
    background: #f4f7f5;
    padding: 0.1rem 0.35rem;
    border-bottom: 1px solid #eef2ef;
    line-height: 1.2;
}
.ts-bracket__team {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.38rem;
    min-height: 1.45rem;
    border-bottom: 1px solid #f0f3f1;
    line-height: 1.2;
}
.ts-bracket__team:last-of-type {
    border-bottom: 0;
}
.ts-bracket__logo {
    width: 15px;
    height: 15px;
    object-fit: contain;
    flex-shrink: 0;
}
.ts-bracket__logo--empty {
    display: inline-block;
    border-radius: 50%;
    background: #e8eee9;
}
/* Default (upcoming / no result yet): normal weight */
.ts-bracket__name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.72rem;
    font-weight: 500;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ts-bracket__name--tbd {
    color: #9ca3af;
    font-weight: 500;
}
.ts-bracket__score {
    flex-shrink: 0;
    min-width: 1.05rem;
    text-align: right;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    color: #6b7280;
}
.ts-bracket__score strong {
    font-weight: 600;
    color: #6b7280;
}
/* Advanced (winner): dark + bold */
.ts-bracket__team.is-winner .ts-bracket__name {
    font-weight: 800;
    color: #0B1F17;
}
.ts-bracket__team.is-winner .ts-bracket__score,
.ts-bracket__team.is-winner .ts-bracket__score strong {
    font-weight: 800;
    color: #0B1F17;
}
.ts-bracket__team.is-winner .ts-bracket__logo {
    opacity: 1;
}
/* Eliminated (out): normal muted — not emphasized */
.ts-bracket__team.is-out .ts-bracket__name {
    font-weight: 500;
    color: #9ca3af;
}
.ts-bracket__team.is-out .ts-bracket__score,
.ts-bracket__team.is-out .ts-bracket__score strong {
    font-weight: 500;
    color: #9ca3af;
}
.ts-bracket__team.is-out .ts-bracket__logo {
    opacity: 0.55;
}
/* Unfinished match: both sides readable, equal weight */
.ts-bracket__match:not(.is-finished) .ts-bracket__name {
    font-weight: 600;
    color: #1f2937;
}
.ts-bracket__match:not(.is-finished) .ts-bracket__score strong {
    font-weight: 600;
    color: #374151;
}
.ts-bracket__pen {
    display: inline;
    margin-left: 0.1rem;
    font-size: 0.58rem;
    font-weight: 600;
    color: #6b7280;
}
.ts-bracket__score-dash {
    color: #c4cbc6;
}
/* Compact kickoff / AET / PEN strip */
.ts-bracket__meta {
    display: block;
    font-size: 0.58rem;
    line-height: 1.2;
    color: #6b7280;
    text-align: center;
    padding: 0.12rem 0.3rem 0.18rem;
    border-top: 1px solid #f0f3f1;
    background: #fafbfa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Final column: final + optional 3rd stacked near vertical center */
.ts-bracket__slot--final {
    overflow: visible;
    align-items: center;
}
.ts-bracket__final-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
}
/* Shared callout frame: นัดชิงชนะเลิศ / นัดชิงที่ 3 */
.ts-bracket__callout {
    padding: 0.45rem 0.4rem 0.5rem;
    background: #fafbfa;
    border: 1px dashed #cfd8d2;
    border-radius: 0.5rem;
}
.ts-bracket__callout-title {
    margin: 0 0 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: #4b5563;
    text-align: center;
    letter-spacing: 0.02em;
}
.ts-bracket__callout .ts-bracket__match {
    box-shadow: none;
}
.ts-bracket-placeholder {
    padding: 1rem 0;
}

@media (max-width: 520px) {
    .ts-bracket {
        --ts-bracket-slot-h: 4.4rem;
        --ts-bracket-col-w: 10.5rem;
        --ts-bracket-gap: 0.85rem;
    }
}

/* ── Flashscore-style team page extras ── */
.ts-tax-page--team .ts-tax-hero {
    margin-bottom: 0.85rem;
}
.ts-team-tabs .ts-league-tabs__heading {
    margin-bottom: 0.55rem;
}
.ts-team-sum-block {
    margin-bottom: 1.15rem;
    padding-bottom: 0.35rem;
}
.ts-team-sum-block:last-child {
    margin-bottom: 0.25rem;
}
.ts-team-sum-block__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}
.ts-team-sum-block__head .ts-league-tabs__heading {
    margin-bottom: 0.45rem;
}

/* Next match card */
.ts-team-next {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e5ebe7;
    border-radius: 0.85rem;
    padding: 0.85rem 1rem 1rem;
    box-shadow: 0 2px 8px rgba(11, 31, 23, 0.05);
    transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}
a.ts-team-next:hover {
    border-color: #c5d9ce;
    box-shadow: 0 4px 14px rgba(11, 31, 23, 0.08);
    transform: translateY(-1px);
}
.ts-team-next__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.55rem;
    margin-bottom: 0.45rem;
}
.ts-team-next__comp {
    font-size: 0.72rem;
    font-weight: 750;
    color: #2D6A4F;
    letter-spacing: 0.01em;
}
.ts-team-next__round {
    font-size: 0.68rem;
    font-weight: 650;
    color: #9ca3af;
}
.ts-team-next__when {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.55rem;
    margin-bottom: 0.7rem;
}
.ts-team-next__date {
    font-size: 0.8rem;
    font-weight: 700;
    color: #4b5563;
}
.ts-team-next__time {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0B1F17;
    letter-spacing: -0.02em;
}
.ts-team-next__board {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem 0.75rem;
    align-items: center;
}
.ts-team-next__side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    text-align: center;
}
.ts-team-next__logo {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
}
.ts-team-next__name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #374151;
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.ts-team-next__side.is-focus .ts-team-next__name {
    color: #0B1F17;
    font-weight: 800;
}
.ts-team-next__vs {
    font-size: 0.72rem;
    font-weight: 800;
    color: #9ca3af;
    letter-spacing: 0.06em;
}

/* Form card */
.ts-team-form-card {
    background: #fff;
    border: 1px solid #e5ebe7;
    border-radius: 0.85rem;
    padding: 0.8rem 0.9rem 0.65rem;
    box-shadow: 0 1px 4px rgba(11, 31, 23, 0.04);
}
.ts-team-form-card__statline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.55rem;
}
.ts-team-form-card__stat {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 750;
    background: #f3f4f6;
    color: #6b7280;
}
.ts-team-form-card__stat b {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.ts-team-form-card__stat--w {
    background: #d1fae5;
    color: #047857;
}
.ts-team-form-card__stat--d {
    background: #f3f4f6;
    color: #4b5563;
}
.ts-team-form-card__stat--l {
    background: #fee2e2;
    color: #b91c1c;
}
.ts-team-form-card__stat--gd {
    margin-left: auto;
    background: #ecfdf5;
    color: #065f46;
}
.ts-team-form-card__dots {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.1rem 0;
}
.ts-team-form-card__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.45rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    line-height: 1;
}
.ts-team-form-card__dot--w { background: #059669; }
.ts-team-form-card__dot--d { background: #9ca3af; }
.ts-team-form-card__dot--l { background: #dc2626; }
a.ts-team-form-card__dot:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}
.ts-team-form-card__hint {
    margin: 0.45rem 0 0;
    font-size: 0.65rem;
    font-weight: 650;
    color: #b0b7c0;
}

/* Archive seasons */
.ts-league-archive {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}
.ts-league-archive__link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    background: #fff;
    border: 1px solid #e5ebe7;
    border-radius: 0.65rem;
    text-decoration: none;
    color: #111827;
    transition: border-color 0.12s ease, background 0.12s ease;
}
.ts-league-archive__link:hover {
    border-color: #2D6A4F;
    background: #f7faf8;
}
.ts-league-archive__item.is-active .ts-league-archive__link {
    border-color: #F59E0B;
    background: #fffbeb;
}
.ts-league-archive__year {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.02em;
    min-width: 3.5rem;
}
.ts-league-archive__meta {
    flex: 1 1 auto;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
}
.ts-league-archive__badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: #92400e;
    background: #fde68a;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}


/* Highlight chips on dark match hero */
.ms-hl {
    margin: 0.65rem 0 0;
    padding: 0.75rem 0.8rem 0.8rem;
    border-radius: 0.85rem;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(147, 197, 253, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 8px 24px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.ms-hl__head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0 0 0.55rem;
}
.ms-hl__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.35);
    color: #bfdbfe;
}
.ms-hl__badge svg { display: block; }
.ms-hl__title {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(191, 219, 254, 0.92);
}
.ms-hl__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.ms-hl__item { margin: 0; padding: 0; max-width: 100%; }
.ms-hl__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 16rem;
    padding: 0.38rem 0.7rem 0.38rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.ms-hl__ico {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
}
.ms-hl__ico svg { display: block; }
.ms-hl__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ms-hl__ext {
    flex: 0 0 auto;
    font-size: 0.72rem;
    opacity: 0.75;
    font-weight: 700;
}
.ms-hl__chip--link {
    color: #0c1a3a;
    background: linear-gradient(180deg, #bfdbfe 0%, #93c5fd 100%);
    border-color: rgba(191, 219, 254, 0.7);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 4px 12px rgba(37, 99, 235, 0.2);
}
.ms-hl__chip--link .ms-hl__ico {
    background: rgba(12, 26, 58, 0.12);
    color: #1e3a8a;
}
.ms-hl__chip--link:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06), 0 8px 18px rgba(37, 99, 235, 0.28);
    color: #0c1a3a;
}
.ms-hl__chip--link:hover .ms-hl__ext { opacity: 1; }
.ms-hl__chip--name {
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
}
@media (max-width: 480px) {
    .ms-hl { padding: 0.65rem 0.65rem 0.7rem; }
    .ms-hl__chip { max-width: 100%; font-size: 0.74rem; }
}

/* Staff quick panel on match-single */
.ms-staff-media {
    margin: 0.85rem 0 0;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ecfdf5;
    text-align: left;
}
.ms-staff-media__sum {
    cursor: pointer;
    padding: 0.55rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    list-style: none;
    user-select: none;
}
.ms-staff-media__sum::-webkit-details-marker { display: none; }
.ms-staff-media__body {
    padding: 0 0.75rem 0.75rem;
    display: grid;
    gap: 0.55rem;
}
.ms-staff-media__label {
    display: grid;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 650;
    color: rgba(236, 253, 245, 0.88);
}
.ms-staff-media__ta {
    width: 100%;
    min-height: 4.5rem;
    padding: 0.5rem 0.6rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.28);
    color: #f8fafc;
    font-size: 0.78rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    line-height: 1.4;
    resize: vertical;
}
.ms-staff-media__ta::placeholder { color: rgba(248, 250, 252, 0.4); }
.ms-staff-media__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.ms-staff-media__save {
    appearance: none;
    border: 0;
    border-radius: 0.5rem;
    padding: 0.4rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    background: linear-gradient(180deg, #86efac 0%, #4ade80 100%);
    color: #052e16;
    cursor: pointer;
}
.ms-staff-media__save:disabled { opacity: 0.6; cursor: wait; }
.ms-staff-media__msg {
    font-size: 0.75rem;
    font-weight: 600;
    color: #bbf7d0;
}
.ms-staff-media__msg.is-err { color: #fecaca; }
