11import { css } from '@emotion/react' ;
2- import { from , space , until } from '@guardian/source/foundations' ;
2+ import {
3+ from ,
4+ palette as sourcePalette ,
5+ space ,
6+ until ,
7+ } from '@guardian/source/foundations' ;
38import { Hide , SvgMediaControlsPlay } from '@guardian/source/react-components' ;
49import { ArticleDesign , type ArticleFormat } from '../lib/articleFormat' ;
510import { secondsToDuration } from '../lib/formatTime' ;
611import { getZIndex } from '../lib/getZIndex' ;
12+ import { transparentColour } from '../lib/transparentColour' ;
713import { palette } from '../palette' ;
814import type { StarRating as Rating } from '../types/content' ;
915import type {
@@ -148,6 +154,9 @@ const overlayStyles = css`
148154 gap : ${ space [ 1 ] } px;
149155 padding : 64px ${ space [ 2 ] } px ${ space [ 2 ] } px;
150156 backdrop-filter : blur (12px ) brightness (0.5 );
157+ @supports not (backdrop-filter : blur (12px )) {
158+ background-color : ${ transparentColour ( sourcePalette . neutral [ 10 ] , 0.7 ) } ;
159+ }
151160 ${ overlayMaskGradientStyles ( '180deg' ) } ;
152161
153162 /* Ensure the waveform is behind the other elements, e.g. headline, pill */
@@ -164,7 +173,6 @@ const immersiveOverlayStyles = css`
164173 * 48px is to point at which the gradient can go behind the content whilst maintaining accessibility.
165174 */
166175 padding : ${ space [ 2 ] } px ${ space [ 12 ] } px ${ space [ 2 ] } px ${ space [ 2 ] } px;
167- backdrop-filter : blur (12px ) brightness (0.5 );
168176 ${ overlayMaskGradientStyles ( '270deg' ) }
169177 }
170178` ;
0 commit comments