/* =====================================================
   Top 15 Leagues Stats
===================================================== */

.tls-page {
    display: grid;
    gap: 18px;
}

/* Breadcrumb */
.tls-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #8fa3bf;
    font-size: 13px;
    font-weight: 800;
}

.tls-breadcrumb a {
    color: #f5a623;
    text-decoration: none;
    font-weight: 950;
}

.tls-breadcrumb strong {
    color: #dbeafe;
}

/* Hero */
.tls-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 28px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(245, 166, 35, 0.16), transparent 34%),
        linear-gradient(135deg, #111827 0%, #07111f 100%);
    border: 1px solid rgba(245, 166, 35, 0.42);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.tls-hero-single {
    align-items: center;
}

.tls-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: #f5a623;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tls-hero h1 {
    margin: 0;
    max-width: 860px;
    color: #fff;
    font-size: 38px;
    line-height: 1.05;
    font-weight: 1000;
    letter-spacing: -0.04em;
}

.tls-hero p {
    max-width: 780px;
    margin: 10px 0 0;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 750;
}

.tls-hero-actions {
    margin-top: 16px;
}

.tls-hero-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 11px;
    background: rgba(245, 166, 35, 0.12);
    border: 1px solid rgba(245, 166, 35, 0.45);
    color: #f5a623;
    text-decoration: none;
    font-size: 12px;
    font-weight: 1000;
}

/* Month form */
.tls-month-form {
    display: grid;
    gap: 8px;
    min-width: 220px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tls-month-form label {
    color: #eaf1ff;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
}

.tls-month-form input {
    height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    outline: none;
    font-size: 13px;
    font-weight: 900;
}

.tls-month-form input:focus {
    border-color: rgba(245, 166, 35, 0.7);
}

.tls-month-form button {
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #f5a623 0%, #ffbd4a 100%);
    color: #07111f;
    font-size: 12px;
    font-weight: 1000;
    cursor: pointer;
}

/* Cards grid */
.tls-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tls-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    min-height: 170px;
    overflow: hidden;
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(245, 166, 35, 0.11), transparent 34%),
        linear-gradient(180deg, #111827 0%, #07111f 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease;
}

.tls-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 166, 35, 0.55);
}

.tls-card-img {
    position: relative;
    min-height: 170px;
    background:
        radial-gradient(circle at center, rgba(245, 166, 35, 0.24), transparent 55%),
        #020617;
}

.tls-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tls-card-img.no-image::after {
    content: "⚽";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #f5a623;
    font-size: 54px;
}

.tls-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tls-card-body span {
    color: #f5a623;
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tls-card-body h2 {
    margin: 7px 0 8px;
    color: #fff;
    font-size: 21px;
    line-height: 1.15;
    font-weight: 1000;
    letter-spacing: -0.02em;
}

.tls-card-body p {
    margin: 0;
    color: #9fb0c7;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 750;
}

.tls-card-body strong {
    margin-top: 14px;
    color: #f5a623;
    font-size: 13px;
    font-weight: 1000;
}

/* Table card */
.tls-table-card {
    padding: 20px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(245, 166, 35, 0.10), transparent 34%),
        linear-gradient(180deg, #111827 0%, #07111f 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tls-table-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.tls-table-head span {
    color: #f5a623;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
}

.tls-table-head h2 {
    margin: 5px 0 0;
    color: #fff;
    font-size: 25px;
    line-height: 1.15;
    font-weight: 1000;
    letter-spacing: -0.03em;
}

.tls-date-range {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(245, 166, 35, 0.10);
    border: 1px solid rgba(245, 166, 35, 0.42);
    color: #f5a623;
    font-size: 12px;
    font-weight: 1000;
    white-space: nowrap;
}

.tls-table-wrap {
    overflow-x: auto;
}

.tls-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.tls-table th {
    padding: 0 12px 4px;
    color: #8fa3bf;
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
    text-align: left;
}

.tls-table td {
    padding: 14px 12px;
    background: rgba(255, 255, 255, 0.035);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: #dbeafe;
    vertical-align: middle;
}

.tls-table td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px 0 0 14px;
}

.tls-table td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0 14px 14px 0;
}

.tls-rank {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.10);
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 1000;
}

.tls-rank.is-top {
    background: rgba(245, 166, 35, 0.15);
    border: 1px solid rgba(245, 166, 35, 0.45);
    color: #f5a623;
}

.tls-league-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
}

.tls-league-logo {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

.tls-league-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.tls-league-logo span {
    font-size: 22px;
}

.tls-league-cell strong {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 1000;
    line-height: 1.2;
}

.tls-league-cell small {
    display: block;
    margin-top: 3px;
    color: #8fa3bf;
    font-size: 12px;
    font-weight: 850;
}

.tls-number {
    color: #fff;
    font-size: 14px;
    font-weight: 1000;
}

.tls-score-cell {
    display: grid;
    gap: 7px;
    min-width: 190px;
}

.tls-score-cell strong {
    color: #f5a623;
    font-size: 14px;
    font-weight: 1000;
}

.tls-bar {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.tls-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f5a623 0%, #22c55e 100%);
}

/* Empty / info */
.tls-empty {
    padding: 22px;
    border-radius: 16px;
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fecaca;
    font-size: 14px;
    font-weight: 900;
}

.tls-info-box {
    padding: 20px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(245, 166, 35, 0.10), transparent 34%),
        linear-gradient(180deg, #111827 0%, #07111f 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tls-info-box h2 {
    margin: 0;
    color: #fff;
    font-size: 22px;
    font-weight: 1000;
}

.tls-info-box p {
    margin: 10px 0 0;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 750;
}

.tls-formula {
    width: fit-content;
    max-width: 100%;
    margin-top: 14px;
    padding: 11px 14px;
    border-radius: 13px;
    background: rgba(245, 166, 35, 0.10);
    border: 1px solid rgba(245, 166, 35, 0.42);
    color: #f5a623;
    font-size: 13px;
    font-weight: 1000;
}

/* Responsive */
@media (max-width: 1100px) {
    .tls-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .tls-hero,
    .tls-hero-single {
        align-items: stretch;
        flex-direction: column;
        padding: 22px;
    }

    .tls-hero h1 {
        font-size: 30px;
    }

    .tls-month-form {
        min-width: 0;
        width: 100%;
    }

    .tls-card {
        grid-template-columns: 1fr;
    }

    .tls-card-img {
        min-height: 150px;
    }

    .tls-table-card {
        padding: 14px;
    }

    .tls-table-head {
        flex-direction: column;
    }

    .tls-date-range {
        width: fit-content;
    }

    .tls-table th,
    .tls-table td {
        padding-left: 10px;
        padding-right: 10px;
    }

    .tls-league-cell {
        min-width: 220px;
    }

    .tls-score-cell {
        min-width: 160px;
    }
}