/* Figma 202:68 heading and background, with the supplied curved poster layout. */
.featured-content { scroll-margin-top: var(--navigation-height); min-height: 0; padding: 100px 0; overflow: clip; color: var(--blue); }
.featured-content > .container { width: min(1200px, calc(100% - 48px)); }
.featured-content h2 { text-align: center; font: 400 56px/1.2 var(--heading); text-transform: uppercase; }
.featured-content::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 58.08%; background: linear-gradient(179.83deg, rgb(253 240 39 / 0) .43%, #fdf027 33.25%); pointer-events: none; z-index: -1; }
.featured-carousel { margin-top: 24px; }
/* The editor and browsers without JS retain a readable poster grid. */
.featured-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.featured-card { min-width: 0; backface-visibility: hidden; }
.featured-poster { position: relative; display: block; width: 100%; aspect-ratio: 516 / 716; padding: 0; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 16px 24px rgb(15 62 193 / .18); color: white; text-align: center; }
.featured-poster img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.featured-caption { position: absolute; inset: auto 0 0; padding: 52px 18px 20px; background: linear-gradient(transparent, rgb(0 15 35 / .88)); font: 400 18px/1.25 var(--body); text-wrap: balance; }
.featured-controls { display: none; align-items: center; justify-content: center; gap: 24px; margin-top: 12px; }
.featured-controls > button { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; color: var(--blue); }
.featured-autoplay span { width: 12px; height: 16px; border-inline: 4px solid currentColor; }
.featured-autoplay[data-paused="true"] span { width: 0; height: 0; border: 8px solid transparent; border-right: 0; border-left: 12px solid currentColor; }
.featured-controls .icon-svg { width: 28px; height: 28px; }
.featured-pagination { display: flex; align-items: center; gap: 2px; }
.featured-dot { display: grid; place-items: center; width: 28px; height: 44px; }
.featured-dot::before { content: ''; width: 8px; height: 8px; border: 1px solid var(--blue); border-radius: 50%; }
.featured-dot[aria-current="true"]::before { width: 20px; border-radius: 8px; background: var(--blue); }
.featured-content button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.featured-poster:focus-visible { outline-offset: -5px; }
.featured-content.is-carousel .featured-track { --featured-step: 320px; display: block; position: relative; height: 480px; perspective: 1200px; touch-action: pan-y; overflow: clip; }
/* Outward fan: outer edges recede, inner edges come forward; keep vertical centres level. */
.featured-content.is-carousel .featured-card { position: absolute; top: 50%; left: 50%; width: 308px; transform: translate(-50%, -50%) translateX(calc(var(--offset) * var(--featured-step))) translateZ(calc(var(--distance) * -30px)) rotateY(calc(var(--position) * 24deg)) scale(var(--scale)); transition: transform .5s cubic-bezier(.22,.65,.3,1), opacity .35s; }
.featured-content.is-carousel .featured-card[aria-hidden="true"] { opacity: 0; visibility: hidden; pointer-events: none; }
.featured-content.is-carousel .featured-card[aria-hidden="false"] { opacity: 1; }
.featured-content.is-carousel .featured-controls { display: flex; }
.featured-content .featured-controls[hidden] { display: none; }
@media (max-width:1100px) {
    .featured-content { padding: 52px 0 40px; }
    .featured-content h2 { font-size: 48px; }
    .featured-content.is-carousel .featured-track { --featured-step: 285px; height: 440px; }
    .featured-content.is-carousel .featured-card { width: 275px; }
}
@media (max-width:600px) {
    .featured-content { min-height: 0; padding: 40px 0 36px; }
    .featured-content > .container { width: 100%; }
    .featured-content h2 { padding-inline: 20px; font-size: 36px; }
    .featured-carousel { margin-top: 16px; }
    .featured-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-inline: 20px; }
    .featured-content.is-carousel .featured-track { --featured-step: 230px; height: 368px; padding: 0; perspective: 850px; }
    .featured-content.is-carousel .featured-card { width: 228px; }
    .featured-caption { font-size: 15px; padding: 42px 12px 16px; }
    .featured-controls { gap: 6px; margin-top: 8px; }
    .featured-dot { width: 26px; }
}
@media (max-width:360px) {
    .featured-dot { width: 18px; }
    .featured-controls { gap: 2px; }
}
@media (prefers-reduced-motion:reduce) {
    .featured-content.is-carousel .featured-card { transition: none; }
}
