/*
 * EATV "Now on TV" / "Today" panel (livewire/home/on-air-schedule.blade.php).
 * Shared by the EATV and NewsEdge layouts through the "eatv-on-air" asset bundle.
 */

.eatv-on-air {
    --eatv-pink: #fbafd8;
    --eatv-pink-dark: #d05798;
    --eatv-heading-red: #c80000;
    min-width: 0;
    font-family: Roboto, sans-serif;
}

.eatv-on-air__now,
.eatv-on-air__next {
    display: flex;
    background: var(--eatv-pink);
    text-transform: uppercase;
}

.eatv-on-air__label {
    display: flex;
    flex: 0 0 100px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--eatv-pink-dark);
    color: #fff;
}

.eatv-on-air__now {
    height: 50px;
}

.eatv-on-air__now .eatv-on-air__label {
    font-size: 22px;
    line-height: 23px;
}

.eatv-on-air__now .eatv-on-air__label small {
    font-size: 11px;
    line-height: 12px;
}

.eatv-on-air__now .eatv-on-air__title {
    flex: 1;
    padding: 10px;
    font-size: 22px;
    line-height: 23px;
    text-align: right;
}

/* The EATV theme's block follows Today's Schedule's "On now": title, time and progress. */
.eatv-on-air__now--detailed {
    position: relative;
    height: 56px;
}

.eatv-on-air__now--detailed .eatv-on-air__title {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 0;
    padding: 4px 10px 7px;
}

.eatv-on-air__name {
    max-width: 100%;
    overflow: hidden;
    font-size: 20px;
    line-height: 23px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eatv-on-air__time {
    font-size: 11px;
    font-weight: 700;
    line-height: 14px;
}

.eatv-on-air__time:empty {
    display: none;
}

/* How far the programme on now has run, along the bottom of the block. */
.eatv-on-air__progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 100px;
    height: 3px;
    background: rgba(208, 87, 152, .25);
}

.eatv-on-air__progress span {
    display: block;
    height: 100%;
    background: var(--eatv-pink-dark);
}

.eatv-on-air__next {
    height: 32px;
}

.eatv-on-air__next .eatv-on-air__label {
    font-size: 12px;
    font-weight: 700;
}

.eatv-on-air__next .eatv-on-air__title {
    flex: 1;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 23px;
    text-align: right;
}

.eatv-today {
    position: relative;
    margin-top: 15px;
}

.eatv-today__title {
    margin: 0 0 6px;
    border-bottom: 1px solid var(--eatv-heading-red);
    color: var(--eatv-heading-red);
    font-size: 20px;
    font-weight: 100;
    line-height: 29px;
    text-transform: uppercase;
}

.eatv-today__item {
    position: relative;
    display: block;
    height: 220px;
}

.eatv-today__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eatv-today__caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 30px 6px 4px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .75));
    color: #fff;
    font-size: 14px;
    line-height: 23px;
    text-transform: uppercase;
}

.eatv-today .owl-dots {
    position: absolute;
    top: -34px;
    right: 0;
    display: flex;
    gap: 3px;
}

.eatv-today .owl-dots .owl-dot span {
    display: block;
    width: 10px;
    height: 11px;
    margin: 0 !important;
    border-radius: 20px;
    background: #e1e1e1 !important;
}

.eatv-today .owl-dots .owl-dot.active span {
    background: var(--eatv-pink-dark) !important;
}

.eatv-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 64px;
    opacity: .85;
    text-shadow: 0 0 12px rgba(0, 0, 0, .4);
}

.eatv-today .owl-nav {
    display: none;
}

/* Under a full-width hero (the banner and live designs): Now on TV and next on the left, Today's promos on the right. */
@media (min-width: 768px) {
    .eatv-on-air--wide {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
        /* Now and next stay together at the top; the last row takes what Today's height leaves. */
        grid-template-rows: auto auto 1fr;
        column-gap: 20px;
        align-items: start;
    }

    .eatv-on-air--wide .eatv-on-air__now,
    .eatv-on-air--wide .eatv-on-air__next {
        grid-column: 1;
    }

    .eatv-on-air--wide .eatv-today {
        grid-column: 2;
        grid-row: 1 / span 3;
        margin-top: 0;
    }
}
