.mdy-provider-handoff .mdy-external-watch {
    display: inline-flex; align-items: center; gap: .2em; min-height: 2.75rem; color: #f1eef2;
    font-size: .875rem; text-decoration: underline; text-underline-offset: .2em;
}
.mdy-provider-handoff .mdy-external-watch:hover { color: #fff; }
.mdy-provider-handoff { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: .65rem; margin-block: .5rem; color: #d8d5da; }
.mdy-provider-handoff a:focus-visible { outline: 2px solid white; outline-offset: 2px; }

/* Header of a single genre archive. The home shelves use Streamit's own styles. */
.mdy-genre-backdrop { display: grid; isolation: isolate; position: relative; overflow: hidden; border-radius: .75rem; align-items: end; padding: clamp(1rem,3vw,3rem); min-height: clamp(10rem,22vw,21rem); margin-bottom: 1.25rem; }
.mdy-genre-backdrop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mdy-genre-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(0 0 0 / .94), rgb(0 0 0 / .55) 50%, transparent 90%); z-index: -1; }
.mdy-genre-backdrop h1 { margin: 0; }

.mdy-pick-meta, .mdy-pick-duration {
    display: inline-flex; align-items: center; gap: .4em;
}
.mdy-pick-meta { flex-wrap: wrap; gap: .95em; }
#medyapim-fresh-picks .movie-time-text:has(.mdy-pick-meta) > .icon-clock { display: none; }

@media (min-width: 992px) {
    #mdy-episode-feature .episodes-tab .season-content {
        height: clamp(16rem, calc(80vh - 9rem), 45rem);
    }
    #mdy-episode-feature .season-content .season-episodes-details { gap: .7rem; }
    #mdy-episode-feature .season-content .episode-card-content .episode-img img {
        width: 6.5rem; height: auto !important; aspect-ratio: 16 / 9;
    }
}
.streamit-section-header:has(> .streamit-view-all) {
    position: relative; z-index: 3;
}
.streamit-section-header a.streamit-view-all {
    position: relative; z-index: 1; display: inline-flex; align-items: center;
    justify-content: center; min-height: 44px; padding: .45em 1em; border-radius: 999px;
    border: 1px solid #646469; background: #202024; color: #fff;
    font-weight: 600; line-height: 1.2; white-space: nowrap; text-decoration: none; scroll-margin-block: 6rem;
}
.streamit-section-header a.streamit-view-all:is(:hover,:focus-visible) { background: #38383e; color: #fff; }
.streamit-section-header a.streamit-view-all:focus-visible { outline: 2px solid white; outline-offset: 3px; }
@media (max-width: 991.98px) {
    #mdy-episode-feature .streamit-wrap-details {
        display: block; position: relative; inset: auto; transform: none; width: auto;
        margin-inline: clamp(.75rem, 4vw, 2rem); padding-block: 1rem;
    }
    #mdy-episode-feature .episodes-tab .season-content { height: min(48vh, 23rem); padding-inline: 1rem; }
    #mdy-episode-feature .episodes-tab :is(.all-episodes,.nav-tabs) { padding-inline: 1rem; }
    #mdy-episode-feature .season-content .season-episodes-details { gap: .65rem; }
    #mdy-episode-feature .season-content .episode-card-content { gap: .8rem; }
    #mdy-episode-feature .season-content .episode-card-content .episode-img img {
        width: 5.5rem; height: auto !important; aspect-ratio: 16 / 9;
    }
}

/* Streamit's Top Ten widget emits number_size through Elementor's per-page CSS.
   Supply its responsive defaults when the same template is mounted by the catalogue. */
#medyapim-top-10 .top_ten_numbers { font-size: 7.5em; }
/* Both shelves position their arrows against a full-width container. */
#medyapim-top-10 .swiper-arrow,
#mdy-art-genres .swiper-arrow { margin-inline: 0; }
@media (max-width: 1024px) {
    #medyapim-top-10 .top_ten_numbers { font-size: 6em; }
}
@media (max-width: 767px) {
    #medyapim-top-10 .top_ten_numbers { font-size: 4.5em; }
}
