/* =========================================================
   Compact Fixtures Timeline Market Page
   Page: resources/views/predictions/pages/market.blade.php
========================================================= */

.sp-timeline-page {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* TOP HEADER */

.sp-timeline-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 0 4px;
}

.sp-timeline-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: 26px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.sp-timeline-heading p {
    margin: 7px 0 0;
    color: #d5dce8;
    font-size: 13px;
}

.sp-timeline-market-card {
    min-width: 138px;
    height: 66px;
    padding: 10px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(245, 166, 35, 0.95);
    background:
        linear-gradient(135deg, rgba(245, 166, 35, 0.12), rgba(255, 255, 255, 0.02)),
        #08101a;
    box-shadow:
        0 0 0 1px rgba(245, 166, 35, 0.12),
        0 10px 28px rgba(0, 0, 0, 0.24);
}

.sp-timeline-market-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 22px;
    background: rgba(245, 166, 35, 0.13);
}

.sp-timeline-market-card span {
    display: block;
    color: #cdd5e2;
    font-size: 12px;
    font-weight: 800;
}

.sp-timeline-market-card strong {
    display: block;
    margin-top: 2px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 950;
}

/* DATE STRIP */

.sp-timeline-dates {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background:
        linear-gradient(180deg, rgba(15, 23, 35, 0.98), rgba(8, 13, 21, 0.98));
}

.sp-timeline-date-arrow {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: #f5a623;
    font-size: 28px;
    line-height: 1;
    border: 1px solid rgba(245, 166, 35, 0.75);
    background: rgba(245, 166, 35, 0.04);
}

.sp-timeline-date-arrow:hover {
    background: rgba(245, 166, 35, 0.12);
}

.sp-timeline-date-list {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(9, minmax(72px, 1fr));
    gap: 7px;
}

.sp-timeline-date {
    height: 54px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: #ffffff;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.055);
    background:
        linear-gradient(180deg, rgba(19, 29, 44, 0.92), rgba(12, 18, 29, 0.92));
}

.sp-timeline-date span {
    display: block;
    color: #f1f5fb;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
}

.sp-timeline-date strong {
    display: inline-block;
    margin: 2px 3px 0 0;
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
    font-weight: 950;
}

.sp-timeline-date em {
    display: inline-block;
    color: #ffffff;
    font-size: 11px;
    line-height: 1;
    font-style: normal;
    font-weight: 900;
}

.sp-timeline-date small {
    width: 4px;
    height: 4px;
    display: block;
    margin-top: 5px;
    border-radius: 50%;
    background: #cbd5e1;
}

.sp-timeline-date.active {
    border-color: rgba(245, 166, 35, 1);
    background:
        radial-gradient(circle at center, rgba(245, 166, 35, 0.20), transparent 70%),
        linear-gradient(180deg, rgba(37, 31, 17, 0.98), rgba(17, 19, 24, 0.98));
}

.sp-timeline-date.active span,
.sp-timeline-date.active strong,
.sp-timeline-date.active em {
    color: #f5a623;
}

.sp-timeline-date.active small {
    background: #f5a623;
}

/* MAIN GRID */

.sp-timeline-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 236px;
    gap: 12px;
    align-items: start;
}

.sp-timeline-main {
    min-width: 0;
}

/* TOOLBAR */

.sp-timeline-toolbar {
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 9px 9px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 0;
    background:
        linear-gradient(180deg, rgba(14, 22, 34, 0.98), rgba(9, 15, 24, 0.98));
}

.sp-timeline-primary-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sp-timeline-primary-tabs span {
    height: 36px;
    padding: 0 13px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #d7deea;
    font-size: 13px;
    font-weight: 800;
    border: 1px solid transparent;
    background: transparent;
}

.sp-timeline-primary-tabs span.active {
    color: #ffffff;
    border-color: rgba(245, 166, 35, 0.18);
    background:
        linear-gradient(180deg, rgba(245, 166, 35, 0.14), rgba(245, 166, 35, 0.04));
    box-shadow: inset 0 -2px 0 #f5a623;
}

.sp-timeline-primary-tabs span.live-dot {
    color: #ffffff;
}

.sp-timeline-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sp-timeline-search input {
    width: 260px;
    height: 34px;
    padding: 0 12px;
    border-radius: 7px;
    color: #e8eef8;
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.075);
    background: rgba(255, 255, 255, 0.035);
}

.sp-timeline-search input::placeholder {
    color: #778295;
}

.sp-timeline-search button {
    height: 34px;
    padding: 0 14px;
    border-radius: 7px;
    cursor: pointer;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.035);
}

.sp-timeline-search button:hover {
    color: #111;
    border-color: #f5a623;
    background: #f5a623;
}

/* SINGLE MARKET CHIP */

.sp-timeline-market-strip {
    min-height: 48px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    background:
        linear-gradient(180deg, rgba(12, 19, 30, 0.98), rgba(9, 14, 22, 0.98));
}

.sp-timeline-chip {
    height: 30px;
    padding: 0 13px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.035);
}

.sp-timeline-chip.active {
    color: #f5a623;
    border-color: rgba(245, 166, 35, 0.85);
    background: rgba(245, 166, 35, 0.07);
}

/* TABLE CARD */

.sp-timeline-table-card {
    overflow: hidden;
    border-radius: 0 0 9px 9px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-top: 0;
    background:
        linear-gradient(180deg, rgba(13, 20, 31, 0.98), rgba(8, 12, 20, 0.98));
}

/* LEAGUE */

.sp-timeline-league + .sp-timeline-league {
    border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.sp-timeline-league-head {
    height: 38px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background:
        linear-gradient(180deg, rgba(31, 40, 52, 0.78), rgba(20, 28, 39, 0.78));
}

.sp-timeline-league-name {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.sp-timeline-league-name img,
.sp-timeline-league-name > span {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    object-fit: contain;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
}

.sp-timeline-league-name strong {
    min-width: 0;
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-timeline-league-name em {
    color: #f5a623;
    font-size: 14px;
    font-style: normal;
}

.sp-timeline-league-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.sp-timeline-league-actions span {
    color: #9aa6b8;
    font-size: 12px;
    font-weight: 800;
}

.sp-timeline-league-actions a {
    color: #f5a623;
    text-decoration: none;
    font-size: 12px;
    font-weight: 950;
}

.sp-timeline-league-actions button {
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    color: #cbd5e1;
    background: transparent;
}

/* ROWS */

.sp-timeline-row {
    display: grid;
    align-items: center;
}

.sp-timeline-row-1x2 {
    grid-template-columns: 74px minmax(430px, 1fr) 92px 92px 92px 80px;
}

.sp-timeline-row-simple {
    grid-template-columns: 74px minmax(430px, 1fr) 140px 100px 80px;
}

.sp-timeline-table-head {
    height: 34px;
    padding: 0 12px;
    color: #7f8ba0;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(8, 13, 22, 0.98);
}

.sp-timeline-table-head > div {
    padding: 0 6px;
}

.sp-timeline-table-head > div:nth-child(n+3) {
    text-align: center;
}

.sp-timeline-match {
    min-height: 46px;
    padding: 0 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    background: rgba(255, 255, 255, 0.012);
}

.sp-timeline-match:hover {
    background: rgba(255, 255, 255, 0.035);
}

/* TIME COLUMN */

.sp-timeline-time {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-timeline-time strong {
    min-width: 42px;
    height: 23px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
}

.sp-timeline-time strong.scheduled {
    color: #ffffff;
    background: transparent;
}

.sp-timeline-time strong.finished {
    color: #52e88d;
    background: rgba(34, 197, 94, 0.16);
}

.sp-timeline-time strong.live {
    color: #52c8ff;
    background: rgba(14, 165, 233, 0.18);
}

.sp-timeline-time strong.half {
    color: #f5a623;
    background: rgba(245, 166, 35, 0.18);
}

/* MATCHUP */

.sp-timeline-matchup {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(170px, 1fr) 64px minmax(170px, 1fr);
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
}

.sp-timeline-matchup .team {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sp-timeline-matchup .team.home {
    justify-content: flex-end;
    text-align: right;
}

.sp-timeline-matchup .team.away {
    justify-content: flex-start;
    text-align: left;
}

.sp-timeline-matchup .team img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex: 0 0 auto;
}

.sp-timeline-matchup .team em {
    min-width: 0;
    color: #edf3ff;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* CENTER: VS OR SCORE */

.sp-timeline-matchup .center-result {
    min-width: 58px;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    color: #aeb8c8;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.sp-timeline-matchup .center-result.vs {
    color: #aeb8c8;
    background: transparent;
}

.sp-timeline-matchup .center-result.score {
    color: #f5a623;
    background: rgba(245, 166, 35, 0.13);
}

/* ODDS + TIP */

.sp-timeline-odd {
    width: calc(100% - 12px);
    height: 32px;
    margin: 0 auto;
    border-radius: 6px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
    border: 1px solid rgba(255, 255, 255, 0.075);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
}

.sp-timeline-tip {
    width: calc(100% - 10px);
    min-height: 30px;
    margin: 0 auto;
    padding: 4px 6px;
    border-radius: 6px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #bcffd4;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.05;
    background: rgba(34, 197, 94, 0.22);
    border: 1px solid rgba(34, 197, 94, 0.26);
}

.sp-timeline-tip .tip-main,
.sp-timeline-tip > span:first-child {
    display: block;
    font-size: 12px;
    font-weight: 1000;
    line-height: 1.05;
}

.sp-timeline-tip .tip-odd,
.sp-timeline-mobile-odd {
    display: none;
}

.sp-timeline-tip.tip-x,
.sp-timeline-tip.tip-1x,
.sp-timeline-tip.tip-x2,
.sp-timeline-tip.tip-12 {
    color: #111827;
    background: linear-gradient(135deg, #f5a623, #ffcf5a);
    border-color: rgba(245, 166, 35, 0.9);
}

.sp-timeline-tip.tip-2 {
    color: #9edcff;
    background: rgba(14, 165, 233, 0.20);
    border-color: rgba(14, 165, 233, 0.3);
}

/* EMPTY */

.sp-timeline-empty {
    padding: 32px 16px;
    color: #98a4b7;
    font-size: 14px;
    font-weight: 850;
    text-align: center;
}

/* RIGHT SIDEBAR */

.sp-timeline-side {
    position: sticky;
    top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sp-timeline-side-card {
    padding: 14px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    background:
        radial-gradient(circle at top right, rgba(245, 166, 35, 0.10), transparent 42%),
        linear-gradient(180deg, rgba(16, 23, 34, 0.98), rgba(10, 14, 22, 0.98));
}

.sp-side-title {
    color: #f5a623;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sp-side-date {
    padding-top: 12px;
}

.sp-side-date-nav {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) 26px;
    gap: 8px;
    align-items: center;
}

.sp-side-date-nav a {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: #f5a623;
    border: 1px solid rgba(245, 166, 35, 0.20);
    background: rgba(255, 255, 255, 0.03);
}

.sp-side-date-nav strong {
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    text-align: center;
}

.sp-side-date span {
    display: block;
    margin-top: 8px;
    color: #c4cedd;
    font-size: 12px;
    text-align: center;
}

.sp-side-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sp-side-list div {
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.sp-side-list span {
    min-width: 0;
    color: #b8c2d2;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-side-list strong {
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
}

/* RESPONSIVE */

@media (max-width: 1250px) {
    .sp-timeline-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .sp-timeline-side {
        position: static;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .sp-timeline-top {
        align-items: stretch;
        flex-direction: column;
    }

    .sp-timeline-market-card {
        width: 100%;
    }

    .sp-timeline-date-list {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .sp-timeline-date-list::-webkit-scrollbar {
        display: none;
    }

    .sp-timeline-date {
        min-width: 86px;
    }

    .sp-timeline-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .sp-timeline-primary-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .sp-timeline-primary-tabs::-webkit-scrollbar {
        display: none;
    }

    .sp-timeline-primary-tabs span {
        flex: 0 0 auto;
    }

    .sp-timeline-search {
        width: 100%;
    }

    .sp-timeline-search input {
        width: 100%;
        flex: 1;
    }

    .sp-timeline-table-card {
        overflow-x: hidden;
    }

    .sp-timeline-side {
        display: none;
    }

    .sp-timeline-row-1x2,
    .sp-timeline-row-simple {
        min-width: 0;
        width: 100%;
    }

    .sp-timeline-row-1x2 {
        grid-template-columns: 54px minmax(0, 1fr) 62px;
    }

    .sp-timeline-row-simple {
        grid-template-columns: 54px minmax(0, 1fr) 62px;
    }

    .sp-timeline-row-1x2 > div:nth-child(3),
    .sp-timeline-row-1x2 > div:nth-child(4),
    .sp-timeline-row-1x2 > div:nth-child(5) {
        display: none !important;
    }

    .sp-timeline-row-simple > div:nth-child(3),
    .sp-timeline-row-simple > div:nth-child(4) {
        display: none !important;
    }

    .sp-timeline-table-head {
        height: 32px;
        padding: 0 8px;
        font-size: 10px;
    }

    .sp-timeline-table-head > div {
        padding: 0 3px;
    }

    .sp-timeline-table-head > div:last-child {
        text-align: center;
    }

    .sp-timeline-match {
        min-height: 48px;
        padding: 0 8px;
    }

    .sp-timeline-time strong {
        min-width: 40px;
        height: 24px;
        font-size: 11px;
    }

    .sp-timeline-matchup {
        grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr);
        gap: 4px;
    }

    .sp-timeline-matchup .team {
        gap: 4px;
    }

    .sp-timeline-matchup .team img {
        width: 18px;
        height: 18px;
    }

    .sp-timeline-matchup .team em {
        font-size: 11px;
        max-width: 82px;
    }

    .sp-timeline-matchup .center-result {
        min-width: 24px;
        height: 22px;
        padding: 0 4px;
        font-size: 10px;
    }

    .sp-timeline-tip {
        width: 52px;
        min-height: 32px;
        padding: 3px 4px;
        font-size: 10px;
        border-radius: 6px;
    }

    .sp-timeline-tip .tip-odd,
    .sp-timeline-mobile-odd {
        display: block;
        margin-top: 2px;
        color: #ffffff;
        font-size: 9px;
        line-height: 1;
        font-style: normal;
        font-weight: 1000;
        opacity: .95;
        white-space: nowrap;
    }
}

@media (max-width: 640px) {
    .sp-timeline-page {
        gap: 10px;
    }

    .sp-timeline-heading h2 {
        font-size: 22px;
    }

    .sp-timeline-heading p {
        font-size: 12px;
    }

    .sp-timeline-dates {
        padding: 9px;
        gap: 8px;
    }

    .sp-timeline-date-arrow {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 24px;
    }

    .sp-timeline-date {
        min-width: 82px;
        height: 50px;
    }

    .sp-timeline-toolbar {
        padding: 10px;
    }

    .sp-timeline-primary-tabs span {
        height: 32px;
        padding: 0 10px;
        font-size: 12px;
    }

    .sp-timeline-market-strip {
        overflow-x: auto;
        scrollbar-width: none;
        padding: 8px 10px;
    }

    .sp-timeline-market-strip::-webkit-scrollbar {
        display: none;
    }

    .sp-timeline-league-head {
        padding: 0 8px;
    }

    .sp-timeline-league-name strong {
        max-width: 150px;
        font-size: 12px;
    }

    .sp-timeline-league-actions span {
        display: none;
    }

    .sp-timeline-league-actions a {
        font-size: 11px;
    }

    .sp-timeline-row-1x2,
    .sp-timeline-row-simple {
        grid-template-columns: 46px minmax(0, 1fr) 46px;
    }

    .sp-timeline-table-head {
        padding: 0 6px;
    }

    .sp-timeline-match {
        padding: 0 6px;
    }

    .sp-timeline-time strong {
        min-width: 34px;
        height: 20px;
        font-size: 9px;
    }

    .sp-timeline-matchup {
        grid-template-columns: minmax(0, 1fr) 19px minmax(0, 1fr);
        gap: 2px;
    }

    .sp-timeline-matchup .team img {
        width: 15px;
        height: 15px;
    }

    .sp-timeline-matchup .team em {
        max-width: 58px;

    }

    .sp-timeline-matchup .center-result {
        min-width: 19px;
        height: 19px;
        font-size: 8px;
        padding: 0 2px;
    }

    .sp-timeline-tip {
        width: 40px;
        min-height: 28px;
        padding: 3px 2px;
        font-size: 9px;
    }

    .sp-timeline-tip .tip-main,
    .sp-timeline-tip > span:first-child {
        font-size: 9px;
    }

    .sp-timeline-tip .tip-odd,
    .sp-timeline-mobile-odd {
        font-size: 8px;
        margin-top: 2px;
    }
}

@media (max-width: 430px) {
    .sp-timeline-row-1x2,
    .sp-timeline-row-simple {
        grid-template-columns: 44px minmax(0, 1fr) 42px;
    }

    .sp-timeline-matchup .team em {
        max-width: 52px;
    }

    .sp-timeline-league-name strong {
        max-width: 120px;
    }

    .sp-timeline-tip {
        width: 38px;
    }
}

/* =========================================================
   SEO Prediction Pages - Mobile Tip Odds
========================================================= */

.sp-seo-mobile-odd {
    display: none;
}

@media (max-width: 768px) {
    .sp-seo-prediction-row {
        grid-template-columns: minmax(0, 1fr) 58px !important;
        gap: 8px !important;
        align-items: center !important;
    }

    .sp-seo-confidence {
        display: none !important;
    }

    .sp-seo-tip-box {
        width: 58px !important;
        min-width: 58px !important;
        padding: 6px 4px !important;
        border-radius: 9px !important;
        text-align: center !important;
    }

    .sp-seo-tip-box span {
        display: none !important;
    }

    .sp-seo-tip-box strong {
        display: block !important;
        font-size: 12px !important;
        line-height: 1.1 !important;
        margin: 0 !important;
    }

    .sp-seo-mobile-odd {
        display: block !important;
        margin-top: 3px !important;
        color: #f5a623 !important;
        font-size: 9px !important;
        line-height: 1.1 !important;
        font-style: normal !important;
        font-weight: 1000 !important;
        white-space: nowrap !important;
    }

    .sp-seo-teams {
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
    }

    .sp-seo-teams strong {
        min-width: 0 !important;
        max-width: 96px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 12px !important;
    }

    .sp-seo-teams span {
        flex: 0 0 auto !important;
        font-size: 10px !important;
    }

    .sp-seo-league,
    .sp-seo-time {
        font-size: 10px !important;
    }
}

/* =========================================================
   SoccerPrediction.io Style - Static Pages
   About / Privacy / Terms / Disclaimer
========================================================= */

.sp-static-page {
    width: 100%;
    margin: 0 auto;
    padding: 22px 18px 50px;
    color: #ffffff;
}

.sp-static-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(12, 17, 25, 0.98) 100%);
    border: 1px solid rgba(245, 166, 35, 0.55);
    border-radius: 16px;
    padding: 26px 28px;
    margin-bottom: 16px;
    box-shadow: none;
}

.sp-static-hero::before {
    content: "";
    position: absolute;
    right: -90px;
    top: -90px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(245, 166, 35, 0.08);
    pointer-events: none;
}

.sp-static-hero span {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 13px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(245, 166, 35, 0.12);
    border: 1px solid rgba(245, 166, 35, 0.42);
    color: #ffad1f;
    font-size: 12px;
    font-weight: 1000;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.sp-static-hero h1 {
    position: relative;
    z-index: 2;
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 36px;
    line-height: 1.12;
    font-weight: 1000;
    letter-spacing: -0.8px;
    text-shadow: none;
}

.sp-static-hero p {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0;
    color: #d9e7ff;
    font-size: 15px;
    line-height: 1.75;
    font-weight: 800;
}

.sp-static-card {
    background:
        linear-gradient(180deg, rgba(15, 23, 34, 0.98) 0%, rgba(9, 14, 22, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 26px 28px;
    box-shadow: none;
}

.sp-static-card h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.25;
    margin: 34px 0 14px;
    font-weight: 1000;
    letter-spacing: -0.4px;
    text-shadow: none;
}

.sp-static-card h2:first-child {
    margin-top: 0;
}

.sp-static-card h2::before {
    content: "";
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffad1f;
    box-shadow: 0 0 14px rgba(255, 173, 31, 0.55);
}

.sp-static-card p {
    color: #dce8f7;
    font-size: 15px;
    line-height: 1.85;
    margin: 0 0 16px;
    font-weight: 750;
}

.sp-static-card strong {
    color: #ffad1f;
    font-weight: 1000;
}

.sp-static-card a {
    color: #ffad1f;
    text-decoration: none;
    font-weight: 1000;
}

.sp-static-card a:hover {
    color: #ffc45c;
    text-decoration: underline;
}

.sp-static-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    background: rgba(245, 166, 35, 0.12);
    border: 1px solid rgba(245, 166, 35, 0.55);
    color: #ffad1f !important;
    font-size: 14px;
    font-weight: 1000 !important;
    text-decoration: none !important;
}

.sp-static-link:hover {
    background: rgba(245, 166, 35, 0.20);
    color: #ffffff !important;
    text-decoration: none !important;
}

.sp-static-card ul,
.sp-static-card ol {
    margin: 12px 0 20px 22px;
    padding: 0;
    color: #dce8f7;
    line-height: 1.8;
    font-weight: 750;
}

.sp-static-card li {
    margin-bottom: 8px;
}

.sp-static-card blockquote {
    margin: 22px 0;
    padding: 16px 18px;
    border-left: 4px solid #ffad1f;
    background: rgba(245, 166, 35, 0.08);
    border-radius: 12px;
    color: #ffffff;
    font-weight: 800;
}

.sp-static-card p + h2,
.sp-static-card ul + h2,
.sp-static-card ol + h2 {
    margin-top: 36px;
}

.sp-static-page *,
.sp-static-card *,
.sp-static-hero * {
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .sp-static-page {
        padding: 16px 12px 42px;
        max-width: 100%;
    }

    .sp-static-hero {
        padding: 22px 18px;
        border-radius: 14px;
        margin-bottom: 14px;
    }

    .sp-static-hero h1 {
        font-size: 30px;
    }

    .sp-static-hero p {
        font-size: 14px;
        line-height: 1.7;
    }

    .sp-static-card {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .sp-static-card h2 {
        font-size: 21px;
        margin-top: 30px;
    }

    .sp-static-card p {
        font-size: 14px;
        line-height: 1.75;
    }
}

@media (max-width: 520px) {
    .sp-static-page {
        padding: 12px 10px 36px;
    }

    .sp-static-hero {
        padding: 20px 16px;
    }

    .sp-static-hero span {
        height: 28px;
        font-size: 11px;
    }

    .sp-static-hero h1 {
        font-size: 27px;
    }

    .sp-static-card {
        padding: 20px 16px;
    }

    .sp-static-card h2 {
        font-size: 20px;
        gap: 8px;
    }

    .sp-static-link {
        width: 100%;
        min-height: 42px;
    }
}

/* =========================================================
   FINAL MOBILE FIX
   Left aligned teams + less gaps + do not cut names if space exists
========================================================= */

@media (max-width: 640px) {

    /* Main row columns: smaller time + bigger match + small prediction */
    .sp-timeline-row-simple,
    .sp-timeline-row-1x2 {
        grid-template-columns: 36px minmax(0, 1fr) 38px !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .sp-timeline-match {
        padding-left: 4px !important;
        padding-right: 4px !important;
        min-height: 42px !important;
    }

    .sp-timeline-table-head {
        padding-left: 4px !important;
        padding-right: 4px !important;
        font-size: 9px !important;
    }

    .sp-timeline-table-head > div {
        padding-left: 1px !important;
        padding-right: 1px !important;
    }

    /* Hide desktop odds columns on mobile */
    .sp-timeline-row-1x2 > div:nth-child(3),
    .sp-timeline-row-1x2 > div:nth-child(4),
    .sp-timeline-row-1x2 > div:nth-child(5),
    .sp-timeline-row-simple > div:nth-child(3) {
        display: none !important;
    }

    /* Time */
    .sp-timeline-time {
        justify-content: flex-start !important;
    }

    .sp-timeline-time strong {
        min-width: 29px !important;
        height: 19px !important;
        padding: 0 2px !important;
        font-size: 8px !important;
        border-radius: 5px !important;
    }

    /* Match starts from left, not centered */
    .sp-timeline-matchup {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 3px !important;
        min-width: 0 !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    .sp-timeline-matchup .team {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 2px !important;
        min-width: 0 !important;
        flex: 0 1 auto !important;
        text-align: left !important;
        overflow: visible !important;
    }

    .sp-timeline-matchup .team.home,
    .sp-timeline-matchup .team.away {
        justify-content: flex-start !important;
        text-align: left !important;
        flex-direction: row !important;
    }

    /* Make home also logo first, name after */
    .sp-timeline-matchup .team.home img {
        order: 1 !important;
    }

    .sp-timeline-matchup .team.home em {
        order: 2 !important;
    }

    .sp-timeline-matchup .team.away img {
        order: 1 !important;
    }

    .sp-timeline-matchup .team.away em {
        order: 2 !important;
    }

    .sp-timeline-matchup .team img {
        width: 12px !important;
        height: 12px !important;
        flex: 0 0 12px !important;
        object-fit: contain !important;
    }

    /* Do not cut names unless row really has no space */
    .sp-timeline-matchup .team em {
        max-width: none !important;
        min-width: 0 !important;
        width: auto !important;
        letter-spacing: -0.25px !important;
        text-align: left !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    /* Center result / vs compact */
    .sp-timeline-matchup .center-result {
        flex: 0 0 auto !important;
        min-width: auto !important;
        width: auto !important;
        height: 16px !important;
        padding: 0 1px !important;
        margin: 0 !important;
        font-size: 7px !important;
        border-radius: 999px !important;
    }

    .sp-timeline-matchup .center-result.score {
        min-width: 22px !important;
        padding: 0 2px !important;
        background: rgba(245, 166, 35, 0.13) !important;
    }

    /* Prediction box smaller */
    .sp-timeline-prediction-pick,
    .sp-timeline-tip {
        width: 34px !important;
        min-width: 34px !important;
        min-height: 27px !important;
        padding: 2px 1px !important;
        border-radius: 6px !important;
        font-size: 8px !important;
        line-height: 1 !important;
    }

    .sp-timeline-prediction-pick .tip-main,
    .sp-timeline-tip .tip-main,
    .sp-timeline-tip > span:first-child {
        font-size: 8px !important;
        line-height: 1 !important;
    }

    .sp-timeline-prediction-pick .tip-odd,
    .sp-timeline-tip .tip-odd,
    .sp-timeline-mobile-odd {
        display: block !important;
        margin-top: 2px !important;
        font-size: 7px !important;
        line-height: 1 !important;
        color: #ffffff !important;
        font-weight: 1000 !important;
        white-space: nowrap !important;
    }

    /* League header compact */
    .sp-timeline-league-head {
        height: 34px !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
        gap: 5px !important;
    }

    .sp-timeline-league-name {
        gap: 5px !important;
        min-width: 0 !important;
    }

    .sp-timeline-league-name img,
    .sp-timeline-league-name > span {
        width: 18px !important;
        height: 18px !important;
        flex: 0 0 18px !important;
    }

    .sp-timeline-league-name strong {
        max-width: none !important;
        min-width: 0 !important;
        font-size: 10.5px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .sp-timeline-league-actions {
        gap: 4px !important;
    }

    .sp-timeline-league-actions span {
        display: none !important;
    }

    .sp-timeline-league-actions a {
        font-size: 9.5px !important;
        white-space: nowrap !important;
    }

    .sp-timeline-league-actions button {
        width: 16px !important;
        height: 16px !important;
    }
}

@media (max-width: 430px) {
    .sp-timeline-row-simple,
    .sp-timeline-row-1x2 {
        grid-template-columns: 34px minmax(0, 1fr) 36px !important;
    }

    .sp-timeline-match {
        padding-left: 3px !important;
        padding-right: 3px !important;
    }

    .sp-timeline-matchup {
        gap: 2px !important;
    }

    .sp-timeline-matchup .team {
        gap: 1px !important;
    }

    .sp-timeline-matchup .team img {
        width: 11px !important;
        height: 11px !important;
        flex-basis: 11px !important;
    }

    .sp-timeline-matchup .team em {
        letter-spacing: -0.35px !important;
    }

    .sp-timeline-time strong {
        min-width: 27px !important;
        font-size: 7.5px !important;
    }

    .sp-timeline-prediction-pick,
    .sp-timeline-tip {
        width: 32px !important;
        min-width: 32px !important;
    }
}

/* =========================================================
   FIX: Show prediction column on mobile for BTTS / Over / CS
========================================================= */

@media (max-width: 900px) {

    /* Simple markets mobile layout:
       Time | Match | Prediction
       Hide only Odd column, keep Prediction column visible
    */
    .sp-timeline-row-simple {
        grid-template-columns: 36px minmax(0, 1fr) 38px !important;
    }

    .sp-timeline-row-simple > div:nth-child(3) {
        display: none !important;
    }

    .sp-timeline-row-simple > div:nth-child(4) {
        display: inline-flex !important;
        grid-column: 3 !important;
    }

    .sp-timeline-row-simple.sp-timeline-table-head > div:nth-child(4) {
        display: block !important;
        grid-column: 3 !important;
        text-align: center !important;
    }

    /* 1X2: hide 1 X 2 odds, keep prediction */
    .sp-timeline-row-1x2 > div:nth-child(3),
    .sp-timeline-row-1x2 > div:nth-child(4),
    .sp-timeline-row-1x2 > div:nth-child(5) {
        display: none !important;
    }

    .sp-timeline-row-1x2 > div:nth-child(6) {
        display: inline-flex !important;
        grid-column: 3 !important;
    }

    .sp-timeline-row-1x2.sp-timeline-table-head > div:nth-child(6) {
        display: block !important;
        grid-column: 3 !important;
        text-align: center !important;
    }
}

.sp-insights-banner {
    margin-top: 18px;
    border-radius: 16px;
    padding: 22px 24px;
    border: 1px solid rgba(245,166,35,.35);
    background:
        linear-gradient(90deg, rgba(10,15,25,.96) 0%, rgba(10,15,25,.88) 48%, rgba(10,15,25,.35) 100%),
        radial-gradient(circle at 85% 45%, rgba(56,189,248,.22), transparent 36%),
        linear-gradient(135deg, #111827, #05070b);
    overflow: hidden;
}

.sp-insights-banner h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 24px;
    font-weight: 1000;
}

.sp-insights-banner p {
    margin: 0;
    max-width: 760px;
    color: #c9d3e5;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 700;
}

.sp-insights-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.sp-insights-links a {
    color: #ffad1f;
    text-decoration: none;
    font-weight: 900;
    font-size: 13px;
    padding: 9px 13px;
    border-radius: 10px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.1);
}

.sp-stats-dashboard {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.sp-stat-box {
    background: linear-gradient(180deg, #111923 0%, #0b111a 100%);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
    padding: 14px;
    min-height: 220px;
}

.sp-stat-box.sp-wide {
    grid-column: span 2;
}

.sp-stat-head h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 1000;
}

.sp-table-mini {
    display: grid;
    gap: 8px;
}

.sp-table-mini > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    color: #d7e0ee;
    font-size: 12px;
    font-weight: 800;
}

.sp-table-mini .sp-table-head {
    color: #8fa0b8;
    font-size: 11px;
    text-transform: uppercase;
}

.sp-table-mini strong {
    color: #ffad1f;
    font-weight: 1000;
}

.sp-table-mini strong.green {
    color: #22c55e;
}

.sp-table-mini strong.red {
    color: #ff4b5f;
}

.sp-stat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 13px;
    min-height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
}

.sp-stat-btn:hover {
    color: #ffad1f;
    border-color: rgba(245,166,35,.45);
}

.sp-progress-list {
    display: grid;
    gap: 10px;
}

.sp-progress-list > div {
    display: grid;
    grid-template-columns: 1fr 86px 38px;
    gap: 10px;
    align-items: center;
    color: #d7e0ee;
    font-size: 12px;
    font-weight: 800;
}

.sp-progress-list em {
    height: 7px;
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    overflow: hidden;
}

.sp-progress-list em i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffad1f, #ff7a1a);
}

.sp-progress-list strong {
    color: #fff;
    font-weight: 1000;
    text-align: right;
}

.sp-form-teams {
    display: grid;
    gap: 9px;
}

.sp-form-teams > div {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 60px;
    gap: 10px;
    align-items: center;
    color: #d7e0ee;
    font-size: 12px;
    font-weight: 800;
}

.sp-form-head {
    color: #8fa0b8 !important;
    font-size: 11px !important;
    text-transform: uppercase;
}

.sp-dots {
    display: flex;
    gap: 5px;
}

.sp-dots i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #22c55e;
}

.sp-form-teams strong {
    color: #22c55e;
    font-weight: 1000;
    text-align: right;
}

.sp-market-snapshot {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    align-items: center;
}

.sp-market-donut {
    width: 105px;
    height: 105px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    text-align: center;
    background:
        radial-gradient(circle, #101827 0 48%, transparent 49%),
        conic-gradient(#ffad1f 0 28%, #22c55e 28% 53%, #38bdf8 53% 74%, #a855f7 74% 90%, #ff3b5c 90% 100%);
}

.sp-market-donut strong {
    color: #fff;
    font-size: 22px;
    font-weight: 1000;
}

.sp-market-donut span {
    display: block;
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 800;
}

.sp-market-legend {
    display: grid;
    gap: 7px;
}

.sp-market-legend span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #d7e0ee;
    font-size: 12px;
    font-weight: 800;
}

.sp-market-legend i {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    display: inline-block;
    margin-right: 6px;
}

.sp-market-legend .orange { background: #ffad1f; }
.sp-market-legend .green { background: #22c55e; }
.sp-market-legend .blue { background: #38bdf8; }
.sp-market-legend .purple { background: #a855f7; }
.sp-market-legend .red { background: #ff3b5c; }

.sp-hot-stats {
    display: grid;
    gap: 10px;
}

.sp-hot-stats div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #d7e0ee;
    font-size: 12px;
    font-weight: 800;
}

.sp-hot-stats strong {
    color: #ffad1f;
    font-weight: 1000;
}

@media (max-width: 1200px) {
    .sp-stats-dashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .sp-stats-dashboard {
        grid-template-columns: 1fr;
    }

    .sp-stat-box.sp-wide {
        grid-column: span 1;
    }

    .sp-insights-banner {
        padding: 18px;
    }

    .sp-insights-banner h2 {
        font-size: 20px;
    }

    .sp-form-teams > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .sp-form-head {
        display: none !important;
    }

    .sp-market-snapshot {
        grid-template-columns: 1fr;
    }
}