/* On light palettes the existing decorative scrims are slightly softer. */
html[data-color-scheme="light"] .studio-title-detail .title-stage-shade,
html[data-color-scheme="light"] .studio-catalog-card .studio-card-shade,
html[data-color-scheme="light"] .catalog-presentation-story_path .mt-cover::after,
html[data-color-scheme="light"] .catalog-presentation-behind_cover .bc-cover::after,
html[data-color-scheme="light"] .a2-connected .cover::after,
html[data-color-scheme="light"] #ms-next .poster-cover::after {
    opacity: .93;
}

/* Use the site's active light palette and the same feathered surface as the film strip. */
html[data-color-scheme="light"] body.studio-theme {
    --interior-art-tint: color-mix(in srgb, var(--studio-color-card) 90%, var(--studio-color-accent));
    --interior-art-ink: var(--studio-color-heading);
    --interior-art-detail: color-mix(in srgb, var(--studio-color-heading) 90%, var(--studio-color-text-secondary));
    --interior-art-fade: linear-gradient(to top,
        color-mix(in srgb, var(--interior-art-tint) 78%, transparent) 0%,
        color-mix(in srgb, var(--interior-art-tint) 73%, transparent) 41%,
        color-mix(in srgb, var(--interior-art-tint) 68%, transparent) 59%,
        color-mix(in srgb, var(--interior-art-tint) 32%, transparent) 74%,
        color-mix(in srgb, var(--interior-art-tint) 8%, transparent) 89%, transparent 100%);
    --interior-art-shadow: 0 3px 9px color-mix(in srgb, var(--studio-color-accent) 6%, transparent);
    --interior-art-shadow-active: 0 10px 26px color-mix(in srgb, var(--studio-color-accent) 15%, transparent);
}

/* The caption depth follows the kind of copy, from a single episode number to a synopsis. */
html[data-color-scheme="light"] body.studio-theme :is(
    .catalog-presentation-story_path .mt-cover, .catalog-presentation-behind_cover .bc-cover,
    .release-index .rx-contact-art, .a2-connected .cover:has(.availability), .talent-card-photo,
    #ms-next .poster-cover, #ms-next .watch-window, #ms-next .collection:has(.collection-ambient)
)::after,
html[data-color-scheme="light"] body.studio-theme [data-episode-layout="scene"] .a2-episodes__grid > a:has(.a2-episodes__image)::before,
html[data-color-scheme="light"] body.studio-theme .cine-page .cine-story-shade {
    inset: auto 0 0;
    height: min(100%, var(--interior-art-depth, 9.75rem));
    opacity: 1;
    background: var(--interior-art-fade);
    pointer-events: none;
}
html[data-color-scheme="light"] body.studio-theme .a2-connected .cover { --interior-art-depth: 3.75rem; }
html[data-color-scheme="light"] body.studio-theme .release-index .rx-contact-art { --interior-art-depth: 5.25rem; }
html[data-color-scheme="light"] body.studio-theme #ms-next .watch-window { --interior-art-depth: 18rem; }
html[data-color-scheme="light"] body.studio-theme .cine-page .cine-story-shade {
    /* The cinematic skin supplies an important scrim of its own. */
    background: var(--interior-art-fade) !important;
}
html[data-color-scheme="light"] body.studio-theme .cine-page .cine-story-reveal {
    background: var(--interior-art-fade) bottom / 100% min(100%, 15rem) no-repeat !important;
}
html[data-color-scheme="light"] body.studio-theme .cine-page .cine-story.is-expanded .cine-story-shade {
    opacity: 0;
}

html[data-color-scheme="light"] body.studio-theme :is(
    .bc-cover-title-link, .mt-cover-caption h3, .talent-card-copy h3,
    .release-index .rx-contact-ep, .release-index .rx-contact-ep b,
    [data-episode-layout="scene"] a:has(.a2-episodes__image) .a2-episodes__copy strong,
    #ms-next .poster-surface .poster-title, #ms-next .window-info h2
),
html[data-color-scheme="light"] body.studio-theme .cine-page .cine-story :is(.cine-story-idle h3, .cine-story-reveal h3) {
    color: var(--interior-art-ink) !important;
    -webkit-text-fill-color: currentColor !important;
    text-shadow: none;
}
html[data-color-scheme="light"] body.studio-theme :is(
    .bc-cover-title-secondary, .mt-cover-caption .mt-original, .mt-cover-caption .mt-state,
    .a2-connected .cover .availability, .talent-card-copy :is(small, p, footer span, footer em),
    [data-episode-layout="scene"] a:has(.a2-episodes__image) .a2-episodes__copy small,
    #ms-next .poster-title small, #ms-next .window-info :is(p, .overline, .resume-meta)
),
html[data-color-scheme="light"] body.studio-theme .cine-page .cine-story :is(.cine-story-idle span, .cine-story-idle small, .cine-story-meta, .cine-story-reveal p) {
    color: var(--interior-art-detail) !important;
    text-shadow: none;
}
html[data-color-scheme="light"] body.studio-theme [data-episode-layout="scene"] .a2-episodes__grid > a:has(.a2-episodes__image) > :is(.a2-episodes__number, i) {
    color: var(--interior-art-ink);
    background: color-mix(in srgb, var(--interior-art-tint) 65%, transparent);
    border-color: color-mix(in srgb, var(--interior-art-ink) 20%, transparent);
}
html[data-color-scheme="light"] body.studio-theme .release-index :is(.rx-cover-index, .rx-contact-index),
html[data-color-scheme="light"] body.studio-theme .a2-connected .cover .cover-badge,
html[data-color-scheme="light"] body.studio-theme #ms-next .poster-type {
    background: color-mix(in srgb, var(--interior-art-tint) 78%, transparent);
    color: var(--interior-art-ink);
    border-color: color-mix(in srgb, var(--interior-art-ink) 18%, transparent);
}

/* Lead news cards may draw the picture on a filtered guest pseudo-element. Put the
   caption gradient on the link so the chosen guest effect still applies to the photo. */
html[data-color-scheme="light"] body.studio-theme.news-page .news-path-lead,
html[data-color-scheme="light"] body.studio-theme.news-page .news-path-lead::after {
    background: var(--cover) var(--image-position, center) / cover no-repeat var(--studio-color-card);
}
html[data-color-scheme="light"] body.studio-theme.news-page .news-path-lead > a {
    background: var(--interior-art-fade) bottom / 100% min(100%, 22rem) no-repeat;
}
html[data-color-scheme="light"] body.studio-theme.news-page .news-path-lead :is(h2, p, time, footer b) {
    color: var(--interior-art-ink);
    text-shadow: none;
}

/* These templates print the title underneath or beside the picture. */
html[data-color-scheme="light"] body.studio-theme :is(.studio-catalog-card .studio-card-shade, .a2-discovery-card .a2-discovery-shade),
html[data-color-scheme="light"] body.studio-theme :is(
    .news-card__media, .a2-connected .cover:not(:has(.availability)),
    .talent-orbit figure, .weekly-schedule .cover-poster-link,
    .release-index .rx-release-grid[data-view="cards"] .rx-release-art
)::after {
    background: none;
}
html[data-color-scheme="light"] body.studio-theme :is(
    .release-index .rx-release-art > img, .journey-episode.state-completed figure img,
    .cine-page .cine-story > img, .career-poster > img, .talent-card-photo > img,
    [data-episode-layout="editorial"] .a2-episodes__grid > a > .a2-episodes__image
) {
    filter: none;
    opacity: 1;
}
html[data-color-scheme="light"] body.studio-theme [data-episode-layout="scene"] .a2-episodes__image { opacity: 1; }
html[data-color-scheme="light"] body.studio-theme .a2-connected .cover.matte::before,
html[data-color-scheme="light"] body.studio-theme .a2-connected .cover.matte > .poster-backdrop { filter: blur(16px); }
html[data-color-scheme="light"] body.studio-theme .talent-card-photo > i { background: none; }
html[data-color-scheme="light"] body.studio-theme .career-work .career-poster > i {
    background: transparent;
    color: var(--studio-color-on-art);
    text-shadow: 0 1px 3px var(--studio-color-art-scrim);
}
html[data-color-scheme="light"] body.studio-theme.studio-title-detail .title-discovery-v157 .related-row figure i {
    color: var(--interior-art-ink);
    background: var(--interior-art-fade);
}
html[data-color-scheme="light"] body.studio-theme .weekly-schedule .cover-poster-link {
    background: var(--studio-color-card);
    border-color: var(--studio-color-border);
}
html[data-color-scheme="light"] body.studio-theme .cine-page .cine-wall:has(.cine-story:hover) .cine-story:not(:hover) {
    opacity: 1;
    filter: none;
}

html[data-color-scheme="light"] body.studio-theme #ms-next .collection-ambient::after,
html[data-color-scheme="light"] body.studio-theme #ms-next .library-grid.list .poster-cover::after { background: none; }
html[data-color-scheme="light"] body.studio-theme #ms-next .collection-ambient img { opacity: 1; }
html[data-color-scheme="light"] body.studio-theme #ms-next .collection:has(.collection-ambient) :is(h3, small, .collection-foot) {
    color: var(--interior-art-ink);
}
html[data-color-scheme="light"] body.studio-theme #ms-next :is(.poster-letter, .collection:has(.collection-ambient) > small) {
    color: var(--interior-art-ink);
    text-shadow: 0 0 2px var(--interior-art-tint), 0 0 5px var(--interior-art-tint);
}
html[data-color-scheme="light"] body.studio-theme #ms-next .release-ticket .image-frame.release-art {
    background: var(--studio-color-card);
}
html[data-color-scheme="light"] body.studio-theme .a2-connected .cover.matte > img:not(.poster-backdrop) {
    box-shadow: var(--interior-art-shadow);
}
html[data-color-scheme="light"] body.studio-theme .a2-connected .compact .cover.matte > img { box-shadow: none; }
html[data-color-scheme="light"] body.studio-theme .catalog-presentation-behind_cover .bc-cover-badges :is(.bc-access, .bc-work-state) {
    background: color-mix(in srgb, var(--interior-art-tint) 78%, transparent);
    color: var(--interior-art-ink);
    border-color: color-mix(in srgb, var(--interior-art-ink) 18%, transparent);
    box-shadow: none;
}

/* The elevation belongs to each interactive card and eases back to its resting value on exit. */
html[data-color-scheme="light"] body.studio-theme :is(
    .studio-catalog-card, .a2-discovery-card, .cine-page .cine-story,
    .catalog-presentation-story_path .mt-card, .catalog-presentation-behind_cover .bc-cover,
    .a2-connected .result-card, .release-index .rx-contact-item .rx-contact-art, .release-index .rx-release,
    .news-story-row__image, .news-card, .news-followup-poster, .news-followup-thumbnail,
    .talent-person .talent-orbit figure, .talent-card, .career-work .career-poster,
    .title-discovery-v157 .related-row figure, .w148-similar-grid > a figure, .journey-episode figure,
    .weekly-schedule .cover-portrait, .episode-shelf .shelf-featured-art,
    [data-episode-layout="scene"] .a2-episodes__grid > a,
    #ms-next .poster-card .poster-cover, #ms-next .collection:has(.collection-ambient), #ms-next .watch-window, #ms-next .release-ticket
) {
    box-shadow: var(--interior-art-shadow);
}
html[data-color-scheme="light"] body.studio-theme :is(
    .studio-catalog-card, .a2-discovery-card, .cine-story, .mt-card, .bc-cover, .result-card,
    .rx-contact-item, .rx-release, .news-story-row, .news-card, .news-followup-title, .news-followup-story,
    .talent-person, .talent-card, .career-work, .title-discovery-v157 .related-row > a,
    .w148-similar-grid > a, .journey-episode, .release-cover, .shelf-featured-card,
    [data-episode-layout="scene"] .a2-episodes__grid > a, #ms-next :is(.poster-card, .collection:has(.collection-ambient), .watch-window, .release-ticket)
):is(:focus-visible, :has(:focus-visible)) {
    --interior-art-shadow: var(--interior-art-shadow-active);
}
@media (hover: hover) and (pointer: fine) {
    html[data-color-scheme="light"] body.studio-theme :is(
        .studio-catalog-card, .a2-discovery-card, .cine-story, .mt-card, .bc-cover, .result-card,
        .rx-contact-item, .rx-release, .news-story-row, .news-card, .news-followup-title, .news-followup-story,
        .talent-person, .talent-card, .career-work, .title-discovery-v157 .related-row > a,
        .w148-similar-grid > a, .journey-episode, .release-cover, .shelf-featured-card,
        [data-episode-layout="scene"] .a2-episodes__grid > a, #ms-next :is(.poster-card, .collection:has(.collection-ambient), .watch-window, .release-ticket)
    ):hover { --interior-art-shadow: var(--interior-art-shadow-active); }
}
@media (prefers-reduced-motion: no-preference) {
    html[data-color-scheme="light"] body.studio-theme :is(
        .studio-catalog-card, .a2-discovery-card, .cine-story, .mt-card, .bc-cover, .result-card,
        .rx-contact-art, .rx-release, .news-story-row__image, .news-card, .news-followup-poster, .news-followup-thumbnail,
        .talent-orbit figure, .talent-card, .career-poster, .related-row figure, .w148-similar-grid figure,
        .journey-episode figure, .cover-portrait, .shelf-featured-art, [data-episode-layout="scene"] .a2-episodes__grid > a,
        #ms-next :is(.poster-cover, .collection:has(.collection-ambient), .watch-window, .release-ticket)
    ) { transition: box-shadow .35s ease, transform .35s ease, border-color .35s ease; }
}
