@import url('https://fonts.googleapis.com/css2?family=Lilita+One&display=swap');

/* Les Messbass : radio de mix en live, platine ronde et mur de disques. Boucle de 8 s. */
.k-messbass { background: #2f2f2f; color: #fff; font-family: 'Lilita One', sans-serif; }

.k-messbass .wall { left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; filter: brightness(.5); }
/* Le fond passe par le CSS : l'URL se résout depuis cards/, quelle que soit la page qui charge la carte. */
.k-messbass .strip { width: 216cqw; height: 100%; background: url(../assets/projects/messbass/wall.webp) 0 0 / 72cqw 56.8cqw repeat-x; animation: messbass-drift 8s linear infinite; }
@keyframes messbass-drift { to { transform: translateX(-72cqw); } }
.k-messbass .veil { inset: 0; background: linear-gradient(90deg, rgba(30,30,30,.82) 0%, rgba(30,30,30,.5) 52%, rgba(30,30,30,.15) 100%); }

.k-messbass .logo { left: 5cqw; top: 5cqw; display: flex; flex-direction: column; border: .8cqw solid #fff; border-radius: 2cqw; padding: 1.4cqw 2.2cqw .6cqw; font-size: 8.2cqw; line-height: .98; text-transform: uppercase; letter-spacing: .01em; }
.k-messbass .live { left: 5cqw; top: 31cqw; font-size: 6.6cqw; line-height: 1; text-transform: uppercase; }
.k-messbass .genres { left: 5cqw; top: 39.5cqw; width: 46cqw; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 3.4cqw; line-height: 1.3; color: #d8d8d8; }
.k-messbass .genres span { display: block; }

.k-messbass .deck { left: 58cqw; top: 6.5cqw; width: 36cqw; height: 36cqw; background: #000; border: .7cqw solid #fff; border-radius: 3.6cqw; box-sizing: border-box; }
.k-messbass .rec { position: absolute; left: 50%; top: 50%; width: 70%; height: 70%; margin: -35% 0 0 -35%; border-radius: 50%; border: .35cqw solid rgba(255,255,255,.3); box-sizing: border-box; background: radial-gradient(circle, #1c1c1c 0 30%, #3c3c3c 31% 34%, #262626 35% 60%, #444 61% 63%, #2a2a2a 64% 100%); animation: messbass-spin 8s infinite; }
.k-messbass .sheen { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255,255,255,0) 0 8%, rgba(255,255,255,.2) 14%, rgba(255,255,255,0) 22% 55%, rgba(255,255,255,.14) 64%, rgba(255,255,255,0) 72%); }
.k-messbass .label { position: absolute; left: 50%; top: 50%; width: 36%; height: 36%; margin: -18% 0 0 -18%; border-radius: 50%; background: #2b2b2b; }
.k-messbass .label::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #151515 0 9%, transparent 10%), linear-gradient(115deg, #F2C200 0 62%, #d99a00 62% 100%); animation: messbass-label 8s infinite; }
.k-messbass .label i { position: absolute; left: 50%; top: 14%; width: 8%; height: 16%; margin-left: -4%; background: #151515; border-radius: .3cqw; }
@keyframes messbass-spin {
  0%, 12% { transform: rotate(0); animation-timing-function: ease-in; }
  30% { transform: rotate(360deg); animation-timing-function: linear; }
  88% { transform: rotate(1440deg); animation-timing-function: ease-out; }
  100% { transform: rotate(1800deg); }
}
@keyframes messbass-label { 0%, 14% { opacity: 0; } 24%, 86% { opacity: 1; } 96%, 100% { opacity: 0; } }

.k-messbass .off { left: 50%; top: 50%; position: absolute; font-size: 3.4cqw; transform: translate(-50%, -50%) rotate(-35deg); text-shadow: 0 0 .8cqw #000; animation: messbass-off 8s infinite; }
@keyframes messbass-off { 0%, 10% { opacity: 1; } 18%, 92% { opacity: 0; } 98%, 100% { opacity: 1; } }

/* Pivot du bras à (89cqw, 12cqw) ; au repos il pend hors du disque, en lecture il se pose sur le sillon. */
.k-messbass .arm { left: 87.3cqw; top: 10.3cqw; width: 3.4cqw; height: 16cqw; transform-origin: 50% 1.7cqw; transform: rotate(-15deg); animation: messbass-arm 8s infinite; }
.k-messbass .arm i { position: absolute; display: block; }
.k-messbass .arm .tube { left: 1.05cqw; top: 1.7cqw; width: 1.3cqw; height: 12.6cqw; background: #ededed; border-radius: .65cqw; }
.k-messbass .arm .head { left: .5cqw; top: 13.2cqw; width: 2.4cqw; height: 2.6cqw; background: #f6f6f6; border-radius: .6cqw; }
.k-messbass .arm .pivot { left: 0; top: 0; width: 3.4cqw; height: 3.4cqw; border-radius: 50%; background: #f6f6f6; box-shadow: inset 0 0 0 .9cqw #c9c9c9; }
@keyframes messbass-arm {
  0%, 12% { transform: rotate(-15deg); animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
  22% { transform: rotate(22deg); animation-timing-function: ease-in-out; }
  40% { transform: rotate(21deg); animation-timing-function: ease-in-out; }
  60% { transform: rotate(22deg); animation-timing-function: ease-in-out; }
  78% { transform: rotate(21deg); animation-timing-function: ease-in-out; }
  88% { transform: rotate(22deg); animation-timing-function: cubic-bezier(.5, 0, .7, 1); }
  97%, 100% { transform: rotate(-15deg); }
}

.k-messbass .replay { right: 6cqw; top: 45.5cqw; display: flex; align-items: center; gap: .6cqw; font-size: 3.4cqw; line-height: 1; }
.k-messbass .replay svg { width: 4cqw; height: 4cqw; padding: .5cqw; box-sizing: border-box; border: .35cqw solid rgba(255,255,255,.7); border-radius: 50%; }

@media (prefers-reduced-motion: reduce) {
  .k-messbass .strip, .k-messbass .rec, .k-messbass .label::before, .k-messbass .off, .k-messbass .arm { animation: none; }
  .k-messbass .label::before { opacity: 1; }
  .k-messbass .off { opacity: 0; }
  .k-messbass .arm { transform: rotate(22deg); }
}
