.body,
body.body {
  background:
    radial-gradient(circle at top left, rgba(255, 204, 102, 0.10), transparent 28%),
    radial-gradient(circle at top right, rgba(80, 188, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #09111f 0%, #0b1424 100%);
  background-attachment: fixed;
}

.games-played{
  display: flex;
  justify-content: end;
}

.progress-bar {
    border: 1px solid #ccc;
    width: 100%;
    background-color: gray;
    height: 20px;
    position: relative;
  	margin-top:5px;
  	border-radius: 5px;
}

.progress-bar-fill {
    background-color: darkslategray;
    height: 100%;
  	border-radius: 5px;
}

.progress-bar-with-markers {
    margin-bottom: 74px;
    overflow: visible;
}

.progress-round-marker {
    position: absolute;
    top: 100%;
    transform: translateX(-50%);
    z-index: 2;
    min-width: 92px;
    max-width: 132px;
    text-align: center;
    pointer-events: none;
}

.progress-round-marker.is-alt {
    top: calc(100% + 28px);
}

.progress-round-arrow {
    display: block;
    width: 0;
    height: 0;
    margin: -1px auto 5px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid #28ffbb;
}

.progress-round-label {
    display: grid;
    gap: 2px;
    padding: 5px 7px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 7px;
    background: rgba(9,17,31,0.94);
    color: #f4f1dc;
    box-shadow: 0 8px 18px rgba(0,0,0,0.22);
}

.progress-round-label strong,
.progress-round-label small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.progress-round-label strong {
    font-size: 11px;
    line-height: 1.15;
}

.progress-round-label small {
    color: #b8c3d3;
    font-size: 10px;
    line-height: 1.15;
}

.arrow {
    position: absolute;
    top: -20px;
    transform: translateX(-50%);
  	color: transparent;
  	padding-right: 7px;
}

.progress-label-left {
    position: absolute;
    right: 5px;
    color: #fff;
    font-weight: bold;
}

@media only screen and (max-width: 768px) {
    .progress-bar-with-markers {
        min-width: 760px;
        margin-bottom: 80px;
    }

    .progress-status,
    .progress-bar-with-markers {
        margin-left: 12px;
        margin-right: 12px;
    }
}

.progress-label-right {
    position: absolute;
    left: calc(100% + 5px);
    color: #333;
    font-weight: bold;
}

h1 {
  color: white;
}

.widget {
  margin: 0 auto;
  width: 350px;
  margin-top: 0;
  background-color: #ebecde;
  position: relative;
}

.chart-header {
  background-color: #ebecde;
  height: 40px;
  color: #16140d;
  text-align: center;
  line-height: 40px;
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  font-weight: 400;
  font-size: 1.5em;
}

.chart-footer {
  color: #16140d;
  text-align: center;
  font-size: 10px;
}

.chart-container {
  padding: 25px;
}

.shadow {
  -webkit-filter: drop-shadow( 0px 3px 3px rgba(0, 0, 0, .5));
  filter: drop-shadow( 0px 3px 3px rgba(0, 0, 0, .5));
}

.chart-text {
   color: #16140d;
  text-align: center;
  font-size: 10px;
  position: absolute;
  z-index: 3;
  right: 40%;
  top: 55%;
}

.row-container {
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.stat-category {
  color: beige;
  display: flex;
  justify-content: center;
  text-align: center;
}

.stat-heading {
  color: white;
  display: flex;
  justify-content: center;
  text-align: center;
}

table.stat-time{
  background-color: #ebecde;
  color: #17212b;
  
  @media screen and (max-width: 499px){
    font-size: 12px;
  }
}

.stat-time.last{
  margin-bottom:5em;
}

tbody{
  text-align:center;
}

td,th{
  border: 1px solid black;
}

table.stat-time tr:first-child {
    background-color: darkslategrey;
    color: beige;
}

.progress-status{
  color: beige;
  display: flex;
  justify-content: end;
  font-size: 10px
}

td.form-column{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

span.form-indicator.form-W{
 	background: green;
    color: beige;
    border-radius: 5px;
    padding: 2px;
    height: 20px;
    width: 20px;
}

span.form-indicator.form-L {
    background: red;
    color: beige;
    border-radius: 5px;
    padding: 2px;
    height: 20px;
    width: 20px;
}

span.form-indicator.form-D {
    background: gray;
    color: beige;
    border-radius: 5px;
    padding: 2px;
    height: 20px;
    width: 20px;
}

h1.standing-table-header{
  text-align: center;
}

.pagination {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    width: min(100%, 1280px);
    max-width: 1280px;
    margin: 18px auto 0;
    padding: 0 16px;
    box-sizing: border-box;
    color: var(--wsd-text, #f7fbff);
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
}

.pagination::-webkit-scrollbar {
    display: none;
}

span.outer-link{
    background: transparent;
    border-radius: 0;
    padding: 0;
}

span.outer-link a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--wsd-line, rgba(255,255,255,0.10));
    box-shadow: none;
    color: var(--wsd-muted, #aab8c8);
    text-decoration: none;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

span.outer-link a:hover{
    background: rgba(61, 242, 176, 0.10);
    border-color: rgba(61, 242, 176, 0.35);
    color: var(--wsd-text, #f7fbff);
}

.pagination .outer-link.active a,
.pagination .outer-link a[aria-current="page"]{
    background: var(--wsd-green, #3df2b0);
    border-color: var(--wsd-green, #3df2b0);
    color: #041019;
}

.outer-link {
    flex: 0 0 auto;
    max-width: none;
    text-align: center;
}

@media screen and (max-width: 720px) {
    .pagination {
        width: min(calc(100vw - 20px), 1280px);
        max-width: calc(100vw - 20px);
        margin-top: 14px;
        padding: 0;
        justify-content: flex-start;
        gap: 8px;
    }

    span.outer-link a{
        min-height: 34px;
        padding: 7px 9px;
        font-size: 13px;
    }
}

.team-link {
    color: beige;
    text-decoration: none;
    transition: color 0.2s ease;
}

.team-link:hover {
    color: #4CAF50;
  	text-decoration: underline;
}

.table-description {
    align-items: center;
    justify-content: center;
    text-align: justify;
    display: flex;
    color: beige;
    margin: 0 15px;
}

.stats-landing-main {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 20px 72px;
    color: #e7efff;
}

.stats-landing-hero {
    max-width: 1100px;
    margin: 0 auto 34px;
}

h1.stats-landing-title {
    margin: 0 0 16px;
    color: #f6f1d8;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.05;
    text-align: left;
}

.stats-landing-intro.table-description {
    display: block;
    margin: 0;
    max-width: 980px;
    color: #cbd7e7;
    font-size: 18px;
    line-height: 1.65;
    text-align: left;
}

.stats-league-finder {
    margin: 0 auto 38px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(13, 23, 38, 0.78);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.stats-finder-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.stats-finder-header h2,
.stats-section-title {
    margin: 0;
    color: #f6f1d8;
    font-size: 26px;
    line-height: 1.2;
}

.stats-section-title {
    margin: 4px 0 18px;
}

.stats-finder-search {
    position: relative;
}

.stats-finder-search i {
    position: absolute;
    top: 50%;
    left: 14px;
    color: #8fa2bd;
    transform: translateY(-50%);
    pointer-events: none;
}

.stats-finder-search input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 42px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(6, 12, 22, 0.9);
    color: #f6f7fb;
    font: inherit;
    outline: none;
}

.stats-finder-search input:focus {
    border-color: rgba(255, 204, 102, 0.58);
    box-shadow: 0 0 0 3px rgba(255, 204, 102, 0.14);
}

.stats-finder-search input::placeholder {
    color: #8fa2bd;
}

.stats-popular-leagues {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.stats-popular-link,
.stats-league-card {
    text-decoration: none;
}

.stats-popular-link {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    min-width: 150px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 204, 102, 0.24);
    border-radius: 8px;
    background: rgba(255, 204, 102, 0.08);
    color: #f6f1d8;
}

.stats-popular-link span,
.stats-league-card span {
    font-weight: 700;
}

.stats-popular-link small,
.stats-league-card small {
    color: #9fb0c7;
    font-size: 12px;
}

.stats-country-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.stats-country-group {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(7, 13, 23, 0.62);
    overflow: hidden;
}

.stats-country-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 14px;
    color: #f6f1d8;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.stats-country-group summary::-webkit-details-marker {
    display: none;
}

.stats-country-group summary small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd7e7;
    font-size: 12px;
}

.stats-league-card-grid {
    display: grid;
    gap: 8px;
    padding: 0 12px 12px;
}

.stats-league-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.045);
    color: #e7efff;
}

.stats-popular-link:hover,
.stats-league-card:hover {
    background: rgba(255, 255, 255, 0.09);
}

.stats-no-league-match {
    margin: 18px 0 0;
    color: #cbd7e7;
}

.league-snapshots-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 22px;
    align-items: start;
}

.stats-standings-table {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(24, 34, 48, 0.96), rgba(11, 17, 27, 0.96));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.stats-leagues {
    margin: 0;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #f6f1d8;
    font-size: 17px;
    line-height: 1.25;
}

.stats-leagues .team-link {
    color: #f6f1d8;
}

.snapshot-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    color: #e7efff;
    font-size: 14px;
}

.snapshot-table th,
.snapshot-table td {
    padding: 11px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center;
    white-space: nowrap;
}

.snapshot-table th {
    background: rgba(7, 12, 20, 0.55);
    color: #f6f1d8;
    font-weight: 700;
}

.snapshot-table tbody tr:last-child td {
    border-bottom: 0;
}

.snapshot-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.snapshot-table th:nth-child(2),
.snapshot-table td:nth-child(2) {
    width: 38%;
    min-width: 0;
    text-align: left;
}

.snapshot-table td:nth-child(2) .team-link {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    color: #f6f1d8;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.snapshot-table td:nth-child(3) {
    font-weight: 700;
    color: #ffffff;
}

@media screen and (max-width: 760px) {
    .stats-landing-main {
        padding: 34px 12px 56px;
    }

    h1.stats-landing-title {
        font-size: 34px;
    }

    .stats-landing-intro.table-description {
        font-size: 16px;
        line-height: 1.55;
    }

    .stats-league-finder {
        padding: 16px;
        margin-bottom: 28px;
    }

    .stats-finder-header {
        grid-template-columns: minmax(0, 1fr);
    }

    .stats-country-groups {
        grid-template-columns: minmax(0, 1fr);
    }

    .stats-popular-link {
        flex: 1 1 150px;
    }

    .league-snapshots-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .stats-standings-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .snapshot-table {
        min-width: 560px;
    }
}
