/* ==========================================================
   AFDES MEDIA — EDITORIAL FEATURE + PODCAST PLAYBACK
========================================================== */

.media-page .media-feature-editorial {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(340px, .84fr);
    gap: clamp(20px, 2.2vw, 30px);
    align-items: center;
    margin-bottom: 40px;
    padding: clamp(28px, 3.5vw, 42px) 0;
    overflow: visible;
    border: 0;
    border-top: 1px solid #d9e3ea;
    border-bottom: 1px solid #d9e3ea;
    border-radius: 0;
    background: transparent;
    color: #071827;
    box-shadow: none;
}

.media-page .media-feature-editorial .media-feature-image {
    position: relative;
    display: block;
    width: 100%;
    max-width: none;
    min-height: 0;
    aspect-ratio: 16 / 9;
    justify-self: stretch;
    overflow: hidden;
    border: 1px solid #d9e3ea;
    border-radius: 12px;
    background: #071827;
    box-shadow: 0 16px 34px rgba(7, 24, 39, .10);
}

.media-page .media-feature-editorial .media-feature-image img {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: block;
    object-fit: cover;
}

.media-page .media-feature-editorial .media-feature-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 58%, rgba(3, 13, 22, .22));
}

.media-page .media-feature-editorial .play-badge {
    z-index: 2;
    left: 22px;
    bottom: 22px;
    top: auto;
    width: 54px;
    height: 54px;
    transform: none;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 50%;
    background: rgba(7,24,39,.82);
    box-shadow: 0 8px 24px rgba(0,0,0,.24);
}

.media-page .media-feature-editorial .media-feature-content {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(6px, 1vw, 14px) 0 clamp(6px, 1vw, 14px) clamp(18px, 2vw, 26px);
    border-left: 1px solid #e1e8ed;
}

.media-page .media-feature-editorial .media-feature-content::before {
    content: "";
    position: absolute;
    top: 4px;
    left: -2px;
    width: 3px;
    height: 46px;
    border-radius: 2px;
    background: #049bce;
}

.media-page .media-feature-editorial .media-feature-content > span {
    margin: 0 0 10px;
    color: #049bce;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.media-page .media-feature-editorial h2 {
    max-width: 16ch;
    margin: 0;
    color: #071827;
    font-size: clamp(1.7rem, 2.8vw, 2.55rem);
    line-height: 1.08;
    letter-spacing: -.028em;
}

.media-page .media-feature-editorial p {
    max-width: 44ch;
    margin: 15px 0 0;
    color: #5b6e80;
    font-size: .9rem;
    line-height: 1.68;
}

.media-feature-editorial__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    align-items: center;
    margin: 16px 0 0;
    padding: 11px 0;
    border-top: 1px solid #e5ebef;
    border-bottom: 1px solid #e5ebef;
    color: #6f8191;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.media-feature-editorial__meta span,
.media-feature-editorial__meta time {
    margin: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    letter-spacing: inherit !important;
    text-transform: inherit !important;
}

.media-feature-editorial__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.media-page .media-feature-editorial .media-feature-content .media-feature-editorial__actions > a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 1px solid #049bce;
    border-radius: var(--radius-control, 10px);
    background: #049bce;
    color: #fff;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .075em;
    text-decoration: none;
    text-transform: uppercase;
}

.media-page .media-feature-editorial .media-feature-content .media-feature-editorial__actions > a:hover {
    border-color: #071827;
    background: #071827;
    color: #fff;
}

.media-page .media-feature-editorial .media-feature-content .media-feature-editorial__actions > a.is-secondary {
    border-color: #d6e0e7;
    background: #fff;
    color: #334b5f;
}

.media-page .media-feature-editorial .media-feature-content .media-feature-editorial__actions > a.is-secondary:hover {
    border-color: #049bce;
    background: #f7fbfd;
    color: #047fa8;
}

.media-page .media-hub-card [data-afdes-media] .play-badge,
.media-page .media-hub-card [data-afdes-video] .play-badge {
    pointer-events: none;
}

.media-page .media-hub-card .media-audio-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(7,24,39,.84);
    color: #fff;
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

/* PODCAST LIST */
.media-page .podcast-card {
    grid-template-columns: 62px minmax(0, 1fr) auto;
    border-radius: 12px;
    box-shadow: none;
}

.media-page .podcast-card__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    min-width: 142px;
}

.media-page .podcast-card__actions a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 9px 13px;
    border: 1px solid #049bce;
    border-radius: var(--radius-control, 10px);
    background: #049bce;
    color: #fff;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.media-page .podcast-card__actions a:hover {
    border-color: #071827;
    background: #071827;
    color: #fff;
}

.media-page .podcast-card__actions a.podcast-source-link {
    border-color: #d6e0e7;
    background: #fff;
    color: #52677a;
}

.media-page .podcast-card__actions a.podcast-source-link:hover {
    border-color: #049bce;
    background: #f7fbfd;
    color: #047fa8;
}

@media (max-width: 960px) {
    .media-page .media-feature-editorial {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .media-page .media-feature-editorial .media-feature-image {
        max-width: none;
    }

    .media-page .media-feature-editorial .media-feature-content {
        padding: 22px 0 0;
        border-top: 1px solid #e1e8ed;
        border-left: 0;
    }

    .media-page .media-feature-editorial .media-feature-content::before {
        top: -2px;
        left: 0;
        width: 54px;
        height: 3px;
    }

    .media-page .media-feature-editorial h2,
    .media-page .media-feature-editorial p {
        max-width: 760px;
    }
}

@media (max-width: 720px) {
    .media-page .media-feature-editorial {
        padding: 24px 0 30px;
    }

    .media-page .media-feature-editorial .media-feature-image {
        border-radius: 10px;
    }

    .media-page .podcast-card {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 14px;
        align-items: start;
        padding: 18px;
    }

    .media-page .podcast-number {
        width: 46px;
        height: 46px;
    }

    .media-page .podcast-card__actions {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        flex-direction: row;
        padding-top: 4px;
    }

    .media-page .podcast-card__actions a {
        flex: 1 1 0;
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 460px) {
    .media-page .media-feature-editorial h2 {
        font-size: 1.55rem;
    }

    .media-page .media-feature-editorial p {
        font-size: .82rem;
    }

    .media-feature-editorial__actions,
    .media-page .podcast-card__actions {
        flex-direction: column;
    }

    .media-page .media-feature-editorial .media-feature-content .media-feature-editorial__actions > a,
    .media-page .podcast-card__actions a {
        width: 100%;
        box-sizing: border-box;
    }
}
