/* The next cards as matchups (js/hub.js matchups): each card's name and date as a heading over its
   fights, one row per fight, red corner left and blue right cut on the slant like the card's banners,
   the gold VS between. Names shrink to fit their half (--n is the longest word's width in ems). */

.mus { padding: 0; }
.mu-card { margin: 0 16px 18px; }
.mu-hd { margin: 4px 0 8px; font-size: inherit; font-weight: inherit; }
.mu-hd a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; text-decoration: none; color: var(--text); }
.mu-hd b { font-size: 16px; font-style: italic; font-weight: 800; letter-spacing: -.01em; }
.mu-hd small { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; color: var(--muted-2); }
.mu-hd a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.mu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mu-meta { display: block; margin: 0 0 4px; text-align: center; font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.mu.main .mu-meta { color: var(--text); }

.mu-row { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: 86px; }
.mu-f { position: relative; overflow: hidden; display: flex; align-items: center; min-width: 0; padding: 8px 12px; color: #fff; text-decoration: none; container-type: inline-size; transition: filter .15s; }
.mu-f.r { clip-path: polygon(0 0,100% 0,92% 100%,0 100%); justify-content: flex-start; text-align: left; background: linear-gradient(160deg,var(--red-hi),var(--red-deep)); }
.mu-f.b { clip-path: polygon(8% 0,100% 0,100% 100%,0 100%); margin-left: -6%; justify-content: flex-end; text-align: right; background: linear-gradient(200deg,var(--blue-hi),var(--blue-lo)); }
a.mu-f:hover { filter: brightness(1.12); }
a.mu-f:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.mu-f.tba { background: var(--surface); color: var(--muted-2); }

.mu-f .photo, .mu-f .sil { position: absolute; bottom: 0; height: 100%; width: auto; max-width: 50%; object-fit: contain; pointer-events: none; fill: rgba(0,0,0,.28); }
.mu-f .photo { filter: brightness(.72); }
.mu-f.r .photo, .mu-f.r .sil { right: 9%; object-position: bottom right; }
.mu-f.b .photo, .mu-f.b .sil { left: 9%; object-position: bottom left; }

.mu-t { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; max-width: 100%; text-shadow: 0 1px 2px rgba(0,0,0,.55); }
.mu-f.b .mu-t { align-items: flex-end; }
.mu-nick { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-style: italic; font-weight: 600; color: rgba(255,255,255,.82); }
.mu-nm { display: flex; flex-direction: column; min-width: 0; max-width: 100%; }
.mu-f.b .mu-nm { align-items: flex-end; }
.mu-nm small { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; line-height: 1.2; opacity: .9; }
.mu-nm b { font-size: min(21px, calc(80cqi / var(--n, 6))); font-style: italic; font-weight: 800; line-height: .95; letter-spacing: -.02em; overflow-wrap: anywhere; }
.mu-rec { margin-top: 3px; font-size: 11px; font-weight: 700; letter-spacing: .06em; opacity: .9; }

.mu-vs { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%,-50%) skew(-8deg); padding: 3px 7px; background: var(--gold); color: var(--bg); font-size: 12px; font-style: italic; font-weight: 800; letter-spacing: .02em; pointer-events: none; }

.mu.main .mu-row { height: 100px; }
.mu.main .mu-nm b { font-size: min(25px, calc(80cqi / var(--n, 6))); }

.mu-more { display: block; width: max-content; margin: 2px 0 0 auto; padding: 10px 0; font: 700 12px/1.2 var(--font-ui); letter-spacing: .04em; color: var(--text-2); text-decoration: none; }
.mu-more:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 900px) {
  .mu-row { height: 96px; }
  .mu.main .mu-row { height: 116px; }
  .mu-f { padding: 10px 18px; }
  .mu-nm b { font-size: min(24px, calc(80cqi / var(--n, 6))); }
  .mu.main .mu-nm b { font-size: min(30px, calc(80cqi / var(--n, 6))); }
  .mu-nick { font-size: 12px; }
}
