/* assets/css/models.css */
:root{
  --bg:#0b0f19;
  --card: rgba(255,255,255,.04);
  --line: rgba(148,163,184,.18);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.62);
  --radius: 16px;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
}

body{ background: var(--bg); color: var(--text); }
.mfc-card{ background: var(--card); border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

.mfc-tile{
  display:block;
  text-decoration:none;
  color:inherit;
  border:1px solid var(--line);
  border-radius: 14px;
  overflow:hidden;
  background: rgba(0,0,0,.25);
  transition: transform .12s ease, border-color .12s ease;
}
.mfc-tile:hover{ transform: translateY(-2px); border-color: rgba(255,255,255,.22); }

.mfc-thumb{
  aspect-ratio: 4/3;
  background:#000;
  overflow:hidden;
}
.mfc-thumb img{
  width:100%; height:100%;
  object-fit: cover;
  display:block;
}

.mfc-meta{ padding: 8px 10px 10px; }
.mfc-name{
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mfc-badges{ margin-top: 6px; display:flex; flex-wrap:wrap; gap:6px; }
.mfc-last{ margin-top: 6px; }

/* ===== Overlay layout ===== */

.mfc-thumb{
  position: relative;
  aspect-ratio: 4/3;
  background:#000;
  overflow:hidden;
}

.mfc-thumb__shade{
  position:absolute;
  inset:0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.85) 0%,
    rgba(0,0,0,.35) 40%,
    rgba(0,0,0,.05) 70%
  );
  pointer-events:none;
}

.mfc-thumb__badges{
  position:absolute;
  top:6px;
  left:6px;
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  z-index:2;
}

.mfc-thumb__name{
  position:absolute;
  bottom:6px;
  left:8px;
  right:8px;
  font-weight:700;
  font-size:14px;
  line-height:1.2;
  color:#fff;
  text-shadow:0 2px 8px rgba(0,0,0,.9);
  z-index:2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.mfc-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

