

/* ZY_MATCH_DETAIL_LOGOS_NO_CROP_START */
.zy-match-team__logo,
.zy-match-team-logo,
.zy-match-header__logo,
.zy-match-club__logo,
.zy-match-side__logo,
.match-team__logo,
.match-team-logo,
.match-header__logo,
.match-club__logo,
.match-side__logo {
    width: 86px !important;
    height: 86px !important;
    min-width: 86px !important;
    min-height: 86px !important;
    max-width: 86px !important;
    max-height: 86px !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.zy-match-team__logo img,
.zy-match-team-logo img,
.zy-match-header__logo img,
.zy-match-club__logo img,
.zy-match-side__logo img,
.match-team__logo img,
.match-team-logo img,
.match-header__logo img,
.match-club__logo img,
.match-side__logo img {
    width: 86px !important;
    height: 86px !important;
    max-width: 86px !important;
    max-height: 86px !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 0 !important;
    background: transparent !important;
    display: block !important;
}
/* ZY_MATCH_DETAIL_LOGOS_NO_CROP_END */


/* ZY_MATCH_DETAIL_FLUID_START */

#zy-fluid-match {
    --md-gap:clamp(5px,1.4vw,18px);
    --md-logo:clamp(42px,10vw,96px);
    --md-font:clamp(12px,1.5vw,15px);
}

#zy-fluid-match > .zy-container {
    min-width:0!important;
    box-sizing:border-box!important;
}

#zy-fluid-match :is(
    .zy-match-hero,
    .zy-match-tabs,
    .zy-match-events-card,
    .zy-match-lineups,
    .zy-lineups-card,
    .zy-match-media-block
) {
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
}

/* MATCH HEADER */

#zy-fluid-match .zy-match-hero {
    padding:clamp(10px,2vw,20px)!important;
}

#zy-fluid-match .zy-match-clean-board {
    display:grid!important;

    grid-template-columns:
        minmax(0,1fr)
        max-content
        minmax(0,1fr)!important;

    gap:var(--md-gap)!important;
    align-items:start!important;

    width:100%!important;
    min-width:0!important;
    overflow:visible!important;
}

#zy-fluid-match .zy-match-clean-team {
    display:flex!important;
    flex-direction:column!important;

    align-items:center!important;
    justify-content:flex-start!important;

    gap:6px!important;

    width:100%!important;
    min-width:0!important;
    max-width:100%!important;

    overflow:visible!important;
}

/* Team logos */

#zy-fluid-match
.zy-match-clean-team .zy-match-clean-logo {
    order:1!important;
    flex:0 0 auto!important;

    width:min(100%,var(--md-logo))!important;
    height:auto!important;
    aspect-ratio:1;

    min-width:0!important;
    min-height:0!important;
    max-width:100%!important;
    max-height:none!important;

    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;

    overflow:visible!important;
}

#zy-fluid-match .zy-match-clean-logo img {
    width:100%!important;
    height:100%!important;

    min-width:0!important;
    min-height:0!important;
    max-width:100%!important;
    max-height:100%!important;

    object-fit:contain!important;
}

/* Team names */

#zy-fluid-match
.zy-match-clean-team .zy-match-clean-team-text {
    order:2!important;

    width:100%!important;
    min-width:0!important;
    max-width:100%!important;

    margin:0!important;
    overflow:visible!important;
    text-align:center!important;
}

#zy-fluid-match
.zy-match-clean-team-text :is(h1,h1 a,p) {
    display:block!important;

    min-width:0!important;
    max-width:100%!important;

    text-align:center!important;

    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere!important;

    line-height:1.2!important;
}

#zy-fluid-match
.zy-match-clean-team-text :is(h1,h1 a) {
    font-size:clamp(11px,2vw,23px)!important;
    letter-spacing:normal!important;
}

#zy-fluid-match .zy-match-clean-team-text p {
    font-size:clamp(10px,1.4vw,13px)!important;
}

/* Score without background or frame */

#zy-fluid-match .zy-match-clean-scorebox {
    display:flex!important;
    flex-direction:column!important;

    justify-content:center!important;
    align-items:center!important;
    align-self:center!important;

    width:max-content!important;
    min-width:0!important;
    max-width:none!important;

    height:auto!important;
    min-height:0!important;

    padding:0!important;
    gap:5px!important;

    border:0!important;
    border-radius:0!important;

    background:transparent!important;
    box-shadow:none!important;

    overflow:visible!important;
}

#zy-fluid-match .zy-match-clean-score {
    display:flex!important;

    align-items:center!important;
    justify-content:center!important;

    width:max-content!important;

    gap:clamp(2px,.5vw,6px)!important;

    font-size:clamp(19px,4.2vw,46px)!important;
    line-height:1!important;

    white-space:nowrap!important;
    letter-spacing:normal!important;
}

#zy-fluid-match
.zy-match-clean-score :is(span,b) {
    font-size:inherit!important;
    line-height:inherit!important;
}

#zy-fluid-match .zy-match-clean-penalty {
    font-size:clamp(10px,1.4vw,13px)!important;
    white-space:nowrap!important;

    padding:0!important;

    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
}

#zy-fluid-match
.zy-match-clean-scorebox:not(.is-technical)
:is(
    .zy-match-clean-score,
    .zy-match-clean-score span,
    .zy-match-clean-score b
) {
    color:var(--zy-yellow)!important;
    -webkit-text-fill-color:currentColor!important;
}

#zy-fluid-match
.zy-match-clean-scorebox.is-technical
:is(
    .zy-match-clean-score,
    .zy-match-clean-score span,
    .zy-match-clean-score b,
    .zy-match-clean-penalty
) {
    color:#ff3f46!important;
    -webkit-text-fill-color:currentColor!important;
}

/* Match information and officials */

#zy-fluid-match :is(
    .zy-match-clean-titleline,
    .zy-match-clean-meta,
    .zy-match-clean-officials
) {
    min-width:0!important;
    max-width:100%!important;
    flex-wrap:wrap!important;
}

#zy-fluid-match :is(
    .zy-match-clean-titleline span,
    .zy-match-clean-meta span,
    .zy-match-official-text
) {
    min-width:0!important;
    max-width:100%!important;

    white-space:normal!important;
    overflow-wrap:anywhere!important;
}

#zy-fluid-match .zy-match-official-text {
    flex-wrap:wrap!important;
}

/* LINEUPS */

#zy-fluid-match .zy-match-lineups-old__grid {
    display:grid!important;

    grid-template-columns:
        repeat(2,minmax(0,1fr))!important;

    gap:var(--md-gap)!important;
}

#zy-fluid-match .zy-match-lineups-old__list {
    min-width:0!important;
    width:100%!important;

    align-content:start!important;

    grid-auto-rows:
        minmax(32px,auto)!important;
}

#zy-fluid-match .zy-lineup-player-row {
    display:flex!important;
    flex-wrap:wrap!important;

    align-items:center!important;
    align-content:center!important;

    min-width:0!important;
    max-width:100%!important;

    height:auto!important;
    min-height:32px!important;

    gap:4px!important;
    overflow:visible!important;
}

#zy-fluid-match .zy-lineup-player-row--empty {
    min-height:32px!important;
}

#zy-fluid-match .zy-lineup-player-name {
    min-width:0!important;
    max-width:100%!important;

    flex:0 1 auto!important;

    white-space:normal!important;
    overflow-wrap:anywhere!important;
    text-overflow:clip!important;
    overflow:visible!important;

    font-size:var(--md-font)!important;
    line-height:1.2!important;
}

#zy-fluid-match .zy-lineup-events {
    max-width:100%!important;
    flex-wrap:wrap!important;
    margin:0!important;
}

#zy-fluid-match :is(
    .zy-lineup-number,
    .zy-lineup-role
) {
    flex:0 0 auto!important;
}

/* Alternative lineups markup */

#zy-fluid-match .zy-lineup-row {
    grid-template-columns:
        repeat(2,minmax(0,1fr))!important;
}

#zy-fluid-match .zy-lineup-player {
    min-width:0!important;
    flex-wrap:wrap!important;
}

#zy-fluid-match
.zy-lineup-player :is(strong,strong a) {
    min-width:0!important;
    max-width:100%!important;

    white-space:normal!important;
    overflow-wrap:anywhere!important;

    overflow:visible!important;
    text-overflow:clip!important;
}

/* MATCH EVENTS */

#zy-fluid-match
.zy-match-events-card .zy-match-timeline-row {
    display:grid!important;

    grid-template-columns:
        max-content minmax(0,1fr)!important;

    align-items:start!important;
    gap:var(--md-gap)!important;

    width:100%!important;
    min-width:0!important;
    max-width:100%!important;

    height:auto!important;
    overflow:visible!important;
}

#zy-fluid-match
.zy-match-events-card .zy-match-timeline-row--away {
    grid-template-columns:
        minmax(0,1fr) max-content!important;
}

#zy-fluid-match
.zy-match-timeline-row--home .zy-match-minute {
    grid-area:1/1!important;
    text-align:left!important;
}

#zy-fluid-match
.zy-match-timeline-row--away .zy-match-minute {
    grid-area:1/2!important;
    text-align:right!important;
}

#zy-fluid-match
.zy-match-events-card .zy-match-event-line {
    display:flex!important;

    align-items:flex-start!important;

    gap:6px!important;

    width:100%!important;
    min-width:0!important;
    max-width:100%!important;

    height:auto!important;

    transform:none!important;
    overflow:visible!important;
}

#zy-fluid-match
.zy-match-timeline-row--home .zy-match-event-line {
    grid-area:1/2!important;

    justify-content:flex-start!important;
    text-align:left!important;
}

#zy-fluid-match
.zy-match-timeline-row--away .zy-match-event-line {
    grid-area:1/1!important;

    justify-content:flex-end!important;
    text-align:right!important;
}

#zy-fluid-match .zy-match-event-line .zy-event-text {
    display:flex!important;
    flex-direction:column!important;

    min-width:0!important;
    max-width:100%!important;

    gap:2px!important;
}

#zy-fluid-match
.zy-match-event-line .zy-event-text
:is(strong,a,em,em span) {
    white-space:normal!important;
    overflow-wrap:anywhere!important;

    overflow:visible!important;
    text-overflow:clip!important;

    min-width:0!important;
    max-width:100%!important;
}

#zy-fluid-match
.zy-match-event-line .zy-event-text strong {
    font-size:var(--md-font)!important;
    line-height:1.2!important;
}

#zy-fluid-match
.zy-match-timeline-row--home .zy-event-text {
    align-items:flex-start!important;
}

#zy-fluid-match
.zy-match-timeline-row--away .zy-event-text {
    align-items:flex-end!important;
}

/* Event score without frame */

#zy-fluid-match .zy-match-event-line > b {
    flex:0 0 auto!important;

    min-width:0!important;
    padding:0!important;

    background:transparent!important;
    border:0!important;
    box-shadow:none!important;

    white-space:nowrap!important;
    color:var(--zy-yellow)!important;
}

#zy-fluid-match
.zy-match-detail-score-value:not(.is-technical) {
    color:var(--zy-yellow)!important;
}

#zy-fluid-match
.zy-match-detail-score-value.is-technical {
    color:#ff3f46!important;
}

/* MATCH MEDIA */

#zy-fluid-match .zy-match-media-block {
    margin:20px auto 32px!important;
    padding:clamp(10px,1.5vw,16px)!important;
}

#zy-fluid-match .zy-match-media-grid {
    grid-template-columns:
        repeat(
            auto-fill,
            minmax(min(100%,200px),1fr)
        )!important;

    gap:var(--md-gap)!important;
}

#zy-fluid-match .zy-match-media-card {
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
}

#zy-fluid-match
.zy-match-media-card__body :is(strong,small) {
    overflow-wrap:anywhere!important;
}



/* ZY_OFFICIALS_FLUID_START */

#zy-fluid-match .zy-match-clean-officials--icons {
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:wrap!important;

    justify-content:center!important;
    align-items:center!important;

    width:100%!important;
    min-width:0!important;
    max-width:100%!important;

    gap:6px clamp(8px,1.8vw,20px)!important;

    box-sizing:border-box!important;
}

#zy-fluid-match .zy-match-clean-officials--icons
>.zy-match-official-text {
    display:inline-flex!important;

    flex:0 0 auto!important;
    flex-wrap:nowrap!important;

    align-items:center!important;
    justify-content:center!important;

    width:auto!important;
    min-width:0!important;
    max-width:100%!important;

    gap:5px!important;

    font-size:clamp(10px,1.4vw,12px)!important;
    line-height:1.3!important;

    white-space:nowrap!important;
}

#zy-fluid-match .zy-match-official-text
:is(strong,a,small) {
    font-size:inherit!important;
    line-height:inherit!important;

    min-width:0!important;

    white-space:normal!important;
    overflow-wrap:anywhere!important;

    text-overflow:clip!important;
    overflow:visible!important;
}

#zy-fluid-match .zy-official-svg-icon {
    flex-shrink:0!important;
    object-fit:contain!important;
}

/* Prevent isolated separators after line wrapping */

#zy-fluid-match .zy-match-clean-officials--icons>i {
    display:none!important;
}

#zy-fluid-match .zy-match-official-text small:empty {
    display:none!important;
}

/* ZY_OFFICIALS_FLUID_END */

/* ZY_MATCH_DETAIL_FLUID_END */
