# Film roll photo filter

> Pick a film canister and the photo changes colour, contrast and grain as if it had been developed on that stock.

- Category: [Filters](https://library.aimran.es/components/filters)
- Built with: HTML + CSS
- Live editor: https://library.aimran.es/blocks/uv-f-film-rolls
- Library: AIMRAN Library (https://library.aimran.es), free, no sign-up, by Aimran Oukham

## Where to use it

A filter picker for photo editors and camera apps that shows each look as a real film canister with its ISO on the label. The preview is an inline SVG scene inside a negative strip, and each roll applies CSS filters, a soft-light tint and animated noise grain. The selection is a radio group handled entirely in CSS.

Edit the filter strings to create your own looks, such as a faded summer or a cross-processed slide. Swap the SVG for a real image when you use it in production, and keep the names short so they fit under each canister.

## Code

### HTML

```html
<fieldset class="uvq05-fr"><legend>Film</legend><div class="fm"><div class="ph"><svg viewBox="0 0 200 120" preserveAspectRatio="xMidYMid slice" aria-hidden="true"><defs><linearGradient id="uvq05-fr-s" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#6fb7e9"/><stop offset="1" stop-color="#ffd9a8"/></linearGradient></defs><rect width="200" height="120" fill="url(#uvq05-fr-s)"/><circle cx="148" cy="36" r="13" fill="#ffd25e"/><path d="M0 78L38 44L62 64L92 30L128 70L152 52L200 82V120H0Z" fill="#4f7a64"/><path d="M0 88L30 70L70 86L110 66L150 84L200 74V120H0Z" fill="#2f5446"/><rect y="94" width="200" height="26" fill="#3d8fc4"/><path d="M20 102h40M90 109h50M150 100h30" stroke="#bfe3f7" stroke-width="1.6" stroke-linecap="round" opacity=".7"/><path d="M118 85h18v9h-18z" fill="#c8432b"/><path d="M115 86l12-9 12 9z" fill="#7a2a1c"/><rect x="124" y="88" width="4" height="6" fill="#ffe2a0"/></svg><i class="tn"></i><svg class="gr" aria-hidden="true"><filter id="uvq05-fr-n"><feTurbulence type="fractalNoise" baseFrequency=".9" numOctaves="2" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="100%" height="100%" filter="url(#uvq05-fr-n)"/></svg></div></div><div class="rl"><label><input type="radio" name="uvq05-fr" checked><span class="cn" style="--b:#f2b134" aria-hidden="true"><i class="ld"></i><i class="cp"></i><span class="bd"><b>400</b></span><i class="cp b"></i></span><span class="nm">Warm</span></label><label><input type="radio" name="uvq05-fr"><span class="cn" style="--b:#2b2b2b" aria-hidden="true"><i class="ld"></i><i class="cp"></i><span class="bd"><b>400</b></span><i class="cp b"></i></span><span class="nm">Black and white</span></label><label><input type="radio" name="uvq05-fr"><span class="cn" style="--b:#2f7d4f" aria-hidden="true"><i class="ld"></i><i class="cp"></i><span class="bd"><b>50</b></span><i class="cp b"></i></span><span class="nm">Slide</span></label><label><input type="radio" name="uvq05-fr"><span class="cn" style="--b:#3a7bd5" aria-hidden="true"><i class="ld"></i><i class="cp"></i><span class="bd"><b>200</b></span><i class="cp b"></i></span><span class="nm">Cool</span></label><label><input type="radio" name="uvq05-fr"><span class="cn" style="--b:#c6352f" aria-hidden="true"><i class="ld"></i><i class="cp"></i><span class="bd"><b>800</b></span><i class="cp b"></i></span><span class="nm">Tungsten</span></label></div></fieldset>
```

### CSS

```css
.uvq05-fr {
  --c1: #f2b134;
  --c2: #15120f;
  --s: 16px;
  /* tamaño */
  --k: 1;
  /* velocidad */
  --fg: #1d1d1f;
  /* texto */
  --bg: #f5f5f7;
  /* fondo */
}

.uvq05-fr {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  width: 19em;
}

.uvq05-fr legend {
  padding: 0;
  margin: 0 0 .8em;
  font-weight: 700;
}

.uvq05-fr .fm {
  position: relative;
  padding: .85em .45em;
  border-radius: .35em;
  background: var(--c2);
  box-shadow: 0 1em 2em -1.2em rgba(0,0,0,.6);
}

.uvq05-fr .fm::before,.uvq05-fr .fm::after {
  content: "";
  position: absolute;
  left: .45em;
  right: .45em;
  height: .38em;
  background: linear-gradient(90deg,#efe6d2 0 .5em,transparent .5em) 0 0/1em 100% repeat-x;
  opacity: .9;
}

.uvq05-fr .fm::before {
  top: .22em;
}

.uvq05-fr .fm::after {
  bottom: .22em;
}

.uvq05-fr .ph {
  position: relative;
  height: 8.6em;
  overflow: hidden;
  border-radius: .12em;
}

.uvq05-fr .ph>svg:first-child {
  display: block;
  width: 100%;
  height: 100%;
  transition: filter calc(0.6s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-fr .tn {
  position: absolute;
  inset: 0;
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity calc(0.6s / var(--k)) cubic-bezier(.25,.1,.25,1),background calc(0.6s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-fr .gr {
  position: absolute;
  left: -20%;
  top: -20%;
  width: 140%;
  height: 140%;
  opacity: .15;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: uvq05-frg calc(0.5s / var(--k)) steps(3) infinite;
  transition: opacity calc(0.6s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-fr .rl {
  display: flex;
  justify-content: space-between;
  margin-top: 1em;
}

.uvq05-fr label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 3.5em;
  padding-top: .4em;
  cursor: pointer;
}

.uvq05-fr input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.uvq05-fr .cn {
  position: relative;
  width: 1.9em;
  height: 2.9em;
  transition: transform calc(0.45s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq05-fr .cn::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -.3em;
  width: .55em;
  height: .32em;
  margin-left: -.27em;
  border-radius: .1em .1em 0 0;
  background: linear-gradient(90deg,#3a3a3a,#bbb 45%,#555);
}

.uvq05-fr .cp {
  position: absolute;
  left: -.08em;
  right: -.08em;
  top: 0;
  z-index: 1;
  height: .34em;
  border-radius: .12em;
  background: linear-gradient(90deg,#5c5c5c,#efefef 35%,#a0a0a0 65%,#4a4a4a);
}

.uvq05-fr .cp.b {
  top: auto;
  bottom: 0;
}

.uvq05-fr .bd {
  position: absolute;
  left: 0;
  right: 0;
  top: .3em;
  bottom: .3em;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg,rgba(0,0,0,.4),rgba(255,255,255,.32) 28%,rgba(255,255,255,0) 52%,rgba(0,0,0,.45)),var(--b);
}

.uvq05-fr .bd b {
  font-size: .62em;
  font-weight: 900;
  color: #fff;
  letter-spacing: .04em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.uvq05-fr .ld {
  position: absolute;
  left: 92%;
  top: .75em;
  width: 1em;
  height: 1.3em;
  background: linear-gradient(#e9dfca 0 0) .15em .12em/.2em .18em,linear-gradient(#e9dfca 0 0) .55em .12em/.2em .18em,linear-gradient(#e9dfca 0 0) .15em 1em/.2em .18em,linear-gradient(#e9dfca 0 0) .55em 1em/.2em .18em,#3b2a1e;
  background-repeat: no-repeat;
  clip-path: polygon(0 0,100% 18%,100% 100%,0 100%);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform calc(0.45s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq05-fr .nm {
  margin-top: .5em;
  font-size: .62em;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  color: color-mix(in srgb,var(--fg) 58%,transparent);
  transition: color calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-fr label:hover .cn {
  transform: rotate(-5deg);
}

.uvq05-fr input:checked+.cn {
  transform: translateY(-.35em);
}

.uvq05-fr input:checked+.cn .ld {
  transform: scaleX(1);
}

.uvq05-fr input:checked~.nm {
  color: var(--fg);
  font-weight: 800;
}

.uvq05-fr label:active .cn {
  transform: scale(.92);
}

.uvq05-fr input:focus-visible+.cn {
  outline: 2px solid var(--c1);
  outline-offset: .4em;
  border-radius: .2em;
}

.uvq05-fr:has(label:nth-of-type(1) input:checked) .ph>svg:first-child {
  filter: sepia(.18) saturate(1.45) contrast(1.04) brightness(1.05);
}

.uvq05-fr:has(label:nth-of-type(1) input:checked) .tn {
  background: #ff8a2a;
  opacity: 0.32;
}

.uvq05-fr:has(label:nth-of-type(1) input:checked) .gr {
  opacity: 0.16;
}

.uvq05-fr:has(label:nth-of-type(2) input:checked) .ph>svg:first-child {
  filter: grayscale(1) contrast(1.35) brightness(.96);
}

.uvq05-fr:has(label:nth-of-type(2) input:checked) .tn {
  background: transparent;
  opacity: 0;
}

.uvq05-fr:has(label:nth-of-type(2) input:checked) .gr {
  opacity: 0.32;
}

.uvq05-fr:has(label:nth-of-type(3) input:checked) .ph>svg:first-child {
  filter: saturate(1.75) contrast(1.18);
}

.uvq05-fr:has(label:nth-of-type(3) input:checked) .tn {
  background: transparent;
  opacity: 0;
}

.uvq05-fr:has(label:nth-of-type(3) input:checked) .gr {
  opacity: 0.08;
}

.uvq05-fr:has(label:nth-of-type(4) input:checked) .ph>svg:first-child {
  filter: saturate(.85) brightness(1.06);
}

.uvq05-fr:has(label:nth-of-type(4) input:checked) .tn {
  background: #3b82f6;
  opacity: 0.5;
}

.uvq05-fr:has(label:nth-of-type(4) input:checked) .gr {
  opacity: 0.14;
}

.uvq05-fr:has(label:nth-of-type(5) input:checked) .ph>svg:first-child {
  filter: saturate(1.15) contrast(1.12) brightness(.92);
}

.uvq05-fr:has(label:nth-of-type(5) input:checked) .tn {
  background: #1d4ed8;
  opacity: 0.6;
}

.uvq05-fr:has(label:nth-of-type(5) input:checked) .gr {
  opacity: 0.26;
}

@keyframes uvq05-frg {
  0% {
    transform: translate(0,0);
  }
  33% {
    transform: translate(-4%,3%);
  }
  66% {
    transform: translate(3%,-2%);
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq05-fr,.uvq05-fr *,.uvq05-fr *::before,.uvq05-fr *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
```

### React

```tsx
import type { CSSProperties } from "react";

const css = `
.uvq05-fr {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  width: 19em;
}

.uvq05-fr legend {
  padding: 0;
  margin: 0 0 .8em;
  font-weight: 700;
}

.uvq05-fr .fm {
  position: relative;
  padding: .85em .45em;
  border-radius: .35em;
  background: var(--c2);
  box-shadow: 0 1em 2em -1.2em rgba(0,0,0,.6);
}

.uvq05-fr .fm::before,.uvq05-fr .fm::after {
  content: "";
  position: absolute;
  left: .45em;
  right: .45em;
  height: .38em;
  background: linear-gradient(90deg,#efe6d2 0 .5em,transparent .5em) 0 0/1em 100% repeat-x;
  opacity: .9;
}

.uvq05-fr .fm::before {
  top: .22em;
}

.uvq05-fr .fm::after {
  bottom: .22em;
}

.uvq05-fr .ph {
  position: relative;
  height: 8.6em;
  overflow: hidden;
  border-radius: .12em;
}

.uvq05-fr .ph>svg:first-child {
  display: block;
  width: 100%;
  height: 100%;
  transition: filter calc(0.6s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-fr .tn {
  position: absolute;
  inset: 0;
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity calc(0.6s / var(--k)) cubic-bezier(.25,.1,.25,1),background calc(0.6s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-fr .gr {
  position: absolute;
  left: -20%;
  top: -20%;
  width: 140%;
  height: 140%;
  opacity: .15;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: uvq05-frg calc(0.5s / var(--k)) steps(3) infinite;
  transition: opacity calc(0.6s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-fr .rl {
  display: flex;
  justify-content: space-between;
  margin-top: 1em;
}

.uvq05-fr label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 3.5em;
  padding-top: .4em;
  cursor: pointer;
}

.uvq05-fr input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.uvq05-fr .cn {
  position: relative;
  width: 1.9em;
  height: 2.9em;
  transition: transform calc(0.45s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq05-fr .cn::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -.3em;
  width: .55em;
  height: .32em;
  margin-left: -.27em;
  border-radius: .1em .1em 0 0;
  background: linear-gradient(90deg,#3a3a3a,#bbb 45%,#555);
}

.uvq05-fr .cp {
  position: absolute;
  left: -.08em;
  right: -.08em;
  top: 0;
  z-index: 1;
  height: .34em;
  border-radius: .12em;
  background: linear-gradient(90deg,#5c5c5c,#efefef 35%,#a0a0a0 65%,#4a4a4a);
}

.uvq05-fr .cp.b {
  top: auto;
  bottom: 0;
}

.uvq05-fr .bd {
  position: absolute;
  left: 0;
  right: 0;
  top: .3em;
  bottom: .3em;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg,rgba(0,0,0,.4),rgba(255,255,255,.32) 28%,rgba(255,255,255,0) 52%,rgba(0,0,0,.45)),var(--b);
}

.uvq05-fr .bd b {
  font-size: .62em;
  font-weight: 900;
  color: #fff;
  letter-spacing: .04em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.uvq05-fr .ld {
  position: absolute;
  left: 92%;
  top: .75em;
  width: 1em;
  height: 1.3em;
  background: linear-gradient(#e9dfca 0 0) .15em .12em/.2em .18em,linear-gradient(#e9dfca 0 0) .55em .12em/.2em .18em,linear-gradient(#e9dfca 0 0) .15em 1em/.2em .18em,linear-gradient(#e9dfca 0 0) .55em 1em/.2em .18em,#3b2a1e;
  background-repeat: no-repeat;
  clip-path: polygon(0 0,100% 18%,100% 100%,0 100%);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform calc(0.45s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq05-fr .nm {
  margin-top: .5em;
  font-size: .62em;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  color: color-mix(in srgb,var(--fg) 58%,transparent);
  transition: color calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-fr label:hover .cn {
  transform: rotate(-5deg);
}

.uvq05-fr input:checked+.cn {
  transform: translateY(-.35em);
}

.uvq05-fr input:checked+.cn .ld {
  transform: scaleX(1);
}

.uvq05-fr input:checked~.nm {
  color: var(--fg);
  font-weight: 800;
}

.uvq05-fr label:active .cn {
  transform: scale(.92);
}

.uvq05-fr input:focus-visible+.cn {
  outline: 2px solid var(--c1);
  outline-offset: .4em;
  border-radius: .2em;
}

.uvq05-fr:has(label:nth-of-type(1) input:checked) .ph>svg:first-child {
  filter: sepia(.18) saturate(1.45) contrast(1.04) brightness(1.05);
}

.uvq05-fr:has(label:nth-of-type(1) input:checked) .tn {
  background: #ff8a2a;
  opacity: 0.32;
}

.uvq05-fr:has(label:nth-of-type(1) input:checked) .gr {
  opacity: 0.16;
}

.uvq05-fr:has(label:nth-of-type(2) input:checked) .ph>svg:first-child {
  filter: grayscale(1) contrast(1.35) brightness(.96);
}

.uvq05-fr:has(label:nth-of-type(2) input:checked) .tn {
  background: transparent;
  opacity: 0;
}

.uvq05-fr:has(label:nth-of-type(2) input:checked) .gr {
  opacity: 0.32;
}

.uvq05-fr:has(label:nth-of-type(3) input:checked) .ph>svg:first-child {
  filter: saturate(1.75) contrast(1.18);
}

.uvq05-fr:has(label:nth-of-type(3) input:checked) .tn {
  background: transparent;
  opacity: 0;
}

.uvq05-fr:has(label:nth-of-type(3) input:checked) .gr {
  opacity: 0.08;
}

.uvq05-fr:has(label:nth-of-type(4) input:checked) .ph>svg:first-child {
  filter: saturate(.85) brightness(1.06);
}

.uvq05-fr:has(label:nth-of-type(4) input:checked) .tn {
  background: #3b82f6;
  opacity: 0.5;
}

.uvq05-fr:has(label:nth-of-type(4) input:checked) .gr {
  opacity: 0.14;
}

.uvq05-fr:has(label:nth-of-type(5) input:checked) .ph>svg:first-child {
  filter: saturate(1.15) contrast(1.12) brightness(.92);
}

.uvq05-fr:has(label:nth-of-type(5) input:checked) .tn {
  background: #1d4ed8;
  opacity: 0.6;
}

.uvq05-fr:has(label:nth-of-type(5) input:checked) .gr {
  opacity: 0.26;
}

@keyframes uvq05-frg {
  0% {
    transform: translate(0,0);
  }
  33% {
    transform: translate(-4%,3%);
  }
  66% {
    transform: translate(3%,-2%);
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq05-fr,.uvq05-fr *,.uvq05-fr *::before,.uvq05-fr *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
`;

export default function FFilmRolls() {
  return (
    <>
      <style>{css}</style>
      <div
        style={{
          "--c1": "#f2b134",
          "--c2": "#15120f",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <fieldset className="uvq05-fr"><legend>Film</legend><div className="fm"><div className="ph"><svg viewBox="0 0 200 120" preserveAspectRatio="xMidYMid slice" aria-hidden="true"><defs><linearGradient id="uvq05-fr-s" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stopColor="#6fb7e9" /><stop offset="1" stopColor="#ffd9a8" /></linearGradient></defs><rect width="200" height="120" fill="url(#uvq05-fr-s)" /><circle cx="148" cy="36" r="13" fill="#ffd25e" /><path d="M0 78L38 44L62 64L92 30L128 70L152 52L200 82V120H0Z" fill="#4f7a64" /><path d="M0 88L30 70L70 86L110 66L150 84L200 74V120H0Z" fill="#2f5446" /><rect y="94" width="200" height="26" fill="#3d8fc4" /><path d="M20 102h40M90 109h50M150 100h30" stroke="#bfe3f7" strokeWidth="1.6" strokeLinecap="round" opacity=".7" /><path d="M118 85h18v9h-18z" fill="#c8432b" /><path d="M115 86l12-9 12 9z" fill="#7a2a1c" /><rect x="124" y="88" width="4" height="6" fill="#ffe2a0" /></svg><i className="tn"></i><svg className="gr" aria-hidden="true"><filter id="uvq05-fr-n"><feTurbulence type="fractalNoise" baseFrequency=".9" numOctaves="2" stitchTiles="stitch" /><feColorMatrix type="saturate" values="0" /></filter><rect width="100%" height="100%" filter="url(#uvq05-fr-n)" /></svg></div></div><div className="rl"><label><input type="radio" name="uvq05-fr" checked={true} /><span className="cn" style={{ "--b": "#f2b134" } as CSSProperties} aria-hidden="true"><i className="ld"></i><i className="cp"></i><span className="bd"><b>400</b></span><i className="cp b"></i></span><span className="nm">Warm</span></label><label><input type="radio" name="uvq05-fr" /><span className="cn" style={{ "--b": "#2b2b2b" } as CSSProperties} aria-hidden="true"><i className="ld"></i><i className="cp"></i><span className="bd"><b>400</b></span><i className="cp b"></i></span><span className="nm">Black and white</span></label><label><input type="radio" name="uvq05-fr" /><span className="cn" style={{ "--b": "#2f7d4f" } as CSSProperties} aria-hidden="true"><i className="ld"></i><i className="cp"></i><span className="bd"><b>50</b></span><i className="cp b"></i></span><span className="nm">Slide</span></label><label><input type="radio" name="uvq05-fr" /><span className="cn" style={{ "--b": "#3a7bd5" } as CSSProperties} aria-hidden="true"><i className="ld"></i><i className="cp"></i><span className="bd"><b>200</b></span><i className="cp b"></i></span><span className="nm">Cool</span></label><label><input type="radio" name="uvq05-fr" /><span className="cn" style={{ "--b": "#c6352f" } as CSSProperties} aria-hidden="true"><i className="ld"></i><i className="cp"></i><span className="bd"><b>800</b></span><i className="cp b"></i></span><span className="nm">Tungsten</span></label></div></fieldset>
      </div>
    </>
  );
}
```

## Prompt for AI assistants

Paste this into ChatGPT, Claude, Cursor, v0 or Lovable to adapt the block to your stack (Tailwind, Vue, Svelte…):

````text
I want to add the “Film roll photo filter” block (Filters) from AIMRAN Library to my project.

## What it is
Pick a film canister and the photo changes colour, contrast and grain as if it had been developed on that stock.

## Chosen settings
- Main color: #f2b134
- Secondary color: #15120f
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "Película"

## What I need
1. Add it to my project with the same look and animation as the reference code: same sizes, colours, radii, shadows, timings and easing.
2. It is built with plain HTML and CSS (the reference wraps it in a React component with its CSS). If my project uses something else (Vue, Svelte, Astro, plain HTML…), translate it without losing any behaviour. If I use Tailwind, turn the styles into classes; if not, keep the CSS in its own file.
3. Expose the settings above as props (or CSS variables) with those values as defaults.
4. Make it work well on phones: nothing that depends only on hover, touch targets of at least 44 px and no overflow on 320 px screens.
5. Make it look right in light and dark mode.
6. Keep it accessible: semantic HTML, roles and aria-* where needed, visible focus and keyboard support.
7. Respect prefers-reduced-motion: with reduced motion, no big animations but the same end result.

## Reference code
```tsx
import type { CSSProperties } from "react";

const css = `
.uvq05-fr {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  width: 19em;
}

.uvq05-fr legend {
  padding: 0;
  margin: 0 0 .8em;
  font-weight: 700;
}

.uvq05-fr .fm {
  position: relative;
  padding: .85em .45em;
  border-radius: .35em;
  background: var(--c2);
  box-shadow: 0 1em 2em -1.2em rgba(0,0,0,.6);
}

.uvq05-fr .fm::before,.uvq05-fr .fm::after {
  content: "";
  position: absolute;
  left: .45em;
  right: .45em;
  height: .38em;
  background: linear-gradient(90deg,#efe6d2 0 .5em,transparent .5em) 0 0/1em 100% repeat-x;
  opacity: .9;
}

.uvq05-fr .fm::before {
  top: .22em;
}

.uvq05-fr .fm::after {
  bottom: .22em;
}

.uvq05-fr .ph {
  position: relative;
  height: 8.6em;
  overflow: hidden;
  border-radius: .12em;
}

.uvq05-fr .ph>svg:first-child {
  display: block;
  width: 100%;
  height: 100%;
  transition: filter calc(0.6s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-fr .tn {
  position: absolute;
  inset: 0;
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity calc(0.6s / var(--k)) cubic-bezier(.25,.1,.25,1),background calc(0.6s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-fr .gr {
  position: absolute;
  left: -20%;
  top: -20%;
  width: 140%;
  height: 140%;
  opacity: .15;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: uvq05-frg calc(0.5s / var(--k)) steps(3) infinite;
  transition: opacity calc(0.6s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-fr .rl {
  display: flex;
  justify-content: space-between;
  margin-top: 1em;
}

.uvq05-fr label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 3.5em;
  padding-top: .4em;
  cursor: pointer;
}

.uvq05-fr input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.uvq05-fr .cn {
  position: relative;
  width: 1.9em;
  height: 2.9em;
  transition: transform calc(0.45s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq05-fr .cn::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -.3em;
  width: .55em;
  height: .32em;
  margin-left: -.27em;
  border-radius: .1em .1em 0 0;
  background: linear-gradient(90deg,#3a3a3a,#bbb 45%,#555);
}

.uvq05-fr .cp {
  position: absolute;
  left: -.08em;
  right: -.08em;
  top: 0;
  z-index: 1;
  height: .34em;
  border-radius: .12em;
  background: linear-gradient(90deg,#5c5c5c,#efefef 35%,#a0a0a0 65%,#4a4a4a);
}

.uvq05-fr .cp.b {
  top: auto;
  bottom: 0;
}

.uvq05-fr .bd {
  position: absolute;
  left: 0;
  right: 0;
  top: .3em;
  bottom: .3em;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg,rgba(0,0,0,.4),rgba(255,255,255,.32) 28%,rgba(255,255,255,0) 52%,rgba(0,0,0,.45)),var(--b);
}

.uvq05-fr .bd b {
  font-size: .62em;
  font-weight: 900;
  color: #fff;
  letter-spacing: .04em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.uvq05-fr .ld {
  position: absolute;
  left: 92%;
  top: .75em;
  width: 1em;
  height: 1.3em;
  background: linear-gradient(#e9dfca 0 0) .15em .12em/.2em .18em,linear-gradient(#e9dfca 0 0) .55em .12em/.2em .18em,linear-gradient(#e9dfca 0 0) .15em 1em/.2em .18em,linear-gradient(#e9dfca 0 0) .55em 1em/.2em .18em,#3b2a1e;
  background-repeat: no-repeat;
  clip-path: polygon(0 0,100% 18%,100% 100%,0 100%);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform calc(0.45s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq05-fr .nm {
  margin-top: .5em;
  font-size: .62em;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  color: color-mix(in srgb,var(--fg) 58%,transparent);
  transition: color calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-fr label:hover .cn {
  transform: rotate(-5deg);
}

.uvq05-fr input:checked+.cn {
  transform: translateY(-.35em);
}

.uvq05-fr input:checked+.cn .ld {
  transform: scaleX(1);
}

.uvq05-fr input:checked~.nm {
  color: var(--fg);
  font-weight: 800;
}

.uvq05-fr label:active .cn {
  transform: scale(.92);
}

.uvq05-fr input:focus-visible+.cn {
  outline: 2px solid var(--c1);
  outline-offset: .4em;
  border-radius: .2em;
}

.uvq05-fr:has(label:nth-of-type(1) input:checked) .ph>svg:first-child {
  filter: sepia(.18) saturate(1.45) contrast(1.04) brightness(1.05);
}

.uvq05-fr:has(label:nth-of-type(1) input:checked) .tn {
  background: #ff8a2a;
  opacity: 0.32;
}

.uvq05-fr:has(label:nth-of-type(1) input:checked) .gr {
  opacity: 0.16;
}

.uvq05-fr:has(label:nth-of-type(2) input:checked) .ph>svg:first-child {
  filter: grayscale(1) contrast(1.35) brightness(.96);
}

.uvq05-fr:has(label:nth-of-type(2) input:checked) .tn {
  background: transparent;
  opacity: 0;
}

.uvq05-fr:has(label:nth-of-type(2) input:checked) .gr {
  opacity: 0.32;
}

.uvq05-fr:has(label:nth-of-type(3) input:checked) .ph>svg:first-child {
  filter: saturate(1.75) contrast(1.18);
}

.uvq05-fr:has(label:nth-of-type(3) input:checked) .tn {
  background: transparent;
  opacity: 0;
}

.uvq05-fr:has(label:nth-of-type(3) input:checked) .gr {
  opacity: 0.08;
}

.uvq05-fr:has(label:nth-of-type(4) input:checked) .ph>svg:first-child {
  filter: saturate(.85) brightness(1.06);
}

.uvq05-fr:has(label:nth-of-type(4) input:checked) .tn {
  background: #3b82f6;
  opacity: 0.5;
}

.uvq05-fr:has(label:nth-of-type(4) input:checked) .gr {
  opacity: 0.14;
}

.uvq05-fr:has(label:nth-of-type(5) input:checked) .ph>svg:first-child {
  filter: saturate(1.15) contrast(1.12) brightness(.92);
}

.uvq05-fr:has(label:nth-of-type(5) input:checked) .tn {
  background: #1d4ed8;
  opacity: 0.6;
}

.uvq05-fr:has(label:nth-of-type(5) input:checked) .gr {
  opacity: 0.26;
}

@keyframes uvq05-frg {
  0% {
    transform: translate(0,0);
  }
  33% {
    transform: translate(-4%,3%);
  }
  66% {
    transform: translate(3%,-2%);
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq05-fr,.uvq05-fr *,.uvq05-fr *::before,.uvq05-fr *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
`;

export default function FFilmRolls() {
  return (
    <>
      <style>{css}</style>
      <div
        style={{
          "--c1": "#f2b134",
          "--c2": "#15120f",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <fieldset className="uvq05-fr"><legend>Film</legend><div className="fm"><div className="ph"><svg viewBox="0 0 200 120" preserveAspectRatio="xMidYMid slice" aria-hidden="true"><defs><linearGradient id="uvq05-fr-s" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stopColor="#6fb7e9" /><stop offset="1" stopColor="#ffd9a8" /></linearGradient></defs><rect width="200" height="120" fill="url(#uvq05-fr-s)" /><circle cx="148" cy="36" r="13" fill="#ffd25e" /><path d="M0 78L38 44L62 64L92 30L128 70L152 52L200 82V120H0Z" fill="#4f7a64" /><path d="M0 88L30 70L70 86L110 66L150 84L200 74V120H0Z" fill="#2f5446" /><rect y="94" width="200" height="26" fill="#3d8fc4" /><path d="M20 102h40M90 109h50M150 100h30" stroke="#bfe3f7" strokeWidth="1.6" strokeLinecap="round" opacity=".7" /><path d="M118 85h18v9h-18z" fill="#c8432b" /><path d="M115 86l12-9 12 9z" fill="#7a2a1c" /><rect x="124" y="88" width="4" height="6" fill="#ffe2a0" /></svg><i className="tn"></i><svg className="gr" aria-hidden="true"><filter id="uvq05-fr-n"><feTurbulence type="fractalNoise" baseFrequency=".9" numOctaves="2" stitchTiles="stitch" /><feColorMatrix type="saturate" values="0" /></filter><rect width="100%" height="100%" filter="url(#uvq05-fr-n)" /></svg></div></div><div className="rl"><label><input type="radio" name="uvq05-fr" checked={true} /><span className="cn" style={{ "--b": "#f2b134" } as CSSProperties} aria-hidden="true"><i className="ld"></i><i className="cp"></i><span className="bd"><b>400</b></span><i className="cp b"></i></span><span className="nm">Warm</span></label><label><input type="radio" name="uvq05-fr" /><span className="cn" style={{ "--b": "#2b2b2b" } as CSSProperties} aria-hidden="true"><i className="ld"></i><i className="cp"></i><span className="bd"><b>400</b></span><i className="cp b"></i></span><span className="nm">Black and white</span></label><label><input type="radio" name="uvq05-fr" /><span className="cn" style={{ "--b": "#2f7d4f" } as CSSProperties} aria-hidden="true"><i className="ld"></i><i className="cp"></i><span className="bd"><b>50</b></span><i className="cp b"></i></span><span className="nm">Slide</span></label><label><input type="radio" name="uvq05-fr" /><span className="cn" style={{ "--b": "#3a7bd5" } as CSSProperties} aria-hidden="true"><i className="ld"></i><i className="cp"></i><span className="bd"><b>200</b></span><i className="cp b"></i></span><span className="nm">Cool</span></label><label><input type="radio" name="uvq05-fr" /><span className="cn" style={{ "--b": "#c6352f" } as CSSProperties} aria-hidden="true"><i className="ld"></i><i className="cp"></i><span className="bd"><b>800</b></span><i className="cp b"></i></span><span className="nm">Tungsten</span></label></div></fieldset>
      </div>
    </>
  );
}
```

Give me the complete final code, ready to paste, and tell me in one line where to put it in my project.
````
