/* ---- the Library filter wheel (js/cffilter.js): glass under the cover flow, the cover flow shrinks up above it ---- */
.cff { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; z-index: 30; pointer-events: none; }
.cff.hidden { display: none; }
.cff > * { pointer-events: auto; }
.cffglass { position: absolute; left: 0; top: 590px; width: 1920px; height: 490px;
  background: linear-gradient(to bottom, rgba(18,20,28,.62), rgba(6,7,10,.9));
  border-top: 1px solid rgba(255,255,255,.2); box-shadow: 0 -30px 80px rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(28px) saturate(1.5); backdrop-filter: blur(28px) saturate(1.5);
  transform: translateY(100%); transition: transform .42s cubic-bezier(.2,.8,.2,1); }
.cff.on .cffglass { transform: none; }
.cffhead, .cffdrum, .cffrow, .cffhint { opacity: 0; transition: opacity .3s ease .12s; }
.cff.on .cffhead, .cff.on .cffdrum, .cff.on .cffrow, .cff.on .cffhint { opacity: 1; }
.cffhead { position: absolute; left: 90px; right: 110px; top: 612px; display: flex; justify-content: space-between; align-items: baseline; }
.cffhead .t { font-size: 17px; font-weight: 700; letter-spacing: 6px; color: rgba(255,255,255,.55); }
.cffhead .n { font-size: 30px; font-weight: 800; letter-spacing: 3px; color: #ffd23f; }

/* the categories: a drum that turns, the one you're on big and white */
.cffdrum { position: absolute; left: 70px; top: 660px; width: 340px; height: 360px; perspective: 700px; overflow: hidden; }
.cffdrum .cat { position: absolute; left: 0; top: 150px; width: 340px; height: 60px; font-size: 24px; font-weight: 600; letter-spacing: 2px;
  color: rgba(255,255,255,.75); transform-origin: 0 50%; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s ease; white-space: nowrap; }
.cffdrum .cat.cur { font-size: 30px; font-weight: 800; letter-spacing: 1px; color: #fff; }
.cffdrum .cat.cur:before { content: ''; position: absolute; left: -22px; top: 10px; width: 6px; height: 34px; border-radius: 3px; background: #ffd23f; }
.cffdrum .cat b { display: block; margin-top: 2px; font-size: 15px; font-weight: 700; letter-spacing: 2px; color: #ffd23f; overflow: hidden; text-overflow: ellipsis; }

/* the choices: a row of tiles, three posters fanned on each */
.cffrow { position: absolute; left: 430px; top: 650px; width: 1440px; height: 400px; overflow: hidden; }
.cfftrack { position: absolute; left: 0; top: 0; white-space: nowrap; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.cffload { padding: 140px 0 0 40px; font-size: 26px; color: rgba(255,255,255,.5); letter-spacing: 2px; }
.cfft { position: relative; display: inline-block; vertical-align: top; width: 194px; height: 350px; margin: 10px 10px 0; border-radius: 18px;
  text-align: center; white-space: normal; transition: transform .28s cubic-bezier(.2,.8,.2,1), background .28s ease, opacity .28s ease; cursor: pointer; }
.cfft .fan { position: relative; height: 222px; }
.cfft .fan .p { position: absolute; top: 26px; left: 37px; width: 120px; height: 180px; border-radius: 8px; background: #222 center / cover no-repeat;
  box-shadow: 0 8px 22px rgba(0,0,0,.6); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.cfft .fan .p0 { transform: translateX(-30px) rotate(-9deg) scale(.88); }
.cfft .fan .p1 { transform: translateY(-6px); z-index: 2; }
.cfft .fan .p2 { transform: translateX(30px) rotate(9deg) scale(.88); }
.cfft.focus .fan .p0 { transform: translateX(-44px) rotate(-14deg) scale(.9); }
.cfft.focus .fan .p2 { transform: translateX(44px) rotate(14deg) scale(.9); }
.cfft .fan .face { position: absolute; left: 57px; top: 132px; width: 80px; height: 80px; border-radius: 50%; z-index: 3;
  background: #333 center 20% / cover no-repeat; box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 6px 16px rgba(0,0,0,.6); }
.cfft .fan .glyph { padding-top: 40px; font-size: 110px; line-height: 1; color: rgba(255,255,255,.55); }
.cfft .lb { padding: 0 10px; font-size: 22px; font-weight: 700; line-height: 1.15; max-height: 52px; overflow: hidden; }
.cfft .sb { margin-top: 2px; font-size: 12px; font-weight: 700; letter-spacing: 3px; color: rgba(255,255,255,.5); }
.cfft .cnt { margin-top: 6px; font-size: 15px; font-weight: 600; letter-spacing: 3px; color: rgba(255,255,255,.55); }
.cfft.big .lb { font-size: 46px; }
.cfft.focus { transform: scale(1.07); background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 2px rgba(255,255,255,.75); }
.cfft.on { box-shadow: inset 0 0 0 3px #ffd23f; }
.cfft.on.focus { box-shadow: inset 0 0 0 3px #ffd23f, 0 0 30px rgba(255,210,63,.35); }
.cfft.on:after { content: '\2713'; position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; z-index: 4;
  background: #ffd23f; color: #000; font: 900 21px/34px Arial, sans-serif; }
.cfft.on .cnt { color: #ffd23f; }
.cfft.zero { opacity: .32; }
.cfft.inp input { width: 168px; padding: 9px 10px; border: 0; border-radius: 10px; background: rgba(255,255,255,.14); color: #fff;
  font: 600 21px "SamsungOne", "Helvetica Neue", Arial, sans-serif; text-align: center; outline: none; }
.cfft.inp input:focus { background: rgba(255,255,255,.26); box-shadow: 0 0 0 2px #ffd23f; }
.cffhint { position: absolute; left: 0; width: 1920px; top: 1040px; text-align: center; font-size: 14px; font-weight: 700; letter-spacing: 4px;
  color: rgba(255,255,255,.4); }
.touch .cffhint { display: none; }

/* the shelf while the wheel is open: the cover flow shrinks up above the glass */
#shelf .stage { transform-origin: 50% 0; }
#shelf.filtering .stage { transform: translateY(30px) scale(.54) !important; transition: transform .45s cubic-bezier(.2,.8,.2,1) !important; }
#shelf.filtering .info { top: 500px !important; transition: top .45s cubic-bezier(.2,.8,.2,1); }
#shelf.filtering .info .name { font-size: 34px; }
#shelf.filtering .info .meta { margin-top: 6px; font-size: 19px; }
#shelf.filtering .info .overview, #shelf.filtering .info .who { display: none; }

/* re-flowing: the old cards fade, the new rise in one after another from the centre */
.stage.cfout .card { opacity: 0 !important; transition: opacity .18s ease !important; }
.card.cfin { -webkit-animation: cffIn .6s cubic-bezier(.2,.8,.2,1) both; animation: cffIn .6s cubic-bezier(.2,.8,.2,1) both; }
@-webkit-keyframes cffIn { from { opacity: 0; margin-top: 110px; } to { opacity: 1; margin-top: 0; } }
@keyframes cffIn { from { opacity: 0; margin-top: 110px; } to { opacity: 1; margin-top: 0; } }

/* chips above the cover flow: what's picked, how many titles, clear */
.cffchips { position: absolute; left: 0; top: 10px; width: 1920px; height: 40px; z-index: 15; text-align: center; white-space: nowrap;
  font-size: 16px; font-weight: 700; letter-spacing: 3px; }
.cffchips.hidden { display: none; }
.cffchips .chip { display: inline-block; vertical-align: middle; margin: 0 5px; padding: 7px 16px; border-radius: 18px;
  background: rgba(0,0,0,.42); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); color: rgba(255,255,255,.9); cursor: pointer; }
.cffchips .fbtn { opacity: .55; }
.cffchips .fbtn.lit { opacity: 1; }
.cffchips .fbtn i { display: inline-block; width: 11px; height: 11px; margin: 0 9px 1px 0; border-radius: 50%; background: #ffd23f; vertical-align: middle; }
.cffchips .pick { background: rgba(255,210,63,.18); box-shadow: inset 0 0 0 1px rgba(255,210,63,.6); color: #ffe27a; }
.cffchips .n { background: none; box-shadow: none; cursor: default; }
.cffchips .clr { background: rgba(255,255,255,.1); }
.cffchips .dot { color: rgba(255,255,255,.4); }
