@font-face {
    font-family: 'yt_normal';
    src: url('../fonts/RobotoCondensed-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'yt_bold';
    src: url('../fonts/RobotoCondensed-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'yt_black';
    src: url('../fonts/RobotoCondensed-Black.ttf') format('truetype');
}

@font-face {
    font-family: 'yt_italic';
    src: url('../fonts/RobotoCondensed-Italic.ttf') format('truetype');
}

@font-face {
    font-family: 'yt_light';
    src: url('../fonts/RobotoCondensed-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'yt_thin';
    src: url('../fonts/RobotoCondensed-Thin.ttf') format('truetype');
}

.x2-page {
    background: #f5f8fc;
    min-height: calc(100vh - 70px);
    padding-bottom: 0;
}

/* =========================================================
   HERO
   ========================================================= */

.x2-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 70% 18%, rgba(37, 124, 235, .30), transparent 30%), radial-gradient(ellipse at 78% 82%, rgba(22, 196, 143, .25), transparent 35%), linear-gradient(135deg, #06172d 0%, #082b4b 52%, #063b46 100%);
    color: #fff;
}

.x2-hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -220px;
    top: -300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .035);
}

.x2-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    left: -170px;
    bottom: -210px;
    border-radius: 50%;
    background: rgba(23, 105, 213, .10);
}

.x2-hero-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 32px 0px 52px;
    position: relative;
    z-index: 1;
}

.x2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #b9d3e8;
    font-size: 10px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.x2-eyebrow span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #28dba8;
    box-shadow: 0 0 0 5px rgba(40, 219, 168, .12);
}

.x2-hero p {
    max-width: 700px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    line-height: 1.75;
}

@media (max-width: 760px) {
    .x2-hero {
        padding: 20px 12px 30px;
    }

    .x2-hero p {
        font-size: 13px;
    }

    .x2-hero-inner {
        padding: 0px;
    }
}

/* =========================================================
   QUICK STATS (markup and base styles come from main.css)
   ========================================================= */

.quick-stats {
    width: calc(100% - 40px) !important;
    max-width: 1160px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

@media (max-width: 760px) {
    .quick-stats {
        width: calc(100% - 24px) !important;
        max-width: none !important;
    }

    .unified-predictions .quick-stats>div {
        text-align: left !important;
    }

    .unified-predictions .quick-stats>div span,
    .unified-predictions .quick-stats>div small {
        display: block !important;
        width: 100% !important;
        float: none !important;
        clear: both !important;
    }

    .unified-predictions .quick-stats>div span+strong {
        display: block !important;
    }
}

/* =========================================================
   CONTENT WRAPPER
   ========================================================= */

.unified-content {
    max-width: 1160px;
    margin: 0 auto;
    box-sizing: border-box;
    margin-top: 40px;
}

@media (max-width: 760px) {
    .unified-content {
        padding: 0 14px 0px;
        margin-top: 0px;
    }
}

/* =========================================================
   MARKET TABS
   ========================================================= */

.prediction-markets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 40px 0 18px;
}

.prediction-markets a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid #dfe7f0;
    border-radius: 10px;
    background: #fff;
    color: #53677c;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: .18s ease;
}

.prediction-markets a:hover {
    border-color: #b9cbe0;
    color: #2878f0;
}

.prediction-markets a.active {
    border-color: #2878f0;
    background: #2878f0;
    color: #fff;
    box-shadow: 0 6px 16px rgba(40, 120, 240, .16);
}

/* Market icons (same colors as the homepage) */
.prediction-markets .market-btn::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-right: 6px;
    border-radius: 7px;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.03em;
}

.prediction-markets .market-1x2::before {
    content: "1X2";
    background: #3b82f6;
}

.prediction-markets .market-cs::before {
    content: "CS";
    background: #8b5cf6;
}

.prediction-markets .market-ht_ft::before {
    content: "HT";
    background: #f59e0b;
}

.prediction-markets .market-ht::before {
    content: "HT";
    background: #f59e0b;
}

.prediction-markets .market-btts::before {
    content: "BTTS";
    background: #10b981;
    font-size: 7px;
}

.prediction-markets .market-ou::before {
    content: "O/U";
    background: #ef4444;
    font-size: 8px;
}

.prediction-markets .market-dnb::before {
    content: "DNB";
    background: #2563eb;
    font-size: 7px;
}

.prediction-markets .market-dc::before {
    content: "DC";
    background: #06b6d4;
}

/* Mobile: single scrollable row */
@media (max-width: 760px) {
    .prediction-markets {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 6px;
        margin: 16px 0 14px;
        padding: 2px 2px 7px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .prediction-markets::-webkit-scrollbar {
        display: none;
    }

    .prediction-markets a {
        flex: 0 0 auto;
        width: auto;
        min-width: 0;
        height: 34px;
        min-height: 34px;
        padding: 0 10px;
        border-radius: 9px;
        font-size: 11px;
        line-height: 34px;
    }
}

/* =========================================================
   TOOLBAR (day tabs + search)
   ========================================================= */

.x2-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.x2-days {
    display: flex;
    gap: 5px;
    background: #e9eef5;
    padding: 4px;
    border-radius: 5px;
}

.x2-day {
    border: 0;
    background: transparent;
    padding: 9px 15px;
    border-radius: 5px;
    color: #66778b;
    font-size: 14px;
    cursor: pointer;
}

.x2-day.active {
    background: #0f3661;
    color: #fff;
    box-shadow: 0 2px 8px rgba(20, 40, 70, .08);
}

.x2-search {
    width: 250px;
    position: relative;
}

.x2-search input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e0e7ef;
    background: #fff;
    border-radius: 11px;
    padding: 11px 14px 11px 37px;
    outline: none;
    font-size: 12px;
}

.x2-search input:focus {
    border-color: #8bbcf4;
    box-shadow: 0 0 0 3px rgba(40, 120, 240, .08);
}

.x2-search span {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #8292a5;
    font-size: 14px;
}

@media (max-width: 760px) {
    .x2-toolbar {
        display: block;
    }

    .x2-days {
        width: 100%;
        margin-bottom: 9px;
    }

    .x2-day {
        flex: 1;
    }

    .x2-search {
        width: 100%;
    }

    .x2-panel-title h2 {
        font-size: 12px !important;
    }
}

/* =========================================================
   DAY PANEL
   ========================================================= */

.x2-panel {
    margin-bottom: 28px;
}

.x2-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
}

.x2-panel-title h2 {
    margin: 0;
    color: #1769d5;
    font-size: 14px;
    font-weight: 100;
    letter-spacing: 0;
}

.x2-panel-title span {
    color: #8493a4;
    font-size: 10px;
    font-weight: 700;
}

/* =========================================================
   MATCH CARD
   ========================================================= */

.x2-match {
    position: relative;
    background: #fff;
    border: 1px solid #e5ebf2;
    border-radius: 17px;
    margin-bottom: 9px;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}

.x2-match:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(24, 48, 80, .08);
}

/* Whole card is clickable */
.x2-match-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: block;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    text-decoration: none !important;
}

.x2-match-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: center;
}

@media (max-width: 760px) {
    .x2-match-main {
        grid-template-columns: 1fr;
    }
}

/* ---------- Match info ---------- */

.x2-match-info {
    position: relative;
    min-width: 0;
    padding: 18px 20px;
}

@media (max-width: 760px) {
    .x2-match-info {
        padding: 15px;
    }
}

.x2-league {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    color: black;
    font-size: 16px;
    font-weight: normal;
}

.x2-league img {
    width: 24px;
    height: 11px;
    object-fit: contain;
}

.x2-teams {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 110px;
    /* room for the absolutely positioned time */
}

.x2-team-names {
    flex: 1;
    min-width: 0;
}

.x2-team {
    display: block;
    color: #12263d;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.7;
}

.x2-vs {
    color: #9aa7b6;
    font-size: 9px;
    font-weight: 700;
    margin: 0 4px;
}

/* Desktop: teams side by side */
@media (min-width: 761px) {
    .x2-teams {
        width: 100%;
        gap: 10px;
    }

    .x2-team-names {
        display: contents;
    }

    .x2-team {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .x2-team-names .x2-team:nth-child(1) {
        order: 1;
        flex: 0 1 auto;
        max-width: 260px;
        text-align: left;
        font-size: 16px;
    }

    .x2-vs {
        order: 2;
        flex: 0 0 auto;
        margin: 0 2px;
    }

    .x2-team-names .x2-team:nth-child(2) {
        order: 3;
        flex: 0 1 auto;
        max-width: 260px;
        text-align: left;
        font-size: 16px;
    }
}

@media (max-width: 760px) {
    .x2-team {
        font-size: 22px;
    }

    .x2-vs {
        display: none;
    }
}

@media (max-width: 640px) {
    .x2-teams {
        padding-right: 0;
    }
}

@media (max-width: 420px) {
    .x2-teams {
        gap: 8px;
    }

    .x2-team {
        font-size: 18px;
    }
}

/* ---------- Match time (vertically centered on the info block) ---------- */

.x2-time {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 64px;
    margin: 0;
    color: #52667b;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
}

.tz-time {
    font-variant-numeric: tabular-nums;
    line-height: 1;
    font-weight: bold;
}

.x2-time-icon {
    flex: none;
    opacity: .75;
}

@media (min-width: 761px) {
    .x2-time {
        font-size: 18px;
        font-weight: bold;
        text-align: right;
    }
}

@media (max-width: 760px) {
    .x2-time {
        min-width: 55px;
    }
}

@media (max-width: 640px) {
    .x2-time {
        position: static;
        transform: none;
    }
}

@media (max-width: 420px) {
    .x2-time {
        min-width: 48px;
        font-size: 14px;
        font-weight: 800;
    }
}

/* ---------- Selected tip + odds ---------- */

.x2-markets {
    min-width: 170px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 13px;
    border-left: 1px solid #edf1f5;
}

.unified-market-value {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 70px;
    gap: 6px;
}

.unified-market-value strong,
.unified-market-value span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 5px;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 600;
}

.unified-market-value strong {
    background: #e8f1ff;
    color: #2878f0;
    box-shadow: inset 0 0 0 1px rgba(40, 120, 240, .12);
    font-size: 16px;
}

.unified-market-value span {
    background: #f5f8fc;
    color: #30465e;
}

@media (max-width: 760px) {
    .x2-markets {
        min-width: 0;
        padding: 12px 15px;
        border-left: 0;
        border-top: 1px solid #edf1f5;
    }

    .unified-market-value {
        grid-template-columns: minmax(0, 1fr) 80px;
    }
}

/* ---------- Bottom bar (market label + "View Match") ---------- */

.x2-prediction {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #f8fafc;
    border-top: 1px solid #edf1f5;
}

.x2-prediction-label {
    color: #8795a5;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.x2-prediction-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.x2-pick {
    min-width: 30px;
    padding: 5px 8px;
    border-radius: 7px;
    background: #e3f8ef;
    color: #13a66d;
    text-align: center;
    font-size: 10px;
    font-weight: 900;
}

.x2-view {
    color: #2878f0;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    pointer-events: none;
}

@media (max-width: 760px) {
    .x2-prediction {
        padding: 9px 15px;
    }
}

@media (max-width: 420px) {
    .x2-prediction {
        padding: 9px 12px;
    }
}





.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

/* =========================================================
   LOAD MORE (append to the end of predictions.css)
   ========================================================= */

/* Cards beyond the first page: hidden before JS takes over (no flash) */
.js .x2-match[data-extra] {
    display: none;
}

/* Cards hidden by the JS pagination / search */
.x2-match.is-hidden {
    display: none;
}

/* "Show more" button wrapper: only visible when JS is available */
.x2-more {
    display: none;
    justify-content: center;
    margin: 16px 0 4px;
}

.js .x2-more {
    display: flex;
}

.x2-more[hidden] {
    display: none;
}

.x2-more-btn {
    min-height: 42px;
    padding: 0 22px;
    border: 1px solid #dfe7f0;
    border-radius: 10px;
    background: #fff;
    color: #2878f0;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: .18s ease;
}

.x2-more-btn:hover {
    border-color: #2878f0;
    background: #2878f0;
    color: #fff;
}

/* Search with no results */
.x2-noresults {
    margin: 0 0 12px;
    padding: 18px;
    border: 1px dashed #ccd8e6;
    border-radius: 15px;
    background: #fff;
    color: #647589;
    font-size: 12px;
    text-align: center;
}

.x2-noresults[hidden] {
    display: none;
}

.x2-load-more-wrap {
    min-height: 1px;
}

.x2-load-more,
.x2-load-more-count {
    display: none !important;
}

.x2-hero-inner h1 {
    font-size: clamp(36px, 5vw, 48px);
    line-height: 1.05 !important;
    margin: 18px 0 14px !important;
    font-family: 'yt_bold';
}

.x2-hero-inner h1 strong {
    display: block;
    color: #39d89c;
}

@media (min-width: 761px) {
    .unified-predictions .x2-match-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 18px;
        width: 100%;
        align-items: stretch;
    }

    .unified-predictions .x2-match-grid>.x2-match {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        box-sizing: border-box;
        margin: 0 !important;
    }

    /* The original card was designed for a wider row; stack its contents in each grid cell. */
    .unified-predictions .x2-match-grid .x2-match-main,
    .unified-predictions .x2-match-grid .x2-match-info,
    .unified-predictions .x2-match-grid .x2-teams,
    .unified-predictions .x2-match-grid .x2-team-names {
        min-width: 0 !important;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .unified-predictions .x2-match-grid .x2-match-main {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .unified-predictions .x2-match-grid .x2-teams {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px;
    }

    .unified-predictions .x2-match-grid .x2-team-names {
        display: flex;
        flex: 1 1 100%;
        flex-direction: column;
        gap: 5px;
        overflow: visible !important;
    }

    .unified-predictions .x2-match-grid .x2-team {
        display: block !important;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        overflow-wrap: anywhere;
        word-break: normal;
        line-height: 1.35;
    }

    .unified-predictions .x2-match-grid .x2-vs,
    .unified-predictions .x2-match-grid .x2-time {
        flex: 0 0 auto;
    }

    .unified-predictions .x2-match-grid .x2-markets,
    .unified-predictions .x2-match-grid .x2-prediction {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
}

@media (max-width: 640px) {
    .unified-predictions .x2-match-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}