@font-face {
    font-family: "Exo 2";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("fonts/exo2-cyrillic-ext.woff2") format("woff2");
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
    font-family: "Exo 2";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("fonts/exo2-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Exo 2";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("fonts/exo2-vietnamese.woff2") format("woff2");
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
    font-family: "Exo 2";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("fonts/exo2-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Exo 2";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("fonts/exo2-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --tcl-bg: #ffffff;
    --tcl-surface: #ffffff;
    --tcl-soft: #f6f8fa;
    --tcl-border: #dfe4ea;
    --tcl-border-strong: #c8d0d8;
    --tcl-text: #171b20;
    --tcl-muted: #5c6670;
    --tcl-subtle: #7f8994;
    --tcl-red: #e30613;
    --tcl-red-dark: #b50510;
    --tcl-blue: #0969da;
    --tcl-purple: #7c3aed;
    --tcl-green: #0f8f61;
    --tcl-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
    --tcl-radius: 8px;
    --tcl-font: "Exo 2", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    background: transparent;
}

body {
    margin: 0;
    background: transparent;
    color: var(--tcl-text);
    font-family: var(--tcl-font);
    font-size: 15px;
    line-height: 1.4;
}

button,
input,
select {
    font: inherit;
}

.tcl-widget {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px 8px 24px;
}

.tcl-title {
    margin: 0 0 24px;
    color: #2d3339;
    font-size: 24px;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
}

.tcl-controls {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

.tcl-topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.tcl-segment,
.tcl-package-row {
    display: inline-grid;
    grid-auto-flow: column;
    gap: 2px;
    align-items: center;
    width: max-content;
    padding: 3px;
    border: 1px solid var(--tcl-border);
    border-radius: var(--tcl-radius);
    background: var(--tcl-soft);
}

.tcl-segment-button,
.tcl-package-button,
.tcl-clear {
    min-height: 36px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--tcl-muted);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.tcl-segment-button {
    min-width: 44px;
    padding: 0 12px;
}

.tcl-package-button {
    min-width: 104px;
    padding: 0 16px;
}

.tcl-segment-button[aria-checked="true"],
.tcl-package-button[aria-checked="true"] {
    background: var(--tcl-surface);
    color: var(--tcl-text);
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.12);
}

.tcl-search {
    position: relative;
    display: block;
    min-width: 0;
}

.tcl-search input {
    width: 100%;
    height: 46px;
    padding: 0 16px 0 44px;
    border: 1px solid var(--tcl-border-strong);
    border-radius: var(--tcl-radius);
    background: var(--tcl-surface);
    color: var(--tcl-text);
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.tcl-search input::placeholder {
    color: var(--tcl-subtle);
}

.tcl-search input:focus,
.tcl-select-wrap select:focus {
    border-color: var(--tcl-blue);
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.12);
}

.tcl-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    width: 18px;
    height: 18px;
    color: var(--tcl-subtle);
    transform: translateY(-50%);
    pointer-events: none;
}

.tcl-search-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.tcl-search-icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.tcl-package-row {
    max-width: 100%;
    overflow-x: auto;
}

.tcl-filter-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.tcl-select-wrap {
    display: grid;
    gap: 6px;
    color: var(--tcl-muted);
    font-size: 12px;
    font-weight: 650;
}

.tcl-select-wrap select {
    width: 100%;
    height: 42px;
    padding: 0 36px 0 12px;
    border: 1px solid var(--tcl-border-strong);
    border-radius: var(--tcl-radius);
    background: var(--tcl-surface);
    color: var(--tcl-text);
    outline: none;
}

.tcl-status-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    margin: 4px 0 14px;
}

.tcl-result-count {
    margin: 0;
    color: var(--tcl-muted);
    font-size: 14px;
}

.tcl-clear {
    min-height: 32px;
    padding: 0 10px;
    color: var(--tcl-blue);
}

.tcl-clear:hover,
.tcl-segment-button:hover,
.tcl-package-button:hover {
    background: rgba(9, 105, 218, 0.08);
    color: var(--tcl-text);
}

.tcl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}

.tcl-card {
    display: grid;
    gap: 13px;
    align-content: start;
    min-height: 270px;
    padding: 18px;
    border: 1px solid var(--tcl-border);
    border-radius: var(--tcl-radius);
    background: var(--tcl-surface);
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tcl-card:hover {
    border-color: var(--tcl-border-strong);
    box-shadow: var(--tcl-shadow);
    transform: translateY(-1px);
}

.tcl-card-top {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.tcl-logo-box {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 94px;
    padding: 10px 8px;
    border: 1px solid rgba(223, 228, 234, 0.72);
    border-radius: var(--tcl-radius);
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.tcl-logo-box img {
    display: block;
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
}

.tcl-logo-fallback {
    display: grid;
    place-items: center;
    width: 82px;
    height: 52px;
    border: 1px solid var(--tcl-border);
    border-radius: var(--tcl-radius);
    background: var(--tcl-soft);
    color: var(--tcl-muted);
    font-size: 18px;
    font-weight: 750;
}

.tcl-card-main {
    display: block;
}

.tcl-card h2 {
    min-width: 0;
    margin: 0;
    color: var(--tcl-text);
    font-size: 16.5px;
    font-weight: 720;
    line-height: 1.25;
}

.tcl-number-plate {
    display: grid;
    align-content: center;
    justify-items: start;
    min-height: 94px;
    padding: 11px 12px 10px;
    border: 1px solid rgba(227, 6, 19, 0.24);
    border-radius: var(--tcl-radius);
    background:
        linear-gradient(180deg, rgba(227, 6, 19, 0.08) 0%, rgba(227, 6, 19, 0.035) 100%),
        #ffffff;
    box-shadow: inset 4px 0 0 var(--tcl-red);
}

.tcl-number-label {
    color: var(--tcl-muted);
    font-size: 11px;
    font-weight: 760;
    letter-spacing: 0;
    line-height: 1.1;
    text-transform: uppercase;
}

.tcl-number-value {
    color: var(--tcl-red-dark);
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.tcl-number-package {
    margin-top: 4px;
    color: var(--tcl-muted);
    font-size: 11px;
    font-weight: 720;
    line-height: 1.15;
}

.tcl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--tcl-muted);
    font-size: 13px;
}

.tcl-dot {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: var(--tcl-border-strong);
}

.tcl-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tcl-badge,
.tcl-replay {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    min-height: 26px;
    padding: 0 8px;
    border: 1px solid var(--tcl-border);
    border-radius: 6px;
    background: var(--tcl-soft);
    color: var(--tcl-muted);
    font-size: 12px;
    font-weight: 680;
}

.tcl-badge-light {
    border-color: rgba(9, 105, 218, 0.16);
    background: rgba(9, 105, 218, 0.045);
    color: #27629c;
}

.tcl-badge-premium {
    border-color: rgba(124, 58, 237, 0.16);
    background: rgba(124, 58, 237, 0.045);
    color: #62419a;
}

.tcl-replay-live {
    border-color: rgba(15, 143, 97, 0.22);
    background: rgba(15, 143, 97, 0.08);
    color: #08724d;
}

.tcl-replay-catchup {
    border-color: rgba(227, 6, 19, 0.2);
    background: rgba(227, 6, 19, 0.07);
    color: #b50510;
}

.tcl-empty {
    grid-column: 1 / -1;
    padding: 36px 18px;
    border: 1px dashed var(--tcl-border-strong);
    border-radius: var(--tcl-radius);
    background: var(--tcl-soft);
    color: var(--tcl-muted);
    text-align: center;
}

.tcl-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;
}

@media (max-width: 760px) {
    .tcl-widget {
        padding: 4px 8px 18px;
    }

    .tcl-topbar,
    .tcl-filter-row {
        grid-template-columns: 1fr;
    }

    .tcl-segment,
    .tcl-package-row {
        width: 100%;
    }

    .tcl-segment {
        grid-template-columns: repeat(2, 1fr);
    }

    .tcl-package-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .tcl-package-button {
        min-width: 0;
        padding: 0 8px;
        font-size: 13px;
    }

    .tcl-status-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .tcl-grid {
        grid-template-columns: 1fr;
    }

    .tcl-card {
        min-height: 0;
        padding: 16px;
    }

    .tcl-card-top {
        grid-template-columns: 98px minmax(0, 1fr);
    }

    .tcl-number-plate,
    .tcl-logo-box {
        min-height: 90px;
    }

    .tcl-number-value {
        font-size: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
