/* Streamit keeps its component colours. These tokens cover the dark catalog surfaces. */
.wp-theme-streamit .medyapim-toolbar-discovery-group a:has(.mdy-genre-icon) {
    min-height: var(--med-target, 44px);
    gap: .55rem;
}
.medyapim-toolbar-discovery-group .mdy-genre-icon { flex: none; }
.wp-theme-streamit {
    --med-target: 44px;
    --med-focus: #fff;
    --med-link: #ff7078;
    --med-page-size: clamp(2rem, 1.55rem + 2.2vw, 3.5rem);
    --med-section-size: clamp(1.25rem, 1.1rem + .75vw, 1.75rem);
}

@supports (color: oklch(0% 0 0)) {
    .wp-theme-streamit { --med-link: oklch(72% .17 18); }
}

.wp-theme-streamit .medyapim-page-heading {
    margin: 0;
    padding: clamp(1rem, .7rem + 1.5vw, 2rem) clamp(1rem, .5rem + 3vw, 3rem);
}

.wp-theme-streamit .medyapim-page-heading,
.wp-theme-streamit .streamit-grid-section h1.streamit-section-title,
.wp-theme-streamit :is(.elementor-7873,.elementor-16424,.elementor-5048) h1.st-title {
    font-size: var(--med-page-size);
    line-height: 1.12;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.wp-theme-streamit :is(.medyapim-section-heading, .elementor-5666 h2.streamit-section-title),
.wp-theme-streamit :is(.elementor-5048,.elementor-16424) h2.st-title {
    font-size: var(--med-section-size);
    line-height: 1.22;
}

.wp-theme-streamit .medyapim-card-heading {
    font-size: clamp(1rem, .95rem + .35vw, 1.3rem);
    line-height: 1.3;
}

.wp-theme-streamit .elementor-7873 .st-title-box p,
.wp-theme-streamit :is(.tvshow-description,.medyapim-episode-summary) p {
    max-inline-size: 70ch;
}
.wp-theme-streamit .person-info-details > p { max-inline-size: 70ch; }
.wp-theme-streamit:is(.page-id-16418,.page-id-7088,.page-id-17534,.page-id-17547,.page-id-7104) #main {
    box-sizing: content-box;
    max-inline-size: 70ch;
    margin-inline: auto;
    padding: clamp(1rem, .6rem + 2vw, 2.5rem) clamp(1rem, .5rem + 2vw, 2rem);
    overflow-wrap: anywhere;
}
.wp-theme-streamit:is(.page-id-16418,.page-id-7088,.page-id-17534,.page-id-17547,.page-id-7104) #main .medyapim-page-heading {
    padding: 0;
    margin-block-end: 1em;
}
.wp-theme-streamit:is(.page-id-16418,.page-id-17534) #main .wp-block-heading {
    margin-block: 1.5em .55em;
    line-height: 1.25;
}
.wp-theme-streamit:is(.page-id-16418,.page-id-17534) #main h2 { font-size: var(--med-section-size); }
.wp-theme-streamit.page-id-17534 #main h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.45rem); }

.wp-theme-streamit .streamit-grid-section .streamit-grid-viewall {
    display: inline-flex;
    min-block-size: var(--med-target);
    align-items: center;
    color: var(--med-link);
}
.wp-theme-streamit .streamit-grid-section .streamit-grid-viewall:hover { text-decoration: underline; }

.wp-theme-streamit .medyapim-actors > .row { margin-inline: 0; }
.wp-theme-streamit .medyapim-actors nav a {
    display: inline-flex;
    min-block-size: var(--med-target);
    align-items: center;
    color: var(--med-link);
}

.wp-theme-streamit .elementor-16424 .elementor-widget-form .elementor-form .elementor-form-fields-wrapper { margin-inline: 0; }
.wp-theme-streamit :is(.elementor-5048,.elementor-16424) .elementor-form .elementor-button,
.wp-theme-streamit .video-section .tvshow-description button[data-bs-target="#viewMoreDataModal"],
.wp-theme-streamit #default-header .menu-toggle-button {
    min-inline-size: var(--med-target);
    min-block-size: var(--med-target);
}

.wp-theme-streamit .cky-btn-revisit-wrapper .cky-btn-revisit {
    min-inline-size: var(--med-target);
    min-block-size: var(--med-target);
    display: grid;
    place-items: center;
}
.wp-theme-streamit .cky-btn-revisit-wrapper {
    min-inline-size: var(--med-target);
    min-block-size: var(--med-target);
}

.wp-theme-streamit :is(.streamit-grid-viewall,.medyapim-actors nav a,.elementor-form .elementor-button,.cky-btn-revisit,.menu-toggle-button):focus-visible {
    outline: 2px solid var(--med-focus);
    outline-offset: 2px;
}
.wp-theme-streamit :is(.streamit-grid-viewall,.medyapim-actors nav a):active { color: var(--med-focus); }
.wp-theme-streamit .elementor-form .elementor-button:is(:disabled,[aria-busy="true"]) { cursor: progress; }

.medyapim-home-shelf .card-hover-flip:focus-within {
    /* The theme suppresses the panel in narrow main-card containers. */
    container-name: none;
}
.medyapim-home-shelf .card-hover-flip .card-description:focus-within {
    opacity: 1;
    transform: none;
    overflow-y: auto;
    justify-content: safe end;
}
.medyapim-home-shelf .card-description:focus-within .genres-list {
    flex-wrap: wrap;
}
.medyapim-home-shelf .card-description .streamit-title:focus-within {
    display: block;
    overflow: visible;
}
.wp-theme-streamit .medyapim-home-shelf a:focus-visible {
    outline: 2px solid var(--med-focus);
    outline-offset: -2px;
}

/* The desktop footer's four tracks need about 46rem including gaps. Respect large user fonts. */
@media (min-width: 1024px) {
    footer.elementor-location-footer[data-elementor-id="16528"] [data-id="3e9eca4a"] {
        container: med-footer / inline-size;
    }
    @container med-footer (max-width: 46rem) {
        .wp-theme-streamit footer.elementor-location-footer[data-elementor-id="16528"] [data-id="3e9eca4a"] > .elementor-container {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }
}
@media (forced-colors: active) {
    .wp-theme-streamit { --med-focus: Highlight; --med-link: LinkText; }
}
