:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --white-color: #ffffff;
    --text-color: #212529;
    --link-color: var(--primary-color);
    --link-hover-color: #0a58ca;
    --border-color: #dee2e6;
    --header-height: 55px;
    --footer-height: 50px;
    --font-family-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-size-base: 1rem;
    --font-size-lg: 1.15rem;
    --font-size-sm: 0.875rem;
    --font-size-xs: 0.75rem;
    --line-height-base: 1.6;
    --border-radius: 0.25rem;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}


body {
    font-family: var(--font-family-sans-serif);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--light-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--header-height);
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
}

h1 {
    font-size: 1.6rem;
}

h2 {
    font-size: 1.4rem;
}

h3 {
    font-size: 1.2rem;
}

h4 {
    font-size: 1.1rem;
}

p {
    margin-bottom: 1rem;
}

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}


table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: var(--font-size-sm);
}

th, td {
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.5rem;
    text-align: left;
    vertical-align: top;
}

th {
    font-weight: bold;
    background-color: #e9ecef;
}


.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height, 55px);
    background-color: var(--primary-color, #0d6efd);
    color: var(--white-color, #ffffff);
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}

.back-button {
    background: none;
    border: none;
    color: var(--white-color, #ffffff);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
    flex-shrink: 0;
}

.back-button:hover {
    opacity: 0.8;
}

.site-brand {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--white-color, #ffffff);
    text-decoration: none;
    text-align: center;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 5px;
}

.site-brand:hover {
    text-decoration: none;
    opacity: 0.9;
}

.nav-toggle {
    background: none;
    border: none;
    color: var(--white-color, #ffffff);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
    flex-shrink: 0;
}

.nav-toggle:hover {
    opacity: 0.8;
}

.site-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 300px;
    height: 100%;
    background-color: var(--white-color);
    color: var(--text-color);
    z-index: 1001;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.site-nav.is-active {
    left: 0;
}

.nav-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    font-weight: lighter;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.nav-close:hover {
    color: var(--dark-color);
}

.site-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-top: 55px;
}

.site-nav li {
}

.site-nav a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease, border-left-color 0.2s ease;
    border-left: 4px solid transparent;
}

.site-nav a .fa-fw {
    margin-right: 15px;
    width: 1.2em;
    text-align: center;
    color: var(--secondary-color);
    transition: color 0.2s ease;
}

.site-nav a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    text-decoration: none;
}

.site-nav a:hover .fa-fw {
    color: var(--primary-color);
}

.site-nav a.active {
    background-color: var(--light-color);
    color: var(--primary-color);
    font-weight: bold;
    border-left-color: var(--primary-color);
}

.site-nav a.active .fa-fw {
    color: var(--primary-color);
}

.main-content {
    padding-bottom: 20px;
    flex-grow: 1;
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.site-footer {
    background-color: var(--dark-color);
    color: #ccc;
    text-align: center;
    padding: 15px;
    font-size: var(--font-size-sm);
    margin-top: auto;
    height: var(--footer-height);
    display: flex;
    align-items: center;
    justify-content: center;
}


.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.text-start {
    text-align: left;
}

.text-end {
    text-align: right;
}

.text-center {
    text-align: center;
}

.text-secondary {
    color: var(--secondary-color);
}

.text-danger {
    color: var(--danger-color);
}

.text-success {
    color: var(--success-color);
}

.text-primary {
    color: var(--primary-color);
}

.fw-bold {
    font-weight: bold;
}

.fs-10 {
    font-size: var(--font-size-sm);
}

.fs-9 {
    font-size: var(--font-size-xs);
}

.fs-8 {
    font-size: var(--font-size-base);
}

.fs-7 {
    font-size: var(--font-size-lg);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mx-1 {
    margin-left: 0.25rem;
    margin-right: 0.25rem;
}

.mx-2 {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.px-1 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.w-100 {
    width: 100%;
}

.bold {
    font-weight: bold;
}


.page-title-container {
    background-color: var(--white-color, #ffffff);
    color: var(--text-color, #212529);
    border-left: 5px solid var(--primary-color, #0d6efd);
    border-top: 1px solid var(--border-color, #dee2e6);
    border-right: 1px solid var(--border-color, #dee2e6);
    border-bottom: 1px solid var(--border-color, #dee2e6);
    border-radius: 0 var(--border-radius, 0.25rem) var(--border-radius, 0.25rem) 0;
    padding: 1rem 1rem 1rem 1.25rem;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.page-title-container h1 {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
    text-transform: none;
    font-weight: 700;
    color: var(--text-color, #212529);
    line-height: 1.3;
    text-align: left;
}

.page-title-container p {
    font-size: var(--font-size-sm, 0.875rem);
    color: var(--secondary-color, #6c757d);
    margin-bottom: 0;
    line-height: 1.4;
    text-align: left;
}


.content-section {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
    overflow: hidden;
}

.section-title {
    font-size: 1.1rem;
    font-weight: bold;
    padding: 0.75rem 1rem;
    margin: 0;
    background-color: #e9ecef;
    border-bottom: 1px solid var(--border-color);
}

.section-title a {
    color: inherit;
    text-decoration: none;
}

.section-title a:hover {
    text-decoration: underline;
}

.section-content {
    padding: 1rem;
}


.section-content.no-padding {
    padding: 0;
}


.link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-list-item {
    border-bottom: 1px solid var(--border-color);
}

.link-list-item:last-child {
    border-bottom: none;
}

.link-list-item a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
}

.link-list-item a:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: var(--link-hover-color);
}


.link-list-item a.ranking-league-link,
.link-list-item a.top-league-link {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.link-list-item a .dflag {
    margin-right: 8px;
    vertical-align: middle;
}


.link-list-item small, .preview-item-time {
    display: block;
    color: var(--secondary-color);
    font-size: var(--font-size-xs);
    margin-bottom: 0.25rem;
}

.link-list-item strong, .preview-item-title {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.preview-item-title a {
    font-weight: 500;
    color: var(--text-color);
}

.preview-item-title a:hover {
    color: var(--link-hover-color);
}


.tournament-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f0f0f0;
    padding: 0.6rem 1rem;
    font-weight: bold;
    font-size: var(--font-size-sm);
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    margin-top: 0rem;
}

.tournament-header:first-child {
    margin-top: 0;
    border-top: none;
}


.tournament-header .tournament-main-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    flex-grow: 1;
    margin-right: 10px;
    overflow: hidden;
}

.tournament-header .tournament-main-link .dflag {
    margin-right: 8px;
    flex-shrink: 0;
    width: 20px;
    height: 15px;
    vertical-align: middle;
}

.tournament-header .tournament-main-link .tournament-name-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: bold;
    color: var(--text-color);
}

.tournament-header .tournament-main-link:hover .tournament-name-text {
    text-decoration: underline;
    color: var(--link-hover-color);
}


.tournament-secondary-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-xs);
    font-weight: 500;
    flex-shrink: 0;
}

.tournament-secondary-links a {
    color: var(--secondary-color);
    text-decoration: none;
    padding: 0.2rem 0.6rem;
    border: 1px solid #ced4da;
    border-radius: 50rem;
    background-color: var(--white-color);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.tournament-secondary-links a:hover {
    background-color: #e9ecef;
    color: var(--primary-color);
    border-color: #adb5bd;
    text-decoration: none;
}


.match-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.match-item {
    display: grid;

    grid-template-columns: 35px 1fr 110px;
    gap: 3px;
    align-items: center;
    padding: 0.3rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

.match-item:hover {
    background-color: #f8f9fa;
}

.match-time-status {


    text-align: center;
    font-size: var(--font-size-xs);
    color: var(--secondary-color);

    line-height: 1.3;
}

.match-time-status .live-indicator {
    color: var(--danger-color);
    font-weight: bold;
    font-size: var(--font-size-sm);
}

.match-status-special {
    color: var(--danger-color);
    font-weight: bold;
    font-size: var(--font-size-xs);
    display: block;
}


.results-list .match-time-status {
    color: var(--secondary-color);
    font-size: var(--font-size-xs);
    width: 40px;
}


.schedule-list .match-time-status {
    font-size: var(--font-size-sm);
    color: var(--primary-color);
    font-weight: 500;
}


.team-line {
    display: flex;

    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.team-name {
    flex-grow: 1;
    flex-shrink: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}


.team-name a {
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;

    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-name a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

.team-name.bold a {
    font-weight: bold;
}


.team-score {
    flex-shrink: 0;
    width: 20px;
    text-align: right;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
    padding: 0;
    color: var(--text-color);
    font-size: var(--font-size-sm);
    margin: 0;
}


.livescore-list .team-score {
    color: var(--success-color);
    background-color: transparent;
    padding: 0;
    margin: 0 5px;
}


.results-list .team-score {
    min-width: 20px;
    text-align: center;
    display: inline-block;
    background-color: #e9ecef;
    border-radius: 3px;
    padding: 0.1rem 0.4rem;
    margin: 0 5px;
    color: var(--text-color);
}

.results-list .team-score.bold {
    font-weight: bold;
    color: var(--success-color);

}

.results-list .team-line {
    justify-content: center;
    text-align: center;
}

.results-list .team-name {
    flex-grow: 0;
    padding-right: 0;
    display: inline-block;
}

.results-list .team-name.bold a {
    color: var(--success-color);
    font-weight: bold;
}

.half-time-score {
    flex-shrink: 0;
    width: 20px;
    text-align: right;
    font-size: var(--font-size-sm);
    color: var(--secondary-color);
    font-variant-numeric: tabular-nums;
    margin-left: 0;
    white-space: nowrap;
    padding: 0;
}

.schedule-list .match-teams-score {
    text-align: center;
}

.schedule-list .team-line {
    display: block;
    margin-bottom: 0.1rem;
    text-align: center;
}

.schedule-list .team-name {
    display: inline-block;
    vertical-align: middle;
    flex-grow: 0;
    padding-right: 0;
}

.match-odds {


    display: flex;
    flex-direction: column;
    gap: 2px;

}

.odds-line {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    margin-bottom: 2px;
    gap: 3px;
}

.odds-line span {
    text-align: right;
    padding-right: 3px;
    font-variant-numeric: tabular-nums;
}

.odds-line .odds-label {
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 3px;
}

.odds-line .odds-hcp {
    font-weight: bold;
}

.odds-line .odds-highlight,
.match-odds .odds-highlight {
    color: var(--primary-color);
    font-weight: bold;
}


.match-odds .text-primary {
    color: var(--primary-color);
    font-weight: bold;
}


.league-navigation-bar {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--white-color);
    margin-bottom: 1rem;
    overflow: hidden;
}

.league-nav-list {
    list-style: none;
    padding: 0 5px;
    margin: 0;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.league-nav-list::-webkit-scrollbar {
    display: none;
}


.league-nav-item {
    flex-shrink: 0;
}

.league-nav-link {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    margin-bottom: -1px;
}

.league-nav-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.league-nav-link.active {
    color: var(--primary-color);
    font-weight: bold;
    border-bottom-color: var(--primary-color);
}


.date-filter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0.75rem 1rem;
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.date-filter-link {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--primary-color);
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 50rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.date-filter-link:hover {
    background-color: #e2e6ea;
    text-decoration: none;
    color: var(--link-hover-color);
}

.date-filter-link.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    font-weight: bold;
}


.info-table {
    width: 100%;
    margin: 0;
    font-size: var(--font-size-sm);
    border: none;
}

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

.info-table td {
    padding: 0.6rem 0.75rem;
    border: none;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.info-table td:first-child {
    font-weight: 500;
    width: 35%;
    color: var(--secondary-color);
    white-space: nowrap;
    padding-right: 1rem;
}

.info-table td:last-child {
    width: 65%;
}

.info-table a {
    word-break: break-all;
}


.info-table.venue-info td {
    vertical-align: top;
}


.info-table.venue-info .tenant-list a {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--text-color);
    text-decoration: none;
}

.info-table.venue-info .tenant-list a:last-child {
    margin-bottom: 0;
}

.info-table.venue-info .tenant-list a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}


.team-results-table-container {
}

.team-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-xs);
    border: none;
}

.team-results-table th,
.team-results-table td {
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0.4rem;
    text-align: center;
    vertical-align: middle;
}

.team-results-table thead th {
    background-color: var(--light-color);
    font-weight: 500;
    color: var(--secondary-color);
    border-bottom-width: 1px;
    white-space: nowrap;
}

.team-results-table tbody tr:last-child td {
    border-bottom: none;
}

.team-results-table tbody tr:hover {
    background-color: var(--light-color);
}

.team-results-table .round-col {
    width: 1%;
    white-space: nowrap;
}

.team-results-table .score-col {
    width: 1%;
    white-space: nowrap;
}

.team-results-table .status-col {
    width: 1%;
    white-space: nowrap;
}

.team-results-table .team-col {
    white-space: normal;
    font-weight: 500;
}

.team-results-table .text-right {
    text-align: right;
    padding-right: 0.5rem;
}

.team-results-table .text-left {
    text-align: left;
    padding-left: 0.5rem;
}

.team-results-table .bold {
    font-weight: bold;
}

.team-results-table .score-link {
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
    display: inline-block;
    padding: 0.1rem 0.4rem;
    background-color: #e9ecef;
    border-radius: 3px;
}

.team-results-table .score-link:hover {
    background-color: #d4dade;
}

.status-indicator {
    display: inline-block;
    font-weight: bold;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 3px;
    color: var(--white-color);
    font-size: 0.7rem;
}

.status-indicator.status-w {
    background-color: var(--success-color);
}

.status-indicator.status-d {
    background-color: var(--secondary-color);
}

.status-indicator.status-l {
    background-color: var(--danger-color);
}


.team-schedule-table-container {
}

.team-schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-xs);
    border: none;
}

.team-schedule-table th,
.team-schedule-table td {
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0.4rem;
    text-align: center;
    vertical-align: middle;
}

.team-schedule-table thead th {
    background-color: var(--light-color);
    font-weight: 500;
    color: var(--secondary-color);
    border-bottom-width: 1px;
    white-space: nowrap;
}

.team-schedule-table tbody tr:last-child td {
    border-bottom: none;
}

.team-schedule-table tbody tr:hover {
    background-color: var(--light-color);
}

.team-schedule-table .round-col {
    width: 1%;
    white-space: nowrap;
}

.team-schedule-table .date-col {
    width: 1%;
    white-space: nowrap;
    color: var(--secondary-color);
}

.team-schedule-table .vs-col {
    width: 1%;
    white-space: nowrap;
    font-weight: bold;
    color: var(--secondary-color);
}

.team-schedule-table .team-col {
    white-space: normal;
    font-weight: 500;
}

.team-schedule-table .text-right {
    text-align: right;
}

.team-schedule-table .text-left {
    text-align: left;
}

.team-schedule-table .bold {
    font-weight: bold;
    color: var(--primary-color);
}


.ranking-table-container {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
    margin-bottom: 0;
    border: none;
}

.ranking-table th,
.ranking-table td {
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.ranking-table thead th {
    background-color: #e9ecef;
    font-weight: bold;
    border-bottom-width: 2px;
}

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

.ranking-table tbody tr:hover {
    background-color: #f8f9fa;
}

.ranking-table .pos-col {
    font-weight: bold;
    width: 1%;
    text-align: center;
    padding-right: 0;
}

.ranking-table .team-col {
    text-align: left;
    white-space: normal;
}

.ranking-table .team-col a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.ranking-table .team-col a:hover {
    color: var(--link-hover-color);
}

.ranking-table .team-logo-small {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    object-fit: contain;
}

.ranking-table .points-col {
    font-weight: bold;
}

.ranking-table .current-team-highlight a {
    font-weight: bold;
    color: var(--primary-color);
}

.promotion-indicator {
    display: inline-block;
    padding: 2px 6px 2px 0;
    margin-right: 4px;
    border-right: 4px solid transparent;
    line-height: 1.2;
}


.promotion-indicator.type-champions-league, .promotion-indicator.type-promotion {
    border-right-color: #007bff;
}

.promotion-indicator.type-europa-league, .promotion-indicator.type-play-off {
    border-right-color: #ff7f0e;
}

.promotion-indicator.type-conference-league {
    border-right-color: #198754;
}

.promotion-indicator.type-relegation, .promotion-indicator.type-relegation-play-off {
    border-right-color: #dc3545;
}

.promotion-indicator.type-none {
    padding-right: 0;
    margin-right: 0;
    border: none;
}

.ranking-table tfoot td {
    text-align: left;
    font-size: var(--font-size-xs);
    color: var(--secondary-color);
    border-top: 2px solid var(--border-color);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    background-color: #f8f9fa;
    border-bottom: none;
    white-space: normal;
}

.ranking-table tfoot td strong {
    color: var(--text-color);
    display: block;
    margin-bottom: 0.25rem;
}

.legend-items-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.legend-item {
    padding-left: 10px;
    border-left: 4px solid transparent;
    flex-shrink: 0;
    line-height: 1.4;
}


.legend-item.type-champions-league, .legend-item.type-promotion {
    border-left-color: #007bff;
}

.legend-item.type-europa-league, .legend-item.type-play-off {
    border-left-color: #ff7f0e;
}

.legend-item.type-conference-league {
    border-left-color: #198754;
}

.legend-item.type-relegation, .legend-item.type-relegation-play-off {
    border-left-color: #dc3545;
}

.legend-item.type-none {
    display: none;
}


.schedule-table-container {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: var(--font-size-sm);
    border: none;
}

.schedule-table th, .schedule-table td {
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0.6rem 0.5rem;
    text-align: left;
    vertical-align: middle;
}

.schedule-table thead th {
    background-color: #e9ecef;
    font-weight: bold;
    border-bottom-width: 2px;
    white-space: nowrap;
    text-align: center;
}

.schedule-table thead th.team-header {
    text-align: center;
}

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

.schedule-table tbody tr:hover {
    background-color: #f8f9fa;
}

.schedule-table .time-cell {
    text-align: center;
    white-space: nowrap;
    width: 1%;
    padding-right: 1rem;
}

.schedule-table .time-cell a {
    color: var(--secondary-color);
    font-size: var(--font-size-xs);
    display: block;
    text-decoration: none;
}

.schedule-table .time-cell a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

.schedule-table .teams-cell {
    text-align: center;
}

.schedule-table .teams-cell a {
    color: var(--text-color);
    text-decoration: none;
    display: inline-block;
}

.schedule-table .teams-cell a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

.schedule-table .teams-cell .vs-separator {
    display: inline-block;
    margin: 0 0.5rem;
    color: var(--secondary-color);
    font-weight: bold;
}


.results-table-container {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: var(--font-size-sm);
    border: none;
}

.results-table th, .results-table td {
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0.6rem 0.3rem;
    text-align: center;
    vertical-align: middle;
}

.results-table thead th {
    background-color: #e9ecef;
    font-weight: bold;
    border-bottom-width: 2px;
    white-space: nowrap;
}

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

.results-table tbody tr:hover {
    background-color: #f8f9fa;
}

.results-table .time-cell {
    white-space: nowrap;
    color: var(--secondary-color);
    width: 80px;
}

.results-table .team-name-cell {
    text-align: right;
    padding-right: 0.3rem;
    white-space: normal;
    word-break: break-word;
}

.results-table .team-name-cell-away {
    text-align: left;
    padding-left: 0.3rem;
}

.results-table .score-cell a {
    font-weight: bold;
    color: var(--text-color);
    display: inline-block;
    padding: 0.1rem 0.4rem;
    background-color: #e9ecef;
    border-radius: 3px;
    text-decoration: none;
    white-space: nowrap;
}

.results-table .score-cell a:hover {
    background-color: #d4dade;
}

.results-table .bold {
    font-weight: bold;
}

.results-table .team-name-cell a, .results-table .team-name-cell-away a {
    color: var(--text-color);
    text-decoration: none;
}

.results-table .team-name-cell a:hover, .results-table .team-name-cell-away a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}


.results-table .team-name-cell a.bold, .results-table .team-name-cell-away a.bold {
    color: var(--success-color);
}

.results-table .score-cell a span.bold {
    color: var(--success-color);
}


.squad-table-container {
}

.squad-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
    border: none;
}

.squad-table th, .squad-table td {
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    text-align: left;
    vertical-align: middle;
}

.squad-table thead th {
    background-color: #e9ecef;
    font-weight: bold;
    white-space: nowrap;
    text-align: center;
}

.squad-table .pos-col, .squad-table .foot-col {
    text-align: center;
    width: 1%;
    white-space: nowrap;
}

.squad-table .dob-col {
    text-align: center;
    white-space: nowrap;
}

.squad-table .player-col a {
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
}

.squad-table .player-col a:hover {
    color: var(--link-hover-color);
}


.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-xs);
    border: none;
}

.history-table th, .history-table td {
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.5rem;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.history-table thead th {
    background-color: #e9ecef;
    font-weight: bold;
    text-align: center;
}

.history-table .time-col {
    width: 35%;
    text-align: center;
}

.history-table .status-col {
    text-align: center;
}

.history-table .team-col a {
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
}

.history-table .team-col a:hover {
    color: var(--link-hover-color);
}


.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);

    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--white-color);
}

.stats-table th, .stats-table td {
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0.6rem 0.4rem;
    text-align: center;
    vertical-align: middle;
}

.stats-table thead th {
    background-color: #e9ecef;
    font-weight: bold;
    border-bottom-width: 2px;
    white-space: nowrap;
}

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

.stats-table tbody tr:hover {
    background-color: #f8f9fa;
}

.stats-table .player-cell {
    text-align: left;
    font-weight: 500;
    white-space: normal;
    vertical-align: top;
    padding-top: 0.6rem;
}

.stats-table .player-cell a {
    color: var(--text-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.stats-table .player-cell a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

.stats-table .team-cell {
    text-align: left;
    white-space: normal;
}

.stats-table .team-cell a {
    color: var(--text-color);
    text-decoration: none;
}

.stats-table .team-cell a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

.stats-table .stat-cell {
    font-weight: 500;
}

.stats-table .stat-cell-goals, .stats-table .stat-cell-assists {
    font-weight: bold;
}

.stats-table .card-icon svg {
    width: 10px;
    height: 15px;
    vertical-align: middle;
}

.stats-table .yellow-card-cell svg rect {
    fill: var(--warning-color);
}

.stats-table .red-card-cell svg rect {
    fill: var(--danger-color);
}


.team-header-info {
    padding: 1rem;
    text-align: center;
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.team-header-info img {
    max-width: 80px;
    max-height: 80px;
    margin-bottom: 0.75rem;
}

.team-header-info h1 {
    font-size: 1.3rem;
    margin-bottom: 0;
}


.custom-tab-navigation {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    white-space: nowrap;
    background-color: #f8f9fa;
    padding: 0 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.custom-tab-navigation::-webkit-scrollbar {
    display: none;
}

.custom-tab-button {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.8rem 1rem;
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--secondary-color);
    transition: color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
    margin-bottom: -1px;
    text-transform: uppercase;
}

.custom-tab-button:hover {
    color: var(--primary-color);
}

.custom-tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: bold;
}

.custom-tab-content {
}

.custom-tab-pane {
    display: none;
    padding: 1rem;
}

.custom-tab-pane.active {
    display: block;
}

.custom-tab-pane .loading-indicator {
    text-align: center;
    padding: 2rem;
    color: var(--secondary-color);
    font-style: italic;
}


.season-select-container {
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
}

.season-select-container label,
.performance-header label {
    font-size: var(--font-size-xs);
    color: var(--secondary-color);
    margin-right: 5px;
    white-space: nowrap;
}

#season_id {
    font-size: var(--font-size-sm);
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--white-color);
    max-width: 200px;
}


.performance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

}

.performance-header h2 {
    margin-bottom: 0;
    flex-grow: 1;
}

.performance-header .season-select-wrapper {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.performance-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding-top: 1rem;
}

.stat-item {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--secondary-color);
}


.match-header-card {
    background-color: var(--white-color);
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.match-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
}

.team-info {
    width: 35%;
}

.team-logo {
    max-width: 50px;
    max-height: 50px;
    margin-bottom: 0.5rem;
}

.team-info .team-name a {
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    text-align: center;
}

.team-info .team-name a:hover {
    text-decoration: underline;
}

.manager-info {
    font-size: var(--font-size-xs);
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

.manager-info .dflag {
    vertical-align: baseline;
}

.score-time {
    width: 25%;
    font-weight: bold;
}

.match-status {
    display: block;
    font-size: var(--font-size-xs);
    margin-bottom: 0.25rem;
    color: var(--secondary-color);
}

.match-status.live {
    color: var(--danger-color);
    font-weight: bold;
}

.match-score {
    font-size: 1.6rem;
    display: block;
    line-height: 1.2;
}

.match-details {
    text-align: center;
    font-size: var(--font-size-xs);
    color: var(--secondary-color);
    border-top: 1px dashed var(--border-color);
    padding-top: 0.75rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.match-details a {
    color: var(--secondary-color);
}

.match-details a:hover {
    color: var(--link-hover-color);
}

.match-details .dflag {
    vertical-align: baseline;
}


.probability-bar-container {
    display: flex;
    height: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-top: 0.5rem;
    font-size: var(--font-size-xs);
    font-weight: bold;
    color: var(--white-color);
}

.probability-bar-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

.prob-home {
    background-color: var(--primary-color);
}

.prob-draw {
    background-color: var(--secondary-color);
    color: #eee;
}

.prob-away {
    background-color: var(--danger-color);
}

.probability-labels {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-xs);
    margin-top: 0.25rem;
    color: var(--secondary-color);
    padding: 0 5px;
}


.form-display-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.form-team-column {
    width: 45%;
}

.form-team-column .team-name {
    text-align: center;
}

.form-percentage {
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.form-indicators {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.form-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.form-indicator.form-w {
    background-color: var(--success-color);
}

.form-indicator.form-d {
    background-color: var(--secondary-color);
}

.form-indicator.form-l {
    background-color: var(--danger-color);
}


.events-container {
    display: flex;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.events-column {
    width: 50%;
    padding: 0 0.5rem;
    font-size: var(--font-size-sm);
}

.events-column.home-events {
    border-right: 1px dashed var(--border-color);
    padding-right: 1rem;
}

.events-column.away-events {
    padding-left: 1rem;
}

.events-column h4 {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    color: var(--primary-color);
}

.event-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.event-item-home {
    justify-content: flex-start;
    text-align: left;
}

.event-item-away {
    justify-content: flex-end;
    text-align: right;
}

.event-time {
    font-weight: bold;
    color: var(--secondary-color);
    flex-shrink: 0;
    width: 25px;
    text-align: center;
}

.event-item-home .event-time {
    order: 1;
    padding-right: 5px;
}

.event-item-away .event-time {
    order: 2;
    padding-left: 5px;
}

.event-details {
    flex-grow: 1;
    line-height: 1.4;
}

.event-item-home .event-details {
    order: 2;
}

.event-item-away .event-details {
    order: 1;
}

.event-player a {
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
}

.event-player a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

.event-assist a {
    color: var(--secondary-color);
    font-size: var(--font-size-xs);
    display: block;
    text-decoration: none;
}

.event-assist a:hover {
    text-decoration: underline;
}

.event-note {
    font-weight: normal;
    color: var(--secondary-color);
    font-size: var(--font-size-xs);
}

.event-substitution {
    display: flex;
    flex-direction: column;
}

.event-substitution .player-out {
    color: var(--danger-color);
    margin-bottom: 2px;
}

.event-substitution .player-in {
    color: var(--success-color);
}

.event-substitution .substitution-icon-out,
.event-substitution .substitution-icon-in {
    margin-right: 4px;
    font-size: 0.8em;
}

.card-icon-inline {
    display: inline-block;
    width: 8px;
    height: 11px;
    border-radius: 1px;
    margin-right: 4px;
    vertical-align: middle;
}

.card-icon-inline.card-yellow {
    background-color: var(--warning-color);
    border: 1px solid #e6a800;
}

.card-icon-inline.card-red {
    background-color: var(--danger-color);
    border: 1px solid #b02a37;
}


.dashed-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashed-list li {
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-base);
    color: var(--secondary-color);
}

.dashed-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dashed-list li:first-child {
    padding-top: 0;
}


.article-container {
    background-color: var(--white-color);
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.article-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: var(--text-color);
}

.article-meta {
    font-size: var(--font-size-xs);
    color: var(--secondary-color);
    margin-bottom: 1rem;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.75rem;
}

.article-meta .author {
    font-weight: 500;
}

.article-description {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-style: italic;
}

.article-body {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
}

.article-body p {
    margin-bottom: 1rem;
}

.article-body h2, .article-body h3, .article-body h4,
.article-body h5, .article-body h6 {
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
    font-weight: bold;
    line-height: 1.4;
    color: var(--text-color);
}

.article-body h2 {
    font-size: 1.3rem;
}

.article-body h3 {
    font-size: 1.2rem;
}

.article-body h4 {
    font-size: 1.1rem;
}

.article-body ul, .article-body ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 1.2rem 0;
    border-radius: var(--border-radius);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.article-body figure {
    margin: 1.2rem 0;
}

.article-body figcaption {
    font-size: var(--font-size-xs);
    color: var(--secondary-color);
    text-align: center;
    margin-top: 0.3rem;
}

.article-body blockquote {
    margin: 1.5rem 0;
    padding: 0.75rem 1.2rem;
    border-left: 5px solid var(--primary-color);
    background-color: #f8f9fa;
    font-style: italic;
    color: var(--secondary-color);
}

.article-body blockquote p:last-child {
    margin-bottom: 0;
}

.article-body strong, .article-body b {
    font-weight: bold;
}

.article-body em, .article-body i {
    font-style: italic;
}

.article-body a {
    color: var(--link-color);
    text-decoration: underline;
}

.article-body a:hover {
    color: var(--link-hover-color);
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: var(--font-size-sm);
    border: 1px solid var(--border-color);
}

.article-body th, .article-body td {
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    text-align: left;
}

.article-body thead th {
    background-color: #e9ecef;
    font-weight: bold;
    text-align: center;
}


.previews-list-container {

    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.previews-list-container .preview-list-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.previews-list-container .preview-list-item:last-child {
    border-bottom: none;
}

.preview-list-item .preview-item-time {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

.preview-list-item .preview-item-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    line-height: 1.4;
    text-align: justify;
}

.preview-list-item .preview-item-title a {
    color: var(--text-color);
    text-decoration: none;
}

.preview-list-item .preview-item-title a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

.preview-list-item .preview-item-chapeau {
    font-size: var(--font-size-sm);
    color: var(--secondary-color);
    line-height: var(--line-height-base);
    margin-bottom: 0;
    text-align: justify;
}


.no-data-message {
    padding: 1.5rem;
    text-align: center;
    color: var(--secondary-color, #6c757d);
    font-style: italic;
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin: 1rem 0;
}


.match-list .no-data-message,
.ranking-table .no-data-message,
.stats-table .no-data-message,
.results-table .no-data-message,
.schedule-table .no-data-message {
    border: none;
    background: none;
    margin: 0;
    padding: 1rem;
    text-align: center;
    width: 100%;
}

.section-content > .no-data-message {
    border: none;
    margin: 0;
    border-radius: 0;
}

.match-item-link {

    color: inherit;
    text-decoration: none;
    display: contents;
}


.match-item:hover .match-item-link {


}

.match-item .match-teams-score,
.match-item .match-time-status {

    pointer-events: none;
}

.match-item .match-teams-score *,
.match-item .match-time-status * {
    pointer-events: auto;
}

.preview-item-meta {
    margin-bottom: 0.3rem;
}

.preview-item-author {
    color: var(--secondary-color);
    font-size: var(--font-size-xs);
    text-align: right;
    margin-left: 10px;
}

.preview-item-author .fa-user {
    margin-right: 3px;
}


.preview-list-item .preview-item-title {
    font-size: 1.1rem;
    font-weight: 500;

    margin-top: 0;
    line-height: 1.4;
    text-align: justify;
}


.previews-list-container .preview-list-item {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-color);
}


.promotion-indicator.promotioncolor_cl {
    border-right-color: #0056b3;
}

.legend-item.promotioncolor_cl {
    border-left-color: #0056b3;
}


.promotion-indicator.promotioncolor_clq {
    border-right-color: #007bff;
}

.legend-item.promotioncolor_clq {
    border-left-color: #007bff;
}


.promotion-indicator.promotioncolor_finalfour {
    border-right-color: #17a2b8;
}

.legend-item.promotioncolor_finalfour {
    border-left-color: #17a2b8;
}


.promotion-indicator.promotioncolor_playoff {
    border-right-color: #ffc107;
}

.legend-item.promotioncolor_playoff {
    border-left-color: #ffc107;
}


.promotion-indicator.promotioncolor_promotion {
    border-right-color: #28a745;
}

.legend-item.promotioncolor_promotion {
    border-left-color: #28a745;
}


.promotion-indicator.promotioncolor_promotionplayoff {
    border-right-color: #6f42c1;
}

.legend-item.promotioncolor_promotionplayoff {
    border-left-color: #6f42c1;
}


.promotion-indicator.promotioncolor_relegation {
    border-right-color: #dc3545;
}

.legend-item.promotioncolor_relegation {
    border-left-color: #dc3545;
}


.promotion-indicator.promotioncolor_relegationplayoff {
    border-right-color: #fd7e14;
}

.legend-item.promotioncolor_relegationplayoff {
    border-left-color: #fd7e14;
}


.promotion-indicator.promotioncolor_uefa {
    border-right-color: #ff8c00;
}

.legend-item.promotioncolor_uefa {
    border-left-color: #ff8c00;
}


.promotion-indicator.promotioncolor_uefaq {
    border-right-color: #ffaf40;
}

.legend-item.promotioncolor_uefaq {
    border-left-color: #ffaf40;
}

.promotion-indicator.promotioncolor_qualificationplayoff {
    border-right-color: #20c997;
}

.legend-item.promotioncolor_qualificationplayoff {
    border-left-color: #20c997;
}

.promotion-indicator.type-none {
    padding-right: 0;
    margin-right: 0;
    border: none;
}

.legend-item.type-none {
    display: none;
}

.match-teams-score {
    overflow: hidden;
    min-width: 0;
}


.season-select-container {
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.season-select-container label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--secondary-color);
}

#referee_season_select {
    font-size: var(--font-size-sm);
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--white-color);
    flex-grow: 1;
    max-width: 300px;
}

.referee-match-list .match-item {

    grid-template-columns: 70px 1fr auto;
    gap: 8px;
}

.match-cards-summary {
    font-size: var(--font-size-xs);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 60px;
    padding: 0 5px;
}

.match-cards-summary .card-icon-inline {
    vertical-align: middle;
    margin-right: 2px;
}

.match-cards-summary .no-cards-info {
    color: var(--secondary-color);
}


.loading-placeholder {
    padding: 2rem;
    text-align: center;
    color: var(--secondary-color);
    font-style: italic;
}


.referee-stats-table th, .referee-stats-table td {

}

.referee-match-list .team-score {


    font-weight: normal;
}

.referee-match-list .team-name.bold {
    font-weight: bold;
}

.referee-match-list .team-score.bold {
    font-weight: bold;
}


#referee-stats-section .section-title,
#referee-matches-section .section-title {

}


.info-table td:first-child {
    white-space: normal;
}


.venue-stats-table td:first-child {
    width: 45%;
    color: var(--secondary-color);
    font-weight: 500;
}

.venue-stats-table td:last-child {
    width: 55%;
    font-weight: 500;
}

.venue-match-list .match-item {

    grid-template-columns: 70px 1fr auto;
    gap: 8px;
    align-items: center;
}

.venue-match-list .match-time-status {
    text-align: center;
    font-size: var(--font-size-xs);
    line-height: 1.3;
}

.venue-match-list .match-time-status small {
    display: block;
    font-size: 0.8em;
}


.venue-match-list .match-teams-score .team-line {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
}

.venue-match-list .match-teams-score .team-name {
    flex-grow: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.venue-match-list .match-teams-score .team-name a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

.venue-match-list .match-teams-score .team-name a:hover {
    color: var(--link-hover-color);
}

.venue-match-list .match-teams-score .team-name.bold a {
    font-weight: bold;

}

.venue-match-list .match-teams-score .team-score {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    font-weight: normal;
}

.venue-match-list .match-teams-score .team-score.bold {
    font-weight: bold;

}

.venue-match-list .match-tournament-info {
    font-size: var(--font-size-xs);
    color: var(--secondary-color);
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 10px;
}

.no-data-message {
    padding: 1.5rem;
    text-align: center;
    color: var(--secondary-color, #6c757d);
    font-style: italic;
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.section-content > .no-data-message,
.match-list > .no-data-message {
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.match-list > .no-data-message {
    border-top: 1px solid var(--border-color);
}

.match-list > .no-data-message:first-child {
    border-top: none;
}


