@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700;900&display=swap');

/* Euro lige 2026 — adaptirano iz sp-2026.css.
   Bez tablice: uklonjeni .W-table*, .W-table-icons i W-mode-* prebacivanje. */

/* plava paleta preuzeta iz HNL widgeta (SP je koristio crvenu #c42426) */
html,
body {
    padding: 0;
    margin: 0;
    --bg-prime: #0f174f;
    --bg-prime-inactive: #878ba7;
    --bg-sponzor: #c3c5d3;
    --blackish: #1a1a1a;
}

/* desktop: 970x250
 mobile: 410x530 */

#W-wrap {
    position: relative;
    max-width: clamp(240px, 1140px, 100%);
    height: 250px;

    box-sizing: border-box;
    overflow: hidden;
    font-family: Roboto, Helvetica, sans-serif;
}

#W-wrap .W-cloak {
    display: none;
}

#W-wrap .W-show-mobile {
    display: none;
}

/* header */
#W-wrap .W-header {
    height: 40px;
    display: flex;
    flex-direction: row;
}

#W-wrap .W-title {
    display: flex;
    flex-grow: 1;
    align-items: center;
    justify-content: center;
    padding: 3px;
    margin: 0;
    font-size: 24px;
    line-height: 1;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
    color: white;
    background-color: var(--bg-prime);
}

/* swiper rezultati */
#W-wrap .swiper-button-next,
#W-wrap .swiper-button-prev {
    margin-top: -15px;
}

#W-wrap .swiper-rez-container .swiper-button-next svg path,
#W-wrap .swiper-rez-container .swiper-button-prev svg path {
    fill: var(--bg-prime);
}

#W-wrap .swiper-rez-container .swiper-button-disabled {
    display: none;
}

#W-rez-swiper {
    margin-top: 37.5px;
    height: 200px;
    padding: 0 35px;
}

#W-wrap .swiper-slide {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

#W-wrap #W-rez-swiper .swiper-wrapper>*:not(:last-child)::after {
    content: " ";
    position: absolute;
    top: 40px;
    bottom: 100px;
    right: -30px;
    width: 1px;
    background-color: #D9D9D9;
}

/* sponzor */
#W-wrap .swiper-slide .W-sponzor {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    width: 100%;
    background-color: var(--bg-sponzor);
    text-align: center;
    vertical-align: middle;

    padding: 20px 10px;
}

#W-wrap .swiper-slide .W-sponzor img {
    display: flex;
    max-width: 100px;
}

#W-wrap .W-sponzor-off {
    cursor: default;
}

/* swiper arrows */
#W-wrap .swiper-button-next,
#W-wrap .swiper-button-prev {
    --swiper-navigation-size: 27px;
    width: 16px;
    height: 29px;
}

#W-wrap .swiper-button-prev {
    margin-left: 0;
    left: 2px;
}

#W-wrap .swiper-button-next {
    margin-right: 0;
    right: 2px;
}

#W-wrap .swiper-button-next::after,
#W-wrap .swiper-button-prev::after {
    content: "";
}

/* swiper hide pagination */
#W-wrap .swiper-pagination {
    display: none;
}

/* items */
#W-wrap .W-tekma {
    /* siri od SP kartice (191px) - imena klubova su duza od imena drzava */
    width: 250px;
    text-align: center;
    color: var(--bg-prime);

    font-weight: 900;
    font-family: Roboto, Helvetica, sans-serif;
}

#W-wrap .W-tekma .W-group {
    color: var(--bg-prime);
    /* natjecanja imaju duga imena ("Konferencijska liga") - manji font od SP skupina */
    font-size: 16px;
    line-height: 1;
    margin: 0;
    margin-bottom: 10px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    text-transform: uppercase;
    font-weight: 900;
    font-family: Roboto, Helvetica, sans-serif;
    transition: color .2s linear;
}

#W-wrap .W-tekma .W-date {
    color: var(--blackish);
    font-size: 18px;
    line-height: 1;
    margin: 0;
    margin-bottom: 4.4px;
    font-weight: 700;
    font-family: Roboto, Helvetica, sans-serif;
    text-transform: uppercase;
}

#W-wrap .W-tekma .W-date.W-live {
    color: var(--bg-prime);
}

#W-wrap .W-tekma .W-date.W-live::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background-color: var(--bg-prime);
    vertical-align: baseline;
}

#W-wrap .W-tekma .W-location {
    font-size: 9.57px;
    line-height: 1;
    margin: 0;
    margin-bottom: 12.15px;
    font-weight: 300;
    font-family: Roboto, Helvetica, sans-serif;
}

/* teams */
#W-wrap .W-tekma .W-team-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#W-wrap .W-tekma .W-score-flex {
    display: flex;
    align-items: center;
    justify-content: center;
}

#W-wrap .W-tekma .W-team-flex .W-score-flex strong {
    color: var(--bg-prime);
    min-width: 60px;
    font-size: 32px;
    line-height: 1;
    margin: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 900;
    font-family: Roboto, Helvetica, sans-serif;
    white-space: nowrap;
}

#W-wrap .W-tekma .W-team-flex span {
    display: block;
    margin: 0 5px;
    font-size: 30px;
    font-weight: 400;
    font-family: Roboto, Helvetica, sans-serif;
}

/* team */
#W-wrap .W-tekma .W-team-flex .W-team {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* fiksna sirina drzi rezultat centriran bez obzira na duzinu imena */
    width: 85px;
}

#W-wrap .W-tekma .W-team-flex .W-team.W-left {
    margin-right: 9px;
}

#W-wrap .W-tekma .W-team-flex .W-team.W-right {
    margin-left: 9px;
}

#W-wrap .W-tekma .W-team-flex small {
    font-size: 9.57px;
    font-weight: 400;
    font-family: Roboto, Helvetica, sans-serif;
}

/* grbovi klubova su 30x30 PNG s Flashscore CDN-a - ne skalirati iznad toga */
#W-wrap .W-tekma .W-team-flex .W-flag {
    margin-top: 15px;
    margin-bottom: 4.4px;
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: flex;
}

#W-wrap .W-tekma .W-team-flex .W-team small {
    color: var(--blackish);
    font-size: 12px;
    line-height: 1.2;
    font-family: Roboto, Helvetica, sans-serif;
    font-weight: 700;
}

/* responsive 410x530*/
@media only screen and (max-width: 481px) {
    #W-wrap {
        position: relative;
        max-width: 100%;
        height: 395px;
    }

    #W-wrap .W-content {
        padding: 10px;
        height: 349px;
        overflow-y: auto;
    }

    #W-wrap .W-show-mobile {
        display: block;
    }

    #W-wrap .W-hide-mobile {
        display: none !important;
    }

    /* header */
    #W-wrap .W-header {
        height: 46px;
    }

    #W-wrap .W-title {
        padding: 15px;
    }

    /* sponzor */
    #W-wrap .W-sponzor {
        color: black;
        font-family: Roboto, Arial, Helvetica, sans-serif;
        font-weight: 700;
        display: flex;
        flex-direction: row;
        gap: 15px;
        height: auto;
    }

    #W-wrap .W-sponzor img {
        display: flex;
        max-width: 125px;
    }

    /* rezultati */
    #W-wrap #W-rez .W-tekma {
        width: 100%;
        border-bottom: 1px solid #D9D9D9;
        padding: 10px 0;
    }

    #W-wrap #W-rez .W-tekma .W-group {
        font-size: 15px;
        margin-bottom: 4px;
    }

    #W-wrap #W-rez .W-tekma .W-date {
        font-size: 18px;
        margin-top: 5px;
        margin-bottom: 10px;
        text-transform: uppercase;
    }

    #W-wrap #W-rez .W-tekma .W-score-flex {
        min-width: 62px;
        margin: 0 8px;
    }

    #W-wrap #W-rez .W-team-flex {
        justify-content: center;
    }

    #W-wrap #W-rez .W-tekma .W-team {
        display: flex;
        flex-direction: row;
        width: 135px;
    }

    #W-wrap #W-rez .W-tekma .W-team .W-flag-wrap {
        min-width: 35px;
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    #W-wrap #W-rez .W-tekma .W-team .W-flag {
        margin: 0;
        width: 30px;
        height: 30px;
    }

    #W-wrap #W-rez .W-tekma .W-team small {
        display: flex;
        flex-grow: 1;
        align-items: center;

        font-size: 14px;
        margin: 0;
        max-width: 95px;
    }

    #W-wrap #W-rez .W-tekma .W-team.W-left {
        flex-direction: row-reverse;
        margin: 0;
    }

    #W-wrap #W-rez .W-tekma .W-team.W-left small {
        text-align: right;
        justify-content: end;
    }

    #W-wrap #W-rez .W-tekma .W-team.W-left .W-flag-wrap {
        margin-left: 10px;
    }

    #W-wrap #W-rez .W-tekma .W-team.W-right {
        margin: 0;
    }

    #W-wrap #W-rez .W-tekma .W-team.W-right small {
        text-align: left;
        justify-content: start;
    }

    #W-wrap #W-rez .W-tekma .W-team.W-right .W-flag-wrap {
        margin-right: 10px;
    }

    #W-wrap .W-sponzor {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 24px;
        font-family: Roboto, Arial, Helvetica, sans-serif;
        font-weight: 700;
        text-transform: uppercase;

        height: 67px;
        background-color: var(--bg-sponzor);
        text-align: center;
        vertical-align: middle;
    }
}

/* 396 */
@media only screen and (max-width: 481px) and (max-height: 396px) {
    #W-wrap {
        position: relative;
        max-width: 100%;
        height: 395px;
    }
}

/* 240 */
@media only screen and (max-width: 240px) {
    #W-wrap .W-content {
        padding: 15px 5px;
    }

    #W-wrap #W-rez .W-tekma .W-team {
        flex-direction: column !important;
    }

    #W-wrap #W-rez .W-tekma .W-team .W-flag-wrap {
        margin: 0 !important;
        width: 100%;
    }

    #W-wrap #W-rez .W-tekma .W-team small {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }
}