.upcoming-livestreams-element__slider{
    padding: 10px 0;
    margin: -10px 0;
    overflow-y: hidden;
}

.upcoming-livestreams-element__slider > .livestream-card {
    margin: 0 8px;
    margin-bottom: 0;
}

.upcoming-livestreams-element__slider > .livestream-card:first-child {
    margin-left: 0;
}

.upcoming-livestreams-element__slider > .livestream-card:last-child {
    margin-right: 0;
}

.upcoming-livestreams-element__slider .livestream-card {
    min-width: 270px;
}

.upcoming-livestreams-element--compact .upcoming-livestreams-element__slider .livestream-card--compact {
    min-width: 280px;
    max-width: 280px;
}

.upcoming-livestreams-element__grid {
    display: grid;
    gap: 0 1em;
    grid-template-columns: repeat(6, 1fr);
    column-gap: 1em;
    clear: both;
    padding: 0 0 1em;
}

.upcoming-livestreams-element__grid .livestream-card {
    width: 100%;
    grid-column-end: span 2;
}

.upcoming-livestreams-element--compact-grid .upcoming-livestreams-element__grid .livestream-card--compact {
    min-width: unset;
    max-width: unset;
}

@media all and (max-width: 980px) {
    .upcoming-livestreams-element__grid {
        padding-left: 10px;
        padding-right: 10px;
    }

    .livestream-card {
        margin-bottom: 1em;
    }
}


@media all and (max-width: 740px) {
    .upcoming-livestreams-element__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media all and (max-width: 500px) {
    .upcoming-livestreams-element__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.livestream-card {
    position: relative;
    background: var(--laola1-card-background);
    transition: background 0.3s ease-in-out;
    margin-bottom: 1.5em;
    border-radius: 4px;
    display: flex;
    flex: 1;
    flex-direction: column;
    box-shadow: var(--laola1-box-shadow);
}

.livestream-card__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--laola1-text-color);
    flex: 1;
    transition: transform 0.2s ease-in-out;
}

.livestream-card:hover {
    transition: transform 0.2s ease-in-out;
}

.livestream-card__link:hover {
    background: var(--laola1-card-background2);
}

.livestream-card__description {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    left: 0;
    top: 0;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--laola1-text-bright);
    border-radius: 0 0 4px 4px;
    z-index: 2;
    transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
    font-size: 0.625rem;
    pointer-events: none;
    border-radius: 4px;
}

.livestream-card__description-title {
    font-size: 1rem;
    line-height: 22px;
    font-weight: bold;
    font-style: italic;
    color: var(--laola1-text-bright);
    margin-bottom: 10px;
}

.livestream-card:hover .livestream-card__description {
    opacity: 1;
    transform: scale(1.02);
}

.livestream-card__picture {
    display: block;
    background-color: var(--laola1-body-background);
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
    will-change: transform;
}

.livestream-card__picture img {
    width: 100%;
    transition: transform 0.5s ease-in-out;
    transform-origin: center center;
}

.livestream-card:hover .livestream-card__picture img {
    transform: scale(1.025);
}

.livestream-card__picture--matchup {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.livestream-card__matchup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.5rem 1rem 1rem;
    box-sizing: border-box;
}

.livestream-card__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    flex: 1;
}

.livestream-card__crest {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    aspect-ratio: 1 / 1;
    padding: 0.25rem;
    box-sizing: border-box;
    filter: drop-shadow(0 0 10px rgba(131, 131, 131, 0.317));
    margin-top: 20px;
}

.livestream-card__crest .crest {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.livestream-card__abbreviation {
    font-size: 0.75rem;
    font-weight: 700;
    font-style: italic;
    color: var(--laola1-text-bright);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.livestream-card__versus {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
}

.livestream-card__score,
.livestream-card__vs {
    font-size: 1.125rem;
    font-weight: 800;
    font-style: italic;
    color: var(--laola1-text-bright);
    white-space: nowrap;
}

.livestream-card__score {
    font-size: 1.25rem;
}

.livestream-card--compact .livestream-card__abbreviation {
    font-size: 0.6875rem;
}

.livestream-card--compact .livestream-card__score,
.livestream-card--compact .livestream-card__vs {
    font-size: 0.9375rem;
}

.livestream-card__body {
    display: flex;
    position: relative;
    order: 3;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: space-between;
    padding: 20px;
    z-index: 2;
    gap: 1em;
    flex: 1;
}

.livestream-card__title {
    margin: 0;
    width: 100%;
    font-weight: bold;
    font-style: italic;
    font-size: 1.125rem;
    line-height: 22px;
    color: var(--laola1-text-color);
    order: 0;
    padding-right: 2em;
    padding-top: 0;
    padding-bottom: 0;
}

.livestream-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    text-overflow: ellipsis;
}

.livestream-card__category,
.livestream-card__time {
    max-width: 65%;
    color: var(--laola1-text-secondary);
    align-items: center;
    font-weight: 600;
    font-style: italic;
    font-size: 12px;
    line-height: 14px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.livestream-card__category {
    order: 2;
}

.livestream-card__time--live {
    color: var(--laola1-highlight);
}

.livestream-card__badge {
    position: relative;
    padding: 0 0.5em 0 0.75em;
    font-weight: bold;
    font-style: italic;
    font-size: 13px;
    line-height: 21px;
    text-transform: uppercase;
    color: var(--laola1-text-bright);
    display: flex;
    align-items: center;
}

.livestream-card__badge span {
    position: relative;
    margin: 1px 0 -1px 0;
    display: block;
    font-size: 0.75rem;
    white-space: nowrap;
}

.livestream-card__badge::before {
    position: absolute;
    display: block;
    content: "";
    top: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 24px;
    background: var(--laola1-highlight);
    transform: skewX(-8deg);
    transform-origin: bottom right;
    border-radius: 4px;
}

.livestream-card__video-btn {
    position: absolute;
    line-height: 32px;
    font-size: 32px;
    top: 0.5em;
    left: 0.5em;
    align-items: center;
    color: var(--laola1-text-bright);
    display: flex;
    justify-content: flex-start;
    gap: 0.25em;
    z-index: 2;
}

.livestream-card__video-btn > .ico-play {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5),
        1px -1px 2px rgba(0, 0, 0, 0.5),
        -1px 1px 2px rgba(0, 0, 0, 0.5),
        -1px -1px 2px rgba(0, 0, 0, 0.5);
}

.livestream-card__video-btn .livestream-card__badge {
    position: relative;
    margin: 0;
    line-height: 24px;
}

.livestream-card--compact .livestream-card__video-btn {
    font-size: 16px;
}

.livestream-card--compact .livestream-card__schedule {
    font-size: 13px;
    line-height: 18px;
}

.livestream-card__schedule {
    padding: 0 0.5em;
    font-size: 16px;
    font-style: italic;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5),
        1px -1px 2px rgba(0, 0, 0, 0.5),
        -1px 1px 2px rgba(0, 0, 0, 0.5),
        -1px -1px 2px rgba(0, 0, 0, 0.5);
}

.livestream-card--compact > .livestream-card__link {
    position: relative;
}

.livestream-card--compact .livestream-card__picture {
    border-radius: 4px;
}

.livestream-card--compact .livestream-card__picture:not(.livestream-card__picture--matchup)::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.8) 100%);
}

.livestream-card--compact .livestream-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    flex: initial;
    gap: 0;
    z-index: 2;
}

.livestream-card--compact .livestream-card__title {
    color: var(--laola1-text-bright);
    font-size: 1rem;
    line-height: 1.25rem;
    padding-right: 0;
}

.livestream-card--compact .livestream-card__link:hover .livestream-card__title {
    color: var(--laola1-text-bright);
}

.livestream-card__must-subscribe {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 11px;
    font-weight: 500;
    font-style: italic;
    color: var(--laola1-text-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.493);
    padding: 2px 8px;
}

@media all and (max-width: 980px) {
    .livestream-card__body .livestream-card__title {
        padding-right: 1em;
    }
}
