/* ============================================================
   NTM Homepage — Featured Podcast Hero
   Dark editorial section with PODCAST text-mark backdrop +
   stacked-card episode carousel (Swiper creative effect).
   ============================================================ */

.ntm-featured-podcast {
    position: relative;
    overflow: hidden;
    background-color: var(--ntm-bg-dark);
    color: var(--ntm-ink-inverse);
    padding-top: var(--ntm-section-pad-y);
    padding-bottom: var(--ntm-section-pad-y);
    font-family: var(--ntm-font-sans);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ntm-featured-podcast__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ntm-featured-podcast__bg-image {
    position: absolute;
    top: 0;
    right: 0;
    width: min(1080px, 60%);
    max-width: none;
    height: auto;
    opacity: 0.6;
    user-select: none;
    pointer-events: none;
}

.ntm-featured-podcast__container {
    position: relative;
    z-index: 1;
    max-width: var(--ntm-container-max);
    margin-left: auto;
    margin-right: auto;
}

.ntm-featured-podcast__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}

/* ---------- Left text block ---------- */
.ntm-featured-podcast__lead {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 480px;
}

.ntm-featured-podcast__eyebrow {
    font-family: var(--ntm-font-sans);
    font-size: 1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ntm-accent-teal);
    margin: 0 0 28px 0;
    font-weight: 500;
}

.ntm-featured-podcast__display {
    font-family: var(--ntm-font-serif);
    font-size: clamp(2.25rem, 4vw, 3.75rem);
    line-height: 1.15;
    margin: 0 0 28px 0;
    font-weight: 400;
    color: var(--ntm-ink-inverse);
}

.ntm-featured-podcast__display-line {
    display: inline;
}

.ntm-featured-podcast__display-line--italic {
    font-style: italic;
    color: var(--ntm-accent-teal);
}

.ntm-featured-podcast__description {
    font-family: var(--ntm-font-sans);
    font-size: var(--ntm-fs-body);
    line-height: 1.55;
    margin: 0 0 32px 0;
    color: var(--ntm-ink-inverse);
    opacity: 0.85;
}

.ntm-featured-podcast__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--ntm-font-sans);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ntm-ink-inverse);
    border: 1px solid var(--ntm-ink-inverse);
    background-color: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ntm-featured-podcast__cta:hover,
.ntm-featured-podcast__cta:focus {
    background-color: var(--ntm-ink-inverse);
    color: var(--ntm-bg-dark);
    text-decoration: none;
}

/* ---------- Right carousel ---------- */
.ntm-featured-podcast__carousel-wrap {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: 0;
    align-self: center;
}

/* Deck: holds 3 stacked cards. Active card-wrap fills full deck height,
   so peeks (translated horizontally only) stay vertically centered with
   the active card and inset equally top/bottom because of their scale. */
.ntm-featured-podcast__deck {
    position: relative;
    width: 100%;
    /* Active card-wrap = 75% of deck width and 100% of deck height.
       Active card aspect = 397/535. Deck aspect = 0.75 / (397/535) = 1.011, inverted = 0.989.
       Round to 600/607. */
    aspect-ratio: 600 / 607;
    transform-style: preserve-3d;
}

/* Each card wrapper fills the active slot (75% deck width, full deck height),
   anchored top-left. Peeks translate horizontally only and scale from CENTER
   so they sit vertically centered relative to the active card with even
   space above and below. */
.ntm-featured-podcast__card-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    height: 100%;
    transition:
        transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
        filter 0.6s ease,
        opacity 0.5s ease;
    will-change: transform, filter, opacity;
    transform-origin: center center;
}

.ntm-featured-podcast__card-wrap[data-state="active"] {
    z-index: 3;
    transform: translate(0, 0) scale(1);
    filter: blur(0);
    opacity: 1;
}

.ntm-featured-podcast__card-wrap[data-state="next"] {
    z-index: 2;
    transform: translate(18%, 0) scale(0.92);
    filter: blur(2.5px);
    opacity: 1;
    pointer-events: none;
}

.ntm-featured-podcast__card-wrap[data-state="after-next"] {
    z-index: 1;
    transform: translate(36%, 0) scale(0.84);
    filter: blur(5px);
    opacity: 1;
    pointer-events: none;
}

.ntm-featured-podcast__card-wrap[data-state="hidden"] {
    z-index: 0;
    transform: translate(36%, 0) scale(0.8);
    filter: blur(8px);
    opacity: 0;
    pointer-events: none;
}

/* ---------- Episode card ---------- */
.ntm-featured-podcast__card {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ntm-featured-podcast__card-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    color: var(--ntm-ink-inverse);
    text-decoration: none;
}

.ntm-featured-podcast__card-link:hover,
.ntm-featured-podcast__card-link:focus {
    color: var(--ntm-ink-inverse);
    text-decoration: none;
}

.ntm-featured-podcast__card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.ntm-featured-podcast__card-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    color: rgba(255, 255, 255, 0.3);
    font-size: 4rem;
}

/* Bottom info, sits over a dark gradient */
.ntm-featured-podcast__card-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 22px 22px;
    z-index: 2;
    background: linear-gradient(360deg, #000 25%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ntm-featured-podcast__card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ntm-featured-podcast__card-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 1px;
    height: 13px;
}

.ntm-featured-podcast__card-bars span {
    display: block;
    width: 2px;
    background-color: var(--ntm-accent-teal);
}

.ntm-featured-podcast__card-bars span:nth-child(1) { height: 30%; }
.ntm-featured-podcast__card-bars span:nth-child(2) { height: 80%; }
.ntm-featured-podcast__card-bars span:nth-child(3) { height: 50%; }
.ntm-featured-podcast__card-bars span:nth-child(4) { height: 100%; }
.ntm-featured-podcast__card-bars span:nth-child(5) { height: 38%; }
.ntm-featured-podcast__card-bars span:nth-child(6) { height: 88%; }
.ntm-featured-podcast__card-bars span:nth-child(7) { height: 62%; }
.ntm-featured-podcast__card-bars span:nth-child(8) { height: 100%; }

.ntm-featured-podcast__card-episode {
    font-family: 'Roboto', var(--ntm-font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ntm-ink-inverse);
}

.ntm-featured-podcast__card-title {
    margin: 0;
    font-family: var(--ntm-font-serif);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.05;
    font-weight: 400;
    color: var(--ntm-ink-inverse);
}

.ntm-featured-podcast__card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    margin-top: 4px;
    min-width: 0;
}

.ntm-featured-podcast__card-watch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    font-family: 'Roboto', var(--ntm-font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: underline;
    color: var(--ntm-ink-inverse);
    white-space: nowrap;
}

.ntm-featured-podcast__arrow-icon {
    color: var(--ntm-accent-teal);
}

.ntm-featured-podcast__card-platforms {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 1 auto;
    min-width: 0;
}

.ntm-featured-podcast__card-platform {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #fff;
    padding: 4px 8px;
    flex: 0 0 auto;
}

.ntm-featured-podcast__card-platform-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 16px;
    line-height: 1;
}

.ntm-featured-podcast__card-platform-icon--apple {
    color: #B73DD0;
}

.ntm-featured-podcast__card-platform-icon--spotify {
    color: #1ED760;
}

.ntm-featured-podcast__card-platform-icon--youtube {
    color: #FF0000;
}

.ntm-featured-podcast__card-platform-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
}

.ntm-featured-podcast__card-platform-label {
    font-family: var(--ntm-font-sans);
    font-size: 0.5rem;
    color: #666;
    letter-spacing: 0.04em;
}

.ntm-featured-podcast__card-platform-name {
    font-family: var(--ntm-font-sans);
    font-size: 0.6875rem;
    color: #000;
    font-weight: 500;
    margin-top: 2px;
}

/* ---------- Navigation arrows ---------- */
.ntm-featured-podcast__nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    padding-left: 8px;
}

.ntm-featured-podcast__nav-btn {
    width: 72px;
    height: 72px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--ntm-ink-inverse);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ntm-featured-podcast__nav-btn:hover,
.ntm-featured-podcast__nav-btn:focus {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--ntm-accent-teal);
    color: var(--ntm-accent-teal);
    outline: none;
}

.ntm-featured-podcast__nav-btn--next {
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--ntm-accent-teal);
}

.ntm-featured-podcast__nav-btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .ntm-featured-podcast__layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .ntm-featured-podcast__lead {
        max-width: 100%;
    }

    .ntm-featured-podcast__bg-image {
        right: -25%;
        width: 95%;
        opacity: 0.35;
    }

    .ntm-featured-podcast__carousel-wrap {
        margin-left: 0;
        max-width: 100%;
    }

    .ntm-featured-podcast__slide {
        max-width: 420px;
        margin: 0 auto;
    }

    .ntm-featured-podcast__nav {
        justify-content: center;
        padding-left: 0;
    }
}

@media (max-width: 575.98px) {
    .ntm-featured-podcast__nav-btn {
        width: 56px;
        height: 56px;
    }

    .ntm-featured-podcast__card-platform-text {
        display: none;
    }

    .ntm-featured-podcast__card-platform {
        padding: 6px 8px;
    }
}
