/*
 * "Today's Schedule" TV listing (components/today-schedule.blade.php).
 * Loaded through the "today-schedule" asset bundle.
 */

.today-schedule {
    --schedule-pink: #fbafd8;
    --schedule-pink-dark: #d05798;
    --schedule-pink-soft: #fde6f2;
    --schedule-heading: #c80000;
    --schedule-border: #e4e4e4;
    --schedule-muted: #777;
    padding: 50px 0 20px;
    background: #fff;
}

/* ---------------------------------------------------------------- Header */

.today-schedule__header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    align-items: baseline;
    margin-bottom: 26px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--schedule-heading);
}

.today-schedule__heading {
    margin: 0;
    color: var(--schedule-heading);
    font-family: Roboto, sans-serif;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.today-schedule__date {
    color: var(--schedule-muted);
    font-size: 14px;
    font-weight: 500;
}

.today-schedule__date .fa {
    margin-right: 4px;
    color: var(--schedule-pink-dark);
}

.today-schedule__more {
    margin-left: auto;
    color: #111;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.today-schedule__more:hover,
.today-schedule__more:focus-visible {
    color: var(--schedule-pink-dark);
}

.today-schedule__kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--schedule-pink-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* ---------------------------------------------------------------- On now */

.today-schedule__now[hidden],
.today-schedule__off-air[hidden],
.today-schedule__next[hidden] {
    display: none;
}

.today-schedule__now {
    background: var(--schedule-pink);
    color: #111;
}

.today-schedule__now-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.today-schedule__now-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.today-schedule__live {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    gap: 7px;
    align-items: center;
    padding: 3px 10px;
    background: var(--schedule-pink-dark);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    text-transform: uppercase;
}

.today-schedule__dot {
    width: 7px;
    height: 7px;
    background: #fff;
    animation: today-schedule-pulse 1.4s ease-in-out infinite;
}

@keyframes today-schedule-pulse {
    50% {
        opacity: .25;
    }
}

.today-schedule__now-body {
    padding: 18px 20px 22px;
}

.today-schedule__now-title {
    margin: 0 0 4px;
    color: #111;
    font-family: Roboto, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: none;
}

.today-schedule__now-time {
    display: block;
    margin-bottom: 14px;
    color: #5a2a45;
    font-size: 14px;
    font-weight: 500;
}

.today-schedule__progress {
    height: 4px;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, .6);
}

.today-schedule__progress span {
    display: block;
    height: 100%;
    background: var(--schedule-pink-dark);
    transition: width .6s ease;
}

.today-schedule__watch {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 9px 18px;
    background: var(--schedule-pink-dark);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.today-schedule__watch:hover,
.today-schedule__watch:focus-visible {
    background: #fff;
    color: var(--schedule-pink-dark);
}

.today-schedule__off-air {
    padding: 22px 20px;
    background: var(--schedule-pink);
    color: #111;
}

.today-schedule__off-air p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.today-schedule__next {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 14px;
    align-items: center;
    margin-top: 2px;
    background: var(--schedule-pink);
}

.today-schedule__next-label {
    grid-column: 1 / -1;
    padding: 6px 20px 4px;
    background: #fff;
    color: var(--schedule-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.today-schedule__next-time {
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--schedule-pink-dark);
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

.today-schedule__next-title {
    padding-right: 20px;
    color: #111;
    font-size: 16px;
    font-weight: 700;
}

/* ---------------------------------------------------------------- List */

.today-schedule__list {
    position: relative;
    max-height: 560px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    border: 1px solid var(--schedule-border);
    list-style: none;
    scroll-behavior: smooth;
}

.today-schedule__item {
    display: grid;
    grid-template-columns: 64px 128px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px 18px 14px 14px;
    border-bottom: 1px solid var(--schedule-border);
    border-left: 4px solid transparent;
    transition: background-color .2s ease;
}

.today-schedule__item:last-child {
    border-bottom: 0;
}

.today-schedule__item:hover {
    background: #fafafa;
}

.today-schedule__time {
    color: #111;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

.today-schedule__thumb {
    display: block;
    width: 128px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* The station's programmes: their logos, fitted whole on a white box. */
.today-schedule--logos .today-schedule__now-media img,
.today-schedule--logos .today-schedule__thumb {
    box-sizing: border-box;
    object-fit: contain;
    background: #fff;
}

.today-schedule--logos .today-schedule__now-media img {
    padding: 16px;
}

.today-schedule--logos .today-schedule__thumb {
    padding: 4px;
}

.today-schedule__title {
    margin: 0 0 3px;
    color: #111;
    font-family: Roboto, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
}

.today-schedule__description {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.today-schedule__status {
    padding: 3px 9px;
    border: 1px solid var(--schedule-border);
    color: var(--schedule-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* States */
.today-schedule__item.is-ended {
    opacity: .5;
}

.today-schedule__item.is-live {
    border-left-color: var(--schedule-pink-dark);
    background: var(--schedule-pink-soft);
}

.today-schedule__item.is-live .today-schedule__time {
    color: var(--schedule-pink-dark);
}

.today-schedule__item.is-live .today-schedule__status {
    border-color: var(--schedule-pink-dark);
    background: var(--schedule-pink-dark);
    color: #fff;
}

@media (max-width: 575px) {
    .today-schedule__more {
        margin-left: 0;
    }

    .today-schedule__item {
        grid-template-columns: 52px minmax(0, 1fr) auto;
        gap: 12px;
    }

    .today-schedule__thumb {
        display: none;
    }

    .today-schedule__time {
        font-size: 17px;
    }

    .today-schedule__description {
        display: none;
    }
}
