/* SportData API - Minimal & Clean Base Theme for Easy Customization */

:root {
    --sd-bg-body: #ffffff;
    --sd-bg-container: #ffffff;
    --sd-bg-header: #f8fafc;
    --sd-bg-row: #ffffff;
    --sd-bg-hover: #f1f5f9;
    --sd-bg-badge: #e2e8f0;

    --sd-text-main: #1e293b;
    --sd-text-sub: #64748b;
    --sd-text-muted: #94a3b8;

    --sd-accent: #2563eb;
    --sd-live: #dc2626;
    --sd-green: #16a34a;
    --sd-border: #e2e8f0;

    --sd-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    --sd-font: inherit;
}

/* Container */
.sportdata-container {
    font-family: var(--sd-font);
    background: var(--sd-bg-body);
    color: var(--sd-text-main);
    border-radius: 8px;
    /* overflow: hidden; -- Removed to allow dropdown to show */
    margin: 20px 0;
    box-shadow: var(--sd-shadow);
    border: 1px solid var(--sd-border);
}

/* Tabs Navigation */
.sportdata-tabs-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--sd-bg-container);
    border-bottom: 1px solid var(--sd-border);
    flex-wrap: wrap;
    gap: 15px;
}

.sportdata-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sportdata-tab {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--sd-text-sub);
    white-space: nowrap;
    transition: all 0.2s;
}

.sportdata-tab:hover {
    color: var(--sd-text-main);
    background: var(--sd-bg-badge);
}

.sportdata-tab.active {
    background: var(--sd-accent);
    color: #ffffff;
}

/* Filters */
.sportdata-filters {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-input,
.league-filter {
    background: var(--sd-bg-badge);
    border: 1px solid var(--sd-border);
    color: var(--sd-text-main);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}

.league-filter {
    min-width: 150px;
}

/* League Group */
.sportdata-league-group {
    margin-bottom: 2px;
}

.league-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--sd-bg-header);
    border-bottom: 1px solid var(--sd-border);
}

.league-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.league-logo-wrapper {
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 4px;
    /* Slightly rounded for league IDs */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    overflow: hidden;
    flex-shrink: 0;
}

.league-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.league-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.title-main {
    font-size: 14px;
    font-weight: 700;
    color: var(--sd-text-main);
    line-height: 1.2;
}

.title-sub {
    font-size: 11px;
    color: var(--sd-text-sub);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.view-league-link {
    font-size: 12px;
    color: var(--sd-accent);
    text-decoration: none;
    font-weight: 500;
}

.view-league-link:hover {
    text-decoration: underline;
}

/* Match Row */
.sportdata-match-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--sd-bg-row);
    border-bottom: 1px solid var(--sd-border);
    transition: background 0.2s;
}

.sportdata-match-row:hover {
    background: var(--sd-bg-hover);
}

.sportdata-match-row:last-child {
    border-bottom: none;
}

/* Columns */
.match-col-time {
    width: 50px;
    font-size: 12px;
    color: var(--sd-text-sub);
    font-weight: 500;
}

.match-col-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.match-col-status {
    width: 60px;
    display: flex;
    justify-content: flex-end;
}

/* Teams */
.match-team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.match-team.home {
    justify-content: flex-end;
    text-align: right;
}

.match-team.away {
    justify-content: flex-start;
    text-align: left;
}

.team-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--sd-text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-name.winner {
    font-weight: 700;
}

.team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Score */
.match-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 60px;
}

.score-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--sd-text-main);
    width: 15px;
    text-align: center;
}

.score-val.winner {
    color: var(--sd-accent);
}

.score-divider {
    color: var(--sd-text-muted);
    font-size: 14px;
}

/* Status Badges */
.status-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--sd-bg-badge);
    color: var(--sd-text-sub);
    min-width: 32px;
    text-align: center;
}

.status-live {
    background: rgba(255, 69, 0, 0.15);
    color: var(--sd-live);
}

.status-ft,
.status-finished {
    background: rgba(63, 185, 80, 0.1);
    color: var(--sd-green);
}

/* Live Row special styling */
.sportdata-match-row.is-live {
    border-left: 3px solid var(--sd-live);
}

.sportdata-match-row.is-live .match-col-time {
    color: var(--sd-live);
    animation: flash 2s infinite;
}

@keyframes flash {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Standings Premium Table */
.sportdata-standings {
    background: var(--sd-bg-container);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--sd-border);
    margin: 20px 0;
}

.sportdata-standings .sportdata-header {
    padding: 12px 16px;
    background: var(--sd-bg-header);
    border-bottom: 1px solid var(--sd-border);
}

.sportdata-standings .league-badge {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sportdata-standings .league-logo-wrapper {
    width: 40px;
    height: 40px;
}

.sportdata-standings .league-badge h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sd-text-main);
}

.standings-table-wrapper {
    overflow-x: auto;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.standings-table th {
    background: transparent;
    padding: 10px 8px;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--sd-text-sub);
    border-bottom: 2px solid var(--sd-border);
    font-weight: 600;
    text-align: center;
}

.standings-table th.col-team {
    text-align: left;
}

.standings-table td {
    padding: 10px 8px;
    font-size: 13px;
    border-bottom: 1px solid var(--sd-border);
    color: var(--sd-text-main);
    text-align: center;
    vertical-align: middle;
}

.standings-table tr:last-child td {
    border-bottom: none;
}

.standings-table tr:hover {
    background: var(--sd-bg-hover);
}

.standings-table .col-pos {
    width: 40px;
    color: var(--sd-text-sub);
    font-weight: 500;
}

.standings-table .col-team {
    text-align: left;
    min-width: 150px;
}

.standings-table .team-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.standings-table .team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.standings-table .team-name {
    font-weight: 600;
}

.standings-table .col-pts {
    font-weight: 700;
    color: var(--sd-accent);
    font-size: 14px;
}

.standings-table .col-stat {
    width: 32px;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    color: var(--sd-text-sub);
}

.standings-table .col-form {
    min-width: 130px;
    padding-left: 15px !important;
}

/* Ensure table is responsive but doesn't squash main info */
@media (max-width: 992px) {
    .standings-table .col-stat {
        width: 28px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {

    .standings-table th:nth-child(5),
    .standings-table th:nth-child(6),
    .standings-table th:nth-child(7),
    .standings-table th:nth-child(8),
    .standings-table td:nth-child(5),
    .standings-table td:nth-child(6),
    .standings-table td:nth-child(7),
    .standings-table td:nth-child(8) {
        display: none;
        /* Hide W, D, L, GF, GA for mobile */
    }

    .standings-table .col-team {
        min-width: 120px;
    }
}

/* Form Indicators (Circular) */
.form-indicator {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.form-indicator span {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    /* More modern than 50% circular */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.form-indicator .form-none {
    background: transparent;
    color: var(--sd-text-muted);
    border: 1px dashed var(--sd-border);
}

.form-w {
    background: #3fb950;
}

.form-d {
    background: #484f58;
}

.form-l {
    background: #f85149;
}

/* Standings Row Highlighting */
.standings-table tr.pos-champions td.col-pos {
    border-left: 3px solid var(--sd-accent);
}

.standings-table tr.pos-europa td.col-pos {
    border-left: 3px solid var(--sd-green);
}

.standings-table tr.pos-relegation td.col-pos {
    border-left: 3px solid var(--sd-live);
}

.standings-table tr.pos-champions td:first-child,
.standings-table tr.pos-europa td:first-child,
.standings-table tr.pos-relegation td:first-child {
    font-weight: bold;
}

/* Standings Tabs */
.sportdata-standings-tabs {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 16px;
    background: var(--sd-bg-container);
    border-bottom: 1px solid var(--sd-border);
    scrollbar-width: none;
    /* Firefox */
}

.sportdata-standings-tabs::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.standings-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    background: var(--sd-bg-badge);
    color: var(--sd-text-main);
    text-decoration: none !important;
    min-width: 90px;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--sd-border);
    flex-shrink: 0;
}

.standings-tab:hover {
    background: var(--sd-bg-hover);
    border-color: var(--sd-text-sub);
    transform: translateY(-2px);
}

.standings-tab.active {
    background: rgba(88, 166, 255, 0.1);
    border-color: var(--sd-accent);
    color: var(--sd-accent);
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.1);
}

.standings-tab img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    background: #fff;
    padding: 2px;
    border-radius: 4px;
}

.standings-tab span {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

/* Responsive */
@media (max-width: 768px) {
    .match-col-main {
        gap: 10px;
    }

    .team-name {
        font-size: 13px;
    }

    .match-team.home .team-logo,
    .match-team.away .team-logo {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .match-col-time {
        width: 40px;
    }

    .match-col-status {
        width: 40px;
    }

    .team-name {
        max-width: 60px;
    }

    .match-col-main {
        gap: 5px;
    }
}

/* Custom Searchable Dropdown */
.sportdata-league-dropdown {
    position: relative;
    min-width: 200px;
    font-size: 13px;
    font-family: var(--sd-font);
}

.dropdown-trigger {
    background: var(--sd-bg-badge);
    border: 1px solid var(--sd-border);
    color: var(--sd-text-main);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    min-height: 38px;
    box-sizing: border-box;
}

.selected-league-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.dropdown-league-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    background: #fff;
    border-radius: 2px;
    padding: 1px;
    flex-shrink: 0;
}

.dropdown-trigger:hover {
    border-color: var(--sd-text-sub);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background: var(--sd-bg-container);
    border: 1px solid var(--sd-border);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    margin-top: 4px;
    overflow: hidden;
}

.dropdown-content.active {
    display: block;
}

.league-search-wrapper {
    padding: 8px;
    border-bottom: 1px solid var(--sd-border);
    background: var(--sd-bg-header);
}

.league-search-input {
    width: 100%;
    padding: 6px 8px;
    background: var(--sd-bg-body);
    border: 1px solid var(--sd-border);
    border-radius: 4px;
    color: var(--sd-text-main);
    outline: none;
    font-size: 13px;
    box-sizing: border-box;
}

.league-search-input:focus {
    border-color: var(--sd-accent);
}

.league-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 250px;
    overflow-y: auto;
}

.league-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: var(--sd-text-main);
    text-decoration: none;
    transition: background 0.2s;
    min-width: 0;
}

.league-name-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.league-item:hover a,
.league-item.selected a {
    background: var(--sd-bg-hover);
    color: var(--sd-accent);
}

/* Scrollbar */
.league-list::-webkit-scrollbar {
    width: 6px;
}

.league-list::-webkit-scrollbar-track {
    background: var(--sd-bg-container);
}

.league-list::-webkit-scrollbar-thumb {
    background: var(--sd-border);
    border-radius: 3px;
}

/* Empty State */
.sportdata-container .sportdata-empty {
    padding: 80px 20px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    color: var(--sd-text-sub) !important;
    min-height: 300px;
}

.sportdata-container .sportdata-empty svg {
    width: 64px !important;
    height: 64px !important;
    opacity: 0.2 !important;
    display: block !important;
    margin: 0 auto !important;
}

.sportdata-container .sportdata-empty p {
    margin: 0 !important;
    font-size: 15px !important;
    color: var(--sd-text-sub) !important;
    font-weight: 500 !important;
}

/* ============================================================
   HTML Pages & Trang Keo Styles (from trangkeo.com)
   ============================================================ */

/* Force unlock page scroll */
html.sportdata-scroll-fix,
body.sportdata-scroll-fix {
    overflow: visible !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh !important;
    position: static !important;
    width: 100% !important;
}

/* Reset all potential parent containers when scroll fix is active */
.sportdata-scroll-fix #page,
.sportdata-scroll-fix #content,
.sportdata-scroll-fix .site-content,
.sportdata-scroll-fix .entry-content,
.sportdata-scroll-fix main,
.sportdata-scroll-fix article {
    overflow: visible !important;
    height: auto !important;
    position: static !important;
}

/* Main wrapper for embedded HTML */
#sport-datacenter-wrapper {
    width: 100% !important;
    overflow-x: auto;
    overflow-y: visible !important;
    height: auto !important;
    min-height: 500px;
    position: relative !important;
    z-index: 1;
    display: block !important;
    font-family: 'Inter', Helvetica, sans-serif;
    font-size: 12px;
    box-sizing: border-box;
}

#sport-datacenter-container {
    width: 100% !important;
    overflow: visible !important;
    height: auto !important;
}

#sport-datacenter-wrapper * {
    box-sizing: border-box;
    font-size: 12px;
}

#sport-datacenter-wrapper a {
    text-decoration: none;
}

/* Override position:fixed from source content */
#sport-datacenter-wrapper [style*="position: fixed"],
#sport-datacenter-wrapper [style*="position:fixed"] {
    position: relative !important;
}

/* ===== TRANG KEO ORIGINAL STYLES ===== */

#sport-datacenter-wrapper .heading_table {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    background: #fff;
}

#sport-datacenter-wrapper .table-wrapper {
    font-size: 12px;
    font-weight: bold;
}

#sport-datacenter-wrapper .table-header table {
    background-color: #000;
}

#sport-datacenter-wrapper .table-header td {
    text-align: center;
    color: #ffffff;
    background-color: #6986AC;
    font-size: 12px;
    padding: 5px;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

#sport-datacenter-wrapper .bg_h2 {
    font-size: 16px;
    background-color: #436590;
    color: #fff;
    font-weight: normal;
    border-top: 1px solid #b4bba8;
    text-align: left;
    padding: 6px 5px 4px 10px;
    margin: 0;
    position: relative;
    text-transform: uppercase;
    margin-bottom: 2px;
}

#sport-datacenter-wrapper .bg_handicap {
    background-color: #b1b1b1;
    color: #666666;
    padding: 3px 0 0 10px;
    height: 18px;
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    font-size: 9px;
    border: 0;
}

#sport-datacenter-wrapper .open_diem_so {
    background-color: #e4e4e4;
    color: #333;
    text-align: left;
    font-weight: bold;
    margin: 0;
    padding: 10px;
    cursor: pointer;
    position: relative;
}

#sport-datacenter-wrapper .open_diem_so span {
    font-size: 14px;
}

#sport-datacenter-wrapper .open_diem_so::after {
    content: "";
    border-top: solid 6px #333;
    border-left: solid 6px transparent;
    border-right: solid 6px transparent;
    position: absolute;
    right: 10px;
    top: 9px;
}

#sport-datacenter-wrapper .open_diem_so.active::after {
    transform: rotate(180deg);
}

#sport-datacenter-wrapper .blink_me {
    animation: blinker 2s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0.1;
    }
}

#sport-datacenter-wrapper .chutyle {
    color: #ee6363;
}

#sport-datacenter-wrapper .TYLETT_3a {
    color: #464646;
    text-align: center;
    line-height: 15px;
}

#sport-datacenter-wrapper .TYLETT_3a img {
    vertical-align: middle;
}

#sport-datacenter-wrapper .TYLETT_3c {
    color: #464646;
    text-align: left;
    padding-left: 3px;
    padding-right: 3px;
}

#sport-datacenter-wrapper .dong1 {
    background-color: #ecb0b091;
    font-weight: bold;
    font-size: 12px;
    border-bottom-color: #cea193;
}

#sport-datacenter-wrapper .dong2 {
    background: rgba(194, 32, 38, 0.14);
    border-bottom-color: #cea193;
    font-weight: bold;
    font-size: 12px;
}

#sport-datacenter-wrapper .dong3 {
    background-color: #e0ebfd;
    line-height: 18px;
}

#sport-datacenter-wrapper .dong4 {
    background-color: #c1d6fb;
    line-height: 18px;
}

#sport-datacenter-wrapper .dong:hover {
    background-color: #c7c1c1;
}

#sport-datacenter-wrapper .do {
    color: #810101;
}

#sport-datacenter-wrapper .diem_so ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #e4e4e4;
    border-top: 1px solid #fff;
    display: none;
}

#sport-datacenter-wrapper .diem_so ul::after {
    content: "";
    display: block;
    clear: both;
}

#sport-datacenter-wrapper .diem_so ul.open {
    display: block;
}

#sport-datacenter-wrapper .diem_so li {
    float: left;
    width: 5%;
    height: 65px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #000;
}

#sport-datacenter-wrapper .diem_so li p {
    font-weight: bold;
    font-size: 12px;
}

#sport-datacenter-wrapper .diem_so li .ti_so {
    background-color: #0000009e;
    color: #fff;
    margin: 0;
    padding: 5px;
}

#sport-datacenter-wrapper .diem_so li:last-child {
    width: 75%;
    text-align: center;
    padding: 25px 0;
}

#sport-datacenter-wrapper .TYLETT_2a {
    color: #fff;
    text-align: left;
    padding-left: 10px;
    font-size: 12px;
}

#sport-datacenter-wrapper .TYLETT_2a strong img {
    vertical-align: middle;
    margin: 0;
}

#sport-datacenter-wrapper .TYLETT_3 {
    background-color: #c6d4f1;
    line-height: 18px;
}

#sport-datacenter-wrapper .TYLETT_4 {
    background-color: #436590;
    line-height: 22px;
}

#sport-datacenter-wrapper .TYLETT_3_1 {
    background-color: #e4e4e4;
    line-height: 18px;
}

#sport-datacenter-wrapper .TYLETT_3a,
#sport-datacenter-wrapper .TYLETT_3b,
#sport-datacenter-wrapper .TYLETT_3c,
#sport-datacenter-wrapper .TYLETT_3d {
    padding: 3px;
    vertical-align: top;
    border: 2px solid #fff;
}

#sport-datacenter-wrapper .keo-dong td {
    line-height: 15px;
}

#sport-datacenter-wrapper .TYLETT_3d {
    color: #464646;
    text-align: right;
    padding-right: 3px;
}

#sport-datacenter-wrapper .hiep_1 {
    background-color: #EEE8CD;
    font-family: 'Inter', Helvetica, sans-serif;
    font-weight: bold;
    font-size: 12px;
}

#sport-datacenter-wrapper .hiep_1_btn {
    position: relative;
    cursor: pointer;
    color: #669900;
}

#sport-datacenter-wrapper .hiep_1_btn::after {
    content: "";
    border-top: solid 5px #669900;
    border-left: solid 5px transparent;
    border-right: solid 5px transparent;
    position: absolute;
    right: -15px;
    top: 5px;
}

#sport-datacenter-wrapper .hiep_1 img {
    width: 15px;
}

/* Filter & Search */
#sport-datacenter-wrapper .filter_item {
    position: relative;
    padding: 5px 5px 5px 30px;
    display: block;
    cursor: pointer;
    color: #464646;
    margin-right: 20px;
}

#sport-datacenter-wrapper .filter_item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

#sport-datacenter-wrapper .filter_item:hover input~.checked_icon {
    background-color: #ccc;
}

#sport-datacenter-wrapper .checked_icon {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 3px;
    transition: background-color 0.2s;
}

#sport-datacenter-wrapper .checked_icon:after {
    content: "";
    position: absolute;
    display: none;
}

#sport-datacenter-wrapper .filter_item input:checked~.checked_icon:after {
    display: block;
}

#sport-datacenter-wrapper .filter_item .checked_icon:after {
    left: 7px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #464646;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

#sport-datacenter-wrapper #open_filter {
    float: right;
    border: 1px solid #000;
    padding: 8px 30px 8px 15px;
    cursor: pointer;
    border-radius: 3px;
    position: relative;
    margin: 12px 5px;
}

#sport-datacenter-wrapper #open_filter::after {
    content: "";
    border-top: solid 6px #464646;
    border-left: solid 6px transparent;
    border-right: solid 6px transparent;
    position: absolute;
    right: 10px;
    top: 12px;
}

#sport-datacenter-wrapper #open_filter.active::after {
    transform: rotate(180deg);
}

#sport-datacenter-wrapper .search_tyle {
    width: 50%;
    display: inline-block;
    padding: 5px;
    margin: 10px 5px 3px 0;
    border: 1px solid #464646;
    border-radius: 3px;
    position: relative;
}

#sport-datacenter-wrapper .search_tyle input {
    border: none;
    -webkit-appearance: none;
    padding: 5px 25px 5px 5px;
    display: inline-block;
    vertical-align: middle;
    outline: none;
    width: 100%;
}

#sport-datacenter-wrapper .search_tyle span.search-span {
    background-repeat: no-repeat;
    background-size: contain;
    font-size: 0;
    width: 25px;
    height: 25px;
    border: none;
    background-color: transparent;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
    position: absolute;
    right: 5px;
    top: 5px;
}

#sport-datacenter-wrapper .search_tyle span.clear-span {
    display: none;
    font-size: 15px;
    border: none;
    vertical-align: middle;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 4px;
    font-weight: 500;
    padding: 3px 10px;
}

#sport-datacenter-wrapper .guild-live {
    font-weight: 500;
    margin: 0 0 5px;
}

#sport-datacenter-wrapper .btn-keo-ngay {
    padding: 5px 5px;
    margin: 5px 0;
    color: #fff;
    background-color: #575757;
}

#sport-datacenter-wrapper .btn-keo-ngay span {
    height: 5px;
    width: 5px;
    background-color: red;
    border-radius: 50%;
    display: none;
    vertical-align: middle;
    margin-right: 3px;
}

#sport-datacenter-wrapper .live-match {
    cursor: pointer;
    display: block;
    margin-top: 5px;
    position: relative;
    font-size: 14px;
    color: #f53030;
}

#sport-datacenter-wrapper .live-match td {
    color: #000;
}

#sport-datacenter-wrapper .live-match::after {
    content: "";
    border-top: solid 6px #464646;
    border-left: solid 6px transparent;
    border-right: solid 6px transparent;
    position: absolute;
    right: -15px;
    top: 5px;
}

#sport-datacenter-wrapper .popup-list {
    position: absolute;
    right: 0;
    display: none;
    background-color: #fff;
    padding: 20px 15px;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16);
    border-top: 1px solid #ccc;
    z-index: 9999;
}

#sport-datacenter-wrapper .clear {
    clear: both;
    display: block;
}

/* Lock Odd */
#sport-datacenter-wrapper div.lock-odd {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 30px;
}

#sport-datacenter-wrapper .livestream-link {
    display: block;
    padding: 5px;
}

/* ===== CUSTOM ADDITIONS (my-custom-dates, filter-box) ===== */

/* Date Switcher Buttons */
.my-custom-dates {
    margin: 15px 0 25px 0 !important;
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-bottom: 1px solid #eee;
}

.my-custom-dates button {
    padding: 8px 16px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    transition: 0.3s;
    background: #e9ecef;
    color: #495057;
}

.my-custom-dates button:first-child,
.my-custom-dates button.active {
    background: #436590;
    color: #fff;
}

/* Custom Filter Box overlay */
#custom-filter-box {
    position: absolute;
    right: 0;
    top: 100%;
    width: 250px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 10px;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    text-align: left;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    cursor: pointer;
    border-radius: 4px;
}

.filter-item:hover {
    background: #f0f4ff;
}

.filter-item label {
    cursor: pointer;
    font-size: 13px;
    color: #333;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* Trang Keo Toolbar */
.trangkeo-toolbar {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.trangkeo-toolbar .search-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.trangkeo-toolbar .search_tyle {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 8px 12px;
    position: relative;
}

.trangkeo-toolbar .search_tyle input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    padding: 4px 0;
    background: transparent;
}

.trangkeo-toolbar .search_tyle .search-span {
    font-size: 16px;
    color: #6c757d;
    cursor: pointer;
}

.trangkeo-toolbar .search_tyle .clear-span {
    display: none;
    font-size: 16px;
    color: #dc3545;
    cursor: pointer;
    padding: 0 5px;
}

.trangkeo-toolbar #open_filter {
    background: #436590;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    white-space: nowrap;
    transition: background 0.2s;
}

.trangkeo-toolbar #open_filter:hover {
    background: #35507a;
}

.trangkeo-toolbar #open_filter::after {
    content: "";
    border-top: 5px solid #fff;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    margin-left: 8px;
    display: inline-block;
    vertical-align: middle;
}

/* Responsive */
@media only screen and (max-width: 767px) {
    #sport-datacenter-wrapper .diem_so li {
        width: 10%;
    }

    #sport-datacenter-wrapper .diem_so li:last-child {
        width: 50%;
    }

    .trangkeo-toolbar .search-row {
        flex-direction: column;
        align-items: stretch;
    }

    .trangkeo-toolbar .search_tyle {
        min-width: 100%;
    }

    .trangkeo-toolbar #open_filter {
        width: 100%;
        text-align: center;
    }

    .my-custom-dates {
        justify-content: center;
    }
}

@media only screen and (max-width: 520px) {
    #sport-datacenter-wrapper .search_tyle {
        width: calc(100% - 130px);
    }

    #sport-datacenter-wrapper .bg_h2 {
        font-size: 15px;
    }

    #sport-datacenter-wrapper .diem_so li {
        width: 14%;
    }

    #sport-datacenter-wrapper .diem_so li:last-child {
        width: 44%;
    }

    .my-custom-dates button {
        flex: 1;
        min-width: auto;
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Date button active states */
.my-custom-dates button.active {
    background: #436590 !important;
    color: #fff !important;
    border-color: #35507a !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.my-custom-dates button:not(.active):hover {
    background: #dde2e6;
}