/*
 * "Only from EATV" exclusive articles and videos (components/only-from-eatv.blade.php), and the Exclusives list style of
 * a menu's page (shared/posts-list/exclusives.blade.php).
 * Loaded through the "only-from-eatv" asset bundle.
 */

.only-eatv {
    --only-eatv-red: #c60000;
    --only-eatv-bg: #212529;
    --only-eatv-card: #1c1c1c;
    --only-eatv-muted: #a8a8a8;
    padding: 50px 0;
    background: var(--only-eatv-bg);
    color: #fff;
}

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

.only-eatv__header {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    align-items: center;
    margin-bottom: 26px;
    padding-bottom: 16px;
    border-bottom: 1px solid #2e2e2e;
}

.only-eatv__heading {
    margin: 0;
    color: #fff;
    font-family: Roboto, sans-serif;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: .3px;
    line-height: 1.1;
    text-transform: uppercase;
}

.only-eatv__heading span {
    padding: 0 8px;
    background: var(--only-eatv-red);
    color: #fff;
}

.only-eatv__filters {
    display: flex;
    gap: 6px;
}

.only-eatv__filter {
    padding: 6px 16px;
    border: 1px solid #3a3a3a;
    background: transparent;
    color: #ddd;
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.only-eatv__filter:hover,
.only-eatv__filter:focus-visible {
    border-color: #fff;
    color: #fff;
}

.only-eatv__filter[aria-pressed="true"] {
    border-color: var(--only-eatv-red);
    background: var(--only-eatv-red);
    color: #fff;
}

.only-eatv__more {
    margin-left: auto;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.only-eatv__more:hover,
.only-eatv__more:focus-visible {
    color: var(--only-eatv-red);
}

/* An Exclusives menu's page with no stories yet. */
.only-eatv__empty {
    margin: 0;
    color: var(--only-eatv-muted);
    font-size: 16px;
}

/* An Exclusives menu's page links, under the grid. */
.only-eatv__pagination {
    margin-top: 30px;
}

.only-eatv__pagination .pagination-result p {
    color: var(--only-eatv-muted);
}

/* ---------------------------------------------------------------- Grid */

.only-eatv__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .only-eatv__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .only-eatv__item.is-lead {
        grid-column: span 2;
    }
}

@media (min-width: 992px) {
    .only-eatv__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .only-eatv__item.is-lead {
        grid-row: span 2;
    }
}

.only-eatv__item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--only-eatv-card);
    animation: only-eatv-in .35s ease;
}

.only-eatv__item[hidden] {
    display: none;
}

@keyframes only-eatv-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------------------------------------------------------------- Media */

.only-eatv__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.only-eatv__media > a {
    display: block;
    height: 100%;
}

.only-eatv__image,
.only-eatv__media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.only-eatv__media video {
    background: #000;
    object-fit: contain;
}

.only-eatv__image {
    transition: transform .4s ease;
}

.only-eatv__item:hover .only-eatv__image {
    transform: scale(1.04);
}

.only-eatv__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    padding-left: 4px;
    border: 2px solid #fff;
    background: rgba(198, 0, 0, .9);
    color: #fff;
    font-size: 20px;
    transition: transform .2s ease;
    border-radius: 50%;
}

.only-eatv__player:hover .only-eatv__play,
.only-eatv__player:focus-visible .only-eatv__play {
    transform: scale(1.1);
}

.only-eatv__item.is-lead .only-eatv__play {
    width: 76px;
    height: 76px;
    margin: -38px 0 0 -38px;
    font-size: 28px;
}

.only-eatv__duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, .75);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
}

.only-eatv__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    pointer-events: none;
}

.only-eatv__type,
.only-eatv__premium {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    padding: 2px 9px;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-transform: uppercase;
}

.only-eatv__type {
    background: #fff;
    color: #111;
}

.only-eatv__premium {
    background: #000;
    color: #fff;
}

.only-eatv__item.is-video .only-eatv__type {
    background: var(--only-eatv-red);
    color: #fff;
}

.only-eatv__item.is-playing .only-eatv__badges,
.only-eatv__item.is-playing .only-eatv__duration {
    display: none;
}

/* ---------------------------------------------------------------- Body */

.only-eatv__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 16px 16px;
}

.only-eatv__kicker {
    margin-bottom: 6px;
    color: var(--only-eatv-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.only-eatv__title {
    margin: 0 0 10px;
    font-family: Roboto, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: none;
}

.only-eatv__title a {
    color: #fff;
}

.only-eatv__title a:hover,
.only-eatv__title a:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: var(--only-eatv-red);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.only-eatv__excerpt {
    display: none;
    margin: 0 0 14px;
    color: #cfcfcf;
    font-size: 15px;
    line-height: 1.6;
}

.only-eatv__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: auto;
    color: var(--only-eatv-muted);
    font-size: 12px;
    text-transform: uppercase;
}

.only-eatv__meta span + span::before {
    margin-right: 14px;
    color: var(--only-eatv-red);
    content: "\2022";
}

/* Lead item: bigger title and an excerpt */
.only-eatv__item.is-lead .only-eatv__body {
    padding: 20px 22px 22px;
}

.only-eatv__item.is-lead .only-eatv__title {
    font-size: 26px;
    line-height: 1.3;
}

.only-eatv__item.is-lead .only-eatv__excerpt {
    display: block;
}

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

    .only-eatv__item.is-lead .only-eatv__title {
        font-size: 21px;
    }
}
