
/* TIP1X2_SOCCER_HOME_LAYOUT_V18 */

/* Use the same content width as the homepage. */
body.t1-soccer-home-v18 .tip1x2-container {
    box-sizing: border-box !important;
    width: calc(100% - 32px) !important;
    max-width: 1150px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Same top section as Home */
body.t1-soccer-home-v18 .t1-soccer18-top {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0 0 24px;
}

body.t1-soccer-home-v18 .t1-soccer18-top .t1ssh-datebar,
body.t1-soccer-home-v18 .t1-soccer18-top .t1ssh-hero,
body.t1-soccer-home-v18 .t1-soccer18-top .t1ssh-shortcuts {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
}

body.t1-soccer-home-v18 .t1-soccer18-top .t1ssh-hero {
    display: flex;
}

body.t1-soccer-home-v18 .t1-soccer18-top .t1ssh-hero-text {
    min-width: 0;
}

/* Desktop: exactly two columns, matching Home */
@media (min-width: 951px) {
    body.t1-soccer-home-v18 .t1-pred-layout {
        display: grid !important;
        grid-template-columns:
            248px minmax(0, 1fr) !important;
        align-items: start !important;
        column-gap: 20px !important;
        row-gap: 20px !important;
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.t1-soccer-home-v18
    .t1-pred-layout > .t1-pred-side:first-child {
        grid-column: 1 !important;
        grid-row: 1 / span 2 !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.t1-soccer-home-v18
    .t1-pred-layout > .t1-pred-main {
        grid-column: 2 !important;
        grid-row: 1 !important;
        min-width: 0 !important;
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Match Intelligence below fixtures, not on the right. */
    body.t1-soccer-home-v18
    .t1-pred-layout > .t1-pred-side:last-child {
        grid-column: 2 !important;
        grid-row: 2 !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Common styling */
body.t1-soccer-home-v18 .t1-pred-main {
    min-width: 0;
}

body.t1-soccer-home-v18 .t1-pred-panel,
body.t1-soccer-home-v18 .t1-pred-league {
    border-radius: 12px;
    box-sizing: border-box;
}

body.t1-soccer-home-v18 .t1-pred-fixtures {
    min-width: 0;
}

body.t1-soccer-home-v18 .t1-pred-toolbar {
    min-width: 0;
}

/* Tablet and mobile */
@media (max-width: 950px) {
    body.t1-soccer-home-v18 .t1-pred-layout {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: none !important;
        gap: 16px !important;
    }

    body.t1-soccer-home-v18
    .t1-pred-layout > .t1-pred-main {
        order: 1;
        width: 100% !important;
        min-width: 0 !important;
    }

    body.t1-soccer-home-v18
    .t1-pred-layout > .t1-pred-side:first-child {
        order: 2;
        width: 100% !important;
        min-width: 0 !important;
    }

    body.t1-soccer-home-v18
    .t1-pred-layout > .t1-pred-side:last-child {
        order: 3;
        width: 100% !important;
        min-width: 0 !important;
    }
}

@media (max-width: 600px) {
    body.t1-soccer-home-v18 .tip1x2-container {
        width: calc(100% - 20px) !important;
    }

    body.t1-soccer-home-v18
    .t1-soccer18-top .t1ssh-hero h1 {
        font-size: clamp(24px, 6vw, 32px);
        line-height: 1.18;
    }
}
